/* =============================================================================
   DESIGN SYSTEM — Production Component Library
   Extracted from templates/design_system/standalone.html
   Source of truth for all ds-* component classes.
   ============================================================================= */

/* ========== BUTTONS (all values via --btn-* tokens) ========== */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap);
    padding: var(--btn-padding);
    font-family: var(--btn-font);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    border-radius: var(--btn-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--btn-transition);
    text-decoration: none;
    white-space: nowrap;
}
.ds-btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    border-color: var(--btn-primary-border);
}
.ds-btn--primary:hover { background: var(--btn-primary-bg-hover); color: var(--btn-primary-color-hover); box-shadow: var(--btn-primary-glow); border-color: var(--btn-primary-bg-hover); }
.ds-btn--secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
    border-color: var(--btn-secondary-border);
}
.ds-btn--secondary:hover { border-color: var(--btn-secondary-border-hover); background: var(--btn-secondary-bg-hover); }
.ds-btn--ghost {
    background: var(--btn-ghost-bg);
    color: var(--btn-ghost-color);
    border-color: transparent;
}
.ds-btn--ghost:hover { color: var(--btn-ghost-color-hover); background: var(--btn-ghost-bg-hover); }
.ds-btn--status-error {
    background: var(--btn-danger-bg);
    color: var(--btn-danger-color);
    border-color: var(--btn-danger-border);
}
.ds-btn--status-error:hover { background: var(--btn-danger-bg-hover); color: var(--btn-danger-color-hover); }
.ds-btn--success {
    background: var(--btn-success-bg);
    color: var(--btn-success-color);
    border-color: var(--btn-success-border);
}
.ds-btn--success:hover { background: var(--btn-success-bg-hover); color: var(--btn-success-color-hover); }
/* Dark: Slate solid */
.ds-btn--dark {
    background: var(--btn-dark-bg);
    color: var(--btn-dark-color);
    border-color: var(--btn-dark-border);
}
.ds-btn--dark:hover { background: var(--btn-dark-bg-hover); color: var(--btn-dark-color-hover); border-color: var(--btn-dark-bg-hover); }
/* Black: Pure black solid, hover → neon green */
.ds-btn--black {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}
.ds-btn--black:hover { background: var(--accent-primary); color: var(--color-black); border-color: var(--accent-primary); }
/* Yellow: Highlight CTA */
.ds-btn--highlight-yellow {
    background: var(--btn-yellow-bg);
    color: var(--btn-yellow-color);
    border-color: var(--btn-yellow-border);
}
.ds-btn--highlight-yellow:hover { background: var(--btn-yellow-bg-hover); color: var(--btn-yellow-color-hover); border-color: var(--btn-yellow-bg-hover); }
/* Accent: Solid purple with white text */
.ds-btn--accent {
    background: var(--highlight-purple);
    color: var(--text-inverse);
    border-color: var(--highlight-purple);
}
.ds-btn--accent:hover { background: var(--accent-tertiary); color: var(--text-inverse); border-color: var(--accent-tertiary); }
/* Glass: Frosted white tint for dark backgrounds */
.ds-btn--glass {
    background: var(--btn-glass-bg);
    color: var(--btn-glass-color);
    border-color: var(--btn-glass-border);
    backdrop-filter: blur(var(--btn-glass-blur));
    -webkit-backdrop-filter: blur(var(--btn-glass-blur));
}
.ds-btn--glass:hover { background: var(--btn-glass-bg-hover); border-color: var(--btn-glass-border-hover); }
/* Sizes */
.ds-btn--sm { padding: var(--btn-sm-padding); font-size: var(--btn-sm-font-size); }
.ds-btn--lg { padding: var(--btn-lg-padding); font-size: var(--btn-lg-font-size); }
/* States */
.ds-btn:disabled, .ds-btn--disabled { opacity: var(--btn-disabled-opacity); pointer-events: none; }
.ds-btn--loading { position: relative; color: transparent; pointer-events: none; }
.ds-btn--loading::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,0.15); border-top-color: var(--text-primary);
    border-radius: 50%; animation: ds-spin 0.6s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ========== INPUTS ========== */
.ds-input {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--surface-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    outline: none;
    transition: all 0.2s ease;
}
.ds-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-primary-subtle); }
.ds-input--error { border-color: var(--status-error); }
.ds-input--error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.ds-input--success { border-color: var(--status-success); }

.ds-select {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ds-textarea {
    min-height: 100px;
    resize: vertical;
    border-radius: var(--radius-md, 24px);
}

/* ========== TOGGLE & CHECKBOX ========== */
.ds-toggle {
    position: relative; width: 44px; height: 24px;
    background: var(--border-default); border-radius: var(--radius-full, 999px);
    cursor: pointer; transition: background 0.2s;
    border: none;
}
.ds-toggle::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: var(--surface-primary);
    border-radius: 50%; transition: transform 0.2s;
}
.ds-toggle--on { background: var(--accent-primary); }
.ds-toggle--on::after { transform: translateX(20px); }

.ds-checkbox {
    width: 20px; height: 20px; border-radius: var(--radius-sm, 6px);
    border: 1.5px solid var(--border-strong);
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease; flex-shrink: 0;
}
.ds-checkbox--checked {
    background: var(--accent-primary); border-color: var(--accent-primary);
}
.ds-checkbox--checked::after {
    content: ''; width: 6px; height: 10px;
    border: solid var(--text-inverse); border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

.ds-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease; flex-shrink: 0;
}
.ds-radio--selected { border-color: var(--accent-primary); }
.ds-radio--selected::after {
    content: ''; width: 10px; height: 10px;
    background: var(--accent-primary); border-radius: 50%;
}

/* ========== CARDS ========== */
.ds-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md, 24px);
    padding: var(--space-6, 24px);
    transition: all 0.25s ease;
}
.ds-card:hover {
    border-color: var(--accent-primary-subtle);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.ds-card__header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.ds-card__icon {
    width: 40px; height: 40px; border-radius: var(--radius-md, 24px);
    background: var(--accent-primary-subtle);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-lg);
}
.ds-card__title { font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--text-primary); }
.ds-card__desc { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.5; }
.ds-card__footer { margin-top: 16px; display: flex; align-items: center; gap: 8px; }

.ds-card--elevated {
    background: var(--surface-elevated);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
}
.ds-card--orange { border-left: 3px solid var(--color-orange-500, var(--color-orange-500)); }
.ds-card--cyan { border-left: 3px solid var(--accent-primary); }
.ds-card--glass {
    background: rgba(255,255,255,0.7);
    border-color: var(--border-subtle);
}

/* ========== SHOP GRID (responsive card grid for shop sections) ========== */
.ds-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--shop-grid-min-col), 1fr));
    gap: var(--shop-grid-gap);
    padding: var(--space-2) var(--space-4) var(--space-4);
}
/* Variant: events (wider min) */
.ds-shop-grid--events {
    grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-event-min-w), 1fr));
}
/* Variant: apps (portrait cards, tighter min) */
.ds-shop-grid--apps {
    grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-app-min-w), 1fr));
}
/* Variant: quests */
.ds-shop-grid--quests {
    grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-quest-min-w), 1fr));
}
/* Variant: effects + coiny (compact cards) */
.ds-shop-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-effect-min-w), 1fr));
}
@media (max-width: 767px) {
    .ds-shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(var(--shop-grid-min-col-mobile), 1fr));
        gap: var(--shop-grid-gap-mobile);
        padding: var(--space-2) var(--space-3) var(--space-3);
    }
    .ds-shop-grid--events {
        grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-event-min-w-mobile), 1fr));
    }
    .ds-shop-grid--apps {
        grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-app-min-w-mobile), 1fr));
    }
    .ds-shop-grid--quests {
        grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-quest-min-w-mobile), 1fr));
    }
    .ds-shop-grid--compact {
        grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-effect-min-w-mobile), 1fr));
    }
}

/* ========== ALERTS ========== */
.ds-alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius-md, 24px);
    font-size: var(--text-xs); line-height: 1.5;
    border: 1px solid transparent;
}
.ds-alert__icon { font-size: var(--text-base); flex-shrink: 0; margin-top: 1px; }
.ds-alert--info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.15); color: var(--color-blue-600, var(--color-blue-600)); }
.ds-alert--success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.15); color: var(--status-success-dark, var(--color-green-600)); }
.ds-alert--warning { background: rgba(242,232,65,0.14); border-color: rgba(242,232,65,0.34); color: var(--color-orange-600, var(--highlight-yellow)); }
.ds-alert--error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.15); color: var(--status-error-dark, var(--color-red-600)); }
.ds-alert[hidden] { display: none; }

/* ========== TOAST ========== */
.ds-toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: var(--radius-md, 24px);
    background: var(--surface-elevated); border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-xs); color: var(--text-primary);
    min-width: 260px;
}
.ds-toast__bar { width: 3px; height: 20px; border-radius: var(--radius-xs); flex-shrink: 0; }
.ds-toast__bar--info { background: var(--color-blue-500); }
.ds-toast__bar--success { background: var(--status-success); }
.ds-toast__bar--error { background: var(--status-error); }
.ds-toast[hidden] { display: none; }

.boho-share-toast {
    position: fixed;
    bottom: var(--space-16);
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-dark);
    color: var(--surface-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-normal);
    z-index: var(--z-toast);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-default);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-default);
    white-space: nowrap;
}
.boho-share-toast.is-visible { opacity: 1; }
.boho-share-is-generating {
    pointer-events: none;
    opacity: var(--btn-disabled-opacity);
}
.boho-share-sharpie {
    position: fixed;
    inset-block-start: var(--space-0);
    inset-inline-start: var(--space-0);
    opacity: 0;
    pointer-events: none;
}

/* ========== BADGES / TAGS ========== */
.ds-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: var(--text-xs); font-weight: var(--font-semibold);
    letter-spacing: 0.3px;
}
.ds-badge--cyan { background: var(--accent-primary-subtle); color: var(--text-accent); }
.ds-badge--orange { background: rgba(242,232,65,0.18); color: var(--color-orange-600, var(--highlight-yellow)); }
.ds-badge--green { background: rgba(34,197,94,0.12); color: var(--status-success-dark, var(--color-green-600)); }
.ds-badge--red { background: rgba(239,68,68,0.12); color: var(--status-error-dark, var(--color-red-600)); }
.ds-badge--neutral { background: rgba(0,0,0,0.05); color: var(--text-secondary); }

/* ========== HIGHLIGHTS (text background accents) ========== */
/* Brand rule: highlight wraps the text with even padding top and bottom. */
.ds-highlight { display: inline; padding: 2px 8px; line-height: 1; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ds-highlight--highlight-yellow { background: var(--highlight-yellow); color: #000; }
.ds-highlight--purple { background: var(--highlight-purple); color: #fff; }
.ds-highlight--neon { background: var(--highlight-neon); color: #000; }
.ds-highlight--blue { background: var(--highlight-blue); color: #fff; }
.ds-highlight--black { background: #000; color: #fff; }

/* ========== STRIPS (full-width color sections) ========== */
.ds-strip { width: 100%; }
.ds-strip--neon { background: var(--highlight-neon); color: #000; }
.ds-strip--blue { background: var(--highlight-blue); color: #fff; }
.ds-strip--purple { background: var(--highlight-purple); color: #fff; }
.ds-strip--black { background: #000; color: #fff; }
.ds-strip--highlight-yellow { background: var(--highlight-yellow); color: #000; }

/* ========== KICKERS (small uppercase eyebrow labels) ==========
   Use above section headings. Tracked, uppercase, bold small text on a
   colored chip. Replaces bespoke .kicker-pill / .sec-label patterns. */
.ds-kicker {
    display: inline-block;
    align-self: flex-start; /* Prevent stretch when nested inside flex-column parents (e.g. .ds-spread__copy) */
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--font-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-6);
    line-height: 1;
}
.ds-kicker--highlight-yellow { background: var(--highlight-yellow); color: #000; }
.ds-kicker--purple { background: var(--highlight-purple); color: #fff; }
.ds-kicker--neon { background: var(--highlight-neon); color: #000; }
.ds-kicker--blue { background: var(--highlight-blue); color: #fff; }
.ds-kicker--ghost { background: transparent; color: var(--accent-tertiary); padding-left: 0; padding-right: 0; font-family: var(--font-mono); }
.ds-kicker--black { background: #000; color: #fff; }

/* ========== SLABS (rounded full-bleed section containers) ==========
   The primary rhythm block. Centered, max-width content, generous padding,
   optional color variant. Replaces bespoke .slab / .bm / .quote-slab / .final. */
.ds-slab {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-10);
    color: var(--text-primary);
}
.ds-slab > .ds-slab__inner {
    border-radius: var(--radius-hero);
    padding: var(--space-16) var(--space-10);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.ds-slab--plain > .ds-slab__inner { background: transparent; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
.ds-slab--paper > .ds-slab__inner { background: var(--surface-primary); }
.ds-slab--neon > .ds-slab__inner { background: var(--highlight-neon); color: #000; }
.ds-slab--blue > .ds-slab__inner { background: var(--highlight-blue); color: #fff; }
.ds-slab--purple > .ds-slab__inner { background: var(--highlight-purple); color: #fff; }
.ds-slab--dark > .ds-slab__inner { background: var(--accent-dark); color: #fff; }
/* Radial sheen — legacy brand technique from /sorting */
.ds-slab--neon > .ds-slab__inner::before,
.ds-slab--blue > .ds-slab__inner::before,
.ds-slab--dark > .ds-slab__inner::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.ds-slab--neon > .ds-slab__inner::before {
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,255,255,0.4) 0%, transparent 60%);
}
.ds-slab > .ds-slab__inner > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
    .ds-slab { padding: var(--space-8) var(--space-4); }
    /* Card-like variants (paper/neon/blue/purple/dark) tighten their inner padding;
       plain keeps padding:0 so its content shares the outer gutter. */
    .ds-slab:not(.ds-slab--plain) > .ds-slab__inner { padding: var(--space-10) var(--space-6); border-radius: var(--radius-xl); }
    /* Card-grid slabs (ds-trio) use the shared feed gutter so cards extend
       near-full-width on mobile, matching /feed. Text slabs keep wider padding. */
    .ds-slab:has(.ds-trio) {
        padding-left: var(--feed-card-gutter-mobile);
        padding-right: var(--feed-card-gutter-mobile);
    }
    .ds-slab:not(.ds-slab--plain):has(.ds-trio) > .ds-slab__inner {
        padding-left: var(--feed-card-gutter-mobile);
        padding-right: var(--feed-card-gutter-mobile);
    }
}

/* ========== DISPLAY (brand-shout headline scale) ==========
   Jakarta 800, tight tracking, used with inline .ds-highlight--* for the
   colored letterform bars. Replaces bespoke .headline / .sec-title. */
.ds-display {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: inherit;
    margin: 0 0 var(--space-6);
    font-size: clamp(48px, 8vw, 92px);
}
.ds-display--sm { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -0.025em; line-height: 1.05; }
.ds-display--md { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.025em; line-height: 1.05; }

/* Inline highlight bars inside a display use a more generous chip radius
   so the letterforms sit inside a pill, not a sticker. */
.ds-display .ds-highlight,
.ds-display--sm .ds-highlight,
.ds-display--md .ds-highlight {
    border-radius: var(--radius-lg);
    padding: 0 14px;
    display: inline-block;
    line-height: 1.08;
}

/* ========== SPLIT HEADING (Literata italic "soft" clause) ==========
   When a heading has an assertion + a contrasting second clause.
   Wrap the contrasting clause: <span class="ds-soft">...</span>. */
.ds-soft {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.015em;
}

/* Editorial body — Literata italic paragraph for quote slabs */
.ds-editorial {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--text-xl);
    line-height: 1.35;
    color: inherit;
}

/* ========== PROSE (long-form essay body) ==========
   Typographic rhythm for manifesto / editorial / docs pages. Sets paragraph
   spacing, max measure, link colors. Inverse variant for dark slabs. */
.ds-prose {
    max-width: 720px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
}
.ds-prose > * + * { margin-top: var(--space-5); }
.ds-prose p { margin: 0; }
.ds-prose strong { color: var(--text-primary); font-weight: var(--font-bold); }
.ds-prose a { color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ds-prose a:hover { color: var(--accent-secondary); }
.ds-prose .ds-editorial { font-size: var(--text-2xl); }

.ds-prose--inverse { color: rgba(255,255,255,0.92); }
.ds-prose--inverse strong { color: #fff; }
.ds-prose--inverse a { color: #fff; }
.ds-prose--wide { max-width: 820px; }
.ds-prose--centered { margin-left: auto; margin-right: auto; }

/* ========== TRIO (3-up card row) ==========
   Canonical 3-column card grid (e.g. "how it works" 01/02/03). */
.ds-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-8);
}
.ds-trio > .ds-card { padding: var(--space-6) var(--space-6) var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.ds-trio--duo { grid-template-columns: 1fr 1fr; }
.ds-trio--feature > .ds-card { padding: var(--space-8); gap: var(--space-4); }
@media (max-width: 900px) {
    .ds-trio, .ds-trio--duo { grid-template-columns: 1fr; }
}

/* ========== ICON TILE (colored square for card icons) ========== */
.ds-icon-tile {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ds-icon-tile--yellow { background: var(--highlight-yellow); color: #000; }
.ds-icon-tile--purple { background: var(--highlight-purple); color: #fff; }
.ds-icon-tile--neon { background: var(--highlight-neon); color: #000; }
.ds-icon-tile--blue { background: var(--highlight-blue); color: #fff; }
.ds-icon-tile--dark { background: var(--accent-dark); color: #fff; }
.ds-icon-tile svg { stroke: currentColor; }

/* Card body paragraph — standard muted supporting text */
.ds-card-body {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0;
}
.ds-card-body--sm { font-size: var(--text-sm); line-height: 1.5; }

/* Canonical card title (used inside .ds-card) */
.ds-card-title {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-primary);
    font-size: var(--text-2xl);
    margin: 0;
}
.ds-card-title .ds-soft { font-size: inherit; }

/* ========== SPREAD (alternating image + text two-column) ==========
   Editorial spread — one column is media (inline SVG, illustration, or image),
   the other is copy. Flips on alternate rows via --reverse modifier. */
.ds-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.ds-spread--reverse .ds-spread__media { order: 2; }
.ds-spread__media {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    background: var(--surface-secondary);
    display: flex; align-items: center; justify-content: center;
}
.ds-spread__media svg,
.ds-spread__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ds-spread__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.ds-spread__copy .ds-display,
.ds-spread__copy .ds-display--sm,
.ds-spread__copy .ds-display--md { margin-bottom: 0; }
@media (max-width: 900px) {
    .ds-spread { grid-template-columns: 1fr; gap: var(--space-8); }
    .ds-spread--reverse .ds-spread__media { order: 0; }
}

/* ========== TL;DR callout (quick-read takeaway) ==========
   Tight card used inside prose to surface a single insight. Pairs with any
   .ds-slab. */
.ds-tldr {
    display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-5) var(--space-6);
    border-left: 4px solid var(--accent-primary);
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}
.ds-tldr__label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: var(--font-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-tertiary);
}
.ds-tldr__text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    line-height: 1.35;
    color: var(--text-primary);
}
.ds-tldr--neon { border-left-color: var(--accent-primary); }
.ds-tldr--purple { border-left-color: var(--accent-tertiary); }
.ds-tldr--blue { border-left-color: var(--accent-secondary); }
.ds-tldr--yellow { border-left-color: var(--highlight-yellow); }

/* ========== STAT (single number callout) ========== */
.ds-stat-big {
    display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-6);
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.ds-stat-big__num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(48px, 6vw, 72px);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
}
.ds-stat-big__label {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ========== SLAB SIZE / CONTEXT MODIFIERS ========== */
.ds-slab--hero > .ds-slab__inner { padding: var(--space-16) var(--space-10) var(--space-10); }
.ds-slab--final { padding-top: var(--space-10); padding-bottom: var(--space-16); }
.ds-slab--final > .ds-slab__inner { text-align: center; padding: var(--space-16) var(--space-10); }
.ds-slab--final > .ds-slab__inner > .ds-display { max-width: 900px; margin-left: auto; margin-right: auto; }
.ds-slab--final > .ds-slab__inner > .ds-editorial { max-width: 560px; margin: 0 auto var(--space-8); }

.ds-slab--video { max-width: 960px; padding-top: 0; padding-bottom: var(--space-8); }
.ds-slab__video-heading {
    text-align: center;
    margin-bottom: var(--space-6);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.ds-slab__video-frame {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #000;
    aspect-ratio: 16 / 9;
}
.ds-slab__video-frame video { width: 100%; height: 100%; display: block; }
.ds-slab__video-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: var(--font-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-4);
}

/* ========== PAGE BASE (for public/landing pages) ========== */
.ds-page {
    background: var(--surface-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    margin: 0;
}
.ds-page img { display: block; max-width: 100%; }

/* ========== SITE NAV (landing-page header) ========== */
.ds-site-nav {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1280px; margin: 0 auto;
    padding: var(--space-5) var(--space-10);
    gap: var(--space-4);
}
.ds-site-nav__mark {
    display: inline-flex; align-items: center; gap: var(--space-2);
    background: var(--accent-primary); color: #000;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.ds-site-nav__logo-img { height: 22px; width: 22px; object-fit: contain; flex-shrink: 0; }
.ds-site-nav__wordmark {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}
.ds-site-nav__links { display: flex; align-items: center; gap: var(--space-6); }
.ds-site-nav__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 150ms;
}
.ds-site-nav__link:hover { color: var(--text-primary); }
.ds-site-nav__cta-mobile { display: none; }
@media (max-width: 768px) {
    .ds-site-nav { padding: var(--space-4) var(--space-4); }
    .ds-site-nav__links { display: none; }
    .ds-site-nav__cta-mobile { display: inline-flex; }
}

/* ========== SITE FOOTER (landing-page footer) ========== */
.ds-site-footer {
    background: var(--accent-dark);
    color: rgba(255,255,255,0.6);
    padding: var(--space-12) var(--space-10) var(--space-8);
    margin-top: var(--space-10);
}
.ds-site-footer__inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-6); flex-wrap: wrap;
}
.ds-site-footer__brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-3xl);
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0;
}
.ds-site-footer__brand .ds-soft { color: rgba(255,255,255,0.6); }
.ds-site-footer__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--text-base);
    color: rgba(255,255,255,0.5);
    margin: var(--space-2) 0 0;
}
.ds-site-footer__copy {
    max-width: 1280px; margin: var(--space-8) auto 0;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
}
@media (max-width: 768px) {
    .ds-site-footer { padding: var(--space-8) var(--space-4) var(--space-6); }
    .ds-site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ========== TEXT COLORS ========== */
.ds-text--green { color: var(--text-accent); }
.ds-text--blue { color: var(--accent-secondary); }
.ds-text--dark { color: var(--accent-dark); }
.ds-text--purple { color: var(--accent-tertiary); }
.ds-text--bold { color: #000; font-weight: var(--font-bold); }

/* ========== TAGS (inline highlight labels) ========== */
.ds-tag {
    display: inline;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: 0 4px;
    text-decoration: none;
    vertical-align: baseline;
}
.ds-tag--blue { background: var(--accent-secondary); color: #fff; }
.ds-tag--green { background: var(--accent-primary); color: #000; }
.ds-tag--purple { background: var(--accent-tertiary); color: #fff; }
.ds-tag--highlight-yellow { background: var(--highlight-yellow); color: #000; }
.ds-tag--dark { background: var(--accent-dark); color: #fff; }

/* ========== PILLS (section badges) ========== */
.ds-pill {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: #000;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

/* ========== QUIZ CARD (ds-quiz-card) ==========
   Reusable question/survey card. Composed of:
     .ds-quiz-card                      → frame
       .ds-quiz-card__body              → padded content area
         .ds-quiz-card__eyebrow         → "BOOK OF HOUSES · THE SORTING"
         .ds-quiz-card__progress        → kicker + bar + pip strip
           .ds-quiz-card__progress-kicker
           .ds-quiz-card__progress-bar      / __progress-bar-fill
           .ds-quiz-card__progress-pips     / __pip / __pip--active
         .ds-quiz-card__pill            → "● OPENING · WHO ARE YOU"
           .ds-quiz-card__pill-dot
         .ds-quiz-card__question        → serif question text
           (highlight via <mark class="ds-quiz-card__highlight">…</mark>
            or <span class="ds-highlight--neon">…</span>)
         .ds-quiz-card__example         → italic example line
         .ds-quiz-card__answer          → textarea + helper hint
           .ds-quiz-card__field         → input wrap
             .ds-quiz-card__textarea
             .ds-quiz-card__counter
             .ds-quiz-card__mic
           .ds-quiz-card__answer-hint
       .ds-quiz-card__footer            → BACK / Next row
         .ds-quiz-card__back
         .ds-quiz-card__next            (also accepts :disabled)
   Variants: .ds-quiz-card--accent-yellow|blue|purple|orange (drives --q-accent
   for the section pill + textarea focus + progress fill stop).
   Tokens: --quiz-* in tokens.css.
   ========================================================== */
.ds-quiz-card {
    --q-accent: var(--accent-tertiary);
    --q-accent-soft: rgba(147, 51, 234, 0.12);
    background: var(--quiz-card-bg);
    border: var(--quiz-card-border);
    border-radius: var(--quiz-card-radius);
    box-shadow: var(--quiz-card-shadow);
    max-width: var(--quiz-card-max-width);
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ds-quiz-card--accent-yellow  { --q-accent: var(--color-yellow-500, #eab308);   --q-accent-soft: rgba(234, 179, 8, 0.16); }
.ds-quiz-card--accent-green   { --q-accent: var(--accent-primary);              --q-accent-soft: rgba(51, 230, 88, 0.18); }
.ds-quiz-card--accent-blue    { --q-accent: var(--accent-secondary);            --q-accent-soft: rgba(1, 18, 247, 0.12); }
.ds-quiz-card--accent-purple  { --q-accent: var(--accent-tertiary);             --q-accent-soft: rgba(147, 51, 234, 0.14); }
.ds-quiz-card--accent-orange  { --q-accent: var(--highlight-yellow);            --q-accent-soft: rgba(242, 232, 65, 0.18); }

.ds-quiz-card__body {
    padding: var(--quiz-card-padding);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ds-quiz-card__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--quiz-eyebrow-font);
    font-size: var(--quiz-eyebrow-size);
    font-weight: var(--quiz-eyebrow-weight);
    color: var(--quiz-eyebrow-color);
    letter-spacing: var(--quiz-eyebrow-tracking);
    text-transform: uppercase;
}
.ds-quiz-card__eyebrow svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ds-quiz-card__progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-4);
}
.ds-quiz-card__progress-kicker {
    font-family: var(--font-mono);
    font-size: var(--quiz-progress-kicker-size);
    font-weight: var(--quiz-progress-kicker-weight);
    color: var(--quiz-progress-kicker-color);
    letter-spacing: var(--quiz-progress-kicker-tracking);
    text-transform: uppercase;
    white-space: nowrap;
}
.ds-quiz-card__progress-bar {
    position: relative;
    height: var(--quiz-progress-bar-height);
    background: var(--quiz-progress-bar-bg);
    border-radius: var(--quiz-progress-bar-radius);
    overflow: hidden;
}
.ds-quiz-card__progress-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--ds-quiz-progress, 20%);
    background: var(--quiz-progress-bar-fill);
    border-radius: var(--quiz-progress-bar-radius);
    transition: width var(--duration-slow) var(--ease-default);
}
.ds-quiz-card__progress-pips {
    display: flex;
    gap: var(--quiz-progress-pip-gap);
}
.ds-quiz-card__pip {
    width: var(--quiz-progress-pip-size);
    height: var(--quiz-progress-pip-size);
    border-radius: var(--quiz-progress-pip-radius);
    background: var(--quiz-progress-pip-bg);
    transition: background var(--duration-fast) var(--ease-default);
}
.ds-quiz-card__pip--active { background: var(--quiz-progress-pip-bg-active); }

.ds-quiz-card__pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--quiz-pill-font);
    font-size: var(--quiz-pill-size);
    font-weight: var(--quiz-pill-weight);
    letter-spacing: var(--quiz-pill-tracking);
    text-transform: uppercase;
    color: var(--q-accent);
    background: var(--q-accent-soft);
    padding: var(--quiz-pill-padding);
    border-radius: var(--quiz-pill-radius);
}
.ds-quiz-card__pill-dot {
    width: var(--quiz-pill-dot-size);
    height: var(--quiz-pill-dot-size);
    border-radius: var(--radius-full);
    background: var(--q-accent);
    flex-shrink: 0;
}

.ds-quiz-card__question {
    font-family: var(--quiz-question-font);
    font-size: var(--quiz-question-size);
    font-weight: var(--quiz-question-weight);
    color: var(--quiz-question-color);
    line-height: var(--quiz-question-leading);
    letter-spacing: var(--quiz-question-tracking);
    margin: 0;
}
/* In-question highlighter — green marker behind the lead phrase */
.ds-quiz-card__highlight,
.ds-quiz-card__question mark {
    background: linear-gradient(transparent 6%, var(--accent-primary) 6% 92%, transparent 92%);
    color: inherit;
    padding: 0 0.18em;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.ds-quiz-card__example {
    font-family: var(--quiz-example-font);
    font-size: var(--quiz-example-size);
    font-style: var(--quiz-example-style);
    color: var(--quiz-example-color);
    margin: 0;
}

.ds-quiz-card__answer {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ds-quiz-card__field {
    position: relative;
}
.ds-quiz-card__textarea {
    width: 100%;
    padding: var(--quiz-textarea-padding);
    font-family: var(--font-sans);
    font-size: var(--quiz-textarea-font-size);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background: var(--quiz-textarea-bg);
    border: var(--quiz-textarea-border);
    border-radius: var(--quiz-textarea-radius);
    min-height: var(--quiz-textarea-min-height);
    resize: none;
    transition: background var(--duration-fast) var(--ease-default),
                border-color var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default);
}
.ds-quiz-card__textarea::placeholder { color: var(--quiz-textarea-placeholder-color); }
.ds-quiz-card__textarea:focus {
    outline: none;
    background: var(--quiz-textarea-bg-focus);
    border-color: var(--quiz-textarea-border-focus);
    box-shadow: var(--quiz-textarea-focus-ring);
}
.ds-quiz-card__counter {
    position: absolute;
    right: calc(var(--quiz-mic-size) + var(--space-4));
    bottom: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.ds-quiz-card__mic {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);
    width: var(--quiz-mic-size);
    height: var(--quiz-mic-size);
    border-radius: var(--radius-full);
    border: none;
    background: var(--quiz-mic-bg);
    color: var(--quiz-mic-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity var(--duration-fast) var(--ease-default);
}
.ds-quiz-card__mic:hover { opacity: 0.85; }
.ds-quiz-card__mic--recording {
    background: var(--quiz-mic-recording-bg);
    color: var(--quiz-mic-recording-color);
    animation: ds-quiz-mic-pulse 1.4s var(--ease-default) infinite;
}

.ds-quiz-card__answer-hint {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--quiz-hint-size);
    font-weight: var(--font-medium);
    line-height: var(--leading-snug);
    color: var(--quiz-hint-color);
    text-align: left;
}

@keyframes ds-quiz-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    50%      { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.ds-quiz-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--quiz-footer-padding);
    border-top: var(--quiz-card-divider);
}
.ds-quiz-card__footer--end { justify-content: flex-end; }

.ds-quiz-card__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    border: 0;
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: var(--quiz-back-tracking);
    text-transform: uppercase;
    color: var(--quiz-back-color);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}
.ds-quiz-card__back:hover { color: var(--quiz-back-color-hover); }

.ds-quiz-card__next {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--quiz-next-bg);
    color: var(--quiz-next-color);
    border: 0;
    padding: var(--quiz-next-padding);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    border-radius: var(--quiz-next-radius);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-default),
                color var(--duration-fast) var(--ease-default);
}
.ds-quiz-card__next:hover:not(:disabled) {
    background: var(--quiz-next-bg-hover);
    color: var(--quiz-next-color-hover);
}
.ds-quiz-card__next:disabled,
.ds-quiz-card__next[disabled] {
    background: var(--quiz-next-bg-disabled);
    color: var(--quiz-next-color-disabled);
    cursor: not-allowed;
}
.ds-quiz-card__next svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
    .ds-quiz-card__body   { padding: var(--quiz-card-padding-mobile); gap: var(--space-4); }
    .ds-quiz-card__footer { padding: var(--quiz-footer-padding-mobile); }
    .ds-quiz-card__progress {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    .ds-quiz-card__progress-pips { display: none; }
}

/* ========== QUEST CARD (ds-quest-card) ========== */
/* DS alias — use .ds-quest-card or .quest-card-v2 (defined in pages/cards.css) */
.ds-quest-card { /* alias — styles live in pages/cards.css as .quest-card-v2 */ }

/* ========== TICKETS (dark-side app/event embeds) ========== */
/* Mirrors .app-ticket from shop.css — canonical ds-* version, uses --ticket-* tokens */
.ds-ticket {
    display: flex;
    width: 100%;
    max-width: var(--ticket-max-width);
    min-height: var(--ticket-min-height);
    border-radius: var(--ticket-radius);
    overflow: hidden;
    background: var(--ticket-bg);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.ds-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.ds-ticket__body {
    flex: 1;
    min-width: 0;
    padding: var(--ticket-body-padding);
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 2;
}
.ds-ticket__eyebrow {
    font-size: var(--ticket-eyebrow-size);
    font-weight: var(--ticket-eyebrow-weight);
    text-transform: uppercase;
    letter-spacing: var(--ticket-eyebrow-tracking);
    color: var(--ticket-eyebrow-color);
}
.ds-ticket__title {
    font-family: var(--font-heading);
    font-size: var(--ticket-title-size);
    font-weight: var(--ticket-title-weight);
    color: #fff;
    line-height: 1.15;
    margin: 5px 0;
}
.ds-ticket__sub {
    font-size: var(--text-xs);
    color: var(--ticket-sub-color);
    line-height: 1.3;
}
.ds-ticket__image {
    width: var(--ticket-image-width);
    min-width: var(--ticket-image-width);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.ds-ticket__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ds-ticket__notch {
    position: absolute;
    right: var(--ticket-image-width);
    transform: translateX(50%);
    width: var(--ticket-notch-size);
    height: var(--ticket-notch-size);
    border-radius: 50%;
    background: var(--ticket-notch-bg);
    z-index: 3;
}
.ds-ticket__notch--top { top: calc(var(--ticket-notch-size) / -2); }
.ds-ticket__notch--bottom { bottom: calc(var(--ticket-notch-size) / -2); }

/* ========== PROGRESS ========== */
.ds-progress { height: 6px; background: var(--surface-tertiary); border-radius: var(--radius-xs); overflow: hidden; }
.ds-progress__bar { height: 100%; border-radius: var(--radius-xs); transition: width 0.5s ease; }
.ds-progress__bar--cyan { background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-hover, var(--color-teal-600))); }
.ds-progress__bar--orange { background: var(--highlight-yellow); }

/* ========== SKELETON ========== */
.ds-skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.07) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
    animation: ds-shimmer 1.5s ease infinite;
    border-radius: var(--radius-md, 24px);
}
@keyframes ds-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ========== AVATAR ========== */
.ds-avatar {
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border-subtle);
}
.ds-avatar--xs { width: 24px; height: 24px; }
.ds-avatar--sm { width: 32px; height: 32px; }
.ds-avatar--md { width: 40px; height: 40px; }
.ds-avatar--lg { width: 48px; height: 48px; }
.ds-avatar--xl { width: 64px; height: 64px; }
.ds-avatar--ring { border-color: var(--accent-primary); box-shadow: 0 0 8px rgba(26,143,128,0.3); }

.ds-avatar-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-primary-subtle); color: var(--text-accent);
    font-weight: var(--font-semibold); border-radius: 50%;
}

/* ========== TABLE ========== */
.ds-table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.ds-table th {
    text-align: left; padding: 10px 16px;
    font-size: var(--text-xs); font-weight: var(--font-semibold); letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 1px solid var(--border-default);
}
.ds-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.ds-table tr:hover td { background: var(--interactive-hover); }

/* ========== LIST ITEM ========== */
.ds-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-md, 24px);
    transition: background 0.15s ease; cursor: pointer;
}
.ds-list-item:hover { background: var(--interactive-hover); }
.ds-list-item__icon { width: 36px; height: 36px; border-radius: var(--radius-md, 24px); background: var(--accent-primary-subtle); display: flex; align-items: center; justify-content: center; font-size: var(--text-base); flex-shrink: 0; }
.ds-list-item__text { flex: 1; }
.ds-list-item__title { font-size: var(--text-sm); color: var(--text-primary); font-weight: var(--font-medium); }
.ds-list-item__subtitle { font-size: var(--text-xs); color: var(--text-muted); }
.ds-list-item__action { color: var(--text-muted); font-size: var(--text-sm); }

/* ========== STAT ========== */
.ds-stat { text-align: center; }
.ds-stat__value { font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif); font-size: var(--text-4xl); color: var(--text-primary); line-height: 1; }
.ds-stat__label { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; letter-spacing: 0.5px; }
.ds-stat--cyan .ds-stat__value { color: var(--text-accent); }
.ds-stat--orange .ds-stat__value { color: var(--color-orange-500, var(--color-orange-500)); }

/* ========== TABS ========== */
.ds-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0,0,0,0.04); border-radius: var(--radius-md, 24px); }
.ds-tab {
    padding: 8px 16px; border-radius: var(--radius-md, 24px);
    font-size: var(--text-xs); font-weight: var(--font-medium); color: var(--text-muted);
    cursor: pointer; transition: all 0.15s ease; border: none; background: none;
}
.ds-tab:hover { color: var(--text-secondary); }
.ds-tab--active { background: var(--accent-primary-subtle); color: var(--text-accent); }

/* ========== PACK CARDS ========== */
.ds-pack-card {
    background: var(--surface-primary);
    border: none;
    border-radius: var(--radius-md, 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    transition: all 0.25s ease;
    position: relative;
}
.ds-pack-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.ds-pack-card__rarity {
    padding: 8px 12px;
    width: 100%;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.ds-pack-card--common .ds-pack-card__rarity { background: rgba(0,0,0,0.03); color: var(--text-muted); }
.ds-pack-card--limited { border: 2px solid var(--color-blue-500); box-shadow: 0 0 12px rgba(59,130,246,0.15); }
.ds-pack-card--limited .ds-pack-card__rarity { background: rgba(59,130,246,0.08); color: var(--color-blue-600, var(--color-blue-600)); }
.ds-pack-card--limited:hover { box-shadow: 0 0 20px rgba(59,130,246,0.2), var(--shadow-lg); }
.ds-pack-card--unique { border: 2px solid var(--color-yellow-500, var(--color-yellow-500)); box-shadow: 0 0 12px rgba(234,179,8,0.15); }
.ds-pack-card--unique .ds-pack-card__rarity { background: rgba(234,179,8,0.08); color: var(--color-yellow-600, var(--color-yellow-500)); }
.ds-pack-card--unique:hover { box-shadow: 0 0 20px rgba(234,179,8,0.25), var(--shadow-lg); }
.ds-pack-card--unique::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius-md, 24px);
    background: linear-gradient(135deg, rgba(234,179,8,0.06), transparent, rgba(234,179,8,0.04));
    background-size: 200% 200%;
    animation: ds-pack-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ds-pack-shimmer { 0%{background-position:200% 200%} 100%{background-position:-200% -200%} }
.ds-pack-card__icon {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-4xl); margin: 12px 0;
    color: var(--text-secondary);
}
.ds-pack-card__name { font-size: var(--text-xs); font-weight: var(--font-semibold); color: var(--text-primary); padding: 0 12px; }
.ds-pack-card__desc { font-size: var(--text-xs); color: var(--text-muted); padding: 4px 12px 8px; line-height: 1.4; flex: 1; }
.ds-pack-card__footer {
    width: 100%; padding: 8px 10px;
    display: flex; gap: 6px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}
.ds-pack-btn {
    flex: 1; padding: 6px 8px; border-radius: var(--radius-md, 24px);
    font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase;
    letter-spacing: 0.5px; border: 1px solid transparent;
    cursor: pointer; transition: all 0.15s ease;
    text-align: center;
}
.ds-pack-btn--use { background: var(--accent-primary); color: #000; border-color: var(--accent-primary); }
.ds-pack-btn--use:hover { background: var(--accent-primary-hover); color: #000; }
.ds-pack-btn--equip { background: transparent; color: var(--text-secondary); border-color: var(--border-default); }
.ds-pack-btn--equip:hover { border-color: var(--accent-primary); color: var(--text-accent); }
.ds-pack-btn--equipped { background: var(--accent-primary-subtle); color: var(--text-accent); border-color: var(--accent-primary-subtle); }
.ds-pack-btn--owned { background: rgba(34,197,94,0.1); color: var(--status-success-dark, var(--color-green-600)); border-color: rgba(34,197,94,0.2); pointer-events: none; }

/* ========== SHOP CARDS ========== */
.ds-shop-card {
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md, 24px);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.ds-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 30px rgba(242,232,65,0.10);
    border-color: rgba(242,232,65,0.45);
}
.ds-shop-card:hover .ds-shop-card__image img { transform: scale(1.05); }
.ds-shop-card__image {
    position: relative; width: 100%; height: 160px; overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.08));
    display: flex; align-items: center; justify-content: center;
}
.ds-shop-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ds-shop-card__image-icon { font-size: var(--text-5xl); opacity: 0.5; }
.ds-shop-card__badge {
    position: absolute; top: 12px; right: 12px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--highlight-yellow);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(242,232,65,0.35);
    font-size: var(--text-base); color: var(--text-primary);
}
.ds-shop-card__body { padding: 16px; }
.ds-shop-card__house {
    font-size: var(--text-xs); font-weight: var(--font-semibold); text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--color-purple-600, var(--color-purple-700)); margin-bottom: 4px;
}
.ds-shop-card__name { font-size: var(--text-base); font-weight: var(--font-bold); color: var(--text-primary); margin-bottom: 4px; }
.ds-shop-card__desc {
    font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 12px;
}
.ds-shop-card__meta { display: flex; gap: 8px; margin-bottom: 12px; }
.ds-shop-card__tag {
    font-size: var(--text-xs); font-weight: var(--font-semibold); padding: 2px 8px; border-radius: var(--radius-full, 999px);
    background: rgba(0,0,0,0.04); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.ds-shop-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-top: 1px solid var(--border-subtle);
}
.ds-shop-card__price {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--text-primary);
}
.ds-shop-card__price svg { flex-shrink: 0; }
.ds-shop-card__cta {
    padding: 7px 18px; border-radius: var(--radius-md, 24px);
    font-size: var(--text-xs); font-weight: var(--font-semibold); border: none;
    cursor: pointer; transition: all 0.2s ease;
}
.ds-shop-card__cta--get { background: linear-gradient(135deg, var(--color-purple-500, var(--color-purple-500)), var(--accent-tertiary, var(--accent-tertiary))); color: var(--text-inverse); }
.ds-shop-card__cta--get:hover { box-shadow: 0 0 16px rgba(139,92,246,0.4); }
.ds-shop-card__cta--open { background: rgba(16,185,129,0.12); color: var(--status-success, var(--status-success)); }
.ds-shop-card__cta--buy { background: var(--accent-primary); color: #000; }
.ds-shop-card__cta--buy:hover { background: var(--accent-primary-hover); color: #000; }
.ds-shop-card__cta--owned { background: rgba(34,197,94,0.1); color: var(--status-success-dark, var(--color-green-600)); pointer-events: none; }

/* ========== APP CARDS ========== */
.ds-app-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md, 24px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex; flex-direction: column;
}
.ds-app-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.ds-app-card__hero {
    position: relative; height: 180px; overflow: hidden;
    background: linear-gradient(160deg, rgba(139,92,246,0.08), rgba(6,182,212,0.06));
    display: flex; align-items: center; justify-content: center;
}
.ds-app-card__hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(139,92,246,0.06) 0%, transparent 70%);
}
.ds-app-card__hero img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.ds-app-card__hero-icon {
    font-size: var(--text-5xl); opacity: 0.4; z-index: 0;
}
.ds-app-card__price {
    position: absolute; bottom: 10px; right: 10px;
    padding: 4px 12px; border-radius: var(--radius-full, 999px);
    font-size: var(--text-xs); font-weight: var(--font-bold);
    z-index: 2;
}
.ds-app-card__price--paid {
    background: rgba(34,197,94,0.12); color: var(--status-success-dark, var(--color-green-600));
    border: 1px solid rgba(34,197,94,0.2);
}
.ds-app-card__price--free {
    background: rgba(16,185,129,0.12); color: var(--status-success, var(--status-success));
    border: 1px solid rgba(16,185,129,0.2);
}
.ds-app-card__info {
    padding: 14px 16px 16px;
    display: flex; align-items: center; gap: 10px;
}
.ds-app-card__app-icon {
    width: 38px; height: 38px; border-radius: var(--radius-md, 24px);
    background: rgba(139,92,246,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-base); color: var(--color-purple-600, var(--color-purple-700)); flex-shrink: 0;
}
.ds-app-card__meta { flex: 1; min-width: 0; }
.ds-app-card__name {
    font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds-app-card__type { font-size: var(--text-xs); color: var(--text-muted); text-transform: capitalize; }
.ds-app-card__action {
    padding: 6px 16px; border-radius: var(--radius-full, 999px);
    font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase;
    letter-spacing: 0.3px; border: none; cursor: pointer;
    flex-shrink: 0; transition: opacity 0.15s;
}
.ds-app-card__action--get {
    background: linear-gradient(135deg, var(--color-purple-500, var(--color-purple-500)), var(--accent-tertiary, var(--accent-tertiary))); color: var(--text-inverse);
}
.ds-app-card__action--open {
    background: rgba(16,185,129,0.12); color: var(--status-success, var(--status-success));
}
.ds-app-card__action:hover { opacity: 0.85; }

/* ========== UNIFIED CARD ========== */
.ds-ucard {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md, 24px);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.ds-ucard:hover {
    border-color: var(--accent-primary-subtle);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.ds-ucard__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.06));
}
.ds-ucard__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.ds-ucard:hover .ds-ucard__image img { transform: scale(1.03); }
.ds-ucard__image--sm { height: 120px; }
.ds-ucard__image--md { height: 160px; }
.ds-ucard__image--lg { height: 200px; }
.ds-ucard__image-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-4xl); opacity: 0.35;
    width: 100%; height: 100%;
}
.ds-ucard__image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.15));
}
.ds-ucard__badge-row {
    position: absolute; top: 10px; left: 10px; right: 10px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 2;
}
.ds-ucard__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.ds-ucard__eyebrow {
    font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 4px;
}
.ds-ucard__title {
    font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--text-primary); margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ds-ucard__desc {
    font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.ds-ucard__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}
.ds-ucard__social {
    display: flex; align-items: center; gap: 8px;
}
.ds-ucard__avatar-stack {
    display: flex;
}
.ds-ucard__avatar-stack > * {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--surface-primary);
    margin-left: -8px;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-xs); font-weight: var(--font-semibold);
}
.ds-ucard__avatar-stack > *:first-child { margin-left: 0; }
.ds-ucard__social-text {
    font-size: var(--text-xs); color: var(--text-muted);
}

/* ========== APP TOPBAR ========== */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--surface-primary);
    border-bottom: 1px solid var(--border-default);
}
.app-topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-topbar__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-purple-500), var(--color-blue-600));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-base);
    color: var(--text-inverse);
    overflow: hidden;
}
.app-topbar__icon i,
.app-topbar__icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-inverse);
}
.app-topbar__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.app-topbar__name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}
.app-topbar__house,
.app-topbar__sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.app-topbar__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--surface-secondary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.app-topbar__close:hover {
    background: var(--status-error-subtle);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--status-error);
}
.app-topbar__close i,
.app-topbar__close svg {
    width: 18px;
    height: 18px;
}

/* ========== APP FRAME — Desktop "iPad mode" card container ========== */
/* Add class="app-frame" to <body> on standalone app pages. */
@media (min-width: 768px) {
    html:has(body.app-frame) {
        background: var(--surface-secondary, var(--zine-bg-warm));
    }
    body.app-frame {
        max-width: 430px;
        margin: 24px auto;
        min-height: calc(100vh - 48px);
        border: 1px solid var(--border-default);
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        position: relative;
    }
    body.app-frame .app-topbar {
        position: sticky;
        top: 0;
        border-radius: 16px 16px 0 0;
    }
}

/* ========== APP SHELL — Ticket #3733 canonical base template ========== */
/* templates/apps/_app_base.html applies .app-shell-body to <body> alongside
   .app-frame. The fixed .app-topbar (≈56px tall) would overlap content, so
   we reserve room with padding-top using existing spacing tokens. The
   topbar itself reuses the standard .app-topbar component above. */
body.app-shell-body {
    padding-top: calc(var(--space-12) + var(--space-2));
    background: var(--surface-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100dvh;
    margin: 0;
}
.app-shell__topbar {
    border-radius: 0;
}
@media (min-width: 768px) {
    body.app-frame.app-shell-body {
        padding-top: 0;
    }
    body.app-frame .app-shell__topbar {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ========== COINY ICON (inline) ========== */
.ds-coiny { display: inline-flex; align-items: center; gap: 4px; }
.ds-coiny svg { width: 16px; height: 16px; vertical-align: middle; }

/* ========== DESIGN CARD (Design Review Tool) ========== */
/* Feed card variant for presenting design artifacts for review.
   Supports multiple images (gallery/stacked) + full-screen white overlay with HTML content area.
   Used in /design channel (Tahn Design page). */

.ds-design-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ds-design-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-subtle);
}

/* Image Gallery (top section) */
.ds-design-card__images {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-default);
}
.ds-design-card__image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: var(--surface-secondary);
    overflow: hidden;
}
.ds-design-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ds-design-card:hover .ds-design-card__image img {
    transform: scale(1.02);
}

/* Card Body */
.ds-design-card__body {
    padding: var(--space-4);
}
.ds-design-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}
.ds-design-card__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Pin Badge */
.ds-design-card__pin {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-inverse);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}
.ds-design-card__pin i {
    font-size: var(--text-xs);
}

/* Full Screen Overlay */
.ds-design-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-primary); /* White background for design review */
    z-index: var(--z-spectacle);
    overflow-y: auto;
    padding: var(--space-8);
    animation: ds-design-card-fadein 0.2s ease;
}
@keyframes ds-design-card-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Close Button */
.ds-design-card-overlay__close {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}
.ds-design-card-overlay__close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--status-error);
}
.ds-design-card-overlay__close i {
    font-size: var(--text-lg);
}

/* Pin Toggle Button */
.ds-design-card-overlay__pin-toggle {
    position: fixed;
    top: var(--space-4);
    right: calc(var(--space-4) + 52px);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}
.ds-design-card-overlay__pin-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}
.ds-design-card-overlay__pin-toggle--active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--color-black);
}
.ds-design-card-overlay__pin-toggle--active:hover {
    background: var(--color-teal-700);
    border-color: var(--color-teal-700);
}

/* Content Container */
.ds-design-card-overlay__content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Gallery in Overlay */
.ds-design-card-overlay__images {
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.ds-design-card-overlay__image {
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ds-design-card-overlay__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* HTML Content Panel */
.ds-design-card-overlay__html {
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    padding: var(--space-6);
    margin-top: var(--space-8);
}
.ds-design-card-overlay__html-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

/* Responsive: Mobile */
@media (max-width: 767px) {
    .ds-design-card-overlay {
        padding: var(--space-4);
    }
    .ds-design-card-overlay__close {
        width: 36px;
        height: 36px;
    }
    .ds-design-card-overlay__pin-toggle {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: var(--space-4);
        width: 100%;
        justify-content: center;
    }
    .ds-design-card-overlay__html {
        padding: var(--space-4);
    }
}

/* ============================================================
   DS Tooltip — data-tooltip attribute + CSS pseudo-elements
   Usage: <element class="ds-tooltip" data-tooltip="Label">
   Variants: ds-tooltip--right (default), ds-tooltip--top, ds-tooltip--bottom
   ============================================================ */

.ds-tooltip {
    position: relative;
}

.ds-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    padding: var(--ds-tooltip-padding);
    background: var(--ds-tooltip-bg);
    color: var(--ds-tooltip-color);
    font-family: var(--font-heading);
    font-size: var(--ds-tooltip-font-size);
    font-weight: var(--ds-tooltip-font-weight);
    white-space: nowrap;
    border-radius: var(--ds-tooltip-radius);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fab);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-default),
                visibility var(--duration-normal) var(--ease-default),
                transform var(--duration-normal) var(--ease-default);
    pointer-events: none;
}

/* Arrow */
.ds-tooltip::before {
    content: '';
    position: absolute;
    border: 6px solid transparent;
    z-index: var(--z-fab-above);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-default),
                visibility var(--duration-normal) var(--ease-default);
    pointer-events: none;
}

/* Show on hover */
.ds-tooltip:hover::after,
.ds-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* --- Placement: right (default) --- */
.ds-tooltip::after,
.ds-tooltip--right::after {
    left: calc(100% + var(--space-3));
    top: 50%;
    transform: translateY(-50%);
}

.ds-tooltip:hover::after,
.ds-tooltip--right:hover::after {
    transform: translateY(-50%) translateX(4px);
}

.ds-tooltip::before,
.ds-tooltip--right::before {
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--ds-tooltip-bg);
}

/* --- Placement: top --- */
.ds-tooltip--top::after {
    left: 50%;
    top: auto;
    bottom: calc(100% + var(--space-3));
    transform: translateX(-50%);
}

.ds-tooltip--top:hover::after {
    transform: translateX(-50%) translateY(-4px);
}

.ds-tooltip--top::before {
    left: 50%;
    top: auto;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border-top-color: var(--ds-tooltip-bg);
    border-right-color: transparent;
}

/* --- Placement: bottom --- */
.ds-tooltip--bottom::after {
    left: 50%;
    top: calc(100% + var(--space-3));
    bottom: auto;
    transform: translateX(-50%);
}

.ds-tooltip--bottom:hover::after {
    transform: translateX(-50%) translateY(4px);
}

.ds-tooltip--bottom::before {
    left: 50%;
    top: calc(100% + 2px);
    bottom: auto;
    transform: translateX(-50%);
    border-bottom-color: var(--ds-tooltip-bg);
    border-right-color: transparent;
}

/* --- Glow variant (used by rail tooltips) --- */
.ds-tooltip--glow::after {
    box-shadow: var(--shadow-lg), 0 0 20px var(--ds-tooltip-glow);
}

/* ============================================================
   DS Tooltip Element — JS-positioned tooltip (fixed positioning)
   Usage: create a div.ds-tooltip-el + div.ds-tooltip-el__arrow,
   toggle .is-visible, and set left/top via JS.
   ============================================================ */

.ds-tooltip-el {
    position: fixed;
    background: var(--ds-tooltip-bg);
    color: var(--ds-tooltip-color);
    font-family: var(--font-heading);
    font-size: var(--ds-tooltip-font-size);
    font-weight: var(--ds-tooltip-font-weight);
    padding: var(--ds-tooltip-padding);
    border-radius: var(--ds-tooltip-radius);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-default);
    z-index: var(--z-fab);
    transform: translateY(-50%);
    box-shadow: var(--shadow-lg);
}

.ds-tooltip-el.is-visible {
    opacity: 1;
}

.ds-tooltip-el__arrow {
    position: fixed;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: var(--ds-tooltip-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-default);
    z-index: var(--z-fab-above);
}

.ds-tooltip-el__arrow.is-visible {
    opacity: 1;
}

/* =============================================================================
   DS CARD COMPONENTS — House Result · Passport · Profile · House Info
   All values wired through component tokens in tokens.css.
   ============================================================================= */

/* ── House Result Card ── */
.ds-result-card {
    width: 100%;
    max-width: 520px;
    border-radius: var(--result-card-radius);
    background: var(--result-card-bg);
    border: var(--result-card-border);
    box-shadow: var(--result-card-shadow);
    overflow: hidden;
    position: relative;
    text-align: center;
}
.ds-result-card__edge {
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--result-card-edge);
    border-radius: var(--radius-xs);
    z-index: var(--z-base);
}
.ds-result-card__body {
    padding: var(--result-card-padding);
}
.ds-result-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--result-badge-padding);
    font-family: var(--result-badge-font);
    font-size: var(--result-badge-size);
    font-weight: var(--result-badge-weight);
    letter-spacing: var(--result-badge-tracking);
    text-transform: uppercase;
    color: var(--result-badge-color);
    background: var(--result-badge-bg);
    border: var(--result-badge-border);
    border-radius: var(--result-badge-radius);
    margin-bottom: var(--space-8);
}
.ds-result-card__label {
    font-family: var(--font-mono);
    font-size: var(--result-label-size);
    font-weight: var(--result-label-weight);
    color: var(--result-label-color);
    margin-bottom: var(--space-1);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.ds-result-card__identity {
    font-family: var(--result-identity-font);
    font-size: var(--result-identity-size);
    font-weight: var(--result-identity-weight);
    letter-spacing: var(--result-identity-tracking);
    text-transform: uppercase;
    color: var(--result-identity-color);
    margin-bottom: var(--space-8);
}
.ds-result-card__logo {
    display: block;
    width: var(--result-logo-width);
    margin: var(--result-logo-margin);
}
.ds-result-card__logo img {
    width: 100%;
    height: auto;
    display: block;
}
.ds-result-card__value {
    font-family: var(--result-value-font);
    font-size: var(--result-value-size);
    font-weight: var(--result-value-weight);
    line-height: 1.1;
    padding-bottom: 0.05em;
    background: var(--result-value-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--result-value-color);
    margin-bottom: var(--space-2);
    overflow-wrap: break-word;
}
.ds-result-card__divider {
    width: var(--result-divider-width);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--result-divider-color), transparent);
    margin: 0 auto var(--space-4);
}
.ds-result-card__text {
    font-size: var(--result-body-size);
    font-weight: var(--result-body-weight);
    color: var(--result-body-color);
    line-height: var(--result-body-leading);
    text-align: left;
    margin-bottom: var(--space-6);
}
.ds-result-card__quote {
    font-size: var(--result-quote-size);
    font-weight: var(--result-quote-weight);
    color: var(--result-quote-color);
    font-style: italic;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 0;
}

/* House bar at bottom */
.ds-result-card__bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--result-bar-padding);
    background: var(--result-bar-bg);
    border-top: var(--result-bar-border);
    text-align: left;
}
.ds-result-card__bar-logo {
    width: var(--result-bar-logo-size);
    height: var(--result-bar-logo-size);
    border-radius: var(--result-bar-logo-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-dark-600);
}
.ds-result-card__bar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ds-result-card__bar-text {
    flex: 1;
    min-width: 0;
}
.ds-result-card__bar-name {
    font-family: var(--result-bar-name-font);
    font-size: var(--result-bar-name-size);
    font-weight: var(--font-medium);
    color: var(--result-bar-name-color);
    line-height: 1.2;
}
.ds-result-card__bar-role {
    font-size: var(--result-bar-role-size);
    color: var(--result-bar-role-color);
    margin-top: var(--space-1);
}

/* Action strip */
.ds-result-card__actions {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--result-bar-bg);
    border-top: var(--result-bar-border);
}
.ds-result-card__actions .ds-btn {
    flex: 1;
    font-family: var(--result-action-font);
    font-size: var(--result-action-size);
    font-weight: var(--result-action-weight);
    letter-spacing: var(--result-action-tracking);
    text-transform: uppercase;
    color: var(--result-action-color);
    background: var(--result-action-bg);
    border: var(--result-action-border);
    border-radius: var(--result-action-radius);
    transition: all var(--duration-normal) var(--ease-default);
}
.ds-result-card__actions .ds-btn:hover {
    background: var(--result-action-hover-bg);
    color: var(--result-action-hover-color);
    border: var(--result-action-hover-border);
}
.ds-result-card__actions .ds-btn--result-primary {
    background: var(--result-action-primary-bg);
    color: var(--result-action-primary-color);
    border: var(--result-action-primary-border);
}
.ds-result-card__actions .ds-btn--result-primary:hover {
    background: var(--result-action-hover-bg);
    color: var(--result-action-hover-color);
    border: var(--result-action-hover-border);
}

/* ── Result Card — "You've been sorted" / "Why this house?" heading ── */
.ds-result-card__sorted-heading {
    font-family: var(--font-serif);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-4);
}
.ds-result-card__sorted-heading--sub {
    color: var(--text-primary);
}
.ds-result-card__sorted-heading--logo {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.ds-result-card__value-pill {
    background: var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: var(--radius-xs) var(--space-3);
    display: inline-block;
    line-height: 1.05;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ── Result Card — Logo text ── */
.ds-result-card__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}
.ds-result-card__logo-text--light {
    color: var(--color-gray-400);
}

/* ── Result Card — Light (Sorted) variant ── */
.ds-result-card--light {
    background: var(--result-light-bg);
    border: var(--result-light-border);
    box-shadow: var(--result-light-shadow);
}
.ds-result-card--light .ds-result-card__edge {
    background: var(--result-light-edge);
}
.ds-result-card--light .ds-result-card__label {
    color: var(--result-light-label-color);
}
.ds-result-card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--result-light-header-padding);
    z-index: 2;
}
.ds-result-card__header .ds-result-card__logo {
    width: var(--result-light-header-logo-size);
    margin: 0;
}
.ds-result-card__header .ds-result-card__logo-text {
    margin-bottom: 0;
    font-size: var(--result-light-header-text-size);
}
.ds-result-card--light .ds-result-card__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.ds-result-card__header--dark .ds-result-card__logo-text {
    color: var(--color-gray-400);
}
.ds-result-card--light .ds-result-card__crest {
    width: 100%;
    overflow: hidden;
    border-radius: var(--result-card-radius) var(--result-card-radius) 0 0;
}
.ds-result-card--light .ds-result-card__crest img {
    width: 100%;
    height: auto;
    display: block;
}
.ds-result-card--light .ds-result-card__body--bottom {
    text-align: left;
    padding: var(--result-light-bottom-padding);
    padding-bottom: var(--space-6);
}
.ds-result-card--light .ds-result-card__house-name {
    font-family: var(--font-heading);
    font-size: var(--result-light-house-name-size);
    font-weight: var(--font-bold);
    color: var(--result-light-house-name-color);
    margin-bottom: var(--space-2);
}
.ds-result-card--light .ds-result-card__offering {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
}
.ds-result-card--light .ds-result-card__archetypes {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    font-style: italic;
    color: var(--result-light-belief-color);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
}
.ds-result-card--light .ds-result-card__belief {
    font-family: var(--font-serif);
    font-size: var(--result-light-belief-size);
    color: var(--result-light-belief-color);
    line-height: var(--leading-relaxed);
}
.ds-result-card__belief--bridge {
    font-style: italic;
    margin-top: var(--space-2);
}
.ds-result-card:not(.ds-result-card--light) .ds-result-card__belief {
    font-family: var(--font-serif);
    font-size: var(--result-light-belief-size);
    color: var(--zine-text-on-dark-muted);
    line-height: var(--leading-relaxed);
    text-align: left;
    margin-bottom: var(--space-4);
}

/* ── Result Card — Goal & Vision (inside card body) ── */
.ds-result-card__goal-block {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}
.ds-result-card__goal-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}
.ds-result-card__goal-text {
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
}
.ds-result-card__vision-block {
    margin-top: var(--space-3);
}
.ds-result-card__vision-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}
.ds-result-card__vision-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

/* ── Result Card — Action bar (passport-style) ── */
.ds-result-card__action-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-top: var(--result-light-border);
}
.ds-result-card__action-bar--stacked {
    flex-direction: column;
}
.ds-result-card__action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-right: var(--result-light-border);
    cursor: pointer;
    transition: color var(--duration-normal) var(--ease-default);
    text-decoration: none;
}
.ds-result-card__action-bar--stacked .ds-result-card__action {
    width: 100%;
    border-right: none;
    border-bottom: var(--result-light-border);
}
.ds-result-card__action-bar--stacked .ds-result-card__action:last-child {
    border-bottom: none;
}
.ds-result-card__action:last-child {
    border-right: none;
}
.ds-result-card__action:hover {
    color: var(--highlight-purple);
}
.ds-result-card__action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.ds-result-card__action-icon {
    width: 16px;
    height: 16px;
}
.ds-result-card__share-glyph {
    width: auto;
    height: 1em;
    flex: 0 0 auto;
}
/* Dark card variant of action bar */
.ds-result-card:not(.ds-result-card--light) .ds-result-card__action-bar {
    border-top: var(--result-bar-border);
}
.ds-result-card:not(.ds-result-card--light) .ds-result-card__action {
    color: var(--color-white);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-result-card:not(.ds-result-card--light) .ds-result-card__action:hover {
    color: var(--accent-neon);
}

/* ── Result Card — Invite gate form (white card) ── */
.ds-result-card__invite-form {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
}
.ds-result-card__invite-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    border: var(--result-light-border);
    border-radius: var(--radius-md);
    background: var(--color-gray-50);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--duration-normal) var(--ease-default);
}
.ds-result-card__invite-input::placeholder {
    color: var(--text-muted);
}
.ds-result-card__invite-input:focus {
    border-color: var(--highlight-purple);
}
.ds-result-card__invite-btn {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-md);
    background: var(--text-primary);
    color: var(--color-white);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--duration-normal) var(--ease-default);
}
.ds-result-card__invite-btn:hover {
    opacity: 0.85;
}
.ds-result-card__invite-error {
    padding: 0 var(--space-5) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-red-400);
    display: none;
}

/* ── Result Card — Invite code modal overlay ── */
.ds-result-card__invite-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 1000);
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}
.ds-result-card__invite-overlay.is-open {
    display: flex;
}
.ds-result-card__invite-modal {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-6) var(--space-4);
    width: 100%;
    max-width: 360px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}
.ds-result-card__invite-modal-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-4);
}

/* ── Result Card — Waitlist form (dark card) ── */
.ds-result-card__waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4) 0 0;
}
.ds-result-card__waitlist-input {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--zine-text-on-dark);
    outline: none;
    transition: border-color var(--duration-normal) var(--ease-default);
}
.ds-result-card__waitlist-input::placeholder {
    color: var(--zine-text-on-dark-subtle);
}
.ds-result-card__waitlist-input:focus {
    border-color: var(--accent-neon);
}
.ds-result-card__waitlist-textarea {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--zine-text-on-dark);
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--duration-normal) var(--ease-default);
}
.ds-result-card__waitlist-textarea::placeholder {
    color: var(--zine-text-on-dark-subtle);
}
.ds-result-card__waitlist-textarea:focus {
    border-color: var(--accent-neon);
}
.ds-result-card__waitlist-btn,
.ds-result-card__activation-action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dark-900);
    background: var(--accent-neon);
    border: 1px solid var(--color-dark-900);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: opacity var(--duration-normal) var(--ease-default);
}
.ds-result-card__waitlist-btn {
    flex: 1;
}
.ds-result-card__activation-action .ds-result-card__activation-action-pill {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-top: var(--space-2);
    /* override the generic .ds-result-card__activation-action span rule (font-size var(--text-sm)) */
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: 0.1em;
}
.ds-result-card__waitlist-btn .ds-result-card__action-icon {
    filter: brightness(0);
}
.ds-result-card__waitlist-btn:hover {
    opacity: 0.85;
}
.ds-result-card__waitlist-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ds-result-card__waitlist-success {
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--accent-neon);
    display: none;
}

/* ── Result Card — House Party activation copy ── */
.ds-result-card__activation-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    margin-top: var(--space-4);
    text-align: left;
}
.ds-result-card__activation-kicker {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--accent-neon);
    letter-spacing: 0;
}
.ds-result-card__activation-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(var(--text-xl), 7vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.05;
    color: var(--accent-primary);
    letter-spacing: -0.03em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.ds-result-card__header--found {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-5) 0;
}
.ds-result-card__found-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    align-self: center;
    background: var(--accent-primary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: calc(var(--space-1) + var(--radius-xs)) var(--space-3);
    border-radius: var(--radius-sm);
}
.ds-result-card__found-kicker-glyph {
    height: 1cap;
    width: auto;
    display: block;
}
.ds-result-card__found-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(var(--text-4xl), 11vw, calc(var(--text-5xl) * 1.2));
    font-weight: 800;
    line-height: 0.95;
    color: var(--accent-primary);
    letter-spacing: -0.03em;
    text-align: left;
}
.ds-result-card__found-soft {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--zine-text-on-dark);
    letter-spacing: -0.02em;
}
.ds-result-card__found-subtitle {
    margin: var(--space-2) 0 0;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    color: var(--zine-text-on-dark);
    letter-spacing: -0.01em;
}
.ds-result-card__header--found + .ds-result-card__body {
    padding-top: var(--space-3);
}
.ds-result-card__activation-copy p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--zine-text-on-dark-muted);
    text-align: left;
}
.ds-result-card__activation-copy p.ds-result-card__activation-copy--accent {
    border-left: 3px solid var(--accent-primary);
    padding-left: var(--space-3);
}
.ds-result-card__activation-tools {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: var(--result-bar-border);
    border-radius: var(--radius-md);
    background: var(--result-bar-bg);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--zine-text-on-dark);
    text-align: left;
}
.ds-result-card__activation-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    box-sizing: border-box;
    padding: 0 var(--space-5) var(--space-5);
    border-top: var(--result-bar-border);
    text-align: left;
}
.ds-result-card__activation-signup {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}
.ds-result-card__activation-signup-copy {
    display: grid;
    gap: var(--space-1);
}
.ds-result-card__activation-signup-copy span {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--zine-text-on-dark);
}
.ds-result-card__activation-signup-copy small {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
    color: var(--zine-text-on-dark-muted);
}
.ds-result-card__activation-signup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
    align-items: stretch;
}
.ds-result-card__activation-action {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-1);
    width: 100%;
    min-height: var(--space-16);
    padding: var(--space-3) var(--space-4);
    border: var(--result-action-border);
    border-radius: var(--radius-md);
    background: var(--result-action-bg);
    color: var(--result-action-color);
    font-family: var(--font-heading);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--duration-normal) var(--ease-default),
                background var(--duration-normal) var(--ease-default),
                color var(--duration-normal) var(--ease-default);
}
.ds-result-card__activation-action:hover {
    background: var(--result-bar-btn-hover-bg);
    border: var(--result-bar-btn-hover-border);
    color: var(--accent-neon);
}
.ds-result-card__activation-action--primary {
    background: var(--result-back-cta-bg);
    border: var(--result-action-hover-border);
    color: var(--result-back-cta-color);
}
.ds-result-card__activation-action--primary:hover {
    background: var(--result-back-cta-bg);
    border: var(--result-action-hover-border);
    color: var(--result-back-cta-color);
}
.ds-result-card__activation-action span {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    letter-spacing: 0;
}
.ds-result-card__activation-action-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.ds-result-card__activation-action small {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: currentColor;
    letter-spacing: 0;
}
@media (max-width: 420px) {
    .ds-result-card__activation-signup-row {
        grid-template-columns: 1fr;
    }
}

/* ── Result Card — Waitlist heading + Skip-the-line role accordions ── */
.ds-result-card__waitlist-heading {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    letter-spacing: 0.02em;
    color: var(--zine-text-on-dark);
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
}
.ds-result-card__skip-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.ds-result-card__skip-heading {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zine-text-on-dark-muted);
    margin-bottom: var(--space-1);
}
.ds-result-card__role {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: border-color var(--duration-normal) var(--ease-default),
                background var(--duration-normal) var(--ease-default);
}
.ds-result-card__role[open] {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}
.ds-result-card__role-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.ds-result-card__role-summary::-webkit-details-marker { display: none; }
.ds-result-card__role-summary::marker { content: ''; }
.ds-result-card__role-summary:focus-visible {
    outline: 2px solid var(--accent-neon);
    outline-offset: -2px;
}
.ds-result-card__role-name {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.04em;
    color: var(--zine-text-on-dark);
}
.ds-result-card__role-caret {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1;
    color: var(--zine-text-on-dark-muted);
    transition: transform var(--duration-normal) var(--ease-default);
}
.ds-result-card__role[open] .ds-result-card__role-caret {
    transform: rotate(45deg);
}
.ds-result-card__role-body {
    padding: 0 var(--space-4) var(--space-4);
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--zine-text-on-dark-muted);
    line-height: var(--leading-relaxed);
}

/* ── Result Card — "You are a" seer label ── */
.ds-result-card__seer {
    font-size: var(--result-seer-size);
    font-weight: var(--result-seer-weight);
    color: var(--result-seer-color);
    letter-spacing: var(--result-seer-tracking);
    margin-bottom: var(--space-1);
}

/* ── Result Card — Flip variant ── */
.ds-result-card--flip {
    overflow: visible;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.ds-result-card--flip.is-3d {
    perspective: var(--result-flip-perspective);
}
.ds-result-card--flip .ds-result-card__flip-inner {
    position: relative;
    width: 100%;
    transition: transform var(--result-flip-duration) var(--result-flip-easing);
}
.ds-result-card--flip.is-3d .ds-result-card__flip-inner {
    transform-style: preserve-3d;
}
.ds-result-card--flip.is-flipped .ds-result-card__flip-inner {
    transform: rotateY(180deg);
}

/* Front + Back shared */
.ds-result-card__front,
.ds-result-card__back {
    width: 100%;
    border-radius: var(--result-card-radius);
    overflow: hidden;
    background: var(--result-card-bg);
    border: var(--result-card-border);
    box-shadow: var(--result-card-shadow);
}
.ds-result-card--flip.is-3d .ds-result-card__front,
.ds-result-card--flip.is-3d .ds-result-card__back {
    backface-visibility: hidden;
}

/* Front */
.ds-result-card__front {
    position: relative;
}
.ds-result-card__front .ds-result-card__edge {
    z-index: 1;
}

/* Back */
.ds-result-card__back {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
.ds-result-card--flip.is-3d .ds-result-card__back {
    display: block;
    transform: rotateY(180deg);
}

/* Bar as flip-trigger button */
.ds-result-card__bar--flip {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--result-bar-padding);
    background: var(--result-bar-bg);
    border: none;
    border-top: var(--result-bar-border);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-default);
    text-align: left;
    color: inherit;
    font-family: inherit;
}
.ds-result-card__bar--flip:hover {
    background: rgba(0, 0, 0, 0.35);
}
.ds-result-card__bar-btn {
    font-family: var(--result-bar-btn-font);
    font-size: var(--result-bar-btn-size);
    font-weight: var(--result-bar-btn-weight);
    letter-spacing: var(--result-bar-btn-tracking);
    text-transform: uppercase;
    color: var(--result-bar-btn-color);
    background: var(--result-bar-btn-bg);
    border: var(--result-bar-btn-border);
    border-radius: var(--result-bar-btn-radius);
    padding: var(--result-bar-btn-padding);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}
.ds-result-card__bar--flip:hover .ds-result-card__bar-btn {
    background: var(--result-bar-btn-hover-bg);
    border-color: rgba(0, 243, 255, 0.35);
    box-shadow: var(--result-bar-btn-hover-shadow);
}

/* Back body */
.ds-result-card__back-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ds-result-card__back-content {
    padding: 0 var(--space-9) var(--space-9);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ds-result-card__back-content--awaiting {
    padding-top: var(--space-12);
}

/* Back hero image */
.ds-result-card__back-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--result-back-hero-bg);
    margin-bottom: var(--space-5);
}
.ds-result-card__back-hero img {
    width: 100%;
    aspect-ratio: var(--result-back-hero-aspect);
    object-fit: cover;
    display: block;
}
.ds-result-card__back-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: var(--result-back-hero-gradient);
    pointer-events: none;
}

/* Back house name over hero */
.ds-result-card__back-house-name {
    position: absolute;
    bottom: var(--space-5);
    left: 0;
    right: 0;
    z-index: 2;
    font-family: var(--result-back-house-font);
    font-size: var(--result-back-house-size);
    font-weight: var(--result-back-house-weight);
    text-transform: uppercase;
    letter-spacing: var(--result-back-house-tracking);
    line-height: 1.1;
    color: var(--result-back-house-color);
    padding: 0 var(--space-9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Back motto */
.ds-result-card__back-motto {
    font-size: var(--result-back-motto-size);
    font-style: italic;
    color: var(--result-back-motto-color);
    opacity: 0.85;
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

/* Back section label */
.ds-result-card__back-section-label {
    font-family: var(--result-back-section-font);
    font-size: var(--result-back-section-size);
    font-weight: var(--result-back-section-weight);
    letter-spacing: var(--result-back-section-tracking);
    text-transform: uppercase;
    color: var(--result-back-section-color);
    margin-bottom: var(--space-2);
}
.ds-result-card__back-section-label--awaiting {
    font-size: clamp(var(--text-2xl), 6vw, calc(var(--text-4xl) + var(--space-1)));
    letter-spacing: var(--result-back-house-tracking);
    margin-bottom: var(--space-6);
}

/* Back goal */
.ds-result-card__back-goal {
    font-size: var(--result-back-goal-size);
    font-weight: var(--result-back-goal-weight);
    color: var(--result-back-goal-color);
    line-height: var(--result-back-goal-leading);
    margin-bottom: var(--space-8);
    max-width: 400px;
}

/* Back CTA */
.ds-result-card__back-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--result-back-cta-padding);
    font-family: var(--result-back-cta-font);
    font-size: var(--result-back-cta-size);
    font-weight: var(--result-back-cta-weight);
    letter-spacing: var(--result-back-cta-tracking);
    text-transform: uppercase;
    color: var(--result-back-cta-color);
    background: var(--result-back-cta-bg);
    border: none;
    border-radius: var(--result-back-cta-radius);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    width: 100%;
    justify-content: center;
}
.ds-result-card__back-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--result-back-cta-hover-shadow);
}
.ds-result-card__back-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Flip-back button */
.ds-result-card__flipback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4) var(--space-9);
    font-family: var(--result-back-flipback-font);
    font-size: var(--result-back-flipback-size);
    font-weight: var(--result-back-flipback-weight);
    letter-spacing: var(--result-back-flipback-tracking);
    text-transform: uppercase;
    color: var(--result-back-flipback-color);
    background: none;
    border: none;
    border-top: var(--result-back-flipback-border);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-default);
}
.ds-result-card__flipback:hover {
    background: var(--result-back-flipback-hover-bg);
}
.ds-result-card__flipback svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ── Result Strip (sticky action bar) ── */
.ds-result-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--result-strip-z);
    display: flex;
    gap: var(--result-strip-gap);
    padding: var(--result-strip-padding);
    padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
    background: var(--result-strip-bg);
    border-top: var(--result-strip-border);
}
.ds-result-strip__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--result-strip-btn-padding);
    font-family: var(--result-strip-btn-font);
    font-size: var(--result-strip-btn-size);
    font-weight: var(--result-strip-btn-weight);
    letter-spacing: var(--result-strip-btn-tracking);
    text-transform: uppercase;
    border-radius: var(--result-strip-btn-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.ds-result-strip__btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.ds-result-strip__btn--share {
    color: var(--result-strip-share-color);
    background: var(--result-strip-share-bg);
    border: var(--result-strip-share-border);
    box-shadow: var(--result-strip-share-shadow);
}
.ds-result-strip__btn--share:hover {
    color: var(--color-dark-900);
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ds-result-strip__btn--share.is-generating {
    pointer-events: none;
    opacity: 0.6;
}
.ds-result-strip__btn--cta {
    color: var(--result-strip-cta-color);
    background: var(--result-strip-cta-bg);
    box-shadow: var(--result-strip-cta-shadow);
}
.ds-result-strip__btn--cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 195, 210, 0.35);
}

/* ── Passport / Onboarding Card (DS preview) ── */
/* ===========================================================================
   PASSPORT CARD (rewritten 2026-05-13 to match the reference design)
   White card · cream header band · large "Passport" title · gray identicon
   field · role pill · lowercase handle + word pill · italic intro · house
   strip · stats grid · share + enter house actions.
   All values use existing tokens (tokens.css) — no new tokens introduced.
   =========================================================================== */
.ds-passport-card {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    background: var(--surface-primary);
    border: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--text-primary);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    font-family: var(--font-heading);
}
.ds-passport-card *,
.ds-passport-card *::before,
.ds-passport-card *::after {
    box-sizing: border-box;
}
.ds-passport-card__inner {
    display: flex;
    flex-direction: column;
}

/* ── Header band ── */
.ds-passport-card__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--surface-tertiary);
    border-bottom: 1px solid var(--border-soft);
}
.ds-passport-card__issuer {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1;
}
.ds-passport-card__issuer-glyph {
    width: auto;
    height: 1em;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.ds-passport-card__serial {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ── Big "Passport" title + thin divider ── */
.ds-passport-card__title-row {
    padding: var(--space-5) var(--space-6) var(--space-3);
}
.ds-passport-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.ds-passport-card__title--want {
    font-size: var(--text-xl);
    font-weight: 800;
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ds-passport-card__divider {
    height: 1px;
    background: var(--border-soft);
    margin: 0 var(--space-6);
}

/* ── Identicon "field": rounded gray square block ── */
.ds-passport-card__field {
    margin: var(--space-5) var(--space-6) 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ds-passport-card__field-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-md);
}

/* ── Role pill (HOUSE FOUNDER) ── */
.ds-passport-card__role-row {
    padding: var(--space-5) var(--space-6) 0;
}
.ds-passport-card__role-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: var(--highlight-yellow);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    line-height: var(--leading-tight);
}

/* ── @handle + word pill (KEEPER) ── */
.ds-passport-card__name-row {
    padding: var(--space-2) var(--space-6) 0;
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.ds-passport-card__handle {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.ds-passport-card__word-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px var(--space-3);
    background: var(--accent-tertiary-subtle);
    color: var(--accent-tertiary);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    line-height: var(--leading-tight);
}

/* ── Italic serif intro: first two quiz words ── */
.ds-passport-card__house-icon--glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--text-primary);
}

.ds-passport-card__want-progress {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.ds-passport-card__want-progress iconify-icon {
    align-self: center;
    font-size: var(--text-xs);
}

.ds-passport-card__want-pct {
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

.ds-passport-card__want-pct--now {
    color: var(--text-primary);
}

.ds-passport-card__want-pct--up {
    color: var(--status-success, var(--color-green-600));
}

.ds-passport-card__want-caption {
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ds-passport-card__intro {
    padding: var(--space-2) var(--space-6) 0;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-primary);
    line-height: var(--leading-snug);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
}
.ds-passport-card__intro-word {
    color: var(--text-primary);
}
.ds-passport-card__intro-word--alt {
    color: var(--text-primary);
}
.ds-passport-card__intro--unknown {
    color: var(--text-muted);
}
.ds-passport-card__intro--unknown .ds-passport-card__intro-word {
    color: inherit;
}

/* ── House info card (outlined strip) ── */
.ds-passport-card__house-card {
    margin: var(--space-5) var(--space-6) 0;
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--surface-primary);
}
.ds-passport-card__house-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ds-passport-card__house-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ds-passport-card__house-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ds-passport-card__house-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: var(--font-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.2;
}
.ds-passport-card__house-name {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}
.ds-passport-card__house-card--unknown {
    border-style: dashed;
}
.ds-passport-card__house-card--unknown .ds-passport-card__house-name {
    color: var(--text-muted);
}

/* ── Stats grid ── */
.ds-passport-card__stats {
    margin: var(--space-5) var(--space-6) 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.ds-passport-card__stat {
    padding: var(--space-3) var(--space-3);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ds-passport-card__stat:last-child {
    border-right: 0;
}
/* Single-stat passport (verification only) — center it, drop the 3-col grid */
.ds-passport-card__stats--single {
    grid-template-columns: minmax(0, 1fr);
}
.ds-passport-card__stats--single .ds-passport-card__stat {
    align-items: center;
    text-align: center;
    border-right: 0;
}
.ds-passport-card__stat-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.2;
}
.ds-passport-card__stat-value {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    min-width: 0;
}
.ds-passport-card__stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: inline-block;
    flex-shrink: 0;
}
.ds-passport-card__stat svg {
    flex-shrink: 0;
}

/* ── Action bar ── */
.ds-passport-card__action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6) var(--space-6);
}
.ds-passport-card__action-bar--single {
    grid-template-columns: 1fr;
}
.ds-passport-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--surface-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.ds-passport-card__action:hover {
    background: var(--surface-tertiary);
    border-color: var(--border-default);
}
.ds-passport-card__action--primary {
    background: var(--accent-primary);
    color: var(--color-black);
    border-color: var(--accent-primary);
}
.ds-passport-card__action--primary:hover {
    background: var(--accent-tertiary);
    border-color: var(--accent-tertiary);
    color: var(--text-inverse);
}
.ds-passport-card__action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.ds-passport-card__action-glyph {
    width: auto;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
}

/* ── Profile Card (light theme) ── */
.ds-profile-card {
    width: 100%;
    max-width: 520px;
    background: var(--profile-card-bg);
    border-radius: var(--profile-card-radius);
    box-shadow: var(--profile-card-shadow);
    border: var(--profile-card-border);
    overflow: hidden;
    text-align: center;
}
.ds-profile-card__header {
    padding: var(--space-8) var(--profile-card-padding) var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ds-profile-card__avatar {
    width: var(--profile-card-avatar-size);
    height: var(--profile-card-avatar-size);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-default);
    margin-bottom: var(--space-4);
}
.ds-profile-card__name {
    font-family: var(--profile-card-name-font);
    font-size: var(--profile-card-name-size);
    font-weight: var(--profile-card-name-weight);
    color: var(--profile-card-name-color);
    margin-bottom: var(--space-1);
}
.ds-profile-card__handle {
    font-size: var(--profile-card-handle-size);
    color: var(--profile-card-handle-color);
    margin-bottom: var(--space-3);
}
.ds-profile-card__house-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--accent-primary);
    background: var(--accent-primary-subtle);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}
.ds-profile-card__bio {
    font-size: var(--profile-card-bio-size);
    color: var(--profile-card-bio-color);
    line-height: var(--profile-card-bio-leading);
    padding: 0 var(--profile-card-padding);
    margin-bottom: var(--space-6);
}
.ds-profile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-default);
}
.ds-profile-card__stat {
    padding: var(--space-4) var(--space-2);
    text-align: center;
    border-right: 1px solid var(--border-default);
}
.ds-profile-card__stat:last-child {
    border-right: none;
}
.ds-profile-card__stat-value {
    font-family: var(--profile-card-stat-value-font);
    font-size: var(--profile-card-stat-value-size);
    font-weight: var(--profile-card-stat-value-weight);
    color: var(--profile-card-stat-value-color);
    line-height: 1;
    margin-bottom: var(--space-1);
}
.ds-profile-card__stat-label {
    font-size: var(--profile-card-stat-label-size);
    color: var(--profile-card-stat-label-color);
    text-transform: uppercase;
    letter-spacing: var(--profile-card-stat-label-tracking);
    font-weight: var(--font-medium);
}
.ds-profile-card__actions {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--profile-card-padding);
    border-top: 1px solid var(--border-default);
}
.ds-profile-card__actions .ds-btn {
    flex: 1;
}

/* ── House Info Card (light theme) ── */
.ds-house-info-card {
    width: 100%;
    max-width: 520px;
    background: var(--house-info-card-bg);
    border-radius: var(--house-info-card-radius);
    box-shadow: var(--house-info-card-shadow);
    border: var(--house-info-card-border);
    overflow: hidden;
}
.ds-house-info-card__banner {
    width: 100%;
    height: var(--house-info-card-banner-h);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-dark-600), var(--color-dark-500));
}
.ds-house-info-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ds-house-info-card__banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    pointer-events: none;
}
.ds-house-info-card__body {
    padding: var(--house-info-card-padding);
}
.ds-house-info-card__logo {
    width: var(--size-16);
    height: var(--size-16);
    border-radius: var(--radius-lg);
    object-fit: contain;
    border: 3px solid var(--surface-primary);
    margin-top: calc(-1 * var(--space-10));
    position: relative;
    z-index: 1;
    background: var(--surface-primary);
    margin-bottom: var(--space-3);
}
.ds-house-info-card__name {
    font-family: var(--house-info-card-name-font);
    font-size: var(--house-info-card-name-size);
    font-weight: var(--house-info-card-name-weight);
    color: var(--house-info-card-name-color);
    margin-bottom: var(--space-2);
}
.ds-house-info-card__motto {
    font-family: var(--house-info-card-motto-font);
    font-size: var(--house-info-card-motto-size);
    color: var(--house-info-card-motto-color);
    font-style: italic;
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}
.ds-house-info-card__desc {
    font-size: var(--house-info-card-desc-size);
    color: var(--house-info-card-desc-color);
    line-height: var(--house-info-card-desc-leading);
    margin-bottom: var(--space-6);
}
.ds-house-info-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.ds-house-info-card__stat {
    text-align: center;
    padding: var(--house-info-card-stat-padding);
    background: var(--house-info-card-stat-bg);
    border-radius: var(--house-info-card-stat-radius);
}
.ds-house-info-card__stat-value {
    font-family: var(--house-info-card-stat-value-font);
    font-size: var(--house-info-card-stat-value-size);
    font-weight: var(--house-info-card-stat-value-weight);
    color: var(--house-info-card-stat-value-color);
    line-height: 1;
    margin-bottom: var(--space-1);
}
.ds-house-info-card__stat-label {
    font-size: var(--house-info-card-stat-label-size);
    color: var(--house-info-card-stat-label-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--font-medium);
}
.ds-house-info-card__actions {
    display: flex;
    gap: var(--space-3);
}
.ds-house-info-card__actions .ds-btn {
    flex: 1;
}

/* ── Responsive (all DS cards) ── */
@media (max-width: 480px) {
    .ds-result-card__body {
        padding: var(--space-8) var(--space-5) var(--space-5);
    }
    /* Passport card responsive: tighten title size + stat padding for narrow viewports. */
    .ds-passport-card__title {
        font-size: var(--text-4xl);
    }
    .ds-passport-card__handle {
        font-size: var(--text-2xl);
    }
    .ds-passport-card__stat {
        padding: var(--space-3) var(--space-2);
    }
    .ds-passport-card__action {
        padding: var(--space-3) var(--space-3);
        font-size: var(--text-xs);
    }
    .ds-result-card__back-content {
        padding: 0 var(--space-6) var(--space-6);
    }
    .ds-result-card__back-house-name {
        padding: 0 var(--space-6);
    }
    .ds-result-card__bar--flip {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
    }
    .ds-result-card__bar-btn {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
    .ds-result-strip {
        gap: var(--space-2);
        padding: var(--space-3) var(--space-4);
    }
    .ds-result-strip__btn {
        font-size: var(--text-xs);
        padding: var(--space-3) var(--space-4);
        letter-spacing: 0.06em;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LOCKUP — Logo Mark + Wordmark
   HARD RULE: mark visual height == text visual height (single-line).
   Two-line: mark spans both text lines.
   ═══════════════════════════════════════════════════════════════ */

/* ── Base lockup container ──────────────────────────────────── */
.ds-lockup {
    display: inline-flex;
    align-items: center;
    gap: var(--lockup-gap);
}

.ds-lockup__mark {
    flex-shrink: 0;
    width: var(--lockup-mark-size);
    height: var(--lockup-mark-size);
}

.ds-lockup__text {
    font-family: var(--lockup-font);
    font-weight: var(--lockup-font-weight);
    font-size: var(--lockup-text-size);
    letter-spacing: var(--lockup-tracking);
    text-transform: uppercase;
    line-height: 1;
}

/* ── Single-line: Light ─────────────────────────────────────── */
.ds-lockup--light .ds-lockup__mark { color: var(--lockup-mark-fill-light); }
.ds-lockup--light .ds-lockup__text { color: var(--lockup-text-color-light); }

/* ── Single-line: Dark ──────────────────────────────────────── */
.ds-lockup--dark .ds-lockup__mark { color: var(--lockup-mark-fill-dark); }
.ds-lockup--dark .ds-lockup__text { color: var(--lockup-text-color-dark); }

/* ── Pill variants — rounded pill with full-bleed background ──
   All three use existing global tokens only. Enforces the HARD
   RULE via inherited --lockup-mark-size == --lockup-text-size.
   ───────────────────────────────────────────────────────────── */
.ds-lockup--pill-light,
.ds-lockup--pill-dark,
.ds-lockup--pill-neon {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}
/* pill-light — white bg, black text & mark */
.ds-lockup--pill-light { background: var(--color-white); }
.ds-lockup--pill-light .ds-lockup__mark,
.ds-lockup--pill-light .ds-lockup__text { color: var(--color-black); }

/* pill-dark — black bg, white text & mark */
.ds-lockup--pill-dark { background: var(--color-black); }
.ds-lockup--pill-dark .ds-lockup__mark,
.ds-lockup--pill-dark .ds-lockup__text { color: var(--color-white); }

/* pill-neon — black bg, accent-primary (neon green) text & mark */
.ds-lockup--pill-neon { background: var(--color-black); }
.ds-lockup--pill-neon .ds-lockup__mark,
.ds-lockup--pill-neon .ds-lockup__text { color: var(--accent-primary); }

/* ═══════════════════════════════════════════════════════════════
   TWO-LINE LOCKUP — Mark + Brand + Tagline
   ═══════════════════════════════════════════════════════════════ */
.ds-lockup-2l {
    display: inline-flex;
    align-items: center;
    gap: var(--lockup-2l-gap);
}

.ds-lockup-2l__mark {
    flex-shrink: 0;
    width: var(--lockup-2l-mark-size);
    height: var(--lockup-2l-mark-size);
}

.ds-lockup-2l__lines {
    display: flex;
    flex-direction: column;
    gap: var(--lockup-2l-line-gap);
}

.ds-lockup-2l__brand {
    font-family: var(--lockup-font);
    font-weight: var(--lockup-font-weight);
    font-size: var(--lockup-2l-brand-size);
    letter-spacing: var(--lockup-tracking);
    text-transform: uppercase;
    line-height: 1;
}

.ds-lockup-2l__tagline {
    font-family: var(--lockup-2l-tagline-font);
    font-weight: var(--lockup-2l-tagline-weight);
    font-size: var(--lockup-2l-tagline-size);
    font-style: italic;
    letter-spacing: var(--lockup-tracking);
    text-transform: uppercase;
    line-height: 1;
}

/* ── Two-line: Light ────────────────────────────────────────── */
.ds-lockup-2l--light .ds-lockup-2l__mark { color: var(--lockup-mark-fill-light); }
.ds-lockup-2l--light .ds-lockup-2l__brand { color: var(--lockup-text-color-light); }
.ds-lockup-2l--light .ds-lockup-2l__tagline { color: var(--lockup-2l-tagline-color-light); }

/* ── Two-line: Dark ─────────────────────────────────────────── */
.ds-lockup-2l--dark .ds-lockup-2l__mark { color: var(--lockup-mark-fill-dark); }
.ds-lockup-2l--dark .ds-lockup-2l__brand { color: var(--lockup-text-color-dark); }
.ds-lockup-2l--dark .ds-lockup-2l__tagline { color: var(--lockup-2l-tagline-color-dark); }

/* ═══════════════════════════════════════════════════════════════
   HINT BLOCK
   Purple left-bar callout for contextual guidance text.
   Tokens: --hint-border, --hint-bg, --hint-radius, --hint-padding
   ═══════════════════════════════════════════════════════════════ */
.ds-hint {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    padding: var(--hint-padding);
    background: var(--hint-bg);
    border-left: var(--hint-border);
    border-radius: 0 var(--hint-radius) var(--hint-radius) 0;
}

/* ═══════════════════════════════════════════════════════════════
   GHOST OVERLAY
   Reusable utility that turns any container of feed-card actions
   (upvote/comment/share) into glass pills floating on top of an
   image — no white bar at the bottom of the card.

   Usage: add `ghost-overlay` to any wrapper that holds
   `.feed-card__action`, `.feed-card__vote-cluster`,
   `.feed-card__action--pill`, or `.feed-card__action--share`.

   Pairs with: `.zine-card__engagement`, `.collectible-card__actions`,
   any future card that overlays actions on full-bleed media.

   Tokens used: --feed-card-glass-bg, --feed-card-glass-border,
   --feed-card-action-radius, --vote-active-bg, --vote-active-color,
   --text-inverse, --accent-primary, --color-black.
   ═══════════════════════════════════════════════════════════════ */
.ghost-overlay .feed-card__vote-cluster {
    background: var(--feed-card-glass-bg);
    border-color: var(--feed-card-glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.ghost-overlay .feed-card__action {
    color: var(--text-inverse);
}
.ghost-overlay .feed-card__action--pill,
.ghost-overlay .feed-card__action--share {
    background: var(--feed-card-glass-bg);
    border-color: var(--feed-card-glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-inverse);
}
/* Active vote — green pill with black text, brand standard */
.ghost-overlay .feed-card__action--upvote.active,
.ghost-overlay .feed-card__action--downvote.active {
    background: var(--vote-active-bg);
    color: var(--vote-active-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: var(--feed-card-action-radius);
    outline: 3px solid var(--vote-active-bg);
    position: relative;
    z-index: 1;
}
/* Hover — green bg, black text */
.ghost-overlay .feed-card__action:hover {
    color: var(--color-black);
}
.ghost-overlay .feed-card__action--pill:hover,
.ghost-overlay .feed-card__action--share:hover {
    background: var(--accent-primary);
    color: var(--color-black);
    border-color: var(--accent-primary);
}

/* ticket #3733 anchor v2: canonical app shell (2026-05-21T11:44:17) */

/* =============================================================================
   BOHO SHARE MODAL — Ticket #3797
   Reusable share popup. Replaces raw navigator.share() that silently fails on
   desktop. Pairs with templates/components/_share_modal.html +
   static/js/share_modal.js.
   ============================================================================= */

.boho-share-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-spectacle);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.boho-share-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.boho-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 40, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.boho-share-modal__dialog {
    position: relative;
    box-sizing: border-box;
    background: var(--surface-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl, 24px);
    box-shadow: var(--shadow-lg, 0 12px 40px -8px rgba(20, 25, 40, 0.35));
    padding: var(--space-6);
    width: min(440px, calc(100vw - var(--space-6)));
    max-height: calc(100vh - var(--space-8));
    overflow-y: auto;
    overflow-x: hidden;
    margin: var(--space-4);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.boho-share-modal.is-open .boho-share-modal__dialog {
    transform: translateY(0) scale(1);
}

.boho-share-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0;
}

.boho-share-modal__heading {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.boho-share-modal__kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold, 600);
    color: var(--text-muted, var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.boho-share-modal__kicker iconify-icon {
    font-size: 14px;
    color: var(--accent-secondary, var(--text-secondary));
}

.boho-share-modal__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold, 600);
    line-height: 1.25;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.boho-share-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-full, 9999px);
    background: var(--surface-secondary);
    color: var(--text-secondary);
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.boho-share-modal__close iconify-icon {
    font-size: 16px;
}

.boho-share-modal__close:hover,
.boho-share-modal__close:focus-visible {
    background: var(--surface-tertiary);
    color: var(--text-primary);
    outline: none;
}

.boho-share-modal__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.boho-share-modal__preview {
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    min-width: 0;
    box-sizing: border-box;
}

.boho-share-modal__preview-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--surface-tertiary);
}

.boho-share-modal__preview-body {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.boho-share-modal__preview-title {
    font-weight: var(--font-semibold, 600);
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.3;
    margin-bottom: var(--space-1);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.boho-share-modal__preview-body-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.45;
    margin-bottom: var(--space-2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.boho-share-modal__preview-url {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted, var(--text-secondary));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.boho-share-modal__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-default);
    margin: 0;
}

.boho-share-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full, 9999px);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-semibold, 600);
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    width: 100%;
    min-height: 48px;
}

.boho-share-modal__btn[hidden] {
    display: none !important;
}

.boho-share-modal__btn:active {
    transform: translateY(1px);
}

.boho-share-modal__btn iconify-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.boho-share-modal__btn--primary {
    background: var(--accent-primary);
    color: var(--color-black, #0b0e15);
}

.boho-share-modal__btn--primary:hover {
    background: var(--accent-primary);
    filter: brightness(0.95);
}

.boho-share-modal__btn--secondary {
    background: var(--accent-dark, var(--text-primary));
    color: var(--color-white, #fff);
}

.boho-share-modal__btn--secondary:hover {
    background: var(--text-primary);
    color: var(--color-white, #fff);
}

.boho-share-modal__btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-default);
}

.boho-share-modal__btn--ghost:hover {
    background: var(--surface-secondary);
}

body.boho-share-modal--locked {
    overflow: hidden;
}

@media (max-width: 480px) {
    .boho-share-modal__dialog {
        width: calc(100vw - var(--space-4));
        margin: var(--space-3);
        padding: var(--space-5);
        gap: var(--space-4);
        border-radius: var(--radius-2xl, 24px);
    }
    .boho-share-modal__preview {
        padding: var(--space-3);
        gap: var(--space-3);
    }
    .boho-share-modal__preview-img {
        width: 56px;
        height: 56px;
    }
    .boho-share-modal__title {
        font-size: var(--text-base);
    }
}

@media (max-width: 360px) {
    .boho-share-modal__dialog {
        padding: var(--space-4);
    }
    .boho-share-modal__preview {
        flex-direction: column;
        align-items: stretch;
    }
    .boho-share-modal__preview-img {
        width: 100%;
        height: 120px;
    }
}

/* ticket 3797 anchor: share modal component (2026-05-27); hidden native-share display guard rechecked 2026-06-01 */
/* ticket #4762 anchor: house party share panel — bounded responsive header (kicker + close inside flex), grouped actions w/ divider, overflow-safe preview, narrow viewport stack (2026-06-17) */
