:root {
    --ink:#253c35;
    --muted:#6c7872;
    --green:#315b49;
    --line:#e2e7e1;
    --paper:#fff;
    --canvas:#f5f6f2;
    --gold:#b79b66;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    color:var(--ink);
    font-size:15px;
    background:var(--canvas);
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
}
button,input {
    font:inherit;
}
button,a,input {
    -webkit-tap-highlight-color:transparent;
}
a {
    color:inherit;
}
button {
    cursor:pointer;
}
button:disabled,fieldset:disabled button {
    cursor:not-allowed;
    opacity:.55;
}
button:focus-visible,a:focus-visible {
    outline:3px solid #b79b66;
    outline-offset:4px;
}
input:focus {
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 3px #315b4914;
}
input {
    min-width:0;
    color:var(--ink);
    border:1px solid #dce2da;
    border-radius:7px;
    background:#fff;
    padding:11px 13px;
    width:100%;
    transition:border-color .15s;
}
input:hover {
    border-color:#acb9ae;
}
fieldset {
    border:0;
    padding:0;
    margin:0;
    min-width:0;
}
[hidden] {
    display:none!important;
}
.topbar {
    min-height:87px;
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:18px max(32px,calc((100vw - 1300px)/2));
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}
.brand {
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:13px;
    font-family:Georgia,serif;
    letter-spacing:2px;
    font-size:20px;
    white-space:nowrap;
}
.brand small {
    display:block;
    font:9px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing:2px;
    color:var(--muted);
    margin-top:7px;
}
.brand-filter {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}
.brand-logo {
    width: 44px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: url(#anna-green);
}
.login-card .brand-logo {
    width: 62px;
    height: 112px;
}
.text-button {
    background:transparent;
    border:0;
    color:var(--muted);
    padding:10px;
}
.text-button span {
    margin-left:8px;
}
.workspace {
    max-width:1300px;
    margin:0 auto;
    padding:42px 32px 0;
}
.page-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    margin-bottom:30px;
}
.eyebrow {
    font-size:10px;
    font-weight:700;
    letter-spacing:1.8px;
    color:#7c806b;
    margin:0 0 12px;
}
h1 {
    font-family:Georgia,"Times New Roman",serif;
    font-size:38px;
    letter-spacing:-.7px;
    font-weight:400;
    margin:0 0 10px;
}
.intro {
    font-size:14px;
    color:var(--muted);
    margin:0;
    line-height:1.6;
}
.button {
    border:1px solid transparent;
    border-radius:7px;
    padding:12px 18px;
    font-weight:600;
    font-size:13px;
    line-height:1.2;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-decoration:none;
    white-space:nowrap;
    min-height:43px;
    transition:background .15s;
}
.secondary {
    border-color:#d8dfd6;
    background:#fff;
}
.secondary:hover {
    background:#edf1eb;
}
.primary {
    background:var(--green);
    color:#fff;
    padding:14px 23px;
}
.primary:hover {
    background:#254a3a;
}
.primary[aria-disabled=true] {
    pointer-events:none;
    opacity:.7;
}
.notice {
    border:1px solid #d8dfd6;
    background:white;
    padding:15px 19px;
    border-radius:8px;
    margin:0 0 20px;
    line-height:1.5;
}
.success {
    background:#eaf3e9;
    border-color:#cadfc8;
    color:#315c37;
}
.error {
    background:#fff0ee;
    border-color:#e7bbb4;
    color:#8a352b;
}
.date-panel {
    border:1px solid var(--line);
    background:#fff;
    border-radius:11px;
    padding:23px 25px;
    display:grid;
    grid-template-columns:1fr 1.1fr;
    gap:30px;
    margin-bottom:28px;
}
.date-editor {
    display:grid;
    grid-template-columns:auto 175px;
    gap:9px 20px;
    align-items:center;
}
.date-editor label {
    font-size:14px;
    font-weight:600;
}
.date-editor input {
    font-size:14px;
    padding:10px 12px;
}
.date-editor>span {
    font-size:12px;
    color:var(--muted);
    grid-column:1/-1;
}
.published-date {
    border-left:1px solid var(--line);
    padding-left:30px;
    display:flex;
    align-items:flex-start;
    gap:11px;
}
.status-dot {
    display:inline-block;
    background:#789a72;
    border-radius:50%;
    width:7px;
    height:7px;
    flex-shrink:0;
    margin-top:6px;
}
.published-date strong {
    display:block;
    font-size:14px;
    font-weight:600;
    margin:5px 0 7px;
}
.published-date span:not(.status-dot) {
    font-size:12px;
    color:var(--muted);
    display:block;
}
.published-date .meta-label {
    font-size:11px!important;
}
.editor-layout {
    display:grid;
    grid-template-columns:195px minmax(0,1fr);
    gap:29px;
    align-items:start;
}
.category-nav {
    position:sticky;
    top:22px;
    padding-top:11px;
}
.category-nav nav {
    display:grid;
    gap:5px;
}
.category-nav a {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    padding:12px 10px;
    border-radius:6px;
    text-decoration:none;
    font-size:11px;
    font-weight:600;
    line-height:1.5;
}
.category-nav a:hover,.category-nav a:focus {
    background:#e9eee5;
    color:#254a3a;
}
.nav-count {
    background:#e7ece2;
    border-radius:4px;
    min-width:23px;
    text-align:center;
    padding:2px 5px;
    color:#68775e;
    font-size:11px;
}
.nav-hint {
    font-size:12px;
    line-height:1.7;
    color:#7b857c;
    margin:23px 10px;
}
.category-list {
    display:grid;
    gap:17px;
}
.category-card {
    border:1px solid var(--line);
    background:var(--paper);
    border-radius:10px;
    padding:19px 22px 20px;
    scroll-margin-top:20px;
    box-shadow:0 2px 3px #26372302;
}
.category-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:16px;
}
.category-header h2 {
    font-size:13px;
    font-weight:700;
    letter-spacing:.65px;
    margin:0 0 5px;
    line-height:1.5;
}
.category-count {
    font-size:11px;
    color:var(--muted);
}
.add-button {
    background:#eff3ec;
    color:#3d6549;
    border-color:#e3eadd;
    font-size:12px;
    min-height:35px;
    padding:8px 12px;
}
.add-button:hover {
    background:#e2ebdc;
}
.add-button>span {
    font-size:18px;
    font-weight:400;
}
.column-labels,.item-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) 112px 34px;
    gap:10px;
    align-items:center;
}
.column-labels {
    font-size:9px;
    letter-spacing:1px;
    font-weight:600;
    color:#8a9288;
    margin-bottom:8px;
    padding-left:2px;
}
.item-list {
    display:grid;
    gap:8px;
}
.dish-name {
    font-size:14px;
}
.price-field {
    position:relative;
}
.price-field input {
    padding-right:29px;
    text-align:right;
    font-variant-numeric:tabular-nums;
    font-size:14px;
}
.price-field>span {
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    color:#90998d;
    font-size:13px;
    pointer-events:none;
}
.remove-button {
    background:transparent;
    border:0;
    border-radius:6px;
    width:34px;
    height:40px;
    color:#a0a99e;
    display:grid;
    place-items:center;
}
.remove-button:hover {
    background:#fff0ec;
    color:#ae5442;
}
.empty-category {
    font-size:12px;
    line-height:1.6;
    margin:0;
    color:#8b9487;
    padding:11px 0 0;
}
.category-card:has(.empty-category:not([hidden])) .column-labels {
    display:none;
}
.save-bar {
    position:sticky;
    bottom:0;
    z-index:5;
    margin-top:25px;
    border:1px solid var(--line);
    border-radius:11px 11px 0 0;
    background:#fffffff5;
    backdrop-filter:blur(12px);
    padding:19px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    box-shadow:0 -5px 25px #26372305;
}
.save-status {
    display:flex;
    gap:11px;
    align-items:flex-start;
}
.save-status strong {
    font-size:12px;
    font-weight:600;
    display:block;
}
.save-status div>span {
    font-size:11px;
    color:var(--muted);
    margin-top:5px;
    display:block;
}
.status-dot.unsaved {
    background:#c19a49;
}
.save-actions {
    display:flex;
    gap:11px;
}
.footer-note {
    text-align:center;
    font-size:10px;
    color:#9aa093;
    letter-spacing:.4px;
    padding:17px 10px 22px;
    margin:0;
}
.login-page {
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:25px;
    background:radial-gradient(ellipse at top,#e6ecdf,transparent 70%),var(--canvas);
}
.login-card {
    width:min(100%,410px);
    padding:36px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:0 14px 45px #2d452d08;
}
.login-card .brand {
    justify-content:center;
    margin-bottom:38px;
}
.login-card h1 {
    font-size:29px;
    margin-bottom:10px;
}
.login-card p {
    color:var(--muted);
    line-height:1.6;
    font-size:13px;
    margin-bottom:24px;
}
.login-card label {
    display:block;
    font-size:13px;
    font-weight:600;
    margin-bottom:8px;
}
.login-card input {
    margin-bottom:19px;
    font-size:20px;
    letter-spacing:6px;
}
.login-card .primary {
    width:100%;
}
.login-card .error {
    color:#8a352b;
}
.login-note {
    font-size:11px!important;
    text-align:center;
    margin-bottom:0!important;
}
@media(min-width:1500px) {
    .workspace {
        padding-top:49px;
    }
    .column-labels,.item-row {
        grid-template-columns:minmax(0,1fr) 120px 34px;
    }
}
@media(max-width:1000px) {
    .editor-layout {
        grid-template-columns:minmax(0,1fr);
    }
    .category-nav {
        position:static;
        padding:0;
    }
    .category-nav .eyebrow,.nav-hint {
        display:none;
    }
    .category-nav nav {
        display:flex;
        overflow-x:auto;
        gap:6px;
        padding-bottom:5px;
    }
    .category-nav a {
        white-space:nowrap;
        background:#edf0e8;
        padding:9px 10px;
    }
    .date-panel {
        gap:20px;
    }
    .date-editor {
        grid-template-columns:1fr;
    }
    .date-editor>span {
        grid-column:auto;
    }
    .published-date {
        padding-left:20px;
        align-items:center;
    }
    .save-bar {
        padding:16px;
    }
    .save-actions .button {
        padding:12px 15px;
    }
}
@media(max-width:640px) {
    .topbar {
        padding:15px 18px;
        min-height:75px;
    }
    .brand {
        font-size:17px;
        letter-spacing:1.5px;
    }
    .brand small {
        font-size:8px;
        letter-spacing:1px;
    }
    .brand-logo {
        width:38px;
        height:69px;
    }
    .workspace {
        padding:28px 15px 0;
    }
    .page-heading {
        align-items:flex-start;
        margin-bottom:23px;
        gap:13px;
    }
    .page-heading h1 {
        font-size:29px;
    }
    .page-heading .intro {
        font-size:12px;
        max-width:250px;
    }
    .pdf-link {
        padding:10px 12px;
        font-size:11px;
        min-height:38px;
        gap:5px;
        margin-top:25px;
    }
    .date-panel {
        padding:18px;
        grid-template-columns:1fr;
        gap:18px;
        margin-bottom:20px;
    }
    .date-editor {
        grid-template-columns:1fr 160px;
        gap:10px;
    }
    .date-editor label {
        font-size:12px;
    }
    .date-editor>span {
        grid-column:1/-1;
        font-size:11px;
    }
    .published-date {
        border-left:0;
        border-top:1px solid var(--line);
        padding:16px 0 0;
        align-items:flex-start;
    }
    .published-date strong {
        font-size:12px;
    }
    .published-date span:not(.status-dot) {
        font-size:11px;
    }
    .editor-layout {
        gap:14px;
    }
    .category-list {
        gap:13px;
    }
    .category-card {
        padding:16px 12px;
    }
    .category-header {
        gap:8px;
        margin-bottom:12px;
    }
    .category-header h2 {
        font-size:11px;
        letter-spacing:.3px;
    }
    .category-count {
        font-size:10px;
    }
    .add-button {
        font-size:10px;
        padding:7px 9px;
        gap:5px;
    }
    .column-labels,.item-row {
        grid-template-columns:minmax(0,1fr) 78px 27px;
        gap:6px;
    }
    .dish-name,.price-field input {
        font-size:13px;
        padding:11px 8px;
    }
    .price-field input {
        padding-right:22px;
    }
    .price-field>span {
        right:8px;
        font-size:12px;
    }
    .remove-button {
        width:27px;
    }
    .save-bar {
        margin-left:-15px;
        margin-right:-15px;
        padding:13px 15px;
        border-radius:0;
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }
    .save-status div {
        display:flex;
        gap:10px;
        align-items:center;
        flex-wrap:wrap;
    }
    .save-status div>span {
        margin:0;
        font-size:10px;
    }
    .save-status strong {
        font-size:11px;
    }
    .save-actions {
        display:grid;
        grid-template-columns:1fr 1.35fr;
        gap:8px;
    }
    .save-actions .button {
        font-size:11px;
        padding:13px 8px;
        gap:5px;
        white-space:normal;
    }
    .login-card {
        padding:28px;
    }
    .footer-note {
        font-size:9px;
    }
    .category-nav a {
        font-size:10px;
    }
}
@media(prefers-reduced-motion:no-preference) {
    html {
        scroll-behavior:smooth;
    }
}

/* Editor controls stay local to the administrative interface. */
.editor-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -6px 0 23px;
}
.editor-tools p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.category-header { gap: 8px; }
.category-heading { flex: 1; min-width: 0; }
.category-heading h2 { margin: 0; }
.category-title {
    border: 1px solid transparent;
    padding: 5px 4px;
    margin-left: -5px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}
.category-title:hover { border-color: var(--line); background: var(--canvas); }
.category-heading .category-count { display: block; margin-top: 4px; }
.category-actions { display: flex; align-items: center; gap: 3px; }
.column-labels, .item-row { grid-template-columns: 22px minmax(0, 1fr) 112px 30px; gap: 8px; }
.drag-handle {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #9ba698;
    font-size: 21px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.drag-handle:hover { background: #edf1e9; color: var(--green); }
.is-dragging { opacity: .45; outline: 2px dashed #789a72; outline-offset: 2px; }
.dragging, .dragging * { cursor: grabbing !important; user-select: none !important; }
.drag-ghost {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
    background: var(--green);
    color: white;
    border-radius: 6px;
    padding: 11px 17px;
    max-width: 300px;
    box-shadow: 0 8px 25px #253c3526;
    font-size: 13px;
}
.remove-button { font-size: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.editor-dialog { border: 1px solid var(--line); border-radius: 13px; color: var(--ink); width: min(440px, calc(100% - 32px)); padding: 27px; }
.editor-dialog::backdrop { background: #1c322d73; backdrop-filter: blur(3px); }
.editor-dialog h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; margin: 0 0 15px; }
.editor-dialog p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.editor-dialog label { display: block; font-size: 12px; font-weight: 600; margin: 21px 0 9px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.danger { background: #a04736; color: white; }
@media (max-width: 640px) {
    .editor-tools { align-items: flex-start; gap: 12px; }
    .editor-tools p { font-size: 10px; margin: 0; }
    .editor-tools .button { font-size: 11px; padding: 11px; }
    .column-labels, .item-row { grid-template-columns: 18px minmax(0, 1fr) 70px 24px; gap: 4px; }
    .drag-handle { width: 18px; font-size: 19px; }
    .category-header { flex-wrap: wrap; }
    .category-heading { flex-basis: calc(100% - 30px); }
    .category-title { font-size: 11px; }
    .category-actions { margin-left: 22px; width: calc(100% - 22px); justify-content: space-between; }
    .item-row .remove-button { width: 24px; }
}

/* Category sorting belongs to the compact navigation; dish sorting stays in the editor. */
.category-nav nav {
    display: grid;
    gap: 4px;
    max-height: calc(100vh - 175px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding: 3px;
}
.category-nav-item { display: flex; align-items: center; gap: 3px; border-radius: 6px; }
.category-nav-item:hover { background: #e9eee5; }
.category-nav-item .drag-handle { flex-shrink: 0; }
.category-nav-item a { flex: 1; min-width: 0; padding: 10px 5px; white-space: normal; background: transparent; }
.category-nav-item .nav-title { overflow-wrap: anywhere; }
.category-nav-item .nav-count { flex-shrink: 0; }
@media (max-width: 1000px) {
    .category-nav nav { display: grid; grid-template-columns: 1fr; max-height: 260px; gap: 3px; }
    .category-nav-item { background: #edf0e8; }
    .category-nav-item a { font-size: 11px; padding: 8px; white-space: normal; }
    .category-nav .eyebrow { display: block; margin-bottom: 10px; }
}
@media (max-width: 640px) {
    .category-heading { flex-basis: 100%; }
    .category-actions { margin-left: 0; width: 100%; }
}
