: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); }
.icon-button.nav-chevron {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--forest-900, #17352a);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(23,32,29,.1);
}
.icon-button.nav-chevron:hover {
  background: #fff;
  border-color: rgba(40, 117, 98, .35);
}

.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-backdrop { display: none; }
.sidebar-brand { padding: 4px 8px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { color: #fff; font-size: 1.45rem; line-height: 1.25; letter-spacing: .02em; }
.sidebar-brand span { margin-top: 6px; color: rgba(255,255,255,.62); font-size: .92rem; letter-spacing: .14em; font-weight: 700; }
.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; width: 100%; }
.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: 100%; margin: 0 auto; }
.vehicle-button, .driver-button { min-height: 112px; padding: 22px 18px; color: #fff; background: #64ac5b; border: 0; border-radius: 16px; box-shadow: 0 8px 0 #4b8845, 0 14px 24px rgba(49,96,43,.18); font-size: clamp(1.45rem, 3.4vw, 2.5rem); font-weight: 900; letter-spacing: .035em; }
.vehicle-button:active, .driver-button:active { transform: translateY(5px); box-shadow: 0 3px 0 #4b8845; }
.vehicle-button { position: relative; }
.vehicle-button.is-onboard { background: #a85a17; box-shadow: 0 8px 0 #7e3e0a, 0 14px 24px rgba(126,62,10,.2); }
.vehicle-onboard-badge { position: absolute; top: 8px; right: 8px; max-width: calc(100% - 16px); padding: 4px 7px; overflow: hidden; color: #542500; background: #fff2bf; border: 1px solid #f7cf66; border-radius: 999px; font-size: .7rem; line-height: 1.25; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-onboard-badge.is-unknown { color: #5b4545; background: #f3eeee; border-color: #d7c5c5; }
.driver-button { color: var(--forest-950); background: #e9eee8; box-shadow: 0 8px 0 #cbd4cc, 0 14px 24px rgba(23,32,29,.1); }
.driver-stage-choice { max-width: min(1240px, 100%); }
.driver-stage-choice h1 { font-size: clamp(2rem, 5vw, 3rem); }
.driver-stage-choice > p { font-size: clamp(1.05rem, 2.4vw, 1.45rem); }
.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-meta-prominent { gap: 10px; align-items: center; }
.driver-meta-prominent .driver-meta-vehicle,
.driver-meta-prominent .driver-meta-name {
  padding: 10px 18px;
  border-radius: 16px;
  border-width: 2px;
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: .02em;
}
.driver-meta-prominent .driver-meta-vehicle {
  color: #fff;
  background: var(--forest-800, #1f5d4d);
  border-color: var(--forest-800, #1f5d4d);
}
.driver-meta-prominent .driver-meta-name {
  color: var(--forest-950);
  background: #eef6f2;
  border-color: #b7d5c8;
}
.driver-session-banner { margin: 8px 0 0; color: var(--forest-800); font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 700; }
.driver-session-banner strong { font-size: 1.15em; }
.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-stage-dropoff .driver-hero { grid-template-rows: auto auto auto; min-height: auto; }
.driver-stage-dropoff .driver-hero-above { min-height: 0; align-content: start; width: min(100%, 720px); }
.driver-stage-dropoff .driver-hero-action { min-height: auto; }
.driver-stage-dropoff .ride-action { width: min(50vw, 340px); min-height: 0; font-size: clamp(3.2rem, 9vw, 5.2rem); }
.driver-stage-dropoff .amount-keypad { width: min(100%, 640px); gap: 12px; }
.driver-stage-dropoff .driver-fare-row { width: min(100%, 640px); }
.driver-stage-dropoff .driver-fare-row .fare-input { min-height: 72px; font-size: clamp(2rem, 6vw, 3.4rem); }
.driver-stage-dropoff .amount-keypad-grid { gap: 10px; }
.driver-stage-dropoff .amount-key { min-height: 68px; border-radius: 16px; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.driver-stage-dropoff .amount-key-action { font-size: clamp(.95rem, 2.6vw, 1.2rem); line-height: 1.2; padding: 0 6px; }
.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(52vw, 420px); 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(3.2rem, 9vw, 6rem); 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(180px, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.payment-brand-card { display: grid; grid-template-rows: minmax(96px, 1fr) auto; gap: 12px; justify-items: center; align-content: center; min-height: 168px; padding: 16px 14px; 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: 100%; max-width: 220px; height: 110px; object-fit: contain; display: block; background: #fff; border-radius: 10px; border: 1px solid #e6ece9; padding: 8px; box-sizing: border-box; }
.payment-brand-card strong { font-size: 1.05rem; line-height: 1.3; text-align: center; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.payment-brand-mark { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: #287562; font-size: 1.6rem; 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; }
.payment-description { margin: 0 0 18px; color: var(--muted); font-size: .95rem; line-height: 1.55; font-weight: 700; text-align: center; }
.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; caret-color: transparent; }
.fare-input.is-keypad-active { border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(38, 125, 104, .18); background: #f7fcf9; }
.amount-keypad { width: min(100%, 560px); display: grid; gap: 12px; justify-items: center; }
.amount-keypad-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amount-key { min-height: 64px; padding: 0; color: var(--forest-950); background: #fff; border: 2px solid #c7ddd4; border-radius: 16px; box-shadow: 0 4px 0 #d5e6df; font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; }
.amount-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #d5e6df; }
.amount-key-action { color: #355247; background: #eef5f1; font-size: clamp(.95rem, 2.8vw, 1.15rem); font-weight: 800; line-height: 1.25; padding: 0 8px; letter-spacing: .02em; }
.payment-amount-keypad { width: min(100%, 640px); margin: 0 auto 20px; }
.payment-amount-fields { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.amount-keypad-field { width: 100%; display: grid; gap: 6px; text-align: left; }
.amount-keypad-field > span { color: var(--muted); font-size: .85rem; font-weight: 800; }
.amount-keypad-field .driver-fare-row { width: 100%; }
.amount-keypad-field .fare-input { min-height: 72px; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.amount-keypad-hint { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 700; text-align: center; }
.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: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.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 {
  width: 100%;
  max-width: none;
  flex: none;
  min-height: 72px;
  margin: 0;
  padding: 14px 18px;
  background: #eff8f3;
  border: 1px solid #b7dcc7;
  border-radius: 14px;
  box-shadow: 0 4px 0 #d7eadf;
}
.ticket-total span { display: grid; gap: 3px; min-width: 0; }
.ticket-total span small { color: var(--forest-700); font-size: .72rem; font-weight: 700; }
.ticket-total strong { font-size: 2rem; white-space: nowrap; }
.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); 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; }
.master-panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.settings-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.settings-choice-card { display: grid; gap: 8px; min-height: 138px; padding: 20px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 8px rgba(24, 56, 43, .05); }
.settings-choice-card:hover { background: var(--forest-50); border-color: var(--forest-200); }
.settings-choice-card strong { font-size: 1rem; }
.settings-choice-card span { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.settings-choice-card small { color: var(--forest-800); font-weight: 800; }
.master-grid.settings-detail-grid { grid-template-columns: minmax(0, 1fr); }
.lender-master-fields .field { min-width: 0; }
.import-checkbox { align-content: start; }
.field.import-checkbox label { display: flex; flex-direction: row; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.field.import-checkbox input[type="checkbox"] { flex: 0 0 24px; width: 24px; min-width: 24px; max-width: 24px; height: 24px; min-height: 24px; max-height: 24px; padding: 0; margin: 0; accent-color: var(--forest-600); cursor: pointer; }
.import-checkbox small { display: block; margin-top: 6px; color: var(--muted); }
.import-errors { margin-top: 16px; padding: 12px 14px; color: #8b2520; background: #fff2f0; border: 1px solid #f1c5bf; border-radius: 10px; }
.import-errors p { margin: 6px 0 0; font-size: .85rem; }
.lender-import-rows { max-height: 300px; margin-top: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.lender-import-rows table { min-width: 1160px; }
#commit-unpaid-customer-import[hidden] { display: none !important; }
.lender-import-rows table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.lender-import-rows th, .lender-import-rows td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lender-import-rows th { position: sticky; top: 0; background: var(--forest-50); }
.lender-picker { display: grid; gap: 14px; width: 100%; min-width: 0; max-width: 760px; margin: 0 auto; container-type: inline-size; }
.driver-page .lender-picker > .payment-question { font-size: clamp(.85rem, 6.8cqi, 3.6rem) !important; line-height: 1.35; white-space: nowrap; margin-bottom: 14px; }
.lender-picker > .lender-results { min-width: 0; max-height: min(50dvh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
.lender-picker-toolbar { display: grid; gap: 12px; }
.lender-search-bar { margin: 0; }
.lender-picker-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lender-selected-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--forest-50);
  border: 1px solid rgba(40,117,98,.18);
  border-radius: 14px;
}
.lender-selected-banner span {
  color: var(--forest-800);
  font-size: .72rem;
  font-weight: 900;
}
.lender-selected-banner strong { font-size: 1rem; }
.lender-choice-group { display: grid; gap: 8px; }
.lender-choice-group > header {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.lender-choice-list { display: grid; gap: 8px; }
.lender-choice {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 2px solid #cfd6d1;
  border-radius: 16px;
  cursor: pointer;
}
.lender-choice-main { display: grid; gap: 4px; min-width: 0; }
.lender-choice-main strong { font-size: 1.05rem; line-height: 1.3; }
.lender-choice-main small { color: var(--muted); font-size: .8rem; }
.lender-choice-state {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}
.lender-choice.is-selected {
  background: #f3faf6;
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(40,117,98,.12);
}
.lender-choice.is-selected .lender-choice-state { color: var(--forest-800); }
.lender-picker .lender-picker-footer { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; padding-top: 12px; background: var(--bg); }
.duty-calendar-mode { margin-bottom: 12px; }
.duty-agenda { display: grid; gap: 10px; padding: 0 16px 16px; }
.duty-agenda-day {
  border: 1px solid rgba(23,32,29,.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.duty-agenda-day > header button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  background: #f7f8f5;
  border: 0;
  cursor: pointer;
}
.duty-agenda-day.today > header button { background: #fff5dc; }
.duty-agenda-day.is-selected > header button { box-shadow: inset 4px 0 0 var(--amber); }
.duty-agenda-list { display: grid; gap: 0; }
.duty-agenda-item {
  display: grid;
  grid-template-columns: minmax(100px, .9fr) minmax(100px, 1fr) 88px minmax(140px, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid #e8ece8;
}
.duty-agenda-item em { font-style: normal; color: var(--forest-800); font-weight: 800; }
.duty-agenda-item small { color: var(--muted); }

.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; }
.lender-master-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr); gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lender-master-filters label { display: grid; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.lender-master-filters input, .lender-master-filters select { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: .76rem; }
#lender-master-filter-count { grid-column: 1 / -1; color: var(--muted); font-size: .68rem; }
@media (max-width: 600px) { .lender-master-filters { grid-template-columns: 1fr; } }
.lender-bulk-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 16px; background: #f3f8f5; border-bottom: 1px solid var(--line); }
.lender-bulk-all { display: flex; gap: 8px; align-items: center; min-height: 44px; font-size: .72rem; cursor: pointer; }
.lender-row-selection { display: flex; align-items: center; justify-content: center; min-height: 44px; cursor: pointer; }
.lender-row-selection input[type="checkbox"], .lender-bulk-all input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; padding: 0; margin: 0; accent-color: var(--forest-600); }
.lender-bulk-target { display: grid; gap: 4px; flex: 1 1 180px; min-width: 0; font-size: .68rem; }
.lender-bulk-target select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: .72rem; }
#lender-bulk-count { font-size: .68rem; }
.lender-bulk-controls > small { flex-basis: 100%; color: var(--muted); font-size: .62rem; }
.lender-master-row:has([data-lender-selected]:checked) { background: #edf7f1; }
.lender-master-row[hidden] { display: none !important; }
.master-row.lender-master-row { grid-template-columns: 44px minmax(0,1fr) minmax(130px, 190px) auto; padding: 0; gap: 0; align-items: stretch; }
.lender-master-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; min-height: 76px; width: 100%; padding: 13px 16px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.lender-master-content:hover { background: var(--forest-50, #f1f7f4); }
.lender-master-content:focus-visible { outline: 3px solid var(--forest-600); outline-offset: -3px; }
.lender-master-group { min-width: 0; align-self: center; padding: 8px 0; }
.lender-master-group > span { margin: 0 0 4px; }
.lender-master-group select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: .72rem; }
@media (max-width: 600px) {
  .master-row.lender-master-row { grid-template-columns: 44px minmax(0,1fr) auto; }
  .lender-master-content { grid-column: 2 / -1; }
  .lender-row-selection { grid-column: 1; grid-row: 1; }
  .lender-master-group { grid-column: 2; }
  .lender-master-group { padding: 0 0 12px 16px; }
}
.lender-master-row > .master-actions { justify-content: center; padding: 8px 12px; }
.lender-master-row .master-actions > button { min-width: 44px; min-height: 44px; }
.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-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.report-trail { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; margin-bottom: 0; padding: 0 6px; color: var(--muted); font-size: .75rem; font-weight: 700; overflow-x: auto; white-space: nowrap; flex: 1; }
.report-trail a { color: var(--forest-700); text-decoration: none; }
.report-trail-separator { color: #aab0ab; }
.report-trail-back { flex-shrink: 0; }
.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: 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); }
.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 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-fit-frame:has(details.report-history[open]) { overflow: visible; }
.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 col { width: calc(100% / 11); }
.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-print-value { display: none; }
.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-memo-row td { height: auto !important; padding: 4px 8px !important; color: #355247; background: #f7faf8; font-size: 9px !important; text-align: left; vertical-align: middle; }
.report-memo-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; width: 100%; }
.report-memo-bar.is-readonly { grid-template-columns: minmax(0, 1fr); }
.report-memo-field { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 28px; padding: 3px 6px; background: #fff; border: 1px solid #c5d7cf; border-radius: 6px; }
.report-memo-chips { display: contents; }
.report-memo-input { flex: 1 1 120px; min-width: 80px; min-height: 22px; padding: 2px 4px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 10px; text-align: left; }
.legacy-report-editing .report-memo-input { text-align: left; }
.report-memo-text { font-size: 10px; line-height: 1.35; text-align: left; }
.report-memo-tag-button { min-height: 28px; padding: 0 10px; color: #1f5d4d; background: #fff; border: 1px solid #b7d5c8; border-radius: 6px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.report-memo-tag-button:hover { background: #edf6f0; }
.report-info-tag { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; color: #1d4f42; background: #e5f3ec; border: 1px solid #b7d8c7; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.4; }
.report-info-tag.is-auto { color: #fff; background: #287562; border-color: #287562; }
.report-info-tag.is-custom { background: #fff8e8; border-color: #e0c788; color: #6d5316; }
.report-info-tag button, button.report-info-tag { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; line-height: 1.4; }
button.report-info-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; background: #e5f3ec; border: 1px solid #b7d8c7; border-radius: 999px; }
button.report-info-tag.is-auto { color: #fff; background: #287562; border-color: #287562; }
button.report-info-tag.is-custom { background: #fff8e8; border-color: #e0c788; color: #6d5316; }
button.report-info-tag span { opacity: .75; font-size: 10px; }
.amount-keypad-field.is-locked { opacity: .55; pointer-events: none; }
.report-tag-modal { display: grid; gap: 16px; }
.report-tag-composer { display: grid; gap: 8px; padding: 12px; background: #f4f8f6; border: 1px solid #cfe0d8; border-radius: 12px; }
.report-tag-selected { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.report-tag-empty { color: #6d857b; font-size: 12px; font-weight: 700; }
.report-tag-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 800; line-height: 1.2; }
.report-tag-chip.is-auto { color: #fff; background: #287562; border: 1px solid #287562; }
.report-tag-chip.is-custom { color: #6d5316; background: #fff8e8; border: 1px solid #e0c788; cursor: pointer; }
.report-tag-chip.is-custom span { opacity: .7; font-size: 15px; }
.report-tag-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.report-tag-input-row input { min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #c5d7cf; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.report-tag-input-row .button { min-height: 44px; padding: 0 16px; }
.report-tag-accordion { display: grid; gap: 8px; }
.report-tag-acc { background: #fff; border: 1px solid #cfe0d8; border-radius: 12px; overflow: hidden; }
.report-tag-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; color: #1f5d4d; font-size: 14px; font-weight: 900; cursor: pointer; list-style: none; background: #f7faf8; }
.report-tag-acc > summary::-webkit-details-marker { display: none; }
.report-tag-acc > summary::after { content: '▸'; color: #6d857b; font-size: 12px; transition: transform .15s ease; }
.report-tag-acc[open] > summary::after { transform: rotate(90deg); }
.report-tag-acc > summary em { min-width: 22px; padding: 2px 7px; color: #fff; background: #287562; border-radius: 999px; font-style: normal; font-size: 11px; text-align: center; }
.report-tag-acc .report-tag-picks { padding: 10px 12px 12px; }
.report-tag-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.report-tag-pick { display: grid; place-items: center; gap: 2px; min-height: 48px; padding: 8px 10px; color: #355247; background: #fff; border: 1.5px solid #c5d7cf; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-align: center; }
.report-tag-pick small { color: #6d857b; font-size: 10px; font-weight: 700; }
.report-tag-pick.is-on { color: #fff; background: #287562; border-color: #287562; }
.report-tag-pick.is-on small { color: rgba(255,255,255,.85); }
.report-tag-pick.is-locked { opacity: .72; cursor: default; }
.report-tag-pick:not(.is-locked):active { transform: scale(.98); }
.report-info-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 28px; }
.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 { position: relative; font-weight: 700; }
@media screen { .legacy-report-editing { padding-right: 38px; } }
.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: 24px; height: 24px; right: -30px; 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 { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 10px; color: #53615d; cursor: pointer; font-size: 8px; font-weight: 800; list-style: none; }
.report-history summary::-webkit-details-marker { display: none; }
.report-history summary span { padding: 2px 6px; color: #6e501b; background: #f8e9c8; border-radius: 999px; }
.report-history-list { display: grid; gap: 6px; max-height: min(48vh, 360px); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 9px 9px; touch-action: pan-y; }
.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-history-tags, .report-history-memo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.report-history-tags > span, .report-history-memo > span { color: #6d7f78; font-size: 7px; font-weight: 900; }
.report-history-tags .report-info-tag { font-size: 8px; }
.report-history-tags .muted { color: #8a9691; font-style: normal; font-size: 8px; font-weight: 700; }
.report-history-memo { white-space: pre-wrap; }
.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,
.modal-calendar-picker > header .icon-button.nav-chevron { color: #fff; background: rgba(255,255,255,.1); border-color: transparent; }
.modal-calendar-picker > header .icon-button.nav-chevron:hover { background: rgba(255,255,255,.18); }
.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,
.month-calendar > header .icon-button.nav-chevron { color: #fff; background: rgba(255,255,255,.1); border-color: transparent; }
.month-calendar > header .icon-button.nav-chevron:hover { background: rgba(255,255,255,.18); }
.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: auto; min-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); overflow: visible; }
.calendar-focus-board .fullscreen-calendar-toolbar { flex: 0 0 auto; }
.calendar-focus-board .fullscreen-calendar-scroll { min-height: 0; flex: none; overflow: visible; height: auto; }
.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: none; overflow: visible; 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: none; overflow: visible; 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; }
.lender-import-summary { grid-template-columns: repeat(5, minmax(0,1fr)); }
.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 (min-width: 700px) {
  /* サイドメニュー・トップバーも見やすく */
  .sidebar {
    width: 280px;
    padding: 28px 18px 22px;
  }
  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .sidebar-brand strong {
    font-size: 1.7rem;
  }
  .sidebar-brand span {
    margin-top: 8px;
    font-size: 1.05rem;
  }
  .main-nav {
    gap: 8px;
    padding: 28px 0;
  }
  .main-nav a {
    gap: 14px;
    min-height: 58px;
    padding: 0 15px;
    font-size: 1.18rem;
    border-radius: 13px;
  }
  .main-nav svg {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 1.35rem;
  }
  .live-indicator {
    font-size: .9rem;
    padding: 14px;
  }
  .account-button {
    min-height: 58px;
    padding: 14px;
    font-size: 1.05rem;
  }
  .topbar {
    height: 80px;
  }
  .breadcrumb {
    font-size: 1.15rem;
  }
  .topbar-meta {
    font-size: .95rem;
  }
  .operator-badge {
    padding: 10px 14px;
    font-size: 1rem;
  }

  /* 全画面共通：タブレットで本文・カード・表を大きく（メニュー並み） */
  .button {
    min-height: 58px;
    padding: 14px 20px;
    font-size: 1.22rem;
  }
  .button-large {
    min-height: 76px;
    font-size: 1.4rem;
  }
  .button-small {
    min-height: 46px;
    padding: 10px 16px;
    font-size: 1.05rem;
  }
  .page-head h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.5rem);
  }
  .page-head p {
    font-size: 1.35rem;
    line-height: 1.75;
  }
  .page-actions .button {
    min-height: 60px;
    font-size: 1.22rem;
  }
  .eyebrow {
    font-size: 1.05rem;
  }
  .field label,
  .login-card label {
    font-size: 1.2rem;
  }
  .field input,
  .field select,
  .field textarea,
  .date-control {
    min-height: 58px;
    font-size: 1.28rem;
  }
  .panel-head h2,
  .panel-head h3 {
    font-size: 1.55rem;
  }
  .panel-head span,
  .panel-head small {
    font-size: 1.15rem;
  }
  .status-chip {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 1.05rem;
  }
  .metric-card {
    min-height: 180px;
    padding: 28px;
  }
  .metric-card span {
    font-size: 1.2rem;
  }
  .metric-card strong {
    font-size: 3.5rem;
  }
  .metric-card small {
    font-size: 1.1rem;
  }
  .schedule-item {
    padding: 20px;
  }
  .schedule-time {
    font-size: 1.7rem;
  }
  .schedule-detail {
    font-size: 1.25rem;
    line-height: 1.55;
  }
  .quick-link {
    padding: 20px;
  }
  .quick-link strong {
    font-size: 1.35rem;
  }
  .quick-link span {
    font-size: 1.1rem;
  }
  .ticket-usage-head p,
  .ticket-usage-finance-heading span,
  .ticket-usage-summary span,
  .ticket-usage-item > span {
    font-size: 1.2rem;
  }
  .ticket-usage-finance-heading strong {
    font-size: 1.5rem;
  }
  .ticket-usage-finance-item > span {
    font-size: 1.2rem;
  }
  .ticket-usage-finance-item strong {
    font-size: 2rem;
  }
  .ticket-usage-finance-item small {
    font-size: 1.05rem;
  }
  .ticket-usage-summary strong {
    font-size: 2.35rem;
  }
  .ticket-usage-item strong {
    font-size: 1.3rem;
  }
  .ticket-usage-item b {
    font-size: 1.25rem;
  }
  .ticket-usage-type {
    min-width: 80px;
    padding: 7px 10px;
    font-size: .95rem !important;
  }
  .ticket-usage-range .button {
    min-height: 54px;
    font-size: 1.2rem;
  }
  .customer-card-details span,
  .customer-card .customer-code {
    font-size: 1.2rem;
  }
  .selected-customer p {
    font-size: 1.15rem;
  }
  .operator-affiliation-label {
    font-size: 1.3rem;
  }
  .operator-affiliation-button {
    min-height: 72px;
    font-size: 1.22rem;
  }
  .operator-select-label {
    font-size: 1.15rem !important;
  }
  .segmented button {
    min-height: 54px;
    font-size: 1.2rem;
  }
  .calendar-header > div {
    padding: 18px;
    font-size: 1.1rem;
  }
  .time-label {
    font-size: 1.1rem;
    padding: 12px 14px;
  }
  .calendar-event {
    min-height: 76px;
    padding: 12px 14px;
    font-size: 1.05rem;
    line-height: 1.4;
  }
  .calendar-overflow {
    font-size: 1rem;
  }
  .data-table th {
    padding: 16px 18px;
    font-size: 1.05rem;
  }
  .data-table td {
    padding: 18px;
    font-size: 1.18rem;
  }
  .dispatch-board .dispatch-head {
    min-height: 72px;
    font-size: 1.1rem;
  }
  .dispatch-time {
    font-size: 1.1rem;
  }
  .dispatch-card strong {
    font-size: 1.22rem;
  }
  .dispatch-card span {
    font-size: 1.1rem;
  }
  .reception-launch-card {
    min-height: 180px;
    padding: 28px;
  }
  .reception-launch-copy small {
    font-size: 1.05rem;
  }
  .reception-launch-copy strong {
    font-size: 1.85rem;
  }
  .reception-launch-copy span {
    font-size: 1.25rem;
  }
  .reception-launch-icon {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
  }
  .reception-switcher a {
    min-height: 64px;
    font-size: 1.2rem;
  }
  .report-folder,
  .report-file {
    min-height: 148px;
    padding: 26px;
  }
  .report-folder strong,
  .report-file strong {
    font-size: 1.55rem;
  }
  .report-folder small,
  .report-file span,
  .report-file small {
    font-size: 1.2rem;
  }
  .report-archive-head strong {
    font-size: 3.4rem;
  }
  .report-archive-head span {
    font-size: 1.05rem;
  }
  .report-archive-head small,
  .report-archive-head p {
    font-size: 1.25rem;
  }
  .report-trail,
  .report-trail a,
  .report-trail span {
    font-size: 1.25rem;
  }
  .master-row strong {
    font-size: 1.3rem;
  }
  .master-row span {
    font-size: 1.1rem;
  }
  .master-count {
    font-size: 1.05rem;
  }
  .settings-api-form small,
  .settings-rule-grid small,
  .warning-box,
  .empty-state span {
    font-size: 1.25rem;
  }
  .empty-state strong {
    font-size: 1.55rem;
  }
  .modal-head h2 {
    font-size: 1.75rem;
  }
  .modal-body,
  .modal-body p,
  .form-grid .field label {
    font-size: 1.25rem;
  }
  .toast {
    font-size: 1.25rem;
  }
  .summary-strip strong {
    font-size: 2rem;
  }
  .summary-strip span {
    font-size: 1.2rem;
  }
  .daily-report-meta,
  .daily-report-summary {
    font-size: 1.2rem;
  }
  .inline-edit-message strong,
  .inline-edit-message span {
    font-size: 1.2rem;
  }
  .report-screen-actions .button {
    min-height: 58px;
    font-size: 1.2rem;
  }
  .month-calendar header,
  .fullscreen-calendar-toolbar {
    font-size: 1.25rem;
  }
  .accessibility-service-month h4,
  .calendar-directory-card strong {
    font-size: 1.45rem;
  }
  .calendar-directory-card span,
  .calendar-directory-card small,
  .calendar-directory-card p {
    font-size: 1.2rem;
  }
  .calendar-directory-card h2 {
    font-size: 1.7rem;
  }

  /* 乗降記録：画面幅いっぱいに使い、余白を削る */
  #main-content:has(.driver-page) {
    max-width: none;
    padding: 12px 18px 20px;
  }
  .driver-page {
    min-height: calc(100vh - 88px);
  }
  .driver-stage {
    max-width: none;
    width: 100%;
    gap: 14px;
    padding: 6px 8px 16px;
    min-height: calc(100vh - 100px);
  }
  .driver-topbar {
    width: 100%;
    gap: 12px;
  }
  .driver-meta-prominent {
    justify-content: flex-end;
    gap: 12px;
  }
  .driver-hero {
    gap: 16px;
    min-height: min(72vh, 780px);
    padding: 4px 0 8px;
    align-content: stretch;
  }
  .driver-hero-above {
    width: min(100%, 980px);
  }
  .driver-hero-above:empty {
    display: none;
    min-height: 0;
    visibility: visible;
  }
  .driver-hero-below,
  .driver-fee-panel {
    width: min(100%, 1040px);
  }
  .driver-service-options,
  .driver-pickup-toggle {
    width: min(96%, 980px);
    margin-left: auto;
    margin-right: auto;
  }
  .driver-fare-row,
  .amount-keypad {
    width: min(100%, 820px);
  }
  .amount-key {
    min-height: 104px;
    font-size: clamp(2.5rem, 4.5vw, 3.4rem);
  }
  .driver-dropoff-side {
    width: min(100%, 780px);
    gap: 18px;
  }
  .driver-stage-dropoff .ride-action {
    width: min(44vw, 460px);
    font-size: clamp(4.2rem, 8.5vw, 6.8rem);
  }
  .driver-stage-dropoff .driver-hero-above,
  .driver-stage-dropoff .amount-keypad,
  .driver-stage-dropoff .driver-fare-row {
    width: min(100%, 840px);
  }
  .driver-stage-dropoff .amount-key {
    min-height: 98px;
    font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  }
  .ride-action {
    width: min(56vw, 560px);
    font-size: clamp(4.6rem, 9.5vw, 7.6rem);
  }
  .driver-stage-pickup .driver-hero {
    grid-template-rows: minmax(min(50vw, 500px), auto) auto;
    min-height: min(80vh, 900px);
    gap: 22px;
  }
  .driver-stage-pickup .driver-hero-action {
    min-height: min(50vw, 500px);
  }
  .driver-stage-pickup .ride-action {
    width: min(56vw, 560px);
    font-size: clamp(4.8rem, 10vw, 7.8rem);
  }
  .driver-stage-pickup .driver-hero-below,
  .driver-stage-pickup .driver-fee-panel {
    width: min(100%, 1100px);
  }
  .driver-stage-pickup .driver-fee-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
  }
  .driver-stage-pickup .driver-fee-chip {
    min-height: 100px;
    padding: 18px 20px;
    justify-content: center;
    border-radius: 18px;
    border-width: 3px;
  }
  .driver-stage-pickup .driver-fee-chip strong {
    font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  }
  .driver-stage-pickup .driver-fee-chip span {
    font-size: 1.45rem;
  }
  .driver-stage-pickup .driver-mode-row {
    width: 100%;
    padding: 18px 20px;
    gap: 14px;
    border-radius: 18px;
  }
  .driver-stage-pickup .driver-mode-row > span {
    font-size: 1.55rem;
  }
  .driver-stage-pickup .driver-mode-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
  }
  .driver-stage-pickup .driver-mode-chips .driver-fee-chip {
    min-height: 88px;
    width: 100%;
  }
  .driver-meta-prominent .driver-meta-vehicle,
  .driver-meta-prominent .driver-meta-name {
    font-size: clamp(1.75rem, 3.4vw, 2.45rem);
    padding: 16px 26px;
  }
  .driver-stage-choice {
    max-width: min(1280px, 100%);
  }
  .driver-stage-choice h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  }
  .driver-stage-choice > p {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  }
  .driver-affiliation-group > p {
    font-size: 1.2rem;
  }
  .vehicle-grid,
  .driver-grid {
    gap: 22px;
    margin-top: 24px;
  }
  .vehicle-button,
  .driver-button {
    min-height: 148px;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    border-radius: 18px;
  }
  .driver-secondary-actions {
    width: 100%;
    max-width: 1100px;
    gap: 18px;
    margin-top: 6px;
  }
  .driver-secondary-actions .switch-button,
  .driver-secondary-actions .shift-end-button {
    flex: 1;
    min-height: 88px;
    min-width: 0;
    font-size: 1.7rem;
    padding: 0 22px;
    border-radius: 16px;
  }
  .switch-button,
  .shift-end-button {
    min-height: 76px;
    min-width: 240px;
    font-size: 1.55rem;
    padding: 0 20px;
  }
  .charter-box-button {
    min-height: 92px;
    font-size: 2.1rem;
  }
  .driver-fee-chip {
    min-height: 76px;
    padding: 14px 20px;
  }
  .driver-service-option {
    padding: 22px 24px;
  }
  .driver-service-option strong {
    font-size: 1.75rem;
  }
  .payment-layout {
    max-width: none;
    width: min(100%, 1180px);
  }
  .payment-amount-keypad {
    width: min(100%, 920px);
  }
  .mistake-button {
    min-height: 76px;
    padding: 0 26px;
    font-size: 1.55rem;
    border-radius: 14px;
  }

  /* タブレット：乗降記録フローの文字をさらに大きく */
  .driver-page .driver-stage h1,
  .driver-page .driver-hero-above h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  }
  .driver-page .driver-stage > p,
  .driver-page .driver-stage-choice > p,
  .driver-page .driver-session-banner {
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  }
  .driver-page .driver-meta span,
  .driver-page .driver-location-status {
    font-size: 1.5rem;
    padding: 12px 18px;
  }
  .driver-page .driver-meta-prominent .driver-meta-vehicle,
  .driver-page .driver-meta-prominent .driver-meta-name {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .driver-page .driver-affiliation-group > p {
    font-size: 1.4rem;
  }
  .driver-page .vehicle-button,
  .driver-page .driver-button {
    font-size: clamp(2.3rem, 3.8vw, 3.5rem);
  }
  .driver-page .driver-fee-chip strong {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
  }
  .driver-page .driver-fee-chip span,
  .driver-page .driver-mode-row > span,
  .driver-page .driver-service-option small,
  .driver-page .driver-pickup-toggle small,
  .driver-page .driver-stretcher-mode-label small,
  .driver-page .driver-reservation-field label {
    font-size: 1.45rem;
  }
  .driver-page .driver-service-option strong,
  .driver-page .driver-pickup-toggle strong,
  .driver-page .driver-pickup-toggle span,
  .driver-page .driver-stretcher-mode-label strong {
    font-size: clamp(1.7rem, 2.9vw, 2.15rem);
  }
  .driver-page .charter-box-button {
    font-size: 2.15rem;
  }
  .driver-page .switch-button,
  .driver-page .shift-end-button,
  .driver-page .mistake-button {
    font-size: 1.6rem;
  }
  .driver-page .driver-fare-row > span {
    font-size: clamp(2.15rem, 3.5vw, 2.9rem);
  }
  .driver-page .driver-fare-row .fare-input,
  .driver-page .fare-input {
    font-size: clamp(3.4rem, 6vw, 5.4rem);
  }
  .driver-page .amount-key:not(.amount-key-action) {
    font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  }
  .driver-page .amount-key-action {
    font-size: clamp(1.55rem, 2.7vw, 1.9rem);
  }
  .driver-page .amount-keypad-field > span,
  .driver-page .amount-keypad-hint,
  .driver-page .payment-description {
    font-size: 1.5rem;
  }
  .driver-page .payment-question {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
  }
  .driver-page .choice-button {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    min-height: 148px;
  }
  .driver-page .passenger-choice {
    font-size: 2.8rem;
    min-height: 112px;
  }
  .driver-page .passenger-choice small {
    font-size: 1.45rem;
  }
  .driver-page .wheelchair-assistance-choice {
    max-width: 960px;
    padding: 24px 26px;
  }
  .driver-page .wheelchair-assistance-choice strong {
    font-size: 1.75rem;
  }
  .driver-page .wheelchair-assistance-choice small {
    font-size: 1.4rem;
  }
  .driver-page .confirmation-row {
    font-size: 1.55rem;
    padding: 22px 26px;
  }
  .driver-page .button,
  .driver-page .button-large {
    font-size: 1.5rem;
    min-height: 76px;
  }
  .driver-page .payment-brand-card {
    min-height: 200px;
    gap: 14px;
  }
  .driver-page .payment-brand-logo {
    max-width: 260px;
    height: 130px;
  }
  .driver-page .payment-brand-card strong {
    font-size: 1.35rem;
  }
  .driver-page .ticket-choice-copy strong {
    font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  }
  .driver-page .ticket-choice-copy small,
  .driver-page .ticket-choice-copy span,
  .driver-page .ticket-choice-copy b {
    font-size: 1.4rem;
  }
  .driver-page .ticket-total strong,
  .driver-page .ticket-count {
    font-size: clamp(2.35rem, 3.5vw, 3rem);
  }
  .driver-page .ticket-total span,
  .driver-page .ticket-total span small {
    font-size: 1.35rem;
  }
  .driver-page .field label,
  .driver-page .eyebrow {
    font-size: 1.35rem;
  }
  .driver-page .passenger-choice-grid {
    max-width: 960px;
    gap: 16px;
  }
  .driver-page .driver-reservation-field {
    width: min(100%, 720px);
  }
  .driver-page .driver-reservation-field select {
    min-height: 64px;
    font-size: 1.45rem;
  }
}

@media (min-width: 900px) and (orientation: landscape) {
  .driver-stage-dropoff .driver-hero {
    width: 100%;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 32px;
    row-gap: 16px;
    min-height: auto;
  }
  .driver-stage-dropoff .driver-hero-above {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    align-content: center;
  }
  .driver-stage-dropoff .driver-hero-action {
    grid-column: 2;
    grid-row: 1;
    min-height: auto;
  }
  .driver-stage-dropoff .driver-hero-below {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }
  .driver-stage-dropoff .ride-action {
    width: min(100%, 360px);
    font-size: clamp(3.3rem, 6.5vw, 5.2rem);
  }
  .driver-stage-dropoff .driver-hero-above,
  .driver-stage-dropoff .amount-keypad,
  .driver-stage-dropoff .driver-fare-row {
    width: min(100%, 620px);
  }
  .driver-stage-dropoff .amount-key {
    min-height: 70px;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  }
  .driver-stage-dropoff .driver-dropoff-side {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .driver-stage-pickup .driver-hero {
    min-height: min(72vh, 760px);
    gap: 22px;
  }
  .driver-stage-pickup .ride-action {
    width: min(42vw, 420px);
  }
  .driver-stage-choice .vehicle-grid,
  .driver-stage-choice .driver-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .driver-stage-choice .vehicle-button,
  .driver-stage-choice .driver-button {
    min-height: 140px;
    font-size: clamp(1.8rem, 2.8vw, 2.9rem);
  }
  .driver-stage-pickup .driver-hero-below {
    width: min(100%, 880px);
  }
}

@media (max-width: 1100px) {
  .reception-launcher, .calendar-directory { grid-template-columns: 1fr; }
  .accessibility-workspace { grid-template-columns: 1fr; }
  .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: 320px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(8,27,23,.25); padding: 28px 18px 22px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-brand { padding: 4px 12px 28px; }
  .sidebar-brand strong { font-size: 1.55rem; }
  .sidebar-brand span { margin-top: 8px; font-size: 1rem; }
  .main-nav { gap: 8px; padding: 28px 0; }
  .main-nav a { gap: 14px; min-height: 64px; padding: 0 16px; font-size: 1.28rem; border-radius: 14px; }
  .main-nav svg { width: 1.45rem; height: 1.45rem; font-size: 1.45rem; }
  .live-indicator { font-size: .95rem; padding: 14px; }
  .live-indicator span { width: 10px; height: 10px; }
  .account-button { min-height: 64px; padding: 14px 16px; font-size: 1.1rem; border-radius: 14px; gap: 12px; }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(8, 27, 23, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .topbar { height: 72px; padding: 0 18px; }
  .breadcrumb { margin-right: auto; font-size: 1.2rem; }
  .topbar-meta { font-size: 1rem; gap: 14px; }
  .topbar-meta > #today-label { display: none; }
  .operator-badge { padding: 10px 14px; font-size: 1.05rem; gap: 8px; }
  .mobile-only.icon-button { width: 52px; height: 52px; }
  #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-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: 16px; }
  .vehicle-button, .driver-button { min-height: 120px; font-size: clamp(1.55rem, 5vw, 2.2rem); }
  .ride-action { width: min(62vw, 380px); font-size: clamp(3rem, 11vw, 5.4rem); }
  .driver-stage-dropoff .ride-action { width: min(50vw, 320px); font-size: clamp(2.8rem, 9.5vw, 4.5rem); }
  .driver-fee-panel, .driver-hero-below, .driver-dropoff-side { width: min(94vw, 720px); }
  .amount-keypad, .driver-fare-row, .driver-hero-above { width: min(94vw, 720px); }
  .driver-stage-dropoff .driver-hero-above,
  .driver-stage-dropoff .amount-keypad,
  .driver-stage-dropoff .driver-fare-row { width: min(94vw, 640px); }
  .driver-stage-dropoff .amount-key { min-height: 64px; font-size: clamp(1.55rem, 4.5vw, 2.1rem); }
  .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: visible; -webkit-overflow-scrolling: touch; }
  .report-history-list { max-height: min(56vh, 480px); }
  .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(66vw, 340px); aspect-ratio: 1; min-height: 0; margin: 0 auto; font-size: clamp(3rem, 13vw, 5rem); }
  .driver-stage-dropoff .driver-hero { min-height: auto; grid-template-rows: auto auto auto; }
  .driver-stage-dropoff .driver-hero-above { min-height: 0; width: min(92vw, 420px); }
  .driver-stage-dropoff .driver-hero-action { min-height: auto; }
  .driver-stage-dropoff .ride-action { width: min(54vw, 280px); font-size: clamp(2.6rem, 11vw, 4rem); }
  .driver-stage-dropoff .driver-hero-above { min-height: 0; width: min(92vw, 480px); }
  .driver-stage-dropoff .amount-keypad,
  .driver-stage-dropoff .driver-fare-row { width: min(92vw, 480px); }
  .driver-stage-dropoff .amount-key { min-height: 56px; font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .driver-stage-choice h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .driver-stage-choice > p { font-size: clamp(1rem, 3.5vw, 1.25rem); }
  .vehicle-button, .driver-button { min-height: 112px; font-size: clamp(1.5rem, 6vw, 2rem); }
  .amount-key { min-height: 56px; border-radius: 14px; }
  .amount-keypad-grid { gap: 8px; }
  .payment-amount-fields { grid-template-columns: 1fr; }
  .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 { 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 { 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(70vw, 320px); font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .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 (min-width: 700px) {
  :root {
    --type-min: 1.1rem;
    --type-caption: 1.15rem;
    --type-body: 1.25rem;
  }
  html {
    font-size: 19px;
  }

  /* 下限：ラベル・注釈・チップ類 */
  .eyebrow,
  .login-hint,
  .button-small,
  .sidebar-brand span,
  .live-indicator,
  .topbar-meta,
  .metric-card small,
  .ticket-usage-finance-item small,
  .ticket-usage-type,
  .status-chip,
  .quick-link span,
  .operator-affiliation-picker small,
  .operator-select-label,
  .segmented button,
  .calendar-header > div,
  .time-label,
  .calendar-overflow,
  .data-table th,
  .dispatch-board .dispatch-head,
  .dispatch-time,
  .dispatch-card span,
  .shift-recovery-box p,
  .ticket-total span small,
  .ticket-choice-image span,
  .ticket-choice-copy small,
  .ticket-quantity-control output span,
  .ticket-add span,
  .settings-api-form small,
  .settings-rule-grid small,
  .master-count,
  .master-row span,
  .ticket-master-image span,
  .ticket-image-field small,
  .ticket-image-preview span,
  .summary-strip span,
  .report-archive-head span,
  .report-folder small,
  .report-file small,
  .report-file span,
  .daily-report-title span,
  .daily-report-date small,
  .daily-report-meta span,
  .daily-report-summary span,
  .daily-report-summary small,
  .daily-report-footer,
  .report-table td,
  .inline-edit-message span,
  .inline-ticket-editor-row small,
  .report-edit-guide,
  .report-edit-row span,
  .report-edit-row small,
  .modal-fullscreen .fullscreen-hint,
  .customer-search-panel .field-hint,
  .location-preset-field small,
  .direct-entry-note strong,
  .direct-entry-note p,
  .date-picker-button span,
  .date-picker-button small,
  .modal-calendar-picker > header span,
  .picker-weekdays span,
  .modal-calendar-picker > footer span,
  .picker-time span,
  .large-date-picker > p,
  .calendar-fullscreen-button,
  .month-calendar > header span,
  .month-weekdays,
  .month-count,
  .month-day small,
  .month-day.fujishima.detailed > header span,
  .calendar-focus-switcher a,
  .calendar-display-switcher a,
  .calendar-display-switcher button,
  .fullscreen-display-switcher button,
  .fujishima-focus-event strong,
  .fujishima-focus-event span,
  .fujishima-focus-event p,
  .fujishima-focus-event b,
  .fullscreen-calendar-toolbar span,
  .fullscreen-weekdays span,
  .selected-customer p,
  .customer-card .customer-code,
  .customer-card-details span,
  .warning-box,
  .empty-state span,
  .toast,
  .calendar-directory-link span,
  .reception-launch-copy small,
  .ticket-usage-head p,
  .ticket-usage-finance-heading span,
  .ticket-usage-summary span,
  .ticket-usage-item > span {
    font-size: var(--type-min) !important;
  }

  /* 本文・二次テキストの下限 */
  .button,
  .page-head p,
  .field label,
  .login-card label,
  .panel-head span,
  .panel-head small,
  .metric-card span,
  .schedule-detail,
  .quick-link strong,
  .data-table td,
  .dispatch-card strong,
  .master-row strong,
  .modal-body,
  .modal-body p,
  .summary-strip strong,
  .report-trail,
  .report-trail a,
  .report-trail span,
  .daily-report-meta,
  .daily-report-summary,
  .inline-edit-message strong,
  .calendar-event,
  .calendar-directory-card p,
  .calendar-directory-card span,
  .calendar-directory-card small,
  .ticket-usage-item strong,
  .ticket-usage-item b,
  .ticket-choice-copy span,
  .confirmation-row,
  .confirmation-row span,
  .confirmation-row strong,
  .payment-description,
  .payment-brand-card strong,
  .section-heading h2,
  .passenger-choice small,
  .month-day > strong {
    font-size: var(--type-caption) !important;
  }

  .field input,
  .field select,
  .field textarea,
  .date-control,
  .search-bar input,
  .page-actions .button,
  .report-screen-actions .button,
  .ticket-usage-range .button,
  .reception-switcher a,
  .operator-affiliation-button,
  .segmented button {
    font-size: var(--type-body) !important;
  }

  .panel-head h2,
  .panel-head h3 {
    font-size: 1.55rem !important;
  }
  .page-head h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.5rem) !important;
  }
  .metric-card strong {
    font-size: 3.4rem !important;
  }
  .schedule-time {
    font-size: 1.7rem !important;
  }
  .reception-launch-copy strong {
    font-size: 1.85rem !important;
  }
  .reception-launch-copy span {
    font-size: 1.25rem !important;
  }
  .reception-launch-card {
    min-height: 180px;
    padding: 28px;
  }
  .modal-head h2 {
    font-size: 1.75rem !important;
  }
  .empty-state strong {
    font-size: 1.55rem !important;
  }
  .ticket-usage-finance-item strong,
  .ticket-usage-summary strong {
    font-size: 2rem !important;
  }
  .report-folder strong,
  .report-file strong {
    font-size: 1.55rem !important;
  }
  .calendar-directory-card h2 {
    font-size: 1.7rem !important;
  }
  .daily-report-detail h2 {
    font-size: 1.35rem !important;
  }

  /* カレンダーセル：極端に小さい文字を底上げ */
  .month-day {
    min-height: 110px;
    gap: 3px;
    padding: 6px;
  }
  .month-count {
    padding: 3px 5px;
    white-space: normal;
  }
  .fujishima-focus-event {
    min-height: 52px !important;
  }
  .fujishima-focus-event strong,
  .fujishima-focus-event p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .fujishima-focus-event b {
    width: 18px !important;
    height: 18px !important;
  }
  .calendar-event {
    min-height: 78px;
    padding: 12px 14px;
    line-height: 1.4;
  }

  /* 日報レガシー表（画面表示時の下限） */
  .legacy-form {
    font-size: 14px !important;
  }
  .legacy-top th,
  .legacy-top td {
    font-size: 15px !important;
    height: 40px;
  }
  .legacy-detail th {
    font-size: 13px !important;
    height: 34px;
  }
  .legacy-detail td {
    font-size: 13px !important;
    height: 32px;
    padding: 4px 6px;
  }
  .legacy-map-link {
    font-size: 12px !important;
    padding: 3px 7px;
  }
  .legacy-report-editing input {
    height: 34px;
    font-size: 13px !important;
  }
  .legacy-report-editing .legacy-amount-input {
    font-size: 14px !important;
  }
  .legacy-ticket-line,
  .legacy-ticket-edit-button,
  .legacy-ticket-discount-type,
  .legacy-wheelchair-assistance {
    font-size: 12px !important;
  }
  .legacy-payer-row td,
  .legacy-memo-row td {
    font-size: 13px !important;
  }
  .legacy-payer-row strong {
    font-size: 12px !important;
  }
  .report-memo-input,
  .report-memo-text,
  .report-memo-tag-button {
    font-size: 13px !important;
    min-height: 32px;
  }
  .report-info-tag,
  .report-info-tag button,
  button.report-info-tag {
    font-size: 13px !important;
    padding: 3px 8px;
  }
  button.report-info-tag span {
    font-size: 13px !important;
  }
  .legacy-validation-row [data-row-validation],
  .report-validation-summary {
    font-size: 12px !important;
  }
  .report-tag-pick small {
    font-size: 12px !important;
  }

  /* 乗降記録は専用の大きめ指定を優先（文字下限の !important より後で再適用） */
  .driver-page .driver-meta span,
  .driver-page .driver-location-status {
    font-size: 1.5rem !important;
    padding: 12px 18px;
  }
  .driver-page .driver-meta-prominent .driver-meta-vehicle,
  .driver-page .driver-meta-prominent .driver-meta-name {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
  }
  .driver-page .driver-fee-chip strong {
    font-size: clamp(1.7rem, 3vw, 2.2rem) !important;
  }
  .driver-page .driver-fee-chip span,
  .driver-page .driver-mode-row > span,
  .driver-page .driver-reservation-field label {
    font-size: 1.45rem !important;
  }
  .driver-page .driver-affiliation-group > p {
    font-size: 1.4rem !important;
  }
  .driver-page .amount-keypad-hint,
  .driver-page .amount-keypad-field > span,
  .driver-page .payment-description {
    font-size: 1.5rem !important;
  }
  .driver-page .switch-button,
  .driver-page .shift-end-button,
  .driver-page .mistake-button {
    font-size: 1.6rem !important;
  }
  .driver-page .button,
  .driver-page .button-large {
    font-size: 1.5rem !important;
    min-height: 76px;
  }
  .driver-page .payment-question {
    font-size: clamp(2.6rem, 4vw, 3.6rem) !important;
  }
  .driver-page .confirmation-row,
  .driver-page .confirmation-row span,
  .driver-page .confirmation-row strong {
    font-size: 1.45rem !important;
  }
  .driver-page .payment-brand-card strong {
    font-size: 1.35rem !important;
  }
  .driver-page .ticket-choice-copy strong {
    font-size: clamp(1.6rem, 2.6vw, 2.05rem) !important;
  }
  .driver-page .ticket-choice-copy small,
  .driver-page .ticket-choice-copy span,
  .driver-page .ticket-choice-copy b {
    font-size: 1.35rem !important;
  }
  .driver-page .passenger-choice {
    font-size: 2.8rem !important;
  }
  .driver-page .passenger-choice small {
    font-size: 1.45rem !important;
  }
}

@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; }
  body:has(.legacy-report) #modal-root,
  body:has(.legacy-report) #toast-root,
  body:has(.legacy-report) .screen-dim-overlay { display: none !important; }
  .report-workspace { display: block; overflow: visible; }
  #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.legacy-print-ready input:not([type="hidden"]),
  .legacy-report-editing.legacy-print-ready textarea,
  .legacy-report-editing.legacy-print-ready select { display: none !important; }
  .legacy-print-value { display: none; }
  .legacy-report-editing.legacy-print-ready .legacy-print-value {
    display: inline-block;
    width: 100%;
    min-height: 1em;
    color: #000;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .legacy-report-editing.legacy-print-ready .duty-time-parts { display: none; }
  .legacy-report-editing.legacy-print-ready .legacy-print-time { text-align: center; }
  .legacy-report-editing.legacy-print-ready .report-memo-input + .legacy-print-value {
    flex: 1 1 120px;
    text-align: left;
  }
  .legacy-report-editing .legacy-detail td,
  .legacy-report-editing tbody.is-valid .legacy-edit-line td,
  .legacy-report-editing tbody.has-error .legacy-edit-line td { color: #000 !important; background: #fff !important; box-shadow: none !important; }
  .legacy-report-editing .legacy-map-link,
  .legacy-report-editing .legacy-ticket-edit-button,
  .legacy-report-editing .legacy-row-delete,
  .legacy-report-editing .meter-adj-button,
  .legacy-report-editing .report-memo-tag-button,
  .legacy-report-editing .report-lender-photo-tag { display: none !important; }
  .legacy-report-editing #report-metrics-status,
  .legacy-report-editing .meter-adj-formula,
  .legacy-report-editing .meter-diff-warning { display: none !important; }
  .legacy-report-editing button.report-info-tag {
    display: inline !important;
    padding: 0;
    margin-right: 6px;
    color: #000;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit !important;
  }
  .legacy-report-editing button.report-info-tag > span { display: none; }
  .legacy-report-editing .report-memo-bar,
  .legacy-report-editing .report-memo-field,
  .legacy-report-editing .report-memo-chips {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .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-money th { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .legacy-detail { margin-top: 9px; }
  .legacy-detail th { height: 18px; font-size: 6.5pt; }
  .legacy-detail td { height: 17px; font-size: 7pt; }
  .legacy-detail thead { display: table-header-group; }
  .legacy-detail tbody { break-inside: avoid; page-break-inside: avoid; }
  .legacy-detail .legacy-address,
  .legacy-detail .legacy-ticket-line,
  .legacy-detail .report-memo-text { overflow-wrap: anywhere; word-break: break-word; }
  .legacy-detail .legacy-ticket-lines { gap: 1px; }
  .legacy-detail .legacy-ticket-line { padding: 1px 2px; color: #000; background: #fff; border: 0; font-size: 6pt; line-height: 1.15; }
  .legacy-detail .report-info-tag { color: #000; background: #fff; border-color: #777; }
  .legacy-memo-row td, .legacy-payer-row td { color: #000 !important; background: #fff !important; }
  .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; }
}

/* Meeting updates: ticket modal, break, lender photo, screen dim */
.modal.ticket-qty-host {
  display: flex;
  flex-direction: column;
  max-height: min(94vh, 920px);
  overflow: hidden;
}
.modal.ticket-qty-host .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 12px 16px 16px;
}
.ticket-qty-modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.ticket-qty-main {
  display: grid;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  align-content: start;
}
.ticket-qty-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.ticket-qty-image {
  width: 120px;
  height: 76px;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f3f6f4;
  border: 1px solid #d7e0db;
  border-radius: 12px;
}
.ticket-qty-image img { width: 100%; height: 100%; object-fit: contain; }
.ticket-qty-copy { display: grid; gap: 4px; min-width: 0; }
.ticket-qty-name { font-size: 1.15rem; line-height: 1.25; }
.ticket-qty-meta { color: var(--muted); font-weight: 700; font-size: .9rem; }
.ticket-qty-keypad { width: 100% !important; max-width: 100% !important; gap: 8px; }
.ticket-qty-keypad .amount-keypad-grid { gap: 8px; }
.ticket-qty-keypad .amount-key { min-height: 52px; font-size: clamp(1.25rem, 3.8vw, 1.7rem); }
.ticket-qty-add { width: 100%; min-height: 44px; }
.ticket-qty-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #d7e0db;
}
.ticket-qty-footer .ticket-total-bottom {
  margin: 0;
  padding: 10px 12px;
}
.ticket-qty-decide {
  width: 100%;
  min-height: 64px;
  font-size: 1.25rem;
  font-weight: 900;
}
@media (max-width: 720px) {
  .ticket-qty-hero { grid-template-columns: 96px minmax(0, 1fr); }
  .ticket-qty-image { width: 96px; height: 64px; }
  .ticket-qty-keypad .amount-key { min-height: 48px; }
  .ticket-qty-decide { min-height: 68px; }
}
.lender-photo-preview { display: grid; gap: 10px; justify-items: start; margin: 12px 0; }
.lender-photo-preview img { width: min(100%, 280px); max-height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid #d7e0db; }
.report-lender-photo { margin-top: 8px; }
.report-lender-photo img { width: min(220px, 40vw); max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid #c9d6d0; }
.driver-break-banner { margin: 0 0 12px; padding: 14px 16px; color: #7a3b00; background: #fff4e5; border: 1px solid #f0c98a; border-radius: 12px; font-weight: 800; text-align: center; }
.switch-button.is-break-active { color: #fff; background: #c45c12; border-color: #c45c12; }
.driver-break-form .form-grid { display: grid; gap: 12px; }
.screen-dim-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(0, 0, 0, .92); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.screen-dim-overlay.is-active { opacity: 1; pointer-events: auto; }
.screen-dim-overlay p { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; }


/* 2026-08-24 UX updates */
.ticket-confirm-top { margin: 12px 0 16px; }
.lender-confirm-top { margin: 8px 0 12px; }
.payment-amount-fields.is-single { grid-template-columns: 1fr; }
.amount-keypad-field-wide { width: 100%; }
.report-lender-photo-tag {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 4px 10px;
  border: 1px solid #8aa39a; border-radius: 999px; background: #eef5f1; color: #1f4d3f;
  font-size: .78rem; font-weight: 800; cursor: pointer;
}
.report-lender-photo-tag:disabled, .report-lender-photo-tag[readonly] { pointer-events: auto; }
.lender-photo-viewer { display: grid; place-items: center; }
.lender-photo-viewer img { max-width: min(100%, 520px); max-height: 70vh; border-radius: 12px; }
.offline-queue-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 12000;
  padding: 10px 14px; border-radius: 999px; background: #9a3412; color: #fff;
  font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.offline-queue-badge[hidden] { display: none !important; }
.shift-keypad-field.is-active { outline: 3px solid rgba(31,93,77,.35); border-color: #1f5d4d; }

/* 締め作業 UI */
.modal.shift-close-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
.modal.shift-close-modal .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding-bottom: 0;
}
.shift-close-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 0;
}
.shift-close-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 16px;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.shift-close-summary {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d5e2dc;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbf9 0%, #eef5f1 100%);
}
.shift-close-meter-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(23, 63, 53, .08);
}
.shift-close-meter-row span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.shift-close-meter-row strong {
  font-size: 1.45rem;
  color: #173f35;
  font-variant-numeric: tabular-nums;
}
.shift-close-summary > div:not(.closeout-finance-grid):not(.shift-close-meter-row):not(.closeout-remittance) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.shift-close-summary span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.shift-close-summary strong {
  font-size: 1.45rem;
  color: #173f35;
}
.shift-close-summary p {
  margin: 0;
  color: #4d635b;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.45;
}
.closeout-finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.closeout-finance-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(23, 32, 29, .08);
  box-shadow: 0 1px 0 rgba(23, 63, 53, .03);
}
.closeout-finance-card span {
  display: block;
  margin: 0;
  font-size: .68rem;
  line-height: 1.3;
  color: #5f736b;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.closeout-finance-card strong {
  display: block;
  margin: 0;
  font-size: clamp(.95rem, 2.8vw, 1.15rem);
  line-height: 1.25;
  color: #173f35;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.closeout-finance-card-wide {
  grid-column: 1 / -1;
}
.closeout-finance-card strong [data-closeout-summary] {
  display: inline;
  font: inherit;
  color: inherit;
}
.closeout-finance-card-wide strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: clamp(.9rem, 2.6vw, 1.05rem);
}
.closeout-finance-sep {
  color: #9aaca4 !important;
  font-weight: 700 !important;
  font-size: inherit !important;
  letter-spacing: 0 !important;
}
@media (max-width: 640px) {
  .closeout-finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .closeout-finance-card-wide {
    grid-column: 1 / -1;
  }
  .shift-close-summary {
    padding: 12px;
  }
}
@media (max-width: 420px) {
  .closeout-finance-grid {
    grid-template-columns: 1fr 1fr;
  }
  .closeout-finance-card {
    padding: 10px 8px;
  }
}
.shift-close-section {
  display: grid;
  gap: 10px;
}
.shift-close-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shift-close-section h3 {
  margin: 0;
  font-size: 1rem;
  color: #1c3d34;
}
.shift-close-section > header strong {
  color: #173f35;
  font-size: 1.15rem;
}
.shift-input-list,
.shift-denom-grid {
  display: grid;
  gap: 8px;
}
.shift-denom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shift-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1.5px solid #c9d6d0;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.shift-input-row:hover {
  border-color: #8fb0a4;
  background: #fbfefc;
}
.shift-input-row.is-active {
  border-color: #1f5d4d;
  background: #f3faf7;
  box-shadow: 0 0 0 3px rgba(31, 93, 77, .16);
}
.shift-input-label {
  color: #334841;
  font-size: .95rem;
  font-weight: 800;
}
.shift-input-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  justify-self: end;
}
.shift-input-value strong {
  min-width: 3.2em;
  color: #102820;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.shift-input-value small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.shift-close-footer {
  flex: 0 0 auto;
  z-index: 3;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #d7e0db;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.shift-amount-keypad,
.modal.shift-close-modal .shift-amount-keypad.payment-amount-keypad,
.driver-page .modal.shift-close-modal .shift-amount-keypad {
  position: static;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px;
  border: 1px solid #d5e2dc;
  border-radius: 16px;
  background: #f7faf8;
  box-shadow: none;
  justify-items: stretch;
  overflow: hidden;
}
.shift-amount-keypad.is-hidden { display: none; }
.shift-amount-keypad .amount-keypad-grid,
.shift-amount-keypad .amount-keypad-field,
.shift-amount-keypad .driver-fare-row,
.shift-amount-keypad .fare-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
.shift-amount-keypad .amount-keypad-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.shift-amount-keypad .amount-key,
.driver-page .modal.shift-close-modal .amount-key {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  box-sizing: border-box;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  padding: 0 4px;
}
.shift-amount-keypad .amount-key-action,
.driver-page .modal.shift-close-modal .amount-key-action {
  font-size: clamp(.72rem, 2.4vw, .9rem);
  line-height: 1.15;
  white-space: normal;
  padding: 0 4px;
}
.shift-amount-keypad .fare-input,
.driver-page .modal.shift-close-modal .fare-input {
  min-height: 56px;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}
.shift-keypad-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-bottom: 4px;
}
.shift-keypad-head [data-shift-active-label] {
  color: #173f35;
  font-size: 1rem;
  font-weight: 900;
}
.shift-keypad-hint {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.shift-keypad-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 10px;
  box-sizing: border-box;
}
.shift-keypad-actions .button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 68px;
  box-sizing: border-box;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  font-weight: 800;
  white-space: normal;
  line-height: 1.2;
  padding: 10px 8px;
}
.shift-close-form.is-keypad-open .shift-close-actions {
  display: none !important;
}
.shift-close-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.shift-close-actions .button {
  min-height: 52px;
}
@media (max-width: 720px) {
  .modal.shift-close-modal {
    max-height: 94vh;
  }
  .modal.shift-close-modal .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .shift-close-footer {
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .shift-denom-grid { grid-template-columns: 1fr; }
  .shift-input-value strong { font-size: 1.2rem; }
  .shift-keypad-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shift-keypad-actions .button {
    min-height: 72px;
  }
}


/* === 2026-09 feature UI === */
.topbar {
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(72px + env(safe-area-inset-top, 0px));
  height: auto;
  z-index: 40;
}
#menu-button.menu-toggle,
.menu-toggle.icon-button {
  position: relative;
  z-index: 50;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
}
.topbar-logout {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 1rem;
  gap: 8px;
}
.topbar-logout svg { width: 1.1rem; height: 1.1rem; }
.app-shell.role-driver .sidebar,
.app-shell.role-driver #sidebar-backdrop,
.app-shell.role-driver #menu-button { display: none !important; }
.app-shell.role-driver { grid-template-columns: minmax(0, 1fr); }
.is-hidden { display: none !important; }

.search-bar-emphasized input {
  min-height: 56px;
  border: 3px solid #3f5349;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(23,32,29,.06);
  font-size: 1.08rem;
}
.search-bar-emphasized svg { color: var(--forest-700); width: 1.25rem; height: 1.25rem; }
.search-bar-emphasized input:focus {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 4px rgba(40,117,98,.14);
}

.reception-entry-form .field input,
.reception-entry-form .field select,
.reception-entry-form .field textarea {
  min-height: 58px;
  border: 2px solid #8b968f;
  font-size: 1.05rem;
}
.reception-entry-form .field select { min-height: 64px; }
.reception-entry-form .field.is-missing input,
.reception-entry-form .field.is-missing select,
.reception-entry-form .field.is-missing textarea,
.field.is-missing input,
.field.is-missing select,
.field.is-missing textarea {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(176, 52, 52, .12);
  background: #fff7f7;
}
.field.is-missing > label { color: var(--red); }

.duty-view-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(23,32,29,.08);
  border-radius: 16px;
}
.duty-view-switcher a {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 11px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 900;
}
.duty-view-switcher a.active { color: #fff; background: var(--forest-700); }
.duty-assign-table { display: grid; gap: 10px; padding: 16px; overflow: visible; }
.duty-assign-head, .duty-assign-row {
  position: relative;
  z-index: 1;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(120px, .9fr) minmax(140px, 1.1fr) 88px minmax(120px, 1fr) 88px;
  gap: 10px;
  align-items: center;
}
.duty-assign-head { color: var(--muted); font-size: .75rem; font-weight: 800; }
.duty-driver-link {
  color: inherit;
  text-decoration: none;
}
.duty-driver-link strong {
  color: var(--forest-800);
  border-bottom: 1px dashed rgba(40,117,98,.35);
}
.duty-driver-link:hover strong { color: var(--forest-700); border-bottom-color: var(--forest-700); }
.duty-select { position: relative; min-width: 0; z-index: 1; }
.duty-select[data-open="1"] { z-index: 50; }
.duty-select-trigger {
  width: 100%;
  min-height: 52px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 2px solid #6f7f76;
  border-radius: 12px;
  cursor: pointer;
}
.duty-select-trigger strong { font-size: .92rem; }
.duty-select-trigger span { color: var(--muted); font-size: .68rem; font-weight: 700; }
.duty-select[data-open="1"] .duty-select-trigger {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(40,117,98,.14);
}
.duty-select-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(23,32,29,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(23,32,29,.16);
}
.duty-select-panel[hidden] {
  display: none !important;
}
.duty-select-option {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: #f7f8f5;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.duty-select-option strong { font-size: .86rem; }
.duty-select-option span { color: var(--muted); font-size: .66rem; }
.duty-select-option.is-selected,
.duty-select-option:hover { background: var(--forest-50); color: var(--forest-800); }
.duty-person-panel .panel-head { align-items: center; }
.duty-person-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 0;
}
.duty-person-list { display: grid; gap: 8px; padding: 16px; }
.duty-carry-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 10px;
  padding: 12px 14px;
  background: #eef5f1;
  border: 1px solid rgba(40, 117, 98, .18);
  border-radius: 12px;
}
.duty-carry-support.is-hidden { display: none; }
.duty-carry-support p {
  margin: 0;
  flex: 1 1 220px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
}
.duty-person-hint { margin: 0 16px 8px; }
.duty-person-day {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  padding: 12px 14px;
  background: #f7f8f5;
  border: 1px solid rgba(23,32,29,.06);
  border-radius: 14px;
}
.duty-person-day-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 0 0 52px;
  min-height: 52px;
}
.duty-person-day-label strong { font-size: 1rem; line-height: 1.1; }
.duty-person-day-label span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.duty-person-day-shift {
  flex: 1 1 220px;
  min-width: 180px;
}
.duty-person-day-times {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
.duty-time-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 7.5rem;
}
.duty-time-field > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}
.duty-time-parts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 4px;
  background: #fff;
  border: 2px solid #6f7f76;
  border-radius: 12px;
  box-shadow: 0 3px 0 #d7ddd8;
}
.duty-time-field.is-empty .duty-time-parts {
  color: var(--muted);
  background: #f4f6f4;
}
.duty-time-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  min-height: 40px;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.duty-time-part:hover,
.duty-time-part:focus-visible {
  background: #eef5f1;
  outline: none;
}
.duty-time-part strong {
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.duty-time-colon {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}
.duty-time-popover {
  position: absolute;
  z-index: 80;
  width: min(280px, calc(100vw - 16px));
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(23, 32, 29, .12);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(23, 32, 29, .16);
}
.duty-time-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.duty-time-popover-head strong {
  font-size: .95rem;
}
.duty-time-popover-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.duty-time-col {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.duty-time-col > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}
.duty-time-options {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  background: #f5f7f5;
  border: 1px solid rgba(23, 32, 29, .08);
  border-radius: 12px;
}
.duty-time-option {
  min-height: 40px;
  padding: 0 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.duty-time-option:hover {
  border-color: rgba(40, 117, 98, .28);
  background: #f7fcf9;
}
.duty-time-option.is-selected {
  color: #fff;
  background: var(--forest-700);
  border-color: var(--forest-700);
}
.duty-time-separator {
  flex: 0 0 auto;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
}
.duty-time-field.is-invalid .duty-time-parts {
  border-color: #b83d34;
  box-shadow: 0 3px 0 #f0c7c2;
}
.picker-time .duty-time-field {
  width: 100%;
  min-width: 0;
}
.picker-time .duty-time-parts {
  width: 100%;
  min-height: 68px;
  justify-content: center;
}
.picker-time .duty-time-part {
  min-width: 3.4rem;
  min-height: 52px;
}
.picker-time .duty-time-part strong {
  font-size: 1.55rem;
}
.legacy-edit-line .duty-time-field {
  min-width: 0;
}
.legacy-edit-line .duty-time-parts {
  min-height: 40px;
  padding: 2px;
  border-width: 1px;
  box-shadow: none;
}
.legacy-edit-line .duty-time-part {
  min-width: 2.1rem;
  min-height: 32px;
}
.legacy-edit-line .duty-time-part strong {
  font-size: 1rem;
}
.duty-timeline-panel .panel-head {
  flex-wrap: wrap;
  gap: 12px;
}
.duty-timeline-date-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.duty-timeline-hint {
  margin: 0 0 14px;
}
.duty-timeline-hint .text-button {
  margin-left: 8px;
  vertical-align: baseline;
}
.duty-timeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}
.duty-timeline-canvas {
  /* 姓＋名（例: 五十嵐 源悦）が切れない幅 */
  --duty-name-col: 8.75rem;
  --duty-track-min: 36rem;
  width: max(100%, calc(var(--duty-name-col) + var(--duty-track-min) + 12px));
  min-width: 100%;
}
.duty-timeline-header,
.duty-timeline-row {
  display: grid;
  grid-template-columns: var(--duty-name-col) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.duty-timeline-header {
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.duty-timeline-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--paper, #fff);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.duty-timeline-hours {
  position: relative;
  height: 38px;
}
.duty-timeline-hour,
.duty-timeline-hour-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  min-width: 1.7rem;
  min-height: 32px;
  padding: 0 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}
.duty-timeline-hour {
  cursor: pointer;
}
.duty-timeline-hour:hover {
  color: var(--forest-800, #1f3b2c);
  background: #eef5f1;
}
.duty-timeline-hour.is-selected {
  color: #fff;
  background: var(--forest-700, #2f6b4f);
}
.duty-timeline-body {
  display: grid;
}
.duty-timeline-row {
  min-height: 46px;
  padding: 6px 0;
  border-bottom: 1px solid #e7ebe8;
}
.duty-timeline-name {
  position: sticky;
  left: 0;
  z-index: 2;
  display: block;
  padding: 6px 8px 6px 0;
  color: var(--forest-950, #143024);
  background: var(--paper, #fff);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.duty-timeline-name:hover {
  text-decoration: underline;
}
.duty-timeline-track {
  position: relative;
  height: 34px;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(100% / 24 - 1px),
      #e4eae6 calc(100% / 24 - 1px),
      #e4eae6 calc(100% / 24)
    );
  border: 1px solid #d7ddd8;
  border-radius: 10px;
  overflow: hidden;
}
.duty-timeline-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: linear-gradient(90deg, #2f6b4f, #3f8a64);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.duty-timeline-bar span {
  font-size: .72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duty-timeline-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .icon-button.nav-chevron {
    width: 54px;
    height: 54px;
    font-size: 2.15rem;
  }
  .duty-timeline-canvas {
    --duty-track-min: 30rem;
  }
  .duty-timeline-date-nav {
    width: 100%;
  }
  .duty-timeline-date-nav #duty-timeline-date {
    flex: 1 1 auto;
  }
}
@media (max-width: 640px) {
  .icon-button.nav-chevron {
    width: 52px;
    height: 52px;
    font-size: 2rem;
  }
  .duty-timeline-canvas {
    --duty-name-col: 7.75rem;
    --duty-track-min: 26rem;
  }
  .duty-timeline-name {
    font-size: .86rem;
  }
  .duty-timeline-hour,
  .duty-timeline-hour-label {
    min-width: 1.35rem;
    font-size: .64rem;
  }
  .duty-timeline-bar span {
    font-size: .64rem;
  }
  .duty-timeline-panel .panel-head > div:first-child {
    width: 100%;
  }
}
.duty-person-day-note {
  flex: 1 1 140px;
  min-width: 120px;
}
.duty-person-day-save {
  flex: 0 0 auto;
  margin-left: auto;
}
.form-actions-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.duty-board-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.duty-board-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(23,32,29,.1);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(23,32,29,.04);
}
.duty-board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.duty-kouban-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--forest-50);
  color: var(--forest-800);
  font-size: .78rem;
  font-weight: 800;
}
.duty-board-field {
  display: grid;
  gap: 6px;
}
.duty-board-field > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.duty-board-card-actions {
  display: flex;
  justify-content: flex-end;
}
.duty-native-select,
.duty-board-field input,
.duty-person-day input:not([type="hidden"]),
.duty-person-day .duty-native-select {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #6f7f76;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
}
.duty-native-select:focus,
.duty-board-field input:focus,
.duty-person-day input:not([type="hidden"]):focus {
  outline: none;
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(40,117,98,.14);
}
.fujishima-handoff-compact { margin-top: 18px; }
.fujishima-handoff-compact .panel-body { padding-top: 10px; padding-bottom: 12px; }
.fujishima-handoff-compact .panel-head h2 { font-size: 1rem; }
.fujishima-handoff-compact .muted { margin: 0 0 10px; font-size: .78rem; }
.return-datetime-field {
  display: grid;
  gap: 10px;
}
.return-datetime-field > label:first-child { min-width: 0; }
.return-datetime-field .date-picker-button { width: 100%; }
.return-pending-check { margin: 0; }
.legacy-row-delete {
  cursor: pointer;
}
.duty-display-board { padding: 18px; background: #12261f; color: #fff; border-radius: 22px; }
.duty-display-board header { display: flex; justify-content: space-between; margin-bottom: 18px; }
.duty-display-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.duty-display-card {
  min-height: 140px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
}
.duty-display-card strong { font-size: 1.45rem; }
.duty-display-card span { font-size: 1.15rem; color: #d7e8df; }
.duty-display-card em { font-style: normal; color: #e3b158; font-weight: 800; }
.duty-day-chips { display: grid; gap: 2px; margin-top: 6px; }
.duty-day-chips small { display: block; color: var(--muted); font-size: .62rem; line-height: 1.3; }
.on-duty-panel { margin: 18px 0 0; padding: 14px 16px; background: var(--forest-50); border: 1px solid rgba(40,117,98,.16); border-radius: 14px; }
.on-duty-panel .panel-head { margin-bottom: 8px; }
.on-duty-list { display: flex; flex-wrap: wrap; gap: 8px; }

.driver-report-button { background: var(--forest-700); color: #fff; border-color: transparent; }
.meter-diff-cell { position: relative; }
.meter-adj-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: 1px solid #b7c1ba;
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.meter-adj-formula { display: block; margin-top: 4px; color: var(--forest-800); font-size: .68rem; font-weight: 700; }
.meter-diff-warning { display: block; margin-top: 4px; color: #a52a2a; font-size: .7rem; font-weight: 700; line-height: 1.35; }
.meter-carry-warnings { margin: 8px 0; padding: 9px 12px; color: #7b270d; background: #fff2e5; border: 1px solid #e8b281; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.meter-carry-warnings strong { display: block; }
.meter-carry-warnings ul { margin: 4px 0 0; padding-left: 18px; }
.onboard-clear-reason { display: grid; gap: 6px; margin-top: 14px; }
.report-error-badge {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}
.report-folder, .report-file { position: relative; }
.report-folder .report-error-badge,
.report-file .report-error-badge { position: absolute; top: 12px; right: 42px; }

@media (max-width: 900px) {
  .duty-view-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duty-assign-head, .duty-assign-row { grid-template-columns: 1fr; }
  .duty-person-day {
    align-items: stretch;
  }
  .duty-person-day-label {
    flex: 0 0 auto;
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .duty-person-day-shift,
  .duty-person-day-note {
    flex: 1 1 100%;
  }
  .duty-person-day-times {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .duty-time-field {
    flex: 1 1 0;
    min-width: 0;
  }
  .duty-time-parts {
    width: 100%;
    justify-content: center;
  }
  .duty-person-day-save {
    margin-left: 0;
    width: 100%;
  }
  .duty-agenda-item { grid-template-columns: 1fr; gap: 4px; }
  .lender-picker-actions { grid-template-columns: 1fr; }
  .return-datetime-field { grid-template-columns: 1fr; }
  .topbar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
}

/* Keep operational labels whole, fitting their actual available width. */
.driver-fee-chip { min-width: 0; }
.driver-fee-chips > .driver-fee-chip {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.driver-fee-chip strong,
.compact-fit-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.3;
}
.driver-fee-chip strong { width: 100%; }
.report-folder > div { min-width: 0; }
.report-directory .report-folder strong { font-size: 2.4rem !important; }
.driver-fee-chip > span { flex-shrink: 0; white-space: nowrap; }
.driver-mode-chips .driver-fee-chip { flex: 1 1 0; }
.driver-page .button,
.driver-page .switch-button,
.driver-page .shift-end-button,
.driver-page .charter-box-button,
.report-screen-actions .button,
.modal .form-actions .button { min-width: 0; max-width: 100%; }
.driver-page .form-actions { gap: 12px; }
.driver-stage-pickup .driver-mode-chips { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.closeout-remittance .confirmation-row { align-items: center; }
.closeout-remittance .confirmation-row strong { flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; }
.closeout-remittance .confirmation-row:last-child { background: var(--forest-50); }

/* Vehicle equipment options stay readable on narrow screens. */
#vehicle-master-form .capability-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#vehicle-master-form .capability-checks label { display: flex; min-width: 0; min-height: 52px; gap: 12px; white-space: normal; word-break: normal; overflow-wrap: normal; }
#vehicle-master-form .capability-checks input[type="checkbox"] { flex: 0 0 24px; width: 24px; min-width: 24px; max-width: 24px; height: 24px; min-height: 24px; max-height: 24px; padding: 0; margin: 0; accent-color: var(--forest-600); }
@media (max-width: 600px) {
  #vehicle-master-form .capability-checks { grid-template-columns: minmax(0, 1fr); }
}

.fare-settings-form { display: grid; gap: 20px; }
.fare-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fare-fields .field { min-width: 0; }
.fare-fields input, .fare-fields select { width: 100%; min-width: 0; min-height: 48px; }
@media (max-width: 600px) { .fare-fields { grid-template-columns: minmax(0, 1fr); } }

/* Meter-based accounting and independent ride-record reconciliation. */
.legacy-money th { white-space: normal; }
.legacy-money output { display:block; font-variant-numeric: tabular-nums; font-weight:700; }
.report-money-formula { display:block; margin-top:5px; color:#52645f; font-size:11px; line-height:1.45; white-space:normal; }
.report-money-checks { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0; }
.money-check { display:flex; flex-direction:column; gap:4px; border:1px solid #c9d9d2; padding:10px; background:#f0f7f3; font-size:13px; }
.money-check.is-mismatch, .legacy-money td.money-mismatch { color:#a51f28; background:#fff0ef; border-color:#c63f46; }
.money-check.is-pending { color:#675b35; background:#fbf7e9; }
.legacy-money thead th { background:#edf4f0; color:#184a3e; }
@media print { .report-money-formula { display:none; } .money-check { break-inside:avoid; } }

/* Formula help appears only while editing and never changes row height. */
.report-money-cell { position:relative; }
.report-money-cell .report-money-formula { display:none; position:absolute; top:100%; left:0; z-index:20; min-width:180px; max-width:240px; margin:0; padding:6px 8px; background:#fffef7; color:#304e43; border:1px solid #b9c8c1; box-shadow:0 3px 8px #0002; font-size:12px; line-height:1.4; text-align:left; pointer-events:none; }
.report-money-cell:focus-within { z-index:21; }
.report-money-cell:focus-within .report-money-formula { display:block; }
.report-money-cell:last-child .report-money-formula { left:auto; right:0; }
.report-money-checks { gap:6px; margin:5px 0; }
.money-check { flex-direction:row; flex-wrap:wrap; align-items:center; gap:2px 8px; padding:4px 6px; font-size:11px; }
.money-check strong { font-weight:normal; }
@media print { .report-money-cell:focus-within .report-money-formula { display:none; } }

.legacy-metrics th:first-child { width:100px; white-space:nowrap; }

/* Stable pickup layout: equipment stays in place for every vehicle. */
.driver-stage-pickup .driver-hero { display:flex; flex-direction:column; min-height:0; gap:22px; padding:8px 0; }
.driver-stage-pickup .driver-hero-above:empty { display:none; }
.driver-stage-pickup .driver-hero-action { min-height:0; padding:0 0 10px; }
.driver-stage-pickup .ride-action { width:clamp(180px,45vw,280px); box-shadow:0 10px 0 #387d42,0 16px 24px #2a6f3520; font-size:clamp(3rem,8vw,4.5rem); }
.driver-stage-pickup .driver-hero-below, .driver-stage-pickup .driver-fee-panel { width:100%; min-width:0; }
.driver-stage-pickup .driver-fee-chips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; }
.driver-stage-pickup .driver-fee-chip { display:flex; flex-direction:column; justify-content:center; align-items:center; width:100%; min-width:0; min-height:64px; padding:8px 6px; gap:3px; border-width:2px; border-radius:12px; }
.driver-stage-pickup .driver-fee-chip strong { font-size:16px !important; line-height:1.3; white-space:normal; overflow-wrap:normal; }
.driver-stage-pickup .driver-fee-chip span { font-size:13px !important; line-height:1.3; }
.driver-stage-pickup .driver-fee-chip:disabled { opacity:1; color:#666; border-color:#c5c8c6; background:repeating-linear-gradient(135deg,#efefed 0,#efefed 7px,#e3e5e2 7px,#e3e5e2 9px); cursor:not-allowed; box-shadow:none; }
.driver-stage-pickup .driver-fee-chip:disabled span { color:#666; }
@media(max-width:600px) {
 .driver-stage-pickup { min-height:0; width:100%; padding:4px 0 16px; gap:12px; }
 .driver-stage-pickup .driver-topbar { display:grid; grid-template-columns:60px minmax(0,1fr); gap:8px; width:100%; align-items:start; margin:0; }
 .driver-stage-pickup .driver-report-button { margin:0; min-width:0; padding:10px 6px; min-height:44px; font-size:16px; }
 .driver-stage-pickup .driver-meta { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:6px; min-width:0; }
 .driver-stage-pickup .driver-meta-vehicle,.driver-stage-pickup .driver-meta-name { font-size:16px !important; padding:8px 10px; border-radius:12px; }
 .driver-stage-pickup .driver-location-status { font-size:12px !important; margin:0; padding:4px 8px; }
 .driver-stage-pickup .driver-secondary-actions { width:100%; margin:0; gap:8px; }
 .driver-stage-pickup .switch-button,.driver-stage-pickup .shift-end-button { min-height:44px; padding:10px; font-size:16px !important; }
 .driver-stage-pickup [data-pending-shifts] { width:100%; }
 .driver-stage-pickup [data-pending-shifts] p { margin:6px 0; font-size:12px; }
}

.driver-stage-pickup [data-pending-shifts]:empty { display:none; }

/* Keep the identity group centered without rebuilding it when options change. */
.driver-stage-pickup .driver-topbar { display:grid; grid-template-columns:auto minmax(0,auto); width:max-content; max-width:100%; justify-content:center; align-items:center; margin:0 auto; gap:8px; }
.driver-stage-pickup .driver-meta { display:grid; grid-template-columns:minmax(0,auto) minmax(0,auto); justify-content:center; align-items:center; min-width:0; gap:6px; }
.driver-stage-pickup .driver-location-status { grid-column:1 / -1; justify-self:center; }
.driver-stage-pickup .driver-fee-chip span { min-height:17px; white-space:nowrap; }

/* One shared row aligns the report action with vehicle and driver labels. */
.driver-stage-pickup .driver-topbar { grid-template-columns:auto minmax(0,auto) minmax(0,auto); align-items:stretch; gap:6px; }
.driver-stage-pickup .driver-meta { display:contents; }
.driver-stage-pickup .driver-report-button,
.driver-stage-pickup .driver-meta-vehicle,
.driver-stage-pickup .driver-meta-name { display:flex; align-items:center; justify-content:center; min-height:44px; margin:0; padding:8px 10px; border-width:2px; border-radius:12px; font-size:clamp(16px,2vw,22px) !important; line-height:1.3; font-weight:900; }
.driver-stage-pickup .driver-report-button { min-width:64px; }
.driver-stage-pickup .driver-location-status { grid-column:2 / 4; justify-self:center; align-self:start; }

.login-password-field { display:flex; align-items:stretch; gap:8px; min-width:0; }
.login-password-field input { flex:1; width:0; min-width:0; }
#login-password-toggle { flex:0 0 60px; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--forest-800); font:inherit; cursor:pointer; }
.closeout-cash-reference { margin-bottom:10px; padding:10px 12px; background:#edf5f1; border-radius:10px; }

/* Dropoff uses content-sized rows; the button shadow has its own space. */
.driver-stage-dropoff .driver-hero { display:flex; flex-direction:column; min-height:0; gap:20px; padding:8px 0; align-items:center; }
.driver-stage-dropoff .driver-hero-above,.driver-stage-dropoff .driver-hero-below,.driver-stage-dropoff .amount-keypad,.driver-stage-dropoff .driver-fare-row { width:100%; max-width:620px; min-width:0; min-height:0; }
.driver-stage-dropoff .driver-hero-action { width:100%; min-width:0; min-height:0; padding-bottom:20px; }
.driver-stage-dropoff .ride-action { width:clamp(160px,45vw,280px); max-width:100%; min-height:0; font-size:clamp(2.8rem,8vw,4.5rem); }
.driver-stage-dropoff .driver-dropoff-side { width:100%; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.driver-stage-dropoff .driver-dropoff-side button { min-width:0; min-height:48px; padding:10px 6px; font-size:18px; }
@media(min-width:1000px) and (orientation:landscape) {
 .driver-stage-dropoff .driver-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); grid-template-rows:auto auto; align-items:center; column-gap:24px; row-gap:20px; }
 .driver-stage-dropoff .driver-hero-above { grid-column:1; grid-row:1 / 3; }
 .driver-stage-dropoff .driver-hero-action { grid-column:2; grid-row:1; }
 .driver-stage-dropoff .driver-hero-below { grid-column:2; grid-row:2; }
}

.driver-stage-dropoff .amount-key.amount-key-action { font-size:16px !important; white-space:nowrap; }
@media(max-width:600px) {
 .driver-stage-dropoff .driver-topbar { display:grid; grid-template-columns:auto minmax(0,auto) minmax(0,auto); width:max-content; max-width:100%; margin:0 auto; gap:6px; align-items:stretch; }
 .driver-stage-dropoff .driver-meta { display:contents; }
 .driver-stage-dropoff .driver-report-button,.driver-stage-dropoff .driver-meta-vehicle,.driver-stage-dropoff .driver-meta-name { display:flex; align-items:center; justify-content:center; min-height:44px; margin:0; padding:8px 10px; border-width:2px; border-radius:12px; font-size:16px !important; line-height:1.3; }
 .driver-stage-dropoff .driver-report-button { min-width:64px; }
 .driver-stage-dropoff .driver-location-status { grid-column:2 / 4; justify-self:center; font-size:12px !important; padding:4px 8px; }
}

/* Approved report tag palette. Dimensions and print styling stay unchanged. */
@media screen {
  [data-tag-color="discount"] { --tag-bg: #F1EAF8; --tag-fg: #6B3E91; --tag-border: #CDB9DF; }
  [data-tag-color="payment"] { --tag-bg: #E4F2EC; --tag-fg: #205F4F; --tag-border: #B7D8C7; }
  [data-tag-color="operation"] { --tag-bg: #FFF0D5; --tag-fg: #805414; --tag-border: #E4CB98; }
  [data-tag-color="equipment"] { --tag-bg: #E7EFFA; --tag-fg: #28588A; --tag-border: #B9CEE6; }
  [data-tag-color="custom"] { --tag-bg: #F0F1F2; --tag-fg: #50575E; --tag-border: #CCD0D4; }
  button.report-info-tag[data-tag-color],
  .report-info-tag[data-tag-color], .report-tag-chip[data-tag-color],
  .report-tag-pick.is-on[data-tag-color] {
    color: var(--tag-fg); background: var(--tag-bg); border-color: var(--tag-border);
  }
  .report-tag-pick.is-on[data-tag-color] small { color: var(--tag-fg); }
}

/* Keep the report destination date readable in the compact ride toolbar. */
.driver-stage .driver-report-button { display: flex; flex-direction: column; align-items: center; justify-content: center; white-space: nowrap; line-height: 1.25; }

.application-version { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 5px 10px calc(5px + env(safe-area-inset-bottom, 0px)); background: #f5f3ed; border-top: 1px solid #c9cec5; color: #35493f; font-size: 12px; line-height: 1.4; }
.application-version [data-update-status]:empty { display: none; }
@media print { .application-version { display: none; } }
