:root {
  --ink: #17201d;
  --muted: #3f4a45;
  --forest-950: #0d2b24;
  --forest-900: #12372f;
  --forest-800: #17463b;
  --forest-700: #1f5d4d;
  --forest-600: #287562;
  --forest-100: #dcebe5;
  --forest-50: #edf5f1;
  --cream: #f4f1e9;
  --paper: #fffefa;
  --line: #dcded7;
  --amber: #d9952e;
  --amber-soft: #fff0d3;
  --red: #bd3e35;
  --red-soft: #f9e4e1;
  --blue: #28728b;
  --blue-soft: #e2f0f5;
  --green: #4d9b58;
  --green-soft: #e4f3e6;
  --shadow: 0 18px 50px rgba(23, 32, 29, .1);
  --shadow-soft: 0 8px 24px rgba(23, 32, 29, .07);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font: "A-OTF Gothic BBB Pr6N", "BIZ UDPGothic", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; background: var(--cream); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(217, 149, 46, .1), transparent 27rem),
    var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none !important; }
.mobile-only { display: none !important; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--forest-600);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(400px, .75fr);
  background: var(--paper);
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(8, 35, 29, .97), rgba(24, 78, 64, .93)),
    repeating-linear-gradient(25deg, transparent 0 30px, rgba(255,255,255,.04) 30px 31px);
}

.login-brand::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -18vw;
  bottom: -20vw;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 5vw rgba(255,255,255,.025), 0 0 0 10vw rgba(255,255,255,.025);
}

.login-brand .eyebrow { color: #f0c982; }
.login-brand h1 { max-width: 720px; margin: 0; font-family: serif; font-size: clamp(2.8rem, 4.6vw, 4.85rem); line-height: 1.22; letter-spacing: .025em; }
.login-lead { max-width: 580px; margin: 32px 0 0; color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 2; }
.login-route { position: absolute; left: 0; right: 0; bottom: 8%; height: 1px; background: rgba(255,255,255,.14); }
.login-route span { position: absolute; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: #e7b45a; box-shadow: 0 0 0 5px rgba(231,180,90,.14); }
.login-route span:nth-child(1) { left: 16%; }
.login-route span:nth-child(2) { left: 48%; }
.login-route span:nth-child(3) { left: 76%; }

.login-card { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(44px, 7vw, 100px); }
.login-card h2 { margin: 0 0 10px; font-size: 2rem; }
.login-card p { color: var(--muted); line-height: 1.7; }
.login-card label, .field label { display: flex; flex-direction: column; gap: 9px; color: #3d4743; font-size: .84rem; font-weight: 700; }
.login-card input, .login-card select, .field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd4cf;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.login-card select, .field select, .filter-bar select {
  min-height: 58px;
  padding-right: 52px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231d5949' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
}
.login-card select:disabled, .field select:disabled { color: #8b938e; cursor: not-allowed; background-color: #f0f2ef; }
.login-card input:focus, .login-card select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-600); box-shadow: 0 0 0 4px rgba(40,117,98,.12); }
.form-error { min-height: 1.4em; margin: -10px 0; color: var(--red) !important; font-weight: 700; }
.login-hint { margin: -10px 0 0; text-align: center; font-size: .78rem; }
.login-hint code { color: var(--forest-700); }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  transition: transform .14s, background .14s, box-shadow .14s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-primary { color: #fff; background: var(--forest-700); box-shadow: 0 8px 20px rgba(31,93,77,.18); }
.button-primary:hover { background: var(--forest-800); }
.button-secondary { color: var(--forest-800); background: #fff; border-color: #cbd4cf; }
.button-danger { color: #fff; background: var(--red); }
.button-warning { color: #53330a; background: var(--amber-soft); border-color: #edc57e; }
.button-large { min-height: 56px; border-radius: 14px; font-size: 1rem; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: .78rem; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 10px; }
.icon-button:hover { background: rgba(23,32,29,.06); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 18px; color: rgba(255,255,255,.84); background: var(--forest-950); z-index: 20; }
.sidebar-brand { padding: 0 10px 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { color: #fff; font-size: .98rem; }
.sidebar-brand span { margin-top: 3px; color: rgba(255,255,255,.5); font-size: .7rem; letter-spacing: .12em; }
.main-nav { display: flex; flex-direction: column; gap: 5px; padding: 26px 0; }
.main-nav a { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 13px; color: rgba(255,255,255,.67); border-radius: 11px; text-decoration: none; font-size: .88rem; font-weight: 700; transition: color .15s, background .15s; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; background: var(--forest-700); box-shadow: inset 3px 0 #e3b158; }
.main-nav svg { font-size: 1.15rem; }
.sidebar-footer { margin-top: auto; }
.live-indicator { display: flex; align-items: center; gap: 8px; padding: 12px; color: rgba(255,255,255,.56); font-size: .7rem; }
.live-indicator span { width: 7px; height: 7px; border-radius: 50%; background: #71d384; box-shadow: 0 0 0 4px rgba(113,211,132,.12); }
.live-indicator.offline span { background: var(--red); }
.account-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; color: #fff; background: rgba(255,255,255,.06); border: 0; border-radius: 11px; font-size: .78rem; }

.main-column { min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 58px); background: rgba(244,241,233,.88); border-bottom: 1px solid rgba(23,32,29,.08); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.breadcrumb { font-size: .82rem; font-weight: 800; }
.topbar-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: .75rem; }
.operator-badge { display: flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--forest-800); background: rgba(255,255,255,.62); border: 1px solid rgba(23,32,29,.08); border-radius: 999px; font-weight: 700; }
#main-content { max-width: 1540px; margin: 0 auto; padding: clamp(26px, 4vw, 54px); outline: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-head h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.65rem); letter-spacing: -.035em; }
.page-head p { max-width: 700px; margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-control { min-height: 42px; padding: 8px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.metric-card { position: relative; overflow: hidden; min-height: 136px; padding: 22px; background: var(--paper); border: 1px solid rgba(23,32,29,.07); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.metric-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -28px; top: -28px; border: 14px solid var(--metric-color, var(--forest-100)); border-radius: 50%; opacity: .55; }
.metric-card span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.metric-card strong { display: block; margin-top: 13px; font-size: 2.5rem; line-height: 1; }
.metric-card small { display: block; margin-top: 12px; color: var(--muted); font-size: .7rem; }
.metric-card.warn { --metric-color: var(--amber-soft); }
.metric-card.danger { --metric-color: var(--red-soft); }
.metric-card.blue { --metric-color: var(--blue-soft); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr); gap: 20px; align-items: start; }
.ticket-usage-panel { margin-top: 20px; }
.ticket-usage-head p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.ticket-usage-range { display: flex; align-items: center; gap: 8px; }
.ticket-usage-range .button { min-height: 40px; padding: 8px 12px; font-size: .8rem; }
.ticket-usage-finance-heading { display: flex; align-items: baseline; gap: 10px; padding: 18px 22px 10px; border-top: 1px solid var(--line); }
.ticket-usage-finance-heading strong { color: var(--forest-800); font-size: 1rem; }
.ticket-usage-finance-heading span { color: var(--muted); font-size: .76rem; }
.ticket-usage-finance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ticket-usage-finance-item { min-height: 116px; padding: 16px 18px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.ticket-usage-finance-item:nth-child(5n) { border-right: 0; }
.ticket-usage-finance-item > span { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; }
.ticket-usage-finance-item strong { display: block; margin-top: 6px; color: var(--forest-800); font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.ticket-usage-finance-item small { display: block; margin-top: 7px; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.ticket-usage-finance-item.accent strong { color: #276a89; }
.ticket-usage-finance-item.warning strong { color: #a66316; }
.ticket-usage-finance-item.strong { background: #edf6f0; }
.ticket-usage-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ticket-usage-summary > div { padding: 18px 22px; }
.ticket-usage-summary > div + div { border-left: 1px solid var(--line); }
.ticket-usage-summary span, .ticket-usage-item > span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.ticket-usage-summary strong { display: block; margin-top: 3px; color: var(--forest-800); font-family: var(--display); font-size: 1.65rem; }
.ticket-usage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ticket-usage-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 60px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.ticket-usage-item:nth-child(odd) { border-right: 1px solid var(--line); }
.ticket-usage-item strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; word-break: break-word; font-size: .93rem; line-height: 1.35; }
.ticket-usage-item b { color: var(--forest-800); font-size: .9rem; text-align: right; }
.ticket-usage-type { min-width: 58px; padding: 4px 6px; color: #fff !important; border-radius: 999px; font-size: .65rem !important; text-align: center; }
.ticket-usage-type.ticket { background: #3f8a54; }
.ticket-usage-type.license { background: #276a89; }
.ticket-usage-type.disability { background: #8757a1; }
.panel { background: var(--paper); border: 1px solid rgba(23,32,29,.08); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.panel-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1rem; }
.panel-body { padding: 20px 22px; }
.panel-flush { overflow: hidden; }

.schedule-list { display: flex; flex-direction: column; }
.schedule-item { display: grid; grid-template-columns: 74px 6px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 16px 22px; border-bottom: 1px solid #ecece7; }
.schedule-item:last-child { border-bottom: 0; }
.schedule-time { color: #111814; font-size: 1.2rem; font-weight: 900; letter-spacing: .02em; }
.schedule-marker { width: 5px; height: 44px; border-radius: 999px; background: var(--forest-600); }
.schedule-marker.stretcher { background: var(--amber); }
.schedule-marker.wheelchair { background: var(--blue); }
.schedule-title { font-weight: 800; }
.schedule-detail { margin-top: 5px; color: #3f4a45; font-size: .78rem; line-height: 1.5; font-weight: 700; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 5px 9px; border-radius: 999px; color: var(--forest-800); background: var(--forest-50); font-size: .68rem; font-weight: 800; white-space: nowrap; }
.status-chip.warning { color: #6f460b; background: var(--amber-soft); }
.status-chip.danger { color: #8b2c27; background: var(--red-soft); }
.status-chip.blue { color: #1e5d73; background: var(--blue-soft); }
.status-chip.muted { color: #66716c; background: #eceeea; }
.status-chip.success { color: #276a34; background: var(--green-soft); }

.quick-list { display: flex; flex-direction: column; gap: 10px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 14px 16px; color: var(--ink); background: #f7f6f1; border: 1px solid transparent; border-radius: 13px; text-decoration: none; transition: background .15s, border .15s; }
.quick-link:hover { background: #fff; border-color: var(--forest-100); }
.quick-link strong { display: block; font-size: .83rem; }
.quick-link span { display: block; margin-top: 4px; color: var(--muted); font-size: .67rem; }

.search-bar { position: relative; }
.search-bar svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-bar input { width: 100%; min-height: 56px; padding: 12px 16px 12px 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: 1rem; outline: none; }
.search-bar input:focus { border-color: var(--forest-600); box-shadow: 0 0 0 4px rgba(40,117,98,.1); }
.reception-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; }
.customer-results { max-height: 660px; overflow: auto; }
.customer-card { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 17px 21px; color: var(--ink); text-align: left; background: transparent; border: 0; border-bottom: 1px solid #ecece7; }
.customer-card:hover, .customer-card.active { background: var(--forest-50); }
.customer-card-details, .customer-card-details strong, .customer-card-details span { display: block; }
.customer-card-details strong { font-size: 1rem; letter-spacing: .025em; }
.customer-card-details span { margin-top: 6px; color: var(--muted); font-size: .82rem; }
.customer-card .customer-code { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
.selected-customer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px; background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: 14px; }
.selected-customer h3 { margin: 0 0 7px; }
.selected-customer p { margin: 4px 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.empty-state { display: grid; place-items: center; min-height: 220px; padding: 32px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; }
.field-span-2 { grid-column: span 2; }
.field textarea { min-height: 92px; resize: vertical; }
.operator-affiliation-picker { display: grid; gap: 10px; padding: 15px; background: linear-gradient(135deg, #f7fbf8, #edf6f1); border: 1px solid #cfe3d8; border-radius: 14px; }
.login-affiliation-picker { margin: -4px 0; }
.operator-affiliation-label { color: var(--ink); font-size: .93rem; font-weight: 900; }
.operator-affiliation-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.operator-affiliation-button { min-height: 52px; padding: 9px 12px; color: var(--forest-800); background: #fff; border: 1px solid #c8ded3; border-radius: 10px; font-size: .84rem; font-weight: 800; line-height: 1.25; transition: .18s ease; }
.operator-affiliation-button:hover { border-color: var(--forest-600); background: #f3faf6; }
.operator-affiliation-button.active { color: #fff; background: var(--forest-700); border-color: var(--forest-700); box-shadow: 0 5px 14px rgba(28, 91, 73, .18); }
.operator-select-label { gap: 7px !important; font-size: .78rem !important; }
.operator-affiliation-picker small { color: var(--muted); font-size: .72rem; }
.segmented { display: flex; padding: 4px; background: #eceee9; border-radius: 11px; }
.segmented button { flex: 1; min-height: 36px; padding: 7px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: .76rem; font-weight: 800; }
.segmented button.active { color: var(--forest-900); background: #fff; box-shadow: 0 2px 8px rgba(23,32,29,.08); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.inline-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px !important; min-height: 50px; }
.inline-check input { width: 18px !important; min-height: 18px !important; }

.calendar-shell { overflow: hidden; }
.calendar-header { display: grid; grid-template-columns: 78px repeat(3, minmax(0,1fr)); background: #f6f5ef; border-bottom: 1px solid var(--line); }
.calendar-header > div { padding: 13px; border-left: 1px solid var(--line); text-align: center; font-size: .72rem; font-weight: 800; }
.calendar-header > div:first-child { border-left: 0; }
.calendar-grid { position: relative; display: grid; grid-template-columns: 78px repeat(3, minmax(0,1fr)); max-height: 680px; overflow: auto; }
.time-label { min-height: 68px; padding: 8px 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .7rem; text-align: right; }
.calendar-cell { position: relative; min-height: 68px; padding: 5px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-event { width: 100%; min-height: 56px; padding: 8px 9px; color: var(--forest-900); text-align: left; background: var(--forest-50); border: 0; border-left: 4px solid var(--forest-600); border-radius: 8px; font-size: .67rem; line-height: 1.35; }
.calendar-event.stretcher { color: #5e3b08; background: var(--amber-soft); border-left-color: var(--amber); }
.calendar-event.wheelchair { color: #174d61; background: var(--blue-soft); border-left-color: var(--blue); }
.calendar-event strong, .calendar-event span { display: block; }
.calendar-event span { margin-top: 3px; opacity: .75; }
.calendar-overflow { padding: 5px; color: var(--red); font-size: .65rem; font-weight: 800; }

.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { min-height: 50px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.filter-bar select { padding-right: 42px; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: 12px 15px; color: var(--muted); background: #f6f5ef; border-bottom: 1px solid var(--line); font-size: .68rem; text-align: left; }
.data-table td { padding: 14px 15px; border-bottom: 1px solid #ecece7; font-size: .77rem; }
.data-table tbody tr:hover { background: #faf9f5; }
.data-table .route-cell { min-width: 230px; white-space: normal; line-height: 1.5; }
.text-button { padding: 0; color: var(--forest-700); background: transparent; border: 0; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(31,93,77,.25); text-underline-offset: 3px; }

.dispatch-board { display: grid; grid-template-columns: 190px repeat(3, minmax(210px,1fr)); gap: 0; overflow: auto; }
.dispatch-board > div { min-height: 72px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dispatch-board .dispatch-head { min-height: 52px; color: var(--muted); background: #f6f5ef; font-size: .72rem; font-weight: 800; }
.dispatch-time { color: var(--muted); font-size: .72rem; }
.dispatch-card { height: 100%; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--forest-600); border-radius: 10px; }
.dispatch-card.unassigned { border-left-color: var(--amber); background: #fffbf2; }
.dispatch-card strong { display: block; font-size: .78rem; }
.dispatch-card span { display: block; margin-top: 5px; color: var(--muted); font-size: .67rem; line-height: 1.4; }

.driver-page { min-height: calc(100vh - 120px); }
.driver-stage { max-width: 920px; margin: 0 auto; text-align: center; display: grid; justify-items: center; align-content: start; gap: 10px; min-height: calc(100vh - 120px); padding: 8px 12px 20px; }
.driver-stage h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.driver-stage > p { color: var(--muted); font-size: clamp(.9rem, 2vw, 1.25rem); }
.vehicle-grid, .driver-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 38px; }
.driver-choice-groups { display: grid; gap: 30px; margin: 34px auto 0; }
.driver-affiliation-group { display: grid; gap: 10px; }
.driver-affiliation-group > p { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 900; letter-spacing: .12em; }
.driver-affiliation-group .vehicle-grid, .driver-affiliation-group .driver-grid { width: min(900px, 100%); margin: 0 auto; }
.vehicle-button, .driver-button { min-height: 96px; padding: 20px; color: #fff; background: #64ac5b; border: 0; border-radius: 14px; box-shadow: 0 8px 0 #4b8845, 0 14px 24px rgba(49,96,43,.18); font-size: clamp(1.25rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: .035em; }
.vehicle-button:active, .driver-button:active { transform: translateY(5px); box-shadow: 0 3px 0 #4b8845; }
.driver-button { color: var(--forest-950); background: #e9eee8; box-shadow: 0 8px 0 #cbd4cc, 0 14px 24px rgba(23,32,29,.1); }
.driver-topbar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.driver-meta { display: flex; justify-content: flex-end; gap: 8px; margin: 0; flex-wrap: wrap; flex: 1; }
.driver-meta span { padding: 6px 12px; color: var(--forest-900); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 800; font-size: .85rem; }
.driver-hero { width: 100%; display: grid; grid-template-rows: minmax(88px, auto) minmax(min(42vw, 300px), auto) auto; justify-items: center; align-content: center; gap: 14px; min-height: min(62vh, 580px); padding: 8px 0 12px; }
.driver-hero-above { width: min(100%, 560px); display: grid; gap: 8px; justify-items: center; align-content: end; min-height: 88px; }
.driver-hero-above:empty { visibility: hidden; }
.driver-hero-above h1 { margin: 0; font-size: clamp(1.45rem, 3.5vw, 2rem); }
.driver-hero-action { width: 100%; display: grid; place-items: center; min-height: min(42vw, 300px); }
.driver-hero-below { width: min(100%, 640px); display: grid; gap: 10px; justify-items: center; }
.driver-fare-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: min(100%, 560px); }
.driver-fare-row .fare-input { width: 100%; min-height: 72px; margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); }
.driver-fare-row span { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; }
.driver-dropoff-side { width: min(100%, 420px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.charter-box-button { min-height: 56px; padding: 12px 16px; color: #fff; background: #2f5f9e; border: 0; border-radius: 14px; box-shadow: 0 8px 0 #234878, 0 14px 24px rgba(35,72,120,.2); font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 900; letter-spacing: .04em; }
.charter-box-button:active { transform: translateY(4px); box-shadow: 0 4px 0 #234878; }
.driver-fee-panel { width: min(100%, 640px); display: grid; gap: 8px; }
.driver-fee-chips, .driver-mode-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.driver-fee-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; color: #1c2a25; background: #fff; border: 2px solid #bad5ca; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800; }
.driver-fee-chip strong { font-size: clamp(1rem, 2.6vw, 1.2rem); }
.driver-fee-chip span { color: #355247; font-size: .85rem; font-weight: 700; }
.driver-fee-chip.is-selected { color: #fff; background: #267d68; border-color: #267d68; }
.driver-fee-chip.is-selected span { color: #d9f4eb; }
.driver-mode-row { display: grid; gap: 6px; justify-items: center; padding: 8px 10px; background: #f4faf7; border: 1px solid #d5e8df; border-radius: 12px; }
.driver-mode-row > span { color: #355247; font-size: .78rem; font-weight: 800; }
.driver-reservation-field { width: min(100%, 420px); text-align: left; }
.driver-reservation-field label { display: grid; gap: 4px; font-size: .82rem; font-weight: 800; color: var(--muted); }
.driver-reservation-field select { min-height: 44px; width: 100%; }
.ride-action.dropoff { background: #df4b42; box-shadow: 0 18px 0 #a8342d, 0 28px 50px rgba(165,52,45,.26); }
.ride-action:active { transform: translateY(10px); box-shadow: 0 8px 0 #387d42; }
.ride-action.dropoff:active { box-shadow: 0 8px 0 #a8342d; }
.driver-service-options { width: min(62vw, 560px); margin: 10px auto 0; display: grid; gap: 8px; }
.driver-service-option { display: grid; gap: 2px; padding: 12px 16px; color: #1c2a25; background: #fff; border: 2px solid #bad5ca; border-radius: 14px; text-align: left; cursor: pointer; font: inherit; }
.driver-service-option strong { font-size: 1.2rem; }
.driver-service-option small { color: #355247; font-weight: 700; }
.driver-service-option.is-selected { color: #fff; background: #267d68; border-color: #267d68; }
.driver-service-option.is-selected small { color: #d9f4eb; }
.driver-stretcher-mode { display: grid; gap: 8px; padding: 12px 14px; background: #f4faf7; border: 1px solid #d5e8df; border-radius: 14px; }
.driver-stretcher-mode-label { display: grid; gap: 2px; text-align: left; color: #1c2a25; }
.driver-stretcher-mode-label strong { font-size: 1.05rem; }
.driver-stretcher-mode-label small { color: #355247; font-weight: 700; }
.driver-stretcher-mode-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.driver-stretcher-mode-choices .driver-service-option { text-align: center; padding: 10px 8px; font-weight: 800; }
.ride-action { width: min(42vw, 300px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; color: #fff; background: var(--green); border: 0; border-radius: 50%; box-shadow: 0 18px 0 #387d42, 0 28px 50px rgba(42,111,53,.28); font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 900; letter-spacing: .04em; }
.driver-meta .driver-location-status { margin: 0; }
.location-required-message strong { display: block; font-size: clamp(1.15rem, 3.4vw, 1.7rem); line-height: 1.45; }
.location-required-message p { margin: 14px 0 0; font-size: 1rem; line-height: 1.7; color: #355247; font-weight: 700; }
.payment-brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; max-width: 920px; margin: 0 auto; }
.payment-brand-card { display: grid; gap: 8px; justify-items: center; min-height: 118px; padding: 14px 12px; color: #1c2a25; background: #fff; border: 2px solid #c9d6d0; border-radius: 16px; cursor: pointer; font: inherit; }
.payment-brand-card.is-selected { border-color: #1f5d4d; box-shadow: 0 0 0 3px rgba(31,93,77,.18); }
.payment-brand-logo { width: 120px; height: 68px; object-fit: contain; display: block; background: #fff; border-radius: 8px; border: 1px solid #e6ece9; padding: 4px; box-sizing: border-box; }
.payment-brand-card strong { font-size: .92rem; line-height: 1.3; text-align: center; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.payment-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #287562; font-size: 1.2rem; font-weight: 900; }
.payment-brand-card.tone-visa .payment-brand-mark { background: #1a1f71; }
.payment-brand-card.tone-master .payment-brand-mark { background: #eb001b; }
.payment-brand-card.tone-jcb .payment-brand-mark { background: #0e4c96; }
.payment-brand-card.tone-amex .payment-brand-mark { background: #2e77bc; }
.payment-brand-card.tone-diners .payment-brand-mark { background: #004a97; }
.payment-brand-card.tone-paypay .payment-brand-mark { background: #ff0033; }
.payment-brand-card.tone-rakuten .payment-brand-mark { background: #bf0000; }
.payment-brand-card.tone-docomo .payment-brand-mark { background: #cc0033; }
.payment-brand-card.tone-au .payment-brand-mark { background: #eb5505; }
.payment-brand-card.tone-merpay .payment-brand-mark { background: #ff0211; }
.payment-brand-card.tone-waon .payment-brand-mark { background: #e60012; }
.payment-brand-card.tone-nanaco .payment-brand-mark { background: #00a040; }
.payment-brand-card.tone-edy .payment-brand-mark { background: #bf0000; }
.payment-brand-card.tone-quicpay .payment-brand-mark { background: #00a0e9; }
.payment-brand-card.tone-id .payment-brand-mark { background: #e60012; }
.payment-brand-card.tone-suica .payment-brand-mark,
.payment-brand-card.tone-pasmo .payment-brand-mark,
.payment-brand-card.tone-icoca .payment-brand-mark,
.payment-brand-card.tone-nimoca .payment-brand-mark,
.payment-brand-card.tone-sugoca .payment-brand-mark,
.payment-brand-card.tone-manaca .payment-brand-mark,
.payment-brand-card.tone-kitaca .payment-brand-mark,
.payment-brand-card.tone-toica .payment-brand-mark,
.payment-brand-card.tone-hayakaken .payment-brand-mark { background: #008a5c; }
.choice-button.is-selected { outline: 3px solid rgba(31,93,77,.25); border-color: #1f5d4d; }
.driver-pickup-toggle { width: min(62vw, 560px); min-height: 80px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; margin: 22px auto 10px; padding: 14px 22px; color: #274b43; background: #fff; border: 2px solid #bad5ca; border-radius: 18px; text-align: left; cursor: pointer; font: inherit; }
.driver-pickup-toggle span { grid-row: span 2; font-size: 1.35rem; font-weight: 900; }
.driver-pickup-toggle strong { font-size: 1.25rem; }
.driver-pickup-toggle small { color: #5b776e; }
.driver-pickup-toggle.is-selected { color: #fff; background: #267d68; border-color: #267d68; }
.driver-pickup-toggle.is-selected small { color: #d9f4eb; }
.mistake-button { position: static; min-height: 44px; padding: 0 16px; color: #4f2f04; background: #ffb33f; border: 0; border-radius: 12px; font-weight: 900; box-shadow: var(--shadow-soft); flex: 0 0 auto; }
.switch-button { min-width: 160px; min-height: 48px; color: #fff; background: var(--blue); border: 0; border-radius: 12px; font-weight: 900; }
.driver-secondary-actions { display: flex; justify-content: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; width: 100%; }
.shift-end-button { min-width: 140px; min-height: 48px; padding: 0 16px; color: #68430b; background: #fff8e9; border: 1px solid #e7ca8e; border-radius: 12px; font-weight: 900; }
.shift-recovery-box { padding: 20px; color: var(--forest-900); background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: 14px; }
.shift-recovery-box strong { display: block; font-size: 1rem; line-height: 1.55; }
.shift-recovery-box p { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.shift-recovery-actions { display: grid; gap: 10px; margin-top: 18px; }
.shift-recovery-actions .text-button { justify-self: center; margin-top: 6px; }

.payment-layout { max-width: 860px; margin: 0 auto; }
.step-indicator { display: flex; gap: 7px; margin: 0 0 26px; }
.step-indicator span { height: 5px; flex: 1; background: #dde1dc; border-radius: 99px; }
.step-indicator span.active { background: var(--forest-600); }
.payment-question { margin: 0 0 30px; text-align: center; font-size: clamp(1.7rem, 4vw, 3.5rem); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.choice-button { min-height: 110px; padding: 20px; color: var(--forest-900); background: #fff; border: 2px solid var(--forest-100); border-radius: 18px; font-size: clamp(1.15rem, 2.6vw, 2rem); font-weight: 900; }
.choice-button:hover { border-color: var(--forest-600); background: var(--forest-50); }
.fare-input { width: min(100%, 600px); min-height: 100px; padding: 15px 24px; border: 3px solid var(--forest-200, #b9d2c8); border-radius: 20px; font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 900; text-align: right; }
.confirmation-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.confirmation-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.confirmation-row:last-child { border-bottom: 0; }
.confirmation-row span { color: var(--muted); }
.confirmation-row strong { text-align: right; }
.confirmation-row.difference { color: var(--red); background: var(--red-soft); }

.ticket-selector { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.ticket-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 88px; gap: 12px; align-items: stretch; }
.ticket-count { display: grid; place-items: center; color: var(--forest-900); background: #fff; border: 2px solid var(--forest-100); border-radius: 14px; font-size: 2rem; font-weight: 900; }
.ticket-payment-layout { max-width: 1120px; }
.ticket-picker-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.ticket-picker-head .eyebrow { margin-bottom: 7px; }
.ticket-picker-head .payment-question { margin: 0; text-align: left; }
.ticket-picker-head p:last-child { margin: 7px 0 0; color: var(--muted); }
.ticket-total.ticket-total-top { flex: 0 0 280px; min-height: 92px; margin: 0; padding: 16px 20px; background: #eff8f3; border-color: #b7dcc7; box-shadow: 0 4px 0 #d7eadf; }
.ticket-total span { display: grid; gap: 3px; }
.ticket-total span small { color: var(--forest-700); font-size: .72rem; font-weight: 700; }
.ticket-total strong { font-size: 2rem; }
.ticket-choice-list { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 1120px; margin: 0 auto; }
.ticket-choice { display: grid; grid-template-columns: minmax(0, 1fr) 148px; min-width: 0; overflow: hidden; background: #fff; border: 2px solid var(--forest-100); border-radius: 18px; box-shadow: 0 5px 0 #d8e7df; transition: border-color .15s, box-shadow .15s, background .15s; }
.ticket-choice:hover { border-color: var(--forest-400); }
.ticket-choice.is-selected { background: #f3fbf6; border-color: var(--forest-600); box-shadow: 0 5px 0 #b7d9c2; }
.ticket-choice-main { display: grid; grid-template-columns: minmax(96px, 160px) minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; padding: 12px 14px; color: var(--forest-900); text-align: left; background: transparent; border: 0; }
.ticket-choice-main:hover { background: rgba(230, 244, 236, .55); }
.ticket-choice-main:active { background: #e4f3e9; }
.ticket-choice-image { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; max-height: 110px; overflow: hidden; background: #f5f4ee; border: 1px solid #e3e1d7; border-radius: 10px; }
.ticket-choice-image img { width: 100%; height: 100%; object-fit: contain; }
.ticket-choice-image span { color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: center; }
.ticket-choice-copy { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ticket-choice-copy small { color: var(--forest-700); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.ticket-choice-copy strong { display: block; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.4; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.ticket-choice-copy span { color: var(--muted); font-size: .9rem; }
.ticket-choice-copy b { color: var(--forest-700); font-size: 1.05rem; }
.ticket-choice-add { display: none; }
.ticket-choice-add b { font-size: 1.7rem; line-height: 1; }
.ticket-quantity-control { display: grid; grid-template-columns: 1fr 1.12fr 1fr; border-left: 1px solid var(--forest-100); overflow: hidden; border-radius: 0 16px 16px 0; }
.ticket-quantity-control button { min-width: 0; color: #fff; background: var(--forest-700); border: 0; font-size: 2rem; font-weight: 900; transition: background .15s; }
.ticket-quantity-control button:hover { background: var(--forest-800); }
.ticket-quantity-control button:disabled { cursor: not-allowed; color: #b8c4bd; background: #f2f4f2; }
.ticket-quantity-control output { display: grid; place-content: center; gap: 2px; min-width: 0; color: var(--forest-900); background: #fff; text-align: center; }
.ticket-choice.is-selected .ticket-quantity-control output { background: #eaf7ee; }
.ticket-quantity-control output strong { font-size: 2.25rem; line-height: 1; }
.ticket-quantity-control output span { color: var(--muted); font-size: .7rem; font-weight: 900; }
.ticket-added-modal { display: grid; gap: 14px; }
.ticket-added-summary { margin: 0; font-size: 1.15rem; line-height: 1.55; }
.ticket-added-meta { margin: 0; color: var(--muted); font-weight: 700; }
.ticket-added-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) {
  .ticket-added-actions { grid-template-columns: 1.2fr .8fr; }
}
.ticket-add { min-height: 86px; padding: 14px 22px; color: #fff; text-align: left; background: var(--green); border: 0; border-radius: 14px; box-shadow: 0 6px 0 #387d42; }
.ticket-add strong, .ticket-add span { display: block; }
.ticket-add strong { font-size: clamp(1.15rem, 2.5vw, 1.8rem); }
.ticket-add span { margin-top: 6px; color: rgba(255,255,255,.78); font-size: .75rem; }
.ticket-add:active { transform: translateY(4px); box-shadow: 0 2px 0 #387d42; }
.ticket-remove { color: #fff; background: var(--red); border: 0; border-radius: 14px; font-size: 2.6rem; font-weight: 900; box-shadow: 0 6px 0 #8f2f29; }
.ticket-remove:disabled { cursor: not-allowed; opacity: .3; box-shadow: none; }
.ticket-total { max-width: 900px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px auto 0; padding: 18px 22px; color: var(--forest-900); background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: 14px; }
.ticket-total-top { margin: 0 auto 22px; }
.ticket-total span { font-weight: 700; }
.ticket-total strong { font-size: 1.7rem; }
.unpaid-customer-tools { display: flex; gap: 10px; margin: 0 auto 20px; max-width: 900px; }
.unpaid-customer-tools .button { flex: 1; }
.unpaid-customer-row { grid-template-columns: minmax(0, 1fr) 88px; }

.settings-rule-panel { margin-bottom: 20px; }
.settings-rule-grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 16px; align-items: end; }
.master-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-api-panel { margin-bottom: 20px; }
.settings-api-form { display: flex; align-items: end; gap: 16px; max-width: 760px; }
.settings-api-form .field { flex: 1; margin: 0; }
.settings-api-form small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.master-panel { overflow: hidden; }
.master-panel .panel-head > div { display: flex; align-items: baseline; gap: 9px; }
.master-panel .panel-head h2 { white-space: nowrap; }
.master-count { color: var(--muted); font-size: .68rem; }
.master-list { max-height: 600px; overflow: auto; }
.master-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 76px; padding: 13px 16px; border-bottom: 1px solid #ecece7; }
.master-row:last-child { border-bottom: 0; }
.master-row strong, .master-row span { display: block; }
.master-row strong { font-size: .82rem; white-space: normal; overflow: visible; overflow-wrap: anywhere; word-break: break-word; line-height: 1.35; }
.ticket-master-row > div:nth-child(2) { min-width: 0; }
.master-row span { margin-top: 5px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.master-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.ticket-master-row { grid-template-columns: 76px minmax(0, 1fr) auto; }
.ticket-master-image { display: grid; place-items: center; width: 76px; height: 54px; overflow: hidden; background: #f6f5ef; border: 1px solid #e2e2d9; border-radius: 8px; }
.ticket-master-image img { width: 100%; height: 100%; object-fit: contain; }
.ticket-master-image span { margin: 0; font-size: .58rem; }
.ticket-image-field small { display: block; margin-top: 7px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.ticket-image-preview { display: grid; place-items: center; min-height: 180px; margin-top: 12px; padding: 10px; overflow: hidden; background: #f7f6f0; border: 1px dashed var(--forest-200); border-radius: 12px; }
.ticket-image-preview img { max-width: 100%; max-height: 260px; object-fit: contain; }
.ticket-image-preview span { color: var(--muted); font-size: .78rem; }
.ticket-image-remove { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #94342e; font-size: .8rem; font-weight: 800; }
.danger-text { color: var(--red); }
.capability-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.capability-checks label { min-height: 48px; flex: 1; flex-direction: row; align-items: center; padding: 12px 14px; background: #f6f5ef; border: 1px solid var(--line); border-radius: 10px; }
.capability-checks input { width: 18px; height: 18px; margin: 0; }

.summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; overflow: hidden; margin-bottom: 20px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; }
.summary-strip div { padding: 18px; background: var(--paper); }
.summary-strip span, .summary-strip strong { display: block; }
.summary-strip span { color: var(--muted); font-size: .68rem; }
.summary-strip strong { margin-top: 9px; font-size: 1.4rem; }

.report-archive-head { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(220px,.45fr) minmax(300px,1fr); gap: 30px; align-items: center; margin-bottom: 18px; padding: 28px 32px; color: #fff; background: linear-gradient(125deg, var(--forest-950), var(--forest-700)); border-radius: 22px; box-shadow: var(--shadow); }
.report-archive-head::after { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -105px; border: 32px solid rgba(255,255,255,.055); border-radius: 50%; }
.report-archive-head div, .report-archive-head p { position: relative; z-index: 1; }
.report-archive-head span, .report-archive-head strong, .report-archive-head small { display: block; }
.report-archive-head span { color: #e7bf73; font-size: .65rem; font-weight: 900; letter-spacing: .18em; }
.report-archive-head strong { margin-top: 7px; font-family: serif; font-size: 2.6rem; }
.report-archive-head small { margin-top: 6px; color: rgba(255,255,255,.6); }
.report-archive-head p { margin: 0; color: rgba(255,255,255,.76); font-size: .78rem; line-height: 1.85; }
.report-trail { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 18px; padding: 0 6px; color: var(--muted); font-size: .75rem; font-weight: 700; overflow-x: auto; white-space: nowrap; }
.report-trail a { color: var(--forest-700); text-decoration: none; }
.report-trail-separator { color: #aab0ab; }
.report-folder-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 22px; }
.report-folder, .report-file { position: relative; min-height: 112px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 20px; color: var(--ink); background: #f8f7f1; border: 1px solid #e1e0d8; border-radius: 15px; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.report-folder:hover, .report-file:hover { transform: translateY(-2px); background: #fff; border-color: var(--forest-100); box-shadow: var(--shadow-soft); }
.folder-tab { position: absolute; width: 58px; height: 9px; left: 18px; top: -7px; background: #e6b454; border-radius: 7px 7px 0 0; }
.folder-icon, .report-file-mark { width: 54px; height: 54px; display: grid; place-items: center; color: #62400c; background: #f6d89e; border-radius: 10px; font-family: serif; font-size: 1.15rem; font-weight: 900; }
.report-folder strong, .report-folder small, .report-file strong, .report-file span, .report-file small { display: block; }
.report-folder strong, .report-file strong { font-size: .9rem; }
.report-folder small, .report-file small { margin-top: 7px; color: var(--muted); font-size: .66rem; }
.report-file { min-height: 128px; background: #fff; }
.report-file-mark { color: var(--forest-800); background: var(--forest-50); border: 1px solid var(--forest-100); font-size: .78rem; }
.report-file span { margin-top: 7px; color: var(--forest-700); font-size: .72rem; font-weight: 800; }
.report-screen-actions { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.report-workspace { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; display: grid; gap: 16px; }
.report-fit-frame { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.report-scroll-x { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.daily-report-sheet { overflow: hidden; max-width: 1320px; margin: 0 auto; background: #fff; border: 1px solid #d3d5cf; box-shadow: var(--shadow); }
.daily-report-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 34px 38px 28px; border-top: 8px solid var(--forest-800); border-bottom: 2px solid var(--ink); }
.daily-report-title span { color: var(--forest-600); font-size: .62rem; font-weight: 900; letter-spacing: .2em; }
.daily-report-title h1 { margin: 6px 0 0; font-family: serif; font-size: 2.4rem; letter-spacing: .2em; }
.daily-report-date { text-align: right; }
.daily-report-date span, .daily-report-date strong, .daily-report-date small { display: block; }
.daily-report-date strong { margin-top: 5px; font-size: 1.2rem; }
.daily-report-date small { margin-top: 4px; color: var(--muted); font-size: .63rem; }
.daily-report-meta { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--ink); }
.daily-report-meta div { min-height: 82px; padding: 17px 22px; border-right: 1px solid var(--line); }
.daily-report-meta div:last-child { border-right: 0; }
.daily-report-meta span, .daily-report-meta strong { display: block; }
.daily-report-meta span { color: var(--muted); font-size: .66rem; font-weight: 700; }
.daily-report-meta strong { margin-top: 9px; font-size: 1.12rem; }
.daily-report-summary { display: grid; grid-template-columns: repeat(5,1fr); background: #f5f5ef; border-bottom: 1px solid var(--ink); }
.daily-report-summary div { padding: 20px 22px; border-right: 1px solid var(--line); }
.daily-report-summary div:last-child { border-right: 0; }
.daily-report-summary span { display: block; color: var(--muted); font-size: .66rem; }
.daily-report-summary strong { display: block; margin-top: 8px; font-size: 1.3rem; }
.daily-report-summary small { margin-left: 3px; font-size: .65rem; }
.daily-report-detail h2 { margin: 0; padding: 20px 24px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.report-table th { background: var(--forest-950); color: #fff; }
.report-table td { font-size: .7rem; }
.daily-report-footer { display: flex; justify-content: space-between; gap: 20px; padding: 17px 24px; color: var(--muted); background: #f5f5ef; border-top: 1px solid var(--line); font-size: .62rem; }

.legacy-report { position: relative; width: min(100%, 1120px); min-width: 920px; margin: 0 auto; padding: 24px 26px 32px; color: #000; background: #fff; box-shadow: var(--shadow); font-family: Arial, "MS PGothic", "Yu Gothic", sans-serif; }
.legacy-title { width: max-content; margin: 0 auto 20px; padding: 0 46px 5px; border-bottom: 4px double #000; font-size: 2rem; font-weight: 400; letter-spacing: .14em; }
.legacy-form { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.legacy-form th, .legacy-form td { height: 30px; padding: 3px 5px; border: 1.5px solid #000; color: #000; background: #fff; text-align: center; vertical-align: middle; }
.legacy-form th { font-weight: 400; }
.legacy-top th, .legacy-top td { height: 34px; font-size: 12px; }
.legacy-top .legacy-spacer td { height: 16px; border: 0; }
.legacy-date-value { font-size: 13px !important; letter-spacing: .08em; }
.legacy-metrics { margin-top: 10px; }
.legacy-metrics th, .legacy-metrics td { height: 27px; }
.legacy-metrics .legacy-override-input { width: 100%; min-width: 0; }
.legacy-large-value { font-size: 18px; }
.legacy-money th, .legacy-money td { height: 31px; }
.legacy-money th { white-space: nowrap; }
.legacy-detail { margin-top: 18px; }
.legacy-detail th { height: 28px; font-size: 10px; }
.legacy-detail td { height: 25px; padding: 2px 4px; font-size: 9px; }
.legacy-detail .legacy-address { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.legacy-map-link { display: inline-block; margin-left: 5px; padding: 2px 5px; color: #176757; background: #f5fbf7; border: 1px solid #9ac9bb; border-radius: 3px; font-size: 8px; font-weight: 800; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.legacy-report-editing .legacy-map-link { margin: 3px 0 0; }
.legacy-no-data { height: 70px !important; color: #555 !important; }
.report-screen-actions.is-editing { position: relative; z-index: 2; align-items: center; flex-wrap: wrap; min-width: 0; margin: 0; padding: 12px 14px; background: #fffcf7; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.inline-edit-message { min-width: 250px; margin-right: auto; }
.inline-edit-message strong, .inline-edit-message span { display: block; }
.inline-edit-message strong { color: var(--forest-800); font-size: .8rem; }
.inline-edit-message span { margin-top: 4px; color: var(--muted); font-size: .64rem; }
.inline-edit-message span[data-tone="saving"] { color: var(--blue); }
.inline-edit-message span[data-tone="saved"] { color: var(--green); font-weight: 800; }
.inline-edit-message span[data-tone="dirty"] { color: #8a5a0d; font-weight: 800; }
.inline-edit-message span[data-tone="error"] { color: var(--red); font-weight: 800; }
.legacy-report-editing { outline: 4px solid rgba(217,149,46,.18); }
.legacy-report-editing .legacy-detail td { position: relative; padding: 2px; background: #fffcf4; }
.legacy-report-editing .legacy-edit-line:hover td { background: #fff6df; }
.legacy-report-editing input { width: 100%; min-width: 0; height: 27px; padding: 3px 5px; color: #111; background: #fff; border: 1px solid #d4c193; border-radius: 3px; outline: none; font-family: inherit; font-size: 9px; text-align: center; }
.legacy-report-editing .legacy-amount-input { padding: 2px 1px; font-size: 10px; font-weight: 800; letter-spacing: -.02em; }
.legacy-report-editing [data-field="meterFare"] { color: var(--forest-900); background: #fffdf4; border-color: #b58c3d; }
.legacy-report-editing .legacy-address input { text-align: left; }
.passenger-choice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 0 auto 22px; }
.passenger-choice { min-height: 74px; color: var(--forest-800); background: #fff; border: 2px solid #c9ddd4; border-radius: 14px; font: inherit; font-size: 1.75rem; font-weight: 900; cursor: pointer; }
.passenger-choice small { margin-left: 3px; font-size: .85rem; }
.passenger-choice.selected { color: #fff; background: var(--forest-600); border-color: var(--forest-600); box-shadow: 0 6px 16px rgba(27,98,79,.25); }
.wheelchair-assistance-choice { display: flex; align-items: center; gap: 12px; max-width: 620px; margin: 0 auto 22px; padding: 15px 17px; border: 1px solid #b9d4e1; border-radius: 14px; color: #174d61; background: #edf8fc; cursor: pointer; text-align: left; }
.wheelchair-assistance-choice input { width: 24px; height: 24px; accent-color: var(--blue); }
.wheelchair-assistance-choice strong, .wheelchair-assistance-choice small { display: block; }
.wheelchair-assistance-choice small { margin-top: 2px; color: #4c7281; }
.driver-location-status { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 2px; padding: 7px 11px; border: 1px solid #c8ddd4; border-radius: 999px; color: #37665a; background: #f1f8f4; font-size: .78rem; font-weight: 800; }
.driver-location-status::before { width: 8px; height: 8px; border-radius: 50%; background: #d0952b; content: ''; }
.driver-location-status[data-state="ready"]::before { background: #38a169; }
.driver-location-status[data-state="error"] { color: #a3342d; border-color: #edbbb4; background: #fff0ee; }
.driver-location-status[data-state="error"]::before { background: #c83d34; }
.payment-passenger-field label { flex: 1; }
.payment-passenger-field > span { padding-bottom: 16px; font-size: 2rem; font-weight: 900; }
.legacy-ticket-cell { vertical-align: middle; }
.legacy-ticket-lines { display: grid; gap: 3px; min-width: 0; }
.legacy-ticket-line { display: block; padding: 2px 4px; border-radius: 3px; background: #edf6f0; color: #164b3e; font-size: 9px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.legacy-report-editing .legacy-ticket-lines { margin-top: 3px; }
.legacy-ticket-edit-button { width: 100%; padding: 4px 5px; color: var(--forest-800); background: #fff; border: 1px solid #b8d2c8; border-radius: 3px; font: inherit; font-size: 9px; font-weight: 900; cursor: pointer; }
.legacy-ticket-edit-button:hover { background: #edf6f0; border-color: var(--forest-600); }
.inline-ticket-editor > p { margin: 0 0 14px; color: var(--muted); }
.inline-ticket-editor-list { display: grid; gap: 8px; }
.inline-ticket-editor-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
.inline-ticket-editor-row strong, .inline-ticket-editor-row small { display: block; }
.inline-ticket-editor-row > div:first-child { min-width: 0; flex: 1; }
.inline-ticket-editor-row strong { white-space: normal; overflow: visible; overflow-wrap: anywhere; word-break: break-word; line-height: 1.35; }
.inline-ticket-editor-row small { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.inline-ticket-counter { display: flex; align-items: center; gap: 8px; }
.inline-ticket-counter button { width: 34px; height: 34px; color: var(--forest-800); background: #fff; border: 1px solid #b8d2c8; border-radius: 8px; font-size: 1.25rem; font-weight: 900; cursor: pointer; }
.inline-ticket-counter output { min-width: 24px; font-size: 1.05rem; font-weight: 900; text-align: center; }
.legacy-payer-row td { height: auto !important; padding: 5px 9px !important; color: #225f50; background: #eff8f3; font-size: 9px !important; text-align: left; }
.legacy-payer-row strong { display: inline-block; margin-right: 10px; padding: 2px 6px; color: #fff; background: #287562; border-radius: 3px; font-size: 8px; }
.legacy-ticket-discount-type { display: block; margin-top: 3px; padding: 3px 4px; color: #fff; background: #1d6a57; border-radius: 3px; font-size: 9px; font-weight: 900; line-height: 1.1; text-align: center; }
.legacy-wheelchair-assistance { display: block; margin-top: 3px; padding: 3px 4px; color: #174d61; background: #dff2f9; border-radius: 3px; font-size: 9px; font-weight: 900; line-height: 1.1; text-align: center; }
.legacy-report-editing input:hover { border-color: var(--amber); }
.legacy-report-editing input:focus { position: relative; z-index: 2; border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(40,117,98,.16); }
.legacy-report-editing input.is-dirty { background: #fff2ce; border-color: var(--amber); }
.legacy-report-editing tbody.is-valid .legacy-edit-line td { background: #f2faf3; }
.legacy-report-editing tbody.has-error .legacy-edit-line td { background: #fff0ee; border-color: #b83d34; }
.legacy-report-editing tbody.has-error .legacy-edit-line:hover td { background: #ffe5e1; }
.legacy-report-editing input.is-invalid { color: #8f241e; background: #fff !important; border: 2px solid var(--red); box-shadow: 0 0 0 2px rgba(189,62,53,.13); font-weight: 800; }
.legacy-validation-row td { height: auto !important; padding: 0 !important; border-top: 0 !important; }
.legacy-validation-row [data-row-validation] { display: flex; align-items: center; gap: 8px; min-height: 25px; padding: 5px 8px; color: #276a34; background: #eaf6ec; font-size: 8px; text-align: left; }
.legacy-validation-row [data-row-validation] strong { flex: 0 0 auto; padding: 2px 6px; color: #fff; background: var(--green); border-radius: 999px; font-size: 7px; }
.legacy-validation-row [data-row-validation] span + span::before { content: "・"; margin-right: 8px; }
tbody.has-error .legacy-validation-row [data-row-validation] { color: #842c26; background: #fbdedb; }
tbody.has-error .legacy-validation-row [data-row-validation] strong { background: var(--red); }
.report-validation-summary { position: absolute; right: 26px; top: 23px; z-index: 2; min-width: 92px; padding: 8px 12px; color: var(--muted); background: #f0f1ed; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 900; text-align: center; }
.report-validation-summary.is-valid { color: #276a34; background: #e8f5ea; border-color: #a9d5b0; }
.report-validation-summary.has-error { color: #8f241e; background: #fbdedb; border-color: #df8f88; animation: validation-pulse 1.8s ease-in-out infinite; }
.report-total-alert { color: #8f241e !important; background: #fff0ee !important; font-weight: 900; }
.has-validation-errors { outline-color: rgba(189,62,53,.35); }
.legacy-difference { padding-right: 25px !important; font-weight: 700; }
.legacy-percentage-discount { color: #111 !important; background: #fff !important; font-weight: 800; }
.legacy-difference.has-difference { color: #8f241e !important; background: #ffd9d5 !important; box-shadow: inset 0 0 0 2px var(--red); font-size: 11px !important; }
.legacy-difference button { position: absolute; width: 20px; height: 20px; right: 2px; top: 50%; display: grid; place-items: center; padding: 0; color: #fff; background: var(--red); border: 0; border-radius: 50%; transform: translateY(-50%); font-size: 13px; line-height: 1; }
.legacy-report-editing input.is-auto-calculated { background: #dff2ff !important; border-color: #4188b5; }
.legacy-history-row td { height: auto !important; padding: 0 !important; border-top: 0 !important; background: #f5f6f3 !important; text-align: left !important; }
.legacy-history-row:has([data-report-history]:empty) { display: none; }
.report-history summary { padding: 7px 10px; color: #53615d; cursor: pointer; font-size: 8px; font-weight: 800; list-style-position: inside; }
.report-history summary span { margin-right: 7px; padding: 2px 6px; color: #6e501b; background: #f8e9c8; border-radius: 999px; }
.report-history-list { display: grid; gap: 6px; padding: 0 9px 9px; }
.report-history-card { padding: 8px 10px; color: #53615d; background: rgba(255,255,255,.72); border-left: 3px solid #9ca9a5; border-radius: 4px; }
.report-history-card strong, .report-history-card small { display: inline-block; }
.report-history-card strong { margin-right: 8px; color: #33423e; font-size: 8px; }
.report-history-card small { font-size: 7px; }
.report-history-card p { margin: 4px 0 0; font-size: 8px; line-height: 1.45; }
.report-edit-guide { margin-bottom: 18px; padding: 13px 15px; color: #5e481d; background: #fff8e7; border: 1px solid #ecd39c; border-radius: 10px; font-size: .75rem; line-height: 1.7; }
.report-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.report-edit-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.report-edit-row { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; gap: 16px; align-items: center; min-height: 88px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.report-edit-row:last-child { border-bottom: 0; }
.report-edit-row strong, .report-edit-row span, .report-edit-row small { display: block; }
.report-edit-row span { margin-top: 5px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.report-edit-row small { margin-top: 6px; color: var(--forest-700); font-size: .65rem; font-weight: 700; }
.report-edit-time { padding-right: 14px; border-right: 1px solid var(--line); }
.report-edit-time strong { font-size: 1rem; }
.report-edit-actions { display: flex; align-items: center; gap: 12px; }

.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(8,27,23,.58); backdrop-filter: blur(5px); z-index: 100; animation: fade-in .16s ease-out; }
.modal-layer + .modal-layer .modal-backdrop { z-index: 110; }
#modal-root:fullscreen { background: rgba(8,27,23,.82); }
.modal { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(8,27,23,.3); animation: modal-in .2s ease-out; }
.modal-wide { width: min(980px, 100%); }
.modal-backdrop-fullscreen { padding: 10px; }
.modal.modal-fullscreen { width: 100%; height: calc(100vh - 20px); max-height: none; display: flex; flex-direction: column; border-radius: 16px; }
.modal.modal-fullscreen:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.modal-fullscreen .modal-head { flex: 0 0 auto; padding: 6px 12px; }
.modal-fullscreen .modal-body { min-height: 0; flex: 1; overflow: hidden; padding: 2px; }
.modal-fullscreen .fullscreen-hint { margin-left: auto; color: var(--muted); font-size: .68rem; font-weight: 800; }
.modal-fullscreen #accessibility-fullscreen-body, .modal-fullscreen #fujishima-fullscreen-body { height: 100%; display: flex; flex-direction: column; transition: opacity .15s ease; }
.modal-fullscreen #accessibility-fullscreen-body.is-loading, .modal-fullscreen #fujishima-fullscreen-body.is-loading { opacity: .45; pointer-events: none; }
.modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: rgba(255,254,250,.96); border-bottom: 1px solid var(--line); z-index: 2; }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-body { padding: 24px; }
.warning-box { padding: 16px; color: #67410a; background: var(--amber-soft); border: 1px solid #edc57e; border-radius: 12px; line-height: 1.65; }
.toast-root { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { min-width: 280px; max-width: 420px; padding: 14px 17px; color: #fff; background: var(--forest-900); border-radius: 12px; box-shadow: var(--shadow); font-size: .8rem; animation: toast-in .2s ease-out; }
.toast.error { background: #8e302a; }

.reception-launcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.reception-launch-card { --launch: var(--forest-600); position: relative; min-height: 154px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 24px; overflow: hidden; color: var(--ink); background: var(--paper); border: 1px solid color-mix(in srgb, var(--launch) 25%, var(--line)); border-radius: 20px; box-shadow: var(--shadow-soft); text-decoration: none; transition: transform .16s, box-shadow .16s, border-color .16s; }
.reception-launch-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -52px; top: -57px; background: color-mix(in srgb, var(--launch) 11%, transparent); border-radius: 50%; }
.reception-launch-card:hover { transform: translateY(-3px); border-color: var(--launch); box-shadow: var(--shadow); }
.reception-launch-card.regional { --launch: var(--forest-600); }
.reception-launch-card.stretcher { --launch: var(--amber); }
.reception-launch-card.wheelchair { --launch: var(--blue); }
.reception-launch-icon { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: var(--launch); border-radius: 16px; font-size: 1.45rem; }
.reception-launch-copy small, .reception-launch-copy strong, .reception-launch-copy span { display: block; }
.reception-launch-copy small { color: var(--launch); font-size: .67rem; font-weight: 900; letter-spacing: .08em; }
.reception-launch-copy strong { margin-top: 5px; font-size: 1.22rem; }
.reception-launch-copy span { margin-top: 9px; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.reception-launch-arrow { position: relative; z-index: 1; color: var(--launch); font-size: 1.2rem; }
.reception-hub { padding: clamp(24px, 4vw, 46px); }
.reception-hub-intro { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.reception-hub-intro > span { width: 58px; height: 58px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-50); border-radius: 50%; font-size: 1.5rem; }
.reception-hub-intro strong { font-size: 1.15rem; }
.reception-hub-intro p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.reception-launcher.hub { margin-bottom: 30px; }
.calendar-directory-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 25px; border-top: 1px solid var(--line); }
.calendar-directory-link strong, .calendar-directory-link span { display: block; }
.calendar-directory-link span { margin-top: 6px; color: var(--muted); font-size: .72rem; }
.reception-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -10px 0 24px; padding: 6px; background: rgba(255,255,255,.56); border: 1px solid rgba(23,32,29,.08); border-radius: 16px; }
.reception-switcher a { min-height: 48px; display: grid; place-items: center; color: var(--muted); border-radius: 11px; text-decoration: none; font-size: .8rem; font-weight: 900; }
.reception-switcher a:hover { color: var(--ink); background: #fff; }
.reception-switcher a.active { color: #fff; background: var(--forest-700); box-shadow: 0 5px 14px rgba(23,32,29,.15); }
.reception-switcher a.active.stretcher { background: #b97416; }
.reception-switcher a.active.wheelchair { background: var(--blue); }
.dedicated-reception { margin-bottom: 36px; }
.reception-month-section { margin-top: 42px; }
.customer-search-panel .field-hint { margin: 10px 2px 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.dedicated-calendar-section, .fujishima-day-section { margin-top: 35px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 1.35rem; }
.section-heading .eyebrow { display: block; margin-bottom: 6px; }
.accessibility-workspace { display: grid; grid-template-columns: minmax(420px, .82fr) minmax(520px, 1.18fr); gap: 20px; align-items: start; }
.accessibility-calendar-column { min-width: 0; }
.accessibility-form-column { min-width: 0; display: grid; gap: 16px; }
.accessibility-form-column .customer-results { max-height: 240px; }
.location-preset-field { display: grid; gap: 6px; }
.location-preset-field label { margin: 0; }
.location-preset-field small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.direct-entry-note { display: flex; align-items: center; gap: 13px; padding: 15px 17px; color: #174d61; background: var(--blue-soft); border: 1px solid #bfdde7; border-radius: 14px; }
.direct-entry-note > span { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; }
.direct-entry-note strong, .direct-entry-note p { display: block; }
.direct-entry-note strong { font-size: .78rem; }
.direct-entry-note p { margin: 4px 0 0; color: #52717c; font-size: .67rem; }
.reservation-entry-panel .panel-body { padding: 20px; }
.date-picker-button { width: 100%; min-height: 86px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 17px; color: var(--ink); text-align: left; background: #fff; border: 2px solid var(--forest-100); border-radius: 13px; }
.date-picker-button:hover { border-color: var(--forest-600); background: var(--forest-50); }
.date-picker-button span { display: flex; align-items: center; gap: 7px; color: var(--forest-700); font-size: .68rem; font-weight: 900; }
.date-picker-button strong { grid-row: 2; font-size: 1rem; }
.date-picker-button small { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: .62rem; }
.date-picker-button.compact { min-height: 68px; padding: 10px 13px; }
.date-picker-button.compact strong { font-size: .82rem; }
.date-picker-button:disabled { color: #8f9893; background: #f0f1ed; border-color: #dfe2dd; cursor: not-allowed; }
.date-picker-button:disabled span, .date-picker-button:disabled small { color: #99a19d; }
.large-date-picker { display: grid; gap: 16px; }
.modal-calendar-picker { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.modal-calendar-picker > header { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 12px; padding: 14px 18px; color: #fff; text-align: center; background: var(--forest-800); }
.modal-calendar-picker > header .icon-button { color: #fff; background: rgba(255,255,255,.1); }
.modal-calendar-picker > header span, .modal-calendar-picker > header strong { display: block; }
.modal-calendar-picker > header span { color: rgba(255,255,255,.65); font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.modal-calendar-picker > header strong { margin-top: 3px; font-size: 1.25rem; }
.picker-weekdays, .picker-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.picker-weekdays { color: var(--muted); background: #f4f5f1; border-bottom: 1px solid var(--line); text-align: center; }
.picker-weekdays span { padding: 9px 4px; font-size: .68rem; font-weight: 900; }
.picker-weekdays span:first-child { color: var(--red); }
.picker-calendar-grid { padding: 10px; gap: 5px; }
.picker-day { min-height: 58px; display: grid; place-items: center; color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 10px; font-size: .92rem; font-weight: 900; }
.picker-day:hover { color: var(--forest-800); background: var(--forest-50); border-color: var(--forest-100); }
.picker-day.outside { background: transparent; }
.picker-day.today span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--forest-800); border: 2px solid var(--forest-300); border-radius: 50%; }
.picker-day.selected { color: #fff; background: var(--forest-700); box-shadow: 0 7px 15px rgba(27,91,73,.2); }
.picker-day.selected span { color: inherit; border-color: transparent; }
.modal-calendar-picker > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; background: #f7f8f5; border-top: 1px solid var(--line); }
.modal-calendar-picker > footer div { text-align: right; }
.modal-calendar-picker > footer span, .modal-calendar-picker > footer strong { display: block; }
.modal-calendar-picker > footer span { color: var(--muted); font-size: .61rem; font-weight: 800; }
.modal-calendar-picker > footer strong { margin-top: 3px; color: var(--forest-800); font-size: .9rem; }
.picker-time { padding: 16px 20px; background: #f7f8f5; border: 1px solid var(--line); border-radius: 14px; }
.picker-time span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 900; }
.picker-time input { width: 100%; min-height: 68px; padding: 10px 16px; color: var(--forest-950); background: #fff; border: 2px solid var(--forest-100); border-radius: 12px; font-size: 1.55rem; font-weight: 900; text-align: center; }
.large-date-picker > p { margin: 0; color: var(--muted); text-align: center; font-size: .7rem; }
.month-calendar { margin-bottom: 16px; overflow: hidden; }
.month-calendar > header { min-height: 60px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 6px; padding: 6px 10px; color: #fff; text-align: center; background: var(--forest-800); }
.month-calendar > header .icon-button { color: #fff; background: rgba(255,255,255,.1); }
.month-header-actions { display: flex; align-items: center; gap: 4px; }
.calendar-fullscreen-button { min-height: 34px; padding: 0 9px; color: var(--forest-900); background: #fff; border: 0; border-radius: 6px; font-size: .65rem; font-weight: 900; }
.month-calendar > header span { color: rgba(255,255,255,.62); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.month-calendar > header h2 { margin: 1px 0 0; font-size: 1.12rem; }
.month-weekdays, .month-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.month-weekdays { color: var(--muted); background: #f6f5ef; border-bottom: 1px solid var(--line); font-size: .67rem; font-weight: 900; text-align: center; }
.month-weekdays span { padding: 4px; }
.month-weekdays span:first-child { color: var(--red); }
.month-calendar-grid { background: #fff; }
.month-day { min-width: 0; min-height: 86px; display: flex; flex-direction: column; gap: 1px; padding: 3px; color: var(--ink); text-align: left; background: #fff; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month-day:nth-child(7n) { border-right: 0; }
.month-day:hover { background: var(--forest-50); }
.month-day.outside { background: #f7f7f4; }
.month-day.selected { background: #fff8e8; box-shadow: inset 0 0 0 3px var(--amber); }
.month-day.today strong { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--forest-700); border-radius: 50%; }
.month-day > strong { font-size: .8rem; }
.month-count { display: block; overflow: hidden; padding: 1px 3px; border-radius: 3px; font-size: .59rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.month-count.wheelchair { color: #1e5d73; background: var(--blue-soft); }
.month-count.stretcher { color: #71490e; background: var(--amber-soft); }
.month-count.fujishima { color: var(--forest-800); background: var(--forest-100); }
.month-day small { margin-top: auto; color: var(--red); font-size: .53rem; font-weight: 900; }
.month-day .route-summary { color: var(--muted); line-height: 1.35; }
.fujishima-month-calendar { margin-top: 12px; }
.month-calendar.fujishima-expanded { overflow: visible; }
.month-calendar.fujishima-expanded .month-calendar-grid { grid-template-rows: repeat(var(--calendar-weeks, 6), minmax(118px, auto)); }
.month-day.fujishima.detailed { min-height: 118px; overflow: visible; }
.month-day.fujishima.detailed > header { min-height: 18px; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.month-day.fujishima.detailed > header button { padding: 0; color: var(--ink); background: transparent; border: 0; text-align: left; }
.month-day.fujishima.detailed > header span { color: var(--muted); font-size: .58rem; font-weight: 900; }
.month-day.fujishima.detailed > div { display: flex; flex-direction: column; gap: 1px; }
.month-day.fujishima.detailed .fujishima-focus-event { min-height: 44px; flex: 0 0 auto; }
.month-day.fujishima.detailed .fujishima-focus-event strong, .month-day.fujishima.detailed .fujishima-focus-event p { overflow: visible; text-overflow: clip; white-space: normal; }
.calendar-focus-switcher { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px; margin-bottom: 8px; padding: 2px; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 8px; }
.calendar-focus-switcher a { min-height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 6px; text-decoration: none; font-size: .74rem; font-weight: 900; }
.calendar-focus-switcher a:hover { color: var(--ink); background: #fff; }
.calendar-focus-switcher a.active { color: #fff; background: var(--blue); box-shadow: 0 5px 14px rgba(40,114,139,.18); }
.calendar-focus-switcher a.active.fujishima { background: var(--forest-700); box-shadow: 0 5px 14px rgba(31,93,77,.18); }
.calendar-display-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 0 0 6px; }
.calendar-display-switcher a, .calendar-display-switcher button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; color: var(--forest-800); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; font-weight: 900; line-height: 1; text-decoration: none; white-space: nowrap; }
.calendar-display-switcher a:hover, .calendar-display-switcher button:hover { color: var(--forest-900); border-color: var(--forest-300); }
.calendar-display-switcher a.active, .calendar-display-switcher button.active { color: #fff; background: var(--forest-700); border-color: var(--forest-700); box-shadow: 0 4px 12px rgba(31,93,77,.16); }
.fullscreen-display-switcher { flex: 0 0 auto; justify-content: center; margin: 0 0 2px; }
.fullscreen-display-switcher button { min-height: 28px; padding: 0 10px; font-size: .61rem; }
.calendar-focus-board { height: max(700px, calc(100vh - 315px)); display: flex; flex-direction: column; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft); }
.calendar-focus-board .fullscreen-calendar-toolbar { flex: 0 0 auto; }
.calendar-focus-board .fullscreen-calendar-scroll { min-height: 0; }
.calendar-focus-board .fullscreen-reservation { cursor: pointer; }
.calendar-focus-board.fujishima-expanded { height: auto; min-height: 700px; }
.calendar-focus-board.fujishima-expanded .fullscreen-calendar-scroll.fujishima-detailed { display: block; overflow: visible; }
.calendar-focus-board.fujishima-expanded .fullscreen-calendar-grid { height: auto; grid-template-rows: repeat(var(--calendar-weeks, 6), minmax(118px, auto)); }
.calendar-focus-board.fujishima-expanded .fullscreen-day { overflow: visible; }
.calendar-focus-board.fujishima-expanded .fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day > div { flex: none; overflow: visible; }
.calendar-focus-board.fujishima-expanded .fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day.has-multiple > div { height: auto; }
.fujishima-focus-event { min-width: 0; width: 100%; overflow: hidden; padding: 1px; color: var(--forest-900); text-align: left; background: var(--forest-50); border: 1px solid var(--forest-100); border-left: 3px solid var(--forest-600); border-radius: 4px; }
.fujishima-focus-event:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(23,32,29,.09); }
.fujishima-focus-event.inactive { opacity: .5; }
.fujishima-focus-event > div { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.fujishima-focus-event strong { overflow: hidden; color: var(--ink); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.fujishima-focus-event span { color: var(--red); font-size: .48rem; font-weight: 900; }
.fujishima-focus-event p { overflow: hidden; margin: 1px 0 0; font-size: .49rem; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.fujishima-focus-event b { display: inline-grid; width: 14px; height: 14px; margin-right: 1px; place-items: center; color: #fff; background: var(--forest-700); border-radius: 3px; font-size: .44rem; }
.fullscreen-day.fujishima > div { display: grid; gap: 1px; }
.fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day { display: flex; flex-direction: column; }
.fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day > div { min-height: 0; flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 1px; overflow-x: hidden; overflow-y: scroll; padding-right: 1px; scrollbar-width: thin; scrollbar-color: var(--forest-300) #edf1ed; }
.fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day > div::-webkit-scrollbar { width: 7px; }
.fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day > div::-webkit-scrollbar-track { background: #edf1ed; border-radius: 8px; }
.fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day > div::-webkit-scrollbar-thumb { background: var(--forest-300); border-radius: 8px; }
.fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day.has-multiple > div { height: auto; grid-template-rows: none; }
.fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day .fujishima-focus-event { min-height: 44px; height: auto; flex: 0 0 auto; }
.fullscreen-calendar-scroll.fujishima-detailed .fujishima-focus-event strong, .fullscreen-calendar-scroll.fujishima-detailed .fujishima-focus-event p { overflow: visible; text-overflow: clip; white-space: normal; }
.modal-fullscreen.fujishima-fullscreen-modal .modal-body { overflow: auto; }
.modal-fullscreen.fujishima-fullscreen-modal #fujishima-fullscreen-body { height: auto; display: block; }
.modal-fullscreen.fujishima-fullscreen-modal .fullscreen-calendar-scroll.fujishima-detailed { display: block; overflow: visible; }
.modal-fullscreen.fujishima-fullscreen-modal .fullscreen-calendar-grid { height: auto; grid-template-rows: repeat(var(--calendar-weeks, 6), minmax(118px, auto)); }
.modal-fullscreen.fujishima-fullscreen-modal .fullscreen-day { overflow: visible; }
.modal-fullscreen.fujishima-fullscreen-modal .fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day > div { flex: none; overflow: visible; }
.modal-fullscreen.fujishima-fullscreen-modal .fullscreen-calendar-scroll.fujishima-detailed .fullscreen-day.has-multiple > div { height: auto; }
.fullscreen-calendar-toolbar { min-height: 36px; display: grid; grid-template-columns: 110px minmax(0,1fr) 110px; align-items: center; gap: 4px; padding: 0 1px 2px; text-align: center; }
.fullscreen-calendar-toolbar .button { display: inline-flex; align-items: center; justify-content: center; line-height: 1.15; white-space: nowrap; }
.fullscreen-calendar-toolbar span { color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.fullscreen-calendar-toolbar h3 { margin: 1px 0 0; color: var(--forest-900); font-size: 1.25rem; }
.fullscreen-calendar-scroll { min-height: 0; flex: 1; overflow: hidden; display: grid; grid-template-rows: auto minmax(0,1fr); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.fullscreen-weekdays, .fullscreen-calendar-grid { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.fullscreen-weekdays { color: var(--muted); background: #f0f2ed; border-bottom: 1px solid var(--line); text-align: center; z-index: 4; }
.fullscreen-weekdays span { padding: 4px; border-right: 1px solid var(--line); font-size: .65rem; font-weight: 900; }
.fullscreen-weekdays span:first-child { color: var(--red); }
.fullscreen-calendar-grid { min-height: 0; height: 100%; grid-template-rows: repeat(var(--calendar-weeks, 6), minmax(0,1fr)); align-items: stretch; }
.fullscreen-day { min-width: 0; min-height: 0; overflow: hidden; padding: 1px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fullscreen-day:nth-child(7n) { border-right: 0; }
.fullscreen-day.outside { background: #f5f5f1; }
.fullscreen-day > header { min-height: 18px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
.fullscreen-day > header strong { font-size: .82rem; }
.fullscreen-day > header span { color: var(--muted); font-size: .58rem; font-weight: 900; }
.calendar-date-target { width: 100%; min-height: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; text-align: left; }
.calendar-date-target:hover strong { color: var(--forest-700); text-decoration: underline; text-underline-offset: 2px; }
.calendar-date-target:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 3px; }
.fullscreen-day.today > header strong { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: var(--forest-700); border-radius: 50%; }
.fullscreen-day > div { display: grid; gap: 1px; }
.fullscreen-day.has-multiple > div { min-height: 0; height: calc(100% - 26px); grid-template-rows: repeat(2, minmax(0,1fr)); }
.fullscreen-day.has-multiple .fullscreen-reservation { min-height: 0; height: 100%; align-content: start; }
.fullscreen-day.has-multiple .fullscreen-reservation footer { display: none; }
.fullscreen-day.has-multiple .fullscreen-person small { max-width: 45%; }
.fullscreen-no-reservation { margin: 2px 0 0; color: #a3aaa6; text-align: center; font-size: .6rem; }
.fullscreen-reservation { min-width: 0; width: 100%; overflow: hidden; padding: 1px; color: #174d61; text-align: left; background: var(--blue-soft); border: 1px solid #b9dce8; border-left: 3px solid var(--blue); border-radius: 4px; }
.fullscreen-reservation.stretcher { color: #68430b; background: var(--amber-soft); border-color: #ead09c; border-left-color: var(--amber); }
.fullscreen-reservation.inactive { opacity: .52; }
.fullscreen-reservation:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(23,32,29,.1); }
.fullscreen-reservation-head { display: flex; align-items: center; gap: 2px; }
.fullscreen-reservation-head time { font-size: .66rem; font-weight: 900; }
.fullscreen-reservation-head > span:not(.status-chip) { margin-right: auto; overflow: hidden; font-size: .48rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.fullscreen-reservation-head .status-chip { padding: 1px 4px; font-size: .43rem; }
.fullscreen-person { min-width: 0; display: flex; align-items: baseline; gap: 2px; margin-top: 1px; }
.fullscreen-person strong { overflow: hidden; color: var(--ink); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.fullscreen-person small { overflow: hidden; opacity: .68; font-size: .45rem; text-overflow: ellipsis; white-space: nowrap; }
.fullscreen-reservation p { overflow: hidden; margin: 1px 0 0; font-size: .48rem; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.fullscreen-reservation footer { display: flex; justify-content: space-between; gap: 2px; margin-top: 1px; }
.fullscreen-reservation footer span { overflow: hidden; font-size: .43rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.fullscreen-more { padding: 2px 5px; color: var(--forest-800); background: var(--forest-50); border-radius: 4px; font-size: .48rem; font-weight: 900; text-align: center; }
.accessibility-combined-month { min-height: 0; flex: 1; }
.accessibility-combined-month .fullscreen-day > div { display: grid; gap: 1px; }
.accessibility-combined-month .fullscreen-day.has-multiple > div { height: auto; grid-template-rows: none; }
.accessibility-combined-month .fullscreen-day.has-multiple .fullscreen-reservation { height: auto; }
.accessibility-service-month { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.accessibility-service-month h4 { margin: 0; padding: 3px; font-size: .72rem; text-align: center; }
.accessibility-service-month.stretcher h4 { color: #68430b; background: var(--amber-soft); }
.accessibility-service-month.wheelchair h4 { color: #174d61; background: var(--blue-soft); }
.accessibility-service-month .fullscreen-calendar-scroll { border: 0; border-radius: 0; }
.accessibility-service-month .fullscreen-weekdays span { padding: 6px 2px; font-size: .55rem; }
.accessibility-service-month .fullscreen-day { padding: 1px; }
.accessibility-service-month .fullscreen-day > header { min-height: 19px; }
.accessibility-service-month .fullscreen-day > header strong { font-size: .62rem; }
.accessibility-service-month .fullscreen-day > header span { font-size: .47rem; }
.accessibility-service-month .fullscreen-reservation { padding: 1px; }
.accessibility-service-month .fullscreen-reservation .fullscreen-person small, .accessibility-service-month .fullscreen-reservation .fullscreen-route, .accessibility-service-month .fullscreen-reservation footer { display: none; }
.accessibility-service-month .fullscreen-reservation-head time, .accessibility-service-month .fullscreen-person strong { font-size: .54rem; }
.accessibility-service-month .fullscreen-reservation-head > span:not(.status-chip) { font-size: .4rem; }
.accessibility-split-agenda { min-height: 0; flex: 1; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.accessibility-split-heading, .accessibility-split-day { display: grid; grid-template-columns: 160px minmax(0,1fr) minmax(0,1fr); }
.accessibility-split-heading { position: sticky; top: 0; z-index: 3; color: var(--muted); background: #f0f2ed; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 900; text-align: center; }
.accessibility-split-heading span { padding: 4px; border-right: 1px solid var(--line); }
.accessibility-split-heading span:nth-child(2) { color: #68430b; background: var(--amber-soft); }
.accessibility-split-heading span:nth-child(3) { color: #174d61; background: var(--blue-soft); }
.accessibility-split-day { min-width: 0; border-bottom: 1px solid var(--line); }
.accessibility-split-day > header { padding: 4px; background: #f7f8f5; border-right: 1px solid var(--line); }
.accessibility-split-day > header strong { display: block; overflow: hidden; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.accessibility-split-day > header span { display: block; margin-top: 1px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.accessibility-split-day.today > header { color: var(--forest-900); background: #fff5dc; box-shadow: inset 4px 0 0 var(--amber); }
.accessibility-split-column { min-width: 0; display: grid; align-content: start; gap: 1px; padding: 1px; border-right: 1px solid var(--line); }
.accessibility-split-column > p { margin: 2px 0; color: #a3aaa6; font-size: .7rem; text-align: center; }
.accessibility-split-day.is-empty > header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 10px; }
.accessibility-split-day.is-empty > header strong, .accessibility-split-day.is-empty > header span { display: inline; min-width: 0; margin: 0; font-size: .7rem; line-height: 1; white-space: nowrap; }
.accessibility-split-day.is-empty .accessibility-split-column { min-height: 18px; display: flex; align-items: center; justify-content: center; padding: 1px; }
.accessibility-split-day.is-empty .accessibility-split-column > p { margin: 0; font-size: .58rem; line-height: 1; }
.accessibility-split-event { min-width: 0; display: grid; grid-template-columns: 64px minmax(90px,.8fr) minmax(160px,1.4fr); gap: 2px; padding: 1px; color: #174d61; text-align: left; background: var(--blue-soft); border: 1px solid #b9dce8; border-left: 4px solid var(--blue); border-radius: 4px; }
.accessibility-split-event.stretcher { color: #68430b; background: var(--amber-soft); border-color: #ead09c; border-left-color: var(--amber); }
.accessibility-split-event time, .accessibility-split-event strong { min-width: 0; font-size: .86rem; font-weight: 900; }
.accessibility-split-event span { min-width: 0; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.accessibility-split-event small { grid-column: 2 / -1; min-width: 0; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.accessibility-split-event:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(23,32,29,.1); }
.calendar-agenda { min-height: 0; flex: 1; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calendar-agenda-heading, .calendar-agenda-item { display: grid; grid-template-columns: 126px 72px 110px minmax(110px, .8fr) minmax(240px, 2.4fr); }
.calendar-agenda-heading { position: sticky; top: 0; z-index: 3; color: var(--muted); background: #f0f2ed; border-bottom: 1px solid var(--line); font-size: .62rem; font-weight: 900; }
.calendar-agenda-heading span { padding: 4px; border-right: 1px solid var(--line); }
.calendar-agenda-day { display: grid; grid-template-columns: 126px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.calendar-agenda-day > header { padding: 4px; background: #f7f8f5; border-right: 1px solid var(--line); }
.calendar-agenda-day > header strong { display: block; font-size: .76rem; }
.calendar-agenda-day > header span { display: block; margin-top: 1px; color: var(--muted); font-size: .58rem; font-weight: 800; }
.calendar-agenda-day.today > header { color: var(--forest-900); background: #fff5dc; box-shadow: inset 4px 0 0 var(--amber); }
.calendar-fortnight-agenda .calendar-agenda-day > header { padding-top: 4px; padding-bottom: 4px; }
.calendar-agenda-day > div { min-width: 0; }
.calendar-agenda-item { width: 100%; min-width: 0; padding: 0; color: var(--ink); text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e8ece8; }
.calendar-agenda-item:last-child { border-bottom: 0; }
.calendar-agenda-item > * { min-width: 0; padding: 3px 4px; border-right: 1px solid #e8ece8; font-size: .68rem; }
.calendar-agenda-item time, .calendar-agenda-item .agenda-type { font-weight: 900; }
.calendar-agenda-item .agenda-type { color: var(--blue); }
.calendar-agenda-item.fujishima .agenda-type { color: var(--forest-700); }
.calendar-agenda-item strong, .calendar-agenda-item span:not(.agenda-type), .calendar-agenda-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-agenda-item small { color: var(--muted); }
.calendar-agenda-item:hover { background: var(--forest-50); }
.agenda-empty { margin: 0; padding: 12px; color: #a3aaa6; font-size: .66rem; }
.reservation-kind-field { margin-bottom: 18px; }
.reservation-kind-field > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.reservation-kind-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 5px; background: #eef0ec; border-radius: 12px; }
.reservation-kind-selector button { min-height: 46px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: .78rem; font-weight: 900; }
.reservation-kind-selector button.active[data-reservation-kind="stretcher"] { color: #fff; background: #b97416; box-shadow: 0 4px 12px rgba(185,116,22,.22); }
.reservation-kind-selector button.active[data-reservation-kind="wheelchair"] { color: #fff; background: var(--blue); box-shadow: 0 4px 12px rgba(40,114,139,.22); }
.support-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 10px; }
.support-option-grid label { min-height: 42px; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; padding: 9px 11px; color: var(--ink) !important; background: #f6f7f4; border: 1px solid var(--line); border-radius: 9px; font-size: .7rem !important; font-weight: 700 !important; }
.support-option-grid input { width: 17px !important; min-height: 17px !important; }
.accessibility-calendar { overflow: hidden; }
.accessibility-calendar-head, .accessibility-calendar-grid { display: grid; grid-template-columns: 76px repeat(2, minmax(180px, 1fr)); }
.accessibility-calendar-head { color: var(--muted); background: #f6f5ef; border-bottom: 1px solid var(--line); font-size: .7rem; font-weight: 900; text-align: center; }
.accessibility-calendar-head span { padding: 13px 10px; border-left: 1px solid var(--line); }
.accessibility-calendar-head span:first-child { border-left: 0; }
.accessibility-calendar-head span:nth-child(2) { color: #1e5d73; background: var(--blue-soft); }
.accessibility-calendar-head span:nth-child(3) { color: #71490e; background: var(--amber-soft); }
.accessibility-calendar-grid { max-height: none; overflow: visible; }
.accessibility-calendar-grid .time-label { position: relative; min-height: 74px; }
.accessibility-calendar-grid .time-label strong { display: block; margin-top: 5px; padding: 2px 4px; color: #fff; background: var(--red); border-radius: 4px; font-size: .55rem; text-align: center; }
.accessibility-calendar-grid .calendar-cell { min-height: 74px; display: flex; flex-direction: column; gap: 5px; }
.accessibility-calendar-grid .time-label.empty-slot,
.accessibility-calendar-grid .calendar-cell.empty-slot { min-height: 28px; height: 28px; padding-top: 5px; padding-bottom: 5px; }
.accessibility-calendar-grid .time-label.empty-slot { color: #98a09c; font-size: .62rem; }
.accessibility-calendar-grid .calendar-cell.empty-slot { background: #fbfbf8; }
.accessibility-calendar-grid .day-boundary { color: var(--forest-800); background: var(--forest-50); border-bottom: 2px solid var(--forest-300); font-weight: 900; }
.accessibility-calendar-grid .calendar-event { width: 100%; }
.calendar-empty { padding: 0 10px; color: #a0a7a3; font-size: .68rem; }
.route-calendar { display: grid; grid-template-columns: repeat(8, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.route-column { min-width: 150px; overflow: hidden; background: var(--paper); border: 1px solid var(--forest-100); border-radius: 16px; box-shadow: var(--shadow-soft); }
.route-column header { position: relative; padding: 15px; color: #fff; background: var(--forest-700); }
.route-column.return header { background: var(--blue); }
.route-column header span, .route-column header time, .route-column header small { display: block; }
.route-column header span { color: rgba(255,255,255,.7); font-size: .63rem; font-weight: 800; }
.route-column header strong { display: block; margin-top: 4px; font-size: 1.25rem; }
.route-column header time { margin-top: 3px; font-size: .7rem; }
.route-column header small { position: absolute; right: 12px; top: 16px; padding: 4px 7px; background: rgba(255,255,255,.14); border-radius: 999px; }
.route-column > div { min-height: 126px; padding: 8px; }
.route-column button { width: 100%; padding: 10px; color: var(--ink); text-align: left; background: var(--forest-50); border: 0; border-radius: 9px; }
.route-column.return button { background: var(--blue-soft); }
.route-column button + button { margin-top: 6px; }
.route-column button strong, .route-column button span { display: block; }
.route-column button strong { font-size: .74rem; }
.route-column button span { margin-top: 4px; color: var(--muted); font-size: .63rem; }
.route-column > div > p { margin: 38px 0 0; color: #9da5a1; text-align: center; font-size: .68rem; }
.previous-use { margin: 16px 0 20px; padding: 15px 17px; background: #fff8e8; border: 1px solid #efd6a4; border-radius: 12px; }
.previous-use span, .previous-use strong { display: block; }
.previous-use span { color: #795317; font-size: .65rem; font-weight: 900; }
.previous-use strong { margin-top: 5px; font-size: .82rem; }
.previous-use p { margin: 6px 0 0; color: var(--muted); font-size: .7rem; }
.weekday-place-note { padding: 11px 13px; color: #315f51; background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: 9px; font-size: .68rem; line-height: 1.65; }
.weekday-place-note.closed { color: #8b2c27; background: var(--red-soft); border-color: #edc5c1; }
.customer-history { margin-top: 22px; border-top: 1px solid var(--line); }
.customer-history h3 { margin: 18px 0 8px; font-size: .85rem; }
.customer-history > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ecece7; font-size: .7rem; }
.customer-history time { color: var(--muted); }
.import-guide { padding: 17px 19px; color: var(--forest-900); background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: 14px; }
.import-guide strong { display: block; font-size: .9rem; }
.import-guide p { margin: 7px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.7; }
.file-drop-field { display: grid; place-items: center; min-height: 190px; margin-top: 18px; padding: 24px; text-align: center; background: #fafaf7; border: 2px dashed #b8c9c2; border-radius: 16px; }
.file-drop-field label { color: var(--forest-800); font-size: 1rem; font-weight: 900; }
.file-drop-field input { width: min(100%, 430px); margin-top: 17px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.file-drop-field span { margin-top: 10px; color: var(--muted); font-size: .68rem; }
.import-required-columns { display: flex; align-items: center; gap: 14px; margin-top: 15px; padding: 13px 15px; background: #f6f5ef; border-radius: 10px; font-size: .7rem; }
.import-required-columns span { color: var(--muted); line-height: 1.6; }
.import-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.import-result-grid article { padding: 18px; text-align: center; background: #f7f8f5; border: 1px solid var(--line); border-radius: 14px; }
.import-result-grid span, .import-result-grid strong, .import-result-grid small { display: block; }
.import-result-grid span { color: var(--muted); font-size: .68rem; font-weight: 800; }
.import-result-grid strong { margin-top: 8px; color: var(--forest-800); font-size: 2rem; }
.import-result-grid small { margin-top: 5px; color: var(--muted); font-size: .62rem; }
.import-finish-note { margin-top: 15px; padding: 12px 14px; color: #6d4b16; background: var(--amber-soft); border-radius: 10px; font-size: .72rem; }
.calendar-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.calendar-directory-card { --directory: var(--forest-600); min-height: 280px; display: flex; flex-direction: column; padding: 28px; color: var(--ink); background: var(--paper); border: 1px solid color-mix(in srgb, var(--directory) 25%, var(--line)); border-radius: 22px; box-shadow: var(--shadow-soft); text-decoration: none; }
.calendar-directory-card.stretcher { --directory: var(--amber); }
.calendar-directory-card.wheelchair { --directory: var(--blue); }
.calendar-directory-card.accessibility { --directory: var(--blue); }
.calendar-directory-card > span { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--directory); border-radius: 17px; font-size: 1.45rem; }
.calendar-directory-card div { margin-top: 28px; }
.calendar-directory-card small { color: var(--directory); font-weight: 900; }
.calendar-directory-card h2 { margin: 7px 0 0; font-size: 1.45rem; }
.calendar-directory-card p { color: var(--muted); font-size: .76rem; line-height: 1.65; }
.calendar-directory-card > strong { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; color: var(--directory); border-top: 1px solid var(--line); font-size: .76rem; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes validation-pulse { 50% { box-shadow: 0 0 0 5px rgba(189,62,53,.1); } }

@media (max-width: 1100px) {
  .reception-launcher, .calendar-directory { grid-template-columns: 1fr; }
  .accessibility-workspace { grid-template-columns: 1fr; }
  .reception-launch-card { min-height: 128px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .reception-grid { grid-template-columns: 1fr; }
  .customer-results { max-height: 340px; }
  .dispatch-board { grid-template-columns: 150px repeat(3, 260px); }
  .master-grid { grid-template-columns: 1fr 1fr; }
  .report-folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .master-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .mobile-only { display: grid !important; }
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { min-height: 42vh; padding: 40px 28px; }
  .login-brand h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); }
  .login-lead { margin-top: 18px; font-size: .86rem; }
  .login-card { padding: 42px 28px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(8,27,23,.25); }
  .sidebar.open { transform: translateX(0); }
  .topbar { height: 64px; padding: 0 18px; }
  .breadcrumb { margin-right: auto; }
  .topbar-meta > #today-label { display: none; }
  #main-content { min-width: 0; padding: 24px 18px 40px; }
  .page-head, .page-head > *, .panel, .panel-head, .panel-head > *, .panel-body { min-width: 0; }
  .panel-head { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .reception-launch-card { padding: 18px; }
  .reception-switcher { position: sticky; top: 72px; z-index: 9; }
  .route-calendar { margin-right: -18px; padding-right: 18px; }
  .accessibility-calendar-column { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .accessibility-calendar { min-width: 560px; }
  .month-calendar { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .month-calendar > header { min-width: 680px; }
  .month-weekdays, .month-calendar-grid { min-width: 680px; }
  .modal.modal-fullscreen { height: 100vh; border-radius: 0; }
  .modal-fullscreen .fullscreen-hint { display: none; }
  .modal-fullscreen .modal-head { padding: 15px 18px; }
  .modal-fullscreen .modal-body { padding: 9px; }
  .fullscreen-calendar-toolbar { grid-template-columns: 92px minmax(0,1fr) 92px; gap: 8px; }
  .fullscreen-calendar-toolbar .button { min-width: 0; padding: 0 8px; }
  .calendar-agenda { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .accessibility-split-agenda { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .accessibility-split-heading, .accessibility-split-day { min-width: 760px; }
  .accessibility-month-split { min-width: 760px; }
  .calendar-focus-board:has(.accessibility-month-split) { overflow-x: auto; }
  .calendar-fullscreen-button { padding: 0 10px; font-size: .62rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: span 1; }
  .calendar-header { grid-template-columns: 62px repeat(3, minmax(145px,1fr)); }
  .calendar-grid { grid-template-columns: 62px repeat(3, minmax(145px,1fr)); }
  .calendar-shell { overflow-x: auto; }
  .vehicle-grid, .driver-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
  .vehicle-button, .driver-button { min-height: 80px; font-size: 1.35rem; }
  .ride-action { width: min(58vw, 300px); }
  .driver-fee-panel, .driver-hero-below, .driver-dropoff-side { width: min(92vw, 560px); }
  .mistake-button { position: static; }
  .driver-topbar { justify-content: center; }
  .driver-meta { justify-content: center; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .settings-rule-grid { grid-template-columns: 1fr; }
  .master-grid { grid-template-columns: 1fr; }
  .report-archive-head { grid-template-columns: 1fr; gap: 12px; }
  .report-folder-grid { grid-template-columns: 1fr; }
  .daily-report-meta { grid-template-columns: repeat(2,1fr); }
  .daily-report-summary { grid-template-columns: repeat(2,1fr); }
  .daily-report-sheet { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .ticket-usage-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-usage-finance-item:nth-child(5n) { border-right: 1px solid var(--line); }
  .ticket-usage-finance-item:nth-child(even) { border-right: 0; }
  .ticket-usage-list { grid-template-columns: 1fr; }
  .ticket-usage-item:nth-child(odd) { border-right: 0; }
  .report-screen-actions.is-editing { min-width: 0; justify-content: flex-start; }
  .legacy-report { margin: 0; }
  .report-fit-frame, .report-scroll-x { margin: 0; padding: 0; }
}

@media (max-width: 540px) {
  .operator-affiliation-buttons { grid-template-columns: 1fr; }
  .operator-affiliation-button { min-height: 48px; }

  #main-content { padding: 18px 14px 32px; }
  .topbar { padding: 0 14px; }
  .topbar-meta { gap: 7px; }
  .operator-badge { min-width: 0; padding: 7px 10px; font-size: .74rem; }
  .page-head h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
  .page-head { gap: 12px; margin-bottom: 22px; }
  .page-head p { margin-top: 7px; font-size: .86rem; line-height: 1.65; }
  .page-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page-actions .button { min-width: 0; padding: 0 10px; font-size: .78rem; }
  .page-actions .button:only-child { grid-column: 1 / -1; }
  .panel { border-radius: 15px; }
  .panel-head { padding: 14px; }
  .panel-head h2 { font-size: 1rem; }
  .panel-body { padding: 14px; }
  .driver-page { min-height: auto; }
  .driver-stage { min-height: calc(100vh - 110px); gap: 8px; padding: 4px 8px 16px; }
  .driver-stage h1 { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .driver-meta { gap: 6px; }
  .driver-meta span { padding: 5px 9px; font-size: .78rem; }
  .driver-hero { min-height: min(68vh, 560px); gap: 10px; padding: 4px 0; grid-template-rows: minmax(76px, auto) minmax(min(58vw, 260px), auto) auto; }
  .driver-hero-above { min-height: 76px; width: min(92vw, 420px); }
  .driver-hero-action { min-height: min(58vw, 260px); }
  .ride-action { width: min(58vw, 260px); aspect-ratio: 1; min-height: 0; margin: 0 auto; font-size: clamp(2.4rem, 12vw, 4.2rem); }
  .driver-dropoff-side { grid-template-columns: 1fr; width: min(92vw, 380px); }
  .charter-box-button { min-height: 52px; font-size: 1.25rem; }
  .driver-pickup-toggle { width: min(88vw, 440px); min-height: 72px; margin: 15px auto 8px; }
  .driver-service-options { width: min(88vw, 440px); }
  .driver-fee-chip { min-height: 44px; padding: 7px 12px; }
  .driver-stretcher-mode-choices { grid-template-columns: 1fr; }
  .driver-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .driver-secondary-actions > * { width: 100%; min-width: 0; }
  .driver-secondary-actions .shift-end-button { grid-column: 1 / -1; }
  .fare-input { min-height: 64px; }
  .report-fit-frame, .report-scroll-x { margin: 0; padding: 0 0 8px; }
  .payment-layout .eyebrow { margin-bottom: 12px; }
  .payment-question { margin-bottom: 22px; font-size: clamp(1.55rem, 8vw, 2.15rem); line-height: 1.35; }
  .step-indicator { gap: 4px; margin-bottom: 18px; }
  .choice-button { min-height: 82px; padding: 14px; font-size: 1.12rem; }
  .fare-input { min-height: 78px; padding: 10px 14px; border-radius: 14px; font-size: clamp(2.5rem, 14vw, 4.25rem); }
  .confirmation-row { align-items: flex-start; gap: 12px; padding: 13px 14px; font-size: .92rem; }
  .confirmation-row strong { max-width: 62%; overflow-wrap: anywhere; }
  .form-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .form-actions .button { width: 100%; }
  .reception-launch-card { grid-template-columns: auto minmax(0,1fr); }
  .reception-launch-arrow { display: none; }
  .reception-launch-icon { width: 46px; height: 46px; }
  .reception-switcher a { min-height: 44px; padding: 5px; font-size: .7rem; }
  .calendar-directory-link { align-items: stretch; flex-direction: column; }
  .customer-history > div { grid-template-columns: 75px minmax(0,1fr); }
  .customer-history .status-chip { grid-column: 2; justify-self: start; }
  .support-option-grid { grid-template-columns: 1fr; }
  .import-result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .import-required-columns { align-items: flex-start; flex-direction: column; }
  .large-date-picker { grid-template-columns: 1fr; }
  .large-date-picker p { grid-column: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 112px; padding: 17px; }
  .metric-card strong { font-size: 2rem; }
  .schedule-item { grid-template-columns: 58px 5px minmax(0,1fr); padding: 14px; gap: 10px; }
  .schedule-item .status-chip { grid-column: 3; justify-self: start; }
  .choice-grid { grid-template-columns: 1fr; }
  .ticket-payment-layout { max-width: none; }
  .ticket-picker-head { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .ticket-picker-head .payment-question { font-size: clamp(1.55rem, 7.5vw, 2.05rem); }
  .ticket-picker-head p:last-child { font-size: .84rem; line-height: 1.55; }
  .ticket-total.ticket-total-top { flex-basis: auto; min-height: auto; padding: 13px 15px; }
  .ticket-total strong { font-size: 1.7rem; }
  .ticket-choice-list { gap: 10px; }
  .ticket-choice { grid-template-columns: 1fr; border-radius: 14px; }
  .ticket-choice-main { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .ticket-choice-image { max-height: 72px; border-radius: 8px; }
  .ticket-choice-copy { gap: 4px; }
  .ticket-choice-copy small { font-size: .64rem; }
  .ticket-choice-copy strong { font-size: .98rem; line-height: 1.4; white-space: normal; overflow: visible; word-break: break-word; overflow-wrap: anywhere; }
  .ticket-choice-copy span { font-size: .74rem; }
  .ticket-choice-copy b { font-size: .82rem; }
  .ticket-choice-add { display: none; }
  .ticket-choice-add b { font-size: 1.5rem; }
  .ticket-quantity-control { grid-template-columns: 1fr 1.2fr 1fr; min-height: 58px; border-top: 1px solid var(--forest-100); border-left: 0; border-radius: 0 0 12px 12px; }
  .ticket-quantity-control button { font-size: 1.7rem; }
  .ticket-quantity-control output strong { font-size: 1.75rem; }
  .ticket-quantity-control output span { font-size: .64rem; }
  .ticket-row { grid-template-columns: 54px minmax(0, 1fr) 58px; gap: 8px; }
  .ticket-count { font-size: 1.4rem; }
  .unpaid-customer-tools { flex-direction: column; }
  .ticket-usage-head { align-items: stretch; flex-direction: column; }
  .ticket-usage-finance-heading { align-items: flex-start; flex-direction: column; gap: 3px; padding: 15px; }
  .ticket-usage-finance-item { min-height: 104px; padding: 14px; }
  .ticket-usage-finance-item strong { font-size: 1.15rem; }
  .ticket-usage-range { justify-content: space-between; }
  .ticket-usage-range .button { flex: 1; padding: 8px 6px; font-size: .7rem; }
  .ticket-usage-summary > div { padding: 15px; }
  .ticket-usage-item { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; }
  .ticket-usage-item b { grid-column: 2 / 4; }
  .ticket-add { min-height: 76px; padding: 12px 14px; }
  .ticket-remove { font-size: 2rem; }
  .ticket-master-row { grid-template-columns: 62px minmax(0, 1fr) auto; padding: 10px; }
  .ticket-master-image { width: 62px; height: 46px; }
  .master-row { min-height: 64px; padding: 10px 12px; }
  .master-actions { gap: 4px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; }
  .modal-head { padding: 16px 20px; }
  .modal-body { padding: 20px; }
  .toast-root { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; max-width: none; }
  .report-edit-row { grid-template-columns: 72px minmax(0,1fr); }
  .report-edit-actions { grid-column: 2; }
}

@media (max-width: 380px) {
  #main-content { padding-right: 10px; padding-left: 10px; }
  .topbar { padding: 0 10px; }
  .breadcrumb { font-size: .82rem; }
  .operator-badge span:last-child { display: none; }
  .ride-action { width: min(58vw, 280px); }
  .driver-pickup-toggle { width: min(92vw, 380px); }
  .driver-service-options { width: min(92vw, 380px); }
  .vehicle-grid, .driver-grid { grid-template-columns: 1fr; }
  .page-actions { grid-template-columns: 1fr; }
  .ticket-choice-main { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .ticket-choice-image { max-height: 58px; }
  .ticket-choice-copy strong { font-size: .9rem; line-height: 1.4; }
  .ticket-choice-copy span { font-size: .68rem; }
  .ticket-choice-add { display: none; }
  .ticket-choice-add b { font-size: 1.25rem; }
}

@media (max-height: 850px) {
  .modal-fullscreen .modal-head { padding-top: 11px; padding-bottom: 11px; }
  .fullscreen-calendar-toolbar { min-height: 44px; }
  .fullscreen-calendar-toolbar h3 { font-size: 1.15rem; }
  .fullscreen-weekdays span { padding: 6px; }
  .fullscreen-reservation .fullscreen-route,
  .fullscreen-reservation footer { display: none; }
}

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

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body { background: #fff; }
  .sidebar, .topbar, .report-screen-actions { display: none !important; }
  .app-shell { display: block; }
  #main-content { max-width: none; padding: 0; }
  .daily-report-sheet { max-width: none; border: 0; box-shadow: none; }
  .legacy-report { width: 100%; min-width: 0; padding: 0; box-shadow: none; transform: none !important; }
  .report-fit-frame, .report-scroll-x { height: auto !important; overflow: visible !important; }
  .legacy-report-editing { outline: 0; }
  .legacy-report-editing input { height: auto; padding: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; appearance: none; }
  .legacy-difference button { display: none; }
  .legacy-validation-row, .legacy-history-row, .report-validation-summary { display: none; }
  .report-total-alert { color: #000 !important; background: #fff !important; }
  .legacy-title { margin-bottom: 10px; font-size: 18pt; }
  .legacy-form { font-size: 7pt; }
  .legacy-form th, .legacy-form td { height: 20px; padding: 1px 2px; border-width: 1px; }
  .legacy-top th, .legacy-top td { height: 23px; font-size: 7pt; }
  .legacy-top .legacy-spacer td { height: 8px; }
  .legacy-metrics { margin-top: 5px; }
  .legacy-metrics th, .legacy-metrics td { height: 19px; }
  .legacy-money th, .legacy-money td { height: 21px; }
  .legacy-detail { margin-top: 9px; }
  .legacy-detail th { height: 18px; font-size: 6.5pt; }
  .legacy-detail td { height: 17px; font-size: 6pt; }
  .legacy-no-data { height: 35px !important; }
  .daily-report-title { padding-top: 20px; }
  .report-table { white-space: normal; }
  .report-table th, .report-table td { padding: 8px; font-size: 8pt; }
}
