/* Ketone Labs infringement dashboard — prototype styles.
   Brand: navy #13273B, green #54E38E -> teal #41C7AF (goBHB logo), Helvetica/Roboto. */
:root {
  --navy: #13273b;
  --navy-2: #1c3550;
  --navy-3: #284766;
  --green: #54e38e;
  --teal: #41c7af;
  --mint: #bdffd9;
  --mint-2: #e9fbf1;
  --forest: #397325;
  --page: #f4f6f8;
  --surface: #ffffff;
  --ink: #0f1d2b;
  --ink-2: #4a5867;
  --muted: #8592a0;
  --line: #e3e8ee;
  --line-2: #d0d8e1;
  /* chart series, validated (dataviz palette, light) */
  --s-patent: #2a78d6;
  --s-foreign: #eb6834;
  --s-falsead: #1baf7a;
  --s-tm: #eda100;
  --s-other: #9aa5b1;
  /* status, fixed */
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 29, 43, .06), 0 1px 8px rgba(15, 29, 43, .04);
  font-family: Helvetica, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.45; }
a { color: var(--navy-3); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy); color: #c9d5e2; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand img { height: 30px; }
.brand .word { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.15; }
.brand .word small { display: block; color: var(--teal); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px;
  color: #c9d5e2; text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.nav a .count { margin-left: auto; background: rgba(84, 227, 142, .16); color: var(--green); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav .sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }
.sidebar .foot { margin-top: auto; font-size: 12px; color: #8ea2b7; padding: 10px; }
.sidebar .foot .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(244,246,248,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 14px; padding: 12px 28px; border-bottom: 1px solid var(--line);
}
.search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 12px; color: var(--muted); cursor: text;
}
.search kbd { margin-left: auto; font-size: 11px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }
.topbar .spacer { flex: 1; }
.role { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.role select { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; background: var(--surface); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--teal)); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.demo-banner { background: #fff8e6; color: #7a5600; border-bottom: 1px solid #f2dfa8; padding: 6px 28px; font-size: 12.5px; }
.demo-banner button { border: none; background: none; color: #7a5600; text-decoration: underline; padding: 0; }

.page { padding: 24px 28px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.page-head .sub { color: var(--ink-2); margin-top: 3px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; }
.card-h h3 { margin: 0; font-size: 14.5px; }
.card-h .hint { color: var(--muted); font-size: 12.5px; }
.card-h .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-b { padding: 14px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2 { grid-template-columns: 2fr 1fr; }
.g-2e { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1150px) { .g-kpi { grid-template-columns: repeat(3, 1fr); } .g-2, .g-2e, .g-3 { grid-template-columns: 1fr; } }

.kpi { padding: 16px 18px; cursor: pointer; transition: border-color .15s; }
.kpi:hover { border-color: var(--teal); }
.kpi .label { color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi .delta { font-size: 12.5px; color: var(--ink-2); }
.kpi .delta.up { color: #006300; }
.kpi .delta.bad { color: var(--critical); }
.kpi.hero { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.hero .label, .kpi.hero .delta { color: #b8c7d6; }
.kpi.hero .value { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); border-radius: 8px; padding: 7px 12px; font-weight: 500; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--navy-3); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-3); }
.btn.go { background: var(--green); border-color: var(--green); color: var(--navy); }
.btn.go:hover { background: #45d47f; }
.btn.danger { color: var(--critical); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: none; background: none; padding: 6px 11px; font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: var(--navy); color: #fff; }

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef2f6; color: var(--ink-2); }
.chip .sw { width: 8px; height: 8px; border-radius: 2px; }
.chip.t-PATENT { background: #e6f0fc; color: #1c5cab; }
.chip.t-PATENT-FOREIGN { background: #fdeee7; color: #a8441b; }
.chip.t-FALSE-AD { background: #e2f6ee; color: #0f7a54; }
.chip.t-TM { background: #fdf3dc; color: #8a5d00; }
.chip.t-NONE, .chip.t-CLEARED { background: #eef2f6; color: var(--ink-2); }
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.stage i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.stage.s-New i { background: var(--navy-3); }
.stage.s-Confirmed i { background: var(--s-patent); }
.stage.s-Escalated i { background: var(--serious); }
.stage.s-Takedown-sent i { background: var(--warning); }
.stage.s-Removed i { background: var(--good); }
.stage.s-Relisted i { background: var(--critical); }
.stage.s-Closed i { background: var(--muted); }
.stage.s-Dismissed i { background: #c3c2b7; }
.pill-conf { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12.5px; }
.bar-conf { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.bar-conf b { display: block; height: 100%; background: var(--teal); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.flag { font-size: 11px; font-weight: 700; color: var(--ink-2); background: #eef2f6; border-radius: 4px; padding: 1px 5px; letter-spacing: .03em; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select, .filters input[type=search] {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 6px 9px; font-size: 13px;
}
.filters input[type=search] { min-width: 260px; }
.filters .count { margin-left: auto; color: var(--ink-2); font-size: 13px; }

/* ---------- tables (grid view) ---------- */
.tbl-wrap { overflow: auto; max-height: calc(100vh - 250px); }
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.tbl th {
  position: sticky; top: 0; background: #f8fafc; text-align: left; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); padding: 8px 10px; white-space: nowrap; cursor: pointer; user-select: none; z-index: 1;
}
.tbl th.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td { border-bottom: 1px solid var(--line); padding: 7px 10px; vertical-align: middle; }
.tbl tr:hover td { background: #f6fbf8; }
.tbl tr.sel td { background: var(--mint-2); }
.tbl td.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl img.thumb { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #f3f5f7; display: block; }
.tbl select.inline { border: 1px solid transparent; background: transparent; padding: 3px 4px; border-radius: 6px; font-size: 12.5px; }
.tbl select.inline:hover { border-color: var(--line-2); background: var(--surface); }
.tbl .sort { color: var(--teal); }

/* ---------- finding cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.fcard { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .12s, border-color .12s; }
.fcard:hover { border-color: var(--teal); transform: translateY(-1px); }
.fcard .img { height: 170px; background: #f3f5f7; display: grid; place-items: center; position: relative; }
.fcard .img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.fcard .img { overflow: hidden; }
.fcard .img .noimg { color: var(--muted); font-size: 12px; }
.fcard .img .sel { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; }
.fcard .img .mk { position: absolute; top: 8px; right: 8px; }
.fcard .body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fcard .bn { font-weight: 700; }
.fcard .pn { color: var(--ink-2); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.fcard .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.fcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }

.bulkbar {
  position: sticky; bottom: 16px; margin-top: 16px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 30px rgba(15,29,43,.25); z-index: 15;
}
.bulkbar .btn { background: var(--navy-2); border-color: var(--navy-3); color: #fff; }
.bulkbar .btn.go { background: var(--green); color: var(--navy); border-color: var(--green); }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .detail { grid-template-columns: 1fr; } }
.gallery .hero-img { height: 340px; background: #f3f5f7; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.gallery .hero-img img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery .thumbs img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: #f3f5f7; border: 2px solid transparent; cursor: pointer; }
.gallery .thumbs img.on { border-color: var(--teal); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.reason { background: var(--mint-2); border-left: 3px solid var(--teal); padding: 12px 14px; border-radius: 6px; font-size: 13.5px; }
.evid { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.evid li { font-size: 13px; }
.facts { white-space: pre-wrap; font-size: 12.5px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 260px; overflow: auto; }
.claims { display: flex; flex-wrap: wrap; gap: 6px; }
.claims span { background: #eef2f6; border-radius: 6px; padding: 3px 8px; font-size: 12.5px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--muted); font-size: 12px; }
.actions-panel { display: flex; flex-direction: column; gap: 10px; }
.actions-panel .row { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-panel textarea { width: 100%; min-height: 70px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.actions-panel select { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; }
.stepper { display: flex; gap: 0; margin: 4px 0 6px; }
.stepper div { flex: 1; text-align: center; font-size: 11px; color: var(--muted); position: relative; padding-top: 16px; }
.stepper div::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 3px; background: var(--line); }
.stepper div::after { content: ""; position: absolute; top: 0; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.stepper div.done::before { background: var(--teal); }
.stepper div.done::after { background: var(--teal); }
.stepper div.cur { color: var(--ink); font-weight: 700; }
.stepper div.cur::after { background: var(--navy); box-shadow: 0 0 0 3px var(--mint); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #eaeef2; border-radius: 10px; padding: 10px; min-height: 300px; }
.col.over { outline: 2px dashed var(--teal); }
.col h4 { margin: 2px 4px 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.col h4 .n { margin-left: auto; color: var(--muted); font-weight: 500; }
.kcard { background: var(--surface); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: grab; border: 1px solid var(--line); font-size: 12.5px; }
.kcard:hover { border-color: var(--teal); }
.kcard .t { font-weight: 700; font-size: 13px; }
.kcard .p { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .m { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.kcard .age { margin-left: auto; color: var(--muted); }
.kcard .age.old { color: var(--critical); font-weight: 600; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.list li:last-child { border-bottom: none; }
.list .r { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.list a:hover { color: var(--navy-3); text-decoration: underline; }
.health { display: flex; align-items: center; gap: 8px; }
.health .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 700; }
.ic.good { background: var(--good); } .ic.warning { background: var(--warning); color: var(--navy); } .ic.critical { background: var(--critical); }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: #e9edf1; }
.chart .base { stroke: #c3cbd4; }
.chart .mark { cursor: pointer; }
.chart .mark:hover { opacity: .8; }
.chart .lbl { fill: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.tip {
  position: fixed; pointer-events: none; z-index: 100; background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 10px;
  font-size: 12.5px; box-shadow: 0 6px 20px rgba(0,0,0,.2); min-width: 120px; display: none;
}
.tip .h { color: #b8c7d6; font-size: 11.5px; margin-bottom: 4px; }
.tip .row { display: flex; align-items: center; gap: 8px; }
.tip .row b { margin-left: auto; padding-left: 14px; }
.tip .k { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.hbar { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; margin: 7px 0; cursor: pointer; }
.hbar .track { height: 10px; background: #eef2f6; border-radius: 4px; overflow: hidden; display: flex; gap: 2px; }
.hbar .track b { display: block; height: 100%; }
.hbar .track b:last-child { border-radius: 0 4px 4px 0; }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hbar:hover .name { color: var(--navy-3); text-decoration: underline; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.funnel > div { flex: 1; background: #f3f6f9; border-radius: 8px; padding: 10px 12px; cursor: pointer; border: 1px solid transparent; }
.funnel > div:hover { border-color: var(--teal); }
.funnel .n { font-size: 22px; font-weight: 700; }
.funnel .l { font-size: 12px; color: var(--ink-2); }

/* ---------- modal / palette / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,29,43,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk { width: min(640px, 92vw); background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cmdk input { width: 100%; border: none; border-bottom: 1px solid var(--line); padding: 16px 18px; font-size: 16px; outline: none; }
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.cmdk li { padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 13.5px; }
.cmdk li.on, .cmdk li:hover { background: var(--mint-2); }
.cmdk li .k { margin-left: auto; color: var(--muted); font-size: 12px; }
.modal { width: min(560px, 92vw); background: var(--surface); border-radius: 12px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h3 { margin: 0 0 6px; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.modal label { display: block; font-size: 13px; color: var(--ink-2); margin: 10px 0 4px; }
.modal input, .modal select, .modal textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 16px; z-index: 120; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: 13.5px; }
.toast b { color: var(--green); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.lock { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; }

@media print {
  .sidebar, .topbar, .demo-banner, .no-print { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ---------- signed-in user ---------- */
.who { display: flex; align-items: center; gap: 10px; }
.who-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: 13px; }
.who-text span { color: var(--muted); font-size: 12px; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-brand {
  background: radial-gradient(1200px 600px at 0% 0%, var(--navy-3), var(--navy) 60%); color: #c9d5e2;
  padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.login-brand img { width: 150px; }
.login-brand h1 { color: #fff; font-size: 34px; margin: 10px 0 0; letter-spacing: -.02em; }
.login-brand p { font-size: 16px; max-width: 440px; margin: 0; }
.login-brand ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.login-brand li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #e6edf4; }
.login-brand li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(84,227,142,.18); color: var(--green); font-size: 12px; font-weight: 700; }
.login-brand .small { margin-top: 30px; color: #8ea2b7; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(460px, 100%); }
.login-card h2 { margin: 0 0 4px; font-size: 26px; }
.login-card label { display: block; font-size: 13px; color: var(--ink-2); margin: 14px 0 5px; }
.login-card input { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; background: #f8fafc; color: var(--ink-2); }
.accounts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.account {
  display: flex; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; transition: border-color .12s, box-shadow .12s;
}
.account:hover { border-color: var(--teal); }
.account.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--mint); }
.account .avatar { flex: none; }
.a-text { display: flex; flex-direction: column; font-size: 13.5px; }
.a-text span { color: var(--ink-2); font-size: 12.5px; }
.l-go { width: 100%; justify-content: center; padding: 10px 12px; margin-top: 16px; font-size: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or + .l-go { margin-top: 12px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login-brand { padding: 36px 24px; } }

/* ---------- web app: sign-in errors, password forms, users ---------- */
.l-err { color: #d03b3b; min-height: 1.2em; margin: 6px 0 0; }
.login-card form input:not([type=checkbox]) { width: 100%; }
.modal .login-card { box-shadow: none; padding: 0; max-width: none; }
.temp-pw { display: inline-block; font-size: 18px; padding: 8px 12px; background: var(--bg, #f3f6f9); border-radius: 6px; user-select: all; letter-spacing: .03em; }
.login-card input { background: #fff; color: var(--ink); }
