:root {
  --white: #ffffff;
  --orange: #fd6b2a;
  --red: #eb3701;
  --dark-red: #ba2900;
  --brown: #2c140c;
  --ink: #241712;
  --muted: #806d65;
  --canvas: #fff8f5;
  --soft: #fff1eb;
  --line: #ecd7ce;
  --line-strong: #dfb9aa;
  --success: #27864f;
  --success-soft: #e8f6ee;
  --warning: #9b5b05;
  --warning-soft: #fff3d6;
  --danger-soft: #fff0ec;
  --shadow: 0 14px 34px rgba(80, 34, 18, .08);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
  min-height: 100vh;
  margin: 0;
  border-top: 4px solid var(--brown);
  background:
    radial-gradient(circle at -3% 24%, rgba(253, 107, 42, .10) 0 130px, transparent 132px),
    radial-gradient(circle at 103% 82%, rgba(186, 41, 0, .07) 0 170px, transparent 172px),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button, input, select { font: inherit; }
button { color: inherit; }

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(253, 107, 42, .22);
  outline-offset: 2px;
}

.wo-page {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.wo-top-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.wo-header {
  display: contents;
}

.wo-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.wo-logo {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--red);
  box-shadow: 0 8px 18px rgba(235, 55, 1, .23);
}
.wo-logo svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wo-brand-line { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: clamp(20px, 2vw, 28px); white-space: nowrap; }
.wo-brand-line strong { overflow: hidden; text-overflow: ellipsis; }
.wo-brand-line > span:last-child { color: var(--muted); font-weight: 650; }
.wo-subtitle { margin-top: 3px; color: var(--muted); font-size: 13px; }
.wo-header-actions { display: flex; grid-column: 3; grid-row: 1; gap: 9px; }

.wo-button, .wo-icon-button, .wo-role-tabs button {
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.wo-button { min-height: 42px; padding: 9px 16px; }
.wo-button[hidden], .wo-icon-button[hidden] { display: none; }
.wo-button:hover:not(:disabled), .wo-icon-button:hover:not(:disabled), .wo-role-tabs button:hover:not(:disabled) { transform: translateY(-1px); }
.wo-button:disabled, .wo-icon-button:disabled { cursor: default; opacity: .52; }
.wo-button-light { border-color: #e4e7eb; background: #f2f4f6; color: #3e4754; }
.wo-button-outline { border-color: var(--line-strong); background: var(--white); color: var(--dark-red); }
.wo-button-primary { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(235, 55, 1, .18); }
.wo-button-primary:hover:not(:disabled) { background: var(--dark-red); border-color: var(--dark-red); }
.wo-button-danger { border-color: #f0c7bb; background: #fff; color: var(--dark-red); }

.wo-role-tabs {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 1px 0 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .88);
  box-shadow: none;
}
.wo-role-tabs[hidden] { display: none; }
.wo-role-tabs button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-color: transparent;
  color: var(--muted);
}
.wo-role-tabs button svg, .wo-icon-button svg, .wo-inline-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wo-role-tabs button.is-active { border-color: var(--orange); background: var(--soft); color: var(--dark-red); box-shadow: inset 0 0 0 1px rgba(253,107,42,.08); }

.wo-date-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: minmax(430px, auto) 1fr;
  align-items: end;
  gap: 12px 20px;
  padding: 3px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.wo-date-main { display: flex; align-items: end; gap: 8px; }
.wo-date-field { display: grid; min-width: 220px; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.wo-date-field input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 7px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color-scheme: light;
}
.wo-icon-button { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-color: var(--line-strong); color: var(--dark-red); }
.wo-status { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 42px; }
.wo-status[hidden] { display: none; }
.wo-status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 800; }
.wo-status-pill.is-draft { background: var(--warning-soft); color: var(--warning); }
.wo-status-pill.is-posted { background: var(--success-soft); color: var(--success); }
.wo-status-pill.is-empty { background: #f2efed; color: var(--muted); }
.wo-status-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.wo-date-panel.is-worker {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
}
.wo-date-panel.is-worker .wo-date-main { display: block; }
.wo-date-panel.is-worker .wo-date-field { width: 180px; min-width: 0; gap: 4px; }
.wo-date-panel.is-worker .wo-date-field input { height: 42px; padding: 6px 10px; font-size: 15px; }
.wo-date-panel.is-worker .wo-status { min-height: 39px; }

.wo-history { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; padding-top: 12px; border-top: 1px solid #f0e3dd; }
.wo-history[hidden] { display: none; }
.wo-history-label { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.wo-history-list { display: flex; min-width: 0; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 5px; }
.wo-history-chip { flex: 0 0 auto; min-height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 6px 11px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.wo-history-chip.is-active { border-color: var(--orange); background: var(--soft); color: var(--dark-red); }

.wo-notice { margin-top: 12px; border: 1px solid #f0cfbf; border-radius: 13px; padding: 11px 14px; background: #fffaf7; color: #77402d; font-size: 13px; animation: wo-notice-enter .2s ease-out both; }
.wo-notice[hidden] { display: none; }
@keyframes wo-notice-enter { from { opacity: 0; transform: translateY(-4px); } }
.wo-content { min-height: 330px; margin-top: 14px; transition: opacity .18s ease, transform .18s ease; }
.wo-content.is-loading { opacity: .48; pointer-events: none; }
.wo-content.is-entering { animation: wo-view-enter .26s cubic-bezier(.2,.72,.24,1) both; }
.wo-content.is-section-entering { animation: wo-section-enter .22s cubic-bezier(.2,.72,.24,1) both; }
#catalogBody.is-grid-entering { animation: wo-grid-enter .2s ease-out both; }
@keyframes wo-view-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes wo-section-enter { from { opacity: .15; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes wo-grid-enter { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.wo-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.wo-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px 13px; border-bottom: 1px solid #f2e5df; }
.wo-card-title { margin: 0; font-size: 19px; }
.wo-card-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.wo-eyebrow { display: block; margin-bottom: 3px; color: var(--dark-red); font-size: 11px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.wo-empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.wo-empty svg { width: 38px; height: 38px; margin-bottom: 10px; fill: none; stroke: #c9aaa0; stroke-width: 1.5; }

.wo-manager-card { overflow: hidden; }
.wo-table-wrap { overflow-x: auto; }
.wo-summary-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.wo-summary-table th { padding: 10px 18px; background: var(--soft); color: var(--dark-red); text-align: left; font-size: 11px; letter-spacing: .035em; text-transform: uppercase; }
.wo-summary-table th:nth-child(2), .wo-summary-table td:nth-child(2) { width: 150px; text-align: right; }
.wo-summary-table th:nth-child(3), .wo-summary-table td:nth-child(3) { width: 230px; }
.wo-summary-table td { padding: 12px 18px; border-bottom: 1px solid #f2e5df; vertical-align: middle; }
.wo-summary-table tbody:last-child tr:last-child td { border-bottom: 0; }
.wo-role-row td { padding: 11px 18px 8px; background: #fffdfc; color: var(--brown); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.wo-role-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--orange); }
.wo-amount { white-space: nowrap; font-weight: 850; }
.wo-reason { color: var(--muted); }
.wo-archive-mark { margin-left: 7px; border-radius: 999px; padding: 3px 7px; background: #f4efec; color: var(--muted); font-size: 10px; font-weight: 750; }
.wo-manager-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-top: 1px solid #f2e5df; background: #fffdfc; }
.wo-manager-total { font-size: 13px; color: var(--muted); }
.wo-manager-total strong { color: var(--ink); }

.wo-cashier-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.wo-catalog-card { min-width: 0; overflow: hidden; }
.wo-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.wo-catalog-heading { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 9px; }
.wo-search { position: relative; width: min(420px, 100%); }
.wo-search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; pointer-events: none; }
.wo-search input { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px 8px 40px; background: #fffdfc; }
.wo-back-category { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; border: 1px solid #efc5b5; border-radius: 999px; padding: 6px 11px 6px 9px; background: var(--soft); color: var(--dark-red); cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.wo-back-category:hover { border-color: var(--orange); background: #ffe5da; box-shadow: 0 5px 12px rgba(186,41,0,.08); }
.wo-back-category svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wo-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; padding: 4px 18px 18px; }
.wo-category-card, .wo-product-card { position: relative; display: grid; grid-template-rows: auto minmax(64px, 1fr); height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.wo-category-card:hover, .wo-product-card:hover { border-color: #e5ad98; box-shadow: 0 10px 20px rgba(75,31,17,.08); }
.wo-category-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #ffe7dc, #fff8f5); }
.wo-category-image img, .wo-product-image img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; padding: 4px 6px 2px; background: #fff; object-fit: contain; object-position: center; }
.wo-image-fallback { position: absolute; z-index: 0; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #ffe6da, #fff7f3); color: rgba(186,41,0,.38); font-size: 32px; font-weight: 900; }
.wo-category-copy, .wo-product-name { display: flex; width: 100%; min-width: 0; min-height: 64px; align-items: center; justify-content: center; padding: 11px 12px; font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center; overflow-wrap: break-word; text-wrap: balance; }
.wo-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 4px 18px 18px; }
.wo-product-card { padding: 0; }
.wo-product-card:disabled { cursor: default; opacity: .75; }
.wo-product-card:disabled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.wo-product-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }

.wo-history-card { overflow: hidden; }
.wo-entry-list { display: grid; grid-template-columns: minmax(0, 1fr); max-height: none; overflow: visible; padding: 7px 12px 12px; }
.wo-entry { display: grid; grid-template-columns: minmax(0, 1fr) 54px 112px 150px 38px 58px; align-items: center; gap: 4px 16px; min-height: 66px; padding: 10px 24px 10px 10px; border-bottom: 1px solid #f0e3dd; }
.wo-entry:not(.has-delete) { grid-template-columns: minmax(0, 1fr) 54px 112px 150px 58px; }
.wo-entry:last-child { border-bottom: 0; }
.wo-entry-name { grid-column: 1; min-width: 0; font-weight: 780; line-height: 1.25; }
.wo-entry-archive { display: inline-flex; grid-column: 2; min-height: 22px; align-items: center; justify-self: end; border-radius: 999px; padding: 3px 7px; background: #f4efec; color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1; }
.wo-entry-archive:empty { visibility: hidden; }
.wo-entry-amount { grid-column: 3; justify-self: start; width: 100%; color: var(--dark-red); font-variant-numeric: tabular-nums; font-weight: 850; text-align: left; white-space: nowrap; }
.wo-entry-reason { grid-column: 4; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.3; }
.wo-entry-delete { display: grid; grid-column: 5; justify-self: end; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid #efc7ba; border-radius: 9px; background: #fff; color: var(--dark-red); cursor: pointer; }
.wo-entry-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wo-entry-time { grid-column: 6; justify-self: end; width: 100%; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.wo-entry:not(.has-delete) .wo-entry-time { grid-column: 5; }

.wo-cook-card { overflow: hidden; }
.wo-cook-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 18px 18px; }
.wo-cook-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 82px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 17px; background: #fffdfc; }
.wo-cook-row:nth-child(even) { background: #fff6f1; }
.wo-cook-name { font-size: 16px; font-weight: 800; }
.wo-cook-note { margin-top: 4px; color: var(--muted); font-size: 11px; }
.wo-stepper { display: grid; grid-template-columns: 52px 82px 52px; align-items: center; gap: 8px; }
.wo-stepper button { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--dark-red); cursor: pointer; font-size: 24px; font-weight: 650; }
.wo-stepper button:hover:not(:disabled) { background: var(--soft); border-color: var(--orange); }
.wo-stepper button:disabled { cursor: default; opacity: .45; }
.wo-stepper input { width: 82px; height: 52px; border: 1px solid var(--line); border-radius: 13px; background: var(--brown); color: #fff; text-align: center; font-size: 17px; font-weight: 850; }
.wo-autosave { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; color: var(--muted); font-size: 12px; }
.wo-autosave.is-saving { color: var(--warning); }
.wo-autosave.is-saved { color: var(--success); }

.wo-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; }
.wo-modal[hidden] { display: none; }
.wo-modal-backdrop { position: absolute; inset: 0; background: rgba(44, 20, 12, .54); backdrop-filter: blur(3px); }
.wo-modal-card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; background: #fff; box-shadow: 0 28px 70px rgba(44,20,12,.28); animation: wo-modal-in .18s ease-out; }
@keyframes wo-modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.wo-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 20px 14px; border-bottom: 1px solid var(--line); }
.wo-modal-header h2 { margin: 0; font-size: 19px; }
.wo-modal-close { position: relative; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.wo-modal-close::before, .wo-modal-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: 0; border-radius: 2px; background: var(--brown); transform: translate(-50%, -50%) rotate(45deg); }
.wo-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.wo-modal-body { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr); gap: 13px 20px; padding: 20px; }
.wo-modal-body .wo-modal-field { grid-column: 1; }
.wo-modal-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.wo-modal-field input, .wo-modal-field select { width: 100%; height: 56px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 12px; background: #fffdfc; color: var(--ink); font-size: 17px; }
.wo-keypad { display: grid; grid-column: 2; grid-row: 1 / 3; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.wo-key { min-height: 61px; border: 1px solid var(--line); border-radius: 12px; background: var(--brown); color: #fff; cursor: pointer; font-size: 19px; font-weight: 800; }
.wo-key:hover { border-color: var(--orange); background: var(--soft); color: var(--brown); }
.wo-key.is-clear { border-color: var(--red); background: var(--red); color: #fff; font-size: 13px; }
.wo-modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px 19px; border-top: 1px solid var(--line); }

.wo-toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 1200; display: grid; gap: 8px; width: min(390px, calc(100% - 36px)); }
.wo-toast { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 12px 14px; background: #fff; box-shadow: 0 14px 34px rgba(44,20,12,.18); animation: wo-toast-in .18s ease-out; font-size: 13px; }
.wo-toast.is-success { border-left-color: var(--success); }
@keyframes wo-toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1280px) {
  .wo-page { width: min(100% - 28px, 1100px); }
  .wo-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wo-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wo-category-grid, .wo-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wo-entry-list { grid-template-columns: 1fr; }
  .wo-entry { grid-template-columns: minmax(0, 1fr) 50px 104px 38px 54px; grid-template-rows: auto auto; gap: 4px 10px; }
  .wo-entry:not(.has-delete) { grid-template-columns: minmax(0, 1fr) 50px 104px 54px; }
  .wo-entry-name { grid-column: 1; grid-row: 1; }
  .wo-entry-archive { grid-column: 2; grid-row: 1; }
  .wo-entry-amount { grid-column: 3; grid-row: 1; }
  .wo-entry-reason { grid-column: 1 / 4; grid-row: 2; }
  .wo-entry-delete { grid-column: 4; grid-row: 1 / 3; align-self: center; }
  .wo-entry-time { grid-column: 5; grid-row: 1 / 3; align-self: center; }
  .wo-entry:not(.has-delete) .wo-entry-time { grid-column: 4; }
}

@media (max-width: 760px) {
  body { border-top-width: 3px; background: var(--canvas); }
  .wo-page { width: calc(100% - 20px); padding: 13px 0 28px; }
  .wo-top-panel { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 12px; }
  .wo-header-actions { grid-column: 2; }
  .wo-logo { width: 39px; height: 39px; flex-basis: 39px; border-radius: 11px; }
  .wo-brand-line { display: block; font-size: 18px; white-space: normal; }
  .wo-brand-line > span:first-of-type { display: none; }
  .wo-brand-line > span:last-child { display: block; margin-top: 1px; font-size: 15px; }
  #homeButton { display: none; }
  .wo-button { min-height: 40px; padding: 8px 12px; }
  .wo-role-tabs { gap: 4px; padding: 4px; }
  .wo-role-tabs button { min-height: 45px; gap: 5px; padding: 7px 4px; font-size: 12px; }
  .wo-date-panel { grid-template-columns: 1fr; padding: 12px; }
  .wo-date-panel.is-worker { display: flex; grid-column: 1 / -1; grid-row: 2; padding: 2px 0 0; }
  .wo-date-main { display: grid; grid-template-columns: 43px minmax(0, 1fr) 43px; }
  .wo-date-panel.is-worker .wo-date-main { display: block; }
  .wo-date-field { min-width: 0; }
  .wo-date-main .wo-button { grid-column: 1 / -1; width: 100%; }
  .wo-status { justify-content: flex-start; min-height: auto; }
  .wo-history { align-items: flex-start; flex-direction: column; gap: 7px; }
  .wo-history-list { width: 100%; }
  .wo-card-header, .wo-catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .wo-manager-footer { align-items: stretch; flex-direction: column; }
  .wo-manager-footer .wo-button { width: 100%; }
  .wo-category-grid { padding: 4px 12px 13px; gap: 8px; }
  .wo-category-copy, .wo-product-name { min-height: 60px; padding: 9px 10px; }
  .wo-product-grid { padding: 4px 12px 13px; gap: 8px; }
  .wo-entry { padding: 10px 18px 10px 8px; }
  .wo-cook-list { grid-template-columns: 1fr; padding: 12px; }
  .wo-cook-row { gap: 9px; padding: 11px; }
  .wo-stepper { grid-template-columns: 46px 66px 46px; gap: 5px; }
  .wo-stepper button { width: 46px; height: 48px; }
  .wo-stepper input { width: 66px; height: 48px; }
  .wo-modal { align-items: end; padding: 0; }
  .wo-modal-card { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .wo-modal-body { grid-template-columns: 1fr; }
  .wo-modal-body .wo-modal-field, .wo-keypad { grid-column: 1; grid-row: auto; }
}

@media (max-width: 560px) {
  .wo-date-panel.is-worker { align-items: stretch; flex-direction: column; gap: 7px; }
  .wo-date-panel.is-worker .wo-date-field { width: 168px; }
  .wo-date-panel.is-worker .wo-status { justify-content: flex-start; }
  .wo-category-grid, .wo-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wo-entry { grid-template-columns: minmax(0, 1fr) 46px 92px 32px 50px; gap: 4px 6px; }
  .wo-entry:not(.has-delete) { grid-template-columns: minmax(0, 1fr) 46px 92px 50px; }
  .wo-entry-delete { width: 32px; height: 32px; }
  .wo-cook-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .wo-stepper { justify-content: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
