/* PhoneCaseInserts. Layout: sticky header, wide container, card galleries of clear-case mockups, editor as a two-column app. */
:root {
  --bg: #F6F4EF; --surface: #FFFFFF; --soft: #EDEBE4; --soft-2: #F1EFE9;
  --ink: #1A1D2B; --muted: #555A6E; --line: #E2E0D8;
  --accent: #C93A1E; --accent-bright: #E2482A; --accent-soft: #FBE3DA;
  --pro: #5B3DF5; --pro-soft: #ECE8FF; --ok: #1F7A4D; --warn-bg: #FFF2D6;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --radius: 18px; --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(26,29,43,.06), 0 8px 24px -16px rgba(26,29,43,.25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-body); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #9E2C14; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.container { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
mark.todo { background: #FFB547; color: #3A2300; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,244,239,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(26,29,43,.06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand-name b { color: var(--accent-bright); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 10px; border-radius: 10px; }
.main-nav a:not(.btn):hover { background: var(--soft); }
.crumbs { padding-top: 14px; font-size: 13.5px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A8AAB5; }
.crumbs a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 14px; border: 0; font: 700 15.5px/1.1 var(--f-body); text-decoration: none; cursor: pointer; background: var(--soft); color: var(--ink); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(.97); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-white { background: var(--surface); box-shadow: var(--shadow); }
.btn-pro { background: var(--pro); color: #fff; }
.btn-pro:hover { color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14.5px; border-radius: 12px; }
.btn-xs { min-height: 34px; padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 60px; padding: 16px 30px; font-size: 18px; border-radius: 18px; }
.btn[disabled] { opacity: .55; cursor: default; }
.linkish { background: none; border: 0; padding: 8px 2px; font: 600 15px var(--f-body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; background: var(--soft); color: var(--muted); }
.badge.pro { background: var(--pro-soft); color: #4127D0; }
.badge.accent { background: var(--accent-soft); color: #9E2C14; }

/* Sections */
.section { padding-block: 56px; }
.section-tight { padding-block: 32px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 22px; }
.sec-head p { max-width: 60ch; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-block: 40px 48px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); }
.hero .lead { margin: 18px 0 28px; }
.hero-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.hero-steps b { font-family: var(--f-display); color: var(--ink); margin-right: 5px; }
.hero-art { display: flex; justify-content: center; align-items: flex-end; gap: 14px; min-height: 340px; }
.hero-art img { width: 30%; max-width: 170px; filter: drop-shadow(0 26px 26px rgba(26,29,43,.22)); }
.hero-art img:nth-child(2) { width: 36%; max-width: 205px; transform: translateY(-26px); }
.hero-art img:nth-child(1) { transform: rotate(-7deg); }
.hero-art img:nth-child(3) { transform: rotate(7deg); }
.page-hero { padding-block: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.page-hero .lead { margin-top: 2px; }

/* Cards and galleries */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.design { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--radius); padding: 16px 12px 14px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.design:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 16px 30px -18px rgba(26,29,43,.45); }
.design img { width: 118px; aspect-ratio: 78/156; object-fit: contain; }
.design .t { font-weight: 700; font-size: 14.5px; text-align: center; }
.design .s { font-size: 12.5px; color: var(--muted); }
.design.pro { background: linear-gradient(165deg, var(--pro-soft), var(--surface) 70%); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; box-shadow: 0 1px 2px rgba(26,29,43,.06); border: 0; cursor: pointer; }
.chip:hover { color: var(--ink); background: #fff; outline: 2px solid var(--ink); }
.chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.step::before { counter-increment: step; content: counter(step); font: 800 15px var(--f-display); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: #9E2C14; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.band { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.band-dark { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 32px; }
.band-dark .muted { color: #C2C5D2; }
.band-dark a:not(.btn) { color: #FFB59F; }
.photo-row { display: flex; gap: 14px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.photo-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.photo-row img { width: 120px; filter: drop-shadow(0 16px 18px rgba(26,29,43,.2)); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(26,29,43,.06); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 18px 18px; color: #3A3F52; }

/* Prose */
.prose { display: flex; flex-direction: column; gap: 14px; padding-bottom: 56px; }
.prose h2 { font-size: 26px; margin-top: 22px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose figure { margin: 6px 0; }
.meta-line { font-size: 14px; color: var(--muted); }
.note-box { background: var(--warn-bg); border-radius: 14px; padding: 14px 16px; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(26,29,43,.06); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.spec-art { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.spec-art svg { width: 100%; height: auto; max-height: 440px; }
.answer { background: var(--surface); border-left: 0; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(26,29,43,.06); font-size: 16.5px; }

/* Footer */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-about { display: flex; flex-direction: column; gap: 10px; color: var(--muted); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-head { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cookie-inner { max-width: 880px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.cookie-inner p { flex: 1 1 320px; font-size: 14.5px; }
.cookie-inner a { color: #FFB59F; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn-white { box-shadow: none; }

/* Error page */
.error-page { padding-block: 70px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.error-page .big { font: 800 96px/1 var(--f-display); color: var(--accent-bright); }

/* ---------- Editor ---------- */
.editor-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px 14px; }
.editor-top h1 { font-size: clamp(24px, 2.6vw, 32px); }
.editor-steps { display: flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; }
.editor-steps button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font: 700 14px var(--f-body); color: var(--muted); cursor: pointer; min-height: 40px; }
.editor-steps button[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.devchip { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--surface); border-radius: 999px; padding: 9px 16px; font: 700 14.5px var(--f-body); cursor: pointer; box-shadow: var(--shadow); min-height: 44px; color: var(--ink); }
.create { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; padding-bottom: 40px; }
.stagewrap { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 76px; }
.stagebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.stagebar .grp { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tools { display: flex; gap: 3px; background: var(--soft); border-radius: 12px; padding: 3px; }
.tools button { border: 0; background: none; border-radius: 9px; padding: 7px 12px; font: 700 13.5px var(--f-body); cursor: pointer; min-height: 38px; color: var(--ink); }
.tools button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.stage-area { position: relative; height: clamp(500px, calc(100vh - 230px), 860px); display: grid; place-items: center;
  background-color: #F4F3EE; background-image: linear-gradient(45deg, #E9E8E2 25%, transparent 25%, transparent 75%, #E9E8E2 75%), linear-gradient(45deg, #E9E8E2 25%, transparent 25%, transparent 75%, #E9E8E2 75%); background-size: 22px 22px; background-position: 0 0, 11px 11px; }
.frame { position: relative; }
.frame.on { padding: 9px; background: linear-gradient(140deg, rgba(255,255,255,.8), rgba(205,214,232,.35)); border: 1px solid rgba(140,150,175,.5); box-shadow: 0 40px 70px -30px rgba(15,20,40,.55), inset 0 0 0 2px rgba(255,255,255,.55); }
.frame.on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 45%); pointer-events: none; }
#stage { display: block; touch-action: none; }
#stage.move { cursor: grab; } #stage.draw { cursor: crosshair; } #stage.stamp { cursor: copy; }
.stage-dims { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; padding-inline: 12px; }
.stage-hint { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--muted); pointer-events: none; }
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel { background: var(--surface); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.panel h2, .panel summary { font: 700 15.5px var(--f-body); letter-spacing: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details.panel > summary { cursor: pointer; list-style: none; min-height: 28px; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details.panel[open] > summary::after { content: "\2013"; }
.srcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.srcs > * { border: 0; background: var(--soft-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; cursor: pointer; font: 700 14px var(--f-body); color: var(--ink); min-height: 72px; text-align: left; }
.srcs > *:hover { background: var(--soft); }
.srcs > *[aria-expanded="true"] { outline: 2px solid var(--ink); }
.srcs small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.srcs .pulse { outline: 3px solid var(--accent-bright); }
.srcs .pro { background: var(--pro-soft); }
.subpanel { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; } .row > input, .row > select { flex: 1; min-width: 0; }
input[type=text], input[type=url], input[type=search], input[type=number], input[type=email], select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; min-height: 44px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-bright); outline: none; }
label.lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--accent-bright); }
.msg { font-size: 12.5px; color: var(--muted); }
.msg.err { color: #A3260C; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.results button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 3/4; background: var(--soft); max-width: 100%; }
.results img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credit { font-size: 11.5px; color: var(--muted); }
.effects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.effects button { border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; font: 600 11.5px var(--f-body); color: var(--ink); position: relative; }
.effects canvas { width: 100%; aspect-ratio: 1; border-radius: 12px; display: block; max-width: 100%; }
.effects button[aria-pressed="true"] canvas { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.effects .lock { position: absolute; top: 4px; right: 4px; font-size: 9px; font-weight: 800; background: var(--pro); color: #fff; border-radius: 5px; padding: 2px 5px; letter-spacing: .05em; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.stickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stickers button { border: 0; background: var(--soft-2); border-radius: 12px; aspect-ratio: 1; cursor: pointer; padding: 6px; max-width: 100%; }
.stickers button[aria-pressed="true"] { outline: 3px solid var(--accent-bright); outline-offset: 1px; }
.stickers canvas { width: 100%; height: 100%; display: block; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; min-height: 34px; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent-bright); }
.minigal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 260px; overflow: auto; padding: 2px; }
.minigal button { border: 0; padding: 4px; background: var(--soft-2); border-radius: 10px; cursor: pointer; }
.minigal img { width: 100%; display: block; }
.podmini { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 10px 12px; border: 0; cursor: pointer; text-align: left; width: 100%; box-shadow: var(--shadow); font: inherit; color: var(--ink); }
.podmini canvas { flex: none; border-radius: 8px; }
/* Print step */
.printv { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.sheet-wrap { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; overflow-x: auto; box-shadow: var(--shadow); }
#sheet { background: #fff; box-shadow: 0 20px 50px -20px rgba(15,20,40,.4); display: block; max-width: 100%; height: auto !important; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px; font: 700 13.5px var(--f-body); cursor: pointer; min-height: 38px; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.warn { background: var(--warn-bg); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.howcut { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; }
.howcut figure { margin: 0; background: var(--soft-2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.howcut svg { width: 100%; height: auto; max-width: 100%; }
.howcut b { font-family: var(--f-display); font-size: 15px; }
.podrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; }
.pod { background: var(--soft-2); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: 13.5px; }
.pod canvas { max-width: 100%; }
.pod b { font-size: 14.5px; }
.pod .btn:not(.btn-accent) { background: var(--surface); }
/* Dialogs */
dialog { border: 0; border-radius: 24px; padding: 0; background: var(--surface); color: var(--ink); max-width: min(980px, calc(100vw - 32px)); width: 100%; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(15,16,24,.55); }
.dlg { padding: 24px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 60px); overflow: auto; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dlg-head h2 { font-size: 28px; margin-top: 6px; }
.close { border: 0; background: var(--soft); border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 22px; flex: none; color: var(--ink); }
.devlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 52vh; overflow: auto; padding: 2px; }
.devlist button { border: 0; background: var(--soft-2); border-radius: 12px; padding: 10px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 54px; font: 600 14.5px var(--f-body); color: var(--ink); }
.devlist button:hover { outline: 2px solid var(--ink); }
.devlist button[aria-pressed="true"] { outline: 2px solid var(--accent-bright); }
.devlist small { color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.devlist .grp { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 10px 2px 2px; }
.custom-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.pay { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.demo { background: var(--soft-2); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fake-input { width: 100%; background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 14px; min-height: 44px; }
.fake-input::after { content: "|"; animation: blink 1s steps(1) infinite; color: var(--pro); }
@keyframes blink { 50% { opacity: 0; } }
.bar { width: 100%; height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--pro); transition: width .1s linear; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan.hot { border-color: var(--pro); box-shadow: 0 0 0 3px var(--pro-soft); }
.plan .price { font: 800 30px var(--f-display); }
.plan .price small { font: 500 13px var(--f-body); color: var(--muted); }
.plan ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.plan .btn { margin-top: auto; }
.noscript { background: var(--warn-bg); padding: 14px; border-radius: 12px; margin: 12px 0; }

/* Print-only output from the editor */
#print-root { display: none; }
@media print {
  @page { margin: 0; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root img { display: block; }
}

@media (max-width: 1080px) {
  .create, .printv { grid-template-columns: minmax(0, 1fr); }
  .stagewrap { position: static; }
  .pay { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 820px) {
  .hero, .split, .spec { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 250px; }
  .howcut, .podrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .stage-area { height: clamp(440px, 70vh, 680px); }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .hide-xs { display: none; }
  .brand-name { font-size: 17px; }
  .custom-size { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Articles: contents list, figures, notes, checklists, sources */
.toc { background: var(--surface); border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 2px rgba(26,29,43,.06); }
.toc-title { font: 700 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.prose figure.photo, .prose figure.diagram { margin: 8px 0; background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: 0 1px 2px rgba(26,29,43,.06); }
.prose figure.photo img { border-radius: 10px; display: block; width: 100%; }
.prose figure.diagram svg { width: 100%; height: auto; display: block; }
.prose figcaption { font-size: 13.5px; color: var(--muted); padding: 8px 4px 2px; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; font-size: 15.5px; }
.note.info { background: var(--pro-soft); }
.note.warn { background: var(--warn-bg); }
.note strong:first-child { display: block; margin-bottom: 2px; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { padding-left: 30px; position: relative; }
.prose ul.checklist li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 4px; background: var(--surface); }
.sources { font-size: 14.5px; }
.sources ol { gap: 4px; }
.prose .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.prose .stat { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(26,29,43,.06); }
.prose .stat b { display: block; font: 800 26px/1.1 var(--f-display); letter-spacing: -0.02em; }
.prose .stat span { font-size: 13.5px; color: var(--muted); }
