/* Layout and components. Colors and shadows come from tokens in theme.css. */
*{box-sizing:border-box}
html{scrollbar-gutter:stable;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,'Segoe UI Variable Text','Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;font-feature-settings:'cv11','ss01'}
h1,h2,h3,p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
button:disabled{cursor:default;opacity:.5}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
::selection{background:var(--primary-soft)}
[hidden]{display:none!important}
input,select,textarea{display:block;width:100%;min-width:0;min-height:42px;margin-top:6px;padding:9px 12px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--input);color:var(--ink);box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s}
input:hover,select:hover,textarea:hover{border-color:var(--muted)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 4px var(--primary-soft)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}
select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:18px}
textarea{resize:vertical;line-height:1.55}
input[type=checkbox],input[type=radio]{appearance:auto;width:18px;height:18px;min-height:18px;margin:0;padding:0;box-shadow:none;accent-color:var(--primary);flex:0 0 18px}
label{display:block;font-size:13px;font-weight:600;color:var(--ink-2)}
hr{border:0;border-top:1px solid var(--line);margin:24px 0}
.icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.full{width:100%}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:13px}.flip{transform:rotate(180deg)}
.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}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink-2);font-size:14px;font-weight:600;line-height:1.3;text-align:center;white-space:nowrap;box-shadow:var(--shadow-sm);transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .05s}
.btn:hover:not(:disabled){background:var(--surface-2);border-color:var(--muted);color:var(--ink)}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn .icon{width:17px;height:17px}
.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary);box-shadow:0 1px 2px #1018281a,inset 0 1px 0 #ffffff26}
.btn.primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover);color:var(--on-primary)}
.btn.secondary{background:var(--surface)}
.btn.danger{background:var(--danger-soft);border-color:var(--danger-line);color:var(--danger);box-shadow:none}
.btn.danger:hover:not(:disabled){background:var(--danger-soft);border-color:var(--danger);color:var(--danger)}
.icon-btn{display:inline-grid;place-items:center;width:40px;min-width:40px;height:40px;border-radius:var(--radius-sm);color:var(--muted);transition:background .15s,color .15s}
.icon-btn:hover{background:var(--surface-3);color:var(--ink)}
.text-btn{min-height:36px;padding:6px 8px;border-radius:6px;color:var(--primary);font-size:13px;font-weight:600}
.text-btn:hover{background:var(--primary-soft)}

/* Brand */
.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;letter-spacing:-.03em;line-height:1}
.brand-light{font-weight:500;opacity:.75}.brand-dot{display:none}
.brand-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;box-shadow:0 4px 12px -2px #4f46e566,inset 0 1px 0 #ffffff33}
.brand-symbol>.icon{width:20px;height:20px}

/* Shell */
.layout{min-height:100dvh}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:256px;display:flex;flex-direction:column;padding:20px 12px 0;background:var(--side-bg);color:var(--side-ink)}
.sidebar .brand{color:var(--side-strong);padding:4px 10px 0}
.workspace-label{display:none}
.sidebar nav{display:grid;gap:2px;margin-top:28px}
.nav-item{position:relative;display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 12px;border-radius:var(--radius-sm);color:var(--side-ink);font-size:14px;font-weight:500;text-align:left;transition:background .15s,color .15s}
.nav-item span:not(.nav-dot){flex:1}
.nav-item:hover{background:var(--side-hover);color:var(--side-strong)}
.nav-item.active{background:var(--side-active);color:var(--side-strong)}
.nav-item.active>.icon{color:#a5b4fc}
.nav-dot{display:none}
.sidebar-caption{display:flex;align-items:center;justify-content:space-between;padding:28px 12px 8px;color:var(--side-muted);font-size:11px;font-weight:600;letter-spacing:.06em}
.sidebar-caption>span{padding:1px 7px;border-radius:999px;background:var(--side-hover);color:var(--side-ink);letter-spacing:0}
.route-nav{flex:1;min-height:70px;overflow-y:auto;margin:0 -4px;padding:0 4px;scrollbar-width:thin;scrollbar-color:var(--side-hover) transparent}
.route-item{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:6px 12px;border-radius:var(--radius-sm);color:var(--side-ink);font-size:13px;text-align:left;transition:background .15s,color .15s}
.route-item>span:not(.route-bullet){flex:1;overflow-wrap:anywhere}
.route-item>b{font-size:12px;font-weight:500;color:var(--side-muted);font-variant-numeric:tabular-nums}
.route-item>.icon{width:16px;height:16px}
.route-item:hover{background:var(--side-hover);color:var(--side-strong)}
.route-item.selected{background:var(--side-hover);color:var(--side-strong);font-weight:600}
.route-item.selected>b{color:var(--side-ink)}
.route-bullet{width:6px;height:6px;flex:0 0 6px;margin:0 5px;border-radius:50%;background:var(--side-muted)}
.route-item.selected .route-bullet{background:#818cf8;box-shadow:0 0 0 3px #818cf833}
.sidebar-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:12px -12px 0;padding:14px 12px;border-top:1px solid var(--side-line)}
.sidebar-footer .icon-btn{color:var(--side-muted)}.sidebar-footer .icon-btn:hover{background:var(--side-hover);color:var(--side-strong)}
.account{display:flex;align-items:center;gap:10px;min-width:0;padding:4px;border-radius:var(--radius-sm);text-align:left;font-size:13px;font-weight:600;color:var(--side-strong)}
.account:hover{background:var(--side-hover)}
.account small{display:block;font-size:12px;font-weight:400;color:var(--side-muted)}
.account>span:last-child{min-width:0;overflow-wrap:anywhere}
.avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#818cf8,#4f46e5);color:#fff;font-size:14px;font-weight:600}
.avatar.large{width:44px;height:44px;font-size:17px}
.main{margin-left:256px;min-width:0;padding-bottom:8px}
.topbar{position:sticky;top:0;z-index:20;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 32px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.6) blur(12px);-webkit-backdrop-filter:saturate(1.6) blur(12px)}
.breadcrumbs{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.breadcrumbs>.icon{width:14px;height:14px;opacity:.6}
.breadcrumbs strong{color:var(--ink);font-weight:600}
#menu{display:none}
.topbar-right{display:flex;align-items:center;gap:10px}
.topbar-status{display:inline-flex;align-items:center;gap:8px;padding:5px 10px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:600}
.topbar-status.offline{background:var(--warning-soft);color:var(--warning)}
.online-dot{position:relative;display:inline-block;flex-shrink:0;width:7px;height:7px;border-radius:50%;background:currentColor}
.topbar-status:not(.offline) .online-dot::after{content:'';position:absolute;inset:-3px;border-radius:50%;background:currentColor;opacity:.35;animation:pulse 2s ease-out infinite}
@keyframes pulse{0%{transform:scale(.6);opacity:.5}100%{transform:scale(1.8);opacity:0}}
.role-chip,.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-2);font-size:12px;font-weight:600}
.role-chip>.icon,.pill>.icon{width:14px;height:14px;color:var(--muted)}
.pill.inactive{background:var(--danger-soft);border-color:var(--danger-line);color:var(--danger)}

/* Page header */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:32px 32px 24px}
.page-head .eyebrow,.section-kicker,.title-dot{display:none}
.page-head h1{font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.025em}
.page-head p{max-width:560px;margin-top:6px;color:var(--muted);font-size:14px}
.head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.date-switcher{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--surface);box-shadow:var(--shadow-sm)}
.date-switcher>.icon-btn{width:34px;min-width:34px;height:34px;border-radius:6px}
.date-field{width:160px;padding:0 6px}
.period-caption{display:block;color:var(--muted);font-size:11px;font-weight:500;line-height:1.3}
.date-field input{min-height:22px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:14px;font-weight:600;text-transform:capitalize}
.date-field input:focus{box-shadow:none}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:0 32px 24px}
.stat{--tone:var(--primary);--tone-soft:var(--primary-soft);position:relative;min-width:0;padding:18px 20px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);text-align:left;box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s,transform .15s}
.stat:nth-child(3){--tone:var(--info);--tone-soft:var(--info-soft)}
.stat.success{--tone:var(--success);--tone-soft:var(--success-soft)}
.stat.warning{--tone:var(--warning);--tone-soft:var(--warning-soft)}
.stat:hover{border-color:var(--line-2);box-shadow:var(--shadow);transform:translateY(-1px)}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:13px;font-weight:500}
.stat-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--tone-soft);color:var(--tone)}
.stat-icon>.icon{width:18px;height:18px}
.stat>strong{display:block;margin:6px 0 8px;font-size:30px;font-weight:700;line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.stat>strong>span{margin-left:6px;color:var(--muted);font-size:13px;font-weight:500;letter-spacing:0}
.stat>small{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.progress{display:inline-block;width:46%;height:6px;flex-shrink:0;border:0;border-radius:999px;overflow:hidden;background:var(--surface-3);appearance:none;vertical-align:middle}
.progress::-webkit-progress-bar{background:var(--surface-3);border-radius:999px}
.progress::-webkit-progress-value{background:var(--success-fill);border-radius:999px;transition:width .4s}
.progress::-moz-progress-bar{background:var(--success-fill);border-radius:999px}

/* Work panel */
.work-panel{margin:0 32px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow);overflow:hidden;scroll-margin-top:76px}
.panel-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 16px}
.panel-title h2{font-size:17px;font-weight:650;line-height:1.35;letter-spacing:-.01em}
.panel-title p{margin-top:4px;color:var(--muted);font-size:13px}
.panel-tools{display:flex;align-items:center;gap:6px}
.view-switch{display:flex;gap:2px;padding:3px;border-radius:var(--radius-sm);background:var(--surface-3)}
.view-switch button{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;color:var(--muted);transition:background .15s,color .15s}
.view-switch button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
.view-switch .icon{width:17px;height:17px}
#refresh.is-loading .icon{animation:spin .8s linear infinite}
.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 24px 16px}
.search-field{position:relative;flex:1;min-width:200px}
.search-field input{margin:0;padding-left:38px}
.search-field>.icon{position:absolute;top:50%;left:12px;width:17px;height:17px;color:var(--muted);transform:translateY(-50%);pointer-events:none}
.route-field{width:220px}.route-field select{margin:0}
.checkbox-label{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 4px;font-size:13px;font-weight:500;color:var(--ink-2);white-space:nowrap;cursor:pointer}
.filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px 14px}
.status-tabs{display:flex;gap:2px;padding:3px;border-radius:10px;background:var(--surface-3);overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.status-tabs>button{display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 12px;border-radius:7px;color:var(--muted);font-size:13px;font-weight:600;transition:background .15s,color .15s}
.status-tabs>button:hover{color:var(--ink)}
.status-tabs>button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
.tab-count{min-width:22px;padding:0 6px;border-radius:999px;background:var(--line);color:var(--ink-2);font-size:11px;font-weight:600;line-height:18px;text-align:center;font-variant-numeric:tabular-nums}
.active .tab-count{background:var(--primary-soft);color:var(--primary-ink)}
.small-dot{width:6px;height:6px;border-radius:50%;background:var(--warning)}
.sort-label{display:flex;align-items:center;gap:6px;flex-shrink:0;color:var(--muted)}
.sort-label>.icon{width:16px;height:16px}
.sort-label select{width:auto;min-height:36px;margin:0;padding:6px 32px 6px 10px;border-color:transparent;background-color:transparent;box-shadow:none;color:var(--ink-2);font-size:13px;font-weight:600}
.sort-label select:hover{background-color:var(--surface-3);border-color:transparent}
.quick-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 24px 16px}
.filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 12px;border:1px dashed var(--line-2);border-radius:999px;color:var(--ink-2);font-size:13px;font-weight:500;transition:background .15s,border-color .15s,color .15s}
.filter-chip>.icon{width:15px;height:15px;color:var(--muted)}
.filter-chip:hover{border-color:var(--muted);background:var(--surface-2)}
.filter-chip.selected{border-style:solid;border-color:var(--primary);background:var(--primary-soft);color:var(--primary-ink)}
.filter-chip.selected>.icon{color:var(--primary)}
.reset-filter{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:13px}
.reset-filter .icon{width:14px;height:14px}

/* Delivery list */
.table-head,.delivery-row{display:grid;grid-template-columns:minmax(0,1fr) 160px 150px 96px 24px;gap:16px;padding:14px 24px}
.table-head{padding-block:10px;border-block:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.06em}
.delivery-row{position:relative;width:100%;align-items:center;border-bottom:1px solid var(--line);text-align:left;transition:background .12s}
.delivery-row:hover{background:var(--surface-2)}
.delivery-row:hover .row-arrow{color:var(--primary);transform:translateX(2px)}
.delivery-row.status-failed::before,.delivery-row.status-partial::before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--danger)}
.delivery-row.status-partial::before{background:var(--warning)}
.address-cell{display:flex;align-items:flex-start;gap:12px;min-width:0}
.row-number{min-width:20px;padding-top:2px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.row-copy{display:block;min-width:0}
.row-copy>strong{display:block;font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.row-copy>span{display:block;margin-top:2px;color:var(--muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.route-cell{color:var(--ink-2);font-size:13px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.route-cell>small{display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:400}
.badge{display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;padding:3px 10px 3px 8px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}
.badge>.icon{width:14px;height:14px}
.badge.pending{background:var(--surface-3);border-color:var(--line);color:var(--ink-2)}
.badge.delivered{background:var(--success-soft);border-color:var(--success-line);color:var(--success)}
.badge.partial{background:var(--warning-soft);border-color:var(--warning-line);color:var(--warning)}
.badge.failed{background:var(--danger-soft);border-color:var(--danger-line);color:var(--danger)}
.photo-cell{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:500}
.photo-cell>.icon{width:16px;height:16px}
.photo-cell.has-photo{color:var(--success)}
.row-arrow{display:grid;place-items:center;color:var(--line-2);transition:color .15s,transform .15s}
.row-arrow>.icon{width:18px;height:18px}
.address-note,.missing-note{display:flex;align-items:flex-start;gap:6px;width:fit-content;max-width:100%;margin-top:8px;padding:4px 8px;border-radius:6px;background:var(--warning-soft);color:var(--warning);font-size:12px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.address-note>.icon,.missing-note>.icon{width:14px;height:14px;margin-top:2px}
.status-failed .missing-note,.badge.failed~.missing-note{background:var(--danger-soft);color:var(--danger)}
.list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;color:var(--muted);font-size:13px}
.list-footer b{color:var(--ink)}
.hidden-for-cards{display:none!important}
.delivery-list.card-view{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 24px}
.card-view .delivery-row,.delivery-list.as-cards .delivery-row{grid-template-columns:minmax(0,1fr) auto 24px;gap:12px;align-content:start;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);overflow:hidden}
.card-view .delivery-row:hover{border-color:var(--line-2);box-shadow:var(--shadow)}
.card-view .delivery-row::before{top:0;bottom:0;border-radius:0}
.card-view .address-cell{grid-column:1/-1;grid-row:1}.card-view .route-cell{grid-column:1/-1;grid-row:2}.card-view .badge{grid-column:1;grid-row:3}.card-view .photo-cell{grid-column:2;grid-row:3}.card-view .row-arrow{grid-column:3;grid-row:3}.card-view .row-number{display:none}
.page-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 32px;color:var(--muted);font-size:12px}
.page-footer>span:first-child{display:flex;align-items:center;gap:8px;font-weight:600;letter-spacing:.04em}
.page-footer .icon{width:15px;height:15px}
.footer-divider{width:1px;height:12px;margin:0 2px;background:var(--line-2)}

/* Addresses, team, history */
.address-admin{display:flex;align-items:center;gap:14px;padding:16px 24px;border-top:1px solid var(--line);transition:background .12s}
.address-admin:hover{background:var(--surface-2)}
.address-admin strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.address-admin p{margin:2px 0 4px;color:var(--ink-2);font-size:13px;overflow-wrap:anywhere}
.address-admin small{color:var(--muted);font-size:12px}
.address-admin-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:10px;background:var(--primary-soft);color:var(--primary)}
.address-admin{cursor:pointer}
.address-admin.selected{background:var(--primary-soft)}
.address-admin.selected .address-admin-icon{background:var(--primary);color:var(--on-primary)}
.row-check{align-self:center}
.unassigned{color:var(--warning);font-weight:500}
.bulk-bar{position:sticky;top:60px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:56px;padding:8px 24px;border-top:1px solid var(--line);background:var(--surface-2)}
.bulk-bar.active{background:var(--primary-soft);border-color:transparent}
.bulk-bar .checkbox-label{min-height:36px;color:var(--ink-2)}
.bulk-bar b{color:var(--primary-ink)}
.bulk-hint{color:var(--muted);font-size:12px}
.bulk-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bulk-actions .btn{min-height:36px;padding:6px 12px;font-size:13px}
.bulk-preview{display:grid;gap:6px;margin:0 0 18px;padding:12px 14px;border-radius:var(--radius);background:var(--surface-2);list-style:none;font-size:13px}
.bulk-preview li{display:flex;flex-direction:column;min-width:0}
.bulk-preview li>span{color:var(--muted);overflow-wrap:anywhere}
.dialog-body>label.with-tools{margin-bottom:4px}
.field-tools{display:flex;justify-content:flex-end;min-height:20px;margin-bottom:12px}
.field-tools .text-btn{display:inline-flex;align-items:center;gap:6px;min-height:30px}
.field-tools .icon{width:14px;height:14px}
.form-hint{margin-top:12px;color:var(--muted);font-size:12px;text-align:right}
.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:4px 24px 24px}
.user-card{display:flex;flex-direction:column;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);transition:border-color .15s,box-shadow .15s}
.user-card:hover{border-color:var(--line-2);box-shadow:var(--shadow)}
.user-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.user-card h3{margin:14px 0 2px;font-size:16px;font-weight:650}
.user-card>p{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.role-label{display:flex;align-items:center;gap:6px;margin-top:12px;color:var(--ink-2);font-size:13px;font-weight:500}
.role-label .icon{width:16px;height:16px;color:var(--primary)}
.user-card ul{flex:1;margin:12px 0 0;padding:12px 0 0 18px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.8}
.user-card>.muted{display:block;margin-top:10px;color:var(--warning);font-size:12px;font-weight:500}
.user-card>.btn{margin-top:16px}
.history-entry{display:flex;align-items:center;gap:14px;width:100%;padding:16px 24px;border-top:1px solid var(--line);text-align:left;transition:background .12s}
.history-entry:hover{background:var(--surface-2)}
.history-entry strong,.history-entry .grow>span,.history-entry small{display:block}
.history-entry strong{font-size:14px;font-weight:600}
.history-entry .grow>span{margin-top:2px;color:var(--ink-2);font-size:13px;overflow-wrap:anywhere}
.history-entry small{margin-top:4px;color:var(--muted);font-size:12px}
.history-entry small.missing-note{display:flex}
.history-entry>.icon{width:16px;color:var(--muted)}
.timeline-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:var(--surface-3);color:var(--muted)}
.timeline-icon>.icon{width:17px;height:17px}
.timeline-icon.delivered{background:var(--success-soft);color:var(--success)}
.timeline-icon.partial{background:var(--warning-soft);color:var(--warning)}
.timeline-icon.failed{background:var(--danger-soft);color:var(--danger)}
.empty{padding:56px 24px;text-align:center;color:var(--muted)}
.empty>.icon{width:44px;height:44px;margin-bottom:14px;padding:10px;border-radius:12px;background:var(--surface-3)}
.empty h3{color:var(--ink);font-size:16px;font-weight:650}
.empty p{margin-top:6px;font-size:13px}
.mobile-nav,.sidebar-backdrop{display:none}

/* Dialogs */
dialog{width:min(640px,calc(100vw - 32px));max-height:min(880px,calc(100dvh - 48px));padding:0;border:1px solid var(--line);border-radius:var(--radius-xl);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg);overflow-y:auto;overscroll-behavior:contain}
dialog[open]{animation:dialog-in .22s cubic-bezier(.2,.8,.2,1)}
dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
dialog[open]::backdrop{animation:fade-in .2s ease-out}
@keyframes dialog-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@keyframes fade-in{from{opacity:0}}
.dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 24px 16px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.dialog-head h2{font-size:20px;font-weight:700;line-height:1.3;letter-spacing:-.02em;overflow-wrap:anywhere}
.dialog-head .eyebrow{display:inline-block;margin-bottom:6px;padding:2px 8px;border-radius:999px;background:var(--primary-soft);color:var(--primary-ink);font-size:12px;font-weight:600}
.dialog-head .close-dialog{margin:-4px -8px 0 0}
.dialog-body{padding:20px 24px 24px}
.dialog-body>label{margin-bottom:18px}
.dialog-body>p.muted{margin-bottom:18px}
.detail-address{display:flex;align-items:flex-start;gap:10px;font-size:15px;font-weight:500;line-height:1.55;overflow-wrap:anywhere}
.detail-address>.icon{width:18px;height:18px;margin-top:2px;color:var(--primary)}
.address-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.address-tools .btn{min-height:36px;font-size:13px}
.address-tools .icon{width:16px;height:16px}
.detail-meta{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 20px}
.detail-meta>span{padding:3px 10px;border-radius:999px;background:var(--surface-3);color:var(--ink-2);font-size:12px;font-weight:500}
.notice,.draft-notice{display:flex;align-items:flex-start;gap:10px;margin-bottom:20px;padding:12px 14px;border:1px solid var(--warning-line);border-radius:var(--radius);background:var(--warning-soft);color:var(--warning);font-size:13px;line-height:1.55}
.notice>.icon,.draft-notice>.icon{width:17px;height:17px;margin-top:1px}
.draft-notice{border-color:transparent;background:var(--primary-soft);color:var(--primary-ink)}
.draft-notice>span{flex:1}
.draft-notice>.text-btn{flex-shrink:0;min-height:28px;padding:2px 8px}
.status-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:24px 0;padding:0;border:0}
.status-picker legend{margin-bottom:12px;font-size:14px;font-weight:650}
.step-number{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:6px;background:var(--primary);color:var(--on-primary);font-size:11px;font-weight:700}
.status-option{position:relative;display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 14px;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--surface);color:var(--ink-2);font-size:14px;font-weight:600;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.status-option:hover{border-color:var(--muted)}
.status-option>.icon{width:17px;height:17px}
.status-option:has(input:checked){border-color:var(--primary);background:var(--primary-soft);color:var(--primary-ink);box-shadow:0 0 0 1px var(--primary)}
.status-option.delivered:has(input:checked){border-color:var(--success);background:var(--success-soft);color:var(--success);box-shadow:0 0 0 1px var(--success)}
.status-option.partial:has(input:checked){border-color:var(--warning);background:var(--warning-soft);color:var(--warning);box-shadow:0 0 0 1px var(--warning)}
.status-option.failed:has(input:checked){border-color:var(--danger);background:var(--danger-soft);color:var(--danger);box-shadow:0 0 0 1px var(--danger)}
.status-option:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.optional{margin-left:4px;color:var(--muted);font-size:12px;font-weight:400}
.photo-upload{margin-top:24px;padding:16px;border:1.5px dashed var(--line-2);border-radius:var(--radius);background:var(--surface-2)}
.upload-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;font-size:14px}
.upload-heading strong{display:flex;align-items:center;font-weight:650}
.upload-heading>span{padding:2px 8px;border-radius:999px;background:var(--surface-3);color:var(--muted);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.photo-buttons{display:flex;gap:8px}
.photo-buttons .btn{flex:1}
.photo-upload .small{margin-top:12px;color:var(--muted);font-size:12px}
.photo-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.photo-preview:empty{display:none}
.photo-preview>div{position:relative;aspect-ratio:4/3}
.photo-preview img{width:100%;height:100%;border-radius:var(--radius-sm);object-fit:cover;box-shadow:var(--shadow-sm)}
.photo-preview button{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#0f172acc;color:#fff;backdrop-filter:blur(4px)}
.photo-preview button>.icon{width:15px;height:15px}
.report-history{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.report-history h3{margin-bottom:14px;font-size:15px;font-weight:650}
.report-history h3>span{margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--surface-3);color:var(--muted);font-size:12px;font-weight:600}
.report-history article{margin-bottom:10px;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2)}
.report-history-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.report-history-top>small{color:var(--muted);font-size:12px}
.report-history article>p{margin-top:4px;font-size:13px}
.saved-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.saved-photos:empty{display:none}
.saved-photos img{width:100%;aspect-ratio:1;border-radius:var(--radius-sm);object-fit:cover;transition:opacity .15s}
.saved-photos a:hover img{opacity:.85}
.dialog-actions{position:sticky;bottom:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 24px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.dialog-actions>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.dialog-actions>span>.icon{width:14px;height:14px}
.dialog-actions>.btn{flex-shrink:0}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.address-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px}
.dialog-body .checkbox-label{margin-bottom:16px;padding:0}
.password-result{margin-top:20px}
.password-result code{display:block;margin:6px 0;padding:8px 10px;border-radius:6px;background:var(--surface);color:var(--ink);font-family:ui-monospace,'Cascadia Code',Consolas,monospace;font-size:16px;overflow-wrap:anywhere}
.password-result small{font-size:12px}
.form-error{margin:12px 0;padding:10px 12px;border:1px solid var(--danger-line);border-radius:var(--radius-sm);background:var(--danger-soft);color:var(--danger);font-size:13px;font-weight:500}
.form-error:empty{display:none}

/* Month overview */
.month-overview>p.muted{margin-bottom:16px}
.overview-total{padding:18px;border-radius:var(--radius);background:linear-gradient(135deg,var(--primary-soft),var(--surface-2));border:1px solid var(--line)}
.overview-total>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.overview-total strong{font-size:26px;font-weight:700;letter-spacing:-.02em}
.overview-total>div>span{color:var(--muted);font-size:13px}
.overview-total>.progress{display:block;width:100%;height:8px;margin:12px 0;background:var(--surface)}
.overview-total>.progress::-webkit-progress-bar{background:var(--surface)}
.overview-total>p{display:flex;align-items:center;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.overview-total b{color:var(--ink)}
.overview-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 10px}
.overview-actions>.btn{flex:1;min-width:210px}
.overview-hint{margin-bottom:20px;color:var(--muted);font-size:13px}
.overview-routes{display:grid;gap:10px}
.overview-route{padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.overview-route-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.overview-route-head>.text-btn{display:flex;align-items:center;gap:4px;min-width:0;padding:2px 6px;margin-left:-6px;color:var(--ink);font-size:14px;text-align:left;overflow-wrap:anywhere}
.overview-route-head .icon{width:14px;height:14px;color:var(--muted)}
.overview-route-head>strong{flex-shrink:0;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.overview-route>.progress{display:block;width:100%;margin:8px 0 10px}
.overview-route-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.overview-route-actions>button{min-height:32px;padding:4px 10px;border:1px solid var(--line-2);border-radius:999px;color:var(--ink-2);font-size:12px;font-weight:500;transition:background .15s,border-color .15s}
.overview-route-actions>button:hover:not(:disabled){border-color:var(--muted);background:var(--surface-2)}
.overview-route-actions>span{margin-left:auto;color:var(--muted);font-size:12px}
.overview-route>small{display:flex;align-items:center;gap:6px;margin-top:8px;color:var(--warning);font-size:12px;font-weight:500}
.overview-route>small>.icon{width:14px;height:14px}

/* Login */
.login{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100dvh;background:var(--surface)}
.login-aside{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:40px;padding:40px 48px;background:radial-gradient(120% 80% at 0% 0%,#4f46e5 0%,transparent 55%),radial-gradient(90% 70% at 100% 100%,#0ea5e9aa 0%,transparent 60%),#0f172a;color:#e2e8f0;overflow:hidden}
.login-aside .brand{color:#fff}
.login-aside h2{max-width:460px;font-size:38px;font-weight:700;line-height:1.15;letter-spacing:-.03em;color:#fff}
.login-aside p{max-width:440px;margin-top:14px;color:#cbd5e1;font-size:15px;line-height:1.6}
.login-features{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.login-features li{display:flex;align-items:center;gap:12px;color:#e2e8f0;font-size:14px}
.login-features .icon{width:34px;height:34px;padding:8px;border-radius:10px;background:#ffffff1a;color:#fff}
.login-main{display:grid;place-items:center;padding:32px}
.login-form-side{width:min(100%,400px)}
.login-brand{display:none;margin-bottom:28px}
.login-form h1{font-size:26px;font-weight:700;line-height:1.25;letter-spacing:-.025em}
.login-form>.muted{margin:8px 0 28px;font-size:14px}
.login-form label{margin-bottom:18px}
.login-form>.btn{min-height:44px;margin-top:6px}
.login-form>.btn>.icon{margin-left:auto}
.password-row{position:relative}
.password-row input{padding-right:96px}
.password-row .text-btn{position:absolute;top:50%;right:4px;transform:translateY(-50%)}
.login-help{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}

/* Boot and toast */
.boot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:100dvh;padding:24px;color:var(--muted);text-align:center}
.boot h2{color:var(--ink);font-size:18px}
.spinner{width:28px;height:28px;border:2.5px solid var(--line);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
#toast,.dialog-toast{position:fixed;bottom:24px;left:50%;z-index:100;width:max-content;max-width:min(560px,calc(100vw - 32px));padding:12px 16px;border-radius:var(--radius);background:var(--toast);color:var(--toast-ink);box-shadow:var(--shadow-lg);font-size:14px;font-weight:500;line-height:1.5;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,8px);transition:opacity .2s,transform .2s,visibility .2s}
#toast.show,.dialog-toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
#toast.error,.dialog-toast.error{background:#b42318;color:#fff}
.dialog-toast{position:sticky;bottom:12px;left:auto;width:calc(100% - 32px);max-width:none;margin:12px auto;transform:none}
.dialog-toast.show{transform:none}
.dialog-toast:not(.show){display:none}
#content[aria-busy=true]{cursor:progress;opacity:.6;transition:opacity .2s}

/* Responsive */
@media(max-width:1200px){
 .page-head{flex-direction:column;align-items:flex-start}
 .head-actions{justify-content:flex-start}
 .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .delivery-list.card-view{grid-template-columns:1fr}
 .login-aside{padding:32px}
 .login-aside h2{font-size:32px}
}
@media(max-width:1000px){
 .breadcrumbs>span{display:none}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .table-head{display:none}
 .delivery-list{display:grid;gap:10px;padding:4px 16px 16px}
 .delivery-row{grid-template-columns:minmax(0,1fr) auto 24px;gap:12px;padding:16px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}
 .delivery-row::before{top:0!important;bottom:0!important;border-radius:0!important}
 .delivery-row .address-cell{grid-column:1/-1;grid-row:1}.delivery-row .route-cell{grid-column:1/-1;grid-row:2}.delivery-row .badge{grid-column:1;grid-row:3}.delivery-row .photo-cell{grid-column:2;grid-row:3}.delivery-row .row-arrow{grid-column:3;grid-row:3}
 .row-number{display:none}
 .filter-toolbar{flex-wrap:wrap}
 .login{grid-template-columns:1fr}
 .login-aside{display:none}
 .login-main{background:var(--bg)}
 .login-form-side{padding:32px;border:1px solid var(--line);border-radius:var(--radius-xl);background:var(--surface);box-shadow:var(--shadow)}
 .login-brand{display:flex}
}
@media(max-width:700px){
 html{scrollbar-gutter:auto}
 body{font-size:15px}
 input,select,textarea{font-size:16px;min-height:46px}
 .sidebar{width:min(296px,86vw);padding-top:16px;transform:translateX(-100%);transition:transform .25s cubic-bezier(.2,.8,.2,1);box-shadow:var(--shadow-lg)}
 .menu-open .sidebar{transform:none}
 .menu-open .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:39;background:var(--backdrop);backdrop-filter:blur(2px);animation:fade-in .2s}
 .main{margin:0;padding-bottom:92px}
 .topbar{min-height:56px;padding:6px 12px;gap:8px}
 #menu{display:inline-grid}
 .breadcrumbs>.icon{display:none}
 .breadcrumbs strong{font-size:15px}
 .role-chip{display:none}
 .topbar-status{padding:4px 9px;font-size:11px}
 .page-head{gap:16px;padding:20px 16px 18px}
 .page-head h1{font-size:24px}
 .page-head p{font-size:14px}
 .head-actions{width:100%;gap:8px}
 .date-switcher{width:100%}
 .date-field{flex:1;width:auto;text-align:center}
 .date-field input{font-size:16px;text-align:center}
 .date-switcher>.icon-btn{width:42px;min-width:42px;height:42px}
 .head-actions>.btn{flex:1;min-height:44px;font-size:13px}
 .stats{gap:10px;padding:0 16px 18px}
 .stat{padding:14px}
 .stat-icon{width:30px;height:30px;border-radius:8px}
 .stat-icon>.icon{width:16px;height:16px}
 .stat-top{font-size:12px}
 .stat>strong{font-size:26px}
 .stat>strong>span{font-size:12px}
 .stat>small{font-size:11px}
 .work-panel{margin:0 12px;border-radius:var(--radius-lg)}
 .panel-title{padding:16px 16px 12px}
 .view-switch{display:none}
 .filters{gap:8px;padding:0 16px 12px}
 .search-field{flex-basis:100%;min-width:0}
 .route-field{flex:1;width:auto;min-width:0}
 .filter-toolbar{padding:0 16px 12px;gap:8px}
 .status-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;white-space:normal}
 .status-tabs>button{justify-content:space-between;min-height:40px}
 .small-dot{display:none}
 .sort-label{width:100%}
 .sort-label select{flex:1;font-size:15px}
 .quick-filters{padding:0 16px 14px}
 .filter-chip{min-height:38px}
 .reset-filter{min-height:38px}
 .delivery-list,.delivery-list.card-view{grid-template-columns:1fr;gap:10px;padding:4px 12px 12px}
 .delivery-row,.card-view .delivery-row{grid-template-columns:minmax(0,1fr) auto 22px;gap:10px;padding:14px}
 .row-copy>strong{font-size:15px}
 .row-copy>span{font-size:14px}
 .list-footer{padding:12px 16px}
 .page-footer{flex-direction:column;align-items:flex-start;gap:4px;margin:20px 16px}
 .mobile-nav{position:fixed;inset:auto 0 0;z-index:30;display:flex;gap:4px;padding:6px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px)}
 .mobile-nav>.nav-item{flex:1;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:54px;padding:6px 2px;color:var(--muted);font-size:11px;font-weight:600;line-height:1.2;text-align:center}
 .mobile-nav>.nav-item:hover{background:transparent;color:var(--ink)}
 .mobile-nav>.nav-item.active{background:transparent;color:var(--primary)}
 .mobile-nav>.nav-item.active>.icon{color:var(--primary);background:var(--primary-soft)}
 .mobile-nav .nav-item>.icon{width:44px;height:28px;padding:4px 12px;border-radius:999px;transition:background .15s}
 .team-grid{grid-template-columns:1fr;gap:12px;padding:4px 16px 16px}
 .address-admin{align-items:flex-start;gap:10px;padding:14px 16px}
 .address-admin-icon{display:none}
 .address-admin .btn{width:40px;min-width:40px;padding:0}
 .address-admin .btn>span{display:none}
 .row-check{align-self:flex-start;margin-top:2px}
 .bulk-bar{top:56px;padding:8px 16px}
 .bulk-hint{display:none}
 .bulk-actions{width:100%}
 .bulk-actions .btn{flex:1;padding:6px 8px}
 .form-hint{display:none}
 .history-entry{flex-wrap:wrap;gap:12px;padding:14px 16px}
 .history-entry>.grow{flex-basis:calc(100% - 48px);max-width:calc(100% - 48px)}
 .history-entry>.badge{margin-left:48px}
 .history-entry>.icon{margin-left:auto}
 dialog{width:100%;max-width:100%;max-height:calc(100dvh - 16px);margin:auto 0 0;border-width:1px 0 0;border-radius:var(--radius-xl) var(--radius-xl) 0 0}
 dialog[open]{animation:sheet-in .28s cubic-bezier(.2,.8,.2,1)}
 @keyframes sheet-in{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
 .dialog-head{padding:18px 16px 14px}
 .dialog-head::before{content:'';position:absolute;top:6px;left:50%;width:36px;height:4px;border-radius:999px;background:var(--line-2);transform:translateX(-50%)}
 .dialog-head h2{font-size:19px}
 .dialog-body{padding:18px 16px 20px}
 .status-option{min-height:50px;padding:10px 12px;font-size:13px}
 .photo-upload{padding:14px 12px}
 .upload-heading{align-items:flex-start}
 .photo-buttons{flex-direction:column}
 .photo-buttons .btn{min-height:48px;font-size:15px}
 .photo-preview{grid-template-columns:repeat(2,minmax(0,1fr))}
 .saved-photos{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dialog-actions{flex-direction:column-reverse;align-items:stretch;gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom))}
 .dialog-actions>.btn{width:100%;min-height:48px;font-size:15px}
 .dialog-actions>span{justify-content:center;font-size:11px}
 .two-fields{grid-template-columns:1fr}
 .address-actions{flex-wrap:wrap}
 .address-actions>.btn{flex:1}
 .draft-notice{flex-wrap:wrap}
 .draft-notice>.text-btn{margin-left:27px}
 .report-history-top{flex-wrap:wrap;align-items:flex-start}
 .overview-actions>.btn{flex-basis:100%;min-width:0;min-height:46px}
 .overview-route-actions>span{flex-basis:100%;margin-left:0}
 .login-main{padding:16px}
 .login-form-side{padding:24px 20px}
 .login-form>.btn{min-height:48px}
 #toast{bottom:96px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
