.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-rich-copy a.recipe-inline-button,
.ingredients-copy a.recipe-inline-button,
.recipe-preparation-copy a.recipe-inline-button,
.recipe-notes-copy a.recipe-inline-button,
.rich-editor-surface a.recipe-inline-button,
.rich-editor-preview a.recipe-inline-button {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    border: 1px solid color-mix(in srgb, var(--leaf) 42%, var(--line));
    border-radius: 8px;
    padding: 0 16px;
    color: var(--paper);
    background: var(--leaf);
    font-weight: 950;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(32, 92, 70, 0.18);
}

.recipe-rich-copy a.recipe-inline-button:hover,
.ingredients-copy a.recipe-inline-button:hover,
.recipe-preparation-copy a.recipe-inline-button:hover,
.recipe-notes-copy a.recipe-inline-button:hover,
.rich-editor-surface a.recipe-inline-button:hover,
.rich-editor-preview a.recipe-inline-button:hover,
.recipe-rich-copy a.recipe-inline-button:focus-visible,
.ingredients-copy a.recipe-inline-button:focus-visible,
.recipe-preparation-copy a.recipe-inline-button:focus-visible,
.recipe-notes-copy a.recipe-inline-button:focus-visible,
.rich-editor-surface a.recipe-inline-button:focus-visible,
.rich-editor-preview a.recipe-inline-button:focus-visible {
    color: var(--paper);
    background: color-mix(in srgb, var(--leaf) 86%, var(--ink));
    text-decoration: none;
}

.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,
.comment-reply-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.comment-form textarea,
.comment-edit-form textarea,
.comment-reply-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,
.comment-reply-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-thread {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.comment-children {
    display: grid;
    gap: 10px;
    margin-left: clamp(14px, calc(18px + var(--comment-depth, 0) * 6px), 56px);
    padding-left: 14px;
    border-left: 2px solid color-mix(in srgb, var(--leaf) 28%, var(--line));
}

.comment-children .comment-item {
    box-shadow: none;
}

.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-author {
    display: inline-flex;
    width: fit-content;
    align-items: center;
}

.comment-author.is-staff-author {
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid #b87816;
    border-radius: 999px;
    color: #5e3500;
    background: #fff1bd;
    box-shadow: 0 0 0 1px rgba(120, 72, 0, 0.08) inset;
}

:root[data-theme="night"] .comment-author.is-staff-author {
    border-color: #d7a64a;
    color: #f8e5ad;
    background: rgba(137, 92, 24, 0.22);
    box-shadow: 0 0 0 1px rgba(255, 225, 143, 0.16) inset;
}

.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-reply-box {
    display: block;
}

.comment-reply-box[open] {
    flex-basis: 100%;
    width: 100%;
}

.comment-reply-box summary {
    width: fit-content;
    list-style: none;
}

.comment-reply-box summary::-webkit-details-marker {
    display: none;
}

.comment-reply-form {
    display: grid;
    gap: 10px;
    width: min(560px, 100%);
    margin-top: 10px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--leaf) 20%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--leaf-soft) 28%, var(--paper));
}

.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,
