/* NomNotes shared design tokens and global styles */
:root {
    --nomnotes-green: #aacf38;
    --nomnotes-orange: #f9a200;
    --nomnotes-text: #333333;
    --nomnotes-muted: #6f6f6f;
    --nomnotes-bg-top: #f8f6f0;
    --nomnotes-bg-bottom: #ebe6dc;
}

@font-face {
    font-family: "ChocoCooky";
    src: url("/fonts/Choco%20cooky%20Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--nomnotes-bg-top) 0%, var(--nomnotes-bg-bottom) 100%);
    color: var(--nomnotes-text);
}

.site-header {
    background: var(--nomnotes-green);
    color: #ffffff;
}

.site-header a {
    color: #ffffff;
    text-decoration: none;
}

.site-header a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.site-footer {
    background: var(--nomnotes-green);
    color: #ffffff;
    text-align: center;
}

/* Reusable primitives for upcoming app-like screens */
.nomnotes-page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.nomnotes-page--narrow {
    max-width: 560px;
}

.nomnotes-page--medium {
    max-width: 860px;
}

.nomnotes-title {
    color: var(--nomnotes-green);
    font-weight: 700;
}

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

.nomnotes-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.nomnotes-input {
    border: 1px solid #d9d9de;
    border-radius: 14px;
    background: #efeff4;
    color: var(--nomnotes-text);
}

.nomnotes-button-primary {
    background: var(--nomnotes-orange);
    border-color: var(--nomnotes-orange);
    color: #ffffff;
    border-radius: 14px;
    font-weight: 600;
}

.nomnotes-button-primary:hover,
.nomnotes-button-primary:focus {
    background: #e39300;
    border-color: #e39300;
    color: #ffffff;
}

.nomnotes-mobile-body {
    --landing-line: rgba(96, 188, 232, 0.22);
    --landing-paper: #fffef9;
    background-color: var(--landing-paper);
    background-image: repeating-linear-gradient(
        transparent,
        transparent 1.5rem,
        var(--landing-line) 1.5rem,
        var(--landing-line) calc(1.5rem + 1px)
    );
    color: #1f1f1f;
}

.nomnotes-mobile-main {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.2rem;
}

/* Recipes / recipe detail / edit: tab bar sits near the top; keep padding for auth & launch pages */
.nomnotes-mobile-main:has(.recipes-top-nav) {
    padding-top: 0.35rem;
}

.nomnotes-mobile-logo {
    width: 150px;
    max-width: 42vw;
    display: block;
    margin: 0 auto;
}

.nomnotes-mobile-brand {
    width: min(280px, 80vw);
    display: block;
    margin: 0.35rem auto 0;
}

.nomnotes-subtitle {
    color: #8f8f95;
    text-align: center;
    margin-top: 0.65rem;
    font-size: 1.05rem;
}

.nomnotes-status {
    color: #2ea966;
    font-weight: 500;
    text-align: center;
    margin: 1.2rem 0 1.6rem;
}

.nomnotes-status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2ea966;
    color: #ffffff;
    font-size: 12px;
    margin-right: 0.35rem;
}

.nomnotes-status-dot--pending {
    background: #b8b8c0;
    font-size: 10px;
    line-height: 1;
}

.nomnotes-status-dot--error {
    background: #e53935;
    font-weight: 700;
}

.nomnotes-status--error,
.nomnotes-status--error .nomnotes-status-text {
    color: #c62828;
}

/* Public sign-in (notebook layout, responsive width) */
.nomnotes-login-page-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.nomnotes-login-page {
    width: 100%;
}

.nomnotes-login-inner {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

.nomnotes-login-app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: #f99600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(249, 150, 0, 0.35);
}

.nomnotes-login-app-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.nomnotes-login-brand-img {
    width: min(300px, 85vw) !important;
    max-width: 100%;
}

.nomnotes-login-form {
    margin-top: 0.25rem;
}

.nomnotes-login-password-wrap {
    flex-wrap: nowrap;
    align-items: stretch;
}

.nomnotes-login-password-wrap .nomnotes-login-password-input {
    border-radius: 14px 0 0 14px !important;
    border-right: 0;
    min-height: 58px;
}

.nomnotes-login-toggle-pw {
    border: 1px solid #d9d9de;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: #efeff4;
    color: #8f8f95;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nomnotes-login-toggle-pw:hover,
.nomnotes-login-toggle-pw:focus {
    background: #e8e8ed;
    color: #6f6f75;
}

.nomnotes-login-alert {
    border-radius: 14px;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .nomnotes-login-inner {
        max-width: 480px;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .nomnotes-login-inner {
        max-width: 520px;
    }

    .nomnotes-login-page-main {
        padding-top: 2.25rem;
    }
}

@media (min-width: 1200px) {
    .nomnotes-login-inner {
        max-width: 560px;
    }
}

.nomnotes-auth-form label,
.nomnotes-section-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.nomnotes-auth-form .field-label,
.nomnotes-section-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.nomnotes-field-label {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.nomnotes-auth-form .input-group-text {
    border: 1px solid #d7d7dc;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: #efeff4;
    color: #8f8f95;
}

.nomnotes-auth-form .nomnotes-input {
    min-height: 58px;
    font-size: 1.05rem;
}

.nomnotes-auth-form .nomnotes-input::placeholder {
    color: #c0c0c6;
}

.nomnotes-auth-form .input-group .nomnotes-input {
    border-right: 0;
    border-radius: 14px 0 0 14px;
}

.nomnotes-link-accent {
    color: #d59624;
    text-decoration: none;
    font-weight: 500;
}

.nomnotes-link-accent:hover {
    color: #be841b;
}

.nomnotes-button-primary {
    min-height: 56px;
    font-size: 1.08rem;
}

.nomnotes-separator {
    display: flex;
    align-items: center;
    color: #9a9aa0;
    margin: 1.5rem 0 1rem;
}

.nomnotes-separator::before,
.nomnotes-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dfdfe3;
}

.nomnotes-separator span {
    padding: 0 0.8rem;
}

.nomnotes-panel {
    background: #fbfbfb;
    border-radius: 34px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    padding: 1.1rem 1rem 1.6rem;
}

.nomnotes-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nomnotes-chip {
    border: 0;
    background: #f1f1f4;
    border-radius: 18px;
    padding: 0.35rem 0.8rem;
    color: #2d2d31;
    font-size: 1.05rem;
}

.nomnotes-create-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--nomnotes-green);
    margin: 0.6rem 0 0.35rem;
    text-align: center;
}

.nomnotes-copy {
    color: #87878e;
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.nomnotes-section-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.6rem 0 0.6rem;
}

.nomnotes-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #8a8a8f;
    font-size: 1rem;
}

.nomnotes-checkbox-row input {
    width: 24px;
    height: 24px;
}

.recipes-page {
    padding-top: 0.2rem;
}

.recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.recipes-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--nomnotes-green);
    margin: 0;
}

.recipes-add {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: #f0f0f0;
    font-size: 2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.recipe-list {
    margin-top: 0.7rem;
}

.recipe-item {
    display: grid;
    grid-template-columns: 104px 1fr 24px;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e2e2e5;
    align-items: start;
    position: relative;
}

.recipe-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Allow title column to shrink and wrap inside CSS grid (default min-width: auto prevents wrap). */
.recipe-item-link > *:nth-child(2) {
    min-width: 0;
}

.recipe-item-link:hover,
.recipe-item-link:focus {
    color: inherit;
}

.recipe-item-link--disabled {
    pointer-events: none;
}

.recipe-thumb {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
}

.recipe-thumb-wrap {
    position: relative;
    width: 104px;
    height: 104px;
}

.recipe-thumb--placeholder {
    background: #d9ecff;
}

.recipe-name {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.1;
}

/* Wrap constrains line breaks; .recipe-name-pad width set by recipe-name-pad.js */
.recipe-name-pad-wrap {
    display: block;
    max-width: 100%;
}

.recipe-name-pad {
    display: inline-block;
    max-width: 100%;
    padding: 0.1em 0.35em 0.05em;
    border-radius: 6px;
    box-sizing: border-box;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.recipe-thumb-avatar {
    position: absolute;
    right: -6px;
    top: 88px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.recipe-thumb-avatar--placeholder {
    background: #d9ecff;
}

.recipe-creator-name {
    font-size: 0.84rem;
    color: #6f6f75;
    font-weight: 600;
}

.recipe-flags {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: absolute;
    top: 0.6rem;
    right: 2rem;
    margin: 0;
    z-index: 1;
}

.recipe-flag-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.recipe-desc {
    color: #6f6f75;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.recipe-meta {
    color: #7d7d83;
    font-size: 0.95rem;
}

.recipe-rating {
    color: #f2b000;
    font-size: 0.95rem;
}

.recipe-arrow {
    color: #b5b5bc;
    font-size: 1.45rem;
    text-align: right;
    align-self: center;
}

.recipes-load-more-wrap {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.recipes-load-more {
    display: inline-block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d5d5da;
    color: #2e2e34;
    border-radius: 14px;
    min-height: 48px;
    padding: 0.7rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
}

.recipes-load-more:hover,
.recipes-load-more:focus {
    color: #2e2e34;
    background: #f5f5f8;
}

.recipes-top-nav,
.recipes-bottom-nav {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 20;
    margin-top: 0;
    margin-bottom: 1.1rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.22rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 22px;
    padding: 0.28rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.recipes-top-nav a,
.recipes-bottom-nav a {
    text-decoration: none;
    color: #2a2a2f;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
}

.recipes-top-nav a.active,
.recipes-bottom-nav a.active {
    color: #1f6fd9;
}

.recipes-top-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.2rem 0.15rem;
    border-radius: 12px;
    min-height: 2.55rem;
}

.recipes-top-nav a .recipes-nav-icon {
    width: 19px;
    height: 19px;
    display: block;
}

.recipes-top-nav a.active {
    background: rgba(31, 111, 217, 0.12);
}

.recipe-detail-page {
    padding-top: 0.2rem;
    padding-bottom: 1rem;
}

.recipe-detail-topbar {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.recipe-detail-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.recipe-detail-edit-link {
    width: auto;
    min-width: 42px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.recipe-detail-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2a2a2f;
    font-size: 1.4rem;
}

.recipe-detail-handwritten {
    text-align: center;
    color: #83ad2f;
    font-size: 2rem;
    line-height: 1;
}

.recipe-detail-card {
    background: #ffffff;
    border: 1px solid #e2e2e5;
    border-radius: 24px;
    padding: 0.95rem 0.95rem 0.75rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    margin-top: 0.35rem;
}

.recipe-detail-hero {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
    background: #e5e7ec;
}

.recipe-detail-hero--placeholder {
    background: #d9ecff;
}

.recipe-detail-title {
    margin-top: 0.9rem;
    margin-bottom: 0.15rem;
    font-size: 2.2rem;
    line-height: 1.07;
}

.recipe-detail-added-by {
    color: #8b8b91;
    margin-bottom: 0.35rem;
}

.recipe-detail-rating-comments-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
}

.recipe-detail-rating-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0;
    min-width: 0;
}

.recipe-detail-rating-comments-row .recipe-detail-rating-row {
    flex: 1 1 auto;
    min-width: min(12rem, 100%);
}

.recipe-detail-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 0;
    background: transparent;
    color: #2282da;
    font-size: clamp(0.88rem, 2.2vw, 0.98rem);
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.recipe-detail-comments-link:hover {
    background: rgba(34, 130, 218, 0.08);
    color: #1a6fc4;
}

.recipe-detail-comments-link:focus-visible {
    outline: 2px solid #2282da;
    outline-offset: 2px;
}

.recipe-detail-comments-link-icon {
    flex-shrink: 0;
    opacity: 0.95;
}

.recipe-detail-stars {
    color: #f2b000;
    font-size: 1.6rem;
    line-height: 1;
}

.recipe-detail-rating-text {
    color: #515158;
    font-weight: 600;
}

.recipe-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.recipe-detail-meta-grid > div {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.recipe-detail-meta-label {
    color: #8b8b91;
    font-size: 0.84rem;
    font-weight: 600;
}

.recipe-detail-section-box {
    background: #ececf1;
    border-radius: 16px;
    padding: 0.9rem 0.95rem;
    margin-bottom: 0.7rem;
}

/* White gutters between Cuisine / Servings / Usage — same spacing idea as .recipe-detail-two-col */
.recipe-detail-section-box--usage-strip {
    background: #ffffff;
    border: 1px solid #e2e2e5;
}

.recipe-detail-two-col {
    display: block;
}

.recipe-detail-section-box h2 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.recipe-detail-nutrition-trigger {
    width: 100%;
    border: 1px solid #d5d5da;
    background: #fbfbfb;
    border-radius: 14px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: #2a2a2f;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.recipe-detail-nutrition-trigger:hover {
    background: #f3f3f5;
}

.recipe-detail-toggle-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.recipe-detail-toggle-cell {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
    padding: 0;
}

/* Stylish toggles: full-width pills with icon tile + label */
.recipe-detail-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
    border: 1px solid #e0e1e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.recipe-detail-toggle:hover {
    border-color: #cfd0d8;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.recipe-detail-toggle:has(.recipe-detail-toggle-input:focus-visible) {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.recipe-detail-toggle:has(.recipe-detail-toggle-input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.recipe-detail-toggle-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.recipe-detail-toggle-face {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    pointer-events: none;
    transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.recipe-detail-toggle-text {
    position: relative;
    z-index: 1;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2a2a2f;
    pointer-events: none;
    transition: color 0.18s ease;
}

/* Bookmark — blue, matches bookmark ribbon icon */
.recipe-detail-toggle-face--bookmark {
    background: #eef5ff url("/images/bookmarkIconBlue.svg") center / 76% no-repeat;
    border: 1.5px solid #b8d4f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.recipe-detail-toggle--bookmark .recipe-detail-toggle-input:not(:checked) + .recipe-detail-toggle-face--bookmark {
    opacity: 0.72;
    filter: saturate(0.65) brightness(1.05);
}

.recipe-detail-toggle--bookmark .recipe-detail-toggle-input:checked + .recipe-detail-toggle-face--bookmark {
    opacity: 1;
    filter: none;
    border-color: #2e91ff;
    background-color: #d8eaff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(46, 145, 255, 0.22);
}

.recipe-detail-toggle--bookmark .recipe-detail-toggle-input:checked ~ .recipe-detail-toggle-text {
    color: #0b5cbf;
}

/* Favorite — red / heart (#FF3B30 from favorite1.svg) */
.recipe-detail-toggle-face--favorite {
    background: #fff5f4 url("/images/favorite1.svg") center / 76% no-repeat;
    border: 1.5px solid #f5b4b0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.recipe-detail-toggle--favorite .recipe-detail-toggle-input:not(:checked) + .recipe-detail-toggle-face--favorite {
    opacity: 0.7;
    filter: saturate(0.55) brightness(1.08);
}

.recipe-detail-toggle--favorite .recipe-detail-toggle-input:checked + .recipe-detail-toggle-face--favorite {
    opacity: 1;
    filter: none;
    border-color: #ff3b30;
    background-color: #ffe8e6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(255, 59, 48, 0.28);
}

.recipe-detail-toggle--favorite .recipe-detail-toggle-input:checked ~ .recipe-detail-toggle-text {
    color: #c41e1e;
}

.recipe-detail-toggle:has(.recipe-detail-toggle-input:active) .recipe-detail-toggle-face {
    transform: scale(0.94);
}

.recipe-detail-section-box:has(.recipe-detail-toggle-pair) h2 {
    margin-bottom: 0.35rem;
}

.recipe-detail-actions-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.recipe-detail-actions-col h2 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.recipe-detail-classification {
    margin: 0.25rem 0 0.5rem;
}

.recipe-detail-classification-block {
    margin-bottom: 0.85rem;
}

.recipe-detail-classification-block:last-child {
    margin-bottom: 0;
}

.recipe-detail-tags-cuisines-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    align-items: start;
    margin-bottom: 0.85rem;
}

/* Shorter Categories / Tags band on recipe detail */
.recipe-detail-section-box.recipe-detail-classification {
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.5rem;
}

.recipe-detail-section-box.recipe-detail-classification .recipe-detail-tags-cuisines-row {
    gap: 0.4rem 0.75rem;
    margin-bottom: 0;
}

.recipe-detail-section-box.recipe-detail-classification h2.h6 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.recipe-detail-section-box.recipe-detail-classification .recipe-detail-chip-wrap {
    gap: 0.3rem;
    margin-bottom: 0;
}

.recipe-detail-section-box.recipe-detail-classification .recipe-detail-chip {
    font-size: 0.86rem;
    padding: 0.14rem 0.5rem;
}

.recipe-detail-tags-cuisines-row .recipe-detail-classification-block {
    margin-bottom: 0;
}

.recipe-detail-tags-cuisines-row > .recipe-detail-classification-block:only-child {
    grid-column: 1 / -1;
}

@media (max-width: 575px) {
    .recipe-detail-tags-cuisines-row {
        grid-template-columns: 1fr;
    }

    .recipe-detail-tags-cuisines-row > .recipe-detail-classification-block:only-child {
        grid-column: auto;
    }
}

.recipe-detail-section-title--compact {
    font-size: 1.35rem;
    margin: 0 0 0.45rem;
}

/* Nutrition modal: card layout; tuned for web (centered dialog, readable width) */
.recipe-detail-nutrition-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.recipe-detail-nutrition-modal .modal-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.recipe-detail-nutrition-modal-dialog {
    width: 100%;
    max-width: min(32rem, calc(100vw - 2rem));
    margin: 0.75rem auto;
}

@media (min-width: 576px) {
    .recipe-detail-nutrition-modal-dialog {
        max-width: min(36rem, calc(100vw - 2.5rem));
    }
}

.recipe-detail-nutrition-modal-content {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.recipe-detail-nutrition-modal-header {
    border-bottom: 1px solid #e8e8ec;
    padding: 1rem 1.1rem 0.85rem;
    align-items: center;
}

.recipe-detail-nutrition-modal-title {
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    font-weight: 700;
    color: #1a1a1f;
    margin: 0;
}

.recipe-detail-nutrition-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 50%;
    background: #e8e8ec;
    opacity: 1;
    margin: 0;
    flex-shrink: 0;
    border: 0;
    line-height: 1;
    font-size: 1.35rem;
    color: #3a3a40;
}

.recipe-detail-nutrition-modal-close:hover {
    background: #dcdce0;
    opacity: 1;
}

.recipe-detail-nutrition-modal-body {
    padding: 1rem 1.15rem 1.2rem;
}

@media (min-width: 768px) {
    .recipe-detail-nutrition-modal-header {
        padding: 1.15rem 1.4rem 0.95rem;
    }

    .recipe-detail-nutrition-modal-body {
        padding: 1.15rem 1.4rem 1.45rem;
    }

    .recipe-detail-nutrition-modal-title {
        font-size: 1.2rem;
    }
}

.recipe-detail-nutrition-serving {
    margin: 0 0 1rem;
    font-size: clamp(0.82rem, 2vw, 0.92rem);
    color: #8b8b91;
}

.recipe-detail-nutrition-calories-block {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid #e8e8ec;
}

.recipe-detail-nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem 1rem;
    padding: 0.38rem 0;
}

.recipe-detail-nutrition-row--emphasis .recipe-detail-nutrition-label {
    font-weight: 700;
    color: #1a1a1f;
    font-size: clamp(1rem, 2.5vw, 1.08rem);
}

.recipe-detail-nutrition-row--emphasis .recipe-detail-nutrition-num {
    font-weight: 700;
    font-size: clamp(1.05rem, 2.6vw, 1.15rem);
}

.recipe-detail-nutrition-label {
    margin: 0;
    font-weight: 500;
    color: #6f6f75;
    font-size: clamp(0.92rem, 2.2vw, 1rem);
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-detail-nutrition-value-pair {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

.recipe-detail-nutrition-num {
    font-weight: 600;
    color: #1a1a1f;
}

.recipe-detail-nutrition-unit {
    margin-left: 0.28rem;
    font-weight: 500;
    color: #9a9aa0;
    font-size: 0.92em;
}

.recipe-detail-nutrition-section {
    margin-top: 0.5rem;
    padding-top: 0.35rem;
}

.recipe-detail-nutrition-section + .recipe-detail-nutrition-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8ec;
}

.recipe-detail-nutrition-section-heading {
    margin: 0 0 0.5rem;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #7d7d83;
}

.recipe-detail-nutrition-macros,
.recipe-detail-nutrition-micros {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

@media (min-width: 640px) {
    .recipe-detail-nutrition-macros {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: clamp(1rem, 4vw, 2rem);
        row-gap: 0.1rem;
        align-items: start;
    }

    .recipe-detail-nutrition-macros .recipe-detail-nutrition-row {
        padding: 0.42rem 0;
    }

    .recipe-detail-nutrition-micros {
        max-width: 100%;
    }
}

@media (min-width: 900px) {
    .recipe-detail-nutrition-modal-dialog {
        max-width: min(40rem, calc(100vw - 2.5rem));
    }
}

.recipe-detail-nutrition-footnote {
    margin: 1rem 0 0;
    font-size: clamp(0.75rem, 1.8vw, 0.82rem);
    color: #9a9aa0;
    margin-bottom: 0;
}

.recipe-detail-nutrition-empty {
    font-size: 0.95rem;
}

.recipe-detail-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.22rem 0;
    color: #2a2a2f;
}

.recipe-detail-link-row {
    color: #2282da;
    font-weight: 500;
}

.recipe-detail-section-title {
    margin: 0.9rem 0 0.45rem;
    font-size: 2rem;
}

.recipe-detail-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.recipe-detail-chip {
    font-size: 0.92rem;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    background: #dff0ff;
    color: #4e7ea7;
}

.recipe-detail-chip--warm {
    background: #f8ecd8;
    color: #a67d2e;
}

/* Compound selector so this always wins over `.recipe-detail-chip`; explicit background-color + inline-block for a visible pill */
.recipe-detail-chip.recipe-detail-chip--cuisine {
    display: inline-block;
    background-color: #e9d5ff;
    color: #5b21b6;
    line-height: 1.35;
}

.recipe-detail-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0;
    align-items: stretch;
}

@media (max-width: 575px) {
    .recipe-detail-usage-grid {
        gap: 0.5rem;
    }
}

.recipe-detail-usage-card {
    background: #ececf1;
    border-radius: 12px;
    padding: 0.55rem 0.5rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
}

.recipe-detail-usage-card--cuisine {
    padding: 0.55rem 0.5rem;
}

.recipe-detail-usage-card--cuisine .recipe-detail-usage-cuisine-block {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
}

.recipe-detail-usage-card--cuisine .recipe-detail-chip-wrap--usage-row {
    margin-top: auto;
}

.recipe-detail-usage-cuisine-block {
    margin-bottom: 0;
}

.recipe-detail-usage-cuisine-block h2.h6 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.recipe-detail-chip-wrap--usage-row {
    gap: 0.35rem;
    margin-bottom: 0;
}

.recipe-detail-usage-label {
    color: #9a9aa0;
    font-size: 0.9rem;
}

.recipe-detail-usage-heading-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.recipe-detail-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;
}

.recipe-detail-desired-servings-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin-top: auto;
}

.recipe-detail-usage-label--desired {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.recipe-detail-desired-servings-input {
    flex: 0 1 4rem;
    width: 4rem;
    min-width: 3rem;
    max-width: 5rem;
    border-radius: 10px !important;
    border: 1px solid #d5d5da !important;
    padding: 0.2rem 0.35rem !important;
    font-size: 0.86rem !important;
    font-weight: 600;
    text-align: center;
    background: #ffffff !important;
    min-height: 30px !important;
    height: 30px !important;
    line-height: 1.2 !important;
}

.recipe-detail-scale-ingredients-btn,
.recipe-detail-made-it {
    border-radius: 10px;
    border: 0;
    background: #2282da;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    height: 30px;
    min-height: 30px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.recipe-detail-scale-ingredients-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.65rem;
}

.recipe-detail-made-it {
    margin-top: auto;
    width: 100%;
    padding: 0 0.65rem;
}

.recipe-detail-scale-ingredients-btn:hover:not(:disabled),
.recipe-detail-made-it:hover:not(:disabled):not(.busy) {
    background: #1a6fc4;
}

.recipe-detail-scale-ingredients-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recipe-detail-made-it.busy {
    opacity: 0.65;
    cursor: wait;
}

.recipe-detail-interactive-feedback {
    font-size: 0.88rem;
    color: #b83232;
    margin: 0.5rem 0 0;
    min-height: 0;
}

/* Recipe comments modal */
.recipe-detail-comments-modal .modal-dialog.recipe-detail-comments-modal-dialog {
    /* Centered modals default to align-items: center, which blocks height — content must fill for inner scroll. */
    align-items: stretch;
    display: flex;
    flex-direction: column;
}

.recipe-detail-comments-modal-dialog {
    width: 100%;
    max-width: min(36rem, calc(100vw - 1.5rem));
    margin: 0.75rem auto;
    height: calc(100vh - 1.5rem);
    max-height: 900px;
}

.recipe-detail-comments-modal-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    background: #f2f2f2;
}

.recipe-detail-comments-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem 0.65rem;
    background: #f2f2f2;
    border-bottom: 1px solid #e4e4e8;
    flex-shrink: 0;
}

.recipe-detail-comments-done {
    justify-self: start;
    border: 1px solid #d8d8de;
    background: #ffffff;
    color: #2a2a2f;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.recipe-detail-comments-done:hover {
    background: #f4f4f6;
}

.recipe-detail-comments-title {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    color: #83ad2f;
    text-align: center;
    line-height: 1.1;
}

.recipe-detail-comments-header-spacer {
    justify-self: end;
    width: 3.5rem;
}

.recipe-detail-comments-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.75rem 0.85rem 0.5rem;
    background: #f2f2f2;
}

.recipe-detail-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.recipe-detail-comment-card {
    background: #ebebed;
    border-radius: 14px;
    padding: 0.75rem 0.8rem 0.85rem;
    border: 1px solid #e0e0e5;
}

.recipe-detail-comment-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.recipe-detail-comment-avatar-wrap {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e2e8;
}

.recipe-detail-comment-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-detail-comment-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #c8e06c, #83ad2f);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-detail-comment-meta {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.35rem;
}

.recipe-detail-comment-user {
    font-weight: 700;
    color: #1a1a1f;
}

.recipe-detail-comment-time {
    color: #8b8b91;
    font-weight: 500;
}

.recipe-detail-comment-delete {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #9a9aa0;
    padding: 0.2rem;
    border-radius: 8px;
    cursor: pointer;
    line-height: 0;
}

.recipe-detail-comment-delete:hover {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
}

.recipe-detail-comment-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #2a2a2f;
    word-wrap: break-word;
}

.recipe-detail-comments-empty,
.recipe-detail-comments-loading {
    text-align: center;
    font-size: 0.95rem;
    padding: 0.75rem 0;
    margin: 0;
}

.recipe-detail-comments-error {
    color: #b83232;
    font-size: 0.88rem;
    margin: 0.35rem 0 0;
    min-height: 0;
}

.recipe-detail-comments-footer {
    flex-shrink: 0;
    padding: 0.65rem 0.75rem 0.85rem;
    background: #f2f2f2;
    border-top: 1px solid #e4e4e8;
}

.recipe-detail-comments-input-row {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
}

.recipe-detail-comment-input {
    flex: 1 1 auto;
    border-radius: 999px !important;
    border: 1px solid #d5d5da !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.98rem !important;
    background: #ffffff !important;
    min-height: 44px;
}

.recipe-detail-comment-send {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 0;
    background: #2282da;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.recipe-detail-comment-send:hover:not(:disabled) {
    background: #1a6fc4;
}

.recipe-detail-comment-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.recipe-detail-comment-send svg {
    display: block;
    stroke: currentColor;
}

.recipe-detail-comment-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.35rem;
    align-content: flex-start;
    margin-top: 0.55rem;
    padding: 0.45rem 0.35rem;
    /* ~1.5 rows: row (2.25rem) + row-gap + half row + vertical padding — emoji button size unchanged */
    max-height: calc(2.25rem + 0.3rem + 1.125rem + 0.9rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    background: #f0f0f2;
    scrollbar-width: thin;
}

.recipe-detail-emoji-btn {
    border: 0;
    background: #ffffff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.recipe-detail-emoji-btn:hover {
    background: #eaeaea;
}

@media (max-width: 575px) {
    .recipe-detail-comments-modal .recipe-detail-comments-modal-dialog {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
    }

    .recipe-detail-comments-modal .recipe-detail-comments-modal-content {
        min-height: 100vh;
        border-radius: 0;
    }
}

@media (min-width: 992px) {
    .recipe-detail-comments-modal-dialog {
        max-width: min(40rem, calc(100vw - 2.5rem));
    }
}

body:has(.recipe-detail-comments-modal.show) .modal-backdrop.show {
    backdrop-filter: blur(4px);
}

.recipe-detail-ingredients {
    margin: 0 0 0.65rem 0;
    padding-left: 1.2rem;
}

.recipe-detail-ingredients li {
    margin-bottom: 0.32rem;
    font-size: 1.1rem;
}

.recipe-detail-ingredients li.recipe-detail-ingredient-heading {
    list-style: none;
    margin-left: -1.2rem;
    font-weight: 700;
}

.recipe-detail-body {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.recipe-detail-notes {
    color: #8b8b91;
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.recipe-detail-bottom-nav {
    position: sticky;
    position: -webkit-sticky;
    bottom: 0;
    top: auto;
    margin-top: 1rem;
}

.nomnotes-handwritten {
    font-family: "ChocoCooky", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.launch-wrap {
    min-height: calc(100vh - 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.launch-content {
    width: min(650px, 92vw);
    text-align: center;
}

.launch-logo {
    width: min(280px, 44vw);
    display: block;
    margin: 0 auto 1rem;
}

.launch-list {
    list-style: none;
    margin: 1.2rem auto 1.7rem;
    padding: 0;
    text-align: left;
    max-width: 500px;
}

.launch-list li {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    margin-bottom: 0.55rem;
    height:70px;
}

.launch-icon {
    width: 55px;
    text-align: center;
    color: #a6e638;
    font-size: 1.55rem;
}

.launch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.launch-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    font-size: 1.25rem;
    line-height: 1.1;
}

.nomnotes-button-secondary {
    background: #ffffff;
    border: 1px solid #d5d5da;
    color: #2e2e34;
    border-radius: 14px;
    min-height: 56px;
    font-size: 1.08rem;
    font-weight: 600;
}

.nomnotes-button-secondary:hover,
.nomnotes-button-secondary:focus {
    color: #2e2e34;
    background: #f5f5f8;
}

.nomnotes-button-signup {
    background: #a6e638;
    border-color: #a6e638;
    color: #1f2a10;
    border-radius: 14px;
}

.nomnotes-button-signup:hover,
.nomnotes-button-signup:focus {
    background: #98d231;
    border-color: #98d231;
    color: #1f2a10;
}

@media (min-width: 768px) {
    .nomnotes-mobile-main {
        padding: 2rem 1.5rem 2.5rem;
    }

    .nomnotes-mobile-main:has(.recipes-top-nav) {
        padding-top: 0.5rem;
    }

    .nomnotes-panel {
        padding: 1.6rem 1.5rem 1.9rem;
    }

    .launch-actions {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .recipe-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: row;
        gap: 0.9rem 1.2rem;
    }

    .recipe-item {
        border: 1px solid #e2e2e5;
        border-radius: 16px;
        padding: 0.9rem;
        background: rgba(255, 255, 255, 0.72);
    }

    .recipes-top-nav,
    .recipes-bottom-nav {
        max-width: 720px;
        margin: 0 auto;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 575px) {
    .nomnotes-auth-form .nomnotes-input {
        min-height: 52px;
    }

    .recipe-name {
        font-size: 1.28rem;
    }

    .nomnotes-field-label,
    .nomnotes-section-heading {
        font-size: 1rem;
    }

    .recipe-item {
        grid-template-columns: 89px 1fr 20px;
        gap: 0.65rem;
    }

    .recipe-thumb {
        width: 89px;
        height: 89px;
    }

    .recipe-thumb-wrap {
        width: 89px;
        height: 89px;
    }

    .recipe-thumb-avatar {
        width: 43px;
        height: 43px;
        right: -5px;
        top: 78px;
    }

    .recipe-detail-title {
        font-size: 1.9rem;
    }

    .recipe-detail-section-title {
        font-size: 1.9rem;
    }

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

    .recipe-detail-toggle-pair,
    .recipe-detail-actions-pair {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .recipe-detail-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem;
        align-items: start;
    }

    .recipe-detail-two-col .recipe-detail-section-box {
        margin-bottom: 0;
    }
}

@media (max-width: 420px) {
    .launch-actions {
        grid-template-columns: 1fr;
    }
}

/* ---- Recipe edit (add / edit, responsive web form) ---- */

.recipe-edit-shell {
    background-color: #f4f4f4;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: 1.5rem;
    min-height: 100%;
}

.recipe-edit-page {
    padding-bottom: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.recipe-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding-top: 0.15rem;
}

.recipe-edit-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    color: var(--nomnotes-green);
    margin: 0;
    min-width: 8rem;
    font-weight: 400;
}

.recipe-edit-back,
.recipe-edit-save {
    border-radius: 8px;
    border: 0;
    padding: 0.4rem 0.65rem;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: #2a2a2f;
    text-decoration: none;
    cursor: pointer;
}

.recipe-edit-save:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.recipe-edit-back:hover,
.recipe-edit-save:hover:not(:disabled) {
    opacity: 0.82;
}

.recipe-edit-message {
    min-height: 1.35rem;
    font-size: 0.95rem;
    color: #5c5c63;
    margin: 0 0 0.75rem;
}

.recipe-edit-message--error {
    color: #b00020;
}

.recipe-edit-form {
    max-width: 1100px;
    margin: 0 auto;
}

.recipe-edit-layout {
    display: grid;
    gap: 1.25rem;
}

.recipe-edit-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recipe-edit-section {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.recipe-edit-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #8a8a90;
    margin: 0 0 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recipe-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.recipe-edit-field:last-child {
    margin-bottom: 0;
}

.recipe-edit-label {
    font-size: 0.88rem;
    color: #3a3a40;
    font-weight: 600;
}

.recipe-edit-optional {
    font-weight: 500;
    color: #8a8a8f;
}

.recipe-edit-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d8d8dc;
    border-radius: 0;
    padding: 0.45rem 0;
    font-size: 1rem;
    background: transparent;
}

.recipe-edit-input:focus {
    outline: none;
    border-bottom-color: #6aa6c9;
    box-shadow: 0 1px 0 0 #6aa6c9;
}

.recipe-edit-textarea {
    min-height: 5rem;
    resize: vertical;
    border: 1px solid #e2e2e5;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.recipe-edit-textarea:focus {
    border-color: #6aa6c9;
    box-shadow: 0 0 0 2px rgba(106, 166, 201, 0.25);
}

.recipe-edit-textarea--description {
    min-height: 4.5rem;
    border-radius: 8px;
    border-color: #e8e8ec;
    font-size: 0.98rem;
}

.recipe-edit-textarea--instructions {
    min-height: 14rem;
    border-radius: 8px;
    border-color: #e8e8ec;
    font-size: 0.98rem;
    line-height: 1.45;
}

.recipe-edit-row-grid {
    display: grid;
    gap: 0.85rem;
}

.recipe-edit-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8e8ec;
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
}

.recipe-edit-inline:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.recipe-edit-inline--full {
    display: grid;
    grid-template-columns: minmax(7rem, 1fr) 2fr;
    align-items: center;
    border-bottom: 1px solid #e8e8ec;
    padding-bottom: 0.65rem;
}

.recipe-edit-input-with-suffix {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 12rem;
    min-width: 0;
}

.recipe-edit-input--number {
    text-align: right;
    max-width: 8rem;
}

.recipe-edit-suffix {
    color: #8a8a8f;
    font-size: 0.95rem;
}

.recipe-edit-segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    background: #ececee;
    border-radius: 12px;
}

.recipe-edit-segment {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    color: #5a5a62;
    cursor: pointer;
    box-shadow: none;
}

.recipe-edit-segment--active {
    background: #fff;
    color: #2a2a2f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.recipe-edit-image-panel--hidden {
    display: none;
}

.recipe-edit-file {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #1976d2;
    font-weight: 600;
}

.recipe-edit-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.recipe-edit-hint {
    font-size: 0.82rem;
    color: #8a8a8f;
    margin: 0.5rem 0 0;
}

.recipe-edit-hint--tight {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.recipe-edit-image-preview-wrap {
    margin-top: 0.75rem;
}

.recipe-edit-image-preview {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e2e5;
    background: #fafafa;
}

.recipe-edit-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    font-weight: 600;
}

.recipe-edit-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.recipe-edit-switch input {
    position: absolute;
    opacity: 0;
    width: 48px;
    height: 28px;
    margin: 0;
    cursor: pointer;
}

.recipe-edit-switch-ui {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #c8c8ce;
    display: block;
    transition: background 0.15s ease;
    position: relative;
}

.recipe-edit-switch-ui::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.recipe-edit-switch input:checked + .recipe-edit-switch-ui {
    background: #6ab04c;
}

.recipe-edit-switch input:checked + .recipe-edit-switch-ui::after {
    transform: translateX(20px);
}

.recipe-edit-filter {
    display: block;
    margin-bottom: 0.65rem;
}

.recipe-edit-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.45rem;
}

.recipe-edit-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid #e2e2e5;
    background: #fafafa;
    margin: 0;
    cursor: pointer;
    font-size: 0.92rem;
}

.recipe-edit-chip input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.recipe-edit-chip-text {
    line-height: 1.2;
}

.recipe-edit-ingredients {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recipe-edit-ingredient-row {
    display: grid;
    grid-template-columns: minmax(6rem, 2.1fr) minmax(3rem, 5rem) minmax(3rem, 6rem) minmax(5rem, 1fr) auto auto auto;
    gap: 0.5rem 0.45rem;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ececee;
}

.recipe-edit-ingredient-row:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.recipe-edit-empty-ingredients {
    font-size: 0.88rem;
}

.recipe-edit-input--narrow {
    min-width: 0;
}

.recipe-edit-ingredient-heading-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #4b5563;
    white-space: nowrap;
    margin: 0;
}

.recipe-edit-ingredient-heading-toggle input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.recipe-edit-ingredient-remove {
    border: 0;
    background: transparent;
    color: #b00020;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.35rem;
    cursor: pointer;
    white-space: nowrap;
}

.recipe-edit-ingredient-reorder {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    justify-self: end;
}

.recipe-edit-ingredient-move,
.recipe-edit-ingredient-drag {
    border: 1px solid #d5d8de;
    background: #fff;
    color: #4b5563;
    border-radius: 6px;
    line-height: 1;
    height: 1.75rem;
    min-width: 1.75rem;
    padding: 0 0.35rem;
    cursor: pointer;
}

.recipe-edit-ingredient-move:disabled {
    opacity: 0.4;
    cursor: default;
}

.recipe-edit-ingredient-drag {
    cursor: grab;
    font-size: 0.85rem;
}

.recipe-edit-ingredient-row--drag-enabled .recipe-edit-ingredient-drag {
    background: #f5f8ff;
}

.recipe-edit-ingredient-row--dragging {
    opacity: 0.65;
}

.recipe-edit-ingredient-row--drag-over {
    border-top: 2px solid #90caf9;
    padding-top: 0.25rem;
}

.recipe-edit-add-row {
    margin-top: 0.65rem;
    border: 0;
    background: transparent;
    color: #1976d2;
    font-weight: 700;
    padding: 0.25rem 0;
    cursor: pointer;
}

.recipe-edit-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8ec;
}

.recipe-edit-btn-secondary {
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    border: 1px solid #c8c8ce;
    background: #fff;
    font-weight: 600;
    text-decoration: none;
    color: #2a2a2f;
}

.recipe-edit-btn-primary {
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    border: 0;
    background: var(--nomnotes-green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.recipe-edit-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;
}

@media (min-width: 768px) {
    .recipe-edit-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .recipe-edit-layout--reference {
        align-items: start;
    }

    .recipe-edit-section--ingredients-span {
        grid-column: 1 / -1;
    }

    .recipe-edit-classification-row {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
    }

    .recipe-edit-chip-grid {
        grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    }
}

@media (max-width: 767px) {
    .recipe-edit-classification-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .recipe-edit-ingredient-row {
        grid-template-columns: 1fr 1fr auto;
        grid-template-areas:
            "name name"
            "amount unit"
            "notes notes"
            "heading heading"
            "reorder reorder"
            "remove remove";
    }

    .recipe-edit-ingredient-row .ing-name {
        grid-area: name;
    }

    .recipe-edit-ingredient-row .ing-amount {
        grid-area: amount;
    }

    .recipe-edit-ingredient-row .ing-unit {
        grid-area: unit;
    }

    .recipe-edit-ingredient-row .ing-notes {
        grid-area: notes;
    }

    .recipe-edit-ingredient-heading-toggle {
        grid-area: heading;
        justify-self: start;
    }

    .recipe-edit-ingredient-reorder {
        grid-area: reorder;
        justify-self: start;
    }

    .recipe-edit-ingredient-remove {
        grid-area: remove;
        justify-self: start;
    }
}

/* ---- Profile (web + responsive) ---- */
.profile-recipes-page {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.profile-page-header .recipes-title {
    min-width: 0;
}

.profile-saved-alert {
    border-radius: 14px;
    border: 0;
}

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2rem;
    margin-top: -36px;
}

.profile-summary-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.85rem 1.1rem;
    border: 1px solid var(--nomnotes-orange);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    margin-top: 30px;
}

@media (min-width: 768px) {
    .profile-summary-card {
        padding: 0 1.1rem 1.2rem;
    }
}

.profile-identity-card {
    text-align: center;
    padding: 0 0 0.5rem;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 0.65rem;
}

.profile-avatar {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.profile-avatar--large {
    width: 132px;
    height: 132px;
}

.profile-avatar--placeholder {
    background: linear-gradient(145deg, #e4e4ea, #d4d4dc);
}

.profile-display-name {
    color: #7ec850;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.25rem;
    text-shadow:
        -1.5px -1.5px 0 #1e3d1a,
        1.5px -1.5px 0 #1e3d1a,
        -1.5px 1.5px 0 #1e3d1a,
        1.5px 1.5px 0 #1e3d1a;
}

.profile-email {
    font-size: 0.95rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 1rem 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .profile-stats {
        padding: 1.15rem 1.25rem;
        gap: 1rem;
    }
}

.profile-stat {
    text-align: center;
    min-width: 0;
}

.profile-stat-value {
    display: block;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: #7ec850;
    line-height: 1.15;
}

.profile-stat-label {
    display: block;
    font-size: 0.78rem;
    color: #8f8f95;
    margin-top: 0.2rem;
}

@media (min-width: 768px) {
    .profile-stat-label {
        font-size: 0.85rem;
    }
}

.profile-settings-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.profile-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0.5rem 0.6rem;
    border-radius: 14px;
    border: 1px solid var(--nomnotes-orange);
    background: var(--nomnotes-orange);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.profile-settings-btn:hover,
.profile-settings-btn:focus-visible {
    background: #e39300;
    border-color: #e39300;
    color: #ffffff;
}

.profile-account-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
    margin-top: 0;
}

.profile-action-cell {
    min-width: 0;
    display: flex;
}

.profile-action-form {
    margin: 0;
    width: 100%;
    display: flex;
}

.profile-action-form .profile-action-btn {
    flex: 1 1 auto;
}

/* Shared: lime CTA (Edit, Sign out, Deactivate) */
.profile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #c8f542;
    border: none;
    color: #1f2a10;
    border-radius: 18px;
    min-height: 52px;
    padding: 0.5rem 0.35rem;
    font-weight: 700;
    font-size: clamp(0.7rem, 2.6vw, 1.05rem);
    line-height: 1.2;
    word-break: break-word;
}

.profile-action-btn:hover,
.profile-action-btn:focus-visible {
    background: #b8e63a;
    color: #1f2a10;
}

a.profile-action-btn,
a.profile-action-btn:hover,
a.profile-action-btn:focus-visible {
    color: #1f2a10;
}

.profile-subpage-topbar {
    display: grid;
    grid-template-columns: minmax(4.5rem, auto) 1fr minmax(4.5rem, auto);
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

.profile-back-btn,
.profile-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d5d5da;
    color: #1a1a1e;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.profile-save-btn {
    border: 0;
    cursor: pointer;
    justify-self: end;
}

.profile-back-btn:hover,
.profile-back-btn:focus-visible,
.profile-save-btn:hover,
.profile-save-btn:focus-visible {
    background: #f5f5f8;
    color: #1a1a1e;
}

.profile-back-spacer {
    width: 1px;
    height: 1px;
    justify-self: end;
}

.profile-about-layout {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.profile-about-brand .profile-about-logo {
    width: min(120px, 32vw);
    height: auto;
    margin-bottom: 0.5rem;
}

.profile-about-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #7ec850;
    text-shadow:
        -1.5px -1.5px 0 #1e3d1a,
        1.5px -1.5px 0 #1e3d1a,
        -1.5px 1.5px 0 #1e3d1a,
        1.5px 1.5px 0 #1e3d1a;
}

.profile-about-version {
    text-align: center;
    padding: 1rem 1.25rem;
}

.profile-about-version-label {
    display: block;
    font-size: 0.85rem;
    color: #8f8f95;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.profile-about-version-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2a2a2f;
}

.profile-about-actions {
    gap: 0.55rem;
}

.profile-about-copy {
    padding: 1.1rem 1.25rem;
}

.profile-about-copy h2 {
    margin-bottom: 0.5rem;
}

.profile-edit-layout {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

.profile-edit-topbar .profile-edit-title {
    grid-column: 2;
}

.profile-edit-alert {
    border-radius: 14px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.profile-field-section-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8f8f95;
    text-transform: none;
    letter-spacing: 0.02em;
    margin: 0 0 0.4rem 0.2rem;
}

.profile-edit-photo-card {
    padding: 1.1rem 1.15rem 1rem;
    text-align: center;
}

.profile-edit-photo-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.profile-add-photo {
    cursor: pointer;
    color: #1f6fd9;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.profile-add-photo:hover .profile-add-photo-label,
.profile-add-photo:focus-within .profile-add-photo-label {
    opacity: 0.88;
}

.profile-field-group {
    overflow: hidden;
    padding: 0;
}

.profile-field-input {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
    color: #1f1f24;
    outline: none;
}

.profile-field-input::placeholder {
    color: #b4b4bc;
}

.profile-field-divider {
    height: 1px;
    background: #e8e8ed;
    margin: 0 1rem;
}

.profile-edit-section .nomnotes-muted.small {
    margin-top: 0.45rem;
    padding-left: 0.15rem;
}

@media (min-width: 992px) {
    .profile-about-layout,
    .profile-edit-layout {
        max-width: 720px;
    }
}

@media (min-width: 1200px) {
    .profile-recipes-page {
        max-width: 900px;
    }
}

/* ---- Legal (Privacy / Terms) ---- */
.nomnotes-legal-page .nomnotes-legal {
    line-height: 1.65;
}

.nomnotes-legal-h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--nomnotes-green);
    font-weight: 700;
}

.nomnotes-legal-h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: var(--nomnotes-green);
    font-weight: 600;
}

.nomnotes-legal-meta {
    color: var(--nomnotes-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.nomnotes-legal a {
    color: var(--nomnotes-orange);
    text-decoration: underline;
}

.nomnotes-legal a:hover {
    color: #e39300;
}

.nomnotes-legal ul {
    padding-left: 1.35rem;
}

.nomnotes-legal-disclaimer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: var(--nomnotes-muted);
    font-size: 0.9rem;
}

.nomnotes-legal-logo {
    height: auto;
    max-height: 44px;
    width: auto;
    display: block;
}

.nomnotes-legal-embed-body {
    margin: 0;
    min-height: 100%;
    background: linear-gradient(180deg, var(--nomnotes-bg-top) 0%, var(--nomnotes-bg-bottom) 100%);
}

.nomnotes-legal-embed-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 0.75rem 1.5rem;
}

.nomnotes-legal-embed-brand {
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.nomnotes-legal-modal-dialog {
    max-width: min(920px, calc(100vw - 1.5rem));
}

.nomnotes-legal-modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.nomnotes-legal-modal-header {
    background: var(--nomnotes-green);
    color: #fff;
    border-bottom: none;
}

.nomnotes-legal-modal-header .modal-title {
    color: #fff;
}

.nomnotes-legal-modal-header .btn-close {
    filter: invert(1) grayscale(100%);
}

.nomnotes-legal-modal-body {
    background: #f4f4f4;
}

.nomnotes-legal-modal-iframe {
    display: block;
    width: 100%;
    min-height: min(70vh, 560px);
    height: 65vh;
    background: #fff;
}

.nomnotes-legal-modal-footer {
    border-top: 1px solid #e8e8e8;
}

.site-footer-legal-link:hover {
    color: #fff !important;
    opacity: 0.92;
}

.nomnotes-login-legal-footer {
    color: var(--nomnotes-muted);
}
