:root{
  --bg:#070A12;
  --panel:#0B1020;
  --surface:#0E1630;
  --surface2:#0B1227;
  --line:rgba(255,255,255,.08);

  --text:#EAF0FF;
  --muted:rgba(234,240,255,.65);

  --accent:#22D3EE;
  --accent2:#A78BFA;
  --gold:#d4af37;

  --btn:#121B36;
  --btnHover:#16214A;

  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 700px at 70% 10%, rgba(34,211,238,.12), transparent 60%),
              radial-gradient(900px 600px at 25% 25%, rgba(167,139,250,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "SF Pro Text","SF Pro Display","Helvetica Neue", Arial, sans-serif;
}

.app{
  display:grid;
  grid-template-columns: 410px 1fr;
  min-height:100vh;
}

.panel{
  padding:16px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%), var(--panel);
  border-right:1px solid var(--line);
}

.title{
  padding:14px 14px 12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
}
.title h1{margin:0; font-size:18px; letter-spacing:-0.02em;}
.sub{margin:6px 0 0; color:var(--muted); font-size:12px;}

.card{
  margin-top:14px;
  padding:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 55%), var(--surface);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2{
  margin:0 0 10px;
  font-size:12px;
  color:rgba(234,240,255,.85);
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.inputs{display:flex; flex-direction:column; gap:8px;}
.inputRow{display:flex; gap:10px; align-items:center;}
.label{width:92px; color:var(--muted); font-size:12px;}

input[type="text"]{
  flex:1;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--surface2);
  color:var(--text);
  outline:none;
  transition: border .15s ease, box-shadow .15s ease;
}
input[type="text"]::placeholder{color:rgba(234,240,255,.35)}
input[type="text"]:focus{
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}

input[type="number"]{
  width:94px;
  padding:7px 9px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--surface2);
  color:var(--text);
  outline:none;
}
input[type="number"]:focus{
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}

.row{display:flex; gap:10px; margin-top:10px; align-items:center;}
.between{justify-content:space-between;}

.btn{
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 60%), var(--btn);
  color:var(--text);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.01em;
  transition: transform .08s ease, background .15s ease, border .15s ease;
}
.btn:hover{background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 60%), var(--btnHover);}
.btn:active{transform: translateY(1px);}
.btn:disabled{opacity:.45; cursor:not-allowed}

.btnPrimary{
  border-color: rgba(34,211,238,.35);
  box-shadow: 0 0 0 1px rgba(34,211,238,.10) inset;
}
.btnPrimary:hover{border-color: rgba(34,211,238,.55);}

.pill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:8px;
  align-items:center;
  background: rgba(255,255,255,.03);
}
.pill.toggle{cursor:pointer; user-select:none;}
.pill.toggle input{margin:0; accent-color: var(--accent);}

.tableWrap{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
table{width:100%; border-collapse:collapse;}
th,td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:12px;
}
th{
  color:rgba(234,240,255,.85);
  text-align:left;
  background: rgba(0,0,0,.18);
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:11px;
}
td{color:var(--text);}
td:nth-child(2), td:nth-child(3), th:nth-child(2), th:nth-child(3){text-align:center;}
tbody tr:hover{background: rgba(34,211,238,.06);}
tbody tr:last-child td{border-bottom:none;}

.note{margin:10px 0 0; color:var(--muted); font-size:12px;}
.results{margin:0; padding-left:18px; font-size:13px;}
.results li{margin:8px 0; color:rgba(234,240,255,.92);}

.stage{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: radial-gradient(900px 600px at 60% 20%, rgba(34,211,238,.10), transparent 55%),
              radial-gradient(900px 600px at 30% 80%, rgba(167,139,250,.08), transparent 55%);
}
canvas{
  width:min(100%, 1100px);
  height:auto;
  border-radius: 22px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}

/* Import UI */
.importGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.slotTitle{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(234,240,255,.75);
  margin:2px 0 8px;
}

.slotButtons{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}

.slotBtn{
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color:#EAF0FF;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
  text-align:left;
}
.slotBtn small{
  display:block;
  font-weight:600;
  color:rgba(234,240,255,.55);
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.slotBtn.active{
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}

.managerList{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:240px;
  overflow:auto;
  padding-right:4px;
}

.manager{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.manager:hover{ background: rgba(34,211,238,.06); }

.avatar{
  width:28px;height:28px;border-radius:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  flex:0 0 auto;
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block;}

.mName{font-weight:700;font-size:13px;}
.mMeta{margin-left:auto;color:rgba(234,240,255,.55);font-size:12px;}

/* --- Draft Order (Sleeper-style list) --- */
.draftOrder{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.draftEmpty{
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.14);
  color:rgba(234,240,255,.55);
  background:rgba(255,255,255,.02);
  font-size:12px;
}

.pickRow{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.pickNum{
  width:36px;
  height:28px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(234,240,255,.92);
  flex:0 0 auto;
}

.pickRow.top1 .pickNum{
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 0 0 3px rgba(212,175,55,.10);
}
.pickRow.top2 .pickNum{
  border-color: rgba(255,255,255,.20);
}
.pickRow.top3 .pickNum{
  border-color: rgba(255,255,255,.16);
}

.pickTeam{
  font-weight:800;
  font-size:13px;
  letter-spacing:0.01em;
}
.pickMeta{
  margin-left:auto;
  color: rgba(234,240,255,.55);
  font-size:12px;
}

/* --- CLICK FIX FOR ASSIGNMENT (cPanel / overlays) --- */
.importGrid,
.managerList,
.manager,
.slotButtons,
.slotBtn,
.managers,
.slots {
  pointer-events: auto !important;
}
.managers, .managerList { position:relative; z-index:50; }
.slots, .slotButtons { position:relative; z-index:60; }
