/* FleetLume UI v3 — responsive operations workspace */
:root{
  --fl-bg:#f4f7fb;--fl-surface:#fff;--fl-surface-2:#f8fafc;--fl-ink:#101828;--fl-muted:#667085;
  --fl-line:#e4e9f0;--fl-brand:#1668e8;--fl-brand-2:#06a8c9;--fl-navy:#07111f;--fl-navy-2:#0b1c31;
  --fl-success:#079455;--fl-warning:#dc6803;--fl-danger:#d92d20;--fl-purple:#6941c6;
  --fl-shadow:0 1px 2px rgba(16,24,40,.04),0 10px 28px rgba(16,24,40,.07);
  --fl-shadow-lg:0 28px 80px rgba(7,17,31,.18);--fl-radius:16px;--fl-sidebar:264px;
}
html{scroll-behavior:smooth}body.ui-v3{background:var(--fl-bg);color:var(--fl-ink);font-size:14px;overflow-x:hidden}
body.ui-v3 button,body.ui-v3 input,body.ui-v3 select,body.ui-v3 textarea{font-family:inherit}
body.ui-v3 :focus-visible{outline:3px solid rgba(22,104,232,.22);outline-offset:2px}
body.ui-v3 .app-shell{display:grid;grid-template-columns:var(--fl-sidebar) minmax(0,1fr);min-height:100dvh;transition:grid-template-columns .22s ease}
body.ui-v3.sidebar-collapsed .app-shell{grid-template-columns:78px minmax(0,1fr)}
body.ui-v3 .main-content{min-width:0;width:100%;background:radial-gradient(circle at 78% -10%,rgba(22,104,232,.06),transparent 28%),var(--fl-bg)}

/* Sidebar */
body.ui-v3 .sidebar-v3{position:sticky;top:0;height:100dvh;z-index:60;display:flex;flex-direction:column;padding:16px 14px;background:linear-gradient(180deg,var(--fl-navy) 0%,#0b1828 100%);color:#fff;border-right:1px solid rgba(255,255,255,.06);overflow:hidden}
body.ui-v3 .sidebar-brand-row{display:flex;align-items:center;gap:8px;min-height:52px;padding:0 4px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
body.ui-v3 .sidebar .brand{min-width:0;flex:1;display:flex;align-items:center;gap:11px;padding:0;color:#fff}
body.ui-v3 .brand-mark-image{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.24)}
body.ui-v3 .brand-mark-image img{width:100%;height:100%;object-fit:cover;transform:scale(1.12)}
body.ui-v3 .brand-copy{display:block;min-width:0;line-height:1.1;transition:opacity .16s,width .16s}
body.ui-v3 .brand-copy strong{display:block;font-size:17px;letter-spacing:-.02em}
body.ui-v3 .brand-copy small{display:block;margin-top:5px;color:#8ea0b7;font-size:11px;text-transform:uppercase;letter-spacing:.08em}
body.ui-v3 .icon-button{width:38px;height:38px;display:inline-grid;place-items:center;flex:0 0 38px;padding:0;border:1px solid var(--fl-line);border-radius:11px;background:#fff;color:var(--fl-ink);cursor:pointer;transition:.18s ease}
body.ui-v3 .icon-button:hover{transform:translateY(-1px);border-color:#cfd8e5;box-shadow:0 5px 16px rgba(16,24,40,.08)}
body.ui-v3 .icon-button svg{width:19px;height:19px}
body.ui-v3 .sidebar .icon-button{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.1);color:#aebbd0}
body.ui-v3 .sidebar .icon-button:hover{background:rgba(255,255,255,.1);color:#fff;box-shadow:none}
body.ui-v3 .sidebar-close{display:none!important;font-size:24px}
body.ui-v3 .nav-search{height:42px;display:flex;align-items:center;gap:9px;margin:14px 2px 6px;padding:0 10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.045);color:#8fa2bb;transition:.2s}
body.ui-v3 .nav-search:focus-within{border-color:rgba(72,146,255,.55);background:rgba(255,255,255,.075)}
body.ui-v3 .nav-search svg{width:17px;height:17px;flex:0 0 17px;stroke-width:1.8}
body.ui-v3 .nav-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:13px}
body.ui-v3 .nav-search input::placeholder{color:#8190a4}
body.ui-v3 .nav-search kbd{font-size:9px;padding:3px 5px;border:1px solid rgba(255,255,255,.1);border-radius:5px;color:#8495aa;background:rgba(255,255,255,.03)}
body.ui-v3 .sidebar-nav{display:block;flex:1;min-height:0;margin:8px -3px 10px;padding:0 4px 12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#314056 transparent}
body.ui-v3 .sidebar-nav::-webkit-scrollbar{width:5px}body.ui-v3 .sidebar-nav::-webkit-scrollbar-thumb{background:#314056;border-radius:9px}
body.ui-v3 .nav-item,body.ui-v3 .nav-section>summary{position:relative;min-height:42px;display:flex;align-items:center;gap:11px;margin:3px 0;padding:9px 10px;border-radius:11px;color:#a9b7ca;font-weight:590;cursor:pointer;list-style:none;transition:background .16s,color .16s,transform .16s}
body.ui-v3 .nav-item::-webkit-details-marker,body.ui-v3 .nav-section>summary::-webkit-details-marker{display:none}
body.ui-v3 .nav-item:hover,body.ui-v3 .nav-section>summary:hover{color:#fff;background:rgba(255,255,255,.065)}
body.ui-v3 .nav-item.active{color:#fff;background:linear-gradient(90deg,rgba(36,119,255,.28),rgba(21,171,206,.1));box-shadow:inset 3px 0 0 #4ba3ff}
body.ui-v3 .nav-item svg,body.ui-v3 .nav-section>summary svg{width:19px;height:19px;flex:0 0 19px}
body.ui-v3 .nav-item>span,body.ui-v3 .nav-section>summary>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ui-v3 .nav-section>summary i{margin-left:auto;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s}
body.ui-v3 .nav-section[open]>summary i{transform:rotate(225deg) translate(-1px,-1px)}
body.ui-v3 .nav-section>div{position:relative;margin:0 0 6px 18px;padding-left:12px;border-left:1px solid rgba(255,255,255,.09)}
body.ui-v3 .nav-section>div .nav-item{min-height:37px;padding:7px 9px;font-size:13px}
body.ui-v3 .nav-section>div .nav-item svg{width:16px;height:16px;opacity:.82}
body.ui-v3 .nav-count{margin-left:auto;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;border-radius:999px;background:#e5484d;color:#fff;font-size:10px;line-height:1}
body.ui-v3 .sidebar-footer{display:flex;align-items:center;gap:10px;margin-top:auto;padding:10px 8px 0;border-top:1px solid rgba(255,255,255,.08);background:transparent;border-radius:0}
body.ui-v3 .sidebar-user-avatar{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#2e7cf6,#12a7ca);font-weight:800}
body.ui-v3 .sidebar-user-copy{min-width:0;flex:1}.sidebar-user-copy strong,.sidebar-user-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-copy strong{font-size:13px}.sidebar-user-copy small{margin-top:3px;color:#8495aa;font-size:11px}
body.ui-v3.sidebar-collapsed .brand-copy,body.ui-v3.sidebar-collapsed .nav-search input,body.ui-v3.sidebar-collapsed .nav-search kbd,body.ui-v3.sidebar-collapsed .nav-item>span,body.ui-v3.sidebar-collapsed .nav-section>summary>span,body.ui-v3.sidebar-collapsed .nav-section>summary i,body.ui-v3.sidebar-collapsed .sidebar-user-copy,body.ui-v3.sidebar-collapsed .sidebar-footer>a{display:none}
body.ui-v3.sidebar-collapsed .sidebar-v3{padding-inline:10px}body.ui-v3.sidebar-collapsed .sidebar-brand-row{justify-content:center}body.ui-v3.sidebar-collapsed .sidebar .brand{flex:0 0 40px}body.ui-v3.sidebar-collapsed .sidebar-collapse{position:absolute;left:55px;top:18px;width:24px;height:24px;opacity:0;transition:.18s}
body.ui-v3.sidebar-collapsed .sidebar-v3:hover .sidebar-collapse{opacity:1}body.ui-v3.sidebar-collapsed .nav-search{justify-content:center;padding:0}body.ui-v3.sidebar-collapsed .nav-item,body.ui-v3.sidebar-collapsed .nav-section>summary{justify-content:center;padding-inline:0}body.ui-v3.sidebar-collapsed .nav-section>div{display:none}body.ui-v3.sidebar-collapsed .sidebar-footer{justify-content:center;padding-inline:0}

/* Top bar */
body.ui-v3 .topbar-v3{min-height:78px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(240px,480px) auto;align-items:center;gap:18px;padding:12px 26px;position:sticky;top:0;z-index:45;background:rgba(244,247,251,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(228,233,240,.82)}
body.ui-v3 .topbar-leading{display:flex;align-items:center;gap:12px;min-width:0}.topbar-leading .mobile-menu{display:none}
body.ui-v3 .topbar-title{min-width:0}.topbar-title .eyebrow{margin:0 0 2px;color:#667085;font-size:9px;letter-spacing:.09em}.topbar-title h1{font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ui-v3 .command-trigger{height:42px;display:flex;align-items:center;gap:10px;width:100%;padding:0 11px;border:1px solid var(--fl-line);border-radius:12px;background:rgba(255,255,255,.9);color:#98a2b3;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,40,.03)}
body.ui-v3 .command-trigger:hover{border-color:#cbd5e1;background:#fff}.command-trigger svg{width:18px}.command-trigger span{flex:1;text-align:left}.command-trigger kbd{padding:3px 7px;border:1px solid #e4e7ec;border-radius:6px;background:#f9fafb;color:#667085;font-size:10px}
body.ui-v3 .topbar-actions{display:flex;align-items:center;gap:9px}
body.ui-v3 .autopilot-pill{height:44px;display:flex;align-items:center;gap:8px;padding:5px 10px 5px 6px;border:1px solid #dde5f1;border-radius:13px;background:#fff;transition:.18s}.autopilot-pill:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(16,24,40,.08)}.autopilot-pill.is-active{border-color:#bed3ff;background:#f5f8ff}.autopilot-spark{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#2f6fed,#7c4dff);color:#fff;font-size:15px}.autopilot-pill strong,.autopilot-pill small{display:block}.autopilot-pill strong{font-size:12px}.autopilot-pill small{margin-top:2px;color:#667085;font-size:10px}.autopilot-pill b{min-width:19px;height:19px;display:grid;place-items:center;border-radius:99px;background:#d92d20;color:#fff;font-size:9px}
body.ui-v3 .notification-button{position:relative}.notification-button>span{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border:2px solid var(--fl-bg);border-radius:99px;background:#d92d20;color:#fff;font-size:8px;font-weight:800}
body.ui-v3 .profile-menu{position:relative}.profile-menu>summary{display:flex;align-items:center;gap:8px;padding:4px 7px 4px 4px;border:1px solid var(--fl-line);border-radius:13px;background:#fff;cursor:pointer;list-style:none}.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu .avatar{width:34px;height:34px;border-radius:10px}.profile-copy{max-width:105px}.profile-copy strong,.profile-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy strong{font-size:12px}.profile-copy small{font-size:10px;color:#667085}.profile-menu>summary i{width:6px;height:6px;margin:0 3px;border-right:1px solid #667085;border-bottom:1px solid #667085;transform:rotate(45deg)}
body.ui-v3 .profile-popover{position:absolute;right:0;top:calc(100% + 8px);width:220px;padding:8px;border:1px solid var(--fl-line);border-radius:14px;background:#fff;box-shadow:var(--fl-shadow-lg);z-index:80}.profile-popover>div{padding:9px 10px 11px;border-bottom:1px solid #edf0f4;margin-bottom:5px}.profile-popover>div strong,.profile-popover>div span{display:block}.profile-popover>div span{margin-top:3px;color:#667085;font-size:11px;overflow:hidden;text-overflow:ellipsis}.profile-popover a,.profile-popover button{width:100%;display:block;padding:9px 10px;border:0;border-radius:9px;background:transparent;text-align:left;color:#344054;cursor:pointer}.profile-popover a:hover,.profile-popover button:hover{background:#f2f4f7;color:#101828}

/* Core content and components */
body.ui-v3 .page-content{width:100%;max-width:1680px;margin:0 auto;padding:22px 26px 44px}
body.ui-v3 .alert{margin:14px 26px 0;border-radius:12px;box-shadow:none}
body.ui-v3 .page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 20px;padding:0}.page-heading>div:first-child{min-width:0}.page-heading h1{margin:0;color:var(--fl-ink);font-size:28px;line-height:1.16;letter-spacing:-.035em}.page-heading p:not(.eyebrow){max-width:820px;margin:7px 0 0;color:var(--fl-muted);line-height:1.55}.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
body.ui-v3 .eyebrow{color:var(--fl-brand);font-size:10px;letter-spacing:.11em}
body.ui-v3 .panel,body.ui-v3 .stat-card,body.ui-v3 .card{border:1px solid var(--fl-line);border-radius:var(--fl-radius);background:var(--fl-surface);box-shadow:var(--fl-shadow)}
body.ui-v3 .panel{padding:19px}.panel-header{gap:14px}.panel-header h2{font-size:17px;letter-spacing:-.02em}.panel-header p{margin:5px 0 0;color:var(--fl-muted);line-height:1.45}
body.ui-v3 .stats-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.stat-card{padding:18px}.stat-card strong{font-size:28px}.stat-card.highlight{background:linear-gradient(135deg,#145ddb,#08a1c1)}
body.ui-v3 .content-grid{gap:14px}.two-col{grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr)}
body.ui-v3 .btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 14px;border-radius:10px;font-size:13px;font-weight:680;line-height:1.1;white-space:nowrap;transition:.16s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{border-color:var(--fl-brand);background:linear-gradient(180deg,#2877ee,#1668e8);box-shadow:0 6px 15px rgba(22,104,232,.18)}.btn-light{background:#fff;border-color:#dce3ec;color:#344054}.btn-danger{background:#d92d20}.btn-sm{min-height:33px;padding:6px 10px;font-size:11px}
body.ui-v3 input,body.ui-v3 select,body.ui-v3 textarea{width:100%;min-height:42px;border:1px solid #d8e0ea;border-radius:10px;background:#fff;color:#101828;padding:9px 11px;transition:border .15s,box-shadow .15s}body.ui-v3 textarea{min-height:90px;resize:vertical}body.ui-v3 input:focus,body.ui-v3 select:focus,body.ui-v3 textarea:focus{border-color:#78aaf8;box-shadow:0 0 0 3px rgba(22,104,232,.11);outline:0}body.ui-v3 label>span,body.ui-v3 fieldset>legend{display:block;margin-bottom:6px;color:#344054;font-size:12px;font-weight:650}body.ui-v3 label small{display:block;margin-top:5px;line-height:1.4}
body.ui-v3 .form-grid{gap:13px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.form-stack{gap:14px}.form-actions{padding-top:4px;flex-wrap:wrap}
body.ui-v3 .table-wrap{width:100%;overflow:auto;border:1px solid #e8ecf2;border-radius:13px;scrollbar-width:thin}.table-wrap table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0}.table-wrap th{position:sticky;top:0;z-index:2;padding:10px 12px;background:#f8fafc;color:#667085;font-size:10px;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid #e4e9f0}.table-wrap td{padding:12px;border-bottom:1px solid #edf0f4;vertical-align:middle}.table-wrap tbody tr:last-child td{border-bottom:0}.table-wrap tbody tr:hover{background:#fbfcfe}.table-actions{flex-wrap:wrap}
body.ui-v3 .badge{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:750}.badge-neutral{background:#f2f4f7;color:#475467}.badge-success{background:#ecfdf3;color:#027a48}.badge-warning{background:#fffaeb;color:#b54708}.badge-danger{background:#fef3f2;color:#b42318}.badge-info,.badge-primary{background:#eff4ff;color:#175cd3}
body.ui-v3 .empty-state{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center;color:#667085}.empty-state strong{color:#101828;font-size:16px}.empty-state span{margin-top:5px}.empty-state.compact{min-height:100px;padding:16px}
body.ui-v3 .dispatch-board{gap:12px;overflow:auto;padding-bottom:8px;scroll-snap-type:x proximity}.dispatch-column{min-width:290px;scroll-snap-align:start}.load-card{border-radius:13px}
body.ui-v3 .calendar-grid{min-width:760px}.map-container{border-radius:14px;overflow:hidden}

/* Automation */
body.ui-v3 .automation-hero{padding:21px;border:1px solid #dce7f8;border-radius:20px;background:linear-gradient(130deg,#fff 0%,#f3f7ff 55%,#eefcfd 100%);box-shadow:var(--fl-shadow)}
body.ui-v3 .automation-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:0 0 15px}.metric-card{position:relative;padding:15px;border:1px solid var(--fl-line);border-radius:14px;background:#fff;overflow:hidden}.metric-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#6d8fb7}.metric-card.is-success:before{background:var(--fl-success)}.metric-card.is-danger:before{background:var(--fl-danger)}.metric-card span,.metric-card small{display:block;color:#667085}.metric-card span{font-size:11px;font-weight:650}.metric-card strong{display:block;margin:8px 0 3px;font-size:25px;letter-spacing:-.04em}.metric-card small{font-size:10px}
body.ui-v3 .segmented-nav{display:flex;align-items:center;gap:4px;margin:0 0 15px;padding:4px;border:1px solid var(--fl-line);border-radius:13px;background:#fff;overflow:auto;scrollbar-width:none}.segmented-nav a{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:9px;color:#667085;white-space:nowrap;font-size:12px;font-weight:650}.segmented-nav a:hover{background:#f5f7fa;color:#101828}.segmented-nav a.active{background:#101828;color:#fff;box-shadow:0 5px 12px rgba(16,24,40,.16)}.segmented-nav b{min-width:18px;height:18px;display:grid;place-items:center;border-radius:99px;background:#d92d20;color:#fff;font-size:9px}
body.ui-v3 .automation-overview-grid{grid-template-columns:minmax(0,1fr) minmax(330px,.8fr);margin-bottom:14px}.autopilot-status-card{background:linear-gradient(150deg,#0b1a2e,#112b4b);border-color:#1f3957;color:#fff}.autopilot-status-card .eyebrow{color:#64cbed}.autopilot-status-card h2{color:#fff}.status-dot{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid rgba(255,255,255,.12);border-radius:99px;background:rgba(255,255,255,.07);font-size:10px}.status-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:#5bd69a;box-shadow:0 0 0 4px rgba(91,214,154,.12)}
body.ui-v3 .automation-policy-list{display:grid;gap:13px;margin-top:17px}.automation-policy-list>div{display:grid;grid-template-columns:31px 1fr;gap:11px;align-items:start}.policy-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:rgba(74,161,255,.16);color:#77b9ff;font-weight:800}.automation-policy-list strong{font-size:13px}.automation-policy-list p{margin:3px 0 0;color:#aebbd0;font-size:11px;line-height:1.5}
body.ui-v3 .activity-stream{display:grid;gap:0;margin-top:8px}.activity-item{position:relative;display:grid;grid-template-columns:15px 1fr;gap:10px;padding:10px 0}.activity-item:not(:last-child):before{content:"";position:absolute;left:5px;top:25px;bottom:-9px;width:1px;background:#e1e7ef}.activity-marker{width:11px;height:11px;margin-top:3px;border:3px solid #d9e7ff;border-radius:50%;background:#2877ee}.activity-item strong{font-size:12px}.activity-item p{margin:3px 0;color:#667085;font-size:11px;line-height:1.45}.activity-item small{color:#98a2b3;font-size:10px}.activity-stream.detailed .activity-item{padding:14px 0}.activity-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.ui-v3 .automation-action-list{display:grid;gap:10px;margin-top:14px}.automation-action-card{position:relative;display:grid;grid-template-columns:4px minmax(0,1fr);overflow:hidden;border:1px solid #e3e8ef;border-radius:13px;background:#fff}.risk-rail{background:#98a2b3}.risk-low{background:#12b76a}.risk-medium{background:#f79009}.risk-high{background:#f04438}.risk-critical{background:#b42318}.automation-action-main{min-width:0;padding:13px}.automation-action-head,.rule-card-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.automation-action-head>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.automation-action-head strong{display:block;width:100%;font-size:13px}.automation-action-head small{color:#98a2b3;white-space:nowrap}.automation-action-main>p{margin:7px 0;color:#667085;font-size:12px;line-height:1.5}.action-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#98a2b3;font-size:10px}.action-meta span:not(:last-child):after{content:"·";margin-left:8px}.ai-draft-preview{margin:10px 0;padding:11px;border:1px solid #d9e6fb;border-radius:10px;background:#f6f9ff}.ai-draft-preview>span{font-size:9px;font-weight:800;color:#175cd3;text-transform:uppercase;letter-spacing:.08em}.ai-draft-preview p{margin:5px 0 0!important;color:#344054!important}
body.ui-v3 .automation-rules-layout{grid-template-columns:minmax(340px,.7fr) minmax(0,1.3fr)}.automation-rule-editor{align-self:start;position:sticky;top:96px}.choice-grid{margin:0;padding:0;border:0}.choice-grid legend{margin-bottom:8px}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.check-card{display:flex!important;align-items:center;gap:7px;padding:9px;border:1px solid #e1e7ef;border-radius:10px;cursor:pointer}.check-card:has(input:checked){border-color:#94baf7;background:#f5f8ff}.check-card input{width:15px!important;min-height:15px!important}.check-card span{margin:0!important;font-size:11px!important}.switch-list{display:grid;gap:8px}.switch-list>label{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e7ebf1;border-radius:11px}.switch-list input{width:17px!important;min-height:17px!important;margin-top:2px}.switch-list strong,.switch-list small{display:block}.switch-list strong{font-size:12px}.switch-list small{margin-top:2px;color:#667085;font-size:10px}
body.ui-v3 .automation-rule-list{display:grid;gap:10px;margin-top:12px}.automation-rule-card{padding:14px;border:1px solid #e3e8ef;border-radius:13px;background:#fbfcfe}.automation-rule-card.is-enabled{background:#fff}.rule-card-top{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:10px;align-items:start}.rule-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#edf4ff;color:#1668e8}.rule-card-top strong{font-size:13px}.rule-card-top p{margin:4px 0 0;color:#667085;font-size:11px;line-height:1.45}.rule-facts{display:flex;gap:6px;flex-wrap:wrap;margin:11px 0}.rule-facts span{padding:4px 7px;border-radius:7px;background:#f2f4f7;color:#475467;font-size:9px;font-weight:650}.rule-card-footer{align-items:center;padding-top:10px;border-top:1px solid #edf0f4}.rule-card-footer small{color:#98a2b3;font-size:10px}.automation-safety-banner{display:flex;align-items:flex-start;gap:12px;margin-top:15px;background:#f8fafc}.safety-icon{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:10px;background:#ecfdf3;color:#027a48;font-weight:800}.automation-safety-banner strong{display:block}.automation-safety-banner p{margin:4px 0 0;color:#667085;line-height:1.5}

/* Command palette and mobile dock */
body.ui-v3 .command-palette{position:fixed;inset:0;z-index:120;display:grid;place-items:start center;padding:11vh 18px}body.ui-v3 .command-palette[hidden]{display:none!important}.command-backdrop{position:absolute;inset:0;border:0;background:rgba(7,17,31,.62);backdrop-filter:blur(5px)}.command-palette>section{position:relative;width:min(620px,100%);overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:#fff;box-shadow:0 35px 100px rgba(0,0,0,.35)}.command-close{position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px;display:grid;place-items:center;border:1px solid #e1e5eb;border-radius:9px;background:#fff;color:#667085;font-size:20px;line-height:1;cursor:pointer}.command-close:hover{background:#f2f4f7;color:#101828}.command-input{padding-right:56px!important}.command-input{height:62px;display:flex;align-items:center;gap:10px;padding:0 15px;border-bottom:1px solid #e8ecf2}.command-input svg{width:20px}.command-input form{flex:1}.command-input input{min-height:40px!important;border:0!important;box-shadow:none!important;padding:0!important;font-size:16px}.command-input kbd{padding:4px 7px;border:1px solid #e1e5eb;border-radius:6px;background:#f7f8fa;color:#667085;font-size:10px}.command-shortcuts{display:grid;gap:4px;padding:10px}.command-shortcuts>span{padding:6px 8px;color:#98a2b3;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.command-shortcuts a{display:flex;justify-content:space-between;padding:10px;border-radius:9px}.command-shortcuts a:hover{background:#f2f4f7}.command-shortcuts kbd{color:#98a2b3}
body.ui-v3 .mobile-dock{display:none}.sidebar-backdrop{display:none}

/* Responsive */
@media(max-width:1260px){
 body.ui-v3 .topbar-v3{grid-template-columns:minmax(180px,1fr) minmax(210px,380px) auto;padding-inline:20px}.profile-copy{display:none}.autopilot-pill span:nth-child(2){display:none}.autopilot-pill{padding-right:6px}.automation-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
 body.ui-v3 .app-shell,body.ui-v3.sidebar-collapsed .app-shell{display:block}.sidebar-v3{position:fixed!important;left:0;top:0;width:min(310px,88vw);transform:translateX(-102%);box-shadow:var(--fl-shadow-lg);transition:transform .22s ease}.sidebar-open .sidebar-v3{transform:translateX(0)}.sidebar-backdrop{position:fixed;inset:0;z-index:55;border:0;background:rgba(7,17,31,.5)}.sidebar-open .sidebar-backdrop{display:block}.sidebar-collapse{display:none!important}.sidebar-close{display:grid!important}.topbar-leading .mobile-menu{display:flex;width:40px;height:40px;flex-direction:column;justify-content:center;gap:4px}.mobile-menu span{display:block;width:17px;height:1.5px;background:currentColor}.topbar-v3{grid-template-columns:minmax(0,1fr) minmax(220px,380px) auto!important}.automation-rules-layout{grid-template-columns:1fr!important}.automation-rule-editor{position:static}.two-col,.automation-overview-grid{grid-template-columns:1fr!important}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.ui-v3.sidebar-collapsed .brand-copy,body.ui-v3.sidebar-collapsed .nav-search input,body.ui-v3.sidebar-collapsed .nav-search kbd,body.ui-v3.sidebar-collapsed .nav-item>span,body.ui-v3.sidebar-collapsed .nav-section>summary>span,body.ui-v3.sidebar-collapsed .nav-section>summary i,body.ui-v3.sidebar-collapsed .sidebar-user-copy,body.ui-v3.sidebar-collapsed .sidebar-footer>a{display:block}.sidebar-collapsed .nav-search{justify-content:flex-start!important;padding:0 10px!important}.sidebar-collapsed .nav-item,.sidebar-collapsed .nav-section>summary{justify-content:flex-start!important;padding:9px 10px!important}.sidebar-collapsed .nav-section>div{display:block!important}.sidebar-collapsed .sidebar-footer{justify-content:flex-start!important;padding:10px 8px 0!important}
}
@media(max-width:780px){
 body.ui-v3{font-size:13px}.topbar-v3{min-height:66px!important;grid-template-columns:minmax(0,1fr) auto!important;padding:9px 13px!important}.topbar-v3 .command-trigger{display:none}.topbar-title .eyebrow{display:none}.topbar-title h1{font-size:17px}.autopilot-pill{display:none}.profile-menu{display:none}.topbar-actions{gap:6px}.page-content{padding:15px 13px 94px!important}.alert{margin:10px 13px 0!important}.page-heading{display:block!important;margin-bottom:15px!important}.page-heading h1{font-size:23px!important}.page-heading .page-actions{justify-content:flex-start;margin-top:13px}.page-heading .page-actions .btn,.page-heading .page-actions form{flex:1}.page-heading .page-actions form .btn{width:100%}.panel{padding:15px!important;border-radius:14px!important}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.automation-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.form-grid.two,.form-grid.three,.form-grid.four{grid-template-columns:1fr!important}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.panel-header{flex-direction:column;align-items:stretch}.panel-header>.action-row,.panel-header>.btn{align-self:flex-start}.action-row,.form-actions{width:100%;flex-wrap:wrap}.form-actions .btn{flex:1}.mobile-dock{position:fixed;left:10px;right:10px;bottom:max(9px,env(safe-area-inset-bottom));z-index:50;height:64px;display:grid!important;grid-template-columns:repeat(5,1fr);align-items:center;padding:5px;border:1px solid rgba(255,255,255,.5);border-radius:18px;background:rgba(7,17,31,.94);box-shadow:0 15px 45px rgba(7,17,31,.28);backdrop-filter:blur(16px)}.mobile-dock a,.mobile-dock button{height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:13px;background:transparent;color:#94a3b8;font-size:9px}.mobile-dock svg{width:19px;height:19px}.mobile-dock .dock-ai{width:52px;height:52px;justify-self:center;margin-top:-20px;border:4px solid var(--fl-bg);border-radius:17px;background:linear-gradient(135deg,#2d70ec,#7c4dff);color:#fff;box-shadow:0 9px 24px rgba(57,83,218,.36)}.mobile-dock .dock-ai>span{font-size:18px}.mobile-dock .dock-ai small{font-size:8px}.automation-hero{padding:16px!important}.automation-action-head,.rule-card-footer{flex-direction:column;align-items:stretch!important}.automation-action-head small{white-space:normal}.rule-card-top{grid-template-columns:35px minmax(0,1fr)}.rule-card-top>.badge{grid-column:2;justify-self:start}.activity-stream.detailed .action-meta{display:grid;grid-template-columns:1fr 1fr}.action-meta span:after{display:none}.table-wrap{border:0!important;overflow:visible!important}.table-wrap table[data-responsive-ready]{min-width:0!important;display:block}.table-wrap table[data-responsive-ready] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.table-wrap table[data-responsive-ready] tbody,.table-wrap table[data-responsive-ready] tr,.table-wrap table[data-responsive-ready] td{display:block;width:100%}.table-wrap table[data-responsive-ready] tbody{display:grid;gap:10px}.table-wrap table[data-responsive-ready] tr{padding:10px 12px;border:1px solid var(--fl-line);border-radius:13px;background:#fff;box-shadow:0 3px 10px rgba(16,24,40,.035)}.table-wrap table[data-responsive-ready] td{display:grid;grid-template-columns:minmax(94px,34%) minmax(0,1fr);gap:10px;align-items:start;padding:7px 0!important;border:0!important;text-align:right!important}.table-wrap table[data-responsive-ready] td:before{content:attr(data-label);color:#667085;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;text-align:left}.table-wrap table[data-responsive-ready] td:empty{display:none}.table-wrap table[data-responsive-ready] td .table-actions,.table-wrap table[data-responsive-ready] td .action-row{justify-content:flex-end}.dispatch-board{margin-inline:-13px;padding-inline:13px}.dispatch-column{min-width:82vw}.calendar-card,.hos-graph-wrap{margin-inline:-15px;border-radius:0}.command-palette{padding-top:6vh!important}
}
@media(max-width:480px){
 body.ui-v3 .stats-grid,body.ui-v3 .automation-stats{grid-template-columns:1fr 1fr!important}.metric-card{padding:12px}.metric-card strong{font-size:22px}.stat-card{padding:14px!important}.stat-card strong{font-size:25px!important}.choice-grid{grid-template-columns:1fr!important}.segmented-nav{margin-inline:-3px}.segmented-nav a{padding:8px 10px}.automation-action-main{padding:11px}.btn{white-space:normal}.page-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.page-actions>*{width:100%}.page-actions .btn{width:100%}.activity-stream.detailed .action-meta{grid-template-columns:1fr}.mobile-dock{left:6px;right:6px}.profile-popover{right:-10px}
}
@media print{body.ui-v3 .sidebar-v3,body.ui-v3 .topbar-v3,body.ui-v3 .mobile-dock,body.ui-v3 .page-actions,body.ui-v3 .sidebar-backdrop{display:none!important}body.ui-v3 .app-shell{display:block!important}.page-content{max-width:none!important;padding:0!important}.panel{box-shadow:none!important}}

/* Refreshed sign-in surface */
body.auth-body.ui-v3{min-height:100dvh;padding:24px;background:radial-gradient(circle at 15% 15%,rgba(20,104,232,.20),transparent 32%),radial-gradient(circle at 88% 85%,rgba(6,168,201,.18),transparent 30%),#07111f}
body.auth-body.ui-v3 .auth-wrapper{width:min(1080px,100%);min-height:min(720px,calc(100dvh - 48px));grid-template-columns:minmax(350px,.9fr) minmax(430px,1.1fr);overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:26px;background:#fff;box-shadow:0 35px 100px rgba(0,0,0,.35)}
body.auth-body.ui-v3 .auth-card{display:flex;flex-direction:column;justify-content:center;padding:54px;border:0;border-radius:0;background:#fff;box-shadow:none}
body.auth-body.ui-v3 .auth-card h1{font-size:34px;letter-spacing:-.045em}
body.auth-body.ui-v3 .auth-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:54px;border:0;border-radius:0;background:linear-gradient(145deg,#07111f 0%,#0f2f56 60%,#076a86 100%);box-shadow:none;overflow:hidden}
body.auth-body.ui-v3 .auth-hero:after{content:"";position:absolute;width:420px;height:420px;right:-170px;top:-150px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018)}
body.auth-body.ui-v3 .auth-hero>*{position:relative;z-index:1}
body.auth-body.ui-v3 .auth-logo img{max-width:210px}
body.auth-body.ui-v3 .demo-box{border-color:#dce5ef;background:#f7f9fc;border-radius:13px}
@media(max-width:820px){body.auth-body.ui-v3{padding:12px}.auth-wrapper{display:block!important;min-height:calc(100dvh - 24px)!important}.auth-card{min-height:calc(100dvh - 24px);padding:30px 22px!important}.auth-hero{display:none!important}}
