/* Yoonu Visa. Palette : vert passeport, papier de sécurité, encres de tampon. */
:root {
  --paper: #EFF3EC; --page: #FFFFFF; --ink: #15231C; --muted: #56675D; --line: #D0DAD1;
  --green: #0E4D3A; --green-d: #083427; --gold: #C9A23F;
  --violet: #4A3A9A; --blue: #1E58A3; --red: #B3261E; --amber: #8A5A00;
  --f: "Archivo", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "B612 Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--f); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-stretch: 114%; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; max-width: 68ch; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .86rem; }
.lead { font-size: 1.12rem; color: #2E4038; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.between { justify-content: space-between; }
.boot { padding: 4rem; text-align: center; color: var(--muted); }
.mrz { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); margin: 0 0 .4rem; word-break: break-all; }
a.mrz { color: var(--green); }

/* boutons, champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.15rem; border: 2px solid var(--green); border-radius: 8px; background: var(--green); color: #fff; font: 700 .95rem/1.2 var(--f); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: rgba(14, 77, 58, .08); }
.btn.small { padding: .4rem .75rem; font-size: .84rem; border-width: 1.5px; }
.btn.big { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: wait; }
.link { background: none; border: 0; padding: 0; color: var(--green); font: 600 .88rem var(--f); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.link.danger { color: var(--red); }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .85rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .62rem .7rem; border: 1.5px solid #B7C4BA; border-radius: 7px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--f); }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(30, 88, 163, .25); outline-offset: 0; }
input:disabled { background: var(--paper); color: var(--muted); }
textarea { resize: vertical; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 1rem; padding: 1rem 0 0; }
legend { font-weight: 800; font-stretch: 114%; padding-right: .6rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; align-items: end; }
.grid-form .wide { grid-column: span 2; }
.grid-form .btn { margin-bottom: .85rem; }
.inline-form { display: flex; gap: .6rem; margin-top: 1rem; }
.inline-form input { margin: 0; }
.inline-form .btn { white-space: nowrap; }
.form-narrow { max-width: 520px; }
input[type="search"] { width: auto; min-width: 250px; margin: 0; padding: .45rem .7rem; }

.card { background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 1.35rem; margin-bottom: 1.1rem; }
.tag { display: inline-block; padding: .16rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.t-green { color: var(--green); background: #E3F0EA; }
.t-amber { color: var(--amber); background: #FBF0D5; }
.t-red { color: var(--red); background: #FBE6E4; }
.t-blue { color: var(--blue); background: #E4EDF9; }
.t-grey { color: var(--muted); background: #EDF1EE; }

/* en-têtes */
.site-head, .app-head { position: sticky; top: 0; z-index: 20; background: rgba(239, 243, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .55rem; color: var(--green); font-weight: 800; font-stretch: 118%; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.logo { width: 1.9rem; height: 1.9rem; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-color: var(--green); }
.bar-actions { display: flex; gap: .5rem; }

/* hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-stretch: 122%; font-weight: 900; line-height: .98; letter-spacing: -.03em; color: var(--green-d); margin-bottom: .45em; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; margin-bottom: 1.6rem; }
.passport { position: relative; transform: rotate(2.2deg); padding: 1.2rem 1.3rem 1rem; border-radius: 6px 16px 16px 6px; border: 1px solid #C6D2C8; border-left: 10px solid var(--green);
  background: repeating-radial-gradient(circle at 18% 28%, transparent 0 9px, rgba(14, 77, 58, .07) 9px 10px), repeating-radial-gradient(circle at 88% 82%, transparent 0 12px, rgba(30, 88, 163, .06) 12px 13px), #FBFCF7;
  box-shadow: 0 22px 44px -22px rgba(8, 52, 39, .5); }
.pp-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .06em; }
.pp-stamps { position: relative; height: 300px; }
.passport .mrz { border-top: 1px dashed #B7C4BA; padding-top: .7rem; margin: 0; font-size: .72rem; }
.stamp { position: absolute; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .55rem .95rem; border: 2.5px solid currentColor; outline: 1px solid currentColor; outline-offset: 3px; border-radius: 7px;
  font-weight: 800; font-stretch: 112%; font-size: .86rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .07em; opacity: .86; animation: stamp .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.stamp small { font-weight: 600; font-size: .68rem; letter-spacing: .04em; margin-top: .25rem; }
.stamp.round { border-radius: 50%; width: 132px; height: 132px; padding: .5rem; }
.ink-green { color: var(--green); } .ink-blue { color: var(--blue); } .ink-violet { color: var(--violet); }
.s1 { top: 26px; left: 4%; transform: rotate(-7deg); animation-delay: .25s; }
.s2 { top: 14px; right: 5%; transform: rotate(9deg); animation-delay: .7s; }
.s3 { top: 150px; left: 12%; transform: rotate(4deg); animation-delay: 1.15s; }
.s4 { bottom: 16px; right: 6%; transform: rotate(-5deg); font-size: 1.15rem; padding: .8rem 1.2rem; border-width: 3.5px; animation-delay: 1.6s; }
@keyframes stamp { from { opacity: 0; scale: 1.7; } to { opacity: .86; scale: 1; } }

/* sections publiques */
.band { padding: clamp(3rem, 6vw, 5rem) 0; }
.band.alt { background: var(--page); border-block: 1px solid var(--line); }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-stretch: 118%; color: var(--green-d); }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.svc > div { padding: .3rem 2rem .3rem 0; }
.svc > div + div { padding-left: 2rem; border-left: 1px solid #B7C4BA; }
.svc h3 { font-size: 1.3rem; color: var(--green); }
.dest-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.dest { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border: 1.5px solid #B7C4BA; border-radius: 99px; background: var(--page); font: 600 .93rem var(--f); color: var(--ink); cursor: pointer; }
.dest:hover { border-color: var(--green); }
.dest.on { background: var(--green); border-color: var(--green); color: #fff; }
.flag { font-size: 1.15rem; line-height: 1; }
.simu-out { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 2rem; align-items: start; }
.simu-list { padding: 1.5rem; border: 1px solid #C6D2C8; border-left: 8px solid var(--green); border-radius: 4px 12px 12px 4px; background: repeating-radial-gradient(circle at 95% 5%, transparent 0 11px, rgba(14, 77, 58, .05) 11px 12px), #FBFCF7; }
.simu-delai { font-size: 1rem; }
.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checklist li { position: relative; padding: .42rem 0 .42rem 1.7rem; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: .15rem; top: .82rem; width: .75rem; height: .4rem; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.how { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; margin: 2rem 0 0; padding: 0; }
.how li { counter-increment: how; border-top: 3px solid var(--green); padding-top: .9rem; }
.how li::before { content: counter(how); display: block; font-weight: 900; font-stretch: 122%; font-size: 2.6rem; line-height: 1; color: var(--green); margin-bottom: .5rem; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2rem 0 1rem; align-items: stretch; }
.pack { padding: 1.6rem; border: 1.5px solid #B7C4BA; border-radius: 14px; background: var(--paper); }
.pack.mid { background: var(--green); border-color: var(--green); color: #fff; }
.pack.mid .checklist li { border-color: rgba(255, 255, 255, .25); }
.pack.mid .checklist li::before { border-color: var(--gold); }
.prix { font-weight: 900; font-stretch: 120%; font-size: 1.9rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.pack .checklist { margin: 1rem 0 0; font-size: .93rem; }
details { border-bottom: 1px solid #B7C4BA; }
summary { cursor: pointer; padding: 1.05rem 0; font-weight: 700; font-size: 1.05rem; }
details p { padding-bottom: 1rem; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact .card { background: var(--paper); margin: 0; }
.coord { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 1.5rem 0; }
.coord dt, .facts dt { color: var(--muted); font-size: .88rem; }
.coord dd, .facts dd { margin: 0; font-weight: 600; }
.site-foot { background: var(--green-d); color: #DCE8E1; padding: 2.2rem 0; }
.site-foot .fine { color: #A9C2B5; }

/* connexion */
.auth { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1.5rem; padding: 2rem 1.25rem; }
.auth-card { width: min(420px, 100vw - 2.5rem); }
.auth-card .btn[type="submit"] { width: 100%; margin-bottom: 1rem; }
.demo-box { margin-top: 1rem; padding: 1rem; border: 1.5px dashed var(--gold); border-radius: 10px; background: #FBF6E6; font-size: .9rem; }

/* espace client */
.app-main { padding: 2rem 0 4rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.back { display: inline-block; margin-bottom: 1rem; font-weight: 600; font-size: .9rem; }
.back::before { content: "‹ "; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.dcard { display: block; padding: 1.2rem; background: var(--page); border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 4px 12px 12px 4px; color: inherit; text-decoration: none; }
.dcard:hover { border-color: var(--green); }
.dcard h3 { margin-bottom: .15rem; }
.progress { height: 6px; border-radius: 3px; background: var(--line); margin: .9rem 0 .7rem; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); }
.dcard-meta { display: flex; flex-direction: column; gap: .1rem; font-size: .88rem; margin: 0; }
.vide { max-width: 520px; margin: 3rem auto; text-align: center; padding: 2.5rem 1.5rem; border: 2px dashed #B7C4BA; border-radius: 14px; }
.vide p { margin-inline: auto; }

/* fiche dossier */
.dossier-head { margin-bottom: 1.5rem; }
.dossier-head h1 { margin-bottom: .2rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.4rem; margin: 1rem 0 0; max-width: 560px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin: 0 0 1.2rem; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .75rem; border: 2px dashed #B7C4BA; border-radius: 8px; color: var(--muted); font-size: .84rem; line-height: 1.2; }
.step-n { font-family: var(--mono); font-size: .72rem; }
.step-t { font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .05em; }
.steps .done { border: 2px solid var(--green); color: var(--green); background: #E3F0EA; }
.steps .now { border: 2.5px solid var(--violet); outline: 1px solid var(--violet); outline-offset: 2px; color: var(--violet); background: #fff; transform: rotate(-1.5deg); }
.steps .refuse { border: 2px solid var(--red); color: var(--red); background: #FBE6E4; }
.next { padding: 1rem 1.2rem; border-left: 5px solid var(--violet); background: var(--page); border-radius: 0 10px 10px 0; font-weight: 600; font-size: 1.05rem; max-width: none; margin-bottom: 1.2rem; }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.1rem; align-items: start; }
.pieces, .plist, .todo, .bars { list-style: none; margin: 0; padding: 0; }
.pieces li { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pieces li:first-child { padding-top: 0; }
.piece-main strong { display: block; font-weight: 600; }
.piece-note { margin: .35rem 0 0; padding: .4rem .6rem; background: #FBE6E4; color: #7A1A14; border-radius: 6px; font-size: .88rem; }
.piece-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.piece-actions label { margin: 0; cursor: pointer; }
.money { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 0 0 1rem; }
.money dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.money .due { color: var(--red); }
.plist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.plist + form, .money + form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.thread { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.msg { max-width: 85%; padding: .65rem .85rem; border-radius: 12px 12px 12px 3px; background: var(--paper); }
.msg.me { align-self: flex-end; background: #E3F0EA; border-radius: 12px 12px 3px 12px; }
.msg p { margin: 0 0 .2rem; }
.msg span { font-size: .76rem; color: var(--muted); }

/* espace agence */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.3rem 1rem; background: var(--green-d); color: #DCE8E1; overflow-y: auto; }
.side .brand { color: #fff; margin-bottom: 1.6rem; padding-left: .4rem; }
.side .logo { color: var(--gold); }
.side nav { display: flex; flex-direction: column; gap: .15rem; }
.side nav a { display: flex; justify-content: space-between; align-items: center; padding: .58rem .7rem; border-radius: 7px; color: #DCE8E1; font-weight: 600; font-size: .93rem; text-decoration: none; }
.side nav a:hover { background: rgba(255, 255, 255, .08); }
.side nav a[aria-current] { background: #fff; color: var(--green-d); }
.side nav b { min-width: 1.4rem; padding: 0 .35rem; border-radius: 99px; background: var(--gold); color: #2B2000; font-size: .76rem; text-align: center; }
.side-foot { margin-top: auto; padding: 1.2rem .4rem 0; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; }
.side-foot span { font-weight: 700; color: #fff; }
.side-foot a, .side-foot .link { color: #A9C2B5; font-weight: 500; }
.admin-main { padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1.4rem; }
.kpis div { padding: .9rem 1rem 1rem; background: var(--page); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 4px 4px 10px 10px; }
.kpis dt { font-size: .84rem; color: var(--muted); }
.kpis dd { margin: .2rem 0 0; font-weight: 800; font-stretch: 116%; font-size: 1.3rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.todo li + li { border-top: 1px solid var(--line); }
.todo a { display: flex; flex-direction: column; padding: .65rem 0; text-decoration: none; color: var(--ink); }
.todo a:hover strong { text-decoration: underline; }
.bars li { display: grid; grid-template-columns: 1fr 2rem; align-items: center; gap: .2rem .6rem; padding: .45rem 0; font-size: .9rem; }
.bars span { grid-column: 1 / -1; }
.bars i { height: 10px; border-radius: 2px; background: var(--green); min-width: 4px; }
.bars b { text-align: right; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: 1rem; align-items: start; }
.kcol { background: #E4EAE2; border-radius: 10px; padding: .7rem; min-height: 180px; }
.kcol h2 { display: flex; justify-content: space-between; font-size: .88rem; margin: .15rem .2rem .7rem; }
.kcol h2 b { color: var(--muted); font-weight: 600; }
.kcard { background: var(--page); border: 1px solid var(--line); border-radius: 8px; padding: .8rem; margin-bottom: .6rem; cursor: grab; }
.kcard a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.kcard a .mrz { margin-bottom: .15rem; }
.kmeta { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0; }
.table-wrap { overflow-x: auto; background: var(--page); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; background: #F6F8F4; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td select { margin: 0; padding: .35rem .5rem; min-width: 130px; font-size: .9rem; }
td .mrz, td.mrz { font-size: .8rem; }
.lead select { width: auto; margin: 0; padding: .35rem .5rem; font-size: .9rem; }
.cat-dest { padding: 1rem 0; border-top: 1px solid var(--line); }
.cat-dest h3 { margin: 0; }

/* fenêtre, message, reçu */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, 100vw - 2rem); max-height: 90vh; box-shadow: 0 30px 60px -20px rgba(8, 52, 39, .5); }
dialog::backdrop { background: rgba(8, 52, 39, .55); }
.modal-body { padding: 1.6rem; }
#toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 100; translate: -50% 150%; max-width: min(520px, 100vw - 2rem); padding: .8rem 1.1rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: .93rem; opacity: 0; transition: translate .25s, opacity .25s; pointer-events: none; }
#toast.show { translate: -50% 0; opacity: 1; }
#toast.err { background: var(--red); }
.recu { font-size: .93rem; margin-bottom: 1.2rem; }
.recu header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.recu-n { display: flex; flex-direction: column; text-align: right; }
.recu-n strong { font-family: var(--mono); font-size: 1.05rem; }
.recu table { margin-bottom: 1rem; border-block: 1px solid var(--line); }
.recu th { background: none; width: 38%; padding-left: 0; }
.recu td { padding-right: 0; }
.recu-sign { margin-top: 2.5rem; padding-top: .4rem; border-top: 1px solid var(--ink); width: 45%; margin-left: auto; text-align: center; font-size: .82rem; }
#print { display: none; }

@media (max-width: 900px) {
  .hero-grid, .simu-out, .contact, .cols { grid-template-columns: 1fr; }
  .site-nav:not(.show) { display: none; }
  .svc, .packs { grid-template-columns: 1fr; }
  .svc > div + div { padding: 1.4rem 0 0; margin-top: 1.4rem; border-left: 0; border-top: 1px solid #B7C4BA; }
  .how { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .passport { max-width: 440px; margin-inline: auto; }
  .admin { display: block; }
  .side { position: static; height: auto; padding: .8rem 1rem; }
  .side .brand { margin-bottom: .7rem; }
  .side nav { flex-direction: row; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; }
  .side nav a { white-space: nowrap; gap: .4rem; }
  .side-foot { flex-direction: row; flex-wrap: wrap; gap: 1rem; padding-top: .7rem; margin: 0; }
  input[type="search"] { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .bar { gap: .5rem; }
  .brand { font-size: 1rem; gap: .4rem; }
  .logo { width: 1.6rem; height: 1.6rem; }
  .bar-actions .btn { padding: .45rem .75rem; font-size: .84rem; border-width: 1.5px; white-space: nowrap; }
  .bar-actions .ghost + .btn { display: none; }
  .stamp { font-size: .7rem; padding: .45rem .7rem; }
  .s1 { top: 18px; left: 1%; } .s2 { top: 62px; right: 1%; } .s3 { top: 150px; left: 3%; }
  .s4 { font-size: .92rem; padding: .6rem .9rem; right: 3%; }
  .passport .mrz { white-space: nowrap; overflow: hidden; }
  .how, .two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-form .wide { grid-column: auto; }
  .inline-form { flex-direction: column; }
  .site-nav.show { gap: .9rem; font-size: .9rem; }
  .pp-stamps { height: 280px; }
  .stamp.round { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp { animation: none; }
  #toast { transition: none; }
}
@media print {
  body { background: #fff; }
  #app, dialog, #toast { display: none !important; }
  #print { display: block; padding: 1.5cm; }
}
