/* ============ Sylvora design system — "Quiet Paper" (see DESIGN.md) ============ */

:root {
  --bg: #FFFFFF;
  --bg-sidebar: #F7F7F5;
  --bg-hover: #F1F1EF;
  --bg-active: #EDEDEB;
  --bg-input: #F7F7F5;
  --ink: #37352F;
  --ink-secondary: #787774;
  --ink-faint: #9B9A97;
  --border: #E9E9E7;
  --accent: #D9730D;
  --accent-hover: #C4670C;
  --accent-soft: #FAEBDD;
  --accent-dim: #EDD9C5;
  --toast-bg: #37352F;
  --toast-ink: #FFFFFF;
  --danger: #C4554D;

  --green-bg:#DBEDDB; --green-ink:#1C3829;
  --red-bg:#FFE2DD;   --red-ink:#5D1715;
  --yellow-bg:#FDECC8;--yellow-ink:#402C1B;
  --blue-bg:#D3E5EF;  --blue-ink:#183347;
  --purple-bg:#E8DEEE;--purple-ink:#412454;
  --gray-bg:#F1F1EF;  --gray-ink:#64635C;

  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-pop: 0 0 0 1px rgba(15,15,15,.05), 0 3px 6px rgba(15,15,15,.1), 0 9px 24px rgba(15,15,15,.2);
  --sidebar-w: 248px;
}

/* Dark theme — Notion-dark inspired: warm charcoal, muted pills, same single accent */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191919;
  --bg-sidebar: #202020;
  --bg-hover: #2A2A2A;
  --bg-active: #333333;
  --bg-input: #252525;
  --ink: #D4D4D4;
  --ink-secondary: #9B9B98;
  --ink-faint: #6F6E69;
  --border: #303030;
  --accent: #D9730D;
  --accent-hover: #E8821E;
  --accent-soft: #3E2A17;
  --accent-dim: #4A3626;
  --toast-bg: #3F3F3F;
  --toast-ink: #EDEDEB;
  --danger: #E16F67;
  --shadow-pop: 0 0 0 1px rgba(255,255,255,.06), 0 3px 6px rgba(0,0,0,.3), 0 9px 24px rgba(0,0,0,.5);

  --green-bg:#243D30;  --green-ink:#9CCFAB;
  --red-bg:#4E2C2A;    --red-ink:#E8A9A2;
  --yellow-bg:#4A3A21; --yellow-ink:#E0C285;
  --blue-bg:#1F3A4D;   --blue-ink:#93C3DE;
  --purple-bg:#3B2C4E; --purple-ink:#C5A9E0;
  --gray-bg:#333333;   --gray-ink:#A5A29E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
svg { flex-shrink: 0; }
.list-row > svg, .attention-item > svg, .crumb svg, .section-title > svg,
.code-banner > svg, .auth-sub svg, .empty svg { width: 16px; height: 16px; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
::placeholder { color: var(--ink-faint); }

/* ---------------- app shell ---------------- */
.shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--bg-sidebar);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  padding: 8px; overflow-y: auto;
}
.workspace {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; margin-bottom: 4px; cursor: default;
}
.workspace:hover { background: var(--bg-hover); }
.workspace .logo-mark {
  width: 22px; height: 22px; border-radius: 5px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.workspace .ws-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-section { margin-top: 18px; }
.nav-label {
  font-size: 11.5px; font-weight: 600; color: var(--ink-faint);
  padding: 0 10px 4px; letter-spacing: 0.02em;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 4px 10px; min-height: 27px; border-radius: var(--radius);
  font-size: 14px; color: var(--ink-secondary); font-weight: 500;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; }
.nav-item:hover { background: var(--bg-hover); color: var(--ink); }
.nav-item.active { background: var(--bg-active); color: var(--ink); font-weight: 600; }
.nav-item .nav-badge {
  margin-left: auto; font-size: 11.5px; background: var(--accent-soft); color: var(--accent);
  border-radius: 10px; padding: 0 6px; font-weight: 600;
}
.sidebar-foot { margin-top: auto; padding: 10px; font-size: 12px; color: var(--ink-faint); }
.sidebar-foot .sim-note { display: flex; gap: 6px; align-items: center; }

.content { flex: 1; overflow-y: auto; }
.page { max-width: 1080px; margin: 0 auto; padding: 44px 40px 120px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.page-head h1 { font-size: 28px; line-height: 1.2; }
.page-sub { color: var(--ink-secondary); font-size: 14px; margin-top: 4px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; padding-top: 4px; }

.section { margin-top: 36px; }
.section-title {
  font-size: 13px; font-weight: 600; color: var(--ink-secondary);
  padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.section-title .right { margin-left: auto; font-weight: 500; color: var(--ink-faint); font-size: 12.5px; }

/* ---------------- buttons, pills, inputs ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; transition: background .1s;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg); border-color: var(--border); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-ghost { color: var(--ink-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--ink); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { height: 26px; padding: 0 9px; font-size: 13px; border-radius: 5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500;
  padding: 1px 8px; border-radius: 4px; white-space: nowrap;
}
.pill-green { background: var(--green-bg); color: var(--green-ink); }
.pill-red { background: var(--red-bg); color: var(--red-ink); }
.pill-yellow { background: var(--yellow-bg); color: var(--yellow-ink); }
.pill-blue { background: var(--blue-bg); color: var(--blue-ink); }
.pill-purple { background: var(--purple-bg); color: var(--purple-ink); }
.pill-gray { background: var(--gray-bg); color: var(--gray-ink); }
.pill-accent { background: var(--accent-soft); color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-secondary); }
.input, .select, .textarea {
  height: 34px; padding: 0 10px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; width: 100%; outline: none;
}
.textarea { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 2px var(--accent-soft);
}
.select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23787774' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.checkbox-row input { width: 15px; height: 15px; accent-color: var(--accent); }
.checkbox-row .hint { color: var(--ink-faint); font-size: 12.5px; }

/* ---------------- tables ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 12.5px; font-weight: 500; color: var(--ink-secondary);
  padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: var(--bg-hover); }
.tbl .num { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.tbl th.num { font-family: var(--font); font-size: 12.5px; }
.tbl .row-actions { opacity: 0; display: flex; gap: 4px; justify-content: flex-end; }
.tbl tr:hover .row-actions { opacity: 1; }
.tbl .clickable { cursor: pointer; }
.tbl .cell-main { font-weight: 500; }
.tbl .cell-sub { font-size: 12.5px; color: var(--ink-secondary); }
.muted { color: var(--ink-secondary); }
.faint { color: var(--ink-faint); }
.mono { font-family: var(--mono); font-size: .92em; }
.small { font-size: 12.5px; }

/* ---------------- dashboard ---------------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 8px 0 12px;
}
.stat { padding: 16px 18px 14px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .stat-num { font-family: var(--mono); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.stat .stat-label { font-size: 12.5px; color: var(--ink-secondary); margin-top: 2px; }
.stat .stat-hint { font-size: 11.5px; margin-top: 2px; }

.attention-item, .feed-item, .list-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.attention-item:hover, .list-row:hover { background: var(--bg-hover); }
.feed-item { color: var(--ink-secondary); font-size: 13.5px; }
.feed-item .feed-time { margin-left: auto; color: var(--ink-faint); font-size: 12px; white-space: nowrap; }
.feed-icon { width: 22px; height: 22px; border-radius: 4px; background: var(--gray-bg);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed-icon svg { width: 13px; height: 13px; }
.list-row .row-actions2 { margin-left: auto; display: flex; gap: 6px; opacity: 0; }
.list-row:hover .row-actions2 { opacity: 1; }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------------- schedule ---------------- */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 12px; }
.day-col { min-height: 120px; }
.day-head { font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); padding: 4px 2px; }
.day-head .d-num { color: var(--ink-faint); font-weight: 500; margin-left: 4px; }
.day-head.today-col { color: var(--accent); }
.sched-block {
  background: var(--bg-hover); border-left: 3px solid var(--ink-faint); border-radius: 4px;
  padding: 6px 8px; margin-bottom: 6px; font-size: 12.5px; cursor: pointer;
}
.sched-block:hover { background: var(--bg-active); }
.sched-block .sb-time { color: var(--ink-secondary); font-size: 11.5px; }
.sched-block .sb-name { font-weight: 600; line-height: 1.3; }
.sched-block .sb-meta { color: var(--ink-secondary); font-size: 11.5px; }
.sched-block.private { background: var(--purple-bg); border-left-color: #9065B0; }
.sched-block.private .sb-time, .sched-block.private .sb-meta { color: var(--purple-ink); opacity: .75; }
.sched-block.private .sb-name { color: var(--purple-ink); }

/* ---------------- attendance ---------------- */
.roll-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-bottom: 1px solid var(--border); }
.roll-row:hover { background: var(--bg-hover); }
.roll-name { font-weight: 500; flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.seg button { padding: 3px 12px; font-size: 13px; color: var(--ink-secondary); border-right: 1px solid var(--border); }
.seg button:last-child { border-right: none; }
.seg button:hover { background: var(--bg-hover); }
.seg button.on-present { background: var(--green-bg); color: var(--green-ink); font-weight: 600; }
.seg button.on-absent { background: var(--red-bg); color: var(--red-ink); font-weight: 600; }
.seg button.on-late { background: var(--yellow-bg); color: var(--yellow-ink); font-weight: 600; }

/* ---------------- modals, palette, toast ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(15,15,15,.35); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
}
.modal {
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  width: 100%; max-width: 520px; max-height: 78vh; overflow-y: auto; padding: 24px;
}
.modal h2 { font-size: 18px; margin-bottom: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal .form-error { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 18px; }

.palette { max-width: 560px; margin-top: 0; padding: 0; overflow: hidden; }
.palette input {
  width: 100%; border: none; outline: none; padding: 14px 16px; font-size: 15px;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.palette-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.palette-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius);
  font-size: 14px; cursor: pointer; width: 100%; text-align: left;
}
.palette-item svg { width: 15px; height: 15px; opacity: .7; }
.palette-item.sel { background: var(--bg-active); }
.palette-item .pi-kind { margin-left: auto; font-size: 11.5px; color: var(--ink-faint); }

#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; }
.toast {
  background: var(--toast-bg); color: var(--toast-ink); font-size: 13.5px; padding: 9px 16px;
  border-radius: var(--radius); box-shadow: var(--shadow-pop); margin-top: 8px;
  animation: toast-in .18s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------------- charts ---------------- */
.chart-wrap { margin: 10px 0 4px; }
.chart-tip {
  position: fixed; z-index: 90; background: var(--toast-bg); color: var(--toast-ink); font-size: 12.5px;
  padding: 5px 9px; border-radius: 5px; pointer-events: none; white-space: nowrap;
  box-shadow: var(--shadow-pop);
}
.chart-tip .tip-num { font-family: var(--mono); font-weight: 600; }
.bar-rect { fill: var(--accent); }
.bar-rect.dim { fill: var(--accent-dim); }
.bar-rect:hover { fill: var(--accent-hover); }
.axis-text { font-size: 11px; fill: var(--ink-faint); font-family: var(--font); }
.axis-num { font-size: 11px; fill: var(--ink-faint); font-family: var(--mono); }
.guide { stroke: var(--border); stroke-dasharray: 3 3; }
.baseline { stroke: var(--border); }
.bar-label { font-size: 11px; font-family: var(--mono); fill: var(--ink-secondary); }

/* ---------------- empty states, misc ---------------- */
.empty {
  text-align: center; padding: 48px 20px; color: var(--ink-secondary); font-size: 14px;
}
.empty .btn { margin-top: 12px; }
.sim-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-faint);
  background: var(--gray-bg); border-radius: 4px; padding: 1px 7px; font-weight: 500;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.crumb { font-size: 13.5px; color: var(--ink-secondary); margin-bottom: 10px; display: inline-flex; gap: 6px; align-items: center; }
.crumb:hover { color: var(--ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.tab {
  padding: 6px 12px; font-size: 14px; color: var(--ink-secondary); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.kbd {
  font-family: var(--mono); font-size: 11px; background: var(--bg); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink-secondary);
}
.search-input {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
  width: 240px;
}
.search-input svg { width: 14px; height: 14px; color: var(--ink-faint); flex-shrink: 0; }
.search-input input { border: none; outline: none; background: none; width: 100%; font-size: 14px; }

/* ---------------- auth & landing & public ---------------- */
.auth-wrap {
  min-height: 100vh; background: var(--bg-sidebar); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; width: 100%; max-width: 400px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card .auth-sub { color: var(--ink-secondary); font-size: 14px; margin-bottom: 24px; }
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 28px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--ink-secondary); margin-top: 18px; }
.auth-alt a { color: var(--accent); font-weight: 500; }
.role-toggle {
  display: flex; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 3px; margin-bottom: 20px; gap: 2px;
}
.role-toggle button { flex: 1; padding: 5px 8px; border-radius: 4px; font-size: 13.5px;
  color: var(--ink-secondary); font-weight: 500; }
.role-toggle button.on { background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,15,15,.12); font-weight: 600; }
.code-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 8px;
  background: var(--accent-soft); border-radius: var(--radius-lg); font-size: 13.5px;
  flex-wrap: wrap;
}
.code-banner .code {
  font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 3px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px;
}
.btn-block { width: 100%; justify-content: center; height: 36px; }

.landing { min-height: 100vh; }
.landing-nav {
  display: flex; align-items: center; gap: 8px; padding: 18px 40px; max-width: 1080px; margin: 0 auto;
}
.landing-nav .spacer { flex: 1; }
.hero { max-width: 780px; margin: 0 auto; padding: 90px 40px 40px; text-align: center; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; }
.hero .hero-sub { font-size: 19px; color: var(--ink-secondary); margin: 20px auto 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; }
.hero-ctas .btn { height: 40px; padding: 0 18px; font-size: 15px; }
.feature-grid {
  max-width: 980px; margin: 60px auto 80px; padding: 0 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px;
}
.feature-item { display: flex; gap: 12px; padding: 14px 4px; align-items: flex-start; }
.feature-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.feature-item .f-name { font-weight: 600; font-size: 14.5px; }
.feature-item .f-desc { font-size: 13.5px; color: var(--ink-secondary); }
.landing-foot { text-align: center; padding: 30px; color: var(--ink-faint); font-size: 12.5px; border-top: 1px solid var(--border); }

.public-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 100px; }
.public-head { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.public-head h1 { font-size: 30px; }
.public-studio-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  color: var(--ink-secondary); font-size: 13.5px; }
.class-card { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--border); }
.class-card .cc-when { width: 92px; flex-shrink: 0; text-align: center; }
.class-card .cc-day { font-weight: 700; font-size: 15px; }
.class-card .cc-time { font-size: 12.5px; color: var(--ink-secondary); }
.class-card .cc-name { font-weight: 600; }
.class-card .cc-meta { font-size: 12.5px; color: var(--ink-secondary); }
.class-card .cc-right { margin-left: auto; text-align: right; flex-shrink: 0; }
.class-card .cc-price { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.invoice-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 20px; }
.inv-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.inv-line:last-of-type { border-bottom: none; }
.inv-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 700; font-size: 16px; }
.inv-total .mono { font-size: 16px; }
.paid-stamp {
  display: inline-block; border: 2px solid var(--green-ink); color: var(--green-ink);
  border-radius: 6px; padding: 2px 10px; font-weight: 700; transform: rotate(-4deg);
  background: var(--green-bg); font-size: 14px;
}

/* onboarding */
.onb-wrap { max-width: 620px; margin: 0 auto; padding: 60px 24px 120px; }
.onb-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.onb-choice {
  display: flex; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; margin-bottom: 12px; align-items: flex-start; text-align: left; width: 100%;
}
.onb-choice:hover { background: var(--bg-hover); }
.onb-choice svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.onb-choice .oc-title { font-weight: 600; font-size: 15px; }
.onb-choice .oc-desc { color: var(--ink-secondary); font-size: 13.5px; }
.progress-dots { display: flex; gap: 6px; margin-bottom: 28px; }
.progress-dots span { width: 26px; height: 4px; border-radius: 2px; background: var(--border); }
.progress-dots span.on { background: var(--accent); }

.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.spacer { flex: 1; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.flex { display: flex; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 800px) {
  .page { padding: 28px 20px 100px; }
  .week-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}
