/* One stylesheet for the journalist pages and the officers' console. Colours and type match the department's monitoring portal. */
@font-face { font-family: "Noto Sans Devanagari"; src: url(/fonts/nsd-deva.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; 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; }
:root {
  --ink: #101828; --ink2: #344054; --mut: #5B6577; --line: #DDE1E8; --line2: #EEF0F4; --bg: #F6F7F9; --card: #FFFFFF;
  --acc: #1D3F8F; --acc-d: #16316F; --acc-soft: #EAF0FB; --acc-ink: #FFFFFF;
  --ok: #0B7A3E; --ok-bg: #E7F6EC; --warn: #8A5200; --warn-bg: #FFF3D6; --bad: #B42318; --bad-bg: #FDECEA; --info: #175CD3; --info-bg: #EAF2FE;
  --r: 12px; --r-s: 8px; --sh: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08); --sh-l: 0 12px 32px rgba(16, 24, 40, .16);
  --font: Inter, "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
html[lang="hi"] body { font-size: 15.5px; line-height: 1.7; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: 19px; line-height: 1.35; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 700; }
a { color: var(--acc); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #7AA2F7; outline-offset: 2px; border-radius: 4px; }
.mut { color: var(--mut); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 650; } .num { font-variant-numeric: tabular-nums; } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .grow { flex: 1 1 0; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 12px; } .col.s { gap: 6px; } .col.l { gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } .grid4.keep2, .grid3.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.25; }
.btn:hover { background: var(--line2); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); } .btn.pri:hover { background: var(--acc-d); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.danger { background: var(--card); border-color: #F0B4AE; color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); }
.btn.s { min-height: 34px; padding: 5px 11px; font-size: 13.5px; border-radius: 8px; } .btn.l { min-height: 50px; padding: 10px 22px; font-size: 16.5px; } .btn.block { width: 100%; } .btn.ghost { border-color: transparent; background: transparent; color: var(--acc); }
.btn.ghost:hover { background: var(--acc-soft); }
.link { background: none; border: 0; padding: 0; color: var(--acc); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > label, .f > .lab { font-weight: 600; font-size: 14px; color: var(--ink2); } .f .req { color: var(--bad); margin-left: 2px; } .f .hint { color: var(--mut); font-size: 12.5px; } .f .err { color: var(--bad); font-size: 13px; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="search"], input[type="url"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #C5CBD6; border-radius: 10px; background: #fff; }
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid #BFD3FA; border-color: var(--acc); }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { border: 1px solid #C5CBD6; background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; } .seg button { border: 0; background: none; padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: 13.5px; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--acc); color: #fff; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; min-width: 0; }
.card.flat { box-shadow: none; } .card.pad0 { padding: 0; overflow: hidden; } .card h3 + .mut { margin-top: 2px; }
.note { border-radius: 10px; padding: 11px 14px; border: 1px solid; font-size: 14px; } .note.info { background: var(--info-bg); border-color: #B9D2FB; color: #0B3A8C; } .note.warn { background: var(--warn-bg); border-color: #F1D08A; color: #6B3F00; }
.note.bad { background: var(--bad-bg); border-color: #F0B4AE; color: #8A1C13; } .note.ok { background: var(--ok-bg); border-color: #A9DDBB; color: #075C2E; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 650; background: var(--line2); color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); } .pill.acc { background: var(--acc-soft); color: var(--acc); }
.pill.cat { background: #101828; color: #fff; min-width: 24px; justify-content: center; }
.demo-bar { background: #1F2937; color: #F9FAFB; text-align: center; font-size: 12.5px; padding: 5px 12px; }

/* ---------- dialogs and toasts ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: var(--sh-l); color: var(--ink); max-height: calc(100vh - 24px); }
dialog.wide { width: min(880px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(16, 24, 40, .5); }
.dlg-h { padding: 16px 20px 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .dlg-b { padding: 4px 20px 16px; overflow: auto; } .dlg-f { padding: 12px 20px 16px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line2); }
.x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--mut); padding: 4px 8px; border-radius: 8px; } .x:hover { background: var(--line2); }
#toasts { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: #101828; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--sh-l); font-weight: 550; } .toast.bad { background: var(--bad); } .toast.ok { background: var(--ok); }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; vertical-align: middle; } @keyframes sp { to { transform: rotate(360deg); } }
.load { padding: 40px; text-align: center; color: var(--mut); }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

/* ---------- journalist pages ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.mark { width: 40px; height: 40px; border-radius: 10px; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; letter-spacing: .02em; }
.top .org { font-weight: 700; font-size: 14.5px; line-height: 1.3; } .top .sub { color: var(--mut); font-size: 12.5px; line-height: 1.3; }
.wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px 56px; } .narrow { max-width: 640px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "title form" "info form"; gap: 22px 28px; align-items: start; padding-top: 8px; }
.hero .h-title { grid-area: title; } .hero .h-form { grid-area: form; } .hero .h-info { grid-area: info; }
@media (max-width: 820px) { .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "form" "info"; gap: 18px; } }
.only-wide { display: inline-flex; } @media (max-width: 640px) { .only-wide { display: none !important; } .top .sub { display: none; } }
.hero h1 { font-size: 30px; } html[lang="hi"] .hero h1 { font-size: 29px; line-height: 1.4; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: s; } .steps3 > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; counter-increment: s; font-size: 13.5px; }
.steps3 > div::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); font-weight: 800; margin-bottom: 6px; }
.need { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; } .need li { display: flex; gap: 9px; align-items: flex-start; } .need li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; }
.otp { letter-spacing: .5em; font-size: 24px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.prog { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; } .prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); } .prog i.on { background: var(--acc); } .prog i.done { background: #7C9BDD; }
.stepnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .stepnav::-webkit-scrollbar { display: none; }
.stepnav button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink2); white-space: nowrap; }
.stepnav button[aria-current="step"] { background: var(--acc); color: #fff; border-color: var(--acc); } .stepnav button.done::before { content: "✓ "; color: var(--ok); } .stepnav button[aria-current="step"].done::before { color: #fff; }
.photo-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; } .photo-prev { width: 132px; height: 165px; border-radius: 12px; border: 1px dashed #AEB6C4; background: var(--bg); display: grid; place-items: center; overflow: hidden; color: var(--mut); font-size: 12.5px; text-align: center; padding: 6px; flex: none; }
.photo-prev:has(img), .photo-prev:has(canvas) { padding: 0; border-style: solid; }
.photo-prev img, .photo-prev canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.up { border: 1px dashed #AEB6C4; border-radius: 12px; padding: 14px; background: #fff; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .up.done { border-style: solid; border-color: #A9DDBB; background: #F6FCF8; }
.up .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-weight: 800; flex: none; font-size: 12px; } .up.done .ico { background: var(--ok-bg); color: var(--ok); }
.sum { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 6px 14px; font-size: 14.5px; } .sum dt { color: var(--mut); } .sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; } .sum dd.miss { color: var(--bad); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; } .tl li { position: relative; padding: 0 0 16px 28px; } .tl li::before { content: ""; position: absolute; left: 5px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--acc); }
.tl li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 1px; background: var(--line); } .tl li:last-child::after { display: none; } .tl li.bad::before { background: var(--bad); } .tl li.ok::before { background: var(--ok); } .tl li.warn::before { background: #D48A00; }
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 2px; } .track div { text-align: center; font-size: 12.5px; color: var(--mut); font-weight: 600; } .track div::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.track div.on { color: var(--acc); } .track div.on::before { background: var(--acc); } .track div.ok { color: var(--ok); } .track div.ok::before { background: var(--ok); } .track div.bad { color: var(--bad); } .track div.bad::before { background: var(--bad); } .track div.warn { color: var(--warn); } .track div.warn::before { background: #D48A00; }
.big-id { font-size: 30px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.passwrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; } .passwrap canvas { width: min(300px, 100%); height: auto; border-radius: 14px; box-shadow: var(--sh-l); background: #fff; }
.foot { max-width: 980px; margin: 0 auto; padding: 0 16px 28px; color: var(--mut); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- officers' console ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: #0F1B3D; color: #D7DEF0; padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.side .brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; color: #fff; } .side .brand .mark { background: #fff; color: #0F1B3D; width: 36px; height: 36px; } .side .brand b { font-size: 13.5px; line-height: 1.3; display: block; } .side .brand span { font-size: 11.5px; color: #A9B6D6; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #D7DEF0; text-decoration: none; font-weight: 600; font-size: 14px; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.nav:hover { background: rgba(255, 255, 255, .08); } .nav[aria-current="page"] { background: #fff; color: #0F1B3D; } .nav .n { margin-left: auto; background: #E5484D; color: #fff; border-radius: 999px; font-size: 11.5px; padding: 1px 7px; font-weight: 700; } .nav[aria-current="page"] .n { background: #0F1B3D; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8E9CC0; padding: 12px 10px 4px; }
.side .me { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; } .side .me b { color: #fff; display: block; }
.main { min-width: 0; display: flex; flex-direction: column; }
.bar { background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 20px; display: flex; gap: 12px; align-items: center; position: sticky; top: 0; z-index: 20; } .bar h1 { font-size: 19px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; } .page { padding: 18px 20px 60px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); } .side { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 60; transform: translateX(-100%); transition: transform .18s; } .side.open { transform: none; box-shadow: var(--sh-l); }
  .scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 50; } .menu-btn { display: inline-flex; } .bar { padding: 8px 12px; } .page { padding: 14px 12px 60px; } .bar h1 { font-size: 17px; }
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 9px 13px; font-weight: 650; color: var(--mut); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 14px; } .tab[aria-selected="true"] { color: var(--acc); border-bottom-color: var(--acc); } .tab .n { margin-left: 6px; background: var(--line2); border-radius: 999px; padding: 1px 7px; font-size: 12px; color: var(--ink2); }
.tab[aria-selected="true"] .n { background: var(--acc-soft); color: var(--acc); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .filters input, .filters select { min-height: 38px; padding: 6px 10px; width: auto; max-width: 100%; font-size: 14px; } .filters input[type="search"] { flex: 1 1 220px; min-width: 160px; }
.tw { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: 14px; } th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFC; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; } tr.click { cursor: pointer; } tr.click:hover td { background: #F8FAFE; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; } .ava { width: 38px; height: 46px; border-radius: 7px; object-fit: cover; background: var(--line2); flex: none; border: 1px solid var(--line); } .who b { display: block; line-height: 1.3; } .who span { color: var(--mut); font-size: 12.5px; }
.empty { padding: 34px 16px; text-align: center; color: var(--mut); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 12px; font-size: 13.5px; color: var(--mut); }
@media (max-width: 760px) {
  table.stack thead { display: none; } table.stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); } table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; text-align: right; } table.stack td::before { content: attr(data-l); color: var(--mut); font-size: 12.5px; text-align: left; flex: none; }
  table.stack td.lead { display: block; text-align: left; padding-bottom: 6px; } table.stack td.lead::before { display: none; } table.stack td:empty { display: none; }
}
/* dashboard */
.focal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 16px; } @media (max-width: 900px) { .focal { grid-template-columns: minmax(0, 1fr); } }
.hero-n { background: linear-gradient(160deg, #1D3F8F, #152C66); color: #fff; border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh); }
.hero-n .v { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .hero-n .l { font-size: 15px; font-weight: 600; color: #DCE6FB; } .hero-n .s { font-size: 13px; color: #B7C7EE; } .hero-n .btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--acc); border-color: #fff; }
.kpi { display: flex; flex-direction: column; gap: 2px; } .kpi .v { font-size: 26px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; } .kpi .l { font-size: 13px; color: var(--mut); font-weight: 600; } .kpi .d { font-size: 12.5px; color: var(--mut); }
.bars { display: grid; gap: 7px; } .bar-r { display: grid; grid-template-columns: minmax(84px, 30%) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13.5px; } .bar-r .t { height: 14px; background: var(--line2); border-radius: 4px; overflow: hidden; } .bar-r .t i { display: block; height: 100%; background: var(--acc); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-r .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-r .vv { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: auto; aspect-ratio: 600 / 176; display: block; } .spark rect.b { fill: var(--acc); } .spark rect.b:hover, .spark rect.b.h { fill: #0F2A6B; } .spark text { font: 11px var(--font); fill: var(--mut); } .spark line { stroke: var(--line); }
.tip { position: fixed; z-index: 90; background: #101828; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; pointer-events: none; white-space: nowrap; box-shadow: var(--sh-l); }
.split { display: flex; height: 16px; border-radius: 5px; overflow: hidden; gap: 2px; background: #fff; } .split i { display: block; min-width: 3px; } .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.attn { display: grid; gap: 8px; } .attn button { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; font-weight: 600; } .attn button:hover { background: #F8FAFE; } .attn b { font-size: 18px; font-variant-numeric: tabular-nums; }
/* record detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; } @media (max-width: 1080px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.prof { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; } .prof img.ph { width: 116px; height: 145px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--line2); cursor: zoom-in; }
.kv { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); gap: 5px 12px; font-size: 14px; } .kv dt { color: var(--mut); } .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .doc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; text-align: left; display: block; color: inherit; text-decoration: none; }
.doc .th { height: 104px; background: var(--line2); display: grid; place-items: center; overflow: hidden; color: var(--mut); font-weight: 800; } .doc .th img { width: 100%; height: 100%; object-fit: cover; } .doc .cap { padding: 7px 9px; font-size: 12.5px; font-weight: 600; } .doc.old { opacity: .6; }
.checks { display: grid; gap: 8px; } .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.viewer img { max-width: 100%; max-height: 74vh; display: block; margin: 0 auto; border-radius: 8px; }
.vres { border-radius: 14px; padding: 16px; border: 2px solid; display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; } .vres.valid { background: var(--ok-bg); border-color: var(--ok); } .vres.expired { background: var(--warn-bg); border-color: #D48A00; } .vres.revoked, .vres.superseded { background: var(--bad-bg); border-color: var(--bad); } .vres.notfound { background: var(--line2); border-color: #98A2B3; }
.vres .st { font-size: 22px; font-weight: 800; } .vres img { width: 104px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.msg-prev { background: #F1F5EC; border: 1px solid #D5DEC6; border-radius: 12px 12px 12px 2px; padding: 12px 14px; white-space: pre-wrap; font-size: 14.5px; max-width: 420px; overflow-wrap: anywhere; } .msg-prev.sms { background: #EEF2F8; border-color: #D5DCE8; }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } @media (max-width: 640px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px 14px; } .login .card { width: min(430px, 100%); padding: 24px; }
.demo-users { display: grid; gap: 6px; } .demo-users button { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 11px; cursor: pointer; font-size: 13.5px; text-align: left; } .demo-users button:hover { background: #F8FAFE; } .demo-users span { color: var(--mut); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--line2); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
@media print { .side, .bar, .demo-bar, #toasts { display: none !important; } .shell { display: block; } body { background: #fff; } }

/* dashboard bands and the compact category rows in settings */
.strip { border-top: 1px solid var(--line2); padding-top: 12px; margin-top: 2px; } .strip .legend { gap: 6px 14px; }
.catrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; } .catrow .pill { margin-bottom: 12px; justify-self: start; }

/* dashboard: the 30-day chart is made of plain boxes so that it fills its card; two short cards stack beside one tall one */
.trend { flex: 1; min-height: 0; } .tplot { position: relative; flex: 1; min-height: 150px; display: flex; align-items: stretch; border-top: 1px dashed var(--line); border-bottom: 1px solid var(--line); padding-top: 8px; }
.tcol { flex: 1; min-width: 0; display: flex; align-items: flex-end; padding: 0 3px; outline: none; } .tcol i { display: block; width: 100%; background: var(--acc); border-radius: 2px 2px 0 0; }
.tcol:hover i, .tcol:focus-visible i { background: #0F2A6B; } .tcol:focus-visible { box-shadow: inset 0 0 0 2px #9DB4EC; border-radius: 3px; }
.tmax { position: absolute; right: 2px; top: 3px; font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }
.taxis { position: relative; height: 15px; font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; } .taxis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; } .taxis span.end { right: 0; transform: none; }
.stack { gap: 14px; } .stack > .card:last-child { flex: 1; }
@media (max-width: 520px) { .tcol { padding: 0 1.5px; } }
