.of-form { --order-ink:#222a26; --order-muted:#58655e; --order-green:#246248; --order-rule:#dce2df; color:var(--order-ink); }
.of-form *, .of-form *::before, .of-form *::after { box-sizing:border-box; }
.of-heading { display:block; margin:0 0 1.65rem; }
.of-heading h1 { margin:0 0 .4rem; font-size:clamp(1.65rem,3.4vw,2rem); }
.of-heading p { margin:0; color:#626f67; }
.of-grid { display:grid; grid-template-columns:minmax(0,2.45fr) minmax(290px,1fr); align-items:start; gap:1.4rem; }
.of-personal .of-grid { grid-template-columns:minmax(0,2.05fr) minmax(310px,1fr); }
.of-main { display:grid; gap:1.25rem; min-width:0; }
.of-form .panel { background:white; border:1px solid var(--order-rule); border-radius:6px; padding:0; box-shadow:none; }
.of-form h2 { color:var(--order-ink); font-size:1.18rem; line-height:1.4; font-weight:650; margin:0; }
.of-form [hidden] { display:none !important; }
.of-form .muted { color:var(--order-muted); }
.of-form :is(input:not([type="hidden"]), select) { font:inherit; font-size:.95rem; color:var(--order-ink); background-color:white; border:1px solid #bcc9c1; border-radius:4px; }
.of-form input:focus-visible, .of-form select:focus-visible, .of-form button:focus-visible { outline:2px solid var(--order-green); outline-offset:2px; }
.of-form button { cursor:pointer; font-family:inherit; }
.of-form button:disabled { cursor:default; opacity:.46; }
.of-section-head,.of-summary-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-height:4.6rem; padding:1rem 1.45rem; }

.of-link,.of-outline,.of-filter { font-size:.9rem; color:var(--order-green); }
.of-link { border:0; background:none; padding:.4rem .1rem; }
.of-link:hover { text-decoration:underline; }
.of-outline { border:1px solid #bdcbc2; background:white; border-radius:4px; padding:.45rem .72rem; }
.of-outline:hover,.of-filter:hover,.of-remove:hover,.of-stepper button:not(:disabled):hover { background:#f1f6f2; }
.of-table-scroll { overflow-x:auto; border-radius:0 0 6px 6px; }
.of-table { width:100%; border-collapse:collapse; font-size:.94rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
.of-table :is(th,td) { border:0; border-top:1px solid var(--order-rule); text-align:center; padding:.88rem .37rem; line-height:1.45; }
.of-table :is(th,td):first-child { text-align:left; padding-left:1.45rem; }
.of-table :is(th,td):last-child { text-align:right; padding-right:1.45rem; }
.of-table thead { background:#f6f8f7; }
.of-table thead th { color:var(--order-ink); font-size:.92rem; font-weight:550; }
.of-table thead small { display:block; color:var(--order-muted); font-size:.81rem; font-weight:400; margin-top:.2rem; }
.of-table tfoot :is(th,td) { font-weight:650; padding-top:1.2rem; padding-bottom:1.2rem; }
.of-table .of-qty { width:4.2rem; text-align:center; height:2.2rem; padding:.1rem .2rem; }
.of-department-name { display:flex; align-items:center; gap:.2rem; }
.of-form .of-department-name input { width:6.6rem; padding:.4rem .3rem; height:2.2rem; border:1px solid transparent; border-bottom-color:#dce3df; border-radius:0; background-color:transparent; }
.of-department-name input:hover { border-bottom-color:#739580; }
.of-remove { color:#708177; font-size:1.12rem; width:1.55rem; height:1.75rem; padding:0; border:0; background:none; border-radius:3px; }
.of-form .of-delivery,.of-form .of-summary-body { padding:1.4rem 1.45rem; }
.of-delivery-grid { display:grid; grid-template-columns:1.45fr 1fr 1fr; gap:1rem; }
.of-delivery-grid label { display:grid; gap:.42rem; font-size:.9rem; color:var(--order-muted); min-width:0; }
.of-delivery-grid input,.of-delivery-grid select { width:100%; box-sizing:border-box; min-width:0; height:2.65rem; padding:.45rem .65rem; }
.of-delivery-grid select { appearance:none; padding-right:1.8rem; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2358655e' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .65rem center; }
.of-delivery h2 { margin-bottom:1.3rem; }
.of-check { display:flex; flex-wrap:wrap; align-items:center; gap:.58rem; margin-top:1.5rem; font-size:.94rem; }
.of-check input { width:1rem; height:1rem; accent-color:var(--order-green); margin:0; }
.of-check small { color:var(--order-muted); font-size:.85rem; }
.of-summary { position:sticky; top:1rem; min-width:0; }
.of-summary-head { min-height:4.6rem; padding-bottom:.85rem; }
.of-form .of-summary-body { padding-top:0; }
.of-summary-columns { display:grid; grid-template-columns:minmax(0,1fr) 2.5rem minmax(3.5rem,auto); gap:.5rem; align-items:center; font-size:.96rem; font-variant-numeric:tabular-nums; }
.of-summary-columns > :nth-child(2), .of-summary-columns > :last-child { text-align:right; }
.of-summary-labels { border-top:1px solid var(--order-rule); font-size:.87rem; color:var(--order-muted); padding:1.05rem 0 .6rem; }
.of-summary-meal { padding:.6rem 0; }
.of-summary-meal strong { font-weight:550; }
.of-empty { margin:.45rem 0 .7rem; padding:.5rem 0; font-size:.93rem; }
.of-cost-lines { border-top:1px solid var(--order-rule); border-bottom:1px solid var(--order-rule); margin:1.15rem 0; padding:.7rem 0; }
.of-cost-lines > div { display:flex; align-items:center; justify-content:space-between; padding:.32rem 0; font-size:.95rem; }
.of-cost-lines > div > :first-child { color:var(--order-muted); }
.of-total { display:flex; align-items:baseline; justify-content:space-between; gap:.5rem; }
.of-total output { font-size:clamp(1.65rem,2.2vw,2.15rem); line-height:1.25; font-weight:650; font-variant-numeric:tabular-nums; }
.of-form .of-submit { width:100%; margin-top:1.45rem; min-height:2.9rem; font-size:1rem; background:var(--order-green); border:1px solid var(--order-green); color:white; border-radius:4px; }
.of-filters { display:flex; gap:.35rem; flex-wrap:wrap; padding:0 1.45rem .9rem; }
.of-filter { background:white; color:var(--order-muted); border:0; padding:.42rem .8rem; border-radius:3px; }
.of-filter[aria-pressed="true"] { color:var(--order-green); background:#eaf2ed; font-weight:600; }
.of-menu-title { display:flex; align-items:baseline; flex-wrap:wrap; gap:.65rem; }
.of-menu-title .muted,.of-catalog-foot .muted { font-size:.9rem; }
.of-search { display:flex; align-items:center; gap:.45rem; width:min(15rem,43%); min-height:2.35rem; color:var(--order-muted); background:#fafbf9; border:1px solid var(--order-rule); border-radius:4px; padding:0 .65rem; }
.of-form .of-search input { width:100%; min-width:0; background:transparent; border:0; padding:.35rem 0; font-size:.9rem; }
.of-search svg { flex:none; }
.of-search:focus-within { outline:2px solid var(--order-green); outline-offset:2px; }
.of-form .of-search input:focus-visible { outline:0; }
.of-catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; padding:0 1.45rem; }
.of-dish { display:grid; grid-template-columns:3.9rem minmax(0,1fr); align-content:space-between; gap:.7rem; border:1px solid var(--order-rule); border-radius:5px; padding:.72rem; min-width:0; }
.of-dish:has(.of-choose[aria-pressed="true"]) { background:#f6faf7; border-color:#a1bda9; }
.of-dish img { width:3.9rem; height:3.9rem; border-radius:3px; object-fit:cover; background:#f3f4f2; }
.of-dish-info h3 { margin:0 0 .15rem; line-height:1.45; font-size:1.02rem; font-weight:610; }
.of-dish-info p { margin:0; font-size:.84rem; line-height:1.5; color:var(--order-muted); }
.of-dish-text .of-dish-info { grid-column:1 / -1; }
.of-dish-footer { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.of-dish-footer strong { font-weight:620; font-variant-numeric:tabular-nums; }
.of-dish-footer small { color:var(--order-muted); font-size:.8rem; font-weight:400; }
.of-choose { padding:.23rem .72rem; min-height:1.9rem; font-size:.88rem; color:var(--order-green); background:white; border:1px solid #bdcfc4; border-radius:4px; }
.of-choose[aria-pressed="true"] { background:#eaf2ed; border-color:#a3bcaa; }
.of-choose[aria-pressed="true"]:before { content:'✓ '; }
.of-choose:hover { border-color:var(--order-green); }
.of-catalog-empty { padding:1rem 1.45rem; text-align:center; color:var(--order-muted); }
.of-catalog-foot { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; min-height:3.4rem; padding:.65rem 1.45rem; }
.of-catalog-jump { text-decoration:none; font-size:.9rem; margin-right:auto; }
.of-catalog-jump:hover { text-decoration:underline; }
.of-catalog-foot .muted:empty { display:none; }
.of-pages { display:flex; align-items:center; gap:.7rem; font-size:.88rem; font-variant-numeric:tabular-nums; color:var(--order-muted); }
.of-page-btn { border:1px solid var(--order-rule); background:#fff; border-radius:4px; width:1.9rem; height:1.9rem; font-size:1.2rem; line-height:1; }
.of-selection { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; padding:0 1.45rem .9rem; }
.of-selection > span,.of-selection p { margin:0; color:var(--order-muted); font-size:.87rem; }
.of-selection > span { margin-right:.35rem; }
.of-chip { display:inline-flex; align-items:center; gap:.48rem; padding:.2rem .45rem; color:var(--order-green); border:1px solid #cdded2; border-radius:3px; background:#f1f6f2; font-size:.85rem; }
.of-chip span { font-size:1rem; line-height:1; }
.of-summary-items { max-height:36vh; overflow-y:auto; }
.of-form #department-title:focus-visible { outline:2px solid var(--order-green); outline-offset:3px; }
.of-stepper { display:inline-flex; border:1px solid #c1cdc5; border-radius:4px; align-items:center; overflow:hidden; }
.of-stepper button { width:1.95rem; height:2.15rem; border:0; background:white; color:var(--order-green); font:inherit; }
.of-form .of-stepper input { appearance:textfield; -moz-appearance:textfield; border:none; border-radius:0; border-inline:1px solid var(--order-rule); width:2.45rem; height:2.12rem; text-align:center; background:white; padding:0; }
.of-stepper input::-webkit-inner-spin-button,.of-stepper input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.of-stepper :focus-visible { outline-offset:-2px !important; }
.of-delivery-inline { border-top:1px solid var(--order-rule); margin-top:1rem; padding-top:1.15rem; }
.of-delivery-inline h2 { font-size:1rem; }
.of-delivery-inline .of-delivery-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.75rem; margin-top:.8rem; }
.of-delivery-inline .of-address { grid-column:1/-1; }
.of-sr { position:absolute; width:1px; height:1px; white-space:nowrap; overflow:hidden; clip-path:inset(50%); }
@media(max-width:1060px) {
    .of-form .of-grid { grid-template-columns:minmax(0,1fr) minmax(280px,32%); gap:1rem; }
    .of-table :is(td,th):first-child { padding-left:.8rem; }
    .of-table :is(td,th):last-child { padding-right:.8rem; }
    .of-form .of-department-name input { width:4.8rem; }
    .of-table .of-qty { width:3.3rem; }
    .of-delivery-grid { grid-template-columns:1fr 1fr; }
    .of-address { grid-column:1/-1; }
}
@media(max-width:820px) {
    .of-form .of-grid { grid-template-columns:minmax(0,1fr); }
    .of-summary { position:static; }
    .of-table { min-width:600px; }
    .of-form .of-department-name input { width:6.5rem; }
    .of-table .of-qty { width:4rem; }
}
@media(max-width:520px) {
    .of-form .of-section-head, .of-form .of-summary-head { min-height:3.9rem; padding:.85rem; }
    .of-form h2 { font-size:1.03rem; }
    .of-form .of-delivery, .of-form .of-summary-body { padding:1rem .85rem; }
    .of-form .of-summary-body { padding-top:0; }
    .of-check small { flex-basis:100%; }
}
.of-main { grid-template-columns:minmax(0,1fr); }
.of-form .panel { min-width:0; }
.of-mobile-label { display:none; }
@media(max-width:620px) {
    .of-table-scroll { overflow:visible; }
    .of-table { display:block; min-width:0; white-space:normal; }
    .of-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .of-table tbody,.of-table tfoot { display:block; }
    .of-table tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:.7rem .6rem; border-top:1px solid var(--order-rule); padding:.8rem .85rem; }
    .of-table tbody td,.of-table tbody td:first-child,.of-table tbody td:last-child { border:0; padding:0; text-align:left; }
    .of-table tbody td:first-child { grid-column:1/-1; }
    .of-department-name { justify-content:space-between; }
    .of-form .of-department-name input { width:65%; padding:.2rem; font-weight:600; }
    .of-mobile-label { display:block; font-size:.85rem; color:var(--order-ink); }
    .of-mobile-label small { display:block; color:var(--order-muted); font-size:.8rem; margin:.1rem 0 .3rem; }
    .of-table .of-qty { width:100%; height:2.35rem; }
    .of-table tbody td[data-row-count] { grid-column:1/3; color:var(--order-muted); font-size:.88rem; }
    .of-table tbody td[data-row-count]::after { content:' 份'; }
    .of-table tbody td[data-row-cost] { text-align:right; font-weight:600; }
    .of-table tfoot tr { display:flex; gap:.65rem; align-items:center; padding:1rem .85rem; border-top:1px solid var(--order-rule); }
    .of-table tfoot :is(th,td),.of-table tfoot :is(th,td):first-child,.of-table tfoot :is(th,td):last-child { border:0; padding:0; }
    .of-table tfoot td[data-column-qty] { display:none; }
    .of-table tfoot td[data-total-count] { margin-left:auto; }
    .of-table tfoot td[data-total-count]::after { content:' 份'; }
}

@media(min-width:821px) and (max-width:1180px), (min-width:621px) and (max-width:740px) {
    .of-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px) {
    .of-catalog-head { flex-wrap:wrap; }
    .of-menu-title { gap:.5rem; }
    .of-search { width:100%; }
    .of-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; padding:0 .85rem; }
    .of-dish { grid-template-columns:1fr; gap:.4rem; padding:.55rem; }
    .of-dish img { width:100%; height:auto; aspect-ratio:2.5; object-fit:cover; }
    .of-dish-info h3 { font-size:.97rem; }
    .of-dish-info p { font-size:.82rem; }
    .of-dish-footer { flex-wrap:wrap; gap:.2rem; }
    .of-dish-footer small { display:none; }
    .of-catalog-foot,.of-selection { padding-inline:.85rem; }
    .of-filters { padding:0 .85rem .8rem; gap:.18rem; }
    .of-filter { padding:.36rem .54rem; }
    .of-stepper button { width:1.35rem; height:1.85rem; }
    .of-form .of-stepper input { width:1.8rem; height:1.82rem; font-size:.88rem; }
    .of-search input { font-size:16px; }
}
.of-school-name {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:.7rem;
    padding:0 1.45rem 1.1rem;
    color:var(--order-muted);
    font-size:.95rem;
}
.of-form .of-school-name input {
    width:min(100%,22rem);
    min-width:0;
    height:2.6rem;
    padding:.4rem .65rem;
}
.of-campus .of-department-name { gap:.4rem; }
.of-campus .of-department-name input { width:5.6rem; }
@media(max-width:620px) {
    .of-school-name { display:grid; gap:.38rem; padding-inline:.85rem; }
    .of-form .of-school-name input { width:100%; }
    .of-campus .of-department-name {
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
    }
    .of-campus .of-department-name input { width:100%; min-width:0; }
}
