/* ============================================================
   CIS CAPTURE — marine switchgear aesthetic
   Steel-plate dark UI · hull-stencil type · signal-lamp states
   Glove-first: every control ≥56px, text ≥16px, AAA contrast
   ============================================================ */

:root {
  --steel-0: #0e1216;   /* hull dark */
  --steel-1: #161c22;   /* panel */
  --steel-2: #1f2730;   /* raised plate */
  --line: #2c3742;      /* plate seams */
  --ink: #e9eef3;
  --ink-dim: #93a1ad;
  --orange: #ff6a1a;    /* safety orange — primary action */
  --orange-deep: #cc4f0d;
  --lamp-pending: #ffb020;
  --lamp-synced: #2fd47a;
  --lamp-invalid: #ff4d4d;
  --lamp-attend: #c792ff;
  --chamfer: 10px;
  --font-stencil: "Saira Stencil One", "Barlow Semi Condensed", sans-serif;
  --font-ui: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Semi Condensed", "Barlow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { color-scheme: dark; }

body {
  background:
    radial-gradient(1200px 500px at 80% -10%, #1a232c 0%, transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,0.015) 119px 120px),
    var(--steel-0);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  min-height: 100dvh;
  padding-bottom: 96px;
}

.stencil { font-family: var(--font-stencil); letter-spacing: 0.04em; font-weight: 400; }

/* chamfered plate corners — cut steel */
.plate {
  background: linear-gradient(180deg, var(--steel-2), var(--steel-1));
  border: 1px solid var(--line);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)),
                     calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
}
.topbar-id { display: flex; align-items: baseline; gap: 10px; }
.project-code { font-size: 30px; color: var(--ink); }
.topbar-sub { font-family: var(--font-cond); font-weight: 800; font-size: 12px;
  letter-spacing: 0.28em; color: var(--ink-dim); }

.hazard-stripe {
  height: 6px;
  background: repeating-linear-gradient(135deg,
    var(--orange) 0 14px, var(--steel-0) 14px 28px);
  opacity: 0.85;
}

/* ---------- project picker ---------- */
.topbar-id { position: relative; display: flex; align-items: baseline; gap: 10px; }
.project-chooser {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: none; border: 0; padding: 4px 2px; cursor: pointer; color: inherit;
}
.project-caret { font-size: 14px; color: var(--orange); transform: translateY(-2px); }

/* ---------- sync banner ---------- */
.sync-banner {
  background: rgba(255,77,77,0.12); border-bottom: 1px solid var(--lamp-invalid);
  color: var(--lamp-invalid); font-family: var(--font-cond); font-weight: 600;
  font-size: 15px; letter-spacing: 0.02em; padding: 10px 14px; text-align: center;
}

/* ---------- signal lamps ---------- */
.lamp-cluster {
  display: flex; align-items: center; gap: 9px;
  background: var(--steel-0); border: 1px solid var(--line);
  padding: 10px 14px; min-height: 48px; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.lamp {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #000; box-shadow: inset 0 0 3px rgba(0,0,0,0.8);
  background: #3a4750;
}
.lamp[data-state="pending"]  { background: var(--lamp-pending);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--lamp-pending) 60%, transparent);
  animation: lamp-pulse 1.6s ease-in-out infinite; }
.lamp[data-state="syncing"]  { background: var(--lamp-pending);
  animation: lamp-pulse 0.5s ease-in-out infinite; }
.lamp[data-state="synced"]   { background: var(--lamp-synced);
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--lamp-synced) 50%, transparent); }
.lamp[data-state="invalid"]  { background: var(--lamp-invalid);
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--lamp-invalid) 60%, transparent); }
.lamp[data-state="needs-attention"] { background: var(--lamp-attend); }
.lamp[data-state="offline"]  { background: #54616c; }
@keyframes lamp-pulse { 50% { opacity: 0.35; } }

.lamp-label { font-family: var(--font-cond); font-weight: 800; font-size: 14px;
  letter-spacing: 0.12em; color: var(--ink-dim); }

/* ---------- day list ---------- */
.view { padding: 18px 14px; max-width: 720px; margin: 0 auto; }
.day-head { display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; }
.day-title { font-size: 42px; line-height: 1; color: var(--ink);
  text-shadow: 3px 3px 0 rgba(255, 106, 26, 0.25); }
.day-counts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.count { font-family: var(--font-cond); font-weight: 800; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line); background: var(--steel-1); }
.count-pending { color: var(--lamp-pending); }
.count-synced  { color: var(--lamp-synced); }
.count-invalid { color: var(--lamp-invalid); }
.count-attend  { color: var(--lamp-attend); }

.cards { list-style: none; display: grid; gap: 12px; }
.card {
  background: linear-gradient(180deg, var(--steel-2), var(--steel-1));
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  padding: 14px 16px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  animation: card-in 0.25s ease-out both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.card-pending          { border-left-color: var(--lamp-pending); }
.card-synced           { border-left-color: var(--lamp-synced); }
.card-invalid          { border-left-color: var(--lamp-invalid); }
.card-needs-attention  { border-left-color: var(--lamp-attend); }

.card-top { display: flex; justify-content: space-between; align-items: baseline; }
.card-item { font-size: 26px; }
.card-num { font-family: var(--font-cond); font-weight: 800; color: var(--ink-dim);
  font-size: 15px; letter-spacing: 0.1em; }
.card-mid { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.chip { font-family: var(--font-cond); font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; }
.chip-ok   { background: rgba(47,212,122,0.14); color: var(--lamp-synced);
  border: 1px solid color-mix(in srgb, var(--lamp-synced) 50%, transparent); }
.chip-warn { background: rgba(255,176,32,0.12); color: var(--lamp-pending);
  border: 1px solid color-mix(in srgb, var(--lamp-pending) 50%, transparent); }
.chip-bad  { background: rgba(255,77,77,0.12); color: var(--lamp-invalid);
  border: 1px solid color-mix(in srgb, var(--lamp-invalid) 50%, transparent); }
.chip-hold { background: rgba(147,161,173,0.12); color: var(--ink-dim);
  border: 1px solid var(--line); }
.card-cat, .card-stage { color: var(--ink-dim); font-size: 14px; }
.card-photos { color: var(--ink-dim); font-size: 14px; }
.card-bot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.lamp-inline { width: 10px; height: 10px; }
.card-state { font-family: var(--font-cond); font-weight: 800; font-size: 12px;
  letter-spacing: 0.14em; color: var(--ink-dim); }
.card-errors { margin-top: 8px; color: var(--lamp-invalid); font-size: 14px; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-dim); }
.empty-mark { font-size: 64px; opacity: 0.25; }

/* ---------- capture sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  background: var(--steel-0); padding: 0 0 120px;
  animation: sheet-up 0.22s ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.4; } }
.sheet-head { position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; }
.sheet-title { font-size: 22px; }
.sheet-user { font-size: 12px; color: var(--ink-dim); max-width: 30%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-flat { background: none; border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--font-cond); font-weight: 800; letter-spacing: 0.1em;
  padding: 12px 16px; min-height: 48px; font-size: 14px; cursor: pointer; }

#captureForm { padding: 18px 14px; max-width: 720px; margin: 0 auto;
  display: grid; gap: 18px; }

.field { display: grid; gap: 8px; border: 0; }
.field-label { font-family: var(--font-cond); font-weight: 800; font-size: 13px;
  letter-spacing: 0.18em; color: var(--ink-dim); }

.input {
  background: var(--steel-1); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-ui); font-size: 17px; padding: 14px;
  min-height: 56px; width: 100%;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.input:focus { outline: 2px solid var(--orange); outline-offset: -2px; }
.input-big { font-family: var(--font-cond); font-weight: 800; font-size: 24px;
  text-transform: uppercase; }
textarea.input { min-height: 72px; resize: vertical; }

/* category tiles */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile {
  min-height: 58px; padding: 8px 10px; cursor: pointer;
  background: var(--steel-1); border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--font-cond); font-weight: 800; font-size: 15px;
  letter-spacing: 0.04em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.tile[aria-checked="true"] {
  background: linear-gradient(180deg, #2a3540, var(--steel-2));
  color: var(--ink); border-color: var(--orange);
  box-shadow: inset 0 0 0 2px var(--orange);
}

/* result selector plates */
.result-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.result-plate {
  min-height: 64px; cursor: pointer; padding: 8px;
  background: var(--steel-1); border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--font-cond); font-weight: 800; font-size: 17px;
  letter-spacing: 0.05em; display: grid; place-content: center; text-align: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.plate-sub { display: block; font-size: 11px; letter-spacing: 0.2em; opacity: 0.8; }
.result-plate[aria-checked="true"].result-ok   { color: #06120b; background: var(--lamp-synced); }
.result-plate[aria-checked="true"].result-warn { color: #161000; background: var(--lamp-pending); }
.result-plate[aria-checked="true"].result-bad  { color: #1a0404; background: var(--lamp-invalid); }
.result-plate[aria-checked="true"].result-hold { color: var(--steel-0); background: var(--ink-dim); }

/* defect latch */
.defect-latch {
  display: flex; align-items: center; gap: 12px; min-height: 58px;
  width: 100%; padding: 0 16px; cursor: pointer;
  background: var(--steel-1); border: 1px dashed var(--line); color: var(--ink-dim);
  font-family: var(--font-cond); font-weight: 800; font-size: 16px; letter-spacing: 0.12em;
}
.latch-lamp { width: 14px; height: 14px; border-radius: 50%; background: #3a4750;
  border: 2px solid #000; }
.defect-latch[aria-pressed="true"] { border: 2px solid var(--lamp-invalid); color: var(--ink); }
.defect-latch[aria-pressed="true"] .latch-lamp { background: var(--lamp-invalid);
  box-shadow: 0 0 8px var(--lamp-invalid); }

/* photo strip */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.photo-add {
  flex: 0 0 96px; height: 96px; display: grid; place-content: center; gap: 2px;
  background: var(--steel-1); border: 2px dashed var(--line); color: var(--ink-dim);
  font-family: var(--font-cond); font-weight: 800; font-size: 13px; letter-spacing: 0.16em;
  text-align: center; cursor: pointer;
}
.photo-add-mark { font-size: 30px; line-height: 1; color: var(--orange); }
.photo-thumb { position: relative; flex: 0 0 96px; height: 96px; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover;
  border: 1px solid var(--line); }
.photo-kill {
  position: absolute; top: -8px; right: -8px; width: 32px; height: 32px;
  background: var(--steel-0); color: var(--lamp-invalid);
  border: 1px solid var(--lamp-invalid); border-radius: 50%;
  font-size: 18px; cursor: pointer;
}

.witnesses summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; }
.witnesses[open] summary { color: var(--orange); }
.witnesses .field { margin-top: 12px; }

.form-errors { background: rgba(255,77,77,0.08); border: 1px solid var(--lamp-invalid);
  color: var(--lamp-invalid); padding: 12px 14px; font-size: 15px; display: grid; gap: 4px; }

/* ---------- action plates ---------- */
.bottombar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--steel-0) 30%); }
.sheet-foot { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--steel-0) 30%); }

.btn-primary {
  width: 100%; min-height: 64px; cursor: pointer;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  color: #190900; border: 0;
  font-family: var(--font-cond); font-weight: 800; font-size: 20px; letter-spacing: 0.1em;
  display: grid; place-content: center;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 6px 24px rgba(255, 106, 26, 0.25);
}
.btn-primary:active { transform: translateY(1px); filter: brightness(0.92); }
.btn-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.75; }
.btn-new { max-width: 720px; margin: 0 auto; display: grid;
  grid-auto-flow: column; gap: 10px; align-items: center; }
.btn-new-mark { font-size: 28px; line-height: 0; }

@media (min-width: 560px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .result-row { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===================== scheduled (ITP) inspections ===================== */
/* Two-button action plate: a narrow SCHEDULED affordance + the primary
   NEW INSPECTION button (SPEC-...-SCHEDULED-V1-001). */
.bottombar { display: flex; gap: 10px; align-items: stretch; }
.bottombar .btn-new { margin: 0; flex: 1; }
.btn-sched { flex: 0 0 auto; }
.btn-secondary {
  min-height: 64px; cursor: pointer; padding: 0 16px;
  background: var(--steel-2); color: var(--ink); border: 1px solid var(--line);
  font-family: var(--font-cond); font-weight: 800; font-size: 15px; letter-spacing: 0.08em;
  display: grid; grid-auto-flow: column; gap: 8px; place-content: center; align-items: center;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.btn-secondary:active { transform: translateY(1px); filter: brightness(1.12); }
.btn-sched-mark { font-size: 18px; line-height: 0; color: var(--orange); }

.sched-note { padding: 12px 16px; color: var(--ink-dim);
  font-family: var(--font-cond); font-size: 13px; letter-spacing: 0.04em; }
.sched-list { padding-bottom: 28px; }
.sched-card { cursor: pointer; }
.sched-card:active { filter: brightness(1.08); }
.sched-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sched-item { font-size: 18px; }
.sched-mid { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap;
  font-family: var(--font-cond); font-size: 13px; color: var(--ink-dim); }
.sched-bot { display: flex; gap: 10px; margin-top: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-cond); font-size: 12px; color: var(--ink-dim); }
.sched-date { color: var(--ink); }
.sched-ref { margin-left: auto; color: var(--ink); opacity: 0.7; letter-spacing: 0.06em; }
.sched-type { font-family: var(--font-cond); font-weight: 800; font-size: 11px;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.sched-type-ok   { background: rgba(47,212,122,0.14); color: var(--lamp-synced); }
.sched-type-warn { background: rgba(255,176,32,0.12); color: var(--lamp-pending); }
.sched-type-bad  { background: rgba(255,77,77,0.12); color: var(--lamp-invalid); }
.sched-type-hold { background: rgba(147,161,173,0.12); color: var(--ink-dim); }

/* Scheduled-context banner shown on the capture form when prefilled. */
.sched-context { margin: 0 14px 4px; padding: 8px 12px;
  background: rgba(255,106,26,0.10); border-left: 3px solid var(--orange);
  font-family: var(--font-cond); font-size: 13px; color: var(--ink); letter-spacing: 0.03em;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card-sched { font-family: var(--font-cond); font-size: 12px; color: var(--ink-dim);
  letter-spacing: 0.04em; opacity: 0.85; }

/* Pre-filled-from-plan fields read as confirmed context, not empty inputs. */
.input[readonly] {
  opacity: 0.7; cursor: default;
  background: rgba(255,255,255,0.02); border-style: dashed;
}
/* Richer scheduled-context banner: type chip + ref + date + witnesses + notes. */
.sched-ctx-ref { font-weight: 800; letter-spacing: 0.06em; }
.sched-ctx-date { color: var(--ink-dim); }
.sched-ctx-wit { color: var(--ink-dim); }
.sched-ctx-notes { flex-basis: 100%; color: var(--ink-dim); font-style: italic; opacity: 0.85; }

/* form-errors sets display:grid, which overrode the `hidden` attribute and
   left an empty red box on screen. Respect hidden explicitly. */
.form-errors[hidden] { display: none !important; }
/* DATE & WITNESSES is now an always-open section (was a collapsible details). */
.witnesses-head { display: block; color: var(--orange);
  font-family: var(--font-cond); font-weight: 800; letter-spacing: 0.08em; }

/* Native project picker: a transparent <select> overlaid exactly on the chooser.
   iOS opens its own wheel for it (no custom dropdown that can fail to close). */
.project-pick-wrap { position: relative; display: inline-flex; align-items: baseline; }
.project-select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent;
  opacity: 0; font-size: 16px; /* >=16px so iOS doesn't zoom on focus */
  -webkit-appearance: none; appearance: none;
}
.project-select:disabled { display: none; }

/* ---------- records (past inspections review) ---------- */
.records-link { display: block; width: 100%; margin: 0 0 14px; padding: 11px;
  background: var(--steel-1); border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--font-cond); font-weight: 800; font-size: 13px; letter-spacing: 0.1em;
  cursor: pointer; text-align: center;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.records-link:active { filter: brightness(1.12); }
.rec-range { display: flex; gap: 12px; margin-bottom: 6px; }
.rec-range-field { flex: 1; display: grid; gap: 4px; }
.rec-note { color: var(--ink-dim); font-family: var(--font-cond); font-size: 13px;
  letter-spacing: 0.04em; margin-bottom: 10px; }
.rec-list { padding-bottom: 28px; }
.rec-date { color: var(--ink); font-family: var(--font-cond); font-size: 12px; letter-spacing: 0.04em; }
.rec-by { margin-left: auto; color: var(--ink-dim); font-family: var(--font-cond);
  font-size: 12px; letter-spacing: 0.04em; }

/* ---------- record detail + photo viewer ---------- */
.card-open { cursor: pointer; }
.card-open:active { filter: brightness(1.08); }
.d-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.d-item { font-size: 26px; }
.d-chips { display: flex; gap: 8px; margin: 8px 0 14px; flex-wrap: wrap; align-items: center; }
.d-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.d-label { flex: 0 0 120px; color: var(--ink-dim); font-family: var(--font-cond);
  font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.d-val { flex: 1; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.d-photos-head { margin: 18px 0 8px; color: var(--orange); font-family: var(--font-cond);
  font-weight: 800; font-size: 12px; letter-spacing: 0.1em; }
.d-photos { color: var(--ink-dim); font-family: var(--font-cond); font-size: 14px; padding-bottom: 24px; }
.d-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.d-photo { margin: 0; }
.d-photo img { width: 100%; height: 160px; object-fit: cover; display: block;
  border: 1px solid var(--line); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.d-photo figcaption { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.d-photo-missing { width: 100%; height: 160px; display: grid; place-content: center;
  background: var(--steel-1); border: 1px solid var(--line); color: var(--lamp-invalid); }
.lightbox[hidden] { display: none !important; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.93);
  display: grid; place-content: center; padding: 12px; cursor: pointer; }
.lightbox img { max-width: 100%; max-height: 100dvh; object-fit: contain; }

/* ---------- weekly owner report ---------- */
.rep-link { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 40%, var(--line)); }
.rep-form { display: grid; gap: 14px; margin-bottom: 16px; }
.rep-result { margin-top: 4px; }
.rep-note { color: var(--ink-dim); font-family: var(--font-cond); font-size: 14px; padding: 10px 0; }
.rep-err { color: var(--lamp-invalid); font-family: var(--font-cond); font-size: 15px; padding: 12px;
  background: rgba(255,77,77,0.08); border: 1px solid var(--lamp-invalid); }
.rep-ok { background: rgba(47,212,122,0.07); border: 1px solid color-mix(in srgb, var(--lamp-synced) 45%, var(--line));
  padding: 16px; display: grid; gap: 8px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.rep-ok-title { font-family: var(--font-cond); font-weight: 800; font-size: 18px; color: var(--lamp-synced);
  letter-spacing: 0.04em; }
.rep-counts { color: var(--ink); font-family: var(--font-cond); font-size: 14px; }
.rep-llm { color: var(--ink-dim); font-size: 13px; font-style: italic; }
.rep-open { display: block; text-align: center; margin-top: 6px; padding: 14px;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep)); color: #190900;
  font-family: var(--font-cond); font-weight: 800; font-size: 16px; letter-spacing: 0.08em;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.rep-hint { color: var(--ink-dim); font-size: 12px; margin-top: 4px; }
