:root {
    --ff-bg: #f3f5ef;
    --ff-paper: rgba(255, 255, 255, 0.78);
    --ff-paper-strong: rgba(255, 255, 255, 0.94);
    --ff-line: rgba(17, 24, 39, 0.08);
    --ff-text: #182027;
    --ff-muted: #5f6c78;
    --ff-accent: #0c7a5b;
    --ff-accent-soft: #dcf5ec;
    --ff-shadow: 0 20px 60px rgba(24, 32, 39, 0.10);
    --ff-radius: 28px;
    --ff-font: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.app-shell {
    margin: 0;
    color: var(--ff-text);
    background: radial-gradient(circle at top left, #fff9dc 0, transparent 26%),
        linear-gradient(180deg, #eef3e8 0%, #f7f8f3 100%);
    font-family: var(--ff-font);
}

.site-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.site-orb { position: absolute; border-radius: 999px; filter: blur(22px); opacity: .55; }
.orb-a { width: 280px; height: 280px; top: -60px; right: 8%; background: rgba(255, 216, 112, .55); }
.orb-b { width: 240px; height: 240px; bottom: 12%; left: -40px; background: rgba(12, 122, 91, .16); }
.site-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(24,32,39,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(24,32,39,.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.18), transparent 92%);
}

.topbar { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(16px); background: rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.6); }
.navbar { min-height: 78px; }
.brandmark { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ff-text); text-decoration: none; }
.brandmark__dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #0c7a5b, #ffd870); box-shadow: 0 0 0 8px rgba(12,122,91,.12); }
.nav-link { color: rgba(24,32,39,.72); font-weight: 600; }
.nav-link.active, .nav-link:hover { color: var(--ff-text); }

.page-wrap { position: relative; padding: 2rem 0 4rem; }
.glass-panel, .hero-card {
    background: var(--ff-paper);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: var(--ff-shadow);
    border-radius: var(--ff-radius);
    backdrop-filter: blur(20px);
}
.hero-card { padding: 2rem; margin-top: 1rem; }
.eyebrow { display: inline-flex; padding: .4rem .85rem; border-radius: 999px; background: var(--ff-accent-soft); color: var(--ff-accent); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 1.08rem; }

.stat-panel { padding: 1.5rem; }
.stat-panel__header { font-weight: 800; margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.stat-grid--single { grid-template-columns: 1fr; }
.stat-chip {
    background: var(--ff-paper-strong);
    border: 1px solid var(--ff-line);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.stat-chip span { font-size: .9rem; color: var(--ff-muted); }

.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.info-strip__item { padding: 1.2rem 1.3rem; background: rgba(255,255,255,.74); border: 1px solid rgba(17,24,39,.06); border-radius: 22px; box-shadow: 0 12px 32px rgba(24,32,39,.06); }
.info-strip__label { display: block; color: var(--ff-muted); font-size: .84rem; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em; }

.soft-alert { border-radius: 18px; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.auth-shell { padding: 2rem 0; }
.auth-card { padding: 2rem; }
.auth-foot { color: var(--ff-muted); }

.dashboard-hero { padding: 1.5rem 1.75rem; }
.resource-box { background: var(--ff-paper-strong); border: 1px solid var(--ff-line); border-radius: 24px; padding: 1rem 1.1rem; }
.resource-box__title { color: var(--ff-muted); font-size: .85rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.resource-box__link { color: var(--ff-text); font-weight: 700; text-decoration: none; word-break: break-all; }
.resource-box__link:hover { color: var(--ff-accent); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.dropzone {
    min-height: 200px;
    border-radius: 24px;
    border: 1.5px dashed rgba(12,122,91,.35);
    background: linear-gradient(180deg, rgba(12,122,91,.05), rgba(255,255,255,.9));
    display: grid;
    place-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    padding: 1rem;
}
.dropzone:hover, .dropzone.is-dragover { transform: translateY(-2px); border-color: var(--ff-accent); box-shadow: 0 16px 36px rgba(12,122,91,.12); }
.dropzone__title { font-weight: 800; font-size: 1.05rem; display: block; }
.dropzone__text { color: var(--ff-muted); display: block; margin-top: .4rem; }

.calendar-box { background: var(--ff-paper-strong); border-radius: 24px; border: 1px solid var(--ff-line); padding: 1rem; }
.calendar-box__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.calendar-box__title { font-weight: 800; }
.calendar-nav { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(12,122,91,.08); color: var(--ff-accent); font-size: 1.2rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.calendar-day {
    aspect-ratio: 1/1;
    border-radius: 16px;
    background: rgba(24,32,39,.04);
    display: grid;
    place-items: center;
    font-size: .92rem;
    color: var(--ff-text);
    border: 0;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.calendar-day.is-label { aspect-ratio: auto; background: transparent; font-size: .72rem; color: var(--ff-muted); text-transform: uppercase; }
.calendar-day.is-empty { background: transparent; }
.calendar-day.has-menu { background: var(--ff-accent-soft); color: var(--ff-accent); font-weight: 800; cursor: pointer; }
.calendar-day.has-menu:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(12,122,91,.12); }
.calendar-day.is-passive { opacity: .6; cursor: default; }
.calendar-day.is-today { outline: 2px solid rgba(12,122,91,.28); }

.foodblock-list { display: grid; gap: .75rem; }
.foodblock-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,255,255,.85);
    border: 1px solid var(--ff-line);
    border-radius: 20px;
    padding: .95rem 1rem;
}
.foodblock-pill.is-active { border-color: rgba(12,122,91,.26); box-shadow: inset 0 0 0 1px rgba(12,122,91,.14); }
.foodblock-pill__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.dashboard-table thead th { color: var(--ff-muted); font-weight: 700; border-bottom-color: rgba(24,32,39,.08); }
.dashboard-table td, .dashboard-table th { background: transparent; }
.badge-soft { display: inline-flex; align-items: center; padding: .35rem .7rem; border-radius: 999px; background: rgba(24,32,39,.06); color: var(--ff-text); font-weight: 700; }
.table-link { color: var(--ff-accent); text-decoration: none; font-weight: 700; }

.dashboard-side { display: grid; gap: 0; }
.resource-section { margin-top: 1.2rem; display: grid; gap: .65rem; }
.resource-section__title { font-size: .84rem; font-weight: 800; color: var(--ff-muted); text-transform: uppercase; letter-spacing: .05em; }
.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--ff-line);
    text-decoration: none;
    color: var(--ff-text);
}
.resource-item:hover { color: var(--ff-accent); border-color: rgba(12,122,91,.22); }
.resource-item.is-missing { color: var(--ff-muted); background: rgba(24,32,39,.03); }

.dashboard-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.meta-card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--ff-line);
}
.meta-card__label { font-size: .82rem; color: var(--ff-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .45rem; }
.meta-card__value { font-weight: 800; }
.meta-card__subtext {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
    color: var(--ff-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.meta-card--link {
    display: grid;
    gap: 0.7rem;
}

.copy-panel {
    display: grid;
    gap: 0.7rem;
}

.copy-panel__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.copy-panel__input {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ff-line);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ff-text);
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.copy-panel__input:focus {
    outline: none;
}

.copy-panel__button {
    white-space: nowrap;
}

.copy-panel__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pricing-card { display: grid; gap: .9rem; }
.pricing-card--accent { border-top: 3px solid rgba(12,122,91,.3); padding-top: .2rem; }
.pricing-card__price { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; }
.pricing-card__period { color: var(--ff-muted); }
.pricing-list { margin: 0; padding-left: 1.1rem; color: var(--ff-text); display: grid; gap: .55rem; }

.stats-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.stats-board__item {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255,255,255,.8);
    border: 1px solid var(--ff-line);
    box-shadow: 0 12px 30px rgba(24,32,39,.05);
}
.stats-board__item span { display: block; color: var(--ff-muted); font-size: .85rem; margin-bottom: .25rem; }
.stats-board__item strong { font-size: 1.45rem; }

.editor-meta-list { display: grid; gap: 1rem; }
.editor-toolbar .form-select { min-width: 220px; }
.meal-editor-card { overflow: hidden; }
.meal-editor-table .form-control,
.meal-editor-table .form-select { min-height: 40px; font-size: .92rem; }
.meal-editor-total-row td { font-weight: 800; background: rgba(24,32,39,.03); }

.modal-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(24,32,39,.07);
}
.modal-file-item:last-child { border-bottom: 0; padding-bottom: 0; }
.modal-file-item__title { font-weight: 800; }

.modal-card { border: 0; border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--ff-shadow); }
.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 1200; display: grid; gap: .75rem; }
.ff-toast { min-width: 280px; padding: 1rem 1.1rem; border-radius: 18px; box-shadow: 0 14px 38px rgba(24,32,39,.16); background: rgba(255,255,255,.95); border: 1px solid rgba(24,32,39,.06); }
.ff-toast--success { border-color: rgba(12,122,91,.22); }
.ff-toast--error { border-color: rgba(186, 64, 64, .22); }

.form-control, .form-select, textarea { border-radius: 18px !important; border-color: rgba(24,32,39,.1) !important; min-height: 52px; box-shadow: none !important; }
textarea.form-control { min-height: auto; }
.btn { min-height: 48px; font-weight: 700; }

@media (max-width: 991.98px) {
    .info-strip { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: stretch; }
    .dashboard-meta-grid,
    .stats-board { grid-template-columns: 1fr 1fr; }
    .editor-toolbar .d-flex { width: 100%; }
}

@media (max-width: 767.98px) {
    .hero-card, .glass-panel, .auth-card { padding: 1.35rem; border-radius: 24px; }
    .stat-grid { grid-template-columns: 1fr; }
    .calendar-grid { gap: .3rem; }
    .calendar-day { border-radius: 12px; font-size: .84rem; }
    .dashboard-meta-grid,
    .stats-board { grid-template-columns: 1fr; }
    .copy-panel__row { grid-template-columns: 1fr; }
    .foodblock-pill,
    .modal-file-item { align-items: stretch; flex-direction: column; }
    .editor-toolbar .form-select { min-width: 100%; }
}
.admin-form-card .form-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #4b5563;
}

.admin-switch {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-inline-form {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-inline-grid {
    display: grid;
    gap: 0.65rem;
}

.admin-inline-grid--limit {
    grid-template-columns: 1.2fr 1.2fr 0.9fr 0.9fr 1fr 0.8fr 0.7fr 0.7fr 0.5fr 0.8fr;
}

.validation-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.6rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.validation-pill.is-error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.validation-pill.is-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.file-validation-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.protocol-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.protocol-badge {
    min-width: 8rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.protocol-badge span {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
}

.protocol-badge strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.05rem;
}

.protocol-badge--error {
    background: rgba(220, 38, 38, 0.08);
}

.protocol-badge--warning {
    background: rgba(245, 158, 11, 0.12);
}

.protocol-badge--neutral {
    background: rgba(37, 99, 235, 0.08);
}

.protocol-list {
    display: grid;
    gap: 0.9rem;
}

.protocol-issue {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.protocol-issue__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.protocol-issue--error {
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(254, 242, 242, 0.9);
}

.protocol-issue--warning {
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.92);
}

.protocol-issue--info {
    border-color: rgba(37, 99, 235, 0.14);
    background: rgba(239, 246, 255, 0.9);
}

@media (max-width: 1199.98px) {
    .admin-inline-grid--limit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .protocol-summary {
        flex-direction: column;
    }

    .admin-inline-grid--limit {
        grid-template-columns: 1fr;
    }
}

/* FoodFile 2026 visual refresh */
:root {
    --ff-bg: #f4f6fb;
    --ff-paper: rgba(255, 255, 255, 0.84);
    --ff-paper-strong: rgba(255, 255, 255, 0.96);
    --ff-line: rgba(43, 55, 72, 0.1);
    --ff-text: #1c2540;
    --ff-muted: #66728b;
    --ff-accent: #6c73ff;
    --ff-accent-strong: #4f56f5;
    --ff-accent-soft: rgba(108, 115, 255, 0.12);
    --ff-shadow: 0 28px 70px rgba(61, 76, 113, 0.13);
    --ff-radius: 30px;
    --ff-font: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
    --ff-display: "Onest", "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
}

body.app-shell {
    background:
        radial-gradient(circle at top left, rgba(255, 231, 171, 0.88) 0, transparent 22%),
        radial-gradient(circle at top right, rgba(206, 212, 255, 0.72) 0, transparent 18%),
        linear-gradient(180deg, #f7f8fc 0%, #edf1f7 100%);
}

.site-grid {
    background-image: linear-gradient(rgba(108, 115, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 115, 255, 0.05) 1px, transparent 1px);
}

.site-orb {
    filter: blur(32px);
}

.orb-a {
    left: -80px;
    top: -100px;
    width: 280px;
    height: 280px;
    background: rgba(255, 230, 166, 0.8);
}

.orb-b {
    right: 6%;
    top: 140px;
    width: 220px;
    height: 220px;
    background: rgba(205, 200, 255, 0.72);
}

.topbar {
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.navbar {
    min-height: 72px;
}

.brandmark {
    gap: 0.8rem;
}

.brandmark__glyph {
    display: inline-grid;
    gap: 0.15rem;
}

.brandmark__glyph span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ff-accent), #8bd0b7);
}

.brandmark__glyph span:nth-child(1) {
    width: 17px;
}

.brandmark__glyph span:nth-child(2) {
    width: 28px;
}

.brandmark__glyph span:nth-child(3) {
    width: 12px;
}

.brandmark__copy {
    display: grid;
    line-height: 1.05;
}

.brandmark__title {
    font-family: var(--ff-display);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brandmark__meta {
    font-size: 0.72rem;
    color: var(--ff-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-link {
    border-radius: 999px;
    padding: 0.6rem 0.95rem !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.7);
}

.hero-band,
.glass-panel,
.hero-card,
.auth-card,
.modal-card {
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-shadow);
}

.hero-band {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    background: linear-gradient(120deg, rgba(255, 230, 166, 0.94) 0%, rgba(205, 200, 255, 0.9) 48%, rgba(255, 219, 244, 0.94) 100%);
}

.hero-band__inner {
    position: relative;
    z-index: 1;
    padding: 3.4rem 3.2rem;
}

.hero-band__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
}

.hero-band__shape--a {
    width: 280px;
    height: 280px;
    right: -70px;
    top: -90px;
}

.hero-band__shape--b {
    width: 180px;
    height: 180px;
    right: 16%;
    bottom: -70px;
}

.display-food {
    font-family: var(--ff-display);
    font-size: clamp(2.7rem, 4.4vw, 4.8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.section-title {
    font-family: var(--ff-display);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lede {
    color: #4c5871;
    font-size: 1.05rem;
    max-width: 42rem;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.hero-facts,
.auth-kpis {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-facts__item,
.auth-kpi,
.tone-panel,
.soft-stat,
.notice-panel {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 38px rgba(61, 76, 113, 0.08);
}

.hero-facts__item span,
.auth-kpi span {
    display: block;
    color: var(--ff-muted);
    font-size: 0.79rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-facts__item strong,
.auth-kpi strong {
    display: block;
    font-size: 1rem;
}

.hero-illustration {
    width: min(100%, 390px);
    aspect-ratio: 1 / 1;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 54px rgba(61, 76, 113, 0.16);
    padding: 1.55rem;
    transform: rotate(-5deg);
    margin-left: auto;
}

.hero-illustration__sheet {
    height: 100%;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.9rem;
}

.hero-illustration__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-illustration__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(108, 115, 255, 0.12);
    color: var(--ff-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-illustration__tabs {
    display: flex;
    gap: 0.45rem;
}

.hero-illustration__tabs span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(108, 115, 255, 0.18);
}

.hero-illustration__rows {
    display: grid;
    gap: 0.55rem;
}

.hero-illustration__row {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr 0.55fr;
    gap: 0.55rem;
}

.hero-illustration__row span {
    display: block;
    height: 0.78rem;
    border-radius: 999px;
    background: rgba(76, 88, 118, 0.12);
}

.hero-illustration__row span:last-child {
    background: rgba(108, 115, 255, 0.26);
}

.hero-illustration__footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    align-items: end;
}

.hero-illustration__tile {
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(244, 246, 255, 0.9);
}

.hero-illustration__tile strong {
    display: block;
    font-size: 0.88rem;
}

.hero-illustration__tile small {
    display: block;
    margin-top: 0.3rem;
    color: var(--ff-muted);
}

.auth-layout {
    display: grid;
    gap: 1.5rem;
}

.auth-hero {
    padding: 2.2rem;
    border-radius: var(--ff-radius);
    background: linear-gradient(120deg, rgba(255, 230, 166, 0.92), rgba(205, 200, 255, 0.9), rgba(255, 219, 244, 0.94));
    box-shadow: var(--ff-shadow);
}

.auth-hero h1 {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 3.1vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.85rem;
}

.auth-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.auth-card__hint {
    color: var(--ff-muted);
    font-size: 0.92rem;
}

.auth-card__links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    color: var(--ff-muted);
    font-size: 0.8rem;
    margin: 1.2rem 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--ff-line);
    z-index: 0;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 0.85rem;
    background: rgba(255, 255, 255, 0.88);
}

.oauth-card {
    display: grid;
    gap: 0.8rem;
}

.oauth-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
}

.oauth-button small {
    color: rgba(255, 255, 255, 0.8);
}

.oauth-button--vk {
    background: linear-gradient(90deg, #1677ff, #2688ff);
}

.oauth-button--ya {
    background: linear-gradient(90deg, #101010, #252525);
}

.oauth-button__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
}

.oauth-note {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(108, 115, 255, 0.08);
    color: #4c5871;
    font-size: 0.9rem;
}

.dashboard-hero {
    background: linear-gradient(120deg, rgba(255, 230, 166, 0.92) 0%, rgba(205, 200, 255, 0.9) 48%, rgba(255, 219, 244, 0.94) 100%);
}

.notice-panel--green {
    background: rgba(220, 247, 224, 0.84);
    border: 1px solid rgba(98, 185, 115, 0.22);
}

.notice-panel--yellow {
    background: rgba(255, 244, 213, 0.9);
    border: 1px solid rgba(240, 184, 75, 0.22);
}

.site-footer {
    margin-top: 3rem;
    padding: 2.2rem 0 3rem;
    background: rgba(232, 236, 245, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.76);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.8fr 0.8fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.site-footer__title {
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.site-footer__copy {
    color: var(--ff-muted);
    font-size: 0.92rem;
}

.site-footer__links {
    display: grid;
    gap: 0.55rem;
}

.site-footer__links a {
    color: var(--ff-accent-strong);
    text-decoration: none;
    font-weight: 700;
}

.site-footer__meta {
    text-align: right;
    color: var(--ff-muted);
    font-size: 0.88rem;
}

.site-footer__meta strong {
    display: block;
    color: var(--ff-text);
    margin-bottom: 0.45rem;
}

.btn-dark {
    background: linear-gradient(90deg, var(--ff-accent-strong), var(--ff-accent));
    border-color: transparent;
}

.btn-dark:hover,
.btn-dark:focus {
    background: linear-gradient(90deg, #464ded, #6067ff);
    border-color: transparent;
}

.btn-outline-dark {
    background: rgba(255, 255, 255, 0.74);
}

@media (max-width: 1199.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991.98px) {
    .hero-band__inner {
        padding: 2.5rem 2rem;
    }

    .hero-facts,
    .auth-kpis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-band__inner {
        padding: 1.45rem;
    }

    .hero-facts,
    .auth-kpis,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__meta {
        text-align: left;
    }
}

/* Home page layout fixes */
.glass-panel {
    padding: clamp(1.4rem, 2vw, 2.15rem);
}

.glass-panel.dashboard-hero,
.glass-panel.hero-band,
.glass-panel.modal-card {
    padding: 0;
}

.landing-panel {
    display: grid;
    gap: 1.45rem;
}

.landing-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-mini-card {
    display: grid;
    gap: 0.7rem;
    min-height: 176px;
    padding: 1.4rem 1.45rem;
    border-radius: 26px;
    border: 1px solid rgba(108, 115, 255, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.landing-mini-card--primary {
    background: linear-gradient(180deg, rgba(247, 248, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.landing-mini-card--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 255, 0.88));
}

.landing-mini-card__title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ff-text);
}

.landing-mini-card__text {
    color: var(--ff-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.landing-aside {
    display: grid;
    gap: 1.15rem;
    align-content: start;
}

.landing-aside__title {
    font-family: var(--ff-display);
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    color: var(--ff-text);
}

.landing-aside__text {
    color: var(--ff-muted);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 28rem;
}

.landing-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.landing-feature-list li {
    position: relative;
    padding: 0.95rem 0 0.95rem 1.5rem;
    border-top: 1px solid rgba(108, 115, 255, 0.09);
    color: var(--ff-muted-strong);
    font-size: 1rem;
    line-height: 1.55;
}

.landing-feature-list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 1.45rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ff-accent-strong), #8ba7ff);
}

.landing-paths {
    display: grid;
    gap: 1rem;
}

.path-card {
    padding: 1.35rem 1.45rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 255, 0.92));
    border: 1px solid rgba(108, 115, 255, 0.08);
}

.path-card__title {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.path-card code,
.path-card__text code {
    display: inline-block;
    margin-top: 0.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ea5da1;
    font-size: 0.98rem;
    word-break: break-word;
}

.path-card__text {
    color: var(--ff-muted);
    line-height: 1.55;
}

.cta-card {
    display: grid;
    gap: 1.5rem;
    align-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 255, 0.9)),
        radial-gradient(circle at top right, rgba(108, 115, 255, 0.1), transparent 38%);
}

.cta-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.section-intro {
    color: var(--ff-muted);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 42rem;
}

.section-title {
    line-height: 1.04;
}

.pricing-list li {
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .landing-panel__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .landing-mini-card,
    .path-card {
        min-height: 0;
        padding: 1.1rem 1.15rem;
    }

    .cta-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-aside__title {
        font-size: 2rem;
    }
}

/* Dashboard refresh */
.dashboard-hero {
    padding: clamp(1.5rem, 2vw, 2.15rem);
    background:
        radial-gradient(circle at top left, rgba(255, 245, 200, 0.96), transparent 36%),
        linear-gradient(125deg, rgba(255, 231, 171, 0.92) 0%, rgba(214, 210, 255, 0.94) 50%, rgba(255, 225, 244, 0.94) 100%);
}

.dashboard-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.92fr);
    gap: 1.35rem;
    align-items: stretch;
}

.dashboard-hero__main {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.dashboard-hero__lead {
    max-width: 50rem;
}

.dashboard-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.68rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.88);
    color: #445067;
    font-size: 0.92rem;
    box-shadow: 0 10px 26px rgba(61, 76, 113, 0.08);
}

.dashboard-chip strong {
    color: var(--ff-text);
}

.dashboard-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-stat {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px rgba(61, 76, 113, 0.08);
}

.dashboard-stat span {
    display: block;
    font-size: 0.78rem;
    color: var(--ff-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.dashboard-stat strong {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.4rem;
    letter-spacing: -0.04em;
}

.dashboard-hero__aside {
    display: flex;
}

.dashboard-context-card {
    width: 100%;
    display: grid;
    gap: 0.95rem;
    align-content: start;
    padding: 1.3rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(61, 76, 113, 0.1);
}

.dashboard-context-card__title {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.dashboard-context-card__path {
    display: inline-flex;
    width: fit-content;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(12, 122, 91, 0.08);
    color: var(--ff-accent);
    font-weight: 800;
    font-size: 0.88rem;
}

.dashboard-context-card__meta {
    display: grid;
    gap: 0.45rem;
    color: var(--ff-muted);
    font-size: 0.95rem;
}

.dashboard-context-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.dashboard-workspace {
    align-items: stretch;
}

.dashboard-tools-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 252, 248, 0.9));
}

.dashboard-surface {
    display: grid;
    gap: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.88));
}

.dashboard-surface__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(24, 32, 39, 0.07);
}

.dashboard-surface__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(12, 122, 91, 0.08);
    color: var(--ff-accent);
    font-weight: 800;
    font-size: 0.86rem;
}

.dashboard-meta-grid {
    gap: 1rem;
    margin-bottom: 0;
}

.meta-card {
    min-height: 100%;
    display: grid;
    gap: 0.55rem;
    align-content: start;
    padding: 1.1rem 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.meta-card--primary,
.meta-card--action {
    grid-column: 1 / -1;
}

.meta-card--primary {
    background: linear-gradient(135deg, rgba(251, 252, 255, 0.98), rgba(245, 248, 255, 0.92));
}

.meta-card--license {
    background: linear-gradient(180deg, rgba(255, 249, 237, 0.96), rgba(255, 255, 255, 0.94));
}

.meta-card--status {
    background: linear-gradient(180deg, rgba(246, 249, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.meta-card__value {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.meta-card__subtext strong {
    color: var(--ff-text);
}

.copy-panel__input {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.88rem;
}

.copy-panel__meta {
    align-items: baseline;
}

.dashboard-files-head {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(24, 32, 39, 0.07);
}

.foodblock-pill {
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 255, 0.86));
}

.foodblock-pill strong {
    display: block;
    margin-bottom: 0.15rem;
}

.dashboard-table-shell {
    padding-top: 0.35rem;
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table thead th {
    padding-top: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: middle;
}

.section-head--spaced {
    margin-top: 0.25rem;
}

@media (min-width: 1200px) {
    .dashboard-workspace__aside .dashboard-tools-panel {
        position: sticky;
        top: 104px;
    }
}

@media (max-width: 1199.98px) {
    .dashboard-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dashboard-hero__layout {
        grid-template-columns: 1fr;
    }

    .dashboard-surface__header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .dashboard-hero {
        padding: 1.2rem;
    }

    .dashboard-hero__stats {
        grid-template-columns: 1fr;
    }

    .dashboard-chip,
    .dashboard-context-card__actions .btn,
    .dashboard-surface__tag {
        width: 100%;
        justify-content: center;
    }
}

/* Dashboard polish */
.dashboard-hero__main {
    min-width: 0;
    gap: 1.2rem;
    padding-top: 0.2rem;
}

.dashboard-hero__lead {
    max-width: 56rem;
    line-height: 1.45;
    margin-top: 0.1rem;
}

.dashboard-context-card {
    min-height: 100%;
    padding: 1.55rem 1.6rem;
    gap: 1.1rem;
}

.dashboard-surface {
    padding: 1.7rem;
    gap: 1.55rem;
}

.dashboard-tools-panel {
    padding: 1.7rem;
}

.dashboard-hero {
    padding: 1.95rem 2.05rem 1.8rem;
}

.dashboard-hero .eyebrow {
    margin: 0 0 0.35rem;
    padding: 0.55rem 1rem;
}

.dashboard-hero__layout {
    gap: 1.55rem;
}

.dashboard-hero .section-title,
.dashboard-surface .section-title {
    line-height: 1.04;
}

.dashboard-hero__chips {
    gap: 0.85rem;
}

.dashboard-chip {
    padding: 0.82rem 1rem;
    line-height: 1.35;
}

.dashboard-hero__stats {
    gap: 1rem;
}

.dashboard-stat {
    padding: 1.1rem 1.15rem 1.05rem;
}

.dashboard-stat span,
.resource-box__title,
.meta-card__label {
    line-height: 1.35;
}

.dashboard-stat span {
    margin-bottom: 0.5rem;
}

.dashboard-context-card__path {
    padding: 0.58rem 0.82rem;
}

.dashboard-context-card__meta {
    line-height: 1.5;
}

.meta-card--action {
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(242, 247, 255, 0.98), rgba(255, 255, 255, 0.94));
    border-color: rgba(92, 109, 255, 0.12);
}

.meta-card--action .meta-card__value {
    font-size: 1.05rem;
    color: var(--ff-accent-2);
}

.meta-card {
    padding: 1.25rem 1.3rem;
    gap: 0.7rem;
}

.meta-card__value {
    line-height: 1.16;
}

.meta-card__subtext {
    margin-top: 0.75rem;
    line-height: 1.55;
}

.copy-panel {
    gap: 0.85rem;
}

.copy-panel__row {
    align-items: stretch;
    gap: 0.9rem;
}

.copy-panel__input {
    min-height: 56px;
    padding-inline: 1.05rem;
    border-color: rgba(92, 109, 255, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.copy-panel__button {
    min-width: 148px;
}

.copy-panel__meta {
    padding-top: 0.15rem;
}

.dashboard-surface__header {
    gap: 1.2rem;
    padding-bottom: 0.8rem;
}

.dashboard-files-head {
    margin-top: 0.55rem;
    padding-top: 0.95rem;
}

.foodblock-list {
    display: grid;
    gap: 0.85rem;
}

.foodblock-pill {
    border: 1px solid rgba(24, 32, 39, 0.06);
}

.dashboard-table-shell {
    border-top: 1px solid rgba(24, 32, 39, 0.05);
    padding-top: 0.85rem;
}

@media (max-width: 991.98px) {
    .dashboard-hero {
        padding: 1.55rem;
    }

    .dashboard-surface {
        padding: 1.35rem;
    }

    .dashboard-tools-panel {
        padding: 1.35rem;
    }
}
