:root {
  color-scheme: dark;
  --bg: #080909;
  --panel: #0b0c0d;
  --panel-2: #111315;
  --text: #f4f4f2;
  --muted: #9b9b97;
  --border: #343434;
  --border-soft: #222426;
  --gold: #d6ad43;
  --gold-hover: #e2bd58;
  --green: #58bb2b;
  --green-dark: #2f7417;
  --danger: #ef6b5e;
  --success: #71c64a;
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input, select { font: inherit; }
.app-shell { min-height: 100%; display: grid; grid-template-columns: 455px 1fr; background: var(--bg); }
.panel {
  padding: 28px 26px;
  background: linear-gradient(180deg, #0b0c0d 0%, #080909 100%);
  border-right: 1px solid rgba(214, 173, 67, .42);
  overflow-y: auto;
  z-index: 500;
  scrollbar-color: #343434 #0b0c0d;
}
.brand { display: block; margin-bottom: 30px; }
.brand-logo { display: block; width: min(100%, 310px); height: auto; object-fit: contain; object-position: left center; }
.brand p { margin: 8px 0 0; color: var(--gold); font-size: 16px; font-weight: 650; }
.footnote { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.waypoint { position: relative; margin-bottom: 16px; }
.waypoint-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.waypoint-header label { font-size: 13px; font-weight: 500; color: #c7c7c4; }
.remove-point { border: 0; background: transparent; color: var(--danger); cursor: pointer; padding: 2px 4px; }
.search-wrap { position: relative; }
.search-input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 13px;
  background: #0b0d0f;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-input::placeholder { color: #70726f; }
.search-input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 173, 67, .12); }
.search-input.selected { border-color: var(--green); background: #0d130c; }
.suggestions {
  display: none;
  position: absolute;
  z-index: 1500;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #101214;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  max-height: 310px;
  overflow-y: auto;
}
.suggestions.open { display: block; }
.suggestion {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: #101214;
  color: var(--text);
  padding: 12px 13px;
  cursor: pointer;
}
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover { background: #191c1f; }
.suggestion strong { display: block; font-size: 14px; }
.suggestion span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.type-badge { display: inline-block !important; width: auto; margin-top: 7px; padding: 2px 7px; border-radius: 99px; background: #24272a; color: #bebeba !important; font-size: 9px !important; text-transform: uppercase; letter-spacing: .03em; }
button.primary, button.secondary { width: 100%; border-radius: 7px; min-height: 44px; cursor: pointer; font-weight: 700; transition: .18s ease; }
button.primary {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #c99e36 0%, #e1bc58 100%);
  color: #0b0c0d;
  margin-top: 17px;
  box-shadow: 0 7px 22px rgba(214,173,67,.10);
}
button.primary:hover { background: linear-gradient(135deg, #d6ad43 0%, #efca67 100%); transform: translateY(-1px); }
button.primary:disabled { opacity: .55; cursor: wait; transform: none; }
button.secondary { border: 1px solid var(--border); background: transparent; color: var(--text); }
button.secondary:hover { border-color: var(--gold); background: rgba(214,173,67,.05); }
#addWaypoint { margin-top: 1px; }
.settings-grid { display: grid; gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.settings-grid label { font-size: 13px; font-weight: 500; color: #c7c7c4; }
.settings-grid select { display: block; margin-top: 7px; }
.check-row { display: flex; align-items: center; gap: 10px; color: var(--text) !important; }
.check-row input { width: 18px; height: 18px; accent-color: var(--gold); }
.status { min-height: 20px; margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.summary { margin-top: 18px; border-top: 1px solid var(--border-soft); padding-top: 15px; }
.hidden { display: none !important; }
.metric { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: 19px; font-weight: 700; color: #fff; }
.notice { margin: 14px 0; padding: 11px 12px; border-radius: 7px; font-size: 12px; background: rgba(88,187,43,.08); color: var(--success); border: 1px solid rgba(88,187,43,.26); }
.notice.warning { background: rgba(214,173,67,.08); color: #efc85d; border-color: rgba(214,173,67,.34); }
#map { min-height: 100vh; background: #0b0d0f; }
.drag-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.route-reset { margin-top: 10px; border-color: rgba(214,173,67,.72) !important; }
.leaflet-interactive.route-drag-hit { cursor: grab; }
.leaflet-interactive.route-drag-hit:active { cursor: grabbing; }
.route-endpoint-marker { background: transparent; border: 0; }
.route-endpoint-marker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #17310f;
  color: #fff;
  border: 2px solid var(--green);
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(88,187,43,.18), 0 3px 11px rgba(0,0,0,.7);
}
.leaflet-control-zoom a {
  background: #111315 !important;
  color: #fff !important;
  border-bottom-color: #36383a !important;
}
.leaflet-control-zoom { border: 1px solid #36383a !important; box-shadow: 0 4px 14px rgba(0,0,0,.35) !important; }
.leaflet-control-attribution { background: rgba(8,9,9,.72) !important; color: #999 !important; }
.leaflet-control-attribution a { color: #c7a84f !important; }
.leaflet-tooltip { background: #121416; color: #fff; border: 1px solid #3a3c3f; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.leaflet-tooltip-top:before { border-top-color: #3a3c3f; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 370px 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: flex; flex-direction: column; }
  .panel { border-right: 0; border-bottom: 1px solid rgba(214,173,67,.35); overflow: visible; }
  #map { min-height: 58vh; }
  .brand-logo { width: 260px; }
}

/* Tryb kierowcy */
.driver-button { margin-top: 12px; }
.driver-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 22px; }
.driver-modal.hidden { display: none; }
.driver-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.driver-modal-panel { position: relative; width: min(1120px, 96vw); max-height: 94vh; overflow: auto; background: #111315; border: 1px solid #4a4a45; border-radius: 12px; padding: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.7); }
.driver-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 14px; }
.driver-toolbar > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.driver-toolbar strong { font-size: 18px; }
.driver-toolbar span { color: var(--muted); font-size: 12px; }
.driver-toolbar-actions { display: flex; gap: 8px; align-items: center; }
.driver-toolbar-actions button { width: auto; min-height: 38px; padding: 0 14px; }
.driver-close { border: 0; background: transparent; color: white; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 5px; }
.driver-card { width: 100%; max-width: 1080px; margin: 0 auto; background: #f6f4ed; color: #121212; border-radius: 7px; overflow: hidden; }
.driver-card-header { height: 86px; display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; background: #090a0a; color: #d6ad43; letter-spacing: .12em; font-size: 13px; font-weight: 800; }
.driver-card-header img { width: 260px; max-height: 48px; object-fit: contain; object-position: left center; }
.driver-addresses { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 20px 28px 12px; }
.driver-stop { display: flex; gap: 14px; align-items: center; min-height: 54px; }
.driver-stop-number { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; background: #4ea521; color: white; border: 3px solid #cdebbd; border-radius: 50%; font-weight: 900; }
.driver-stop small, .driver-stats small { display: block; color: #686864; font-size: 10px; letter-spacing: .08em; margin-bottom: 3px; }
.driver-stop strong { font-size: 16px; line-height: 1.25; }
.driver-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #d8d5ca; border-top: 1px solid #d8d5ca; border-bottom: 1px solid #d8d5ca; }
.driver-stats > div { background: #fff; padding: 16px 28px; }
.driver-stats strong { display: block; font-size: 24px; }
#driverMap { height: 570px; background: #e6e4dc; }
.driver-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 28px; background: #fff; }
.driver-options span { border: 1px solid #d2d0c7; background: #f7f6f1; padding: 7px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.driver-options span.warning { border-color: #d69228; background: #fff3d6; color: #8c5700; }
.driver-card-footer { padding: 13px 28px 17px; background: #111; color: #c7c7c4; font-size: 10px; line-height: 1.45; }
.driver-route-line { filter: drop-shadow(0 0 3px rgba(255,255,255,.9)); }
@media (max-width: 760px) {
  .driver-modal { padding: 0; align-items: stretch; }
  .driver-modal-panel { width: 100%; max-height: 100vh; border-radius: 0; padding: 10px; }
  .driver-toolbar { align-items: flex-start; flex-direction: column; }
  .driver-toolbar-actions { flex-wrap: wrap; }
  .driver-card-header { padding: 16px; }
  .driver-card-header img { width: 190px; }
  .driver-addresses { padding: 16px; }
  .driver-stats > div { padding: 12px; }
  .driver-stats strong { font-size: 18px; }
  #driverMap { height: 430px; }
}


.shared-driver-view .panel { display: none; }
.shared-driver-view .app-shell { grid-template-columns: 1fr; }
.shared-driver-view #map { display: none; }
.shared-driver-view .driver-modal-panel { width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; }
.shared-driver-view .driver-card { min-height: calc(100vh - 76px); }
.shared-driver-view #driverMap { min-height: 56vh; }

/* V1.5 — kompaktowy panel */
.app-shell {
  grid-template-columns: 340px minmax(0, 1fr);
  transition: grid-template-columns .24s ease;
}
.panel {
  position: relative;
  padding: 20px 18px 18px;
  transition: padding .24s ease;
}
.brand { margin-bottom: 20px; padding-right: 28px; }
.brand-logo { width: min(100%, 245px); }
.brand p { margin-top: 5px; font-size: 13px; }
.waypoint { margin-bottom: 11px; }
.waypoint-header { margin-bottom: 5px; }
.waypoint-header label, .settings-grid label { font-size: 11px; }
.search-input, select { min-height: 40px; padding: 0 11px; font-size: 13px; }
button.primary, button.secondary { min-height: 39px; font-size: 13px; }
.settings-grid { gap: 10px; margin-top: 14px; padding-top: 14px; }
.settings-grid select { margin-top: 5px; }
.check-row { gap: 8px; }
.check-row input { width: 16px; height: 16px; }
button.primary { margin-top: 12px; }
.drag-help { margin-top: 9px; font-size: 10px; line-height: 1.42; }
.status { margin-top: 8px; font-size: 10px; }
.summary { margin-top: 12px; padding-top: 10px; }
.metric { padding: 8px 0; }
.metric span { font-size: 11px; }
.metric strong { font-size: 16px; }
.notice { margin: 10px 0; padding: 8px 9px; font-size: 10px; }
.footnote { margin-top: 14px; font-size: 9px; }

.panel-toggle {
  position: absolute;
  top: 17px;
  right: 12px;
  z-index: 10;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #3b3b38;
  border-radius: 6px;
  background: #111315;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.panel-toggle:hover { border-color: var(--gold); color: var(--gold); }
.compact-brand, .compact-summary { display: none; }

.app-shell.panel-collapsed { grid-template-columns: 82px minmax(0, 1fr); }
.app-shell.panel-collapsed .panel { padding: 15px 10px; overflow: hidden; }
.app-shell.panel-collapsed .brand,
.app-shell.panel-collapsed .route-form,
.app-shell.panel-collapsed .summary,
.app-shell.panel-collapsed .footnote { display: none !important; }
.app-shell.panel-collapsed .panel-toggle {
  top: 15px;
  right: 9px;
  transform: rotate(180deg);
}
.app-shell.panel-collapsed .compact-brand {
  display: block;
  margin-top: 45px;
  text-align: center;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.05em;
}
.app-shell.panel-collapsed .compact-brand span { color: var(--gold); }
.app-shell.panel-collapsed .compact-summary:not(.hidden) {
  display: flex;
  height: calc(100vh - 92px);
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}
.compact-metric { width: 100%; text-align: center; padding: 10px 2px; border-top: 1px solid var(--border-soft); }
.compact-metric strong { display: block; font-size: 13px; line-height: 1.15; color: #fff; word-break: break-word; }
.compact-metric span { display: block; margin-top: 3px; font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.compact-action {
  width: 58px;
  min-height: 34px;
  padding: 5px 3px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0b0c0d;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}
.compact-action-secondary { background: transparent; color: #fff; border-color: #444; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 310px minmax(0, 1fr); }
  .app-shell.panel-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .panel-toggle { display: none; }
  .app-shell, .app-shell.panel-collapsed { display: flex; }
  .app-shell.panel-collapsed .brand,
  .app-shell.panel-collapsed .route-form,
  .app-shell.panel-collapsed .summary,
  .app-shell.panel-collapsed .footnote { display: block !important; }
  .app-shell.panel-collapsed .compact-brand,
  .app-shell.panel-collapsed .compact-summary { display: none !important; }
}

.history-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 24px; }
.history-modal.hidden { display: none; }
.history-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.history-panel { position: relative; width: min(900px, 96vw); max-height: 84vh; overflow: hidden; border: 1px solid #353535; border-radius: 14px; background: #0b0c0d; box-shadow: 0 28px 80px rgba(0,0,0,.55); }
.history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid #292929; }
.history-header strong { display: block; color: #fff; font-size: 20px; }
.history-header span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.history-list { max-height: calc(84vh - 80px); overflow: auto; padding: 10px 20px 20px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #222; }
.history-item-main { min-width: 0; }
.history-item-main strong { display: block; overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.history-item-main span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.history-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.history-actions .secondary, .history-open { width: auto; min-height: 34px; padding: 7px 11px; text-decoration: none; font-size: 11px; }
.history-delete { min-height: 34px; padding: 7px 11px; border: 1px solid #6b2b2b; border-radius: 7px; background: transparent; color: #ff8c8c; cursor: pointer; }
.history-empty { padding: 36px 0; color: var(--muted); text-align: center; }
@media (max-width: 650px) {
  .history-item { align-items: flex-start; flex-direction: column; }
  .history-actions { width: 100%; flex-wrap: wrap; }
}


/* POROVSKY v2 — mapa MapTiler Hybrid Dark */
html, body { height: 100%; overflow: hidden; }
body { margin: 0; }
.app-shell { height: 100vh; min-height: 100vh; overflow: hidden; }
.panel { height: 100vh; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b4b48 #0b0c0d; }
#map { position: relative; height: 100vh !important; min-height: 100vh !important; overflow: hidden; isolation: isolate; }
#map::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 43%, rgba(25, 83, 74, .06), transparent 42%),
    linear-gradient(135deg, rgba(0, 22, 39, .10), rgba(1, 20, 15, .18));
  mix-blend-mode: color;
}
#map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 451;
  pointer-events: none;
  box-shadow: inset 0 0 110px rgba(0, 8, 13, .46);
}
.premium-map .maplibregl-canvas {
  filter: brightness(.62) contrast(1.22) saturate(1.28) hue-rotate(7deg);
}
.fallback-map .leaflet-tile-pane { filter: brightness(.82) contrast(1.16) saturate(1.15); }
.maplibregl-map, .maplibregl-canvas-container, .maplibregl-canvas { width: 100%; height: 100%; }
.leaflet-map-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-control-container { position: relative; z-index: 700; }
.porovsky-route-line {
  filter:
    drop-shadow(0 0 2px rgba(3, 10, 4, .98))
    drop-shadow(0 0 7px rgba(85, 226, 39, .86))
    drop-shadow(0 0 15px rgba(67, 194, 30, .42));
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-endpoint-marker span {
  border-color: #70e93a;
  background: radial-gradient(circle at 36% 30%, #234a16, #071006 72%);
  box-shadow: 0 0 0 3px rgba(93, 221, 47, .22), 0 0 16px rgba(83, 227, 35, .8), 0 4px 14px rgba(0,0,0,.8);
}
.map-actions { position: absolute; top: 18px; right: 18px; z-index: 900; }
.map-action-button, .navigate-button {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(8, 10, 11, .88);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 750;
}
.map-action-button { min-height: 40px; padding: 0 15px; }
.navigate-button { position: absolute; right: 20px; bottom: 22px; z-index: 900; min-height: 48px; padding: 0 22px; font-size: 14px; }
.map-action-button:hover, .navigate-button:hover { border-color: #d6ad43; color: #f0cb68; transform: translateY(-1px); }
#map:fullscreen { width: 100vw; height: 100vh !important; min-height: 100vh !important; background: #061019; }
#map:fullscreen .map-actions { top: 20px; right: 20px; }
#map:fullscreen .navigate-button { right: 24px; bottom: 24px; }
@media (max-width: 760px) {
  html, body { overflow: auto; }
  .app-shell { height: auto; min-height: 100vh; overflow: visible; }
  .panel { height: auto; overflow: visible; }
  #map { height: 62vh !important; min-height: 62vh !important; }
  .map-actions { top: 10px; right: 10px; }
  .navigate-button { right: 12px; bottom: 12px; }
}

/* V2.1 — panel zgodny z wizualizacją POROVSKY */
.app-shell { grid-template-columns: 356px minmax(0,1fr); }
.panel {
  width: 356px;
  min-width: 356px;
  padding: 22px 20px 20px;
  background:
    radial-gradient(circle at 35% 0%, rgba(214,173,67,.035), transparent 30%),
    linear-gradient(180deg, #090b0c 0%, #070809 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 50px rgba(0,0,0,.28);
}
.brand { margin: 0 0 28px; padding-right: 38px; }
.brand-logo { width: 272px; max-height: 44px; object-fit: contain; object-position: left center; }
.brand-tagline { margin: 11px 0 0 !important; color: #f2c13e !important; font-size: 13px !important; font-weight: 750 !important; letter-spacing: .01em; }
.panel-toggle {
  top: 18px; right: 15px; width: 31px; height: 31px;
  border-radius: 7px; background: #101315; border-color: #31363a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 5px 14px rgba(0,0,0,.25);
}
.route-form { display: flex; flex-direction: column; }
.waypoint { margin-bottom: 14px; }
.waypoint-header label, .field-label { font-size: 11px; color: #dededb; font-weight: 650; }
.search-input {
  min-height: 43px; border-radius: 6px; border-color: #34383a;
  background: linear-gradient(180deg,#0c0f10,#0a0c0d);
  padding: 0 37px 0 13px; color: #f4f4f2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.search-input.selected { border-color: #4c9d26; background: #0b120c; box-shadow: 0 0 0 1px rgba(88,187,43,.12), inset 0 1px 0 rgba(255,255,255,.02); }
.search-wrap::after {
  content: '×'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #d5d5d1; opacity: 0; pointer-events: none; font-size: 18px;
}
.search-wrap:has(.search-input.selected)::after { opacity: .9; }
button.secondary {
  background: linear-gradient(180deg,#0d1011,#090b0c);
  border-color: #34383a; color: #f4f4f2; border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
button.secondary:hover { border-color: #666; background: #111416; }
.add-point-button { margin-top: -1px; letter-spacing: .01em; }
.settings-grid {
  margin-top: 15px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09);
  gap: 11px;
}
.vehicle-label { display: block; }
.field-label { display: block; margin-bottom: 7px; }
.select-shell { position: relative; display: block; }
.select-shell select { padding-left: 39px; background: linear-gradient(180deg,#101416,#0b0e10); border-color: #34383a; border-radius: 6px; font-weight: 650; }
.select-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #d6ad43; z-index: 2; font-size: 12px; pointer-events: none; }
.check-row { min-height: 27px; font-size: 12px !important; font-weight: 650; color: #f2f2ef; }
.check-row input { accent-color: #e1b63f; border-radius: 3px; }
.calculate-button {
  min-height: 42px !important; margin-top: 12px !important; border-radius: 6px !important;
  background: linear-gradient(180deg,#f0c44d 0%,#d8ad3d 100%) !important;
  color: #0a0a09 !important; font-weight: 850 !important;
  box-shadow: 0 8px 22px rgba(214,173,67,.13), inset 0 1px 0 rgba(255,255,255,.36);
}
.calculate-button:hover { background: linear-gradient(180deg,#f5cc5c,#dfb543) !important; transform: translateY(-1px); }
.button-icon { display: inline-flex; width: 18px; justify-content: center; align-items: center; margin-right: 3px; }
.truck-icon { font-size: 10px; color: #101010; }
.route-reset { border-color: rgba(214,173,67,.78) !important; color: #fff !important; }
.drag-help { color: #c1c1bd; font-size: 10px; line-height: 1.5; }
.status { color: #aaa9a5; }
.summary { border-top: 1px solid rgba(255,255,255,.09); padding-top: 9px; }
.metric { min-height: 39px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.metric span { display: flex; align-items: center; gap: 8px; color: #bdbdb8; }
.metric-icon { width: 15px; color: #efc44f; font-size: 15px; justify-content: center; }
.metric strong { font-size: 17px; letter-spacing: -.02em; }
.notice { border-radius: 6px; border: 1px solid rgba(88,187,43,.22); background: rgba(32,95,20,.24); color: #76d34b; }
.driver-button { margin-top: 13px !important; }
#copyResult, #routeHistory { margin-top: 6px; }
.footnote { display: none; }
.suggestions { background: #0e1112; border-color: #34383a; border-radius: 7px; }
.suggestion { border-bottom-color: rgba(255,255,255,.065); }
.suggestion:hover { background: #15191a; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 324px minmax(0,1fr); }
  .panel { width: 324px; min-width: 324px; padding: 19px 15px; }
  .brand-logo { width: 240px; }
}
@media (max-width: 760px) {
  .panel { width: 100%; min-width: 0; }
}
