:root {
    --bg: #07111f;
    --panel: rgba(9, 20, 39, 0.78);
    --line: rgba(255, 255, 255, 0.12);
    --text: #eff5ff;
    --muted: #adc0de;
    --accent: #ff6f91;
    --accent-2: #ffd166;
    --accent-3: #89dce9;
    --success: #61d1a6;
    --warning: #ffb86b;
    --danger: #ff8f9d;
    --shadow: 0 24px 70px rgba(2, 7, 16, 0.38);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 111, 145, 0.18), transparent 30%),
        radial-gradient(circle at right 20%, rgba(137, 220, 233, 0.16), transparent 25%),
        linear-gradient(145deg, #060c18 0%, #09172a 52%, #07111f 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-one {
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 111, 145, 0.24), transparent 22%),
        radial-gradient(circle at 85% 10%, rgba(255, 209, 102, 0.18), transparent 20%);
}

.ambient-two {
    background:
        radial-gradient(circle at 70% 80%, rgba(137, 220, 233, 0.12), transparent 22%),
        radial-gradient(circle at 30% 70%, rgba(167, 139, 250, 0.08), transparent 18%);
    filter: blur(16px);
}

.ambient-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 70%);
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), 1320px);
    margin: 20px auto;
    border: 1px solid var(--line);
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(8, 18, 34, 0.92), rgba(7, 16, 30, 0.88));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 16, 29, 0.54);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 6px;
    border-radius: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff4f8;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 111, 145, 0.18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.84rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.site-main {
    padding: 28px;
}

.site-main > *:first-child {
    margin-top: 0;
}

.site-footer {
    display: grid;
    gap: 22px;
    padding: 20px 28px 26px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer p {
    margin: 6px 0 0;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-column h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: var(--text);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-brand-mark {
    flex: 0 0 56px;
}

.footer-long-copy,
.footer-small-copy {
    color: var(--muted);
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-meta-line {
    color: #ffe1ea;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--text);
    opacity: 0.72;
}

.footer-links a:hover {
    opacity: 1;
}

.hero-panel,
.section,
.template-card,
.metric-card,
.editor-panel,
.preview-panel,
.data-panel,
.empty-card,
.status-banner,
.story-panel,
.detail-card,
.floating-card,
.insight-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    padding: 34px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(160deg, rgba(255, 111, 145, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        var(--panel);
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffe4eb;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.preview-header h1,
.empty-card h1 {
    margin: 16px 0 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.hero-copy p,
.section-heading p,
.story-panel p,
.detail-card p,
.empty-card p,
.preview-lead,
.status-banner p,
.floating-card p,
.insight-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
}

.hero-actions,
.section-actions,
.preview-actions,
.dashboard-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button,
.button-ghost,
.button-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
    text-align: center;
}

.button {
    color: #fff8fb;
    background: linear-gradient(135deg, var(--accent), #ff8ea8);
    box-shadow: 0 16px 34px rgba(255, 111, 145, 0.22);
}

.button-ghost {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.button-soft {
    color: #0b1628;
    background: linear-gradient(135deg, #fff3d0, var(--accent-2));
}

.button:hover,
.button-ghost:hover,
.button-soft:hover {
    transform: translateY(-2px);
}

.hero-showcase,
.insight-grid,
.metrics-grid,
.template-grid,
.story-grid,
.action-grid,
.button-grid,
.content-columns,
.content-stack,
.data-grid,
.preview-grid,
.field-grid,
.editor-layout {
    display: grid;
    gap: 18px;
}

.hero-showcase {
    align-content: start;
}

.hero-home-minimal {
    align-items: center;
}

.action-grid,
.button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

.action-tile {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 110px;
    padding: 18px;
}

.action-tile.primary {
    color: #fff8fb;
}

.action-tile strong {
    font-size: 1rem;
}

.action-tile span {
    color: var(--muted);
    line-height: 1.6;
}

.compact-section .template-card p {
    display: none;
}

.compact-heading h2 {
    margin-bottom: 0;
}

.floating-card,
.insight-card,
.detail-card,
.story-panel,
.metric-card,
.data-panel,
.editor-panel,
.preview-panel,
.status-banner {
    padding: 24px;
}

.floating-card {
    background:
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.16), transparent 30%),
        rgba(255, 255, 255, 0.06);
}

.logo-showcase {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 20px;
}

.logo-showcase img {
    width: min(100%, 240px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 28px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.floating-card strong,
.insight-card strong,
.detail-card strong {
    display: block;
    font-size: 1rem;
}

.insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section {
    margin-top: 26px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card strong {
    display: block;
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.metric-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-card {
    overflow: hidden;
}

.template-art {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.template-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-content {
    padding: 22px;
}

.template-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.template-title h3,
.story-panel h3,
.data-panel h3,
.preview-panel h3,
.editor-panel h3,
.status-banner h3 {
    margin: 0;
    font-size: 1.14rem;
}

.pill,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.83rem;
}

.pill {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.pill.success {
    color: #061f16;
    background: var(--success);
}

.pill.warning {
    color: #2d1900;
    background: var(--warning);
}

.pill.danger {
    color: #320711;
    background: var(--danger);
}

.template-card p {
    margin: 14px 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.chip {
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-guide-grid .story-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.04);
}

.story-index {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    margin-bottom: 18px;
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(255, 209, 102, 0.12), transparent 40%),
        rgba(255, 255, 255, 0.04);
}

.status-banner.is-error {
    background:
        linear-gradient(135deg, rgba(255, 143, 157, 0.16), transparent 38%),
        rgba(255, 255, 255, 0.04);
}

.quick-start-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 111, 145, 0.1), transparent 38%),
        rgba(255, 255, 255, 0.04);
}

.quick-start-card strong {
    display: block;
    font-size: 1.2rem;
}

.quick-start-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.content-page {
    padding-top: 34px;
}

.content-stack {
    gap: 18px;
}

.content-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.content-section p {
    color: var(--muted);
    line-height: 1.85;
}

.plain-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.plain-list li + li {
    margin-top: 8px;
}

.editor-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.field label {
    color: #f7dfe7;
    font-size: 0.94rem;
    font-weight: 600;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 15px 16px;
    font-size: 16px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.field textarea {
    min-height: 180px;
    resize: vertical;
}

.field-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.template-picker {
    display: grid;
    gap: 12px;
}

.template-option {
    position: relative;
}

.template-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.template-option label {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
    background: rgba(255, 255, 255, 0.03);
}

.template-option input:checked + label {
    border-color: rgba(255, 111, 145, 0.56);
    background: rgba(255, 111, 145, 0.08);
    transform: translateY(-2px);
}

.template-option-art {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.template-option-copy strong {
    display: block;
    margin-bottom: 6px;
}

.template-option-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.detail-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.detail-row strong {
    font-size: 0.95rem;
}

.detail-row span {
    color: var(--muted);
    text-align: right;
    line-height: 1.7;
    max-width: 65%;
}

.detail-row [data-selected-template-effects] {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
}

.preview-frame {
    width: 100%;
    height: 720px;
    border: 0;
    border-radius: 26px;
    background: #060b14;
}

.link-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.link-card code {
    overflow-wrap: anywhere;
    color: #ffeaf1;
}

.data-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.data-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.data-table th,
.data-table td {
    padding: 14px 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-table td {
    font-size: 0.94rem;
    color: #edf3fd;
}

.data-table a {
    color: #ffe8ef;
}

.muted {
    color: var(--muted);
}

.empty-card {
    text-align: center;
    padding: 56px 24px;
}

.toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 12px;
    z-index: 50;
}

.toast {
    display: flex;
    align-items: start;
    gap: 12px;
    min-width: min(360px, calc(100vw - 36px));
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(6, 14, 26, 0.94);
    box-shadow: var(--shadow);
}

.toast strong {
    display: block;
    margin-bottom: 4px;
}

.toast p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.toast::before {
    content: '';
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--accent-3);
    box-shadow: 0 0 0 6px rgba(137, 220, 233, 0.16);
}

.toast.is-success::before {
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(97, 209, 166, 0.16);
}

.toast.is-error::before {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(255, 143, 157, 0.16);
}

.ad-gate[hidden] {
    display: none;
}

.ad-gate {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ad-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 20, 0.76);
    backdrop-filter: blur(12px);
}

.ad-gate-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 111, 145, 0.1), transparent 32%),
        rgba(7, 16, 30, 0.96);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

.ad-gate-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    padding: 10px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.ad-gate-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-gate-card h3 {
    margin: 14px 0 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 0.98;
}

.ad-gate-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.ad-gate-promo {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.ad-gate-promo strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.ad-gate-actions {
    margin-top: 22px;
}

.ad-gate-actions .button[disabled] {
    opacity: 0.72;
    cursor: wait;
}

@media (max-width: 1080px) {
    .hero-panel,
    .editor-layout,
    .preview-grid,
    .data-grid,
    .footer-grid,
    .template-grid,
    .story-grid,
    .action-grid,
    .button-grid,
    .content-columns,
    .field-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .site-shell {
        width: min(calc(100% - 12px), 1320px);
        margin: 6px auto;
        border-radius: 24px;
    }

    .site-header,
    .site-main,
    .site-footer,
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        margin: 0 20px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 20px;
        background: rgba(8, 16, 29, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .section-heading,
    .status-banner,
    .site-footer {
        align-items: start;
        flex-direction: column;
    }

    .footer-grid {
        gap: 18px;
    }

    .preview-frame {
        height: 500px;
    }

    .quick-start-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        min-height: 100vh;
    }

    .ambient-grid {
        opacity: 0.45;
    }

    .site-header {
        gap: 12px;
        padding-top: max(14px, env(safe-area-inset-top));
        padding-bottom: 14px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-panel,
    .section,
    .editor-panel,
    .preview-panel,
    .data-panel,
    .story-panel,
    .detail-card,
    .status-banner,
    .metric-card,
    .floating-card,
    .insight-card {
        padding: 18px;
        border-radius: 20px;
    }

    .brand {
        min-width: 0;
        gap: 10px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 14px;
        font-size: 0.9rem;
    }

    .brand-copy strong {
        font-size: 0.92rem;
    }

    .brand-copy small {
        display: none;
    }

    .site-main {
        padding: 14px 14px 24px;
    }

    .button,
    .button-ghost,
    .button-soft {
        width: 100%;
        min-height: 50px;
    }

    .hero-actions,
    .section-actions,
    .preview-actions,
    .dashboard-actions {
        display: grid;
        gap: 10px;
    }

    .action-grid,
    .button-grid {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        gap: 18px;
        padding: 18px;
        border-radius: 24px;
    }

    .logo-showcase {
        min-height: 0;
        padding: 8px;
    }

    .logo-showcase img {
        width: min(100%, 190px);
        border-radius: 22px;
        padding: 14px;
    }

    .section {
        margin-top: 18px;
        padding: 18px;
        border-radius: 24px;
    }

    .content-page {
        padding-top: 20px;
    }

    .eyebrow {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .hero-copy h1,
    .section-heading h2,
    .preview-header h1,
    .empty-card h1 {
        margin-top: 14px;
        font-size: clamp(2.2rem, 11vw, 3.2rem);
        line-height: 0.98;
    }

    .hero-copy p,
    .section-heading p,
    .story-panel p,
    .detail-card p,
    .empty-card p,
    .preview-lead,
    .status-banner p,
    .floating-card p,
    .insight-card p,
    .template-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .template-content {
        padding: 18px;
    }

    .template-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-brand {
        flex-direction: column;
    }

    .template-option label {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .template-option-art {
        aspect-ratio: 16 / 10;
    }

    .field {
        margin-bottom: 16px;
    }

    .field-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-row {
        flex-direction: column;
        gap: 8px;
    }

    .detail-row span {
        max-width: 100%;
        text-align: left;
    }

    .detail-row [data-selected-template-effects] {
        justify-content: flex-start;
    }

    .preview-grid {
        gap: 14px;
    }

    .preview-info-panel {
        order: -1;
    }

    .preview-frame {
        height: 360px;
        border-radius: 18px;
    }

    .quick-start-card {
        padding: 18px;
        border-radius: 20px;
    }

    .link-card {
        padding: 14px;
        border-radius: 16px;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table-wrap {
        overflow: visible;
    }

    .data-table tr {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .data-table tr:last-child {
        border-bottom: 0;
    }

    .data-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 0;
        border-bottom: 0;
        font-size: 0.92rem;
    }

    .data-table td::before {
        content: attr(data-label);
        flex: 0 0 40%;
        color: var(--muted);
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .toast-stack {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .toast {
        min-width: 0;
        width: 100%;
        padding: 14px 16px;
    }

    .ad-gate {
        padding: 14px;
    }

    .ad-gate-card {
        padding: 20px;
        border-radius: 22px;
    }

    .ad-gate-logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
}
