:root {
    --ink: #383838;
    --muted: #707070;
    --cream: #f5f6ed;
    --cream-deep: #ecefdc;
    --red: #d83b2d;
    --red-dark: #b92d22;
    --blue: #469be1;
    --blue-dark: #247fc9;
    --teal: #2aa8a4;
    --line: #e5e5df;
    --white: #fff;
    --shadow: 0 24px 60px rgba(52, 52, 41, .12);
    --shell: 1120px;
}

@font-face {
    font-family: "ETmodules";
    src: url("../fonts/etmodules.woff") format("woff");
    font-display: block;
    font-style: normal;
    font-weight: 400;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
h1, h2, h3 { margin: 0 0 24px; font-family: "Fredoka", sans-serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 24px; }
.eyebrow {
    margin-bottom: 16px;
    color: var(--red);
    font-family: "Dosis", sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 176px; height: auto; }
/* Keep the supplied logo intact; only its transparent margins are outside the frame. */
.domain-logo--tales4kids { aspect-ratio: 600 / 147; object-fit: cover; object-position: center 35%; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); font-family: "Dosis", sans-serif; font-weight: 600; }
.header-inner > .brand { flex-shrink: 0; }
.nav-feedback { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 13px; border: 1px solid #e2d9cb; border-radius: 999px; background: #fffdf7; color: #a44833; font: inherit; line-height: 1.35; cursor: pointer; white-space: nowrap; }
.nav-feedback:hover { border-color: var(--red); background: #fff3ec; }
.nav-feedback svg { flex-shrink: 0; }
.main-nav > a { position: relative; padding: 28px 0; }
.main-nav > a:not(.nav-credit)::after {
    position: absolute; right: 0; bottom: 21px; left: 0; height: 2px;
    background: var(--red); content: ""; transform: scaleX(0); transition: transform .2s ease;
}
.main-nav > a:hover::after { transform: scaleX(1); }
.nav-credit { padding: 10px 17px !important; border-radius: 999px; color: var(--white); background: var(--red); }
.language-switcher { position: relative; flex-shrink: 0; }
.language-switcher > img { position: absolute; left: 12px; top: 50%; width: 18px; transform: translateY(-50%); pointer-events: none; }
.language-switcher select { width: 134px; min-height: 42px; padding: 8px 8px 8px 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--cream); font: inherit; font-size: .9rem; cursor: pointer; }
.language-switcher select:focus-visible, .nav-feedback:focus-visible { outline: 3px solid rgba(216,59,45,.4); outline-offset: 3px; }
.language-switcher noscript a { display: block; }
.menu-toggle { display: none; border: 0; color: var(--ink); background: transparent; font-family: "Dosis", sans-serif; font-weight: 700; }
.flash-message { position: fixed; z-index: 40; top: 94px; left: 50%; max-width: min(90vw, 680px); transform: translateX(-50%); padding: 13px 22px; border-radius: 12px; color: #fff; background: #2f7d59; box-shadow: var(--shadow); }

.button {
    display: inline-flex; min-height: 60px; align-items: center; justify-content: center;
    padding: 15px 30px; border: 0; border-radius: 999px; font-family: "Dosis", sans-serif;
    font-size: .92rem; font-weight: 800; letter-spacing: .18em; text-align: center; text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); box-shadow: 0 15px 30px rgba(216, 59, 45, .2); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--white); background: var(--blue); }
.button-secondary:hover { background: var(--blue-dark); }
.button-ghost { border: 1px solid #cfd2cd; color: var(--ink); background: var(--white); }
.credit-pill { display: inline-flex; margin-left: 14px; padding: 7px 13px; border-radius: 999px; color: #466244; background: #e7efdd; font-size: .8rem; font-weight: 600; }

.hero {
    position: relative; min-height: clamp(680px, calc(100vh - 82px), 1050px); overflow: hidden; background: var(--cream) url("../img/day-care-bg.png") center 65% / cover no-repeat;
}
.hero-content { position: relative; z-index: 2; }
.hero-showcase {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: clamp(36px, 3vw, 56px) 20px 190px;
    text-align: center;
}
.hero-logo {
    width: min(68vw, 1360px);
    height: auto;
    filter: drop-shadow(0 14px 10px rgba(55, 55, 45, .32));
}
.hero-title {
    max-width: min(50vw, 1000px);
    margin: clamp(24px, 2.4vw, 46px) auto 0;
    color: #ee2d24;
    font-family: "Kalam", cursive;
    font-size: clamp(3rem, 4.9vw, 6.15rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -.035em;
    text-shadow: 0 11px 10px rgba(75, 62, 44, .17);
}
.hero-button {
    width: clamp(280px, 22vw, 445px);
    min-height: clamp(70px, 5vw, 102px);
    margin-top: clamp(34px, 3.2vw, 45px);
    font-size: clamp(1rem, 1.4vw, 1.8rem);
}
.hero-landscape { position: absolute; z-index: 1; right: 0; bottom: -1px; left: 0; width: 100%; min-width: 1280px; max-width: none; }
.story-section { padding-block: 90px; }
.section-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.section-grid-reverse { grid-template-columns: .9fr 1.1fr; }
.story-section .section-copy h2 {
    font-family: "Dosis", sans-serif;
    font-size: clamp(2.8rem, 4.7vw, 3.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
}
.section-copy p { color: #666; font-size: 1rem; font-weight: 500; line-height: 2; text-align: justify; }
.section-copy strong { font-weight: 700; }
.story-section .button { font-family: "Poppins", sans-serif; font-size: 1rem; font-weight: 900; letter-spacing: .25em; }
.soft-photo { position: relative; margin: 0; overflow: hidden; border-radius: 80px 24px 80px 24px; box-shadow: var(--shadow); }
.soft-photo::after { position: absolute; inset: 0; border: 10px solid rgba(255,255,255,.22); border-radius: inherit; content: ""; pointer-events: none; }
.soft-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.soft-photo.portrait { width: min(100%, 430px); justify-self: center; }
.soft-photo.portrait img { aspect-ratio: 3/4; }
.benefits-section { padding: 26px 0 38px; background: var(--white); text-align: center; }
.benefits-inner { width: min(calc(100% - 40px), 1012px); margin-inline: auto; }
.benefits-section h2 {
    margin-bottom: 50px;
    padding-bottom: 10px;
    font-family: "Dosis", sans-serif;
    font-size: clamp(2.8rem, 4.7vw, 3.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; text-align: center; }
.benefit-card { min-width: 0; }
.benefit-icon {
    width: 98px;
    height: 98px;
    display: grid;
    place-items: center;
    margin: 0 auto 30px;
    border-radius: 50%;
    color: var(--white);
    font-family: "ETmodules";
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
}
.benefit-icon-plot { background: #5d58ef; }
.benefit-icon-moral { background: #ff236c; }
.benefit-icon-images { background: #ffc259; }
.benefit-icon-world { background: #ff7f59; }
.benefit-card h3 {
    margin: 0;
    padding-bottom: 10px;
    font-family: "Dosis", sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 0;
}
.benefit-card p { margin: 0; color: #666; font-size: 1.125rem; font-weight: 500; line-height: 2; text-align: center; }
.benefits-button {
    width: 238px;
    min-width: 238px;
    margin-top: 52px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .25em;
    white-space: nowrap;
}
.closing-photo { position: relative; overflow: hidden; background: #1b1712; }
.closing-photo-image { width: 100%; height: auto; }
.closing-photo-wave { position: absolute; z-index: 2; top: -1px; left: 0; width: 100%; height: 100px; pointer-events: none; }

.form-intro { position: relative; min-height: 190px; overflow: hidden; background: var(--cream); }
.form-intro .shell { position: relative; z-index: 2; padding-top: 60px; }
.form-intro p { max-width: 900px; font-size: 1.05rem; }
.form-intro img { position: absolute; right: 0; bottom: 0; width: min(72%, 980px); opacity: .75; }
.wizard-wrap { min-height: 670px; padding: 75px 20px 110px; }
.story-wizard { width: min(100%, 700px); margin: 0 auto; padding: 42px 48px; border: 1px solid #eeeee8; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.wizard-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.progress-track { height: 8px; margin-bottom: 42px; overflow: hidden; border-radius: 10px; background: #dce8f4; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease; }
.wizard-step { min-height: 300px; }
.wizard-step label:not(.choice-card):not(.checkbox-line), .wizard-step legend { display: block; width: 100%; margin: 0 0 10px; font-family: "Fredoka", sans-serif; font-size: 1.22rem; font-weight: 600; text-align: center; }
.wizard-step label:not(:first-child) { margin-top: 28px; }
.wizard-step em { color: var(--red); font-style: normal; }
.wizard-step input[type="text"], .wizard-step input[type="email"], .wizard-step input:not([type]), .wizard-step textarea {
    width: 100%; padding: 15px 18px; border: 1px solid #d9ddd9; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s;
}
.wizard-step input:focus, .wizard-step textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(70,155,225,.12); }
.wizard-step small { display: block; color: var(--muted); text-align: center; }
.field-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 11px 0 0; }
.field-suggestion {
    max-width: 100%;
    padding: 7px 11px;
    overflow: hidden;
    border: 1px solid #dfe2dd;
    border-radius: 999px;
    color: #5f635d;
    background: #f8f9f3;
    font-size: .78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.field-suggestion:hover, .field-suggestion:focus-visible { border-color: var(--blue); color: var(--ink); background: #edf7ff; transform: translateY(-1px); }
.wizard-step fieldset { margin: 0; padding: 0; border: 0; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.moral-more { margin-top: 20px; }
.wizard-step .moral-more label { margin: 0 0 8px !important; font-family: "Poppins", sans-serif; font-size: .9rem; font-weight: 600; text-align: left; }
.moral-more select { width: 100%; padding: 15px 46px 15px 18px; border: 1px solid #d9ddd9; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; }
.moral-more select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(70,155,225,.12); }
.moral-more small { margin-top: 5px; }
.choice-card { position: relative; display: block; margin: 0 !important; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: flex; min-height: 82px; align-items: center; padding: 14px 16px; border: 1px solid #dfe2dd; border-radius: 12px; font-size: .86rem; line-height: 1.45; transition: .2s; }
.choice-card input:checked + span { border-color: var(--blue); background: #edf7ff; box-shadow: inset 0 0 0 1px var(--blue); }
.checkbox-line { display: flex !important; align-items: center; gap: 10px; margin: 18px 0 !important; font-family: "Poppins", sans-serif !important; font-size: .9rem !important; text-align: left !important; }
.checkbox-line input { width: 18px; height: 18px; accent-color: var(--blue); }
.legal-acceptance { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-checkbox { align-items: flex-start !important; margin: 0 !important; color: #5f625d; font-size: .76rem !important; font-weight: 500; line-height: 1.65; }
.legal-checkbox input { flex: 0 0 auto; margin-top: 3px; }
.legal-checkbox a { color: #2777b9; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.field-error { margin: 8px 0 0; color: #b42318; font-size: .82rem; text-align: center; }
.wizard-actions { display: flex; gap: 12px; margin-top: 28px; }
.wizard-actions .button { flex: 1; border-radius: 10px; }

.story-result { padding-block: 90px 120px; }
.status-card { max-width: 760px; min-height: 420px; display: grid; align-content: center; justify-items: center; margin: 0 auto; padding: 55px; border-radius: 36px; background: var(--cream); text-align: center; box-shadow: var(--shadow); }
.status-card h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.status-card p { max-width: 580px; color: var(--muted); }
.action-card { gap: 4px; }
.action-card h1 { color: #b9573f; font-family: "Nunito", sans-serif; font-weight: 700; letter-spacing: -.035em; }
.action-card .button { margin-top: 8px; }
.social-reward-card { max-width: 820px; }
.reward-share-copy { width: min(100%, 660px); display: grid; justify-items: center; gap: 10px; margin-top: 22px; }
.reward-share-copy label, .reward-proof-form label { color: var(--ink); font-family: "Nunito", sans-serif; font-size: 1rem; font-weight: 700; }
.reward-share-copy textarea { width: 100%; min-height: 118px; resize: vertical; padding: 16px 18px; border: 1px solid #d9ddd5; border-radius: 16px; background: #fff; color: var(--ink); font: 500 .92rem/1.65 "Poppins", sans-serif; }
.reward-share-copy .button { margin-top: 0; }
.social-share-actions { width: min(100%, 660px); display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.social-share-actions .button { width: 100%; min-height: 54px; padding-inline: 16px; font-size: .78rem; letter-spacing: .12em; }
.reward-note { margin: 14px 0 0; color: #85857c !important; font-size: .82rem; line-height: 1.65; }
.reward-proof-form { width: min(100%, 660px); display: grid; justify-items: stretch; gap: 11px; margin-top: 28px; padding-top: 26px; border-top: 1px solid #dddcd2; }
.reward-proof-form input { width: 100%; min-height: 58px; padding: 12px 16px; border: 1px solid #d9ddd5; border-radius: 14px; background: #fff; color: var(--ink); font: 500 .9rem "Poppins", sans-serif; }
.reward-proof-form input:focus, .reward-share-copy textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(70,155,225,.12); }
.reward-proof-form .button { width: 100%; margin-top: 4px; }
.reward-proof-form .field-error { margin: -2px 0 2px; }
.safety-rejection-card { max-width: 820px; padding-top: 38px; }
.safety-rejection-image { width: min(100%, 430px); height: auto; margin-bottom: 24px; border-radius: 26px; box-shadow: 0 16px 36px rgba(94, 65, 35, .12); }
.safety-rejection-card h1 { max-width: 650px; color: #8f4d3b; font-size: clamp(2.1rem, 4.6vw, 3.55rem); }
.safety-rejection-card > p:not(.generation-kicker) { max-width: 650px; }
.safety-rejection-card .safety-credit-note { margin-top: 14px; color: #8a6a61; font-size: .78rem; }
.error-card { background: #fff2ef; }
.generation-card { min-height: 540px; align-content: start; padding-top: clamp(52px, 7vw, 76px); }
.generation-card .writing-dots { margin-bottom: 20px; }
.generation-kicker { margin-bottom: 20px; font-size: .88rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.generation-card .generation-phrase {
    min-height: 2.16em;
    display: grid;
    align-items: center;
    margin-bottom: 40px;
    color: var(--story-title-color, #b9573f);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -.035em;
    transition: opacity .35s ease, transform .35s ease;
}
.generation-phrase.is-changing { opacity: 0; transform: translateY(8px) scale(.98); }
.generation-progress { width: min(100%, 580px); height: 13px; overflow: hidden; border-radius: 999px; background: #e2e4d7; box-shadow: inset 0 1px 2px rgba(56, 56, 48, .08); }
.generation-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--story-title-color, #b9573f); transition: width .35s ease-out; }
.generation-progress-meta { width: min(100%, 580px); display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.generation-progress-meta [data-generation-percent] { color: var(--story-title-color, #b9573f); font-weight: 700; }
.status-card .generation-disclaimer {
    width: min(100%, 580px);
    margin: 34px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(112, 112, 112, .18);
    color: #7b7b72;
    font-size: .72rem;
    font-weight: 400;
    line-height: 1.65;
    text-align: left;
}
.writing-dots { display: flex; gap: 10px; margin-bottom: 32px; }
.writing-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--story-title-color, var(--red)); animation: bounce 1s infinite alternate; }
.writing-dots span:nth-child(2) { animation-delay: .2s; }
.writing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { to { transform: translateY(-10px); opacity: .45; } }
.story-paper { max-width: 840px; margin: 0 auto; padding: clamp(38px, 7vw, 80px); border: 1px solid #e7e2d5; border-radius: 36px; background: #fffdf7; box-shadow: var(--shadow); }
.story-paper h1 { color: var(--story-title-color, #b9573f); font-family: "Nunito", sans-serif; font-size: clamp(2.5rem, 5vw, 4.45rem); font-weight: 700; letter-spacing: -.035em; text-align: center; }
.story-paper .eyebrow { text-align: center; }
.story-ai-disclosure { margin: -20px auto 30px; color: var(--muted); font-size: .82rem; letter-spacing: .025em; text-align: center; }
.story-copy { color: #4c4941; font-family: "Poppins", sans-serif; font-size: 1.04rem; line-height: 2; }
.story-copy p:first-child::first-letter { float: left; margin: 8px 9px 0 0; color: var(--red); font-family: "Nunito", sans-serif; font-size: 4rem; font-weight: 700; line-height: .7; }
.story-illustration {
    width: calc(100% + clamp(8px, 3vw, 28px));
    margin: 38px 50% 42px;
    overflow: hidden;
    border: 1px solid rgba(112, 96, 70, .16);
    border-radius: clamp(20px, 4vw, 30px);
    background: #f5f4e9;
    box-shadow: 0 18px 42px rgba(68, 57, 39, .12);
    transform: translateX(-50%);
}
.story-illustration img { display: block; width: 100%; height: auto; aspect-ratio: var(--illustration-ratio, 3 / 2); object-fit: cover; }
.story-illustration-placeholder {
    aspect-ratio: var(--illustration-ratio, 3 / 2);
    min-height: clamp(230px, 42vw, 430px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 15px;
    padding: 32px;
    color: #7f7769;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 197, 88, .22), transparent 31%),
        radial-gradient(circle at 80% 82%, rgba(70, 155, 225, .14), transparent 30%),
        linear-gradient(135deg, #faf8ed, #f0f3e7);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}
.story-illustration-sparkles { color: var(--story-title-color, #b9573f); font-size: 1.45rem; letter-spacing: .3em; animation: illustrationSparkle 1.8s ease-in-out infinite alternate; }
.story-illustration-failed { box-shadow: none; opacity: .72; }
.story-illustration-failed .story-illustration-sparkles { animation: none; }
@keyframes illustrationSparkle { to { opacity: .45; transform: translateY(-4px) scale(.96); } }
.audio-panel { margin: 28px 0 42px; padding: 20px; border-radius: 18px; background: var(--cream); text-align: center; }
.audio-listen-button {
    min-height: 56px;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--story-title-color, #b9573f);
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(110, 67, 43, .17);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.audio-listen-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(110, 67, 43, .22); }
.audio-listen-button:focus-visible { outline: 3px solid rgba(70, 155, 225, .4); outline-offset: 3px; }
.audio-listen-button:disabled { opacity: .65; cursor: wait; }
.audio-loading, .audio-error { margin: 0; font-size: .9rem; font-weight: 600; }
.audio-loading { color: var(--muted); }
.audio-error { color: #a6253b; }
.audio-player { width: 100%; }
.feedback-panel { max-width: 840px; margin: 45px auto 0; text-align: center; }
.feedback-panel h2 { font-family: "Nunito", sans-serif; font-size: 2.1rem; font-weight: 700; letter-spacing: -.025em; }
.feedback-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feedback-button { width: 100%; min-height: 54px; border: 0; border-radius: 15px; color: white; font-weight: 600; }
.rating-3 { background: #368647; }.rating-2 { background: #ad741b; }.rating-1 { background: #a6253b; }
.feedback-thanks-page main { background: var(--cream); }
.feedback-thanks-section { padding-block: 80px 110px; }
.feedback-thanks-card {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(36px, 7vw, 70px);
    border: 1px solid #e7e2d5;
    border-radius: 36px;
    background: #fffdf7;
    box-shadow: var(--shadow);
    text-align: center;
}
.feedback-thanks-card .eyebrow { margin-bottom: 18px; }
.feedback-thanks-card h1 { color: var(--story-title-color, #b9573f); font-family: "Nunito", sans-serif; font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; }
.feedback-thanks-card > p:not(.eyebrow) { max-width: 540px; margin: 0 auto 30px; color: var(--muted); font-size: 1.05rem; }
.feedback-thanks-gif { width: min(100%, 340px); height: auto; display: block; margin: 0 auto 28px; border-radius: 30px; }
.feedback-handoff-card { min-height: 460px; display: grid; align-content: center; justify-items: center; }
.feedback-handoff-card .writing-dots { margin-bottom: 25px; }
.feedback-handoff-card form { margin-top: 6px; }

.page-hero { padding: 90px 0 70px; background: var(--cream); text-align: center; }
.page-hero p { max-width: 720px; margin-inline: auto; color: var(--muted); }
.card-section { padding: 80px 0 110px; }
.wallet-card { max-width: 760px; margin: 0 auto; padding: 38px; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.wallet-balance { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.wallet-balance strong { display: block; font-family: "Fredoka", sans-serif; font-size: 4rem; line-height: 1; }
.wallet-list { margin: 28px 0 0; padding: 0; list-style: none; }
.wallet-list li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.access-form, .grant-form { display: grid; gap: 12px; }
.access-form input, .grant-form input, .pricing-card input { width: 100%; padding: 14px 16px; border: 1px solid #d9ddd9; border-radius: 10px; }
.debug-link { margin-top: 18px; padding: 15px; overflow-wrap: anywhere; border-radius: 10px; background: #fff5d6; font-size: .8rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card { padding: 35px 28px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 15px 40px rgba(52,52,41,.08); }
.pricing-card strong { display: block; margin-bottom: 15px; font-family: "Fredoka", sans-serif; font-size: 3.4rem; }
.pricing-card .price { margin-bottom: 24px; color: var(--red); font-weight: 700; }
.pricing-consent { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0; color: #66675f; font-size: .7rem; line-height: 1.55; text-align: left; }
.pricing-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }
.pricing-consent a { color: #2777b9; font-weight: 700; text-decoration: underline; }
.pricing-card .button { width: 100%; margin-top: 12px; }
.test-notice { margin: 0 0 35px; padding: 18px 22px; border-radius: 14px; background: #fff5d6; }

.blog-page { background: #fffdf9; }
.blog-page .page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 76px;
    background:
        radial-gradient(circle at 19% 18%, rgba(255, 194, 89, .18), transparent 31%),
        radial-gradient(circle at 83% 9%, rgba(70, 155, 225, .12), transparent 30%),
        linear-gradient(135deg, #f6f7ef 0%, #fffdf8 100%);
}
.blog-page .page-hero::after {
    position: absolute;
    right: clamp(28px, 8vw, 160px);
    bottom: -54px;
    width: 178px;
    height: 178px;
    border-radius: 44% 56% 52% 48%;
    background: rgba(216, 59, 45, .08);
    content: "";
    transform: rotate(-10deg);
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-page .page-hero h1 {
    max-width: 820px;
    margin-inline: auto;
    color: #403f39;
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.65rem, 5vw, 4.7rem);
    font-weight: 700;
    letter-spacing: -.04em;
}
.blog-page .page-hero p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto;
    color: #68675f;
    font-size: 1.05rem;
    line-height: 1.9;
}
.blog-page .card-section { padding: 72px 0 118px; }
.blog-grid { display: grid; align-items: stretch; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(229, 229, 223, .9);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(52, 52, 41, .075);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.blog-card:hover {
    border-color: rgba(216, 59, 45, .18);
    box-shadow: 0 28px 70px rgba(52, 52, 41, .13);
    transform: translateY(-5px);
}
.blog-card-featured { grid-column: span 2; flex-direction: row; }
.blog-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--cream);
}
.blog-card-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10.5;
    object-fit: cover;
    transition: transform .35s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.035); }
.blog-card-featured .blog-card-media { flex: 0 0 47%; }
.blog-card-featured .blog-card-media img { aspect-ratio: auto; }
.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 30px;
}
.blog-date {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--red);
    background: #fff1ea;
    font-family: "Dosis", sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}
.blog-card h2 {
    margin: 0 0 14px;
    color: #3f3e39;
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.035em;
}
.blog-card h2 a { transition: color .2s ease; }
.blog-card h2 a:hover { color: #b9573f; }
.blog-card p {
    margin-bottom: 24px;
    color: #6e6c64;
    font-size: .94rem;
    line-height: 1.85;
}
.blog-readmore {
    width: fit-content;
    margin-top: auto;
    color: var(--red);
    font-family: "Dosis", sans-serif;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.blog-readmore::after { content: " →"; letter-spacing: 0; }
.blog-pagination { margin-top: 44px; color: var(--muted); }
.article-shell {
    width: min(calc(100% - 40px), 940px);
    margin-inline: auto;
    padding: 74px 0 122px;
}
.article-back {
    display: inline-flex;
    margin-bottom: 38px;
    color: var(--red);
    font-family: "Dosis", sans-serif;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.article-header { text-align: center; }
.article-header .eyebrow { margin-bottom: 11px; }
.article-header .blog-date { margin: 0 auto 24px; }
.article-shell h1 {
    max-width: 880px;
    margin-inline: auto;
    color: #b9573f;
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.35rem, 5vw, 4.35rem);
    font-weight: 700;
    letter-spacing: -.045em;
}
.article-lead {
    max-width: 760px;
    margin: 0 auto;
    color: #6a685f;
    font-size: 1.08rem;
    line-height: 1.95;
}
.article-cover {
    position: relative;
    margin: 48px 0 58px;
    overflow: hidden;
    border-radius: 42px 18px 42px 18px;
    box-shadow: var(--shadow);
}
.article-cover::after {
    position: absolute;
    inset: 0;
    border: 10px solid rgba(255, 255, 255, .22);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}
.article-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.article-body {
    width: min(100%, 760px);
    margin: 0 auto;
    color: #4f4c45;
    font-size: 1.02rem;
    line-height: 2.02;
}
.article-body h2, .article-body h3, .article-body h4 {
    margin: 46px 0 18px;
    color: #3f3e39;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    letter-spacing: -.035em;
}
.article-body h2 { font-size: clamp(1.9rem, 3vw, 2.55rem); }
.article-body h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.article-body p { margin-bottom: 25px; }
.article-body ul, .article-body ol { margin: 0 0 28px 24px; padding: 0; }
.article-body li { margin-bottom: 10px; }
.article-body img {
    height: auto;
    margin: 38px auto;
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(52, 52, 41, .08);
}
.article-body blockquote {
    margin: 38px 0;
    padding: 24px 28px;
    border-left: 5px solid var(--red);
    border-radius: 18px;
    background: var(--cream);
    color: #55524c;
}
.article-body a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.admin-page { background: #f7f7f1; }
.admin-page main { overflow: hidden; }
.admin-dashboard { --admin-border: #e1e4dc; --admin-card: #fff; padding-top: 58px; }
.admin-dashboard h1, .admin-dashboard h2, .admin-dashboard h3 { font-family: "Nunito", sans-serif; font-weight: 700; letter-spacing: -.035em; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 34px; }
.admin-title-row .eyebrow { margin-bottom: 9px; }
.admin-title-row h1 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.admin-title-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.admin-dashboard-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: -14px 0 26px; }
.admin-rate-panel { display: grid; justify-items: end; gap: 8px; margin-bottom: 8px; }
.admin-rate-note { max-width: 340px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; text-align: right; }
.admin-small-action { min-height: 32px; padding: 6px 12px; border: 1px solid #d9ddd9; border-radius: 999px; color: #287fc5; background: #fff; font-family: "Nunito", sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(52,52,41,.04); }
.admin-small-action:hover { border-color: #b9d8ef; background: #f4faff; }
.admin-link-action { display: inline-flex; align-items: center; justify-content: center; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.admin-stat { position: relative; min-height: 132px; overflow: hidden; padding: 22px; border: 1px solid var(--admin-border); border-radius: 22px; background: var(--admin-card); box-shadow: 0 12px 30px rgba(52,52,41,.045); }
.admin-stat::after { position: absolute; right: -18px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--stat-color, #dcebd8); content: ""; opacity: .75; }
.admin-stat span { color: var(--muted); font-size: .73rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.admin-stat strong { position: relative; z-index: 1; display: block; margin-top: 8px; font-family: "Nunito", sans-serif; font-size: 2.35rem; font-weight: 700; line-height: 1; }
.admin-stat-wallets { --stat-color: #d8ebf7; }.admin-stat-credits { --stat-color: #f8e4c3; }.admin-stat-stories { --stat-color: #e3edd5; }.admin-stat-blog { --stat-color: #f2d9d5; }
.admin-action-grid, .admin-insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.admin-action-card, .admin-data-card, .admin-insight-card, .admin-map-card { border: 1px solid var(--admin-border); border-radius: 25px; background: var(--admin-card); box-shadow: 0 16px 40px rgba(52,52,41,.055); }
.admin-action-card { min-height: 335px; padding: 27px; }
.admin-card-heading, .admin-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.admin-card-heading { margin-bottom: 23px; }
.admin-card-heading h2, .admin-section-heading h2 { margin: 0; font-size: 1.75rem; }
.admin-card-kicker { margin: 0 0 4px; color: var(--red); font-family: "Dosis", sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.admin-card-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: #287fc5; background: #e6f3fc; font-size: 1.8rem; line-height: 1; }
.admin-credit-card .grant-form { grid-template-columns: minmax(0, 1.55fr) minmax(100px, .45fr); }
.admin-credit-card .grant-form label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.admin-credit-card .grant-form .button { grid-column: 1 / -1; width: fit-content; min-height: 50px; margin-top: 3px; padding: 11px 23px; font-size: .78rem; }
.admin-moral-total { min-width: 72px; padding: 9px 12px; border-radius: 15px; background: var(--cream); text-align: center; }
.admin-moral-total strong { display: block; font-family: "Nunito", sans-serif; font-size: 1.55rem; line-height: 1; }
.admin-moral-total span { color: var(--muted); font-size: .62rem; }
.admin-featured-morals { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.admin-featured-morals li { display: flex; gap: 11px; align-items: baseline; padding-bottom: 7px; border-bottom: 1px solid #efefe9; font-size: .84rem; line-height: 1.45; }
.admin-featured-morals li > span { color: var(--red); font-family: "Dosis", sans-serif; font-size: .7rem; font-weight: 700; }
.admin-edit-morals { min-height: 44px; padding: 8px 20px; font-size: .72rem; }
.admin-data-card { margin-top: 18px; padding: 25px 27px 18px; }
.admin-data-card .admin-section-heading, .admin-insight-card .admin-section-heading, .admin-map-card .admin-section-heading { margin-bottom: 20px; }
.admin-section-heading > span { padding-top: 7px; color: var(--muted); font-size: .72rem; }
.admin-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #eceee8; border-radius: 15px; }
.admin-table { min-width: 960px; background: #fff; font-size: .74rem; line-height: 1.45; }
.admin-table th, .admin-table td { padding: 11px 12px; }
.admin-table th { color: #777b75; background: #f8f9f5; font-family: "Poppins", sans-serif; font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.admin-table tbody tr:hover { background: #fcfcf8; }
.admin-sort { display: inline-flex; align-items: center; gap: 5px; }
.admin-sort span { color: #b8bbb5; }
.admin-sort.is-active { color: var(--ink); }
.admin-sort.is-active span { color: var(--red); }
.admin-email { font-weight: 600; }
.admin-story-title { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.admin-story-title-link { color: #287fc5; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(40,127,197,.3); text-underline-offset: 3px; }
.admin-story-title-link:hover { text-decoration-color: currentColor; }
.admin-number-pill, .admin-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: .65rem; font-weight: 700; }
.admin-number-pill { color: #286694; background: #e7f3fb; }
.admin-status { color: #656860; background: #eceee8; text-transform: uppercase; }
.admin-status-completed, .admin-status-published { color: #3b6840; background: #e6f1e1; }.admin-status-failed, .admin-status-safety_rejected, .admin-status-prompt_rejected { color: #8b1f30; background: #fbe4e7; }.admin-status-generating, .admin-status-queued, .admin-status-draft { color: #8a671c; background: #fff1cf; }
.admin-token-stack { display: grid; gap: 2px; color: #59605a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .64rem; }
.admin-story-link { color: #287fc5; font-weight: 700; }
.admin-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 16px; color: var(--muted); font-size: .72rem; }
.admin-pagination > :last-child { justify-self: end; }
.admin-pagination a { color: #287fc5; font-weight: 600; }.admin-pagination span[aria-disabled="true"] { opacity: .45; }
.admin-pagination strong { color: var(--ink); font-weight: 600; }
.admin-insights-grid { align-items: stretch; }
.admin-insight-card { min-height: 365px; padding: 27px; }
.admin-creators-list { margin: 0; padding: 0; list-style: none; }
.admin-creators-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #efefe9; font-size: .76rem; }
.admin-creators-list strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #3d653f; background: #e7efdd; }
.admin-rank { color: #aaa; font-family: "Dosis", sans-serif; font-size: .68rem; font-weight: 700; }
.admin-chart-wrap { position: relative; height: 245px; }
.admin-chart-wrap canvas { width: 100%; height: 100%; display: block; }
.admin-map-card { margin-top: 18px; padding: 27px; }
.admin-world-map { position: relative; aspect-ratio: 2 / 1; min-height: 470px; overflow: hidden; border-radius: 20px; background: radial-gradient(circle at 50% 45%, #eef8fa 0, #dbecee 100%); cursor: grab; touch-action: none; user-select: none; }
.admin-world-map.is-dragging { cursor: grabbing; }
.admin-map-layer { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.admin-map-layer > svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .98; pointer-events: none; }
.admin-map-controls { position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; gap: 7px; }
.admin-map-controls button { width: 36px; height: 36px; border: 1px solid rgba(96,101,83,.18); border-radius: 12px; color: #4f5948; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(52,52,41,.09); font-family: "Dosis", sans-serif; font-size: 1.18rem; font-weight: 800; cursor: pointer; }
.admin-map-controls button:hover, .admin-map-controls button:focus-visible { color: var(--red); outline: 3px solid rgba(216,59,45,.18); outline-offset: 2px; }
.admin-map-point { position: absolute; z-index: 2; padding: 0; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; background: var(--red); box-shadow: 0 2px 8px rgba(119,49,35,.24); transform: translate(-50%, -50%); }
.admin-map-point:hover, .admin-map-point:focus-visible { z-index: 3; outline: 3px solid rgba(216,59,45,.22); outline-offset: 2px; }
.admin-map-note { max-width: 780px; margin: 14px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.admin-log-card { margin-top: 18px; padding: 27px; border: 1px solid var(--admin-border); border-radius: 25px; background: var(--admin-card); box-shadow: 0 16px 40px rgba(52,52,41,.055); }
.admin-log-card .admin-section-heading { margin-bottom: 20px; }
.admin-log-card .admin-section-heading h2 { margin-bottom: 7px; }
.admin-log-card .admin-section-heading p:not(.admin-card-kicker) { max-width: 700px; margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.admin-log-summary { flex: 0 0 auto; padding: 6px 11px !important; border-radius: 999px; color: #3b6840 !important; background: #e6f1e1; font-weight: 700; }
.admin-log-summary.has-errors { color: #8b1f30 !important; background: #fbe4e7; }
.admin-log-list { overflow: hidden; border: 1px solid #e8ebe4; border-radius: 15px; background: #fbfcf8; }
.admin-log-entry { display: grid; grid-template-columns: 132px 80px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 13px; border-bottom: 1px solid #e8ebe4; font-size: .69rem; line-height: 1.5; }
.admin-log-entry:last-child { border-bottom: 0; }
.admin-log-entry time { color: #858981; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-log-entry p { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #555a54; }
.admin-log-level { width: fit-content; padding: 2px 7px; border-radius: 999px; color: #59605a; background: #eceee8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .6rem; font-weight: 700; }
.admin-log-error, .admin-log-critical, .admin-log-alert, .admin-log-emergency { background: #fff8f8; }
.admin-log-error .admin-log-level, .admin-log-critical .admin-log-level, .admin-log-alert .admin-log-level, .admin-log-emergency .admin-log-level { color: #8b1f30; background: #fbe4e7; }
.admin-log-warning .admin-log-level { color: #8a671c; background: #fff1cf; }
.admin-log-info .admin-log-level { color: #286694; background: #e7f3fb; }
.admin-log-empty { margin: 0; padding: 22px; color: var(--muted); font-size: .75rem; }
.admin-modal { width: min(920px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 27px; background: #fbfbf7; box-shadow: 0 35px 100px rgba(30,30,25,.28); }
.admin-modal::backdrop { background: rgba(42,43,38,.55); backdrop-filter: blur(4px); }
.admin-modal-shell { padding: 30px; }
.admin-modal-header { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.admin-modal-header h2 { margin: 0 0 7px; font-family: "Nunito", sans-serif; font-size: 2.15rem; font-weight: 700; }
.admin-modal-header p:not(.admin-card-kicker) { max-width: 660px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.admin-modal-close { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #777; background: #eceee7; font-size: 1.5rem; line-height: 1; }
.admin-rates-modal { width: min(760px, calc(100% - 30px)); }
.admin-rates-form { display: grid; gap: 18px; }
.admin-rates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-rates-grid label { display: grid; gap: 6px; padding: 15px; border: 1px solid #e3e6df; border-radius: 16px; background: #fff; box-shadow: 0 10px 25px rgba(52,52,41,.035); }
.admin-rates-grid span { color: var(--ink); font-size: .78rem; font-weight: 800; }
.admin-rates-grid input { width: 100%; padding: 11px 12px; border: 1px solid #d9ddd9; border-radius: 10px; background: #fbfbf8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }
.admin-rates-grid select { width: 100%; padding: 11px 12px; border: 1px solid #d9ddd9; border-radius: 10px; background: #fbfbf8; font-size: .86rem; }
.admin-rates-grid small { color: var(--muted); font-size: .67rem; line-height: 1.35; }
.admin-rates-note { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.admin-rates-form .button { width: fit-content; min-height: 48px; }
.admin-switch-setting { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--cream); color: var(--ink); font-weight: 700; }
.admin-switch-setting input { width: 20px; height: 20px; accent-color: var(--red); }
.admin-action-state { display: inline-flex; align-items: center; margin-left: 5px; padding: 2px 7px; border-radius: 99px; background: #ecece6; color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.admin-action-state.is-on { background: #dff3e2; color: #368647; }
.admin-prompt-form { display: grid; gap: 18px; }
.admin-prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-prompt-grid label, .admin-blog-form label { display: grid; gap: 6px; }
.admin-prompt-grid label { padding: 15px; border: 1px solid #e3e6df; border-radius: 16px; background: #fff; }
.admin-prompt-grid span, .admin-blog-form label > span { color: var(--ink); font-size: .78rem; font-weight: 800; }
.admin-prompt-grid textarea, .admin-blog-form input, .admin-blog-form textarea, .admin-blog-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d9ddd9;
    border-radius: 10px;
    outline: 0;
    background: #fbfbf8;
    font-family: "Poppins", sans-serif;
    font-size: .86rem;
}
.admin-prompt-grid textarea:focus, .admin-blog-form input:focus, .admin-blog-form textarea:focus, .admin-blog-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(70,155,225,.12); }
.admin-prompt-form .button { width: fit-content; min-height: 48px; }
.admin-prompt-history { margin-top: 26px; }
.admin-prompt-history h3 { margin-bottom: 12px; font-family: "Nunito", sans-serif; font-size: 1.55rem; font-weight: 700; }
.admin-prompt-history-entry { border: 1px solid #e6e9e1; border-radius: 16px; background: #fff; }
.admin-prompt-history-entry + .admin-prompt-history-entry { margin-top: 9px; }
.admin-prompt-history-entry summary { display: flex; align-items: center; gap: 12px; padding: 12px 15px; cursor: pointer; }
.admin-prompt-history-entry summary span { color: var(--red); font-family: "Dosis", sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.admin-prompt-history-entry summary time { color: var(--muted); font-size: .72rem; }
.admin-prompt-history-entry summary button { margin-left: auto; border: 0; color: #287fc5; background: transparent; font-size: .72rem; font-weight: 700; text-decoration: underline; }
.admin-prompt-history-entry pre { margin: 0; padding: 0 15px 15px; overflow-x: auto; white-space: pre-wrap; color: #4d514b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; line-height: 1.55; }
.admin-blog-form { display: grid; gap: 18px; }
.admin-blog-meta-card { min-height: 0; }
.admin-blog-meta-grid, .admin-blog-seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-blog-locale-list { display: grid; gap: 18px; }
.admin-blog-locale-card { min-height: 0; }
.admin-blog-locale-card .admin-card-heading { margin-bottom: 10px; }
.admin-blog-locale-card textarea[name*="[body]"] { min-height: 340px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.55; }
.admin-blog-submit { position: sticky; z-index: 10; bottom: 0; padding: 18px 0; background: linear-gradient(rgba(247,247,241,0), #f7f7f1 25%); }
.admin-blog-submit .button { min-height: 54px; }
.admin-moral-list { display: grid; gap: 12px; }
.admin-moral-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(52,52,41,.06); }
.admin-moral-card summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; cursor: pointer; font-weight: 600; }
.admin-moral-new { margin-bottom: 18px; border-color: #b9d8ef; background: #f4faff; }
.admin-moral-badges { display: flex; gap: 7px; }
.admin-moral-badges em { padding: 3px 8px; border-radius: 999px; color: #3d653f; background: #e7efdd; font-size: .7rem; font-style: normal; font-weight: 600; }
.admin-moral-badges .is-muted { color: #6d6d6d; background: #ececec; }
.admin-moral-form { display: grid; gap: 18px; padding: 5px 22px 22px; }
.admin-translation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-moral-form label > span { display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 600; }
.admin-moral-form textarea, .admin-moral-form input[type="number"] { width: 100%; padding: 12px 14px; border: 1px solid #d9ddd9; border-radius: 10px; background: #fff; }
.admin-moral-form input[type="number"] { max-width: 160px; }
.admin-moral-options { display: flex; flex-wrap: wrap; gap: 20px; }
.admin-moral-form .checkbox-line { margin: 0 !important; }
.admin-moral-form .button { width: fit-content; min-height: 48px; }
.admin-delete-form { padding: 0 22px 20px; }
.admin-delete-form button { border: 0; color: #a6253b; background: transparent; font-size: .8rem; text-decoration: underline; }
.form-errors { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; color: #8b1f30; background: #fff0f2; }
.form-errors p { margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-family: "Dosis", sans-serif; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 35px; }
.footer-inner nav { display: flex; gap: 24px; font-family: "Dosis", sans-serif; font-weight: 600; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .8rem; }
.footer-cookie-settings { margin: 0; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.footer-cookie-settings:hover { color: var(--red); }

.cookie-banner {
    position: fixed;
    z-index: 1000;
    right: 22px;
    bottom: 22px;
    left: 22px;
    width: min(calc(100% - 44px), 1120px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-inline: auto;
    padding: 22px 24px;
    border: 1px solid #ded9ca;
    border-radius: 24px;
    color: #4c4941;
    background: rgba(255, 253, 247, .98);
    box-shadow: 0 22px 70px rgba(42, 39, 31, .2);
    backdrop-filter: blur(16px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-copy strong { display: block; margin-bottom: 6px; color: #383838; font-family: "Nunito", sans-serif; font-size: 1.08rem; }
.cookie-banner-copy p { max-width: 720px; margin: 0; color: #66655e; font-size: .78rem; line-height: 1.65; }
.cookie-banner-copy a { color: #2777b9; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions, .cookie-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.cookie-button { min-height: 43px; padding: 10px 16px; border: 1px solid transparent; border-radius: 999px; font: 700 .72rem "Poppins", sans-serif; cursor: pointer; }
.cookie-button-primary { border-color: var(--red); color: #fff; background: var(--red); }
.cookie-button-secondary { border-color: #d8d5c9; color: #4d4d47; background: #fff; }
.cookie-button:hover { transform: translateY(-1px); }

.cookie-dialog { width: min(calc(100% - 32px), 650px); max-height: min(760px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 0; border-radius: 28px; color: #4c4941; background: #fffdf7; box-shadow: 0 30px 90px rgba(28, 27, 23, .28); }
.cookie-dialog::backdrop { background: rgba(35, 34, 29, .48); backdrop-filter: blur(4px); }
.cookie-dialog-card { position: relative; padding: 36px; }
.cookie-dialog-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; padding: 0; border: 1px solid #dedbd0; border-radius: 50%; color: #57564f; background: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.cookie-dialog-kicker { margin: 0 0 8px !important; color: var(--red) !important; font-family: "Dosis", sans-serif; font-size: .72rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cookie-dialog h2 { margin: 0 46px 10px 0; color: #383838; font-family: "Nunito", sans-serif; font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 700; letter-spacing: -.025em; }
.cookie-dialog-card > p:not(.cookie-dialog-kicker):not(.cookie-unused-note) { margin: 0 0 25px; color: #6b6a63; font-size: .84rem; line-height: 1.7; }
.cookie-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 20px 0; border-top: 1px solid #e4e1d7; }
.cookie-category strong { display: block; margin-bottom: 5px; color: #42423d; font-family: "Nunito", sans-serif; font-size: .98rem; }
.cookie-category p { margin: 0; color: #74736b; font-size: .75rem; line-height: 1.6; }
.cookie-always-on { padding: 7px 10px; border-radius: 999px; color: #3f6740; background: #e9f1df; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.cookie-category-toggle { cursor: pointer; }
.cookie-category-toggle input { width: 42px; height: 22px; accent-color: var(--red); cursor: pointer; }
.cookie-unused-note { margin: 4px 0 24px; padding: 13px 15px; border-radius: 12px; color: #66655d; background: #f2f2e9; font-size: .72rem; line-height: 1.55; }

.legal-page { background: #fbfaf4; }
.legal-shell { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.legal-hero { padding: 82px 0 66px; border-bottom: 1px solid #e7e4d8; background: linear-gradient(135deg, #fffaf0 0%, #f3f8ed 100%); }
.legal-kicker { margin: 0 0 16px; color: var(--red); font-family: "Dosis", sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.legal-hero h1 { max-width: 850px; margin: 0; font-family: "Nunito", sans-serif; font-size: clamp(2.35rem, 5vw, 4.55rem); font-weight: 700; letter-spacing: -.045em; }
.legal-lead { max-width: 820px; margin: 22px 0 0; color: #65655e; font-size: 1.02rem; line-height: 1.8; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; color: #77766e; font-size: .76rem; }
.legal-meta button { padding: 8px 13px; border: 1px solid #d8d8cf; border-radius: 999px; color: #55564f; background: rgba(255,255,255,.78); font: 600 .72rem "Poppins", sans-serif; cursor: pointer; }
.legal-content { padding: 62px 0 110px; }
.legal-layout { display: grid; grid-template-columns: minmax(210px, 270px) minmax(0, 1fr); align-items: start; gap: 52px; }
.legal-toc { position: sticky; top: 108px; max-height: calc(100vh - 140px); overflow: auto; padding: 22px 20px; border: 1px solid #e5e3d9; border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: 0 12px 34px rgba(55,49,38,.06); }
.legal-toc strong { display: block; margin-bottom: 12px; font-family: "Nunito", sans-serif; font-size: .95rem; }
.legal-toc ol { display: grid; gap: 7px; margin: 0; padding-left: 19px; color: #8a887f; font-size: .73rem; line-height: 1.45; }
.legal-toc a { color: #62635c; }
.legal-toc a:hover { color: var(--red); }
.legal-document { min-width: 0; }
.legal-provider-card, .legal-contact-card { display: grid; gap: 6px; padding: 25px 27px; border: 1px solid #e3dfd2; border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(55,49,38,.06); }
.legal-provider-card { margin-bottom: 38px; color: #64655e; font-size: .81rem; line-height: 1.55; }
.legal-provider-card strong { color: var(--ink); font-family: "Nunito", sans-serif; font-size: 1.15rem; }
.legal-provider-card a, .legal-contact-card a:not(.button) { color: #2777b9; }
.legal-section { scroll-margin-top: 105px; padding: 0 4px 34px; }
.legal-section + .legal-section { padding-top: 34px; border-top: 1px solid #e4e1d8; }
.legal-section h2, .legal-contact-card h2 { margin: 0 0 18px; color: #474842; font-family: "Nunito", sans-serif; font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 700; letter-spacing: -.025em; }
.legal-section p, .legal-section li, .legal-contact-card p { color: #5e5f59; font-size: .9rem; line-height: 1.82; }
.legal-section p { margin: 0 0 14px; }
.legal-section ul { display: grid; gap: 9px; margin: 14px 0 8px; padding-left: 24px; }
.legal-section li::marker { color: var(--red); }
.legal-note { margin-top: 18px; padding: 18px 20px; border-left: 4px solid #e0a04f; border-radius: 0 14px 14px 0; color: #5c574d; background: #fff4df; font-size: .84rem; line-height: 1.75; }
.legal-contact-card { margin-top: 20px; justify-items: start; background: linear-gradient(135deg, #fff 0%, #fff7e8 100%); }
.legal-contact-card p { margin: 0 0 12px; }

@media print {
    .site-header, .site-footer, .legal-toc, .legal-meta button, .cookie-banner, .cookie-dialog { display: none !important; }
    .legal-hero, .legal-content { padding: 20px 0; background: #fff; }
    .legal-layout { display: block; }
    .legal-section { break-inside: avoid; }
    .legal-provider-card, .legal-contact-card { box-shadow: none; }
}

@media (max-width: 1100px) {
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: 82px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 15px 20px 25px; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav > a { padding: 13px 0; }
    .nav-credit { margin-top: 8px; text-align: center; }
    .language-switcher { margin-top: 15px; padding: 0; }
    .nav-feedback { align-self: flex-start; margin-top: 14px; }
}

@media (max-width: 900px) {
    .hero { min-height: 620px; }
    .hero-showcase { padding-top: 44px; }
    .hero-logo { width: min(78vw, 680px); }
    .hero-title { max-width: min(70vw, 680px); font-size: clamp(3rem, 7vw, 4.5rem); }
    .section-grid { grid-template-columns: 1fr; gap: 45px; }
    .section-grid-reverse .soft-photo { order: 2; }
    .benefit-grid { grid-template-columns: 1fr 1fr; }
    .benefit-grid { gap: 52px 34px; }
    .pricing-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-card-featured { grid-column: 1 / -1; }
    .blog-card-featured .blog-card-content { padding: 30px; }
    .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-inner nav { flex-wrap: wrap; justify-content: center; }
    .cookie-banner { grid-template-columns: 1fr; gap: 16px; }
    .cookie-banner-actions { justify-content: flex-start; }
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-toc { position: static; max-height: none; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-action-grid, .admin-insights-grid { grid-template-columns: 1fr; }
}

/* Public suggestions form, separate from the admin and story-rating dialogs. */
.feedback-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #e4dfd2; border-radius: 26px; color: var(--ink); background: #fffdf7; box-shadow: 0 28px 90px rgba(45,37,26,.25); }
.feedback-dialog::backdrop { background: rgba(41,39,33,.55); backdrop-filter: blur(3px); }
.feedback-dialog-card { position: relative; padding: 32px; }
.feedback-close { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; padding: 0; border: 1px solid #dedbd0; border-radius: 50%; background: white; color: #686458; font-size: 23px; line-height: 1; cursor: pointer; }
.feedback-kicker { margin: 0 40px 5px 0; color: var(--red); font-family: "Dosis", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.feedback-dialog h2 { margin: 0 40px 10px 0; font-family: "Nunito", sans-serif; font-weight: 700; font-size: 1.95rem; color: #a75b40; letter-spacing: -.025em; line-height: 1.25; }
.feedback-dialog #feedback-intro { margin: 0 0 20px; color: #68645b; font-size: .88rem; line-height: 1.65; }
.feedback-dialog label { display: block; margin-bottom: 7px; font-family: "Nunito", sans-serif; font-weight: 700; font-size: 1rem; }
.feedback-dialog label span { color: var(--red); }
.feedback-dialog textarea, .feedback-dialog input:not([type=hidden]) { display: block; width: 100%; padding: 12px 14px; border: 1px solid #d9d7cd; border-radius: 12px; background: #fff; color: #383838; font: inherit; font-size: .9rem; line-height: 1.6; }
.feedback-dialog textarea { min-height: 130px; max-height: 35vh; resize: vertical; }
.feedback-dialog textarea:focus, .feedback-dialog input:focus { border-color: var(--red); outline: 3px solid rgba(216,59,45,.12); outline-offset: 1px; }
.feedback-help { margin: 6px 0 17px; color: #706d64; font-size: .76rem; line-height: 1.55; }
.feedback-privacy { margin: 0 0 20px; color: #706d64; font-size: .76rem; line-height: 1.6; }
.feedback-privacy a { color: #ac392e; text-decoration: underline; text-underline-offset: 3px; }
.feedback-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.site-feedback-buttons { display: flex; justify-content: flex-end; gap: 12px; }
.site-feedback-buttons .button { min-height: 46px; padding: 10px 20px; font-size: .8rem; letter-spacing: .08em; }
.site-feedback-buttons button:disabled { opacity: .65; cursor: wait; }
.feedback-status { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: #fcece6; color: #a13829; font-size: .88rem; line-height: 1.65; }
.feedback-status.is-success { background: #eaf2e2; color: #3d653f; }
.feedback-dialog [aria-invalid=true] { border-color: var(--red); }
@media (max-width: 620px) {
    .feedback-dialog-card { padding: 26px 20px; }
    .feedback-dialog h2 { font-size: 1.7rem; }
    .site-feedback-buttons { flex-wrap: wrap; }
    .site-feedback-buttons .button { flex: 1; }
}
@media print { .feedback-dialog { display: none !important; } }

@media (max-width: 620px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    body { font-size: 15px; }
    .header-inner { min-height: 72px; }
    .brand img { width: 145px; }
    .main-nav { top: 72px; }
    .hero { min-height: 590px; }
    .hero-showcase { padding: 42px 14px 180px; }
    .hero-logo { width: min(84vw, 460px); }
    .hero-title { max-width: 360px; margin-top: 26px; font-size: clamp(2.3rem, 10vw, 3.1rem); line-height: 1.15; }
    .hero-button { width: min(100%, 280px); min-height: 64px; margin-top: 28px; font-size: .92rem; }
    .hero-landscape { min-width: 900px; transform: translateX(-36%); }
    .story-section { padding-block: 75px; }
    .section-copy { text-align: center; }
    .soft-photo { border-radius: 44px 18px 44px 18px; }
    .benefit-grid, .pricing-grid, .blog-grid, .feedback-actions { grid-template-columns: 1fr; }
    .benefits-section { padding: 54px 0 42px; }
    .benefits-section h2 { margin-bottom: 42px; }
    .benefit-grid { gap: 46px; }
    .benefit-card { max-width: 280px; margin-inline: auto; }
    .benefits-button { width: min(100%, 280px); margin-top: 48px; }
    .closing-photo-wave { height: 44px; }
    .blog-page .page-hero { padding: 58px 0 52px; }
    .blog-page .card-section { padding: 46px 0 82px; }
    .blog-card-featured { flex-direction: column; }
    .blog-card-featured .blog-card-media { flex-basis: auto; }
    .blog-card-featured .blog-card-media img { aspect-ratio: 16 / 10.5; }
    .blog-card-content { padding: 23px 22px 26px; }
    .blog-card-featured .blog-card-content { padding: 23px 22px 26px; }
    .article-shell { width: min(calc(100% - 28px), 940px); padding: 48px 0 86px; }
    .article-back { margin-bottom: 26px; }
    .article-cover { margin: 34px 0 40px; border-radius: 30px 14px 30px 14px; }
    .article-cover::after { border-width: 7px; }
    .article-body { font-size: .98rem; line-height: 1.92; }
    .form-intro .shell { padding-top: 35px; }
    .story-wizard { padding: 28px 20px; border-radius: 20px; }
    .legal-shell { width: min(calc(100% - 28px), 1180px); }
    .legal-hero { padding: 54px 0 45px; }
    .legal-content { padding: 38px 0 72px; }
    .legal-toc { display: none; }
    .legal-provider-card, .legal-contact-card { padding: 21px 19px; border-radius: 18px; }
    .cookie-banner { right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); padding: 19px 17px; border-radius: 18px; }
    .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .cookie-banner-actions .cookie-button-primary { grid-column: 1 / -1; grid-row: 1; }
    .cookie-button { width: 100%; padding-inline: 11px; font-size: .67rem; }
    .cookie-dialog-card { padding: 29px 20px 22px; }
    .cookie-category { gap: 12px; }
    .cookie-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .wizard-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
    .wizard-meta .credit-pill { margin: 0; }
    .radio-grid { grid-template-columns: 1fr; }
    .wizard-actions { flex-wrap: wrap; }
    .wizard-actions .button { min-width: 100%; }
    .story-result { padding-block: 50px 80px; }
    .status-card, .story-paper { padding: 32px 22px; border-radius: 22px; }
    .social-share-actions { grid-template-columns: 1fr; }
    .feedback-thanks-section { padding-block: 42px 72px; }
    .feedback-thanks-card { padding: 34px 22px; border-radius: 24px; }
    .feedback-thanks-gif { width: min(100%, 300px); border-radius: 22px; }
    .generation-card { min-height: 490px; padding-top: 46px; }
    .generation-card .generation-phrase { min-height: 3.24em; margin-bottom: 34px; font-size: clamp(2rem, 10vw, 2.8rem); }
    .generation-progress-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
    .wallet-balance { align-items: flex-start; flex-direction: column; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-title-row { align-items: flex-start; flex-direction: column; gap: 12px; }
    .admin-title-actions { justify-content: flex-start; }
    .admin-rate-panel { align-items: start; justify-items: start; }
    .admin-rate-note { text-align: left; }
    .admin-action-card, .admin-data-card, .admin-insight-card, .admin-map-card, .admin-log-card { padding: 21px 18px; border-radius: 20px; }
    .admin-credit-card .grant-form { grid-template-columns: 1fr; }
    .admin-credit-card .grant-form .button { width: 100%; }
    .admin-prompt-grid, .admin-blog-meta-grid, .admin-blog-seo-grid { grid-template-columns: 1fr; }
    .admin-pagination { grid-template-columns: 1fr 1fr; }
    .admin-pagination strong { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .admin-world-map { min-height: 260px; aspect-ratio: auto; }
    .admin-log-entry { grid-template-columns: 1fr auto; gap: 5px 12px; }
    .admin-log-entry p { grid-column: 1 / -1; }
    .admin-modal-shell { padding: 23px 17px; }
    .admin-section-heading { flex-direction: column; }
    .admin-rates-grid { grid-template-columns: 1fr; }
    .admin-translation-grid { grid-template-columns: 1fr; }
    .admin-moral-card summary { align-items: flex-start; flex-direction: column; }
    .footer-inner nav { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .writing-dots span { animation: none; }
    .generation-phrase, .generation-progress span { transition: none; }
}
/* First story preview: only the excerpt is delivered; these lines are decorative. */
.preview-last-paragraph { margin-bottom: 0; }
.preview-blur { display: grid; gap: 18px; margin: 22px 0 -28px; padding: 0 4%; opacity: .24; filter: blur(4px); mask-image: linear-gradient(#000, transparent); }
.preview-blur span { height: 13px; border-radius: 8px; background: #8a8173; }
.preview-blur span:nth-child(2) { width: 92%; }
.preview-blur span:nth-child(4) { width: 66%; }
.preview-unlock { position: relative; text-align: center; border: 1px solid #eadac5; border-radius: 28px; padding: clamp(24px, 5vw, 48px); background: #fffaf1; box-shadow: 0 12px 35px rgba(110, 73, 40, .07); }
.preview-unlock h2 { font-family: 'Nunito', sans-serif; font-size: clamp(25px, 3vw, 38px); font-weight: 700; line-height: 1.25; color: var(--story-title-color, #b9573f); margin: 12px 0 18px; }
.preview-unlock p { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; max-width: 620px; margin: 0 auto 16px; }
.preview-unlock-sparkle { color: #c4904c; font-size: 32px; }
.preview-unlock .preview-unlock-note { font-size: 14px; color: #787067; margin: 20px auto 0; }
.preview-unlock .preview-email { color: #625746; font-weight: 600; overflow-wrap: anywhere; }
.preview-unlock .preview-confirmation-sent { color: #386446; }
.preview-unlock .button { white-space: normal; max-width: 100%; }
