:root {
  --navy: #10243e;
  --navy-2: #1c385b;
  --orange: #f36f21;
  --orange-soft: #fff1e7;
  --blue-soft: #eaf3ff;
  --green: #198754;
  --green-soft: #e8f7ef;
  --ink: #172033;
  --muted: #697386;
  --line: #e4e9f0;
  --surface: #ffffff;
  --bg: #f3f6f9;
  --shadow: 0 14px 35px rgba(16, 36, 62, .11);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--navy); }
body { margin: 0; min-height: 100vh; background: var(--bg); font-size: 16px; line-height: 1.5; word-break: keep-all; }
html, body, button, input, select, textarea, a { touch-action: manipulation; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--orange); font-size: 1.08rem; font-weight: 900; }
.auth-screen { display: grid; min-height: 100dvh; place-items: center; padding: 24px; background: radial-gradient(circle at top, #203b5e 0, var(--navy) 42%, #091728 100%); }
.auth-card { display: grid; width: min(100%, 410px); gap: 18px; padding: 30px; border-radius: 22px; background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.auth-card .brand-mark { width: 50px; height: 50px; }
.auth-card h1 { margin: 2px 0 0; font-size: 1.8rem; letter-spacing: -.02em; }
.auth-card > p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-card label span { display: block; margin-bottom: 7px; color: #596477; font-size: .86rem; font-weight: 800; }
.auth-card label span small { margin-left: 4px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.auth-card input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #dbe1e8; border-radius: 11px; font-size: 1rem; outline: 0; }
.auth-card input:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(28,56,91,.08); }
.auth-card input[aria-invalid="true"] { border-color: #c45151; box-shadow: 0 0 0 3px rgba(196,81,81,.09); }
.auth-submit { width: 100%; background: var(--orange); }
.auth-submit:disabled { cursor: wait; opacity: .68; }
.auth-error { min-height: 20px; color: #b23b3b !important; font-size: .86rem; font-weight: 750; }
.auth-link { justify-self: center; color: var(--navy); font-size: .88rem; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { width: 100%; min-height: 100vh; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.network-banner { position: sticky; z-index: 30; top: 0; display: grid; gap: 2px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; color: #6c3e00; background: #fff0c2; box-shadow: 0 3px 10px rgba(31,25,10,.12); text-align: center; }
.network-banner strong { font-size: .86rem; }
.network-banner span { font-size: .78rem; line-height: 1.4; }
.network-banner button { justify-self: center; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; padding: 6px 11px; font: inherit; font-size: .78rem; font-weight: 800; }
.app-update-banner { position: fixed; z-index: 35; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 696px; margin: auto; padding: 12px 13px; border: 1px solid #efad7d; border-radius: 15px; color: #fff; background: #8a3d0c; box-shadow: 0 12px 32px rgba(16,36,62,.28); }
.app-update-banner > div { display: grid; min-width: 0; }
.app-update-banner strong { font-size: .84rem; }
.app-update-banner span { color: #ffe5d3; font-size: .72rem; }
.app-update-banner button { flex: 0 0 auto; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; color: #7b3509; background: #fff; font-size: .78rem; font-weight: 900; }
.app-shell.network-offline .topbar { top: 58px; }
.topbar { position: sticky; z-index: 18; top: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top)) 20px 15px; color: #fff; background: var(--navy); }
.eyebrow { margin: 0 0 4px; color: #8591a2; font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.topbar .eyebrow { color: #aebbc9; }
.topbar h1 { margin: 0; font-size: 1.55rem; letter-spacing: -.02em; }
.driver-chip { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px 6px 7px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-weight: 700; }
.driver-chip svg { width: 17px; height: 17px; }
.driver-chip-account { display: grid; min-width: 0; text-align: left; }
.driver-chip-account strong { font-size: .88rem; }
.driver-chip-account small { max-width: 145px; overflow: hidden; color: #c9d2dc; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--navy); background: #fff; font-size: .84rem; }
main { max-width: 720px; margin: 0 auto; }
.view { display: none; padding: 18px 16px 30px; }
.view.active { display: block; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: .4; transform: translateY(3px); } }
.summary-card { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; overflow: hidden; margin-bottom: 24px; padding: 18px 16px 23px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.summary-card p { margin: 0 0 4px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.summary-card strong { display: flex; align-items: baseline; gap: 5px; font-size: 1.9rem; letter-spacing: -.05em; }
.summary-card small { font-size: .86rem; font-weight: 700; letter-spacing: 0; }
.summary-divider { width: 1px; height: 42px; background: var(--line); }
.progress-track { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; background: #e6ebf1; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--orange); transition: width .3s ease; }
.driver-item-summary { margin: 0 0 24px; padding: 15px; border: 1px solid #dce5ee; border-radius: 18px; background: #f7fafc; box-shadow: 0 7px 22px rgba(23,32,51,.045); }
.driver-item-summary-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.driver-item-summary-head .eyebrow { margin-bottom: 2px; color: var(--orange); }
.driver-item-summary-head h2 { margin: 0; font-size: 1.13rem; }
.driver-item-summary-head small { display: block; margin-top: 4px; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.driver-item-summary-actions { display: grid; flex: 0 0 auto; justify-items: end; gap: 5px; }
.driver-item-summary-actions > span { color: var(--muted); font-size: .72rem; font-weight: 750; }
.driver-item-filter-clear { min-height: 32px; padding: 0; border: 0; color: var(--orange); background: transparent; font-size: .74rem; font-weight: 850; text-decoration: underline; }
.driver-item-aggregate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.driver-item-aggregate-card { display: block; width: 100%; min-width: 0; padding: 10px; border: 1px solid #e1e7ee; border-radius: 12px; color: inherit; background: #fff; text-align: left; }
.driver-item-aggregate-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.driver-item-aggregate-card[aria-pressed="true"] { border-color: var(--orange); background: #fff4e9; box-shadow: inset 0 0 0 1px var(--orange); }
.driver-item-aggregate-card > strong { display: block; overflow: hidden; margin-bottom: 7px; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.driver-item-aggregate-counts { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #e5e9ee; border-radius: 9px; }
.driver-item-aggregate-counts > span { min-width: 0; padding: 5px 2px; border-right: 1px solid #e5e9ee; text-align: center; }
.driver-item-aggregate-counts > span:last-child { border-right: 0; }
.driver-item-aggregate-counts small { display: block; color: var(--muted); font-size: .61rem; font-weight: 750; }
.driver-item-aggregate-counts b { display: block; margin-top: 1px; color: var(--navy); font-size: .83rem; font-weight: 900; }
.driver-item-aggregate-counts .remaining b { color: var(--orange); }
.driver-item-summary-empty { grid-column: 1 / -1; margin: 0; padding: 13px 8px; color: var(--muted); font-size: .82rem; text-align: center; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 2px 14px; }
.section-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.count-badge { padding: 5px 9px; border-radius: 999px; color: var(--navy-2); background: #e6edf5; font-size: .8rem; font-weight: 800; }
.active-location-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -10px 0 20px; padding: 13px 14px; border: 1px solid #f2b88e; border-radius: 14px; background: var(--orange-soft); }
.active-location-banner > div { display: grid; min-width: 0; gap: 3px; }
.active-location-banner strong { color: #8f430f; font-size: .9rem; }
.active-location-banner span { color: #7d5a42; font-size: .8rem; line-height: 1.45; }
.active-location-banner[data-status="success"] { border-color: #b8dfca; background: var(--green-soft); }
.active-location-banner[data-status="success"] strong { color: #176a45; }
.active-location-banner[data-status="success"] span { color: #2d6750; }
.active-location-banner[data-status="error"] { border-color: #efb4b4; background: #fff0f0; }
.active-location-banner[data-status="error"] strong { color: #a22c2c; }
.active-location-banner[data-status="error"] span { color: #7e4747; }
.route-planner { margin: 0 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(23,32,51,.055); }
.route-planner-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.route-planner-head .eyebrow { margin-bottom: 2px; color: var(--orange); }
.route-planner-head h2 { margin: 0; font-size: 1.22rem; }
.driver-route-map { position: relative; z-index: 0; width: 100% !important; height: 290px !important; overflow: hidden; border: 1px solid #dce3eb; border-radius: 14px; background: #edf1f5; }
.driver-route-map .map-empty { display: grid; width: 100%; height: 100%; min-height: 180px; place-items: center; padding: 20px; color: var(--muted); text-align: center; font-size: .84rem; line-height: 1.55; }
.driver-route-map canvas { outline: 0; }
.driver-route-number { display: grid; width: 32px; height: 32px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--navy); box-shadow: 0 3px 10px rgba(16,36,62,.3); font-size: .78rem; font-weight: 900; }
.driver-route-number.active { background: var(--orange); }
.driver-current-location { display: block; width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; background: #2f80ed; box-shadow: 0 0 0 4px rgba(47,128,237,.2), 0 2px 8px rgba(16,36,62,.3); }
.route-map-status { min-height: 20px; margin: 9px 1px 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.route-map-status.warning { color: #9b5b12; }
.route-planner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.route-planner-actions button { width: 100%; }
.route-planner-actions button:disabled { cursor: default; opacity: .5; }
.route-planner-help { margin: 10px 1px 12px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.route-planner-list { display: grid; max-height: 390px; gap: 8px; overflow-y: auto; overscroll-behavior: contain; }
.route-stop { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 9px 9px 9px 10px; border: 1px solid #e3e8ee; border-radius: 13px; background: #fafbfd; }
.route-stop.in-progress { border-color: #f3b386; background: var(--orange-soft); }
.route-stop-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: var(--navy); font-size: .82rem; font-weight: 900; }
.route-stop.in-progress .route-stop-number { background: var(--orange); }
.route-stop-info { min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.route-stop-info strong { display: block; overflow: hidden; margin-bottom: 2px; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.route-stop-info span { display: block; overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.route-stop-info small { display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 999px; color: #8b450f; background: #ffe5d1; font-size: .67rem; font-weight: 800; }
.route-stop-controls { display: grid; grid-template-columns: 42px 42px; gap: 5px; }
.route-stop-controls button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #d8e0e9; border-radius: 10px; color: var(--navy); background: #fff; font-size: 1.05rem; font-weight: 900; }
.route-stop-controls button:disabled { color: #aeb6c1; background: #eef1f4; cursor: default; opacity: .66; }
.route-planner-empty { padding: 18px 12px; border-radius: 12px; color: var(--muted); background: #f4f6f8; font-size: .82rem; text-align: center; }
.toolbar { margin-bottom: 13px; }
.search-box { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.search-box:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(28,56,91,.08); }
.search-box svg { width: 20px; color: #8390a0; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.filters { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; }
.filter, .payment-filter { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: .86rem; font-weight: 750; }
.filter.active, .payment-filter.active { border-color: var(--navy); color: #fff; background: var(--navy); }
.payment-filters { display: flex; align-items: center; gap: 7px; margin-top: 8px; overflow-x: auto; }
.filter-label { flex: 0 0 auto; padding-right: 2px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.delivery-list { display: grid; gap: 11px; }
.delivery-card { width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; text-align: left; color: inherit; background: #fff; box-shadow: 0 3px 10px rgba(23,32,51,.035); }
.delivery-card.completed { opacity: .64; }
.delivery-card-main { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: start; padding: 15px; }
.sequence { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--navy); font-weight: 850; }
.completed .sequence { background: var(--green); }
.delivery-card.completed.exception { border-color: #e5b46f; opacity: 1; background: #fffaf1; }
.completed.exception .sequence { background: #b66a14; }
.delivery-card.in-progress { border-color: #f7b282; box-shadow: 0 6px 18px rgba(243,111,33,.1); }
.in-progress .sequence { background: var(--orange); }
.delivery-info { min-width: 0; }
.delivery-info h3 { margin: 1px 0 5px; font-size: 1rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.delivery-info p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.delivery-meta { min-width: 116px; max-width: 142px; text-align: right; }
.delivery-meta strong { display: block; color: var(--ink); font-size: .92rem; }
.status { display: inline-flex; margin-top: 7px; padding: 4px 7px; border-radius: 6px; color: #9b460e; background: var(--orange-soft); font-size: .75rem; font-weight: 800; }
.status.paid { color: #177048; background: var(--green-soft); }
.status.moving { color: #9b460e; background: var(--orange-soft); }
.delivery-item-preview { display: grid; gap: 2px; margin-top: 9px; padding-top: 7px; border-top: 1px solid #e7ebf0; color: #334156; font-size: .7rem; line-height: 1.3; }
.delivery-item-preview small { color: var(--orange); font-size: .63rem; font-weight: 900; }
.delivery-item-preview > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-item-preview b { font-weight: 900; }
.delivery-item-preview em { color: var(--muted); font-size: .66rem; font-style: normal; font-weight: 750; }
.delivery-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; border-top: 1px solid #edf0f4; color: #778294; font-size: .8rem; }
.delivery-card-foot span:last-child { color: var(--navy-2); font-weight: 750; }
.delivery-completion-time, .order-completion-time { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--navy); font-size: .85rem; line-height: 1.5; font-weight: 800; }
.delivery-card > .delivery-completion-time { margin: 0 15px 10px; padding: 8px 10px; border-radius: 8px; background: #eef8f1; text-align: left; }
.order-completion-time { margin: 8px 0; }
.delivery-completion-time time, .order-completion-time time { white-space: nowrap; }
.completion-time-cell { grid-column: 1 / -1; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 17px; color: var(--green); background: var(--green-soft); font-size: 1.5rem; font-weight: 900; }
.empty-state h3 { margin: 0 0 7px; color: var(--ink); }
.empty-state p { margin: 0; font-size: .9rem; }
.bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(70px + env(safe-area-inset-bottom)); padding: 7px 12px env(safe-area-inset-bottom); border-top: 1px solid rgba(16,36,62,.09); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.nav-item { display: flex; min-width: 0; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; color: #8b95a5; background: transparent; font-size: .76rem; font-weight: 750; }
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--orange); }
.reservation-title-row { margin: 3px 2px 14px; }
.reservation-title-row h2 { font-size: 1.55rem; }
.reservation-overview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.reservation-overview article { display: grid; gap: 2px; min-width: 0; padding: 13px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.reservation-overview span { overflow: hidden; color: var(--muted); font-size: .72rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.reservation-overview strong { color: var(--navy); font-size: 1.45rem; letter-spacing: -.03em; }
.reservation-overview .pending { border-color: #f1bf9a; background: var(--orange-soft); }
.reservation-overview .approval { border-color: #91ace0; background: #f3f7ff; }
.reservation-overview .pending strong, .reservation-overview .remaining strong { color: var(--orange); }
.reservation-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin-bottom: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.reservation-toolbar > div { display: grid; min-width: 0; }
.reservation-toolbar > div span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.reservation-toolbar > div strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.reservation-toolbar input, .reservation-list-controls input, .reservation-list-controls select { width: 100%; height: 44px; min-width: 0; padding: 0 11px; border: 1px solid #d7dee7; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; }
.reservation-toolbar input:focus, .reservation-list-controls input:focus, .reservation-list-controls select:focus, .pickup-reservation-form input:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(28,56,91,.08); }
.reservation-sync-status { min-height: 20px; margin: -4px 2px 10px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.reservation-sync-status[data-state="loading"] { color: #8b5b1f; }
.reservation-sync-status[data-state="error"] { color: #a33f3f; }
.reservation-sync-status[data-state="success"] { color: #27704f; }
.reservation-list-panel, .reservation-summary-panel, .reservation-form-panel { margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 5px 17px rgba(23,32,51,.045); }
.reservation-list-head, .reservation-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.reservation-list-head .eyebrow, .reservation-panel-head .eyebrow { margin-bottom: 2px; color: var(--orange); }
.reservation-list-head h3, .reservation-panel-head h3 { margin: 0; font-size: 1.06rem; }
.reservation-list-controls { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(105px, .8fr) minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
.reservation-phone-search input { border-color: #eab58d; background: #fff9f4; font-weight: 800; }
.reservation-list { display: grid; gap: 9px; }
.pickup-reservation-card { display: grid; gap: 12px; padding: 13px; border: 1px solid #e2e7ed; border-radius: 14px; background: #fff; }
.pickup-reservation-card.picked_up { border-color: #cfe7da; background: #f8fcfa; }
.pickup-reservation-card.cancelled { opacity: .72; background: #f6f7f9; }
.pickup-reservation-card.approval_pending { border-color: #91ace0; background: #f3f7ff; }
.pickup-approval-notice { margin: 8px 0; color: #194d96; font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.pickup-reservation-main { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-width: 0; }
.pickup-phone { display: grid; }
.pickup-phone span { color: var(--muted); font-size: .68rem; font-weight: 750; }
.pickup-phone strong { color: var(--navy); font-size: 1.24rem; letter-spacing: .06em; }
.pickup-reservation-items { display: grid; min-width: 0; gap: 6px; color: #344154; font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; }
.pickup-reservation-items b { color: var(--orange); }
.pickup-reservation-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 5px; border-bottom: 1px dashed #e1e6ec; }
.pickup-reservation-item-row > span { display: grid; min-width: 0; }
.pickup-reservation-item-row strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.pickup-reservation-item-row small { color: var(--muted); font-size: .69rem; font-weight: 700; }
.pickup-reservation-item-row b { flex: 0 0 auto; white-space: nowrap; }
.pickup-reservation-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding: 8px 9px; border-radius: 9px; background: var(--orange-soft); }
.pickup-reservation-total span { color: #704426; font-size: .73rem; font-weight: 850; }
.pickup-reservation-total strong { color: var(--orange); font-size: 1.02rem; font-weight: 950; white-space: nowrap; }
.pickup-reservation-meta { display: grid; justify-items: start; gap: 4px; }
.pickup-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #82521c; background: #fff1d7; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.pickup-status.picked_up { color: #176944; background: var(--green-soft); }
.pickup-status.cancelled { color: #8a4a4a; background: #f8e8e8; }
.pickup-status.approval_pending { color: #194d96; background: #e1ebff; }
.pickup-reservation-meta small { color: var(--muted); font-size: .7rem; }
.pickup-reservation-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 7px; }
.pickup-reservation-actions button { min-height: 44px; padding: 0 8px; border-radius: 10px; font-size: .8rem; font-weight: 850; }
.pickup-reservation-actions button:disabled { cursor: wait; opacity: .5; }
.pickup-complete-button { border: 0; color: #fff; background: var(--green); }
.pickup-cancel-button { border: 1px solid #e2caca; color: #9a4040; background: #fff; }
.pickup-delete-button { border: 1px solid #d8a1a1; color: #9d3030; background: #fff1f1; }
.reservation-empty { display: grid; gap: 5px; padding: 34px 14px; color: var(--muted); text-align: center; }
.reservation-empty strong { color: var(--ink); }
.reservation-empty span { font-size: .8rem; }
.reservation-aggregate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reservation-aggregate-card { min-width: 0; padding: 12px; border: 1px solid #e5eaf0; border-radius: 12px; background: #fafbfd; }
.reservation-aggregate-card > strong { display: block; overflow: hidden; margin-bottom: 9px; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.reservation-aggregate-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; overflow: hidden; border: 1px solid #e5e9ee; border-radius: 9px; background: #fff; }
.reservation-aggregate-card dl div { min-width: 0; padding: 7px 3px; border-right: 1px solid #e5e9ee; text-align: center; }
.reservation-aggregate-card dl div:last-child { border-right: 0; }
.reservation-aggregate-card dt { color: var(--muted); font-size: .64rem; font-weight: 750; }
.reservation-aggregate-card dd { margin: 1px 0 0; color: var(--navy); font-size: 1rem; font-weight: 900; }
.reservation-aggregate-card .remaining dd { color: var(--orange); }
.reservation-summary-empty { grid-column: 1 / -1; margin: 0; padding: 24px 10px; color: var(--muted); font-size: .8rem; text-align: center; }
.reservation-form-panel { padding: 0; overflow: hidden; }
.reservation-form-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 15px; color: var(--navy); cursor: pointer; font-weight: 900; list-style: none; }
.reservation-form-panel > summary::-webkit-details-marker { display: none; }
.reservation-form-panel > summary::after { content: "+"; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #fff; background: var(--orange); font-size: 1.25rem; }
.reservation-form-panel[open] > summary::after { content: "−"; }
.reservation-form-panel > summary small { margin-left: auto; color: var(--muted); font-size: .7rem; font-weight: 650; }
.reservation-form-content { padding: 15px; border-top: 1px solid var(--line); }
.pickup-reservation-form { display: grid; gap: 13px; }
.reservation-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pickup-reservation-form label > span { display: block; margin-bottom: 6px; color: #4f5b6e; font-size: .8rem; font-weight: 800; }
.pickup-reservation-form input { width: 100%; height: 45px; min-width: 0; padding: 0 11px; border: 1px solid #d7dee7; border-radius: 10px; outline: 0; color: var(--ink); background: #fbfcfd; }
.pickup-item-fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.pickup-item-fieldset legend { padding: 0 5px; color: var(--navy); font-size: .87rem; font-weight: 900; }
.pickup-item-fieldset > p { margin: 0 0 10px; color: var(--muted); font-size: .74rem; }
.pickup-item-picker { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.pickup-item-choice { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #e2e7ed; border-radius: 11px; background: #fafbfd; }
.pickup-item-choice.selected { border-color: rgba(243,111,33,.55); background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.pickup-item-choice.unavailable { border-style: dashed; }
.pickup-item-choice > label:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; cursor: pointer; }
.pickup-item-choice .pickup-item-check { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; accent-color: var(--orange); }
.pickup-item-choice label span { display: grid; min-width: 0; margin: 0; }
.pickup-item-choice strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.pickup-item-choice small { color: var(--muted); font-size: .69rem; font-weight: 700; }
.pickup-item-choice .pickup-item-line-total { margin-top: 2px; color: var(--orange); font-weight: 850; }
.pickup-quantity-stepper { display: grid; grid-template-columns: 44px 44px 44px; align-items: center; gap: 4px; justify-self: end; }
.pickup-quantity-button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid #d5dde6; border-radius: 10px; color: var(--navy); background: #fff; font-size: 1.25rem; font-weight: 900; line-height: 1; user-select: none; -webkit-user-select: none; }
.pickup-quantity-button:active:not(:disabled) { color: #fff; background: var(--orange); transform: translateY(1px); }
.pickup-quantity-button:disabled { color: #aeb6c1; background: #eef1f4; cursor: default; }
.pickup-item-choice .pickup-item-quantity { width: 44px; height: 44px; padding: 0 3px; text-align: center; font-size: 16px; font-weight: 850; appearance: textfield; }
.pickup-item-choice .pickup-item-quantity::-webkit-inner-spin-button, .pickup-item-choice .pickup-item-quantity::-webkit-outer-spin-button { margin: 0; appearance: none; }
.pickup-item-choice .pickup-item-quantity:disabled { color: #9aa3af; background: #eef1f4; }
.pickup-payment-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; border: 1px solid #f2c9ad; border-radius: 12px; background: var(--orange-soft); }
.pickup-payment-total span { color: #704426; font-size: .82rem; font-weight: 850; }
.pickup-payment-total strong { color: var(--orange); font-size: 1.28rem; font-weight: 950; }
.reservation-form-error { min-height: 20px; margin: -2px 0 0; color: #b23b3b; font-size: .8rem; font-weight: 750; }
.reservation-form-actions { display: flex; gap: 8px; }
.reservation-form-actions button { flex: 1; }
.primary-button.reservation-save-button { background: var(--orange); }
.reservation-form-actions button:disabled { cursor: wait; opacity: .6; }
.calculator-item-empty { margin: 0; padding: 22px 8px; color: var(--muted); font-size: .8rem; text-align: center; }
.calc-title-row, .data-title-row { margin: 3px 2px 20px; }
.calc-title-row h2, .data-title-row h2 { font-size: 1.55rem; }
.text-button, .format-link, .danger-link { border: 0; color: var(--muted); background: transparent; font-size: .83rem; font-weight: 700; }
.calc-list { display: grid; gap: 10px; }
.calc-summary { margin-bottom: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.calc-summary-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.calc-summary-head h3 { margin: 0; font-size: 1rem; }
.calc-summary-head span { color: var(--muted); font-size: .85rem; }
.calc-summary ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.calc-summary li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.calc-summary li strong { min-width: 0; overflow-wrap: anywhere; }
.calc-summary li span { white-space: nowrap; }
.calc-summary li .calc-summary-quantity { color: var(--orange); font-weight: 850; }
.calc-summary p, .calculator-confirm-hint { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
.calculator-confirm-hint { grid-column: 1 / -1; margin: 0; }
.custom-item-form .calculator-confirm { background: var(--orange); }
.calc-item { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.calc-item h3 { margin: 0 0 4px; font-size: 1rem; }
.calc-item p { margin: 0; color: var(--muted); font-size: .82rem; }
.stepper { display: grid; grid-template-columns: 44px 44px 44px; align-items: center; }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: #f7f9fb; font-size: 1.3rem; }
.stepper output { text-align: center; font-weight: 850; }
.custom-item-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 18px 0 98px; padding: 16px; border: 1px dashed #c9d1dc; border-radius: 16px; background: rgba(255,255,255,.65); }
.form-title { grid-column: 1 / -1; font-weight: 850; }
.custom-item-form label span { display: block; margin: 0 0 6px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.custom-item-form input { width: 100%; height: 43px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.custom-item-form button { grid-column: 1 / -1; }
.secondary-button, .file-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 0; border-radius: 11px; color: #fff; background: var(--navy); font-weight: 800; text-decoration: none; }
.total-dock { position: fixed; z-index: 10; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 14px; display: flex; align-items: center; justify-content: space-between; max-width: 692px; margin: auto; padding: 14px 18px; border-radius: 17px; color: #fff; background: var(--navy); box-shadow: 0 15px 30px rgba(16,36,62,.28); }
.total-dock span { display: block; margin-bottom: 3px; color: #b9c5d2; font-size: .75rem; }
.total-dock strong { font-size: 1rem; }
.total-price { text-align: right; }
.total-price strong { color: #ff9c5f; font-size: 1.35rem; }
.settings-card { display: flex; gap: 13px; margin-bottom: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.settings-icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: .82rem; font-weight: 900; }
.settings-icon.navy { background: var(--navy); }
.settings-icon.orange { background: var(--orange); }
.settings-icon.blue { color: #24609b; background: var(--blue-soft); }
.settings-content { flex: 1; min-width: 0; }
.settings-content h3 { margin: 1px 0 5px; font-size: 1rem; }
.settings-content p { margin: 0 0 12px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.settings-content .install-help { margin-top: 10px; padding: 10px; border-radius: 9px; color: var(--navy-2); background: var(--blue-soft); }
.driver-version-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.driver-version-list > div { padding: 10px; border-radius: 10px; background: #f3f6f9; }
.driver-version-list dt { color: var(--muted); font-size: .76rem; }
.driver-version-list dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: .95rem; font-weight: 850; }
.driver-version-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.driver-version-actions > button { min-height: 42px; padding: 9px 12px; font-size: .82rem; }
.select-label select { width: 100%; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #f8fafc; }
.file-button { position: relative; min-width: 110px; background: var(--orange); font-size: .84rem; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.format-link { margin-left: 5px; text-decoration: underline; }
.secondary-button.compact { min-height: 40px; font-size: .84rem; }
.privacy-note { display: flex; gap: 12px; margin-top: 16px; padding: 15px; border-radius: 15px; color: #275f48; background: var(--green-soft); }
.privacy-note svg { flex: 0 0 auto; width: 23px; height: 23px; }
.privacy-note strong { font-size: .88rem; }
.privacy-note p { margin: 4px 0 0; font-size: .78rem; line-height: 1.5; }
.offline-privacy-note { margin: 14px 3px 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.danger-link { display: block; margin: 20px auto 0; color: #a34b4b; text-decoration: underline; }
.modal-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(7,18,31,.48); backdrop-filter: blur(2px); }
.bottom-sheet { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; max-width: 720px; max-height: 90vh; max-height: 90dvh; margin: auto; overflow: auto; overscroll-behavior: contain; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -20px 60px rgba(7,18,31,.2); animation: sheetUp .24s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-handle { width: 42px; height: 5px; margin: 0 auto 15px; border-radius: 999px; background: #d9dee6; }
.sheet-head, .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.sheet-head p { margin: 0 0 4px; color: var(--orange); font-size: .78rem; font-weight: 800; }
.sheet-head h2 { margin: 0; font-size: 1.45rem; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--muted); background: #f2f4f7; font-size: 1.7rem; line-height: 1; }
.detail-address { margin: 17px 0 10px; padding: 15px; border-radius: 14px; background: #f3f6f9; }
.detail-address strong { display: block; margin-bottom: 7px; font-size: 1.1rem; line-height: 1.5; overflow-wrap: anywhere; }
.detail-address p { margin: 0; color: var(--navy); font-size: 1.18rem; font-weight: 850; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.delivery-schedule { margin: -2px 0 10px; padding: 9px 12px; border-radius: 10px; color: var(--navy-2); background: var(--blue-soft); font-size: .8rem; }
.detail-schedule { margin: 12px 0 10px; line-height: 1.5; }
.detail-schedule + .detail-address { margin-top: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.detail-cell { min-height: 77px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.detail-cell span, .items-box > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.detail-cell strong { font-size: .93rem; overflow-wrap: anywhere; }
.detail-cell.payment-due { border: 2px solid #ed8b2c; background: #fff0d9; box-shadow: inset 4px 0 0 #ed8b2c; }
.detail-cell.payment-due span { color: #8b450f; font-weight: 850; }
.detail-cell.payment-due strong { color: #8b3508; font-size: 1.08rem; font-weight: 900; }
.copy-code { border: 0; color: var(--navy-2); background: transparent; font-weight: 850; text-decoration: underline; }
.items-box { margin: 10px 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.item-line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #eef1f4; font-size: .9rem; }
.item-line:last-child { border-bottom: 0; }
.detail-actions { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px -4px -22px; padding: 10px 4px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,.92), #fff 18%); }
.action-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border: 0; border-radius: 13px; color: #fff; background: var(--navy); font-weight: 850; text-decoration: none; }
.action-button.orange { background: var(--orange); }
.action-button.kakao-navi { color: #191919; background: #fee500; font-size: .86rem; }
.action-button.kakao-navi:disabled { opacity: .65; }
.navigation-status { grid-column: 1 / -1; margin: 0; padding: 8px 10px; color: var(--muted); background: #f5f6f9; border-radius: 9px; font-size: .76rem; line-height: 1.5; }
.action-button svg { width: 20px; height: 20px; }
.complete-button { grid-column: 1 / -1; min-height: 50px; border: 1px solid #b8dfca; border-radius: 13px; color: var(--green); background: var(--green-soft); font-weight: 850; }
.complete-button.done { border-color: var(--line); color: var(--muted); background: #f2f4f7; }
.completion-locked { grid-column: 1 / -1; padding: 11px 13px; border-radius: 11px; color: var(--muted); background: #f2f4f7; font-size: .78rem; line-height: 1.5; text-align: center; }
.start-button { grid-column: 1 / -1; min-height: 50px; border: 0; border-radius: 13px; color: #fff; background: var(--orange); font-weight: 850; }
.location-banner { margin: 10px 0; padding: 12px 14px; border-radius: 12px; color: #8b450f; background: var(--orange-soft); font-size: .82rem; line-height: 1.5; }
.location-banner strong { display: block; margin-bottom: 3px; }
.dialog { position: fixed; z-index: 60; top: 50%; left: 50%; width: min(92vw, 520px); padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(7,18,31,.3); transform: translate(-50%, -50%); }
.dialog h2 { margin: 6px 0 15px; font-size: 1.25rem; }
.dialog p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.dialog pre { padding: 12px; overflow-x: auto; border-radius: 10px; color: #d9e5f0; background: var(--navy); font: .73rem/1.6 ui-monospace, monospace; }
.dialog .primary-button { width: 100%; margin-top: 6px; }
.driver-item-summary-dialog { width: min(92vw, 460px); padding: 20px; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(7,18,31,.3); }
.driver-item-summary-dialog::backdrop { background: rgba(7,18,31,.48); backdrop-filter: blur(2px); }
.driver-item-summary-dialog h2 { margin: 1px 0 0; font-size: 1.25rem; }
.driver-item-summary-dialog .eyebrow { margin: 0; color: var(--orange); }
.driver-item-summary-dialog > form > p { margin: 12px 0 7px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.driver-item-summary-dialog textarea { width: 100%; min-height: 210px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #f8fafc; font: 800 .95rem/1.75 Pretendard, "Malgun Gothic", sans-serif; resize: vertical; }
.completion-dialog { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.completion-dialog .dialog-head h2 { margin: 1px 0 0; }
.completion-dialog .dialog-head .eyebrow { margin: 0; color: var(--orange); }
#completionOrderSummary { margin: 14px 0; color: var(--ink); font-size: 1rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.completion-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.completion-fields label { min-width: 0; }
.completion-fields label > span { display: block; margin-bottom: 6px; color: #596477; font-size: .8rem; font-weight: 800; }
.completion-fields label > span small { color: var(--muted); font-weight: 650; }
.completion-fields select, .completion-fields input, .completion-fields textarea { width: 100%; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; outline: 0; }
.completion-fields select, .completion-fields input { height: 45px; }
.completion-fields textarea { min-height: 78px; padding-top: 10px; resize: vertical; }
.completion-fields select:focus, .completion-fields input:focus, .completion-fields textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(28,56,91,.08); }
.completion-fields .full { grid-column: 1 / -1; }
.completion-items { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; }
.completion-items h3 { margin: 0 0 6px; color: #596477; font-size: .85rem; font-weight: 800; }
.completion-items ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.completion-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 7px 4px; border-bottom: 1px solid #eef1f4; font-size: 1rem; }
.completion-items li:last-child { border-bottom: 0; }
.completion-items li span { overflow-wrap: anywhere; }
.completion-items li strong { flex: 0 0 auto; }
.completion-note { min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.completion-note summary { min-height: 44px; padding: 12px 0; color: #596477; font-size: .85rem; font-weight: 800; cursor: pointer; }
.completion-note summary small { margin-left: 5px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.completion-note > label { display: block; padding: 0 0 12px; }
.completion-note summary:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; border-radius: 4px; }
.next-stop-items li.driver-item-multiple, .items-box .item-line.driver-item-multiple, .completion-items li.driver-item-multiple, .delivery-item-preview > span.driver-item-multiple { padding: 8px 10px; border: 1px solid #f4b978; border-radius: 8px; color: #853b08; background: #fff0df; }
.next-stop-items li.driver-item-multiple + li, .items-box .item-line.driver-item-multiple + .item-line { margin-top: 4px; }
.driver-item-multiple strong, .driver-item-multiple b { color: #853b08; font-weight: 900; }
.completion-photo-field { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.completion-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.completion-photo-heading > span { color: #596477; font-size: .8rem; font-weight: 800; }
.completion-photo-heading small { color: var(--muted); font-weight: 650; }
.completion-photo-remove { min-height: 36px; padding: 0 10px; border: 1px solid #d8dee7; border-radius: 9px; color: #9d3939; background: #fff; font-size: .78rem; font-weight: 800; }
.completion-photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.completion-photo-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 47px; padding: 0 11px; overflow: hidden; border: 1px solid var(--orange); border-radius: 11px; color: #fff; background: var(--orange); font-size: .84rem; font-weight: 850; text-align: center; cursor: pointer; }
.completion-photo-button.secondary { border-color: #cfd8e5; color: var(--navy); background: #fff; }
.completion-fields .completion-photo-button > span { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.completion-photo-button:focus-within { box-shadow: 0 0 0 3px rgba(230,111,33,.18); }
.completion-photo-button.busy { opacity: .55; pointer-events: none; }
.completion-photo-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0 !important; white-space: nowrap; }
.completion-photo-preview { margin-top: 10px; overflow: hidden; border-radius: 12px; background: #e9edf2; }
.completion-photo-preview img { display: block; width: 100%; max-height: 280px; object-fit: contain; }
.completion-photo-status { min-height: 0 !important; margin: 8px 1px 0 !important; color: var(--muted) !important; font-size: .76rem !important; line-height: 1.45 !important; }
.completion-photo-status[data-state="error"] { color: #b23b3b !important; font-weight: 750; }
.completion-photo-status[data-state="ready"] { color: var(--green) !important; font-weight: 750; }
.completion-proof { margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.completion-proof > span { display: block; margin: 0 0 7px 3px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.completion-proof a { display: block; overflow: hidden; border-radius: 10px; }
.completion-proof img { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #e9edf2; }
.form-error { min-height: 20px; margin: 8px 0 0 !important; color: #b23b3b !important; font-size: .8rem !important; font-weight: 750; }
.dialog-actions { display: grid; grid-template-columns: minmax(96px, .7fr) 1.3fr; gap: 9px; margin-top: 4px; }
.dialog-actions .primary-button, .dialog-actions .secondary-button { width: 100%; margin: 0; }
.completion-submit { background: var(--green); }
.toast { position: fixed; z-index: 100; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; max-width: 88vw; padding: 11px 15px; border-radius: 10px; color: #fff; background: #172033; box-shadow: var(--shadow); font-size: .85rem; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer; }
.tmap-map-notice { position: absolute; z-index: 1000; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 10px; color: #fff; background: #172033; box-shadow: var(--shadow); font-size: .85rem; text-align: center; pointer-events: none; }
[hidden] { display: none !important; }
@media (min-width: 760px) {
  body { background: #dfe5ec; }
  .app-shell { max-width: 720px; margin: 0 auto; background: var(--bg); box-shadow: 0 0 60px rgba(16,36,62,.15); }
  .topbar { border-radius: 0 0 20px 20px; }
  .bottom-nav { right: 50%; left: auto; width: 720px; transform: translateX(50%); }
}
@media (max-width: 420px) {
  .topbar { gap: 10px; padding-right: 14px; padding-left: 14px; }
  .topbar > div { min-width: 0; }
  .topbar h1 { font-size: 1.38rem; white-space: nowrap; }
  .driver-chip { min-width: 0; max-width: 56%; padding-right: 8px; }
  .driver-chip-account strong, .driver-chip-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .driver-chip-account small { max-width: 112px; }
  .view { padding-right: 14px; padding-left: 14px; }
  .summary-card { gap: 9px; padding-right: 13px; padding-left: 13px; }
  .summary-card strong { font-size: 1.7rem; }
  .driver-item-summary-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .driver-item-summary-actions { width: 100%; grid-template-columns: auto 1fr; align-items: center; justify-items: start; }
  .driver-item-summary-actions > span { justify-self: end; text-align: right; }
  .driver-item-filter-clear { grid-column: 1 / -1; }
  .active-location-banner { align-items: stretch; flex-direction: column; }
  .active-location-banner .secondary-button { width: 100%; }
  .route-planner { padding: 13px; }
  .driver-route-map { height: 250px !important; }
  .route-planner-actions { grid-template-columns: 1fr; }
  .route-stop { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding-right: 7px; padding-left: 8px; }
  .route-stop-controls { grid-template-columns: 40px 40px; gap: 4px; }
  .route-stop-controls button { width: 40px; height: 42px; }
  .reservation-overview { grid-template-columns: repeat(2, 1fr); }
  .reservation-toolbar { grid-template-columns: 1fr auto; }
  .reservation-toolbar > div { grid-column: 1 / -1; }
  .reservation-toolbar label { min-width: 0; }
  .reservation-list-controls { grid-template-columns: 1fr 1fr; }
  .reservation-phone-search { grid-column: 1 / -1; }
  .pickup-reservation-main { grid-template-columns: 92px minmax(0, 1fr); }
  .pickup-reservation-meta { grid-column: 1 / -1; display: flex; align-items: center; }
  .pickup-reservation-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pickup-reservation-actions button:nth-child(3) { grid-column: 1 / -1; }
  .pickup-reservation-actions button:first-child:last-child { grid-column: 1 / -1; }
  .reservation-form-fields { grid-template-columns: 1fr; }
  .calc-item { grid-template-columns: 1fr; gap: 12px; }
  .stepper { justify-self: end; }
  .bottom-sheet { padding-right: 14px; padding-left: 14px; }
  .action-button { gap: 5px; font-size: .86rem; }
  .action-button svg { width: 18px; height: 18px; }
}
@media (max-width: 370px) {
  .auth-screen { padding: 16px; }
  .auth-card { padding: 24px 20px; }
  .summary-card { gap: 7px; padding-right: 10px; padding-left: 10px; }
  .summary-card strong { font-size: 1.55rem; }
  .delivery-card-main { grid-template-columns: 38px 1fr; }
  .delivery-meta { grid-column: 2; display: flex; max-width: none; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; text-align: left; }
  .delivery-item-preview { width: 100%; text-align: left; }
  .driver-item-aggregate-list { grid-template-columns: 1fr; }
  .reservation-list-controls, .reservation-aggregate-list { grid-template-columns: 1fr; }
  .reservation-phone-search { grid-column: auto; }
  .pickup-item-choice { grid-template-columns: 1fr; }
  .pickup-quantity-stepper { justify-self: end; }
  .pickup-reservation-main { grid-template-columns: 1fr; }
  .pickup-reservation-meta { grid-column: auto; }
  .pickup-reservation-actions { grid-template-columns: 1fr; }
  .pickup-reservation-actions button:nth-child(3) { grid-column: auto; }
  .pickup-reservation-actions button:first-child:last-child { grid-column: auto; }
  .reservation-form-panel > summary small { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .completion-fields { grid-template-columns: 1fr; }
  .completion-fields .full { grid-column: 1; }
  .completion-photo-actions { grid-template-columns: 1fr; }
  .custom-item-form { grid-template-columns: 1fr; }
  .custom-item-form .form-title, .custom-item-form button { grid-column: 1; }
}
