  :root {
    --bg: #212426; --card: #2F3336; --card2: #282C2E; --stroke: rgba(255,255,255,0.10);
    --text: #F2EEE8; --text2: rgba(242,238,232,0.72); --text3: rgba(242,238,232,0.5);
    --brand: #BD571B; --mustard: #D9A441; --sage: #8FB08A; --table: #45494C;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 Inter, system-ui, sans-serif; overflow: hidden; }
  h1, h2, .heading { font-family: 'Francois One', Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400; margin: 0; }
  button { font: inherit; color: inherit; cursor: pointer; }
  #app { display: flex; flex-direction: column; height: 100dvh; }
  header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--card2); border-bottom: 1px solid var(--stroke); flex-wrap: wrap; }
  header h1 { font-size: 22px; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat { color: var(--text2); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tools { display: flex; gap: 8px; }
  .tool { background: var(--card); border: 1px solid var(--stroke); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
  .tool.on { background: var(--brand); border-color: var(--brand); }
  #stage { position: relative; flex: 1; min-height: 0; }
  canvas { display: block; width: 100%; height: 100%; background: var(--table); }
  .overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,22,23,0.55); padding: 16px; }
  .overlay[hidden] { display: none; }
  .card { background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 24px; width: min(440px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5); max-height: 100%; overflow: auto; }
  .card img.art { width: 100%; max-height: 200px; object-fit: contain; border-radius: 8px; margin-bottom: 12px; }
  .sizes { display: grid; gap: 8px; margin: 14px 0 6px; }
  .size { display: flex; align-items: center; gap: 12px; background: var(--card2); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 14px; text-align: left; }
  .size b { font-family: 'Francois One'; font-size: 24px; font-weight: 400; width: 54px; }
  .size span { flex: 1; font-weight: 600; }
  .size small { color: var(--mustard); }
  .primary { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 600; text-decoration: none; margin: 14px 0 8px; }
  .secondary { display: inline-block; background: transparent; border: 1px solid var(--stroke); color: var(--text); border-radius: 999px; padding: 8px 16px; font-weight: 600; text-decoration: none; margin: 4px; font-size: 14px; }
  .muted { color: var(--text3); font-size: 13px; }
  .big { font-family: 'Francois One'; font-size: 30px; margin: 6px 0; }
  #signup { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stroke); }
  .signup-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .signup-row input { flex: 1 1 200px; min-width: 0; background: var(--card2); border: 1px solid var(--stroke); color: var(--text); border-radius: 999px; padding: 11px 16px; font: inherit; }
  .signup-row input:focus { outline: 2px solid var(--brand); border-color: transparent; }
  #signup.done .signup-row { display: none; }
  .loading { color: var(--text2); }
  @media (max-width: 560px) { header h1 { font-size: 18px; width: 100%; } .tool { padding: 6px 11px; } }
[hidden] { display: none !important; } /* .primary/.secondary set display, which would beat the hidden attribute */
