/* Cardverie design tokens - "Cream, Ink & Berry" (Cardverie Web Design System v1.0).
   Spacing, scale and the Paper/Ink structure come from the IO Patina common theme (Brand Asset Kit v3.0); Cardverie has its
   own consumer palette (berry on warm cream) and a softer display face (Fraunces). Ratios measured on Cream #F7F2EB. */
:root {
  --paper: #f7f2eb;          /* page ground: warm cream */
  --stock: #fffcf7;          /* card-stock surface for panels */
  --blush: #f8e9ec;          /* berry-tinted band */
  --sage: #e9eee4;           /* quiet green band (ash 5.67:1, graphite 8.1:1) */
  --ink: #1c1719;            /* headlines, primary buttons: 15.9:1 */
  --ink-soft: #2f272a;       /* long-form serif body: 11.92:1 */
  --graphite: #4a4346;       /* body copy: 8.64:1 */
  --ash: #625a5d;            /* micro labels: 6.01:1 on Cream, 5.69:1 on Blush */
  --hairline: #e8e0d8;       /* decorative rules only */
  --hairline-strong: #8c8480;/* control borders: 3.29:1 (WCAG 1.4.11) */
  --accent: #8c2350;         /* berry: links, marks, accent buttons: 7.63:1; white on berry 8.5:1 */
  --accent-deep: #6b1a3d;    /* hover/pressed: 10.25:1 */
  --accent-light: #f2a9c6;   /* on dark only: 9.19:1 on Deep Berry */
  --deep: #2a1520;           /* the one dark band per page: deep berry */
  --dark-body: #e3d3d9;      /* 11.9:1 on Deep Berry */
  --success: #2d6a43;        /* 5.9:1 */
  --success-bg: #e6efe7;
  --warn: #7a4b00;           /* 6.6:1 */
  --warn-bg: #f7ecd6;
  --error: #8c3f30;          /* 6.49:1 */
  --error-bg: #f6e3de;
  --info-bg: #e7ecf2;
  --focus: #1f5c8a;          /* focus ring: 6.3:1 on Paper, 3:1+ against every surface used */
  --kr-sans: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans CJK KR', 'Malgun Gothic', 'Nanum Gothic', sans-serif;
  --kr-serif: 'AppleMyungjo', 'Noto Serif KR', 'Noto Serif CJK KR', 'Nanum Myeongjo', 'Batang', serif;
  --font-display: 'Fraunces', 'Source Serif 4', Georgia, 'Times New Roman', var(--kr-serif);
  --font-ui: Archivo, 'Helvetica Neue', Helvetica, Arial, var(--kr-sans);
  --font-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.6vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.7rem + 4vw, 4.25rem);
  --space-1: 8px; --space-2: 14px; --space-3: 22px; --space-4: 36px; --space-5: 56px; --space-6: 72px; --space-7: 104px;
  --measure: 1200px;
  --measure-text: 66ch;
  --gutter: clamp(18px, 5vw, 48px);
  --r-1: 6px; --r-2: 12px; --r-3: 20px; --r-pill: 999px;
  --rail-bar: 5px;
  --shadow-paper: 0 1px 1px rgb(42 21 32 / 6%), 0 12px 30px -14px rgb(70 30 45 / 34%);
  --shadow-lift: 0 2px 4px rgb(42 21 32 / 8%), 0 28px 56px -22px rgb(70 30 45 / 42%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
  --tap: 44px;               /* comfortable target; WCAG 2.2 minimum is 24px */
}
:lang(ko) { --font-display: 'Fraunces', var(--kr-serif); word-break: keep-all; line-break: strict; }

/* Patina Cards - self-hosted fonts (SIL OFL 1.1). Sources and notices: /assets/fonts/LICENSES.md
   Korean: no Hangul webfont is bundled (a full family is several MB). Every stack falls back to the
   system Korean faces listed in tokens.css (--kr-sans / --kr-serif). See DESIGN_SYSTEM.md section 3. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/archivo-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/source-serif-4-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/martian-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/fraunces-latin-wght-normal.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: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/fraunces-latin-wght-italic.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: 'EB Garamond'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/eb-garamond-latin-wght-normal.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: 'EB Garamond'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/eb-garamond-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/eb-garamond-latin-wght-italic.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: 'Outfit'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/outfit-latin-wght-normal.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: 'Outfit'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/nunito-latin-wght-normal.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: 'Nunito'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/nunito-latin-wght-italic.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: 300 900; font-display: swap; src: url('/assets/fonts/caveat-latin-wght-normal.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: 300 900; font-display: swap; src: url('/assets/fonts/caveat-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/source-sans-3-latin-wght-normal.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: 'Source Sans 3'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/source-sans-3-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/source-sans-3-latin-wght-italic.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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--graphite); font-family: var(--font-ui); font-size: var(--step-0); line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-5); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: #e9d3cd; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-1); }
.skip-link:focus { top: 12px; color: var(--paper); }
.container { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.prose { max-width: var(--measure-text); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 0.9em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
:lang(ko) .eyebrow { font-family: var(--font-ui); letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 600; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ash); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: center; }
.rail { position: relative; padding-left: calc(var(--rail-bar) + 16px); }
.rail::before { content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: var(--rail-bar); background: var(--accent); border-radius: 1px; }
.rule-spoke { border: 0; height: 10px; margin: var(--space-5) 0; color: var(--accent); background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px); opacity: 0.35; mask-image: linear-gradient(90deg, #000 30%, transparent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: var(--tap); padding: 0.6em 1.25em; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); white-space: nowrap; }
.btn { max-width: 100%; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; overflow-wrap: anywhere; } }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2a2d33; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgb(15 17 20 / 4%); }
.btn-quiet { background: transparent; color: var(--accent); padding-inline: 0.6em; }
.btn-quiet:hover { color: var(--accent-deep); background: rgb(133 88 84 / 8%); }
.btn-danger { background: transparent; color: var(--error); border-color: #c99b91; }
.btn-danger:hover { background: var(--error-bg); color: var(--error); }
.btn-sm { min-height: 36px; padding: 0.35em 0.9em; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-on-dark.btn-ghost { color: var(--paper); border-color: #6b6f76; }
.btn-on-dark.btn-ghost:hover { border-color: var(--paper); background: rgb(255 255 255 / 6%); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' \2192'; }
.link-arrow:hover { text-decoration: underline; }
/* ---------- Badges, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.15em 0.6em; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 600; line-height: 1.5; background: #e9e5de; color: var(--ink-soft); white-space: nowrap; }
.badge-accent { background: var(--blush); color: var(--accent-deep); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-info { background: var(--info-bg); color: #24486a; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0.3em 0.95em; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); background: var(--stock); color: var(--ink); font-size: 0.92rem; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip[aria-pressed='true'], .chip[aria-current='page'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* ---------- Panels ---------- */
.panel { background: var(--stock); border: 1px solid var(--hairline); border-radius: var(--r-2); padding: clamp(18px, 3vw, 28px); }
.panel-tight { padding: 16px; }
.panel-blush { background: var(--blush); border-color: #ead7cf; }
.panel h2, .panel h3 { margin-bottom: 0.4em; }
.divider { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-3) 0; }
/* ---------- Notices (inline, never pop-ups) ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-1); background: var(--info-bg); color: #1d3550; border-left: 4px solid #3d6a94; }
.notice p { margin: 0; }
.notice-success { background: var(--success-bg); color: #1f4a2f; border-left-color: var(--success); }
.notice-warn { background: var(--warn-bg); color: #5a3800; border-left-color: #b07a16; }
.notice-error { background: var(--error-bg); color: #6b2c20; border-left-color: var(--error); }
.notice .btn { margin-left: auto; }
.status-region { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); pointer-events: none; }
.status-region .toast { pointer-events: auto; background: var(--ink); color: var(--paper); border-radius: var(--r-2); padding: 12px 16px; box-shadow: var(--shadow-lift); margin-top: 8px; animation: toast-in 220ms var(--ease); }
.status-region .toast-error { background: #5e241a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: var(--space-3); }
.field label, .field .label, fieldset legend { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.field .hint { font-size: var(--step--1); color: var(--ash); }
.field .error-text { font-size: var(--step--1); color: var(--error); font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: var(--tap); padding: 0.55em 0.8em; border: 1.5px solid var(--hairline-strong); border-radius: var(--r-1); background: #fff; color: var(--ink); transition: border-color var(--dur); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover, .textarea:hover { border-color: #6d6a64; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--error); }
.counter { font-size: var(--step--1); color: var(--ash); text-align: right; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 24px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0.35em 1em; border: 1.5px solid var(--hairline-strong); border-radius: var(--r-pill); background: #fff; font-size: 0.93rem; cursor: pointer; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--hairline-strong); background: var(--pc-accent); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.font-options, .tpl-options { display: grid; gap: 10px; }
.font-options { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tpl-options { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.opt .opt-body { display: grid; gap: 6px; padding: 8px; border: 1.5px solid var(--hairline); border-radius: var(--r-1); background: #fff; text-align: center; font-size: 0.82rem; color: var(--ink-soft); height: 100%; }
.opt input:checked + .opt-body { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt .font-sample { font-family: var(--pc-display, inherit); font-size: 1.8rem; line-height: 1.1; color: var(--ink); }
.opt .pc-card { pointer-events: none; }
/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.tabs [role='tab'] { appearance: none; border: 0; background: transparent; padding: 12px 14px; min-height: var(--tap); font-weight: 600; color: var(--ash); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs [role='tab'][aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs [role='tab']:hover { color: var(--ink); }
[role='tabpanel'] { padding-top: var(--space-3); }
/* ---------- Dialog ---------- */
dialog.dialog { border: 0; padding: 0; border-radius: var(--r-3); background: var(--stock); color: var(--graphite); width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lift); }
dialog.dialog::backdrop { background: rgb(15 17 20 / 45%); }
.dialog-inner { padding: clamp(20px, 4vw, 32px); display: grid; gap: var(--space-2); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: var(--space-2); }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink); flex: none; }
.icon-btn:hover { background: rgb(15 17 20 / 6%); }
.icon-btn svg { width: 20px; height: 20px; }
/* ---------- Option rows (activation dialog etc.) ---------- */
.optrows { display: grid; gap: 8px; }
.optrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--r-1); background: #fff; }
.optrow.is-off { color: var(--ash); background: transparent; }
.optrow.is-choice { border-color: var(--success); box-shadow: inset 4px 0 0 var(--success); }
/* ---------- Progress, skeleton, empty ---------- */
.progress { height: 10px; border-radius: var(--r-pill); background: #e6e1d8; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 300ms var(--ease); }
.skeleton { background: linear-gradient(90deg, #ebe6de 0, #f4f0ea 40%, #ebe6de 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-1); min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; border: 1.5px dashed #d5cfc4; border-radius: var(--r-2); background: rgb(251 248 243 / 70%); }
.empty h2, .empty h3 { margin-bottom: 0.4em; }
.empty .btn { margin-top: var(--space-2); }
.empty-art { width: 120px; margin: 0 auto var(--space-2); }
/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-2); background: var(--stock); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ash); font-weight: 600; background: #f6f2ec; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th[scope='row'] { color: var(--ink); font-weight: 600; }
/* ---------- Copy field ---------- */
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: var(--font-mono); font-size: 0.8rem; min-width: 0; flex: 1; }
.copy-field .btn { flex: none; white-space: nowrap; }
/* ---------- Details / FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; min-height: var(--tap); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--accent); transition: transform var(--dur); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 18px; max-width: var(--measure-text); }
.faq .faq-a p + p { margin-top: 0.7em; }
/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 6px; counter-reset: step; flex-wrap: wrap; }
.stepper li { counter-increment: step; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: #ebe6de; font-size: 0.85rem; font-weight: 600; color: var(--ash); }
.stepper li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 0.75rem; }
.stepper li.is-done { background: var(--success-bg); color: var(--success); }
.stepper li.is-done::before { content: '\2713'; background: var(--success); color: #fff; }
.stepper li[aria-current='step'] { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(243 241 237 / 94%); border-bottom: 1px solid var(--hairline); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); margin-top: 4px; }
.nav-desktop { display: none; gap: 2px; margin-left: 12px; }
.nav-desktop a, .nav-mobile a.nav-link { color: var(--ink-soft); text-decoration: none; padding: 10px 12px; border-radius: var(--r-1); font-weight: 500; font-size: 0.97rem; min-height: var(--tap); display: inline-flex; align-items: center; }
.nav-desktop a:hover, .nav-mobile a.nav-link:hover { background: rgb(15 17 20 / 5%); color: var(--ink); }
.nav-desktop a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-link { font-size: 0.9rem; padding: 8px 10px; color: var(--ink-soft); text-decoration: none; border-radius: var(--r-1); min-height: var(--tap); display: inline-flex; align-items: center; }
.lang-link:hover { background: rgb(15 17 20 / 5%); color: var(--ink); }
.signin-link { display: none; }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-1); cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 22px; height: 22px; }
.nav-mobile[open] summary { background: rgb(15 17 20 / 6%); }
.nav-mobile .nav-sheet { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 24px)); background: var(--stock); border: 1px solid var(--hairline); border-radius: var(--r-2); box-shadow: var(--shadow-lift); padding: 10px; display: grid; gap: 2px; }
.nav-sheet .btn { margin-top: 8px; }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } .signin-link { display: inline-flex; } }
@media (max-width: 380px) { .header-inner { gap: 8px; } .brand { gap: 8px; } .brand-name { font-size: 1.14rem; } .brand-sub { font-size: 0.5rem; letter-spacing: 0.08em; } .lang-link { padding-inline: 6px; } .header-actions { gap: 2px; } }
@media (min-width: 1020px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }
/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 8vw, var(--space-7)); }
.section-tight { padding-block: clamp(32px, 5vw, var(--space-5)); }
.section-blush { background: var(--blush); }
.section-stock { background: var(--stock); border-block: 1px solid var(--hairline); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, var(--space-4)); }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 12px; }
.section-head.center { margin-inline: auto; text-align: center; }
.band-dark { background: var(--deep); color: var(--dark-body); }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark .eyebrow { color: var(--accent-light); }
.band-dark a:not(.btn) { color: var(--accent-light); }
.band-dark .rail::before { background: var(--accent-light); }
/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 96px) clamp(48px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-top: 14px; max-width: 14ch; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: var(--step--1); color: var(--ash); max-width: 46ch; }
.endorse { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 0.8rem; color: var(--ash); }
.endorse img { width: 18px; height: 18px; }
.card-fan { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 0.92; margin-inline: auto; }
.fan-card { position: absolute; width: 50%; transition: transform 400ms var(--ease); animation: fan-in 700ms var(--ease) both; }
.fan-card:nth-child(1) { left: 2%; top: 12%; transform: rotate(-9deg); animation-delay: 60ms; }
.fan-card:nth-child(2) { left: 25%; top: 2%; z-index: 2; transform: rotate(-1deg); animation-delay: 160ms; }
.fan-card:nth-child(3) { right: 0; top: 14%; transform: rotate(8deg); animation-delay: 260ms; }
.card-fan:hover .fan-card:nth-child(1) { transform: rotate(-12deg) translate(-8px, 4px); }
.card-fan:hover .fan-card:nth-child(3) { transform: rotate(11deg) translate(8px, 4px); }
.fan-note { position: absolute; z-index: 3; left: 8%; bottom: 0; width: 56%; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lift); padding: 14px 16px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); animation: fan-in 700ms var(--ease) 380ms both; }
.fan-note strong { display: block; margin-top: 6px; text-align: right; font-family: 'Caveat', cursive; font-size: 1.3rem; font-weight: 500; color: var(--accent); }
@keyframes fan-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
/* ---------- Grids ---------- */
.grid-2 { display: grid; gap: clamp(16px, 3vw, 28px); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: clamp(16px, 3vw, 28px); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: clamp(16px, 3vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.path-card { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-3); background: var(--stock); border: 1px solid var(--hairline); overflow: hidden; }
.path-card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); }
.path-card .path-price { font-weight: 600; color: var(--ink); }
.path-card .path-art { display: flex; gap: 10px; margin-bottom: 6px; }
.path-card .path-art > * { width: 96px; }
.path-card .path-art > *:nth-child(2) { transform: rotate(5deg) translateY(6px); }
.step { display: grid; gap: 10px; align-content: start; }
.step-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.feature { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--hairline); }
.feature h3 { font-size: 1.12rem; }
.ticks { display: grid; gap: 10px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%236b1a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.band-dark .ticks li::before { background-color: #4a2638; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%23f2a9c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: clamp(16px, 3vw, 28px) clamp(12px, 2.4vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr)); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
/* Six-item teaser (home): 2 / 3 / 6 columns, never an orphan row. */
.gallery-grid.is-six { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery-grid.is-six { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid.is-six { grid-template-columns: repeat(6, 1fr); } }
.tpl-tile { display: grid; gap: 10px; align-content: start; }
.tpl-tile .pc-card { transition: transform 260ms var(--ease); }
.tpl-tile:hover .pc-card { transform: translateY(-4px) rotate(-0.6deg); }
.tpl-meta { display: grid; gap: 2px; }
.tpl-meta h3 { font-size: 1.02rem; }
.tpl-meta p { font-size: 0.86rem; color: var(--ash); line-height: 1.4; }
.tpl-tile .btn { justify-self: start; }
.occ-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.occ-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; min-height: 64px; border-radius: var(--r-2); background: var(--stock); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color var(--dur), transform var(--dur) var(--ease); }
.occ-link:hover { border-color: var(--hairline-strong); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.occ-link .occ-emblem { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.occ-link .occ-emblem svg { width: 100%; height: 100%; }
/* ---------- Occasion page ---------- */
.occ-hero { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .occ-hero { grid-template-columns: 1.1fr 0.9fr; } }
.occ-hero-cards { display: flex; gap: 16px; justify-content: center; }
.occ-hero-cards > * { width: min(46%, 240px); }
.occ-hero-cards > *:nth-child(2) { transform: rotate(4deg) translateY(16px); }
.occ-hero-cards > *:only-child { width: min(70%, 300px); transform: rotate(-2deg); }
.sample-quote { margin: 0; padding: 22px 24px; border-radius: var(--r-2); background: #fff; border: 1px solid var(--hairline); font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; color: var(--ash); padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--hairline-strong); }
.breadcrumb a { color: var(--ash); }
/* ---------- Pricing ---------- */
.price-family { padding: clamp(20px, 4vw, 40px); border-radius: var(--r-3); background: var(--stock); border: 1px solid var(--hairline); }
.price-family + .price-family { margin-top: 28px; }
.price-family-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.price-family-head h2 { font-family: var(--font-display); font-weight: 400; }
.price-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.price-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-2); background: #fff; border: 1px solid var(--hairline); }
.price-card h3 { font-size: 1.02rem; }
.price-amount { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.price-amount small { font-family: var(--font-ui); font-size: 0.9rem; color: var(--ash); letter-spacing: 0; margin-left: 4px; }
.price-per { font-size: 0.86rem; color: var(--accent-deep); font-weight: 600; }
.price-card p { font-size: 0.93rem; }
.price-card.is-free { background: var(--blush); border-color: #e6cfc6; }
.price-card.is-soon { background: transparent; border-style: dashed; border-color: #cfc8bc; }
.price-card.is-soon .price-amount { color: var(--graphite); }
.price-foot { margin-top: 16px; font-size: 0.88rem; color: var(--ash); }
.compare th, .compare td { min-width: 140px; }
.limits-table td:last-child { font-weight: 700; color: var(--ink); text-align: right; }
/* ---------- Legal / help ---------- */
.draft-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-2); background: var(--warn-bg); color: #5a3800; border: 1px solid #e6cf9f; margin-bottom: 28px; }
.draft-banner strong { color: #4a2e00; }
.doc-layout { display: grid; gap: 36px; }
@media (min-width: 980px) { .doc-layout { grid-template-columns: 240px 1fr; } .doc-toc { position: sticky; top: 96px; align-self: start; } }
.doc-toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ash); margin-bottom: 10px; }
.doc-toc ol { display: grid; gap: 2px; padding: 0; list-style: none; font-size: 0.92rem; }
.doc-toc a { display: block; padding: 5px 0; color: var(--ink-soft); text-decoration: none; }
.doc-toc a:hover { color: var(--accent-deep); text-decoration: underline; }
.doc-body section { padding-top: 8px; }
.doc-body section + section { margin-top: 30px; }
.doc-body h2 { font-size: var(--step-2); margin-bottom: 12px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.88rem; color: var(--ash); margin-top: 16px; }
.help-group + .help-group { margin-top: 40px; }
.help-group h2 { font-size: var(--step-2); margin-bottom: 8px; }
/* ---------- Footer ---------- */
.site-footer { background: var(--stock); border-top: 1px solid var(--hairline); padding-block: 56px 32px; font-size: 0.93rem; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.footer-grid h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ash); margin-bottom: 12px; }
.footer-grid ul { display: grid; gap: 4px; list-style: none; padding: 0; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent-deep); text-decoration: underline; }
.footer-occ ul { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.footer-base { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--ash); font-size: 0.85rem; }
.footer-endorse { display: inline-flex; align-items: center; gap: 10px; }
.footer-endorse img { width: 24px; height: 24px; }

/* ---- Cardverie home (Web Design System v1.0 section 6). Original layout; no inline styles (CSP style-src 'self'). ---- */
.brand-name { font-weight: 560; letter-spacing: -0.02em; }
.center-text { text-align: center; }
.cv-hero { position: relative; overflow: hidden; padding-block: clamp(28px, 6vw, 80px) clamp(20px, 3vw, 36px);
  background: radial-gradient(55% 70% at 86% 30%, #f8e1e8 0%, rgb(248 225 232 / 0) 72%), radial-gradient(40% 55% at 4% 100%, #e9eee4 0%, rgb(233 238 228 / 0) 70%), var(--paper); }
.cv-hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 920px) { .cv-hero-grid { grid-template-columns: 1fr 1.08fr; } }
.cv-hero h1 { margin-top: 14px; max-width: 13ch; font-size: var(--step-5); line-height: 1.03; letter-spacing: -0.025em; font-weight: 450; }
.cv-hero .lede { margin-top: 20px; max-width: 46ch; }
.cv-stage { position: relative; width: min(100%, 580px); aspect-ratio: 1 / 0.84; margin-inline: auto; }
.cv-stage-glow { position: absolute; inset: 10% 4% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(140 35 80 / 13%), rgb(140 35 80 / 0)); }
.cv-stage-card { position: absolute; width: 35%; filter: drop-shadow(0 18px 22px rgb(70 30 45 / 22%)); transition: transform 500ms var(--ease); animation: cv-rise 800ms var(--ease) both; }
.cv-stage-card.s1 { left: 0; top: 19%; transform: rotate(-13deg); animation-delay: 40ms; }
.cv-stage-card.s2 { left: 15.5%; top: 7%; z-index: 2; transform: rotate(-6deg); animation-delay: 120ms; }
.cv-stage-card.s3 { left: 31%; top: 0; z-index: 3; width: 38%; transform: rotate(0.5deg); animation-delay: 200ms; }
.cv-stage-card.s4 { left: 49.5%; top: 7%; z-index: 2; transform: rotate(6.5deg); animation-delay: 280ms; }
.cv-stage-card.s5 { right: 0; top: 19%; transform: rotate(13deg); animation-delay: 360ms; }
.cv-stage:hover .s1 { transform: rotate(-16deg) translateX(-8px); }
.cv-stage:hover .s5 { transform: rotate(16deg) translateX(8px); }
.cv-stage-note { position: absolute; z-index: 4; left: 8%; bottom: 0; width: 50%; padding: 14px 16px 10px; border-radius: 6px; background: #fffdf9; box-shadow: var(--shadow-lift); transform: rotate(-2deg);
  font-family: var(--font-display); font-size: clamp(0.8rem, 1.6vw, 0.95rem); line-height: 1.5; color: var(--ink-soft); animation: cv-rise 800ms var(--ease) 480ms both; }
.cv-stage-note::before { content: ''; position: absolute; left: 50%; top: -9px; width: 64px; height: 18px; translate: -50% 0; rotate: 3deg; background: rgb(242 195 212 / 75%); }
.cv-stage-note strong { display: block; margin-top: 2px; text-align: right; font-family: 'Caveat', cursive; font-size: 1.35rem; font-weight: 500; color: var(--accent); }
@keyframes cv-rise { from { opacity: 0; translate: 0 26px; } }
.cv-ribbon { margin-top: clamp(28px, 5vw, 52px); }
.cv-ribbon ul { display: flex; gap: 4px; margin: 0; padding: 4px 2px 12px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
@media (min-width: 1000px) { .cv-ribbon ul { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 10px; } .cv-ribbon li { flex-basis: calc((100% - 28px) / 8); } }
.cv-ribbon li { flex: 0 0 96px; scroll-snap-align: start; }
.cv-ribbon a { display: grid; justify-items: center; gap: 8px; padding: 6px 2px; border-radius: var(--r-2); text-align: center; color: var(--ink-soft); text-decoration: none; font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.cv-ribbon a:hover { color: var(--accent); text-decoration: none; }
.cv-ribbon-art { display: block; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--hairline), 0 8px 16px -10px rgb(70 30 45 / 45%); transition: transform var(--dur) var(--ease); }
.cv-ribbon a:hover .cv-ribbon-art { transform: translateY(-3px); }
.cv-ribbon-art svg { display: block; width: 100%; height: 100%; }
.cv-shelf-sec .lede.center-text { max-width: 60ch; margin: -8px auto 34px; }
.cv-shelf { display: grid; gap: clamp(22px, 3vw, 36px) clamp(14px, 2.4vw, 28px); grid-template-columns: repeat(2, 1fr); margin: 0 0 34px; padding: 0; list-style: none; }
@media (min-width: 760px) { .cv-shelf { grid-template-columns: repeat(4, 1fr); } }
.cv-tile { display: grid; gap: 12px; color: var(--ink); text-decoration: none; }
.cv-tile:hover { color: var(--ink); text-decoration: none; }
.cv-tile-card { display: block; padding: clamp(14px, 2.4vw, 26px); border-radius: var(--r-2); background: var(--stock); box-shadow: inset 0 0 0 1px var(--hairline); transition: background var(--dur); }
.cv-tile-card .pc-card { box-shadow: var(--shadow-paper); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.cv-tile:hover .cv-tile-card { background: var(--blush); }
.cv-tile:hover .cv-tile-card .pc-card { transform: translateY(-5px) rotate(-0.8deg); box-shadow: var(--shadow-lift); }
.cv-tile-meta { display: grid; gap: 2px; padding-inline: 2px; }
.cv-tile-meta strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; }
.cv-tile-meta span { font-size: 0.85rem; color: var(--ash); }
.cv-paths { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) { .cv-paths { grid-template-columns: 1fr 1fr; } }
.cv-path { display: grid; gap: 22px; align-content: start; padding: clamp(18px, 3.5vw, 34px); border-radius: var(--r-3); background: var(--paper); border: 1px solid var(--hairline); }
.cv-path-visual { position: relative; height: clamp(236px, 30vw, 300px); border-radius: var(--r-2); background: var(--blush); overflow: hidden; }
.cv-path + .cv-path .cv-path-visual { background: var(--sage); }
.cv-path-copy { display: grid; gap: 10px; justify-items: start; }
.cv-path-copy h3 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 450; }
.cv-path-copy .path-price { font-weight: 600; color: var(--ink); }
.cv-path-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 6px; }
.cv-open-card { display: flex; align-items: center; justify-content: center; }
.cv-oc-cover { position: relative; z-index: 2; width: 34%; transform: rotate(-5deg) translateX(9%); filter: drop-shadow(0 14px 20px rgb(70 30 45 / 25%)); }
.cv-oc-inside { display: grid; align-content: center; gap: 8px; width: 40%; aspect-ratio: 5 / 7; padding: 6%; border-radius: 4px; background: #fffdf9; box-shadow: var(--shadow-paper); transform: rotate(3deg);
  font-family: var(--font-display); font-size: clamp(0.64rem, 1vw, 0.8rem); line-height: 1.45; color: var(--ink-soft); }
.cv-oc-dear, .cv-oc-sign { font-family: 'Caveat', cursive; font-size: 1.45em; line-height: 1.1; color: var(--accent); }
.cv-oc-sign { text-align: right; }
.cv-wall-cover { position: absolute; z-index: 2; left: 5%; top: 50%; width: 31%; transform: translateY(-50%) rotate(-5deg); filter: drop-shadow(0 14px 20px rgb(70 30 45 / 25%)); }
.cv-wall-note { position: absolute; width: 29%; padding: 9px 11px; border-radius: 4px; background: #fffdf9; box-shadow: var(--shadow-paper); font-size: clamp(0.6rem, 0.9vw, 0.76rem); line-height: 1.4; color: var(--ink-soft); }
.cv-wall-note p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.cv-wall-note strong { display: block; margin-top: 3px; text-align: right; font-family: 'Caveat', cursive; font-size: 1.3em; font-weight: 500; color: var(--accent); }
.cv-wall-note.n0 { left: 40%; top: 7%; transform: rotate(-3deg); background: #fff5df; }
.cv-wall-note.n1 { left: 68%; top: 11%; transform: rotate(4deg); background: #fdeef2; }
.cv-wall-note.n2 { left: 42%; top: 53%; transform: rotate(2deg); }
.cv-wall-note.n3 { left: 69%; top: 56%; transform: rotate(-4deg); background: #f1f5ee; }
.cv-open-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .cv-open-grid { grid-template-columns: 1fr 1fr; } }
.cv-envelope-demo { display: grid; justify-items: center; gap: 22px; padding-top: clamp(90px, 15vw, 140px); }
.cv-env { position: relative; width: min(92%, 400px); aspect-ratio: 1 / 0.72; perspective: 900px; view-timeline-name: --cv-env; }
.cv-env-back { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(#d9aebb, #e7c5cf); box-shadow: var(--shadow-lift); }
.cv-env-card { position: absolute; z-index: 2; top: 5.5%; left: 27%; width: 46%; filter: drop-shadow(0 10px 16px rgb(70 30 45 / 22%)); }
.cv-env .cv-env-card { translate: 0 -40%; }
.cv-env-front { position: absolute; z-index: 3; inset: 0; border-radius: 0 0 8px 8px; background: linear-gradient(172deg, #f7e6ea 0%, #eed0d9 100%); clip-path: polygon(0 30%, 50% 60%, 100% 30%, 100% 100%, 0 100%); }
.cv-env-flap { position: absolute; top: 0; left: 0; right: 0; height: 62%; transform-origin: 50% 0; background: linear-gradient(#e4bfca, #d4a5b3); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.cv-env .cv-env-flap { z-index: 1; transform: rotateX(180deg); }
.cv-env-seal { position: absolute; z-index: 5; top: 62%; left: 50%; display: grid; place-items: center; width: 15%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: var(--accent); box-shadow: 0 3px 8px rgb(70 30 45 / 35%); }
.cv-env .cv-env-seal { opacity: 0; }
.cv-env-seal svg { width: 72%; height: 72%; }
.cv-env-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cv-env .cv-env-flap { animation: cv-flap linear both; animation-timeline: --cv-env; animation-range: entry 30% cover 55%; }
    .cv-env .cv-env-card { animation: cv-card linear both; animation-timeline: --cv-env; animation-range: entry 30% cover 55%; }
    .cv-env .cv-env-seal { animation: cv-seal linear both; animation-timeline: --cv-env; animation-range: entry 30% cover 55%; }
  }
}
@keyframes cv-flap { 0%, 20% { transform: rotateX(0deg); z-index: 4; } 38% { z-index: 4; } 39% { z-index: 1; } 56%, 100% { transform: rotateX(180deg); z-index: 1; } }
@keyframes cv-card { 0%, 30% { translate: 0 0; opacity: 0; } 34% { opacity: 1; } 52% { translate: 0 0; } 92%, 100% { translate: 0 -40%; opacity: 1; } }
@keyframes cv-seal { 0%, 14% { opacity: 1; } 24%, 100% { opacity: 0; } }
.cv-steps { display: grid; gap: clamp(22px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .cv-steps { grid-template-columns: repeat(3, 1fr); } }
.cv-steps li { display: grid; justify-items: center; gap: 10px; padding-inline: 8px; text-align: center; }
.cv-step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--stock); box-shadow: 0 0 0 1px rgb(140 35 80 / 22%); color: var(--accent); font-family: var(--font-display); font-size: 1.5rem; }
.cv-steps h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; }
.cv-steps p { max-width: 34ch; color: var(--graphite); }
.cv-prices { display: grid; gap: 16px; max-width: 900px; margin: 0 auto 18px; }
@media (min-width: 720px) { .cv-prices { grid-template-columns: repeat(3, 1fr); } }
.cv-price { display: grid; gap: 6px; padding: 24px 20px; border-radius: var(--r-3); background: var(--stock); border: 1px solid var(--hairline); text-align: center; }
.cv-price.is-free { background: var(--blush); border-color: transparent; }
.cv-price-name { font-weight: 600; color: var(--ink-soft); }
.cv-price-amt { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.1; color: var(--ink); }
.cv-price .small { color: var(--graphite); }
.cv-final { overflow: hidden; padding-block: clamp(48px, 8vw, 96px); background: radial-gradient(70% 90% at 80% 50%, #f3d3de 0%, rgb(243 211 222 / 0) 70%), var(--blush); }
.cv-final-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .cv-final-grid { grid-template-columns: 1.1fr 0.9fr; } }
.cv-final h2 { max-width: 16ch; font-size: var(--step-4); }
.cv-final-fan { position: relative; height: clamp(220px, 28vw, 300px); }
.cv-ff { position: absolute; top: 8%; width: 38%; filter: drop-shadow(0 16px 22px rgb(70 30 45 / 22%)); }
.cv-ff:nth-child(1) { left: 5%; transform: rotate(-9deg); }
.cv-ff:nth-child(2) { left: 31%; top: 0; z-index: 2; transform: rotate(-1deg); }
.cv-ff:nth-child(3) { left: 57%; transform: rotate(8deg); }
@media (prefers-reduced-motion: reduce) { .cv-stage-card, .cv-stage-note { animation: none; } .cv-stage-card, .cv-tile-card .pc-card { transition: none; } }
.site h2 { font-family: var(--font-display); font-weight: 450; letter-spacing: -0.018em; }
.site .rail { padding-left: 0; }
.site .rail::before { display: none; }
.band-dark .pc-card :is(h1, h2, h3, h4) { color: inherit; }
.cv-book { position: relative; display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(14px, 2.4vw, 22px); align-items: center; }
.cv-book-cover { transform: rotate(-4deg); filter: drop-shadow(0 22px 30px rgb(0 0 0 / 38%)); }
.cv-book-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cv-book-note { padding: 12px 14px 8px; border-radius: 6px; background: #fffaf3; color: #2f272a; font-size: 0.82rem; line-height: 1.45; box-shadow: 0 12px 26px -12px rgb(0 0 0 / 55%); }
.cv-book-note.b0 { rotate: -1.5deg; }
.cv-book-note.b1 { rotate: 1.2deg; background: #fdeef2; }
.cv-book-note.b2 { rotate: 1deg; background: #f1f5ee; }
.cv-book-note.b3 { rotate: -1deg; background: #fff5df; }
.cv-bn-title { margin-bottom: 4px; font-weight: 700; }
.cv-book-note strong { display: block; text-align: right; font-family: 'Caveat', cursive; font-size: 1.25rem; font-weight: 500; color: var(--accent); }
@media (max-width: 560px) { .cv-book { grid-template-columns: 1fr; } .cv-book-cover { width: 58%; margin-inline: auto; } }
.price-card .price-amount { font-size: 2.3rem; }
.gal-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .gal-hero { grid-template-columns: 1.15fr 0.85fr; } }
.gal-hero-cards { position: relative; height: clamp(200px, 24vw, 280px); }
.gal-hero-cards > * { position: absolute; top: 6%; width: 34%; filter: drop-shadow(0 16px 22px rgb(70 30 45 / 20%)); }
.gal-hero-cards > :nth-child(1) { left: 6%; transform: rotate(-8deg); }
.gal-hero-cards > :nth-child(2) { left: 33%; top: 0; z-index: 2; transform: rotate(-1deg); }
.gal-hero-cards > :nth-child(3) { left: 60%; transform: rotate(7deg); }
@media (max-width: 899px) { .gal-hero-cards { display: none; } }

/* ---------- Cardverie page design v1: pricing, personal, group (owner-approved canvas, 2026-12-03) ---------- */
.cvx-page main { overflow-x: clip; }
.cvx-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.cvx-h2 { font-family: var(--font-display); font-weight: 450; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.cvx-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.cvx-hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .cvx-hero-grid { grid-template-columns: 1.02fr 0.98fr; } }
.cvx-hero-copy { display: grid; gap: 18px; align-content: start; }
.cvx-hero-copy .breadcrumb { margin-bottom: 4px; }
.cvx-hero-copy .lede { max-width: 38em; }
.cvx-hero-note { margin: 0; font-size: var(--step--1); color: var(--ash); }
.cvx-fine { margin: 0; font-size: 0.86rem; color: var(--ash); }
.cvx-script { font-family: 'Caveat', var(--font-display); font-weight: 500; }
.cvx-section { padding: clamp(40px, 6vw, 72px) 0; }
.cvx-section-tight { padding: clamp(24px, 4vw, 44px) 0; }
.cvx-section-last { padding-bottom: clamp(56px, 8vw, 96px); }
.cvx-stock { background: var(--stock); }
.cvx-band { padding: clamp(40px, 6vw, 64px) 0; }
.cvx-band-blush { background: var(--blush); }
.cvx-band-sage { background: var(--sage); }
.cvx-section .container > .cvx-h2, .cvx-band .container > .cvx-h2 { margin-bottom: clamp(20px, 3vw, 30px); }
.cvx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(20px, 3vw, 30px); }
.cvx-head-main { display: grid; gap: 8px; }
.cvx-head-main .eyebrow, .cvx-group-main .eyebrow, .cvx-panel .eyebrow, .cvx-subs .eyebrow, .cvx-ai-card .eyebrow { margin: 0; }
.cvx-head-p { margin: 0; max-width: 28em; color: var(--graphite); font-size: 0.97rem; }
.cvx-eyebrow-muted { color: var(--ash); }
.cvx-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cvx-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cvx-ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: var(--ink-soft); }
.cvx-ticks .cvx-ico { width: 18px; height: 18px; margin-top: 3px; stroke: #5e7a4e; stroke-width: 2.2; }
.cvx-ticks-box { padding: 20px 22px; background: var(--paper); border-radius: var(--r-2); align-content: start; }
.cvx-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cvx-btn-light { background: var(--stock); color: var(--deep); border-color: var(--stock); }
.cvx-btn-light:hover { background: #fff; color: var(--deep); }
.cvx-btn-outline-light { background: transparent; color: var(--stock); border: 1px solid var(--dark-body); }
.cvx-btn-outline-light:hover { background: rgb(255 255 255 / 8%); color: #fff; }
.cvx-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cvx-amount { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 2rem + 1.6vw, 3.3rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.cvx-unit { font-size: 0.9rem; color: var(--ash); }
.cvx-desc { margin: 0; color: var(--graphite); font-size: 0.96rem; line-height: 1.55; }

/* hero fan with price tags */
.cvx-fan { position: relative; height: clamp(340px, 42vw, 440px); min-width: 0; }
.cvx-fan-card { position: absolute; width: clamp(130px, 17vw, 190px); }
.cvx-fan-card .pc-card { box-shadow: var(--shadow-lift); border-radius: 5px; }
.cvx-fan-l { left: 4%; top: 16%; rotate: -9deg; }
.cvx-fan-r { right: 4%; top: 19%; rotate: 8deg; }
.cvx-fan-c { left: 50%; top: 4%; width: clamp(150px, 20vw, 224px); translate: -50% 0; rotate: -1deg; z-index: 1; }
.cvx-tag { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 10px 26px; background: var(--stock); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: 0 10px 24px -12px rgb(70 30 45 / 45%); }
.cvx-tag::before { content: ''; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.5px solid var(--hairline-strong); box-sizing: border-box; }
.cvx-tag-amt { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.cvx-tag-label { font-size: 0.75rem; color: var(--ash); }
.cvx-tag-1 { left: 0; top: 7%; rotate: -6deg; }
.cvx-tag-2 { left: 50%; bottom: 4%; translate: -50% 0; rotate: 2deg; }
.cvx-tag-3 { right: 0; top: 10%; rotate: 7deg; }

/* personal plans */
.cvx-plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); align-items: stretch; }
.cvx-plan { position: relative; display: flex; flex-direction: column; gap: 13px; padding: 28px 24px 24px; background: var(--stock); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: 0 1px 1px rgb(42 21 32 / 5%), 0 18px 34px -24px rgb(70 30 45 / 35%); }
.cvx-plan h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
.cvx-plan.is-free { background: #fff; border-color: #e6cfc6; }
.cvx-kicker { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.cvx-plan-cta { margin-top: auto; padding-top: 6px; }
.cvx-ribbon { position: absolute; top: -13px; left: 22px; margin: 0; padding: 5px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }

/* group + AI duo */
.cvx-duo { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: stretch; }
.cvx-group-card { display: flex; flex-wrap: wrap; gap: 26px; padding: clamp(24px, 3vw, 32px); background: var(--stock); border: 1px solid #ecd3db; border-radius: 18px; }
.cvx-group-main { flex: 1 1 250px; display: flex; flex-direction: column; gap: 14px; }
.cvx-group-card .cvx-ticks-box { flex: 1 1 220px; }
.cvx-ai-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); background: var(--deep); color: var(--dark-body); border-radius: 18px; }
.cvx-ai-card .eyebrow { color: var(--accent-light); }
.cvx-ai-card .cvx-h2, .cvx-ai-card .cvx-amount { color: var(--stock); }
.cvx-ai-card .cvx-unit, .cvx-ai-card .cvx-fine { color: var(--dark-body); }
.cvx-ai-card p { margin: 0; }
.cvx-ai-card .cvx-actions { margin-top: auto; }

/* subscriptions (not on sale) */
.cvx-subs { display: grid; gap: 28px; padding: clamp(24px, 4vw, 40px); border: 1px dashed #cfc8bc; border-radius: 18px; }
@media (min-width: 900px) { .cvx-subs { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.cvx-subs-copy { display: grid; gap: 14px; }
.cvx-subs-copy > p { margin: 0; color: var(--graphite); }
.cvx-subs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cvx-subs-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 16px 18px; background: var(--stock); border: 1px solid var(--hairline); border-radius: var(--r-2); }
.cvx-subs-name { font-weight: 600; color: var(--ink-soft); }
.cvx-subs-list .badge { justify-self: end; }
.cvx-subs-price { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.5rem; color: var(--graphite); }
.cvx-subs-price small { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ash); }

/* included tiles */
.cvx-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.cvx-tiles li { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--sage); border-radius: 14px; color: var(--ink-soft); line-height: 1.5; }
.cvx-tiles .cvx-ico { width: 26px; height: 26px; }

/* compare table */
.cvx-table-wrap { border: 1px solid var(--hairline); border-radius: 16px; background: var(--stock); }
.cvx-compare { min-width: 680px; }
.cvx-compare thead th { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.cvx-later { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; color: var(--ash); }

/* notes trio */
.cvx-notes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: start; }
.cvx-notecard { display: grid; gap: 10px; padding: 24px; background: var(--stock); border-top: 3px solid var(--accent); border-radius: 0 0 14px 14px; }
.cvx-notecard h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.cvx-notecard p { margin: 0; color: var(--graphite); line-height: 1.6; }

/* dark closing band */
.cvx-final { background: var(--deep); color: var(--dark-body); padding: clamp(48px, 7vw, 80px) 0; }
.cvx-final-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px; }
.cvx-final-copy { flex: 1 1 420px; display: grid; gap: 16px; }
.cvx-final-copy .cvx-h2 { color: var(--stock); font-weight: 400; }
.cvx-final-copy p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.cvx-final-kicker { margin: 0; font-size: 1.9rem; color: var(--accent-light); }
.cvx-final-fan { flex: 0 1 380px; display: flex; justify-content: center; }
.cvx-ff { width: clamp(110px, 12vw, 150px); }
.cvx-ff .pc-card { box-shadow: 0 2px 4px rgb(0 0 0 / 15%), 0 28px 50px -22px rgb(0 0 0 / 55%); border-radius: 5px; }
.cvx-ff-l { margin-right: -36px; margin-top: 30px; rotate: -8deg; }
.cvx-ff-c { width: clamp(124px, 13.5vw, 170px); position: relative; z-index: 1; }
.cvx-ff-r { margin-left: -36px; margin-top: 30px; rotate: 8deg; }

/* personal: open card */
.cvx-open { margin: 0; display: grid; grid-template-columns: 1fr 1fr; max-width: 560px; justify-self: center; width: 100%; filter: drop-shadow(0 26px 34px rgb(70 30 45 / 28%)); rotate: -1.5deg; }
.cvx-open-cover .pc-card { border-radius: 6px 0 0 6px; height: 100%; }
.cvx-open-inside { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 3vw, 30px); background: var(--stock); border-radius: 0 6px 6px 0; border-left: 1px solid var(--hairline); font-family: var(--font-display); font-size: clamp(0.82rem, 0.7rem + 0.4vw, 1rem); line-height: 1.55; color: var(--ink-soft); }
.cvx-open-inside p { margin: 0; }
.cvx-open-dear { font-size: 1.15em; }
.cvx-open-sign { margin-top: auto !important; font-size: 1.7em; color: var(--accent); }
.cvx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.cvx-steps li { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 16px; background: var(--paper); }
.cvx-steps h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.cvx-steps p { margin: 0; color: var(--graphite); line-height: 1.55; }
.cvx-step-n { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--accent); }
.cvx-steps-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.cvx-step-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cvx-shelf { list-style: none; margin: 0; padding: clamp(18px, 3vw, 28px); display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); background: #efe7de; border-radius: 18px; }
.cvx-shelf li { display: flex; flex-direction: column; gap: 4px; }
.cvx-shelf-card { margin-bottom: 8px; }
.cvx-shelf-card .pc-card { box-shadow: var(--shadow-paper); border-radius: 4px; }
.cvx-shelf li:nth-child(odd) .cvx-shelf-card { rotate: -1.2deg; }
.cvx-shelf li:nth-child(even) .cvx-shelf-card { rotate: 1deg; }
.cvx-shelf-name { font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
.cvx-shelf-occ { font-size: 0.82rem; color: var(--ash); }
.cvx-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); background: var(--hairline); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.cvx-feats li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--stock); }
.cvx-feats .cvx-ico { color: var(--accent); margin-top: 2px; }
.cvx-feats h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cvx-feats p { margin: 0; color: var(--graphite); line-height: 1.55; font-size: 0.95rem; }
.cvx-deliver { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.cvx-deliver li { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--stock); border-radius: 14px; }
.cvx-deliver .cvx-ico { color: #5e7a4e; width: 28px; height: 28px; }
.cvx-deliver h3 { margin: 0; font-size: 1.05rem; }
.cvx-deliver p { margin: 0; color: var(--graphite); line-height: 1.55; font-size: 0.95rem; }
.cvx-price-row { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); background: var(--hairline); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.cvx-cell { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--stock); }
.cvx-cell-amt { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.05; color: var(--ink); }
.cvx-cell-name { font-weight: 600; color: var(--ink-soft); }
.cvx-cell-sub { font-size: 0.85rem; color: var(--ash); }
.cvx-cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(28px, 4vw, 44px); background: var(--blush); border-radius: 20px; }
.cvx-cta-panel > div { display: grid; gap: 10px; flex: 1 1 360px; }
.cvx-cta-panel p { margin: 0; color: var(--graphite); font-size: 1.05rem; }

/* group: hero collage, notes, mock screens */
.cvx-collage { position: relative; height: clamp(380px, 44vw, 470px); min-width: 0; }
.cvx-collage-cover { position: absolute; left: 2%; top: 8%; width: clamp(160px, 20vw, 220px); rotate: -4deg; }
.cvx-collage-cover .pc-card { box-shadow: var(--shadow-lift); border-radius: 5px; }
.cvx-note { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgb(42 21 32 / 8%), 0 14px 26px -16px rgb(70 30 45 / 40%); font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); }
.cvx-note-title { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.cvx-note-author { font-size: 1.35rem; line-height: 1; color: var(--accent); align-self: flex-end; }
.cvx-collage .cvx-note { position: absolute; width: clamp(170px, 19vw, 220px); }
.cvx-cn-1 { right: 2%; top: 0; rotate: 3deg; }
.cvx-cn-2 { left: 30%; top: 60%; rotate: -2deg; z-index: 1; }
.cvx-cn-3 { right: 0; top: 34%; rotate: 1.5deg; }
.cvx-linkbar { position: absolute; left: 4%; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--stock); border: 1px solid var(--hairline); border-radius: var(--r-pill); box-shadow: 0 12px 26px -14px rgb(70 30 45 / 45%); font-size: 0.85rem; }
.cvx-linkbar-url { font-family: var(--font-mono); font-size: 0.75rem; color: var(--graphite); }
.cvx-linkbar-copy { padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.8rem; }
.cvx-linkbar-qr { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-soft); padding-right: 6px; }
.cvx-linkbar-qr .cvx-ico { width: 18px; height: 18px; }
.cvx-panel { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 34px); border-radius: 20px; }
.cvx-panel-blush { background: var(--blush); }
.cvx-panel-sage { background: var(--sage); }
.cvx-mock { margin-top: auto; padding: 18px; background: var(--stock); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cvx-mock-form { flex: 1 1 200px; display: grid; gap: 6px; }
.cvx-mock-h { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.cvx-mock-l { font-size: 0.75rem; font-weight: 600; color: var(--graphite); }
.cvx-mock-input { padding: 8px 10px; background: #fff; border: 1px solid var(--hairline-strong); border-radius: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.cvx-mock-area { min-height: 54px; background-color: var(--stock); }
.cvx-note-tilt { flex: 1 1 170px; rotate: 1deg; }
.cvx-mock-list { list-style: none; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 6px 16px; }
.cvx-mock-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hairline); width: 100%; }
.cvx-mock-list li:last-child { border-bottom: 0; }
.cvx-avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blush); color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.cvx-mock-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cvx-mock-name { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.cvx-mock-ex { font-size: 0.8rem; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvx-status { flex: none; padding: 3px 10px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 600; }
.cvx-status.is-ok { background: var(--success-bg); color: var(--success); }
.cvx-status.is-wait { background: var(--warn-bg); color: var(--warn); }
.cvx-mock-btn { flex: none; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.cvx-mock-btn.is-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .cvx-mock-btn { display: none; } }
.cvx-price-panel { display: grid; gap: 26px; padding: clamp(24px, 4vw, 40px); background: var(--stock); border: 1px solid var(--hairline); border-radius: 20px; }
@media (min-width: 900px) { .cvx-price-panel { grid-template-columns: 0.8fr 1.2fr; } .cvx-price-panel-foot { grid-column: 1 / -1; } }
.cvx-price-panel-main { display: grid; gap: 12px; align-content: start; }
.cvx-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.cvx-limits li { display: flex; gap: 10px; align-items: flex-start; padding: 16px; background: var(--paper); border-radius: 12px; }
.cvx-limits .cvx-ico { width: 18px; height: 18px; margin-top: 3px; stroke: #5e7a4e; stroke-width: 2.2; }
.cvx-limits li > span { display: flex; flex-direction: column; gap: 2px; }
.cvx-limits strong { color: var(--ink-soft); }
.cvx-limits li > span > span { font-size: 0.85rem; color: var(--ash); }
.cvx-price-panel-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--hairline); }
.cvx-price-panel-foot p { margin: 0; color: var(--graphite); font-size: 0.95rem; }
.cvx-note-grid { flex: 1 1 380px; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cvx-ng-1 { rotate: -1.5deg; } .cvx-ng-2 { rotate: 1deg; } .cvx-ng-3 { rotate: 1.5deg; } .cvx-ng-4 { rotate: -1deg; }
@media (max-width: 560px) {
  .cvx-fan { height: 330px; }
  .cvx-fan-card { width: 118px; }
  .cvx-fan-c { width: 140px; }
  .cvx-collage { height: 440px; }
  .cvx-collage .cvx-note { width: 168px; font-size: 0.78rem; }
  .cvx-collage-cover { width: 150px; }
  .cvx-cn-1 { right: 0; }
  .cvx-cn-2 { left: 6%; top: 58%; }
  .cvx-cn-3 { right: 0; top: 33%; }
  .cvx-note-grid { grid-template-columns: 1fr; }
  .cvx-open { grid-template-columns: 1fr; max-width: 320px; }
  .cvx-open-cover .pc-card { border-radius: 6px 6px 0 0; }
  .cvx-open-inside { border-radius: 0 0 6px 6px; border-left: 0; border-top: 1px solid var(--hairline); }
}

/* prelaunch: public pages only (AGENTS.md §6.1). Sign-in and purchase are not open yet. */
.btn.btn-soon, .btn.btn-soon[aria-disabled="true"] { cursor: default; opacity: 0.86; gap: 8px; pointer-events: none; }
.btn-soon .soon-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / 22%); font-size: 0.72em; font-weight: 600; letter-spacing: 0.01em; }
.btn-ghost.btn-soon .soon-tag, .cvx-btn-light.btn-soon .soon-tag { background: var(--blush); color: var(--accent-deep); }
.btn-soon:hover { transform: none; }
.soon-note { color: var(--ash); font-size: 0.85rem; }
.link-off { color: inherit; }

/* ---------- App shell ---------- */
.app-body { background: var(--paper); min-height: 100dvh; display: flex; flex-direction: column; }
.app-bar { position: sticky; top: 0; z-index: 40; background: var(--stock); border-bottom: 1px solid var(--hairline); }
.app-bar-inner { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.app-bar .brand-name { font-size: 1.15rem; }
.app-bar .brand-mark { width: 28px; height: 28px; }
.app-account { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 0.92rem; }
.app-account .who { color: var(--ink-soft); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (min-width: 640px) { .app-account .who { display: inline; } }
@media (max-width: 400px) { .app-bar-inner { gap: 8px; } .app-bar .brand-name { font-size: 1.02rem; } .app-account .btn-sm { padding-inline: 10px; } .app-account .lang-link { padding-inline: 6px; } }
.app-nav { border-top: 1px solid var(--hairline); }
.app-nav ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 0; max-width: 100%; }
.app-nav li { flex: none; }
.app-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; color: var(--ash); font-weight: 600; font-size: 0.92rem; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.app-nav a:hover { color: var(--ink); }
.app-nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }
.app-main { flex: 1; padding-block: clamp(20px, 4vw, 40px) 96px; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(18px, 3vw, 28px); }
.page-head h1 { font-size: var(--step-4); }
.page-head p { margin-top: 6px; }
.app-section + .app-section { margin-top: clamp(24px, 4vw, 40px); }
.app-section > h2 { font-size: var(--step-2); margin-bottom: 14px; }
.app-foot { padding-block: 22px; border-top: 1px solid var(--hairline); font-size: 0.85rem; color: var(--ash); }
.app-foot .container { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.app-foot a { color: var(--ash); }
.boot { display: grid; place-items: center; min-height: 40vh; color: var(--ash); }
/* ---------- Wallet ---------- */
.wallet-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.stat { padding: 16px; border-radius: var(--r-2); background: var(--stock); border: 1px solid var(--hairline); display: grid; gap: 4px; align-content: start; }
.stat-label { font-size: 0.82rem; color: var(--ash); font-weight: 600; }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.stat-sub { font-size: 0.84rem; color: var(--graphite); }
.stat-value.is-text { font-family: var(--font-ui); font-size: 1.02rem; font-weight: 600; }
/* ---------- Card tiles ---------- */
.cards-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(min(168px, 44%), 1fr)); }
.card-tile { display: grid; gap: 10px; align-content: start; }
.card-tile-link { display: block; border-radius: 4px; }
.card-tile h3 { font-size: 1rem; overflow-wrap: anywhere; }
.card-tile h3 a { color: var(--ink); text-decoration: none; }
.card-tile h3 a:hover { text-decoration: underline; }
.card-tile .meta { font-size: 0.84rem; color: var(--ash); }
.card-tile .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tile .tile-actions { display: flex; flex-wrap: wrap; gap: 4px; }
/* ---------- New card ---------- */
.kind-choice { display: grid; gap: 14px; }
@media (min-width: 720px) { .kind-choice { grid-template-columns: 1fr 1fr; } }
.kind-opt { position: relative; }
.kind-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.kind-opt .kind-body { display: grid; gap: 8px; padding: 22px; border-radius: var(--r-2); border: 2px solid var(--hairline); background: #fff; height: 100%; }
.kind-opt .kind-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.kind-opt input:checked + .kind-body { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kind-opt input:focus-visible + .kind-body { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-grid { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
/* ---------- Editor ---------- */
.editor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.editor-head h1 { font-size: var(--step-3); font-family: var(--font-display); font-weight: 400; overflow-wrap: anywhere; }
.save-state { font-size: 0.85rem; color: var(--ash); }
.save-state.is-error { color: var(--error); font-weight: 600; }
.editor-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.editor-form, .editor-preview, .manage-layout > * { min-width: 0; }
@media (min-width: 1040px) { .editor-layout { grid-template-columns: minmax(380px, 460px) 1fr; align-items: start; } .editor-preview { position: sticky; top: 84px; } .view-toggle { display: none !important; } }
@media (max-width: 1039.98px) { .editor-layout[data-view='edit'] .editor-preview { display: none; } .editor-layout[data-view='preview'] .editor-form { display: none; } }
.view-toggle { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: #e9e4dc; }
.view-toggle button { border: 0; background: transparent; min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; color: var(--ash); }
.view-toggle button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 10%); }
.editor-form .panel + .panel { margin-top: 14px; }
.editor-preview-inner { background: #ece7df; border-radius: var(--r-3); padding: clamp(14px, 3vw, 28px); }
.photo-list { display: grid; gap: 10px; margin-top: 12px; }
.photo-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--hairline); border-radius: var(--r-1); background: #fff; }
.photo-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.photo-item .cluster { margin-top: 6px; }
.action-bar { position: sticky; bottom: 0; z-index: 30; margin-top: 18px; padding: 12px 0; background: linear-gradient(transparent, var(--paper) 24%); }
.action-bar .panel { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lift); }
.ai-box { border-top: 1px dashed var(--hairline-strong); margin-top: 18px; padding-top: 16px; }
.ai-draft { margin-top: 12px; }
/* ---------- Manage ---------- */
.manage-layout { display: grid; gap: 22px; }
@media (min-width: 1040px) { .manage-layout { grid-template-columns: 400px 1fr; align-items: start; } .manage-side { position: sticky; top: 84px; } }
.manage-side .panel + .panel { margin-top: 14px; }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-1); }
.qr-box img { width: 180px; height: 180px; image-rendering: pixelated; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.counts .stat { padding: 12px; }
.msg-list { display: grid; gap: 12px; }
.msg-item { padding: 16px 18px; border-radius: var(--r-2); background: #fff; border: 1px solid var(--hairline); display: grid; gap: 8px; }
.msg-item.is-hidden { opacity: 0.72; background: #f6f3ee; }
.msg-item .msg-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.msg-item .msg-author { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.msg-item .msg-body { white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-soft); }
.msg-item img { max-width: 160px; border-radius: 4px; }
/* ---------- Guest pages (contributor, recipient) ---------- */
.guest-body { background: var(--paper); min-height: 100dvh; display: flex; flex-direction: column; }
.guest-bar { padding-block: 14px; }
.guest-bar .brand-name { font-size: 1.1rem; }
.guest-bar .brand-mark { width: 26px; height: 26px; }
.guest-main { flex: 1; padding-block: 12px 72px; }
.contrib-wrap { max-width: 640px; margin-inline: auto; }
.contrib-head { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin-bottom: 24px; }
.contrib-head h1 { font-size: var(--step-3); font-family: var(--font-display); font-weight: 400; overflow-wrap: anywhere; }
.view-stage { max-width: 1040px; margin-inline: auto; }
.view-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.view-meta { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--ash); }
.reveal { animation: reveal 900ms var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.print-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.print-root { max-width: 900px; margin-inline: auto; }
.state-page { max-width: 560px; margin: clamp(24px, 8vw, 80px) auto; text-align: center; }
.state-page h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); margin-bottom: 12px; }
.state-page .btn { margin-top: 18px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #ddd5ca; border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Cardverie recipient opening (Web Design System v1.0 section 7). Shares .cv-env-* parts with the home demo. ---- */
.cv-rv { display: grid; justify-items: center; gap: 18px; padding: clamp(20px, 5vw, 56px) 0 clamp(28px, 6vw, 64px); text-align: center; }
.cv-rv-stack { position: relative; width: min(86vw, 420px); margin-top: calc(min(86vw, 420px) * 0.3); }
.cv-rv-for { position: absolute; z-index: 6; left: 8%; right: 8%; bottom: 11%; font-family: 'Caveat', cursive; font-weight: 500; font-size: clamp(2rem, 8vw, 2.9rem); line-height: 1.05; color: var(--accent-deep); overflow-wrap: anywhere; pointer-events: none; transition: opacity 260ms ease; }
.cv-rv.is-opening .cv-rv-for { opacity: 0; }
.cv-rv-env { position: relative; display: block; width: 100%; aspect-ratio: 1 / 0.72; perspective: 900px; cursor: pointer; }
.cv-rv-env > span { display: block; }
.cv-rv .cv-env-card { translate: 0 0; opacity: 0; transition: translate 820ms var(--ease) 430ms, scale 820ms var(--ease) 430ms, opacity 120ms linear 240ms; }
.cv-rv .cv-env-flap { z-index: 4; transform: rotateX(0deg); transition: transform 520ms var(--ease), z-index 0s linear 260ms; }
.cv-rv .cv-env-seal { opacity: 1; transition: opacity 200ms ease; }
.cv-rv .cv-env-seal::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgb(255 255 255 / 60%); }
.cv-rv-env:hover .cv-env-seal { scale: 1.06; }
.cv-rv.is-opening .cv-env-flap { z-index: 1; transform: rotateX(180deg); }
.cv-rv.is-opening .cv-env-seal { opacity: 0; }
.cv-rv.is-opening .cv-env-card { translate: 0 -58%; scale: 1.04; opacity: 1; }
.cv-rv.is-opening { animation: cv-rv-out 320ms ease 1230ms forwards; }
@keyframes cv-rv-out { to { opacity: 0; } }
.cv-rv-open { margin-top: 10px; min-width: 220px; }
.cv-rv-hint { max-width: 42ch; font-size: var(--step--1); color: var(--ash); }
@media (prefers-reduced-motion: reduce) { .cv-rv *, .cv-rv-env:hover .cv-env-card { transition: none !important; } .cv-rv.is-opening { animation: none; } }
/* message book on the recipient page: a soft collage of notes */
@media (min-width: 760px) {
  .view-stage .pc-card:is(.pc-mood-playful, .pc-mood-festive, .pc-mood-calm) .pc-note:nth-child(4n+1) article { rotate: -0.5deg; }
  .view-stage .pc-card:is(.pc-mood-playful, .pc-mood-festive, .pc-mood-calm) .pc-note:nth-child(4n+2) article { rotate: 0.4deg; }
  .view-stage .pc-card:is(.pc-mood-playful, .pc-mood-festive, .pc-mood-calm) .pc-note:nth-child(4n+3) article { rotate: 0.3deg; }
  .view-stage .pc-card:is(.pc-mood-playful, .pc-mood-festive, .pc-mood-calm) .pc-note:nth-child(4n) article { rotate: -0.35deg; }
}
@media (prefers-reduced-motion: no-preference) { .view-stage .pc-note article { animation: cv-note-in 600ms var(--ease) both; } .view-stage .pc-note:nth-child(2) article { animation-delay: 80ms; } .view-stage .pc-note:nth-child(3) article { animation-delay: 160ms; } .view-stage .pc-note:nth-child(n+4) article { animation-delay: 240ms; } }
@keyframes cv-note-in { from { opacity: 0; translate: 0 14px; } }

/* ---- Cardverie editor: progress and compact send bar on phones (Web Design System v1.0 section 8) ---- */
.ed-progress { display: grid; gap: 8px; margin-bottom: 14px; }
.ed-progress-text { color: var(--ash); }
.ed-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-seg { height: 5px; border-radius: 3px; background: var(--hairline); transition: background var(--dur); }
.ed-seg.is-done { background: var(--accent); }
.tabs [role="tab"].is-done::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; border-radius: 50%; background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.4l2 2 4-4.4' fill='none' stroke='%232d6a43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 640px) {
  .action-bar .panel { padding: 12px 14px; }
  .action-bar .panel .stack .small { display: none; }
  .action-bar .panel .stack { gap: 0; }
  .action-bar .cluster { flex-wrap: nowrap; gap: 8px; }
  .action-bar .cluster .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; }
}

/* ---------- Cardverie contributor page: live note preview (Cardverie design v1.0) ---------- */
.contrib-wrap.cv-contrib { max-width: 1040px; }
.cv-contrib .contrib-head { grid-template-columns: clamp(84px, 24vw, 120px) 1fr; gap: clamp(16px, 3vw, 28px); max-width: 780px; margin-bottom: clamp(20px, 4vw, 36px); }
.contrib-thumb { rotate: -3deg; filter: drop-shadow(0 14px 18px rgb(70 30 45 / 20%)); }
.cv-contrib .contrib-head .eyebrow { margin: 0; }
.contrib-closes { justify-self: start; padding: 0.25em 0.85em; border-radius: var(--r-pill); background: var(--stock); border: 1px solid var(--hairline); color: var(--graphite); }
.cv-contrib-form { display: grid; gap: 18px; align-items: start; margin-bottom: 18px; }
.contrib-note p:last-child { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--ink-soft); }
.cv-paper { background-color: var(--stock); background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.75em - 1px), var(--hairline) calc(1.75em - 1px) 1.75em); background-origin: content-box; background-attachment: local; line-height: 1.75; font-size: 1.05rem; }
.cv-prompts { display: grid; gap: 6px; margin-top: -6px; }
.cv-prompts p { margin: 0; }
.cv-contrib-preview { display: grid; gap: 10px; }
.cv-contrib-preview h2, .cv-contrib-preview > p { margin: 0; }
.cv-note-sheet { padding: clamp(16px, 3vw, 26px); background: var(--pc-paper); border-radius: 10px; box-shadow: var(--shadow-paper); }
.cv-note-sheet .pc-notes { columns: auto; }
.cv-note-sheet .pc-note { margin: 0; }
.cv-note-sheet .pc-note-body p { white-space: pre-line; }
.cv-note-sheet .pc-note-photo img { max-height: 220px; }
.cv-note-empty { color: var(--pc-soft); font-style: italic; }
@media (min-width: 900px) {
  .cv-contrib-form { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: 'fields aside' 'send aside'; column-gap: 36px; }
  .cv-contrib-fields { grid-area: fields; }
  .cv-contrib-send { grid-area: send; }
  .cv-contrib-preview { grid-area: aside; position: sticky; top: 24px; }
  .cv-contrib-done { grid-template-areas: 'fields aside'; }
}
.cv-contrib-done h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }
@media (prefers-reduced-motion: no-preference) { .cv-contrib-done .cv-note-sheet { animation: cv-note-in 520ms var(--ease) both; } }

/* ---------- Card renderer (web/js/card-render.js) ----------
   Template palettes (.pc-t-*) and accents (.pc-ac-*) are generated into the bundle by scripts/build-web.mjs. */
.pc-card { --pc-display: 'Fraunces', Georgia, var(--kr-serif); --pc-body: 'Source Sans 3', 'Helvetica Neue', Arial, var(--kr-sans); --pc-title-scale: 1; --pc-accent: #855854; --pc-accent-d: #d2a9a4; container-type: inline-size; color: var(--pc-ink); font-family: var(--pc-body); }
.pc-fp-editorial { --pc-display: 'Fraunces', Georgia, var(--kr-serif); --pc-body: 'Source Sans 3', 'Helvetica Neue', Arial, var(--kr-sans); }
.pc-fp-classic { --pc-display: 'EB Garamond', Garamond, Georgia, var(--kr-serif); --pc-body: Archivo, 'Helvetica Neue', Arial, var(--kr-sans); --pc-title-scale: 1.08; }
.pc-fp-modern { --pc-display: Outfit, 'Avenir Next', 'Helvetica Neue', Arial, var(--kr-sans); --pc-body: Archivo, 'Helvetica Neue', Arial, var(--kr-sans); --pc-title-scale: 0.96; }
.pc-fp-friendly { --pc-display: Nunito, 'Arial Rounded MT Bold', 'Helvetica Neue', Arial, var(--kr-sans); --pc-body: Nunito, 'Helvetica Neue', Arial, var(--kr-sans); --pc-title-scale: 0.98; }
.pc-fp-script { --pc-display: Caveat, 'Segoe Print', 'Bradley Hand', cursive, var(--kr-sans); --pc-body: 'Source Sans 3', 'Helvetica Neue', Arial, var(--kr-sans); --pc-title-scale: 1.32; }
.pc-fp-hangul { --pc-display: 'Source Serif 4', var(--kr-serif); --pc-body: Archivo, var(--kr-sans); --pc-title-scale: 0.92; }
.pa { fill: var(--pc-accent, #855854); }
.pas { stroke: var(--pc-accent, #855854); }
.pc-dark .pa, .pc-dark.pa { fill: var(--pc-accent-d, #d2a9a4); }
.pc-dark .pas { stroke: var(--pc-accent-d, #d2a9a4); }
.pc-spread { display: grid; gap: clamp(14px, 3cqi, 28px); align-items: start; }
@container (min-width: 700px) { .pc-ly-classic .pc-spread, .pc-ly-photo .pc-spread { grid-template-columns: 1fr 1fr; } }
.pc-sheet { position: relative; aspect-ratio: 5 / 7; border-radius: 4px; background: var(--pc-paper); box-shadow: var(--shadow-paper); container-type: inline-size; }
.pc-cover { overflow: hidden; background: var(--pc-bg); }
.pc-art, .pc-art-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-cover-text { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 2.2cqi; color: var(--pc-cover-ink); }
.pc-title { margin: 0; font-family: var(--pc-display); font-weight: 500; font-size: calc(9.6cqi * var(--pc-title-scale)); line-height: 1.06; letter-spacing: -0.01em; color: inherit; overflow-wrap: anywhere; text-wrap: balance; }
.pc-kicker { margin: 0; font-family: var(--pc-body); font-size: 3.3cqi; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pc-accent); overflow-wrap: anywhere; }
.pc-dark .pc-kicker { color: var(--pc-accent-d); }
.pc-zone-center { inset: 27% 13%; align-items: center; justify-content: center; text-align: center; }
.pc-zone-center-narrow { inset: 31% 25%; align-items: center; justify-content: center; text-align: center; }
.pc-zone-center-narrow .pc-title { font-size: calc(7.6cqi * var(--pc-title-scale)); }
.pc-zone-center-low { inset: 40% 13% 24%; align-items: center; justify-content: center; text-align: center; }
.pc-zone-top { inset: 9% 11% auto; align-items: center; text-align: center; }
.pc-zone-top-left { inset: 9% 30% auto 10%; align-items: flex-start; text-align: left; }
.pc-zone-bottom { inset: auto 11% 9%; align-items: center; text-align: center; }
.pc-zone-bottom-left { inset: auto 26% 8% 9%; align-items: flex-start; text-align: left; }
.pc-zone-bottom-right { inset: auto 8% 9% 28%; align-items: flex-end; text-align: right; }
.pc-zone-disc { inset: 25% 24% 30%; align-items: center; justify-content: center; text-align: center; }
.pc-zone-disc .pc-title { font-size: calc(6.3cqi * var(--pc-title-scale)); }
.pc-zone-arch { inset: 36% 25% 12%; align-items: center; justify-content: center; text-align: center; }
.pc-zone-arch .pc-title { font-size: calc(8cqi * var(--pc-title-scale)); }
.pc-zone-lower { inset: 63% 12% 7%; align-items: center; justify-content: flex-start; text-align: center; }
.pc-zone-quiet { inset: 15% 46% auto 10%; align-items: flex-start; text-align: left; }
.pc-zone-quiet .pc-title { font-size: calc(7.2cqi * var(--pc-title-scale)); font-weight: 400; }
.pc-letterpress .pc-title { text-transform: uppercase; letter-spacing: 0.08em; font-size: calc(7.6cqi * var(--pc-title-scale)); color: var(--pc-accent); text-shadow: 0 1px 0 rgb(255 255 255 / 80%), 0 -1px 0 rgb(0 0 0 / 18%); }
.pc-mood-quiet .pc-kicker { letter-spacing: 0.1em; font-weight: 500; }
/* photo cover */
.pc-cover-photo { position: absolute; z-index: 1; inset: 6% 6% 33% 6%; overflow: hidden; border-radius: 2px; background: var(--pc-paper); box-shadow: 0 1px 3px rgb(0 0 0 / 18%); }
.pc-cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc-cover-photo-empty { display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgb(255 255 255 / 82%) 0 10px, rgb(255 255 255 / 66%) 10px 20px); border: 2px dashed rgb(0 0 0 / 22%); box-shadow: none; }
.pc-cover-photo-empty span { font-family: var(--font-ui); font-size: 3.6cqi; color: #3b3b3b; background: rgb(255 255 255 / 92%); padding: 1cqi 3cqi; border-radius: 999px; }
.pc-ly-photo .pc-cover-text { inset: auto 7% 5% 7%; height: 26%; align-items: center; justify-content: center; text-align: center; gap: 1.4cqi; padding: 2cqi 4cqi; background: var(--pc-zone); border-radius: 2px; }
.pc-ly-photo .pc-title { font-size: calc(7.4cqi * var(--pc-title-scale)); }
/* letter layout */
.pc-ly-letter .pc-spread { gap: 0; max-width: 720px; margin-inline: auto; }
.pc-band { position: relative; aspect-ratio: 5 / 2; overflow: hidden; border-radius: 4px 4px 0 0; background: var(--pc-bg); box-shadow: var(--shadow-paper); }
.pc-band .pc-art-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-ly-letter .pc-inside { aspect-ratio: auto; border-radius: 0 0 4px 4px; padding: clamp(24px, 8cqi, 64px) clamp(22px, 9cqi, 72px); }
.pc-letter-title { margin: 0 0 4cqi; font-family: var(--pc-display); font-weight: 500; font-size: clamp(1.6rem, 6.5cqi, 2.6rem); line-height: 1.1; color: var(--pc-ink); overflow-wrap: anywhere; }
/* inside page */
.pc-inside { padding: 9cqi 10cqi; display: flex; flex-direction: column; gap: 3.2cqi; }
.pc-orn { width: 22cqi; max-width: 120px; margin: 0 auto 1cqi; opacity: 0.92; }
.pc-orn-svg { width: 100%; height: auto; aspect-ratio: 1; }
.pc-dear { margin: 0; font-family: var(--pc-display); font-size: clamp(1.15rem, 5.4cqi, 1.9rem); line-height: 1.2; color: var(--pc-ink); overflow-wrap: anywhere; }
.pc-message { font-size: clamp(1rem, 3.7cqi, 1.22rem); line-height: 1.66; color: var(--pc-ink); overflow-wrap: anywhere; }
.pc-message p + p { margin-top: 0.85em; }
.pc-empty-hint { color: var(--pc-soft); font-style: italic; }
.pc-signature { margin: auto 0 0; padding-top: 2cqi; font-family: var(--pc-display); font-size: clamp(1.15rem, 5.2cqi, 1.85rem); line-height: 1.25; color: var(--pc-accent); text-align: right; overflow-wrap: anywhere; }
.pc-fp-script .pc-signature, .pc-fp-script .pc-dear { font-size: clamp(1.5rem, 7cqi, 2.4rem); }
.pc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 2.4cqi; margin-top: 2cqi; }
.pc-photo { margin: 0; background: #fff; padding: 1.6cqi 1.6cqi 4cqi; box-shadow: 0 1px 3px rgb(0 0 0 / 16%); border-radius: 2px; }
.pc-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pc-mood-playful .pc-photo:nth-child(odd) { transform: rotate(-1.5deg); }
.pc-mood-playful .pc-photo:nth-child(even) { transform: rotate(1.2deg); }
/* message book */
.pc-book { margin-top: clamp(20px, 4cqi, 40px); padding: clamp(16px, 4cqi, 36px); background: var(--pc-paper); border-radius: 6px; box-shadow: var(--shadow-paper); }
.pc-book-head { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(14px, 3cqi, 24px); }
.pc-book-orn { width: 52px; flex: none; }
.pc-book-title { margin: 0; font-family: var(--pc-display); font-weight: 500; font-size: clamp(1.25rem, 3.4cqi, 1.8rem); color: var(--pc-ink); }
.pc-notes { list-style: none; margin: 0; padding: 0; columns: 15rem; column-gap: clamp(12px, 2.4cqi, 20px); }
.pc-note { break-inside: avoid; margin: 0 0 clamp(12px, 2.4cqi, 20px); }
.pc-note article { background: #fff; border: 1px solid rgb(0 0 0 / 7%); border-radius: 6px; padding: 16px 18px 14px; box-shadow: 0 1px 2px rgb(40 28 20 / 6%); display: grid; gap: 8px; }
.pc-mood-playful .pc-note-1 article { transform: rotate(0.6deg); }
.pc-mood-playful .pc-note-3 article { transform: rotate(-0.6deg); }
.pc-mood-festive .pc-note article { border-top: 3px solid var(--pc-accent); }
.pc-note-photo { margin: -4px -6px 4px; }
.pc-note-photo img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 3px; }
.pc-note-title { margin: 0; font-family: var(--pc-display); font-size: 1.15rem; font-weight: 600; color: var(--pc-ink); overflow-wrap: anywhere; }
.pc-note-body { font-size: 1rem; line-height: 1.6; color: var(--pc-ink); overflow-wrap: anywhere; }
.pc-note-body p + p { margin-top: 0.6em; }
.pc-note-author { margin: 0; font-family: var(--pc-display); font-size: 1.05rem; color: var(--pc-accent); text-align: right; overflow-wrap: anywhere; }
.pc-fp-script .pc-note-author { font-size: 1.4rem; }
.pc-book-empty { color: var(--pc-soft); }
.pc-mood-quiet .pc-note article { box-shadow: none; }
/* thumbnails and covers */
.pc-view-thumb .pc-cover, .pc-view-cover .pc-cover { box-shadow: var(--shadow-paper); }
.pc-view-thumb .pc-kicker { font-size: 3.6cqi; }
@container (max-width: 380px) { .pc-book { padding: 14px; } .pc-note article { padding: 14px; } }

/* generated: template palettes */
.pc-t-bday-confetti{--pc-bg:#FFF8EC;--pc-zone:#FFF8EC;--pc-cover-ink:#2B2118;--pc-paper:#FFFCF5;--pc-ink:#2B2118;--pc-soft:#6A5847}
.pc-t-bday-candle{--pc-bg:#231B26;--pc-zone:#231B26;--pc-cover-ink:#F8EEDD;--pc-paper:#FBF6EE;--pc-ink:#2A2026;--pc-soft:#66575F}
.pc-t-thanks-botanical{--pc-bg:#F4F1E8;--pc-zone:#F4F1E8;--pc-cover-ink:#26301F;--pc-paper:#FAF8F2;--pc-ink:#26301F;--pc-soft:#5B6552}
.pc-t-thanks-letterpress{--pc-bg:#FAF7F0;--pc-zone:#FAF7F0;--pc-cover-ink:#2C2622;--pc-paper:#FCFAF5;--pc-ink:#2C2622;--pc-soft:#635A52}
.pc-t-appreciation-laurel{--pc-bg:#FBF8F1;--pc-zone:#FBF8F1;--pc-cover-ink:#2B261C;--pc-paper:#FDFBF6;--pc-ink:#2B261C;--pc-soft:#625948}
.pc-t-congrats-burst{--pc-bg:#FFF6E9;--pc-zone:#FFFCF6;--pc-cover-ink:#1F2238;--pc-paper:#FFFCF6;--pc-ink:#1F2238;--pc-soft:#565A72}
.pc-t-farewell-horizon{--pc-bg:#FBE9DA;--pc-zone:#FCEADB;--pc-cover-ink:#33233A;--pc-paper:#FCF7F2;--pc-ink:#33233A;--pc-soft:#665869}
.pc-t-farewell-paper-plane{--pc-bg:#F3F7FA;--pc-zone:#F3F7FA;--pc-cover-ink:#1E2B3A;--pc-paper:#FAFCFD;--pc-ink:#1E2B3A;--pc-soft:#52606F}
.pc-t-retirement-sunset{--pc-bg:#FBF4EA;--pc-zone:#FBF4EA;--pc-cover-ink:#2E2420;--pc-paper:#FDF9F3;--pc-ink:#2E2420;--pc-soft:#655852}
.pc-t-christmas-evergreen{--pc-bg:#F7F4EC;--pc-zone:#F7F4EC;--pc-cover-ink:#1F3328;--pc-paper:#FBF9F4;--pc-ink:#1F3328;--pc-soft:#556259}
.pc-t-christmas-ornament{--pc-bg:#163128;--pc-zone:#163128;--pc-cover-ink:#F6F0E2;--pc-paper:#FAF7F0;--pc-ink:#1D2A24;--pc-soft:#53605A}
.pc-t-holidays-snowfall{--pc-bg:#15213B;--pc-zone:#15213B;--pc-cover-ink:#F2F5FA;--pc-paper:#F8F9FB;--pc-ink:#1A2338;--pc-soft:#4F5A70}
.pc-t-newyear-firework{--pc-bg:#0E1A33;--pc-zone:#0E1A33;--pc-cover-ink:#F5F1E6;--pc-paper:#F9F8F4;--pc-ink:#141B2E;--pc-soft:#4E566B}
.pc-t-graduation-cap{--pc-bg:#F2F4F8;--pc-zone:#F2F4F8;--pc-cover-ink:#1B2540;--pc-paper:#F9FAFC;--pc-ink:#1B2540;--pc-soft:#525C74}
.pc-t-wedding-arch{--pc-bg:#FCF7F3;--pc-zone:#FCF7F3;--pc-cover-ink:#3A2A2A;--pc-paper:#FDFAF7;--pc-ink:#3A2A2A;--pc-soft:#6B5A58}
.pc-t-anniversary-rings{--pc-bg:#F8F5F0;--pc-zone:#F8F5F0;--pc-cover-ink:#2E2626;--pc-paper:#FCFAF7;--pc-ink:#2E2626;--pc-soft:#655B5A}
.pc-t-getwell-tulip{--pc-bg:#FFF9EE;--pc-zone:#FFF9EE;--pc-cover-ink:#2A2A1E;--pc-paper:#FFFCF6;--pc-ink:#2A2A1E;--pc-soft:#5E5D4E}
.pc-t-sympathy-lily{--pc-bg:#F1F2EE;--pc-zone:#F1F2EE;--pc-cover-ink:#2E3330;--pc-paper:#F8F8F5;--pc-ink:#2E3330;--pc-soft:#5D635F}
.pc-t-general-ink{--pc-bg:#F7F5F0;--pc-zone:#F7F5F0;--pc-cover-ink:#22252B;--pc-paper:#FBFAF7;--pc-ink:#22252B;--pc-soft:#5A5E66}
.pc-t-general-blossom{--pc-bg:#FDF6F4;--pc-zone:#FDF6F4;--pc-cover-ink:#3A2A2C;--pc-paper:#FEFAF8;--pc-ink:#3A2A2C;--pc-soft:#6C5A5D}
.pc-t-appreciation-medallion{--pc-bg:#F2EFE7;--pc-zone:#FCFBF7;--pc-cover-ink:#1E2742;--pc-paper:#FCFBF7;--pc-ink:#1E2742;--pc-soft:#525A6E}
.pc-t-appreciation-peony{--pc-bg:#FBF6F1;--pc-zone:#FBF6F1;--pc-cover-ink:#3B2A2C;--pc-paper:#FDFAF6;--pc-ink:#3B2A2C;--pc-soft:#6E5B5D}
.pc-t-congrats-coupes{--pc-bg:#15272A;--pc-zone:#15272A;--pc-cover-ink:#F5ECD9;--pc-paper:#FBF8F1;--pc-ink:#1E2A2B;--pc-soft:#53605F}
.pc-t-congrats-summit{--pc-bg:#F6F2EA;--pc-zone:#F6F2EA;--pc-cover-ink:#1F2A3A;--pc-paper:#FAF8F3;--pc-ink:#1F2A3A;--pc-soft:#535D6B}
.pc-t-retirement-garden{--pc-bg:#F7F3EA;--pc-zone:#F7F3EA;--pc-cover-ink:#2C2A22;--pc-paper:#FBF9F3;--pc-ink:#2C2A22;--pc-soft:#5E5A4E}
.pc-t-retirement-compass{--pc-bg:#F2EEE3;--pc-zone:#F2EEE3;--pc-cover-ink:#2E281E;--pc-paper:#FAF8F2;--pc-ink:#2E281E;--pc-soft:#625948}
.pc-t-holidays-knit{--pc-bg:#F1E9DB;--pc-zone:#F1E9DB;--pc-cover-ink:#1F2B44;--pc-paper:#FBF8F2;--pc-ink:#1F2B44;--pc-soft:#545D70}
.pc-t-newyear-clock{--pc-bg:#F6F2E9;--pc-zone:#F6F2E9;--pc-cover-ink:#22263A;--pc-paper:#FBF9F4;--pc-ink:#22263A;--pc-soft:#575B6D}
.pc-t-newyear-lights{--pc-bg:#1D1834;--pc-zone:#17132B;--pc-cover-ink:#F7F0E2;--pc-paper:#FAF8F4;--pc-ink:#201C30;--pc-soft:#565266}
.pc-t-graduation-diploma{--pc-bg:#F4F1EA;--pc-zone:#F4F1EA;--pc-cover-ink:#22283A;--pc-paper:#FAF9F5;--pc-ink:#22283A;--pc-soft:#565B6B}
.pc-t-wedding-eucalyptus{--pc-bg:#FAF8F4;--pc-zone:#FAF8F4;--pc-cover-ink:#2C3934;--pc-paper:#FCFBF8;--pc-ink:#2C3934;--pc-soft:#5A6762}
.pc-t-wedding-cake{--pc-bg:#FAF4F0;--pc-zone:#FAF4F0;--pc-cover-ink:#3A2A2A;--pc-paper:#FDFAF7;--pc-ink:#3A2A2A;--pc-soft:#6B5A58}
.pc-t-anniversary-roses{--pc-bg:#2B1720;--pc-zone:#2B1720;--pc-cover-ink:#F6E9E2;--pc-paper:#FCF8F6;--pc-ink:#2E1E24;--pc-soft:#66555B}
.pc-t-getwell-tea{--pc-bg:#F8F4EC;--pc-zone:#F8F4EC;--pc-cover-ink:#2D2A24;--pc-paper:#FCFAF5;--pc-ink:#2D2A24;--pc-soft:#615C52}
.pc-t-sympathy-feather{--pc-bg:#F1EFEA;--pc-zone:#F1EFEA;--pc-cover-ink:#2E2F2C;--pc-paper:#F8F7F4;--pc-ink:#2E2F2C;--pc-soft:#5E5F5A}
.pc-t-sympathy-reeds{--pc-bg:#EEF0F0;--pc-zone:#EDEFEF;--pc-cover-ink:#283035;--pc-paper:#F7F8F7;--pc-ink:#283035;--pc-soft:#58616A}
.pc-t-bday-balloons{--pc-bg:#FFF7EE;--pc-zone:#FFF7EE;--pc-cover-ink:#2E2420;--pc-paper:#FFFBF5;--pc-ink:#2E2420;--pc-soft:#65584F}
.pc-t-thanks-lemons{--pc-bg:#FBF8EF;--pc-zone:#FBF8EF;--pc-cover-ink:#2B2E1E;--pc-paper:#FDFBF5;--pc-ink:#2B2E1E;--pc-soft:#5E604E}
.pc-t-general-marbled{--pc-bg:#EEE5D2;--pc-zone:#FBF8F1;--pc-cover-ink:#22304A;--pc-paper:#FCFAF5;--pc-ink:#22304A;--pc-soft:#535D6E}
.pc-t-christmas-wreath{--pc-bg:#F6F2EA;--pc-zone:#F6F2EA;--pc-cover-ink:#1F3227;--pc-paper:#FBF9F4;--pc-ink:#1F3227;--pc-soft:#55625A}
.pc-t-bday-party-hats{--pc-bg:#FFF6EC;--pc-zone:#FFF6EC;--pc-cover-ink:#2B2030;--pc-paper:#FFFBF5;--pc-ink:#2B2030;--pc-soft:#675B66}
.pc-t-thanks-wax-seal{--pc-bg:#F3EEE6;--pc-zone:#F3EEE6;--pc-cover-ink:#2E2722;--pc-paper:#FBF8F3;--pc-ink:#2E2722;--pc-soft:#655B53}
.pc-t-appreciation-tiles{--pc-bg:#F6F2EA;--pc-zone:#F6F2EA;--pc-cover-ink:#1F2A40;--pc-paper:#FBF9F4;--pc-ink:#1F2A40;--pc-soft:#55607A}
.pc-t-congrats-bullseye{--pc-bg:#F5F2EC;--pc-zone:#F5F2EC;--pc-cover-ink:#1E2A40;--pc-paper:#FBF9F5;--pc-ink:#1E2A40;--pc-soft:#545E72}
.pc-t-farewell-suitcase{--pc-bg:#EDF3F4;--pc-zone:#EDF3F4;--pc-cover-ink:#1F2D36;--pc-paper:#F9FBFB;--pc-ink:#1F2D36;--pc-soft:#52616B}
.pc-t-farewell-skyline{--pc-bg:#F4F1EB;--pc-zone:#F4F1EB;--pc-cover-ink:#1E2A3B;--pc-paper:#FAF9F6;--pc-ink:#1E2A3B;--pc-soft:#55606F}
.pc-t-retirement-hammock{--pc-bg:#F8F3EA;--pc-zone:#F8F3EA;--pc-cover-ink:#2C2620;--pc-paper:#FCF9F3;--pc-ink:#2C2620;--pc-soft:#645A50}
.pc-t-christmas-tree-trio{--pc-bg:#F8F4EC;--pc-zone:#F8F4EC;--pc-cover-ink:#1E3529;--pc-paper:#FCFAF5;--pc-ink:#1E3529;--pc-soft:#53625A}
.pc-t-holidays-snowglobe{--pc-bg:#26192A;--pc-zone:#26192A;--pc-cover-ink:#F7EFE4;--pc-paper:#FBF8F4;--pc-ink:#26192A;--pc-soft:#665566}
.pc-t-holidays-skates{--pc-bg:#EAF0F2;--pc-zone:#EAF0F2;--pc-cover-ink:#1D2A33;--pc-paper:#F8FAFB;--pc-ink:#1D2A33;--pc-soft:#4F5E68}
.pc-t-newyear-sparkler{--pc-bg:#16141C;--pc-zone:#1C1923;--pc-cover-ink:#F6EFDF;--pc-paper:#FAF8F3;--pc-ink:#1E1B24;--pc-soft:#5A5563}
.pc-t-graduation-tassel{--pc-bg:#F4F2EE;--pc-zone:#F4F2EE;--pc-cover-ink:#1E2433;--pc-paper:#FAF9F6;--pc-ink:#1E2433;--pc-soft:#565C6B}
.pc-t-graduation-books{--pc-bg:#FBF5E8;--pc-zone:#FBF5E8;--pc-cover-ink:#22253A;--pc-paper:#FFFBF3;--pc-ink:#22253A;--pc-soft:#5C5E70}
.pc-t-wedding-flourish{--pc-bg:#FBF8F3;--pc-zone:#FBF8F3;--pc-cover-ink:#33292A;--pc-paper:#FDFBF8;--pc-ink:#33292A;--pc-soft:#695C5A}
.pc-t-anniversary-heartline{--pc-bg:#FBF3EF;--pc-zone:#FBF3EF;--pc-cover-ink:#3A2428;--pc-paper:#FDF9F7;--pc-ink:#3A2428;--pc-soft:#6E5A5D}
.pc-t-anniversary-lovebirds{--pc-bg:#F6F2EA;--pc-zone:#F6F2EA;--pc-cover-ink:#2F2A24;--pc-paper:#FBF9F4;--pc-ink:#2F2A24;--pc-soft:#645C52}
.pc-t-getwell-sunshine{--pc-bg:#FDF8EE;--pc-zone:#FDF8EE;--pc-cover-ink:#2C2618;--pc-paper:#FFFCF6;--pc-ink:#2C2618;--pc-soft:#625A48}
.pc-t-getwell-sprout{--pc-bg:#F1F5EC;--pc-zone:#F1F5EC;--pc-cover-ink:#22301F;--pc-paper:#F9FBF6;--pc-ink:#22301F;--pc-soft:#556250}
.pc-t-sympathy-ripples{--pc-bg:#EEF0EC;--pc-zone:#EEF0EC;--pc-cover-ink:#2D3330;--pc-paper:#F7F8F5;--pc-ink:#2D3330;--pc-soft:#5B625E}
.pc-t-general-arcs{--pc-bg:#F7F1E7;--pc-zone:#F7F1E7;--pc-cover-ink:#2E241E;--pc-paper:#FCF9F4;--pc-ink:#2E241E;--pc-soft:#665A50}

/* generated: accents (design_options_v2.6.json) */
.pc-ac-rose{--pc-accent:#A3395A;--pc-accent-d:#F3A9BF}
.pc-ac-coral{--pc-accent:#B03F2A;--pc-accent-d:#F7AE98}
.pc-ac-amber{--pc-accent:#8A5300;--pc-accent-d:#F2C26B}
.pc-ac-olive{--pc-accent:#5B6A1E;--pc-accent-d:#C9D58A}
.pc-ac-forest{--pc-accent:#2D6A43;--pc-accent-d:#9FD3AE}
.pc-ac-teal{--pc-accent:#1B6C68;--pc-accent-d:#8ED6CF}
.pc-ac-ocean{--pc-accent:#1F5C8A;--pc-accent-d:#9CC8EE}
.pc-ac-indigo{--pc-accent:#4148A3;--pc-accent-d:#B5BAF2}
.pc-ac-plum{--pc-accent:#6D3A7C;--pc-accent-d:#D9B0E4}
.pc-ac-berry{--pc-accent:#8C2350;--pc-accent-d:#F0A3C3}
.pc-ac-slate{--pc-accent:#495768;--pc-accent-d:#BCC7D4}
.pc-ac-ink{--pc-accent:#22283A;--pc-accent-d:#E6E3DA}

/* ---------- Print (Letter and A4) ---------- */
@page { margin: 12mm; }
@page letter { size: letter; margin: 12mm; }
@page a4 { size: A4; margin: 12mm; }
@media print {
  html, body { background: #fff !important; }
  .no-print, .site-header, .site-footer, .app-bar, .app-nav, .status-region, .skip-link { display: none !important; }
  .paper-letter .print-root { page: letter; }
  .paper-a4 .print-root { page: a4; }
  .print-root { max-width: none; padding: 0; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pc-card { container-type: normal; }
  .pc-spread { display: block; }
  .pc-sheet { box-shadow: none; border-radius: 0; }
  .pc-cover { width: 124mm; margin: 0 auto; break-after: page; container-type: inline-size; }
  .pc-band { box-shadow: none; }
  .pc-inside { width: 124mm; aspect-ratio: auto; min-height: 173mm; margin: 0 auto; break-after: page; border: 0.3mm solid #e6e1d8; }
  .pc-ly-letter .pc-inside { width: auto; min-height: 0; border: 0; break-after: auto; }
  .pc-photo, .pc-note article { box-shadow: none; transform: none !important; }
  .pc-book { box-shadow: none; padding: 0; background: #fff; }
  .pc-notes { columns: 2; column-gap: 6mm; }
  .pc-note { break-inside: avoid; }
  .pc-note article { border: 0.3mm solid #ddd; }
  a { color: inherit; text-decoration: none; }
}
