:root {
  --ink: #18332f;
  --muted: #6d7b77;
  --paper: #f4f0e8;
  --card: #fffdf8;
  --accent: #f0784b;
  --accent-soft: #fbe4d8;
  --sage: #a9c6b7;
  --line: #dedbd2;
  --danger: #b6473d;
  --shadow: 0 14px 40px rgba(25, 50, 45, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.hero { min-height: 310px; padding: 54px max(6vw, 24px) 48px; display: flex; align-items: end; justify-content: space-between; gap: 40px; color: #fffdf8; background: var(--ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: 26%; top: -190px; border: 60px solid rgba(169,198,183,.12); border-radius: 50%; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.08; letter-spacing: -.04em; }
h1 span { color: var(--sage); }
.lead { max-width: 530px; margin: 20px 0 0; color: #c9d5d1; }
.hero-card { min-width: 235px; padding: 24px; display: grid; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; backdrop-filter: blur(8px); z-index: 1; }
.hero-card span { margin-top: 8px; color: #b7c6c2; font-size: 12px; }
.hero-card strong { font-family: Georgia, serif; font-size: 20px; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto 80px; padding-top: 76px; position: relative; z-index: 2; }
.tabs { position: fixed; inset: 0 0 auto; z-index: 1000; width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 6px; gap: 4px; background: var(--card); border-radius: 0; box-shadow: 0 3px 14px rgba(25, 50, 45, .12); }
.sync-status { align-self: center; margin: 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.sync-status:empty { display: none; }
.sync-status.ok { color: #3c7a5b; }
.sync-status.error { color: var(--danger); }
.tab { padding: 10px 18px; color: var(--muted); border: 0; border-radius: 10px; background: transparent; font-weight: 700; }
.tab.active { color: white; background: var(--accent); }
.view { display: none; padding-top: 26px; }
.view.active { display: block; }
.panel { background: var(--card); border: 1px solid rgba(222,219,210,.8); border-radius: 18px; box-shadow: var(--shadow); }

.toolbar { padding: 16px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
input, select { min-height: 40px; padding: 8px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.month-picker-field { flex: 0 0 150px; }
.month-picker-field input { width: 100%; }
.store-switch { max-width: 100%; padding: 4px; display: grid; grid-template-columns: repeat(var(--store-count, 1), minmax(0, 1fr)); gap: 4px; overflow-x: auto; background: #eeece5; border-radius: 11px; }
.store-switch button { min-width: 0; padding: 8px 15px; overflow: hidden; color: var(--muted); border: 0; border-radius: 8px; background: transparent; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#storeSwitch { min-width: 240px; flex: 1 1 400px; }
.store-switch button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pdf-controls { display: flex; align-items: center; gap: 6px; }
.ai-controls { display: flex; align-items: center; gap: 6px; }
.ai-controls .secondary { min-width: 145px; flex: 1 1 0; }
.pdf-controls select { width: 150px; min-height: 40px; font-size: 11px; }
.pdf-controls .secondary { white-space: nowrap; }
.confirm-controls { display: flex; align-items: center; gap: 6px; }
.confirm-controls button { min-height: 40px; padding: 7px 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.confirm-controls button.confirmed { color: #fff; background: var(--ink); border-color: var(--ink); }
.notice { margin: 18px 0; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; background: var(--accent-soft); border-radius: 14px; }
.notice small { color: var(--muted); }
.notice button { padding: 9px 14px; color: white; background: var(--accent); border: 0; border-radius: 9px; font-weight: 700; }

.calendar-scroll { margin-top: 18px; overflow-x: auto; padding-bottom: 5px; }
.calendar { min-width: 820px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sales-calendar { min-width: 820px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.weekday { padding: 8px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 700; }
.calendar .weekday { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weekday.sun { color: var(--danger); } .weekday.sat { color: #416f92; }
.day { min-height: 138px; padding: 9px; display: flex; flex-direction: column; background: var(--card); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; transition: background .15s; }
.day:not(.blank) { cursor: pointer; }
.day:not(.blank):hover, .day:not(.blank):focus-visible { outline: 0; background: var(--accent-soft); }
.day.blank { visibility: visible; background: #f7f5f0; pointer-events: none; }
.day.closed { background: #e9e6df; opacity: .8; }
.day.confirmed { border-color: var(--sage); background: #f2f7f4; }
.day.confirmed.closed { background: #e4ebe7; }
.day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.day-num { width: 26px; height: 26px; display: grid; place-items: center; font-family: Georgia, serif; font-size: 16px; border-radius: 50%; }
.day.today .day-num { color: white; background: var(--accent); }
.day.sun .day-num { color: var(--danger); } .day.sat .day-num { color: #416f92; }
.day.today .day-num { color: white; }
.mode-badge { padding: 3px 7px; color: var(--muted); background: #efede7; border-radius: 20px; font-size: 9px; font-weight: 800; }
.mode-label-short { display: none; }
.shift-summary { min-height: 35px; padding: 6px 0; border-top: 1px dashed var(--line); }
.shift-summary:first-of-type { border-top: 0; }
.shift-summary > span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; }
.shift-summary strong { display: block; margin-top: 2px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.staff-names-short { display: none; }
.shift-summary.shortage strong { color: var(--danger); }
.assignment { width: 100%; min-height: 31px; margin-top: 4px; padding: 4px 6px; font-size: 11px; }

dialog { width: min(460px, calc(100% - 28px)); padding: 0; color: var(--ink); background: var(--card); border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(18,42,37,.28); }
dialog::backdrop { background: rgba(15,31,28,.55); backdrop-filter: blur(3px); }
.dialog-shell { padding: 24px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 18px; }
.dialog-head small { color: var(--accent); font-weight: 800; }
.dialog-head h3 { margin: 3px 0 0; font-size: 26px; }
.dialog-close { width: 34px; height: 34px; color: var(--muted); background: #efede7; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; }
.mode-field { margin-bottom: 16px; }
.day-hours { margin: 8px 0 12px; padding: 9px 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day-hours-toggle { margin-left: auto; display: flex; grid: none; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; cursor: pointer; }
.day-hours-toggle input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--accent); }
.day-hours > small { color: var(--muted); font-size: 11px; font-weight: 700; }
.day-hours-grid { width: 100%; padding-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; border-top: 1px dashed var(--line); }
.day-hours-grid[hidden] { display: none; }
.editor-slot { margin-top: 12px; padding: 14px; background: #f4f1ea; border-radius: 12px; }
.editor-slot-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; }
.editor-people { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor-people.single { grid-template-columns: 1fr; }
.mixed-through-slot { background: #e8f0ec; }
.dialog-done { width: 100%; margin-top: 20px; }
.auto-day { width: 100%; margin-top: 18px; }
.closed-message { padding: 28px 0 10px; color: var(--muted); text-align: center; }

.sales-toolbar { padding: 16px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
#salesStoreSwitch { width: min(560px, 100%); flex: 1 1 560px; }
#salesStoreSwitch button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sales-month-total { margin-left: auto; display: grid; text-align: right; }
.sales-month-total span { color: var(--muted); font-size: 11px; font-weight: 700; }
.sales-month-total strong { font-family: Georgia, serif; font-size: 25px; }
.sales-day { min-height: 92px; padding: 9px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.sales-day.blank { visibility: hidden; }
.sales-day[data-sales-date] { cursor: pointer; transition: background .15s, border-color .15s; }
.sales-day[data-sales-date]:hover, .sales-day[data-sales-date]:focus-visible { outline: 0; border-color: var(--sage); background: var(--accent-soft); }
.sales-day.closed { cursor: default; background: #e9e6df; opacity: .8; }
.sales-day-head { display: flex; align-items: center; justify-content: space-between; }
.sales-day-head small { color: var(--muted); font-size: 9px; }
.sales-day.sun .day-num { color: var(--danger); }
.sales-day.sat .day-num { color: #416f92; }
.sales-day-amount, .sales-day-closed { margin: auto 0; font-size: 15px; }
.sales-day-closed { color: var(--muted); font-size: 12px; text-align: center; }
.sales-summary { margin-top: 16px; padding: 20px; }
.sales-summary-head { display: flex; align-items: center; justify-content: space-between; }
.sales-summary-head h3 { margin: 0; font-size: 18px; }
.sales-summary-head small { color: var(--muted); }
.sales-summary-table-wrap { margin-top: 10px; overflow-x: auto; }
.sales-summary-table { width: 100%; border-collapse: collapse; }
.sales-summary-table th, .sales-summary-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; font-size: 12px; }
.sales-summary-table th { color: var(--muted); font-size: 10px; }
.sales-summary-table th:first-child, .sales-summary-table td:first-child { text-align: left; }
.sales-summary-table td:last-child { font-weight: 800; }
.sales-summary-empty { color: var(--muted); text-align: center !important; }
.sales-dialog { width: min(1120px, calc(100% - 28px)); max-height: calc(100vh - 28px); }
.sales-dialog .dialog-shell { max-height: calc(100vh - 28px); overflow-y: auto; }
.daily-share { margin-bottom: 10px; padding: 10px 12px; background: #eef3f0; border-radius: 11px; }
.daily-share-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.daily-share-head strong { font-size: 11px; }
.daily-share-head button { padding: 3px 0; color: var(--muted); background: transparent; border: 0; font-size: 9px; font-weight: 800; }
.daily-share-list { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.daily-share-person { min-width: 150px; padding: 5px 7px 5px 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-radius: 8px; }
.daily-share-person span { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.daily-share-person button { padding: 5px 8px; color: var(--ink); background: #fff; border: 1px solid var(--sage); border-radius: 7px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.daily-share-empty { margin: 0; color: var(--muted); font-size: 10px; }
.sales-import { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbf9f4; }
.sales-import summary { padding: 11px 13px; cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 800; }
.sales-import-body { padding: 0 13px 13px; }
.sales-import-actions { display: flex; align-items: center; gap: 8px; }
.sales-import-actions > span { color: var(--muted); font-size: 10px; }
.sales-image-picker { display: grid; place-items: center; color: var(--ink); }
.sales-image-picker input { display: none; }
#salesImportText, #requestImportText { width: 100%; min-height: 92px; margin-top: 9px; padding: 10px; resize: vertical; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12px; outline: none; }
#salesImportText:focus, #requestImportText:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sales-import-status { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.sales-import-status:empty { display: none; }
.sales-import-status.error { color: var(--danger); }
.sales-import-preview { margin-top: 10px; display: grid; gap: 6px; }
.sales-import-preview-row { padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #eef3f0; border-radius: 8px; }
.sales-import-preview-row strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sales-import-preview-row span { color: var(--muted); font-size: 10px; text-align: right; }
.sales-import-apply { width: 100%; margin-top: 9px; }
.request-import { margin: 10px 0; }
.request-import-preview { margin-top: 10px; }
.request-import-head { margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.request-import-head span { color: var(--muted); font-size: 10px; }
.request-import-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.request-import-item { padding: 3px 3px 3px 7px; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.request-import-item.uncertain { background: #fff6cf; border-color: #e8cf6a; }
.request-import-item > span { min-width: 30px; font-family: Georgia, serif; font-size: 13px; font-weight: 700; }
.request-import-item small { margin-left: 2px; color: var(--muted); font-family: inherit; font-size: 9px; font-weight: 400; }
.request-import-item select { min-width: 0; min-height: 28px; flex: 1; padding: 2px 4px; font-size: 11px; font-weight: 700; }
.request-import-item select.request-shift { color: #a95d24; border-color: #ecc39f; background: #fff7ed; }
.request-import-item select.request-off { color: #727976; background: #eee; }
.sales-row-labels, .sales-entry { display: grid; grid-template-columns: 90px 125px 140px 90px 90px minmax(140px, 1fr) 32px; gap: 7px; align-items: end; }
.sales-row-labels { padding: 0 2px 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.sales-entry { margin-bottom: 8px; padding: 10px; background: #f4f1ea; border-radius: 10px; }
.sales-entry label span { display: none; }
.sales-entry input, .sales-entry select { width: 100%; min-width: 0; }
.staff-entry-source { margin-top: 2px; color: var(--accent); font-size: 8px; text-align: right; }
.extension-rate { margin-left: 6px; color: var(--muted); font-size: 8px; font-weight: 500; }
.sales-entry-total { min-height: 40px; padding: 7px 5px; display: grid; align-content: center; }
.sales-entry-total span { display: none; color: var(--muted); font-size: 9px; font-weight: 700; }
.sales-entry-total strong { font-size: 13px; }
.remove-sales-row { width: 32px; height: 40px; color: var(--danger); background: #fff; border: 1px solid #e6c4bf; border-radius: 8px; }
.sales-rows-empty { padding: 25px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.add-sales-row { width: 100%; margin-top: 5px; }
.sales-day-total { margin-top: 16px; padding: 14px 4px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.sales-day-total span { color: var(--muted); font-size: 12px; font-weight: 700; }
.sales-day-total strong { font-family: Georgia, serif; font-size: 25px; }
.sales-payroll { padding: 12px 14px; background: #eef3f0; border-radius: 11px; }
.sales-payroll h4 { margin: 0 0 7px; font-size: 13px; }
.sales-payroll > div { padding: 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #d7e2dc; }
.sales-payroll > div:first-of-type { border-top: 0; }
.sales-payroll span { font-size: 12px; font-weight: 800; }
.sales-payroll small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.sales-payroll strong { font-family: Georgia, serif; font-size: 18px; }
.sales-payroll p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }

.expense-toolbar { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.expense-toolbar input { width: 155px; }
.expense-month-total { margin-left: auto; display: grid; text-align: right; }
.expense-month-total span { color: var(--muted); font-size: 11px; font-weight: 700; }
.expense-month-total strong { font-family: Georgia, serif; font-size: 26px; }
.expense-import { margin-top: 14px; padding: 20px; }
.expense-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.expense-section-head h3 { margin: 0; font-size: 18px; }
.expense-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.expense-section-head small { color: var(--muted); }
.expense-image-picker { display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.expense-image-picker input { display: none; }
.expense-import .expense-section-head { min-height: 32px; align-items: center; }
.expense-import .expense-section-head h3 { min-height: 32px; display: flex; align-items: center; line-height: 1; }
.expense-section-head .expense-image-picker { height: 32px; min-height: 32px; padding: 5px 11px; }
.expense-ocr-status { margin: 9px 0 12px; color: var(--muted); font-size: 10px; }
.expense-ocr-status:empty { display: none; }
.expense-ocr-status.error { color: var(--danger); }
.expense-entry-form { display: grid; grid-template-columns: 104px minmax(150px, 1fr) 110px minmax(160px, 1fr) auto; align-items: end; gap: 8px; }
.expense-entry-form > label, .expense-row > label { min-width: 0; }
.expense-entry-form > label { width: 100%; margin: 0; }
.expense-entry-form input { width: 100%; min-width: 0; height: 36px; min-height: 36px; margin: 0; display: block; }
.expense-entry-form input[type="date"] { height: 36px; min-height: 36px; max-height: 36px; padding-block: 0; line-height: 34px; }
.expense-entry-form .primary { height: 36px; min-height: 36px; padding-block: 5px; }
.expense-layout { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr); align-items: start; gap: 14px; }
.expense-list-panel, .expense-summary { padding: 20px; }
.expense-list { margin-top: 10px; display: grid; gap: 7px; }
.expense-row { padding: 9px; display: grid; grid-template-columns: 105px minmax(130px, 1fr) 105px minmax(130px, 1fr) 34px; align-items: end; gap: 7px; background: #f4f1ea; border-radius: 10px; }
.expense-row input { width: 100%; min-width: 0; min-height: 36px; }
.expense-row button { width: 34px; height: 36px; color: var(--danger); background: #fff; border: 1px solid #e6c4bf; border-radius: 8px; }
.expense-vendor-item { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.expense-vendor-item:last-child { border-bottom: 0; }
.expense-vendor-item span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.expense-vendor-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.expense-vendor-item strong { white-space: nowrap; }
.expense-empty { margin: 12px 0 0; padding: 22px 8px; color: var(--muted); text-align: center; font-size: 11px; }

.section-heading { margin: 24px 4px; display: flex; justify-content: space-between; align-items: end; }
.settings-subheading { max-width: 900px; margin: 24px 4px 10px; }
.settings-subheading h3 { margin: 0; font-size: 20px; }
.settings-subheading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.section-heading h2 { margin: 0; font-size: 32px; }
.section-heading > p { color: var(--muted); }
.staff-form, .settings-form { padding: 24px; }
.staff-form { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(190px, 1.15fr) 140px minmax(220px, 1.4fr) auto; gap: 14px; align-items: end; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; }
.check-row label { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; }
.check-row input { min-height: auto; accent-color: var(--accent); }
.primary { min-height: 42px; padding: 9px 18px; color: white; background: var(--accent); border: 0; border-radius: 10px; font-weight: 800; }
.secondary { min-height: 40px; padding: 8px 14px; color: var(--ink); background: #fff; border: 1px solid var(--sage); border-radius: 10px; font-size: 12px; font-weight: 800; }
.secondary:hover { background: #eaf2ee; }
.secondary.subtle { color: var(--muted); border-color: var(--line); }
.staff-list { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.staff-card { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.staff-card-toolbar { display: flex; align-items: center; gap: 8px; }
.staff-name { min-width: 0; flex: 1; }
.staff-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-card strong { display: block; }
.staff-card small { color: var(--muted); }
.staff-access-fields { width: 100%; margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 125px; gap: 8px; }
.staff-access-fields input, .staff-access-fields select { width: 100%; min-width: 0; min-height: 34px; padding: 5px 7px; font-size: 11px; }
.tab-badge { min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; display: inline-grid; place-items: center; color: white; background: var(--danger); border-radius: 8px; font-size: 10px; line-height: 1; vertical-align: 1px; }
.tab-badge[hidden] { display: none; }
.access-requests { margin-bottom: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.access-requests-title { font-size: 12px; }
.access-request { display: grid; grid-template-columns: minmax(0, 1fr) 150px 92px auto 30px; gap: 6px; align-items: center; }
.access-request-email { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.access-request select { width: 100%; min-width: 0; min-height: 34px; padding: 4px 6px; font-size: 11px; }
.access-request .primary { min-height: 34px; padding: 5px 12px; font-size: 11px; }
.access-request-dismiss { width: 30px; height: 34px; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; }
.access-wait { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: var(--paper); }
.access-wait[hidden] { display: none; }
.access-wait > div { display: grid; gap: 10px; justify-items: center; text-align: center; }
.access-wait p { margin: 0; color: var(--muted); font-size: 12px; word-break: break-all; }
body.access-locked { overflow: hidden; }
.staff-card button { margin-left: auto; padding: 6px 9px; color: var(--danger); background: transparent; border: 1px solid #e6c4bf; border-radius: 8px; }
.staff-card .open-staff { margin-left: auto; color: var(--ink); border-color: var(--line); }
.staff-card .share-staff { margin-left: 0; color: var(--ink); border-color: var(--sage); }
.staff-card .share-staff + button { margin-left: 0; }
.staff-card-actions { display: flex; align-items: center; gap: 5px; }
.staff-card .staff-card-actions button { min-width: 48px; margin-left: 0; height: 32px; min-height: 32px; padding: 4px 9px; font-size: 10px; }
.incentive-field { display: flex; align-items: center; gap: 4px; font-size: 9px; white-space: nowrap; }
.incentive-field input { width: 52px; min-height: 32px; padding: 4px 5px; text-align: right; }
.incentive-field span { color: var(--ink); font-size: 12px; }
.empty { padding: 48px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

.settings-form { max-width: 720px; display: flex; align-items: end; gap: 10px; }
.settings-form > .primary { min-height: 38px; padding: 7px 14px; flex: 0 0 auto; }
.store-settings, .menu-settings { max-width: 900px; margin-bottom: 16px; padding: 20px 24px; }
.store-settings h3, .menu-settings h3 { margin: 0; font-size: 18px; }
.store-settings h3 { margin-bottom: 8px; }
.store-settings > div:first-child p, .menu-settings > div:first-child p { margin: 5px 0 16px; color: var(--muted); font-size: 12px; }
.store-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.store-list { margin-top: 8px; display: grid; gap: 5px; }
.store-item { min-height: 34px; padding: 5px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f4f1ea; border-radius: 8px; }
.store-item strong { display: block; }
.store-item .danger { padding: 5px 9px; font-size: 10px; }
.store-item .danger:disabled { cursor: not-allowed; opacity: .4; }
.menu-section-heading { display: flex; align-items: center; justify-content: space-between; }
.menu-section-heading h3 { margin: 0 0 10px; font-size: 18px; }
.extension-menu-row { margin-top: 16px; padding-top: 12px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.extension-menu-row h3 { margin: 0; font-size: 15px; white-space: nowrap; }
.menu-form { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: end; gap: 10px; }
.menu-form label, .menu-form input { min-width: 0; }
.menu-form input { width: 100%; }
.menu-list { margin-top: 14px; display: grid; gap: 8px; }
.menu-item { padding: 10px; display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: end; gap: 10px; background: #f4f1ea; border-radius: 10px; }
.extension-menu-list { margin: 0; }
.extension-menu-item { display: flex; align-items: center; }
.extension-price-field { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.extension-price-field input { width: 110px; min-height: 34px; padding: 5px 8px; text-align: right; }
.menu-item input { width: 100%; min-width: 0; }
.menu-empty { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.time-grid { display: grid; grid-template-columns: repeat(3, 104px); gap: 8px; }
.time-grid label { gap: 4px; }
.time-grid input { width: 104px; min-height: 38px; padding: 6px 7px; }
.hint { margin: 14px 0 20px; color: var(--muted); font-size: 12px; }
.data-actions { max-width: 720px; margin-top: 18px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.data-actions p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.data-actions p:empty { display: none; }
.danger { padding: 8px 12px; color: var(--danger); background: #fff; border: 1px solid #e6c4bf; border-radius: 9px; }
.toast { position: fixed; inset: auto 22px 22px auto; z-index: 9999; max-width: calc(100% - 24px); margin: 0; padding: 12px 18px; color: white; background: var(--ink); border: 0; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

.request-toolbar { padding: 16px 20px; display: flex; align-items: end; gap: 18px; flex-wrap: wrap; }
.request-toolbar label { min-width: 0; }
.request-toolbar label:first-child { width: 180px; }
.request-toolbar label:nth-child(2) { width: 126px; }
.request-toolbar label select, .request-toolbar label input { width: 100%; min-width: 0; }
.request-calendar { min-width: 820px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.request-day { min-height: 108px; padding: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.request-day.blank { visibility: hidden; }
.request-day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.request-day-head strong { font-family: Georgia, serif; font-size: 16px; }
.request-day-head small { color: var(--muted); }
.request-select { width: 100%; min-height: 36px; padding: 6px; font-size: 11px; font-weight: 700; }
.request-select.request-shift { color: #a95d24; border-color: #ecc39f; background: #fff7ed; }
.request-select.request-off { color: #727976; background: #eee; }

.ai-panel { padding: 22px; }
.ai-panel h3, .staff-rules-panel h3 { margin: 0; font-size: 18px; }
.ai-panel > p, .rules-heading p { margin: 6px 0 18px; color: var(--muted); font-size: 12px; }
.pair-form { margin-top: 12px; display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 8px; }
.pair-panel { max-width: 720px; }
.pair-form select { min-width: 0; }
.pair-list { margin-top: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.pair-chip { padding: 6px 8px 6px 10px; display: inline-flex; align-items: center; gap: 7px; color: var(--danger); background: #fff2ef; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pair-chip button { width: 20px; height: 20px; padding: 0; color: var(--danger); background: #fff; border: 0; border-radius: 50%; }
.staff-rules-panel { margin-top: 16px; padding: 22px; }
.rules-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.rules-heading span { color: #4d8067; font-size: 11px; font-weight: 800; }
.rules-table-wrap { overflow-x: auto; }
.rules-table { width: 100%; border-collapse: collapse; }
.rules-table th { padding: 8px 5px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; }
.rules-table td { padding: 7px 5px; border-bottom: 1px solid #ece9e2; }
.rules-table td:first-child { min-width: 100px; font-weight: 800; }
.rule-select { width: 100%; min-width: 102px; min-height: 35px; padding: 5px 6px; font-size: 11px; }
.workplace-picker { min-width: 104px; }
.workplace-picker summary { min-height: 35px; padding: 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 700; list-style-position: inside; white-space: nowrap; }
.workplace-picker > div { min-width: 150px; margin-top: 4px; padding: 8px; display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.workplace-picker label { padding: 5px; display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 11px; white-space: nowrap; }
.workplace-picker input { min-height: auto; accent-color: var(--accent); }

.request-page { padding-bottom: 24px; }
.request-main { padding-top: 24px; }
.request-controls { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.request-controls h1 { min-width: 0; margin-right: auto; overflow: hidden; color: var(--ink); font-family: inherit; font-size: clamp(18px, 3vw, 26px); text-overflow: ellipsis; white-space: nowrap; }
.request-controls input { width: 150px; flex: 0 0 150px; }
.request-controls .primary { flex: 0 0 auto; }
.public-error { margin-top: 18px; padding: 24px; color: var(--danger); }

.daily-page { min-height: 100vh; }
.daily-main { width: min(760px, calc(100% - 24px)); margin: 0 auto 50px; padding-top: 20px; }
.daily-header { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.daily-header small { color: var(--accent); font-size: 11px; font-weight: 800; }
.daily-header h1 { margin: 3px 0 0; color: var(--ink); font-family: inherit; font-size: 25px; letter-spacing: 0; }
.daily-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.daily-form { margin-top: 12px; padding: 18px 20px; }
.daily-form-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-form-head span { color: var(--muted); font-size: 9px; }
.daily-form-head span:empty { display: none; }
.daily-rows { display: grid; gap: 8px; }
.daily-row { padding: 10px; display: grid; grid-template-columns: minmax(120px, .9fr) 90px minmax(170px, 1.4fr) 34px; align-items: end; gap: 8px; background: #f4f1ea; border-radius: 10px; }
.daily-row input { width: 100%; min-width: 0; }
.daily-remove { width: 34px; height: 40px; color: var(--danger); background: #fff; border: 1px solid #e6c4bf; border-radius: 8px; }
.daily-empty { margin: 0; padding: 25px 10px; color: var(--muted); text-align: center; font-size: 11px; }
.daily-add { width: 100%; margin-top: 9px; }

@media (max-width: 900px) {
  .staff-form { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr) minmax(110px, .75fr); }
  .staff-form fieldset { grid-column: 1 / 3; }
  .staff-form > .primary { grid-column: 3; }
  .expense-entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expense-entry-form .primary { grid-column: 1 / -1; }
  .expense-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main { width: calc(100% - 12px); margin-bottom: 50px; padding-top: 49px; }
  .tabs { top: 0; min-height: 42px; width: 100%; padding: 3px; gap: 1px; border-radius: 0; }
  .tab { min-width: 0; min-height: 36px; flex: 1; padding: 6px 2px; border-radius: 8px; font-size: 10.5px; white-space: nowrap; }
  .sync-status { display: none; }
  .view { padding-top: 10px; }
  .panel { border-radius: 12px; box-shadow: 0 8px 22px rgba(25, 50, 45, .07); }
  label { gap: 4px; font-size: 10px; }
  input, select { min-height: 35px; padding: 6px 8px; border-radius: 8px; font-size: 12px; }
  .toolbar { padding: 10px; display: grid; grid-template-columns: 96px minmax(0, 1fr); row-gap: 6px; column-gap: 9px; align-items: stretch; }
  .toolbar > label { gap: 0; font-size: 0; }
  .toolbar > .month-picker-field { width: 96px; height: 37px; min-width: 0; min-height: 37px; max-height: 37px; align-self: start; overflow: hidden; }
  .toolbar > label input { width: 100%; height: 37px; min-width: 0; min-height: 37px; max-width: 100%; max-height: 37px; padding-block: 0; padding-inline: 3px 1px; font-size: 10px; line-height: 35px; }
  #monthPicker { appearance: none; -webkit-appearance: none; }
  .store-switch { padding: 3px; }
  #storeSwitch { width: 100%; height: 37px; min-width: 0; min-height: 37px; max-height: 37px; align-self: start; grid-column: 2; }
  .store-switch button { min-height: 31px; padding: 5px 8px; font-size: 10px; }
  .ai-controls { width: 100%; grid-column: 1 / -1; }
  .ai-controls .secondary { width: 50%; min-width: 0; min-height: 34px; padding: 5px 7px; font-size: 10px; }
  .confirm-controls { width: 100%; grid-column: 1 / -1; }
  .confirm-controls button { min-height: 34px; flex: 1; padding: 5px 7px; }
  .pdf-controls { width: 100%; grid-column: 1 / -1; }
  .pdf-controls select { min-width: 0; min-height: 34px; flex: 1; font-size: 11px; }
  .pdf-controls .secondary { min-height: 34px; padding: 5px 10px; font-size: 10px; }
  .calendar-scroll { margin-top: 9px; }
  .calendar { width: 100%; min-width: 0; gap: 0; }
  .request-calendar { width: 100%; min-width: 0; gap: 2px; }
  .sales-calendar { width: 100%; min-width: 0; gap: 2px; }
  .weekday { padding: 5px; }
  .calendar .weekday { padding: 3px 0; font-size: 9px; }
  .day { min-width: 0; min-height: 86px; padding: 3px; border-radius: 0; }
  .day-head { margin-bottom: 2px; }
  .day-num { width: 20px; height: 20px; font-size: 12px; }
  .mode-badge { padding: 2px 3px; font-size: 7px; }
  .mode-label-full { display: none; }
  .mode-label-short { display: inline; }
  .shift-summary { min-height: 29px; padding: 3px 0; }
  .shift-summary > span { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
  .shift-summary .slot-time { display: none; }
  .shift-summary strong { width: 100%; margin-top: 1px; font-size: 8px; letter-spacing: 0; text-align: center; }
  .staff-names-full { display: none; }
  .staff-names-short { width: 100%; display: block; }
  .staff-names-short span { width: 100%; padding: 1px 0; display: block; line-height: 1.2; text-align: center; }
  .closed-message { padding: 15px 0 5px; font-size: 9px; }
  .request-day { min-width: 0; min-height: 54px; padding: 3px; border-radius: 7px; }
  .sales-day { min-width: 0; min-height: 58px; padding: 3px; border-radius: 7px; }
  .sales-day-head small { display: none; }
  .sales-day .day-num { width: 20px; height: 20px; font-size: 12px; }
  .sales-day-amount { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .sales-day-closed { font-size: 8px; }
  .sales-calendar .weekday { padding: 3px 0; font-size: 9px; }
  .sales-toolbar { padding: 10px; display: grid; grid-template-columns: 96px minmax(0, 1fr); row-gap: 6px; column-gap: 9px; align-items: stretch; }
  .sales-toolbar > label { width: 96px; height: 37px; min-width: 0; min-height: 37px; max-height: 37px; align-self: start; overflow: hidden; }
  #salesMonth { width: 100%; height: 37px; min-width: 0; min-height: 37px; max-width: 100%; max-height: 37px; padding-block: 0; padding-inline: 3px 1px; font-size: 10px; line-height: 35px; appearance: none; -webkit-appearance: none; }
  .sales-toolbar #salesStoreSwitch { width: 100%; height: 37px; min-width: 0; min-height: 37px; max-height: 37px; align-self: start; grid-column: 2; }
  .sales-month-total { width: 100%; grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .sales-month-total strong { font-size: 21px; }
  .sales-summary { margin-top: 10px; padding: 14px; }
  .expense-toolbar { padding: 10px; }
  .expense-toolbar input { width: 135px; }
  .expense-month-total strong { font-size: 21px; }
  .expense-import, .expense-list-panel, .expense-summary { padding: 14px; }
  .expense-section-head { align-items: flex-start; }
  .expense-entry-form { grid-template-columns: 98px minmax(0, 1fr) 72px; gap: 8px; }
  .expense-entry-form label:first-child { grid-column: 1; grid-row: 1; }
  .expense-entry-form label:nth-child(2) { grid-column: 2; }
  .expense-entry-form label:nth-child(3) { grid-column: 3; grid-row: 1; }
  .expense-entry-form label:nth-child(4) { grid-column: 1 / 3; }
  .expense-entry-form .primary { grid-column: 3; height: 36px; min-height: 36px; padding: 5px 8px; font-size: 10px; }
  .expense-entry-form input { padding-inline: 5px; font-size: 10px; }
  .expense-entry-form input[type="date"], .expense-row input[type="date"] { width: 100%; min-width: 0; max-width: 100%; padding-inline: 4px 2px; font-size: 10px; }
  .expense-entry-form input[type="date"] { -webkit-appearance: none; appearance: none; }
  .expense-row { grid-template-columns: clamp(94px, 26vw, 100px) minmax(0, 1fr) 68px 30px; gap: 5px; }
  .expense-row label:nth-child(2) { grid-column: 2; }
  .expense-row label:nth-child(4) { grid-column: 1 / 4; }
  .expense-row input { min-height: 33px; padding-inline: 5px; font-size: 10px; }
  .expense-row button { width: 30px; grid-column: 4; grid-row: 1 / 3; height: 100%; }
  .sales-row-labels { display: none; }
  .daily-share-person { min-width: calc(50% - 3px); flex: 1; }
  .sales-import { margin-bottom: 10px; }
  .sales-import-actions { display: grid; grid-template-columns: 1fr auto 1fr; }
  .sales-import-actions .secondary { min-width: 0; min-height: 35px; padding: 6px 7px; font-size: 10px; }
  .sales-import-preview-row { align-items: start; flex-direction: column; gap: 3px; }
  .sales-import-preview-row span { text-align: left; }
  .sales-entry { grid-template-columns: 1fr 1fr 34px; gap: 7px; }
  .sales-dialog input, .sales-dialog select, #salesImportText, #requestImportText, .request-import-item select { font-size: 16px; }
  .request-import-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .access-request { grid-template-columns: minmax(0, 1fr) 96px 30px; }
  .access-request-email { grid-column: 1 / -1; }
  .access-request select { font-size: 16px; }
  .access-request .access-request-role { grid-column: 2; grid-row: 2; }
  .access-request .access-request-staff { grid-column: 1; grid-row: 2; }
  .access-request .primary { grid-column: 1 / 3; grid-row: 3; }
  .access-request-dismiss { grid-column: 3; grid-row: 2 / 4; height: 100%; }
  .request-import-item { padding: 2px 2px 2px 5px; gap: 2px; }
  .request-import-item > span { min-width: 24px; font-size: 12px; }
  .request-import-item select { padding: 2px 0; appearance: none; text-align: center; text-align-last: center; }
  .sales-entry label:nth-child(1), .sales-entry label:nth-child(2), .sales-entry label:nth-child(4) { grid-column: span 1; }
  .sales-entry label:nth-child(3), .sales-entry label:nth-child(6) { grid-column: 1 / 3; }
  .sales-entry-total { grid-column: 2; }
  .sales-entry label span { display: block; }
  .sales-entry label .extension-title { display: flex; align-items: center; justify-content: space-between; }
  .sales-entry-total { display: flex; align-items: center; justify-content: space-between; }
  .sales-entry-total span { display: block; }
  .remove-sales-row { grid-column: 3; grid-row: 1 / span 4; height: 100%; min-height: 72px; }
  .request-day-head { margin-bottom: 3px; }
  .request-day-head strong { font-size: 12px; }
  .request-day-head small { display: none; }
  .request-calendar .weekday { padding: 3px 0; font-size: 9px; }
  .request-select { width: 100%; min-width: 0; min-height: 28px; padding: 2px 0; appearance: none; font-size: 8px; text-align: center; text-align-last: center; }
  .section-heading { margin: 13px 2px 10px; align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 23px; }
  .section-heading > p { margin: 5px 0 0; font-size: 10px; }
  .eyebrow { margin-bottom: 4px; font-size: 9px; }
  .request-toolbar { padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; align-items: end; gap: 6px; }
  .request-toolbar label { width: auto; min-width: 0; overflow: visible; }
  .request-toolbar label:first-child { width: auto; }
  .request-toolbar label:nth-child(2) { width: 96px; }
  .request-toolbar label select, .request-toolbar label input { width: 100%; min-width: 0; max-width: 100%; }
  .request-toolbar label:nth-child(2) input { padding-inline: 4px 1px; font-size: 10px; }
  .request-toolbar .secondary { min-width: 48px; min-height: 35px; padding: 5px 9px; font-size: 10px; }
  .rules-table-wrap { overflow: visible; }
  .rules-table, .rules-table tbody, .rules-table tr { width: 100%; display: block; }
  .rules-table thead { display: none; }
  .rules-table tbody { display: grid; gap: 8px; }
  .rules-table tr { padding: 9px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; background: #f4f1ea; border-radius: 10px; }
  .rules-table td, .rules-table td:first-child { min-width: 0; padding: 0; border: 0; }
  .rules-table td:first-child { grid-column: 1 / -1; font-size: 12px; }
  .rules-table td[data-label]::before { content: attr(data-label); margin-bottom: 3px; display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
  .rules-table .rule-select, .rules-table .workplace-picker { width: 100%; min-width: 0; }
  .rules-table .workplace-picker summary { width: 100%; overflow: hidden; padding: 7px 6px; font-size: 10px; text-overflow: ellipsis; }
  .rules-table .rule-select { padding: 5px; font-size: 10px; }
  .staff-form, .settings-form, .ai-panel, .staff-rules-panel { padding: 14px; }
  .store-settings, .menu-settings { margin-bottom: 10px; padding: 14px; }
  .store-form { grid-template-columns: 1fr auto; }
  .store-form .primary { min-height: 35px; padding: 6px 10px; font-size: 10px; }
  .menu-form, .menu-item { grid-template-columns: minmax(0, 1fr) 82px auto; gap: 6px; }
  .extension-menu-row { margin-top: 12px; padding-top: 10px; gap: 9px; }
  .extension-menu-row h3 { font-size: 13px; }
  .extension-price-field input { width: 82px; }
  .menu-item { padding: 8px; }
  .menu-form label:first-child, .menu-item label:first-child,
  .menu-form .primary, .menu-item .danger { grid-column: auto; }
  .menu-form .primary, .menu-item .danger { min-height: 35px; padding: 6px 8px; font-size: 10px; }
  .menu-form input, .menu-item input { padding-inline: 6px; font-size: 11px; }
  .staff-form { padding: 10px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr) 76px; gap: 7px; }
  .staff-form > label { min-width: 0; gap: 4px; font-size: 9px; }
  .staff-form > label input, .staff-form > label select { width: 100%; min-width: 0; height: 34px; min-height: 34px; padding: 4px 6px; font-size: 10px; }
  .staff-form fieldset { min-width: 0; padding: 2px 0; }
  .staff-form legend { margin-bottom: 4px; font-size: 9px; }
  .staff-form .check-row { gap: 4px 9px; }
  .staff-form .check-row label { gap: 4px; font-size: 9px; }
  .staff-form > .primary { height: 34px; min-height: 34px; padding: 4px 6px; font-size: 10px; }
  .staff-list { margin-top: 10px; }
  .staff-card { padding: 10px; }
  .staff-card-toolbar { display: block; }
  .staff-name { min-width: 0; }
  .staff-card-actions { width: 100%; margin-top: 6px; gap: 5px; }
  .staff-card .staff-card-actions button { min-width: 0; height: 30px; min-height: 30px; padding: 3px 8px; flex: 1 1 0; font-size: 10px; }
  .incentive-field { gap: 2px; font-size: 8px; }
  .incentive-field input { width: 43px; min-height: 30px; padding: 3px; font-size: 10px; }
  .staff-access-fields { margin-top: 6px; gap: 6px; }
  .staff-rules-panel { margin-top: 10px; }
  .settings-form { padding: 10px; gap: 6px; }
  .settings-form > .primary { min-height: 34px; padding: 5px 8px; font-size: 10px; }
  .time-grid { min-width: 0; flex: 1 1 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .time-grid label { min-width: 0; font-size: 9px; }
  .time-grid input { width: 100%; min-width: 0; max-width: 100%; min-height: 34px; padding: 3px 2px; font-size: 10px; }
  .day-hours-grid { gap: 7px; }
  .data-actions { margin-top: 10px; padding: 14px; }
  .notice { margin: 9px 0; padding: 11px 12px; font-size: 11px; }
  .notice button { padding: 7px 9px; font-size: 10px; }
  .pair-form { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 5px; }
  .pair-form select { width: 100%; min-height: 34px; padding: 5px; font-size: 10px; }
  .pair-form button { grid-column: auto; min-height: 34px; padding: 5px 7px; font-size: 10px; }
  .request-main { padding-top: 8px; }
  .request-controls { padding: 8px; gap: 6px; }
  .request-controls h1 { font-size: 14px; }
  .request-controls input { width: 122px; min-height: 34px; flex-basis: 122px; padding-inline: 6px; font-size: 11px; }
  .request-controls .primary { min-height: 34px; padding: 6px 10px; font-size: 11px; }
  .daily-main { width: calc(100% - 12px); margin-bottom: 30px; padding-top: 7px; }
  .daily-header { padding: 12px; }
  .daily-header h1 { font-size: 20px; }
  .daily-header .primary { min-height: 36px; padding: 7px 12px; }
  .daily-form { margin-top: 8px; padding: 12px; }
  .daily-row { grid-template-columns: minmax(0, 1fr) 82px 34px; gap: 7px; }
  .daily-row label:nth-child(3) { grid-column: 1 / 3; }
  .daily-row .daily-remove { grid-column: 3; grid-row: 1 / 3; height: 100%; }
  .staff-card { flex-wrap: wrap; }
}
