:root {
  --strm-ink: #18233b;
  --strm-blue: #2457d6;
  --strm-blue-dark: #173b98;
  --strm-sky: #edf4ff;
  --strm-green: #168447;
  --strm-red: #c92d36;
  --strm-amber: #b26100;
  --strm-border: #dce3ee;
  --strm-muted: #667085;
  --strm-bg: #f4f7fb;
}

.strm-driver-shell, .strm-driver-shell * { box-sizing: border-box; }
.strm-driver-shell { background: var(--strm-bg); color: var(--strm-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0 auto; max-width: 980px; min-height: 80vh; overflow-x: hidden; padding: 16px; width: 100%; }
.strm-driver-shell h1, .strm-driver-shell h2, .strm-driver-shell p { margin-top: 0; }
.strm-driver-header { align-items: center; background: linear-gradient(135deg, #173b98, #2778e8); border-radius: 18px; color: #fff; display: flex; justify-content: space-between; margin-bottom: 14px; padding: 20px; }
.strm-driver-header h1 { color: #fff; font-size: clamp(24px, 6vw, 36px); margin: 1px 0; }
.strm-driver-header p { margin: 0; opacity: .9; }
.strm-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.strm-header-actions { align-items: flex-end; display: flex; flex-direction: column; gap: 8px; }
.strm-header-actions a { color: #fff; font-weight: 700; }
.strm-online, .strm-offline { border-radius: 999px; font-size: 12px; font-weight: 800; padding: 5px 9px; }
.strm-online { background: #dcfce7; color: #126536; }
.strm-offline { background: #fff0d7; color: #873f00; }
.strm-driver-controls { background: #fff; border: 1px solid var(--strm-border); border-radius: 14px; display: grid; gap: 12px; grid-template-columns: 1fr 2fr; margin-bottom: 14px; padding: 14px; }
.strm-simple-driver-controls { max-width: 620px; }
.strm-driver-controls label, .strm-driver-modal-card label { color: var(--strm-muted); display: flex; flex-direction: column; font-size: 13px; font-weight: 700; gap: 5px; }
.strm-driver-controls input, .strm-driver-controls select, .strm-driver-modal-card input, .strm-driver-modal-card select, .strm-driver-modal-card textarea { background: #fff; border: 1px solid #bac5d5; border-radius: 9px; color: var(--strm-ink); font-family: inherit; font-size: 16px; min-height: 44px; padding: 9px 11px; width: 100%; }
.strm-route-summary { background: #fff; border: 1px solid var(--strm-border); border-radius: 16px; padding: 18px; }
.strm-summary-top { align-items: center; display: flex; justify-content: space-between; }
.strm-summary-top h2 { font-size: 24px; margin: 7px 0 2px; }
.strm-summary-top p { color: var(--strm-muted); margin: 0; }
.strm-progress-number { color: var(--strm-blue); font-size: 28px; font-weight: 900; }
.strm-progress { background: #e6ebf3; border-radius: 999px; height: 9px; margin: 15px 0; overflow: hidden; }
.strm-progress span { background: linear-gradient(90deg, var(--strm-blue), #3da2ef); border-radius: inherit; display: block; height: 100%; transition: width .3s; }
.strm-route-meta { color: var(--strm-muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 9px 18px; }
.strm-route-note { background: var(--strm-sky); border-radius: 10px; margin-top: 14px; padding: 12px; }
.strm-route-note p { margin: 4px 0 0; }
.strm-chip { background: #edf0f4; border-radius: 999px; color: #475569; display: inline-block; font-size: 11px; font-weight: 800; padding: 5px 9px; text-transform: uppercase; }
.strm-chip-published, .strm-chip-pending { background: #e7f0ff; color: #1d4ed8; }
.strm-chip-in_progress, .strm-chip-arrived { background: #fff0d2; color: #925100; }
.strm-chip-completed { background: #dcfce7; color: #166534; }
.strm-chip-skipped, .strm-chip-cancelled { background: #fee2e2; color: #991b1b; }
.strm-driver-toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.strm-btn { align-items: center; background: #fff; border: 1px solid #bac5d5; border-radius: 10px; color: var(--strm-ink); cursor: pointer; display: inline-flex; font: inherit; font-weight: 800; justify-content: center; min-height: 44px; padding: 10px 14px; text-decoration: none; }
.strm-btn:hover { filter: brightness(.97); }
.strm-btn:disabled { cursor: wait; opacity: .6; }
.strm-btn-primary { background: var(--strm-blue); border-color: var(--strm-blue); color: #fff; }
.strm-btn-success { background: var(--strm-green); border-color: var(--strm-green); color: #fff; }
.strm-btn-danger { background: #fff; border-color: #eca8ad; color: var(--strm-red); }
.strm-btn-map { background: var(--strm-ink); border-color: var(--strm-ink); color: #fff; }
.strm-btn-active { background: #dcfce7; border-color: #78c49c; color: #126536; }
.strm-current-panel { background: #fff; border: 2px solid #9ab8fc; border-radius: 18px; box-shadow: 0 8px 25px rgba(36, 87, 214, .1); margin: 15px 0 22px; padding: 20px; }
.strm-current-title { align-items: start; display: flex; gap: 15px; justify-content: space-between; margin-top: 8px; }
.strm-current-title h2 { font-size: clamp(25px, 7vw, 38px); margin: 0 0 5px; }
.strm-current-title p { color: var(--strm-muted); margin: 0; }
.strm-rating { background: #e8f3ff; border-radius: 9px; color: #1d4ed8; flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 7px 9px; }
.strm-fixed-time { background: #fff0d2; border-radius: 9px; color: #8a4800; font-weight: 900; margin: 14px 0; padding: 12px; }
.strm-warning { background: #fff1f2; border-left: 4px solid var(--strm-red); border-radius: 8px; margin: 14px 0; padding: 12px; }
.strm-instructions { background: var(--strm-sky); border-left: 4px solid var(--strm-blue); border-radius: 8px; margin: 14px 0; padding: 12px; }
.strm-warning p, .strm-instructions p { margin: 4px 0 0; }
.strm-contact { color: var(--strm-muted); }
.strm-timer-wrap { align-items: center; background: #111827; border-radius: 14px; color: #fff; display: grid; grid-template-columns: auto 1fr; margin: 15px 0; padding: 14px 16px; }
.strm-timer-wrap span, .strm-timer-wrap small { opacity: .8; }
.strm-timer-wrap strong { font-size: 36px; grid-row: 1 / 3; justify-self: end; }
.strm-timer-done { color: #ff9b9b; }
.strm-current-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.strm-current-actions > * { max-width: 100%; overflow-wrap: anywhere; }
.strm-start-hint { background: #fff7df; border: 1px solid #f1d48c; border-radius: 9px; color: #714100; margin-top: 14px; padding: 11px 12px; }
.strm-list-heading { align-items: end; display: flex; justify-content: space-between; }
.strm-list-heading h2 { margin-bottom: 6px; }
.strm-list-heading span { color: var(--strm-muted); font-size: 12px; margin-bottom: 8px; }
.strm-stop-list { display: grid; gap: 10px; }
.strm-stop-card { align-items: start; background: #fff; border: 1px solid var(--strm-border); border-left: 5px solid #87a7ee; border-radius: 13px; display: grid; gap: 12px; grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
.strm-stop-card.strm-stop-arrived { border-left-color: #e89b21; box-shadow: 0 3px 15px rgba(178, 97, 0, .1); }
.strm-stop-card.strm-stop-completed { border-left-color: var(--strm-green); opacity: .78; }
.strm-stop-card.strm-stop-skipped { border-left-color: var(--strm-red); opacity: .68; }
.strm-stop-card.strm-dragging { opacity: .35; }
.strm-stop-index { align-items: center; background: var(--strm-sky); border-radius: 50%; color: var(--strm-blue); display: flex; font-weight: 900; height: 34px; justify-content: center; width: 34px; }
.strm-stop-title { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.strm-stop-title strong { font-size: 17px; }
.strm-stop-content > p { color: var(--strm-muted); font-size: 13px; margin: 5px 0; }
.strm-stop-content small { color: var(--strm-red); display: block; }
.strm-reorder-handle { color: var(--strm-muted); cursor: grab; margin-right: 7px; }
.strm-stop-mini-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; min-width: 0; }
.strm-link-btn { align-items: center; background: none; border: 0; color: var(--strm-blue); cursor: pointer; display: inline-flex; font: inherit; font-size: 13px; font-weight: 800; min-height: 38px; overflow-wrap: anywhere; padding: 6px 2px; text-decoration: none; }
.strm-mobile-move { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.strm-text-danger { color: var(--strm-red); }
.strm-activity { background: #fff; border: 1px solid var(--strm-border); border-radius: 12px; margin-top: 18px; padding: 14px; }
.strm-activity summary { cursor: pointer; font-weight: 800; }
.strm-event { border-top: 1px solid var(--strm-border); padding: 10px 0; }
.strm-event:first-child { margin-top: 10px; }
.strm-event small { color: var(--strm-muted); display: block; margin-top: 3px; }
.strm-finished { padding: 25px; text-align: center; }
.strm-finished span { align-items: center; background: #dcfce7; border-radius: 50%; color: var(--strm-green); display: flex; font-size: 38px; height: 70px; justify-content: center; margin: 0 auto 12px; width: 70px; }
.strm-driver-alert { border-radius: 10px; font-weight: 700; margin-bottom: 9px; padding: 12px 14px; }
.strm-alert-info { background: #e7f0ff; color: #173b98; }
.strm-alert-success { background: #dcfce7; color: #166534; }
.strm-alert-warning { background: #fff0d2; color: #7d4300; }
.strm-alert-error { background: #fee2e2; color: #991b1b; }
.strm-driver-message { background: #fff; border: 1px solid var(--strm-border); border-radius: 14px; padding: 25px; text-align: center; }
.strm-driver-message.strm-error { color: var(--strm-red); }
.strm-loading { align-items: center; color: var(--strm-muted); display: flex; gap: 10px; justify-content: center; padding: 28px; }
.strm-loading[hidden] { display: none; }
.strm-loading span { animation: strm-spin .8s linear infinite; border: 3px solid #dce3ee; border-radius: 50%; border-top-color: var(--strm-blue); height: 24px; width: 24px; }
@keyframes strm-spin { to { transform: rotate(360deg); } }
.strm-driver-modal { align-items: center; background: rgba(15, 23, 42, .72); display: flex; inset: 0; justify-content: center; padding: 16px; position: fixed; z-index: 999999; }
.strm-driver-modal[hidden] { display: none; }
.strm-driver-modal-card { background: #fff; border-radius: 16px; max-height: 90vh; max-width: 520px; overflow-y: auto; padding: 22px; position: relative; width: 100%; }
.strm-driver-modal-close { align-items: center; background: none; border: 0; cursor: pointer; display: flex; font-size: 30px; height: 44px; justify-content: center; line-height: 1; position: absolute; right: 8px; top: 5px; width: 44px; }
.strm-driver-modal-card form { display: grid; gap: 13px; }
.strm-login-shell { align-items: center; display: flex; justify-content: center; min-height: 70vh; }
.strm-login-card { background: #fff; border: 1px solid var(--strm-border); border-radius: 18px; box-shadow: 0 15px 45px rgba(24, 35, 59, .12); max-width: 430px; padding: 28px; width: 100%; }
.strm-login-card h1 { font-size: 32px; margin: 5px 0; }
.strm-login-card form p { margin: 14px 0; }
.strm-login-card form label { display: block; font-weight: 700; }
.strm-login-card input[type=text], .strm-login-card input[type=password] { border: 1px solid #bac5d5; border-radius: 9px; font-size: 16px; min-height: 46px; padding: 10px; width: 100%; }
.strm-login-card input[type=submit] { background: var(--strm-blue); border: 0; border-radius: 9px; color: #fff; cursor: pointer; font-weight: 800; min-height: 46px; padding: 10px 16px; width: 100%; }

@media (max-width: 650px) {
  .strm-driver-shell { padding: 9px; }
  .strm-driver-header { border-radius: 14px; padding: 16px; }
  .strm-driver-controls { grid-template-columns: 1fr; }
  .strm-driver-toolbar .strm-btn { flex: 1 1 calc(50% - 8px); }
  .strm-current-actions .strm-btn { flex: 1 1 100%; }
  .strm-list-heading { align-items: start; flex-direction: column; }
  .strm-current-title { flex-direction: column; }
  .strm-timer-wrap strong { font-size: 31px; }
	.strm-stop-card { gap: 8px; grid-template-columns: 32px minmax(0, 1fr); padding: 11px 9px; }
	.strm-stop-index { height: 30px; width: 30px; }
	.strm-stop-title { align-items: flex-start; }
	.strm-stop-title strong { overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .strm-driver-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .strm-header-actions { align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
  .strm-driver-toolbar .strm-btn { flex-basis: 100%; }
  .strm-route-summary, .strm-current-panel { padding: 14px; }
  .strm-summary-top { align-items: flex-start; }
  .strm-progress-number { font-size: 23px; }
}
