/* Hawa Creator Hub: "Hawa Parcel Label" world.
   Label-white thermal stock on kraft, 1px ink rules, Hawa yellow = act, navy = navigate.
   Rubik carries everything (Arabic + Latin); Barlow Condensed prints field names, serials and tracking numbers. */

:root {
  --stock: #fcfcf9;          /* thermal label stock: content surfaces */
  --ground: #e6d6bf;         /* the kraft bench the labels sit on */
  --kraft: #c7a57a;          /* kraft board: bars, rails */
  --kraft-2: #efe4d2;        /* light kraft: wells, table heads (inside labels) */
  --kraft-ink: #3d2c18;
  --ink: #16181c;
  --ink-2: #474a52;
  --ink-3: #6f727a;
  --rule: #16181c;
  --rule-soft: #d9d2c6;
  --yellow: #fab42b;         /* act */
  --yellow-2: #ffd27a;
  --on-yellow: #1a1a1a;  /* ink on yellow never flips with the theme */
  --navy: #121d61;           /* navigate / select */
  --navy-2: #2b3a8f;
  --ok: #1f7a45;
  --warn: #9a5b00;
  --void: #b3261e;
  --c-meta: #3d6ae0;
  --c-tiktok: #d0247a;       /* data colours stay clear of act-yellow and void-red */
  --c-snap: #7a6500;
  --font: "Rubik", system-ui, sans-serif;
  --label: "Barlow Condensed", "Rubik", system-ui, sans-serif;
  --r: 3px;                  /* labels are die-cut, barely rounded */
  --r-btn: 6px;
  --shadow: 0 1px 0 rgb(22 24 28 / .06), 0 10px 24px -14px rgb(60 40 10 / .35);
  --fast: 160ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 3vw, 32px);
  color-scheme: light;
}

/* The creator app follows the phone's theme, but a thermal label is always white stock: in dark mode only the
   bench and the bar go dark, and every label-family component keeps its light-paper tokens. */
@media (prefers-color-scheme: dark) {
  body.creator {
    --ground: #1d1812; --kraft: #3b2f22; --kraft-ink: #d9c3a3; --bench-ink: #efe6d8; --navy: #b8c4ff;
    color: var(--bench-ink); color-scheme: dark;
  }
  body.creator .bar { color: var(--bench-ink); border-bottom-color: var(--ink); }
  body.creator .creator-nav a:not([aria-current="page"]) { color: var(--bench-ink); }
  body.creator .creator-nav a:not([aria-current="page"]):hover { background: rgb(255 255 255 / .08); }
  body.creator :is(.label, .parcel, .panel, .manifest, .seg, .btn, .note, .upload-drop, .player, .creator-nav a[aria-current="page"], input, select, textarea) {
    --stock: #fcfcf9; --ink: #16181c; --ink-2: #474a52; --ink-3: #6f727a; --rule: #16181c; --rule-soft: #d9d2c6;
    --navy: #121d61; --ok: #1f7a45; --warn: #9a5b00; --void: #b3261e; --kraft-2: #efe4d2;
    color: var(--ink); color-scheme: light;
  }
  body.creator .muted { color: #b9ad9b; }
  body.creator .label .muted, body.creator .panel .muted, body.creator .parcel .muted { color: var(--ink-2); }
:is(.label, .panel, .parcel, .manifest) .muted { color: var(--ink-3); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.5 var(--font); }
::selection { background: var(--yellow); color: var(--on-yellow); }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
img, svg, video { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
:is(.label, .panel, .parcel, .manifest) .muted { color: var(--ink-3); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
* { scrollbar-color: var(--kraft) transparent; }

/* ---------- label type ---------- */
.fld { font: 600 12px/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.serial { font: 600 15px/1 var(--label); letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
[dir="rtl"] .fld, [dir="rtl"] .serial, [dir="rtl"] .tab, [dir="rtl"] .station { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .fld { font: 500 12.5px/1.3 var(--font); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 18px; line-height: 1.25; }
h3 { font-size: 15px; }
p { margin: 0 0 .6em; }

/* ---------- chrome ---------- */
.bar {
  display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter); min-height: 56px;
  background: var(--kraft); color: var(--ink); border-bottom: 1.5px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand .wordmark { font: 700 21px/1 var(--label); letter-spacing: .08em; }
.brand .sub { font: 500 13px/1 var(--font); color: var(--kraft-ink); padding-inline-start: 10px; border-inline-start: 1px solid rgb(22 24 28 / .35); }
.stations { display: flex; gap: 2px; margin-inline-start: 8px; flex-wrap: wrap; }
.station {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: var(--r-btn);
  font: 600 14px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  transition: background var(--fast) var(--ease);
}
.station:hover { background: rgb(252 252 249 / .45); }
.station[aria-current="page"] { background: var(--stock); box-shadow: inset 0 0 0 1.5px var(--rule); }
.badge { min-width: 20px; padding: 2px 6px; border-radius: 99px; background: var(--yellow); color: var(--on-yellow); font: 700 12px/1 var(--font); text-align: center; }
.bar .who { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--kraft-ink); }
.role { font: 600 11.5px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); background: var(--stock); }
main { max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter) 72px; }
body.creator main { max-width: 760px; padding-top: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.banner { background: var(--navy); color: #fff; padding: 9px var(--gutter); font-size: 13.5px; }
.banner a { color: #fff; }

/* ---------- the label ---------- */
.label { background: var(--stock); border: 1.5px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); position: relative; }
.label > .row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--rule); }
.label > .row:first-child { border-top: 0; }
.label .cell { padding: 12px 14px; min-width: 0; }
.label .cell + .cell { border-inline-start: 1px solid var(--rule); }
.label .val { font-size: 17px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.label .val.big { font-size: clamp(52px, 15vw, 64px); line-height: 1; letter-spacing: -.02em; font-weight: 600; }
.label .val .cur { font-size: .38em; font-weight: 500; margin-inline-start: 6px; color: var(--ink-2); letter-spacing: 0; }
.label .hd { padding: 10px 14px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.tape {
  height: 30px; background: var(--yellow);
  border-bottom: 1.5px solid var(--rule); display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  font: 700 13px/1 var(--label); letter-spacing: 0; color: #121d61; text-transform: uppercase; gap: 14px; padding-inline-start: 14px;
}
.tape .lat { letter-spacing: .32em; }
.tape .ar { font: 700 14px/1 var(--font); }
.tape .sep { opacity: .55; }
.barcode { height: 44px; width: 100%; max-width: 260px; color: var(--ink); }
.barcode rect { fill: currentColor; }
.barcode-wrap { display: grid; gap: 4px; justify-items: start; }

/* tracking line: brief → review → approved → deployed → live */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.track li { position: relative; padding-top: 18px; min-width: 0; }
.track li::before { content: ""; position: absolute; top: 6px; inset-inline: 0; height: 1.5px; background: var(--rule-soft); }
.track li.done::before, .track li.now::before { background: var(--ink); }
.track li:first-child::before { inset-inline-start: 7px; }
.track li:last-child::before { inset-inline-end: calc(100% - 7px); }
.track .dot { position: absolute; top: 0; inset-inline-start: 0; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--stock); }
.track li.done .dot { background: var(--ink); border-color: var(--ink); }
.track li.now .dot { background: var(--yellow); border-color: var(--ink); box-shadow: 0 0 0 4px rgb(250 180 43 / .35); }
.track li.stop .dot { background: var(--void); border-color: var(--void); }
.track .st { display: block; font: 600 11.5px/1.2 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.track li.done .st, .track li.now .st { color: var(--ink); }
[dir="rtl"] .track .st { letter-spacing: 0; text-transform: none; font: 500 12px/1.3 var(--font); }
@media (prefers-reduced-motion: no-preference) {
  .track li.now .dot { animation: beacon 2.4s var(--ease) infinite; }
  @keyframes beacon { 0%, 100% { box-shadow: 0 0 0 4px rgb(250 180 43 / .35); } 50% { box-shadow: 0 0 0 7px rgb(250 180 43 / 0); } }
}

/* scan sweep on state change (signature, 200 ms) */
.scanned { overflow: hidden; }
.scanned { --dir: 1; }
[dir="rtl"] .scanned { --dir: -1; }
.scanned::after {
  content: ""; position: absolute; inset-block: 0; width: 40%; inset-inline-start: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(250 180 43 / .45), transparent);
  transform: translateX(calc(-100% * var(--dir))); animation: sweep 200ms var(--ease) 1 forwards;
}
@keyframes sweep { to { transform: translateX(calc(260% * var(--dir))); } }
@media (prefers-reduced-motion: reduce) { .scanned::after { display: none; } }

/* ---------- parcels (creative / submission rows) ---------- */
.parcels { display: grid; gap: 12px; }
.parcel {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0; background: var(--stock); border: 1.5px solid var(--rule);
  border-radius: var(--r); color: inherit; text-decoration: none; overflow: hidden; position: relative;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
@media (hover: hover) { a.parcel:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.parcel .ph { background: var(--kraft-2); border-inline-end: 1px solid var(--rule); aspect-ratio: 9 / 16; }
.parcel .ph img { width: 100%; height: 100%; object-fit: cover; }
.parcel .body { padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; align-content: start; }
.parcel .top { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; min-width: 0; }
.parcel .top .title { flex: 1 1 auto; min-width: 0; }
.parcel .title { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parcel .stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.parcel .stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-inline-end: 4px; }
.plats { display: flex; gap: 4px; }
.plat { font: 700 11px/1 var(--label); letter-spacing: .06em; padding: 3px 5px; border-radius: 2px; color: #fff; text-transform: uppercase; }
.plat.meta { background: var(--c-meta); } .plat.tiktok { background: var(--c-tiktok); } .plat.snap { background: var(--c-snap); }
.dot-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 6px; }
.dot-key.meta { background: var(--c-meta); } .dot-key.tiktok { background: var(--c-tiktok); } .dot-key.snap { background: var(--c-snap); }

/* status marks: printed like label stamps */
.mark { display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px/1 var(--label); letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 7px; border: 1.5px solid currentColor; border-radius: 2px; white-space: nowrap; }
[dir="rtl"] .mark { letter-spacing: 0; text-transform: none; font: 600 12px/1 var(--font); }
.mark.live { color: var(--ok); } .mark.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mark.paused, .mark.never, .mark.withdrawn { color: var(--ink-3); }
.mark.review, .mark.submitted, .mark.pending, .mark.uploading { color: var(--warn); }
.mark.approved, .mark.verified, .mark.valid, .mark.deployed { color: var(--navy); }
.mark.changes, .mark.changes_requested, .mark.expiring { color: var(--warn); background: rgb(250 180 43 / .18); }
.mark.rejected, .mark.expired, .mark.missing, .mark.failed, .mark.deleted { color: var(--void); }

/* ---------- manifest (totals strip) ---------- */
.manifest { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--stock); border: 1.5px solid var(--rule); border-radius: var(--r); margin-bottom: 20px; }
.manifest > div { padding: 12px 16px; border-inline-start: 1px solid var(--rule); min-width: 0; }
.manifest > div:first-child { border-inline-start: 0; }
.manifest .v { font-size: 24px; font-weight: 600; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.manifest .v.act, .val.act { color: var(--ink); background: linear-gradient(transparent 62%, rgb(250 180 43 / .55) 62%); display: inline; }
.manifest .h { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- panels & tables ---------- */
.panel { background: var(--stock); border: 1.5px solid var(--rule); border-radius: var(--r); margin-bottom: 20px; }
.panel > .ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.panel > .pb { padding: 16px; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { background: var(--kraft-2); text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap;
  font: 600 12px/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
[dir="rtl"] thead th { letter-spacing: 0; text-transform: none; font: 500 12.5px/1.3 var(--font); }
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgb(231 217 196 / .35); }
td.n, th.n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 600; border-top: 1.5px solid var(--rule); background: var(--kraft-2); }
.thumb-s { width: 40px; max-width: none; height: 56px; flex: none; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; background: var(--kraft-2); }
.cell-title { font-weight: 600; }
.cell-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  font: 600 14px/1 var(--font); border-radius: var(--r-btn); border: 1.5px solid var(--rule); background: var(--stock); color: var(--ink);
  cursor: pointer; text-decoration: none; transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}
.btn:hover { background: var(--kraft-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.act { background: var(--yellow); color: var(--on-yellow); }
.btn.act:hover { background: var(--yellow-2); }
.btn.nav { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.nav:hover { background: var(--navy-2); }
.btn.void { color: var(--void); border-color: currentColor; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: var(--kraft-2); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; }
.btn.block { width: 100%; }
.seg { display: inline-flex; border: 1.5px solid var(--rule); border-radius: var(--r-btn); overflow: hidden; background: var(--stock); }
.seg a { padding: 7px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-inline-start: 1px solid var(--rule); }
.seg a:first-child { border-inline-start: 0; }
.seg a[aria-current="true"] { background: var(--ink); color: var(--stock); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: 7px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-btn); font: 600 13px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--stock); }
.tab[aria-current="true"] { background: var(--ink); color: var(--stock); }
.tab .n { margin-inline-start: 6px; opacity: .7; }
label.l { display: block; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; min-height: 40px; padding: 8px 11px; font: 400 15px/1.35 var(--font); color: var(--ink); background: var(--stock);
  border: 1.5px solid var(--rule); border-radius: var(--r-btn);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--ink); }
input[type="file"] { padding: 7px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 5px; }
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 2px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline select, .inline input { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13px; }

/* ---------- notices ---------- */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: var(--stock); margin-bottom: 16px; font-size: 14px; }
.note.ok { border-color: var(--ok); } .note.ok .icon { color: var(--ok); }
.note.err { border-color: var(--void); color: var(--void); }
.note.warn { background: rgb(250 180 43 / .16); }
.empty { padding: 28px 18px; text-align: center; color: var(--ink-2); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.desk { display: grid; grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.desk .rail { position: sticky; top: 76px; display: grid; gap: 14px; }
.split > .rail-sticky { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
.col-title { min-width: 190px; }
.filter-bar > input, .filter-bar > select { width: auto; flex: 0 0 auto; }
.queue-list { display: grid; gap: 6px; max-height: calc(100vh - 150px); overflow: auto; }
.qitem { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 1.5px solid transparent; border-radius: var(--r); color: inherit; text-decoration: none; }
.qitem:hover { background: var(--stock); border-color: var(--rule-soft); }
.qitem[aria-current="page"] { background: var(--stock); border-color: var(--rule); }
.qitem img { width: 34px; max-width: none; height: 48px; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; }
.player { background: #000; border: 1.5px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.player video { width: 100%; max-height: 64vh; margin: 0 auto; background: #000; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.events li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 13.5px; }
.events li::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ink); }
.chart { width: 100%; height: 160px; display: block; }
.chart rect { transition: opacity var(--fast); }
.chart rect:hover { opacity: .7; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }

/* creator app */
.creator-nav { display: flex; gap: 4px; }
.creator-nav a { padding: 8px 10px; border-radius: var(--r-btn); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.creator-nav a[aria-current="page"] { background: var(--stock); box-shadow: inset 0 0 0 1.5px var(--rule); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.print { position: relative; }
.upload-drop { border: 1.5px dashed var(--rule); border-radius: var(--r); padding: 22px; text-align: center; background: var(--stock); display: grid; gap: 8px; justify-items: center; }
.upload-drop.has-file { border-style: solid; }
.meter { height: 8px; border: 1.5px solid var(--rule); border-radius: 99px; overflow: hidden; background: var(--stock); }
.meter i { display: block; height: 100%; width: 100%; background: var(--yellow); transform: scaleX(var(--pv, 0)); transform-origin: left center; transition: transform 240ms linear; }
[dir="rtl"] .meter i { transform-origin: right center; }

@media (max-width: 1100px) {
  .desk { grid-template-columns: minmax(0, 1fr) 320px; }
  .desk .queue-col { display: none; }
}
@media (max-width: 820px) {
  body.creator .creator-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 8px; }
  body.creator .creator-nav a { white-space: nowrap; }
  body.creator .creator-nav.lang-only { order: 0; width: auto; margin-inline-start: auto; padding-bottom: 0; overflow: visible; }
  body.creator .bar:has(.lang-only) { padding-block: 8px; }
  .split, .desk { grid-template-columns: minmax(0, 1fr); }
  .desk .rail, .split > .rail-sticky { position: static; max-height: none; overflow: visible; }
  .bar { gap: 10px; flex-wrap: wrap; row-gap: 0; padding-block: 8px 0; }
  .bar .who { margin-inline-start: auto; }
  .stations { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .bar .who .email { display: none; }
  .label > .row { grid-auto-flow: row; }
  .label .cell + .cell { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .label > .row.keep { grid-auto-flow: column; }
  .label > .row.keep .cell + .cell { border-top: 0; border-inline-start: 1px solid var(--rule); }
  .track .st { font-size: 12px; line-height: 1.25; }
  .barcode { max-width: 180px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

[dir="rtl"] .i-send { transform: scaleX(-1); }

.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-block: 0; padding-inline: 4px 10px; margin-inline-start: -4px;
  border-radius: var(--r-btn); color: inherit; text-decoration: none; font-weight: 500; }
.back:hover { background: rgb(22 24 28 / .06); }
details > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); }
details > summary::-webkit-details-marker { display: none; }
/* disclosure marker drawn from two rules (no text glyphs): a plus that loses its vertical bar when open */
details > summary::before { content: ""; width: 14px; height: 14px; flex: none; border: 1.5px solid currentColor; border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) center / 8px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 8px no-repeat; }
details[open] > summary::before { background: linear-gradient(currentColor, currentColor) center / 8px 1.5px no-repeat; }
.h-icon { display: inline-flex; align-items: center; gap: 8px; }
/* the upload prints its label: thermal-feed reveal tied to bytes sent */
.printing { display: none; margin-bottom: 16px; }
.print.is-uploading .printing { display: block; }
.print-meta { position: sticky; top: 64px; z-index: 2; margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--yellow); font-weight: 500; font-size: 14px; }
.print-meta b { font-size: 17px; }
.printing .feed { position: relative; }
.printing .label { clip-path: inset(0 0 calc(100% - var(--p, 0%)) 0); transition: clip-path 240ms linear; }
/* the print head sits on the unclipped wrapper, exactly at the edge being printed */
.printing .feed::after { content: ""; position: absolute; inset-inline: -4px; top: var(--p, 0%); height: 3px; border-radius: 2px;
  background: var(--yellow); box-shadow: 0 0 12px rgb(250 180 43 / .9); transition: top 240ms linear; }
.print.is-uploading .label.form-label { opacity: .5; pointer-events: none; }
.print.is-uploading .label.form-label .tape { display: none; }   /* one tape per view: the printing label owns it */
@media (prefers-reduced-motion: reduce) { .printing .label { clip-path: none; } .printing .feed::after { display: none; } }

.totals-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 10px 0; border-block: 1px solid currentColor; font-size: 13.5px; }
.totals-line b { font-weight: 600; font-size: 15px; }

/* ---------- surveys: a declaration slip with ruled rows and drawn tick boxes ---------- */
.survey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.survey .intro { white-space: pre-line; margin: 0; }
.survey-meta { margin: 0; }
.sv-section { font-size: 17px; margin: 14px 0 0; }
.q { margin: 0; padding: 0; min-width: 0; }
.q-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 14px 8px; }
.q-no { font: 700 15px/1 var(--label); width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--rule); border-radius: 2px; }
.q-text { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.q-mode { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.q-body { padding: 0 14px 12px; }
.q-body textarea { width: 100%; }
.opts { display: grid; gap: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; padding: 8px 14px;
  border-bottom: 1px solid var(--rule-soft); cursor: pointer; transition: background var(--fast) var(--ease); }
.opt:last-of-type { border-bottom: 0; }
@media (hover: hover) { .opt:hover { background: var(--kraft-2); } }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .box { width: 20px; height: 20px; border: 1.5px solid var(--rule); border-radius: 2px; background: var(--stock); display: grid; place-items: center; }
.opt input[type="radio"] + .box { border-radius: 50%; }
.opt input:checked + .box { background: var(--ink); }
/* a tick is not directional: physical sides, so RTL doesn't mirror it into a chevron */
.opt input[type="checkbox"]:checked + .box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--stock); border-bottom: 2px solid var(--stock); transform: translateY(-1px) rotate(-45deg); }
.opt input[type="radio"]:checked + .box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.opt input:focus-visible + .box { outline: 2px solid var(--navy); outline-offset: 2px; }
.opt:has(input:checked) { background: rgb(250 180 43 / .14); }
.opt:has(input:checked) .opt-text { font-weight: 600; }
.opt.is-capped { opacity: .45; cursor: not-allowed; }
.other-input { margin: 6px 14px 12px; width: calc(100% - 28px); display: none; }
.opt-other:has(input:checked) + .other-input { display: block; }
.q.has-error { border: 2px solid var(--void); }
.q.has-error .q-no { border-color: var(--void); color: var(--void); }
.q-error { margin: 0 14px 8px; color: var(--void); font-weight: 500; font-size: 13.5px; }
.submit-bar { display: grid; gap: 6px; margin-top: 6px; }
.slip-received { max-width: 560px; margin: 4vh auto 0; }
/* results */
.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.res-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) 28px; gap: 10px; align-items: center; font-size: 13.5px; }
.res-bar { height: 12px; background: var(--kraft-2); border-radius: 2px; overflow: hidden; }
.res-bar i { display: block; height: 100%; width: 100%; background: var(--navy); transform: scaleX(var(--w, 0)); transform-origin: left center; }
.bars b { text-align: end; }
.res-text { margin: 6px 0 0; padding: 8px 10px; background: var(--kraft-2); border-radius: 2px; font-size: 13.5px; white-space: pre-line; }
.person-answers { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.invite { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.invite.revoked { opacity: .55; }
.spec { font-size: 14px; line-height: 1.55; }
.spec-help { margin: 0; padding: 10px 12px; background: var(--kraft-2); border-radius: 2px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
@media (max-width: 820px) { .bars li { grid-template-columns: minmax(0, 1fr) 70px 24px; } }
/* ---- inbound application form (creators.hawa.co) ------------------------------------------------ */
.apply { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 600px; margin-inline: auto; }
.apply .intro { margin: 0; line-height: 1.6; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.track.steps-3 { grid-template-columns: repeat(3, 1fr); }
.f-error { margin: 2px 0 0; color: var(--void); font-size: 13.5px; font-weight: 500; }
.field.has-error :is(input, select, textarea, .affix) { border-color: var(--void); border-width: 2px; }
.form-label.has-error, .field.has-error .opts.yn { border-color: var(--void); }
.check.has-error { color: var(--void); }
.city-other { margin-top: 8px; }
.affix { display: flex; align-items: stretch; border: 1.5px solid var(--rule); border-radius: var(--r-btn); background: var(--stock); overflow: hidden; }
.affix > span { display: grid; place-items: center; padding: 0 12px; background: var(--kraft-2); color: var(--ink-2); font: 600 15px/1 var(--label); }
.affix > input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.affix > input:focus { outline: 0; }
.affix:focus-within { outline: 2px solid var(--navy); outline-offset: 1px; }
.affix.price > span { order: 2; border-inline-start: 1px solid var(--rule-soft); }
[dir="rtl"] .affix.price > span { font: 500 14px/1 var(--font); }
.opts.yn { grid-template-columns: 1fr 1fr; border: 1.5px solid var(--rule); border-radius: var(--r-btn); overflow: hidden; }
.opts.yn .opt { border-bottom: 0; }
.opts.yn .opt + .opt { border-inline-start: 1px solid var(--rule-soft); }
.no-link { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule-soft); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--rule-soft); border-radius: var(--r-btn); background: var(--kraft-2); font-size: 13.5px; }
.file-list li .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.file-list li.is-done { background: var(--stock); }
.file-list li.is-error { border-color: var(--void); color: var(--void); }
.apply .submit-bar .meter[hidden] { display: none; }
.apply.is-uploading .form-label, .apply.is-uploading .apply-head { opacity: .55; pointer-events: none; }
/* ---- staff: applicants ------------------------------------------------------------------------- */
.filter-bar .w-search { width: 280px; }
.nowrap { flex-wrap: nowrap; }
.handles { display: grid; gap: 4px; justify-items: start; }
.handles a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.handles.big { gap: 10px; }
.handles.big a { font-size: 15px; font-weight: 500; }
.plat.ig { background: var(--c-meta); }
table.applicants td { vertical-align: top; }
.share-links { display: grid; gap: 8px; }
.share-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.samples { display: grid; gap: 16px; }
.samples p { margin: 4px 0 0; }
.link-list { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.sample-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 6px; }
.sample-videos video { width: 100%; max-height: 420px; background: var(--ink); border-radius: var(--r); }
.actions-stack { display: grid; gap: 16px; }
.actions-stack .hint { margin: 6px 0 0; }
.note-form { display: grid; gap: 8px; justify-items: start; }
.note-form textarea { width: 100%; }
@media (max-width: 820px) {
  .share-row { grid-template-columns: minmax(0, 1fr) auto; }
  .share-row .fld { grid-column: 1 / -1; }
  .filter-bar .w-search { flex: 1 1 100%; width: 100%; }
}
/* phones: each applicant becomes a stacked label so WhatsApp stays in reach without sideways scrolling */
@media (max-width: 820px) {
  .stack-sm { overflow: visible; }
  .stack-sm table, .stack-sm tbody, .stack-sm tr, .stack-sm td { display: block; }
  .stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stack-sm tr { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 14px; border-top: 1px solid var(--rule); }
  .stack-sm tr:first-child { border-top: 0; }
  .stack-sm td { padding: 4px 0; border: 0; text-align: start; min-width: 0; }
  .stack-sm td.col-title, .stack-sm td.c-acc, .stack-sm td.c-act { grid-column: 1 / -1; }
  .stack-sm td.c-acc { padding-bottom: 8px; }
  .stack-sm td[data-label]::before { content: attr(data-label); display: block; font: 600 11.5px/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .stack-sm td.c-act { padding-top: 10px; }
  .stack-sm td.c-act .row-actions { display: grid; grid-template-columns: 1fr auto; }
}
.label .val:not(.big) .cur { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.actions-stack .note { margin-bottom: 0; }
.share-url { font-size: 14px; overflow-wrap: anywhere; padding: 8px 10px; border: 1px solid var(--rule-soft); border-radius: var(--r-btn); background: var(--kraft-2); user-select: all; }
.share-url b { font-weight: 700; color: var(--navy); }
@media (max-width: 820px) {
  .label.applicant-head > .row.stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .label.applicant-head > .row.stats > .cell { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .label.applicant-head > .row.stats > .cell:nth-child(-n+2) { border-top: 0; }
  .label.applicant-head > .row.stats > .cell:nth-child(even) { border-inline-start: 1px solid var(--rule); }
  .label.applicant-head > .row.stats > .barcode-wrap { grid-column: 1 / -1; }
}
