/* Layout: step rail | form | proof preview (from handoff/mockup). Phone: rail becomes a row, preview follows the form. */
/* Variables live on .cw-app, not :root – the site uses the same names (--bg, --muted, --accent, --r) for its own colours. */
.cw-app {
  --bg: #F3F4F6; --surface: #FFFFFF; --line: #D9DDE3; --ink: #1B2430; --muted: #5B6573;
  --accent: #0F6B5E; --accent-soft: #E3F1EE; --accent-ink: #FFFFFF; --warn: #B4471B; --warn-soft: #FBEDE6;
  --ok: #1F7A3E; --desk: #E7E9EC; --paper: #FFFFFF; --crop: #8A93A0;
  --font-ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-data: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --r: 8px;
}
@media (prefers-color-scheme: dark) { .cw-app:not([data-theme="light"]) {
  --bg: #12161C; --surface: #1A2028; --line: #2E3742; --ink: #E6EAF0; --muted: #9AA5B3;
  --accent: #3FB3A0; --accent-soft: #173A35; --accent-ink: #0B1F1C; --warn: #F08A5D; --warn-soft: #3A2219;
  --ok: #5CC283; --desk: #0E1217; --crop: #6B7684; color-scheme: dark } }
.cw-app[data-theme="dark"] {
  --bg: #12161C; --surface: #1A2028; --line: #2E3742; --ink: #E6EAF0; --muted: #9AA5B3;
  --accent: #3FB3A0; --accent-soft: #173A35; --accent-ink: #0B1F1C; --warn: #F08A5D; --warn-soft: #3A2219;
  --ok: #5CC283; --desk: #0E1217; --crop: #6B7684; color-scheme: dark }

.cw-app { font-family: var(--font-ui); font-size: 15px; color: var(--ink); background: var(--bg); line-height: 1.45;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px 24px; }
.cw-app *, .cw-app *::before, .cw-app *::after { box-sizing: border-box }
.cw-app [hidden] { display: none !important }
#cw-view > * { flex: none }
.cw-shell { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px }
.cw-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.cw-top h1, .cw-top h2 { margin: 0; font-size: 22px; font-weight: 650; text-wrap: balance }
.cw-top .cw-sub { color: var(--muted); font-size: 13px }
.cw-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(320px, 470px); gap: 14px; align-items: start }
.cw-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) }

/* step rail */
.cw-steps { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: env(safe-area-inset-top, 0px) }
.cw-steps button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; color: var(--muted); cursor: pointer }
.cw-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
.cw-steps b { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--crop); display: grid; place-items: center; font-size: 12px; font-weight: 600 }
.cw-steps [aria-current="step"] { background: var(--accent-soft); color: var(--accent); font-weight: 600 }
.cw-steps [aria-current="step"] b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.cw-steps .done b { border-color: var(--accent); color: var(--accent) }

/* form */
.cw-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0 }
.cw-main h2 { margin: 0; font-size: 19px; text-wrap: balance }
.cw-hint { color: var(--muted); font-size: 13px; margin: 0; max-width: 65ch }
.cw-sec { display: flex; flex-direction: column; gap: 10px }
.cw-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted) }
.cw-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end }
.cw-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 160px }
.cw-field > span { font-size: 13px; color: var(--muted) }
.cw-app input[type=text], .cw-app input[type=search], .cw-app input[type=email], .cw-app input[type=tel], .cw-app input[type=date], .cw-app select, .cw-app textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-height: 40px; width: 100% }
.cw-app textarea { min-height: 70px; resize: vertical }
.cw-app input:focus-visible, .cw-app select:focus-visible, .cw-app textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent) }

.cw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px }
.cw-card { all: unset; box-sizing: border-box; cursor: pointer; border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--surface) }
.cw-card:hover { border-color: var(--crop) }
.cw-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.cw-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent) }
.cw-card .t { font-weight: 600 }
.cw-card .d { font-size: 12px; color: var(--muted) }
.cw-card svg { width: 100%; height: 74px; display: block; background: var(--desk); border-radius: 4px }
/* 12-sheet calendar designs: a real small page, portrait */
.cw-dcards { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) }
.cw-dcards .cw-card svg.cw-dthumb { height: auto; aspect-ratio: 297 / 420; padding: 6px; box-sizing: border-box }
/* desk calendar designs: the landscape sheet */
.cw-dcards.cw-desk { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: stretch }
.cw-dcards.cw-desk .cw-card svg { height: auto; aspect-ratio: 2 / 1; padding: 6px; box-sizing: border-box }
.cw-fontseg button { font-size: 22px; padding: 4px 16px }

.cw-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; overflow: hidden }
.cw-seg button { all: unset; box-sizing: border-box; padding: 8px 14px; cursor: pointer; font-size: 14px; border-right: 1px solid var(--line); min-height: 38px; display: flex; align-items: center }
.cw-seg button:last-child { border-right: 0 }
.cw-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink) }
.cw-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px }

.cw-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px }
.cw-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer }
.cw-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none }
.cw-check small { display: block; color: var(--muted); font-size: 12px }

.cw-palettes { display: flex; flex-wrap: wrap; gap: 8px }
.cw-pal { all: unset; box-sizing: border-box; cursor: pointer; border: 1.5px solid var(--line); border-radius: 6px; padding: 6px 10px 6px 6px; display: flex; gap: 8px; align-items: center; font-size: 13px }
.cw-pal i { display: flex; border-radius: 3px; overflow: hidden }
.cw-pal i span { width: 14px; height: 22px; display: block }
.cw-pal:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.cw-pal[aria-pressed="true"] { border-color: var(--accent) }
.cw-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px }
.cw-swatch { display: flex; align-items: center; gap: 10px; font-size: 14px }
.cw-swatch input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; flex: none }
.cw-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px }
.cw-months label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted) }
.cw-months input[type=color] { width: 100%; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: none; cursor: pointer }

details.cw-adv { border-top: 1px solid var(--line); padding-top: 12px }
details.cw-adv summary { cursor: pointer; color: var(--muted); font-size: 14px }
details.cw-adv[open] summary { margin-bottom: 12px }

/* dates step: no inner scroll bars – lists wrap instead of scrolling sideways */
.cw-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px }
.cw-legend span { display: inline-flex; align-items: center; gap: 6px }
.cw-legend i, .cw-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; border: 1px solid rgba(0,0,0,.15) }
.cw-hlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px }
.cw-hlist li + li { border-top: 1px solid var(--line) }
.cw-hlist label { display: grid; grid-template-columns: 20px 76px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px; font-size: 14px; cursor: pointer }
.cw-hlist input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent) }
.cw-hlist .num { font-family: var(--font-data); font-variant-numeric: tabular-nums; white-space: nowrap }
.cw-ndres { display: flex; flex-direction: column; gap: 6px }
.cw-ndrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px }
.cw-ndname { display: flex; flex-direction: column; min-width: 0 }
.cw-ndname small { color: var(--muted); font-size: 12px }
.cw-ndbtns { display: flex; flex-wrap: wrap; gap: 6px }
.cw-evlist { display: flex; flex-direction: column; gap: 8px }
.cw-ev { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px }
.cw-ev .cw-dot { align-self: center }
.cw-f-date { flex: 0 1 165px } .cw-f-day { flex: 0 0 76px } .cw-f-month { flex: 0 1 140px } .cw-f-cat { flex: 0 1 140px } .cw-f-label { flex: 1 1 180px } .cw-f-color { flex: 0 0 auto }
.cw-f-color input[type=color] { width: 44px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer }
.cw-f-yearly { align-self: center }
.cw-off { color: var(--muted); text-decoration: line-through }

/* face step: the editing canvas (mm geometry is in app.js) and the text rows */
.cw-face-wrap { background: var(--desk); border-radius: 6px; padding: 12px; display: grid; place-items: center }
.cw-face-cv { display: block; touch-action: none; box-shadow: 0 1px 4px rgba(0,0,0,.25); background: #fff }
.cw-face-cv.dragging { cursor: grabbing !important }
.cw-ftext { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; padding: 10px; border: 1px solid var(--line); border-radius: 6px }
.cw-ft-v { flex: 1 1 200px } .cw-ft-pt { flex: 0 1 140px }
.cw-ftext .cw-check { align-self: center }
.cw-app label.cw-btn { cursor: pointer }

.cw-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 18px; border-radius: 6px; border: 1px solid var(--crop); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500 }
.cw-btn:hover { border-color: var(--ink) }
.cw-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.cw-btn.p { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600 }
.cw-btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px }
.cw-btn[disabled] { opacity: .45; cursor: not-allowed }
.cw-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px }

.cw-note { border-radius: 6px; padding: 10px 12px; font-size: 14px; background: var(--accent-soft); color: var(--ink) }
.cw-note.warn { background: var(--warn-soft); color: var(--ink); border-left: 3px solid var(--warn) }
.cw-sum { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 14px; margin: 0 }
.cw-sum dt { color: var(--muted) }
.cw-sum dd { margin: 0; overflow-wrap: anywhere }
/* pocket calendar, last step: face and calendar one under the other */
.cw-sides { display: grid; gap: 14px; margin: 14px 0 }
.cw-sides figure { margin: 0; display: grid; gap: 6px; max-width: 460px }
.cw-sides figcaption { font-size: 13px; color: var(--muted); font-weight: 600 }
.cw-sides img, .cw-sides svg { width: 100%; height: auto; display: block; border-radius: 4px }
.cw-wmsize .cw-seg { align-items: center; gap: 10px }
.cw-wmsize .cw-seg button { min-width: 40px; font-size: 20px }
.cw-json { font-family: var(--font-data); font-size: 12px; max-height: 220px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; white-space: pre; margin: 0 }

/* proof preview */
.cw-proof { padding: 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: env(safe-area-inset-top, 0px) }
.cw-proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px }
.cw-proof-head strong { font-size: 14px }
.cw-proof-head span { font-family: var(--font-data); font-size: 12px; color: var(--muted) }
.cw-desk { all: unset; box-sizing: border-box; cursor: zoom-in; background: var(--desk); border-radius: 6px; padding: 14px; display: grid; place-items: center; width: 100% }
.cw-desk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.cw-proof-head .cw-btn { margin-left: auto }
.cw-proof-head { flex-wrap: wrap }
.cw-modal { position: fixed; inset: 0; z-index: 50; background: rgba(12, 16, 22, .62); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)) }
.cw-modal-box { background: var(--surface); border-radius: var(--r); padding: 14px; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; overflow: auto }
.cw-modal-desk { background: var(--desk); border-radius: 6px; padding: 18px; display: grid; place-items: center }
.cw-modal-desk svg { width: 100%; height: auto; max-height: 78vh; display: block }
.cw-desk svg { width: 100%; height: auto; display: block; max-height: 62vh }
.cw-meter { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap }
.cw-meter b { font-family: var(--font-data); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600 }
.cw-meter .ok { color: var(--ok) }
.cw-meter .bad { color: var(--warn) }
.cw-proof .cw-check { font-size: 13px; color: var(--muted) }

@media (max-width: 1080px) {
  .cw-grid { grid-template-columns: 180px minmax(0, 1fr) }
  .cw-proof { grid-column: 2; position: static }
}
@media (max-width: 760px) {
  .cw-grid { grid-template-columns: minmax(0, 1fr) }
  .cw-steps { flex-direction: row; overflow-x: auto; position: static; padding: 6px }
  .cw-steps button { width: auto; white-space: nowrap; padding: 8px }
  .cw-steps .lbl { display: none }
  .cw-steps [aria-current="step"] .lbl { display: inline }
  .cw-proof { grid-column: 1; order: 1 }
  .cw-main { order: 2 }
  .cw-desk { padding: 8px }
  .cw-desk svg { max-height: 34vh }
  .cw-main { padding: 16px }
  .cw-months { grid-template-columns: repeat(6, minmax(0, 1fr)) }
}
@media (prefers-reduced-motion: no-preference) { .cw-card, .cw-steps button, .cw-btn { transition: border-color .15s, background-color .15s } }

/* month calendar: page picker (cover, January … December) above the editor and the preview */
.cw-pages { display: flex; flex-wrap: wrap; gap: 4px }
.cw-pages button { all: unset; box-sizing: border-box; cursor: pointer; padding: 5px 9px; min-height: 32px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: var(--surface) }
.cw-pages button.has::after { content: ' •'; color: var(--accent); font-weight: 700 }
.cw-pages button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.cw-pages button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }

/* A field alone in a column section must not grow (.cw-field grows in rows); the photo-share slider got 160px */
.cw-sec > .cw-field { flex: none }

/* OFL fonts from Google Fonts (cyrillic + latin), self-hosted. Generated by tools/fetch_fonts.py */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Roboto-400-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Roboto-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(cw-fonts/Montserrat-300-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(cw-fonts/Montserrat-300-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Oswald-400-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Oswald-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/PTSerif-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/PTSerif-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(cw-fonts/PTSerif-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(cw-fonts/PTSerif-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/PlayfairDisplay-400-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/PlayfairDisplay-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Comfortaa'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Comfortaa-400-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Comfortaa'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Comfortaa-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(cw-fonts/Rubik-300-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(cw-fonts/Rubik-300-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Caveat-400-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(cw-fonts/Caveat-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Marck Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/MarckScript-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Marck Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/MarckScript-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bad Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/BadScript-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Bad Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/BadScript-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/Pacifico-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/Pacifico-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lobster'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/Lobster-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lobster'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/Lobster-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/GreatVibes-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/GreatVibes-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Amatic SC'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/AmaticSC-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Amatic SC'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/AmaticSC-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Amatic SC'; font-style: normal; font-weight: 700; font-display: swap; src: url(cw-fonts/AmaticSC-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Amatic SC'; font-style: normal; font-weight: 700; font-display: swap; src: url(cw-fonts/AmaticSC-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Neucha'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/Neucha-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Neucha'; font-style: normal; font-weight: 400; font-display: swap; src: url(cw-fonts/Neucha-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Shared by the configurator and the head editor (web/shared/art.js): sliders, number fields, text rows. */
.cw-app input[type=range] { accent-color: var(--accent); width: 100%; min-height: 28px }
.cw-app input[type=number] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-height: 40px; width: 100%; max-width: 200px }
.cw-app input[type=number]:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent) }
.cw-face-cv:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.ch-texts { display: flex; flex-direction: column; gap: 10px }
.ch-trow.is-sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent) }
.ch-trow textarea { min-height: 44px }
.ch-f-font { flex: 1 1 170px } .ch-f-rot { flex: 0 1 140px } .ch-f-fx { flex: 0 1 150px }
.ch-tbtns { display: flex; gap: 6px; flex-wrap: wrap; align-self: center }

/* Phones: 16 px in form fields, otherwise iOS Safari zooms the page when a field gets the focus;
   format and style cards two in a row instead of one long column */
@media (max-width: 760px) {
  .cw-app input[type=text], .cw-app input[type=search], .cw-app input[type=email], .cw-app input[type=tel], .cw-app input[type=date],
  .cw-app input[type=number], .cw-app select, .cw-app textarea { font-size: 16px }
  .cw-app .cw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .cw-app .cw-card svg { height: 56px }
}

/* Send step: price box (web/shared/order.js) */
.cw-deliv .cw-checks { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) }
.cw-price { max-width: 420px; column-gap: 0 }
.cw-price dt { padding-right: 14px }
.cw-price dd { text-align: right; font-variant-numeric: tabular-nums }
.cw-price dt:last-of-type, .cw-price dd:last-of-type { border-top: 1px solid var(--line, #d0d5dd); padding-top: 4px; color: inherit }
