/* Shortlist admin. Same colours and type as the app: ink, white, bone, one accent. */
@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(fonts/inter-300.woff2) format('woff2'); }
@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'); }

:root {
  --ink: #161616; --paper: #fff; --bone: #F2EDE4; --line: #E6DFD2; --border: #D6CDBE; --muted: #6E675D; --ox: #8A1C2B; --ph: #E9E2D6;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/20px Inter, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
img { display: block; }

/* ---------- frame ---------- */
.frame { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.rail { background: var(--bone); padding: 28px 16px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.rail .mark { height: 17px; margin: 0 8px; align-self: flex-start; }
.rail .sub { margin: 6px 8px 28px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { height: 40px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; font-weight: 500; text-align: left; }
.nav button:hover { background: rgba(22, 22, 22, 0.05); }
.nav button.on { background: var(--ink); color: var(--paper); }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--ox); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.nav button.on .count { background: var(--paper); color: var(--ink); }
.figures { margin: 28px 8px 0; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 9px; }
.figures div { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.figures b { font-weight: 500; color: var(--ink); }
.who { margin-top: auto; padding: 0 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.who button { display: block; margin-top: 6px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.main { padding: 36px 40px 80px; min-width: 0; }
.wrap { max-width: 1040px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.head h1 { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.2px; }
.head p { margin-top: 4px; color: var(--muted); font-weight: 300; }

/* ---------- pieces ---------- */
.btn { height: 44px; padding: 0 22px; border-radius: 22px; background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.ghost { background: var(--bone); color: var(--ink); font-weight: 500; }
.btn.small { height: 36px; padding: 0 16px; border-radius: 18px; font-size: 13px; }
.btn.danger { background: var(--ox); }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.link.quiet { color: var(--muted); font-weight: 400; }
.link.ox { color: var(--ox); }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; background: var(--paper); }
.muted { color: var(--muted); }
.light { font-weight: 300; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--bone); font-size: 11px; font-weight: 500; white-space: nowrap; }
.tag.dark { background: var(--ink); color: #D9C3A0; }
.tag.ox { background: var(--ox); color: #fff; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
textarea.input { height: 76px; padding: 10px 14px; resize: vertical; }
.input::placeholder { color: var(--muted); opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--bone); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.chip.on { background: var(--ink); color: #fff; }
.chip .n { font-weight: 400; opacity: 0.6; }
.seg { display: inline-flex; padding: 2px; background: var(--line); border-radius: 11px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 500; }
.seg button.on { background: var(--paper); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--border); position: relative; flex: none; transition: background 0.15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: transform 0.15s; }
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(18px); }
.empty { padding: 96px 20px; text-align: center; }
.empty h2 { font-size: 19px; line-height: 24px; font-weight: 600; }
.empty p { max-width: 380px; margin: 8px auto 0; color: var(--muted); font-weight: 300; }
.ph { background: var(--ph); object-fit: cover; aspect-ratio: 3 / 4; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; z-index: 80; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); display: flex; align-items: center; gap: 10px; }
.toast.bad { background: var(--ox); padding-right: 8px; }
.toast .x { width: 44px; height: 44px; margin: -8px 0; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; }
.toast .x svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* ---------- sign in ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bone); }
.gate form, .gate .box { width: 100%; max-width: 380px; padding: 36px 32px 32px; border-radius: 20px; background: var(--paper); }
.gate .mark { height: 22px; }
.gate .bar { width: 22px; height: 2px; margin: 18px 0 14px; background: var(--ox); }
.gate h1 { font-size: 22px; line-height: 28px; font-weight: 600; }
.gate p { margin: 6px 0 22px; color: var(--muted); font-weight: 300; }
.gate .btn { width: 100%; margin-top: 6px; }
.gate .err { margin: 12px 0 0; color: var(--ox); font-weight: 400; }

/* ---------- approvals ---------- */
.person { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.person h2 { font-size: 18px; line-height: 24px; font-weight: 600; }
.person .line { margin-top: 2px; color: var(--muted); }
.person .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.shots { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px 12px; }
.shot .pic { display: block; width: 100%; border-radius: 10px; overflow: hidden; position: relative; }
.shot .pic img { width: 100%; }
.shot.out .pic { outline: 2px solid var(--ox); outline-offset: 2px; }
.shot.out .pic img { opacity: 0.35; }
.shot .cap { margin-top: 7px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.shot .cap span { color: var(--muted); font-weight: 300; }
.decide { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.decide .why { flex: 1; min-width: 240px; display: flex; gap: 8px; }
.decide .hint { flex: 1; color: var(--muted); font-weight: 300; font-size: 13px; }

/* ---------- large photo ---------- */
.veil { position: fixed; inset: 0; z-index: 40; background: rgba(22, 22, 22, 0.5); }
.look { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: grid; grid-template-rows: 56px minmax(0, 1fr) auto; }
.look .top, .look .bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; }
.look .stage { min-height: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 20px; }
.look .top b { font-weight: 500; }
.look .bottom { min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
.look figure { margin: 0; position: relative; }
.look .big { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.look .big img { max-height: 100%; max-width: min(100%, 720px); border-radius: 12px; background: var(--ph); }
.look .sizes { flex: none; display: flex; flex-direction: column; gap: 14px; }
.look .sizes figure { width: 132px; }
.look .sizes img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--ph); }
.look figcaption { margin-top: 5px; font-size: 12px; color: var(--muted); }
.look img.dim { opacity: 0.35; }
.look .gone img { display: none; }
.look .big.gone { width: 270px; height: 360px; max-height: 100%; border-radius: 12px; background: var(--ph); outline: 2px solid var(--ox); }
.look .sizes .gone::before { content: ''; display: block; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--ph); outline: 2px solid var(--ox); }
.look .gone .miss { position: absolute; left: 4px; right: 4px; top: 38%; margin: 0; text-align: center; }
.round { width: 44px; height: 44px; border-radius: 22px; background: var(--bone); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.round:disabled { opacity: 0.3; cursor: default; }
.round svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- lists ---------- */
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.bar .input { max-width: 300px; }
.rows { border-top: 1px solid var(--line); }
.rowp { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.rowp:hover { background: #FBF9F5; }
.rowp img, .rowp .noimg { width: 48px; height: 64px; border-radius: 8px; }
.rowp .noimg { background: var(--bone); }
.rowp .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowp .under { font-size: 13px; color: var(--muted); font-weight: 300; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowp .marks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.report { display: grid; grid-template-columns: 72px 1fr; gap: 18px; }
.report img, .report .noimg { width: 72px; height: 96px; border-radius: 10px; }
.report .noimg { background: var(--bone); }
.report h2 { font-size: 16px; line-height: 22px; font-weight: 600; }
.report .tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.report .acts { margin-top: 14px; }
.report .acts .field { margin-bottom: 10px; }
.report .acts input.input { height: 36px; border-radius: 18px; font-size: 13px; }
.report .acts textarea.input { font-size: 13px; }
.report .acts .choice { justify-content: flex-end; }

/* ---------- side panel ---------- */
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(520px, 100vw); background: var(--paper); overflow-y: auto; padding: 0 24px 160px; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12); }
.panel .top { position: sticky; top: 0; z-index: 1; height: 64px; margin: 0 -24px 8px; padding: 0 24px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; }
.panel .top h2 { font-size: 20px; font-weight: 600; }
.panel h3 { margin: 26px 0 10px; font-size: 12px; font-weight: 400; color: var(--muted); }
.set { background: var(--bone); border-radius: 14px; padding: 0 16px; }
.set > div { min-height: 56px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.set > div + div { border-top: 1px solid var(--line); }
.set .t { font-weight: 500; }
.set .d { font-size: 12px; color: var(--muted); font-weight: 300; }
.set .seg { background: #E1D9CB; }
.set input[type='date'] { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13px; }
.facts dt { color: var(--muted); font-weight: 300; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.mini .pic { display: block; width: 100%; border-radius: 8px; overflow: hidden; }
.mini .pic img { width: 100%; }
.mini .st { margin-top: 5px; font-size: 11px; color: var(--muted); font-weight: 300; }
.mini .st.ox { color: var(--ox); font-weight: 400; }
.rates { display: grid; grid-template-columns: 1fr 110px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }

/* ---------- pieces added with the audit fixes ---------- */
[hidden] { display: none !important; }
.foot { margin: 40px 0 0; font-size: 12px; color: var(--muted); font-weight: 300; }
.more { margin: 14px 4px 0; font-size: 13px; color: var(--muted); font-weight: 300; }
.help { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 300; }
.gap { margin-top: 10px; }
.set.gap { margin-top: 6px; }
.warn { color: var(--ox); font-weight: 500; }
.empty .btn { margin-top: 18px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link.tiny { font-size: 11px; }
.link.block { display: block; margin-top: 10px; }
.link:disabled, .switch:disabled, .seg button:disabled { opacity: 0.35; cursor: default; }
.fielderr { display: block; margin-top: 6px; font-size: 12px; color: var(--ox); font-weight: 500; }
.input[aria-invalid='true'] { border-color: var(--ox); }
.working { margin-top: 10px; font-size: 13px; font-weight: 500; }
.ends { margin-top: 24px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.round.sm { width: 36px; height: 36px; }
.rowp > div { min-width: 0; }
.until { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card.done { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--bone); border-color: var(--bone); }
.card.done h2 { font-size: 16px; line-height: 22px; font-weight: 600; }
.card.done p { margin-top: 4px; color: var(--muted); }
.shot.bad .pic { outline: 2px solid var(--ox); outline-offset: 2px; }
.miss { margin-top: 3px; font-size: 11px; color: var(--ox); font-weight: 500; }
.veil.high { z-index: 65; }
.ask { position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); padding: 26px 24px 22px; border-radius: 20px; background: var(--paper); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25); }
.ask h2 { font-size: 18px; line-height: 24px; font-weight: 600; }
.ask p { margin: 8px 0 20px; color: var(--muted); font-weight: 300; }
.mini .link { margin-top: 3px; }
.mini .picked .pic { outline: 2px solid var(--ox); outline-offset: 2px; }
.takedown { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--bone); display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.takedown .thumb img { width: 72px; border-radius: 8px; }
.takedown .form { display: grid; gap: 8px; min-width: 0; }
.takedown .t { font-weight: 500; }

@media (max-width: 860px) {
  .frame { display: block; }
  .rail { position: static; height: auto; padding: 18px 16px 12px; }
  .rail .sub { margin-bottom: 14px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { gap: 8px; flex: none; background: rgba(22, 22, 22, 0.05); border-radius: 18px; height: 36px; }
  .rail { position: relative; }
  .figures, .who span { display: none; }
  .who { position: absolute; top: 14px; right: 16px; margin: 0; padding: 0; }
  .who button { margin: 0; }
  .main { padding: 22px 16px 60px; }
  .head { align-items: flex-start; flex-direction: column; }
  .rowp { grid-template-columns: 48px 1fr; row-gap: 6px; }
  .rowp .phone { display: none; }
  .rowp .marks { grid-column: 2; justify-content: flex-start; }
  .rowp .marks:empty { display: none; }
  .shot .cap { flex-direction: column; gap: 2px; align-items: flex-start; }
  .decide .hint, .decide .why { flex-basis: 100%; }
  .decide .why { flex-direction: column; min-width: 0; }
  .shots { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
  .decide { justify-content: stretch; }
  .decide .btn { flex: 1; }
  .look .stage { flex-direction: column; gap: 8px; padding: 0 12px; position: relative; }
  .look .big { flex: 1 1 0; min-height: 0; width: 100%; height: auto; }
  .look .sizes { flex-direction: row; gap: 12px; }
  .look .sizes figure { width: 66px; }
  .look .stage > .round { position: absolute; top: 36%; z-index: 1; background: rgba(242, 237, 228, 0.92); }
  .look .stage > .round.prev { left: 10px; }
  .look .stage > .round.next { right: 10px; }
  .look .bottom { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
  .takedown { grid-template-columns: 56px 1fr; }
  .takedown .thumb img { width: 56px; }
  .panel { padding: 0 16px 160px; }
  .panel .top { margin: 0 -16px 8px; padding: 0 16px; }
}

/* Phones and other touch screens: everything that can be tapped is at least 44px, and fields use 16px type so the page does not zoom. */
@media (max-width: 860px), (pointer: coarse) {
  .btn.small { height: 44px; border-radius: 22px; }
  .nav button, .chip, .seg button { height: 44px; }
  .seg { border-radius: 13px; }
  .seg button { border-radius: 11px; }
  .chip { border-radius: 22px; }
  .link, .who button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .link.block { display: flex; }
  .shot .cap .link, .mini .link, .link.block { justify-content: flex-start; }
  .round.sm { width: 44px; height: 44px; }
  .rates { grid-template-columns: 1fr 96px 44px; }
  .switch::before { content: ''; position: absolute; inset: -8px -2px; }
  .set input[type='date'], .report .acts input.input { height: 44px; }
  .report .acts input.input { border-radius: 22px; }
  input, select, textarea, .input, .report .acts input.input, .report .acts textarea.input { font-size: 16px; }
}
@media (max-width: 860px) {
  .who { top: 4px; }
  .report .acts .choice { justify-content: flex-start; }
}
/* Second step (authenticator app) */
.gate .qr { display: block; width: 200px; height: 200px; margin: 16px 0 8px; background: #fff; border-radius: 8px; }
.gate code { font-size: 12px; letter-spacing: .04em; word-break: break-all; }
.gate .btn.ghost { margin-top: 10px; }
