/* COPYCAT: forensic case file / police lineup room. Warm off-black room, cream ID cards, one orange. */
:root {
  --bg: #191612; --panel: #211c18; --rule: #463f37; --paper: #ece3d2; --cream: #ede6d6;
  --or: #fd571a; --ink: #1a1714; --grey: #8a8073;
  --disp: "Anton", "Impact", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--cream); font: 15px/1.5 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.or { color: var(--or); }
.fine { color: var(--grey); font-size: 12px; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; letter-spacing: .01em; margin: 0; }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: block; }
.brand-t { font-family: var(--disp); font-size: 28px; letter-spacing: .02em; line-height: 1; }
.tabs { display: flex; gap: 28px; height: 100%; }
.tabs a { display: flex; align-items: center; height: 100%; text-decoration: none; font-size: 13px; letter-spacing: .14em; color: var(--grey); border-bottom: 3px solid transparent; padding-top: 3px; }
.tabs a:hover { color: var(--cream); }
.tabs a.on, .tabs a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--or); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ico { display: inline-flex; align-items: center; gap: 6px; color: var(--cream); text-decoration: none; font-size: 13px; padding: 6px; border-radius: 2px; }
.ico:hover { background: var(--panel); }
.wallet { border: 1px solid var(--cream); background: transparent; border-radius: 2px; padding: 8px 14px; font-size: 13px; letter-spacing: .08em; }
.wallet:hover { border-color: var(--or); color: var(--or); }

/* page */
.page { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }
.demo-note { max-width: 1240px; margin: 14px auto 0; padding: 8px 24px; color: var(--grey); font-size: 12px; text-align: center; }
.demo-note b { color: var(--or); font-weight: 600; }
.hero { text-align: center; padding: 56px 0 36px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .98; text-transform: none; }
.hero--sm { padding: 40px 0 24px; }
.hero--sm h1 { font-size: clamp(36px, 5vw, 60px); }
.kicker { color: var(--or); font-size: 12px; letter-spacing: .2em; margin: 0 0 12px; text-transform: uppercase; }
.lede { color: var(--grey); max-width: 660px; margin: 14px auto 0; font-family: var(--mono); font-size: 15px; }
.search { display: flex; gap: 10px; max-width: 880px; margin: 30px auto 0; }
.search-in { flex: 1; min-width: 0; height: 54px; background: var(--bg) no-repeat 16px 50% / 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8073' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); border: 1px solid var(--cream); border-radius: 2px; color: var(--cream); padding: 0 16px 0 46px; font-size: 15px; outline: none; }
.search-in::placeholder { color: var(--grey); }
.search-in:focus { border-color: var(--or); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--cream); background: transparent; color: var(--cream); border-radius: 2px; padding: 10px 18px; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.btn:hover { border-color: var(--or); color: var(--or); }
.btn--or { background: var(--or); border-color: var(--or); color: var(--ink); }
.btn--or:hover { background: #ff6c35; color: var(--ink); }
.search .btn { height: 54px; padding: 0 28px; font-size: 14px; }
.btn--sm { padding: 7px 12px; font-size: 11px; }
.btn--lg { padding: 16px 22px; font-size: 14px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.lnk { color: var(--or); text-decoration: none; font-size: 12px; letter-spacing: .1em; }
.lnk:hover { text-decoration: underline; }

/* panels */
.panel { border: 1px solid var(--rule); background: var(--panel); border-radius: 3px; padding: 20px 22px; margin-top: 22px; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-h h2 { font-size: 24px; letter-spacing: .03em; }
.panel-h .mono { color: var(--grey); font-size: 12px; letter-spacing: .1em; }
.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; }
.cols > .panel, .side > .panel:first-child { margin-top: 22px; }
.side { display: flex; flex-direction: column; }
.empty { color: var(--grey); font-size: 13px; padding: 10px 0; margin: 0; }
.note { color: var(--grey); font-size: 12px; margin: 16px 0 0; }
.loading { text-align: center; color: var(--grey); letter-spacing: .2em; padding: 120px 0; }

/* lineup room */
.room { position: relative; padding: 18px 0 18px 64px; min-height: 470px; }
.chart { position: absolute; inset: 18px 0 18px 0; pointer-events: none; }
.chart span { position: absolute; left: 0; right: 0; bottom: calc((var(--inch) - 36) / 42 * 100%); font-size: 11px; color: var(--grey); line-height: 0; display: flex; align-items: center; gap: 10px; }
.chart span::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.row { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-color: var(--rule) transparent; }

/* ID card */
.idc { background: var(--paper); color: var(--ink); border-radius: 3px; border: 1px solid var(--ink); display: flex; flex-direction: column; min-width: 0; }
.mug { position: relative; margin: 10px 10px 0; aspect-ratio: 1 / .9; border: 1px solid var(--ink); background: var(--paper) repeating-linear-gradient(to bottom, transparent 0 17px, rgba(26, 23, 20, .22) 17px 18px); display: grid; place-items: center; overflow: visible; }
.mug-cat { width: 66%; height: auto; color: var(--ink); }
.mug [data-pimg] { display: contents; }
.mug-img { width: 78%; height: 78%; object-fit: cover; border: 1px solid var(--ink); background: var(--paper); }
.mug-no, .mug-ht { position: absolute; top: 5px; font-size: 10px; letter-spacing: .08em; color: var(--ink); background: var(--paper); padding: 0 4px; }
.mug-no { left: 5px; }
.mug-ht { right: 5px; }
.stamps { position: absolute; right: -6px; bottom: -12px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stamp { font-family: var(--disp); font-size: 19px; letter-spacing: .06em; line-height: 1; padding: 5px 9px 4px; border: 2px solid currentColor; border-radius: 2px; background: var(--paper); transform: rotate(var(--tilt, -6deg)); display: inline-block; }
.stamp--or { color: var(--or); }
.stamp--ink { color: var(--ink); }
.idc-body { padding: 18px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.idc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.idc h3 { font-size: 30px; line-height: 1.05; overflow-wrap: anywhere; }
.star { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--grey); padding: 2px 4px; }
.star.on, .star:hover { color: var(--or); }
.idc-name { margin: 2px 0 6px; font-size: 12px; color: #5d554b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca { border: 0; background: none; padding: 0; color: var(--ink); font-size: 12px; text-align: left; display: flex; gap: 8px; align-items: baseline; }
.ca i { font-style: normal; font-size: 10px; color: var(--or); letter-spacing: .08em; text-transform: uppercase; }
.ca:hover { text-decoration: underline; }
.rows { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--ink); font-size: 12px; }
.rows div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.rows dt { color: #6f665b; letter-spacing: .04em; }
.rows dd { margin: 0; font-weight: 600; text-align: right; }
.rows .dn { color: #b8360a; }
.rows .up { color: var(--ink); }
.idc-foot { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.dex, .tag { border: 1px solid var(--ink); border-radius: 2px; padding: 2px 8px; font-size: 10px; letter-spacing: .1em; }
.tag { border-color: var(--or); color: #b8360a; }
.tag--off { border-color: #9b9286; color: #6f665b; }
.idc-links { display: flex; justify-content: center; gap: 14px; margin-top: 8px; font-size: 11px; }
.idc-links a { color: var(--ink); }
.idc-links a:hover { color: var(--or); }
.idc--rug { opacity: .72; }
.idc--rug .mug::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 2px), var(--or) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)); pointer-events: none; }

/* case header */
.case-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 4px; }
.case-h h2 { font-size: 40px; }
.case-h .lede { margin: 6px 0 0; }
.tally { display: flex; gap: 26px; margin: 0; }
.tally div { text-align: right; }
.tally dt { color: var(--grey); font-size: 11px; letter-spacing: .12em; }
.tally dd { margin: 0; font-family: var(--disp); font-size: 30px; }
.empty-case { text-align: center; padding: 56px 22px; }
.empty-case .stamp { font-size: 40px; padding: 8px 18px 6px; color: var(--or); background: transparent; --tilt: -6deg; }
.empty-case p { color: var(--grey); max-width: 520px; margin: 22px auto 18px; }

/* radar + lists */
.radar { width: 100%; border-collapse: collapse; font-size: 13px; }
.radar th { text-align: left; color: var(--grey); font-weight: 500; font-size: 11px; letter-spacing: .12em; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.radar th:nth-child(2) { color: var(--or); }
.radar td { padding: 9px 8px; border-bottom: 1px solid var(--rule); }
.radar tr:last-child td { border-bottom: 0; }
.radar td a { text-decoration: none; font-weight: 600; }
.radar td a:hover { color: var(--or); }
.radar td.or { font-weight: 700; }
.radar .num { text-align: right; }
.checked, .watch { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.checked { counter-reset: n; }
.checked li, .watch li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.checked li:last-child, .watch li:last-child { border-bottom: 0; }
.checked li::before { counter-increment: n; content: counter(n) "."; color: var(--grey); width: 22px; }
.checked a, .watch a { text-decoration: none; font-weight: 600; }
.checked a:hover, .watch a:hover { color: var(--or); }
.checked li > :last-child, .watch li > :last-child { margin-left: auto; color: var(--grey); }

/* launch */
.seq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.protocol { padding: 6px 22px 22px; }
.step { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 18px 0 4px; }
.step:first-child { border-top: 0; }
.step legend { display: flex; align-items: baseline; gap: 12px; padding: 0; font-family: var(--disp); font-size: 22px; letter-spacing: .04em; float: left; width: 100%; margin-bottom: 12px; }
.step legend b { color: var(--or); font-size: 12px; font-weight: 600; }
.step legend small { margin-left: auto; color: var(--grey); font-size: 11px; letter-spacing: .08em; }
.step > :not(legend) { clear: both; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fld > span { font-size: 11px; letter-spacing: .12em; color: var(--grey); display: flex; justify-content: space-between; }
.fld em { font-style: normal; }
.fld--narrow { max-width: 260px; }
.field { width: 100%; background: var(--bg); border: 1px solid var(--rule); border-radius: 2px; color: var(--cream); padding: 11px 12px; font: 14px/1.4 var(--mono); outline: none; }
.field:focus { border-color: var(--or); }
textarea.field { resize: vertical; }
.drop { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--rule); border-radius: 2px; padding: 12px; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--or); }
.th { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--grey); font-size: 24px; overflow: hidden; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid var(--rule); background: transparent; border-radius: 2px; padding: 7px 12px; font-size: 12px; }
.chip.on { border-color: var(--or); color: var(--or); }
.booth { position: sticky; top: 90px; }
.idc--preview { margin-bottom: 16px; }
.cost { margin: 0 0 12px; }
.status { font-size: 13px; margin: 12px 0 0; }
.status:empty { display: none; }
.status.ok { color: var(--cream); border-left: 3px solid var(--or); padding-left: 10px; }
.status.err { color: var(--or); border: 1px solid var(--or); border-radius: 2px; padding: 10px 12px; margin-top: 16px; }

/* footer */
.foot { border-top: 1px solid var(--rule); margin-top: 40px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--grey); font-size: 12px; }
.foot-brand img { width: 26px; height: 26px; }
.foot-links { display: flex; gap: 16px; align-items: center; }
.foot-links a { color: var(--grey); text-decoration: none; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.foot-links a:hover { color: var(--cream); }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-left: 4px solid var(--or); border-radius: 2px; padding: 10px 14px; font: 13px var(--mono); transition: opacity .4s, transform .4s; }
.toast.err { border-left-color: #b8360a; }
.toast.out { opacity: 0; transform: translateY(6px); }
.tile { display: inline-grid; place-items: center; background: var(--paper); color: var(--ink); border-radius: 2px; }

/* mobile */
@media (max-width: 900px) {
  .top-in { gap: 16px; padding: 0 14px; height: auto; min-height: 60px; flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; height: 42px; gap: 18px; overflow-x: auto; }
  .tabs a { font-size: 12px; }
  .cols, .seq-grid { grid-template-columns: 1fr; }
  .booth { position: static; }
}
@media (max-width: 600px) {
  .page { padding: 0 14px 48px; }
  .brand-t { font-size: 24px; }
  .ico span, .wallet { font-size: 11px; }
  .wallet { padding: 7px 10px; }
  .hero { padding: 36px 0 24px; }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .panel { padding: 16px 14px; }
  .room { padding-left: 44px; min-height: 440px; }
  .chart span { font-size: 9px; }
  .row { grid-auto-columns: 210px; }
  .two { grid-template-columns: 1fr; }
  .tally { gap: 16px; }
  .tally dd { font-size: 24px; }
  .radar th:nth-child(n+4), .radar td:nth-child(n+4) { display: none; }
}
