* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a0d12;
  color: #e6e6e6;
  font-size: 14px;
  line-height: 1.5;
}
body { padding: 40px 24px; }
.container { max-width: 720px; margin: 0 auto; }

.login-wrap {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
}
.login-box {
  display: flex; flex-direction: column; gap: 14px;
  width: 320px; padding: 32px;
  background: #141821; border: 1px solid #1f242d; border-radius: 12px;
}
.login-box h1 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 6px; text-align: center; }
.login-box input {
  background: #0a0d12; color: #fff; border: 1px solid #2a3038; border-radius: 6px;
  padding: 12px 14px; font-size: 15px;
}
.login-box input:focus { outline: none; border-color: #3b82f6; }
.login-box .status { text-align: center; min-height: 18px; }

.hero { margin-bottom: 24px; }
.guide {
  background: #161b24; border: 1px solid #243042; border-radius: 8px;
  padding: 12px 16px; margin: 12px 0 0;
}
.guide summary {
  cursor: pointer; color: #7da3d9; font-size: 13px; user-select: none;
  list-style: none;
}
.guide summary::before { content: "▸ "; }
.guide[open] summary::before { content: "▾ "; }
.guide-list { margin: 12px 0 8px; padding-left: 22px; color: #c9d4e3; font-size: 14px; line-height: 1.8; }
.guide-list li { margin-bottom: 6px; }
.guide-note { color: #8a93a3; font-size: 13px; line-height: 1.7; margin: 6px 0 0; }
.hero h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 16px; color: #fff; }
.hero-input { display: flex; gap: 8px; }
.hero-input input {
  flex: 1; background: #141821; border: 1px solid #2a3038; border-radius: 8px;
  padding: 14px 16px; font-size: 16px; color: #fff;
}
.hero-input input::placeholder { color: #555c69; }
.hero-input input:focus { outline: none; border-color: #3b82f6; }

.card {
  background: #141821; border: 1px solid #1f242d; border-radius: 12px;
  padding: 24px; margin-bottom: 16px;
}
.hidden { display: none !important; }

.step-title {
  font-size: 13px; font-weight: 500; color: #6b7380;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}

.summary-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px 24px; }
.summary-cell { display: flex; flex-direction: column; gap: 4px; }
.summary-cell .label { font-size: 12px; color: #6b7380; }
.summary-cell .value { font-size: 15px; color: #e6e6e6; }
.summary-cell .value.big { font-size: 22px; font-weight: 600; color: #fbbf24; }
.summary-cell .value.mono { font-family: "SF Mono", Menlo, monospace; }
.summary-cell.highlight { background: #1a1f2a; border-radius: 8px; padding: 8px 12px; margin: -8px -12px; }

.vehicle-details { margin-top: 20px; border-top: 1px solid #1f242d; padding-top: 16px; }
.vehicle-details summary {
  cursor: pointer; color: #6b7380; font-size: 13px;
  list-style: none; user-select: none;
}
.vehicle-details summary::before { content: "▸ "; display: inline-block; transition: transform 0.15s; }
.vehicle-details[open] summary::before { transform: rotate(90deg); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { padding: 8px 0; text-align: left; }
th { color: #6b7380; font-weight: normal; border-bottom: 1px solid #1f242d; }
td { border-bottom: 1px solid #1f242d; }

.picker-wrap { background: #0a0d12; border: 1px solid #2a3038; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.time-picker {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 0 auto;
}
.picker-group {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 78px;
}
.picker-label { font-size: 11px; color: #6b7380; letter-spacing: 1px; }
.picker-arrow {
  width: 100%; padding: 6px 0;
  background: #1f242d; color: #c9d4e3; border: 1px solid #2a3038; border-radius: 6px;
  font-size: 16px; font-weight: 600;
  cursor: pointer; user-select: none;
  font-family: inherit;
}
.picker-arrow:hover { background: #2a3038; border-color: #3b82f6; }
.picker-arrow:active { background: #3b82f6; }
.picker-col {
  width: 100%; height: 108px;
  overflow-y: scroll; scroll-snap-type: y mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 36px 0;
  text-align: center;
  background: #141821; border: 1px solid #2a3038; border-radius: 6px;
  position: relative;
}
.picker-col::-webkit-scrollbar { display: none; }
.picker-col::before, .picker-col::after {
  content: ""; position: sticky; left: 0; right: 0;
  display: block; height: 1px; background: #3b82f6;
  z-index: 1;
}
.picker-col::before { top: 36px; }
.picker-col::after { top: 71px; margin-top: 35px; }
.picker-item {
  height: 36px; line-height: 36px;
  font-family: "SF Mono", Menlo, monospace; font-size: 20px;
  color: #555c69; scroll-snap-align: center;
  transition: color 0.15s, font-weight 0.15s;
}
.picker-item.active { color: #fff; font-weight: 600; }
.picker-item.near { color: #8a93a3; }
.picker-colon {
  font-family: "SF Mono", Menlo, monospace; font-size: 22px;
  color: #6b7380; align-self: center;
  margin-top: 18px;
}
.picker-preview {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #1f242d;
  justify-content: center; flex-wrap: wrap;
}
.picker-preview .label { font-size: 12px; color: #6b7380; }
.picker-preview .value { font-size: 18px; font-weight: 500; color: #e6e6e6; }
.countdown { font-family: "SF Mono", Menlo, monospace; font-size: 13px; color: #34d399; min-width: 90px; }
.countdown.warn { color: #fbbf24; }
.countdown.err { color: #f87171; }

.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  background: #1f242d; color: #c9d4e3; border: 1px solid #2a3038;
  padding: 6px 12px; border-radius: 14px; font-size: 12px; cursor: pointer;
  font-family: inherit;
}
.chip:hover { background: #2a3038; border-color: #3b82f6; }

.safety-row { margin: 12px 0; }
.safety-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 12px 14px; background: #0a0d12; border: 1px solid #2a3038; border-radius: 8px;
}
.safety-check input { width: 18px; height: 18px; margin-top: 1px; cursor: pointer; accent-color: #3b82f6; flex-shrink: 0; }
.safety-check span { font-size: 14px; color: #e6e6e6; }
.safety-check em { display: block; font-style: normal; font-size: 12px; color: #6b7380; margin-top: 2px; }
.safety-check.warn { border-color: #5a3838; background: #1a0e0e; }
.safety-check.warn em, .safety-check.warn span { color: #fbbf24; }

button {
  background: #3b82f6; color: #fff;
  border: none; border-radius: 6px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
button:disabled { background: #2a3038; color: #555c69; cursor: not-allowed; }
button:hover:not(:disabled) { background: #2563eb; }
button.primary.big {
  width: 100%; padding: 16px; font-size: 16px; font-weight: 600;
  margin-top: 8px;
}
button.primary.big:not(:disabled) { background: #3b82f6; }
button.primary.big.danger:not(:disabled) { background: #dc2626; }
button.primary.big.danger:not(:disabled):hover { background: #b91c1c; }
button.secondary {
  background: #1f242d; color: #c9d4e3; border: 1px solid #2a3038;
}
button.secondary:hover { background: #2a3038; }

.status { font-size: 13px; color: #6b7380; margin-top: 8px; }
.status.error { color: #f87171; }
.status.ok { color: #34d399; }

#friendly-log {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 320px; overflow-y: auto;
}
.friendly-line {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 15px; color: #e6e6e6;
  padding: 8px 12px; background: #1a1f2a; border-radius: 6px;
}
.friendly-time {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px; color: #6b7380; flex-shrink: 0;
}
.tech-log-details { margin-top: 16px; border-top: 1px solid #1f242d; padding-top: 12px; }
.tech-log-details summary { cursor: pointer; color: #6b7380; font-size: 12px; user-select: none; }
pre {
  background: #0a0d12; color: #b4c2d4;
  padding: 14px; border-radius: 6px; margin-top: 10px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px; line-height: 1.7;
  max-height: 360px; overflow-y: auto;
  border: 1px solid #1f242d;
}
#result { margin-top: 14px; font-size: 15px; font-weight: 500; }
#result.success { color: #34d399; }
#result.fail { color: #f87171; }
