/* 09.1-15 / UAT2-07: the NEWBORN design system, tokens only. Names and values are copied from
   docs/knowledge-base/content-engine/brand/design-system/tokens/*.css and review-build.test.ts keeps them equal.
   Every colour on this page lives in this one block. --font-core is the page's own stack: the first name is the Adobe Fonts
   family and applies only when Pharrell's kit is loaded (no font file is ever shipped from here). */
:root {
--green-50:#F2F4F1;--green-100:#E3E8DF;--green-200:#CAD3C3;--green-300:#A9B79F;--green-400:#8B9C7F;--green-500:#6E8062;--green-600:#516048;--green-700:#434F3C;--green-800:#384133;--green-900:#32392E;--green-950:#191D16;
--white:#FFFFFF;
--surface-page:var(--green-50);
--surface-card:var(--white);
--surface-sunken:var(--green-100);
--text-heading:var(--green-900);
--text-body:var(--green-800);
--text-muted:var(--green-500);
--border-hairline:rgba(81,96,72,.14);
--border-soft:var(--green-200);
--action-primary:var(--green-600);
--action-primary-hover:var(--green-700);
--action-primary-press:var(--green-800);
--action-secondary:var(--green-100);
--action-secondary-hover:var(--green-200);
--focus-ring:rgba(110,128,98,.45);
--status-positive:#5C7A4E;--status-positive-soft:#E4EEDD;
--status-caution:#A8913F;--status-caution-soft:var(--sand-100);
--status-critical:#8C4A3C;--status-critical-soft:#F3E4E0;
--sand-100:#F5F1DE;
--radius-control:10px;
--radius-card:10px;
--radius-media:6px;
--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;
--font-core:"forma-djr-banner","Helvetica Neue",Helvetica,Arial,sans-serif;
--font-mono:ui-monospace,"SF Mono",Menlo,monospace;
--text-body-md:16px;
--text-body-sm:14px;
--text-meta:12px;
--tracking-meta:.08em;
--leading-normal:1.5;
--shadow-xs:0 1px 2px rgba(25,29,22,.06);
--shadow-sm:0 2px 8px rgba(25,29,22,.07);
--ease-standard:cubic-bezier(.32,.72,0,1);
--duration-fast:160ms;
--press-scale:.97;
}
/* Review editor layout (09.1-06 / D-03): phone first, sizes and touch behaviour only. Nothing here is visual design. */
/* 09.1-14 / UAT2-04: the page never zooms by accident. Panning only; double-tap zoom off on everything tappable; 16 px fields
   so iOS does not zoom on focus. The timeline canvas keeps touch-action none (its own pinch runs on pointer events). */
html { -webkit-text-size-adjust: 100%; }
html, body { touch-action: pan-x pan-y; }
button, select, input, textarea, label, summary { touch-action: manipulation; }
/* The tap layer carries the vertical text drag (09.1-19): none, so the page does not pan under the finger and cancel the pointer. */
.tap-layer { touch-action: none; }
input, select, textarea { font-size: 16px; }
/* 09.1-14 / UAT2-06: the open reel is a big centred video; the page heading and batch picker step aside while a reel is open. */
.editing #page-head { display: none; }
/* 25 Oct: the open reel names the account in its own top line, so the page's who-line steps aside too. */
.editing p.who { display: none; }
/* The who-line (11 Oct): client and Instagram account; critical colour when no account can post. */
.who { font-weight: 600; }
.bad { color: var(--status-critical); }
/* 09.1-28 / UAT3-04: the tap layer is stacked on the video by grid, in the normal flow. WebKit bug 218015 ignores touch-action on
   absolutely positioned elements, so an absolute tap layer let a double tap zoom the page. JASSUB's canvas stays absolute. */
.stage { position: relative; display: grid; width: fit-content; max-width: 100%; margin: 0 auto; }
.stage > video, .stage > .tap-layer { grid-area: 1 / 1; }
.stage video { display: block; height: 62svh; width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; }
.post-text textarea { display: block; width: 100%; min-height: 12em; box-sizing: border-box; }
details summary { min-height: 44px; }
details, .post-text, .meta { margin-top: 12px; margin-bottom: 12px; }
.tap-layer { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.timeline { margin-left: 16px; margin-right: 16px; }
/* Drag feedback on the picture (09.1-19): moved by transform from stage.ts, never by inline layout. */
.drag-outline, .drag-guide { position: absolute; left: 0; top: 0; z-index: 2; display: none; pointer-events: none; }
.drag-outline.on, .drag-guide.on { display: block; }
.drag-outline { outline: 1px solid var(--action-primary); }
.drag-guide { height: 0; border-top: 1px solid var(--border-soft); }
.timeline canvas { display: block; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.toolbar button { min-height: 44px; min-width: 44px; }
.text-edit input, .text-edit textarea { font-size: 16px; width: 100%; box-sizing: border-box; }

/* 09.1-15: the look. Performance first: no blur, no gradient, shadows only xs and sm, hover only where a pointer hovers,
   transitions only on transform, opacity and background. */
body { margin: 0; padding: var(--space-4); font-family: var(--font-core); font-size: var(--text-body-md); line-height: var(--leading-normal); color: var(--text-body); background: var(--surface-page); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--text-heading); font-weight: 500; }
section { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-card); padding: var(--space-4); margin: var(--space-3) 0; box-shadow: var(--shadow-xs); }
button { background: var(--action-secondary); color: var(--text-heading); border: 0; border-radius: var(--radius-control); min-height: 44px; padding: 0 var(--space-4); font: inherit; cursor: pointer; transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
button.primary { background: var(--action-primary); color: var(--green-50); }
@media (hover: hover) {
  button:hover { background: var(--action-secondary-hover); }
  button.primary:hover { background: var(--action-primary-hover); }
}
button:active { transform: scale(var(--press-scale)); }
button.primary:active { background: var(--action-primary-press); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-control); padding: var(--space-2); color: var(--text-body); font-family: inherit; }
.meta { font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: var(--tracking-meta); text-transform: uppercase; color: var(--text-muted); }
.stage video { border-radius: var(--radius-media); }
details summary { color: var(--text-muted); }
