/* ============================================================
   font.cloud shared product theme: ONE source for both shells
   (Scribble combined + Scan). build.mjs inlines this file into
   each page at its __THEME__ marker, so both standalones carry
   identical chrome styling from this single source and the
   token blocks can never drift apart.
   Direction (split spec section 5, Joseph, Oct 30 2026): dark
   chrome, paper surfaces, one shared theme, no light variant.
   Chrome uses the brand dark tokens below; working surfaces
   (draw canvas, template preview, checklist preview cells,
   photo stage) stay paper with near-black ink: those colors
   live in the shells' paper tokens (shell-combined.js /
   shell-scan.js, object T) and in checklist.js's paper cells.
   The sky-to-violet gradient marks primary actions only.
   Inline styles in the page markup and the shells' T object
   mirror these token values; change tokens here first.
   ============================================================ */
  :root{
    --fc-bg:#0B0B0E;          /* page background */
    --fc-panel:#141419;       /* section panels */
    --fc-panel-2:#1A1A21;     /* raised panels, inputs, buttons */
    --fc-line:#2A2A33;        /* chrome borders */
    --fc-text:#F2F2F5;        /* primary text on chrome */
    --fc-text-2:#B9B9C4;      /* secondary text on chrome */
    --fc-text-3:#8E8E99;      /* faintest chrome text */
    --fc-sky:#7DD3FC;
    --fc-violet:#A78BFA;
    --fc-grad:linear-gradient(120deg,#7DD3FC,#A78BFA);
    --fc-paper:#FFFFFF;       /* working surfaces stay paper */
    --fc-paper-ink:#14161A;   /* ink on paper */
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html{scroll-behavior:smooth;}
  body{background:var(--fc-bg);color:var(--fc-text);font-family:"Plus Jakarta Sans","Noto Sans JP",system-ui,sans-serif;line-height:1.7;font-size:15px;-webkit-font-smoothing:antialiased;}
  a{color:var(--fc-sky);text-decoration:none;}
  a:hover{color:var(--fc-violet);text-decoration:underline;}
  input[type=range]{accent-color:var(--fc-sky);}
  input[type=checkbox]{accent-color:var(--fc-sky);width:16px;height:16px;}
  :focus-visible{outline:2px solid var(--fc-sky);outline-offset:2px;}
  #dropZone:hover{border-color:var(--fc-sky) !important;background:var(--fc-panel-2) !important;}
  /* Hero step chips (links to each tool section) */
  .stepchip{background:var(--fc-panel);border:1px solid var(--fc-line);border-radius:999px;padding:5px 13px;color:var(--fc-text-2);text-decoration:none;white-space:nowrap;transition:border-color .15s,color .15s,box-shadow .15s;}
  .stepchip:hover{color:var(--fc-text);text-decoration:none;border-color:var(--fc-sky);box-shadow:0 1px 3px rgba(125,211,252,.18);}
  .stepchip .n{color:var(--fc-sky);font-weight:600;}
  /* Keep headings from sliding under the sticky header (72px) */
  section[id]{scroll-margin-top:88px;}
  #proofSheet{scroll-margin-top:88px;}
  /* Take a photo. build-package.mjs injects a literal-hex twin of
     this block into the combined standalone (it replaces the old
     sample-button CSS there); keep the two in sync. */
  #cameraBtn{font:inherit;font-size:13px;font-weight:600;padding:9px 18px;border-radius:9px;border:1px solid var(--fc-line);background:var(--fc-panel-2);color:var(--fc-text);cursor:pointer;transition:background .15s,border-color .15s;}
  #cameraBtn:hover{background:#22222B;border-color:var(--fc-sky);}
  /* Photo type toggle (Step 1). The pressed state is a primary
     action, so it carries the gradient. */
  .modeBtn{font:inherit;font-size:12.5px;font-weight:600;padding:7px 14px;border-radius:999px;border:1px solid var(--fc-line);background:var(--fc-panel-2);color:var(--fc-text-2);cursor:pointer;transition:background .12s,color .12s,border-color .12s;}
  .modeBtn:hover{border-color:var(--fc-sky);color:var(--fc-sky);}
  .modeBtn[aria-pressed="true"]{background:var(--fc-grad);border-color:transparent;color:#0B0B0E;}
  .modeBtn[aria-pressed="true"]:hover{color:#0B0B0E;}

  /* Print: the template sheet prints on white. The dark screen background
     must never reach the page (it otherwise prints as a black band below
     the template wherever the sheet does not cover the printable area). */
  @media print{
    html,body{background:#fff !important;}
  }