/* The public pages after the redesign — landing, auth, legal, 404, the share link.
 * Same tokens as the app shell (static/app/app.css): Inter, #121212 ink, #FF5E2B accent,
 * borders as inset shadows, #666 the muted floor for text under 18 px. */
:root{
  --ink:#121212; --ink-2:#444444; --ink-3:#666666; --deco:#BBBBBB;
  --page:#F8F8F8; --line:#E0E0E0; --line-soft:#EDEDED; --line-3:#D4D4D4;
  --dark:#121217; --dark-card:#17171E; --dark-line:#26262E; --dark-line-2:#33333C; --dark-line-3:#1F1F26;
  --dark-muted:#8A8A92; --dark-muted-2:#9A9AA2; --dark-text:#C8C8C8; --dark-text-2:#E6E6E6;
  --accent:#FF5E2B; --accent-ink:#CB4810; --accent-tint:#FFF5F2; --accent-border:#F6D0BB; --accent-dark:#2A1509; --accent-on-dark:#FF9F6B;
  --ok:#10CB29; --ok-ink:#0C9E1E; --ok-tint:#E8F9EB; --danger:#CB2910; --danger-tint:#FBEAE8; --info:#1055C9; --info-tint:#E8F0FC;
  --shadow-card:0 1px 2px rgba(0,0,0,.05); --shadow-drop:0 16px 40px rgba(0,0,0,.16);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-padding-top:84px;height:100%}
body.site{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ink);background:#fff;font-size:15px;line-height:22px;-webkit-font-smoothing:antialiased;min-height:100%;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
[hidden]{display:none !important}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 clamp(18px,3vw,32px)}
.site-main{flex:1;display:flex;flex-direction:column}
.muted{color:var(--ink-3)}
.small{font-size:12.5px;line-height:18px}

/* ---------- header ---------- */
.site-head{position:sticky;top:0;z-index:40;height:70px;background:rgba(255,255,255,.86);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.site-head-in{height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:19px;line-height:26px;font-weight:700;letter-spacing:-.035em}
.brand-mark{display:inline-flex;line-height:0}
.site-nav{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:500;color:var(--ink-2)}
.site-nav a:not(.btn):hover{color:var(--ink)}
@media (max-width:640px){.site-nav a:not(.btn):not(.brand){display:none}}
.lang-drop{position:relative}
.lang-drop summary{list-style:none;height:36px;border-radius:9px;box-shadow:inset 0 0 0 1px var(--line);padding:0 11px;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:12.5px;cursor:pointer;color:var(--ink)}
.lang-drop summary::-webkit-details-marker{display:none}
.lang-drop summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.lang-menu{position:absolute;top:44px;right:0;min-width:180px;background:#fff;border-radius:12px;box-shadow:var(--shadow-drop),inset 0 0 0 1px var(--line);padding:6px;z-index:30;display:flex;flex-direction:column}
.lang-menu a{height:38px;border-radius:8px;padding:0 11px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;color:var(--ink)}
.lang-menu a:hover,.lang-menu a[aria-current]{background:var(--page);font-weight:600}
.lang-code{font-size:11px;font-weight:700;color:var(--ink-3);width:22px}
.lang-menu a[aria-current] .lang-code{color:var(--accent-ink)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s;cursor:pointer;border:0;height:48px;padding:0 20px;font-size:15px}
.btn:active{transform:scale(.99)}
.btn-sm{height:38px;padding:0 14px;font-size:13.5px;border-radius:9px}
.btn-lg{height:50px;padding:0 22px;font-size:15.5px}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:#2A2A2A}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:#F0521F}
.btn-outline{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn-outline:hover{background:var(--page)}
.btn-outline-dark{background:transparent;color:var(--dark-text-2);box-shadow:inset 0 0 0 1px var(--dark-line-2)}
.btn-outline-dark:hover{background:var(--dark-card)}
.btn-light{background:#fff;color:var(--ink)}
.btn-full{width:100%}
.btn:disabled{opacity:.6;cursor:not-allowed}
.pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:100px;font-size:12px;font-weight:600;white-space:nowrap}
.pill-accent{background:var(--accent-tint);color:var(--accent-ink)}
.pill-warm{background:var(--accent-dark);color:var(--accent-on-dark)}
.pill-ok{background:var(--ok-tint);color:var(--ok-ink)}
.pill-info{background:var(--info-tint);color:var(--info)}
.pill-danger{background:var(--danger-tint);color:var(--danger)}
.pill-light{background:rgba(255,255,255,.93);color:var(--ink-2)}
.kicker{display:inline-block;font-size:12px;line-height:17px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--accent-ink)}
.alert{border-radius:11px;padding:11px 14px;font-size:14px;line-height:20px;margin-bottom:14px}
.alert.ok{background:var(--ok-tint);color:var(--ok-ink)}
.alert.err{background:var(--danger-tint);color:var(--danger)}

/* ---------- forms ---------- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-size:13px;line-height:19px;font-weight:600;color:var(--ink-2)}
.field input{height:48px;border-radius:11px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);border:0;padding:0 14px;font-size:15px;outline:none;transition:box-shadow .15s;width:100%}
.field input:focus{box-shadow:inset 0 0 0 1.5px var(--ink)}
.field.has-error input{box-shadow:inset 0 0 0 1.5px var(--danger)}
.field-error{color:var(--danger);font-size:12.5px;line-height:18px}
.field-hint{color:var(--ink-3);font-size:12.5px;line-height:18px}

/* ---------- landing ---------- */
.hero{padding:clamp(40px,6vw,80px) 0 clamp(28px,4vw,48px);display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:clamp(24px,4vw,56px);align-items:center}
.hero h1{font-size:clamp(32px,4.6vw,54px);line-height:1.08;font-weight:800;letter-spacing:-.03em;text-wrap:balance;margin:14px 0 16px}
.hero h1 em{font-style:normal;color:var(--accent)}
.lead{font-size:17px;line-height:26px;color:var(--ink-2);max-width:560px}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.hero-note{margin-top:14px;color:var(--ink-3);font-size:13.5px}
.hero-trust{list-style:none;display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:14px;font-size:13.5px;color:var(--ink-2)}
.hero-trust li::before{content:"✓";color:var(--ok-ink);font-weight:700;margin-right:6px}
.hero-visual{margin:0}
.split{position:relative;overflow:hidden;border-radius:18px;background:var(--dark-card);aspect-ratio:4/3;box-shadow:0 18px 40px rgba(0,0,0,.14)}
.split img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.split-after{position:absolute;top:0;right:0;bottom:0;width:50%;overflow:hidden}
.split-after img{width:200%;max-width:none;left:auto;right:0}
.split-mark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:100px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.35);font-weight:800}
.split-tag{position:absolute;bottom:12px;height:26px;border-radius:100px;padding:0 10px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;background:rgba(10,10,12,.78);color:#fff}
.split-tag.before{left:12px}.split-tag.after{right:12px;background:var(--accent)}
.hero-caption{margin-top:10px;color:var(--ink-3);font-size:12.5px;text-align:center}
.section{padding:clamp(28px,4vw,56px) 0}
.section-head{max-width:640px;margin-bottom:24px}
.section-head h2{font-size:clamp(24px,3vw,34px);line-height:1.15;font-weight:800;letter-spacing:-.02em;text-wrap:balance}
.section-head p{color:var(--ink-3);margin-top:8px;font-size:15.5px}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.step-card{background:#fff;border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),var(--shadow-card);padding:20px 18px;display:flex;flex-direction:column;gap:8px}
.step-n{width:28px;height:28px;border-radius:100px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.step-card h3{font-size:16.5px;line-height:24px;font-weight:700;margin-top:4px}
.step-card p{color:var(--ink-3);font-size:14px;line-height:21px}
.band-dark{background:var(--dark);color:#fff;border-radius:22px;padding:clamp(28px,4vw,48px);margin:clamp(20px,3vw,40px) 0}
.band-dark h2{font-size:clamp(24px,3vw,34px);line-height:1.15;font-weight:800;letter-spacing:-.02em;text-wrap:balance;max-width:640px}
.band-dark>p{color:var(--dark-muted-2);margin-top:10px;max-width:640px}
.audiences{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:26px}
.audience{background:var(--dark-card);border-radius:14px;box-shadow:inset 0 0 0 1px var(--dark-line);padding:18px;display:flex;flex-direction:column;gap:8px}
.audience-icon{width:40px;height:40px;border-radius:11px;background:rgba(255,94,43,.14);color:var(--accent);display:inline-flex;align-items:center;justify-content:center;font-size:18px}
.audience h3{font-size:16px;line-height:23px;font-weight:700}
.audience p{color:var(--dark-muted-2);font-size:14px;line-height:21px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.panel.plan{position:relative;background:#fff;border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),var(--shadow-card);padding:22px 20px;display:flex;flex-direction:column;gap:6px}
.panel.plan.featured{box-shadow:inset 0 0 0 1.5px var(--accent),var(--shadow-card)}
.panel.plan .flag{position:absolute;top:14px;right:14px;height:24px;padding:0 9px;border-radius:100px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:700;display:inline-flex;align-items:center}
.panel.plan h3{font-size:16.5px;line-height:24px;font-weight:700}
.panel.plan .stat{font-size:30px;line-height:36px;font-weight:800;letter-spacing:-.02em}
.price-note{color:var(--ink-3);font-size:12.5px}
.plan-credits{font-size:13.5px;line-height:20px;color:var(--ink-2);margin-top:4px}
.plan-features{list-style:none;margin:8px 0 4px;display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--ink-2)}
.plan-features li::before{content:"✓";color:var(--ok-ink);font-weight:700;margin-right:7px}
.panel.plan .btn{margin-top:auto}
.panel.plan .btn.ghost{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.plan-group{font-size:17px;line-height:24px;font-weight:700;margin-top:22px}
.plan-group-note{color:var(--ink-3);font-size:14px;margin:4px 0 14px}
.faq{display:flex;flex-direction:column;gap:8px;max-width:780px}
.faq details{background:#fff;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line);padding:14px 16px}
.faq summary{cursor:pointer;font-weight:600;font-size:15px}
.faq details p{margin-top:8px;color:var(--ink-2);font-size:14.5px}
.cta-band{background:var(--accent-tint);border-radius:22px;padding:clamp(28px,4vw,48px);text-align:center;margin:clamp(20px,3vw,40px) 0}
.cta-band h2{font-size:clamp(24px,3vw,34px);line-height:1.15;font-weight:800;letter-spacing:-.02em}
.cta-band p{color:var(--ink-2);margin:8px 0 18px}
.ba-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.ba-card{position:relative;margin:0;border-radius:14px;overflow:hidden;background:var(--line-soft);aspect-ratio:4/3}
.ba-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .25s}
.ba-card .ba-before{opacity:0}
.ba-card:hover .ba-before,.ba-card:focus-within .ba-before{opacity:1}
.ba-card figcaption{position:absolute;left:12px;bottom:12px;right:12px;color:#fff;font-size:13px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.ba-card .split-tag{top:12px;bottom:auto}
.guides-grid a{display:block}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.feature{background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line);padding:18px}
.feature h3{font-size:15.5px;font-weight:700;margin-bottom:6px}
.feature p{color:var(--ink-3);font-size:14px;line-height:21px}

/* ---------- auth ---------- */
.auth{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:calc(100vh - 70px)}
@media (max-width:900px){.auth{grid-template-columns:1fr}.auth-panel{display:none}}
.auth-col{display:flex;flex-direction:column;overflow:auto;padding:clamp(24px,4vw,48px) clamp(18px,4vw,48px) 92px}
.auth-box{width:100%;max-width:392px;margin:auto;display:flex;flex-direction:column}
.auth-title{font-size:28px;line-height:36px;font-weight:700;letter-spacing:-.01em;margin:6px 0 8px}
.auth-sub{color:var(--ink-3);font-size:14.5px;margin-bottom:22px}
.auth-links{margin-top:16px;text-align:center;color:var(--ink-3);font-size:13.5px;display:flex;flex-direction:column;gap:6px}
.auth-links a{color:var(--ink);font-weight:600}
.auth-panel{background:var(--dark);color:#fff;display:flex;align-items:center;justify-content:center;padding:clamp(24px,4vw,48px)}
.auth-panel-in{width:100%;max-width:520px;display:flex;flex-direction:column;gap:16px}
.auth-panel h2{font-size:22px;line-height:30px;font-weight:700;letter-spacing:-.015em}
.auth-panel p{color:var(--dark-muted-2);font-size:14.5px}
.auth-trust{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:18px;font-size:13.5px;color:var(--ink-2)}
.auth-trust li::before{content:"✓";color:var(--ok-ink);font-weight:700;margin-right:7px}
.terms-note{color:var(--ink-3);font-size:12.5px;line-height:18px;margin-top:10px}
.terms-note a{text-decoration:underline}
.social{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.social .btn{width:100%}
.or{display:flex;align-items:center;gap:10px;color:var(--ink-3);font-size:12.5px;margin:14px 0 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.centered{flex:1;display:flex;flex-direction:column;padding:clamp(24px,4vw,48px) clamp(18px,4vw,48px) 92px;overflow:auto}
.centered-box{margin:auto;max-width:440px;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.circle{width:70px;height:70px;border-radius:100px;display:inline-flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:6px}
.circle-info{background:var(--info-tint);color:var(--info)}
.circle-danger{background:var(--danger-tint);color:var(--danger)}
.circle-grey{background:var(--page);color:var(--ink-2)}
.centered-box .btn{margin-top:8px}
.centered-box form{width:100%}

/* ---------- legal ---------- */
.legal{max-width:780px;margin:0 auto;padding:clamp(24px,4vw,48px) clamp(18px,3vw,32px) 92px;font-size:15px;line-height:1.62}
.legal h1{font-size:clamp(26px,3vw,34px);line-height:1.15;font-weight:800;letter-spacing:-.02em;margin-bottom:10px}
.legal h2{font-size:19px;line-height:27px;font-weight:700;margin:28px 0 8px}
.legal h3{font-size:16px;font-weight:700;margin:18px 0 6px}
.legal p,.legal li{color:var(--ink-2)}
.legal ul,.legal ol{padding-left:22px;margin:8px 0}
.legal-nav{display:flex;flex-wrap:wrap;gap:6px 10px;color:var(--ink-3);font-size:13.5px;margin:8px 0 18px}
.legal-nav a{color:var(--ink);font-weight:600}
.legal-updated{margin-top:28px;font-size:13px}
.legal-authoritative{font-size:13.5px}
.legal-authoritative a{text-decoration:underline}

/* ---------- consent, footer ---------- */
.consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;background:#fff;border-radius:14px;box-shadow:var(--shadow-drop),inset 0 0 0 1px var(--line);padding:14px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:13.5px;max-width:720px;margin:0 auto}
.consent p{flex:1;min-width:220px}
.consent a{text-decoration:underline}
.consent-actions{display:flex;gap:8px}
.site-foot{border-top:1px solid var(--line);padding:28px 0 92px;color:var(--ink-3);font-size:13px}
.site-foot-in{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between}
.site-foot-links{display:flex;flex-wrap:wrap;gap:6px 16px}
.site-foot-links a:hover{color:var(--ink)}

/* ---------- social sign-in (partial _social_buttons.html) ---------- */
.social-auth{margin-top:16px;display:flex;flex-direction:column;gap:10px;align-items:stretch}
.social-sep{display:flex;align-items:center;gap:10px;color:var(--ink-3);font-size:12.5px}
.social-sep::before,.social-sep::after{content:"";flex:1;height:1px;background:var(--line)}
.social-auth .g_id_signin{display:flex;justify-content:center}
.apple-btn{height:48px;border-radius:11px;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;width:100%}

/* The auth screens keep a one-line footer: the legal links, nothing that competes with the form. */
.auth-foot { padding: 12px 0; border-top: 1px solid var(--line); }
.auth-foot .site-foot-in { justify-content: center; }

/* ---------- long-form pages: the comparison and the guides ----------
 * Both are an article with prose, a table or a card grid, and a call to action at the
 * end. `.legal` is the same idea at a narrower measure; this one is wider because a
 * comparison table needs the room, and it carries the table styles with it. */
.doc{width:100%;max-width:880px;margin:0 auto;padding:clamp(24px,4vw,44px) clamp(18px,3vw,32px) 80px;font-size:15.5px;line-height:1.62}
.doc h1{font-size:clamp(27px,3.4vw,38px);line-height:1.12;font-weight:800;letter-spacing:-.025em;text-wrap:balance;margin-bottom:12px}
.doc h2{font-size:clamp(20px,2.2vw,24px);line-height:1.2;font-weight:700;letter-spacing:-.015em;margin:34px 0 10px;text-wrap:balance}
.doc h3{font-size:17px;line-height:25px;font-weight:700;margin:22px 0 6px}
.doc p,.doc li{color:var(--ink-2)}
.doc p{margin:10px 0}
.doc ul,.doc ol{padding-left:22px;margin:10px 0}
.doc li{margin:5px 0}
.doc .lead{font-size:17px;line-height:27px;color:var(--ink-2);margin:0 0 6px}
.doc a:not(.btn){color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px}
.doc a:not(.btn):hover{color:var(--accent)}
.doc strong{color:var(--ink);font-weight:650}
.doc figure{margin:18px 0}
.doc figcaption{color:var(--ink-3);font-size:13px;margin-top:8px}

/* Breadcrumb. Small, grey, and never the thing the eye lands on first. */
.crumbs{font-size:13px;line-height:19px;color:var(--ink-3);margin-bottom:14px}
.crumbs a{color:var(--ink-3)}
.crumbs a:hover{color:var(--ink)}

/* A note set apart from the prose — « how to read this table », a method box. */
.doc-note{background:var(--page);border-radius:14px;box-shadow:inset 0 0 0 1px var(--line);padding:18px 20px;margin:20px 0}
.doc-note h2{margin-top:0;font-size:17px;line-height:25px}
.doc-note ul{margin-bottom:0}

/* The comparison tables. They are wider than a phone, so the scroll is owned by a
 * focusable region rather than by the page — otherwise the whole document slides
 * sideways and the reader loses the left margin. */
.cmp-scroll{overflow-x:auto;margin:16px 0;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line);background:#fff}
.cmp-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cmp-table{width:100%;border-collapse:collapse;font-size:14px;line-height:20px;min-width:560px}
.cmp-table th,.cmp-table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line-soft);vertical-align:top}
.cmp-table thead th{font-size:11.5px;line-height:16px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3);background:var(--page);white-space:nowrap}
.cmp-table tbody th{font-weight:650;color:var(--ink)}
.cmp-table tr:last-child th,.cmp-table tr:last-child td{border-bottom:0}
.cmp-table td{color:var(--ink-2)}
.cmp-table .yes{color:var(--ok-ink);font-weight:600}
.cmp-table .no{color:var(--ink-3)}
/* Our own row, marked so the reader can find it without hunting. */
.cmp-table .cmp-us{background:var(--accent-tint)}
.cmp-table .cmp-us th,.cmp-table .cmp-us td{color:var(--ink)}
.cmp-table .cmp-us th::after{content:"★";color:var(--accent);margin-left:6px;font-size:11px;vertical-align:top}

/* A grid of links out: one comparison per competitor, one card per guide. */
.doc-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin:18px 0}
.doc-card{display:flex;flex-direction:column;gap:6px;background:#fff;border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),var(--shadow-card);padding:18px 18px 16px;transition:box-shadow .15s,transform .15s}
.doc-card:hover{box-shadow:inset 0 0 0 1px var(--line-3),0 6px 18px rgba(0,0,0,.07);transform:translateY(-1px)}
/* A card's title is a card's title whatever its level — the guides index uses h2 so
 * its cards are document landmarks, and must not inherit the page-heading rhythm. */
.doc-card h2,.doc-card h3{font-size:16px;line-height:23px;font-weight:700;margin:0;color:var(--ink);letter-spacing:0}
.doc-card p{color:var(--ink-3);font-size:14px;line-height:21px;margin:0}
.doc-card .small{color:var(--deco)}
.doc-cards a.doc-card,.doc a.doc-card:not(.btn){text-decoration:none;color:inherit}

/* One line pointing at a neighbouring page, under the content it belongs to. */
.doc-crosslink{background:var(--page);border-radius:12px;padding:14px 16px;font-size:14.5px;color:var(--ink-3);margin:22px 0}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* A guide's byline, and the « read next » list that closes it. */
.doc-meta{margin:0 0 4px}
.doc-faq{margin-top:34px}
.doc-more{margin-top:34px}
.doc-more ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:2px}
.doc-more li{margin:0}
.doc-more a{display:block;padding:11px 14px;border-radius:11px;background:var(--page);font-weight:600;color:var(--ink);text-decoration:none}
.doc-more a:hover{background:var(--line-soft)}

/* ---------- the open trial (/o/…): a prospecting link, no account ----------
 * Ported from the pre-redesign stylesheet with the palette remapped to the tokens
 * above. The page has one job — take a stranger from « what is this » to « there is
 * my room, furnished » — so the proof is large and the form is one line. */
/* ---------- before / after ---------- */
.compare{position:relative;border-radius:12px;overflow:hidden;user-select:none;box-shadow:var(--shadow-card);touch-action:pan-y}
.compare img{display:block;width:100%;height:auto;pointer-events:none}
.compare .after-wrap{position:absolute;inset:0;overflow:hidden}
.compare .after-wrap img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.compare .divider{position:absolute;top:0;bottom:0;width:3px;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.35)}
.compare .handle{position:absolute;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--accent-ink);box-shadow:0 2px 10px rgba(0,0,0,.3);font-size:15px;border:none;cursor:ew-resize}
.lb-stage .compare{box-shadow:none;border-radius:12px}
.compare-divider,.compare-handle{display:none}
.slide-media[data-compare="on"] .compare-divider{display:block;position:absolute;top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 10px rgba(0,0,0,.6)}
.slide-media[data-compare="on"] .compare-handle{display:flex;position:absolute;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;border:none;background:#fff;color:#111;align-items:center;justify-content:center;cursor:ew-resize;font-size:17px}
.hero-visual .compare{border-radius:18px;box-shadow:0 26px 60px rgba(60,42,24,.2);cursor:ew-resize}
.compare-tag{position:absolute;top:12px;padding:4px 12px;border-radius:999px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:rgba(255,255,255,.92);color:var(--ink);pointer-events:none;z-index:2}
.compare-tag.before{left:12px}
.compare-tag.after{right:12px;background:rgba(23,20,16,.85);color:#fff}
.ba-card:hover .compare-tag.after,.ba-card:active .compare-tag.after{opacity:0}
.ba-card .compare-tag{transition:opacity .2s}
/* ---------- l'essai depuis un lien de prospection ---------- */
/* Une page, un but : amener un inconnu de « qu'est-ce que c'est » à « voilà ma pièce
   meublée ». Tout ce qui n'y concourt pas est réduit — l'accueil tient sur deux lignes,
   le formulaire sur une, et la place gagnée va au visuel, qui est le seul argument. */
.try{max-width:1080px;padding-top:24px;padding-bottom:56px}
.try-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.try-head h1{font-size:26px;line-height:1.25;margin:0 0 4px}
.try-head .muted{font-size:14.5px;max-width:56ch}
.try-count{flex:none;background:var(--accent-tint);color:var(--accent-ink);border-radius:999px;
  padding:6px 15px;font-size:13.5px;font-weight:700;white-space:nowrap}
/* Le fil d'étapes de la page d'essai (`.try-steps`, pas `.steps` : ce nom est celui de
   l'assistant de la fiche bien, et le partager écrasait sa mise en page). Le rond porte le numéro puis la coche : « 2 sur 3 » se lit d'un coup
   d'œil, là où une barre de progression demande à être interprétée. La ligne de liaison
   est un ::before sur l'élément, donc elle suit la largeur réelle sans être calculée. */
.try-steps{display:flex;list-style:none;margin:20px 0 18px;padding:0;gap:0;counter-reset:none}
.try-steps li{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;
  font-size:13px;color:var(--ink-3);text-align:center}
.try-steps li::before{content:"";position:absolute;top:15px;right:50%;width:100%;height:2px;background:var(--line)}
.try-steps li:first-child::before{display:none}
.try-steps li.done::before,.try-steps li.on::before{background:var(--accent-ink)}
.try-steps .dot{position:relative;z-index:1;width:30px;height:30px;border-radius:50%;display:flex;
  align-items:center;justify-content:center;font-weight:700;font-size:14px;
  background:var(--page);border:2px solid var(--line);color:var(--ink-3)}
.try-steps li.on .dot{background:var(--accent-ink);border-color:var(--accent-ink);color:#fff}
.try-steps li.on{color:var(--ink);font-weight:600}
.try-steps li.done .dot{background:var(--ok-ink);border-color:var(--ok-ink);color:#fff}
/* La preuve à gauche, l'action à droite. Le visuel est plus large que le panneau : c'est
   lui qui répond à « qu'est-ce que ça donne », et personne ne dépose une photo avant. */
.try .cta-band{margin-top:26px}
.try-stage{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:24px;align-items:start}
.try-visual{margin:0}
.try-visual .compare{border-radius:14px;cursor:ew-resize;box-shadow:0 18px 42px rgba(60,42,24,.16)}
/* Rien à comparer encore : pas d'étiquettes, pas de ligne, pas de poignée. Les montrer
   sur une seule image promet une comparaison qui n'existe pas. */
.compare.is-single .compare-tag,.compare.is-single .divider,.compare.is-single .handle{display:none}
.compare.is-single{cursor:default}
.try-visual figcaption{margin-top:9px;font-size:13px;text-align:center}
.try-panel{background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:18px 20px;box-shadow:var(--shadow-card)}
.try-drop-row{display:flex;gap:8px;margin-top:10px}
.try-drop-row select{flex:1;min-width:0;padding:9px 10px;border:1px solid var(--line);
  border-radius:9px;font:inherit;background:var(--page)}
.try-drop-row .btn{flex:none}
/* Une fois la photo déposée, le téléversement n'est plus l'action : il devient un repli,
   replié, sous le choix du style. Le laisser en tête de panneau repousserait hors de
   l'écran ce que la personne est venue faire. */
.try-reupload{margin-top:16px;border-top:1px solid var(--line-soft);padding-top:12px}
.try-reupload summary{font-size:13.5px;color:var(--ink-3);cursor:pointer;font-weight:600}
.try-reupload[open] summary{margin-bottom:10px}
.try-reupload .drop{min-height:74px}
.try-why{list-style:none;margin:18px 0 0;padding:0;border-top:1px solid var(--line-soft);padding-top:14px}
.try-why li{position:relative;padding-left:22px;margin-bottom:9px;font-size:14px;color:var(--ink-3)}
.try-why li::before{content:"✓";position:absolute;left:0;color:var(--ok-ink);font-weight:700}
/* Le studio est un panneau du même formulaire, pas une seconde page : ce qui est choisi
   en simple survit à son ouverture. */
.try-tabs{display:flex;gap:6px;margin:18px 0 0;border-bottom:1px solid var(--line)}
.try-tab{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;
  padding:9px 12px;font:inherit;font-weight:600;font-size:14px;color:var(--ink-3);cursor:pointer}
.try-tab.is-on{color:var(--accent-ink);border-bottom-color:var(--accent-ink)}
.try-brief{padding-top:14px}
.try-brief fieldset{border:none;margin-bottom:14px}
.try-brief legend{font-weight:600;font-size:13px;margin-bottom:7px;color:var(--ink-3)}
.try-group{border:1px solid var(--line-soft);border-radius:9px;padding:9px 12px;margin-bottom:8px}
.try-group summary{font-weight:600;font-size:13.5px;cursor:pointer}
.try-group[open] summary{margin-bottom:10px}
.try-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  border-top:1px solid var(--line-soft);padding-top:14px;margin-top:4px}
.try-strip{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;justify-content:center}
.try-thumb{width:64px;height:48px;padding:0;border:1px solid var(--line);border-radius:7px;
  overflow:hidden;background:none;cursor:pointer}
.try-thumb img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:860px){
  /* Sur un téléphone l'action passe sous la preuve : on regarde d'abord, on dépose ensuite. */
  .try-stage{grid-template-columns:1fr}
  .try-head h1{font-size:22px}
  .try-steps li span:not(.dot){font-size:11.5px}
}
.try-sample{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  margin-top:12px;font-size:13px}
.try-sample .btn{white-space:nowrap}
/* Le voile de génération : la photo reste visible dessous, assombrie, et la carte dit ce
   qui se passe et combien de temps il reste. `pointer-events:none` : la poignée du
   comparateur reste inerte pendant ce temps, rien à faire d'autre qu'attendre. */
.compare .try-progress{position:absolute;inset:0;z-index:3;display:flex;align-items:center;
  justify-content:center;background:rgba(33,29,24,.45);backdrop-filter:blur(2px);pointer-events:none}
.compare.is-working .after-wrap,.compare.is-working .divider,.compare.is-working .handle,
.compare.is-working .compare-tag{visibility:hidden}
.try-progress-card{background:#fff;border-radius:14px;padding:18px 22px;min-width:min(280px,86%);
  display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;
  box-shadow:0 12px 34px rgba(0,0,0,.28)}
.try-progress-card b{font-size:15px}
.try-progress-card .muted{font-size:13px;min-height:1.4em}
.try-bar{width:100%;height:7px;border-radius:999px;background:var(--line-soft);overflow:hidden;margin-top:6px}
.try-bar i{display:block;height:100%;width:0;border-radius:999px;background:var(--accent-ink);
  background-image:linear-gradient(90deg,var(--accent-ink),var(--accent));transition:width .9s ease}
/* Le bouton du compte, à côté de « Générer » : sur un téléphone, les deux prennent la
   largeur et se lisent l'un sous l'autre. */
.try-actions .btn.big{padding:12px 18px;font-size:15px}
.try-actions #try-signup{white-space:nowrap}
@media (max-width:560px){
  .try-actions .btn.big{flex:1 1 100%}
}/* The drop zone of the open trial. The file input itself is hidden rather than styled —
 * the whole dashed box is the label, so a click anywhere in it opens the picker. */
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:96px;padding:14px;border:2px dashed var(--line);border-radius:12px;background:var(--page);cursor:pointer;text-align:center;transition:border-color .15s,background .15s}
.drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-tint)}
.drop b{font-size:14.5px;color:var(--ink)}
.drop .muted{font-size:12.5px;word-break:break-all}
.drop input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.drop[data-compact="true"]{min-height:0;padding:12px 14px;flex-direction:row;gap:14px;flex-wrap:wrap}
.drop[data-compact="true"] .drop-note{margin:0}
.drop-note{display:block;font-size:12px;color:var(--ink-3);margin-top:4px}

/* ---------- the back office ----------
 * Scoped to `body.admin` so this dense vocabulary — panels, KPI tiles, tables, small
 * forms — never reaches a public page, and so the nine admin screens could move onto
 * the redesign without their markup being rewritten. Same tokens as everything above;
 * only the density differs, because this is a tool and not a page being read. */
body.admin{background:var(--page)}
body.admin .site-main{width:100%;max-width:1180px;margin:0 auto;padding:clamp(20px,3vw,32px) clamp(18px,3vw,32px) 80px}
.admin-head{background:#fff}
.admin-head .brand{gap:8px}
.admin-flag{margin-left:4px}
.admin-nav{gap:16px;font-size:13.5px}
.admin-nav a[aria-current]{color:var(--ink);font-weight:700}
.admin-nav form{display:inline-flex}
@media (max-width:980px){.admin-head .site-head-in{flex-wrap:wrap;height:auto;padding-top:10px;padding-bottom:10px}
  .admin-head,.admin-head .site-head-in{height:auto}
  .admin-nav{flex-wrap:wrap;gap:10px 14px}
  body.admin .site-nav a:not(.btn){display:inline-flex}}

body.admin h1.page{font-size:clamp(23px,2.6vw,29px);line-height:1.2;font-weight:800;letter-spacing:-.02em;margin-bottom:18px}
body.admin h2{font-size:18px;line-height:26px;font-weight:700;margin:26px 0 10px}
body.admin h3{font-size:15.5px;line-height:23px;font-weight:700;margin:16px 0 8px}
/* The back office writes its panel headings as `<h2 class="section">`, and `.section`
 * above is the MARKETING band — `padding: clamp(28px,4vw,56px) 0`. Every one of the 19
 * headings was 138 px tall as a result, which is the empty stripe at the top of every
 * card (QA, 23 Sept 2026). The name is kept and the padding taken back: renaming it in
 * five templates would leave the next one to be written carrying the same trap. */
body.admin .section{padding:0;margin-bottom:12px}
body.admin .muted{color:var(--ink-3)}
body.admin .small{font-size:12.5px;line-height:18px}
body.admin .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* Panels and the tiles on the overview. */
body.admin .panel{background:#fff;border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),var(--shadow-card);padding:18px 20px;margin-bottom:16px}
body.admin .kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:22px}
body.admin .kpi{background:#fff;border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),var(--shadow-card);padding:16px 18px}
body.admin .kpi-label{font-size:11.5px;line-height:16px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3)}
body.admin .stat{font-size:30px;line-height:38px;font-weight:800;letter-spacing:-.02em;margin:4px 0 2px}
body.admin .kpi-sub{font-size:12.5px;line-height:18px;color:var(--ink-3)}
body.admin .up{color:var(--ok-ink);font-weight:700}
body.admin .grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
body.admin .grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
body.admin .admin-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
body.admin .admin-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.admin .admin-item{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line-soft)}
body.admin .admin-item:last-child{border-bottom:0}

/* Tables: the back office is mostly rows. */
body.admin table{width:100%;border-collapse:collapse;font-size:13.5px;line-height:20px}
body.admin thead th{text-align:left;font-size:11.5px;line-height:16px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3);padding:9px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
body.admin tbody td,body.admin tbody th{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line-soft);vertical-align:top}
body.admin tbody tr:last-child td,body.admin tbody tr:last-child th{border-bottom:0}
body.admin tbody tr:hover{background:var(--page)}
body.admin td a,body.admin th a{color:var(--accent-ink);font-weight:600}

/* Forms, at back-office density rather than the 48 px of a public form. */
body.admin .field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
body.admin .field label{font-size:12.5px;line-height:18px;font-weight:600;color:var(--ink-2)}
/* `:not([type=checkbox])` is the whole of the fix for the 246 forty-pixel full-width
 * boxes on /admin/content: a tick box is not a text field, and giving it a text field's
 * height and width turned every « Active » into a grey slab. */
body.admin .field input:not([type=checkbox]):not([type=radio]),
body.admin .field select,body.admin .field textarea{height:40px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);border:0;padding:0 12px;font-size:14px;outline:none;width:100%;transition:box-shadow .15s}
body.admin input[type=checkbox],body.admin input[type=radio]{width:16px;height:16px;flex:0 0 auto;margin:0;accent-color:var(--accent);cursor:pointer}
/* The admin writes a tick box as `<label><input type=checkbox> Text</label>`, so the
 * label is the row: box and words side by side, aligned on the first line of the text. */
body.admin .field label:has(> input[type=checkbox]),
body.admin .field label:has(> input[type=radio]){display:flex;align-items:flex-start;gap:8px;font-weight:500;color:var(--ink);cursor:pointer;line-height:18px}
body.admin .field textarea{height:auto;min-height:96px;padding:10px 12px;line-height:20px;resize:vertical}
body.admin .field input:focus,body.admin .field select:focus,body.admin .field textarea:focus{box-shadow:inset 0 0 0 1.5px var(--ink)}
body.admin .field .ph,body.admin .ph{color:var(--ink-3);font-size:12px;line-height:17px}
/* A row of small controls. It WRAPS everywhere except inside a table cell, where the
 * row has to stay one line and the table's own scroller deals with the width. Stated
 * the other way round, `nowrap` on a panel form pushed a long button straight out of
 * the document: 1134 px of content in a 1024 px window, on a page with no table in it. */
body.admin .credit-form{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body.admin td .credit-form{flex-wrap:nowrap}
body.admin .credit-form .field{margin-bottom:0}

/* Buttons and pills, in the old modifier spelling the admin markup already uses. */
body.admin .btn{height:38px;padding:0 14px;font-size:13.5px;border-radius:9px;background:var(--ink);color:#fff}
body.admin .btn:hover{background:#2A2A2A}
body.admin .btn.small{height:32px;padding:0 11px;font-size:12.5px;border-radius:8px}
body.admin .btn.big{height:44px;padding:0 18px;font-size:15px;border-radius:11px}
body.admin .btn.quiet,body.admin .btn.ghost{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
body.admin .btn.quiet:hover,body.admin .btn.ghost:hover{background:var(--page)}
body.admin .btn.danger{background:var(--danger);color:#fff}
body.admin .btn.danger:hover{background:#B02410}
body.admin .btn.btn-outline{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
body.admin .btn:disabled{opacity:.55;cursor:not-allowed}
body.admin .pill{display:inline-flex;align-items:center;gap:5px;height:23px;padding:0 9px;border-radius:100px;font-size:11.5px;font-weight:650;white-space:nowrap;background:var(--page);color:var(--ink-2)}
body.admin .pill.green{background:var(--ok-tint);color:var(--ok-ink)}
body.admin .pill.red{background:var(--danger-tint);color:var(--danger)}
body.admin .pill.blue{background:var(--info-tint);color:var(--info)}
body.admin .pill.gray{background:var(--page);color:var(--ink-3)}
/* « Send the tour… » (templates/_tour_admin.html): a disclosure, so a table row keeps
   one button's width until somebody actually wants the picker. */
body.admin .tour-send{margin-top:6px}
body.admin .tour-send>summary{list-style:none;display:inline-flex;align-items:center;cursor:pointer;white-space:nowrap}
body.admin .tour-send>summary::-webkit-details-marker{display:none}
body.admin .tour-send[open]>summary{box-shadow:inset 0 0 0 1.5px var(--ink)}
body.admin .tour-send-form{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:8px;padding:12px;border-radius:12px;background:var(--page);min-width:230px;max-width:280px}
body.admin .tour-send-form select{height:34px;font-size:13px;width:100%}
body.admin .tour-send-mail{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:500;cursor:pointer;white-space:nowrap}
body.admin .tour-send-form .ph{margin:0;white-space:normal}
/* The two bar charts on the overview: CSS columns, no charting library. */
body.admin .bars{display:flex;align-items:flex-end;gap:5px;height:150px;margin-top:10px}
body.admin .bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0;height:100%}
body.admin .bar-fill{width:100%;background:var(--accent);border-radius:5px 5px 2px 2px;min-height:2px}
body.admin .bar-val{font-size:10.5px;font-weight:650;color:var(--ink-3);line-height:1}
body.admin .bar-lab{font-size:10px;color:var(--ink-3);line-height:1}
/* A heading that opens a panel has the panel's padding above it already. */
body.admin .panel>h2:first-child,body.admin .panel>h3:first-child,body.admin .panel>.section:first-child{margin-top:0}
/* Inputs that are not wrapped in a `.field` — the search bar, the per-row credit form.
 * Stated once for the element rather than per screen, since the back office writes its
 * forms as plain markup. */
body.admin input[type=text],body.admin input[type=search],body.admin input[type=number],
body.admin input[type=email],body.admin input[type=url],body.admin input[type=date],
body.admin select,body.admin textarea{height:40px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);border:0;padding:0 12px;font-size:14px;outline:none;max-width:100%;transition:box-shadow .15s}
body.admin textarea{height:auto;min-height:96px;padding:10px 12px;line-height:20px;resize:vertical}
body.admin input:focus,body.admin select:focus,body.admin textarea:focus{box-shadow:inset 0 0 0 1.5px var(--ink)}
body.admin .filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
body.admin .searchbar{flex:1 1 260px;min-width:0;position:relative}
body.admin .searchbar input{width:100%;padding-left:36px}
body.admin .searchbar::before{content:"⌕";position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--ink-3);font-size:17px;pointer-events:none}
/* Shown by the screen's own script when a filter matches nothing. */
body.admin .no-result{display:none;text-align:center;color:var(--ink-3);padding:28px 0;font-size:14px}
body.admin .credit-form input[type=number]{width:84px}
body.admin .credit-form input[type=text]{width:150px}

/* A back-office table wider than its panel. It scrolled already; nothing said so, and
 * the last column simply looked cut off. The classic two-layer trick: a shadow pinned
 * to the panel (background-attachment: local) sits under a white cover that scrolls
 * with the content, so the shadow shows only on the side there is more to see. */
body.admin .table-scroll{overflow-x:auto;
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), rgba(0,0,0,0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), rgba(0,0,0,0)) right center / 14px 100% no-repeat scroll;
}

/* ---------- the back office, part two ----------
 * Ten class names the nine admin screens have always used and that no stylesheet ever
 * defined. They were lost when the back office moved onto site.css, and the loss is not
 * cosmetic: with no `.gen-grid`, every before/after pair on an agency's page rendered at
 * its natural 1600 px, twenty-five cards made a page 33 774 px tall, and page one pulled
 * roughly 39 MB of photographs (QA, 23 Sept 2026). */

/* A heading and the control that belongs to it, on one line, wrapping on a phone. */
body.admin .head-row{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;justify-content:space-between}

/* Small forms laid out as a row of fields — the trial-link maker, the filters. */
body.admin .inline-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
body.admin .inline-form .field{margin-bottom:0;flex:1 1 180px;min-width:0}
body.admin .inline-form .btn{flex:0 0 auto}

/* Label / value pairs. A `<dl>` of `<div>`s, so each pair is one grid row. */
body.admin .health-list{display:grid;gap:0}
body.admin .health-list>div{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line-soft)}
body.admin .health-list>div:last-child{border-bottom:0}
body.admin .health-list dt{color:var(--ink-3);font-size:13px}
body.admin .health-list dd{font-weight:650;display:flex;align-items:center;gap:8px}

/* The anchor tabs on /admin/content. Without this they ran together as one word:
 * « Modèle & clé IAPromptsPiècesStylesMode avancé ». */
body.admin .tabbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px;padding-bottom:2px}
body.admin .tabbar a{height:32px;padding:0 12px;border-radius:9px;display:inline-flex;align-items:center;font-size:13px;font-weight:600;color:var(--ink-2);background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
body.admin .tabbar a:hover{background:var(--page);color:var(--ink)}

/* Previous / next around a page number. */
body.admin .pager{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* `<details class="admin-item">` is a ROW when closed and a FORM when open, and the
 * flex row it inherits put the summary and the form side by side — which is how a
 * prompt textarea ended up 193 px wide and the room form 407 px with its title pushed
 * to the far left. A disclosure is a block; only its summary is a row. */
body.admin details.admin-item{display:block}
body.admin details.admin-item>summary{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}
body.admin details.admin-item>summary::-webkit-details-marker{display:none}
body.admin details.admin-item>summary::after{content:"";width:7px;height:7px;flex:0 0 auto;border-right:1.5px solid var(--ink-3);border-bottom:1.5px solid var(--ink-3);transform:rotate(45deg) translateY(-2px);transition:transform .15s}
body.admin details.admin-item[open]>summary::after{transform:rotate(225deg) translateY(-2px)}
body.admin details.admin-item[open]>summary{margin-bottom:12px}
body.admin details.admin-item>form,body.admin details.admin-item>div{width:100%}
body.admin details.admin-item>form .grid2,body.admin details.admin-item>form .grid3{width:100%}

/* An identifier printed as code — a Stripe id, the CSV header, a Message-ID. Long, and
 * without a break opportunity of its own, so it walked straight out of its card. */
body.admin code.ph,body.admin .ph code{overflow-wrap:anywhere;word-break:break-word}

/* ---- the generation history on an agency's page ---------------------------------
 * A card per attempt, before and after side by side. The aspect ratio is fixed so the
 * grid is the same height whatever comes back, and the images are asked for at a width
 * a card actually uses (`?w=640`, services/staging.thumb_path) rather than at the 1600 px
 * the file happens to be. */
body.admin .gen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
body.admin .gen-card{background:#fff;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;display:flex;flex-direction:column}
body.admin .gen-card.is-failed{box-shadow:inset 0 0 0 1px var(--accent-border)}
body.admin .gen-pair{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}
body.admin .gen-shot{position:relative;display:block;aspect-ratio:4/3;background:var(--page);overflow:hidden}
body.admin .gen-shot img{width:100%;height:100%;object-fit:cover}
body.admin .gen-shot.gen-failed{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px;text-align:center}
body.admin .gen-shot.gen-failed small{font-size:11px;line-height:15px;color:var(--ink-3);overflow-wrap:anywhere}
body.admin .gen-tag{position:absolute;left:6px;bottom:6px;height:20px;padding:0 7px;border-radius:100px;font-size:10.5px;font-weight:650;display:inline-flex;align-items:center;background:rgba(10,10,12,.72);color:#fff}
body.admin .gen-card figcaption{padding:10px 12px;font-size:12.5px;line-height:18px;display:flex;flex-direction:column;gap:6px}
body.admin .gen-meta{display:flex;flex-wrap:wrap;gap:5px}
body.admin .gen-filter{white-space:nowrap}
body.admin .gen-filter a{color:var(--accent-ink);font-weight:600}

/* ---- phones ---------------------------------------------------------------------
 * Seven of the nine screens scrolled sideways at 390 px, up to 906 px wide, because a
 * table, a row of filters or a `white-space:nowrap` cell is wider than the viewport and
 * nothing said what to do about it. Tables get their own scroller (`.table-scroll`,
 * above); everything else is told to wrap. */
@media (max-width:640px){
  body.admin .site-main{padding-left:16px;padding-right:16px}
  /* The back-office nav is six links and two buttons, and on a phone it wrapped into
   * three rows — 181 px of header before a single figure. Tighter type and smaller
   * buttons fold it back into two, which is as far as eight items go at 390 px. */
  .admin-head .site-head-in{padding-top:8px;padding-bottom:8px;gap:8px}
  .admin-nav{gap:6px 12px;font-size:12.5px}
  .admin-nav .btn.btn-sm,body.admin .admin-nav .btn{height:30px;padding:0 10px;font-size:12.5px;border-radius:8px}
  body.admin .brand{font-size:17px}
  body.admin .admin-flag{font-size:10.5px;height:20px;padding:0 7px}
  body.admin .panel{padding:14px 14px;border-radius:14px}
  body.admin .kpi-grid{grid-template-columns:1fr;gap:10px}
  body.admin .grid2,body.admin .grid3,body.admin .admin-cols{grid-template-columns:1fr}
  /* A row of controls that does not fit becomes a column, rather than a wider page. */
  /* Outside a table, every control in a small form takes the width and stacks. Inside
   * one the row stays a row — the table scrolls, the page does not. */
  body.admin .credit-form:not(td .credit-form) input[type=number],
  body.admin .credit-form:not(td .credit-form) input[type=text],
  body.admin .credit-form:not(td .credit-form) select,
  body.admin .credit-form:not(td .credit-form) .btn{width:100%;flex:1 1 100%}
  body.admin .gen-grid{grid-template-columns:1fr}
  body.admin .stat{font-size:26px;line-height:32px}
  body.admin h1.page{margin-bottom:12px}
  /* The read-only trial link and the pasted CSV: both are one unbroken string. */
  body.admin pre,body.admin textarea{max-width:100%}
}
/* A table is allowed to scroll inside its panel; the PAGE is not. `min-width:0` is the
 * flex/grid default that is NOT `auto` — without it a grid column refuses to become
 * narrower than the widest table inside it, and the whole document grows to match. */
body.admin .grid2>*,body.admin .grid3>*,body.admin .admin-cols>*,body.admin .kpi-grid>*{min-width:0}
body.admin .table-scroll>table{min-width:100%}
body.admin .tabbar a[aria-current]{background:var(--ink);color:#fff;box-shadow:none}
/* An alert that is neither « it worked » nor « it failed »: a judgement to look at. */
body.admin .alert:not(.ok):not(.err){background:var(--accent-tint);color:var(--accent-ink)}
