#lunch-prototype .lp-sidebar nav a{display:flex;align-items:center;gap:13px;padding:12px;color:var(--lp-ink);text-decoration:none;border-radius:8px;min-height:46px;font-size:14px}
#lunch-prototype .lp-sidebar nav a:hover{background:var(--lp-soft)}#lunch-prototype .lp-sidebar nav a[aria-current=page]{background:var(--lp-accent);color:white}
#lunch-prototype .lp-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;color:var(--lp-ink);background:var(--lp-surface);border:1px solid var(--lp-line);border-radius:9px;text-decoration:none;font-size:13px}
#lunch-prototype .lp-button:hover{background:var(--lp-soft);color:var(--lp-accent)}
#lunch-prototype fieldset{border:0;margin:0;padding:0;min-width:0}#lunch-prototype .lp-materials td:nth-child(3) input{width:65px;text-align:left}
#lunch-prototype .lp-inline-label{flex-direction:row;align-items:center;margin-top:16px}#lunch-prototype .lp-side-actions{display:grid;gap:12px}#lunch-prototype .lp-side-actions form,#lunch-prototype .lp-side-actions button{width:100%}
#lunch-prototype .lp-server-message{background:var(--lp-soft);color:var(--lp-accent);padding:12px 16px;border-radius:9px;margin-bottom:18px;font-size:13px}
#lunch-prototype .lp-auth-page{padding:28px 0;min-height:100vh}#lunch-prototype .lp-auth-card{max-height:none;overflow:hidden}
#lunch-prototype .lp-auth-card .lp-login-emblem{font-size:35px}#lunch-prototype .lp-validation{color:var(--lp-error);font-size:13px}#lunch-prototype .lp-validation ul{margin:0;padding-left:20px}
#lunch-prototype .lp-validation.validation-summary-valid{display:none}#lunch-prototype .lp-stat-icon{color:white;font-size:20px;background:#ffffff66}
#lunch-prototype .lp-role-badge{font-size:11px;color:var(--lp-accent);background:var(--lp-soft);padding:4px 9px;border-radius:20px}
#lunch-prototype .lp-chip-list form{display:inline-flex}#lunch-prototype .lp-daily-layout>div{min-width:0}#lunch-prototype .lp-report-draft{color:#b67708}
@media(max-width:600px){#lunch-prototype .lp-role-badge{display:none}#lunch-prototype .lp-auth-page{padding:12px 0}#lunch-prototype .lp-daily-aside .lp-total{margin-top:18px}}
@media print{#lunch-prototype .lp-date-row,#lunch-prototype .lp-server-message{display:none!important}#lunch-prototype .lp-workspace{margin-left:0}}
#lunch-prototype .lp-auth-card{display:block!important}
#lunch-prototype .lp-stat-pink .lp-stat-icon{background:#ff6692;color:white}
#lunch-prototype .lp-stat-purple .lp-stat-icon{background:#8b66ee;color:white}
#lunch-prototype .lp-stat-teal .lp-stat-icon{background:#00bea9;color:white}
/* Nested administration navigation uses the existing theme colors. */
#lunch-prototype .lp-admin-account{padding:13px 12px;margin:0 0 18px;background:var(--lp-surface);border:1px solid var(--lp-line);border-radius:10px;box-shadow:0 3px 12px #142c4805}
#lunch-prototype .lp-admin-account>small,#lunch-prototype .lp-admin-account .lp-account-icon{display:none}
#lunch-prototype .lp-admin-account>div{display:flex;align-items:center;gap:10px;min-width:0}
#lunch-prototype .lp-admin-account strong{display:block;font-size:13px;overflow-wrap:anywhere}
#lunch-prototype .lp-admin-account div div>span{font-size:11px;color:var(--lp-accent)}
#lunch-prototype .lp-account-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;color:var(--lp-accent);background:var(--lp-soft)}
#lunch-prototype .lp-nav-icon{display:inline-flex;width:21px;height:21px;flex-shrink:0;align-items:center;justify-content:center}
#lunch-prototype .lp-nav-icon svg{display:block;width:100%;height:100%}
#lunch-prototype .lp-sidebar nav a>.lp-nav-icon{color:var(--lp-muted)}
#lunch-prototype .lp-sidebar nav a[aria-current=page]>.lp-nav-icon{color:inherit}
#lunch-prototype .lp-nav-section{margin-top:12px}
#lunch-prototype .lp-nav-section>summary{display:flex;align-items:center;gap:13px;list-style:none;cursor:pointer;border-radius:8px;padding:12px;min-height:46px;color:var(--lp-ink);font-size:14px}
#lunch-prototype .lp-nav-section>summary::-webkit-details-marker{display:none}
#lunch-prototype .lp-nav-section>summary:hover{background:var(--lp-soft)}
#lunch-prototype .lp-nav-section[open]>summary{background:var(--lp-accent);color:white}
#lunch-prototype .lp-nav-chevron{margin-left:auto;flex-shrink:0;width:16px;height:16px;transition:transform .15s}
#lunch-prototype .lp-nav-section[open] .lp-nav-chevron{transform:rotate(90deg)}
#lunch-prototype .lp-nav-children{display:grid;gap:4px;margin:6px 0 2px 14px;padding-left:10px;border-left:1px solid var(--lp-line)}
#lunch-prototype .lp-sidebar .lp-nav-children a{padding:10px;gap:10px;font-size:12px;min-height:42px}
#lunch-prototype .lp-sidebar .lp-nav-children a[aria-current=page]{background:var(--lp-soft);color:var(--lp-accent)}
#lunch-prototype .lp-nav-section>summary:focus-visible{outline:2px solid var(--lp-accent);outline-offset:3px}
@media(pointer:coarse){#lunch-prototype .lp-sidebar .lp-nav-children a{min-height:44px}}
/* User creation dialog keeps the original school-lunch palette. */
#lunch-prototype .lp-users-table{min-width:1060px;font-size:12px}
#lunch-prototype .lp-users-table th{white-space:nowrap}
#lunch-prototype .lp-users-table small{font-size:10px;max-width:220px}
#lunch-prototype .lp-users-table button{font-size:11px;padding:7px 10px;white-space:nowrap}
#lunch-prototype .lp-user-dialog{width:min(760px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;margin:auto;overflow:auto;border:1px solid var(--lp-line);border-radius:12px;background:var(--lp-surface);color:var(--lp-ink);box-shadow:0 22px 80px #142c4833}
#lunch-prototype .lp-user-dialog::backdrop{background:#142c4866}
#lunch-prototype .lp-user-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 22px;border-bottom:1px solid var(--lp-line);position:sticky;top:0;background:var(--lp-surface);z-index:2}
#lunch-prototype .lp-user-dialog-header h2{flex:1;text-align:center;font-size:18px}
#lunch-prototype .lp-user-dialog-header .lp-icon{font-size:22px;padding:0;border:0;color:var(--lp-muted);width:30px;height:30px}
#lunch-prototype .lp-user-dialog-body{padding:22px;display:grid;gap:16px}
#lunch-prototype .lp-user-duty-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#lunch-prototype .lp-user-school-row{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}
#lunch-prototype .lp-user-name-row{display:grid;grid-template-columns:120px 1fr 1fr;gap:12px}
#lunch-prototype .lp-user-account-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
#lunch-prototype .lp-user-dialog label{font-size:12px}
#lunch-prototype .lp-user-dialog input:not([type=checkbox]),#lunch-prototype .lp-user-dialog select{width:100%;height:42px;padding:8px 10px;font-size:13px}
#lunch-prototype .lp-user-dialog label,#lunch-prototype .lp-user-password-field{min-width:0}
#lunch-prototype .lp-user-dialog input[readonly]{background:var(--lp-bg);color:var(--lp-muted)}
#lunch-prototype .lp-user-password-field{display:grid;gap:6px;align-content:start}
#lunch-prototype .lp-user-password-entry{position:relative}
#lunch-prototype .lp-user-password-entry input{padding-right:42px!important}
#lunch-prototype .lp-user-password-toggle{position:absolute;top:3px;right:4px;width:35px;height:35px;min-height:0;border:0;padding:7px;background:transparent;color:var(--lp-muted)}
#lunch-prototype .lp-user-password-hint{color:var(--lp-muted);font-size:10px;margin-top:-5px}
#lunch-prototype .lp-user-active-switch{display:flex;flex-direction:row;align-items:center;gap:8px;position:relative;cursor:pointer;width:max-content;max-width:100%}
#lunch-prototype .lp-user-active-switch input{position:absolute;left:0;top:0;opacity:0;width:40px;height:24px;margin:0;cursor:pointer}
#lunch-prototype .lp-switch-track{width:40px;height:24px;border-radius:20px;background:var(--lp-muted);position:relative;flex-shrink:0;pointer-events:none}
#lunch-prototype .lp-switch-track:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:white;transition:transform .15s}
#lunch-prototype .lp-user-active-switch input:checked+.lp-switch-track{background:var(--lp-accent)}
#lunch-prototype .lp-user-active-switch input:checked+.lp-switch-track:after{transform:translateX(16px)}
#lunch-prototype .lp-user-active-switch input:focus-visible+.lp-switch-track{outline:2px solid var(--lp-accent);outline-offset:3px}
#lunch-prototype .lp-user-dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--lp-line)}
@media(max-width:600px){#lunch-prototype .lp-user-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}#lunch-prototype .lp-user-dialog-body{padding:18px}#lunch-prototype .lp-user-duty-row,#lunch-prototype .lp-user-school-row,#lunch-prototype .lp-user-name-row,#lunch-prototype .lp-user-account-row{grid-template-columns:minmax(0,1fr)}#lunch-prototype .lp-user-dialog input:not([type=checkbox]),#lunch-prototype .lp-user-dialog select{font-size:16px}#lunch-prototype .lp-user-dialog-header,#lunch-prototype .lp-user-dialog-footer{padding:14px 18px}}
@media print{#lunch-prototype .lp-user-dialog{display:none!important}}
#lunch-prototype .lp-teacher-name-cell{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#lunch-prototype .lp-teacher-name-cell>span{overflow-wrap:anywhere}
#lunch-prototype .lp-teacher-row-actions{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}
#lunch-prototype .lp-teacher-row-actions form{display:inline-flex;margin:0}
#lunch-prototype button.lp-teacher-edit,#lunch-prototype button.lp-teacher-delete{width:34px;height:34px;padding:7px;border-radius:7px;background:var(--lp-surface)}
#lunch-prototype button.lp-teacher-edit{color:#d18a13;border-color:#ffe1b0}
#lunch-prototype button.lp-teacher-edit:hover{background:var(--lp-warm)}
#lunch-prototype button.lp-teacher-delete{color:var(--lp-error);border-color:#ffd3dc}
#lunch-prototype button.lp-teacher-delete:hover{background:var(--lp-bg)}
#lunch-prototype .lp-teacher-row-actions .lp-nav-icon{width:18px;height:18px}
#lunch-prototype .lp-teacher-dialog{width:min(520px,calc(100% - 24px))}
@media(pointer:coarse){#lunch-prototype button.lp-teacher-edit,#lunch-prototype button.lp-teacher-delete{width:44px;height:44px}}
#lunch-prototype .lp-teachers-table .lp-teacher-actions-column{width:112px;text-align:right;white-space:nowrap}
#lunch-prototype .lp-teachers-table th:nth-child(2){width:28%}
@media(max-width:600px){#lunch-prototype .lp-teachers-table th,#lunch-prototype .lp-teachers-table td{padding-left:10px;padding-right:10px}#lunch-prototype .lp-teachers-table .lp-teacher-actions-column{width:98px}}
@media(pointer:coarse){#lunch-prototype .lp-teachers-table .lp-teacher-actions-column{width:128px}}
#lunch-prototype .lp-committee-table{min-width:680px;font-size:12px}
#lunch-prototype .lp-committee-actions{width:145px;text-align:right;white-space:nowrap}
#lunch-prototype .lp-committee-use{display:block;margin-top:7px;font-size:11px;color:var(--lp-accent);text-decoration:none}
#lunch-prototype .lp-committee-use:hover{text-decoration:underline}
#lunch-prototype .lp-committee-dialog{width:min(660px,calc(100% - 24px))}

#lunch-prototype .lp-personnel-duty{display:block;margin-top:4px;color:var(--lp-muted,#7c8fac);font-size:12px}

/* Match the reference's compact single-line rows; wrapped content can expand. */
@media screen{
 #lunch-prototype .lp-teachers-table th{height:43px;padding-top:12px;padding-bottom:12px;line-height:1.5}
 #lunch-prototype .lp-teachers-table td{height:43px;padding-top:4px;padding-bottom:4px;line-height:1.5}
}
#lunch-prototype .lp-committee-selected{margin:0;border:1px solid var(--lp-line);border-radius:9px;padding:4px 12px}
#lunch-prototype .lp-committee-selected>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px;padding:8px 0;line-height:1.5}
#lunch-prototype .lp-committee-selected>div+div{border-top:1px solid var(--lp-line)}
#lunch-prototype .lp-committee-selected dt{font-size:12px;color:var(--lp-muted);font-weight:400}
#lunch-prototype .lp-committee-selected dd{margin:0;font-size:12px;overflow-wrap:anywhere}
#lunch-prototype .lp-menu-dialog{width:min(660px,calc(100% - 24px))}
#lunch-prototype .lp-menu-ingredient-entry{display:flex;gap:10px;align-items:center}
#lunch-prototype .lp-menu-ingredient-entry input{flex:1;min-width:0}
#lunch-prototype .lp-menu-ingredient-entry button{white-space:nowrap}
#lunch-prototype .lp-menu-ingredient-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
#lunch-prototype .lp-menu-ingredient-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--lp-line);border-radius:8px;padding:6px 12px}
#lunch-prototype .lp-menu-ingredient-list span{overflow-wrap:anywhere;min-width:0}
#lunch-prototype .lp-menu-ingredients{padding-left:20px;margin:12px 0 0;display:grid;gap:4px;font-size:13px;overflow-wrap:anywhere}
@media(max-width:600px){#lunch-prototype .lp-menu-ingredient-entry{align-items:stretch;flex-direction:column}}
#lunch-prototype .lp-committee-selected dd{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#lunch-prototype .lp-committee-selected dd>span{min-width:0;overflow-wrap:anywhere}
#lunch-prototype .lp-committee-role-edit{color:#d18a13;border-color:#ffe1b0;flex-shrink:0}
#lunch-prototype .lp-server-error{padding:12px 16px;margin-bottom:18px;border:1px solid var(--lp-error);border-radius:9px;background:var(--lp-surface)}

/* Fixed committee duties, each with its own teacher selector. */
#lunch-prototype .lp-committee-role-head{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;padding:0 12px;color:var(--lp-muted);font-size:12px;margin-bottom:-10px}
#lunch-prototype .lp-committee-fixed-roles>div{grid-template-columns:160px minmax(0,1fr);align-items:center;gap:12px;padding:8px 0}
#lunch-prototype .lp-committee-fixed-roles dt label{margin:0;font-size:13px;color:var(--lp-ink)}
#lunch-prototype .lp-committee-fixed-roles dd{display:block;min-width:0}
/* The dialog header already provides the close action. */
#lunch-prototype .lp-committee-dialog .lp-user-dialog-footer .lp-committee-close{display:none}

#lunch-prototype .lp-notification{position:fixed;inset:auto 16px 24px auto;box-sizing:border-box;width:max-content;max-width:min(440px,calc(100vw - 32px));margin:0;padding:14px 18px;border:1px solid #8bc6a3;border-left:5px solid #198754;border-radius:10px;background:var(--lp-surface);color:var(--lp-ink);box-shadow:0 8px 30px #142c482b;font:inherit;white-space:pre-line;pointer-events:none;z-index:100}
#lunch-prototype .lp-notification[data-state=error]{border-color:#e6a8af;border-left-color:#dc3545}
@media(max-width:850px){#lunch-prototype .lp-notification{bottom:calc(84px + env(safe-area-inset-bottom))}}
@media print{#lunch-prototype .lp-notification{display:none!important}}
#lunch-prototype .lp-confirmation{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid var(--lp-line);border-radius:14px;background:var(--lp-surface);color:var(--lp-ink);box-shadow:0 12px 45px #142c4833;overflow:auto}
#lunch-prototype .lp-confirmation::backdrop{background:#142c4866}
#lunch-prototype .lp-confirmation h2{margin:0 0 12px;font-size:20px}
#lunch-prototype .lp-confirmation p{margin:0 0 24px;line-height:1.7;overflow-wrap:anywhere}
#lunch-prototype .lp-confirmation-actions{display:flex;justify-content:flex-end;gap:10px}
#lunch-prototype .lp-confirmation-actions button{min-height:44px;padding:8px 18px}
#lunch-prototype .lp-confirmation .lp-confirmation-accept{background:#dc3545;border-color:#dc3545;color:#fff}
@media screen and (max-width:600px){#lunch-prototype .lp-committee-role-head{display:none}#lunch-prototype .lp-committee-fixed-roles>div{grid-template-columns:minmax(0,1fr);gap:5px;padding:9px 0}}

/* Keep form feedback in one stable area while validation changes. */
#lunch-prototype .lp-committee-feedback{display:grid;align-items:start}
#lunch-prototype .lp-committee-feedback>p{grid-area:1/1}
#lunch-prototype .lp-committee-feedback>p[hidden]{display:block!important;visibility:hidden}
@media screen{#lunch-prototype input,#lunch-prototype select,#lunch-prototype textarea{transition:none}}
/* Account access is separate from document signatory duties. */
#lunch-prototype .lp-user-access-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#lunch-prototype .lp-user-access-help{background:var(--lp-bg);padding:12px 14px;border-radius:8px;font-size:12px;line-height:1.7}
#lunch-prototype .lp-user-access-help small{display:block;color:var(--lp-muted);margin-top:4px}
#lunch-prototype .lp-user-section-label{font-size:13px;margin:0;color:var(--lp-ink)}
#lunch-prototype .lp-user-role-filters{padding:14px 18px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px}
#lunch-prototype .lp-user-role-filters label{display:flex;align-items:center;gap:5px;flex-direction:row;cursor:pointer}
#lunch-prototype .lp-user-role-filters input{width:16px;height:16px;accent-color:var(--lp-accent)}
#lunch-prototype [data-user-filter-count]{margin-left:auto;color:var(--lp-muted)}
#lunch-prototype .lp-user-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#lunch-prototype .lp-user-row-actions form{margin:0}
#lunch-prototype .lp-user-edit{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #ffc777;border-radius:8px;color:#ef8c00}
#lunch-prototype .lp-user-edit:hover{background:#fff5e6}
#lunch-prototype .lp-user-filter-empty{padding:24px;text-align:center;color:var(--lp-muted)}
#lunch-prototype [data-user-row][hidden]{display:none!important}
@media(max-width:600px){#lunch-prototype .lp-user-access-row{grid-template-columns:minmax(0,1fr)}#lunch-prototype .lp-user-edit{width:44px;height:44px}#lunch-prototype .lp-user-role-filters label{min-height:44px}}

/* Flat feedback across pages: no leading accent strip or raised shadow. */
#lunch-prototype :is([role="alert"],[role="status"]){border-inline-start:0;box-shadow:none}

/* Save and add actions share consistent colors across pages and dialogs. */
#lunch-prototype button.lp-save{--lp-action-color:#2563eb;--lp-action-hover:#1d4ed8}
#lunch-prototype button.lp-add{--lp-action-color:#198754;--lp-action-hover:#157347}
#lunch-prototype button:is(.lp-save,.lp-add){background:var(--lp-action-color);border-color:var(--lp-action-color);color:#fff;box-shadow:none}
#lunch-prototype button:is(.lp-save,.lp-add):hover{background:var(--lp-action-color);border-color:var(--lp-action-color);color:#fff}
#lunch-prototype button:is(.lp-save,.lp-add):not(:disabled):hover{background:var(--lp-action-hover);border-color:var(--lp-action-hover)}
#lunch-prototype button:is(.lp-save,.lp-add):focus-visible{outline-color:var(--lp-action-color)}
/* Date text has a fixed day/month/year order regardless of browser locale. */
#lunch-prototype .lp-date-control{display:block;position:relative;min-width:0;width:100%}
#lunch-prototype .lp-date-control .lp-date-display{width:100%;padding-right:48px;font-variant-numeric:tabular-nums}
#lunch-prototype .lp-date-control .lp-date-native{position:absolute;right:0;bottom:0;width:1px;height:1px;min-width:0;min-height:0;padding:0;border:0;opacity:0;pointer-events:none}
#lunch-prototype .lp-date-control .lp-date-picker{position:absolute;right:1px;top:1px;bottom:1px;width:44px;min-width:44px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--lp-text,#17324d);display:flex;align-items:center;justify-content:center}
#lunch-prototype .lp-date-control .lp-date-picker:hover{background:var(--lp-soft,#e4f4ff)}
#lunch-prototype .lp-date-hint{display:block;margin-top:4px;font-size:11px;font-weight:400;color:var(--lp-muted,#71849f)}
/* One consistent close control, always in the upper-right corner. */
#lunch-prototype .lp-user-dialog-header{position:relative;padding-right:64px;padding-left:64px;min-height:64px}
#lunch-prototype dialog .lp-dialog-close{position:absolute;right:12px;top:10px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:8px;background:transparent;color:var(--lp-muted,#71849f);font-size:26px;font-weight:400;line-height:1;cursor:pointer;box-shadow:none}
#lunch-prototype dialog .lp-dialog-close:hover{background:var(--lp-soft,#e4f4ff);color:var(--lp-text,#17324d)}
#lunch-prototype dialog .lp-dialog-close:focus-visible{outline:2px solid #00a5f5;outline-offset:1px}
#lunch-prototype .lp-confirmation h2{padding-right:40px}
#lunch-prototype .lp-user-dialog .lp-user-dialog-header{padding-left:56px;padding-right:56px}
#lunch-prototype .lp-date-control input.lp-date-native{width:1px!important;height:1px!important;min-height:0!important;min-width:0!important;clip-path:inset(50%)}
@media(max-width:600px){#lunch-prototype .lp-user-dialog-footer>button:only-child{grid-column:1/-1}}
