/* TI Photo Locator - Truth Investigations portal style */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  --navy: #1a2645; --navy-2: #22325a; --navy-3: #2c3f6b; --navy-line: rgba(255,255,255,.12);
  --ink: #0f1a33; --text: #2b3445; --muted: #667085; --faint: #98a2b3;
  --bg: #f4f6fa; --card: #ffffff; --line: #e3e8ef; --line-2: #eef1f5; --head: #f6f8fb;
  --orange: #d3592a; --orange-2: #b84a20; --orange-tint: #fdf1ea; --orange-line: #f4d3c2;
  --blue: #2563eb; --blue-tint: #e8effd; --green: #16803c; --green-tint: #e5f4ea;
  --amber: #c97a06; --amber-tint: #fdf3df; --red: #c0352b; --red-tint: #fbe9e7; --grey-tint: #eef0f4;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 34px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; margin: 10px 0 4px; display: flex; gap: 6px; align-items: center; }
code { font: 13px ui-monospace, Menlo, monospace; background: var(--grey-tint); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.ic { width: 20px; height: 20px; flex: none; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; margin: 4px 0 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: 264px; flex: none; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 26px 16px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.side-logo { display: block; padding: 0 10px; }
.side-logo img { width: 150px; height: auto; display: block; }
.side-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #c5cde0; font-weight: 600; padding: 18px 10px 14px; }
.side-rule { height: 1px; background: var(--navy-line); margin: 0 10px 14px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-section { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8e9ab8; font-weight: 600; padding: 18px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 8px; color: #e7ebf5; text-decoration: none; font-size: 15px; border-left: 3px solid transparent; }
.nav-item:hover { background: var(--navy-2); }
.nav-item.active { background: var(--navy-3); border-left-color: var(--orange); color: #fff; font-weight: 500; }
.nav-item .ic { width: 22px; height: 22px; }
.side-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.side-user .who { flex: 1; min-width: 0; color: #fff; text-decoration: none; line-height: 1.3; }
.side-user .who b { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who small { color: #aab4cc; font-size: 12.5px; }
.side-user form { margin: 0; }
.side-user .icon-btn { color: #c5cde0; }
.side-user .icon-btn:hover { background: var(--navy-2); color: #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e8ecf3; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: none; }
.side .avatar { background: #dfe5ef; }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 8px; color: var(--muted); cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: var(--grey-tint); color: var(--ink); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 70px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 32px; position: sticky; top: 0; z-index: 20; }
.menu-btn { display: none; }
.search { display: flex; align-items: center; gap: 10px; background: var(--head); border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; height: 42px; width: min(520px, 100%); color: var(--muted); }
.search input { border: 0; background: none; outline: none; font: inherit; color: var(--ink); width: 100%; padding: 0; margin: 0; height: 40px; }
.search:focus-within { border-color: #9db4e6; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-name { font-weight: 500; color: var(--ink); }
.env { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 12px; border-radius: 8px; background: var(--head); border: 1px solid var(--line); color: var(--text); }
.env i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.env.dev i { background: var(--orange); }
.content { padding: 32px 40px 40px; max-width: 2000px; width: 100%; margin: 0 auto; }
.foot { color: var(--faint); font-size: 12.5px; padding: 0 40px 24px; max-width: 2000px; width: 100%; margin: 0 auto; }
.scrim { display: none; }

/* ---------- page furniture ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.lede { color: #4a5568; font-size: 17px; margin: 6px 0 0; }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card.pad0 { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { margin-bottom: 14px; }
.card-tools { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.narrow-card { max-width: 520px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 26%, 440px); gap: 24px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty h3 { margin: 12px 0 6px; }
.empty .stat-ic { margin: 0 auto; }
.table-foot { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; gap: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 32px; line-height: 1.1; color: var(--ink); font-weight: 700; }
.stat span { color: #4a5568; font-size: 16px; }
.stat-ic { width: 60px; height: 60px; border-radius: 50%; background: #eef1f6; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stat-ic .ic { width: 28px; height: 28px; }
.stat.warn .stat-ic { background: var(--red-tint); color: var(--red); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 7px; border: 1px solid #cfd6e1; background: #fff; color: var(--ink); font: 500 14.5px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--head); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn.outline { color: var(--orange); border-color: var(--orange); }
.btn.lg { padding: 13px 24px; font-size: 16px; }
.btn.sm { padding: 6px 12px; font-size: 13.5px; }
.btn.block { display: flex; width: 100%; }
.btn.danger { color: var(--red); border-color: #efc4bf; }

/* pills and tags */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: var(--grey-tint); color: #3d4657; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.pill.lg { font-size: 15px; padding: 6px 14px; }
.pill.blue { background: var(--blue-tint); color: #1d4ed8; } .pill.blue i { background: var(--blue); }
.pill.green { background: var(--green-tint); color: #146c34; } .pill.green i { background: #22a04b; }
.pill.amber { background: var(--amber-tint); color: #8a5300; } .pill.amber i { background: #e8930c; }
.pill.red { background: var(--red-tint); color: #a02a21; } .pill.red i { background: var(--red); }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 500; background: var(--grey-tint); color: #3d4657; white-space: nowrap; margin: 2px 4px 2px 0; }
.tag.green { background: var(--green-tint); color: #146c34; } .tag.amber { background: var(--amber-tint); color: #8a5300; }
.tag.orange { background: var(--orange-tint); color: var(--orange-2); } .tag.red { background: var(--red-tint); color: #a02a21; }
.tag.blue { background: var(--blue-tint); color: #1d4ed8; }

/* tabs */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.flush { border: 0; margin: 0; }
.tab { padding: 10px 2px 12px; color: #4a5568; text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--orange); font-weight: 600; }
html.js .tabpanel { display: none; }
html.js .tabpanel.on { display: block; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 500; color: #4a5568; background: var(--head); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.rowlink:hover td { background: #fafbfd; }
.tbl .muted-row td { color: var(--faint); }
.case-id { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.case-ref { color: var(--faint); font-size: 12.5px; }
.cases-tbl td:first-child { min-width: 150px; }
.case-id:hover { color: var(--blue); }
.case-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.best { color: var(--ink); font-weight: 500; }
.chev { width: 30px; text-align: right; }
.chev a { color: var(--ink); }
.detail { font-size: 12.5px; color: var(--muted); max-width: 360px; word-break: break-word; }
.user-cell { display: flex; gap: 12px; align-items: center; }
.user-cell b { display: block; color: var(--ink); font-weight: 500; }
.user-cell small { color: var(--muted); }
.act { display: flex; gap: 6px; }
.act select { width: auto; margin: 0; padding: 6px 8px; font-size: 13.5px; }

/* side cards */
.card.attention { border-color: var(--orange-line); }
.alert-row { display: flex; gap: 14px; align-items: flex-start; background: var(--orange-tint); border: 1px solid var(--orange-line); border-radius: 8px; padding: 14px; margin-bottom: 12px; text-decoration: none; color: var(--text); }
.alert-row b { display: block; color: var(--ink); }
.alert-row small { color: #5b6476; }
.alert-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.run-row { display: block; text-decoration: none; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.run-row:last-child { border-bottom: 0; }
.row-top { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.row-top small { color: var(--muted); }
.bar { display: block; height: 6px; background: #e8ecf2; border-radius: 3px; overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .5s; }
.tick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.tick-list li { display: flex; gap: 12px; font-size: 14.5px; color: #4a5568; }
.tick-list .ic { color: var(--ink); margin-top: 1px; }
.tick-list b { color: var(--ink); font-weight: 600; }
.health { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.health li { display: flex; gap: 10px; align-items: center; }
.health li.ok .ic { color: var(--green); } .health li.bad .ic { color: var(--red); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.doc-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.doc-row:last-of-type { border-bottom: 0; }
.doc-row span { flex: 1; min-width: 0; }
.doc-row b { display: block; font-weight: 500; }
.doc-row small { color: var(--muted); font-size: 13px; }
.doc-row:hover:not(.static) b { color: var(--blue); }
.note-text { font-size: 14px; color: #4a5568; background: var(--head); border-radius: 8px; padding: 10px 12px; margin: 0; }
.best-addr { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }

/* banners */
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid; font-size: 15px; }
.banner span { flex: 1; }
.banner .ic { width: 24px; height: 24px; }
.banner.amber { background: var(--orange-tint); border-color: var(--orange-line); } .banner.amber > .ic { color: var(--orange); }
.banner.green { background: var(--green-tint); border-color: #bfe3cb; } .banner.green > .ic { color: var(--green); }
.banner.red { background: var(--red-tint); border-color: #f0c3be; } .banner.red > .ic { color: var(--red); }
.secret { font-size: 16px; background: #fff; padding: 3px 8px; }

/* forms */
label { display: block; font-weight: 500; color: var(--ink); font-size: 14.5px; margin: 0 0 16px; }
label small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.req { color: var(--orange); }
input, select, textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 14px; font: 15px/1.4 inherit; font-family: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd6e1; border-radius: 7px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #7c9cdc; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
input::placeholder, textarea::placeholder { color: #98a2b3; }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
label.check input, .switch-row input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--orange); }
.form-card h3 { margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; }
.form-card h3:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.drop { border: 1.5px dashed #b9c3d3; border-radius: var(--radius); background: #fafbfd; padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-weight: 400; color: var(--text); margin: 0; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-tint); }
.drop .ic { width: 34px; height: 34px; color: var(--ink); }
.drop u { color: var(--blue); }
.drop small { color: var(--muted); font-size: 12.5px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 6px; font-size: 14px; }
.file-list li small { color: var(--muted); }
.switch-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-2); margin: 0; font-weight: 400; }
.switch-row input { margin-top: 3px; }
.switch-row b { display: block; font-weight: 600; }
.switch-row small { margin-top: 2px; }
.switch-row em { font-style: normal; margin-top: 6px; }
.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 0 12px; align-items: end; margin-bottom: 8px; }
.filter-btns { display: flex; gap: 6px; margin-bottom: 16px; }
.inline-search { width: 300px; height: 40px; margin-bottom: 10px; }

/* how-it-works panel */
.how { display: flex; flex-direction: column; }
.how-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.how-item:first-child { padding-top: 4px; }
.how-item:last-child { border-bottom: 0; }
.how-item b { color: var(--ink); display: block; margin-bottom: 4px; }
.how-item p { margin: 0; color: var(--muted); font-size: 14px; }
.how-ic { width: 44px; height: 44px; border-radius: 50%; border: 1.6px solid var(--ink); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* stepper */
.stepper { display: flex; align-items: center; margin: 4px 0 24px; padding: 4px 6px; }
.stepper.compact { max-width: 720px; }
.st { display: flex; align-items: center; gap: 12px; color: #4a5568; font-weight: 500; white-space: nowrap; font-size: 15px; }
.st span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #b8c1d0; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #4a5568; flex: none; }
.st.done { color: var(--ink); }
.st.done span { background: var(--navy); border-color: var(--navy); color: #fff; }
.st.done span .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.st.current { color: var(--blue); font-weight: 600; }
.st.current span { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); color: var(--blue); }
.stepper.compact .st.current span { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: none; }
.stepper.compact .st.current { color: var(--ink); }
.st-line { flex: 1; height: 2px; background: #d3d9e3; margin: 0 14px; min-width: 24px; }
.st-line.done { background: var(--navy); }

/* case page */
.keyrow { display: flex; flex-wrap: wrap; margin: -6px 0 24px; }
.keyrow > div { padding: 0 28px; border-left: 1px solid var(--line); }
.keyrow > div:first-child { padding-left: 0; border-left: 0; }
.keyrow small { display: block; color: var(--muted); font-size: 14px; }
.keyrow b { color: var(--ink); font-size: 17px; font-weight: 500; }
.job { margin-bottom: 20px; padding: 18px 22px; }
.log-wrap summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.log { font: 12px/1.5 ui-monospace, Menlo, monospace; color: #4a5568; background: var(--head); border-radius: 6px; padding: 10px; max-height: 220px; overflow: auto; white-space: pre-wrap; margin: 8px 0 0; }
.map { height: 400px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid var(--navy); }
.lg-match { background: #16803c; } .lg-possible { background: #e8930c; } .lg-unlikely { background: #d3592a; } .lg-none { background: #98a2b3; }
.lg-gps { background: transparent; border-color: #7c3aed !important; }
.cand header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.cand.top { border: 2px solid var(--orange); }
.rank { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: none; }
.cand.top .rank { background: var(--orange); }
.cand-title { min-width: 0; }
.cand-title h3 { font-size: 17px; margin: 4px 0 6px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #cfd6e1 transparent; }
.thumb { position: relative; flex: none; display: block; }
.thumb img { height: 108px; width: auto; max-width: 190px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.thumb.sv img { border: 2px solid var(--blue); }
.thumb.sat img { border: 2px solid #2f855a; }
.thumb em { position: absolute; left: 4px; bottom: 4px; right: 4px; font-style: normal; font-size: 11px; line-height: 1.3; color: #fff; background: rgba(15, 30, 60, .72); padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted, #5b6573); }
.dates svg { width: 15px; height: 15px; }
details.reading { border-top: 1px solid var(--line-2); padding: 10px 0; }
details.reading summary { cursor: pointer; }
details.reading[open] summary { margin-bottom: 8px; }
.reason { font-size: 14.5px; color: #3d4657; margin: 14px 0 4px; }
.evidence ul { margin: 0; padding-left: 18px; font-size: 14px; color: #3d4657; }
.ok-h .ic { color: var(--green); width: 17px; height: 17px; } .bad-h .ic { color: var(--red); width: 17px; height: 17px; }
.cand-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; }
.cand-foot .src { color: var(--muted); flex: 1; min-width: 240px; }
.cand-foot .links { display: flex; gap: 16px; }
.cand-foot .links a { display: inline-flex; gap: 4px; align-items: center; text-decoration: none; font-weight: 500; }
.cand-foot .links .ic { width: 14px; height: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photo-grid figcaption { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.photo-grid figcaption b { color: var(--ink); font-size: 14px; }
.photo-grid figcaption span { display: flex; gap: 6px; align-items: center; }
.photo-grid figcaption .ic { width: 14px; height: 14px; }
.gps { color: #6d28d9; font-weight: 500; }
.hash { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
ul.plain { margin: 0 0 8px; padding-left: 18px; font-size: 14px; }
.prose ol, .prose ul { padding-left: 20px; } .prose li { margin-bottom: 10px; } .prose h2 { margin-top: 8px; }
.prose h2 + ol, .prose h2 + ul { margin-top: 0; }
.prose h2:not(:first-child) { margin-top: 26px; }

/* leaflet tooltip numbers */
.leaflet-tooltip.pin-num { background: var(--navy); color: #fff; border: 0; font: 600 12px "Inter", sans-serif; padding: 2px 7px; box-shadow: none; }
.leaflet-tooltip.pin-num::before { border-top-color: var(--navy); }

/* ---------- sign-in screens ---------- */
.auth { display: grid; grid-template-columns: minmax(380px, 43%) 1fr; min-height: 100vh; background: #f6f8fb; }
.auth-brand { background: var(--navy); color: #fff; padding: 56px 72px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-logo { width: 230px; height: auto; }
.auth-pitch { margin-top: auto; margin-bottom: auto; position: relative; z-index: 1; padding-top: 60px; }
.auth-pitch h1 { color: #fff; font-size: 58px; font-weight: 600; letter-spacing: -.02em; }
.auth-pitch p { color: #d5dbe8; font-size: 22px; line-height: 1.45; margin: 18px 0 0; max-width: 520px; }
.auth-lines { position: absolute; right: 0; bottom: 0; width: 100%; height: auto; color: rgba(255,255,255,.14); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 48px 46px 34px; width: min(560px, 100%); box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.auth-card.wide { width: min(600px, 100%); }
.auth-card h2 { font-size: 40px; text-align: center; margin: 0; font-weight: 600; letter-spacing: -.02em; }
.auth-card .sub { text-align: center; color: #5b6476; font-size: 17px; margin: 10px 0 28px; }
.auth-card label { font-size: 16px; font-weight: 500; }
.auth-card input { padding: 14px 16px; font-size: 16px; }
.auth-card .btn.primary { padding: 15px; font-size: 17px; margin-top: 6px; }
.auth-card .code { font-size: 22px; letter-spacing: .3em; text-align: center; }
.auth-icon { width: 56px; height: 56px; border-radius: 50%; background: #eef1f6; color: var(--ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.auth-icon .ic { width: 26px; height: 26px; }
.fine { text-align: center; color: #5b6476; font-size: 14px; margin: 18px 0 0; }
.fine.left { text-align: left; margin: 0 0 16px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px; }
.auth-help { color: #4a5568; font-size: 16px; margin-top: 36px; }
.auth-env { position: absolute; right: 30px; bottom: 22px; color: #5b6476; font-size: 13px; }
.steps-list { color: #4a5568; padding-left: 20px; margin: 0 0 6px; }
.qr { display: block; margin: 14px auto 6px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; font-size: 14.5px; }
.note.err { background: var(--red-tint); color: #8f241c; border: 1px solid #f0c3be; }
.note .ic { flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid-main { grid-template-columns: 1fr; }
  .stats.four { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .app.menu-open .side { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .app.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15,26,51,.4); z-index: 25; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; gap: 10px; }
  .top-name, .env { display: none; }
  .content { padding: 22px 16px 32px; }
  .foot { padding: 0 16px 20px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stats.four { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; gap: 16px; }
  .stat-ic { width: 48px; height: 48px; }
  .stat b { font-size: 26px; }
  h1 { font-size: 28px; }
  .lede { font-size: 15.5px; }
  .two { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .page-head .btn.lg { width: 100%; }
  .keyrow > div { padding: 0 16px 10px 0; border-left: 0; width: 50%; }
  .stepper { overflow-x: auto; }
  .stepper .st { font-size: 0; gap: 0; }
  .stepper .st span { font-size: 13px; }
  .st-line { margin: 0 6px; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .tbl td { border: 0; padding: 4px 0; }
  .chev { display: none !important; }
  .filters { grid-template-columns: 1fr 1fr; }
  .inline-search { width: 100%; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px 30px; }
  .auth-logo { width: 150px; }
  .auth-pitch { padding-top: 24px; }
  .auth-pitch h1 { font-size: 34px; }
  .auth-pitch p { font-size: 16px; }
  .auth-card { padding: 30px 22px 24px; }
  .auth-card h2 { font-size: 30px; }
  .auth-env { position: static; margin-top: 12px; }
  .map { height: 300px; }
}

/* sign-in extras */
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-weight: 400; font-size: 15px; }
.note.ok { background: var(--green-tint); color: #146c34; border: 1px solid #bfe3cb; }

/* users admin */
.users-tbl .user-cell small { display: block; }
td.right { text-align: right; }
.action-list { display: flex; flex-direction: column; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.action-row:last-child { border-bottom: 0; }
.action-row b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.action-row small { color: var(--muted); font-size: 13px; }

/* candidate review */
form.inline { display: inline; margin-left: 12px; }
.review { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.review input[name=note] { flex: 1 1 260px; min-width: 0; margin: 0; }
.review .on-green { background: #e6f4ea; border-color: #2f855a; color: #22643f; }
.review .on-amber { background: #fff4e0; border-color: #c27c0e; color: #8a5a00; }
.review .on-red { background: #fde8e8; border-color: #c53030; color: #9b2c2c; }
.review-note { margin: 10px 0 0; font-size: 14px; }
.review-note svg { width: 14px; height: 14px; vertical-align: -2px; }
.cand.rv-confirmed { border-left: 4px solid #2f855a; }
.cand.rv-maybe { border-left: 4px solid #d69e2e; }
.cand.rv-rejected { opacity: .62; }
.cand.rv-rejected .thumbs, .cand.rv-rejected .evidence { display: none; }
.tag.strong { font-weight: 600; }
