/* Account pages: home (today + plan), onboarding, parent hub, mistake review, tools. Builds on site.css + act.css. */
.app { padding-top: 104px; padding-bottom: 96px; }
@media (max-width: 640px) { .app { padding-top: 88px; } .wrap.app { padding-left: 18px; padding-right: 18px; } }
.nav-links a[aria-current="page"] { color: #fff; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.03em; color: var(--text-hi); line-height: 1.1; }
.app-head .copy { margin-top: 10px; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 99px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.chip strong { color: var(--text-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.hot { border-color: #3a3a3a; color: var(--text); background: #0d0d0d; }
.chip svg { width: 14px; height: 14px; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-main > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 960px) { .grid-main { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: 22px; min-width: 0; }
.box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.box-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text-hi); letter-spacing: -.005em; }
.box-head .sub { font-size: 13px; color: var(--faint); }
.box-foot { margin-top: 14px; font-size: 13px; color: var(--faint); }
.box.hero { background: linear-gradient(180deg, #0c0c0d, #060606); border-color: #222; }
.empty-state { text-align: left; padding: 8px 0; color: var(--muted-2); font-size: 14px; line-height: 1.55; }
.empty-state .btn { margin-top: 14px; }

/* tasks */
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line-2); }
.task:first-child { border-top: 0; padding-top: 4px; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #3a3a3a; display: grid; place-items: center; }
.task.done .tick { background: #fff; border-color: #fff; }
.task.done .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg) translate(1px, -1px); }
.task-title { color: var(--text-hi); font-weight: 500; font-size: 15px; }
.task.done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: #444; }
.task-meta { font-size: 13px; color: var(--faint); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.task-meta .due-late { color: #ffb48a; }
.task-meta .from { color: var(--muted); }
.task .btn { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.task-note { font-size: 13px; color: var(--muted); margin-top: 6px; padding: 8px 10px; background: #0d0d0d; border-radius: 8px; border: 1px solid var(--line-2); }

/* week view */
.week-nav { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-3); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover:not(:disabled) { color: #fff; border-color: #3a3a3a; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 14px; height: 14px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 9px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; background: #050505; }
.wday.today { border-color: #4a4a4a; background: #0b0b0c; }
.wday.past { opacity: .8; }
.wday-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.wday-h strong { color: var(--text); font-weight: 600; }
.wday.today .wday-h strong { color: #000; background: #fff; border-radius: 6px; padding: 0 5px; }
.wtask { font-size: 11.5px; line-height: 1.3; padding: 6px 7px; border-radius: 7px; border: 1px solid var(--line-3); color: var(--text); }
.wtask.done { background: #ededed; color: #000; border-color: #ededed; }
.wtask.missed { border-style: dashed; color: var(--faint); }
.wtask.full { border-color: #5a5a5a; }
.wtask b { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: .02em; opacity: .75; margin-bottom: 1px; }
.wtask.done b { opacity: .6; }
.wtask small { display: block; color: inherit; opacity: .7; margin-top: 2px; }
.wrest { font-size: 11.5px; color: #4a4a4a; margin-top: auto; }
.wexam { font-size: 11.5px; font-weight: 600; color: #000; background: #fff; border-radius: 7px; padding: 6px 7px; }
@media (max-width: 760px) {
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .wday-h { width: 100%; }
}

/* goals */
.goal { padding: 14px 0; border-top: 1px solid var(--line-2); }
.goal:first-child { border-top: 0; padding-top: 0; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.goal-name { font-weight: 600; color: var(--text-hi); }
.goal-when { font-size: 13px; color: var(--faint); }
.goal-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.goal-nums div { font-size: 12px; color: var(--faint); }
.goal-nums strong { display: block; font-size: 20px; color: var(--text-hi); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.goal-bar { position: relative; height: 6px; border-radius: 6px; background: var(--line-3); margin-top: 12px; }
.goal-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: #e8e8e8; border-radius: 6px; }
.goal-bar .target { position: absolute; top: -4px; width: 2px; height: 14px; background: #fff; border-radius: 1px; }
.spark { width: 100%; height: 44px; margin-top: 10px; }
.spark path.line { fill: none; stroke: #e8e8e8; stroke-width: 1.6; }
.spark path.area { fill: rgba(255, 255, 255, .025); }
.spark line.tgt { stroke: #555; stroke-dasharray: 3 3; }
.spark circle { fill: #fff; }

/* practice chart */
.bars { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 3px; align-items: end; height: 90px; }
.bars span { display: block; background: #2a2a2a; border-radius: 3px 3px 1px 1px; min-height: 3px; position: relative; }
.bars span.on { background: #e8e8e8; }
.bars span.today { outline: 1px solid #fff; outline-offset: 1px; }
.bars span:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #000; font-size: 11px; padding: 3px 6px; border-radius: 5px; z-index: 2; }
.bars-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; }
.kpi .l { font-size: 12px; color: var(--faint); }
.kpi .v { font-size: 22px; font-weight: 600; color: var(--text-hi); margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .s { font-size: 12px; color: var(--muted-2); }

/* lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.rows li:first-child { border-top: 0; }
.rows .r-main { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .r-sub { grid-column: 1 / -1; font-size: 12px; color: var(--faint); margin-top: -2px; }
.rows .r-val { color: var(--text-hi); font-variant-numeric: tabular-nums; }
.rows a.r-main:hover { color: #fff; }
.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 38px auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.skill-row .btn { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.subhead { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 16px 0 4px; }
.subhead:first-child { margin-top: 0; }

/* code box */
.code-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code { font: 600 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; color: #fff; padding: 12px 16px; border: 1px dashed #444; border-radius: 10px; background: #0a0a0a; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.input, select.input, textarea.input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-3); background: #0a0a0a; color: var(--text); font-size: 15px; min-width: 0; }
textarea.input { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; font: inherit; font-size: 14px; }
.input:focus { outline: none; border-color: #5a5a5a; }
select.input { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.input.code-in { font-family: ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; width: 190px; }
label.lbl { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.msg { font-size: 13px; min-height: 1.3em; margin-top: 8px; color: var(--muted); }
.msg.err { color: #ff9b8a; }
.msg.ok { color: #cfe9d6; }

/* sign-in gate */
.gate { max-width: 520px; margin: 40px auto; text-align: center; }
.gate h1 { font-size: 32px; letter-spacing: -.03em; margin: 10px 0 12px; color: var(--text-hi); }
.gate p { color: var(--muted); line-height: 1.55; }
.gate .g-btn { margin: 22px auto 0; height: 44px; padding: 0 20px; font-size: 15px; }

/* onboarding */
.wizard { max-width: 760px; margin: 0 auto; }
.wizard.two { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.wiz-main { min-width: 0; }
.wiz-aside { position: sticky; top: 96px; }
@media (max-width: 980px) { .wizard.two { grid-template-columns: 1fr; gap: 28px; } .wiz-aside { position: static; } }
.wsteps { list-style: none; margin: 0 0 36px; padding: 0; display: flex; gap: 6px; }
.wsteps li { flex: 1; min-width: 0; }
.wsteps li > * { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--faint); text-align: left; letter-spacing: .02em; }
.wsteps button { cursor: pointer; }
.wsteps button:hover { color: #fff; }
.wsteps i { display: block; height: 3px; border-radius: 3px; background: var(--line-3); transition: background .3s ease; }
.wsteps li.done > * { color: var(--muted); }
.wsteps li.done i { background: #8a8a8a; }
.wsteps li.on > * { color: #fff; font-weight: 500; }
.wsteps li.on i { background: #fff; }
@media (max-width: 560px) { .wsteps li > * { font-size: 0; gap: 0; } }
.aside-card { border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; background: linear-gradient(180deg, #0b0b0c, #060606); }
.aside-h { font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.aside-foot { font-size: 13px; color: var(--faint); margin: 16px 0 0; line-height: 1.5; }
.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 10px; font-size: 14px; }
.how li::before { content: counter(how); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #3a3a3a; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.how b { color: var(--text-hi); font-weight: 500; }
.how span { color: var(--faint); font-size: 13px; line-height: 1.5; }
.ap-who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.ap-who b { display: block; color: var(--text-hi); }
.ap-who span { font-size: 12px; color: var(--faint); }
.avatar-ph { width: 36px; height: 36px; border-radius: 50%; background: #1d1d1f; border: 1px solid #333; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; flex: none; }
.avatar-ph.lg { width: 52px; height: 52px; font-size: 18px; }
.ap-list { list-style: none; margin: 0; padding: 0; }
.ap-list li { padding: 12px 0; border-top: 1px solid var(--line-2); }
.ap-list li:first-child { border-top: 0; }
.ap-top { display: flex; justify-content: space-between; gap: 10px; }
.ap-top b { color: var(--text-hi); font-weight: 500; font-size: 14px; }
.ap-sc { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-when { display: block; font-size: 12px; color: var(--faint); margin-top: 3px; }
.ap-time { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ap-time b { display: block; color: #fff; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-time span { font-size: 11px; color: var(--faint); }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .tiles.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tiles.two { grid-template-columns: 1fr; } }
.t-ico { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #2c2c2c; display: grid; place-items: center; margin-bottom: 10px; color: #ddd; }
.t-ico svg { width: 20px; height: 20px; }
.tile[aria-pressed="true"] .t-ico { border-color: #555; color: #fff; }
.t-meta { font-size: 12px; color: #6f6f6f; margin-top: 6px; }
.who { margin-top: 26px; }
.input.big { height: 48px; font-size: 16px; width: 100%; max-width: 380px; }
.seg.wide button { min-width: 62px; }
.tile-group { margin-bottom: 20px; }
.tile-group .subhead { margin: 0 0 8px; }
.hint { font-size: 13px; color: var(--muted); min-height: 1.4em; margin: 4px 0 0; }
.fine-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; }
.row-note { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }
.away { font-size: 12px; color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.date-chips, .goal-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.goal-chips { margin-top: 12px; }
.goal-chips:empty { display: none; }
.gc-l { font-size: 12px; color: var(--faint); margin-right: 4px; }
.dchip { height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-3); background: transparent; color: var(--text); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.dchip:hover { border-color: #444; }
.dchip small { color: inherit; opacity: .6; font-size: 11px; }
.dchip.ghost { color: var(--muted); }
.dchip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; font-weight: 500; }
.date-in { margin-top: 10px; width: 220px; }
.callout { border: 1px solid var(--line-2); background: #0a0a0b; border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.callout b { color: var(--text-hi); font-weight: 500; }
.sa-right { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: #070707; }
.pc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pc-top b { color: var(--text-hi); }
.pc-days { font-size: 12px; color: var(--faint); }
.pc-days strong { color: #fff; font-size: 15px; }
.pc-goal { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--muted); margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.pc-goal strong { color: #fff; }
.pc-goal span { font-weight: 400; color: #555; }
.pc-meta { font-size: 12.5px; color: var(--faint); }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .link-grid { grid-template-columns: 1fr; } }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, #0c0c0c 0%, #161616 50%, #0c0c0c 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.step h1 { font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -.035em; line-height: 1.08; margin: 8px 0 10px; color: var(--text-hi); font-weight: 600; }
.step .copy { margin-bottom: 26px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tile { text-align: left; border: 1px solid var(--line-3); background: #070707; color: var(--text); border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; display: flex; flex-direction: column; gap: 4px; position: relative; }
.tile:hover { border-color: #3a3a3a; }
.tile[aria-pressed="true"] { border-color: #fff; background: #0f0f10; }
.tile[aria-pressed="true"]::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.5 3.5L15 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.tile .t-name { font-weight: 600; font-size: 16px; color: var(--text-hi); }
.tile .t-sub { font-size: 13px; color: var(--faint); line-height: 1.45; }
.tile.big { padding: 22px; }
.tile.big .t-name { font-size: 18px; }
.exam-rows { display: flex; flex-direction: column; gap: 12px; }
.exam-row { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: #060606; }
.exam-row-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.exam-row-h strong { color: var(--text-hi); }
.exam-row-h span { font-size: 12px; color: var(--faint); }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; margin-top: 8px; }
.inline-check input { accent-color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line-3); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 460px; }
.days button { height: 44px; border-radius: 10px; border: 1px solid var(--line-3); background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; }
.days button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.q-block { margin-bottom: 26px; }
.q-block > .lbl { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; gap: 10px; }
.summary-line { font-size: 14px; color: var(--muted); }
.preview-week { margin-top: 8px; }

/* parent hub */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-3); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.tab[aria-selected="true"] { background: #fff; color: #000; border-color: #fff; font-weight: 500; }
.tab img { width: 20px; height: 20px; border-radius: 50%; }
.kid-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kid-head img, .kid-head .ph { width: 44px; height: 44px; border-radius: 50%; background: #222; display: grid; place-items: center; font-weight: 600; color: #fff; }
.kid-head h2 { margin: 0; font-size: 22px; color: var(--text-hi); letter-spacing: -.02em; }
.kid-head p { margin: 2px 0 0; font-size: 13px; color: var(--faint); }
.status { font-size: 12px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-3); color: var(--muted); white-space: nowrap; }
.status.ok { background: #ededed; color: #000; border-color: #ededed; }
.status.late { border-color: rgba(255, 180, 138, .45); color: #ffb48a; }
.x-btn { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.x-btn:hover { color: #fff; }

/* review */
.rev-group { margin-bottom: 18px; }
.rev-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.rev-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rev-items li a { display: block; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; color: var(--text); }
.rev-items li a:hover { border-color: #3a3a3a; }
.rev-items small { display: block; color: var(--faint); margin-top: 2px; }
.diff { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
.diff i { width: 5px; height: 5px; border-radius: 50%; background: #333; }
.diff i.on { background: #ddd; }

/* drill card on section dashboards */
.drill { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.drill h2 { margin: 0 0 4px; font-size: 17px; color: var(--text-hi); font-weight: 600; }
.drill p { margin: 0; color: var(--muted-2); font-size: 14px; }
.drill-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drill-form select.input { height: 40px; font-size: 14px; max-width: 280px; }
.drill-form .btn { height: 40px; }
@media (max-width: 860px) { .drill { grid-template-columns: 1fr; } }

/* results: filters + report */
.q-filters { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.report-row { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.report-row select.input { height: 32px; font-size: 13px; }
.report-row .link-btn-sm { height: 32px; }

/* converter tool */
.conv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.conv .big-num { font-size: 56px; font-weight: 600; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; margin-top: 10px; }
@media (max-width: 700px) { .conv { grid-template-columns: 1fr; } }
.conc { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.conc th, .conc td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); text-align: left; }
.conc th { color: var(--faint); font-weight: 500; font-size: 12px; }
.conc tr.hit td { background: #141414; color: #fff; }

/* phones: the app nav becomes a scrollable second row instead of disappearing */
@media (max-width: 860px) {
  .nav-inner { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .nav-links { display: flex !important; order: 3; width: 100%; overflow-x: auto; gap: 22px; padding: 12px 0 12px; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-cta .acct-name, .nav-cta .pill-tag { display: none; }
}

/* balanced page rows: boxes in a row share one height */
.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-strip .kpi { background: var(--surface); padding: 16px 18px; border-radius: 14px; }
.kpi-strip .kpi .v { font-size: 26px; }
@media (max-width: 860px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prow { display: grid; gap: 20px; margin-bottom: 20px; align-items: stretch; }
.prow.r21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.prow.r11 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prow.r12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.stack { margin-bottom: 20px; }
@media (max-width: 960px) { .prow.r21, .prow.r11, .prow.r12 { grid-template-columns: 1fr; } }
.box { display: flex; flex-direction: column; }
.box > .box-foot:last-child { margin-top: auto; padding-top: 14px; }
.meter { height: 5px; border-radius: 5px; background: var(--line-3); margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; background: #e8e8e8; border-radius: 5px; }
.delta { font-style: normal; font-size: 12px; font-weight: 500; margin-left: 6px; padding: 1px 6px; border-radius: 99px; vertical-align: middle; }
.delta.up { background: #ededed; color: #000; }
.delta.down { border: 1px solid #444; color: var(--muted); }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.goal-grid .goal { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: #070707; }
.goal-grid .goal:first-child { padding-top: 16px; border-top: 1px solid var(--line-2); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }
.fcol .subhead { margin-top: 0; margin-bottom: 8px; }
.fskill { padding: 9px 0; border-top: 1px solid var(--line-2); }
.fskill:first-of-type { border-top: 0; }
.fskill-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.fskill-top .sk-name { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fskill-bot { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.fskill-bot .bar { flex: 1; }
.fskill-bot .btn, .fskill-bot .link-btn-sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 7px; flex: none; display: inline-grid; place-items: center; }
.wbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 170px; }
.wbar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.wbar-col { flex: 1; width: 100%; max-width: 44px; position: relative; border-bottom: 1px solid var(--line-3); }
.wbar-col span { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 5px 5px 2px 2px; }
.wbar-col .pl { border: 1px dashed #4a4a4a; background: transparent; }
.wbar-col .dn { background: #e8e8e8; left: 6px; right: 6px; }
.wbar.fut .wbar-col .pl { border-color: #333; }
.wbar-v { font-size: 11.5px; color: var(--muted); height: 14px; font-variant-numeric: tabular-nums; }
.wbar-d { font-size: 12px; color: var(--faint); }
.wbar.today .wbar-d { color: #000; background: #fff; border-radius: 5px; padding: 0 6px; font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--faint); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-dn { background: #e8e8e8; }
.lg-pl { border: 1px dashed #666; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 13px; border: 1px solid var(--line-3); color: var(--muted); white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #666; }
.status-pill.ok::before { background: #7ee2a8; }
.status-pill.warn::before { background: #f3c969; }
.status-pill.late::before { background: #ff8f7a; }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: #666; }
.tab .dot.ok { background: #7ee2a8; } .tab .dot.warn { background: #f3c969; } .tab .dot.late { background: #ff8f7a; }
.tab .avatar-ph { width: 22px; height: 22px; font-size: 10px; }
.tab[aria-selected="true"] .avatar-ph { background: #000; color: #fff; }
.hero-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-card h2 { margin: 0; font-size: 22px; color: var(--text-hi); letter-spacing: -.02em; }
.hero-card .hc-sub { font-size: 13px; color: var(--faint); margin-top: 3px; }
.hero-card .chips { margin-left: auto; }
.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.insights li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--text); line-height: 1.45; }
.insights li .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid #333; color: var(--muted); }
.insights li.good .ic { background: #ededed; color: #000; border-color: #ededed; }
.insights li.warn .ic { border-color: rgba(243, 201, 105, .5); color: #f3c969; }
.insights li.late .ic { border-color: rgba(255, 143, 122, .5); color: #ff8f7a; }
.insights small { display: block; color: var(--faint); font-size: 12.5px; }
.insights .link-btn-sm { margin-top: 6px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.due-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.due-chips .input { height: 34px; width: 160px; font-size: 13px; }
.list-split .subhead { margin-top: 14px; }
.list-split .subhead:first-child { margin-top: 0; }
.mini-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 14px; margin: 0; }
.mini-kv dt { color: var(--faint); }
.mini-kv dd { margin: 0; color: var(--text); }
.week-wrap .week { margin-top: 4px; }
.kpi .v small { font-size: 14px; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.kpi .s a { font-size: inherit; }
.box.flash { border-color: #8a8a8a; box-shadow: 0 0 0 3px rgba(255,255,255,.06); transition: border-color .3s, box-shadow .3s; }
a.tab { text-decoration: none; color: var(--muted); }
img.avatar-ph { object-fit: cover; padding: 0; }
.preview-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: -8px 0 24px; border: 1px solid rgba(243, 201, 105, .35); background: rgba(243, 201, 105, .06); border-radius: 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.preview-bar b { color: var(--text-hi); font-weight: 500; }
.preview-bar > div { flex: 1; min-width: 0; }
.preview-bar .btn { flex: none; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #f3c969; flex: none; box-shadow: 0 0 0 4px rgba(243, 201, 105, .15); }
@media (max-width: 640px) { .preview-bar { flex-wrap: wrap; } .preview-bar .btn { width: 100%; } }
.view-only { font-size: 13.5px; color: var(--faint); margin-top: 10px; max-width: 620px; }
.view-only b { color: var(--muted); font-weight: 500; }
.plan-box { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: #080808; }
.plan-box.pro { border-color: #3a3a3a; background: linear-gradient(180deg, #111112, #070707); }
.pb-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.pb-badge { display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 99px; background: #fff; color: #000; font-size: 12px; font-weight: 600; }
.pb-badge.ghost { background: transparent; color: var(--text); border: 1px solid #444; }
.pb-buy { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* settings */
.set-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.set-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.set-nav a:hover { background: #0e0e0e; color: var(--text-hi); }
.set-main { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.set-box { scroll-margin-top: 90px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line-2); cursor: default; }
.set-box .box-head + .set-row, .set-box #recap-more > .set-row:first-child { border-top: 0; }
label.set-row { cursor: pointer; }
.set-txt { min-width: 0; }
.set-txt b { display: block; font-size: 15px; font-weight: 500; color: var(--text-hi); }
.set-txt small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted-2); max-width: 520px; }
.set-sw { position: relative; flex: none; width: 44px; height: 26px; }
.set-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.set-sw i { position: absolute; inset: 0; border-radius: 99px; background: #2a2a2a; transition: background .15s; pointer-events: none; }
.set-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #bbb; transition: left .15s, background .15s; }
.set-sw input:checked + i { background: #fff; }
.set-sw input:checked + i::after { left: 21px; background: #000; }
.set-sw input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.set-select, .set-input { height: 38px; border-radius: 9px; border: 1px solid var(--line-3); background: #0a0a0a; color: var(--text-hi); font: inherit; font-size: 14px; padding: 0 12px; }
.set-input { width: 220px; } .set-input.sm { width: 130px; color-scheme: dark; }
.set-phone { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.set-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted-2); cursor: pointer; }
.set-consent input { margin-top: 3px; accent-color: #fff; }
.set-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text); }
.set-checks input { accent-color: #fff; margin-right: 4px; }
.set-row .seg { flex: none; flex-wrap: nowrap; }
.set-box .box-head { flex-wrap: wrap; } .set-box .box-head h2 { white-space: nowrap; }
.set-actions .link { font-size: 14px; }
.set-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.set-saved { font-size: 13px; color: var(--muted); min-height: 18px; }
@media (max-width: 820px) { .set-grid { grid-template-columns: 1fr; gap: 16px; } .set-nav { position: static; flex-direction: row; flex-wrap: wrap; } .set-row { flex-wrap: wrap; } }

/* parent/teacher roster */
.roster-wrap { overflow-x: auto; margin: 0 -4px; }
.roster { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.roster th { text-align: left; font-size: 12px; font-weight: 500; color: var(--faint); padding: 0 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.roster td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.roster tbody tr[data-open] { cursor: pointer; }
.roster tbody tr[data-open]:hover, .roster tbody tr[data-open]:focus-visible { background: #0c0c0d; outline: none; }
.roster td.who { min-width: 190px; }
.roster .who-in { display: flex; align-items: center; gap: 10px; }
.roster td.who .avatar-ph { width: 30px; height: 30px; font-size: 11px; flex: none; border-radius: 50%; object-fit: cover; }
.roster td.who b, .roster b.gname { display: block; font-weight: 500; color: var(--text-hi); }
.roster td small { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.roster td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.roster td.num .meter { margin-top: 6px; width: 90px; }
.roster .muted { color: var(--faint); }
.roster td.acts { text-align: right; white-space: nowrap; }
.roster td.acts .link-btn-sm { margin-left: 6px; }
.roster .input.nick { height: 34px; width: 100%; max-width: 220px; }
.roster .input.nick.saved { border-color: #7ee2a8; }
.roster.manage { min-width: 680px; }
.roster-tools { display: flex; gap: 8px; }
.roster-tools .input, .box-head .input[type=search] { height: 34px; font-size: 13px; }
.mini-tag { display: inline-grid; place-items: center; height: 20px; padding: 0 8px; border-radius: 99px; border: 1px solid #3a3a3a; font-size: 11.5px; color: var(--text); font-weight: 500; vertical-align: middle; }
.mini-tag.pro { background: #fff; color: #000; border-color: #fff; }
.mini-tag.off { color: var(--faint); border-color: var(--line-3); }
.look { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.look .link-row { width: 100%; text-align: left; background: #0a0a0a; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; color: var(--text); cursor: pointer; font: inherit; }
.look .link-row:hover { border-color: #3a3a3a; }
.look .link-row b { display: block; font-weight: 500; color: var(--text-hi); font-size: 14px; }
.look .link-row span { font-size: 12.5px; color: #f3c969; }
.stu-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.stu-nav .input { height: 30px; font-size: 13px; padding: 0 8px; max-width: 240px; }
.stu-nav .link-btn-sm[disabled] { opacity: .35; cursor: default; }
.nick-form[hidden] { display: none; }
.nick-form { display: flex; gap: 8px; align-items: center; margin: 2px 0 4px; }
.nick-form .input { height: 36px; width: 220px; }
#nick-view .link-btn-sm { vertical-align: middle; margin-left: 6px; font-weight: 400; }
#add + .box { margin-top: 20px; }
