:root {
  --bg: #f5f3ee;
  --ink: #202b30;
  --muted: #586568;
  --accent: #155e63;
  --paper: #fff;
  --line: #d4d9d7;
  --soft: #e9efec;
  --warning: #785017;
  --radius: 14px;
  --space: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    18px/1.65 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 10px;
}
button:hover {
  background: var(--soft);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #a04f24;
  outline-offset: 3px;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.danger {
  color: #983a28;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
}
h2 {
  font-size: 23px;
  line-height: 1.45;
  margin-bottom: 14px;
}
h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
p + p {
  margin-top: 12px;
}
small,
.small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
strong {
  font-weight: 700;
}
header {
  max-width: 1180px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  font-weight: 700;
  font-size: 21px;
  text-decoration: none;
  color: var(--ink);
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 13px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.layout {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 80vh;
}
.nav {
  padding: 32px 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  min-height: 48px;
}
.nav a[aria-current] {
  background: var(--accent);
  color: #fff;
}
.nav svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
main {
  min-width: 0;
  padding: 36px 32px 48px;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.pagehead p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 13px;
  background: var(--paper);
  white-space: nowrap;
  color: var(--muted);
}
.action-panel {
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
}
.action-letter {
  font-size: 112px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.action-panel h2 {
  font-size: 28px;
}
.action-panel p {
  font-size: 17px;
}
.action-panel .badge {
  background: transparent;
  color: white;
  border-color: #679497;
}
.action-reason {
  margin-top: 14px;
}
.meta-line {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 22px;
}
.panel p {
  font-size: 16px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row p {
  font-size: 16px;
}
.row .value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.callout {
  padding: 18px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 15px;
  margin: 20px 0;
}
.warning {
  background: #f6eedf;
  color: #674719;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.section {
  margin-top: 28px;
}
.time-item {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.time-item.current {
  color: var(--accent);
}
.time-item .small {
  margin-top: 6px;
}
.empty {
  padding: 38px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.empty p {
  max-width: 460px;
  margin: 12px auto;
  color: var(--muted);
  font-size: 16px;
}
.money-large {
  font-size: 42px;
  line-height: 1.3;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.map {
  height: 400px;
  position: relative;
  background: #e7ece7;
  border: 1px solid #c8d2ca;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.map svg {
  width: 100%;
  height: 100%;
  position: absolute;
}
.map button {
  position: absolute;
  transform: translate(-50%, -50%);
  min-height: 48px;
  padding: 7px 10px;
  font-size: 15px;
  z-index: 1;
}
.map button[aria-pressed="true"] {
  background: var(--accent);
  color: white;
}
.map-label {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 13px;
  color: #506353;
}
.region-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.progress {
  width: 100%;
  height: 9px;
  accent-color: var(--accent);
}
.snapshot {
  margin-top: 22px;
}
.snapshot h3 {
  font-size: 20px;
}
.file-button {
  display: inline-flex;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 10px;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid #a04f24;
  outline-offset: 3px;
}
input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.income-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  background: var(--line);
  margin: 20px 0;
  border-radius: 3px;
}
.income-bar span {
  background: var(--accent);
}
.income-bar span + span {
  background: #a46931;
}
.driverscreen {
  max-width: 850px;
  margin: auto;
  padding: 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.driverscreen .action-panel {
  display: block;
  text-align: center;
}
.driverscreen .action-letter {
  margin: 18px 0;
}
.driverscreen .action-panel h2 {
  font-size: 32px;
}
.driverscreen button {
  align-self: center;
}
.skip {
  position: fixed;
  top: -80px;
  left: 8px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  background: #202b30;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  max-width: min(90vw, 500px);
  z-index: 30;
  font-size: 15px;
}
footer {
  font-size: 13px;
  color: var(--muted);
  margin-top: 32px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 420px;
  width: 90%;
  padding: 28px;
}
dialog::backdrop {
  background: #0006;
}
dialog p {
  margin: 16px 0;
}
.loading {
  padding: 20px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.docs-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.device-line {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 760px) {
  header {
    padding: 17px 20px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 12px;
  }
  .header-tools {
    gap: 8px;
  }
  .header-tools .device-line {
    display: none;
  }
  .header-tools button {
    padding: 9px 12px;
    font-size: 14px;
  }
  .layout {
    display: block;
  }
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }
  .nav a {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    padding: 6px 2px;
    border-radius: 8px;
    min-height: 58px;
  }
  .nav svg {
    width: 22px;
    height: 22px;
  }
  main {
    padding: 26px 20px 110px;
  }
  .pagehead {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 25px;
  }
  .pagehead p {
    font-size: 14px;
  }
  .action-panel {
    padding: 28px 22px;
    display: block;
  }
  .action-letter {
    text-align: left;
    font-size: 96px;
    margin-bottom: 20px;
  }
  .action-panel h2 {
    font-size: 25px;
  }
  .action-panel p {
    font-size: 16px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-top: 28px;
  }
  .panel {
    padding: 20px;
  }
  .time-item {
    grid-template-columns: 95px 1fr;
    gap: 14px;
  }
  .map {
    height: 340px;
  }
  .map button {
    font-size: 13px;
    padding: 6px 8px;
  }
  .row {
    font-size: 16px;
  }
  .money-large {
    font-size: 38px;
  }
  .driverscreen {
    padding: 22px;
  }
  .driverscreen .action-letter {
    text-align: center;
  }
  .driverscreen .action-panel h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
