/* gp.css — page layer for /graph-paper/. The shell (header, controls, buttons, explainer, footer) is
   /assets/polyatic.css; this adds the green cutting-mat stage with the printed sheet lying on it (white in
   both themes: it is paper) and the form details. Built from polyatic's tokens only. */
.gp-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.gp-head h1{margin-bottom:.25rem}
.gp-head .sub{margin-bottom:.625rem}

/* ---------- the stage ---------- */
.duo.gp-duo>.pane-result{position:static}
@media (min-width:920px){
  .duo.gp-duo{grid-template-columns:minmax(20rem,1fr) minmax(0,1fr)}
  .duo.gp-duo>.pane-result{position:sticky;top:1rem}
}
.gp-stage{color:var(--mat-ink);border-radius:var(--r);padding:.75rem;box-shadow:var(--shadow);min-width:0;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 1.5rem),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 1.5rem),linear-gradient(180deg,var(--mat),var(--mat-2))}
.gp-canvas{display:block;margin:0 auto;max-width:100%;background:#fff;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.35),0 10px 24px -12px rgba(0,0,0,.6)}
.gp-stage .btn:focus-visible,.gp-stage button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.gp-cap{margin:.5rem 0 0;font-family:var(--mono);font-size:.6875rem;line-height:1.45;letter-spacing:.01em;color:var(--mat-muted)}
.gp-actions{display:flex;flex-wrap:wrap;gap:.375rem;margin:.5rem 0 0}
.gp-actions .btn{flex:1 1 3.5rem;padding:0 .5rem;white-space:nowrap}
.gp-actions .btn.gp-main{flex:3 1 8.5rem;font-size:.9375rem}
.gp-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.gp-stage .btn:disabled{opacity:.6;cursor:progress}
.gp-print{margin:.5rem 0 0;font-size:.8125rem;line-height:1.45;color:var(--mat-ink)}
.gp-msg{margin:.5rem 0 0;font-size:.875rem;font-weight:600;line-height:1.45;color:var(--mat-ink)}
.gp-msg:empty{display:none}

/* ---------- settings ---------- */
.gp-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.gp-form .modes{margin-bottom:.75rem}
.gp-form .modes button{padding:.5rem .25rem}
.gp-kinds.modes,.gp-sizes.modes{display:grid;grid-template-columns:repeat(3,1fr)}
.gp-colours.modes{display:grid;grid-template-columns:repeat(2,1fr)}
.gp-note{font-size:.75rem;color:var(--muted);margin-left:.5rem}
.gp-label{display:block;font-size:.875rem;font-weight:600;color:var(--ink-2);margin:.25rem 0 .25rem}
.gp-input{box-sizing:border-box;width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--surface);border:1px solid var(--line-2);border-radius:.5rem;padding:.5rem .625rem;min-height:2.75rem}
.gp-input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.gp-custom{display:grid;grid-template-columns:minmax(0,1fr) 7rem;gap:.375rem;margin:-.25rem 0 .25rem}
.gp-custom[hidden],.gp-hint[hidden],.field[hidden]{display:none}
.gp-hint{margin:.375rem 0 .75rem;font-size:.8125rem;color:var(--muted);line-height:1.5}
.gp-two{display:grid;grid-template-columns:1fr 1fr;gap:0 .75rem}
.gp-two .modes{margin-bottom:.75rem}
.gp-two>.field{min-width:0}
.sw{display:inline-block;width:.625rem;height:.625rem;border-radius:2px;margin-right:.3rem;vertical-align:-.05rem;border:1px solid rgba(127,127,127,.5)}
.sw-blue{background:rgb(112,168,219)}
.sw-grey{background:rgb(158,158,158)}
.sw-black{background:#000}
.sw-green{background:rgb(115,179,102)}
@media (max-width:420px){.gp-two{grid-template-columns:1fr}}
