/* The dashboard's look, in line with the True Mode site (portfolio/site/src/styles/site.css, "Plum refined in
   blue"): the same tokens, font, pill buttons with the orange arrow, form fields, eyebrow and tags, the navy dock bar
   and white rounded cards. Like the site, it's a single committed light theme. Rules copied from site.css keep its
   names (.btn, .field, .input…) so the two stay easy to compare. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --navy: #10297A;
  --navy-deep: #0A1B55;
  --cobalt: #2F5BF5;
  --orange: #F75422;
  --orange-deep: #D9430F;
  --orange-soft: #FFE3D8;
  --white: #FFFFFF;
  --cream: #F8F7F1;
  --cream-2: #F1EFE6;
  --ink: #0A1233;
  --text-2: #4A4F61;
  --muted: #545A6E;
  --rule: #7A8095;
  --row-faint: #868C9F;
  --line-soft: #E3E5EC;
  --line-cream: #E6E3D8;
  --green: #8DFF70;
  --on-navy-soft: #D3DCFA;
  --white-a12: rgba(255, 255, 255, .12);
  --navy-a08: rgba(16, 41, 122, .08);
  --shadow: rgba(8, 20, 62, .28);
  --cut: var(--white);
  --f: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset (site.css) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.5; word-spacing: .04em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
svg { display: block; }
button { font: inherit; word-spacing: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--orange); color: var(--white); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- the bar: the site's navy dock, always shown ---------- */
.bar-wrap { position: sticky; top: 0; z-index: 20; padding: 12px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
.bar { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 60px; padding: 7px 7px 7px 20px; border-radius: 30px; background: var(--navy); color: var(--white); box-shadow: 0 22px 44px -20px var(--shadow), inset 0 0 0 1px var(--white-a12); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--white); --cut: var(--navy); border-radius: 999px; }
.brand-mark { width: 24px; height: 24px; fill: currentColor; }
.brand-word { font-size: 21px; font-weight: 500; letter-spacing: -.045em; line-height: 1; transform: translateY(-.04em); }
.app-name { padding-left: 12px; border-left: 1px solid rgba(211, 220, 250, .28); color: var(--on-navy-soft); font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.bar nav { display: flex; flex-wrap: wrap; align-items: center; margin-left: auto; }
.bar nav a { padding: 9px 15px; border-radius: 999px; color: var(--on-navy-soft); font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; transition: color .25s, background-color .25s; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--white); }
.bar nav a[aria-current="page"] { background: var(--white-a12); }
.signout-form { margin-left: auto; }
.bar nav + .signout-form { margin-left: 0; }
.signout { height: 46px; padding: 0 19px; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background-color .2s, color .2s; }
.signout:hover { background: var(--orange); color: var(--white); }
.bar a:focus-visible, .bar button:focus-visible { outline-color: var(--white); }

/* ---------- page ---------- */
.app { max-width: 1080px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
.app--narrow { max-width: 560px; }
.embedded .app { padding-top: 24px; }
.page-head { margin: 0 4px 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; letter-spacing: -.005em; color: var(--navy); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.page-head h1 { margin-top: 12px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; color: var(--navy); text-wrap: balance; }
.page-head .sub { margin-top: 10px; max-width: 640px; font-size: 16px; color: var(--text-2); letter-spacing: -.005em; }

.panel { background: var(--white); border-radius: 28px; padding: clamp(20px, 3.2vw, 32px); box-shadow: 0 24px 48px -34px var(--shadow), inset 0 0 0 1px var(--navy-a08); }
.panel + .panel, .alert + .panel, .notice + .panel, .panel + .alert { margin-top: 16px; }
.panel h2 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.panel > h2 { margin-bottom: 14px; }
.panel p + p { margin-top: 10px; }
.prose { color: var(--text-2); }
.prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--orange); font-weight: 600; }

.stack { display: grid; gap: 18px; }
.gap { margin-top: 16px; }
.tags + .alert, .tags + .goods { margin-top: 18px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- forms (site.css) ---------- */
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field > label { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.f-hint { font-size: 13px; line-height: 1.4; color: var(--muted); }
.input, .textarea, .select { width: 100%; min-width: 0; font: inherit; font-size: 16px; letter-spacing: -.01em; color: var(--ink); background: var(--white); border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line-soft); transition: box-shadow .2s, background-color .2s; }
.input, .select { height: 54px; padding: 0 18px; }
.textarea { min-height: 136px; padding: 15px 18px; line-height: 1.5; resize: vertical; font-variant-numeric: tabular-nums; }
.select { appearance: none; -webkit-appearance: none; padding-right: 46px; background: var(--white) no-repeat right 18px center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310297A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.input::placeholder, .textarea::placeholder { color: var(--row-faint); }
.input:hover, .textarea:hover, .select:hover { box-shadow: inset 0 0 0 1.5px var(--rule); }
.input:focus, .textarea:focus, .select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 5px rgba(47, 91, 245, .14); }

/* ---------- buttons (site.css) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 28px; border: 2px solid var(--navy); border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s; }
.btn--cobalt { background: var(--cobalt); color: var(--white); }
.btn--cobalt:hover { background: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); padding-right: 3px; padding-left: 30px; gap: 22px; }
.arrow-circ { flex: none; display: inline-grid; place-items: center; width: var(--ad, 39px); height: var(--ad, 39px); border-radius: 50%; background: var(--orange); color: var(--white); transition: transform .3s var(--ease), background-color .2s; }
.arrow-circ svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--navy .arrow-circ { --ad: 38px; }
.btn:hover .arrow-circ, .btn:focus-visible .arrow-circ { transform: rotate(45deg); }
.btn--navy:hover .arrow-circ, .btn--navy:focus-visible .arrow-circ { background: var(--orange-deep); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--orange); padding-bottom: 1px; transition: gap .3s var(--ease-out), color .2s; }
.link-arrow:hover { gap: 10px; color: var(--orange-deep); }
.link-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tags (site.css) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); }
.tag--done { border-color: var(--navy); background: var(--navy); color: var(--white); }
.tag--warn { border-color: var(--orange-deep); color: var(--orange-deep); }

/* ---------- notices: good news as the site's toast, problems as its field error ---------- */
.notice { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 500; letter-spacing: -.01em; box-shadow: 0 20px 40px -18px var(--shadow); }
.notice .n-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--navy); flex: none; }
.notice .n-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.alert { display: grid; gap: 8px; padding: 16px 20px; border-radius: 22px; background: var(--orange-soft); color: var(--ink); }
.alert p { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.alert p::before { content: "!"; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--orange-deep); color: var(--white); font-size: 12px; font-weight: 700; flex: none; }

/* ---------- the quote ---------- */
.goods { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.goods .k { color: var(--muted); font-weight: 500; }
.goods .v { font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--navy); }
.goods .v small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.options { display: grid; gap: 12px; margin-top: 18px; }
.option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 18px 22px; border-radius: 22px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-cream); }
.option .o-name { font-size: 18px; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.option .o-what, .option .o-when { color: var(--text-2); font-size: 15px; }
.option .o-price { text-align: right; }
.option .o-price b { display: block; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.035em; color: var(--navy); }
.option .o-price span { font-size: 14px; color: var(--muted); }
.option .o-price .free { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--green); color: var(--navy); font-size: 15px; font-weight: 600; }
.messages { display: grid; gap: 8px; margin-top: 18px; }
.messages p { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--navy); }
.messages p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.fineprint { margin-top: 16px; font-size: 13px; color: var(--muted); }
.send { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th { padding: 10px 8px; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: -.005em; color: var(--muted); white-space: nowrap; border-bottom: 1.5px solid var(--line-soft); }
td { padding: 12px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td .code { font-weight: 600; color: var(--navy); }
.empty { color: var(--muted); }

@media (max-width: 759px) {
  .bar { border-radius: 26px; padding-left: 16px; }
  .bar nav { order: 3; width: 100%; margin: 0 -6px; }
  .bar nav a { padding: 8px 11px; font-size: 14px; white-space: nowrap; }
  .signout { margin-left: auto; height: 40px; padding: 0 16px; }
  .app-name { display: none; }
  .row-2, .send { grid-template-columns: minmax(0, 1fr); }
  .option { grid-template-columns: minmax(0, 1fr); }
  .option .o-price { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
