:root {
    --ink: #26362e;
    --muted: #718078;
    --paper: #f3f1e8;
    --surface: #fffefa;
    --sage: #dcebdc;
    --green: #2d704d;
    --green-dark: #22583c;
    --coral: #f4d6c9;
    --orange: #bd543b;
    --yellow: #f5dc7d;
    --line: #e4e5db;
    --shadow: 0 18px 48px rgba(38, 54, 46, .08);
    --heading: 'Fraunces', Georgia, serif;
    --body: 'DM Sans', sans-serif;
    --sky: #dceaf0;
}

body {
    background-color: var(--paper);
    background-image: radial-gradient(#9ca895 0.55px, transparent 0.55px);
    background-size: 18px 18px;
    color: var(--ink);
}

.topbar {
    height: 78px;
    padding-inline: max(24px, calc((100vw - 1280px) / 2));
    background: rgba(255, 254, 250, .96);
    border-bottom: 1px solid rgba(38, 54, 46, .09);
    box-shadow: 0 4px 18px rgba(38, 54, 46, .025);
}

.brand { gap: 12px; font: 700 18px/1 var(--heading); }
.brand small { margin-top: 5px; color: var(--orange); font: 800 8px/1 var(--body); letter-spacing: 1.6px; }
.brand-mark { width: 44px; height: 44px; overflow: hidden; border-radius: 15px; background: transparent; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.desktop-nav { gap: 4px; align-items: center; }
.desktop-nav a { padding: 10px 13px; border-radius: 9px; color: #56665d; font-size: 12px; transition: background-color .18s ease, color .18s ease; }
.desktop-nav a:hover,.desktop-nav a.active { background: var(--sage); color: var(--green-dark); }
.user-menu { gap: 10px; }
.user-menu>span { padding-left: 12px; border-left: 1px solid var(--line); }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); transition: background-color .18s ease, transform .18s ease; }
.icon-button:hover { background: var(--coral); transform: translateY(-1px); }

.app-main { max-width: 1280px; padding: 44px 28px 100px; }
.page-heading { margin: 8px 0 30px; }
.page-heading h1,.auth-panel h2,.manual-content h1 { font-family: var(--heading); font-weight: 650; letter-spacing: 0; }
.page-heading h1 { font-size: 36px; }
.page-heading p { color: #748078; }
.eyebrow { color: var(--orange); font-size: 9px; letter-spacing: 1.55px; }
.date-chip,.count-badge { border-color: #e8dfc1; border-radius: 8px; background: #fff9e6; color: #65562a; }
.date-chip i { color: var(--orange); }

.welcome-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    min-height: 285px;
    align-items: center;
    overflow: hidden;
    margin: 0 0 20px;
    padding: 35px 44px;
    border: 1px solid rgba(119, 94, 24, .09);
    border-radius: 12px;
    background-color: #f6dc7d;
    background-image: radial-gradient(rgba(91, 75, 30, .11) .8px, transparent .8px);
    background-size: 15px 15px;
}

.welcome-copy { position: relative; z-index: 1; max-width: 590px; }
.welcome-copy .eyebrow { color: #74591b; }
.welcome-copy h1 { margin: 13px 0 5px; font: 650 42px/1.08 var(--heading); letter-spacing: 0; }
.hello-spark { color: var(--orange); }
.welcome-copy p { margin: 9px 0 18px; color: #625a3f; font-size: 14px; }
.welcome-art { position: absolute; top: 50%; right: 8%; width: min(34%, 350px); transform: translateY(-47%) rotate(4deg); }
.welcome-art img { display: block; width: 100%; filter: drop-shadow(0 18px 12px rgba(89, 71, 31, .13)); }
.welcome-art img { animation: lunch-arrive .7s .08s cubic-bezier(.2,.75,.25,1) both; }
.welcome-date { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 7px; align-items: center; color: #665a32; font-size: 11px; font-weight: 700; }
.welcome-date i { color: var(--orange); }

.stat-grid { gap: 14px; }
.stat-card { min-height: 145px; padding: 20px 22px; border: 1px solid rgba(38, 54, 46, .055); border-radius: 10px; box-shadow: 0 5px 14px rgba(38, 54, 46, .025); }
.stat-card>span { color: #58655d; }
.stat-card strong { font: 650 37px/1.1 var(--heading); }
.stat-card>i { right: 17px; bottom: 15px; color: var(--green); opacity: .5; }
.stat-card.sage { background: #dcebdc; }
.stat-card.coral { background: #f5ded4; }
.stat-card.yellow { background: #f6e7a9; }
.stat-card.neutral { background: #dceaf0; }

.section-heading { margin-top: 34px; }
.section-heading h2,.surface h2,.quick-actions h2 { font-family: var(--heading); font-size: 22px; font-weight: 650; }
.text-link { color: var(--green); }
.menu-grid { gap: 17px; }
.menu-card { border: 1px solid rgba(38, 54, 46, .08); border-radius: 10px; box-shadow: 0 6px 18px rgba(38, 54, 46, .035); transition: transform .2s ease, box-shadow .2s ease; }
.menu-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(38, 54, 46, .09); }
.menu-illustration { height: 150px; overflow: hidden; background: #dcebdc; }
.menu-card:nth-child(4n+2) .menu-illustration { background: #f4d7cb; }
.menu-card:nth-child(4n+3) .menu-illustration { background: #dceaf0; }
.menu-card:nth-child(4n+4) .menu-illustration { background: #f6e7a9; }
.menu-illustration img { position: absolute; right: 7%; bottom: -13%; width: 80%; height: 112%; object-fit: contain; transition: transform .25s ease; }
.menu-card:hover .menu-illustration img { transform: rotate(-4deg) scale(1.04); }
.menu-illustration span { left: 13px; top: 13px; border: 1px solid rgba(38, 54, 46, .07); }
.menu-card-body { padding: 17px; }
.menu-card h3 { font-family: var(--heading); font-size: 18px; font-weight: 650; }
.menu-card p { color: #78827b; }
.menu-card-foot { border-color: #ecece5; }
.menu-card-foot>a { background: var(--sage); color: var(--green-dark); transition: background .18s ease, transform .18s ease; }
.menu-card-foot>a { width: 44px; height: 44px; }
.menu-card-foot>a:hover { background: var(--yellow); transform: rotate(5deg); }
.menu-meta { color: #69776e; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.welcome-secondary { display: inline-flex; min-height: 44px; align-items: center; padding: 0 12px; color: #5f562f; font-size: 12px; font-weight: 700; }
.welcome-secondary:hover { color: var(--green-dark); }
.person-details { flex: 1 1 auto; min-width: 0; }
.child-order-link { display: inline-flex; min-width: 80px; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 8px; background: var(--sage); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.child-order-link:hover { background: var(--yellow); color: var(--green-dark); }
.order-section { scroll-margin-top: 100px; }
.order-section-heading { margin: 24px 0 14px; }
.child-order-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); gap: 13px; }
.child-order-card { min-width: 0; padding: 18px; border: 1px solid rgba(38,54,46,.09); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(38,54,46,.035); }
.child-order-title { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.child-order-title .avatar { flex: 0 0 46px; }
.child-order-title small { display: block; color: var(--muted); font-size: 10px; }
.child-order-title h3 { margin: 2px 0 0; font: 650 18px var(--heading); }
.child-order-form { display: grid; gap: 13px; padding-top: 14px; }
.child-order-form label { display: grid; gap: 7px; color: #46564d; font-size: 12px; font-weight: 600; }
.child-order-form .btn-primary { width: 100%; justify-content: center; }
.order-section .illustrated-empty { margin-top: 0; }

.surface,.quick-actions { border-color: rgba(38, 54, 46, .08); border-radius: 10px; box-shadow: 0 6px 18px rgba(38, 54, 46, .025); }
.quick-actions>div { gap: 11px; }
.quick-actions a { border: 1px solid #edf0e8; background: #fbfcf7; transition: transform .18s ease, background .18s ease; }
.quick-actions a:hover { transform: translateY(-2px); background: var(--sage); }
.quick-actions a i { color: var(--orange); }

.auth-wrap { max-width: 1110px; min-height: 610px; grid-template-columns: 1.03fr .97fr; border: 1px solid rgba(38, 54, 46, .08); border-radius: 12px; box-shadow: 0 20px 60px rgba(38, 54, 46, .10); }
.auth-art { min-height: 610px; padding: 54px 52px; background: #f4d46b; }
.auth-art::before { position: absolute; top: 28px; right: 28px; width: 76px; height: 76px; border: 1px solid rgba(78, 86, 48, .22); border-radius: 50%; content: ''; }
.auth-art::after { position: absolute; top: 44px; right: 44px; width: 44px; height: 44px; border: 1px dashed rgba(78, 86, 48, .3); border-radius: 50%; content: ''; }
.auth-art .eyebrow { color: #755b1c; }
.auth-art h1 { max-width: 430px; font: 650 42px/1.11 var(--heading); }
.auth-art p { max-width: 310px; color: #635a3e; font-size: 14px; }
.auth-illustration { position: absolute; right: 4%; bottom: 1%; width: min(90%, 500px); max-height: 58%; object-fit: contain; filter: drop-shadow(0 18px 12px rgba(89, 71, 31, .14)); }
.auth-panel { padding: 48px 58px; }
.auth-panel h2 { margin-top: 12px; font-size: 34px; }
.auth-panel .muted { font-size: 13px; }
.auth-panel .form-stack { gap: 17px; margin-top: 27px; }
.form-stack label,.form-grid label { color: #46564d; font-size: 12px; }
.form-control,.form-select { min-height: 49px; border-color: #e0e5db; border-radius: 8px; background-color: #fffefa; }
.form-control:focus,.form-select:focus { border-color: #739c7d; box-shadow: 0 0 0 3px rgba(45, 112, 77, .11); }
.btn-primary,.btn-primary-wide { min-height: 48px; border-radius: 8px; background: var(--green); box-shadow: 0 5px 11px rgba(45, 112, 77, .15); transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn-primary:hover,.btn-primary-wide:hover { background: var(--green-dark); box-shadow: 0 8px 16px rgba(45, 112, 77, .2); transform: translateY(-1px); }
.auth-switch { margin-top: 17px; font-size: 12px; }
.auth-switch a { color: var(--green); }
.field-help { display: block; margin-top: 1px; color: #758179; font-size: 11px; font-weight: 400; line-height: 1.45; }
.text-button { min-height: 44px; padding-inline: 12px; }

.notice { border: 1px solid #c9dfca; border-radius: 8px; background: #e3f0df; }
.notice.error { border-color: #efc4b4; background: #fae6dc; }
.person-row { padding: 17px 0; }
.avatar { width: 46px; height: 46px; border: 2px solid #fff; box-shadow: 0 0 0 1px #dce9dc; }
.link-surface { background: #f9fbf5; }
.code-input { border: 1px dashed #b4c5b4; background: #f7faf3; }
.admin-form,.order-form { border-top: 3px solid var(--yellow); }
.table-surface { padding: 23px 24px 10px; }
.table thead th { color: #6b796f; }
.table tbody tr:hover { background: #fafbf6; }
.status { border: 1px solid rgba(38, 54, 46, .04); border-radius: 6px; }
.status.pending { background: #fff2c5; color: #715819; }
.status.preparing { background: #e2ebf1; color: #456577; }
.status.ready,.status.delivered { background: #dcebdc; color: #2b6444; }
.status.cancelled,.status.not_collected { background: #f5ded4; color: #924c37; }
.filter-tabs { scrollbar-width: none; scroll-snap-type: x proximity; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; scroll-snap-align: start; transition: background .18s ease, color .18s ease; }
.filter-tabs a.selected { background: var(--green); }
.kitchen-order { border: 1px solid rgba(38, 54, 46, .08); border-radius: 9px; box-shadow: 0 4px 12px rgba(38, 54, 46, .025); }
.btn-outline { border-radius: 8px; }
.mobile-nav { border-top-color: #e2e5db; box-shadow: 0 -8px 24px rgba(38, 54, 46, .06); }
.mobile-nav a.active { color: var(--green); }
.mobile-nav a.active i { display: grid; place-items: center; width: 36px; height: 28px; border-radius: 9px; background: var(--sage); }
.manual-page { max-width: 1180px; }
.manual-content h1 { font-size: 38px; }
.manual-content h2 { font-family: var(--heading); font-weight: 650; }
.school-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; max-width: 1280px; margin: 0 auto; padding: 18px 24px 26px; color: #68756c; font-size: 11px; text-align: center; }
.school-footer a { color: var(--green); font-weight: 700; }
.school-footer i { margin-right: 4px; }
.settings-surface { max-width: 900px; margin-inline: auto; padding: clamp(20px, 4vw, 36px); }
.settings-intro { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.settings-intro h2 { margin: 0; font: 650 24px var(--heading); }
.settings-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.settings-icon { display: grid; flex: 0 0 50px; width: 50px; height: 50px; place-items: center; border-radius: 16px; background: var(--sage); color: var(--green); font-size: 23px; }
.settings-form { margin-top: 0; }
.logo-setting { display: grid; grid-template-columns: minmax(0,1fr) 128px; align-items: center; gap: 18px; }
.logo-setting>div:first-child { display: grid; gap: 10px; }
.logo-setting>div:first-child>label { font-size: 12px; font-weight: 600; }
.logo-preview { display: grid; width: 128px; height: 100px; place-items: center; overflow: hidden; border: 1px dashed #c9d2c7; border-radius: 10px; background: #f5f7f0; }
.logo-preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-reset { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; }
.logo-reset .form-check-input { float: none; width: 18px; height: 18px; margin: 0; }
.settings-actions { display: flex; justify-content: flex-end; gap: 10px; }
.settings-note { display: flex; gap: 10px; align-items: flex-start; max-width: 900px; margin: 14px auto; color: #68756c; font-size: 12px; }
.settings-note i { color: var(--green); font-size: 17px; }
.profile-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); gap: 17px; max-width: 1000px; margin-inline: auto; }
.profile-grid>.surface { margin-top: 0; padding: clamp(20px,3vw,30px); }
.profile-identity { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-identity .avatar { width: 54px; height: 54px; font-size: 22px; }
.profile-identity h2 { margin: 3px 0 0; font: 650 22px var(--heading); }
.profile-identity p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.profile-form { max-width: 530px; margin-top: 22px; }
.account-security { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-section-heading { display: flex; align-items: center; gap: 12px; }
.account-section-heading .profile-contact-icon { flex: 0 0 42px; width: 42px; height: 42px; margin: 0; }
.account-section-heading h2 { margin: 0; font: 650 20px var(--heading); }
.account-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.credentials-note { margin-top: 11px; }
.profile-contact { background: linear-gradient(145deg,#e5f0e2,#f5f7eb); }
.profile-contact-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 15px; border-radius: 14px; background: #fffefa; color: var(--green); font-size: 20px; }
.profile-contact h2 { margin: 7px 0 5px; font: 650 22px var(--heading); }
.profile-contact p,.profile-contact address { color: #68756c; font-size: 13px; }
.profile-contact address { margin: 14px 0 0; }
.manual-landing { max-width: 1040px; margin: 25px auto 50px; }
.manual-landing h1 { margin: 8px 0; font: 650 42px/1.15 var(--heading); }
.manual-landing>p { margin: 0; color: var(--muted); }
.manual-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 28px; }
.manual-cards>a { position: relative; display: flex; min-height: 220px; flex-direction: column; padding: 22px; border: 1px solid rgba(38,54,46,.08); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 6px 18px rgba(38,54,46,.035); transition: transform .18s ease, box-shadow .18s ease; }
.manual-cards>a:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(38,54,46,.09); }
.manual-cards>a>span { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 20px; border-radius: 14px; background: var(--sage); color: var(--green); font-size: 20px; }
.manual-cards>a:nth-child(2)>span { background: var(--sky); color: #456577; }
.manual-cards>a:nth-child(3)>span { background: var(--coral); color: var(--orange); }
.manual-cards>a>small { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.manual-cards>a>strong { margin-top: 6px; font: 650 20px/1.25 var(--heading); }
.manual-cards>a>p { margin: 6px 24px 0 0; color: var(--muted); font-size: 12px; }
.manual-cards .card-arrow { position: absolute; right: 20px; bottom: 20px; color: var(--green); }
.manual-back { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.manual-content ol { display: grid; gap: 9px; padding-left: 22px; color: #59665d; }
.manual-content li { padding-left: 3px; }
.manual-contact { margin-top: 22px; padding: 15px; border-radius: 8px; background: #f7edc7; color: #665a32 !important; font-size: 12px; }
.swal2-popup { width: min(32em, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-family: var(--body); box-shadow: var(--shadow); }
.swal2-title { color: var(--ink); font: 650 28px/1.2 var(--heading); }
.swal2-html-container { color: var(--muted); font-size: 14px; }
.swal2-actions button { height: 48px !important; min-height: 48px !important; border-radius: 8px !important; font: 700 13px var(--body) !important; }

@keyframes page-enter {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lunch-arrive {
    from { opacity: 0; transform: translateY(13px) rotate(3deg) scale(.96); }
    to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.app-main > section,
.app-main > .content-grid,
.app-main > .menu-grid,
.app-main > .stat-grid,
.app-main > .quick-actions {
    animation: page-enter .38s ease both;
}

.app-main > :nth-child(2) { animation-delay: .045s; }
.app-main > :nth-child(3) { animation-delay: .09s; }
.app-main > :nth-child(4) { animation-delay: .13s; }

:focus-visible {
    outline: 3px solid rgba(45, 112, 77, .42);
    outline-offset: 3px;
}

button,
.btn-primary,
.btn-outline,
.text-button,
.filter-tabs a,
.mobile-nav a {
    -webkit-tap-highlight-color: transparent;
}

button:active,
.btn-primary:active,
.btn-outline:active,
.quick-actions a:active,
.menu-card-foot>a:active {
    transform: scale(.98);
}

button:disabled { cursor: wait; opacity: .82; }
.btn-primary.is-loading { gap: 9px; }
.button-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spinner-turn .7s linear infinite; }
@keyframes spinner-turn { to { transform: rotate(360deg); } }

.notice { overflow: hidden; transition: opacity .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease, padding .25s ease; }
.notice-dismissed { max-height: 0; margin-block: 0; padding-block: 0; opacity: 0; transform: translateY(-5px); }

.illustrated-empty {
    display: grid;
    justify-items: center;
    max-width: 440px;
    margin: 16px auto 8px;
    padding: 20px 18px 25px;
    text-align: center;
}

.illustrated-empty img { display: block; width: 156px; height: 114px; object-fit: contain; }
.illustrated-empty strong { margin-top: 8px; color: var(--ink); font: 650 20px/1.25 var(--heading); }
.illustrated-empty p { max-width: 345px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.menu-empty { grid-column: 1 / -1; max-width: 520px; min-height: 280px; align-content: center; }
.menu-empty img { width: 190px; height: 140px; }
.kitchen-empty { grid-column: 1 / -1; max-width: 440px; }

.page-kitchen .app-main { max-width: 1380px; }
.page-kitchen .page-heading { padding-bottom: 16px; border-bottom: 1px solid rgba(38,54,46,.12); }
.page-kitchen .kitchen-list { padding-top: 8px; }
.page-kitchen .kitchen-order { grid-template-columns: 112px minmax(0,1fr) 120px 150px; }
.role-admin .admin-form { background: linear-gradient(120deg, #fffefa 0%, #fffefa 72%, #fbf8e9 100%); }
.role-guardian .order-form { background: linear-gradient(120deg, #fffefa 0%, #fffefa 75%, #f1f7ed 100%); }

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover i,.text-link:hover i { transform: translateX(3px); }
    .btn-primary i,.text-link i { transition: transform .18s ease; }
}

@media (max-width: 900px) {
    .desktop-nav { gap: 0; }
    .desktop-nav a { padding-inline: 9px; }
    .user-menu>span { display: none; }
    .welcome-banner { grid-template-columns: minmax(0, 1fr) 220px; padding: 30px; }
    .welcome-art { right: 4%; width: 36%; }
    .auth-panel { padding-inline: 40px; }
}

@media (max-width: 700px) {
    body { background-size: 22px 22px; }
    .topbar { height: 66px; padding-inline: 16px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 40px; height: 40px; }
    .app-main { padding: 27px 16px 96px; }
    .page-heading h1 { font-size: 32px; }
    .welcome-banner { grid-template-columns: minmax(0, 1fr); min-height: 325px; padding: 25px 22px; }
    .welcome-copy { align-self: start; }
    .welcome-copy h1 { max-width: 245px; font-size: 35px; }
    .welcome-copy p { max-width: 235px; font-size: 12px; }
    .welcome-actions { gap: 5px; }
    .welcome-secondary { min-height: 48px; }
    .welcome-art { top: auto; right: 0; bottom: -7px; width: 62%; transform: rotate(5deg); }
    .welcome-art { width: 56%; }
    .welcome-date { top: 12px; right: 12px; bottom: auto; padding: 5px 7px; border-radius: 6px; background: rgba(255, 250, 231, .92); font-size: 9px; }
    .stat-grid { gap: 10px; }
    .stat-card { min-height: 128px; padding: 16px; }
    .stat-card strong { font-size: 32px; }
    .stat-card small { max-width: calc(100% - 19px); }
    .stat-card>i { right: 9px; bottom: 9px; font-size: 16px; opacity: .28; }
    .section-heading { margin-top: 29px; }
    .section-heading h2,.surface h2,.quick-actions h2 { font-size: 20px; }
    .menu-grid { gap: 11px; }
    .menu-illustration { height: 112px; }
    .menu-illustration img { right: 0; width: 94%; height: 108%; }
    .menu-card-body { padding: 13px; }
    .menu-card h3 { font-size: 16px; }
    .menu-card p { min-height: 43px; }
    .auth-wrap { min-height: auto; margin: 0; grid-template-columns: minmax(0, 1fr); }
    .auth-art { min-height: 260px; padding: 28px 24px; }
    .auth-art h1 { max-width: 270px; margin-top: 14px; font-size: 33px; }
    .auth-art p { max-width: 235px; font-size: 12px; }
    .auth-art::before { top: 18px; right: 17px; width: 58px; height: 58px; }
    .auth-art::after { top: 31px; right: 30px; width: 32px; height: 32px; }
    .auth-illustration { right: 0; bottom: -7%; width: 47%; max-height: 72%; }
    .auth-panel { padding: 29px 23px 31px; }
    .auth-panel h2 { font-size: 30px; }
    .form-stack { gap: 14px; }
    .surface,.quick-actions { padding: 18px; }
    .table-surface { padding: 17px; }
    .table-surface { padding: 0; border: 0; background: transparent; box-shadow: none; }
    .table-surface .section-heading { padding-inline: 2px; }
    .kitchen-order { border-radius: 9px; }
    .manual-content h1 { font-size: 32px; }
    .manual-landing { margin-top: 15px; }
    .manual-landing h1 { font-size: 34px; }
    .manual-cards { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 20px; }
    .manual-cards>a { min-height: 174px; padding: 18px; }
    .manual-cards>a>span { margin-bottom: 12px; }
    .settings-intro { align-items: flex-start; }
    .settings-intro h2 { font-size: 21px; }
    .logo-setting { grid-template-columns: minmax(0,1fr) 82px; gap: 10px; }
    .logo-preview { width: 82px; height: 82px; }
    .settings-actions { justify-content: stretch; }
    .settings-actions>* { flex: 1; }
    .school-footer { padding-inline: 18px; }
        .school-footer { padding-inline: 18px; }
        .profile-grid { grid-template-columns: minmax(0,1fr); gap: 11px; }
        .profile-grid>.surface { padding: 18px; }
        .person-row { align-items: flex-start; gap: 10px; }
        .child-order-grid { grid-template-columns: minmax(0,1fr); }
        .child-order-card { padding: 16px; }
        .child-order-link { min-width: 66px; padding-inline: 9px; }
        .order-section-heading { align-items: flex-end; }
    .page-kitchen .kitchen-order { grid-template-columns: minmax(0,1fr) auto; }
    .page-kitchen .page-heading { align-items: center; }
    .illustrated-empty { padding-inline: 8px; }
    .illustrated-empty img { width: 138px; height: 102px; }
    .menu-empty { min-height: 235px; }
    .mobile-nav { padding-bottom: calc(6px + env(safe-area-inset-bottom)); background: var(--surface); }
    .mobile-nav a { flex: 1 1 0; min-width: 44px; min-height: 48px; justify-content: center; }
    .mobile-nav a span { font-size: 8px; white-space: nowrap; }
    .btn-primary,.btn-primary-wide,.btn-outline { min-height: 48px; }
    .manual-head .btn-outline { min-height: 48px; }
    .filter-tabs a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}