/* Portal styles - same palette as the report (reportcard/render/style.css). No inline styles anywhere (strict CSP). */
:root {
  --navy: #13294B; --navy-2: #1f3a66; --amber: #B7791F; --amber-soft: #fdf6e7; --gold: #f3d9a4;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #6f6e69; --line: #e1e0d9; --surface: #ffffff; --plane: #f4f5f7;
  --bad-ink: #b42828; --bad-soft: #fdeeee; --good-ink: #006300; --good-soft: #eaf6ea;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceae4; --ink-2: #c9c7c0; --muted: #a3a19a; --line: #343a46; --surface: #1b2030; --plane: #11151f;
    --bad-soft: #3a1d1d; --good-soft: #17301a; --bad-ink: #ff8a80; --good-ink: #7fd67f; --amber-soft: #3a2f17;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plane); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--navy-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--gold); } }
h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 14px; }
h2 { font-size: 20px; margin: 26px 0 10px; }
h3 { font-size: 16px; margin: 20px 0 8px; }
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 20px; background: var(--navy); color: #fff; }
.top .brand { color: #fff; font-weight: 750; text-decoration: none; flex: 1; min-width: 180px; }
.top nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top nav a, .top .link { color: #e8edf5; text-decoration: none; font-size: 15px; }
.top nav a:hover, .top .link:hover { text-decoration: underline; }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 18px; }
.panel > h2:first-child, .panel > h1:first-child { margin-top: 0; }
.auth { max-width: 460px; margin: 10px auto 18px; }
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: 34px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.btn { display: inline-block; background: var(--navy); color: #fff !important; border: 1px solid var(--navy); border-radius: 9px; padding: 10px 16px;
       font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--navy) !important; border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.ghost { color: var(--gold) !important; } :root:not([data-theme="light"]) .btn { border-color: #3b5788; } }
.top .btn { background: var(--gold); color: var(--navy) !important; border-color: var(--gold); }
.btn.wide { width: 100%; margin-top: 6px; }
form label { display: block; margin: 0 0 14px; font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #f3d9a4; outline-offset: 1px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink-2); }
label.check input { margin-top: 4px; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .span2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.error { background: var(--bad-soft); color: var(--bad-ink); border-radius: 9px; padding: 10px 12px; font-size: 15px; }
.flash { background: var(--good-soft); color: var(--good-ink); border-radius: 9px; padding: 10px 14px; }
.cards { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card-title { font-weight: 750; font-size: 17px; }
.card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.empty p { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; }
.foot { max-width: 980px; margin: 0 auto; padding: 0 16px 30px; color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.hint { display: block; margin-top: 5px; font-weight: 400; font-size: 13px; color: var(--muted); }
.pw { position: relative; display: block; }
.pw input { padding-right: 68px; }
.pw-toggle { position: absolute; right: 6px; bottom: 6px; background: none; border: 0; padding: 6px 8px; font: inherit; font-size: 14px; font-weight: 650; color: var(--navy-2); cursor: pointer; border-radius: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-toggle { color: var(--gold); } }
.btn.wide { padding: 13px 16px; font-size: 17px; }
.btn.busy, .btn:disabled { opacity: .7; cursor: progress; }
.auth .btn.ghost.wide { text-align: center; }
.auth h1 { margin-bottom: 8px; }
.offers { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.offer { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.offer p { margin: 0 0 6px; }
.offer .tag { vertical-align: 0; }
.offer-plans { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: auto 0 4px; }
.offer-plans .btn { text-align: center; }
.assure { margin-top: 4px; }
input[type=text], input[type=email], input[type=password], select, textarea { min-height: 46px; font-size: 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.ghost) { background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }
  :root:not([data-theme="light"]) .btn:not(.ghost):hover { background: #f8e6c0; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) input, :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) textarea { border-color: #56617a; background: #141826; }
}
