/* jar.css — page layer for /jar-label-maker/. The shell (header, controls, buttons,
   explainer, footer) is /assets/polyatic.css; this adds the cutting-mat stage with a
   close-up of one label beside the whole sheet, and the design picker. The labels and
   the sheet are paper in both themes: they are objects on the mat. */
@font-face{font-family:"JL Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/address-label-maker/fonts/classic.woff2) format("woff2")}
@font-face{font-family:"JL Script";font-style:normal;font-weight:400;font-display:swap;src:url(/address-label-maker/fonts/handwritten.woff2) format("woff2")}

.jl-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.jl-head h1{margin-bottom:.25rem}
.jl-head .sub{margin-bottom:.75rem}

/* ---------- the stage ---------- */
.duo.jl-duo>.pane-result{position:static}
.jl-stage{background:radial-gradient(120% 80% at 50% 0%,rgba(255,196,120,.16),transparent 60%),linear-gradient(180deg,var(--mat),var(--mat-2));
  color:var(--mat-ink);border-radius:var(--r);padding:.75rem .75rem .875rem;box-shadow:var(--shadow);min-width:0}
.jl-stage-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;font-family:var(--mono);font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.07em;color:var(--mat-muted);margin:0 0 .5rem;text-align:center}
.jl-chip{font-family:var(--mono);text-transform:none;letter-spacing:0;font-size:.6875rem;font-weight:600;color:var(--signal-ink);background:var(--signal);border-radius:999px;padding:.0625rem .5rem}
.jl-view{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:.75rem;align-items:center;max-width:34rem;margin:0 auto}
.jl-view.wide{grid-template-columns:minmax(0,1fr)}
.jl-view.wide .jl-sheet{width:min(9rem,40%);margin:0 auto}
.jl-one{line-height:0;display:flex;justify-content:center}
.jl-one canvas{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 16px rgba(0,0,0,.45))}
.jl-sheet{margin:0;line-height:0;text-align:center}
.jl-sheet canvas{display:block;width:100%;height:auto;background:#fff;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.1),0 14px 30px -14px rgba(0,0,0,.6)}
.jl-sheet figcaption{line-height:1.3;margin-top:.4375rem;font-family:var(--mono);font-size:.6875rem;color:var(--mat-muted)}
.jl-warn{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:#ffd27a}
.jl-warn[hidden]{display:none}
.jl-dl{display:flex;flex-wrap:wrap;gap:.5rem;max-width:34rem;margin:.75rem auto 0}
.jl-dl .btn{flex:1 1 9rem}
.jl-dl .btn:disabled{opacity:.6;cursor:progress}
.jl-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.jl-msg{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.jl-msg:empty{display:none}

/* ---------- the form ---------- */
.jl-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.jl-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.jl-hint:empty,.jl-hint[hidden]{display:none}
.jl-form textarea{min-height:5.5rem;resize:vertical;line-height:1.45;font-family:var(--sans)}
.jl-form select,.jl-form input[type=number],.jl-form input[type=text]{width:100%;max-width:100%}
.jl-form .modes{margin-bottom:.625rem}
.jl-form .check{margin-top:.75rem}
.jl-form [hidden]{display:none}
.jl-form .grid2{margin-top:.25rem}
.jl-group{margin:.25rem 0 .375rem;font-size:.75rem;font-weight:600;color:var(--ink-2)}
.jl-designs{display:grid;grid-template-columns:repeat(auto-fill,minmax(4.25rem,1fr));gap:.375rem;margin-bottom:.5rem}
.jl-design{display:flex;flex-direction:column;align-items:center;gap:.1875rem;padding:.3125rem .125rem .25rem;border:1px solid var(--line);border-radius:.5rem;
  background:var(--surface-2);color:var(--ink);font:inherit;font-size:.6875rem;font-weight:600;line-height:1.15;cursor:pointer;min-width:0}
.jl-design canvas{display:block;width:100%;max-width:4.5rem;height:auto}
.jl-design span{text-align:center;hyphens:auto}
.jl-design:hover{border-color:var(--muted)}
.jl-design.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.jl-design:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

@media(min-width:920px){
  .duo.jl-duo{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-areas:none}
  .duo.jl-duo>.pane-result,.duo.jl-duo>.pane-main{grid-area:auto}
  .jl-stage{position:sticky;top:1rem}
}
