/* valtrak.us: ValTrak brand (navy #0F1D36, steel #1B2F52, valid #2FBF71, expiring #D98A1C, expired #C23B3B; Inter) */
@font-face { font-family: Inter; src: url(/static/fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/static/fonts/Inter-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/static/fonts/Inter-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(/static/fonts/Inter-ExtraBold.woff) format("woff"); font-weight: 800; font-display: swap; }
:root {
  --navy: #0f1d36; --steel: #1b2f52; --steel-2: #24406e; --green: #2fbf71; --green-d: #23995a; --orange: #d98a1c; --red: #c23b3b;
  --ink: #0f1d36; --text: #1d2a40; --muted: #5b6b84; --line: #e2e8f1; --bg: #f6f8fb; --card: #fff;
  --r: 16px; --shadow: 0 1px 2px rgba(15,29,54,.06), 0 8px 24px rgba(15,29,54,.07);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--steel-2); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(560px, 100% - 32px); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .grow { flex: 1; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
.shield { width: 30px; height: 33px; flex: none; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(15,29,54,.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.08); padding-top: env(safe-area-inset-top); }
.hdr-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand.sm { font-size: 1.05rem; color: var(--ink); } .brand.sm .shield { width: 24px; height: 26px; }
.nav { display: flex; gap: 4px; }
.nav a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.on { color: #fff; background: rgba(255,255,255,.1); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.acct-btn, .sites-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font: 600 .92rem var(--font); cursor: pointer; text-decoration: none; }
.acct-btn:hover, .sites-btn:hover { background: rgba(255,255,255,.12); }
.acct-btn.on { padding-left: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--navy); font-weight: 800; font-size: .95rem; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.dd { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(15,29,54,.25); padding: 6px;
  display: none; z-index: 60; border: 1px solid var(--line); }
.menu.right { left: auto; right: 0; }
.dd.open .menu { display: block; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu-h { padding: 8px 12px 6px; font-weight: 700; color: var(--ink); font-size: .9rem; }
.menu-h small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font: 600 .93rem var(--font);
  background: none; border: 0; cursor: pointer; text-align: left; }
.menu-item:hover { background: var(--bg); }
.menu-item span small { margin-left: 8px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.menu-item svg { color: var(--steel-2); }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav-toggle { display: grid; }
  .acct-btn .lbl, .sites-btn .lbl { display: none; }
  .acct-btn, .sites-btn { padding: 0 10px; }
  .acct-btn.on { padding: 0 4px; }
  .menu { position: fixed; left: 12px !important; right: 12px !important; top: calc(66px + env(safe-area-inset-top)); min-width: 0; }
}

/* buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font: 700 .98rem var(--font);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); color: var(--navy); }
.btn.primary:hover { background: #3ad07f; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn.dark { background: var(--navy); color: #fff; }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c9c9; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid #cfd8e5; background: #fff; font: 400 1rem var(--font); color: var(--ink); }
.input:focus { outline: 3px solid rgba(47,191,113,.3); border-color: var(--green); }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: auto; }
.f { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 4px; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 14px; }
.f > .input { flex-basis: 100%; }
.f .opt { color: var(--muted); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(47,191,113,.18), transparent 60%), radial-gradient(900px 600px at -10% 120%, rgba(36,64,110,.9), transparent 60%), var(--navy);
  color: #dfe7f3; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--green); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: inherit; opacity: .92; max-width: 40em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta.center { justify-content: center; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 40px; } }

/* product mock */
.mock { background: #fff; color: var(--text); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
@media (max-width: 900px) { .mock { transform: none; } }
.mock-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--steel); color: #fff; font-size: .95rem; }
.mock-h .dots { display: inline-flex; gap: 6px; } .mock-h .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mock-h .pill { margin-left: auto; white-space: nowrap; font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px 10px; }
.mock-sum { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mock-sum div { padding: 14px 18px; display: grid; } .mock-sum div + div { border-left: 1px solid var(--line); }
.mock-sum b { font-size: 1.6rem; color: var(--ink); line-height: 1.1; } .mock-sum span { font-size: .8rem; font-weight: 700; }
.mock-list { list-style: none; margin: 0; padding: 6px 0; }
.mock-list li { display: grid; grid-template-columns: 12px 1fr auto; grid-template-rows: auto auto; gap: 0 12px; padding: 10px 18px; align-items: center; }
.mock-list li + li { border-top: 1px solid #eef2f7; }
.mock-list .dot { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; }
.mock-list .t { font-weight: 600; color: var(--ink); font-size: .95rem; }
.mock-list .st { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; grid-row: span 2; }
.mock-list .when { font-size: .8rem; color: var(--muted); }
.dot.valid, .st.valid { background: var(--green); } .st.valid { background: #e2f6ea; color: var(--green-d); } span.valid { color: var(--green-d); }
.dot.soon { background: var(--orange); } .st.soon { background: #fbefdc; color: #a8670d; } span.soon { color: #a8670d; }
.dot.late { background: var(--red); } .st.late { background: #f8e1e1; color: var(--red); } span.late { color: var(--red); }

/* sections */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 36px; } .sec-head p { color: var(--muted); font-size: 1.08rem; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.feat > svg.i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #e9f7ef; color: var(--green-d); margin-bottom: 14px; }
.feat p { color: var(--muted); margin: 0; font-size: .96rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); }
.ticks svg { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; gap: 2px 16px; padding: 18px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.steps b { color: var(--ink); font-size: 1.05rem; } .steps span { color: var(--muted); }
.cta-band { background: linear-gradient(120deg, var(--steel), var(--navy)); color: #dfe7f3; }
.cta-band h2 { color: #fff; } .cta-band p { margin: 0; }
.cta-in { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.page-hero { background: var(--navy); color: #dfe7f3; padding: clamp(44px, 7vw, 80px) 0; }
.page-hero h1 { color: #fff; max-width: 18em; }
.fgroups { padding: 56px 0 72px; display: grid; gap: 56px; }
.fg-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fg-h h2 { margin: 0; }
.fg-h svg.i { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--navy); color: var(--green); }
.fx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .fx-grid { grid-template-columns: 1fr; } }
.fx { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.fx h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.02rem; }
.fx h4 svg { color: var(--green-d); }
.fx p { margin: 0; color: var(--muted); font-size: .96rem; }
.prose-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 56px 0 72px; }
@media (max-width: 860px) { .prose-grid { grid-template-columns: 1fr; } }
.prose p { font-size: 1.06rem; color: #34445e; } .prose h2 { margin-top: 1.2em; } .prose h2:first-child { margin-top: 0; }
.values { display: grid; gap: 14px; align-content: start; }
.val { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.val svg.i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #e9f7ef; color: var(--green-d); }
.val b { display: block; color: var(--ink); } .val span { color: var(--muted); font-size: .94rem; }
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding: 48px 0 72px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact .side h3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 1rem; } .contact .side h3:first-child { margin-top: 0; }
.contact .side svg { color: var(--green-d); }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-msg { font-weight: 600; font-size: .95rem; } .form-msg.ok { color: var(--green-d); } .form-msg.bad { color: var(--red); }

/* customize page + extra mocks */
.eyebrow.dk { color: var(--green-d); }
.page-hero .lk, .lead .lk { color: var(--green); font-weight: 600; }
.btn.dark:hover { background: var(--steel); }
.split.rev > :first-child { order: 0; }
@media (max-width: 860px) { .split.rev > .mock { order: 2; } }
.split .cta { margin-top: 22px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.jump a:hover { background: rgba(255,255,255,.14); }
.jump svg { color: var(--green); }
.cz, #faq { scroll-margin-top: 66px; }
.mock.flat { transform: none; box-shadow: 0 20px 50px rgba(15,29,54,.18); border: 1px solid var(--line); }
.mock-form { padding: 6px 0; }
.mf { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 10px 18px; font-size: .92rem; }
.mf + .mf { border-top: 1px solid #eef2f7; }
.mf > span { color: var(--muted); font-weight: 600; font-size: .85rem; }
.mf b { color: var(--ink); font-weight: 600; } .mf b small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: .8rem; }
.mf .icons { display: flex; gap: 6px; } .mf .icons i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #eef2f7; color: var(--steel-2); }
.mf .icons i.on { background: var(--navy); color: var(--green); }
.tog { width: 40px; height: 24px; border-radius: 999px; background: #cfd8e5; position: relative; display: inline-block; }
.tog i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.tog.on { background: var(--green); } .tog.on i { left: 19px; }
@media (max-width: 480px) { .mf { grid-template-columns: 1fr; gap: 4px; } }
.mock-roles { list-style: none; margin: 0; padding: 6px 0; }
.mock-roles li { padding: 12px 18px; display: grid; gap: 6px; }
.mock-roles li + li { border-top: 1px solid #eef2f7; }
.mock-roles b { color: var(--ink); font-size: .95rem; } .mock-roles b small { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
.sw { display: grid; gap: 8px; } .sw b { font-size: .88rem; color: var(--ink); }
.sw span { height: 74px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: flex-end; gap: 6px; padding: 10px; }
.sw span i { height: 12px; border-radius: 4px; flex: 1; } .sw span i:first-child { flex: 2; }
.mock-note { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .88rem; }
.fx-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .fx-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .fx-grid.three { grid-template-columns: 1fr; } }
.fx .range { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--green-d); background: #e2f6ea; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* FAQ */
.faq .sec-head p a { color: var(--green-d); font-weight: 600; }
.qas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
@media (max-width: 860px) { .qas { grid-template-columns: 1fr; } }
.qa { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { color: var(--muted); transition: transform .15s; }
.qa[open] summary svg { transform: rotate(180deg); }
.qa p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* footer */
.ftr { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.ftr-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 16px; } .ftr nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; } .ftr nav a:hover { color: var(--ink); }

/* account pages */
.acct-page main { min-height: calc(100dvh - 66px - 90px); }
.acct-wrap { padding: clamp(28px, 6vw, 64px) 0; }
.center { text-align: center; }
.big-ic svg.i { width: 56px; height: 56px; padding: 14px; border-radius: 18px; background: #eef2f7; color: var(--steel-2); margin-bottom: 14px; }
.auth { width: min(440px, 100%); margin: 0 auto; }
.auth .shield { width: 46px; height: 51px; display: block; margin: 0 auto 14px; }
.auth h1 { font-size: 1.6rem; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth .btn { width: 100%; }
.err { color: var(--red); font-weight: 600; font-size: .92rem; min-height: 1.4em; margin: 4px 0 10px; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.qr { display: grid; place-items: center; margin: 10px 0 16px; } .qr svg { display: block; width: 200px; height: 200px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; background: var(--bg); padding: 10px 12px; border-radius: 10px; word-break: break-all; text-align: center; user-select: all; }
.page-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h h1 { font-size: 1.8rem; margin: 0; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #e8edf4; border-radius: 12px; }
.tabs button { border: 0; background: none; min-height: 36px; padding: 0 14px; border-radius: 9px; font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.badge { background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.ulist { display: grid; gap: 10px; }
.urow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.urow:hover { border-color: #c7d3e3; }
.urow .avatar { flex: none; width: 40px; height: 40px; }
.urow .who { min-width: 0; flex: 1; } .urow .who b { display: block; color: var(--ink); } .urow .who span { color: var(--muted); font-size: .88rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eef2f7; color: var(--steel-2); }
.chip.green { background: #e2f6ea; color: var(--green-d); } .chip.red { background: #f8e1e1; color: var(--red); } .chip.orange { background: #fbefdc; color: #a8670d; } .chip.navy { background: var(--navy); color: #fff; }
.perm { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.perm:last-child { border: 0; }
.perm b { color: var(--ink); } .perm small { display: block; color: var(--muted); font-size: .8rem; }
.perm select { width: auto; min-height: 40px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green-d); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .94rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.sess { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.sess:last-child { border: 0; }
.sess .grow { min-width: 0; } .sess .grow span { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.msg.unread { border-left: 4px solid var(--green); }
.msg .mh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .msg .mh b { color: var(--ink); }
.msg p { white-space: pre-wrap; margin: 8px 0 10px; overflow-wrap: anywhere; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.note { font-size: .9rem; color: var(--muted); }

/* dialog */
.scrim { position: fixed; inset: 0; background: rgba(15,29,54,.55); z-index: 90; display: grid; place-items: center; padding: 16px; overscroll-behavior: contain; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: min(90dvh, 900px); overflow: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overscroll-behavior: contain; }
.dialog h2 { font-size: 1.35rem; }
.dialog .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; position: sticky; bottom: -24px; background: #fff; padding: 12px 0 0; }
@media (max-width: 600px) {
  .scrim { place-items: end stretch; padding: 0; }
  .dialog { border-radius: 20px 20px 0 0; max-height: 92dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .dialog .acts .btn { flex: 1; }
}
body:has(.scrim) { overflow: hidden; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 600; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast.bad { background: var(--red); }
