:root {
  --blue-950: #0b2854;
  --blue-800: #11458b;
  --blue-700: #1459ba;
  --blue-600: #1769e0;
  --blue-500: #2f7df0;
  --blue-100: #e8f1ff;
  --blue-50: #f3f7ff;
  --ink: #142033;
  --muted: #66748a;
  --line: #dce4ef;
  --surface: #ffffff;
  --background: #f4f7fb;
  --success: #16865d;
  --warning: #a86100;
  --danger: #c43d4f;
  --shadow-sm: 0 2px 10px rgba(23, 45, 78, .06);
  --shadow-lg: 0 24px 70px rgba(15, 45, 85, .15);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { min-height: 100vh; margin: 0; background: var(--background); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
[hidden] { display: none !important; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 520px) 1fr; background: #fff; }
.auth-panel { align-self: center; width: min(100%, 440px); margin: auto; padding: 48px 38px; }
.brand-mark { display: grid; width: 54px; height: 54px; margin-bottom: 34px; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, var(--blue-500), var(--blue-700)); box-shadow: 0 12px 30px rgba(23, 105, 224, .27); }
.brand-mark svg { width: 31px; height: 31px; }
.auth-copy { margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--blue-600); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.auth-copy h1, .page-heading h1 { margin-bottom: 10px; color: var(--blue-950); font-size: clamp(2rem, 4vw, 2.65rem); line-height: 1.1; letter-spacing: -.04em; }
.auth-copy p, .page-heading p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { color: #344258; font-size: .88rem; font-weight: 700; }
.field > span small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.field input, .field select, .search-field input, .share-result input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #ccd7e6; border-radius: 11px; outline: none; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #728198 50%), linear-gradient(135deg, #728198 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .search-field input:focus, .share-result input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 125, 240, .12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 50px; }
.icon-button { position: absolute; top: 50%; right: 5px; display: grid; width: 39px; height: 39px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--blue-600); background: var(--blue-50); }
.button { display: inline-flex; min-height: 44px; padding: 0 18px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; font-weight: 750; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); box-shadow: 0 8px 20px rgba(23, 105, 224, .2); }
.button-primary:hover { box-shadow: 0 11px 25px rgba(23, 105, 224, .28); }
.button-secondary { border: 1px solid #bfd1e9; color: var(--blue-700); background: #fff; }
.button-secondary:hover { background: var(--blue-50); }
.button-wide { width: 100%; min-height: 51px; }
.button-small { min-height: 38px; padding: 0 13px; font-size: .86rem; }
.button-quiet { padding-inline: 11px; color: #536178; background: transparent; box-shadow: none; }
.button-quiet:hover { color: var(--blue-700); background: var(--blue-50); }
.button-quiet svg { width: 19px; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading button[type="submit"] { pointer-events: none; opacity: .78; }
@keyframes spin { to { transform: rotate(360deg); } }
.security-note { display: flex; margin: 22px 0 0; align-items: center; gap: 8px; color: #7a8799; font-size: .78rem; line-height: 1.4; }
.security-note svg { width: 17px; flex: 0 0 auto; color: var(--success); }

.auth-visual { position: relative; display: grid; overflow: hidden; min-height: 100vh; place-items: center; background: radial-gradient(circle at 18% 20%, rgba(114, 181, 255, .42), transparent 27%), linear-gradient(145deg, #0f57bb, #0a3479); }
.auth-visual::before { position: absolute; width: 650px; height: 650px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.auth-visual::after { position: absolute; width: 470px; height: 470px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: ""; }
.phone-illustration { z-index: 2; width: 270px; height: 530px; padding: 22px 16px; transform: rotate(4deg); border: 8px solid #fff; border-radius: 42px; background: #f3f7fc; box-shadow: 0 38px 85px rgba(0, 14, 48, .38); }
.phone-speaker { width: 70px; height: 7px; margin: -7px auto 28px; border-radius: 20px; background: #c9d3e0; }
.phone-content { display: grid; gap: 18px; }
.mini-status { display: flex; padding: 22px 16px; align-items: center; gap: 10px; border-radius: 17px; color: var(--blue-950); background: #fff; box-shadow: var(--shadow-sm); }
.mini-status span { width: 10px; height: 10px; border-radius: 50%; background: #22bb7b; box-shadow: 0 0 0 5px rgba(34,187,123,.12); }
.route-line { display: flex; height: 76px; align-items: center; justify-content: center; }
.route-line i { width: 42px; height: 42px; border: 10px solid #78acf4; border-radius: 50%; background: #fff; }
.route-line em { width: 82px; height: 4px; background: linear-gradient(90deg, #78acf4, #1769e0); }
.mini-card { height: 92px; border-radius: 16px; background: linear-gradient(110deg, #fff 60%, #d9e9ff); box-shadow: var(--shadow-sm); }
.mini-card.short { height: 72px; opacity: .75; }
.signal { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.signal-a { width: 780px; height: 780px; }
.signal-b { width: 960px; height: 960px; }
.signal-c { width: 1150px; height: 1150px; }

.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 70px; padding: 0 max(22px, calc((100vw - 1120px) / 2)); align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(211, 221, 234, .82); background: rgba(255,255,255,.9); backdrop-filter: blur(15px); }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--blue-950); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.wordmark-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #fff; background: var(--blue-600); }
.wordmark-icon svg { width: 22px; }
.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 55px 0 90px; }
.page-heading { display: flex; margin-bottom: 34px; align-items: center; justify-content: space-between; gap: 30px; }
.page-heading h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.page-heading.compact { margin-bottom: 27px; }
.profile-chip { display: flex; max-width: 340px; padding: 11px 14px 11px 10px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.profile-chip > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--blue-700); background: var(--blue-100); font-weight: 800; }
.profile-chip div { min-width: 0; }
.profile-chip small, .profile-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chip small { color: var(--muted); font-size: .7rem; }
.profile-chip strong { margin-top: 2px; color: #344258; font-size: .84rem; }
.alert { display: grid; margin-bottom: 24px; padding: 14px 16px; gap: 12px; border: 1px solid #c7dbf7; border-radius: 12px; color: var(--blue-800); background: #edf5ff; font-size: .91rem; line-height: 1.5; }
.alert-success { border-color: #bfe7d7; color: #086448; background: #eaf8f3; }
.alert-warning { border-color: #eed4a6; color: #865000; background: #fff8e9; }
.search-field { position: relative; display: block; max-width: 440px; margin-bottom: 23px; }
.search-field svg { position: absolute; top: 15px; left: 15px; color: #718097; }
.search-field input { padding-left: 45px; background: #fff; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.account-card { display: grid; min-height: 96px; padding: 17px; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 16px; color: inherit; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.account-card:hover { transform: translateY(-2px); border-color: #b9cde8; box-shadow: 0 12px 30px rgba(26, 66, 116, .1); }
.account-icon { display: grid; width: 51px; height: 51px; place-items: center; border-radius: 14px; color: var(--blue-600); background: var(--blue-100); }
.account-main { min-width: 0; }
.account-main strong, .account-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-main strong { color: var(--blue-950); font-size: 1.03rem; }
.account-main small { margin-top: 5px; color: var(--muted); font-size: .78rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #aeb8c6; }
.status-dot.is-online { background: #23b77a; box-shadow: 0 0 0 5px rgba(35,183,122,.1); }
.chevron { color: #94a2b4; }
.empty-state { padding: 70px 25px; text-align: center; border: 1px dashed #cbd7e5; border-radius: var(--radius); background: rgba(255,255,255,.55); }
.empty-state > span { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 18px; color: var(--blue-600); background: var(--blue-100); }
.empty-state h2 { margin-bottom: 7px; color: var(--blue-950); }
.empty-state p { margin: 0; color: var(--muted); }

.back-link { display: flex; align-items: center; gap: 5px; color: var(--blue-700); font-size: .9rem; font-weight: 750; text-decoration: none; }
.back-link svg { width: 21px; }
.topbar-title { overflow: hidden; max-width: 42vw; color: var(--blue-950); font-size: .92rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.icon-only { width: 42px; padding: 0; }
.editor-shell { width: min(840px, calc(100% - 40px)); }
.settings-card { margin-bottom: 18px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.section-title { display: flex; margin-bottom: 22px; align-items: flex-start; gap: 13px; }
.section-title > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--blue-700); background: var(--blue-100); font-size: .85rem; font-weight: 850; }
.section-title h2 { margin: 2px 0 4px; color: var(--blue-950); font-size: 1.08rem; letter-spacing: -.015em; }
.section-title p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.section-title.with-action > .button { margin-left: auto; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode-option { cursor: pointer; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-content { display: flex; min-height: 156px; padding: 17px; flex-direction: column; align-items: flex-start; border: 1px solid #d7e0ec; border-radius: 14px; background: #fff; transition: border-color .16s, box-shadow .16s, background .16s; }
.mode-content i { display: grid; width: 38px; height: 38px; margin-bottom: 14px; place-items: center; border-radius: 11px; color: #5c6c83; background: #eff3f8; font-style: normal; }
.mode-content b { color: var(--blue-950); font-size: .93rem; }
.mode-content small { margin-top: 7px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.mode-option input:checked + .mode-content { border-color: var(--blue-500); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(47,125,240,.1); }
.mode-option input:checked + .mode-content i { color: #fff; background: var(--blue-600); }
.mode-option input:focus-visible + .mode-content { outline: 3px solid rgba(47,125,240,.25); }
.impact-note { display: flex; margin-top: 15px; padding: 12px 13px; align-items: flex-start; gap: 10px; border-radius: 10px; color: #815204; background: #fff7e7; font-size: .82rem; line-height: 1.5; }
.impact-note svg { width: 18px; flex: 0 0 auto; margin-top: 1px; color: #c17b0d; }
.coverage-warning { display: flex; margin-top: 14px; padding: 13px 14px; align-items: flex-start; gap: 11px; border: 1px solid #efcf93; border-radius: 11px; color: #775015; background: #fff8e9; }
.coverage-warning > svg { width: 20px; flex: 0 0 auto; margin-top: 1px; color: #c07a0b; }
.coverage-warning strong { display: block; color: #71470a; font-size: .82rem; }
.coverage-warning p { margin: 3px 0 0; font-size: .77rem; line-height: 1.45; }
.destination-list { display: grid; gap: 12px; }
.destination-card { border: 1px solid #d8e1ed; border-radius: 14px; background: #fbfcfe; overflow: hidden; }
.destination-head { display: flex; min-height: 48px; padding: 7px 9px; align-items: center; gap: 8px; border-bottom: 1px solid #e2e9f2; background: #fff; }
.destination-head strong { overflow: hidden; margin-right: auto; color: #30415a; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.destination-active-toggle { position: relative; display: flex; min-height: 36px; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--blue-700); font-size: .72rem; font-weight: 850; cursor: pointer; }
.destination-active-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.destination-switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #a8b3c2; box-shadow: inset 0 0 0 1px rgba(24, 42, 66, .08); transition: background .16s; }
.destination-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(24, 42, 66, .28); transition: transform .16s; }
.destination-active-toggle input:checked + .destination-switch { background: var(--blue-600); }
.destination-active-toggle input:checked + .destination-switch::after { transform: translateX(18px); }
.destination-active-toggle input:focus-visible + .destination-switch { outline: 3px solid rgba(47,125,240,.25); outline-offset: 2px; }
.destination-card .destination-fields, .destination-card .schedule-editor { transition: opacity .16s; }
.destination-card.is-inactive { background: #f3f6fa; }
.destination-card.is-inactive .destination-active-toggle { color: #6f7d90; }
.destination-card.is-inactive .destination-fields, .destination-card.is-inactive .schedule-editor { opacity: .58; }
.drag-handle, .delete-button, .order-buttons button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #8492a6; background: transparent; cursor: pointer; }
.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.delete-button:hover { color: var(--danger); background: #fff0f2; }
.order-buttons { display: flex; }
.order-buttons button:hover { color: var(--blue-600); background: var(--blue-50); }
.destination-fields { display: grid; padding: 16px; grid-template-columns: 1fr 1fr; gap: 14px; }
.destination-fields .field > span:first-child { font-size: .78rem; }
.destination-fields input, .destination-fields select { min-height: 43px; font-size: .88rem; }
.schedule-editor { padding: 0 16px 16px; }
.schedule-editor-head { display: flex; padding-top: 15px; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e3eaf3; }
.schedule-editor-head > div { min-width: 0; }
.schedule-editor-head strong, .schedule-editor-head small { display: block; }
.schedule-editor-head strong { color: var(--blue-950); font-size: .84rem; }
.schedule-editor-head small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.schedule-list { display: grid; margin-top: 12px; gap: 10px; }
.schedule-always { margin-top: 12px; padding: 12px 14px; border-radius: 10px; color: #526177; background: #f0f4f9; font-size: .78rem; line-height: 1.45; }
.schedule-rule { border: 1px solid #d8e2ef; border-radius: 12px; background: #fff; overflow: hidden; }
.schedule-rule > summary { display: flex; min-height: 44px; padding: 0 13px; align-items: center; justify-content: space-between; color: #30415a; background: #f7f9fc; font-size: .8rem; font-weight: 800; cursor: pointer; list-style: none; }
.schedule-rule > summary::-webkit-details-marker { display: none; }
.schedule-chevron { color: #8090a5; font-size: 1.05rem; transition: transform .15s; }
.schedule-rule[open] .schedule-chevron { transform: rotate(180deg); }
.schedule-rule-body { display: grid; padding: 14px; gap: 15px; border-top: 1px solid #e4eaf2; }
.schedule-time-row { display: grid; gap: 12px; }
.toggle-line { display: flex; align-items: center; gap: 8px; color: #344258; font-size: .82rem; font-weight: 750; cursor: pointer; }
.toggle-line input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.time-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; transition: opacity .15s; }
.time-range.is-disabled { opacity: .45; }
.time-range label { display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.time-range select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid #ccd7e6; border-radius: 9px; color: var(--ink); background: #fff; }
.schedule-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.schedule-group legend { margin-bottom: 9px; color: #344258; font-size: .76rem; font-weight: 800; }
.choice-grid { display: grid; gap: 6px; }
.weekdays-grid { grid-template-columns: repeat(7, 1fr); }
.month-days-grid { grid-template-columns: repeat(8, 1fr); }
.months-grid { grid-template-columns: repeat(6, 1fr); }
.choice-chip { cursor: pointer; }
.choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip span { display: grid; min-height: 33px; padding: 3px 5px; place-items: center; border: 1px solid #d5deea; border-radius: 8px; color: #5c6b80; background: #fff; font-size: .72rem; font-weight: 750; }
.choice-chip input:checked + span { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); box-shadow: 0 0 0 2px rgba(47,125,240,.08); }
.choice-chip input:focus-visible + span { outline: 3px solid rgba(47,125,240,.2); }
.choice-all { display: block; margin-bottom: 7px; }
.choice-all span { display: inline-flex; min-width: 94px; padding: 3px 11px; }
.quick-choices { display: flex; margin-top: 7px; gap: 6px; }
.quick-choices button, .schedule-remove { padding: 4px 0; border: 0; color: var(--blue-600); background: transparent; font-size: .72rem; font-weight: 750; cursor: pointer; }
.quick-choices button + button::before { content: '·'; margin-right: 6px; color: #a3adba; }
.schedule-remove { justify-self: start; color: var(--danger); }
.schedule-legacy { padding: 12px; border-radius: 9px; color: #4d5d73; background: #f2f5f9; }
.schedule-legacy strong, .schedule-legacy small { display: block; }
.schedule-legacy p { overflow-wrap: anywhere; margin: 7px 0; color: #263750; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; }
.schedule-legacy small { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.empty-destinations { padding: 35px 20px; text-align: center; border: 1px dashed #ced9e6; border-radius: 14px; color: var(--muted); background: #fbfcfe; }
.empty-destinations svg { width: 29px; height: 29px; margin-bottom: 8px; color: #9aa9bc; }
.empty-destinations p { margin-bottom: 5px; font-size: .88rem; }
.text-button { padding: 3px; border: 0; color: var(--blue-600); background: transparent; font-size: .84rem; font-weight: 750; cursor: pointer; }
.audit-card { margin-top: 18px; }
.customer-search-form { display: flex; gap: 10px; align-items: flex-end; }
.customer-search-form .field { flex: 1; min-width: 0; margin-bottom: 0; }
.customer-search-form .button { flex: 0 0 auto; min-height: 46px; }
.customer-search-hint { margin: 10px 0 18px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.audit-entry-main strong, .audit-changes li > span { overflow-wrap: anywhere; }
.audit-heading { display: flex; margin-bottom: 18px; align-items: flex-start; gap: 12px; }
.audit-heading-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--blue-700); background: var(--blue-100); }
.audit-heading-icon svg { width: 20px; height: 20px; }
.audit-heading h2 { margin: 1px 0 4px; color: var(--blue-950); font-size: 1.02rem; }
.audit-heading p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.audit-list { display: grid; gap: 9px; }
.audit-entry { border: 1px solid #dce4ee; border-radius: 12px; background: #fff; overflow: hidden; }
.audit-entry > summary { display: flex; min-height: 58px; padding: 10px 13px; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; }
.audit-entry > summary::-webkit-details-marker { display: none; }
.audit-entry-main { min-width: 0; }
.audit-entry-main strong, .audit-entry-main small { display: block; }
.audit-entry-main strong { color: #2f4058; font-size: .82rem; }
.audit-entry-main small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.audit-entry-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: #718096; font-size: .7rem; font-weight: 750; }
.audit-entry-meta i { font-size: 1rem; font-style: normal; transition: transform .15s; }
.audit-entry[open] .audit-entry-meta i { transform: rotate(180deg); }
.audit-entry-body { padding: 13px; border-top: 1px solid #e4eaf2; background: #f9fbfd; }
.audit-target { display: flex; margin: 0 0 10px; align-items: baseline; gap: 8px; color: #35465e; font-size: .76rem; }
.audit-target span { color: var(--muted); }
.audit-description { margin: 0 0 10px; padding: 10px 11px; border-radius: 9px; color: #526177; background: #eef3f8; font-size: .75rem; line-height: 1.45; }
.audit-changes { display: grid; margin: 0; padding: 0; gap: 8px; list-style: none; }
.audit-changes li { display: grid; padding: 10px 11px; grid-template-columns: minmax(130px, .8fr) minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; border-radius: 9px; color: #526177; background: #fff; font-size: .75rem; line-height: 1.35; }
.audit-changes li > strong { color: #34445b; font-size: .73rem; }
.audit-before { color: #7b8797; text-decoration: line-through; text-decoration-color: #c5ccd5; }
.audit-after, .audit-added { color: #1769e0; font-weight: 750; }
.audit-removed { color: var(--danger); text-decoration: line-through; }
.audit-arrow { color: #9ba7b7; }
.audit-changes .audit-no-details { display: block; color: var(--muted); }
.audit-empty, .audit-unavailable { padding: 18px; border-radius: 10px; color: var(--muted); background: #f1f5f9; font-size: .8rem; text-align: center; }
.audit-unavailable { color: #7a4f0d; background: #fff7e8; }
.audit-unavailable code { font-size: .74rem; }
.strategy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strategy-option { position: relative; cursor: pointer; }
.strategy-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.strategy-option > span { display: flex; min-height: 116px; padding: 14px; align-items: flex-start; flex-direction: column; border: 1px solid #d7e0eb; border-radius: 12px; color: #536278; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.strategy-option i { display: grid; width: 36px; height: 36px; margin-bottom: 12px; place-items: center; border-radius: 10px; color: #718198; background: #f0f4f9; }
.strategy-option svg { width: 19px; height: 19px; }
.strategy-option b { color: var(--blue-950); font-size: .88rem; line-height: 1.25; }
.strategy-option small { margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.strategy-option:hover > span { border-color: #a9bcd4; transform: translateY(-1px); }
.strategy-option input:checked + span { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(47,125,240,.1); }
.strategy-option input:checked + span i { color: #fff; background: var(--blue-600); }
.strategy-option input:focus-visible + span { outline: 3px solid rgba(47,125,240,.24); outline-offset: 2px; }
.percentage-field { grid-column: 1 / -1; }
.percentage-input { position: relative; display: block; }
.percentage-input input { width: 100%; padding-right: 42px; }
.percentage-input i { position: absolute; top: 50%; right: 15px; color: var(--muted); font-size: .86rem; font-style: normal; font-weight: 800; transform: translateY(-50%); pointer-events: none; }
.percentage-summary { display: grid; margin-top: 14px; padding: 13px 15px; grid-template-columns: auto 1fr; align-items: center; gap: 16px; border: 1px solid #f0cf8d; border-radius: 11px; background: #fff9ed; }
.percentage-summary > div { display: flex; align-items: baseline; gap: 9px; color: #735019; }
.percentage-summary span { font-size: .77rem; font-weight: 750; }
.percentage-summary strong { font-size: 1.05rem; }
.percentage-summary p { margin: 0; color: #735019; font-size: .78rem; line-height: 1.4; }
.percentage-summary.is-valid { border-color: #a9ddc8; background: #eefaf5; }
.percentage-summary.is-valid > div, .percentage-summary.is-valid p { color: #176b50; }
.percentage-summary.is-invalid { border-color: #efc278; background: #fff8e9; }
.coverage-dialog { width: min(92vw, 530px); max-width: none; padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: transparent; box-shadow: 0 28px 80px rgba(13,34,63,.28); }
.coverage-dialog::backdrop { background: rgba(8,25,49,.58); backdrop-filter: blur(3px); }
.coverage-dialog-card { position: relative; padding: 30px; border-radius: 20px; background: #fff; }
.dialog-close { position: absolute; top: 17px; right: 17px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 10px; color: #718097; background: #f1f4f8; cursor: pointer; }
.dialog-close svg { width: 20px; }
.coverage-dialog-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border-radius: 14px; color: #a76200; background: #fff0ce; }
.coverage-dialog-icon svg { width: 24px; }
.coverage-dialog h2 { max-width: calc(100% - 45px); margin: 0 0 9px; color: var(--blue-950); font-size: 1.3rem; }
.coverage-dialog-card > p { margin: 0; color: #526177; font-size: .87rem; line-height: 1.55; }
.coverage-gap-list { margin-top: 18px; padding: 14px 16px; border-radius: 11px; color: #54411e; background: #fff8e9; }
.coverage-gap-list:empty { display: none; }
.coverage-gap-list strong { font-size: .79rem; }
.coverage-gap-list ul { display: grid; margin: 9px 0 0; padding-left: 18px; gap: 6px; }
.coverage-gap-list li { font-size: .77rem; line-height: 1.4; }
.coverage-dialog-note { margin-top: 13px !important; color: var(--muted) !important; font-size: .73rem !important; }
.coverage-dialog-actions { display: flex; margin-top: 23px; justify-content: flex-end; gap: 9px; }
.sticky-save { position: sticky; z-index: 10; bottom: 15px; display: flex; margin-top: 28px; padding: 12px 12px 12px 18px; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(206,217,231,.85); border-radius: 15px; background: rgba(255,255,255,.93); box-shadow: 0 14px 40px rgba(20,50,90,.15); backdrop-filter: blur(16px); }
.sticky-save p { display: flex; margin: 0; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; }
.save-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #f1a31c; }

.admin-body { background: #f2f6fb; }
.admin-topbar { background: rgba(11,40,84,.96); border: 0; }
.admin-topbar .wordmark { color: #fff; }
.admin-topbar .wordmark-icon { color: var(--blue-950); background: #fff; }
.admin-topbar .button-quiet { color: #dbe9ff; }
.admin-shell { width: min(1050px, calc(100% - 40px)); }
.ip-badge { display: inline-flex; padding: 8px 12px; align-items: center; gap: 7px; border-radius: 999px; color: #0e7552; background: #e4f6ef; font-size: .78rem; font-weight: 750; }
.ip-badge svg { width: 16px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr); gap: 20px; align-items: start; }
.admin-form { padding: 28px; }
.admin-toolbar { display: flex; align-items: center; gap: 10px; }
.admin-toolbar form { margin: 0; }
.admin-form > .field, .admin-form > form[action="/admin/provision"] > .field { margin-bottom: 17px; }
.admin-form select[size] { height: 210px; min-height: 210px; padding: 6px; background-image: none; }
.admin-form select[size] option { padding: 11px 10px; border-radius: 7px; }
.admin-form select[size] option:checked { color: #fff; background: var(--blue-600) linear-gradient(0deg, var(--blue-600), var(--blue-600)); }
.section-divider { height: 1px; margin: 26px 0; background: var(--line); }
.admin-explainer { position: sticky; top: 92px; padding: 28px; border-radius: var(--radius); color: #dfeaff; background: linear-gradient(150deg, #123e79, #0b2854); box-shadow: var(--shadow-lg); }
.explainer-icon { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; border-radius: 14px; color: #fff; background: rgba(255,255,255,.13); }
.admin-explainer h2 { margin-bottom: 10px; color: #fff; font-size: 1.2rem; }
.admin-explainer > p { color: #bed0ea; font-size: .85rem; line-height: 1.65; }
.admin-explainer ul { display: grid; margin: 25px 0 0; padding: 0; gap: 14px; list-style: none; }
.admin-explainer li { display: flex; align-items: center; gap: 10px; color: #f1f6ff; font-size: .84rem; }
.admin-explainer li span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.13); font-size: .72rem; font-weight: 800; }
.share-result { display: flex; gap: 9px; }
.share-result input { min-width: 0; min-height: 40px; color: #2f4560; font-size: .82rem; }

.error-shell { display: grid; min-height: 100vh; padding: 30px; place-items: center; background: radial-gradient(circle at 50% 30%, #fff, var(--background) 60%); }
.error-card { position: relative; width: min(100%, 500px); padding: 45px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); }
.error-code { position: absolute; top: 15px; right: 20px; color: #d8e1ed; font-size: 1.6rem; font-weight: 900; }
.error-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 20px; place-items: center; border-radius: 18px; color: var(--blue-600); background: var(--blue-100); }
.error-icon svg { width: 30px; height: 30px; }
.error-card h1 { margin-bottom: 10px; color: var(--blue-950); }
.error-card p { margin-bottom: 25px; color: var(--muted); line-height: 1.6; }

@media (max-width: 800px) {
  .auth-shell { display: block; background: linear-gradient(180deg, #eef5ff 0, #fff 42%); }
  .auth-panel { min-height: 100vh; padding: max(55px, env(safe-area-inset-top)) 25px 35px; }
  .auth-visual { display: none; }
  .topbar { height: 62px; padding: 0 16px; }
  .page-shell, .editor-shell, .admin-shell { width: min(100% - 28px, 680px); padding-top: 34px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .profile-chip { width: 100%; max-width: none; }
  .account-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-content { min-height: 102px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; }
  .mode-content i { grid-row: 1 / span 2; margin: 0; }
  .mode-content small { margin-top: 3px; }
  .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-explainer { position: static; }
  .ip-badge { align-self: flex-start; }
}

@media (max-width: 540px) {
  .topbar .wordmark > span:last-child { display: none; }
  .topbar .button-quiet span { display: none; }
  .page-shell { padding-bottom: 85px; }
  .page-heading h1 { font-size: 2rem; }
  .settings-card { padding: 19px; border-radius: 15px; }
  .section-title.with-action { flex-wrap: wrap; }
  .section-title.with-action > .button { width: 100%; margin: 4px 0 0 44px; }
  .destination-fields { grid-template-columns: 1fr; }
  .schedule-editor-head { align-items: stretch; flex-direction: column; }
  .schedule-editor-head .button { width: 100%; }
  .weekdays-grid { grid-template-columns: repeat(4, 1fr); }
  .month-days-grid { grid-template-columns: repeat(7, 1fr); }
  .months-grid { grid-template-columns: repeat(4, 1fr); }
  .order-buttons { display: none; }
  .destination-head { min-height: 56px; }
  .destination-active-toggle { min-height: 44px; }
  .audit-card { padding: 17px; }
  .customer-search-form { flex-direction: column; align-items: stretch; }
  .audit-entry > summary { align-items: flex-start; flex-direction: column; gap: 6px; }
  .audit-entry-meta { width: 100%; justify-content: space-between; }
  .audit-changes li { grid-template-columns: 1fr auto 1fr; }
  .audit-changes li > strong { grid-column: 1 / -1; }
  .audit-added, .audit-removed { grid-column: 1 / -1; }
  .strategy-grid { gap: 8px; }
  .strategy-option > span { min-height: 112px; padding: 13px; }
  .percentage-summary { grid-template-columns: 1fr; gap: 5px; }
  .coverage-dialog-card { padding: 25px 20px 20px; }
  .coverage-dialog-actions { align-items: stretch; flex-direction: column; }
  .coverage-dialog-actions .button { width: 100%; min-height: 48px; }
  .sticky-save { bottom: 8px; padding: 9px; }
  .sticky-save p { display: none; }
  .sticky-save .button { width: 100%; min-height: 49px; }
  .admin-form { padding: 20px; }
  .admin-explainer { padding: 22px; }
  .share-result { align-items: stretch; flex-direction: column; }
  .error-card { padding: 38px 24px; }
}

@media (max-width: 360px) {
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-option > span { min-height: 88px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 11px; }
  .strategy-option i { grid-row: 1 / span 2; margin: 0; }
  .strategy-option small { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

