:root {
    --ink: #102336;
    --muted: #63778a;
    --soft: #eef7fc;
    --surface: #ffffff;
    --line: #dceaf2;
    --blue: #20a9ec;
    --blue-dark: #087fbf;
    --blue-soft: #daf2ff;
    --green: #20c77a;
    --green-dark: #0b9757;
    --green-soft: #ddf8ea;
    --violet: #7757ec;
    --yellow: #ffc84d;
    --shadow: 0 18px 60px rgba(26, 92, 128, 0.12);
    --shadow-small: 0 10px 28px rgba(26, 92, 128, 0.10);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --page: min(1420px, calc(100% - 48px));
}

:root[data-theme="dark"] {
    --ink: #f3f8fb;
    --muted: #a7bac8;
    --soft: #0f2633;
    --surface: #142f3e;
    --line: #294858;
    --blue-soft: #173f54;
    --green-soft: #153f32;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
    --shadow-small: 0 10px 28px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 6% 9%, rgba(57, 191, 247, 0.10), transparent 24rem),
        radial-gradient(circle at 95% 28%, rgba(40, 207, 130, 0.09), transparent 30rem),
        #f8fcff;
    font-family: "Manrope", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at 6% 9%, rgba(57, 191, 247, 0.10), transparent 24rem),
        radial-gradient(circle at 95% 28%, rgba(40, 207, 130, 0.09), transparent 30rem),
        #091b25;
}

button,
input,
select {
    font: inherit;
}

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

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

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

button {
    color: inherit;
}

button,
summary,
select {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(32, 169, 236, 0.42);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    background: var(--blue-dark);
}

.skip-link:focus {
    transform: none;
}

.site-shell {
    overflow: clip;
}

.recipe-header {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 30;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 91%, transparent);
    box-shadow: 0 10px 34px rgba(16, 79, 112, 0.08);
    backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .recipe-header {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 42, 56, 0.96);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.recipe-header-top {
    width: var(--page);
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.recipe-app-back {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8d2ff;
    border-radius: 14px;
    color: #0b6fff;
    background: #f3f8ff;
    box-shadow: 0 8px 18px rgba(11, 111, 255, .08);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.recipe-app-back[hidden] {
    display: none !important;
}

.recipe-app-back:hover,
.recipe-app-back:focus-visible {
    border-color: #82b3ff;
    background: #eaf3ff;
    box-shadow: 0 12px 24px rgba(11, 111, 255, .13);
    transform: translateY(-1px);
}

.recipe-app-back svg {
    width: 17px;
    height: 17px;
}

.recipe-app-back path {
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.recipe-app-entry .recipe-header-top {
    justify-content: flex-start;
}

.recipe-app-entry .recipe-header-brand {
    gap: 0;
}

.recipe-app-entry .recipe-brand-name {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 9px 15px rgba(18, 142, 208, .22));
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    letter-spacing: -.5px;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.recipe-header-brand {
    color: #075da8;
    font-weight: 900;
}

.recipe-header .brand-mark {
    width: 42px;
}

.recipe-brand-name {
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    letter-spacing: -.6px;
}

.recipe-site-links {
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0 0 0 auto;
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
}

.recipe-site-links a {
    min-height: 38px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #23455d;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(19, 83, 117, .06);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s;
}

.recipe-site-links a:hover {
    border-color: color-mix(in srgb, var(--blue) 46%, var(--line));
    color: var(--blue-dark);
    background: var(--blue-soft);
    box-shadow: 0 9px 20px rgba(19, 126, 180, .12);
    transform: translateY(-2px);
}

.recipe-site-links a.is-active,
.recipe-site-links a[aria-current="page"] {
    border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
    color: var(--blue-dark);
    background: var(--blue-soft);
}

:root[data-theme="dark"] .recipe-header-brand {
    color: #7dd3fc;
}

:root[data-theme="dark"] .recipe-site-links a {
    border-color: #365a6b;
    color: #d8eaf2;
    background: #173746;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

:root[data-theme="dark"] .recipe-site-links a:hover {
    border-color: #4ab9e9;
    color: #eaf8ff;
    background: #20516a;
}

:root[data-theme="dark"] .recipe-site-links a.is-active,
:root[data-theme="dark"] .recipe-site-links a[aria-current="page"] {
    border-color: #38bdf8;
    color: #eaf9ff;
    background: #075f86;
    box-shadow: 0 8px 20px rgba(32, 169, 236, .20);
}

.recipe-auth {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.recipe-auth [hidden] {
    display: none !important;
}

.recipe-auth-login,
.recipe-auth-logout,
.recipe-favorites-header-button,
.theme-button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.recipe-auth-login {
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 10px 22px rgba(20, 143, 204, .22);
    font-size: 12px;
    font-weight: 900;
}

.theme-button {
    width: 42px;
    display: grid;
    place-items: center;
    background: var(--surface);
}

.recipe-favorites-header-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--surface);
}

.recipe-favorites-header-button svg {
    width: 20px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.recipe-favorites-header-button.has-favorites {
    color: #ef476f;
}

.recipe-favorites-header-button.has-favorites svg {
    fill: currentColor;
}

.recipe-favorites-count {
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    border-radius: 999px;
    color: white;
    background: #ef476f;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}

.recipe-favorites-count[hidden] {
    display: none;
}

:root[data-theme="dark"] .recipe-auth-logout,
:root[data-theme="dark"] .recipe-favorites-header-button,
:root[data-theme="dark"] .theme-button {
    border-color: #365a6b;
    color: #d8eaf2;
    background: #173746;
}

:root[data-theme="dark"] .recipe-favorites-header-button.has-favorites {
    color: #ff7898;
}

.recipe-auth-user {
    max-width: 150px;
    min-height: 42px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.recipe-auth-user > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-auth-logout {
    width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--surface);
}

.recipe-auth-logout svg {
    width: 20px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-button svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.recipe-auth-login:hover,
.recipe-auth-logout:hover,
.recipe-favorites-header-button:hover,
.theme-button:hover {
    border-color: color-mix(in srgb, var(--blue) 46%, var(--line));
    transform: translateY(-2px);
}

.catalog-hero {
    width: var(--page);
    min-height: 670px;
    margin: 20px auto 0;
    padding: clamp(50px, 7vw, 94px);
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 42px;
    background:
        linear-gradient(120deg, rgba(255,255,255,.96), rgba(239,250,255,.92)),
        #eef9ff;
    box-shadow: var(--shadow);
}

:root[data-theme="dark"] .catalog-hero {
    background: linear-gradient(120deg, rgba(20,47,62,.98), rgba(13,41,55,.94));
}

.catalog-hero::before {
    content: "";
    position: absolute;
    width: 30rem;
    aspect-ratio: 1;
    right: -6rem;
    top: -13rem;
    border-radius: 50%;
    background: rgba(32, 169, 236, .08);
}

.catalog-hero::after {
    content: "";
    position: absolute;
    width: 24rem;
    aspect-ratio: 1;
    left: 40%;
    bottom: -18rem;
    border-radius: 50%;
    background: rgba(32, 199, 122, .08);
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.eyebrow {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.eyebrow span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px var(--green-soft);
}

.catalog-hero h1 {
    margin: 0;
    max-width: 790px;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(45px, 5vw, 78px);
    line-height: 1.03;
    letter-spacing: -4px;
}

.catalog-hero h1 em {
    color: transparent;
    background: linear-gradient(100deg, var(--blue), var(--green));
    background-clip: text;
    font-style: normal;
}

.hero-lead {
    max-width: 650px;
    margin: 28px 0;
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.75;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-points span {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    font-size: 12px;
    font-weight: 700;
}

.hero-points span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--green-dark);
    font-weight: 900;
}

.hero-visual {
    height: 520px;
    position: relative;
    z-index: 2;
}

.hero-food {
    width: min(620px, 105%);
    height: auto;
    position: absolute;
    right: -11%;
    bottom: -10%;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 32px 32px rgba(13, 86, 113, .16));
}

.hero-food--recipes-icon {
    width: min(570px, 96%);
    right: -2%;
    bottom: -4%;
    filter:
        drop-shadow(0 30px 28px rgba(13, 86, 113, .17))
        drop-shadow(0 10px 12px rgba(20, 143, 204, .10));
}

.hero-orbit {
    position: absolute;
    border: 1px dashed rgba(32, 169, 236, .28);
    border-radius: 50%;
}

.hero-orbit--one {
    width: 400px;
    aspect-ratio: 1;
    right: 3%;
    top: 6%;
}

.hero-orbit--two {
    width: 510px;
    aspect-ratio: 1;
    right: -8%;
    top: -5%;
}

.recipe-counter {
    width: 198px;
    aspect-ratio: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 5;
    top: 2%;
    left: 0;
    border: 9px solid rgba(255,255,255,.75);
    border-radius: 50%;
    color: white;
    background:
        radial-gradient(circle at 32% 18%, rgba(255,255,255,.32), transparent 18%),
        linear-gradient(145deg, #2abaf4, #148ecd 58%, #087bb8);
    box-shadow: inset -12px -16px 24px rgba(0,80,127,.18), 0 24px 38px rgba(20,143,204,.26);
    transform: rotate(-5deg);
}

.recipe-counter span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.recipe-counter strong {
    margin: -2px 0;
    font-family: "Unbounded", sans-serif;
    font-size: 58px;
    line-height: 1.05;
    letter-spacing: -4px;
}

.recipe-counter b {
    font-size: 13px;
}

.recipe-counter small {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
}

.recipe-counter i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b9ff8a;
    box-shadow: 0 0 0 4px rgba(185,255,138,.18);
}

.filter-zone {
    width: var(--page);
    margin: clamp(70px, 8vw, 120px) auto 0;
}

.filter-heading,
.related-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.filter-heading h2,
.catalog-about h2,
.recipe-faq h2,
.related-heading h2 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(30px, 3.4vw, 52px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.filter-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    font-weight: 800;
}

.filter-mobile-toggle svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.filter-mobile-toggle span {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--blue);
    font-size: 10px;
}

.filter-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
}

.filter-panel {
    padding: 24px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.filter-panel-top {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-panel h3 {
    margin: 0;
    font-size: 21px;
}

.filter-reset {
    padding: 0;
    border: 0;
    color: var(--blue-dark);
    background: none;
    font-size: 11px;
    font-weight: 800;
}

.recipe-search {
    height: 50px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.recipe-search:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(32,169,236,.12);
}

.recipe-search svg {
    width: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
}

.recipe-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 13px;
}

.recipe-search input::placeholder {
    color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.filter-group,
.check-group {
    min-width: 0;
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.filter-group > legend,
.check-group > legend {
    width: 100%;
    margin-bottom: 11px;
    padding: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.meal-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.meal-option input,
.check-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.meal-option > span {
    min-height: 70px;
    padding: 7px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    transition: border .2s, background .2s, transform .2s;
}

.meal-option > span:hover {
    transform: translateY(-2px);
}

.meal-option img {
    width: 38px;
    height: 32px;
    object-fit: contain;
}

.meal-option b {
    font-size: 10px;
}

.meal-option input:checked + span {
    border-color: var(--blue);
    color: var(--blue-dark);
    background: var(--blue-soft);
    box-shadow: inset 0 0 0 1px var(--blue);
}

.basis-switch {
    padding: 4px;
    display: grid;
    grid-template-columns: .75fr 1fr 1.1fr;
    gap: 3px;
    border-radius: 12px;
    background: var(--soft);
}

.basis-switch button {
    min-height: 34px;
    padding: 5px 6px;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
    font-weight: 800;
}

.basis-switch button.is-active {
    color: var(--blue-dark);
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(23,91,126,.11);
}

.range-box {
    margin-top: 14px;
    transition: opacity .2s;
}

.range-box.is-disabled {
    opacity: .62;
}

.range-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.range-value span,
.range-value b {
    color: var(--muted);
    font-size: 10px;
}

.range-value output {
    color: var(--blue-dark);
    font-family: "Unbounded", sans-serif;
    font-size: 26px;
    font-weight: 800;
}

.range-box input[type="range"] {
    width: 100%;
    height: 5px;
    margin: 15px 0 5px;
    border-radius: 999px;
    accent-color: var(--blue);
}

.range-scale {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
}

.range-box > p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.calorie-presets {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.calorie-presets button {
    flex: 1;
    padding: 6px 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    font-size: 8px;
    font-weight: 800;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-filters button {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    font-size: 9px;
    font-weight: 800;
}

.quick-filters button.is-active {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--green-soft);
}

.advanced-filters {
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.advanced-filters > summary {
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    font-size: 11px;
    font-weight: 800;
}

.advanced-filters summary::-webkit-details-marker {
    display: none;
}

.advanced-filters > summary span,
.recipe-faq summary span {
    width: 20px;
    height: 20px;
    position: relative;
    border-radius: 50%;
    background: var(--soft);
}

.advanced-filters > summary span::before,
.advanced-filters > summary span::after,
.recipe-faq summary span::before,
.recipe-faq summary span::after {
    content: "";
    width: 8px;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.advanced-filters > summary span::after,
.recipe-faq summary span::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .2s;
}

.advanced-filters[open] > summary span::after,
.recipe-faq details[open] summary span::after {
    transform: translate(-50%, -50%);
}

.advanced-body {
    padding-top: 2px;
}

.check-group > div {
    display: grid;
    gap: 8px;
}

.check-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.check-group label > span {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
}

.check-group input:checked + span {
    border-color: var(--blue);
    background: var(--blue);
}

.check-group input:checked + span::after {
    content: "";
    width: 7px;
    height: 4px;
    position: absolute;
    left: 4px;
    top: 4px;
    border: solid white;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.catalog-results {
    min-width: 0;
}

.result-toolbar {
    min-height: 51px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.result-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.result-toolbar p strong {
    color: var(--ink);
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
}

.result-toolbar label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
}

.result-toolbar select {
    min-width: 168px;
    padding: 9px 30px 9px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    color: var(--ink);
    background: var(--surface);
    font-size: 10px;
    font-weight: 700;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.active-filters:not(:empty) {
    margin: -2px 0 16px;
}

.active-filters button {
    padding: 7px 9px;
    border: 0;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 9px;
    font-weight: 800;
}

.active-filters button::after {
    content: "×";
    margin-left: 6px;
    font-size: 13px;
}

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

.card-image-wrap {
    min-height: 186px;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: var(--soft);
}

.recipe-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 9px 28px rgba(25, 85, 116, .07);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.recipe-card:hover {
    border-color: rgba(32, 169, 236, .38);
    box-shadow: 0 20px 44px rgba(25, 85, 116, .13);
    transform: translateY(-5px);
}

.recipe-card[hidden] {
    display: none;
}

.card-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--soft);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.recipe-card:hover .card-image img {
    transform: scale(1.035);
}

.card-category,
.card-time {
    position: absolute;
    top: 12px;
    padding: 7px 9px;
    border-radius: 999px;
    color: #163348;
    background: rgba(255,255,255,.88);
    box-shadow: 0 5px 16px rgba(12,50,74,.12);
    backdrop-filter: blur(10px);
    font-size: 9px;
    font-weight: 800;
}

.card-category {
    left: 12px;
}

.card-time {
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-time svg {
    width: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.recipe-favorite-button {
    width: 44px;
    height: 44px;
    position: absolute;
    z-index: 6;
    bottom: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    padding: 5px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: transparent;
    filter: drop-shadow(0 4px 11px rgba(6, 31, 45, .25));
    transition: transform .18s ease, color .18s ease;
}

.recipe-favorite-button::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: inherit;
    background: rgba(8, 34, 48, .18);
    box-shadow: inset 0 0 0 1px rgba(7, 34, 47, .08);
    backdrop-filter: blur(10px);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.recipe-favorite-button svg {
    width: 20px;
    position: relative;
    z-index: 1;
    fill: rgba(255, 255, 255, .06);
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill .18s ease, transform .18s ease;
}

.recipe-favorite-button:hover,
.recipe-favorite-button:focus-visible {
    transform: translateY(-1px) scale(1.04);
}

.recipe-favorite-button:hover::before,
.recipe-favorite-button:focus-visible::before {
    border-color: white;
    background: rgba(8, 34, 48, .34);
}

.recipe-favorite-button.is-favorite {
    color: #ff5d82;
}

.recipe-favorite-button.is-favorite::before {
    border-color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .90);
}

.recipe-favorite-button.is-favorite svg {
    fill: currentColor;
    transform: scale(1.06);
}

.recipe-favorite-button[aria-busy="true"] {
    pointer-events: none;
    opacity: .68;
}

.recipe-favorite-button--detail {
    bottom: 14px;
    left: 14px;
}

.card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-kicker {
    min-height: 19px;
    display: flex;
    gap: 5px;
}

.card-kicker span {
    padding: 4px 7px;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 8px;
    font-weight: 800;
}

.card-kicker span:last-child {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -.35px;
}

.card-body h3 a {
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
    transition: background-size .25s;
}

.card-body h3 a:hover {
    background-size: 100% 1px;
}

.card-body > p {
    margin: 0 0 14px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-nutrition {
    margin: auto 0 0;
    padding: 11px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.card-nutrition div {
    padding: 0 5px;
    text-align: center;
}

.card-nutrition div + div {
    border-left: 1px solid var(--line);
}

.card-nutrition dt {
    color: var(--muted);
    font-size: 7px;
}

.card-nutrition dd {
    margin: 3px 0 0;
    font-size: 9px;
    font-weight: 800;
}

.card-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-footer small {
    color: var(--muted);
    font-size: 8px;
}

.card-footer > a {
    color: var(--blue-dark);
    font-size: 9px;
    font-weight: 800;
}

.card-footer > a span {
    margin-left: 2px;
    transition: margin .2s;
}

.card-footer > a:hover span {
    margin-left: 6px;
}

.resource-card {
    min-height: 390px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #133144;
}

.resource-card::after {
    content: "";
    width: 170px;
    aspect-ratio: 1;
    position: absolute;
    right: -80px;
    bottom: -70px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
}

.resource-card--menu {
    background: linear-gradient(145deg, #d9f5ff, #aee8ff);
}

.resource-card--app {
    background: linear-gradient(145deg, #dffbe9, #a9efc9);
}

.resource-card--course {
    background: linear-gradient(145deg, #eee8ff, #d6c9ff);
}

.resource-card img {
    width: 132px;
    height: 122px;
    margin: -4px auto 10px;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(26,72,94,.13));
}

.resource-card p {
    margin: 0 0 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.resource-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.resource-card > span {
    margin-top: 8px;
    color: #456175;
    font-size: 10px;
    line-height: 1.5;
}

.resource-card > a {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
}

.resource-card > a b {
    width: 30px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(16,50,70,.8);
}

.empty-results {
    padding: 70px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.empty-results > div {
    font-size: 55px;
}

.empty-results h3 {
    margin: 14px 0 6px;
}

.empty-results p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-results button {
    margin-top: 18px;
    padding: 11px 16px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--blue);
    font-weight: 800;
}

.catalog-about {
    width: var(--page);
    margin: 110px auto 0;
    padding: clamp(36px, 5vw, 70px);
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: end;
    gap: 70px;
    border-radius: 35px;
    background: linear-gradient(135deg, var(--ink), #1c4a63);
    color: white;
}

.catalog-about .eyebrow {
    color: #7cd8ff;
}

.catalog-about p:last-child {
    margin: 0;
    color: #c6d9e4;
    font-size: 15px;
    line-height: 1.8;
}

.recipe-faq {
    width: var(--page);
    margin: 110px auto;
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 80px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.recipe-faq details {
    border-bottom: 1px solid var(--line);
}

.recipe-faq summary {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    list-style: none;
    font-size: 15px;
    font-weight: 800;
}

.recipe-faq summary::-webkit-details-marker {
    display: none;
}

.recipe-faq details p {
    margin: -6px 45px 22px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.recipe-footer {
    width: var(--page);
    margin: 70px auto 24px;
    padding: 34px;
    border-radius: 30px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: linear-gradient(180deg, var(--surface) 0%, var(--soft) 100%);
    box-shadow: var(--shadow-small);
}

.brand--footer {
    color: var(--ink);
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.recipe-footer__brand {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.recipe-footer__brand p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
}

.recipe-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, .8fr));
    gap: 14px;
}

.recipe-footer__grid section {
    min-height: 162px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.recipe-footer__grid h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    line-height: 1.3;
}

.recipe-footer__grid a {
    display: block;
    width: fit-content;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    transition: color .18s ease, transform .18s ease;
}

.recipe-footer__grid a:hover,
.recipe-footer__grid a:focus-visible {
    color: var(--blue-dark);
    transform: translateX(2px);
}

.recipe-footer__contacts {
    display: grid;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
}

.recipe-footer__contacts h2 {
    grid-column: 1 / -1;
}

.recipe-footer__bottom {
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

:root[data-theme="dark"] .recipe-footer {
    background: linear-gradient(180deg, #143241 0%, #0f2734 100%);
}

:root[data-theme="dark"] .recipe-footer__grid section {
    background: rgba(8, 29, 40, .42);
}

/* Recipe detail */
.detail-breadcrumbs,
.recipe-detail,
.related-section {
    width: min(1280px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.detail-breadcrumbs {
    margin-top: 32px;
    margin-bottom: 18px;
    display: flex;
    gap: 9px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.detail-breadcrumbs > * {
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-breadcrumbs a:hover {
    color: var(--blue-dark);
}

.detail-hero {
    padding: 22px;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    gap: clamp(34px, 5vw, 74px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 38px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-image-wrap {
    min-height: 580px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--soft);
}

.detail-image-wrap img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.detail-image-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #163348;
    background: rgba(255,255,255,.9);
    box-shadow: 0 7px 20px rgba(12,50,74,.13);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 800;
}

.detail-intro {
    padding-right: clamp(16px, 4vw, 50px);
}

.detail-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.detail-labels span {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 9px;
    font-weight: 800;
}

.detail-labels span.accent {
    color: var(--green-dark);
    background: var(--green-soft);
}

.detail-intro h1 {
    margin: 18px 0;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(32px, 4.1vw, 60px);
    line-height: 1.09;
    letter-spacing: -2.7px;
}

.detail-intro > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.detail-facts {
    margin: 30px 0;
    padding: 18px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-facts > div {
    padding: 0 14px;
}

.detail-facts > div:first-child {
    padding-left: 0;
}

.detail-facts > div + div {
    border-left: 1px solid var(--line);
}

.detail-facts dt {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
}

.detail-facts dt svg {
    width: 14px;
    fill: none;
    stroke: var(--blue-dark);
    stroke-width: 1.7;
}

.detail-facts dd {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 800;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-actions > * {
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface);
    font-size: 10px;
    font-weight: 800;
}

.detail-actions > a {
    border-color: var(--green);
    color: white;
    background: var(--green);
}

.detail-actions > .transfer-to-fitpush-button {
    border-color: var(--green);
    color: white;
    background: linear-gradient(135deg, var(--green), #16ad68);
    box-shadow: 0 8px 18px rgba(32, 199, 122, 0.22);
}

.detail-actions > .transfer-to-fitpush-button:hover {
    border-color: var(--green-dark);
    background: linear-gradient(135deg, #23ce80, var(--green-dark));
    transform: translateY(-1px);
}

.detail-actions > .transfer-to-fitpush-button:active {
    transform: translateY(0);
}

.detail-actions > .download-pdf-button {
    border-color: var(--blue);
    background: var(--blue);
}

.detail-actions svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.recipe-transfer-modal-open {
    overflow: hidden;
}

.recipe-transfer-modal[hidden] {
    display: none !important;
}

.recipe-transfer-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.recipe-transfer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(4, 25, 38, 0.64);
    backdrop-filter: blur(10px);
}

.recipe-transfer-dialog {
    width: min(100%, 520px);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    position: relative;
    z-index: 1;
    padding: 28px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 28px;
    color: var(--ink);
    background:
        radial-gradient(circle at 92% 5%, rgba(32, 199, 122, 0.14), transparent 180px),
        var(--surface);
    box-shadow: 0 30px 90px rgba(3, 34, 51, 0.30);
}

.recipe-transfer-close {
    width: 44px;
    min-height: 44px;
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    font-size: 25px;
    line-height: 1;
}

.recipe-transfer-close:hover {
    color: var(--ink);
    border-color: var(--blue);
}

.recipe-transfer-heading {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding-right: 42px;
}

.recipe-transfer-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--blue-soft), var(--green-soft));
    box-shadow: var(--shadow-small);
}

.recipe-transfer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.recipe-transfer-heading small {
    display: block;
    margin-bottom: 4px;
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.recipe-transfer-heading h2 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(19px, 4vw, 25px);
    line-height: 1.18;
    letter-spacing: -.7px;
}

.recipe-transfer-description {
    margin: 18px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.recipe-transfer-guest,
.recipe-transfer-form,
.recipe-transfer-success {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.recipe-transfer-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.recipe-transfer-benefits span {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--muted);
    background: var(--soft);
    font-size: 9px;
    line-height: 1.35;
}

.recipe-transfer-benefits b {
    color: var(--ink);
    font-size: 11px;
}

.recipe-transfer-guest > p {
    margin: 16px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.recipe-transfer-auth-actions {
    display: grid;
    gap: 9px;
}

.recipe-transfer-primary,
.recipe-transfer-secondary {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

button.recipe-transfer-primary {
    border: 0;
}

.recipe-transfer-primary {
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 10px 22px rgba(32, 199, 122, 0.22);
}

.recipe-transfer-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.recipe-transfer-primary:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.recipe-transfer-secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
}

.recipe-transfer-secondary:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.recipe-transfer-user {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 11px;
}

.recipe-transfer-user strong {
    color: var(--ink);
}

.recipe-transfer-weight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 800;
}

.recipe-transfer-input-wrap {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--soft);
}

.recipe-transfer-input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(32, 169, 236, .14);
}

.recipe-transfer-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 21px;
    font-weight: 800;
}

.recipe-transfer-input-wrap b {
    color: var(--muted);
    font-size: 12px;
}

.recipe-transfer-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
}

.recipe-transfer-presets {
    margin: 13px 0 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.recipe-transfer-presets button {
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface);
    font-size: 10px;
    font-weight: 800;
}

.recipe-transfer-presets button:hover,
.recipe-transfer-presets button.is-active {
    border-color: var(--blue);
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.recipe-transfer-macros {
    margin: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.recipe-transfer-macros > div {
    min-width: 0;
    padding: 11px 7px;
    border-radius: 13px;
    background: var(--soft);
    text-align: center;
}

.recipe-transfer-macros dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
}

.recipe-transfer-macros dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
}

.recipe-transfer-success {
    text-align: center;
}

.recipe-transfer-success > span {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--green);
    box-shadow: 0 12px 24px rgba(32, 199, 122, .24);
    font-size: 27px;
    font-weight: 800;
}

.recipe-transfer-success h3 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
}

.recipe-transfer-success p {
    margin: 9px 0 17px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.recipe-transfer-status {
    min-height: 18px;
    margin: 10px 0 0;
    color: #cf3f52;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.detail-workspace {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.ingredient-column {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 20px;
}

.ingredients-card,
.nutrition-card,
.steps-column {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.ingredients-card {
    padding: 28px;
}

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

.section-title > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.section-title > div > span {
    width: 34px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-family: "Unbounded", sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.section-title h2 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    letter-spacing: -.8px;
}

.section-title > small {
    color: var(--muted);
    font-size: 9px;
}

.ingredient-list {
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    list-style: none;
}

.ingredient-list li {
    border-top: 1px solid var(--line);
}

.ingredient-list label {
    padding: 14px 0;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}

.ingredient-list input {
    position: absolute;
    opacity: 0;
}

.ingredient-list label > span {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--soft);
}

.ingredient-list b {
    padding-top: 2px;
    font-size: 11px;
    line-height: 1.5;
}

.ingredient-list input:checked + span {
    border-color: var(--green);
    background: var(--green);
}

.ingredient-list input:checked + span::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.ingredient-list input:checked ~ b {
    color: var(--muted);
    text-decoration: line-through;
}

.nutrition-card {
    width: 100%;
    min-width: 0;
    padding: 30px;
    color: white;
    background: linear-gradient(145deg, #14394d, #0e2837);
}

.nutrition-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.nutrition-heading > div:first-child > span {
    color: #63d2ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.nutrition-heading h2 {
    margin: 7px 0 0;
    font-size: 17px;
}

.nutrition-ring {
    width: 104px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    position: relative;
    border-radius: 50%;
    text-align: center;
    background: conic-gradient(var(--green) var(--calorie-progress), rgba(255,255,255,.12) 0);
}

.nutrition-ring::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #123446;
}

.nutrition-ring strong,
.nutrition-ring small {
    position: relative;
    z-index: 1;
}

.nutrition-ring strong {
    font-family: "Unbounded", sans-serif;
    font-size: 21px;
}

.nutrition-ring small {
    margin-top: 3px;
    color: #a7c2d0;
    font-size: 8px;
}

.nutrition-card dl {
    margin: 25px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.nutrition-card dl div {
    min-height: 66px;
    padding: 15px 8px 12px;
    position: relative;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    text-align: center;
}

.nutrition-card dl div::before {
    content: "";
    width: 18px;
    height: 3px;
    position: absolute;
    top: 0;
    left: calc(50% - 9px);
    border-radius: 999px;
}

.nutrition-card .protein::before { background: #58d99d; }
.nutrition-card .fat::before { background: #ffc65c; }
.nutrition-card .carbs::before { background: #5abdf1; }

.nutrition-card dt {
    color: #a7c2d0;
    font-size: 9px;
}

.nutrition-card dd {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 800;
}

.steps-column {
    padding: 34px;
}

.section-title--steps {
    margin-bottom: 8px;
}

.step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    padding: 28px 0;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.step-list li:last-child {
    border-bottom: 0;
}

.step-list li > span {
    width: 52px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--blue-dark);
    background: var(--soft);
    font-family: "Unbounded", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.step-list p {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.8;
}

.detail-resources {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-resource {
    min-height: 190px;
    padding: 20px;
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #173447;
    transition: transform .25s, box-shadow .25s;
}

.detail-resource:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-small);
}

.detail-resource--menu { background: linear-gradient(145deg, #d9f5ff, #aee8ff); }
.detail-resource--app { background: linear-gradient(145deg, #dffbe9, #a9efc9); }
.detail-resource--course { background: linear-gradient(145deg, #eee8ff, #d6c9ff); }

.detail-resource img {
    width: 110px;
    height: 120px;
    object-fit: contain;
}

.detail-resource span {
    display: grid;
}

.detail-resource small {
    margin-bottom: 7px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-resource strong {
    font-size: 13px;
    line-height: 1.4;
}

.detail-resource b {
    margin-top: 13px;
    font-size: 9px;
}

.recipe-meta {
    margin-top: 34px;
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.recipe-meta > div > strong {
    font-size: 11px;
}

.recipe-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recipe-tags a {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 8px;
    font-weight: 700;
}

.recipe-meta > p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.7;
}

.recipe-meta > p a {
    color: var(--blue-dark);
    text-decoration: underline;
}

.related-section {
    margin-top: 100px;
}

.related-heading > a {
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 800;
}

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

.recipe-card--related .card-body > h3 {
    min-height: 44px;
    margin-top: 0;
}

body.recipe-favorites-modal-open {
    overflow: hidden;
}

.recipe-favorites-modal[hidden],
.recipe-favorites-auth-modal[hidden],
.recipe-favorites-empty[hidden] {
    display: none !important;
}

.recipe-favorites-modal,
.recipe-favorites-auth-modal {
    position: fixed;
    z-index: 1250;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.recipe-favorites-backdrop {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 25, 38, .66);
    backdrop-filter: blur(10px);
}

.recipe-favorites-dialog,
.recipe-favorites-auth-dialog {
    width: min(100%, 560px);
    max-height: min(760px, calc(100vh - 40px));
    position: relative;
    z-index: 1;
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 28px;
    color: var(--ink);
    background:
        radial-gradient(circle at 96% 0, rgba(255, 93, 130, .12), transparent 190px),
        var(--surface);
    box-shadow: 0 30px 90px rgba(3, 34, 51, .34);
}

.recipe-favorites-dialog {
    padding: 24px;
}

.recipe-favorites-auth-dialog {
    width: min(100%, 440px);
    padding: 34px;
    text-align: center;
}

.recipe-favorites-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.recipe-favorites-heading > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recipe-favorites-heading-icon,
.recipe-favorites-auth-icon {
    display: grid;
    place-items: center;
    color: #ef476f;
    background: rgba(239, 71, 111, .10);
}

.recipe-favorites-heading-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
}

.recipe-favorites-heading-icon svg,
.recipe-favorites-auth-icon svg {
    width: 23px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.6;
}

.recipe-favorites-heading p,
.recipe-favorites-auth-eyebrow {
    margin: 0 0 3px;
    color: #d93462;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.recipe-favorites-heading h2,
.recipe-favorites-auth-dialog h2 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.2;
    letter-spacing: -.7px;
}

.recipe-favorites-close,
.recipe-favorites-item-remove {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    font-size: 24px;
    line-height: 1;
}

.recipe-favorites-close:hover,
.recipe-favorites-item-remove:hover {
    border-color: #ef476f;
    color: #d93462;
    background: rgba(239, 71, 111, .08);
}

.recipe-favorites-auth-dialog > .recipe-favorites-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.recipe-favorites-list {
    display: grid;
    gap: 9px;
}

.recipe-favorites-item {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 9px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--soft);
}

.recipe-favorites-item-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-radius: 12px;
}

.recipe-favorites-item-link:hover strong {
    color: var(--blue-dark);
}

.recipe-favorites-item-link img {
    width: 84px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--surface);
}

.recipe-favorites-item-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.recipe-favorites-item-copy small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.recipe-favorites-item-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    transition: color .18s;
}

.recipe-favorites-empty {
    padding: 34px 16px 24px;
    text-align: center;
}

.recipe-favorites-empty > span,
.recipe-favorites-auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 22px;
}

.recipe-favorites-empty > span {
    color: var(--muted);
    background: var(--soft);
}

.recipe-favorites-empty svg {
    width: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.recipe-favorites-empty h3 {
    margin: 0;
    font-size: 14px;
}

.recipe-favorites-empty p,
.recipe-favorites-auth-dialog > p:not(.recipe-favorites-auth-eyebrow) {
    margin: 9px auto 0;
    max-width: 390px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.recipe-favorites-status {
    min-height: 16px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

.recipe-favorites-auth-icon {
    color: #ef476f;
}

.recipe-favorites-auth-actions {
    margin-top: 20px;
    display: grid;
    gap: 9px;
}

.recipe-favorites-auth-primary,
.recipe-favorites-auth-secondary {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.recipe-favorites-auth-primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 10px 24px rgba(32, 169, 236, .22);
}

.recipe-favorites-auth-secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
}

.recipe-favorites-auth-primary:hover,
.recipe-favorites-auth-secondary:hover {
    transform: translateY(-1px);
}

:root[data-theme="dark"] .recipe-favorites-heading p,
:root[data-theme="dark"] .recipe-favorites-auth-eyebrow {
    color: #ff7898;
}

.connection-status {
    min-height: 42px;
    padding: 10px 16px;
    position: fixed;
    z-index: 100;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    color: white;
    background: rgba(16, 35, 47, .94);
    box-shadow: var(--shadow-small);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.connection-status.is-online {
    background: rgba(22, 142, 86, .94);
}

.connection-status[hidden] {
    display: none;
}

@media (max-width: 1180px) {
    .catalog-hero {
        min-height: 600px;
        padding: 58px;
    }

    .catalog-hero h1 {
        font-size: clamp(40px, 5.2vw, 64px);
    }

    .hero-visual {
        height: 470px;
    }

    .filter-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

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

    .detail-image-wrap {
        min-height: 500px;
    }

    .detail-workspace {
        grid-template-columns: 340px minmax(0, 1fr);
    }

    .detail-resources {
        grid-template-columns: 1fr;
    }

    .detail-resource {
        min-height: 150px;
    }
}

@media (max-width: 900px) {
    :root {
        --page: min(100% - 28px, 720px);
    }

    .recipe-header {
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .recipe-header-top {
        min-height: 0;
        padding: 8px 0;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .recipe-header .brand-mark {
        width: 38px;
    }

    .recipe-header-brand {
        order: 1;
    }

    .recipe-auth {
        margin-left: auto;
        order: 2;
    }

    .recipe-site-links {
        width: 100%;
        margin: 0;
        padding: 7px 0 0;
        flex: 0 0 100%;
        order: 3;
        min-height: 52px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
    }

    .recipe-site-links::-webkit-scrollbar {
        display: none;
    }

    .recipe-site-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .catalog-hero {
        min-height: 820px;
        padding: 38px 34px 0;
        grid-template-columns: 1fr;
        align-items: start;
        text-align: center;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .catalog-hero .hero-copy > .eyebrow {
        display: none;
    }

    .hero-lead {
        margin-bottom: 0;
    }

    .hero-visual {
        margin-top: 18px;
        height: 400px;
    }

    .hero-food {
        width: min(590px, 100%);
        right: -3%;
        bottom: -5%;
    }

    .hero-food--recipes-icon {
        width: min(500px, 82%);
        right: 1%;
        bottom: -3%;
    }

    .recipe-counter {
        width: 166px;
        left: 6%;
        top: 12%;
    }

    .recipe-counter strong {
        font-size: 48px;
    }

    .filter-mobile-toggle {
        display: inline-flex;
    }

    .filter-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        display: none;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .filter-layout.is-filter-open .filter-panel {
        display: block;
    }

    .catalog-about {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .recipe-faq {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-breadcrumbs,
    .recipe-detail,
    .related-section {
        width: min(100% - 28px, 720px);
    }

    .detail-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-image-wrap {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .detail-intro {
        padding: 0 18px 20px;
    }

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

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

    .recipe-meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .recipe-footer__contacts {
        grid-column: 1 / -1;
    }

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

@media (max-width: 620px) {
    :root {
        --page: calc(100% - 20px);
        --radius-lg: 21px;
    }

    .recipe-header {
        border-radius: 0;
    }

    .recipe-header-top {
        min-height: 64px;
        gap: 12px;
    }

    .recipe-header .brand-mark {
        width: 36px;
    }

    .recipe-brand-name {
        font-size: 14px;
    }

    .recipe-auth {
        gap: 6px;
    }

    .recipe-favorites-header-button {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .recipe-auth .theme-button {
        display: none;
    }

    .recipe-auth-login {
        min-height: 44px;
        padding: 0 15px;
    }

    .recipe-auth-user {
        max-width: 112px;
        min-height: 44px;
        padding: 0 3px;
        font-size: 13px;
    }

    .recipe-auth-logout {
        width: 44px;
        min-height: 44px;
    }

    .recipe-site-links {
        min-height: 58px;
        padding: 7px 0;
        gap: 6px;
    }

    .recipe-site-links a {
        min-height: 46px;
        padding: 5px 12px;
        border-radius: 11px;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .catalog-hero {
        min-height: 690px;
        padding: 20px 20px 0;
        border-radius: 28px;
    }

    .hero-copy {
        position: static;
    }

    .catalog-hero h1 {
        position: relative;
        z-index: 4;
        font-size: clamp(35px, 11vw, 50px);
        letter-spacing: -2.7px;
    }

    .hero-lead {
        margin: 15px 0 0;
        position: relative;
        z-index: 4;
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-points {
        margin: 0;
        position: absolute;
        z-index: 7;
        right: 12px;
        bottom: 16px;
        left: 12px;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 5px;
    }

    .hero-points span {
        padding: 7px;
        font-size: 8px;
        white-space: nowrap;
        backdrop-filter: blur(10px);
    }

    .hero-points span::before {
        margin-right: 4px;
    }

    .hero-visual {
        height: 330px;
        margin-top: 8px;
    }

    .hero-food {
        height: auto;
        top: 18px;
        bottom: auto;
    }

    .hero-food--recipes-icon {
        width: min(390px, 112%);
        max-width: none;
        top: -12px;
        right: -7%;
    }

    .recipe-counter {
        width: 135px;
        padding: 16px;
        left: -2%;
        top: 22%;
        border-width: 6px;
    }

    .recipe-counter strong {
        font-size: 40px;
    }

    .recipe-counter b {
        font-size: 9px;
    }

    .recipe-counter small {
        margin-top: 7px;
        gap: 3px;
        font-size: 7px;
    }

    .recipe-counter i {
        transform: translateX(4px);
    }

    .filter-zone {
        margin-top: 70px;
    }

    .filter-heading {
        align-items: center;
    }

    .filter-heading h2,
    .catalog-about h2,
    .recipe-faq h2,
    .related-heading h2 {
        font-size: 28px;
        letter-spacing: -1.5px;
    }

    .filter-heading .eyebrow {
        display: none;
    }

    .filter-panel {
        padding: 20px;
    }

    .result-toolbar label span {
        display: none;
    }

    .result-toolbar select {
        min-width: 140px;
    }

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

    .card-image {
        min-height: 230px;
    }

    .resource-card {
        min-height: 360px;
    }

    .catalog-about {
        margin-top: 70px;
        padding: 30px 24px;
        border-radius: 25px;
    }

    .catalog-about p:last-child {
        font-size: 12px;
    }

    .recipe-faq {
        margin-top: 70px;
        margin-bottom: 70px;
    }

    .recipe-footer {
        margin-top: 52px;
        padding: 24px 14px 18px;
        border-radius: 24px;
    }

    .recipe-footer__brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .recipe-footer__brand p {
        max-width: none;
        font-size: 12px;
        text-align: left;
    }

    .recipe-footer__grid {
        grid-template-columns: 1fr;
    }

    .recipe-footer__grid section {
        min-height: 0;
        padding: 16px;
    }

    .recipe-footer__contacts {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .detail-breadcrumbs,
    .recipe-detail,
    .related-section {
        width: calc(100% - 20px);
    }

    .detail-hero {
        padding: 9px;
        border-radius: 27px;
    }

    .detail-image-wrap {
        border-radius: 21px;
    }

    .detail-intro {
        padding: 0 13px 14px;
    }

    .detail-intro h1 {
        font-size: 30px;
        letter-spacing: -1.6px;
    }

    .detail-facts {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .detail-facts > div,
    .detail-facts > div:first-child {
        padding: 11px 0;
    }

    .detail-facts > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .detail-actions > * {
        width: 100%;
        justify-content: center;
        font-size: 11px;
    }

    .recipe-transfer-modal {
        place-items: end center;
        padding: 0;
    }

    .recipe-transfer-dialog {
        width: 100%;
        max-height: min(88vh, 760px);
        padding: 24px 18px max(20px, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }

    .recipe-favorites-modal,
    .recipe-favorites-auth-modal {
        place-items: end center;
        padding: 0;
    }

    .recipe-favorites-dialog,
    .recipe-favorites-auth-dialog {
        width: 100%;
        max-height: min(88vh, 760px);
        padding: 22px 15px max(18px, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }

    .recipe-favorites-auth-dialog {
        padding-top: 32px;
    }

    .recipe-favorites-heading {
        padding-right: 2px;
    }

    .recipe-favorites-heading-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .recipe-favorites-heading h2,
    .recipe-favorites-auth-dialog h2 {
        font-size: 18px;
    }

    .recipe-favorites-item-link {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
    }

    .recipe-favorites-item-link img {
        width: 76px;
        height: 58px;
    }

    .recipe-transfer-heading {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 11px;
    }

    .recipe-transfer-logo {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .recipe-transfer-logo img {
        width: 43px;
        height: 43px;
    }

    .recipe-transfer-heading h2 {
        font-size: 18px;
    }

    .recipe-transfer-description {
        margin: 15px 0;
        font-size: 12px;
    }

    .recipe-transfer-weight {
        grid-template-columns: minmax(0, 1fr) 124px;
        gap: 10px;
    }

    .recipe-transfer-benefits {
        grid-template-columns: 1fr;
    }

    .recipe-transfer-benefits span {
        min-height: 52px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .recipe-transfer-presets {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .recipe-transfer-presets button {
        padding: 0 4px;
        font-size: 9px;
    }

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

    .ingredients-card,
    .nutrition-card,
    .steps-column {
        padding: 22px;
    }

    .steps-column .section-title {
        align-items: start;
    }

    .step-list li {
        padding: 22px 0;
        grid-template-columns: 42px 1fr;
        gap: 12px;
    }

    .step-list li > span {
        width: 42px;
        border-radius: 13px;
        font-size: 10px;
    }

    .step-list p {
        font-size: 11px;
    }

    .detail-resource {
        padding: 16px;
        grid-template-columns: 90px 1fr;
    }

    .detail-resource img {
        width: 90px;
    }

    .related-heading {
        align-items: start;
    }

    .related-heading > a {
        max-width: 90px;
        text-align: right;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .recipe-header,
    .detail-breadcrumbs,
    .detail-actions,
    .detail-resources,
    .recipe-meta,
    .related-section,
    .recipe-footer {
        display: none !important;
    }

    .recipe-favorite-button,
    .recipe-favorites-modal,
    .recipe-favorites-auth-modal {
        display: none !important;
    }

    body {
        background: white;
    }

    .recipe-detail,
    .detail-workspace {
        width: 100%;
        margin: 0;
    }

    .detail-hero,
    .ingredients-card,
    .nutrition-card,
    .steps-column {
        box-shadow: none;
    }

    .detail-image-wrap {
        min-height: 360px;
    }
}
