/* koperta.css — the Polish page's only layer on top of /envelope-maker/envelope.css (which brings the two
   lettering faces, the stage and the form pickers): the closed envelope first and the A4 print beside it,
   so the finished envelope and "Pobierz PDF" share the first screen of a phone; the design swatches. */
.kp-view{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:.75rem;align-items:center;margin-bottom:.625rem}
.kp-folded{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.kp-folded figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:.125rem;min-width:0}
.kp-folded canvas{display:block;width:100%;height:auto}
.kp-folded figcaption,.kp-cap{font-family:var(--mono);font-size:.6875rem;text-transform:uppercase;letter-spacing:.07em;color:var(--mat-muted)}
.kp-paper{display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:0}
.kp-paper canvas{display:block;width:100%;max-width:26rem;height:auto;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.1),0 18px 40px -16px rgba(0,0,0,.6)}
.kp-tile{margin:.5rem auto 0;max-width:30rem;font-size:.8125rem;line-height:1.45;color:var(--mat-muted)}
.kp-tile[hidden],#styleField[hidden],#flapField[hidden]{display:none}
.kp-sizes{grid-template-columns:repeat(3,minmax(0,1fr))}
.kp-designs{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.25rem,1fr));gap:.375rem}
.kp-designs .kp-group{grid-column:1/-1;margin:.375rem 0 0;font-size:.75rem;font-weight:600;letter-spacing:.02em;color:var(--ink)}
.kp-designs .kp-group:first-child{margin-top:0}
.kp-designs button{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.375rem .25rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface-2);color:var(--ink);font:inherit;font-size:.75rem;line-height:1.2;text-align:center;cursor:pointer}
.kp-sw{display:block;width:44px;height:30px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.kp-sw canvas{display:block;width:44px;height:30px}
.kp-designs button:hover{border-color:var(--muted)}
.kp-designs button.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.kp-designs button:focus-visible,.kp-words button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.kp-words{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.5rem}
.kp-words button{padding:.375rem .625rem;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--ink);font:inherit;font-size:.8125rem;cursor:pointer}
.kp-words button:hover{border-color:var(--muted)}
.kp-words button.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.kp-steps li+li{margin-top:.375rem}
@media (max-width:420px){.ev-head .sub{margin-bottom:.5rem}.kp-stage .ev-stage-h{margin-bottom:.25rem}}
