/* lp.css — page layer for /lined-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. */
.lp-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.lp-head h1{margin-bottom:.25rem}
.lp-head .sub{margin-bottom:.625rem}

/* ---------- the stage ---------- */
.duo.lp-duo>.pane-result{position:static}
@media (min-width:920px){
  .duo.lp-duo{grid-template-columns:minmax(20rem,1fr) minmax(0,1fr)}
  .duo.lp-duo>.pane-result{position:sticky;top:1rem}
}
.lp-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))}
.lp-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)}
.lp-stage .btn:focus-visible,.lp-stage button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.lp-cap{margin:.5rem 0 0;font-family:var(--mono);font-size:.6875rem;line-height:1.45;letter-spacing:.01em;color:var(--mat-muted)}
.lp-actions{display:flex;flex-wrap:wrap;gap:.375rem;margin:.5rem 0 0}
.lp-actions .btn{flex:1 1 3.5rem;padding:0 .5rem;white-space:nowrap}
.lp-actions .btn.lp-main{flex:3 1 8.5rem;font-size:.9375rem}
.lp-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.lp-stage .btn:disabled{opacity:.6;cursor:progress}
.lp-print{margin:.5rem 0 0;font-size:.8125rem;line-height:1.45;color:var(--mat-ink)}
.lp-msg{margin:.5rem 0 0;font-size:.875rem;font-weight:600;line-height:1.45;color:var(--mat-ink)}
.lp-msg:empty{display:none}

/* ---------- settings ---------- */
.lp-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.lp-form .modes{margin-bottom:.75rem}
.lp-form .modes button{padding:.5rem .25rem}
.lp-note{font-size:.75rem;color:var(--muted);margin-left:.5rem}
.lp-label{display:block;font-size:.875rem;font-weight:600;color:var(--ink-2);margin:.25rem 0 .25rem}
.lp-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}
.lp-input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.lp-hint{margin:.375rem 0 .75rem;font-size:.8125rem;color:var(--muted);line-height:1.5}
.lp-two{display:grid;grid-template-columns:1fr 1fr;gap:0 .75rem}
.lp-two .modes{margin-bottom:.75rem}
.lp-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}
@media (max-width:420px){.lp-two{grid-template-columns:1fr}}
.lp-hint[hidden],.field[hidden]{display:none}
.lp-four.modes{display:grid;grid-template-columns:repeat(4,1fr)}
.lp-five.modes{display:grid;grid-template-columns:repeat(5,1fr)}
.lp-form .modes button[hidden]{display:none}
@media (max-width:420px){.lp-four.modes{grid-template-columns:repeat(2,1fr)}.lp-five.modes{grid-template-columns:repeat(3,1fr)}}
