:root { color-scheme: light; --ink: #263039; --muted: #75808a; --paper: #eef0f2; --line: #d8dde1; --green: #347e4d; --green-dark: #245f38; --green-soft: #e5f1e8; --red: #d93632; font-family: 'DM Sans', sans-serif; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.depot-topbar { position: sticky; z-index: 1000; top: 0; display: flex; min-height: 58px; align-items: center; gap: 22px; padding: 8px 20px; color: #fff; background: var(--green); box-shadow: 0 2px 6px rgba(30,48,35,.2); }
.depot-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: #fff; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; text-decoration: none; }
.depot-brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 3px; background: rgba(255,255,255,.12); }
.depot-kicker { color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.depot-topbar .depot-kicker { color: rgba(255,255,255,.72); }
h1, h2 { margin: 3px 0 0; font-family: 'Manrope', sans-serif; line-height: 1.1; }
h1 { font-size: 19px; } h2 { font-size: 16px; }
.depot-back-link { margin-left: auto; padding: 8px 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 2px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.depot-back-link:hover { background: rgba(0,0,0,.12); }
.depot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; min-height: calc(100vh - 58px); }
.depot-map-section { min-width: 0; padding: 16px; }
.depot-map-heading, .depot-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.depot-map-heading > span { color: var(--muted); font-size: 12px; }
.depot-map { height: calc(100vh - 106px); min-height: 460px; border: 1px solid #cbd3d8; background: #cad7cf; box-shadow: 0 1px 3px rgba(30,45,55,.09); }
.depot-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 12px; border-left: 1px solid var(--line); background: #fafafa; overflow: auto; }
.depot-panel { padding: 13px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.depot-panel-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.depot-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 21px; }
.depot-icon--bus { font-size: 13px; }
.depot-sidebar label { display: block; margin: 0 0 4px; color: #56636b; font-size: 11px; font-weight: 700; }
.depot-sidebar input, .depot-sidebar select { width: 100%; height: 33px; margin-bottom: 8px; padding: 0 8px; border: 1px solid #d5dce0; border-radius: 2px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; }
.depot-sidebar input:focus, .depot-sidebar select:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.depot-field-row { display: flex; gap: 7px; }
.depot-field-row > div { min-width: 0; flex: 1; }
.depot-primary-button, .depot-secondary-button { width: 100%; min-height: 34px; margin-top: 5px; border-radius: 2px; font-size: 12px; font-weight: 700; }
.depot-primary-button { border: 0; color: #fff; background: var(--green); }
.depot-primary-button:hover { background: var(--green-dark); }
.depot-primary-button:disabled { cursor: not-allowed; opacity: .5; }
.depot-secondary-button { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.depot-secondary-button:hover { border-color: var(--green); color: var(--green-dark); }
.depot-secondary-button.is-picking { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.depot-secondary-button.is-hidden { display: none; }
.purchase-summary { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 2px 0 7px; padding: 8px 0; border-top: 1px solid #edf0f1; border-bottom: 1px solid #edf0f1; color: var(--muted); font-size: 11px; }
.purchase-summary strong { color: var(--ink); text-align: right; }
.depot-count { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 2px; color: #fff; background: var(--green); font-size: 11px; font-weight: 700; }
.depot-list { display: grid; max-height: 280px; gap: 6px; overflow: auto; }
.depot-card { padding: 9px; border: 1px solid #e1e6e8; border-left: 3px solid var(--green); border-radius: 2px; background: #fff; }
.depot-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.depot-card-name { font-size: 12px; font-weight: 700; }
.depot-card-meta { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.depot-card-buses { margin-top: 5px; color: #56636b; font-size: 10px; }
.depot-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.depot-actions button { min-height: 26px; padding: 0 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--green-dark); background: #fff; font-size: 10px; font-weight: 700; }
.depot-actions button:hover { border-color: var(--green); background: var(--green-soft); }
.depot-actions button:last-child { color: #a93430; }
.depot-actions button:last-child:hover { border-color: #d7a09e; background: #fff6f5; }
.depot-empty { padding: 10px 0; color: var(--muted); font-size: 11px; }
.depot-message { min-height: 16px; margin: 0 2px; color: var(--green-dark); font-size: 11px; }
.depot-message.is-error { color: var(--red); }
.depot-map-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.35); font-size: 23px; line-height: 1; }
.bus-map-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #fff; border-radius: 6px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.32); font-size: 20px; line-height: 1; }
.depot-placement-marker { display: block; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50% 50% 50% 4px; background: #e3ae35; box-shadow: 0 2px 6px rgba(0,0,0,.42); transform: rotate(-45deg); animation: depot-placement-pulse 1.4s ease-in-out infinite; }
@keyframes depot-placement-pulse { 50% { box-shadow: 0 0 0 6px rgba(227,174,53,.24), 0 2px 6px rgba(0,0,0,.42); } }
@media (max-width: 900px) { .depot-layout { display: block; } .depot-map-section { padding: 12px; } .depot-map { height: 54vh; min-height: 360px; } .depot-sidebar { border-top: 1px solid var(--line); border-left: 0; overflow: visible; } }
@media (max-width: 520px) { .depot-topbar { gap: 10px; padding: 8px 10px; } .depot-brand > span:last-child { display: none; } .depot-map-heading { align-items: flex-start; flex-direction: column; gap: 5px; } .depot-actions { flex-direction: column; } }

body { display: flex; height: 100dvh; flex-direction: column; overflow: hidden; }
.depot-topbar { flex: 0 0 auto; }
.depot-layout { min-height: 0; grid-template-rows: minmax(0, 1fr); flex: 1 1 auto; overflow: hidden; }
.depot-map-section { display: flex; min-height: 0; flex-direction: column; overflow: hidden; }
.depot-map { height: auto; min-height: 0; flex: 1 1 auto; }
.depot-sidebar { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 900px) {
	.depot-layout { display: flex; flex-direction: column; }
	.depot-map-section { min-height: 220px; flex: 0 0 43%; padding: 12px; }
	.depot-map { height: auto; min-height: 0; flex: 1 1 auto; }
	.depot-sidebar { min-height: 0; flex: 1 1 auto; overflow-y: auto; border-top: 1px solid var(--line); border-left: 0; }
}