/* Sakura Shift — shared interaction and layout system. */
:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #172a2a;
  --muted: #64736d;
  --subtle: #89968f;
  --line: #dce3df;
  --line-soft: #edf0ed;
  --teal: #176b61;
  --teal-dark: #10564e;
  --teal-soft: #e8f3ef;
  --amber: #8c5b12;
  --amber-soft: #fff5df;
  --red: #b23b3e;
  --red-soft: #fceeee;
  --plum: #765578;
  --plum-soft: #f1ebf3;
  --blue: #37628e;
  --blue-soft: #eaf1fa;
  --radius: 11px;
  --demo-height: 44px;
  --sidebar-width: 224px;
  --staff-width: 600px;
  --shadow: 0 3px 14px rgba(23, 42, 42, .035);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); min-width: 320px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
svg { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
button svg, a svg { pointer-events: none; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 680; letter-spacing: -.025em; line-height: 1.4; }
h1 { font-size: 27px; margin-bottom: 8px; }
h2 { font-size: 19px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
h4 { font-size: 14px; margin-bottom: 6px; }
p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
small { font-size: 12px; }
ul, ol { padding-left: 21px; }
li + li { margin-top: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
::selection { background: #cce7df; color: var(--ink); }
:focus-visible { outline: 3px solid #78b6a9; outline-offset: 3px; }
[hidden] { display: none !important; }
[aria-busy="true"] { cursor: progress; }

/* Persistent frame: demo controls are distinct from product navigation. */
.demo-bar {
  position: sticky; top: 0; z-index: 70;
  min-height: var(--demo-height); padding: 7px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #e8eee8; border-bottom: 1px solid #d3ded5;
  color: #3e584e; font-size: 11px; line-height: 1.5;
}
.demo-bar strong { font-size: 11px; letter-spacing: .035em; }
.demo-bar .row { gap: 8px; }
.demo-bar button, .demo-bar select, .demo-bar .btn {
  min-height: 28px; padding: 4px 9px; border-radius: 5px;
  border: 1px solid #cbd8cf; background: rgba(255,255,255,.65);
  color: #38584c; font-size: 11px; white-space: nowrap;
}
.demo-bar button:hover { background: #fff; }
.demo-bar .primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.demo-label, .demo-caption { display: inline-flex; align-items: center; gap: 7px; }
.demo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.demo-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.demo-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.demo-detail { color: #6a7d70; font-size: 10px; }
.demo-separator { height: 16px; width: 1px; margin: 0 3px; background: #c4d3c7; }
.app-shell { display: flex; align-items: flex-start; min-height: calc(100dvh - var(--demo-height)); }
.sidebar {
  position: sticky; top: var(--demo-height); flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width); height: calc(100dvh - var(--demo-height));
  padding: 28px 16px 20px; display: flex; flex-direction: column;
  background: var(--ink); color: #e8f0eb; overflow-y: auto;
}
.sidebar a, .sidebar button { color: inherit; }
.sidebar .brand, .sidebar .logo { padding: 0 12px 30px; font-size: 20px; font-weight: 650; letter-spacing: -.04em; }
.sidebar .brand { display: flex; align-items: center; gap: 9px; font-size: 18px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--teal); }
.sidebar .brand-mark { color: #9bc7b3; }
.sidebar .brand small, .sidebar .logo small { display: block; font-size: 10px; margin-top: 4px; color: #98ada1; font-weight: 500; letter-spacing: .09em; }
.sidebar > h1, .sidebar > h2 { color: #fff; padding: 0 12px; margin-bottom: 28px; font-size: 20px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a, .sidebar nav button, .sidebar .nav-item {
  position: relative; width: 100%; min-height: 44px; padding: 11px 13px;
  display: flex; align-items: center; gap: 11px; text-align: left;
  border: 0; border-radius: 7px; background: transparent;
  color: #aebfb5; font-size: 13px; font-weight: 520; text-decoration: none;
}
.sidebar nav a:hover, .sidebar nav button:hover, .sidebar .nav-item:hover { color: #fff; background: #233b36; }
.sidebar nav .active, .sidebar nav [aria-current="page"], .sidebar .nav-item.active { background: #284c43; color: #fff; }
.sidebar nav .active::before, .sidebar nav [aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #8cc4ae; }
.sidebar .badge { margin-left: auto; background: #38594f; color: #e3f0e7; font-size: 10px; padding: 1px 6px; }
.sidebar .nav-item b { margin-left: auto; min-width: 19px; padding: 1px 5px; border-radius: 4px; background: #38594f; color: #e3f0e7; font-size: 10px; text-align: center; }
.sidebar .muted, .sidebar .small { color: #99aea1; }
.sidebar .divider { background: #365047; margin: 23px 10px; }
.sidebar-footer, .sidebar .nav-footer { margin-top: auto; padding: 24px 12px 0; font-size: 11px; color: #9cb1a4; }
.sidebar-footer .btn { margin-top: 12px; border-color: #3c554b; color: #c7d5cc; background: transparent; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding-left: 7px; padding-right: 7px; }
.sidebar-footer .avatar { width: 31px; height: 31px; background: #355044; color: #c5d7cb; font-size: 11px; }
.sidebar-footer > div { flex: 1; min-width: 0; color: #d7e3da; font-size: 11px; }
.sidebar-footer small { display: block; color: #97ae9f; font-size: 10px; }
.sidebar-footer .btn { min-height: 30px; padding: 5px; margin-top: 0; border-color: transparent; }
.main-area { flex: 1 1 auto; min-width: 0; }
.topbar {
  min-height: 76px; padding: 17px 32px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar h1, .topbar h2, .topbar p { margin: 0; }
.topbar h1 { font-size: 17px; }
.topbar select { max-width: 190px; border: 0; background: transparent; font-weight: 600; padding: 6px; }
.topbar .breadcrumbs, .breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.topbar .btn.ghost { padding: 8px; min-height: 38px; }
.topbar .avatar { width: 34px; height: 34px; font-size: 11px; }
.company-name { font-size: 13px; font-weight: 650; }
.scenario-label { font-size: 11px; color: var(--muted); }
.divider-vertical { width: 1px; height: 19px; background: var(--line); margin: 0 2px; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 17px 32px 23px; border-top: 1px solid var(--line); font-size: 10px; color: #7f8e82; }
.main-area > main, .main-area > #main { width: 100%; max-width: 1680px; margin: 0 auto; padding: 28px 32px 56px; }
.staff-shell { min-height: calc(100dvh - var(--demo-height)); width: 100%; }
.staff-header {
  position: sticky; top: var(--demo-height); z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; max-width: var(--staff-width); margin: 0 auto; padding: 16px 24px;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
}
.staff-header .brand, .staff-header .logo { font-size: 19px; font-weight: 700; letter-spacing: -.045em; }
.staff-header .brand span, .staff-header .logo span { color: var(--teal); }
.staff-header .btn { min-height: 38px; }
.staff-header .icon-button { position: relative; }
.notification-button { position: relative; }
.notification-button b { position: absolute; top: 1px; right: 2px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid #fff; background: var(--teal); color: #fff; font-size: 8px; font-weight: 650; }
.staff-footnote { max-width: var(--staff-width); margin: -88px auto 0; padding: 6px 24px 92px; text-align: center; font-size: 10px; color: #92a094; }
.staff-main { max-width: var(--staff-width); margin: 0 auto; padding: 26px 24px 110px; }
.staff-main h1 { font-size: 26px; }
.staff-main .page-head { margin-bottom: 24px; }
.staff-main .card { margin-bottom: 18px; }
.staff-main .stack .card, .staff-main .grid-2 .card { margin-bottom: 0; }
.staff-main .summary-strip { margin-bottom: 20px; }
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 45;
  width: min(100%, var(--staff-width)); min-height: 72px; padding: 6px 16px max(8px, env(safe-area-inset-bottom));
  display: flex; align-items: stretch; background: rgba(255,255,255,.98);
  border-top: 1px solid var(--line); box-shadow: 0 -3px 14px rgba(23,42,42,.025);
}
.bottom-nav a, .bottom-nav button {
  position: relative; display: flex; flex: 1; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  min-height: 54px; border: 0; border-radius: 6px; padding: 6px;
  background: transparent; color: var(--muted); font-size: 11px; font-weight: 550; text-decoration: none;
}
.bottom-nav .active, .bottom-nav [aria-current="page"] { color: var(--teal); background: #f1f7f4; }
.bottom-nav .active svg { stroke-width: 2; }
.bottom-nav .active::before { content: ""; width: 24px; height: 2px; background: var(--teal); border-radius: 2px; position: absolute; top: 2px; }

/* Shared semantic components. */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.page-head > :first-child { min-width: 0; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); margin-bottom: 0; font-size: 13px; }
.page-head > .row, .page-head > .btn { flex-shrink: 0; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.6; }
.section-title { margin: 4px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 650; }
.section-title h2, .section-title h3 { margin: 0; font-size: inherit; }
.card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head h2 { font-size: 17px; }
.card-head .small { margin-top: 3px; }
.card + .card { margin-top: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack > h2, .stack > h3, .stack > p, .stack > .card-head { margin-bottom: 0; }
.stack > .summary-strip { margin-bottom: 0; }
.stack > .card + .card, .grid-2 > .card + .card, .grid-3 > .card + .card { margin-top: 0; }
.grid-2 + .card, .grid-3 + .card, .table-wrap + .card { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.row > .field { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.text-right { text-align: right; }
.align-start { align-items: flex-start; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 16px; background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: #f3f6f3; border-color: #bacbc0; text-decoration: none; }
.btn.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.secondary { background: #fff; border-color: #c8d4cd; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #eaf0eb; color: var(--ink); }
.btn.danger { color: var(--red); border-color: #edcbca; background: #fff; }
.btn.danger:hover { background: var(--red-soft); }
.btn.full { width: 100%; }
.btn.small { min-height: 34px; font-size: 12px; padding: 6px 11px; }
.btn:disabled { opacity: .44; box-shadow: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-button:hover { background: #edf3ee; }
.link-button { border: 0; background: transparent; padding: 3px 0; color: var(--teal); font-weight: 600; font-size: 13px; text-align: left; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 1.5; background: #eef1ee; color: #5b6b63; }
.badge.teal { color: var(--teal); background: var(--teal-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.gray { color: #637269; background: #eef1ee; }
.badge.plum { color: var(--plum); background: var(--plum-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.alert { padding: 15px 17px; border: 1px solid #dbe4de; border-radius: 8px; background: #f4f7f3; color: #465d50; font-size: 13px; }
.alert.warning { background: var(--amber-soft); border-color: #ead8af; color: #79521c; }
.alert.error { background: var(--red-soft); border-color: #edcccc; color: #9a373c; }
.alert.success { background: var(--teal-soft); border-color: #c6dfd2; color: #28614f; }
.alert strong { display: inline; color: inherit; }
.alert h3 { color: inherit; }
.alert + .card, .alert + .grid-2, .alert + .table-wrap, .alert + .stack { margin-top: 20px; }
.alert + .alert { margin-top: 10px; }
.alert + .row { margin-top: 17px; }
.card > .alert { margin-bottom: 18px; }
.card > .alert:last-child { margin-bottom: 0; }
.field { display: grid; align-content: start; gap: 7px; }
.field > label, .field > .label { font-size: 12px; font-weight: 600; color: #43564b; }
.field label small { font-weight: 400; color: var(--muted); }
.field > small, .field > .small { font-size: 11px; color: var(--muted); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 43px; border: 1px solid #ccd7cf; border-radius: 7px;
  padding: 10px 12px; background: #fff; color: var(--ink); line-height: 1.45;
  transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 29px; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8e9a93; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; border-color: #72a99a; box-shadow: 0 0 0 3px #e3efe8; }
input:disabled, select:disabled, textarea:disabled { background: #f0f3ef; color: #809086; cursor: not-allowed; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--teal); flex: 0 0 auto; }
input[type="number"] { font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 20px; }
.form-grid .full, .field.full { grid-column: 1 / -1; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.6; cursor: pointer; }
.checkline input { margin: 3px 0 0; }
.checkline + .checkline { margin-top: 11px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 18px; }
.checkbox-grid .checkline { margin: 0; }
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 23px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { position: relative; flex: 0 0 auto; min-height: 45px; padding: 11px 17px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.tabs button:hover, .tabs a:hover { color: var(--teal); background: #eef4ef; }
.tabs .active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 650; }
.tabs .badge { margin-left: 5px; font-size: 10px; padding: 2px 5px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; scrollbar-width: thin; scrollbar-color: #c8d4cb transparent; }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; text-align: left; }
th { padding: 12px 14px; background: #f4f7f3; border-bottom: 1px solid var(--line); color: #66766b; font-size: 11px; font-weight: 600; white-space: nowrap; }
td { padding: 15px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background-color: #fafcf9; }
td .small { font-size: 11px; }
td .btn { min-height: 33px; padding: 6px 10px; font-size: 12px; }
td .row { gap: 9px; }
.progress { height: 6px; border-radius: 4px; background: #e5ece5; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }
.summary-strip { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 22px; }
.metric { padding: 18px 21px; min-width: 0; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric > .small, .metric > p, .metric > label { display: block; color: var(--muted); font-size: 11px; margin: 0 0 5px; }
.stat-value, .metric > strong { display: block; font-size: 29px; font-weight: 650; line-height: 1.3; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-value small, .stat-value span, .metric > strong small { font-size: 13px; color: var(--muted); margin-left: 3px; font-weight: 450; letter-spacing: 0; }
.metric .progress { margin-top: 11px; }
.metric .badge { margin-top: 5px; }
.empty-state { padding: 46px 24px; text-align: center; color: var(--muted); }
.empty-state > svg { display: block; width: 34px; height: 34px; margin: 0 auto 17px; color: #81998a; stroke-width: 1.4; }
.empty-state h2, .empty-state h3 { color: #3c5447; font-size: 17px; margin: 0 0 8px; }
.empty-state p { max-width: 380px; margin: 0 auto 20px; font-size: 13px; }
.empty-state .btn { margin-top: 3px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row > :first-child { min-width: 0; }
.list-row .row { gap: 11px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: #e9eee8; color: #4c6756; font-weight: 650; font-size: 13px; }
.avatar.large { width: 54px; height: 54px; font-size: 19px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px 20px; margin-top: 24px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -4px 12px rgba(23,42,42,.025); }
.staff-main .sticky-actions { bottom: 72px; margin-left: -24px; margin-right: -24px; padding: 14px 24px; }
.staff-main .sticky-actions .btn { min-height: 46px; }
.sticky-actions .small { color: var(--muted); font-size: 11px; }
.date-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.date-row:last-child { border-bottom: 0; }
.availability-select { min-width: 140px; }
.notice { padding: 17px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.notice + .notice { margin-top: 10px; }
.notice h3, .notice strong { font-size: 14px; }
.notice p { font-size: 13px; }
.notice .small { font-size: 11px; }
.notice-unread { border-left: 3px solid var(--teal); background: #f0f7f2; }
.timeline { display: grid; gap: 0; }
.timeline > li, .timeline > .timeline-item { position: relative; list-style: none; margin: 0 0 0 7px; padding: 0 0 24px 23px; border-left: 1px solid var(--line); }
.timeline > li::before, .timeline > .timeline-item::before { content: ""; position: absolute; top: 5px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #6d9b84; }
.timeline > li:last-child, .timeline > .timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline p { margin-bottom: 5px; }
.definition-list { display: grid; grid-template-columns: minmax(115px,.8fr) minmax(0,1.6fr); gap: 12px 22px; margin: 0; font-size: 13px; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.definition-list > div { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(115px,.8fr) minmax(0,1.6fr); gap: 22px; padding-bottom: 11px; border-bottom: 1px solid var(--line-soft); }
.definition-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.split-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.85fr); gap: 22px; align-items: start; }
.changed { background: #fff8e8; border-color: #e5cf96; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; vertical-align: 1px; border-radius: 50%; background: #6b9476; }
.status-dot.amber { background: #ba882c; }
.status-dot.red { background: #bc5154; }
.status-dot.gray { background: #a0aea3; }

/* Availability input and personal roster. */
.availability-days { display: grid; }
.availability-row { display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: start; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.availability-row:first-child { padding-top: 3px; }
.availability-row:last-child { border-bottom: 0; }
.availability-row.closed { background: #f5f7f3; margin: 0 -10px; padding: 15px 10px; border-radius: 7px; color: var(--muted); }
.day-label { padding-top: 9px; font-weight: 650; line-height: 1.5; }
.day-label small, .day-label .small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 3px; }
.answer-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.answer-controls > select { flex: 1 1 142px; width: auto; min-width: 130px; }
.answer-controls .btn { min-height: 41px; padding: 8px 11px; font-size: 12px; }
.answer-controls > .small, .answer-controls > p { flex-basis: 100%; margin-bottom: 0; }
.time-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: end; }
.time-range { display: flex; gap: 9px; align-items: center; font-variant-numeric: tabular-nums; }
.time-range > select, .time-range > input, .time-range > .field { min-width: 0; flex: 1; }
.roster-calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.calendar-weekday { padding: 7px 0 10px; text-align: center; color: var(--muted); font-size: 10px; font-weight: 550; }
.calendar-cell { display: flex; align-items: center; flex-direction: column; justify-content: flex-start; gap: 6px; min-height: 76px; padding: 8px 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.calendar-cell:hover { background: #f1f6f1; border-color: #a7c2af; }
.calendar-cell.active, .calendar-cell.selected { border-color: var(--teal); background: var(--teal-soft); }
.calendar-cell .badge { font-size: 8px; padding: 2px 3px; max-width: 100%; }
.calendar-cell .small { font-size: 9px; }
.calendar-empty { min-height: 76px; background: transparent; border-color: transparent; }
.shift-card { padding: 19px 20px; border: 1px solid var(--line); border-left: 3px solid var(--plum); border-radius: 9px; background: #fff; }
.shift-card + .shift-card { margin-top: 12px; }
.shift-card.blue, .shift-card.cross { border-left-color: var(--blue); }
.shift-card.changed { border-left-color: #b58a36; background: #fffbf1; }
.shift-card h3 { margin: 10px 0 4px; font-size: 19px; font-variant-numeric: tabular-nums; }
.shift-card .row { gap: 9px; }
.review-days { display: grid; }
.review-days .list-row, .review-days .date-row { padding: 14px 0; }
.review-days .date-row > :first-child { min-width: 80px; font-weight: 600; }
.review-days .date-row .muted { margin-left: auto; }

/* Admin collection and assignment workspace. */
.response-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.response-filters button, .chip-select button { min-height: 34px; padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.response-filters button.active, .chip-select button.active { color: var(--teal); border-color: #9cc2b0; background: var(--teal-soft); }
.chip-select { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.roster-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.roster-toolbar select { width: auto; min-width: 120px; min-height: 37px; padding: 8px 28px 8px 10px; font-size: 12px; }
.roster-toolbar .row { gap: 8px; }
.schedule-layout { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: 18px; align-items: start; margin-top: 18px; }
.schedule-layout > :first-child { min-width: 0; }
.editor-panel { position: sticky; top: calc(var(--demo-height) + 16px); padding: 20px; border: 1px solid #cadbd0; border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(23,42,42,.04); }
.editor-panel .card { padding: 0; border: 0; box-shadow: none; }
.editor-panel h2 { font-size: 17px; margin-bottom: 6px; }
.editor-panel .field { margin-bottom: 14px; }
.editor-panel .form-grid { gap: 12px; }
.editor-panel .btn.full { margin-top: 7px; }
.editor-panel .divider { margin: 16px 0; }
.schedule-table { min-width: 880px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 11px; }
.schedule-table th, .schedule-table td { border-right: 1px solid var(--line-soft); }
.schedule-table th { position: sticky; top: 0; z-index: 3; height: 59px; padding: 10px 7px; text-align: center; background: #f2f6f1; }
.schedule-table th:first-child { position: sticky; left: 0; z-index: 5; width: 150px; padding-left: 13px; text-align: left; }
.schedule-table td { padding: 5px; background: #fff; height: 82px; vertical-align: top; }
.schedule-table td:first-child, .schedule-table .staff-name-cell { position: sticky; left: 0; z-index: 2; width: 150px; vertical-align: middle; padding: 11px 13px; background: #fff; box-shadow: 1px 0 0 var(--line); }
.schedule-table th:last-child, .schedule-table td:last-child { border-right: 0; }
.schedule-table .staff-name-cell strong { display: block; font-size: 12px; }
.schedule-table tbody .staff-name-cell { top: auto; z-index: 2; }
.schedule-table .staff-name-cell > span { display: block; margin-top: 4px; }
.schedule-table .staff-name-cell .small { font-size: 10px; }
.schedule-table .day-heading { font-size: 12px; font-weight: 650; color: var(--ink); }
.schedule-table .day-heading small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; color: var(--muted); }
.assignment-cell { display: block; width: 100%; min-height: 68px; padding: 8px 6px; text-align: left; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink); }
.assignment-cell:hover { background: #f0f6ef; border-color: #c4d9c9; }
.assignment-cell.selected, .assignment-cell.cell-selected, .cell-selected .assignment-cell { background: #e9f4ec; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.assignment-cell:disabled { opacity: .6; background: #f6f7f3; }
.cell-content { display: grid; gap: 6px; }
.cell-availability { color: #849185; font-size: 9px; white-space: nowrap; }
.cell-assignment { display: block; border-left: 2px solid var(--plum); border-radius: 3px; background: var(--plum-soft); color: var(--plum); padding: 5px 5px 5px 7px; line-height: 1.5; font-size: 10px; font-weight: 550; }
.cell-assignment.blue, .cell-assignment.cross { background: var(--blue-soft); color: var(--blue); border-left-color: var(--blue); }
.cell-assignment .small, .cell-assignment small { font-size: 9px; }
.mobile-day-list { display: grid; gap: 12px; }
.mobile-day-list .card { padding: 17px; margin: 0; }
.mobile-day-list .list-row { padding: 12px 0; }
.mobile-day-list > .list-row { width: 100%; margin: 0; text-decoration: none; }
.mobile-day-list > .list-row > span { min-width: 0; }
.mobile-day-list > .list-row > span:first-child > .small { display: block; margin-top: 3px; font-weight: 400; }
.mobile-day-list > .list-row > span:last-child { text-align: right; }
.mobile-dates { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 8px; scrollbar-width: none; }
.mobile-dates button { min-width: 58px; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; color: var(--muted); background: #fff; font-size: 11px; white-space: nowrap; }
.mobile-dates button strong { font-size: 16px; }
.mobile-dates button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.mobile-dates button:disabled { background: #f0f2ed; color: #9ba59d; }
.review-list { display: grid; gap: 10px; }
.review-list > div, .review-list > li { margin: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fafcf8; list-style: none; }
.history-version { padding: 18px 0; border-bottom: 1px solid var(--line); }
.history-version:first-child { padding-top: 0; }
.history-version:last-child { padding-bottom: 0; border-bottom: 0; }
.history-version.active { background: #f3f8f2; padding: 17px; border: 1px solid #d2e0d0; border-radius: 8px; }
.history-version .row { gap: 9px; }
.desktop-only { display: block; }
.mobile-only { display: none !important; }

/* Entry, screen directory, public roster, overlays. */
.entry-layout { max-width: 1152px; margin: 0 auto; padding: 48px 32px 64px; }
.entry-brand { display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.entry-brand .badge { margin-left: 6px; letter-spacing: 0; }
.entry-content { max-width: 820px; margin: 50px auto 45px; }
.entry-content > h1 { font-size: 35px; letter-spacing: -.04em; line-height: 1.45; margin-bottom: 17px; }
.entry-content > .eyebrow { color: #657d6b; font-size: 12px; letter-spacing: .025em; }
.entry-description { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 27px; }
.entry-card { max-width: 520px; margin: 0 auto; padding: 35px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.entry-card .brand, .entry-card .logo { font-size: 23px; font-weight: 700; letter-spacing: -.04em; margin-bottom: 26px; }
.entry-card h1 { font-size: 24px; }
.entry-card p { color: var(--muted); font-size: 13px; }
.entry-card .btn.full { min-height: 48px; }
.entry-card .field + .field { margin-top: 17px; }
.entry-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.entry-options > button, .entry-options > a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; text-decoration: none; }
.entry-options > button:hover, .entry-options > a:hover { border-color: #84b3a0; background: #f5faf5; }
.entry-options > .entry-card { width: 100%; max-width: none; margin: 0; min-height: 218px; gap: 6px; padding: 27px; }
.entry-card-icon { display: inline-flex; color: var(--teal); margin-bottom: 11px; }
.entry-options .entry-card .eyebrow { font-size: 10px; margin: 0 0 1px; letter-spacing: .09em; }
.entry-options .entry-card h2 { font-size: 19px; margin: 0 0 3px; }
.entry-options .entry-card p { font-size: 12px; margin-bottom: 17px; }
.entry-card-link { display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 13px; font-weight: 600; margin-top: auto; }
.entry-bottom { display: flex; align-items: center; gap: 28px; margin: 22px 0; }
.entry-bottom .link-button { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.entry-note { display: flex; align-items: flex-start; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); color: #7b8a7e; font-size: 11px; }
.entry-note svg { margin-top: 1px; }
.entry-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: #8a978c; letter-spacing: .045em; }
.login-main { max-width: 500px; padding: 50px 24px; margin: 0 auto; }
.login-main .card { padding: 30px; }
.guide-steps { display: grid; gap: 22px; }
.guide-steps > div { padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.guide-steps > div:last-child { padding-bottom: 0; border-bottom: 0; }
.guide-steps > div > span { display: block; color: var(--teal); font-size: 11px; letter-spacing: .07em; margin-bottom: 7px; }
.guide-steps p { color: var(--muted); font-size: 12px; }
.modal-body > .stack > .entry-card { width: 100%; padding: 18px 20px; text-align: left; margin: 0; }
.modal-body > .stack > .entry-card h3 { margin-bottom: 5px; }
.entry-options svg { color: var(--teal); }
.entry-options strong { font-size: 16px; }
.entry-options small { color: var(--muted); }
.screen-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.screen-card { min-height: 100px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; text-decoration: none; }
.screen-card:hover { border-color: #8bb09c; box-shadow: 0 3px 14px rgba(23,42,42,.05); text-decoration: none; }
.screen-card strong { font-size: 13px; }
.screen-card .small { color: var(--muted); font-size: 11px; }
.screen-card .eyebrow { margin: 0; font-size: 10px; }
body[data-mode="public"] #main { max-width: 1200px; margin: 0 auto; padding: 34px 30px 60px; }
.public-header { max-width: 1200px; margin: 0 auto; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.public-header .brand { font-size: 19px; font-weight: 700; }
.public-filters { margin-bottom: 18px; }
.public-filters .active { color: var(--teal); border-color: #9cc0ad; background: var(--teal-soft); }
.public-table { min-width: 940px; }
.public-table th small { display: block; font-size: 10px; margin-top: 4px; font-weight: 400; color: var(--muted); }
.public-table tbody th { text-align: left; background: #fafcf8; color: var(--ink); font-size: 12px; border-bottom: 1px solid var(--line-soft); }
.public-table td { font-size: 11px; border-right: 1px solid var(--line-soft); }
.public-table td strong { display: block; margin-top: 5px; font-size: 10px; font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; }
.public-shell .notice { margin-top: 18px; font-size: 12px; color: var(--muted); }
.public-shell .notice svg { margin-right: 6px; }
.public-shell .mobile-only .list-row small { display: block; color: var(--muted); font-size: 10px; }
.public-shell .mobile-only .list-row > div:last-child { text-align: right; }
.public-shell .mobile-only .list-row > div:last-child strong { display: block; font-size: 11px; margin-top: 5px; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(16,35,28,.42); backdrop-filter: blur(3px); }
.modal { width: min(100%,560px); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #c7d6cc; border-radius: 13px; background: #fff; box-shadow: 0 24px 80px rgba(10,31,21,.22); }
.modal.wide { width: min(100%,850px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 23px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h2, .modal-head h3 { margin: 0; font-size: 18px; }
.modal-head button { flex-shrink: 0; }
.modal-body { padding: 23px; }
.modal-body > .stack { gap: 17px; }
.modal-body .btn.full { margin-top: 5px; }
.modal-body .row:last-child { margin-top: 18px; }
.modal-body .form-grid .row:last-child { margin-top: 0; }
.copy-fallback { font-size: 13px; line-height: 1.8; }
.toast { position: fixed; right: 25px; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 10px; max-width: min(450px,calc(100vw - 40px)); padding: 14px 18px; border: 1px solid #2f4b3d; border-radius: 9px; background: #203d2e; color: #fff; box-shadow: 0 8px 28px rgba(12,34,20,.18); font-size: 13px; animation: toast-in .2s ease-out; }
.toast.error, .toast[data-type="error"] { background: #803b3d; border-color: #803b3d; }
.toast.warning, .toast[data-type="warning"] { background: #7f621f; border-color: #7f621f; }
body[data-mode="staff"] .toast { bottom: 89px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Compact desktops preserve a real editor rather than shrinking all text. */
@media (min-width: 901px) and (max-width: 1190px) {
  :root { --sidebar-width: 192px; }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .sidebar nav a, .sidebar nav button { padding-left: 11px; font-size: 12px; }
  .main-area > main, .main-area > #main { padding: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .schedule-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 13px; }
  .editor-panel { padding: 16px; }
  .metric { padding: 16px; }
  .page-head h1 { font-size: 24px; }
  .screen-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  :root { --demo-height: 44px; }
  .sidebar { display: none; }
  .sidebar.open, .sidebar.is-open { display: flex; position: fixed; top: var(--demo-height); left: 0; bottom: 0; z-index: 65; height: calc(100dvh - var(--demo-height)); width: 235px; box-shadow: 10px 0 36px rgba(12,30,20,.2); }
  .main-area { width: 100%; }
  .main-area > main, .main-area > #main { padding: 24px; }
  .topbar { min-height: 66px; padding: 14px 24px; }
  .topbar .breadcrumbs { font-size: 11px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .mobile-only.row { display: flex !important; }
  .schedule-layout { display: block; }
  .schedule-layout > .table-wrap { display: none; }
  .editor-panel { position: static; margin-top: 18px; padding: 20px; }
  .schedule-layout .editor-panel .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split-panel { grid-template-columns: minmax(0,1fr); }
  .split-panel > .card { margin-top: 0; }
  .screen-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  :root { font-size: 14px; --demo-height: 0px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .demo-bar { position: relative; min-height: 44px; padding: 8px 14px; flex-wrap: wrap; gap: 5px 10px; }
  .demo-bar > .row { flex-wrap: wrap; gap: 6px; }
  .demo-bar .small, .demo-bar .demo-caption { font-size: 10px; }
  .demo-bar button, .demo-bar select, .demo-bar .btn { min-height: 27px; padding: 4px 7px; font-size: 10px; }
  .demo-controls { gap: 5px; width: 100%; }
  .demo-tools { gap: 5px; width: 100%; }
  .demo-separator { margin: 0; height: 13px; }
  .demo-detail { font-size: 9px; }
  .app-footer { flex-wrap: wrap; padding: 16px; gap: 5px; font-size: 9px; }
  .scenario-label { font-size: 10px; }
  .company-name { font-size: 12px; }
  .staff-header { top: 0; min-height: 64px; padding: 13px 18px; }
  .staff-main { padding: 23px 16px 106px; }
  .staff-main h1 { font-size: 25px; }
  .staff-main .page-head { margin-bottom: 20px; }
  .staff-main .sticky-actions { margin-left: -16px; margin-right: -16px; padding: 12px 16px; }
  .main-area > main, .main-area > #main { padding: 21px 16px 44px; }
  .topbar { min-height: 62px; padding: 12px 16px; gap: 9px; }
  .topbar .row { gap: 8px; }
  .topbar .breadcrumbs { display: none; }
  .topbar select { font-size: 12px; max-width: 155px; }
  .page-head { flex-wrap: wrap; gap: 12px; margin-bottom: 21px; }
  .page-head > .row { flex-wrap: wrap; gap: 8px; }
  .page-head p { font-size: 12px; }
  .eyebrow { font-size: 10px; }
  .card { padding: 18px; border-radius: 9px; }
  .card-head { gap: 10px; margin-bottom: 15px; }
  .card-head h2 { font-size: 16px; }
  .card-head .btn { min-height: 34px; padding: 6px 10px; font-size: 11px; }
  .card + .card { margin-top: 15px; }
  .stack { gap: 16px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .checkbox-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .row { gap: 9px; }
  .btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .btn.small { min-height: 36px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; min-height: 45px; padding: 10px 11px; }
  .field > label { font-size: 12px; }
  .badge { font-size: 10px; }
  .tabs { gap: 0; margin-bottom: 18px; }
  .tabs button, .tabs a { padding: 11px 13px; font-size: 12px; }
  .summary-strip { grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 15px 17px; border-bottom: 1px solid var(--line); }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .summary-strip:has(> .metric:nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .summary-strip:has(> .metric:nth-child(3):last-child) > .metric { padding: 13px 11px; border-bottom: 0; border-right: 1px solid var(--line); }
  .summary-strip:has(> .metric:nth-child(3):last-child) > .metric:last-child { border-right: 0; }
  .stat-value, .metric > strong { font-size: 27px; }
  .alert { padding: 13px 14px; font-size: 12px; }
  .list-row { gap: 11px; padding: 14px 0; }
  .list-row .row { gap: 8px; }
  .avatar { width: 34px; height: 34px; font-size: 12px; }
  .definition-list { grid-template-columns: minmax(85px,.75fr) minmax(0,1.5fr); gap: 12px 15px; font-size: 12px; }
  .definition-list > div { grid-template-columns: minmax(85px,.75fr) minmax(0,1.5fr); gap: 15px; }
  .availability-row { grid-template-columns: 63px minmax(0,1fr); gap: 10px; padding: 16px 0; }
  .day-label { font-size: 13px; padding-top: 11px; }
  .answer-controls { gap: 7px; }
  .answer-controls > select { font-size: 15px; min-width: 126px; min-height: 43px; flex-basis: 126px; }
  .answer-controls .btn { padding: 9px 10px; min-height: 42px; font-size: 11px; }
  .staff-main .sticky-actions > .small { flex-basis: 100%; }
  .sticky-actions { gap: 9px; padding: 12px 15px; }
  .sticky-actions > .row { flex: 1; gap: 8px; }
  .sticky-actions > .row > .primary { flex: 1; }
  .sticky-actions > .primary { flex: 1; }
  .shift-card { padding: 17px; }
  .shift-card h3 { font-size: 18px; }
  .calendar-cell { min-height: 68px; font-size: 11px; padding: 6px 2px; }
  .calendar-cell .badge { font-size: 7px; }
  .calendar-empty { min-height: 68px; }
  .notice { padding: 15px; }
  .notice h3 { font-size: 14px; }
  .empty-state { padding: 35px 15px; }
  .empty-state p { font-size: 12px; }
  .roster-toolbar { gap: 10px; margin-bottom: 12px; }
  .roster-toolbar .row { flex-wrap: wrap; }
  .roster-toolbar select { font-size: 13px; min-height: 39px; }
  .editor-panel { padding: 18px; }
  .editor-panel .field { margin-bottom: 13px; }
  .mobile-day-list .list-row { flex-wrap: wrap; }
  .mobile-day-list .list-row .btn { min-height: 36px; padding: 7px 11px; }
  .table-wrap { border-radius: 7px; }
  th { padding: 10px 12px; font-size: 10px; }
  td { padding: 13px 12px; font-size: 12px; }
  td .btn { white-space: nowrap; }
  .entry-layout { padding: 26px 16px 44px; }
  .entry-brand { font-size: 20px; gap: 9px; }
  .entry-content { margin: 32px auto 29px; }
  .entry-content > h1 { font-size: 29px; line-height: 1.45; }
  .entry-content > .eyebrow { font-size: 11px; }
  .entry-description { font-size: 12px; margin-bottom: 23px; }
  .entry-card { padding: 27px 22px; }
  .entry-card h1 { font-size: 23px; }
  .entry-options { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .entry-options > button, .entry-options > a { padding: 20px; }
  .entry-options > .entry-card { padding: 23px; min-height: 192px; }
  .entry-options .entry-card h2 { font-size: 18px; }
  .entry-bottom { gap: 18px; flex-wrap: wrap; margin: 19px 0; }
  .entry-bottom .link-button { font-size: 11px; }
  .entry-note { font-size: 10px; }
  .entry-footer { font-size: 9px; }
  .login-main { padding: 29px 16px; }
  .login-main .card { padding: 23px; }
  .screen-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .screen-card { min-height: 98px; padding: 13px; }
  .screen-card strong { font-size: 12px; }
  body[data-mode="public"] #main { padding: 25px 16px 44px; }
  .public-header { padding: 17px 16px; }
  .modal-backdrop { padding: 13px; align-items: center; }
  .modal { max-height: calc(100dvh - 26px); border-radius: 11px; }
  .modal-head { padding: 17px 18px; }
  .modal-head h2 { font-size: 17px; }
  .modal-body { padding: 18px; }
  .modal-body .form-grid { grid-template-columns: minmax(0,1fr); }
  .modal-body .time-editor { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modal-body .row:last-child { flex-wrap: wrap; }
  .modal-body .row:last-child .btn { flex: 1; }
  .toast { right: 16px; left: 16px; bottom: 16px; width: auto; max-width: none; font-size: 12px; padding: 13px 15px; }
  body[data-mode="staff"] .toast { bottom: 86px; }
}

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

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  :root, html, body { background: #fff !important; font-size: 10px; color: #111; }
  .demo-bar, .sidebar, .topbar, .bottom-nav, .staff-header, .sticky-actions, .modal-backdrop, .toast, .btn, .icon-button, .link-button, .tabs, .screen-grid, .mobile-only { display: none !important; }
  .app-shell, .main-area, .staff-shell, .staff-main, body[data-mode="public"] #main { display: block; width: 100%; max-width: none; padding: 0; margin: 0; }
  .main-area > main, .main-area > #main { padding: 0; max-width: none; }
  .desktop-only { display: block !important; }
  .card, .shift-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; border-color: #aaa; }
  table, .schedule-table, .public-table { width: 100%; min-width: 0; font-size: 9px; }
  th, td, .schedule-table th, .schedule-table td { padding: 6px; height: auto; position: static !important; font-size: 9px; box-shadow: none !important; }
  th { background: #eee !important; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
  .page-head { margin-bottom: 14px; }
  h1 { font-size: 21px; }
  .badge { border: 1px solid #bbb; font-size: 8px; }
  .public-header { padding: 0 0 12px; margin-bottom: 16px; max-width: none; }
  .schedule-layout { display: block; }
  .editor-panel { display: none; }
  a { color: #111; }
}
