/* ACT English dashboard + results (marketing-site theme). */
.dash { padding-top: 120px; padding-bottom: 80px; }
@media (max-width: 640px) { .dash { padding-top: 96px; } .wrap.dash { padding-left: 20px; padding-right: 20px; } }
.dash-head { max-width: 720px; margin-bottom: 36px; }
.dash-head .copy { margin-top: 14px; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.start-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.start-card h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--text-hi); letter-spacing: -.01em; }
.start-card p { margin: 0 0 8px; color: var(--muted); line-height: 1.55; font-size: 15px; }
.start-meta { display: flex; gap: 14px; font-size: 13px; color: var(--faint); }
.start-error { color: #ff9b8a; min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.panel { margin-top: 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 24px; }
.panel-head { margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-hi); }
.panel-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.empty { color: var(--faint); font-size: 14px; list-style: none; }
.muted { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.warn { color: #ffb48a; }

.grow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.grow { display: grid; grid-template-columns: 28px minmax(0, 1fr) 220px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.grow:first-child { border-top: 0; }
.grow-rank { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.grow-name { color: var(--text-hi); font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.grow-blurb { color: var(--muted-2); font-size: 14px; margin-top: 3px; }
.cat-tag { font-size: 11px; color: var(--faint); border: 1px solid var(--line-3); padding: 2px 7px; border-radius: 99px; font-weight: 400; }
.tag-slow { font-size: 11px; color: #ffb48a; border: 1px solid rgba(255, 180, 138, .35); padding: 2px 7px; border-radius: 99px; font-weight: 400; }
.grow-stat { display: grid; grid-template-columns: 1fr 44px; gap: 4px 10px; align-items: center; font-size: 14px; }
.grow-stat .muted { grid-column: 1 / -1; font-size: 13px; }
.grow-cost { grid-column: 1 / -1; font-size: 12px; color: var(--faint); }
.bar { display: block; height: 6px; border-radius: 6px; background: var(--line-3); overflow: hidden; }
.bar > span { display: block; height: 100%; background: #e8e8e8; border-radius: 6px; transition: width .6s var(--ease); }
.bar.low > span { background: #8a8a8a; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 20px; }
.col-stack { display: flex; flex-direction: column; }
.cat-h { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
.cat-h:first-child { margin-top: 0; }
.skill-list { list-style: none; margin: 0; padding: 0; }
.skill-list li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px 48px; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.sk-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-val { text-align: right; color: var(--text-hi); }
.sk-n { text-align: right; color: var(--faint); font-size: 12px; }
.pace-list, .history { list-style: none; margin: 0; padding: 0; }
.pace-list li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.pace-list li:first-child { border-top: 0; }
.pace-list li .muted { grid-column: 1 / -1; font-size: 12px; }
.history li a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--text); text-decoration: none; }
.history li:first-child a { border-top: 0; }
.history li a:hover { color: #fff; }
.fine { margin-top: 28px; font-size: 13px; color: var(--faint); }

/* results */
.score-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 20px; }
.stat-label { font-size: 13px; color: var(--faint); }
.stat-val { font-size: 34px; font-weight: 600; color: var(--text-hi); letter-spacing: -.02em; margin-top: 6px; }
.stat-sub { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.qtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.qtable th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.qtable td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--text); }
.qtable tr.qrow { cursor: pointer; }
.qtable tr.qrow:hover td { background: var(--surface-2); }
.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 600; }
.mark.ok { background: #ededed; color: #000; }
.mark.no { border: 1px solid #8a8a8a; color: #bbb; }
.mark.skip { border: 1px dashed var(--line-3); color: var(--faint); }
.detail td { background: var(--surface-2); padding: 16px 18px 18px; }
.detail .stem { color: var(--text-hi); margin: 0 0 10px; line-height: 1.55; }
.detail .fig { margin: 12px 0; }
.detail .fig figcaption { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.detail .fig table { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.detail .fig th, .detail .fig td { border: 1px solid var(--line-3); padding: 5px 10px; text-align: center; }
.detail .fig svg { width: 100%; max-width: 460px; height: auto; display: block; background: #fff; border-radius: 8px; }
.detail .fig .grid { stroke: #e3e6ea; } .detail .fig .axis { stroke: #333; } .detail .fig .tick, .detail .fig .axis-label { font: 12px Inter, sans-serif; fill: #333; }
.detail .fig polyline.line { fill: none; stroke-width: 2; } .detail .fig .s0 { stroke: #1f5fbf; fill: #1f5fbf; } .detail .fig .s1 { stroke: #c2410c; fill: #c2410c; }
.detail .fig .s2 { stroke: #2f7d5b; fill: #2f7d5b; } .detail .fig .s3 { stroke: #6b4fbb; fill: #6b4fbb; } .detail .fig polyline.line { fill: none; }
.detail .fig-key { display: flex; gap: 12px; font-size: 12px; color: var(--muted); } .detail .fig-key svg { width: auto; height: 10px; }
.hub-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hub-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.hub-card .btn { margin-top: auto; align-self: flex-start; }
.detail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.detail li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); }
.detail li.key { border-color: #9c9c9c; }
.detail li.picked:not(.key) { border-style: dashed; }
.detail .why { color: var(--muted-2); font-size: 13px; margin-top: 3px; }
.detail .ex { margin: 12px 0 0; color: var(--text); line-height: 1.55; }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.passage-mini { margin-top: 12px; font-size: 13px; color: var(--faint); }

@media (max-width: 860px) {
  .start-grid, .two-col { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grow { grid-template-columns: 28px minmax(0, 1fr); }
  .grow-stat { grid-column: 2; }
  .qtable .hide-sm { display: none; }
}
.qtable td.num, .qtable th { white-space: nowrap; }

/* account */
.nav-cta { display: flex; align-items: center; gap: 12px; }
.account { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.g-btn { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-3); background: #fff; color: #1f1f1f; font-weight: 500; font-size: 14px; cursor: pointer; }
.g-btn:hover { background: #f2f2f2; }
.g-btn:disabled { opacity: .7; cursor: default; }
.avatar { width: 26px; height: 26px; border-radius: 50%; }
.acct-name { color: var(--text); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn-sm { background: none; border: 1px solid var(--line-3); color: var(--muted); border-radius: 6px; height: 28px; padding: 0 10px; font-size: 12px; cursor: pointer; }
.link-btn-sm:hover { color: #fff; }
a.link-btn-sm { display: inline-flex; align-items: center; text-decoration: none; margin-right: 6px; }
@media (max-width: 640px) { .acct-name { display: none; } .nav-links { display: none; } }
.g-btn span { white-space: nowrap; }
@media (max-width: 640px) {
  .account + .pill-tag { display: none; }
  .g-btn { padding: 0 12px; }
  .g-btn span { font-size: 0; }
  .g-btn span::after { content: "Sign in"; font-size: 14px; }
}

/* plan + paywall */
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line-3); border-radius: 12px; font-size: 14px; color: var(--muted); }
.plan-bar[hidden] { display: none; }
.plan-bar strong { color: var(--text); font-weight: 600; }
.plan-chip { display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--text); font-size: 12px; font-weight: 600; }
.plan-chip.pro { background: #fff; color: #000; border-color: #fff; }
.plan-bar .warn { color: #ffb4a0; }
.paywall { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding: 30px; margin-bottom: 18px; }
.paywall[hidden] { display: none; }
.paywall h2 { margin: 8px 0 10px; font-size: 26px; letter-spacing: -.02em; }
.paywall p { color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.pw-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pw-plan { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--line-3); background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.pw-plan:first-child { background: #fff; color: #000; border-color: #fff; }
.pw-plan:first-child .pw-note { color: #444; }
.pw-plan:hover { border-color: #fff; }
.pw-plan:disabled { opacity: .6; cursor: default; }
.pw-name { font-size: 13px; font-weight: 600; }
.pw-price { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.pw-price small { font-size: 14px; font-weight: 400; }
.pw-note { font-size: 12px; color: var(--muted); }
.pw-free { border-left: 1px solid var(--line-3); padding-left: 28px; }
.pw-free h3 { margin: 4px 0 12px; font-size: 15px; }
.pw-free ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.pw-free a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.pw-free a:hover { text-decoration-color: #fff; }
.dash-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 50; }
@media (max-width: 800px) {
  .paywall { grid-template-columns: 1fr; padding: 22px; }
  .pw-free { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-3); padding-top: 18px; }
}
@media (max-width: 420px) { .pw-plans { grid-template-columns: 1fr; } }
.start-grid[hidden] { display: none; }
.fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--text); }
.fine.legal-links { margin-top: 6px; }
.paywall .fine { margin-top: 0; }

/* promo codes */
.inline-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.inline-link:hover { color: var(--text); }
.plan-actions { display: flex; align-items: center; gap: 14px; }
.redeem { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line-3); border-radius: 12px; }
.redeem[hidden] { display: none; }
.redeem label { font-size: 14px; color: var(--text); font-weight: 500; }
.redeem input { flex: 1 1 220px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-3); background: #000; color: var(--text); font: inherit; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.redeem input:focus { outline: 2px solid #fff; outline-offset: 1px; }
.redeem .btn { height: 40px; }
.redeem-msg { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.redeem-msg:empty { display: none; }
.redeem-msg.err { color: #ffb4a0; }

/* SAT */
.hub-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.qtable .sat-passage { font-family: "Source Serif 4", Georgia, serif; line-height: 1.6; margin-bottom: 12px; padding: 12px 14px; border-left: 2px solid rgba(255,255,255,.18); }
.qtable .sat-passage p { margin: 0 0 .6em; }
.qtable .sat-passage .ttl { font-family: Inter, sans-serif; font-weight: 700; margin: .6em 0 .2em; }
.qtable .sat-passage .blank { display: inline-block; min-width: 4em; border-bottom: 1px solid currentColor; }
.qtable .sat-passage ul.notes { padding-left: 1.2em; margin: .3em 0; }
.qtable .spr-res { margin: 10px 0; }
