@charset "UTF-8";

:root {
  --ink: #193d3d;
  --muted: #708080;
  --teal: #245857;
  --teal-dark: #173f40;
  --teal-soft: #e7f1ec;
  --cream: #f5f5ef;
  --white: #ffffff;
  --line: #e4e9e3;
  --coral: #cf7256;
  --coral-soft: #fcf0e9;
  --gold: #9e742a;
  --gold-soft: #faf3de;
  --red: #ab413c;
  --red-soft: #fff0ed;
  --radius: 18px;
  --shadow: 0 9px 36px #213d3510;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.65; letter-spacing: .015em; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a { transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { color: var(--coral); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ddaa58; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; letter-spacing: .035em; }
h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.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; }
.skip-link { position: fixed; top: -100px; left: 12px; background: var(--white); padding: 12px 20px; z-index: 999; }
.skip-link:focus { top: 12px; }
.boot-screen { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 24px; color: var(--muted); }
.brand-mark { display: grid; grid-template-columns: repeat(2, 13px); grid-template-rows: repeat(2, 13px); gap: 4px; flex: 0 0 auto; transform: rotate(-3deg); }
.brand-mark i { border-radius: 4px; background: var(--teal); }
.brand-mark i:nth-child(2) { background: #9bbcb0; }
.brand-mark i:nth-child(3) { background: var(--coral); }
.brand-mark i:nth-child(4) { background: #dbcaa0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 18px; font-weight: 760; letter-spacing: .08em; line-height: 1.5; }
.brand-sub { display: block; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .12em; }
.btn { min-height: 43px; padding: 10px 17px; border-radius: 10px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--teal); color: white; box-shadow: 0 3px 8px #24585713; }
.btn-primary:hover { background: var(--teal-dark); color: white; }
.btn-secondary { background: white; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--teal-soft); border-color: #c9ded3; }
.btn-soft { background: var(--teal-soft); color: var(--teal); }
.btn-soft:hover { background: #d6e9de; }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { background: #eef1ea; color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: #f0d3cf; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { min-height: 49px; font-size: 15px; }
.btn-full { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; }
.icon-btn:hover { color: var(--ink); background: var(--cream); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { color: var(--coral); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.field { display: grid; gap: 7px; }
.field-label, .field label:not(.check-label) { font-weight: 650; color: var(--ink); font-size: 13px; }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 44px; color: var(--ink); border: 1px solid #d9e1d9; border-radius: 9px; background: white; padding: 10px 12px; outline-offset: 2px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7ccbf; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #9da9a2; }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.6; }
.fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; cursor: pointer; font-size: 13px; }
.check-label input { accent-color: var(--teal); width: 18px; height: 18px; min-height: auto; margin: 2px 0 0; flex: 0 0 auto; }
.form-error, .notice { padding: 13px 15px; border-radius: 10px; line-height: 1.7; font-size: 12px; display: flex; gap: 10px; align-items: flex-start; }
.form-error:empty { display: none; }
.form-error { background: var(--red-soft); color: var(--red); border: 1px solid #f1d0c8; }
.notice { background: var(--teal-soft); color: var(--teal); }
.notice-warm { background: var(--gold-soft); color: #79602e; }
.notice .icon, .form-error .icon { margin-top: 2px; }
.notice strong { display: block; margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 11px; line-height: 1.3; font-weight: 650; border-radius: 6px; white-space: nowrap; }
.badge-submitted { background: var(--teal-soft); color: var(--teal); }
.badge-draft { background: var(--gold-soft); color: var(--gold); }
.badge-missing { background: #f0f1ee; color: #879089; }
.badge-closed { background: #efece7; color: #8c7665; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #83a898; box-shadow: 0 0 0 3px #83a89812; }
.divider { height: 1px; background: var(--line); }

/* The welcome view keeps setup short, without hiding the next step. */
.welcome-shell { max-width: 1120px; margin: 0 auto; padding: 32px 32px 50px; }
.welcome-header { margin-bottom: 45px; }
.welcome-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(400px, 1fr); gap: 65px; align-items: start; }
.welcome-story { padding-top: 24px; }
.welcome-story h1 { font-size: clamp(31px, 4vw, 43px); line-height: 1.55; margin-top: 17px; letter-spacing: .035em; }
.welcome-story > p { color: var(--muted); font-size: 14px; line-height: 2; margin-top: 22px; max-width: 390px; }
.welcome-steps { list-style: none; padding: 0; margin: 35px 0 0; display: grid; gap: 21px; }
.welcome-steps li { display: flex; gap: 14px; align-items: center; }
.step-number { background: white; border: 1px solid var(--line); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--coral); font-size: 12px; font-weight: 700; }
.welcome-steps strong { font-size: 13px; }
.welcome-steps p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.welcome-art { margin-top: 46px; background: #e8eee4; border-radius: 22px; padding: 27px 29px; max-width: 390px; transform: rotate(-2deg); position: relative; }
.welcome-art::after { content: ""; position: absolute; width: 41px; height: 23px; background: #cddcc4bd; top: -10px; left: 45%; transform: rotate(12deg); }
.art-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; margin-bottom: 16px; }
.art-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.art-calendar span { display: grid; place-items: center; background: #fff9; border-radius: 6px; min-height: 29px; font-size: 10px; color: #809282; }
.art-calendar span:nth-child(3n) { background: var(--teal); color: white; }
.art-calendar span:nth-child(8n) { background: #f2cabb; color: #a65c46; }
.welcome-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.welcome-card > p { color: var(--muted); margin-top: 7px; font-size: 12px; }
.setup-form { margin-top: 24px; display: grid; gap: 20px; }
.setup-section { display: grid; gap: 13px; }
.setup-section-title { font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.setup-section-title span { color: var(--coral); margin-right: 7px; }
.setup-footnote { text-align: center; font-size: 11px; color: var(--muted); margin-top: 2px; }
.setup-staff-headings, .setup-staff-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; align-items: start; }
.setup-staff-headings { font-size: 14px; font-weight: 650; color: var(--ink); }
.setup-staff-rows { display: grid; gap: 10px; }
.setup-staff-row .field { min-width: 0; }
.setup-staff-row input, .setup-staff-row select { min-height: 44px; font-size: 16px; }
.setup-staff-rows + .field-hint { font-size: 12px; }
.login-shell { max-width: 440px; margin: 70px auto; padding: 0 20px; }
.login-shell > .brand { justify-content: center; margin-bottom: 30px; }
.login-shell .welcome-card { padding: 32px; }
.login-shell h1 { font-size: 23px; }
.login-decoration { width: 54px; height: 54px; border-radius: 18px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); margin-bottom: 20px; }
.login-decoration .icon { width: 24px; height: 24px; }

/* Manager workspace */
.workspace { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0,1fr); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 30px 23px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { margin-bottom: 42px; }
.sidebar .brand-name { font-size: 17px; }
.store-chip { border-radius: 12px; border: 1px solid var(--line); padding: 13px; display: flex; gap: 10px; align-items: center; margin-bottom: 27px; }
.store-chip .icon { color: var(--coral); width: 20px; height: 20px; }
.store-chip strong { display: block; font-size: 12px; word-break: break-all; }
.store-chip span { font-size: 9px; color: var(--muted); }
.sidebar-label { font-size: 9px; color: #99a29a; margin: 0 10px 11px; letter-spacing: .15em; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 13px; margin-bottom: 5px; border: 0; background: transparent; color: var(--muted); width: 100%; text-align: left; font-size: 12px; border-radius: 10px; text-decoration: none; }
.nav-item.active { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.nav-item:hover { background: var(--cream); color: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-note { color: #a0aaa1; font-size: 10px; padding: 0 11px; margin-top: 18px; line-height: 1.9; }
.workspace-body { min-width: 0; }
.workspace-header { min-height: 77px; display: flex; align-items: center; justify-content: space-between; padding: 0 35px; border-bottom: 1px solid var(--line); background: #fafbf6; gap: 15px; }
.breadcrumb { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.breadcrumb strong { color: var(--ink); font-weight: 550; }
.admin-identity { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.admin-avatar { background: #e6ebdf; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; color: var(--teal); font-weight: 650; font-size: 11px; }
.workspace-main { max-width: 1440px; padding: 33px 35px 55px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading > div > p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 10px; align-items: center; padding-top: 17px; }
.period-bar { background: white; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; gap: 14px; margin-bottom: 22px; }
.period-select { min-height: 36px; border: 0; background: transparent; font-size: 15px; font-weight: 700; color: var(--ink); max-width: 245px; padding: 0 24px 0 0; }
.deadline-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.summary-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-height: 144px; position: relative; overflow: hidden; }
.summary-card.featured { color: white; background: var(--teal-dark); border-color: var(--teal-dark); }
.summary-card.featured::after { content: ""; width: 115px; height: 115px; position: absolute; right: -33px; top: -45px; border: 21px solid #ffffff04; border-radius: 50%; }
.summary-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.summary-card.featured .summary-label { color: #c3d8ce; }
.summary-label .icon { width: 15px; height: 15px; }
.summary-value { display: flex; align-items: baseline; gap: 7px; margin-top: 12px; font-size: 34px; line-height: 1.15; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.summary-value span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.featured .summary-value span { color: #b9d1c6; }
.summary-sub { color: #929b93; font-size: 10px; margin-top: 12px; }
.featured .summary-sub { color: #b9d1c6; }
.progress-track { height: 4px; border-radius: 5px; background: #fff2; margin-top: 16px; overflow: hidden; }
.progress-track span { display: block; background: #b9d6bc; height: 100%; border-radius: 5px; transition: width .3s; }
.share-card { display: flex; align-items: center; gap: 16px; border-radius: 14px; padding: 17px 20px; margin-bottom: 24px; background: #ebeede; border: 1px solid #e2e8d5; }
.share-icon { color: #6e8060; background: #ffffff9c; display: grid; place-items: center; height: 41px; width: 41px; flex: 0 0 auto; border-radius: 12px; }
.share-copy { flex: 1; min-width: 0; }
.share-copy strong { display: block; font-size: 12px; }
.share-copy p { color: #7a866f; font-size: 10px; margin-top: 4px; }
.share-actions { display: flex; gap: 8px; }
.share-actions .btn-secondary { border-color: #dce2cf; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 6px #26382c02; }
.card-header { padding: 21px 23px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.card-header h2 { font-size: 15px; }
.card-header p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.staff-card { margin-bottom: 24px; }
.table-toolbar { padding: 0 23px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.filter-tabs { display: flex; align-items: center; gap: 3px; background: var(--cream); padding: 4px; border-radius: 9px; }
.filter-tab { background: transparent; border: 0; border-radius: 6px; min-height: 31px; padding: 6px 12px; font-size: 11px; color: var(--muted); }
.filter-tab.active { background: white; color: var(--ink); box-shadow: 0 2px 5px #364d3610; font-weight: 650; }
.filter-tab span { margin-left: 5px; font-size: 10px; opacity: .7; }
.search-field { position: relative; width: 198px; }
.search-field .icon { position: absolute; left: 10px; top: 10px; width: 15px; height: 15px; color: #8b9a8e; }
.search-field input { width: 100%; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: white; padding: 8px 10px 8px 32px; color: var(--ink); font-size: 11px; }
.table-scroll { overflow: auto; }
.staff-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.staff-table th { background: #f9faf6; padding: 12px 23px; font-size: 10px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.staff-table td { padding: 15px 23px; border-bottom: 1px solid #edf0e9; vertical-align: middle; }
.staff-table tr:last-child td { border-bottom: 0; }
.staff-table th:not(:first-child), .staff-table td:not(:first-child) { padding-left: 12px; padding-right: 12px; }
.staff-table th:last-child, .staff-table td:last-child { padding-right: 23px; }
.staff-table tbody tr:hover { background: #fcfdf9; }
.person { display: flex; align-items: center; gap: 11px; }
.person-avatar { width: 35px; height: 35px; background: #eeefe4; color: #798264; font-size: 12px; display: grid; place-items: center; border-radius: 11px; flex: 0 0 auto; }
.person-avatar[data-tone="1"] { background: #e9eee8; color: #6c8872; }
.person-avatar[data-tone="2"] { background: #f5ede3; color: #ac8865; }
.person-avatar[data-tone="3"] { background: #e6edef; color: #748b94; }
.person strong { display: block; font-size: 12px; overflow-wrap: anywhere; max-width: 220px; }
.person small { display: block; color: var(--muted); font-size: 10px; }
.row-actions { display: flex; gap: 5px; align-items: center; justify-content: flex-end; }
.staff-meta { color: var(--muted); font-size: 10px; line-height: 1.7; white-space: nowrap; }
.table-empty { padding: 35px; text-align: center; color: var(--muted); font-size: 12px; }
.card-footer { border-top: 1px solid var(--line); padding: 12px 23px; display: flex; gap: 15px; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); background: #fcfdf9; }
.poll-warning { color: var(--red); }
.lower-grid { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 20px; align-items: start; }
.preview-table { border-collapse: collapse; width: 100%; font-size: 9px; text-align: center; table-layout: fixed; }
.preview-table th { padding: 9px 5px; font-weight: 500; border-bottom: 1px solid var(--line); background: #f8faf5; color: var(--muted); min-width: 51px; }
.preview-table th:first-child { width: 118px; text-align: left; padding-left: 17px; position: sticky; left: 0; z-index: 1; }
.preview-table td { border-bottom: 1px solid #edf0e8; border-right: 1px solid #f0f2ed; padding: 9px 5px; height: 48px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.preview-table td:first-child { text-align: left; padding-left: 17px; font-weight: 650; background: white; position: sticky; left: 0; z-index: 1; overflow-wrap: anywhere; }
.preview-table td.cell-available { color: var(--teal); background: #f3f8f2; }
.preview-table td.cell-flexible { color: var(--teal); background: #edf5ef; }
.preview-note { font-weight: 400; margin-top: 5px; font-size: 10px; }
.preview-note summary { cursor: pointer; color: var(--teal); }
.preview-note p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; line-height: 1.7; }
.preview-table td.cell-off { color: var(--coral); background: #fff8f2; }
.preview-table td.cell-unavailable { color: #a5aaa3; background: #fbfcf8; }
.preview-table td.cell-blank { color: #c9cec6; }
.preview-table tr:last-child td { border-bottom: 0; }
.preview-table .weekend-sat { color: #6e91a3; }
.preview-table .weekend-sun { color: var(--coral); }
.events-list { list-style: none; margin: 0; padding: 1px 22px 18px; }
.event { position: relative; padding: 0 0 17px 18px; font-size: 11px; overflow-wrap: anywhere; }
.event::before { content: ""; position: absolute; top: 6px; left: 0; width: 5px; height: 5px; background: #b9cfc0; border-radius: 50%; }
.event::after { content: ""; position: absolute; left: 2px; top: 16px; width: 1px; height: calc(100% - 15px); background: #e9eee5; }
.event:last-child { padding-bottom: 0; }
.event:last-child::after { display: none; }
.event p { font-size: 10px; color: var(--muted); margin-top: 4px; }
.event time { display: block; font-size: 9px; color: #9ca69d; margin-top: 4px; }

/* Shared staff editor. These controls are the same in proxy input. */
.staff-shell { max-width: 980px; margin: 0 auto; padding: 25px 24px 60px; }
.staff-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 33px; }
.staff-store { color: var(--muted); font-size: 11px; text-align: right; max-width: 220px; word-break: break-all; }
.staff-login-grid { display: grid; grid-template-columns: .9fr 1fr; gap: 65px; align-items: center; margin-top: 65px; }
.staff-login-story h1 { font-size: 35px; line-height: 1.55; margin-top: 13px; }
.staff-login-story p { color: var(--muted); font-size: 13px; margin-top: 19px; line-height: 2; }
.staff-login-story .welcome-steps { margin-top: 29px; gap: 17px; }
.code-input { font-size: 22px !important; letter-spacing: .34em; font-variant-numeric: tabular-nums; }
.staff-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.staff-top h1 { font-size: 23px; }
.staff-top p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.staff-period-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: white; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 18px; }
.staff-period-actions { display: flex; align-items: center; gap: 10px; }
.editor-container { background: white; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.editor-heading { padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.editor-heading .row { margin-bottom: 5px; }
.editor-heading h2 { font-size: 17px; }
.editor-heading p { color: var(--muted); font-size: 11px; }
.editor-progress { display: flex; gap: 12px; align-items: center; margin-top: 13px; }
.editor-progress .progress-track { background: #edf1e8; margin: 0; flex: 1; max-width: 180px; height: 5px; }
.editor-progress .progress-track span { background: #87ae94; }
.editor-progress > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; }
.editor-layout.rest-only-layout { display: block; }
.rest-only-layout .calendar-pane { max-width: 740px; margin: 0 auto; }
.entry-modes, .blank-policy { border: 0; padding: 0; margin: 0; min-width: 0; }
.entry-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 19px 24px 0; }
.entry-modes legend { padding-top: 19px; font-size: 13px; font-weight: 650; }
.entry-mode { border: 1px solid var(--line); border-radius: 10px; padding: 13px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-width: 0; }
.entry-mode:has(input:checked) { border-color: #8db6a2; background: #eff6ef; }
.entry-mode input { width: 18px; height: 18px; min-height: auto; margin: 2px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.entry-mode strong { display: block; font-size: 13px; }
.entry-mode small { display: block; margin-top: 5px; line-height: 1.6; color: var(--muted); font-size: 11px; }
.rest-mode-hint { padding: 15px 24px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.request-options { border-top: 1px solid var(--line); padding: 20px 24px; background: #fafcf8; }
.blank-policy legend { font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.blank-policy .field-hint { line-height: 1.8; margin-bottom: 12px; }
.blank-policy .check-label + .check-label { margin-top: 12px; }
.request-other { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 17px; }
.request-other .field { margin-top: 15px; }
.request-options textarea { white-space: pre-wrap; }
.option-explanation { margin: 9px 0 16px 28px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.option-explanation p + p { margin-top: 6px; }
.option-explanation strong { color: var(--ink); font-weight: 600; }
.other-examples { color: var(--muted); font-size: 12px; line-height: 1.8; padding: 12px 14px; border-radius: 8px; background: #f0f4eb; }
.other-examples ul { padding-left: 18px; margin: 5px 0 0; }
.other-examples li + li { margin-top: 5px; }
.submission-guidance { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 17px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.submission-guidance > strong { color: var(--ink); }
.submission-guidance p { margin-top: 7px; }
.proxy-confirmation { padding: 20px 24px; border-top: 1px solid var(--line); background: #f1f7f3; }
.proxy-confirmation .field { margin-bottom: 16px; }
.proxy-confirmation > .field-hint { margin: 8px 0 0 28px; line-height: 1.8; }
.proxy-previous-reason { margin-bottom: 15px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; color: var(--muted); }
.readonly-notice .btn { margin-top: 10px; }
.calendar-pane { padding: 23px 24px; min-width: 0; }
.calendar-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; gap: 10px; }
.calendar-tools strong { font-size: 14px; }
.multi-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); cursor: pointer; }
.multi-toggle input { accent-color: var(--teal); margin: 0; width: 15px; height: 15px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 6px; text-align: center; font-size: 10px; color: var(--muted); }
.calendar-weekdays span { padding: 5px; }
.calendar-weekdays span:nth-child(1) { color: var(--coral); }
.calendar-weekdays span:nth-child(7) { color: #6f8c9c; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.calendar-day { min-width: 0; min-height: 88px; position: relative; border: 1px solid #e6ebe2; border-radius: 10px; background: #fbfcf8; color: var(--ink); text-align: left; padding: 8px 7px; display: flex; flex-direction: column; align-items: flex-start; font-size: 10px; }
.calendar-day:hover { border-color: #99bba6; background: #f4f8ef; }
.calendar-day.is-selected { border: 2px solid var(--teal); padding: 7px 6px; box-shadow: 0 0 0 2px #2458570a; background: white; }
.calendar-day.is-selected::after { content: ""; position: absolute; right: 5px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.calendar-day.type-available { background: #eaf3e7; }
.calendar-day.type-flexible { background: #edf5ef; color: var(--teal); }
.calendar-day.type-off { background: #fcf0e9; border-color: #f3e1d5; }
.calendar-day.type-unavailable { background: #f1f2ec; color: #969e95; }
.calendar-day:disabled { opacity: 1; cursor: default; }
.calendar-day:disabled:hover { border-color: #e6ebe2; background: inherit; }
.day-number { font-size: 12px; font-weight: 650; line-height: 1.3; margin-bottom: 12px; }
.calendar-day.is-sunday .day-number { color: var(--coral); }
.calendar-day.is-saturday .day-number { color: #6f8c9c; }
.day-value { font-size: 9px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.day-empty { color: #b1b9ad; font-size: 8px; }
.day-note { display: block; width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; color: #8b9a80; font-size: 8px; margin-top: 3px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 9px; margin-top: 17px; }
.calendar-legend span { display: flex; align-items: center; gap: 4px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #c4dac0; }
.legend-dot.off { background: #edc4af; }
.legend-dot.unavailable { background: #dce0d5; }
.legend-dot.blank { background: #fff; border: 1px solid #dbe0d3; }
.day-form-pane { background: #fafbf6; border-left: 1px solid var(--line); padding: 22px 20px; }
.selection-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; gap: 8px; }
.selection-heading h3 { font-size: 14px; }
.selection-heading p { color: var(--muted); font-size: 10px; margin-top: 3px; }
.selected-date-label { word-break: break-all; font-size: 11px; }
.day-form-pane .field { margin-bottom: 14px; }
.day-form-pane .field label { font-size: 11px; }
.day-form-pane .field input, .day-form-pane .field select, .day-form-pane .field textarea { min-height: 40px; font-size: 12px; padding: 9px 10px; }
.day-form-pane .field textarea { min-height: 65px; }
.day-types { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; margin-bottom: 18px; }
.type-btn { border: 1px solid #dfe6db; background: white; padding: 10px 3px; border-radius: 8px; color: var(--muted); font-size: 10px; min-height: 40px; }
.type-btn.active { color: var(--teal); border-color: #9ebba8; background: var(--teal-soft); font-weight: 650; }
.type-btn[data-type="off"].active { color: var(--coral); background: var(--coral-soft); border-color: #e8c5b5; }
.type-btn[data-type="unavailable"].active { color: #788074; background: #ecefe6; border-color: #c6d1bd; }
.time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.time-selects { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 3px; align-items: center; }
.day-form-pane .time-selects select { min-width: 0; padding-left: 4px; padding-right: 4px; }
.time-templates { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 13px; }
.time-template { background: #fff; border: 1px solid #e1e8da; border-radius: 5px; color: #82916f; padding: 4px 7px; min-height: 27px; font-size: 9px; }
.time-template:hover { background: var(--teal-soft); border-color: #b9ccb0; }
.end-time-hint { margin: 9px 0 12px; }
.day-step-actions { margin-top: 18px; }
.day-step-hint { color: var(--muted); font-size: 11px; margin-top: 8px; text-align: center; }
.editor-notice { margin: 16px 24px 0; }
.editor-error { margin: 15px 24px 0; }
.editor-footer { padding: 19px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; background: white; }
.save-meta { font-size: 10px; color: var(--muted); line-height: 1.9; }
.save-meta .unsaved { color: var(--coral); }
.editor-footer .row { gap: 9px; }
.submit-confirm { border-top: 1px solid #f0dfba; background: #fcf6e6; padding: 20px 24px; }
.submit-confirm h3 { font-size: 13px; margin-bottom: 7px; }
.submit-confirm p { color: #8b795b; font-size: 11px; margin-bottom: 13px; }
.submit-confirm .check-label { color: #796346; }
.submit-confirm .row { margin-top: 17px; }
.conflict-box { background: #fff1ea; border: 1px solid #f1d6c7; border-radius: 10px; padding: 15px 17px; margin: 17px 24px; }
.conflict-box h3 { color: #9c6046; font-size: 13px; margin-bottom: 6px; }
.conflict-box p { color: #967766; font-size: 11px; line-height: 1.9; }
.conflict-box .btn { margin-top: 12px; }
.readonly-notice { background: #f4f0e8; color: #8c7761; }
.staff-finish-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 20px; }

/* Dialogs and confirmations */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: #142c2c66; backdrop-filter: blur(3px); padding: 28px 20px; display: flex; align-items: center; justify-content: center; overflow: auto; }
.modal { background: white; border: 1px solid #e6ebe5; border-radius: 20px; width: min(100%, 510px); max-height: calc(100dvh - 56px); display: flex; flex-direction: column; box-shadow: 0 20px 80px #12343426; }
.modal.modal-wide { width: min(100%, 950px); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 23px 25px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 18px; }
.modal-header p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.modal-body { padding: 24px 25px; overflow: auto; }
.modal-body.editor-modal-body { padding: 0; }
.editor-modal-body .editor-container { border: 0; border-radius: 0 0 20px 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.code-list { width: 100%; border-collapse: collapse; margin-top: 17px; text-align: left; font-size: 12px; }
.code-list th { font-weight: 500; font-size: 10px; color: var(--muted); padding: 9px 5px; border-bottom: 1px solid var(--line); }
.code-list td { border-bottom: 1px solid #edf0e8; padding: 11px 5px; overflow-wrap: anywhere; }
.code-list td:first-child { max-width: 200px; }
.code-list td:last-child { width: 48px; text-align: right; }
.code-value { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 17px; letter-spacing: .16em; color: var(--teal); }
.code-value.code-stale { font: inherit; letter-spacing: normal; color: var(--muted); }
#stale-codes-notice[hidden] { display: none; }
.code-list .icon-btn { width: 32px; height: 32px; }
.roster-list { display: grid; gap: 0; }
.roster-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.roster-row:last-child { border-bottom: 0; }
.roster-row .person { min-width: 0; }
.roster-row .btn .icon { width: 14px; height: 14px; }
.roster-row .person strong { max-width: 190px; }
.credential-status { display: block; color: var(--teal); font-size: 11px; line-height: 1.7; margin-top: 5px; overflow-wrap: anywhere; }
.staff-code-change-form { gap: 14px; }
.staff-code-change-form .field label { font-size: 15px; }
.staff-code-change-form .field input { font-size: 20px; min-height: 50px; font-variant-numeric: tabular-nums; letter-spacing: .2em; }
.code-change-explanation { font-size: 15px; line-height: 1.7; color: var(--ink); }
.staff-code-change-form .field-hint, .staff-code-change-form .form-error { font-size: 13px; }
.staff-code-change-form .btn { min-height: 48px; font-size: 15px; }
.staff-code-change-form .modal-footer { margin-top: 4px; }
.share-url { font-size: 11px; line-height: 1.7; padding: 11px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; margin: 14px 0; }
.modal .notice { font-size: 11px; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.codes-ack { margin-top: 22px; }
.field-hint-block { display: block; }
.type-hint { margin-bottom: 17px; }
.preview-status { font-size: 9px; font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); z-index: 200; background: var(--teal-dark); color: white; border-radius: 12px; padding: 13px 20px; font-size: 12px; box-shadow: 0 6px 22px #173f4030; max-width: calc(100% - 32px); display: flex; gap: 9px; align-items: center; }
.toast-error { background: #964b40; }
.toast .icon { width: 16px; height: 16px; }
.fatal-screen { max-width: 510px; margin: 80px auto; padding: 30px; }
.fatal-screen h1 { font-size: 24px; margin: 22px 0 12px; }
.fatal-screen p { color: var(--muted); margin-bottom: 22px; }

@media (min-width: 1600px) { .workspace-main { padding-left: 45px; padding-right: 45px; } }
@media (max-width: 1150px) {
  .workspace { grid-template-columns: 185px minmax(0,1fr); }
  .sidebar { padding-left: 17px; padding-right: 17px; }
  .sidebar .brand-name { font-size: 15px; }
  .workspace-main { padding: 28px 25px 45px; }
  .workspace-header { padding-left: 25px; padding-right: 25px; }
  .lower-grid { grid-template-columns: minmax(0,1fr); }
  .events-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; }
  .event::after { display: none; }
  .staff-table th, .staff-table td { padding-left: 18px; }
  .share-actions a { display: none; }
  .editor-layout { grid-template-columns: minmax(0,1fr) 265px; }
  .welcome-grid { gap: 35px; }
}
@media (max-width: 850px) {
  .workspace { display: block; }
  .sidebar { display: none; }
  .workspace-header { min-height: 63px; }
  .welcome-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 27px; }
  .welcome-story { padding-top: 0; }
  .welcome-story h1 { font-size: 32px; }
  .welcome-story > p { margin-top: 15px; max-width: none; }
  .welcome-steps { grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 23px; }
  .welcome-steps li { display: block; }
  .welcome-steps .step-number { margin-bottom: 7px; }
  .welcome-steps strong { display: block; font-size: 11px; }
  .welcome-steps p { font-size: 10px; }
  .welcome-art { display: none; }
  .welcome-header { margin-bottom: 25px; }
  .staff-login-grid { grid-template-columns: 1fr; max-width: 470px; margin: 20px auto 0; gap: 26px; }
  .staff-login-story h1 { font-size: 29px; }
  .staff-login-story > p { margin-top: 12px; }
  .staff-login-story .welcome-steps { display: flex; justify-content: space-between; gap: 20px; }
  .staff-login-story .welcome-steps p { display: none; }
  .modal-wide .editor-layout { grid-template-columns: minmax(0,1fr) 240px; }
  .calendar-pane { padding-left: 18px; padding-right: 18px; }
  .modal-wide .calendar-grid { gap: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 13px; }
  .btn { padding: 10px 13px; min-height: 44px; font-size: 12px; }
  .btn-sm { min-height: 37px; padding: 7px 11px; font-size: 11px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 8px; }
  .welcome-shell { padding: 23px 19px 35px; }
  .welcome-card { padding: 24px 20px; border-radius: 18px; }
  .welcome-story h1 { font-size: 29px; }
  .welcome-story > p { font-size: 12px; }
  .setup-form { gap: 18px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .fields-two { gap: 10px; }
  .login-shell { margin-top: 45px; }
  .workspace-header { padding: 0 18px; }
  .breadcrumb { font-size: 10px; }
  .admin-identity { gap: 6px; font-size: 10px; }
  .admin-avatar { width: 26px; height: 26px; }
  .workspace-main { padding: 25px 16px 38px; }
  .page-heading { margin-bottom: 19px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading > div > p { font-size: 10px; margin-top: 7px; }
  .heading-actions { padding-top: 19px; }
  .heading-actions .btn { font-size: 10px; padding: 9px 11px; min-height: 36px; }
  .heading-actions .btn .icon { width: 13px; height: 13px; }
  .period-bar { padding: 12px 13px; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
  .period-select { font-size: 14px; max-width: 195px; }
  .deadline-meta { font-size: 10px; }
  .deadline-meta .icon { width: 13px; height: 13px; }
  .period-bar > .row:first-child { gap: 9px; }
  .period-bar > .row:last-child { justify-content: space-between; flex: 1; }
  .summary-grid { gap: 8px; grid-template-columns: 1.17fr 1fr 1fr; margin-bottom: 15px; }
  .summary-card { padding: 16px 12px; min-height: 126px; border-radius: 13px; }
  .summary-label { font-size: 9px; gap: 5px; }
  .summary-label .icon { width: 12px; height: 12px; }
  .summary-value { font-size: 28px; margin-top: 13px; gap: 4px; }
  .summary-value span { font-size: 10px; }
  .summary-sub { font-size: 8px; margin-top: 12px; }
  .progress-track { margin-top: 13px; }
  .share-card { gap: 11px; padding: 14px 13px; margin-bottom: 19px; }
  .share-icon { width: 32px; height: 36px; }
  .share-icon .icon { width: 16px; height: 16px; }
  .share-copy strong { font-size: 11px; }
  .share-copy p { font-size: 9px; }
  .share-actions .btn { font-size: 10px; min-height: 36px; padding: 8px 10px; }
  .share-actions .btn .icon { display: none; }
  .card { border-radius: 14px; }
  .card-header { padding: 18px 17px 14px; align-items: center; }
  .card-header h2 { font-size: 14px; }
  .card-header p { font-size: 9px; }
  .table-toolbar { padding: 0 17px 14px; display: grid; grid-template-columns: 1fr; gap: 11px; }
  .filter-tabs { justify-content: space-between; }
  .filter-tab { padding: 6px 9px; font-size: 10px; flex: 1; }
  .filter-tab span { font-size: 9px; margin-left: 3px; }
  .search-field { width: 100%; }
  .search-field input { min-height: 38px; }
  .search-field .icon { top: 11px; }
  .staff-table thead { display: none; }
  .staff-table tbody { display: block; }
  .staff-table tr { padding: 14px 17px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; border-bottom: 1px solid #edf0e9; }
  .staff-table tr:last-child { border-bottom: 0; }
  .staff-table td, .staff-table td:not(:first-child), .staff-table td:last-child { padding: 0; border: 0; display: block; }
  .staff-table td:nth-child(1) { grid-row: 1; grid-column: 1; }
  .staff-table td:nth-child(2) { grid-row: 1; grid-column: 2; align-self: start; padding-top: 2px; }
  .staff-table td:nth-child(3) { grid-row: 2; grid-column: 1; padding-left: 46px; }
  .staff-table td:nth-child(4) { grid-row: 2; grid-column: 2; }
  .person { gap: 10px; }
  .person-avatar { width: 34px; height: 34px; }
  .person strong { font-size: 12px; max-width: none; }
  .person small { font-size: 9px; }
  .staff-meta { font-size: 9px; white-space: normal; }
  .card-footer { padding: 12px 17px; font-size: 9px; flex-wrap: wrap; gap: 6px; }
  .card-header .row { gap: 5px; }
  .card-header .btn-sm { padding: 7px 9px; font-size: 10px; }
  .card-header .btn .icon { width: 13px; height: 13px; }
  .events-list { display: block; padding: 0 18px 19px; }
  .event { padding-bottom: 16px; }
  .event::after { display: block; }
  .staff-shell { padding: 22px 16px 35px; }
  .staff-header { margin-bottom: 25px; }
  .staff-store { font-size: 10px; max-width: 140px; }
  .staff-top { margin-bottom: 17px; }
  .staff-top h1 { font-size: 21px; }
  .staff-top p { font-size: 10px; }
  .staff-top > .btn { min-height: 35px; font-size: 10px; padding: 7px 8px; }
  .staff-period-bar { padding: 12px 14px; flex-wrap: wrap; gap: 7px; }
  .staff-period-bar .deadline-meta { flex: 1; justify-content: flex-end; }
  .staff-period-actions { justify-content: space-between; width: 100%; }
  .editor-layout, .modal-wide .editor-layout { display: block; }
  .editor-heading { padding: 19px 17px 15px; }
  .entry-modes { grid-template-columns: 1fr; padding: 17px 15px 0; }
  .entry-modes legend { padding-top: 17px; }
  .entry-mode { padding: 12px; }
  .rest-mode-hint { padding-left: 17px; padding-right: 17px; }
  .request-options { padding: 19px 17px; }
  .proxy-confirmation { padding: 19px 17px; }
  .request-options .check-label { font-size: 13px; }
  .editor-heading h2 { font-size: 15px; }
  .editor-heading p { font-size: 10px; }
  .editor-heading .badge { font-size: 10px; }
  .calendar-pane { padding: 18px 15px; }
  .calendar-grid { gap: 4px; }
  .calendar-day { min-height: 100px; padding: 7px 5px; border-radius: 8px; }
  .calendar-day.is-selected { padding: 6px 4px; }
  .calendar-day.is-selected::after { top: 8px; right: 4px; width: 4px; height: 4px; }
  .day-number { font-size: 14px; margin-bottom: 12px; }
  .day-value { font-size: 11px; letter-spacing: -.025em; }
  .day-empty { font-size: 10px; }
  .day-status { display: block; text-align: center; font-size: 10px; }
  .day-status > span { display: block; white-space: nowrap; }
  .calendar-day .day-value:has(.day-status) { width: 100%; }
  .day-note { font-size: 10px; }
  .calendar-tools { margin-bottom: 13px; }
  .calendar-tools strong { font-size: 12px; }
  .multi-toggle { font-size: 11px; }
  .calendar-legend { gap: 10px; font-size: 11px; margin-top: 14px; }
  .day-form-pane { border-left: 0; border-top: 1px solid var(--line); padding: 18px 17px; }
  .selection-heading { margin-bottom: 13px; }
  .day-types { margin-bottom: 16px; }
  .type-btn { font-size: 12px; min-height: 43px; }
  .time-templates { gap: 7px; }
  .time-template { min-height: 32px; font-size: 10px; padding: 6px 9px; }
  .day-form-pane .field input, .day-form-pane .field select, .day-form-pane .field textarea { font-size: 16px; min-height: 44px; }
  .day-form-pane .field label { font-size: 12px; }
  .field-hint, .editor-heading p, .editor-progress > span { font-size: 11px; }
  .editor-footer { padding: 17px; flex-wrap: wrap; gap: 11px; }
  .editor-footer > .row { width: 100%; display: grid; grid-template-columns: 1fr 1.2fr; }
  .editor-footer .btn { font-size: 13px; min-height: 46px; }
  .save-meta { font-size: 10px; }
  .editor-notice, .editor-error { margin-left: 17px; margin-right: 17px; }
  .submit-confirm { padding: 19px 17px; }
  .submit-confirm .check-label { font-size: 12px; }
  .conflict-box { margin: 17px; }
  .modal-backdrop { padding: 12px; align-items: center; }
  .modal { max-height: calc(100dvh - 24px); border-radius: 16px; }
  .modal-header { padding: 18px 19px 15px; }
  .modal-header h2 { font-size: 17px; }
  .modal-body { padding: 20px 19px; }
  .modal-wide { width: 100%; }
  .modal-wide .modal-header { padding: 15px 17px; }
  .modal-wide .modal-header h2 { font-size: 15px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; }
  .code-value { font-size: 16px; }
  .staff-login-grid .welcome-card { padding: 24px 20px; }
}
/* Staff pages: a welcoming illustration, clear choices, short guidance. */
body:has(.staff-experience) {
  min-height: 100dvh;
  background-color: #fff6e9;
  background-image: radial-gradient(circle at 8% 0, #f8dfbd80, transparent 34%), radial-gradient(#b3895b14 .7px, transparent .7px);
  background-size: auto, 12px 12px;
  background-repeat: no-repeat, repeat;
}
.staff-experience { --line: #e5e6db; --muted: #52665f; padding-top: 26px; }
.staff-experience .staff-header { margin-bottom: 24px; }
.staff-header-right { display: flex; gap: 18px; align-items: center; }
.staff-account-actions { display: flex; gap: 8px; align-items: center; }
.staff-experience .staff-store { font-size: 14px; font-weight: 600; color: #39554e; }
.staff-experience .staff-header-right .btn { font-size: 12px; min-height: 44px; }
.staff-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 14px; padding: 28px 34px; margin-bottom: 24px; border-radius: 28px; background: #fff1dc; border: 1px solid #f1dfc2; }
.staff-hero::before { content: ''; position: absolute; z-index: -1; border-radius: 50%; background: #f5dbad60; width: 430px; height: 430px; right: -150px; top: -210px; }
.staff-greeting { font-size: 16px; font-weight: 650; color: #526253; margin-bottom: 10px; overflow-wrap: anywhere; }
.staff-hero h1 { font-size: 42px; line-height: 1.35; letter-spacing: -.035em; font-weight: 800; color: #183f40; }
.staff-hero-caption { font-size: 16px; line-height: 1.7; margin-top: 12px; color: #43594f; }
.staff-hero-art { display: block; width: 100%; height: auto; border-radius: 24px; }
.staff-experience .staff-login-grid { grid-template-columns: 1.08fr 1fr; gap: 32px; margin-top: 35px; align-items: center; }
.staff-hero-login { display: flex; flex-direction: column; padding: 28px 24px 12px; margin-bottom: 0; border: 0; background: transparent; align-items: stretch; }
.staff-hero-login::before { display: none; }
.staff-hero-login .staff-hero-art { margin-top: 14px; }
.staff-mini-steps { display: flex; list-style: none; padding: 0; margin: 20px 0 0; gap: 22px; }
.staff-mini-steps li { display: flex; align-items: center; gap: 6px; color: #506354; font-size: 14px; font-weight: 600; }
.staff-mini-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f3d7a9; font-size: 12px; color: #674e31; }
.staff-experience .staff-login-card { padding: 32px; border-radius: 28px; box-shadow: 0 12px 34px #7c634d0a; }
.staff-login-card h2 { font-size: 23px; line-height: 1.6; margin-bottom: 26px; }
.staff-experience .field label, .staff-experience .field-label { font-size: 15px; font-weight: 650; }
.staff-experience .field input, .staff-experience .field select, .staff-experience .field textarea { font-size: 16px; min-height: 50px; border-radius: 12px; }
.staff-experience .field-hint { font-size: 14px; line-height: 1.7; }
.staff-experience .btn { font-size: 16px; min-height: 50px; border-radius: 12px; font-weight: 700; }
.staff-experience .btn-primary { background: #245857; box-shadow: 0 4px 0 #173f4020; }
.staff-experience .btn-primary:hover { background: #183f40; }
.staff-experience .staff-period-bar { border-radius: 18px; padding: 18px 22px; margin-bottom: 20px; }
.staff-experience .period-select { font-size: 18px; font-weight: 750; }
.staff-experience .deadline-meta { font-size: 14px; color: #52665f; }
.staff-experience .staff-period-actions .btn { min-height: 44px; padding: 9px 10px; font-size: 14px; }
.staff-experience .editor-container { border-radius: 24px; box-shadow: 0 10px 30px #63534106; }
.staff-experience .editor-heading { padding: 22px 24px 18px; background: #f9fbf6; }
.staff-experience .editor-heading h2 { font-size: 23px; font-weight: 750; }
.staff-experience .editor-heading p, .staff-experience .editor-progress > span { font-size: 14px; }
.staff-experience .badge { font-size: 12px; padding: 6px 10px; }
.staff-experience .entry-modes { gap: 12px; padding: 22px 24px 0; }
.staff-experience .entry-modes legend, .staff-experience .blank-policy legend, .staff-calendar-title { font-size: 20px; font-weight: 750; line-height: 1.6; }
.staff-experience .entry-modes legend { padding-top: 22px; }
.staff-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #245857; color: white; font-size: 14px; font-weight: 700; margin-right: 9px; vertical-align: 2px; }
.staff-experience .entry-mode { padding: 17px 14px; border-radius: 15px; gap: 10px; align-items: center; }
.staff-experience .entry-mode strong { font-size: 17px; line-height: 1.5; }
.staff-experience .entry-mode small { font-size: 14px; line-height: 1.5; margin-top: 4px; }
.staff-experience .entry-mode:has(input:checked) { border-color: #4d8271; background: #edf6ef; box-shadow: inset 0 0 0 1px #4d8271; }
.staff-experience .rest-mode-hint { font-size: 14px; line-height: 1.7; padding-top: 15px; }
.staff-experience .editor-layout { grid-template-columns: minmax(0,1fr) 310px; }
.staff-experience .rest-only-layout { display: block; }
.staff-calendar-title { margin-bottom: 16px; }
.staff-experience .calendar-tools strong { font-size: 17px; }
.staff-experience .calendar-weekdays { font-size: 13px; }
.staff-experience .multi-toggle { font-size: 13px; min-height: 44px; }
.staff-experience .calendar-day { min-height: 100px; padding: 10px 8px; border-radius: 13px; background: #fffdf7; border-color: #e7e5da; }
.staff-experience .calendar-day.is-selected { padding: 9px 7px; border-color: #245857; }
.staff-experience .calendar-day.type-available, .staff-experience .calendar-day.type-flexible { background: #e9f3e8; }
.staff-experience .calendar-day.type-off { background: #ffeadb; border-color: #f0c9ae; }
.staff-experience .calendar-day.type-unavailable { background: #edf0e8; }
.staff-experience .day-number { font-size: 20px; margin-bottom: 10px; }
.staff-experience .day-value { font-size: 12px; color: #39554e; }
.staff-experience .day-status { display: block; font-size: 12px; }
.staff-experience .day-status > span { display: block; white-space: nowrap; }
.staff-experience .day-empty { color: #b0baac; }
.day-add { font-size: 22px; font-weight: 400; line-height: 1; }
.staff-experience .calendar-legend { font-size: 12px; gap: 10px 14px; }
.staff-experience .day-form-pane { background: #f7faf3; }
.staff-experience .selection-heading h3 { font-size: 22px; }
.staff-experience .selection-heading p { font-size: 14px; }
.staff-experience .type-btn { font-size: 15px; min-height: 48px; border-radius: 11px; }
.staff-experience .day-form-pane .field label, .staff-experience .day-form-pane .field-label { font-size: 15px; }
.staff-experience .day-form-pane .field select, .staff-experience .day-form-pane .field textarea { font-size: 16px; min-height: 48px; }
.staff-experience .time-template { font-size: 13px; min-height: 44px; border-radius: 9px; }
.staff-experience .day-step-hint { font-size: 13px; }
.staff-experience .request-options { padding: 22px 24px; background: #fff; }
.staff-experience .check-label { font-size: 16px; line-height: 1.6; }
.staff-experience .check-label input { width: 20px; height: 20px; flex: 0 0 auto; }
.staff-experience .policy-card { align-items: center; gap: 12px; padding: 17px; border: 1px solid #e0e5d9; border-radius: 15px; cursor: pointer; }
.policy-card span { flex: 1; min-width: 0; }
.policy-card strong { display: block; font-size: 18px; }
.policy-card small { display: block; font-size: 14px; color: #52665f; margin-top: 2px; }
.policy-card > .icon { opacity: 0; width: 20px; height: 20px; flex: 0 0 auto; }
.staff-experience .policy-card:has(input:checked) { border-color: #4d8271; box-shadow: inset 0 0 0 1px #4d8271; background: #edf6ef; }
.policy-card:has(input:checked) > .icon { opacity: 1; }
.staff-experience .option-explanation { font-size: 14px; line-height: 1.7; margin: 10px 8px 16px; }
.staff-experience .option-explanation strong { display: block; }
.staff-experience .request-other { padding-top: 20px; margin-top: 22px; }
.staff-help { font-size: 14px; line-height: 1.8; color: #52665f; }
.staff-help summary { cursor: pointer; padding: 12px 0; font-size: 15px; font-weight: 650; color: #39554e; }
.staff-help summary:focus-visible { outline: 3px solid #b2d6c7; outline-offset: 3px; border-radius: 4px; }
.staff-help[open] summary { margin-bottom: 3px; }
.staff-experience .other-examples { margin-top: 10px; padding: 0 14px; font-size: 14px; }
.staff-experience .other-examples ul { padding-bottom: 12px; }
.staff-experience .submission-guidance { padding-top: 8px; margin-top: 18px; }
.staff-experience .submission-guidance p { font-size: 14px; line-height: 1.8; }
.staff-experience .notice, .staff-experience .form-error, .staff-experience .conflict-box p { font-size: 14px; line-height: 1.7; }
.staff-experience .editor-footer { flex-wrap: wrap; padding: 22px 24px; background: #f9fbf6; }
.staff-experience .save-meta { font-size: 13px; line-height: 1.8; }
.staff-submit-hint { width: 100%; font-size: 14px; line-height: 1.7; color: #52665f; }
@media (max-width: 850px) {
  .staff-experience .staff-login-grid { display: block; max-width: 500px; margin: 0 auto; }
  .staff-hero-login { padding: 12px 16px 10px; }
  .staff-hero-login .staff-hero-art { width: min(100%, 380px); margin: 12px auto 0; }
  .staff-experience .editor-layout { display: block; }
  .staff-experience .day-form-pane { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .staff-experience { padding: 18px 14px 35px; }
  .staff-experience .staff-header { gap: 12px; margin-bottom: 20px; }
  .staff-experience .brand-name { font-size: 17px; }
  .staff-header-right { gap: 2px; flex-direction: column; align-items: flex-end; min-width: 0; }
  .staff-experience .staff-store { font-size: 12px; max-width: 160px; }
  .staff-experience .staff-header-right .btn { min-height: 44px; padding: 6px; font-size: 12px; }
  .staff-account-actions { gap: 2px; }
  .staff-logout-label { display: none; }
  .staff-experience .staff-header-right [data-action="staff-logout"] { min-width: 44px; }
  .staff-hero { grid-template-columns: 1.1fr 1fr; gap: 0; padding: 22px 18px; border-radius: 22px; margin-bottom: 18px; }
  .staff-greeting { font-size: 14px; margin-bottom: 7px; }
  .staff-hero h1 { font-size: 30px; line-height: 1.4; }
  .staff-hero-caption { font-size: 14px; margin-top: 10px; }
  .staff-hero:not(.staff-hero-login) .staff-hero-caption { grid-column: 1 / -1; }
  .staff-hero:not(.staff-hero-login) .staff-hero-art { width: 110%; max-width: none; margin-left: -4%; }
  .staff-hero-login { display: flex; padding: 8px 6px 18px; text-align: center; border-radius: 0; }
  .staff-hero-login h1 { font-size: 34px; }
  .staff-hero-login .staff-hero-art { width: min(100%, 330px); margin-top: 12px; border-radius: 16px; }
  .staff-mini-steps { justify-content: center; margin-top: 15px; gap: 20px; }
  .staff-experience .staff-login-card { padding: 24px 20px; border-radius: 24px; }
  .staff-login-card h2 { font-size: 21px; margin-bottom: 20px; }
  .staff-experience .staff-period-bar { padding: 14px 16px; gap: 10px; }
  .staff-experience .period-select { font-size: 17px; max-width: 235px; }
  .staff-experience .staff-period-actions { gap: 8px; }
  .staff-experience .deadline-meta { font-size: 13px; }
  .staff-experience .editor-heading { padding: 20px 17px 16px; }
  .staff-experience .editor-heading h2 { font-size: 20px; }
  .staff-experience .entry-modes { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 18px 17px 0; gap: 8px; }
  .staff-experience .entry-modes legend { padding-top: 20px; }
  .staff-experience .entry-modes legend, .staff-experience .blank-policy legend, .staff-calendar-title { font-size: 19px; }
  .staff-experience .entry-mode { display: block; position: relative; padding: 35px 11px 13px; min-height: 108px; }
  .staff-experience .entry-mode input { position: absolute; top: 11px; left: 11px; margin: 0; }
  .staff-experience .entry-mode strong { font-size: 16px; }
  .staff-experience .entry-mode small { font-size: 13px; }
  .staff-experience .rest-mode-hint { padding: 13px 17px 0; font-size: 14px; }
  .staff-experience .calendar-pane { padding: 22px 12px; }
  .staff-calendar-title { padding: 0 5px; margin-bottom: 14px; }
  .staff-experience .calendar-tools { padding: 0 5px; margin-bottom: 12px; }
  .staff-experience .calendar-tools strong { font-size: 16px; }
  .staff-experience .multi-toggle { font-size: 12px; }
  .staff-experience .calendar-grid { gap: 4px; }
  .staff-experience .calendar-day { min-height: 88px; border-radius: 10px; padding: 8px 4px; }
  .staff-experience .calendar-day.is-selected { padding: 7px 3px; }
  .staff-experience .day-number { font-size: 18px; margin-bottom: 9px; }
  .staff-experience .day-value, .staff-experience .day-status { font-size: 11px; }
  .staff-experience .day-status { text-align: center; }
  .staff-experience .day-note { font-size: 10px; }
  .staff-experience .calendar-legend { padding: 0 5px; font-size: 11px; gap: 8px 12px; }
  .staff-experience .day-form-pane { padding: 22px 17px; }
  .staff-experience .request-options { padding: 22px 17px; }
  .staff-experience .policy-card { padding: 15px 13px; gap: 10px; }
  .staff-experience .policy-card strong { font-size: 17px; }
  .staff-experience .policy-card small { font-size: 13px; }
  .staff-experience .policy-card > .icon { width: 17px; }
  .staff-experience .editor-footer { padding: 20px 17px; gap: 14px; }
  .staff-experience .editor-footer > .row { grid-template-columns: 1fr; gap: 10px; }
  .staff-experience .editor-footer [data-action="submit-request"] { grid-row: 1; }
  .staff-experience .editor-footer .btn { font-size: 16px; min-height: 52px; }
  .staff-experience .editor-footer [data-action="save-draft"] { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; }
  .sidebar, .workspace-header, .heading-actions, .share-card, .table-toolbar, .row-actions, .card-footer, .events-card, .modal-backdrop, #toast-root, .skip-link { display: none !important; }
  .workspace { display: block; }
  .workspace-main { padding: 0; }
  .summary-card.featured { color: var(--ink); background: white; }
  .card { break-inside: avoid; box-shadow: none; }
  .table-scroll { overflow: visible; }
  .preview-table td, .preview-table th { font-size: 8px; padding: 4px; }
}

/* Store setup: a larger, illustrated introduction, scoped to the first-time view. */
.setup-experience { max-width: 1220px; }
.setup-experience .welcome-header { margin-bottom: 36px; }
.setup-experience .welcome-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 1.04fr); gap: 48px; }
.setup-experience .welcome-story { padding-top: 12px; min-width: 0; }
.setup-experience .welcome-story > .eyebrow { display: inline-flex; padding: 7px 14px; border: 1px solid #ecd8c7; border-radius: 999px; background: #fff3e6; color: #975039; font-size: 14px; letter-spacing: .06em; }
.setup-experience .welcome-story h1 { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.45; margin-top: 20px; letter-spacing: .015em; }
.setup-experience .welcome-story h1 span { color: #a54e36; box-shadow: inset 0 -.22em #f4ddc4; }
.setup-experience .welcome-story > p { color: #4c6260; font-size: 17px; line-height: 1.9; margin-top: 20px; max-width: none; }
.setup-illustration { margin: 26px 0 0; border: 1px solid #eadfcf; border-radius: 26px; overflow: hidden; background: #fff6e9; box-shadow: 0 12px 32px #7658310b; }
.setup-illustration img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.setup-illustration figcaption { padding: 12px 18px 16px; color: #425f58; font-size: 16px; font-weight: 650; line-height: 1.6; text-align: center; }
.setup-experience .welcome-steps { grid-template-columns: 1fr; margin-top: 26px; gap: 12px; }
.setup-experience .welcome-steps li { display: flex; gap: 15px; align-items: flex-start; padding: 17px 18px; border: 1px solid #e1e7dd; border-radius: 18px; background: #ffffffb3; }
.setup-experience .step-number { flex: 0 0 auto; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 14px; background: #e7f1ec; color: var(--teal); font-size: 16px; }
.setup-experience .welcome-steps li:nth-child(2) .step-number { background: #fff0e4; color: #a54e36; }
.setup-experience .welcome-steps li:nth-child(3) .step-number { background: #eeeaf6; color: #675482; }
.setup-experience .welcome-steps strong { display: block; font-size: 18px; line-height: 1.6; }
.setup-experience .welcome-steps p { margin-top: 3px; color: #526663; font-size: 15px; line-height: 1.7; }
@media (max-width: 1050px) {
  .setup-experience .welcome-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 1.04fr); gap: 30px; }
}
@media (max-width: 850px) {
  .setup-experience .welcome-grid { grid-template-columns: 1fr; max-width: 620px; gap: 28px; }
  .setup-experience .welcome-story { padding-top: 0; }
  .setup-experience .welcome-story h1 { font-size: 40px; }
  .setup-illustration { max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .setup-experience { padding: 24px 20px 36px; }
  .setup-experience .welcome-header { margin-bottom: 28px; }
  .setup-experience .welcome-story > .eyebrow { font-size: 13px; }
  .setup-experience .welcome-story h1 { font-size: clamp(30px, 8vw, 38px); margin-top: 18px; }
  .setup-experience .welcome-story > p { font-size: 16px; line-height: 1.85; margin-top: 16px; }
  .setup-illustration { max-width: 360px; margin-top: 20px; border-radius: 20px; }
  .setup-illustration figcaption { font-size: 14px; padding: 10px 14px 13px; }
  .setup-experience .welcome-steps { margin-top: 20px; gap: 10px; }
  .setup-experience .welcome-steps li { padding: 14px; gap: 12px; border-radius: 14px; }
  .setup-experience .step-number { width: 40px; height: 40px; border-radius: 12px; }
  .setup-experience .welcome-steps strong { font-size: 17px; }
  .setup-experience .welcome-steps p { font-size: 14px; line-height: 1.6; }
}
/* Shown only by the isolated setup preview server. */
.setup-preview-notice { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid #e5c99d; background: #fff0d9; color: #674712; font-size: 14px; line-height: 1.7; }
.setup-preview-notice strong { font-size: 16px; flex: 0 0 auto; }
.setup-preview-notice span { max-width: 900px; }
@media (max-width: 640px) {
  .setup-staff-headings, .setup-staff-row { grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
}


/* Store payroll settings */
.export-hint { padding: 0 23px 16px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.payroll-form { gap: 22px; }
.payroll-form .field label { font-size: 14px; }
.payroll-form .field input { font-size: 16px; font-variant-numeric: tabular-nums; }
.payroll-form .field-hint { font-size: 12px; }
.payroll-section { display: grid; gap: 13px; }
.payroll-section h3 { font-size: 16px; line-height: 1.5; margin: 0; }
.payroll-section + .payroll-section { border-top: 1px solid var(--line); padding-top: 22px; }
.payroll-staff-list { display: grid; gap: 10px; }
.payroll-staff-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 46%); align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.payroll-staff-row:last-child { border-bottom: 0; }
.payroll-staff-row > label { display: grid; gap: 4px; overflow-wrap: anywhere; }
.payroll-staff-row > label strong { font-size: 14px; }
.payroll-staff-row > label span { color: var(--muted); font-size: 12px; }
.payroll-rate-field { display: flex; align-items: center; gap: 7px; min-width: 0; }
.payroll-rate-field input { min-width: 0; }
.payroll-rate-field > span { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.payroll-calculation-note { padding: 13px 15px; margin: 0; border-radius: 10px; background: var(--cream); color: var(--muted); font-size: 12px; line-height: 1.8; }
.payroll-calculation-note summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.payroll-calculation-note p { margin: 10px 0 0; }
.payroll-empty { color: var(--muted); font-size: 13px; }
.payroll-form .modal-footer { margin-top: 0; }
@media (max-width: 600px) {
  .page-heading { flex-direction: column; gap: 12px; }
  .heading-actions { padding-top: 0; flex-wrap: wrap; width: 100%; }
  .heading-actions .btn { flex: 1; min-height: 42px; font-size: 12px; }
  .export-hint { padding: 0 17px 14px; }
  .payroll-staff-row { grid-template-columns: minmax(0, 1fr) minmax(123px, 48%); gap: 8px; }
  .payroll-rate-field input { padding-left: 9px; padding-right: 9px; }
}

/* Work adjustment and store display settings */
.settings-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: var(--cream); margin-bottom: 22px; }
.settings-tab { flex: 1; border: 0; border-radius: 8px; background: transparent; padding: 11px 8px; font: inherit; font-size: 13px; color: var(--muted); }
.settings-tab.active { background: white; color: var(--teal); font-weight: 700; box-shadow: 0 1px 5px #22332612; }
.help-store-rows { display: grid; gap: 13px; }
.help-store-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 32px; align-items: end; gap: 10px; }
.help-store-row .field input { min-width: 0; font-size: 16px; }
.help-store-row .icon-btn { margin-bottom: 6px; }
.help-color-field input[type="color"] { padding: 4px; min-height: 44px; cursor: pointer; }
.shift-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.card > .shift-legend { padding: 0 23px 14px; }
.shift-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 13px; height: 13px; display: inline-block; border: 1px solid #0002; border-radius: 3px; flex-shrink: 0; }
.legend-off { background: #C62828; }
.legend-unavailable { background: #222222; }
.legend-cut { background: #FFEB3B; }
.adjustment-preview .adjust-cell { position: relative; padding-top: 7px; padding-bottom: 7px; }
.adjust-cell.adjust-off, .adjustment-date.adjust-off { color: white; background: #C62828; }
.adjust-cell.adjust-unavailable, .adjust-cell.adjust-missing, .adjustment-date.adjust-unavailable, .adjustment-date.adjust-missing { color: white; background: #222222; }
.adjust-cell.adjust-full_cut, .adjustment-date.adjust-full_cut { color: #222222; background: #FFEB3B; }
.adjust-cell.adjust-flexible, .adjustment-date.adjust-flexible { color: var(--teal); background: var(--teal-soft); }
.adjust-cell.has-help, .adjustment-date.has-help { color: var(--help-ink, #222222); background: var(--help-color, #DDEBF7); }
.adjust-time { display: block; min-height: 16px; padding: 0 2px; }
.adjust-time.is-time-cut { color: #222222; background: #FFEB3B; font-weight: 750; border-radius: 2px; }
.adjust-cell > small { display: block; font-size: 8px; line-height: 1.5; }
.adjust-help-label { display: block; font-size: 9px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.adjusted-marker { display: block; margin-top: 4px; font-size: 8px; font-weight: 650; opacity: .85; }
.adjust-stale-label { display: block; color: #A95600; font-size: 10px; }
.adjustment-form { display: grid; gap: 16px; }
.adjustment-form .notice { margin: 0; font-size: 12px; }
.adjustment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 22px; }
.adjustment-calendar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.adjustment-date { position: relative; display: grid; align-content: start; gap: 6px; min-height: 98px; padding: 9px 4px; border: 1px solid #d5ddd5; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-family: inherit; text-align: center; }
.adjustment-date > span:first-child { font-size: 15px; font-weight: 700; }
.adjustment-date > span:first-child small { margin-left: 3px; font-size: 10px; font-weight: 500; }
.adjustment-date.is-selected { outline: 3px solid var(--teal); outline-offset: 1px; }
.adjustment-date-value { display: grid; font-size: 12px; line-height: 1.4; }
.adjustment-date-value strong { font-size: 11px; }
.adjustment-date-value small { font-size: 9px; }
.adjustment-day-changed { font-size: 9px; margin-top: auto; }
.adjustment-day-panel { display: grid; gap: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.adjustment-day-panel h3 { font-size: 19px; margin: 0; }
.adjustment-day-panel .field label, .adjustment-day-panel .field-label { font-size: 13px; }
.adjustment-day-panel .field input, .adjustment-day-panel .field select, .adjustment-day-panel .field textarea { font-size: 15px; min-width: 0; }
.adjustment-day-panel .field textarea { min-height: 68px; }
.adjustment-original { display: grid; gap: 5px; padding: 12px; background: var(--cream); border-radius: 9px; }
.adjustment-original > span { color: var(--muted); font-size: 11px; }
.adjustment-original > strong { font-size: 16px; }
.adjustment-original > small { font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.adjustment-day-panel .cut-start > .field:first-child, .adjustment-day-panel .cut-end > .field:last-child { outline: 3px solid #FFEB3B; outline-offset: 4px; border-radius: 4px; }
.adjustment-auto-memo { padding: 12px; background: #FFF8D2; border-radius: 8px; font-size: 13px; }
.adjustment-save-status { margin-right: auto; align-self: center; font-size: 12px; color: var(--muted); }
.adjustment-period-note { padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.adjustment-period-note p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.adjustment-form .modal-footer { margin-top: 0; flex-wrap: wrap; }
@media (max-width: 700px) {
  .adjustment-layout { grid-template-columns: minmax(0, 1fr); }
  .adjustment-calendar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .adjustment-date { min-height: 88px; }
  .adjustment-day-panel { padding: 15px; }
  .adjustment-day-panel .field input, .adjustment-day-panel .field select, .adjustment-day-panel .field textarea { font-size: 16px; }
  .adjustment-save-status { width: 100%; }
  .card > .shift-legend { padding-left: 17px; padding-right: 17px; }
}


/* Keep intrinsic select/input widths inside the store-settings dialog. */
.shift-settings-form { min-width: 0; width: 100%; max-width: 100%; grid-template-columns: minmax(0, 1fr); }
.shift-settings-form > *, .shift-settings-form .payroll-section, .shift-settings-form .field, .help-store-rows, .help-store-row { min-width: 0; max-width: 100%; }
.shift-settings-form .payroll-section, .shift-settings-form .field, .help-store-rows { grid-template-columns: minmax(0, 1fr); }
.shift-settings-form .field input, .shift-settings-form .field select { min-width: 0; max-width: 100%; }
.shift-settings-form .modal-footer { flex-wrap: wrap; }
.settings-tabs, .settings-tab { min-width: 0; max-width: 100%; }
.schedule-workspace { scroll-margin-top: 24px; min-width: 0; }
.schedule-controls { margin: 0 24px 18px; padding: 18px; background: #f6f8f4; border: 1px solid #dce5d8; border-radius: 14px; display: grid; gap: 13px; min-width: 0; }
#schedule-status { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.schedule-rule-status { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: #42643c; }
.schedule-rule-status .icon { width: 16px; height: 16px; }
.schedule-rule-status.is-unset { color: #795322; }
.schedule-budget { font-size: 12px; color: #686d66; }
.schedule-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.schedule-controls .field-hint, .schedule-progress { margin: 0; }
.schedule-progress { color: #42643c; font-size: 13px; }
.schedule-progress:empty { display: none; }
.settings-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.area-rows { display: grid; gap: 10px; }
.area-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; align-items: end; }
.area-row .icon-btn { margin-bottom: 3px; }
.area-help-store-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 55px 32px; padding: 13px; border: 1px solid #e2e4de; border-radius: 12px; background: #fbfcf9; }
.shift-settings-form label.field > span:first-child, .scheduling-rules-form label.field > span:first-child { font-size: 13px; font-weight: 650; }
.shift-settings-form input, .shift-settings-form select { min-width: 0; max-width: 100%; font-size: 16px; }
.shift-settings-form input[type="checkbox"] { width: 18px; min-height: 18px; flex-shrink: 0; }
.shift-settings-form details.rule-section, .scheduling-rules-form details.rule-section { display: block; border: 1px solid #e1e5dc; border-radius: 13px; padding: 15px; }
.rule-section > summary { cursor: pointer; font-size: 15px; font-weight: 750; line-height: 1.65; }
.rule-section > summary > span { font-size: 12px; color: #727b69; font-weight: 400; margin-left: 6px; }
.rule-section[open] > summary { margin-bottom: 14px; }
.rule-section[open] > .field, .rule-section[open] > .field-hint, .rule-section[open] > .area-rows, .rule-section[open] > .rule-fields { margin-bottom: 13px; }
.settings-staff-list { display: grid; gap: 8px; max-height: 510px; overflow: auto; overscroll-behavior: contain; padding: 2px; }
.settings-staff-card { border: 1px solid #e1e5dc; border-radius: 10px; background: #fbfcf9; min-width: 0; }
.settings-staff-card[hidden] { display: none; }
.settings-staff-card > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px; font-size: 15px; font-weight: 650; }
.settings-staff-card > summary > span:last-child { font-size: 12px; color: #6e795f; font-weight: 500; text-align: right; }
.settings-staff-card > summary > span:first-child { overflow-wrap: anywhere; }
.settings-staff-card > summary small { display: block; font-size: 11px; font-weight: 400; color: #737b6d; margin-top: 3px; }
.settings-staff-card[open] > summary { border-bottom: 1px solid #e7eae1; }
.settings-staff-body { padding: 13px; display: grid; gap: 13px; }
.settings-staff-body h4 { margin: 0; font-size: 13px; }
.help-destination-group { border: 0; border-top: 1px solid #e1e5dc; margin: 12px 0 0; padding: 10px 0 0; display: grid; gap: 10px; }
.help-destination-group legend { font-size: 12px; padding-right: 10px; font-weight: 650; color: #647453; }
.staff-role-checks { display: flex; gap: 12px; flex-wrap: wrap; }
.role-requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coverage-role-details { margin-top: 14px; font-size: 13px; }
.coverage-role-details summary { cursor: pointer; font-weight: 650; margin-bottom: 12px; }
.date-override { margin: 0 0 14px; padding: 14px; border: 1px solid #d7dfcf; border-radius: 12px; min-width: 0; }
.date-override > legend { font-weight: 650; font-size: 12px; padding: 0 6px; }
.date-override .check-label { margin: 12px 0; }
.date-override [data-override-coverage] > .btn { margin-top: 12px; }
@media (max-width: 600px) {
  .area-help-store-row { grid-template-columns: minmax(0, 1fr) 54px 32px; gap: 9px; }
  .area-help-store-row > .field:first-child { grid-column: 1 / 3; }
  .area-help-store-row > label.field { grid-column: 1 / 2; grid-row: 2; }
  .area-help-store-row .help-color-field { grid-column: 2; grid-row: 2; }
  .area-help-store-row > .icon-btn { grid-column: 3; grid-row: 1; }
  .settings-staff-card > summary { padding: 12px; gap: 8px; }
  .shift-settings-form details.rule-section, .scheduling-rules-form details.rule-section { padding: 12px; }
  .settings-staff-list { max-height: 430px; }
}
.settings-tab { white-space: normal; overflow-wrap: anywhere; }
.scheduling-rules-form, .schedule-result { min-width: 0; max-width: 100%; }
.scheduling-rules-form { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.scheduling-rules-form *, .schedule-result * { min-width: 0; }
.rule-section { display: grid; gap: 12px; }
.rule-section h3, .schedule-result h3 { margin: 0; font-size: 15px; }
.rule-section .field-hint { margin: 0; }
.rule-section-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.coverage-rule-rows, .rule-staff-list { display: grid; gap: 14px; }
.coverage-rule, .rule-staff { margin: 0; padding: 14px; border: 1px solid #e2e4de; border-radius: 12px; background: #fbfcf9; max-width: 100%; }
.coverage-rule legend, .rule-staff legend { padding: 0 5px; font-size: 13px; font-weight: 700; }
.coverage-rule-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #68715f; margin-top: -7px; }
.coverage-rule-top .icon-btn { min-height: 40px; min-width: 40px; }
.rule-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 5px 0 14px; }
.rule-weekdays label { position: relative; cursor: pointer; }
.rule-weekdays input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rule-weekdays span { display: grid; place-items: center; height: 40px; border: 1px solid #dfe4da; border-radius: 8px; background: white; color: #676d62; font-weight: 650; }
.rule-weekdays input:checked + span { background: #e3eddb; color: #304a28; border-color: #799566; }
.rule-weekdays input:focus-visible + span { outline: 3px solid #9fbc87; outline-offset: 2px; }
.rule-weekdays input:disabled + span { opacity: .55; cursor: wait; }
.rule-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule-fields .field { min-width: 0; }
.scheduling-rules-form input, .scheduling-rules-form select { width: 100%; min-width: 0; max-width: 100%; }
.scheduling-rules-form input[type="checkbox"] { width: 17px; flex-shrink: 0; }
.scheduling-rules-form .field label { font-size: 13px; overflow-wrap: anywhere; }
.scheduling-rules-form .field input { min-height: 44px; }
.scheduling-rules-form .modal-footer, .schedule-result-footer { display: flex; gap: 8px; flex-wrap: wrap; }
.rule-staff-details { display: block; border-top: 1px solid #e9ebe4; padding-top: 16px; }
.rule-staff-details summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.rule-staff-details summary span { display: block; margin: 5px 0 0 18px; font-size: 12px; color: #7b8275; font-weight: 400; }
.rule-staff-list { margin-top: 16px; }
.rule-staff legend small { color: #777e71; font-weight: 400; }
.shift-cell-button { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 3px; position: relative; width: 100%; min-height: 54px; padding: 9px 4px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.shift-cell-button:focus-visible { outline: 3px solid #497239; outline-offset: -3px; }
.shift-cell-button > small, .shift-cell-button > strong { width: 100%; }
.adjustment-preview td.adjust-cell { padding: 0; }
.shift-cell-button .adjusted-marker { width: 100%; font-size: 9px; }
.schedule-result { display: grid; gap: 16px; }
.schedule-result > .field-hint { margin: 0; }
.schedule-result .notice strong, .schedule-result .notice span { display: block; }
.schedule-result .notice span { margin-top: 5px; }
.schedule-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.schedule-summary > div { display: grid; gap: 6px; padding: 16px; background: #f6f8f3; border: 1px solid #e4e9dc; border-radius: 12px; }
.schedule-summary span, .schedule-summary small { font-size: 12px; color: #6e7766; }
.schedule-summary strong { font-size: 23px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.schedule-summary strong small { margin-left: 4px; font-weight: 400; }
.schedule-summary .is-shortage { background: #fff6e8; border-color: #eed8b1; }
.schedule-summary .is-shortage strong { color: #9c591b; }
.schedule-warnings { padding: 13px; background: #fffaf0; border: 1px solid #ecdfc3; border-radius: 10px; font-size: 13px; }
.schedule-warnings summary { font-weight: 700; cursor: pointer; }
.schedule-warnings ul { margin: 12px 0 0; padding-left: 20px; max-height: 260px; overflow: auto; }
.schedule-warnings li { margin: 8px 0; line-height: 1.6; overflow-wrap: anywhere; }
#schedule-plan-remote:empty { display: none; }
#schedule-day-preview { display: grid; gap: 22px; }
.schedule-day-coverage, .schedule-day-staff { display: grid; gap: 8px; }
.schedule-result h3 small { font-size: 12px; color: #7c8276; font-weight: 400; margin-left: 5px; }
.coverage-result { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px 8px; align-items: center; padding: 10px 12px; border: 1px solid #e7eadf; border-radius: 8px; font-size: 12px; }
.coverage-result span { display: grid; gap: 4px; }
.coverage-result strong { font-size: 13px; }
.coverage-result small { color: #9b5b22; }
.coverage-result.is-shortage { border-color: #e7c998; background: #fff8ec; }
.schedule-person-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef0e9; }
.schedule-person-row > div:first-child { display: grid; gap: 3px; overflow-wrap: anywhere; }
.schedule-person-row strong { font-size: 14px; }
.schedule-person-row small { font-size: 11px; color: #7b8273; }
.schedule-person-shift { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; min-height: 50px; border: 1px solid #e6e9df; border-radius: 8px; padding: 8px; }
.schedule-person-shift.has-help { background: var(--help-color); color: var(--help-ink); }
.schedule-person-shift.has-help small, .schedule-person-shift.adjust-unavailable small { color: inherit; }
.schedule-person-shift.adjust-off { background: #C62828; color: white; }
.schedule-person-shift.adjust-unavailable, .schedule-person-shift.adjust-missing { background: #202020; color: white; }
.schedule-person-shift.adjust-full_cut { background: #FFEB3B; color: #222222; }
.schedule-person-shift small { width: 100%; text-align: center; overflow-wrap: anywhere; }
.schedule-person-shift .adjust-time { padding: 3px 5px; }
@media (max-width: 600px) {
  .schedule-workspace .card-header { flex-wrap: wrap; gap: 12px; }
  .schedule-controls { margin: 0 14px 16px; padding: 13px; gap: 12px; }
  .schedule-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-actions [data-action="generate-schedule"] { grid-column: 1 / -1; }
  .schedule-actions .btn { padding-left: 8px; padding-right: 8px; min-height: 44px; font-size: 13px; }
  .settings-tabs .settings-tab { padding: 10px 5px; font-size: 11px; line-height: 1.5; }
  .rule-fields { gap: 10px; }
  .coverage-rule, .rule-staff { padding: 10px; }
  .rule-weekdays { gap: 4px; }
  .rule-weekdays span { height: 40px; font-size: 13px; }
  .scheduling-rules-form .modal-footer > .btn, .schedule-result-footer > .btn { flex: 1 1 auto; min-height: 44px; white-space: normal; }
  .schedule-result-footer [data-action="apply-schedule"] { flex-basis: 100%; }
  .schedule-summary > div { padding: 12px; }
  .schedule-summary strong { font-size: 21px; }
  .coverage-result { padding: 10px; }
  .scheduling-rules-form .check-label { font-size: 13px; align-items: flex-start; }
}
.schedule-overview { display: grid; gap: 12px; padding: 18px; border: 1px solid #d8e8d4; border-radius: 14px; background: #f0f7ec; }
.schedule-overview.needs-review { border-color: #eddbb9; background: #fff8ec; }
.schedule-overview-title { display: flex; align-items: flex-start; gap: 10px; color: #315b32; }
.schedule-overview.needs-review .schedule-overview-title { color: #895521; }
.schedule-overview-title .icon { flex: 0 0 23px; width: 23px; height: 23px; margin-top: 1px; }
.schedule-overview-title strong { font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.schedule-overview p { margin: 0; color: #56674c; line-height: 1.65; font-size: 13px; }
.schedule-rule-result { display: flex; gap: 8px; align-items: center; color: #3d6436; padding-top: 11px; border-top: 1px solid #dce8d5; font-size: 14px; }
.schedule-rule-result .icon { width: 18px; height: 18px; flex-shrink: 0; }
.schedule-rule-result.needs-review, .schedule-other-result { color: #8a5521; }
.schedule-other-result { font-size: 13px; font-weight: 600; }
.schedule-shortage-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.schedule-shortage-dates .btn { min-height: 40px; }
.coverage-result-readable { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; }
.coverage-result-readable h4 { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.4; }
.coverage-staffing { display: grid; gap: 5px; align-content: start; }
.coverage-staffing strong { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.coverage-staffing.is-enough strong { color: #43633b; }
.coverage-staffing.is-shortage strong { color: #9b541a; }
.coverage-staffing small { color: #73796d; font-size: 11px; line-height: 1.5; }
.schedule-supplement, .schedule-period-totals { padding: 14px; border: 1px solid #e7e9e1; border-radius: 10px; color: #68715f; font-size: 13px; }
.schedule-supplement summary, .schedule-period-totals summary { cursor: pointer; font-weight: 600; }
.schedule-supplement ul { padding-left: 18px; margin: 12px 0 0; }
.schedule-supplement li { margin: 8px 0; line-height: 1.7; overflow-wrap: anywhere; }
.schedule-summary-secondary { margin-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-summary-secondary > div { padding: 10px; background: #f9faf7; }
.schedule-summary-secondary strong { font-size: 19px; }
.schedule-summary-secondary small { line-height: 1.5; }
.schedule-day-edit { border: 1px solid #b9cead; border-radius: 10px; padding: 0 14px; color: #375630; }
.schedule-day-edit > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.schedule-day-edit > summary::-webkit-details-marker { display: none; }
.schedule-day-edit > summary::after { content: '+'; margin-left: auto; font-size: 19px; font-weight: 400; }
.schedule-day-edit[open] > summary::after { content: '−'; }
.schedule-day-edit > .field-hint { margin: 0 0 12px; line-height: 1.7; }
.schedule-edit-staff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.schedule-edit-staff .btn { min-height: 44px; justify-content: space-between; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.schedule-edit-staff .icon { flex-shrink: 0; width: 15px; height: 15px; }
@media (max-width: 600px) {
  .schedule-overview { padding: 15px; gap: 11px; }
  .schedule-overview-title { gap: 8px; }
  .schedule-overview-title strong { font-size: 17px; }
  .schedule-overview-title .icon { flex-basis: 21px; width: 21px; height: 21px; }
  .coverage-result-readable { padding: 12px; gap: 9px; }
  .schedule-summary-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-summary-secondary > div:last-child { grid-column: 1 / -1; }
  .schedule-edit-staff { grid-template-columns: minmax(0, 1fr); }
}
.schedule-day-status { padding: 14px; border: 1px solid #d8e8d4; border-radius: 10px; background: #f3f8ef; color: #365b2d; font-size: 13px; line-height: 1.65; }
.schedule-day-status.is-clear, .schedule-day-status > strong { display: flex; gap: 8px; align-items: flex-start; }
.schedule-day-status .icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.schedule-day-status.needs-review { background: #fff8ec; border-color: #e9cfa3; color: #8f531d; }
.schedule-day-status ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.schedule-day-status li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.schedule-day-status li + li { padding-top: 9px; border-top: 1px solid #ecd9b8; }
.schedule-day-status li span { overflow-wrap: anywhere; }
.staff-hub-card { margin-bottom: 18px; overflow: hidden; }
.staff-hub-card-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px 22px; align-items: center; padding: 20px 24px 15px; }
.staff-hub-card-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.staff-hub-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); flex-shrink: 0; }
.staff-hub-card-heading h2 { margin: 0; font-size: 17px; line-height: 1.5; }
.staff-hub-card-heading p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.staff-hub-counts { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.staff-hub-counts strong { margin-left: 4px; font-size: 15px; color: var(--ink); }
.staff-hub-counts .has-missing strong { color: #ad5b27; }
.staff-hub-card-main > .btn { grid-column: 2; grid-row: 1 / 3; min-height: 44px; }
.staff-hub-sync { padding: 9px 24px; background: #fafbf8; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.staff-hub-sync > span:last-child { display: none; }
.staff-hub { min-width: 0; }
.staff-hub-tools { display: grid; gap: 14px; margin-bottom: 18px; }
.staff-hub-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-hub-topline p { margin: 0; color: var(--muted); font-size: 12px; }
.staff-hub-topline .btn { min-height: 44px; flex-shrink: 0; }
.staff-hub-tools .search-field { width: 100%; max-width: none; }
.staff-hub-tools input { width: 100%; min-width: 0; max-width: 100%; }
.staff-hub .staff-hub-filters { display: flex; gap: 5px; overflow-x: auto; padding: 4px 0 7px; max-width: 100%; flex-wrap: nowrap; }
.staff-hub-filters .filter-tab { flex: 0 0 auto; min-height: 40px; white-space: nowrap; }
.staff-hub-list { display: grid; gap: 12px; }
.staff-hub-person { border: 1px solid var(--line); border-radius: 13px; padding: 16px; min-width: 0; }
.staff-hub-person-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.staff-hub-person-heading .person { min-width: 0; }
.staff-hub-person-heading .person > div { min-width: 0; }
.staff-hub-person-heading h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.staff-hub-person-heading small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.staff-hub-person-heading .person-avatar { flex-shrink: 0; }
.staff-hub-person-heading .badge { flex-shrink: 0; }
.staff-hub-outside { flex-shrink: 0; font-size: 11px; color: var(--muted); padding: 5px 8px; border-radius: 6px; background: var(--cream); }
.staff-hub-entry-meta { margin: 12px 0 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.staff-hub-entry-meta span { margin-left: 10px; }
.staff-hub-code-status { min-height: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.staff-hub-code-status .credential-status { margin-top: 0; font-size: 11px; }
.staff-hub-person-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.staff-hub-person-actions .btn { min-height: 40px; }
.staff-hub-code-button { margin-left: auto; }
.staff-hub-help { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 600px) {
  .staff-hub-card-main { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px 16px; }
  .staff-hub-card-heading h2 { font-size: 16px; }
  .staff-hub-card-main > .btn { grid-row: auto; grid-column: 1; width: 100%; }
  .staff-hub-counts { justify-content: space-between; gap: 8px; font-size: 11px; }
  .staff-hub-counts strong { font-size: 14px; }
  .staff-hub-sync { padding: 8px 16px; }
  .staff-hub-topline { flex-wrap: wrap; gap: 8px; }
  .staff-hub-person { padding: 13px; }
  .staff-hub-person-heading { gap: 8px; }
  .staff-hub-person-heading h3 { font-size: 15px; }
  .staff-hub-person-heading .person-avatar { width: 32px; height: 32px; }
  .staff-hub-person-heading .badge { padding: 5px 7px; font-size: 11px; }
  .staff-hub-entry-meta span { display: block; margin-left: 0; }
  .staff-hub-person-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .staff-hub-person-actions .btn { min-height: 44px; padding-left: 5px; padding-right: 5px; white-space: normal; font-size: 12px; }
  .staff-hub-person-actions .staff-hub-code-button { margin-left: 0; grid-column: 1 / -1; justify-self: start; padding-left: 10px; padding-right: 10px; }
}
.dashboard-hubs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 10px; }
.dashboard-hub-card { display: flex; flex-direction: column; gap: 16px; padding: 21px; min-width: 0; margin: 0; border-radius: 17px; box-shadow: 0 5px 18px #20352805; scroll-margin-top: 20px; }
.dashboard-hub-card .staff-hub-card-main { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 0; height: 100%; }
.dashboard-hub-heading, .dashboard-hub-card .staff-hub-card-heading { display: flex; align-items: center; gap: 11px; }
.dashboard-hub-heading > div, .dashboard-hub-card .staff-hub-card-heading > div { min-width: 0; }
.dashboard-hub-heading h2, .dashboard-hub-card .staff-hub-card-heading h2 { margin: 0; font-size: 16px; line-height: 1.55; }
.dashboard-hub-heading p, .dashboard-hub-card .staff-hub-card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dashboard-hub-icon, .dashboard-hub-card .staff-hub-card-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; flex-shrink: 0; }
.shift-hub-icon { background: #eaf0de; color: #506b32; }
.activity-hub-icon { background: #f5eddf; color: #967443; }
.dashboard-hub-facts, .dashboard-hub-card .staff-hub-counts { display: flex; gap: 7px 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; min-height: 32px; align-content: flex-start; }
.dashboard-hub-facts strong, .dashboard-hub-card .staff-hub-counts strong { color: var(--ink); font-size: 12px; margin-left: 3px; }
.dashboard-hub-card > .btn, .dashboard-hub-card .staff-hub-card-main > .btn { margin-top: auto; width: 100%; min-height: 43px; font-size: 12px; justify-content: space-between; padding-left: 13px; padding-right: 13px; }
.dashboard-hub-card .hub-pending { display: block; flex-basis: 100%; color: #9e642a; font-weight: 650; }
.dashboard-sync { display: flex; justify-content: space-between; gap: 8px; margin: 0 2px 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal.modal-shift-hub { width: min(1200px, calc(100vw - 40px)); max-width: 1200px; }
.shift-hub { min-width: 0; }
.shift-hub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.shift-hub-toolbar > p { margin: 0; color: var(--muted); font-size: 13px; }
.shift-hub-exports { display: flex; gap: 8px; flex-wrap: wrap; }
.shift-hub .schedule-controls { margin: 0 0 17px; }
.shift-hub .shift-legend { padding-left: 0; padding-right: 0; }
.shift-hub .export-hint { margin-left: 0; margin-right: 0; }
.shift-hub #preview-table { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.shift-hub .table-scroll { overflow: auto; max-width: 100%; }
.shift-hub .preview-table { margin: 0; }
@media (max-width: 1100px) and (min-width: 701px) {
  .dashboard-hubs-grid { gap: 12px; }
  .dashboard-hub-card { padding: 17px 14px; }
  .dashboard-hub-heading, .dashboard-hub-card .staff-hub-card-heading { gap: 8px; }
  .dashboard-hub-heading h2, .dashboard-hub-card .staff-hub-card-heading h2 { font-size: 14px; }
  .dashboard-hub-icon, .dashboard-hub-card .staff-hub-card-icon { width: 33px; height: 33px; border-radius: 10px; }
}
@media (max-width: 700px) {
  .dashboard-hubs-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dashboard-hub-card { padding: 16px; gap: 12px; }
  .dashboard-hub-card .staff-hub-card-main { gap: 12px; }
  .dashboard-hub-heading h2, .dashboard-hub-card .staff-hub-card-heading h2 { font-size: 16px; }
  .dashboard-hub-facts, .dashboard-hub-card .staff-hub-counts { min-height: 0; justify-content: flex-start; }
  .dashboard-hub-card .hub-pending { flex-basis: auto; }
  .dashboard-hub-card > .btn, .dashboard-hub-card .staff-hub-card-main > .btn { min-height: 44px; font-size: 13px; }
  .dashboard-sync { margin-bottom: 16px; }
  .dashboard-sync > span:last-child { display: none; }
  .modal.modal-shift-hub { width: 100%; max-width: 100%; }
  .shift-hub .schedule-controls { padding: 13px; }
  .shift-hub-toolbar { margin-bottom: 14px; }
  .shift-hub-exports .btn { min-height: 42px; }
}
/* Schedule publication and Excel review stay inside the existing workspace. */
.publication-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: #edf1f4; color: #465366; font-size: 12px; font-weight: 700; white-space: nowrap; }
.publication-confirmed { background: #e0f3e9; color: #246347; }
.publication-changed { background: #fff0cd; color: #805800; }
.publication-draft { background: #e4edff; color: #325587; }
.publication-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px; margin: 10px 0 20px; border: 1px solid #dce5ec; border-radius: 14px; background: #f8fbfd; }
.publication-controls p { font-size: 13px; line-height: 1.7; margin: 6px 0 0; color: #536174; }
.publication-controls > button { flex-shrink: 0; }
.publication-review > p, .excel-import > p { line-height: 1.8; }
.publication-issues { margin: 10px 0; padding-left: 20px; line-height: 1.8; overflow-wrap: anywhere; }
.publication-warnings { margin: 18px 0; padding: 14px; border: 1px solid #efd9a4; border-radius: 12px; background: #fffaf0; }
.publication-warnings summary { cursor: pointer; font-weight: 700; }
.publication-shifts { margin: 18px 0; border: 1px solid #dce5ec; border-radius: 12px; padding: 14px; }
.publication-shifts summary { cursor: pointer; font-weight: 600; padding: 5px 0; }
.publication-shifts > details { border-top: 1px solid #edf0f3; padding: 8px 0; margin-top: 8px; }
.request-copy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.staff-view-tabs { display: flex; gap: 10px; margin: 22px 0 8px; }
.staff-view-tabs button { flex: 1; }
.staff-payroll-row { display: flex; justify-content: flex-end; margin: 2px 0 16px; }
.staff-payroll-link { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-height: 44px; padding: 6px 0; color: var(--teal); text-decoration: none; line-height: 1.5; }
.staff-payroll-link strong { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.staff-payroll-link > span { font-size: 11px; color: var(--muted); }
.staff-payroll-link:hover strong { text-decoration-thickness: 2px; }
.staff-schedule-heading { margin: 26px 0; }
.staff-schedule-heading h1 { font-size: clamp(25px, 5vw, 36px); margin: 6px 0; }
.staff-schedule-heading > p { color: #607082; }
.staff-published-card { background: white; border: 1px solid #e0e5eb; border-radius: 20px; padding: 24px; margin: 20px 0; }
.staff-published-card h2 { font-size: 20px; }
.staff-published-days { margin: 20px 0; }
.staff-published-day { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid #edf0f3; }
.staff-published-day > div { display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; }
.staff-published-day b { font-size: 20px; }
.staff-published-day small { color: #637184; white-space: pre-wrap; }
.import-change-list { display: grid; gap: 12px; margin: 16px 0; }
.import-change { padding: 14px 16px; border: 1px solid #dde4eb; border-radius: 12px; overflow-wrap: anywhere; }
.import-change > strong { display: block; margin-bottom: 10px; }
.import-change > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 5px 0; }
.import-change > div > span { font-size: 12px; color: #627186; }
.import-change p { margin: 0; white-space: pre-wrap; }
.import-change > div:last-child { color: #256245; }
.excel-import input[type="file"] { max-width: 100%; min-width: 0; }
.excel-import .excel-import-note { margin-top: 18px; font-size: 13px; line-height: 1.8; }
.excel-import-note p { margin: 8px 0 0; }
@media (max-width: 600px) {
  .publication-controls { align-items: stretch; flex-direction: column; }
  .publication-controls > button { width: 100%; }
  .publication-review .modal-footer, .excel-import .modal-footer { flex-wrap: wrap; }
  .staff-published-card { padding: 18px; }
  .staff-published-day { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .shift-hub-exports { flex-wrap: wrap; }
}
:root { --sales-cell-width: 112px; }
.sales-metric th, .sales-metric td { background: #f1f6f3; min-width: var(--sales-cell-width); white-space: nowrap; padding: 10px 8px; font-variant-numeric: tabular-nums; }
.sales-metric th { text-align: left; }
.sales-summary { margin-top: 24px; padding: 18px; border: 1px solid #d9e4dc; border-radius: 12px; }
.sales-summary .preview-table { min-width: 850px; }
.sales-summary td, .sales-summary th { padding: 12px; white-space: nowrap; }
.sales-input-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.sales-input-table th, .sales-input-table td { padding: 8px; border-bottom: 1px solid #d9e4dc; text-align: left; }
.sales-input-table input { width: 100%; min-width: 140px; }
.settings-tabs { flex-wrap: wrap; }
.sales-metric th, .sales-metric td { font-size: 12px; }
.adjustment-preview:has(.sales-metric) th:first-child { width: 148px; }
.sales-summary .row { flex-wrap: wrap; gap: 12px; }
.sales-summary .preview-table { table-layout: auto; font-size: 13px; }
.sales-input-table th { white-space: nowrap; }
#sales-reload { white-space: normal; }
#sales-reload[hidden] { display: none; }
.sales-entry-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sales-entry-summary > div { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #f1f6f3; }
.sales-entry-summary span, .sales-entry-summary small { color: var(--muted); font-size: 12px; }
.sales-entry-summary strong { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .sales-input-table { width: 100%; min-width: 0; table-layout: fixed; }
  .sales-input-table th:first-child { width: 66px; }
  .sales-input-table th, .sales-input-table td { padding: 8px 4px; font-size: 12px; }
  .sales-input-table input { min-width: 0; width: 100%; padding-inline: 6px; font-size: 16px; }
  .sales-summary { padding: 12px; }
  .sales-summary .row > .btn { width: 100%; }
}
