/*
 * Podfy styles.css — tidy, documented, and polished
 * -------------------------------------------------
 * Structure
 *  01) Theme tokens (:root CSS variables)
 *  02) Base / resets / typography
 *  03) Banner
 *  04) Header + language picker
 *  05) Main container
 *  06) Dropzone (hero)
 *  07) Buttons (neutral + primary)
 *  08) Options row + info (i) popovers
 *  09) Email field
 *  10) Delivery outcome box (clean / issue)
 *  11) File preview chip + progress bar
 *  12) Footer
 *  13) Utilities & accessibility tweaks
 */

/* 01) THEME TOKENS --------------------------------------------------------- */
:root {
  --brand-primary:      #000000;   /* primary action (Submit) */
  --brand-accent:       #1F2937;   /* accents, icons */
  --brand-text:         #0B1220;   /* body text */
  --brand-muted:        #6B7280;   /* helper text */
  --brand-border:       #E5E7EB;   /* borders */
  --brand-button-text:  #FFFFFF;   /* primary button text */
  --header-bg:          #FFFFFF;   /* header background */

  /* Dropzone */
  --dz-icon-base: #CBD5E1;
  --dz-accent:    #16A34A;
  --dz-hover-bg:  #F3F4F6;
  --dz-hover-bord:#CBD5E1;

  /* Surfaces */
  --surface: #FFFFFF;
  --muted-bg: #eef2f7;
}

/* 02) BASE / TYPOGRAPHY ---------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; } /* avoid unexpected scaling on iOS */
body {
  margin: 0;
  overflow-x: hidden;
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--brand-text);
  background: #fff;
}
h1 { margin: 16px 0 24px; font-size: 28px; line-height: 1.2; }

/* 03) BANNER (unknown slug etc.) ------------------------------------------ */
.banner {
  box-sizing: border-box;
  display: block;
  max-width: 720px;
  margin: 16px auto 0;
  padding: 12px 16px;
  background: #FFF7ED;            /* light amber */
  border: 1px solid #FED7AA;
  color: #7C2D12;
  border-radius: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 6px 12px rgba(0,0,0,.04);
}
.banner[hidden] { display: none !important; }
.banner a {
  color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600;
}
.banner a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.gps-notice {
  max-width: 720px;
  margin: 0 auto 12px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--brand-primary, #0369A1) 8%, white);
  border: 1px solid color-mix(in srgb, var(--brand-primary, #0369A1) 25%, white);
  border-radius: 8px;
  color: var(--brand-primary, #0369A1);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}
.gps-notice[hidden] { display: none !important; }

/* 03b) REFERENCE 2 PANEL --------------------------------------------------- */
#refPanel[hidden] { display: none !important; }

.ref-btn-row {
  display: flex;
  gap: 8px;
}
.ref-btn-row .scan-btn[hidden] { display: none !important; }

/* Manual input row */
.ref-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ref-input-row[hidden] { display: none !important; }

.ref2-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--brand-border, #E5E7EB);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--brand-text, #0B1220);
  background: white;
  outline: none;
  height: 2.625rem;
}
.ref2-input:focus {
  border-color: var(--brand-primary, #000);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary, #000) 15%, transparent);
}

.ref-add-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  border: 1px solid var(--brand-border, #E5E7EB);
  border-radius: 8px;
  background: white;
  color: var(--brand-primary, #374151);
  cursor: pointer;
  transition: background 0.15s;
}
.ref-add-btn:hover { background: color-mix(in srgb, var(--brand-primary, #000) 6%, white); }

/* Scanned reference list */
.ref2-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ref2-list[hidden] { display: none !important; }

.ref2-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--brand-primary, #000) 6%, white);
  border: 1px solid var(--brand-border, #E5E7EB);
  border-radius: 6px;
  font-size: 0.9rem;
}

.ref2-item-value {
  flex: 1;
  font-family: monospace;
  word-break: break-all;
  color: var(--brand-text, #0B1220);
}

.ref2-item-del {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--brand-muted, #9CA3AF);
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}
.ref2-item-del:hover { color: #dc2626; }

.scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--brand-border, #E5E7EB);
  border-radius: 8px;
  background: white;
  color: var(--brand-primary, #374151);
  cursor: pointer;
  flex: 1;
  transition: background 0.15s;
}
.scan-btn:hover { background: color-mix(in srgb, var(--brand-primary, #000) 6%, white); }
.scan-btn:disabled { opacity: 0.5; cursor: wait; }

.scan-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--brand-border, #D1D5DB);
  flex-shrink: 0;
}

.scan-error {
  margin: 5px 0 0;
  font-size: 0.8rem;
  color: #dc2626;
}
.scan-error[hidden] { display: none !important; }

/* 03c) LIVE SCANNER MODAL -------------------------------------------------- */
.scanner-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  overflow: hidden;
}
.scanner-modal[hidden] { display: none !important; }

.scanner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Centers frame + hint vertically */
.scanner-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  pointer-events: none;
}

/* The transparent window; box-shadow darkens everything outside it */
.scanner-frame {
  width: min(280px, 72vw);
  height: min(200px, 36vh);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.58);
  position: relative;
}

/* Branded corner marks */
.scanner-frame .corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: inherit;
  border-style: solid;
  transition: border-color 0.2s;
}
.scanner-frame {
  border-color: var(--brand-primary, #ffffff);
  transition: border-color 0.2s;
}
.scanner-frame .corner.tl { top: -3px;    left: -3px;  border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.scanner-frame .corner.tr { top: -3px;    right: -3px; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.scanner-frame .corner.bl { bottom: -3px; left: -3px;  border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.scanner-frame .corner.br { bottom: -3px; right: -3px; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }

.scanner-hint {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.scanner-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 04) HEADER + LANGUAGE PICKER -------------------------------------------- */
.site-header {
  background: var(--header-bg, #fff);
  border-bottom: 1px solid var(--brand-border);
  padding: 0;
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand img { display: block; height: 28px; }

.lang { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: #111827;
  border: 1px solid var(--brand-border); border-radius: 10px;
  padding: 8px 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.lang-trigger:hover { background: #f8f8f8; }
.lang-ic { width: 18px; height: 18px; color: #6B7280; }
.lang-caret { width: 14px; height: 14px; color: #6B7280; transition: transform .15s ease; }
.lang-trigger[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
#currentLangLabel { font-weight: 600; }

.lang-panel {
  position: absolute; right: 0; top: 44px; z-index: 50;
  width: 220px; max-height: 320px; overflow: auto;
  background: #fff; border: 1px solid var(--brand-border);
  border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.10);
  padding: 6px;
}
.lang-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: 0; background: transparent;
  padding: 10px 10px; cursor: pointer; border-radius: 8px; color: #111827; text-align: left;
}
.lang-item:hover { background: #F3F4F6; }
.lang-bullet {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #9CA3AF; display: inline-block; position: relative; flex: 0 0 16px;
}
.lang-item[aria-checked="true"] .lang-bullet { border-color: #2563EB; }
.lang-item[aria-checked="true"] .lang-bullet::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px;
  border-radius: 50%; background: #2563EB;
}

/* 05) MAIN CONTAINER ------------------------------------------------------- */
.container { max-width: 720px; margin: 32px auto; padding: 0 20px; }

/* 06) DROPZONE (hero) ------------------------------------------------------ */
.dz-wrap { margin: 16px 0 8px; }

.dropzone {
  border: 2px dashed var(--brand-border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.dropzone.dz-hero {
  border-radius: 10px;
  background: #fff;
  min-height: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 36px 24px;
}
.dz-icon-mask {
  width: 72px; height: 72px;
  background-color: var(--dz-icon-base);
  -webkit-mask: url('/logos/podfy-favicon.svg') no-repeat center / contain;
  mask: url('/logos/podfy-favicon.svg') no-repeat center / contain;
  opacity: .95;
  margin-bottom: 12px;
  transition: background-color .15s ease, opacity .15s ease;
}
.dz-title { font-size: 20px; line-height: 1.2; margin: 4px 0; }
.dz-sub   { color: var(--brand-muted); margin: 6px 0 14px; }

.dz-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 2px 0 8px; }
.dz-constraints { margin-top: 8px; color: var(--brand-muted); font-size: 14px; }

.dropzone.dz-hero.dragover { background: var(--dz-hover-bg); border-color: var(--dz-hover-bord); }
.dropzone.dz-hero.dragover .dz-icon-mask { background-color: var(--dz-accent); opacity: 1; }
.dropzone.dz-hero.ready .dz-icon-mask { background-color: var(--brand-primary); opacity: 1; }

/* 07) BUTTONS -------------------------------------------------------------- */
#chooseBtn, #cameraBtn, .btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--brand-border);
  background: #F3F4F6; color: var(--brand-text); font-weight: 600;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .02s ease-in-out;
}
#chooseBtn:hover, #cameraBtn:hover, .btn:hover { background: #E5E7EB; border-color: #D1D5DB; }
#chooseBtn:active, #cameraBtn:active, .btn:active { transform: translateY(1px); }
#chooseBtn:focus-visible, #cameraBtn:focus-visible, .btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Primary Submit */
.primary {
  margin-top: 12px; border: none; border-radius: 10px; padding: 12px 18px;
  background: var(--brand-primary); color: var(--brand-button-text);
  cursor: pointer; --primary-text: currentColor;
}
.primary[disabled] { opacity: .5; cursor: not-allowed; }
.primary-full { width: 100%; display: block; }

/* 08) OPTIONS + INFO (i) POPOVERS ----------------------------------------- */
.options-row {
  display: flex; flex-wrap: wrap; gap: 12px 8px; align-items: center; margin: 12px 0 4px; justify-content: space-evenly;
}
@media (min-width: 640px) { .options-row { gap: 12px 24px; } }
.option { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.checkbox { display: inline-flex; align-items: center; gap: 4px; }

.info-btn {
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%; border: 1px solid var(--brand-border);
  font: 12px/18px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #fff; color: var(--brand-accent); text-align: center; cursor: pointer;
}
.info-btn:hover { background: #f7f7f7; }

/* Float-over popover; same look for all (including Clean delivery) */
.popover {
  position: absolute; top: 28px; left: 0;
  max-width: 360px; padding: 10px 12px;
  border: 1px solid var(--brand-border);
  background: #fff; border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  z-index: 20; color: var(--brand-text); font-size: 14px;
}
.popover[hidden] { display: none !important; }

/* 09) EMAIL FIELD ---------------------------------------------------------- */
.email-wrap { margin-top: 8px; }
.email-wrap input[type="email"] {
  width: 100%; max-width: 480px;
  padding: 10px 12px; border: 1px solid var(--brand-border); border-radius: 8px;
  font-family: inherit; font-size: 16px; color: var(--brand-text);
}

/* 10) DELIVERY OUTCOME (CLEAN / ISSUE) ------------------------------------ */
fieldset.group {
  border: 1px solid var(--brand-border);
  border-radius: 8px; padding: 12px 16px; margin: 8px 0;
}
fieldset.group legend {
  font-weight: 600; margin-bottom: 8px; font-size: 15px; color: var(--brand-text);
}
fieldset.group label.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 8px; }
fieldset.group label.checkbox input[type="checkbox"] { width: 18px; height: 18px; }

.issue-box { margin-top: 1px;}
.issue-box .field { display: block; margin-top: 8px; }
.issue-box .field > span { display: block; font-size: 14px; color: var(--brand-muted); margin-bottom: 4px; }

/* Uniform font/size for select + textarea to match the page (polish #1–#2) */
.issue-box select,
.issue-box textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  color: var(--brand-text);
  background: #fff;
}

/* Dropdown visual polish (polish #3) */
.issue-box select {
  appearance: none;
  background:
    #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat right 12px center;
  background-size: 12px;
  padding-right: 32px;
  cursor: pointer;
}

.issue-box textarea { resize: vertical; min-height: 60px; }

/* 11) FILE PREVIEW CHIP + PROGRESS BAR ------------------------------------ */
.file-preview{
  display:flex; align-items:center; gap:.5rem;
  margin:.75rem 0; padding:.5rem .75rem;
  border:1px solid var(--brand-border); border-radius:.5rem;
  background: var(--surface);
}
.file-ic{ width:18px; height:18px; opacity:.6; }
.file-name{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.linklike{ background:none; border:0; color:var(--brand-accent); cursor:pointer; font-weight:600; }
.linklike:hover { text-decoration: underline; }
.linklike:focus-visible { outline:2px solid currentColor; outline-offset:2px; }

/* Keep chip within viewport on phones */
.dz-hero .file-preview{ width:100%; max-width:90vw; margin-left:auto; margin-right:auto; }

/* 12) MULTI-FILE LIST + ADD-PAGE + EVIDENCE -------------------------------- */
.file-list {
  list-style: none; margin: .5rem 0 0; padding: 0;
  width: 100%; max-width: 90vw; margin-left: auto; margin-right: auto;
}
.file-list-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .75rem; margin-bottom: .25rem;
  border: 1px solid var(--brand-border); border-radius: .5rem;
  background: var(--surface); font-size: .875rem;
}
.file-list-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.photo-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem .5rem; margin-bottom: .25rem;
  border: 1px solid var(--brand-border); border-radius: .5rem;
  background: var(--surface); font-size: .875rem;
}
.photo-thumb { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: .375rem; background: var(--muted-bg); }
.add-page-row {
  display: flex; justify-content: center; margin: .5rem 0;
  width: 100%; max-width: 90vw; margin-left: auto; margin-right: auto;
}
.add-page-row .btn { font-size: .875rem; padding: 7px 14px; }
.evidence-row { margin-top: .75rem; }
.evidence-preview {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .5rem; padding: .4rem .75rem;
  border: 1px solid var(--brand-border); border-radius: .5rem;
  background: var(--surface); font-size: .875rem;
}

/* Progress bar */
.progress{
  position:relative; height:24px; background: var(--muted-bg);
  border-radius:999px; margin:.75rem 0;
}
.progress-bar{ height:100%; width:0%; border-radius:999px; background: var(--brand-primary); transition:width .2s ease; }
.progress.success .progress-bar { background: var(--brand-primary); }
.progress.error   .progress-bar { background: #e11d48; }
.progress-label{
  position:absolute; top:50%; left:50%; transform:translate(-50%, -50%);
  white-space:nowrap; font-size:14px; line-height:1; font-variant-numeric: tabular-nums;
  color: var(--brand-button-text);
}
.dz-hero .progress{ width:80%; max-width:420px; margin:12px auto; }

/* 12) FOOTER --------------------------------------------------------------- */
.site-footer { display:flex; gap:28px; justify-content:center; padding:24px; color: var(--brand-accent); }
.site-footer a { color: var(--brand-accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 13) UTILITIES & ACCESSIBILITY ------------------------------------------- */
.small  { color: var(--brand-muted); margin-top: 0px; }
.status { margin-top: 16px; min-height: 24px; }
.row { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.help { color: var(--brand-muted); }
#fileInput { display: none; } /* hide input via CSS (not hidden attr) */
.hidden{ display:none !important; }
[hidden]{ display:none !important; }
.hp{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }

/* Prevent iOS zoom on focus: keep inputs >=16px (polish for mobile) */
@media (max-width: 480px) {
  input, select, textarea { font-size: 16px !important; line-height: 1.2; }
}

/* QA environment marker (class set by main.js on qa.podfy.app) */
html.env-qa body::after {
  content: "QA";
  position: fixed; top: 8px; right: 8px; z-index: 9999;
  padding: 2px 8px; border-radius: 3px;
  background: #E8A317; color: #0E1116;
  font: 600 12px/1.6 Inter, system-ui, sans-serif; letter-spacing: .08em;
  pointer-events: none;
}

/* 14) PROCESS MODE (report) + EXTRA FIELDS --------------------------------- */
/* Until main.js knows the mode (features response) the form stays invisible, so a report brand never flashes
   the delivery layout. main.js sets body[data-mode] to "delivery" or "report" (safety timer: 4 s). */
body:not([data-mode]) .container { visibility: hidden; }

/* Preview marker (?preview=1, portal form preview) */
.preview-marker {
  position: fixed; top: 8px; right: 8px; z-index: 50; margin: 0;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D;
}

/* Extra fields (both modes) */
.extra-fields { margin: 12px 0; }
.field-row { margin-top: 12px; }
.field-label { display: block; font-size: 14px; color: var(--brand-muted); margin-bottom: 4px; }
.field-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--brand-border); border-radius: 8px;
  font: inherit; font-size: 16px; color: var(--brand-text); background: #fff;
}
.field-input[aria-invalid="true"] { border-color: #B91C1C; }
.field-error { margin: 4px 0 0; font-size: 13px; color: #B91C1C; }

/* Report mode: single column, sections ordered with flex `order` (same HTML as delivery) */
body[data-mode="report"] .container { display: flex; flex-direction: column; }
body[data-mode="report"] .container > * { order: 20; }
body[data-mode="report"] #assetCard   { order: 1; }
body[data-mode="report"] #reportForm  { display: contents; }   /* its children join the flex order */
body[data-mode="report"] .rep-heading,
body[data-mode="report"] .chips       { order: 2; }
body[data-mode="report"] #extraFields { order: 3; }
body[data-mode="report"] .rep-note-label,
body[data-mode="report"] .rep-note    { order: 4; }
body[data-mode="report"] #dzWrap      { order: 5; }
body[data-mode="report"] #repInform   { order: 6; }
body[data-mode="report"] #submitBtn   { order: 7; }
body[data-mode="report"] #status      { order: 8; }
body[data-mode="report"] #reportDone  { order: 1; }

/* Not in report mode: GPS toggle / copy e-mail / clean delivery / reference scanner, delivery heading texts */
body[data-mode="report"] .options-row,
body[data-mode="report"] #gpsNotice,
body[data-mode="report"] #refPanel,
body[data-mode="report"] #emailWrap,
body[data-mode="report"] #issuePanel,
body[data-mode="report"] #privacyNote,
body[data-mode="report"] .dz-title,
body[data-mode="report"] .dz-sub,
body[data-mode="report"] .dz-constraints { display: none !important; }
/* Delivery mode: report-only sections never show */
body:not([data-mode="report"]) #assetCard,
body:not([data-mode="report"]) #reportForm,
body:not([data-mode="report"]) #reportDone,
body:not([data-mode="report"]) #photoLabel { display: none !important; }
body[data-mode="report"] .dropzone.dz-hero { min-height: 0; padding: 20px 16px; }
body[data-mode="report"] .dz-icon-mask { width: 40px; height: 40px; }
body[data-mode="report"] #submitBtn { margin-top: 20px; }

/* Thank-you screen: only the asset card and the thank-you remain */
body[data-mode="report"][data-state="done"] .rep-heading,
body[data-mode="report"][data-state="done"] .chips,
body[data-mode="report"][data-state="done"] .rep-note-label,
body[data-mode="report"][data-state="done"] .rep-note,
body[data-mode="report"][data-state="done"] #extraFields,
body[data-mode="report"][data-state="done"] #repInform,
body[data-mode="report"][data-state="done"] #dzWrap,
body[data-mode="report"][data-state="done"] #submitBtn,
body[data-mode="report"][data-state="done"] #status { display: none !important; }

.asset-card { border: 1px solid var(--brand-border); border-radius: 12px; padding: 14px 16px; margin: 8px 0 16px; background: #fff; }
.asset-card h1 { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.asset-label { margin: 0 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); }
.asset-name { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.asset-location { margin: 2px 0 0; color: var(--brand-muted); }
.asset-retired { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-weight: 600; }

.rep-heading { margin: 8px 0 10px; font-size: 20px; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.chip {
  appearance: none; min-height: 56px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--brand-border); background: #fff; color: var(--brand-text);
  font: inherit; font-size: 17px; font-weight: 600; text-align: center;
}
.chip:hover { background: #F3F4F6; }
.chip:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.chip[aria-checked="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-button-text); }
.rep-note { resize: vertical; }
.rep-inform { margin-top: 16px; }
.rep-inform[hidden] { display: none; }
.rep-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; cursor: pointer; font-size: 14px; color: var(--brand-muted); }
.rep-consent input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.rep-followup { margin: 0 0 20px; color: var(--brand-muted); }
.rep-note-label { margin-top: 12px; }
.photo-label { margin: 16px 0 6px; font-weight: 600; }
.report-done { text-align: center; padding: 24px 0; }
.rep-thanks { font-size: 22px; margin: 0 0 8px; }
.rep-id { margin: 0 0 20px; color: var(--brand-muted); font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }

/* 14) PLAIN SERVER PAGES (Phase 4, WP 4.6) ---------------------------------
   Rendered by Functions with their own strict CSP (functions/_plain-page.js): the reporter "stop e-mails" page
   (/api/reporter/stop) and the neutral page of a terminated brand (functions/_redirect.js). No inline styles. */
body.plain-page { background: #F5F2EA; color: #0E1116; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.plain-card { width: 100%; max-width: 520px; background: #FBF9F3; border: 1px solid #E4E2DC; border-radius: 6px; padding: 28px 24px; }
.plain-title { margin: 0 0 12px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.plain-text { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #3A4250; }
.plain-form { margin: 20px 0 0; }
.plain-btn { appearance: none; border: 0; border-radius: 6px; background: #0E1116; color: #F5F2EA; font: inherit; font-weight: 600; padding: 11px 20px; cursor: pointer; }
.plain-btn:hover { background: #2A303A; }
.plain-btn:focus-visible { outline: 2px solid #D24A1F; outline-offset: 2px; }
