/* Career Command styles, from the Stitch "Executive Transition Command" design system. */
:root {
  --bg: #F7F6F2; --card: #FFFFFF; --line: #E4E1D8; --line-strong: #D5D1C6;
  --navy: #14213D; --text: #14213D; --muted: #4A5568; --faint: #718096;
  --orange: #E07A2E; --orange-dark: #B5541A; --orange-soft: #FDF5EC; --orange-line: #F4D3B8;
  --nav-active: #FF9244; --nav-active-text: #6B3100;
  --blue: #2F5DA8; --blue-soft: #EFF4FA; --blue-line: #C6D8EF;
  --green: #346548; --green-soft: #EDF4EE; --green-line: #C4DCC8;
  --red: #8C2B2B; --track: #E3E2DF; --hover: #F9F9F6;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --shadow: 0 4px 16px -2px rgba(20, 33, 61, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/22px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; }

/* layout */
.shell { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 256px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(20,33,61,.06); background: var(--bg); overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 16px 12px; margin-bottom: 8px; }
.brand .logo { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 16px var(--serif); flex: none; }
.brand b { display: block; font: 700 20px/24px var(--serif); color: var(--navy); }
.brand small { font: 600 11px/14px var(--sans); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: rgba(227,226,223,.5); color: var(--navy); }
.nav a.on { background: var(--nav-active); color: var(--nav-active-text); font-weight: 600; }
.side-foot { border-top: 1px solid rgba(20,33,61,.06); padding-top: 12px; font-size: 13px; color: var(--muted); }
.side-foot button { margin-top: 8px; width: 100%; }
main { flex: 1; margin-left: 256px; padding: 48px; max-width: 1440px; min-width: 0; }
.topbar { display: none; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: 32px; line-height: 40px; letter-spacing: -.015em; }
.page-head p { color: var(--muted); margin: 4px 0 0; }

/* cards & grid */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: box-shadow .2s; min-width: 0; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { font-size: 20px; line-height: 28px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.section { margin: 40px 0 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section h2 { font-size: 24px; line-height: 32px; }
.label { font: 600 11px/14px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.big { font: 600 32px/40px var(--serif); color: var(--navy); letter-spacing: -.015em; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 18px; }

/* chips */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .04em; border: 1px solid; white-space: nowrap; }
.chip.done { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.chip.doing { background: var(--orange-soft); color: #C6621B; border-color: var(--orange-line); }
.chip.plan { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.chip.warn { background: #FBEDED; color: var(--red); border-color: #EBC9C9; }

/* progress */
.bar { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.bar.orange > i { background: var(--orange); }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 9px 16px; font-weight: 600; cursor: pointer; border: 1px solid var(--navy); background: transparent; color: var(--navy); text-decoration: none; }
.btn:hover { background: var(--navy); color: #fff; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: #CE6B22; }
.btn.quiet { border-color: transparent; color: var(--muted); padding: 6px 8px; }
.btn.quiet:hover { background: var(--hover); color: var(--navy); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=url], select, textarea {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(47,93,168,.15); border-color: var(--blue); }
textarea { min-height: 110px; resize: vertical; }
.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }

/* tasks */
.task { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; margin-bottom: 10px; }
.task:hover { background: var(--hover); }
.task input { width: 20px; height: 20px; accent-color: var(--orange); margin-top: 1px; flex: none; }
.task .tt { font-weight: 600; }
.task.is-done .tt { text-decoration: line-through; opacity: .7; }
.task .td { color: var(--muted); font-size: 13px; line-height: 18px; }
.task .th { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: 13px; }

/* week stepper */
.stepper { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; }
.step { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 0; text-align: center; font: 600 14px var(--serif); color: var(--faint); text-decoration: none; }
.step.done { border-color: var(--blue); color: var(--blue); }
.step.now { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 3px rgba(224,122,46,.2); }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(20,33,61,.06); vertical-align: top; }
th { font: 600 11px/14px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tr:hover td { background: var(--hover); }
.table-wrap { overflow-x: auto; }

/* lists */
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(20,33,61,.06); }
.list-row:last-child { border-bottom: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: 13px; }
.tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* quiz */
.opt { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; cursor: pointer; }
.opt:hover { background: var(--hover); }
.opt.right { background: var(--green-soft); border-color: var(--green-line); color: var(--green); font-weight: 600; }
.opt.wrong { background: #FBEDED; border-color: #EBC9C9; color: var(--red); }
.why { background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }

/* details */
details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
details .body { padding: 0 16px 16px; color: var(--muted); }

/* chart */
.chart svg { width: 100%; height: auto; display: block; }

/* toast */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none; z-index: 99; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--red); }

.empty { color: var(--faint); padding: 18px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 10px; }
.note { background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 10px; padding: 12px 14px; color: #6B3100; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 400px; }
.login .brand { padding: 0 0 20px; }

/* responsive */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); background: var(--bg); }
  .side.open { transform: none; }
  main { margin-left: 0; padding: 16px; }
  .topbar { display: flex; align-items: center; gap: 12px; margin: -16px -16px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
  .topbar b { font: 700 18px var(--serif); }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .stepper { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .page-head h1 { font-size: 24px; line-height: 32px; }
  .task .th { display: none; }
}

/* ---- v2: study notes, practice modes, mock exam ---- */
.stepper .step { font-size: 13px; line-height: 16px; padding: 10px 6px; }
.stepper .step small { font: 400 11px/14px var(--sans); color: inherit; opacity: .85; }
details.notes { margin: -4px 0 12px; background: #FBFAF6; border-color: var(--line); }
details.notes summary { font-size: 13px; color: var(--blue); padding: 10px 14px; }
details.notes[open] summary { border-bottom: 1px solid var(--line); }
details.notes .body { padding: 14px 16px; color: var(--text); }
.note-why { margin: 0 0 12px; padding: 10px 12px; background: var(--orange-soft); border-left: 3px solid var(--orange); border-radius: 6px; font-size: 13px; }
.chapter { margin-bottom: 14px; }
.chapter h4 { font: 600 15px/22px var(--sans); color: var(--navy); margin: 0 0 6px; }
.chapter ul { margin: 0; padding-left: 20px; }
.chapter li { margin-bottom: 4px; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12px; }
.srcs a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.srcs .icon { font-size: 14px; }
.vis-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(90deg, #8B5CF6, #EC4899); padding: 6px 12px; border-radius: 999px; text-decoration: none; margin-bottom: 12px; }
.notes-extra { margin: -4px 0 12px; }
.domain ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.guide-card .chapter { padding-top: 4px; }
.opt.picked { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.mockcta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(110deg, #FFF7ED, #EFF6FF); }
.mockbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; position: sticky; top: 8px; z-index: 5; }
.timer { font: 700 22px var(--serif); color: var(--navy); }
.timer.low { color: var(--red); }
.qdots { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.qdot { width: 32px; height: 28px; border-radius: 6px; border: 1px solid var(--line-strong); background: #fff; font-size: 12px; cursor: pointer; }
.qdot.ans { background: var(--blue-soft); border-color: var(--blue); }
.qdot.flag { box-shadow: inset 0 -3px 0 var(--orange); }
.qdot.cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.prompt p { line-height: 20px; }
code { font: 600 12px/18px ui-monospace, Menlo, monospace; background: #F1EFE8; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

/* ---- Visual Lab: its own colourful look ---- */
body[data-page="visuals"] main { background: radial-gradient(circle at 10% 0%, #FDF2F8 0, transparent 40%), radial-gradient(circle at 90% 10%, #EFF6FF 0, transparent 45%); }
.vlab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.vlab-nav a { --c: #8B5CF6; text-decoration: none; font-weight: 600; font-size: 13px; color: #fff; background: var(--c); padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 12px -4px var(--c); }
.vcard { --c: #8B5CF6; background: #fff; border-radius: 22px; padding: 22px; margin-bottom: 32px; border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); box-shadow: 0 18px 40px -24px var(--c); scroll-margin-top: 16px; }
.vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vhead h2 { font-size: 26px; line-height: 32px; }
.vtopic { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c); padding: 6px 10px; border-radius: 999px; margin-bottom: 8px; }
.vbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.vsvg { border-radius: 18px; overflow: hidden; }
.vside h3 { font-size: 18px; margin-bottom: 8px; }
.vside ol { margin: 0 0 14px; padding-left: 20px; }
.vside li { margin-bottom: 8px; }
.vside li::marker { color: var(--c); font-weight: 700; }
.vtip { background: color-mix(in srgb, var(--c) 12%, #fff); border-left: 4px solid var(--c); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .mockbar { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ---- Visual Lab topic picker ---- */
.vpicker { display: grid; gap: 14px; margin-bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.vgroup { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.vglabel { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 170px; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.vchip { --c: #8B5CF6; border: 2px solid var(--c); color: var(--c); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; }
.vchip:hover { background: color-mix(in srgb, var(--c) 12%, #fff); }
.vchip.on { background: var(--c); color: #fff; box-shadow: 0 6px 16px -6px var(--c); }
