:root {
    color-scheme: light;
    --ink: #1e2732;
    --muted: #64706c;
    --paper: #ffffff;
    --mist: #f5f8f4;
    --line: #dfe7df;
    --leaf: #205c46;
    --leaf-2: #4c9a45;
    --leaf-soft: #deefe5;
    --coral: #df6d55;
    --gold: #c99a42;
    --gold-soft: #fff5dc;
    --shell: #fffef9;
    --header-bg: rgba(255, 255, 255, 0.94);
    --menu-panel-bg: rgba(255, 255, 255, 0.98);
    --brand-bg: #fffef9;
    --control-bg: linear-gradient(180deg, #ffffff 0%, #f5f8f4 100%);
    --panel-overlay-bg: rgba(255, 255, 255, 0.95);
    --panel-overlay-border: rgba(255, 255, 255, 0.72);
    --modal-border: rgba(255, 255, 255, 0.8);
    --payment-method-bg: linear-gradient(135deg, #f9fff7, #fff9ed);
    --payment-method-paypal-bg: linear-gradient(135deg, #f5f9ff, #fff9ed);
    --payment-method-border: rgba(32, 92, 70, 0.18);
    --payment-method-paypal-border: rgba(18, 73, 142, 0.24);
    --footer-bg: #1e2732;
    --footer-text: rgba(255, 255, 255, 0.76);
    --footer-link: rgba(255, 255, 255, 0.78);
    --logout-bg: #f8ddd7;
    --logout-text: #9d3329;
    --logout-border: rgba(167, 52, 40, 0.18);
    --logout-hover-bg: #a73428;
    --logout-hover-text: #ffffff;
    --paypal-soft: #edf5ff;
    --danger-soft: #fffafa;
    --collection-selected-bg: #78c98f;
    --collection-selected-icon: #173f30;
    --collection-selected-check: #ffffff;
    --collection-selected-border: rgba(239, 255, 244, 0.88);
    --placeholder-text: color-mix(in srgb, var(--muted) 19%, transparent);
    --shadow: 0 18px 46px rgba(30, 39, 50, 0.11);
}

:root[data-theme="night"] {
    color-scheme: dark;
    --ink: #f4eee4;
    --muted: #c9c0b2;
    --paper: #141816;
    --mist: #172415;
    --line: rgba(244, 238, 228, 0.16);
    --leaf: #8bd59f;
    --leaf-2: #78c56f;
    --leaf-soft: rgba(91, 156, 89, 0.18);
    --coral: #ff8e78;
    --gold: #e8bb5f;
    --gold-soft: rgba(232, 187, 95, 0.16);
    --shell: #201f02;
    --header-bg: rgba(17, 19, 18, 0.95);
    --menu-panel-bg: rgba(20, 24, 22, 0.98);
    --brand-bg: #fff8df;
    --control-bg: linear-gradient(180deg, #212720 0%, #151916 100%);
    --panel-overlay-bg: rgba(20, 24, 22, 0.95);
    --panel-overlay-border: rgba(244, 238, 228, 0.12);
    --modal-border: rgba(244, 238, 228, 0.16);
    --payment-method-bg: linear-gradient(135deg, rgba(91, 156, 89, 0.16), rgba(232, 187, 95, 0.08));
    --payment-method-paypal-bg: linear-gradient(135deg, rgba(38, 112, 179, 0.18), rgba(232, 187, 95, 0.08));
    --payment-method-border: rgba(139, 213, 159, 0.24);
    --payment-method-paypal-border: rgba(125, 183, 241, 0.28);
    --footer-bg: #101411;
    --footer-text: rgba(244, 238, 228, 0.72);
    --footer-link: rgba(244, 238, 228, 0.82);
    --logout-bg: rgba(167, 52, 40, 0.2);
    --logout-text: #ff9b89;
    --logout-border: rgba(255, 142, 120, 0.28);
    --logout-hover-bg: #a73428;
    --logout-hover-text: #ffffff;
    --paypal-soft: rgba(38, 112, 179, 0.18);
    --danger-soft: rgba(141, 46, 34, 0.16);
    --collection-selected-bg: color-mix(in srgb, var(--leaf) 88%, var(--ink));
    --collection-selected-icon: #173f30;
    --collection-selected-check: #ffffff;
    --collection-selected-border: color-mix(in srgb, var(--leaf) 74%, var(--ink));
    --placeholder-text: color-mix(in srgb, var(--muted) 17%, transparent);
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--mist);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

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

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

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

input::placeholder,
textarea::placeholder {
    color: var(--placeholder-text);
    font-weight: 650;
    opacity: 1;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.button,
.price-card button,
.price-card .button,
.admin-form button,
.admin-login-form button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 850;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.price-card button:hover,
.price-card .button:hover,
.admin-form button:hover,
.admin-login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(30, 39, 50, 0.16);
}

.button.secondary {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.button.ghost {
    color: var(--muted);
    border: 1px solid var(--line);
    background: transparent;
}

.button.ghost:hover,
.button.ghost:focus-visible {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.member-logout-button.button.secondary {
    color: var(--logout-text);
    border: 1px solid var(--logout-border);
    background: var(--logout-bg);
}

.member-logout-button.button.secondary:hover,
.member-logout-button.button.secondary:focus-visible {
    color: var(--logout-hover-text);
    background: var(--logout-hover-bg);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 82px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 9px clamp(16px, 4vw, 56px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-left {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.brand {
    width: clamp(58px, 6vw, 70px);
    height: clamp(58px, 6vw, 70px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 154, 66, 0.36);
    border-radius: 999px;
    overflow: hidden;
    background: var(--brand-bg);
    box-shadow: 0 10px 24px rgba(30, 39, 50, 0.1);
}

.brand-logo {
    width: 127%;
    max-width: none;
    height: 127%;
    object-fit: contain;
    object-position: center;
    transform: translateY(2px);
}

.main-nav,
.footer div,
.feed-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.main-nav {
    justify-content: flex-end;
}

.main-nav a,
.header-home-link,
.header-admin-link,
.header-login-link,
.logout,
.status-pill,
.feed-toolbar button,
.theme-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 13px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 850;
    text-transform: lowercase;
}

.main-nav a,
.header-home-link,
.header-admin-link,
.header-login-link,
.theme-toggle {
    gap: 7px;
    text-transform: none;
}

.header-account-text {
    max-width: 190px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
}

.header-login-link {
    color: var(--coral);
    padding-inline: 4px;
    background: transparent;
}

.nav-icon {
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
}

.main-nav a:hover,
.header-home-link:hover,
.header-admin-link:hover,
.header-account-text:hover,
.header-account-text:focus-visible,
.header-login-link:hover,
.logout:hover,
.status-pill:hover,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.feed-toolbar button:hover,
.feed-toolbar button.active {
    color: var(--leaf);
    border-color: rgba(32, 92, 70, 0.22);
    background: var(--leaf-soft);
}

.header-admin-link {
    color: var(--leaf);
    border-color: rgba(32, 92, 70, 0.22);
    background: var(--leaf-soft);
}

.header-staff-link,
.main-nav .staff-only-nav-link {
    color: var(--leaf);
    border-color: rgba(32, 92, 70, 0.28);
    background: var(--leaf-soft);
    box-shadow: inset 0 0 0 1px rgba(32, 92, 70, 0.04);
}

.header-staff-link:hover,
.header-staff-link:focus-visible,
.main-nav .staff-only-nav-link:hover,
.main-nav .staff-only-nav-link:focus-visible {
    color: var(--leaf);
    border-color: rgba(32, 92, 70, 0.42);
    background: color-mix(in srgb, var(--leaf-soft) 76%, var(--mint));
}

.theme-toggle {
    min-width: 126px;
}

.theme-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    color: var(--gold);
}

.theme-toggle-sun,
.theme-toggle-moon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 160ms ease, transform 160ms ease;
}

.theme-toggle-moon {
    opacity: 0;
    transform: translateY(4px) rotate(-20deg);
}

.theme-toggle.is-night .theme-toggle-sun {
    opacity: 0;
    transform: translateY(-4px) rotate(20deg);
}

.theme-toggle.is-night .theme-toggle-moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.status-pill {
    color: #7a4f08;
    background: var(--gold-soft);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(32, 92, 70, 0.18);
    border-radius: 999px;
    padding: 0;
    color: var(--leaf);
    background: var(--control-bg);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(30, 39, 50, 0.1);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    border-color: rgba(32, 92, 70, 0.34);
    background: var(--leaf-soft);
    box-shadow: 0 14px 28px rgba(30, 39, 50, 0.14);
}

.menu-toggle:active {
    transform: scale(0.96);
}

.menu-toggle-bars {
    width: 20px;
    height: 16px;
    display: grid;
    align-content: space-between;
}

.menu-toggle-bars span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, opacity 140ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.status-pill.active {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.home-stream {
    min-height: 100vh;
}

.membership-hero {
    display: grid;
    gap: 28px;
    justify-items: center;
    padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 64px);
    background: var(--shell);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.membership-copy {
    max-width: 700px;
}

.home-subscription-widget {
    width: min(880px, 100%);
    text-align: left;
}

.home-subscription-widget .billing-widget {
    box-shadow: 0 18px 44px rgba(30, 39, 50, 0.09);
}

.community-page {
    min-height: calc(100vh - 82px);
    padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 64px);
}

.community-hero {
    width: min(960px, 100%);
    display: grid;
    gap: 26px;
    margin: 0 auto;
}

.community-copy {
    max-width: 760px;
}

.community-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 5.1rem);
    line-height: 0.98;
}

.community-copy p:not(.eyebrow) {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.community-card,
.community-subscription-panel .billing-widget {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(30, 39, 50, 0.08);
}

.community-card {
    display: grid;
    gap: 14px;
    padding: clamp(24px, 4vw, 38px);
}

.community-card h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.community-card p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.community-card-access {
    border-color: color-mix(in srgb, var(--leaf) 34%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--leaf-soft) 60%, transparent), transparent 62%),
        var(--paper);
}

.community-card-locked {
    border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 72%, transparent), transparent 66%),
        var(--paper);
}

.community-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.community-card-actions form {
    margin: 0;
}

.community-discord-status {
    margin: 4px 0 0;
}

.discord-invite-button {
    width: fit-content;
    color: #fff;
    background: #5865f2;
}

.discord-invite-button:hover,
.discord-invite-button:focus-visible {
    background: #4752c4;
}

.community-subscription-panel {
    width: 100%;
}

.membership-logo {
    width: min(260px, 80%);
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.membership-copy h1,
.stream-heading h1,
.admin-workspace h1,
.admin-login h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 4.5vw, 4rem);
    line-height: 1;
}

.membership-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.66;
}

.pricing-grid {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.price-card,
.article-card,
.admin-form,
.admin-preview,
.admin-login-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(30, 39, 50, 0.06);
}

.price-card {
    padding: 24px;
}

.price-card.featured {
    border-color: rgba(32, 92, 70, 0.62);
    box-shadow: 0 18px 44px rgba(32, 92, 70, 0.15);
}

.plan-name {
    margin: 0;
    color: var(--coral);
    font-weight: 900;
    text-transform: uppercase;
}

.price {
    margin: 14px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 3.7rem);
    line-height: 0.94;
}

.price span {
    color: var(--muted);
    font-size: 1rem;
}

.price-card ul {
    display: grid;
    gap: 9px;
    margin: 0 0 22px;
    padding-left: 18px;
}

.price-card li {
    color: var(--muted);
    line-height: 1.45;
}

.price-card button,
.price-card .button,
.admin-form button,
.admin-login-form button {
    width: 100%;
    color: #fff;
    background: var(--leaf);
}

.recaptcha-wrap {
    max-width: 100%;
    overflow: hidden;
}

.feed-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(40px, 6vw, 76px) 0;
}

.page-main {
    min-height: 72vh;
}

.sh-display-slot {
    width: min(970px, calc(100% - 36px));
    min-height: var(--slot-min-height, 180px);
    margin: 30px auto;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 22px;
    overflow: hidden;
    text-align: center;
}

.sh-display-slot__label {
    color: color-mix(in srgb, var(--muted) 78%, transparent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sh-display-slot--placeholder {
    border: 1px dashed color-mix(in srgb, var(--leaf) 34%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--leaf-soft) 72%, transparent), transparent 62%),
        var(--paper);
}

.sh-display-slot--live.is-ad-pending {
    opacity: 0;
    pointer-events: none;
}

.sh-display-slot--live.is-ad-loaded {
    opacity: 1;
    pointer-events: auto;
}

.sh-display-slot--live.is-ad-empty {
    display: none !important;
}

.sh-display-slot__placeholder {
    display: grid;
    gap: 5px;
    justify-items: center;
    color: var(--muted);
}

.sh-display-slot__placeholder strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.sh-display-slot__placeholder small {
    font-size: 0.78rem;
    font-weight: 750;
}

.sh-display-slot__dismiss {
    display: none;
}

.recipe-detail > .sh-display-slot {
    width: 100%;
}

.sh-display-slot--site_side_rail_right {
    display: none;
}

.sh-display-slot--mobile_sticky_banner {
    display: none;
}

.page-hero,
.member-page,
.coaching-page {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(44px, 7vw, 86px) 0;
}

.compact-page {
    max-width: 900px;
}

.page-hero h1,
.member-intro h1,
.coaching-copy h1,
.recipe-detail h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 4.4vw, 3.85rem);
    line-height: 1.03;
}

.page-hero p:not(.eyebrow),
.member-intro p,
.coaching-copy p,
.recipe-detail-hero p {
    color: var(--muted);
    line-height: 1.66;
}

.recipes-page {
    padding-top: 0;
}

.recipe-catalog-controls {
    align-items: flex-start;
}

.recipe-catalog {
    position: relative;
    transition: opacity 160ms ease, filter 160ms ease;
}

.recipe-catalog.is-loading {
    opacity: 0.56;
    filter: saturate(0.78);
    pointer-events: none;
}

.recipe-catalog.is-loading::after {
    position: absolute;
    z-index: 12;
    right: 18px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    border: 3px solid color-mix(in srgb, var(--leaf) 18%, transparent);
    border-top-color: var(--leaf);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 12px 26px rgba(20, 32, 24, 0.18);
    animation: spin 760ms linear infinite;
    content: "";
}

.recipe-tag-toolbar {
    flex: 1 1 auto;
    display: grid;
    gap: 14px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: color-mix(in srgb, var(--paper) 88%, var(--leaf));
}

.recipe-filter-stack {
    flex: 1 1 auto;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.recipe-collection-filter {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: color-mix(in srgb, var(--paper) 84%, var(--leaf-soft));
}

.recipe-collection-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.recipe-collection-filter-head > div {
    flex: 0 0 auto;
}

.recipe-collection-filter-head .collection-select-label {
    flex: 1 1 320px;
    max-width: 520px;
}

.recipe-collection-filter-head .collection-manage-button {
    flex: 0 0 auto;
}

.recipe-collection-filter h2,
.recipe-collection-filter p {
    margin: 0;
}

.recipe-collection-filter h2 {
    font-size: 1.08rem;
}

.recipe-collection-filter p {
    color: var(--muted);
    line-height: 1.55;
}

.collection-select-label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.collection-select-label select {
    min-height: 46px;
    width: min(100%, 520px);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    text-transform: none;
}

.recipe-collection-login-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.recipe-collection-action {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 18px;
}

.recipe-collection-action-card,
.recipe-collection-manager-card-login {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
}

.collection-card-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--paper) 52%, transparent);
    border-radius: 12px;
    padding: 0;
    color: var(--paper);
    background: color-mix(in srgb, var(--ink) 36%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    opacity: 0;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease, visibility 160ms ease;
    visibility: hidden;
}

.article-media:hover .collection-card-button,
.article-media:focus-within .collection-card-button {
    transform: translateY(-1px);
    color: var(--leaf);
    border-color: color-mix(in srgb, var(--paper) 88%, transparent);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    opacity: 1;
    visibility: visible;
    outline: none;
}

.collection-card-button:hover,
.collection-card-button:focus-visible {
    transform: translateY(-1px);
    color: var(--leaf);
    border-color: color-mix(in srgb, var(--paper) 88%, transparent);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    opacity: 1;
    visibility: visible;
    outline: none;
}

.collection-card-button.is-selected {
    color: var(--collection-selected-icon);
    border-color: var(--collection-selected-border);
    background: var(--collection-selected-bg);
    opacity: 1;
    visibility: visible;
}

.article-media:hover .collection-card-button.is-selected,
.article-media:focus-within .collection-card-button.is-selected,
.collection-card-button.is-selected:hover,
.collection-card-button.is-selected:focus-visible {
    color: var(--collection-selected-icon);
    border-color: var(--collection-selected-border);
    background: var(--collection-selected-bg);
}

.collection-card-button .collection-icon {
    width: 22px;
    height: 22px;
}

.collection-card-button .collection-icon-selected,
.collection-card-button.is-selected .collection-icon-add {
    display: none;
}

.collection-card-button.is-selected .collection-icon-selected {
    display: block;
}

.collection-card-button.is-selected .collection-icon-selected path:last-child {
    stroke: var(--collection-selected-check);
}

.collection-recipe-button {
    min-width: 220px;
}

.recipe-tag-toolbar-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.recipe-tag-toolbar-head .eyebrow {
    margin-bottom: 4px;
}

.recipe-tag-toolbar-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.recipe-result-count {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.tag-filter,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-filter {
    margin-bottom: 18px;
}

.recipe-tag-popular {
    margin-bottom: 0;
}

.recipe-tag-popular a {
    gap: 8px;
    text-decoration: none;
}

.recipe-tag-popular small {
    min-width: 22px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: color-mix(in srgb, var(--tag-color, var(--leaf)) 88%, #fff);
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 16%, var(--paper));
    font-size: 0.7rem;
}

.tag-filter button,
.tag-filter a,
.tag-list span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: color-mix(in srgb, var(--tag-color, var(--leaf)) 72%, var(--ink));
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 13%, var(--paper));
    font-size: 0.86rem;
    font-weight: 850;
}

.tag-filter button,
.tag-filter a {
    cursor: pointer;
}

.tag-filter button.active,
.tag-filter button:hover,
.tag-filter a.active,
.tag-filter a:hover {
    color: #fff;
    border-color: var(--tag-color, var(--leaf));
    background: var(--tag-color, var(--leaf));
}

.tag-filter a.active small,
.tag-filter a:hover small {
    color: var(--tag-color, var(--leaf));
    background: #fff;
}

.recipe-tag-search-box {
    min-width: 0;
    position: relative;
}

.recipe-tag-search-box input {
    width: min(100%, 520px);
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--paper);
}

.recipe-tag-search-box input:focus {
    outline: 2px solid color-mix(in srgb, var(--leaf) 35%, transparent);
    border-color: var(--leaf);
}

.recipe-tag-bottom-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.recipe-tag-bottom-row .recipe-tag-search-box {
    flex: 1 1 420px;
}

.recipe-tag-bottom-row .recipe-tag-search-box input {
    width: 100%;
}

.recipe-tag-bottom-row .layout-toggle {
    margin-left: auto;
}

.recipe-tag-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: min(100%, 520px);
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--paper);
    box-shadow: 0 18px 42px rgba(20, 32, 24, 0.18);
}

.recipe-tag-search-result {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 7px;
    padding: 8px 10px;
    color: var(--ink);
    text-decoration: none;
}

.recipe-tag-search-result::before {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--tag-color, var(--leaf));
    content: "";
}

.recipe-tag-search-result span {
    flex: 1 1 auto;
    font-weight: 850;
}

.recipe-tag-search-result small,
.recipe-tag-search-hint {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.recipe-tag-search-result:hover,
.recipe-tag-search-result:focus-visible {
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 13%, var(--paper));
}

.recipe-tag-search-hint {
    margin: 0;
    padding: 10px;
}

.selected-tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.selected-tag-row > span {
    text-transform: uppercase;
}

.selected-tag-row a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--tag-color, var(--leaf));
    border-radius: 999px;
    padding: 0 10px;
    color: #fff;
    background: var(--tag-color, var(--leaf));
    text-decoration: none;
}

.selected-tag-row strong {
    font-size: 1rem;
    line-height: 1;
}

.tag-list.compact span {
    min-height: 28px;
    font-size: 0.76rem;
}

.recipe-list-card.is-hidden {
    display: none;
}

.recipe-empty-state {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: var(--paper);
}

.recipe-empty-state h2 {
    margin: 0 0 8px;
}

.recipe-empty-state p {
    margin: 0;
    color: var(--muted);
}

.recipe-detail {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(38px, 6vw, 72px) 0;
}

.admin-recipe-tools {
    margin: 0 0 18px;
    border: 1px solid rgba(32, 92, 70, 0.24);
    border-left: 6px solid var(--leaf);
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: color-mix(in srgb, var(--leaf) 9%, var(--paper));
    box-shadow: 0 14px 30px rgba(30, 39, 50, 0.08);
}

.admin-recipe-tools .eyebrow,
.admin-recipe-tools p {
    margin: 0;
}

.admin-recipe-tools strong {
    display: block;
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 1.05rem;
}

.admin-recipe-tools p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.admin-recipe-tool-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-recipe-tools a,
.admin-recipe-tools button {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: var(--leaf);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.admin-recipe-tools a.secondary,
.admin-recipe-tools button.secondary {
    color: var(--leaf);
    background: color-mix(in srgb, var(--leaf) 10%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--leaf) 34%, transparent);
}

.admin-recipe-tools a:hover,
.admin-recipe-tools a:focus-visible,
.admin-recipe-tools button:hover,
.admin-recipe-tools button:focus-visible {
    background: color-mix(in srgb, var(--leaf) 88%, #000);
}

.admin-recipe-tools a.secondary:hover,
.admin-recipe-tools a.secondary:focus-visible,
.admin-recipe-tools button.secondary:hover,
.admin-recipe-tools button.secondary:focus-visible {
    color: #fff;
    background: var(--leaf);
}

.recipe-migration-notice {
    margin: 0 0 24px;
    border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
    border-left: 6px solid var(--gold);
    border-radius: 8px;
    padding: 16px 18px;
    color: var(--ink);
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 58%, var(--paper)) 0%, color-mix(in srgb, var(--leaf-soft) 22%, var(--paper)) 100%);
    box-shadow: 0 14px 30px rgba(30, 39, 50, 0.08);
}

.recipe-migration-notice .eyebrow,
.recipe-migration-notice p {
    margin: 0;
}

.recipe-migration-notice p:not(.eyebrow) {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.6;
}

.recipe-migration-notice a {
    color: var(--leaf);
    font-weight: 950;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.recipe-migration-notice a:hover,
.recipe-migration-notice a:focus-visible {
    color: color-mix(in srgb, var(--leaf) 78%, var(--gold));
}

.legacy-unsubscribe-notice {
    width: min(100% - clamp(28px, 8vw, 112px), 1060px);
    margin: 18px auto 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.legacy-unsubscribe-notice.is-hidden {
    display: none;
}

.legacy-unsubscribe-notice-copy strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
}

.legacy-unsubscribe-notice-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.legacy-unsubscribe-notice-actions .button {
    white-space: nowrap;
}

.import-review-panel {
    border-color: color-mix(in srgb, var(--gold) 52%, var(--line));
    border-left-color: var(--gold);
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 44%, var(--paper)) 0%, color-mix(in srgb, var(--leaf-soft) 28%, var(--paper)) 100%);
}

.import-review-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    color: #7a4f08;
    background: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 950;
}

.import-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 12px 0 0;
}

.import-review-meta div {
    display: grid;
    gap: 2px;
}

.import-review-meta dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.import-review-meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
}

.import-review-actions {
    margin: 0;
}

.draft-preview-notice {
    margin: 0 0 24px;
    border: 1px solid #d43b2f;
    border-left: 6px solid #ff7a6c;
    border-radius: 8px;
    padding: 16px 18px;
    color: #fff6f5;
    background: linear-gradient(135deg, #6f1f1a 0%, #9e2f25 100%);
    box-shadow: 0 18px 36px rgba(90, 20, 16, 0.24);
    display: grid;
    gap: 14px;
}

.draft-preview-notice strong {
    display: block;
    font-size: 1rem;
}

.draft-preview-notice p {
    margin: 6px 0 0;
    color: #ffe3df;
    line-height: 1.5;
}

.draft-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.draft-preview-actions form {
    margin: 0;
}

.draft-preview-actions button,
.draft-preview-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #6f1f1a;
    background: #fff6f5;
    font-weight: 950;
    cursor: pointer;
}

.draft-preview-actions button:hover,
.draft-preview-actions button:focus-visible,
.draft-preview-actions a:hover,
.draft-preview-actions a:focus-visible {
    background: #ffe3df;
}

.recipe-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(20px, 3.2vw, 34px);
    background: color-mix(in srgb, var(--paper) 90%, var(--leaf-soft));
    box-shadow: 0 12px 30px rgba(30, 39, 50, 0.06);
}

.recipe-hero-copy {
    min-width: 0;
}

.recipe-hero-media {
    display: grid;
    position: relative;
    align-self: stretch;
    align-content: center;
    width: 100%;
}

.recipe-hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
}

.recipe-hero-media .recipe-collection-manager-recipe,
.recipe-hero-media .recipe-collection-action {
    width: 100%;
}

.recipe-hero-media .recipe-collection-action {
    margin: 0;
}

.recipe-hero-media > .recipe-collection-action-hero,
.recipe-hero-media .recipe-collection-manager-recipe {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: auto;
}

.recipe-hero-media .recipe-collection-action-hero {
    width: auto;
    margin: 0;
}

.recipe-hero-media .collection-hero-button {
    color: var(--leaf);
    border-color: color-mix(in srgb, var(--paper) 88%, transparent);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    opacity: 1;
    visibility: visible;
}

.recipe-hero-media .collection-hero-button.is-selected,
.recipe-hero-media .collection-hero-button.is-selected:hover,
.recipe-hero-media .collection-hero-button.is-selected:focus-visible {
    color: var(--collection-selected-icon);
    border-color: var(--collection-selected-border);
    background: var(--collection-selected-bg);
}

.recipe-hero-media .collection-recipe-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border-radius: 0 0 8px 8px;
    border-top: 0;
    box-shadow: none;
}

.recipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 34px 0;
}

.recipe-stat-card,
.ingredients-panel,
.nutrition-panel,
.introduction-panel,
.preparation-panel,
.recipe-video-panel,
.notes-panel,
.auth-card,
.product-card,
.coaching-steps article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(30, 39, 50, 0.06);
}

.recipe-stat-card {
    display: grid;
    gap: 4px;
    padding: 18px;
}

.recipe-stat-card > span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
}

.cooking-stat-card {
    gap: 10px;
}

.conservation-stat-card {
    align-content: start;
}

.conservation-stat-card strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.45;
}

.cooking-stat-list {
    display: grid;
    gap: 8px;
}

.cooking-stat-list p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.cooking-stat-list small {
    color: var(--muted);
    font-weight: 800;
}

.recipe-content {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.ingredients-panel,
.nutrition-panel,
.introduction-panel,
.preparation-panel,
.recipe-video-panel,
.notes-panel {
    padding: 24px;
}

.ingredients-panel h2,
.nutrition-panel h2,
.introduction-panel h2,
.preparation-panel h2,
.recipe-video-panel h2,
.notes-panel h2,
.auth-card h2,
.product-card h2,
.coaching-steps h2 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.ingredients-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.recipe-rich-copy,
.ingredients-copy,
.recipe-preparation-copy,
.recipe-notes-copy {
    color: var(--muted);
    line-height: 1.75;
}

.introduction-panel {
    margin-top: 24px;
}

.notes-panel {
    margin-top: 18px;
}

.recipe-video-panel {
    margin-top: 18px;
}

.recipe-video-frame {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #050807;
    aspect-ratio: 16 / 9;
}

.recipe-video-frame video,
.recipe-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.recipe-video-frame video {
    object-fit: contain;
}

.recipe-rich-copy p,
.recipe-rich-copy ul,
.recipe-rich-copy ol,
.recipe-rich-copy blockquote,
.ingredients-copy p,
.ingredients-copy ul,
.ingredients-copy ol,
.ingredients-copy blockquote,
.recipe-preparation-copy p,
.recipe-preparation-copy ul,
.recipe-preparation-copy ol,
.recipe-preparation-copy blockquote,
.recipe-notes-copy p,
.recipe-notes-copy div {
    margin: 0 0 12px;
}

.recipe-preparation-copy h3,
.ingredients-copy h3 {
    margin: 18px 0 8px;
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.35;
}

.recipe-preparation-copy h3:first-child,
.ingredients-copy h3:first-child {
    margin-top: 0;
}

.recipe-rich-copy p:last-child,
.recipe-preparation-copy p:last-child,
.recipe-notes-copy p:last-child,
.recipe-notes-copy div:last-child {
    margin-bottom: 0;
}

.recipe-rich-copy ul,
.recipe-rich-copy ol,
.ingredients-copy ul,
.ingredients-copy ol,
.recipe-preparation-copy ul,
.recipe-preparation-copy ol {
    display: grid;
    gap: 10px;
    padding-left: 26px;
}

.recipe-preparation-copy ol {
    gap: 14px;
    padding-left: 32px;
}

.recipe-preparation-copy li {
    padding-left: 2px;
}

.recipe-preparation-copy li > p {
    margin: 0 0 10px;
}

.recipe-preparation-copy li > p:last-child {
    margin-bottom: 0;
}

.recipe-rich-copy ul ul,
.recipe-rich-copy ol ol,
.ingredients-copy ul ul,
.ingredients-copy ol ol,
.recipe-preparation-copy ul ul,
.recipe-preparation-copy ol ol {
    margin-top: 8px;
    padding-left: 24px;
}

.recipe-rich-copy blockquote,
.recipe-preparation-copy blockquote {
    border-left: 4px solid var(--leaf);
    padding-left: 16px;
    color: var(--ink);
}

.recipe-rich-copy a,
.ingredients-copy a,
.recipe-preparation-copy a,
.recipe-notes-copy a {
    color: var(--leaf);
    font-weight: 900;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: color-mix(in srgb, var(--leaf) 58%, var(--gold));
    border-radius: 5px;
    background: color-mix(in srgb, var(--leaf-soft) 46%, transparent);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.recipe-rich-copy a:hover,
.ingredients-copy a:hover,
.recipe-preparation-copy a:hover,
.recipe-notes-copy a:hover,
.recipe-rich-copy a:focus-visible,
.ingredients-copy a:focus-visible,
.recipe-preparation-copy a:focus-visible,
.recipe-notes-copy a:focus-visible {
    color: var(--ink);
    background: color-mix(in srgb, var(--gold-soft) 72%, var(--paper));
    text-decoration-color: var(--coral);
}

.recipe-locked-panel {
    min-height: 260px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 12px;
    border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
    border-radius: 8px;
    padding: clamp(20px, 3vw, 28px);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 54%, var(--paper)) 0%, color-mix(in srgb, var(--leaf-soft) 28%, var(--paper)) 100%);
}

.recipe-locked-panel strong {
    max-width: 430px;
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.3;
}

.recipe-locked-panel p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.locked-panel-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(32, 92, 70, 0.18);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--leaf);
    background: var(--leaf-soft);
    font-size: 0.75rem;
    font-weight: 950;
    text-transform: uppercase;
}

.locked-preview-lines,
.locked-macro-preview {
    width: min(380px, 100%);
    display: grid;
    gap: 9px;
    margin: 4px 0;
}

.locked-preview-lines span,
.locked-macro-preview span {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(32, 92, 70, 0.18), rgba(201, 154, 66, 0.2));
}

.locked-preview-lines span:nth-child(2) {
    width: 82%;
}

.locked-preview-lines span:nth-child(3) {
    width: 64%;
}

.locked-macro-preview span:nth-child(1) {
    width: 72%;
    background: linear-gradient(90deg, rgba(61, 143, 111, 0.42), rgba(61, 143, 111, 0.12));
}

.locked-macro-preview span:nth-child(2) {
    width: 58%;
    background: linear-gradient(90deg, rgba(201, 154, 66, 0.46), rgba(201, 154, 66, 0.12));
}

.locked-macro-preview span:nth-child(3) {
    width: 88%;
    background: linear-gradient(90deg, rgba(223, 109, 85, 0.44), rgba(223, 109, 85, 0.12));
}

.recipe-locked-panel .button {
    min-height: 40px;
    margin-top: 2px;
}

.notes-locked-panel {
    min-height: 230px;
}

.nutrition-panel {
    display: grid;
    gap: 12px;
}

.nutrition-serving-note {
    margin: -4px 0 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.nutrition-kcal {
    position: relative;
    overflow: hidden;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    background: transparent;
}

.nutrition-kcal::before {
    content: none;
}

.nutrition-kcal span,
.nutrition-kcal strong {
    position: static;
}

.nutrition-kcal span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nutrition-kcal strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.nutrition-macros {
    display: grid;
    gap: 14px;
}

.nutrition-tabs {
    display: grid;
    gap: 16px;
}

.nutrition-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nutrition-tab-list button {
    min-height: 36px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted);
    background: color-mix(in srgb, var(--paper) 88%, var(--leaf));
    font: inherit;
    font-size: 0.86rem;
    font-weight: 950;
    cursor: pointer;
}

.nutrition-tab-list button[aria-selected="true"] {
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
}

.nutrition-tab-panel {
    display: grid;
    gap: 18px;
}

.nutrition-tab-panel[hidden] {
    display: none;
}

.macro-row {
    display: grid;
    gap: 7px;
}

.macro-row div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.macro-row strong {
    color: var(--ink);
}

.macro-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(100, 112, 108, 0.15);
}

.macro-bar span {
    width: var(--value);
    height: 100%;
    display: block;
    border-radius: inherit;
}

.macro-row.protein .macro-bar span {
    background: #3d8f6f;
}

.macro-row.fat .macro-bar span {
    background: #c99a42;
}

.macro-row.carbs .macro-bar span {
    background: #df6d55;
}

.preparation-panel {
    margin-top: 18px;
}

.recipe-preparation-copy {
    color: var(--muted);
    line-height: 1.75;
}

.recipe-preparation-copy p {
    margin: 0 0 14px;
}

.recipe-preparation-copy p:last-child {
    margin-bottom: 0;
}

.premium-copy-unlocked {
    margin-top: 14px;
}

.inline-premium-gate {
    margin: 28px 0 8px;
}

.recipe-member-gate-panel {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--paper) 94%, var(--leaf-soft));
}

.recipe-member-gate-copy {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.recipe-member-gate-copy h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.recipe-member-gate-copy p:not(.eyebrow) {
    margin: 10px auto 0;
    color: var(--muted);
    line-height: 1.7;
}

.inline-premium-gate .billing-widget {
    width: min(1000px, 100%);
    margin-inline: auto;
    gap: 18px;
    padding: clamp(22px, 3vw, 30px);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--paper) 92%, var(--leaf-soft)) 0%, var(--paper) 100%);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08);
}

.inline-premium-gate .billing-widget-heading {
    max-width: 720px;
    margin: 0 auto 2px;
    text-align: center;
}

.inline-premium-gate .billing-widget-heading .eyebrow {
    margin-bottom: 8px;
}

.inline-premium-gate .billing-widget-heading h2 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.inline-premium-gate .billing-widget-heading p {
    margin: 8px auto 0;
}

.inline-premium-gate .subscription-selector {
    gap: 18px;
    justify-items: center;
}

.inline-premium-gate .subscription-action-footer,
.inline-premium-gate .subscription-login-prompt,
.inline-premium-gate .subscription-selector .payment-setup-note {
    width: 100%;
    justify-self: stretch;
}

.inline-premium-gate .subscription-choice-grid {
    width: 100%;
    gap: clamp(12px, 2vw, 18px);
}

.inline-premium-gate .billing-plan-card {
    min-height: 220px;
    padding: 22px 20px 20px;
    align-content: start;
    border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
    background: color-mix(in srgb, var(--gold-soft) 48%, var(--paper));
}

.inline-premium-gate .billing-plan-card.featured {
    border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
}

.inline-premium-gate .selectable-plan-card.is-selected {
    border-color: color-mix(in srgb, var(--leaf) 70%, var(--line));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--leaf-soft) 36%, var(--paper)) 0%, color-mix(in srgb, var(--gold-soft) 36%, var(--paper)) 100%);
}

.inline-premium-gate .plan-select-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
}

.inline-premium-gate .billing-plan-top {
    padding-top: 26px;
}

.inline-premium-gate .billing-price {
    font-size: clamp(1.85rem, 3vw, 2.25rem);
}

.inline-premium-gate .billing-plan-features {
    gap: 10px;
}

.inline-premium-gate .subscribe-trigger {
    min-width: 136px;
}

.premium-note {
    margin-top: 22px;
    border: 1px dashed rgba(32, 92, 70, 0.38);
    border-radius: 8px;
    padding: 18px;
    background: var(--leaf-soft);
}

.premium-note p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.recipe-member-block {
    margin-top: 22px;
}

.recipe-member-block .billing-widget {
    box-shadow: 0 16px 36px rgba(30, 39, 50, 0.08);
}

.recipe-member-status {
    width: 100%;
}

.recipe-comments {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.recipe-comments-title {
    margin: 0;
    color: var(--coral);
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comment-form,
.comment-login-note,
.comment-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(30, 39, 50, 0.06);
}

.comment-form {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.comment-form label,
.comment-edit-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.comment-form textarea,
.comment-edit-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    resize: vertical;
}

.comment-form button,
.comment-edit-form button {
    justify-self: start;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: var(--leaf);
    cursor: pointer;
    font-weight: 850;
}

.comment-login-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment-item {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

.comment-item-header strong {
    color: var(--ink);
}

.comment-meta,
.comment-actions,
.comment-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.comment-meta {
    justify-content: flex-end;
}

.comment-actions {
    margin-top: 4px;
}

.comment-inline-form {
    margin: 0;
}

.comment-action-link,
.comment-delete-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.comment-action-link {
    color: var(--leaf);
    background: rgba(36, 116, 86, 0.1);
}

.comment-action-link.secondary {
    color: var(--muted);
    background: transparent;
}

.comment-delete-button {
    color: #f1d4cf;
    background: rgba(126, 48, 36, 0.28);
}

.comment-edit-form {
    display: grid;
    gap: 10px;
}

.comment-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.member-page {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.auth-panels,
.product-grid,
.coaching-steps {
    display: grid;
    gap: 18px;
}

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

.auth-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.member-auth-card {
    width: min(520px, 100%);
}

.signup-step {
    display: grid;
    gap: 14px;
}

.signup-step.is-hidden {
    display: none;
}

.auth-card label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.auth-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    border-radius: 8px;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 36px;
    min-height: 36px;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0;
    color: var(--leaf);
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--leaf-soft);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.auth-card button,
.product-card button,
.coaching-copy button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: var(--leaf);
    cursor: pointer;
    font-weight: 850;
}

.auth-card .button.secondary {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.auth-card button:disabled {
    cursor: not-allowed;
    opacity: 0.54;
    transform: none;
    box-shadow: none;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.auth-card .social-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper);
}

.auth-card .social-button.google {
    color: #3c4043;
    border-color: #dadce0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.auth-card .social-button.google:hover,
.auth-card .social-button.google:focus-visible {
    border-color: #c8d1dc;
    background: #f8fbff;
}

.google-mark {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
}

.google-mark svg {
    width: 20px;
    height: 20px;
}

.auth-card .social-button.facebook {
    color: #fff;
    border-color: #1877f2;
    background: #1877f2;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.signup-link {
    justify-self: center;
    color: var(--leaf);
    font-weight: 900;
    text-align: center;
}

.signup-link:hover {
    text-decoration: underline;
}

.form-error-list {
    display: grid;
    gap: 6px;
    border-radius: 8px;
    padding: 12px 14px;
    color: #8d2e22;
    background: #f9ded7;
    font-weight: 800;
}

.form-error-list p {
    margin: 0;
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-rules li {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 7px 10px;
    color: #8d2e22;
    background: #f9ded7;
    font-size: 0.82rem;
    font-weight: 850;
}

.password-rules li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: currentColor;
}

.password-rules li.is-valid {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.signup-actions {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 10px;
}

.product-grid {
    width: min(1050px, calc(100% - 36px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto clamp(44px, 7vw, 86px);
}

.product-card {
    overflow: hidden;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card div {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.product-card p:not(.eyebrow),
.coaching-steps p,
.small-note {
    color: var(--muted);
    line-height: 1.55;
}

.product-card strong {
    color: var(--leaf);
    font-size: 1.45rem;
}

.coaching-page {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.coaching-copy button {
    margin-top: 12px;
}

.coaching-steps article {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.coaching-steps span {
    color: var(--coral);
    font-weight: 900;
}

.section-heading {
    margin-bottom: 22px;
}

.feed-heading-row,
.feed-controls-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.feed-heading-row {
    margin-bottom: 22px;
}

.feed-heading-row .section-heading {
    margin-bottom: 0;
}

.feed-controls-row {
    align-items: center;
    margin-bottom: 18px;
}

.home-feed-controls {
    align-items: flex-start;
    flex-wrap: wrap;
}

.home-feed-search {
    flex: 1 1 360px;
    max-width: 620px;
}

.home-feed-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 15px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 10px 24px rgba(30, 39, 50, 0.06);
}

.home-feed-search input:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 18%, transparent);
    outline: none;
}

.home-feed-controls .feed-toolbar {
    margin: 0;
}

.home-feed-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 1 1 420px;
    flex-wrap: wrap;
}

.home-feed-actions .layout-toggle {
    margin-left: auto;
}

.home-feed-controls .feed-search-status {
    flex: 0 0 100%;
    min-width: 0;
    margin: -6px 0 0;
    text-align: left;
}

.home-feed-controls .feed-search-status:empty {
    display: none;
}

.feed-search-status {
    min-width: 110px;
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 850;
    text-align: right;
}

.catalog-view-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 16px;
}

.stream-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

.stream-heading h1 {
    max-width: 840px;
}

.feed-toolbar {
    margin: 0 0 18px;
}

.feed-toolbar button {
    border-color: var(--line);
    background: var(--paper);
}

.layout-toggle {
    flex: 0 0 auto;
    display: inline-grid;
    grid-template-columns: repeat(2, 42px);
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px;
    background: var(--paper);
    box-shadow: 0 10px 24px rgba(30, 39, 50, 0.06);
}

.layout-toggle button {
    width: 42px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.layout-toggle button:hover,
.layout-toggle button:focus-visible,
.layout-toggle button.is-active {
    color: #fff;
    background: var(--leaf);
}

.layout-icon {
    width: 18px;
    height: 18px;
    display: grid;
    gap: 3px;
}

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

.grid-icon span,
.list-icon span {
    display: block;
    border-radius: 2px;
    background: currentColor;
}

.list-icon {
    grid-template-columns: 1fr;
}

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

.article-grid[aria-busy="true"] {
    opacity: 0.72;
    transition: opacity 160ms ease;
}

.article-grid.is-list-view {
    grid-template-columns: 1fr;
}

.feed-empty-state {
    grid-column: 1 / -1;
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 42px);
    background: color-mix(in srgb, var(--paper) 78%, transparent);
}

.feed-empty-state h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.feed-empty-state p:last-child {
    margin: 0;
    color: var(--muted);
}

.article-card {
    overflow: hidden;
}

.article-grid.is-list-view .article-card {
    --list-card-size: clamp(190px, 17vw, 240px);
    display: grid;
    grid-template-columns: var(--list-card-size) minmax(0, 1fr);
    height: var(--list-card-size);
    min-height: 0;
}

.article-grid.is-list-view .article-media {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.article-grid.is-list-view .article-body {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    gap: var(--card-body-gap, 12px);
    min-width: 0;
    overflow: hidden;
    padding: clamp(20px, 3vw, 30px);
}

.article-media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--line);
}

.article-media-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 220ms ease;
}

.article-card:hover .article-media img {
    transform: scale(1.035);
}

.article-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.article-meta,
.article-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.article-meta {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.article-body h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.34rem;
    line-height: 1.16;
}

.article-title-link {
    color: inherit;
    text-decoration: none;
}

.article-title-link:hover,
.article-title-link:focus-visible {
    color: var(--leaf-light);
}

.article-title-link:focus-visible {
    outline: 2px solid var(--leaf-light);
    outline-offset: 4px;
    border-radius: 4px;
}

.article-grid.is-list-view .article-body h2 {
    max-width: min(100%, 900px);
    font-size: clamp(0.96rem, var(--card-title-size, 1.82rem), 1.82rem);
    line-height: 1.08;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--card-title-lines, 3);
}

.article-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.article-grid.is-list-view .article-body p {
    max-width: 680px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--card-excerpt-lines, 2);
}

.article-grid.is-list-view .article-foot {
    align-self: end;
}

.badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 900;
}

.badge.locked {
    color: #7b2d24;
    background: #f9ded7;
}

.badge.free {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.article-foot a {
    color: var(--leaf);
    font-weight: 900;
}

.feed-loader {
    min-height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 850;
}

.feed-loader.is-visible {
    display: flex;
}

.loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--coral);
    animation: pulse 900ms ease-in-out infinite;
}

.feed-sentinel {
    height: 1px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.78);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gate-ready,
.admin-ready {
    min-height: 100vh;
    background: #edf5ef;
}

.gate,
.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background-image: linear-gradient(rgba(32, 92, 70, 0.08), rgba(32, 92, 70, 0.08)), url("images/smash-tacos.png");
    background-size: cover;
    background-position: center;
}

.gate-panel,
.admin-login-panel {
    width: min(450px, 100%);
    padding: 32px;
    background: var(--panel-overlay-bg);
    border: 1px solid var(--panel-overlay-border);
    box-shadow: var(--shadow);
}

.gate-logo {
    width: min(210px, 72%);
    aspect-ratio: 1;
    margin: 0 auto 22px;
    border: 1px solid rgba(201, 154, 66, 0.36);
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    background: var(--brand-bg);
    box-shadow: var(--shadow);
}

.gate h1,
.admin-login h1 {
    margin-bottom: 12px;
}

.gate-copy,
.admin-login-copy {
    color: var(--muted);
    line-height: 1.6;
}

.admin-login-copy {
    margin: 0 0 18px;
}

.admin-login-panel .system-message {
    width: 100%;
    margin-bottom: 12px;
}

.admin-google-login-form {
    display: grid;
    margin-bottom: 14px;
}

.admin-login-panel .social-button {
    min-height: 46px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 850;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-login-panel .social-button.google {
    color: #3c4043;
    border-color: #dadce0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.admin-login-panel .social-button.google:hover,
.admin-login-panel .social-button.google:focus-visible {
    border-color: #c8d1dc;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(30, 39, 50, 0.16);
}

.admin-login-panel .social-button:disabled:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.admin-auth-divider {
    margin: 0 0 14px;
}

.gate-form,
.admin-login-form {
    display: grid;
    gap: 14px;
}

.gate-form label,
.admin-login-form label,
.admin-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.admin-form label small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.45;
}

.gate-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.gate-field input,
.gate-field button,
.admin-login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--paper);
    outline: none;
}

.admin-form input[readonly] {
    color: var(--muted);
    background: color-mix(in srgb, var(--paper) 82%, var(--mist));
}

.gate-field button {
    width: auto;
    min-width: 96px;
    color: #fff;
    background: var(--leaf);
    cursor: pointer;
    font-weight: 850;
}

.gate-field input:focus,
.admin-login-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(32, 92, 70, 0.12);
}

.form-error {
    margin: 0;
    color: #a73428;
    font-weight: 850;
}

.admin-topbar {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 10px clamp(16px, 4vw, 56px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-workspace {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(38px, 6vw, 72px) 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 18px;
}

.admin-form,
.admin-preview {
    padding: 22px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.system-form h2,
.system-form p {
    grid-column: 1 / -1;
}

.system-form h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.system-form p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.system-message {
    width: min(1180px, 100%);
    margin: 0 0 18px;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 850;
}

.system-message.success {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.system-message.error {
    color: #8d2e22;
    background: #f9ded7;
}

.system-message.warning {
    color: #f5e8cc;
    border: 1px solid rgba(212, 165, 71, 0.42);
    background: rgba(212, 165, 71, 0.14);
}

.auth-card .password-toggle,
.admin-form .password-toggle,
.account-form .password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0;
    color: var(--leaf);
    background: transparent;
    transform: translateY(-50%);
    box-shadow: none;
}

.auth-card .password-toggle:hover,
.admin-form .password-toggle:hover,
.account-form .password-toggle:hover,
.auth-card .password-toggle:focus-visible,
.admin-form .password-toggle:focus-visible,
.account-form .password-toggle:focus-visible {
    color: var(--leaf);
    background: var(--leaf-soft);
    transform: translateY(-50%);
    box-shadow: none;
}

.social-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.member-dashboard {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto clamp(44px, 7vw, 86px);
    padding-top: clamp(30px, 5vw, 58px);
}

.member-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.member-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(30, 39, 50, 0.06);
}

.member-sidebar button {
    min-height: 74px;
    display: grid;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px;
    color: var(--muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.member-sidebar button strong {
    color: var(--ink);
    font-size: 1rem;
}

.member-sidebar button span {
    line-height: 1.35;
    font-size: 0.84rem;
}

.member-sidebar button:hover,
.member-sidebar button.is-active {
    border-color: rgba(32, 92, 70, 0.18);
    color: var(--leaf);
    background: var(--leaf-soft);
}

.member-sidebar button.is-active strong {
    color: var(--leaf);
}

.member-content,
.member-panel,
.security-stack {
    display: grid;
    gap: 18px;
}

.member-panel {
    display: none;
}

.member-panel.is-active {
    display: grid;
}

.account-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 28px;
}

.account-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4.3vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.account-hero .eyebrow,
.member-intro .eyebrow {
    margin-bottom: 18px;
    font-size: clamp(0.9rem, 1.4vw, 1.08rem);
    letter-spacing: 0.12em;
}

.account-hero p:last-child {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(30, 39, 50, 0.06);
}

.account-notice-card {
    display: grid;
    gap: 12px;
}

.google-account-notice {
    border-color: rgba(134, 210, 154, 0.34);
    background: linear-gradient(135deg, rgba(134, 210, 154, 0.1), var(--paper));
}

.account-card h2,
.card-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.account-card p {
    color: var(--muted);
    line-height: 1.58;
}

.account-summary-card,
.subscription-card {
    min-height: 260px;
}

.account-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.account-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.account-list dt {
    color: var(--muted);
    font-weight: 850;
}

.account-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 850;
}

.account-form {
    display: grid;
    gap: 14px;
}

.card-heading {
    display: grid;
    gap: 4px;
}

.split-heading {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 16px;
}

.profile-edit-form.is-hidden {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.account-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
}

.account-form button,
.account-hero button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: var(--leaf);
    cursor: pointer;
    font-weight: 850;
}

.account-form .button.secondary,
.account-hero .button.secondary {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.account-hero .member-logout-button.button.secondary {
    color: var(--logout-text);
    border: 1px solid var(--logout-border);
    background: var(--logout-bg);
}

.account-hero .member-logout-button.button.secondary:hover,
.account-hero .member-logout-button.button.secondary:focus-visible {
    color: var(--logout-hover-text);
    background: var(--logout-hover-bg);
}

.subscription-card .button {
    margin-top: 8px;
}

.purchase-history-card {
    display: grid;
    gap: 18px;
}

.purchase-empty-state {
    display: grid;
    gap: 10px;
    border: 1px dashed rgba(32, 92, 70, 0.28);
    border-radius: 8px;
    padding: 22px;
    background: color-mix(in srgb, var(--leaf-soft) 34%, transparent);
}

.purchase-empty-state strong {
    font-size: 1.05rem;
}

.purchase-empty-state p {
    margin: 0;
}

.purchase-empty-state .button {
    justify-self: start;
    margin-top: 4px;
}

.purchase-list {
    display: grid;
    gap: 12px;
}

.purchase-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--shell);
}

.purchase-item-main,
.purchase-item-meta {
    display: grid;
    gap: 5px;
}

.purchase-type {
    width: max-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    color: var(--leaf);
    background: var(--leaf-soft);
    font-size: 0.75rem;
    font-weight: 900;
}

.purchase-item-main strong {
    font-size: 1.05rem;
}

.purchase-item-main small,
.purchase-item-meta span,
.purchase-item-meta small,
.purchase-muted {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 780;
}

.purchase-item-meta {
    min-width: 120px;
    text-align: right;
}

.purchase-item-meta > strong {
    color: var(--ink);
    font-size: 1rem;
}

.purchase-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.purchase-item-actions .button {
    min-height: 38px;
}

.billing-widget {
    display: grid;
    gap: 20px;
}

.billing-widget-heading p:last-child {
    margin: 6px 0 0;
}

.subscription-active-panel {
    display: grid;
    gap: 18px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--payment-method-border);
    border-radius: 8px;
    padding: 16px;
    background: var(--payment-method-bg);
}

.payment-method-card.provider-paypal {
    border-color: var(--payment-method-paypal-border);
    background: var(--payment-method-paypal-bg);
}

.payment-provider-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--leaf);
    font-weight: 950;
}

.provider-paypal .payment-provider-mark {
    background: #12498e;
}

.payment-method-card div {
    display: grid;
    gap: 3px;
}

.payment-method-card span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.compact-list {
    margin-top: 0;
}

.subscription-renewal-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(201, 154, 66, 0.48);
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(201, 154, 66, 0.12);
}

.subscription-renewal-status p {
    margin: 0;
    color: var(--ink);
}

.subscription-cancel-actions {
    display: flex;
    justify-content: flex-start;
}

.cancel-subscription-form {
    display: flex;
    justify-content: flex-start;
}

.cancel-subscription-form .danger-button,
.subscription-cancel-actions .danger-button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: #8d2e22;
    cursor: pointer;
    font-weight: 850;
}

.cancel-subscription-form .danger-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.stay-subscribed-button {
    white-space: nowrap;
}

.subscription-cancel-copy {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(141, 46, 34, 0.24);
    border-radius: 8px;
    padding: 14px;
    background: rgba(141, 46, 34, 0.08);
}

.subscription-cancel-copy p {
    margin: 0;
}

.subscription-cancel-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.subscription-cancel-modal-actions .button,
.subscription-cancel-modal-actions .danger-button {
    width: 100%;
}

.account-delete-blocked-copy {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(141, 46, 34, 0.24);
    border-radius: 8px;
    padding: 14px;
    background: rgba(141, 46, 34, 0.08);
}

.account-delete-blocked-copy p {
    margin: 0;
}

.account-delete-blocked-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.account-delete-blocked-actions .button {
    width: 100%;
}

.subscription-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.subscription-selector {
    display: grid;
    gap: 16px;
}

.billing-plan-card {
    position: relative;
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--shell);
}

.selectable-plan-card {
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.selectable-plan-card:hover,
.selectable-plan-card.is-selected {
    border-color: rgba(32, 92, 70, 0.56);
    box-shadow: 0 16px 34px rgba(32, 92, 70, 0.12);
    transform: translateY(-1px);
}

.selectable-plan-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.billing-plan-card.featured {
    border-color: rgba(201, 154, 66, 0.55);
    box-shadow: 0 16px 34px rgba(201, 154, 66, 0.14);
}

.billing-plan-card.featured.is-selected {
    border-color: rgba(32, 92, 70, 0.64);
}

.plan-select-indicator {
    justify-self: start;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(32, 92, 70, 0.18);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--leaf);
    background: var(--leaf-soft);
    font-size: 0.76rem;
    font-weight: 900;
}

.selectable-plan-card.is-selected .plan-select-indicator {
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
}

.billing-plan-top {
    display: grid;
    gap: 8px;
}

.billing-price {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    line-height: 1;
}

.billing-old-price {
    display: inline-block;
    margin-right: 8px;
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 850;
    text-decoration: line-through;
}

.billing-price span {
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
}

.billing-promo-badge {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(255, 142, 120, 0.28);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--coral);
    background: var(--danger-soft);
    font-size: 0.76rem;
    font-weight: 900;
}

.billing-plan-card ul,
.billing-plan-features {
    display: grid;
    gap: 8px;
    margin: 0;
}

.billing-plan-card ul {
    padding-left: 18px;
}

.billing-plan-features {
    padding: 0;
    color: var(--muted);
    line-height: 1.5;
}

.billing-plan-features span {
    position: relative;
    padding-left: 18px;
}

.billing-plan-features span::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--leaf-2);
}

.subscription-action-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(201, 154, 66, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    background: var(--gold-soft);
}

.subscription-action-summary {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.subscription-action-summary > span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.subscription-action-summary strong {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: var(--ink);
    font-size: 1rem;
}

.subscription-action-summary small {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 900;
}

.subscribe-trigger {
    justify-self: end;
    min-width: 142px;
    color: #fff;
    background: var(--leaf);
}

.subscription-selector .payment-setup-note {
    margin: -4px 0 0;
    text-align: center;
}

.subscription-login-prompt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(132, 211, 154, 0.28);
    border-radius: 8px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--leaf-soft) 72%, transparent);
}

.subscription-login-prompt div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.subscription-login-prompt strong {
    color: var(--ink);
    font-size: 1rem;
}

.subscription-login-prompt span {
    color: var(--muted);
    line-height: 1.45;
}

.subscription-login-prompt .button {
    justify-self: end;
    white-space: nowrap;
}

.legacy-subscription-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-color: color-mix(in srgb, var(--gold) 34%, var(--line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 64%, var(--paper)) 0%, color-mix(in srgb, var(--leaf-soft) 18%, var(--paper)) 100%);
}

.legacy-subscription-card .card-heading {
    display: grid;
    gap: 8px;
}

.legacy-subscription-card .card-heading p:last-child {
    max-width: 690px;
    color: var(--muted);
    line-height: 1.6;
}

.legacy-subscription-card .button {
    justify-self: end;
    white-space: nowrap;
}

.subscription-sync-form {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
    text-align: center;
}

.subscription-sync-form .button {
    width: min(100%, 260px);
}

.subscription-sync-form small {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.45;
}

.subscription-support-card {
    display: grid;
    gap: 16px;
}

.subscription-support-card .card-heading {
    display: grid;
    gap: 8px;
}

.subscription-support-card .card-heading p:last-child,
.subscription-support-card > .small-note {
    max-width: 720px;
}

.subscription-support-card > .small-note {
    margin: -2px auto 0;
    text-align: center;
}

.subscription-support-card a {
    color: var(--leaf);
    font-weight: 850;
}

.discord-account-card {
    display: grid;
    gap: 16px;
    border-color: color-mix(in srgb, #5865f2 22%, var(--line));
}

.discord-account-heading {
    display: grid;
    gap: 8px;
}

.discord-account-heading p:last-child {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.6;
}

.discord-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.discord-account-actions form {
    margin: 0;
}

.discord-connect-button {
    background: #5865f2;
}

.discord-connect-button:hover,
.discord-connect-button:focus-visible {
    background: #4752c4;
}

.discord-account-list {
    margin: 0;
}

.discord-account-warning {
    width: 100%;
    margin: 0;
}

.payment-choice-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.payment-choice-actions.centralized {
    margin-top: 6px;
}

.payment-choice-button {
    width: 100%;
    min-height: 118px;
    display: grid;
    place-items: center;
    gap: 7px;
    border: 1px solid rgba(32, 92, 70, 0.18);
    border-radius: 8px;
    padding: 14px 12px;
    color: var(--leaf);
    background: var(--leaf-soft);
    cursor: pointer;
    font-weight: 900;
    text-align: center;
}

.payment-choice-button.paypal {
    color: #12498e;
    border-color: rgba(18, 73, 142, 0.22);
    background: var(--paypal-soft);
}

.payment-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.payment-brand-stack {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.payment-choice-button.stripe .payment-brand-stack,
.payment-choice-button.paypal .payment-brand-stack {
    margin-bottom: 6px;
}

.payment-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.payment-brand-logo,
.payment-card-logo {
    width: 60px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 3px 7px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36) inset;
}

.stripe-logo {
    color: #fff;
    background: #635bff;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.visa-logo {
    color: #1434cb;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 950;
    font-style: italic;
}

.mastercard-logo {
    gap: 0;
    color: #1f2933;
    background: #fff;
    font-size: 0.62rem;
    font-weight: 850;
}

.mastercard-mark {
    position: relative;
    width: 26px;
    height: 14px;
    display: inline-block;
}

.mastercard-mark span {
    position: absolute;
    top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.mastercard-mark span:first-child {
    left: 1px;
    background: #eb001b;
}

.mastercard-mark span:last-child {
    right: 1px;
    background: rgba(247, 158, 27, 0.92);
}

.paypal-logo {
    gap: 0;
    background: #fff;
    font-size: 1rem;
    font-weight: 950;
}

.paypal-logo span:first-child {
    color: #003087;
}

.paypal-logo span:last-child {
    color: #009cde;
}

.payment-choice-button strong {
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.1;
}

.payment-choice-button.stripe strong {
    display: block;
}

.payment-method-subtitle {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
}

.payment-choice-button small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.payment-choice-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.2);
    opacity: 0.54;
}

.payment-setup-note {
    margin: 0;
    text-align: center;
}

body.modal-open {
    overflow: hidden;
}

.payment-modal[hidden] {
    display: none;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
}

.payment-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(30, 39, 50, 0.58);
    cursor: pointer;
}

.payment-modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    display: grid;
    gap: 18px;
    border: 1px solid var(--modal-border);
    border-radius: 8px;
    padding: 22px;
    background: var(--paper);
    box-shadow: 0 24px 70px rgba(30, 39, 50, 0.28);
    outline: none;
}

.payment-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.payment-modal-heading h3 {
    margin: 0;
    font-size: 1.35rem;
}

.modal-close-button {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--paper);
    cursor: pointer;
    font-weight: 900;
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.selected-plan-summary {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--shell);
}

.selected-plan-summary span,
.selected-plan-summary small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.selected-plan-summary strong {
    color: var(--leaf);
    font-size: 1.1rem;
}

.coupon-code-field {
    display: grid;
    gap: 8px;
}

.coupon-code-field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.coupon-code-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--shell);
    font: inherit;
    font-weight: 850;
    text-transform: uppercase;
}

.coupon-code-field input:focus {
    border-color: var(--leaf);
    outline: none;
}

.coupon-code-field small {
    color: var(--muted);
    font-size: 0.82rem;
}

.account-danger {
    border-color: rgba(141, 46, 34, 0.26);
    background: var(--danger-soft);
}

.account-danger .danger-button {
    background: #8d2e22;
}

.admin-form label:nth-of-type(n + 4),
.admin-form button {
    grid-column: 1 / -1;
}

.admin-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.admin-form-actions button,
.admin-form-actions .button {
    width: 100%;
    min-width: 0;
}

.admin-form-actions .button.is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.25);
    box-shadow: none;
    transform: none;
}

.unsaved-changes-panel {
    width: min(620px, 100%);
}

.unsaved-changes-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.unsaved-changes-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 10px;
}

.unsaved-changes-actions .button,
.unsaved-changes-actions .danger-button {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.admin-form textarea {
    resize: vertical;
}

.rich-editor-source-label {
    display: none !important;
}

.rich-editor {
    display: grid;
    gap: 12px;
}

.rich-editor-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.rich-editor-heading > div {
    display: grid;
    gap: 4px;
}

.rich-editor-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.rich-editor-heading small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.45;
}

.rich-editor-visual {
    display: grid;
    gap: 10px;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: color-mix(in srgb, var(--paper) 88%, var(--leaf-soft));
}

.admin-form .rich-editor-toolbar button,
.rich-editor-toolbar button {
    grid-column: auto;
    width: auto;
    min-height: 34px;
    min-width: 40px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 10px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 850;
}

.admin-form .rich-editor-toolbar button:hover,
.admin-form .rich-editor-toolbar button:focus-visible {
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
}

.admin-form .rich-editor-toolbar button.is-active,
.rich-editor-toolbar button.is-active {
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 20px rgba(32, 92, 70, 0.16);
}

.admin-form .rich-editor-toolbar .rich-editor-premium-button {
    color: #7b2d24;
    border-color: color-mix(in srgb, var(--coral) 45%, var(--line));
    background: #f9ded7;
}

.admin-form .rich-editor-toolbar .rich-editor-premium-button.is-active {
    color: #fff;
    border-color: #a73428;
    background: #a73428;
}

.rich-editor-surface,
.rich-editor-preview {
    min-height: var(--rich-editor-min-height, 240px);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    color: var(--ink);
    background: var(--shell);
    line-height: 1.7;
}

.rich-editor-surface {
    overflow: auto;
    outline: none;
}

.rich-editor-surface:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(32, 92, 70, 0.12);
}

.rich-editor-surface p,
.rich-editor-preview p,
.rich-editor-surface ul,
.rich-editor-preview ul,
.rich-editor-surface ol,
.rich-editor-preview ol,
.rich-editor-surface blockquote,
.rich-editor-preview blockquote {
    margin: 0 0 12px;
}

.rich-editor-surface h2,
.rich-editor-preview h2,
.rich-editor-surface h3,
.rich-editor-preview h3 {
    margin: 18px 0 10px;
}

.rich-editor-surface ul,
.rich-editor-preview ul,
.rich-editor-surface ol,
.rich-editor-preview ol {
    padding-left: 24px;
}

.rich-editor-surface blockquote,
.rich-editor-preview blockquote {
    border-left: 4px solid var(--leaf);
    padding-left: 14px;
    color: var(--muted);
}

.rich-editor-surface a,
.rich-editor-preview a {
    color: var(--leaf);
    font-weight: 900;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: color-mix(in srgb, var(--leaf) 58%, var(--gold));
    border-radius: 5px;
    background: color-mix(in srgb, var(--leaf-soft) 46%, transparent);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.rich-editor-surface a:hover,
.rich-editor-preview a:hover,
.rich-editor-surface a:focus-visible,
.rich-editor-preview a:focus-visible {
    color: var(--ink);
    background: color-mix(in srgb, var(--gold-soft) 72%, var(--paper));
    text-decoration-color: var(--coral);
}

.rich-premium-block {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 16px 0;
    border: 1px dashed color-mix(in srgb, var(--coral) 65%, var(--line));
    border-radius: 8px;
    padding: 14px 52px 14px 14px;
    background: color-mix(in srgb, var(--coral) 8%, var(--paper));
}

.admin-form .rich-premium-remove,
.rich-premium-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    grid-column: auto;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border: 1px solid color-mix(in srgb, var(--coral) 54%, var(--line));
    border-radius: 999px;
    padding: 0;
    color: #8d2e22;
    background: #f9ded7;
    box-shadow: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1;
}

.admin-form .rich-premium-remove:hover,
.admin-form .rich-premium-remove:focus-visible,
.rich-premium-remove:hover,
.rich-premium-remove:focus-visible {
    color: #fff;
    border-color: #a73428;
    background: #a73428;
    box-shadow: none;
    transform: none;
}

.rich-premium-label {
    justify-self: start;
    border-radius: 999px;
    padding: 5px 10px;
    color: #8d2e22;
    background: #f9ded7;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rich-premium-body {
    min-height: 42px;
}

.rich-editor-preview {
    border-style: dashed;
    background: color-mix(in srgb, var(--paper) 82%, var(--mist));
}

.rich-editor-preview::before {
    content: "Aperçu";
    display: block;
    margin-bottom: 12px;
    color: var(--coral);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list div {
    display: grid;
    gap: 4px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 12px;
    background: var(--gold-soft);
}

.admin-list span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 760;
}

.email-outbox {
    max-width: 920px;
}

.email-item {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--paper);
}

.email-item pre {
    max-width: 100%;
    overflow: auto;
    border-radius: 8px;
    margin: 0;
    padding: 12px;
    color: var(--muted);
    background: var(--mist);
    white-space: pre-wrap;
}

.admin-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: var(--mist);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    border-right: 1px solid var(--line);
    padding: 18px;
    background: var(--paper);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--leaf);
    font-weight: 950;
}

.admin-brand .brand {
    width: 52px;
    height: 52px;
}

.admin-side-nav,
.admin-side-actions {
    display: grid;
    gap: 8px;
    align-content: start;
}

.admin-side-nav a,
.admin-side-actions a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 12px;
    color: var(--muted);
    font-weight: 850;
}

.admin-side-nav a:hover,
.admin-side-nav a.is-active,
.admin-side-actions a:hover {
    color: var(--leaf);
    border-color: rgba(32, 92, 70, 0.18);
    background: var(--leaf-soft);
}

.admin-main {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(28px, 4vw, 52px) 0;
}

.admin-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
}

.admin-page-head p:last-child {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-page-head .button:not(.secondary) {
    color: #fff;
    background: var(--leaf);
}

.admin-search-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(30, 39, 50, 0.06);
}

.admin-search-bar label {
    min-width: 0;
}

.admin-search-bar label > span:not(.sr-only) {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-search-bar input,
.admin-search-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--shell);
}

.admin-search-bar input:focus,
.admin-search-bar select:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(32, 92, 70, 0.12);
    outline: none;
}

.activity-filter-bar {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) minmax(160px, 200px) auto auto;
    align-items: end;
}

.admin-search-status {
    min-height: 1.2em;
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-search-status.is-loading::after {
    content: "";
    width: 0.85em;
    height: 0.85em;
    display: inline-block;
    margin-left: 8px;
    border: 2px solid color-mix(in srgb, var(--leaf) 24%, transparent);
    border-top-color: var(--leaf);
    border-radius: 999px;
    vertical-align: -0.12em;
    animation: spin 780ms linear infinite;
}

.admin-card[aria-busy="true"] {
    opacity: 0.68;
    transition: opacity 160ms ease;
}

.admin-search-summary {
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.admin-stat-grid,
.admin-two-column,
.admin-three-column {
    display: grid;
    gap: 16px;
}

.admin-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

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

.admin-stat-grid div,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(30, 39, 50, 0.07);
}

.admin-stat-grid div {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.admin-stat-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-stat-grid small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-stat-grid strong {
    color: var(--leaf);
    font-size: 2rem;
}

.activity-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 16px;
}

.activity-chart-card {
    min-width: 0;
}

.activity-chart-total {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.activity-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: -2px 0 14px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 850;
}

.activity-chart-legend span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.activity-chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.activity-chart-legend .is-human,
.activity-bar-segment.is-human,
.activity-kind.is-human {
    background: var(--leaf);
}

.activity-chart-legend .is-bot,
.activity-bar-segment.is-bot,
.activity-kind.is-bot {
    background: #c99a42;
}

.activity-bar-chart {
    display: grid;
    gap: 10px;
}

.activity-bar-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 92px;
    gap: 10px;
    align-items: center;
}

.activity-bar-label,
.activity-bar-value {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.activity-bar-value {
    text-align: right;
}

.activity-bar-track {
    height: 12px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: var(--shell);
}

.activity-bar-segment {
    min-width: 0;
}

.activity-empty-chart {
    margin: 0;
    color: var(--muted);
    font-weight: 850;
}

.activity-kind {
    width: max-content;
    margin-top: 6px;
    border-radius: 999px;
    padding: 3px 8px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.admin-two-column {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.admin-three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
    align-items: start;
}

.admin-card {
    padding: 18px;
}

.admin-card h2 {
    margin: 0 0 12px;
    font-size: 1.28rem;
}

.admin-danger-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: end;
    margin-top: 16px;
    border-color: rgba(141, 46, 34, 0.34);
    background: color-mix(in srgb, var(--danger-soft) 52%, var(--paper));
}

.admin-delete-member-form {
    display: grid;
    gap: 12px;
}

.admin-delete-member-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.danger-button {
    min-height: 44px;
    border: 1px solid rgba(141, 46, 34, 0.42);
    border-radius: 8px;
    padding: 0 18px;
    color: #ffd8d1;
    background: rgba(141, 46, 34, 0.86);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.danger-button:hover,
.danger-button:focus-visible {
    color: #fff;
    background: #8d2e22;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-main > .admin-card + .admin-card {
    margin-top: 18px;
}

.admin-filter-bar {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
}

.admin-filter-bar span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.admin-filter-bar input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--shell);
}

.admin-filter-bar input:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(32, 92, 70, 0.12);
    outline: none;
}

.admin-table-wrap {
    max-width: 100%;
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
    display: block;
}

.admin-table td span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-table .admin-table-empty td {
    color: var(--muted);
    text-align: center;
    font-weight: 850;
}

.activity-table {
    min-width: 980px;
}

.activity-metadata {
    max-width: 360px;
    overflow-wrap: anywhere;
}

.activity-bot-table td:first-child strong {
    max-width: 720px;
    overflow-wrap: anywhere;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.admin-pagination a {
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--shell);
    font-weight: 900;
}

.admin-pagination a.is-active {
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
}

.admin-table a,
.admin-comment-list a {
    color: var(--leaf);
    font-weight: 900;
}

.admin-table td.admin-table-actions {
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table-actions .admin-icon-link + .admin-icon-link,
.admin-table-actions .admin-icon-link + .admin-inline-delete-form,
.admin-table-actions .admin-inline-delete-form + .admin-icon-link {
    margin-left: 8px;
}

.admin-inline-delete-form {
    display: inline-grid;
    margin: 0;
    vertical-align: middle;
}

.admin-table .admin-icon-link {
    width: 36px;
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--leaf);
    background: var(--leaf-soft);
    font-size: 1.05rem;
    line-height: 1;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-table button.admin-icon-link {
    font-family: inherit;
    cursor: pointer;
}

.admin-table .admin-icon-delete {
    color: #ff8f7f;
    border-color: rgba(141, 46, 34, 0.48);
    background: rgba(141, 46, 34, 0.22);
}

.admin-table .admin-icon-link:hover,
.admin-table .admin-icon-link:focus-visible {
    border-color: rgba(32, 92, 70, 0.42);
    background: var(--paper);
    transform: translateY(-1px);
}

.admin-table .admin-icon-delete:hover,
.admin-table .admin-icon-delete:focus-visible {
    border-color: rgba(255, 143, 127, 0.72);
    color: #ffd7d1;
    background: rgba(141, 46, 34, 0.36);
}

.admin-comment-list,
.admin-mini-list {
    display: grid;
    gap: 10px;
}

.admin-comment-list article,
.admin-mini-list article {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--shell);
}

.admin-comment-list article div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-comment-list p,
.admin-mini-list span {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.recipe-edit-form,
.member-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form .full-field,
.admin-form h2,
.admin-form .checkbox-label,
.admin-form .category-manager,
.admin-form .recipe-status-panel,
.admin-form .recipe-access-panel,
.admin-fieldset {
    grid-column: 1 / -1;
}

.subscription-promotion-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.promotion-plan-card,
.admin-card-note {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--shell);
}

.promotion-plan-card p,
.admin-card-note span {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.promotion-plan-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.promotion-plan-toggle input {
    width: auto;
    min-height: auto;
    accent-color: var(--leaf);
}

.recipe-status-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) minmax(220px, 300px);
    gap: 14px;
    align-items: start;
    border: 1px solid rgba(223, 109, 85, 0.34);
    border-radius: 8px;
    padding: 18px;
    background: color-mix(in srgb, var(--coral) 10%, var(--paper));
}

.recipe-status-panel > div {
    align-self: start;
}

.recipe-status-panel h2,
.recipe-status-panel p,
.recipe-access-panel h2,
.recipe-access-panel p {
    margin: 0;
}

.recipe-status-panel h2,
.recipe-access-panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.recipe-status-panel label {
    margin: 0;
}

.recipe-access-panel {
    display: block;
    border: 1px solid color-mix(in srgb, var(--leaf) 46%, var(--line));
    border-radius: 8px;
    padding: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--leaf-soft) 78%, var(--paper)) 0%, color-mix(in srgb, var(--paper) 88%, var(--leaf-soft)) 100%);
}

.recipe-access-panel:has(input:checked) {
    border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 70%, var(--paper)) 0%, color-mix(in srgb, var(--paper) 82%, var(--gold-soft)) 100%);
}

.recipe-access-copy {
    display: grid;
    gap: 8px;
}

.recipe-access-panel > div > p:not(.eyebrow) {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.55;
}

.recipe-access-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.recipe-access-row h2 {
    min-width: 0;
}

.recipe-access-switch {
    flex: 0 0 auto;
    justify-self: end;
    min-height: 48px;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--leaf) 46%, var(--line));
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--leaf);
    background: color-mix(in srgb, var(--leaf-soft) 70%, var(--paper));
}

.recipe-access-panel:has(input:checked) .recipe-access-switch {
    border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
    color: #7a4f08;
    background: var(--gold-soft);
}

.recipe-access-switch span {
    font-weight: 900;
}

.admin-fieldset {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px 16px 16px;
    background: color-mix(in srgb, var(--paper) 64%, var(--mist));
}

.admin-fieldset legend {
    margin-left: 6px;
    padding: 0 8px;
    color: var(--muted);
    background: var(--paper);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.tag-picker-field {
    gap: 12px;
}

.category-manager {
    display: grid;
    gap: 12px;
}

.category-select-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.category-manager .category-manage-button,
.image-upload-field button,
.admin-form .payment-choice-actions button,
.admin-form .category-option button,
.admin-form .tag-picker-option button {
    grid-column: auto;
}

.category-panel {
    width: min(920px, calc(100vw - 32px));
}

.category-options {
    display: grid;
    gap: 8px;
    max-height: min(46vh, 420px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--mist);
}

.category-option {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px 8px 14px;
    color: var(--ink);
    background: var(--paper);
    font-weight: 850;
}

.category-option-edit {
    border-color: var(--line);
    color: var(--leaf);
    background: var(--leaf-soft);
}

.category-modal .payment-modal-backdrop,
.category-editor-modal .payment-modal-backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.category-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 92;
    display: grid;
    place-items: center;
    padding: 18px;
}

.category-editor-modal[hidden] {
    display: none;
}

.category-editor-panel {
    width: min(440px, 100%);
}

.category-editor-panel label {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.image-upload-field {
    gap: 10px;
}

.recipe-media-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.image-upload-control {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.image-preview-button {
    width: 96px;
    min-width: 96px;
    height: 72px;
    min-height: 72px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    background: var(--shell);
    cursor: pointer;
}

.image-preview-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview-button {
    display: inline-grid;
    place-items: center;
    color: var(--mint);
    font-size: 1.45rem;
    font-weight: 900;
}

.image-upload-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.image-upload-copy input {
    cursor: pointer;
}

.media-current-link {
    color: var(--mint);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.media-remove-option {
    min-height: auto;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border: 0;
}

.tag-picker-trigger {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--paper);
    cursor: pointer;
}

.tag-picker-trigger:focus-visible {
    outline: 3px solid rgba(32, 92, 70, 0.16);
    outline-offset: 2px;
}

.tag-picker-trigger > div {
    display: grid;
    gap: 8px;
}

.tag-picker-trigger > div > span,
.tag-picker-note {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.tag-picker-note {
    margin: 0;
    line-height: 1.5;
}

.tag-picker-selected,
.tag-picker-options,
.tag-picker-created {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-picker-selected span,
.tag-picker-selected em,
.tag-picker-option,
.tag-picker-created span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: color-mix(in srgb, var(--tag-color, var(--leaf)) 72%, var(--ink));
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 16%, transparent);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 850;
}

.tag-picker-selected em {
    color: var(--muted);
    background: transparent;
}

.tag-picker-selected .premium-chip {
    color: #7a4f08;
    background: var(--gold-soft);
}

.tag-picker-modal .payment-modal-backdrop,
.tag-editor-modal .payment-modal-backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.tag-picker-panel .modal-close-button,
.tag-editor-panel .modal-close-button,
.category-panel .modal-close-button,
.category-editor-panel .modal-close-button {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;
    align-self: start;
    padding: 0;
    color: var(--muted);
    background: var(--paper);
}

.tag-picker-panel {
    width: min(920px, calc(100vw - 32px));
}

.tag-picker-options {
    max-height: min(46vh, 420px);
    overflow: auto;
    align-content: flex-start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--mist);
}

.tag-picker-option {
    position: relative;
    gap: 8px;
    padding-right: 8px;
    cursor: pointer;
}

.tag-picker-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tag-picker-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--tag-color, var(--leaf)) 72%, var(--line));
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 30%, var(--paper));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tag-color, var(--leaf)) 36%, transparent);
}

.tag-option-name {
    pointer-events: none;
}

.tag-option-edit {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--tag-color, var(--leaf)) 48%, var(--line));
    border-radius: 999px;
    padding: 0;
    color: var(--ink);
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 18%, var(--paper));
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1;
}

.tag-option-edit:hover,
.tag-option-edit:focus-visible {
    color: #fff;
    background: var(--tag-color, var(--leaf));
}

.taxonomy-panel,
.tag-picker-panel.taxonomy-panel,
.category-panel.taxonomy-panel {
    width: min(920px, calc(100vw - 32px));
}

.taxonomy-options,
.tag-picker-options.taxonomy-options,
.category-options.taxonomy-options {
    display: grid;
    gap: 8px;
    max-height: min(62vh, 620px);
    overflow: auto;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--mist);
}

.taxonomy-option,
.tag-picker-options.taxonomy-options .tag-picker-option,
.category-options.taxonomy-options .category-option {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px 8px 14px;
    color: var(--ink);
    background: var(--paper);
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
}

.tag-picker-options.taxonomy-options .tag-picker-option,
.category-options.taxonomy-options .category-option {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
    align-items: stretch;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.category-options.taxonomy-options .category-option {
    cursor: default;
}

.taxonomy-option-main {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tag-picker-options.taxonomy-options .taxonomy-option-main,
.category-options.taxonomy-options .taxonomy-option-main {
    position: relative;
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--muted);
    background: color-mix(in srgb, var(--paper) 72%, var(--mist));
}

.category-options.taxonomy-options .taxonomy-option-main {
    padding-right: 12px;
    color: var(--ink);
    background: var(--paper);
}

.taxonomy-option-main span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-picker-options.taxonomy-options .tag-option-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taxonomy-option-swatch {
    width: 12px;
    min-width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--tag-color, var(--leaf));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag-color, var(--leaf)) 18%, transparent);
}

.taxonomy-option-state {
    display: none;
    margin-left: auto;
    flex: 0 0 auto;
    min-width: max-content;
    border-radius: 999px;
    padding: 4px 8px;
    color: color-mix(in srgb, var(--tag-color, var(--leaf)) 78%, var(--ink));
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 18%, transparent);
    font-size: 0.72rem;
    font-weight: 900;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.tag-picker-options.taxonomy-options .taxonomy-option-state {
    align-self: center;
    margin-left: 10px;
    pointer-events: none;
    z-index: 1;
}

.taxonomy-option.is-selected,
.tag-picker-options.taxonomy-options .tag-picker-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--tag-color, var(--leaf)) 64%, var(--line));
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 14%, var(--paper));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tag-color, var(--leaf)) 32%, transparent);
}

.tag-picker-options.taxonomy-options .tag-picker-option.is-selected,
.tag-picker-options.taxonomy-options .tag-picker-option:has(input:checked) {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.tag-picker-options.taxonomy-options .tag-picker-option.is-selected .taxonomy-option-main,
.tag-picker-options.taxonomy-options .tag-picker-option:has(input:checked) .taxonomy-option-main {
    border-color: color-mix(in srgb, var(--tag-color, var(--leaf)) 64%, var(--line));
    background: color-mix(in srgb, var(--tag-color, var(--leaf)) 20%, var(--paper));
    color: color-mix(in srgb, var(--tag-color, var(--leaf)) 76%, var(--ink));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tag-color, var(--leaf)) 32%, transparent);
}

.tag-picker-options.taxonomy-options .tag-picker-option.is-selected .tag-option-name,
.tag-picker-options.taxonomy-options .tag-picker-option:has(input:checked) .tag-option-name {
    font-weight: 950;
}

.tag-picker-options.taxonomy-options .tag-option-name {
    font-weight: 720;
}

.taxonomy-option.is-selected .taxonomy-option-state,
.tag-picker-options.taxonomy-options .tag-picker-option:has(input:checked) .taxonomy-option-state {
    display: inline-flex;
}

.admin-form .taxonomy-option-edit,
.taxonomy-option-edit,
.admin-form .taxonomy-option-delete,
.taxonomy-option-delete {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--tag-color, var(--leaf)) 42%, var(--line));
    border-radius: 8px;
    padding: 0;
    color: var(--leaf);
    background: var(--leaf-soft);
    cursor: pointer;
    font-size: 0.86rem;
    line-height: 1;
}

.admin-form .tag-picker-options.taxonomy-options .taxonomy-option-edit,
.admin-form .category-options.taxonomy-options .taxonomy-option-edit,
.admin-form .tag-picker-options.taxonomy-options .taxonomy-option-delete,
.admin-form .category-options.taxonomy-options .taxonomy-option-delete {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 44px;
    min-height: 44px;
    align-self: stretch;
    border-radius: 8px;
}

.taxonomy-option-edit:hover,
.taxonomy-option-edit:focus-visible {
    color: #fff;
    background: var(--tag-color, var(--leaf));
}

.admin-form .taxonomy-option-delete,
.taxonomy-option-delete {
    color: #a73428;
    border-color: rgba(167, 52, 40, 0.28);
    background: color-mix(in srgb, #a73428 11%, var(--paper));
}

.taxonomy-option-delete:hover,
.taxonomy-option-delete:focus-visible {
    color: #fff;
    background: #a73428;
}

.recipe-collection-panel.taxonomy-panel {
    width: min(900px, calc(100vw - 32px));
}

.collection-options.taxonomy-options .collection-option {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
    align-items: stretch;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.collection-options.taxonomy-options .collection-option-main {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--paper);
    text-align: left;
    cursor: pointer;
}

.collection-options.taxonomy-options .collection-option-main:disabled {
    cursor: default;
}

.collection-options.taxonomy-options .collection-option.is-selected .collection-option-main {
    border-color: color-mix(in srgb, var(--leaf) 58%, var(--line));
    background: color-mix(in srgb, var(--leaf) 17%, var(--paper));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--leaf) 28%, transparent);
}

.collection-options.taxonomy-options .collection-option.is-selected .collection-option-name {
    font-weight: 950;
}

.collection-options.taxonomy-options .collection-option.is-selected .taxonomy-option-state {
    display: inline-flex;
}

.collection-option-main small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
}

.collection-feedback {
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--leaf);
    background: var(--leaf-soft);
    font-size: 0.86rem;
    font-weight: 850;
}

.collection-feedback.error {
    color: #8f2117;
    background: #f9ded7;
}

.collection-editor {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: color-mix(in srgb, var(--paper) 82%, var(--mist));
}

.collection-editor[hidden] {
    display: none;
}

.collection-editor-actions,
.collection-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.member-collections-widget,
.collection-member-list {
    display: grid;
    gap: 12px;
}

.member-collection-card {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--ink);
    background: color-mix(in srgb, var(--paper) 86%, var(--leaf-soft));
    text-decoration: none;
}

.member-collection-card:hover,
.member-collection-card:focus-visible {
    border-color: color-mix(in srgb, var(--leaf) 42%, var(--line));
    background: var(--leaf-soft);
}

.member-collection-card span:first-child {
    display: grid;
    gap: 4px;
}

.member-collection-card small,
.collection-empty {
    color: var(--muted);
}

.member-collection-card-cta {
    flex: 0 0 auto;
    color: var(--leaf);
    font-weight: 900;
}

.collection-empty {
    margin: 0;
    padding: 12px;
}

.tag-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 92;
    display: grid;
    place-items: center;
    padding: 18px;
}

.tag-editor-modal[hidden] {
    display: none;
}

.tag-editor-panel {
    width: min(440px, 100%);
}

.tag-editor-panel label,
.tag-color-picker {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.tag-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-color-grid button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 0;
    background: var(--tag-color);
    cursor: pointer;
}

.tag-color-grid button.is-selected {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag-color) 26%, transparent);
}

.tag-editor-panel input[type="color"] {
    width: 72px;
    height: 40px;
    padding: 4px;
}

.admin-form-subgrid {
    display: grid;
    grid-template-columns: 0.72fr 1fr 1fr;
    gap: 14px;
    align-items: end;
}

.admin-form-subgrid.nutrition-admin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-form-subgrid.nutrition-admin-grid:has(.nutrition-default-label-field:not([hidden])) {
    grid-template-columns: minmax(170px, 1.15fr) repeat(4, minmax(0, 1fr));
}

.nutrition-default-label-field[hidden] {
    display: none !important;
}

.admin-form-subgrid.cooking-admin-grid {
    grid-template-columns: minmax(140px, 0.72fr) minmax(0, 1fr) minmax(0, 1fr);
}

.admin-form-subgrid.conservation-admin-grid {
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
}

.admin-form .nutrition-admin-grid label,
.admin-form .cooking-admin-grid label,
.admin-form .conservation-admin-grid label {
    grid-column: auto;
    min-width: 0;
}

.nutrition-tabs-admin {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.nutrition-tabs-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nutrition-tabs-admin-head strong,
.nutrition-tabs-admin-head p {
    margin: 0;
}

.nutrition-tabs-admin-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.nutrition-tabs-admin-list {
    display: grid;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.nutrition-tab-admin-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.35fr) repeat(4, minmax(96px, 1fr)) 44px;
    gap: 10px;
    align-items: end;
    min-width: 860px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--paper) 94%, var(--leaf));
}

.admin-form .nutrition-tab-admin-row label {
    grid-column: auto;
    min-width: 0;
}

.admin-form .nutrition-tab-admin-row .admin-icon-link {
    grid-column: auto;
    width: 44px;
    height: 44px;
}

.admin-form .cooking-admin-grid .checkbox-label,
.admin-form .conservation-admin-grid .checkbox-label {
    min-height: 45px;
    align-self: end;
}

.checkbox-label {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkbox-label input {
    width: auto;
}

.shop-page,
.shop-detail-page {
    background: var(--mist);
}

.shop-hero {
    padding-bottom: clamp(18px, 3vw, 30px);
}

.shop-catalog {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto clamp(48px, 7vw, 88px);
}

.shop-catalog-head {
    align-items: end;
}

.shop-catalog-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.shop-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(30, 39, 50, 0.06);
}

.shop-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted);
    background: var(--shell);
    font-weight: 850;
}

.shop-filter-tabs a:hover,
.shop-filter-tabs a.is-active {
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
}

.shop-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--shell);
}

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

.shop-grid.is-list-view {
    grid-template-columns: 1fr;
}

.shop-grid.is-list-view .shop-product-card {
    --shop-list-height: clamp(235px, 19vw, 280px);
    --shop-list-media-width: clamp(220px, 17vw, 260px);
    grid-template-columns: var(--shop-list-media-width) minmax(0, 1fr);
    height: var(--shop-list-height);
}

.shop-grid.is-list-view .article-media {
    aspect-ratio: auto;
}

.shop-grid.is-list-view .article-body {
    padding: clamp(24px, 3vw, 36px);
}

.shop-product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(30, 39, 50, 0.07);
}

.shop-card-badges,
.shop-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.draft-badge {
    color: #8d2e22;
    background: var(--logout-bg);
}

.shop-empty-state {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    border: 1px dashed rgba(32, 92, 70, 0.28);
    border-radius: 8px;
    padding: 24px;
    background: var(--paper);
}

.shop-empty-state p {
    margin: 0;
    color: var(--muted);
}

.shop-empty-state .button {
    justify-self: start;
}

.shop-product-detail {
    width: min(1180px, calc(100% - 36px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(22px, 4vw, 48px);
    align-items: start;
    margin: clamp(34px, 6vw, 72px) auto clamp(48px, 7vw, 88px);
}

.shop-product-copy {
    display: grid;
    gap: 16px;
}

.shop-product-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 0.98;
}

.shop-product-excerpt {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.shop-product-description {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    color: var(--ink);
    line-height: 1.75;
}

.shop-purchase-card {
    position: sticky;
    top: 104px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 46px rgba(30, 39, 50, 0.12);
}

.shop-purchase-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.shop-purchase-body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.shop-price {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--leaf);
    font-size: 2rem;
    font-weight: 900;
}

.shop-price-discount {
    display: grid;
    gap: 4px;
}

.shop-old-price {
    color: var(--muted);
    font-size: 1.05rem;
    font-family: var(--font-body);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.shop-free-price {
    color: var(--leaf);
    line-height: 1;
}

.shop-price-discount small {
    width: fit-content;
    border: 1px solid rgba(133, 211, 158, 0.42);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--leaf);
    background: rgba(133, 211, 158, 0.12);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-purchase-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.shop-purchase-body .button,
.shop-purchase-body button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--leaf);
    cursor: pointer;
    font-weight: 850;
}

.shop-purchase-body .button.secondary,
.shop-payment-actions .button.secondary {
    color: var(--leaf);
    background: var(--leaf-soft);
}

.shop-purchase-body button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.shop-payment-actions {
    display: grid;
    gap: 10px;
}

.shop-free-form {
    margin: 0;
}

.shop-annual-free-note {
    border: 1px solid rgba(133, 211, 158, 0.28);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--leaf-soft);
}

.shop-payment-actions form {
    margin: 0;
}

.shop-payment-modal .payment-modal-panel {
    width: min(560px, 100%);
}

.shop-payment-modal .payment-choice-actions:has(form:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.shop-checkout-summary strong {
    line-height: 1.25;
}

.shop-access-card {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(32, 92, 70, 0.22);
    border-radius: 8px;
    padding: 14px;
    background: var(--leaf-soft);
}

.shop-access-card p {
    margin: 0;
}

.shop-product-form .recipe-status-panel {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.admin-form.shop-product-form label {
    grid-column: auto;
}

.admin-form.shop-product-form .full-field {
    grid-column: 1 / -1;
}

.admin-form.coupon-form label {
    grid-column: auto;
}

.admin-form.coupon-form .full-field {
    grid-column: 1 / -1;
}

.shop-admin-table {
    min-width: 780px;
}

.blog-admin-table {
    min-width: 720px;
}

.blog-article-form .rich-editor {
    grid-column: 1 / -1;
}

.blog-detail .blog-content-panel {
    max-width: none;
}

.blog-detail-hero h1 {
    max-width: 920px;
}

.contact-page {
    display: grid;
    gap: 34px;
}

.contact-hero {
    padding-bottom: 0;
}

.contact-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: 22px;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 28px);
    background: var(--paper);
    box-shadow: 0 18px 46px rgba(30, 39, 50, 0.1);
}

.contact-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.contact-card p {
    color: var(--muted);
    line-height: 1.65;
}

.contact-direct-card {
    align-self: start;
    display: grid;
    gap: 14px;
}

.contact-direct-card .button {
    justify-self: start;
}

.contact-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.contact-user-pill {
    border: 1px solid rgba(127, 212, 154, 0.42);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--leaf);
    background: var(--leaf-soft);
    font-size: 0.84rem;
    font-weight: 900;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--cream);
    font-weight: 850;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--input-bg);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

.contact-form button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--leaf);
    cursor: pointer;
    font-weight: 900;
}

.contact-form button:hover,
.contact-form button:focus-visible {
    background: var(--leaf-dark);
}

.contact-success-state {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(127, 212, 154, 0.38);
    border-radius: 8px;
    padding: 20px;
    background: var(--leaf-soft);
}

.contact-success-state strong {
    color: var(--leaf);
    font-size: 1.12rem;
}

.contact-success-state p {
    margin: 0;
}

.contact-success-state .button {
    justify-self: start;
}

.legal-page {
    width: min(980px, calc(100% - 36px));
    display: grid;
    gap: 18px;
    margin: 0 auto;
    padding: clamp(54px, 8vw, 94px) 0;
}

.legal-hero {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}

.legal-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 6vw, 4.6rem);
    line-height: 0.98;
}

.legal-hero p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.legal-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 28px);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.legal-card h2 {
    margin: 0;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.legal-card p {
    margin: 0;
    color: var(--ink);
    line-height: 1.75;
}

.legal-card a {
    color: var(--leaf);
    font-weight: 850;
}

.legal-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.legal-list div {
    display: grid;
    grid-template-columns: minmax(160px, 0.42fr) 1fr;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.legal-list div:first-child {
    border-top: 0;
}

.legal-list dt {
    color: var(--muted);
    font-weight: 850;
}

.legal-list dd {
    margin: 0;
    font-weight: 750;
}

.legal-warning {
    background: color-mix(in srgb, var(--gold-soft) 74%, var(--paper));
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 5vw, 64px);
    color: var(--footer-text);
    background: var(--footer-bg);
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--footer-link);
    font-weight: 750;
}

.footer div {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
}

@media (min-width: 1680px) and (min-height: 720px) {
    .sh-display-slot--site_side_rail_right {
        position: fixed;
        z-index: 8;
        top: 50%;
        right: max(24px, calc((100vw - 1180px) / 2 - 280px));
        width: 160px;
        display: grid !important;
        min-height: min(var(--slot-min-height, 520px), calc(100vh - 136px));
        max-height: calc(100vh - 136px);
        margin: 0;
        padding: 16px 10px;
        pointer-events: auto;
        transform: translateY(-50%);
    }
}

@media (max-width: 767px) {
    .sh-display-slot--mobile_sticky_banner {
        position: fixed;
        z-index: 72;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        width: auto;
        min-height: var(--slot-min-height, 96px);
        max-height: 32vh;
        margin: 0;
        display: grid !important;
        align-content: center;
        grid-template-columns: 1fr;
        padding: 12px 44px 12px 14px;
        border: 1px solid color-mix(in srgb, var(--leaf) 32%, var(--line));
        border-radius: 8px;
        background:
            linear-gradient(135deg, color-mix(in srgb, var(--leaf-soft) 70%, transparent), transparent 64%),
            var(--paper);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
        animation: mobileAdSlideIn 180ms ease-out;
    }

    .sh-display-slot--mobile_sticky_banner.is-dismissed {
        opacity: 0;
        pointer-events: none;
        transform: translateY(14px);
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .sh-display-slot--mobile_sticky_banner .sh-display-slot__label {
        font-size: 0.68rem;
    }

    .sh-display-slot--mobile_sticky_banner .sh-display-slot__placeholder strong {
        font-size: 0.9rem;
    }

    .sh-display-slot--mobile_sticky_banner .sh-display-slot__dismiss {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
        border-radius: 999px;
        color: var(--muted);
        background: color-mix(in srgb, var(--paper) 92%, transparent);
        cursor: pointer;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1;
    }

    .sh-display-slot--mobile_sticky_banner .sh-display-slot__dismiss:hover,
    .sh-display-slot--mobile_sticky_banner .sh-display-slot__dismiss:focus-visible {
        color: var(--ink);
        border-color: color-mix(in srgb, var(--leaf) 28%, var(--line));
    }
}

@keyframes mobileAdSlideIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        justify-content: stretch;
        margin-top: 2px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--menu-panel-bg);
        box-shadow: 0 18px 36px rgba(30, 39, 50, 0.12);
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .main-nav a,
    .theme-toggle {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        border-color: transparent;
        border-radius: 9px;
        background: transparent;
    }

    .membership-hero,
    .admin-layout,
    .member-page,
    .member-shell,
    .member-grid,
    .coaching-page,
    .recipe-detail-hero,
    .recipe-content,
    .shop-product-detail,
    .contact-layout,
    .shop-filter-bar,
    .shop-product-form .recipe-status-panel {
        grid-template-columns: 1fr;
    }

    .shop-purchase-card {
        position: static;
    }

    .account-hero {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .admin-app,
    .admin-two-column,
    .admin-three-column,
    .activity-analytics-grid,
    .admin-danger-card,
    .admin-stat-grid,
    .recipe-edit-form,
    .member-edit-form {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

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

@media (max-width: 680px) {
    .membership-hero {
        padding-top: 30px;
    }

    .header-left {
        gap: 6px;
    }

    .header-home-link,
    .header-admin-link,
    .header-login-link,
    .header-account-text {
        min-height: 34px;
        padding: 0 8px;
        font-size: 0.82rem;
    }

    .header-login-link,
    .header-account-text {
        max-width: 150px;
    }

    .activity-bar-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .activity-bar-value {
        grid-column: 2;
        text-align: left;
    }

    .pricing-grid,
    .article-grid,
    .admin-form,
    .gate-field,
    .recipe-stats,
    .auth-panels,
    .product-grid,
    .social-login,
    .password-rules,
    .signup-actions,
    .form-grid,
    .admin-form-subgrid,
    .split-heading,
    .member-sidebar,
    .subscription-choice-grid,
    .subscription-promotion-plans,
    .subscription-action-footer,
    .subscription-cancel-modal-actions,
    .purchase-item,
    .payment-choice-actions,
    .category-select-row,
    .recipe-media-fields,
    .image-upload-control,
    .recipe-status-panel,
    .recipe-access-panel,
    .contact-form-heading,
    .account-list div {
        grid-template-columns: 1fr;
    }

    .recipe-access-switch {
        justify-self: stretch;
    }

    .recipe-access-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gate-field button {
        width: 100%;
    }

    .membership-copy h1,
    .stream-heading h1,
    .admin-workspace h1,
    .admin-login h1 {
        font-size: 2.15rem;
    }

    .footer {
        flex-direction: column;
    }

    .footer div {
        justify-content: flex-start;
    }

    .legal-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admin-page-head,
    .admin-card-head,
    .comment-login-note,
    .feed-heading-row,
    .feed-controls-row,
    .admin-recipe-tools,
    .draft-preview-notice,
    .contact-form-heading {
        flex-direction: column;
    }

    .contact-form-heading {
        align-items: stretch;
    }

    .subscription-renewal-status {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-side-nav {
        grid-template-columns: 1fr;
    }

    .feed-heading-row,
    .feed-controls-row {
        align-items: stretch;
    }

    .home-feed-search {
        flex: 0 1 auto;
        max-width: none;
    }

    .home-feed-actions {
        flex: 0 1 auto;
        justify-content: flex-start;
    }

    .home-feed-actions .feed-toolbar {
        width: 100%;
    }

    .catalog-view-row {
        justify-content: stretch;
    }

    .home-feed-actions .layout-toggle,
    .catalog-view-row .layout-toggle {
        justify-self: stretch;
        width: 100%;
    }

    .recipe-collection-filter,
    .recipe-collection-login-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .recipe-collection-filter-head {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-collection-action {
        justify-content: stretch;
    }

    .collection-recipe-button,
    .collection-select-label select {
        width: 100%;
    }

    .collection-modal-actions,
    .collection-editor-actions {
        grid-template-columns: 1fr;
    }

    .feed-search-status {
        margin-top: -6px;
        text-align: left;
    }

    .admin-search-bar {
        grid-template-columns: 1fr;
    }

    .nutrition-tabs-admin-head {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-tag-toolbar-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .recipe-tag-bottom-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .recipe-tag-bottom-row .recipe-tag-search-box {
        flex: 0 1 auto;
    }

    .recipe-tag-bottom-row .layout-toggle {
        width: 100%;
        margin-left: 0;
    }

    .recipe-tag-search-box input,
    .recipe-tag-search-results {
        width: 100%;
    }

    .admin-recipe-tools,
    .draft-preview-notice {
        align-items: stretch;
    }

    .admin-recipe-tool-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .purchase-item-meta {
        min-width: 0;
        text-align: left;
    }

    .purchase-item-actions {
        justify-content: stretch;
    }

    .purchase-item-actions .button {
        width: 100%;
    }

    .subscription-action-footer {
        align-items: stretch;
        gap: 12px;
    }

    .subscription-action-summary,
    .subscription-action-summary strong,
    .subscription-selector .payment-setup-note {
        text-align: center;
        justify-content: center;
    }

    .subscribe-trigger {
        justify-self: stretch;
        width: 100%;
    }

    .subscription-login-prompt {
        grid-template-columns: 1fr;
    }

    .legacy-unsubscribe-notice {
        grid-template-columns: 1fr;
    }

    .legacy-unsubscribe-notice-actions {
        justify-content: stretch;
    }

    .legacy-unsubscribe-notice-actions .button {
        width: 100%;
    }

    .legacy-subscription-card {
        grid-template-columns: 1fr;
    }

    .subscription-login-prompt .button,
    .legacy-subscription-card .button {
        justify-self: stretch;
        width: 100%;
    }

    .admin-recipe-tools a,
    .draft-preview-actions,
    .draft-preview-actions form,
    .draft-preview-actions button,
    .draft-preview-actions a,
    .admin-form-actions,
    .admin-form-actions button,
    .admin-form-actions .button {
        width: 100%;
    }

    .unsaved-changes-actions {
        grid-template-columns: 1fr;
    }

    .rich-editor-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .rich-editor-preview-toggle {
        width: 100%;
    }

    .admin-form .rich-editor-toolbar button,
    .rich-editor-toolbar button {
        flex: 1 1 auto;
    }

    .layout-toggle {
        align-self: flex-end;
    }

    .article-grid.is-list-view .article-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .article-grid.is-list-view .article-media {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .article-grid.is-list-view .article-body {
        grid-column: 1;
        grid-row: 2;
    }
}
