.sidebar {
    box-shadow: 8px 0 24px #163f3514;
}

.badge.warning {
    margin-left: 5px;
    background: #fff0ce;
    color: #90631c;
}

.empty strong,
.empty span {
    display: block;
}

.empty-state {
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px dashed #d9b86e;
    border-radius: 8px;
    background: #fffaf0;
    color: #806027;
    font-size: 13px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3d897a;
    outline: 3px solid #dceee8;
}

input:disabled {
    background: #f1f5f3;
    color: #687a74;
}

:root {
    color: #55352c;
    background: #fffafd;
}

body {
    background: #fffafd;
}

.login-page {
    background: linear-gradient(135deg, #fff1f7, #fff6dc);
}

.app-shell {
    grid-template-columns: 272px 1fr;
}

.sidebar {
    background: #fff1f7;
    color: #713552;
    border-right: 1px solid #ffd0e1;
    box-shadow: 8px 0 24px #e7588514;
}

.brand-mark,
.btn.primary,
.bar-fill {
    background: #f45b7a;
    color: #fff;
}

.brand small,
.eyebrow {
    color: #c24c72;
}

.sidebar nav > a,
.logout,
.nav-group summary,
.nav-submenu a {
    color: #713552;
}

.sidebar nav > a.active,
.sidebar nav > a:hover,
.sidebar nav .nav-submenu a.active,
.sidebar nav .nav-submenu a:hover,
.nav-group summary:hover {
    background: linear-gradient(135deg, #f45b7a, #ff826d);
    color: #fff;
}

.sidebar nav {
    display: grid;
    gap: 6px;
}

.nav-group summary {
    padding: 10px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.nav-group summary::after {
    content: "+";
    float: right;
}

.nav-group[open] summary::after {
    content: "-";
}

.nav-submenu {
    display: grid;
    gap: 3px;
    padding: 4px 0 4px 12px;
}

.sidebar nav .nav-submenu a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #713552;
    font-size: 13px;
}

.logout {
    border-color: #e9b78e;
}

.content {
    background: #fffafd;
}

.hero {
    background: linear-gradient(135deg, #f45b7a, #ff8b6b 58%, #ffb85c);
}

.hero .eyebrow {
    color: #fff2cc;
}

.hero.compact {
    padding: 20px 24px;
}

.stat-card,
.panel,
.filter-bar {
    border-color: #f4ddc5;
    box-shadow: 0 10px 24px #d9864a12;
}

.stat-card strong {
    color: #d9436e;
}

.btn.subtle,
.ingredient {
    background: #fff0dc;
    color: #a65039;
}

.badge.active,
.badge.recipe-ready {
    background: #ffe6b7;
    color: #9b5b13;
}

.bar-track {
    background: #fbe7d6;
}

.note {
    border-color: #f3d096;
    background: #fff5d8;
    color: #8a5b23;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #ef9c62;
    outline-color: #ffe0c8;
}

.segmented {
    display: flex;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #f2d6bb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px #d9864a0d;
}

.segmented a,
.segmented button {
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9a5a42;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.segmented a.active,
.segmented button.active {
    background: #f45b7a;
    color: #fff;
}

.compact-tabs {
    margin-top: 14px;
}

.report-range-tabs {
    width: 100%;
    flex-wrap: wrap;
}

.report-range-tabs button {
    flex: 1 1 auto;
}

.inline-filter {
    margin-top: 10px;
}

.filter-bar {
    flex-wrap: wrap;
}

.filter-bar label {
    min-width: min(190px, 100%);
    flex: 1 1 190px;
}

.table-wrap {
    overflow-x: auto;
}

.table-note {
    display: block;
    margin-top: 4px;
    color: #a48478;
}

.form-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f4ddc5;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.insight-card {
    padding: 14px;
    border: 1px solid #f4ddc5;
    border-radius: 10px;
    background: #fffaf4;
    color: #765044;
    font-size: 13px;
}

.mobile-menu-button {
    display: none;
}

.sidebar-close {
    display: none;
}

@media (min-width: 701px) {
    .nav-group:hover .nav-submenu {
        display: grid;
    }

    .nav-group:not([open]):not(:hover) .nav-submenu {
        display: none;
    }
}

@media (max-width: 700px) {
    .app-shell {
        display: block;
    }

    .mobile-menu-button {
        display: block;
        position: sticky;
        top: 10px;
        z-index: 20;
        margin: 10px 14px 0;
        padding: 9px 13px;
        border: 0;
        border-radius: 9px;
        background: #f45b7a;
        color: #fff;
        font-weight: 800;
    }

    .sidebar {
        display: none;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(86vw, 310px);
        max-height: 100vh;
        padding: 18px;
        overflow-y: auto;
    }

    .sidebar.mobile-open {
        display: flex;
    }

    .sidebar-close {
        display: block;
        margin: 0 0 12px auto;
        border: 0;
        background: transparent;
        color: #713552;
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    .sidebar nav {
        display: grid;
        overflow: visible;
    }

    .sidebar form {
        display: block;
    }

    .content {
        padding-top: 14px;
    }

    .panel-head {
        align-items: flex-start;
    }
}

.auth-switch {
    margin: 18px 0 0;
    color: #86606e;
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: #d9436e;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.hero-btn {
    background: #fff;
    color: #c94068;
}

.segmented.mini {
    margin: 0;
    box-shadow: none;
}

.column-chart {
    display: flex;
    min-height: 260px;
    gap: 14px;
    align-items: stretch;
    margin-top: 18px;
    padding: 12px 4px 0;
    overflow-x: auto;
}

.column-item {
    display: grid;
    grid-template-rows: 20px 190px 34px;
    min-width: 64px;
    flex: 1;
    gap: 6px;
    text-align: center;
    color: #80606c;
    font-size: 11px;
}

.column-item strong {
    font-size: 12px;
    color: #7d3f57;
}

.column-track {
    display: flex;
    align-items: flex-end;
    height: 190px;
    padding: 0 7px;
    border-bottom: 1px solid #eac9d5;
    background: repeating-linear-gradient(to top, #fff 0, #fff 46px, #f4e7ed 47px, #fff 48px);
}

.column-fill {
    display: block;
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height .2s ease;
}

.column-fill.coral { background: #ff735f; }
.column-fill.pink { background: #f45b9a; }
.column-fill.amber { background: #ffbd55; }
.column-fill.violet { background: #a875e8; }
.column-fill.peach { background: #ff9f7f; }
.column-fill.magenta { background: #d963bd; }
.column-fill.sunny { background: #ffd66b; }

.chart-insight {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff2cb;
    color: #875a16;
    font-size: 13px;
}

.action-empty {
    display: grid;
    justify-items: start;
    gap: 7px;
    padding: 18px;
}

.action-empty .btn {
    margin-top: 5px;
}

nav[role="navigation"] svg {
    width: 16px;
    height: 16px;
}

nav[role="navigation"] {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    color: #84606e;
}

nav[role="navigation"] > div:first-child {
    display: none;
}

nav[role="navigation"] > div:last-child,
nav[role="navigation"] > div:last-child > div:last-child,
nav[role="navigation"] span[aria-current="page"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

nav[role="navigation"] > div:last-child {
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3dfe6;
}

nav[role="navigation"] p {
    margin: 0;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    font-size: 13px;
}

nav[role="navigation"] a,
nav[role="navigation"] span[aria-current="page"] > span {
    display: inline-grid;
    min-width: 30px;
    min-height: 30px;
    place-items: center;
    padding: 5px 8px;
    border: 1px solid #f3d7e1;
    border-radius: 8px;
    background: #fffafd;
    color: #8b5067;
}

nav[role="navigation"] span[aria-current="page"] > span {
    border-color: #f45b7a;
    background: #f45b7a;
    color: #fff;
    font-weight: 800;
}

.content {
    overflow-anchor: none;
    transition: opacity .18s ease;
}

.content.is-loading {
    opacity: .48;
    pointer-events: none;
}

@media (max-width: 700px) {
    .hero-actions {
        display: block;
    }

    .quick-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .panel-head {
        flex-wrap: wrap;
    }

    .column-chart {
        min-height: 230px;
    }

    .column-item {
        grid-template-rows: 20px 160px 34px;
        min-width: 56px;
    }

    .column-track {
        height: 160px;
    }
}
