:root {
  --ink: #e9edff;
  --muted: #8d98b8;
  --faint: #66708e;
  --canvas: #080b14;
  --panel: #111625;
  --panel-2: #171d2f;
  --line: #252d45;
  --purple: #8b78ff;
  --cyan: #44d7c7;
  --amber: #ffbc66;
  --danger: #ff7a8a;
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 25% 25%, #22205a 0, transparent 36%), radial-gradient(circle at 80% 75%, #123d45 0, transparent 31%), var(--canvas); }
.login-card { width: min(100%, 520px); padding: 48px; border: 1px solid var(--line); border-radius: 28px; background: rgba(17,22,37,.92); box-shadow: 0 30px 100px #0008; }
.brand-mark { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: #090b14; background: linear-gradient(135deg,var(--purple),var(--cyan)); }
.brand-mark.small { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
.eyebrow { color: var(--purple); letter-spacing: .14em; font-size: 12px; font-weight: 800; margin: 22px 0 8px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 16px; }
h2 { font-size: 22px; letter-spacing: -.02em; }
h3 { font-size: 16px; }
.muted { color: var(--muted); line-height: 1.6; }
label { display: block; color: var(--muted); font-size: 14px; font-weight: 650; margin: 30px 0 9px; }
.password-row { display: flex; gap: 10px; }
input { flex: 1; min-width: 0; color: var(--ink); background: #090d19; border: 1px solid var(--line); padding: 14px 16px; border-radius: 12px; outline: none; }
input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #8b78ff2b; }
.password-row button { border: 0; border-radius: 12px; padding: 0 22px; font-weight: 750; color: #090b14; background: var(--purple); }
.error { min-height: 24px; color: var(--danger); margin: 10px 0 0; font-size: 14px; }
.xp-login { min-height:100vh; display:grid; grid-template-rows:64px 1fr 82px; color:#fff; background:#5a7edc; font-family:Tahoma,"Segoe UI",sans-serif; }
.xp-top,.xp-bottom { display:flex; align-items:center; padding:0 clamp(22px,5vw,72px); background:linear-gradient(180deg,#1747b1,#073184); border-color:#7ca1ff; border-style:solid; }
.xp-top { border-width:0 0 2px; font-size:18px; font-weight:700; text-shadow:1px 2px #001d6b; }
.xp-bottom { border-width:2px 0 0; justify-content:flex-end; font-size:13px; color:#dce7ff; }
.xp-welcome { width:min(100%,1080px); margin:auto; display:grid; grid-template-columns:1fr 2px 1fr; align-items:center; gap:54px; padding:54px 30px; }
.xp-intro { text-align:right; text-shadow:1px 2px #2c4b9b; }
.xp-intro h1 { font-family:Tahoma,"Segoe UI",sans-serif; font-weight:500; font-size:54px; letter-spacing:-.04em; margin:18px 0 8px; }
.xp-intro p { font-size:20px; margin:0; }
.xp-logo { width:70px; height:70px; display:grid; place-items:center; margin-left:auto; border-radius:14px; color:#1747b1; font-size:24px; font-weight:900; text-shadow:none; background:linear-gradient(135deg,#fff,#b7f4e9); box-shadow:0 3px 0 #264a9a; transform:rotate(-3deg); }
.xp-divider { width:2px; align-self:stretch; background:linear-gradient(180deg,transparent,#c9d7ff,transparent); }
.xp-profile-list { display:grid; gap:12px; }
.xp-user-card { width:min(100%,390px); display:flex; align-items:center; gap:16px; min-height:78px; padding:8px; color:#fff; text-align:left; border:2px solid transparent; border-radius:8px; background:transparent; }
.xp-user-card:hover,.xp-user-card:focus,.xp-user-card.selected { border-color:#fff8; background:linear-gradient(90deg,#1846a9aa,transparent); outline:none; }
.xp-avatar { width:62px; height:62px; display:grid; place-items:center; flex:none; border:2px solid #fff; border-radius:7px; background:linear-gradient(135deg,#99e7d9,#6259d9); box-shadow:2px 3px 0 #27448c; font-size:20px; font-weight:800; }
.xp-user-copy strong { display:block; font-size:21px; font-weight:500; text-shadow:1px 2px #294b9b; }
.xp-user-copy span { display:block; color:#dce6ff; margin-top:4px; font-size:12px; }
.xp-password-panel label { margin:18px 0 7px 87px; color:#fff; font-size:13px; }
.xp-password-row { width:min(100%,390px); padding-left:87px; }
.xp-password-row input { height:38px; padding:7px 9px; color:#111; background:#fff; border:2px solid #173b97; border-radius:2px; }
.xp-go { width:42px; border:2px solid #fff!important; border-radius:6px!important; padding:0!important; color:#fff!important; background:linear-gradient(135deg,#68bd45,#197d24)!important; font-size:24px; }
.xp-back { margin:10px 0 0 87px; padding:0; color:#fff; border:0; border-bottom:1px solid #fff8; background:transparent; font-size:12px; }
.xp-password-panel .error { margin-left:87px; color:#fff6c9; text-shadow:1px 1px #a11; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: #0c101c; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 760; padding: 0 8px; }
.workspace-label { color: var(--faint); letter-spacing: .15em; font-size: 11px; font-weight: 800; margin: 38px 10px 10px; }
.user-list { display: grid; gap: 6px; }
.user-button,.nav-item { width: 100%; border: 0; background: transparent; color: var(--muted); text-align: left; border-radius: 10px; padding: 10px 12px; }
.user-button { display:flex; align-items:center; gap:10px; }
.user-button .avatar { width: 30px; height: 30px; display:grid; place-items:center; border-radius:10px; background: var(--panel-2); color: var(--ink); font-size: 12px; font-weight: 800; }
.user-button.active { background: var(--panel-2); color: var(--ink); }
.user-button.active .avatar { background: var(--purple); color: #090b14; }
.nav { display: grid; gap: 5px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.nav-item { font-size: 14px; padding-left: 16px; }
.nav-item.active { color: var(--ink); background: #171d2f; box-shadow: inset 3px 0 var(--purple); }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 2; }
.mcp-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--cyan); margin-right:6px; box-shadow: 0 0 12px var(--cyan); }
.text-button { display:block; border:0; padding:0; color:var(--muted); background:transparent; font-size:12px; }
.main { min-width: 0; padding: 34px clamp(22px,4vw,64px) 64px; }
.topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:32px; }
.topbar .eyebrow { margin-top: 4px; }
.topbar h1 { font-size: clamp(30px,4vw,46px); margin:0; }
.readonly-pill { flex:none; padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:12px; }
.menu { display:none; }
.grid { display:grid; gap:16px; }
.stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.two-col { grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); margin-top:16px; }
.card { background: linear-gradient(145deg,#121829,#0f1422); border:1px solid var(--line); border-radius:var(--radius); padding:22px; min-width:0; }
.stat-label { color:var(--muted); font-size:13px; }
.stat-value { font-size:36px; line-height:1.1; font-weight:760; letter-spacing:-.04em; margin:12px 0 5px; }
.stat-meta { color:var(--faint); font-size:12px; }
.section-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:18px; }
.section-head h2 { margin:0; }
.section-head span { color:var(--faint); font-size:12px; }
.progress-track { height:8px; border-radius:20px; background:#252b3f; overflow:hidden; }
.progress-fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--purple),var(--cyan)); }
.category-list { display:grid; gap:12px; }
.category-row { display:grid; grid-template-columns:1fr auto; gap:8px; font-size:13px; }
.category-row span:last-child { color:var(--muted); }
.category-row .progress-track { grid-column:1/-1; height:5px; }
.activity { display:grid; gap:10px; }
.activity-item { display:flex; align-items:center; gap:12px; padding:12px; border-radius:12px; background:#0c111f; }
.activity-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#242447; color:var(--purple); }
.activity-copy { min-width:0; }
.activity-copy strong { display:block; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.activity-copy span { color:var(--faint); font-size:12px; }
.empty { text-align:center; padding:48px 20px; color:var(--muted); }
.empty-icon { width:42px; height:42px; margin:0 auto 14px; display:grid; place-items:center; border:1px solid var(--line); border-radius:13px; color:var(--purple); }
.empty h3 { color:var(--ink); margin-bottom:8px; }
.empty p { margin-bottom:8px; }
.empty span { color:var(--faint); font-size:12px; }
.profile-groups { display:grid; gap:16px; }
.profile-group h2 { text-transform:capitalize; }
.item-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.profile-item { padding:16px; background:#0c111f; border-radius:12px; }
.profile-item strong { display:block; margin-bottom:6px; }
.profile-item p { margin:0; color:var(--muted); line-height:1.5; }
.profile-item small { display:block; color:var(--faint); margin-top:10px; }
.map { position:relative; min-height:600px; overflow:hidden; background-image:radial-gradient(#303956 1px,transparent 1px); background-size:22px 22px; }
.map::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 0 49.8%,#252d45 50%,transparent 50.2%); opacity:.25; }
.node { position:absolute; width:150px; transform:translate(-50%,-50%); border:1px solid var(--line); border-radius:13px; padding:12px; background:#121829; color:var(--ink); text-align:left; }
.node:hover,.node:focus { border-color:var(--purple); z-index:2; }
.node-domain { color:var(--faint); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.node-title { display:block; font-size:13px; margin-top:5px; line-height:1.25; }
.node-status { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; background:var(--faint); }
.node[data-status="learning"] .node-status { background:var(--amber); }
.node[data-status="comfortable"] .node-status,.node[data-status="mastered"] .node-status { background:var(--cyan); }
.cards-list { display:grid; gap:12px; }
.opportunity,.prompt-card { padding:20px; border:1px solid var(--line); border-radius:14px; background:#0c111f; }
.opportunity { display:grid; grid-template-columns:1fr auto; gap:12px; }
.opportunity h3,.prompt-card h3 { margin-bottom:5px; }
.opportunity p,.prompt-card p { color:var(--muted); line-height:1.55; margin:0; }
.score { width:52px; height:52px; display:grid; place-items:center; border-radius:50%; border:3px solid var(--cyan); font-weight:800; }
.status { display:inline-block; color:var(--purple); font-size:12px; text-transform:uppercase; letter-spacing:.08em; margin-top:12px; }
.prompt-body { white-space:pre-wrap; max-height:180px; overflow:auto; }
.copy-button { border:1px solid var(--line); color:var(--ink); background:var(--panel-2); border-radius:9px; padding:8px 11px; font-size:12px; }
.codex-launcher { position:relative; overflow:hidden; margin-bottom:16px; background:linear-gradient(120deg,#17183b,#102632); border-color:#43447d; }
.codex-launcher::after { content:""; position:absolute; width:180px; height:180px; right:-70px; top:-90px; border-radius:50%; background:#8b78ff18; box-shadow:0 0 70px #44d7c720; }
.launcher-grid { position:relative; z-index:1; display:grid; grid-template-columns:44px 1fr auto; align-items:start; gap:16px; }
.launcher-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; color:#090b14; font-weight:900; background:linear-gradient(135deg,var(--purple),var(--cyan)); }
.launcher-copy h2 { margin:0 0 6px; font-size:18px; }
.launcher-copy p { color:var(--muted); line-height:1.5; margin:0; }
.launcher-meta { color:var(--cyan); text-transform:uppercase; letter-spacing:.1em; font-size:11px; font-weight:800; margin-bottom:6px; }
.prompt-preview { position:relative; z-index:1; margin:16px 0 0 60px; padding:14px 16px; color:#aeb7d3; background:#090d19a8; border:1px solid #303855; border-radius:11px; font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; max-height:126px; overflow:hidden; }
.setup-steps { display:grid; gap:14px; counter-reset:steps; }
.setup-step { display:grid; grid-template-columns:34px 1fr; gap:12px; align-items:start; }
.setup-step::before { counter-increment:steps; content:counter(steps); width:30px; height:30px; display:grid; place-items:center; border-radius:9px; color:#090b14; background:var(--cyan); font-weight:800; }
.setup-step h3 { margin:3px 0 5px; }
.setup-step p { margin:0; color:var(--muted); line-height:1.5; }
.command-box { display:flex; gap:10px; align-items:center; margin-top:18px; padding:12px; border:1px solid var(--line); border-radius:11px; background:#090d19; }
.command-box code { flex:1; min-width:0; overflow:auto; color:#c9d1f0; font-size:12px; white-space:nowrap; }
@media (max-width: 960px) { .stats { grid-template-columns:repeat(2,1fr); } .two-col { grid-template-columns:1fr; } }
@media (max-width: 720px) {
  .xp-login { grid-template-rows:50px 1fr 64px; }
  .xp-welcome { grid-template-columns:1fr; gap:26px; padding:28px 20px; }
  .xp-divider { display:none; }
  .xp-intro { text-align:left; }
  .xp-logo { width:54px; height:54px; margin:0; }
  .xp-intro h1 { font-size:38px; margin:10px 0 4px; }
  .xp-intro p { font-size:16px; }
  .xp-bottom { justify-content:flex-start; }
  .xp-user-card { min-height:68px; }
  .xp-avatar { width:54px; height:54px; }
  .xp-password-panel label,.xp-back,.xp-password-panel .error { margin-left:71px; }
  .xp-password-row { padding-left:71px; }
  .app-shell { display:block; }
  .sidebar { position:fixed; z-index:10; width:270px; transform:translateX(-100%); transition:transform .2s ease; box-shadow:20px 0 50px #000a; }
  .sidebar.open { transform:translateX(0); }
  .main { padding:22px 16px 50px; }
  .menu { display:block; border:1px solid var(--line); border-radius:9px; background:var(--panel); color:var(--ink); padding:7px 10px; }
  .readonly-pill { display:none; }
  .topbar { justify-content:flex-start; }
  .stats,.item-list { grid-template-columns:1fr; }
  .map { min-height:720px; overflow:auto; }
  .node { position:relative; left:auto!important; top:auto!important; transform:none; width:100%; margin-bottom:10px; }
  .login-card { padding:32px 24px; }
  .launcher-grid { grid-template-columns:40px 1fr; }
  .launcher-grid .copy-button { grid-column:1/-1; width:100%; }
  .prompt-preview { margin-left:0; }
}
