:root {
  --bg: #f3eee4;
  --paper: #fffaf3;
  --ink: #241f18;
  --muted: #6b6458;
  --line: #e6dccb;
  --tea: #3a5a44;
  --tea-2: #2c4635;
  --gold: #8c6a32;
  --danger: #8f2d2d;
  --ok: #2d6a4f;
  --ok-bg: #e7f2ea;
  --err-bg: #f8ece8;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(36, 31, 24, 0.06);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(58, 90, 68, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.55;
  min-height: 100%;
}
a { color: var(--tea); }
img { max-width: 100%; }

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.is-admin .page { max-width: 1080px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.is-public .page {
  max-width: 560px;
  padding: 8px 14px 16px;
}
.is-public .topbar {
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 0;
  margin-bottom: 4px;
}
.is-public .brand {
  gap: 8px;
  min-width: 0;
}
.is-public .brand-logo {
  width: 38px;
  height: 38px;
}
.is-public .brand-text strong {
  font-size: 20px;
  letter-spacing: 0.06em;
  line-height: 1.15;
}
.is-public .brand-text em {
  font-size: 13px;
  margin-top: 1px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  width: 28px;
  height: 28px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}
.brand-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.topnav .who { color: var(--muted); }
.btn-text { color: var(--tea-2); }

.hero { margin: 8px 0 18px; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: none;
}
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; font-weight: 650; }
h2 { margin: 0 0 12px; font-size: 18px; }
.lead { margin: 0; color: var(--muted); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.form legend {
  font-weight: 650;
  margin-bottom: 10px;
  padding: 0;
}
.field { margin-bottom: 12px; }
.field label,
.field .label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.req { color: var(--gold); font-size: 12px; margin-left: 4px; }
.opt { color: var(--muted); font-size: 12px; margin-left: 4px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input:not([type]),
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  min-height: 46px;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(58, 90, 68, 0.35);
  border-color: var(--tea);
}
.has-error input,
.has-error select,
.has-error textarea { border-color: var(--danger); }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.hint.error { color: var(--danger); }
.privacy { color: var(--muted); font-size: 13px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choice-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.choice-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 8px;
}
.choice-item input { margin-right: 8px; }
.choice-item:has(input:checked),
.choice-item.is-on {
  border-color: var(--tea);
  background: #eef4ef;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.btn-primary {
  background: var(--tea);
  color: #fff;
}
.btn-primary:hover { background: var(--tea-2); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
}
.btn-danger {
  background: #8b3a3a;
  color: #fff;
  border-color: #8b3a3a;
}
.btn-danger:hover { background: #732f2f; }
.delete-zone { border-color: #e6d4d4; }
.topnav .btn-small {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}
.btn-block { width: 100%; }

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--err-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }

.success-card { text-align: left; }
.order-no {
  font-size: 18px;
  background: #eef4ef;
  border-radius: 10px;
  padding: 12px;
}
.login-card { max-width: 420px; margin: 24px auto; }

.footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}
.export-bar { margin: 0 0 12px; }

.table-wrap { overflow-x: auto; }
.order-table, .plain-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.order-table th, .order-table td,
.plain-table th, .plain-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}
.order-table th, .plain-table th { color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); font-size: 12px; }
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe8da;
  font-size: 12px;
}

@media (max-width: 760px) {
  .order-table thead { display: none; }
  .order-table, .order-table tbody, .order-table tr, .order-table td { display: block; width: 100%; }
  .order-table tr {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 8px 4px;
  }
  .order-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
  }
  .order-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    flex: 0 0 88px;
  }
}

.kv-list { margin: 0; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.back { margin: 0 0 12px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pager a {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.pager a.is-current { background: var(--tea); color: #fff; border-color: var(--tea); }
.empty { color: var(--muted); }
.toolbar { margin-bottom: 8px; }

.place-jm { color: #3a5a44; font-weight: 650; }
.place-xsbn { color: #8c6a32; font-weight: 650; }
.place-pe { color: #7a5344; font-weight: 650; }
.place-arrow {
  color: #6b6458;
  font-weight: 400;
  padding: 0 0.35em;
}
.route-placeholder { color: var(--muted); font-weight: 400; }

.route-picker { position: relative; }
.route-picker .route-btn,
.route-picker .route-menu { display: none; }
.route-picker.is-enhanced .route-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
}
.route-picker.is-enhanced .route-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  gap: 10px;
}
.route-picker.is-enhanced .route-btn-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  min-width: 0;
}
.route-picker.is-enhanced .route-btn-caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}
.route-picker.is-open .route-btn {
  border-color: var(--tea);
  outline: 2px solid rgba(58, 90, 68, 0.35);
}
.route-picker.is-enhanced.is-open .route-menu {
  display: block;
}
.route-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.route-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.route-line {
  display: inline-block;
  white-space: nowrap;
}
.route-menu .route-grid {
  display: grid;
  grid-template-columns: 42px 6.2em 1.4em minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  width: 100%;
  white-space: normal;
}
.place-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  vertical-align: middle;
}
.place-emoji { font-weight: 400; line-height: 1; }
.route-menu .place-with-icon,
.route-menu .place-jm,
.route-menu .place-xsbn,
.route-menu .place-pe {
  justify-self: start;
  align-self: center;
}
.route-btn-label .place-jm,
.route-btn-label .place-xsbn,
.route-btn-label .place-pe,
.route-btn-label .place-arrow {
  vertical-align: middle;
  font-weight: 400;
}
.route-btn-label .place-jm { color: #35624A; }
.route-btn-label .place-xsbn { color: #D66B3D; }
.route-btn-label .place-pe { color: #A47A32; }
.route-btn-label .place-arrow { color: #8d867c; }
.route-menu .dir-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 20px;
  padding: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.route-menu .dir-jm { background: #35624A; }
.route-menu .dir-xsbn { background: #D66B3D; }
.route-menu .dir-pe { background: #A47A32; }
.route-menu .place-jm { color: #35624A; font-weight: 400; }
.route-menu .place-xsbn { color: #D66B3D; font-weight: 400; }
.route-menu .place-pe { color: #A47A32; font-weight: 400; }
.route-menu .place-arrow {
  color: #8d867c;
  font-weight: 400;
  padding: 0;
  text-align: center;
}
.route-option.is-selected,
.route-option:hover,
.route-option:focus {
  background: #eef4ef;
  outline: none;
}
.route-picker.is-disabled .route-btn {
  opacity: 0.55;
  pointer-events: none;
}
.has-error .route-picker.is-enhanced .route-btn { border-color: var(--danger); }

.is-admin .page { padding: 10px 12px 32px; }
.is-admin .topbar { margin-bottom: 10px; }
.is-admin h1 { font-size: 20px; margin: 0 0 2px; }
.toolbar-compact { margin-bottom: 8px; }
.toolbar-compact .lead { font-size: 12px; }
.btn-compact { min-height: 36px; padding: 0 12px; font-size: 14px; }

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-end;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.filters-bar .field {
  margin: 0;
  min-width: 120px;
}
.filters-bar .field label {
  font-size: 12px;
  margin-bottom: 3px;
}
.filters-bar input,
.filters-bar select {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 14px;
}
.filters-bar .field-q { flex: 1 1 160px; min-width: 140px; }
.date-range-field { min-width: 220px; }
.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-range input[type="date"] { width: 132px; }
.date-dash { color: var(--muted); }
.filters-bar .filter-actions { margin: 0; }

.order-stack { display: flex; flex-direction: column; gap: 6px; }
.swipe-row {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  touch-action: pan-y;
}
.swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 76px;
  display: flex;
}
.swipe-del {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8b3a3a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.order-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  align-items: center;
  column-gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  color: inherit;
  line-height: 1.3;
  transition: transform 0.16s ease;
  z-index: 1;
}
.swipe-row.is-dragging .order-item { transition: none; }
.order-item-main {
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.oi-states {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 74px;
}
.oi-state {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 74px;
  height: 20px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid #e4dccf;
  background: #f6f3ee;
  color: #3d3832;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
}
.oi-state.is-done {
  background: #7ddea0;
  border-color: #5dce86;
  color: #0d3d22;
}
.oi-state.is-void {
  height: 72px;
  background: #f3eee8;
  border-color: #e4dccf;
  color: #6b6458;
}
.oi-done-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: 74px;
  height: 66px;
  border-radius: 8px;
  background: #1aa34a;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.oi-done-block i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #1aa34a;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.swipe-more {
  display: none;
  position: absolute;
  right: 2px;
  top: 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .order-item { grid-template-columns: minmax(0, 1fr) 74px 18px; }
  .swipe-more { display: block; position: static; align-self: center; padding: 0; }
}
.swipe-row.is-cancelled { opacity: 0.62; }
.export-hint { margin-left: 8px; }
.oi-row {
  display: grid;
  column-gap: 0;
  min-width: 0;
}
.oi-r1 {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-template-columns: none;
}
.oi-r2, .oi-r3 { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
.oi-cap {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.oi-r2 > :nth-child(n + 2),
.oi-r3 > :nth-child(n + 2) {
  border-left: 0;
  padding-left: 0;
}
.oi-r1 > * { border-left: 0; padding: 0; flex: 0 0 auto; width: auto; overflow: visible; }
.oi-name, .oi-phone, .oi-when, .oi-dep, .oi-bal, .oi-route { justify-content: flex-start; }
.oi-name { font-size: 13px; font-weight: 650; max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
.oi-phone, .oi-pax { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.oi-route .place-jm { color: #35624A; font-weight: 650; }
.oi-route .place-xsbn { color: #D66B3D; font-weight: 650; }
.oi-route .place-pe { color: #A47A32; font-weight: 650; }
.oi-route .place-arrow { color: #8d867c; font-weight: 400; padding: 0 0.15em; }
.oi-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid #e6dfd2;
  border-radius: 4px;
  background: #f7f4ee;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}
.oi-r2 .veh-chip.oi-kind,
.oi-leg.oi-kind {
  width: 64px;
  max-width: 64px;
  height: 22px;
  justify-self: start;
  align-self: center;
  border-radius: 4px;
  padding: 0;
}
.oi-kind.is-share { background: #e7f0ea; color: #24533a; border-color: #d5e4d8; }
.oi-kind.is-charter { background: #f8f0dc; color: #7a5410; border-color: #eadcba; }
.oi-leg.is-round { background: #f8f1dc; color: #6d5310; border-color: #eadcba; }
.oi-leg.is-go { background: #f7f4ee; color: #5c564c; border-color: #e6dfd2; }
.oi-dep b, .oi-bal b { font-weight: 650; }
.oi-dep em, .oi-bal em { font-style: normal; font-weight: 650; }
.oi-dep .is-paid, .oi-bal .is-paid { color: #1f6b45; }
.oi-dep .is-unpaid, .oi-bal .is-unpaid { color: #9a4e16; }
.oi-when .oi-late { margin-left: 4px; }
#desk-accept, #desk-driver, #desk-settle { scroll-margin-top: 12px; }
.veh-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  width: auto;
}
.veh-chip.is-share { background: #e5efe8; color: #24533a; }
.veh-chip.is-charter { background: #f3e6c8; color: #7a5410; }
.oi-slot { min-width: 0; }
.oi-sep { color: #cbbfa8; padding: 0 6px; }
.oi-tag {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tea);
  border: 1px solid var(--tea);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 18px;
}
.related-banner {
  background: #eef4ef;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.related-banner a { margin-right: 10px; }
.compact-card { padding: 14px; }
.compact-card h2 { font-size: 16px; margin-bottom: 8px; }
.money-readout {
  margin: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 650;
}
.profit-big { font-size: 28px; color: var(--tea); }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-size: 22px; margin-top: 4px; }
.stat-card em { display: block; font-size: 11px; color: var(--muted); font-style: normal; margin-top: 4px; }
.stat-profit { border-color: var(--tea); }
@media (min-width: 800px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .profit-desk { display: none; }
  .date-range { flex-wrap: wrap; }
  .date-range input[type="date"] { width: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.work-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.work-tabs a {
  flex: 0 0 auto;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
.work-tabs a.is-on,
.work-tabs a.is-on b {
  background: #2c4635;
  color: #fff;
  border-color: #2c4635;
  font-weight: 700;
}
.work-tabs b { font-weight: 700; }
.work-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}
.work-tools-side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.privacy-eye {
  width: 36px;
  min-width: 36px;
  padding: 0;
}
.privacy-eye svg { display: block; width: 18px; height: 18px; }
.privacy-eye .eye-off { display: none; }
html.is-privacy .privacy-eye .eye-on { display: none; }
html.is-privacy .privacy-eye .eye-off { display: block; }
.pv-mask { display: none; }
html.is-privacy .pv-full { display: none; }
html.is-privacy .pv-mask { display: inline; }
.work-tools form { margin: 0; }
.veh-switch { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-width: 0; }
.veh-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.veh-switch a.is-share.is-on { background: #e7f0ea; color: #24533a; border-color: #2f6a45; font-weight: 700; }
.veh-switch a.is-charter.is-on { background: #f8f0dc; color: #7a5410; border-color: #a47a32; font-weight: 700; }
.veh-switch a.is-up.is-on { background: #e8f4f0; color: #1a6b4a; border-color: #2f8a62; font-weight: 700; }
.veh-switch a.is-down.is-on { background: #fceee6; color: #9a4a22; border-color: #d17a4a; font-weight: 700; }
.filters-bar.is-collapsed { display: none; }
.oi-late {
  margin: 0;
  color: #9f2d20;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  flex: none;
}
.is-driver-card .oi-driver-trip,
.is-driver-card .oi-driver-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.order-item.is-driver-card {
  grid-template-columns: 72px minmax(0, 1fr) 78px;
  grid-template-areas: "head head head" "types mid claim";
  align-items: stretch;
  column-gap: 8px;
  row-gap: 4px;
}
.is-driver-card .oi-r1 {
  grid-area: head;
  text-decoration: none;
  color: inherit;
}
.is-driver-card .oi-driver-types {
  grid-area: types;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
}
.is-driver-card .d-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 72px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid #e6dfd2;
  border-radius: 4px;
  background: #f7f4ee;
  color: #5c564c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.is-driver-card .d-chip.is-share { background: #e7f0ea; color: #24533a; border-color: #d5e4d8; }
.is-driver-card .d-chip.is-charter { background: #f0c14b; color: #4e3206; border-color: #d9a41f; }
.is-driver-card .d-chip.is-round { background: #ffe3a3; color: #6a4308; border-color: #e2b85a; }
.is-driver-card .d-chip.is-go { background: #f7f4ee; color: #5c564c; border-color: #e6dfd2; }
.is-driver-card .oi-driver-mid {
  grid-area: mid;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.is-driver-card .d-time,
.is-driver-card .d-route {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-driver-card .d-route .place-jm { color: #35624A; font-weight: 650; }
.is-driver-card .d-route .place-xsbn { color: #D66B3D; font-weight: 650; }
.is-driver-card .d-route .place-pe { color: #A47A32; font-weight: 650; }
.is-driver-card .d-route .place-arrow { color: #8d867c; font-weight: 400; padding: 0 0.15em; }
.is-driver-card .oi-states {
  grid-area: claim;
  display: flex;
  width: auto;
  height: auto;
  align-self: stretch;
}
.is-driver-card .oi-claim-form {
  display: flex;
  flex: 1;
  margin: 0;
  min-height: 48px;
}
.is-driver-card .oi-claim,
.is-driver-card .oi-states .oi-state {
  flex: 1;
  width: 100%;
  min-height: 48px;
}
.is-driver-card .oi-claim,
.is-driver-card .oi-states .oi-state.is-done {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1faa4c;
  border: 1px solid #1faa4c;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}
.is-driver-card .oi-states .oi-state.is-void {
  height: 100%;
  min-height: 48px;
  background: #f3eee8;
  border-color: #e4dccf;
  color: #6b6458;
}
@media (hover: hover) and (pointer: fine) {
  .order-item.is-driver-card { grid-template-columns: 72px minmax(0, 1fr) 78px; }
}
@media (max-width: 720px) {
  .is-admin .page { padding: 8px 8px 24px; }
  .work-tabs a { font-size: 12px; padding: 4px 8px; }
  .filters-bar .field.half { flex: 1 1 46%; min-width: 0; }
  .date-range { flex-wrap: nowrap; }
  .date-range input[type="date"] { width: auto; flex: 1; min-width: 0; font-size: 13px; }
}

.is-admin .topbar,
.is-driver .topbar {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 8px;
}
.is-admin .brand,
.is-driver .brand {
  width: 100%;
  min-width: 0;
  gap: 6px;
}
.is-admin .brand-logo,
.is-driver .brand-logo { width: 22px; height: 22px; }
.is-admin .brand-text,
.is-driver .brand-text {
  flex-direction: row;
  align-items: center;
  min-width: 0;
}
.is-admin .brand-text strong,
.is-driver .brand-text strong {
  font-size: 16px;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1.2;
}
.desk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.is-admin .topnav,
.is-driver .topnav {
  flex: 1;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  font-size: 14px;
}
.desk-side { display: flex; align-items: center; gap: 8px; flex: none; }
.role-switch {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  height: 30px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #f4efe6;
}
.role-switch a {
  width: auto;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 28px;
  color: #3a5a44;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}
.is-admin:not(.is-driver) .role-switch { background: #f4efe6; }
.is-admin:not(.is-driver) .role-switch a.is-on { background: #fff; color: #2a4634; font-weight: 700; }
.is-driver .role-switch { background: #3a5a44; border-color: #3a5a44; }
.is-driver .role-switch a { color: rgba(255,255,255,.75); }
.is-driver .role-switch a.is-on { background: #244033; color: #fff; font-weight: 700; }
.who-logout { font-size: 12px; color: var(--muted); white-space: nowrap; }
.oi-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  width: auto;
  flex: 0 0 auto;
}
.oi-badge-who { background: #f6f3ee; color: #5c564c; border-color: #e6e0d6; }
.oi-badge-wait { background: #f3e6d4; color: #7a4e12; border-color: #e4d0b0; }
.oi-badge-go { background: #e5efe8; color: #24533a; border-color: #c9ddd0; }
.oi-badge-round { background: #efe4c4; color: #6d5310; border-color: #e2cf93; font-weight: 700; }
.oi-badge-soft { background: #f6f3ee; color: #8a8175; border-color: #e6e0d6; }
.oi-badge-done { background: #e7f0ea; color: #1f6b45; border-color: #c5dccb; }
@media (max-width: 720px) {
  .is-admin .brand-text strong,
  .is-driver .brand-text strong { font-size: 15px; }
  .is-admin .topnav a,
  .is-driver .topnav a { font-size: 13px; }
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
}
.quick-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 8px;
}
.quick-search .btn { flex: 0 0 auto; }
.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.order-top h1 {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-top .btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
}
@media (max-width: 420px) {
  .order-top h1 { font-size: 13px; }
}
.order-brief .fact { margin: 0 0 3px; font-size: 15px; line-height: 1.4; }
.order-brief .fact-main { font-size: 16px; font-weight: 650; }
.order-brief .route-line { margin: 2px 0 4px; font-size: 16px; font-weight: 650; }
.is-admin .edit-dense .field { margin: 0 0 8px; }
.is-admin .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.is-admin .edit-dense input,
.is-admin .edit-dense select,
.is-admin .edit-dense textarea,
.is-admin .driver-pick input {
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 15px;
}
.is-admin .edit-dense textarea { min-height: 52px; }
.is-admin .pay-3,
.is-admin .pay-2 {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.is-admin .pay-3 { grid-template-columns: 1fr 1fr 1fr; }
.is-admin .pay-2 { grid-template-columns: 1fr 1fr; }
.is-admin .pay-3 .field,
.is-admin .pay-2 .field { margin: 0; min-width: 0; }
.is-admin .pay-3 .money-readout {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ee;
  padding: 0 8px;
}
.mini-help { margin: 2px 0 8px; font-size: 12px; color: var(--muted); }
.mini-help summary { cursor: pointer; }
.mini-help p { margin: 4px 0 0; }
.driver-pick { position: relative; }
.driver-menu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.driver-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 10px;
  font-size: 15px;
}
.driver-menu button[hidden] { display: none; }
@media (max-width: 360px) {
  .is-admin .pair { grid-template-columns: 1fr; }
}

.is-driver .topnav:empty { display: none; }
.task-head { margin: 0 0 8px; }
.task-head h1 { font-size: 18px; margin: 0; }
.task-preview { margin: 2px 0 0; font-size: 12px; color: var(--tea); }
.task-days { display: flex; gap: 6px; margin: 0 0 8px; }
.task-days a {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 2px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.task-days a.is-on { background: var(--pine); color: #fff; border-color: var(--pine); }
.task-days b { font-weight: 700; }
.task-date { display: flex; gap: 6px; margin: 0 0 8px; }
.task-date input { min-height: 34px; padding: 4px 8px; }
.task-extra { margin: 0 0 8px; font-size: 13px; }
.task-board { display: grid; grid-template-columns: 1fr; gap: 8px; }
.task-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.task-card.is-done { opacity: 0.62; }
.task-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.task-when strong { font-size: 22px; line-height: 1.1; letter-spacing: 0; white-space: nowrap; }
.task-route { font-size: 16px; font-weight: 650; min-width: 0; }
.task-chip {
  margin-left: auto;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f6f3ee;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}
.task-chip-round { margin-left: 0; background: #efe4c4; }
.task-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; font-size: 15px; }
.task-who a { color: var(--tea); font-weight: 650; text-decoration: none; }
.task-stop { display: flex; gap: 8px; align-items: flex-start; margin: 3px 0; font-size: 15px; }
.task-stop span { flex: 0 0 auto; color: var(--pine); font-weight: 700; }
.task-stop em { flex: 1; min-width: 0; font-style: normal; overflow-wrap: anywhere; }
.task-stop.is-empty em { color: var(--muted); }
.task-nav { flex: 0 0 auto; font-size: 12px; color: var(--tea); }
.task-warn { margin: 4px 0; color: #9f2d20; font-size: 14px; font-weight: 650; }
.task-note { margin: 2px 0; font-size: 14px; overflow-wrap: anywhere; }
.task-collect { margin: 6px 0; padding: 6px 8px; background: #f8efe4; color: #7a4e12; border-radius: 8px; font-weight: 700; }
.task-actions { display: flex; gap: 8px; margin-top: 8px; }
.task-actions form { flex: 1; margin: 0; }
.task-actions .btn { width: 100%; min-height: 40px; }
.task-actions .is-set { background: #e7f0ea; color: #1f6b45; }
@media (min-width: 800px) {
  .task-board { grid-template-columns: 1fr 1fr; }
}

.brand-side {
  margin: 0;
  text-align: right;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.is-public .book-lead {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}
.is-public .card.form {
  padding: 12px 12px 10px;
  margin-bottom: 0;
}
.is-public .form fieldset { margin: 0 0 8px; }
.is-public .form legend { margin-bottom: 6px; font-size: 15px; }
.is-public .field { margin-bottom: 8px; }
.is-public .field label,
.is-public .field .label { margin-bottom: 4px; }
.is-public .pair,
.is-public .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-bottom: 8px;
}
.is-public .pair-contact { grid-template-columns: 1.35fr 0.85fr; }
.is-public .pair .field,
.is-public .grid-2 .field { margin-bottom: 0; }
.is-public input[type="text"],
.is-public input[type="tel"],
.is-public input[type="date"],
.is-public select,
.is-public .route-picker.is-enhanced .route-btn {
  min-height: 46px;
  padding: 8px 10px;
}
.is-public textarea {
  min-height: 64px;
  height: 64px;
  max-height: 64px;
  padding: 8px 10px;
  resize: none;
  overflow: auto;
}
.is-public .surname-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
}
.is-public .surname-input {
  width: 52px;
  flex: 0 0 52px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
.is-public .honor {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.is-public .honor label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
}
.is-public .honor input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.is-public .choice-item {
  min-height: 38px;
  padding: 4px 6px;
  border-radius: 8px;
}
.is-public .choice-item input { margin-right: 4px; }
.is-public .btn-block { margin-top: 4px; }

.book-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  column-gap: 12px;
  row-gap: 10px;
  min-height: 166px;
  margin: 0 0 14px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  overflow: hidden;
  color: #fffaf3;
  background:
    linear-gradient(180deg, rgba(22, 34, 26, 0.42) 0%, rgba(22, 34, 26, 0.18) 42%, rgba(18, 28, 22, 0.62) 100%),
    url("/assets/img/banner.jpg") center 42% / cover no-repeat;
}
.book-banner .brand { grid-column: 1; grid-row: 1; align-self: center; color: #fffaf3; }
.book-banner .brand-logo { width: 48px; height: 48px; }
.book-banner .brand-text strong {
  color: #fffaf3;
  font-size: 25px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.book-banner .brand-text em {
  color: rgba(255, 250, 243, 0.9);
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.book-banner .brand-side {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin: 0;
  color: #f3e6c4;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.book-banner-note {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  color: rgba(255, 250, 243, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.book-banner-note span { margin: 0 2px; opacity: 0.8; }

/* 首页整页背景。以后只改下面三个变量。 */
html.is-home,
body.is-home {
  /* 缩放：1 为高度刚好铺满、不留白。略大于 1 才会额外放大。不要调到 1.4 以上，否则屋顶会占满画面。 */
  --home-bg-scale: 1.1;
  /* 水平位置：0% 靠左，100% 靠右。略小于 50%，把右下角车子裁出画面，同时保留院子。 */
  --home-bg-x: 36%;
  /* 垂直位置：0% 靠上（多留天空），100% 靠下（多留院子和绿植）。 */
  --home-bg-y: 62%;
  /* 浏览器顶栏、底栏无法铺进照片时，用这层接近云色的底色，避免出现纯蓝条。 */
  background-color: #e6ebf0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.is-home::before {
  content: "";
  position: fixed;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100lvh;
  min-height: 100dvh;
  background-image: url("/assets/img/home-bg.jpg");
  background-repeat: no-repeat;
  /* 宽、高同时铺满：取“按宽度放大”和“按高度放大”里更大的那个，避免留白或拉伸。4/3 是原图比例。 */
  background-size: max(calc(100% * var(--home-bg-scale)), calc(100lvh * var(--home-bg-scale) * 4 / 3)) auto;
  background-position: var(--home-bg-x) var(--home-bg-y);
  pointer-events: none;
}
@media (min-aspect-ratio: 1/1) {
  html.is-home,
  body.is-home {
    /* 横屏时原图几乎和屏幕同比例，右下角车子会露出来。只在这时多放大一点，并向左移。竖屏手机仍用上面的三个数值。 */
    --home-bg-scale: 1.62;
    --home-bg-x: 6%;
  }
}
body.is-home .page {
  position: relative;
  z-index: 1;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: transparent;
}
body.is-home .main { min-height: 100dvh; }
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 8vh) 16px 24px;
  font-family: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.home-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  text-align: center;
  color: #1c4a32;
}
.home-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}
.home-logo {
  width: clamp(58px, 16vw, 84px);
  height: clamp(58px, 16vw, 84px);
  flex: none;
}
.home-title h1 {
  margin: 0;
  color: #1c4a32;
  font-size: clamp(52px, 17vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.home-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #1c4a32;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.home-swap {
  width: 1.15em;
  height: 0.78em;
  flex: none;
  color: #1c4a32;
}
.home-focus {
  margin: 6px 0 0;
  color: #1c4a32;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.home-book {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 93%;
  max-width: 93%;
  box-sizing: border-box;
  margin: 18px 0 0;
  padding: 9px 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  box-shadow: 0 6px 18px rgba(16, 36, 28, 0.08);
  color: #1c4a32;
  text-decoration: none;
}
.home-book::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.home-book-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.home-book-copy strong {
  font-size: clamp(20px, 5.3vw, 25px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.home-book-sub {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-style: normal;
  font-size: clamp(12px, 3.05vw, 15px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 1;
}
.home-book-sub .dot {
  margin: 0 0.12em;
  font-style: normal;
  line-height: 1;
}
.home-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #1c4a32;
  pointer-events: none;
}
.home-guide {
  margin-top: 14px;
}
.home-note {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 1px 1px rgba(16, 28, 36, 0.55);
  white-space: nowrap;
}
body.is-guide {
  background: #f6f1e6;
}
body.is-guide .page {
  max-width: 640px;
}
.guide-page {
  padding-top: 6px;
}
.guide-back {
  display: inline-flex;
  align-items: center;
  color: #1c4a32;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.guide-page h1 {
  margin: 16px 0 18px;
  color: #1c4a32;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: #fffaf3;
  border: 1px solid #e4d9c6;
  border-radius: 14px;
}
.guide-no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1c4a32;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}
.guide-name {
  flex: 1;
  min-width: 0;
  color: #1c4a32;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.guide-status {
  flex: none;
  color: #8a8174;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.guide-list li:has(.guide-link) {
  padding: 0;
}
.guide-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  color: inherit;
  text-decoration: none;
}
.guide-article p,
.guide-article li {
  margin: 0 0 14px;
  color: #241f18;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
}
.guide-article h2 {
  margin: 22px 0 10px;
  color: #1c4a32;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
.guide-article h3 {
  margin: 16px 0 8px;
  color: #1c4a32;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
.guide-article strong {
  font-weight: 700;
}
.guide-article ul {
  margin: 0 0 8px;
  padding-left: 1.25em;
}
.guide-shot {
  display: block;
  width: 100%;
  margin: 4px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.guide-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}
.guide-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  background: rgba(20, 16, 12, 0.9);
  overflow: auto;
}
.guide-view[hidden] {
  display: none;
}
.guide-view img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.home-entries:empty { display: none; }
.home-entries {
  display: grid;
  gap: 10px;
  width: min(92vw, 420px);
  margin: 16px auto 0;
  padding: 0 0 28px;
}
.book-back { margin: 0 0 10px; font-size: 14px; }
.is-public .book-card {
  padding: 14px 12px 12px;
  border-radius: 16px;
  margin-bottom: 0;
}
.is-public .form-sec { margin: 0; }
.is-public .form-sec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #e7f0ea;
  color: #2c4635;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}
.is-public .sec-ico { width: 16px; height: 16px; flex: none; }
.is-public .form-sec + .form-sec .form-sec-title { margin-top: 12px; }
.is-public .star { color: #c44536; font-style: normal; font-weight: 700; margin-left: 2px; }
.is-public .pair-name,
.is-public .pair-phone {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 8px;
  align-items: end;
}
.is-public .pair-name .field,
.is-public .pair-phone .field {
  min-width: 0;
  max-width: 100%;
}
.is-public .pair-name input,
.is-public .pair-phone input,
.is-public .pair-phone select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  letter-spacing: normal;
}
.is-public .pair-name .opt-row {
  min-height: 46px;
  height: auto;
  gap: 6px 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
}
.is-public .pair-name .opt-radio { gap: 4px; flex: 0 0 auto; }
.is-public #passenger_count {
  font-weight: 400;
  color: var(--ink);
}
.is-public #passenger_count:has(option[value=""]:checked) {
  color: #a3988c;
  font-weight: 400;
}
.is-public #passenger_count option { color: var(--ink); font-weight: 400; }
.is-public input::placeholder,
.is-public textarea::placeholder {
  color: #a3988c;
  font-weight: 400;
}
.is-public .opt-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  min-height: 36px;
}
.is-public .opt-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-height: 0;
  height: auto;
  color: #3d3832;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.is-public .opt-radio span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #3d3832;
}
.is-public .opt-radio input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-height: 20px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #c5bdb0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px #fff;
  flex: 0 0 20px;
  position: static;
  opacity: 1;
}
.is-public .opt-radio input:checked {
  border-color: #2c4635;
  background: #2c4635;
  box-shadow: inset 0 0 0 5px #fff;
}
.is-public .surname-input {
  width: 100%;
  flex: none;
  text-align: left;
  padding-left: 10px;
  padding-right: 8px;
  font-size: 16px;
}
.is-public .trip-block { margin: 2px 0 0; }
.is-public .trip-block legend { font-size: 13px; color: #3a5a44; margin: 2px 0 6px; }
.is-public .with-ico { position: relative; }
.is-public .with-ico svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: #3a5a44;
  pointer-events: none;
}
.is-public .with-ico input,
.is-public .with-ico select { padding-left: 32px; min-width: 0; }
.is-public .place-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.is-public .place-pair[hidden],
.is-public .trip-block[hidden],
.is-public [hidden] { display: none !important; }
.is-public .place-pair + .place-pair { margin-top: 8px; }
.is-public .book-card .btn-block {
  height: 54px;
  min-height: 54px;
  margin-top: 16px;
  margin-bottom: 4px;
  border-radius: 12px;
}
@media (max-width: 390px) {
  .book-banner-note { font-size: 10px; }
  .is-public .book-card { padding-left: 8px; padding-right: 8px; }
  .is-public .opt-row { gap: 12px; }
  .is-public .pair-name .opt-row { gap: 6px 8px; }
}
@media (max-width: 330px) {
  .is-public .pair-name,
  .is-public .pair-phone {
    grid-template-columns: minmax(0, 1fr);
  }
}

.log-screen { max-width: 100%; min-width: 0; }
.log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.log-head h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.log-count { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.log-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
.log-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.log-search .btn { min-height: 36px; padding: 0 12px; font-size: 14px; flex: 0 0 auto; }
.log-note { margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.log-card { padding: 0; overflow: hidden; margin-bottom: 10px; }
.log-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.log-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}
.log-table th,
.log-table td {
  white-space: nowrap;
  text-align: left;
  vertical-align: middle;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.3;
}
.log-table th { color: var(--muted); font-weight: 600; background: #f7f3eb; }
.log-table tr:last-child td { border-bottom: 0; }
.log-empty { color: var(--muted); }
.log-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.log-pager .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.log-pager .is-off { opacity: 0.4; pointer-events: none; }
.log-page-no { font-size: 14px; white-space: nowrap; }
.log-per { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.log-per a, .log-per span { margin-left: 8px; }
.log-per .is-on { color: var(--tea-2); font-weight: 700; }
