:root{--ink:#18212f;--muted:#707785;--line:#e6e8ef;--bg:#f6f7fb;--green:#5045e5;--lime:#dcd8ff}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;line-height:1.45}.top{background:#fff;color:var(--ink);border-bottom:1px solid var(--line);padding:16px max(24px,calc((100vw - 1160px)/2));gap:16px}.brand{font-size:25px;letter-spacing:-1.3px}.brand small{color:#858b99;font-size:9px;letter-spacing:2px;margin-top:3px}.role{background:#f5f4ff;border:1px solid #e4e1ff;color:#5145bd;font-weight:650;min-height:44px}.eventbar{max-width:1160px;padding-top:18px}.eventbar h1{font-size:15px;font-weight:600}.eyebrow{font-size:10px;letter-spacing:1.5px}.demo{background:#fff;color:#7a748e;border-color:#e4e2ee;font-size:9px}main{max-width:1160px;padding-top:32px}h2{font-size:32px;font-weight:750;letter-spacing:-1.2px}.pagehead{gap:20px;margin-bottom:26px}.sub{font-size:13px}.nav{background:#fff;box-shadow:0 -4px 20px #20204005;padding-top:10px}.nav button.active{background:#efedff;color:#5544d7}.nav button{font-size:11px}.nav svg{width:20px}.action{background:var(--green);border-radius:10px;font-size:15px;min-height:50px}.secondary{border-radius:8px;font-size:12px;min-height:44px;padding:10px 14px}.secondary:hover{background:#f5f4fd}.action:hover{background:#4035c6}.action:disabled{background:#a4a4b9}.secondary:disabled{opacity:.4;cursor:default}.addtrip{width:auto;white-space:nowrap;padding:12px 18px}.driverlayout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px}.mission{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 8px 25px #1c234005}.missiontop{display:flex;align-items:center;justify-content:space-between;gap:12px}.missiontime{font-size:46px;font-weight:750;letter-spacing:-2px;margin:22px 0 10px;line-height:1.2}.missiontime span{display:inline-block;font-size:13px;color:var(--muted);letter-spacing:0;margin-left:12px;font-weight:450}.mission h3{font-size:26px;letter-spacing:-.8px}.missionmeta{font-size:12px;color:var(--muted);margin-top:7px}.journey{margin:24px 0;display:grid;gap:22px;padding-left:20px;border-left:1px dashed #c4c0ee}.journey>div{position:relative}.stopdot{width:9px;height:9px;border:2px solid #7264e0;background:#fff;position:absolute;left:-25px;top:4px;border-radius:50%}.stopdot.end{border-radius:2px;background:#7264e0}.journey small{display:block;font-size:9px;letter-spacing:1.3px;color:var(--muted);margin-bottom:5px}.journey strong{font-size:16px;font-weight:600}.primary{display:flex;align-items:center;justify-content:space-between;padding:16px 18px}.quicktools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:10px}.danger{color:#a94034;background:#fffafa}.additional{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;font-size:12px;color:var(--muted)}summary{cursor:pointer;min-height:32px}.driverpick{margin:0;font-size:10px;min-width:130px;color:var(--muted)}.driverpick select{margin-top:3px;padding:8px 12px;font-size:13px;border-color:var(--line);min-height:40px}.sectionlabel{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin:0 0 12px}.nextservice{width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;padding:20px;display:flex;align-items:center;gap:18px;text-align:left;color:var(--ink)}.nextservice>span:nth-child(2){flex:1}.nexttime{font-size:24px;font-weight:750;white-space:nowrap}.nextservice small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px}.nextservice strong{font-size:14px}.dayprogress{background:#eeecfa;border:1px solid #e5e1f7;border-radius:14px;padding:22px;margin-top:16px;display:flex;flex-wrap:wrap;justify-content:space-between;font-size:13px}.dayprogress progress{display:block;width:100%;height:6px;margin-top:14px;accent-color:#6151df}.textbutton{color:#6555c3;padding:10px 0;font-size:12px;min-height:40px}.prototype-note{font-size:11px;color:var(--muted);line-height:1.6;margin:20px 0}.pill{border-radius:5px;font-size:10px;padding:4px 7px}.pill.green{background:#edf6f2;color:#347255}.pill.orange{background:#fff4e5;color:#99621c}.segmented{display:inline-flex;background:#eceef5;border-radius:9px;padding:4px;gap:4px;margin-bottom:22px;max-width:100%}.segmented button{border:0;background:none;color:var(--muted);border-radius:6px;padding:10px 15px;font-size:12px;min-height:42px}.segmented .selected{background:#fff;color:#5544c4;box-shadow:0 1px 4px #18213f0d}.triplist{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.triprow{display:flex;align-items:center;gap:22px;padding:20px 22px;border-bottom:1px solid var(--line)}.triprow:last-child{border:0}.tripwhen{min-width:88px}.tripwhen strong{display:block;font-size:22px;letter-spacing:-.7px}.tripwhen small,.datecaption{display:block;font-size:10px;font-weight:450;color:var(--muted);letter-spacing:0;margin-top:3px}.tripinfo{flex:1;min-width:0}.tripinfo h3{font-size:15px}.tripinfo p{font-size:12px;color:var(--muted);margin:5px 0 9px;overflow-wrap:anywhere}.tripmeta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tripmeta>span:last-child{font-size:10px;color:var(--muted)}.rowopen{flex-shrink:0;width:44px;height:44px;border:1px solid #e8e5f8;background:#f6f4ff;border-radius:9px;color:#6758c7;font-size:20px}.filterbox{background:#fff;border:1px solid var(--line);padding:18px 20px;border-radius:12px;margin-bottom:20px}.searchrow{display:flex;align-items:end;gap:14px}.searchfield{flex:1;margin:0}.searchfield>span{font-size:11px;color:var(--muted)}.searchfield input{font-size:14px;border-color:var(--line);background:#fafbfe}.filtergrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.filtergrid label{font-size:11px;color:var(--muted)}.filtergrid input,.filtergrid select{font-size:13px;padding:10px;border-color:var(--line);height:44px;min-width:0}.resultbar{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:0 0 10px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--muted);margin-top:18px}.pagination>div{display:flex;gap:6px}.attentiongrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:30px}.attentiongrid button{background:white;border:1px solid var(--line);border-radius:14px;padding:20px;text-align:left;position:relative;color:var(--ink)}.attentiongrid strong{font-size:34px;display:block;font-weight:700;letter-spacing:-1px}.attentiongrid button>span:last-child{font-size:12px;color:var(--muted)}.metricicon{float:right;background:#f3f0ff;color:#7866cb;width:30px;height:30px;text-align:center;border-radius:8px;padding:4px}.sectionheading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sectionheading h3{font-size:17px}.tasklist{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.taskrow{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding:20px}.taskrow:last-child{border:0}.taskrow h3{font-size:15px;margin:9px 0 5px}.taskrow h3 small{font-size:10px;color:var(--muted);font-weight:400;display:block;margin-top:4px}.taskrow p{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.taskrow .secondary{flex-shrink:0}.teamgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.drivercard{border:1px solid var(--line);background:white;border-radius:14px;padding:20px}.avatar{width:38px;height:38px;flex-shrink:0;background:#efebff;color:#6b57c0;border-radius:12px;display:grid;place-items:center;font-weight:750}.driveridentity{flex:1;min-width:0}.driveridentity h3{font-size:16px}.driveridentity p{font-size:10px;color:var(--muted);margin:4px 0}.driverassignment{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.driverassignment small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.drivercard .secondary{margin-top:14px;width:100%}.noticecard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:12px}.noticecard h3{font-size:16px;margin:14px 0 7px}.noticecard p{font-size:12px;color:var(--muted);margin-bottom:14px;overflow-wrap:anywhere}.noticecard small{font-size:10px;color:var(--muted)}.noticecard details{margin-top:12px}.alertfilter{max-width:250px;margin:0 0 12px}.alertfilter select{border-color:var(--line)}body.panel-open{overflow:hidden}dialog{width:min(440px,calc(100% - 24px));padding:24px;border-radius:16px;max-height:90dvh}dialog.editor{position:fixed;inset:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(560px,100%);max-width:100%;margin:0;border-radius:0;padding:0;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#171d3680;backdrop-filter:blur(2px)}.editorhead{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid var(--line);background:#fff}.editorhead h3{font-size:24px;margin:7px 0 0}.closeicon{border:1px solid var(--line);width:44px;height:44px;background:#fff;border-radius:10px;font-size:25px;flex-shrink:0}.editorbody{padding:6px 24px 24px}.editorbody fieldset{border:0;margin:0;padding:0;min-width:0}.editorbody legend{float:none;width:auto;display:block;font-size:12px;font-weight:750;color:#6557b5;margin:22px 0 0}.editorbody label{font-size:12px;color:#51586a}.editorbody input,.editorbody select,.editorbody textarea{font-size:16px;border-color:#dce0e9;width:100%;min-width:0;max-width:100%}.editorbody small{font-size:10px;color:var(--muted);display:block;margin-top:5px;font-weight:400}.fieldpair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.editorfooter{position:sticky;bottom:0;display:flex;gap:12px;padding:16px 24px calc(16px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.editorfooter .action{flex:1}.validationerror{background:#fff0ee;color:#a13732;border-radius:8px;padding:14px;font-size:13px;margin-top:18px}.notice{margin-top:15px;border-radius:7px}.toast{background:#27214b}.cardx{border-radius:14px}input,select,textarea{max-width:100%}.pagehead>*{min-width:0}button,a{-webkit-tap-highlight-color:transparent}h1,h2,h3,strong{overflow-wrap:anywhere}@media(min-width:1000px){.nav{top:180px;bottom:auto;left:max(18px,calc((100vw - 1160px)/2));right:auto;flex-direction:column;border:0;box-shadow:none;background:transparent;width:112px;padding:0;gap:10px}.nav button{min-width:0;min-height:78px;padding:14px 5px}.eventbar{padding-left:150px}main{padding-left:150px;padding-bottom:60px}.top{padding-left:max(24px,calc((100vw - 1160px)/2 + 20px))}}@media(max-width:700px){.top{padding:12px 16px}.brand{font-size:22px}.role{font-size:11px;max-width:145px;padding:8px}.eventbar{padding:12px 16px 0}.eventbar .eyebrow{display:none}.eventbar h1{font-size:12px;margin:0}main{padding:22px 16px 105px}h2{font-size:27px}.pagehead{align-items:center;gap:10px;margin-bottom:22px}.pagehead .sub{font-size:11px;max-width:230px}.driverlayout{grid-template-columns:1fr;gap:22px}.mission{padding:20px;border-radius:16px}.missiontime{font-size:42px;margin-top:18px}.mission h3{font-size:23px}.journey{margin:20px 0;gap:18px}.quicktools{gap:6px}.quicktools .secondary{padding:10px 6px;font-size:11px}.driverpick{min-width:105px;max-width:110px}.driverpick select{font-size:12px}.driverlayout aside .prototype-note{margin:12px 0}.dayprogress{padding:16px}.triprow{padding:16px 13px;gap:12px;align-items:flex-start}.tripwhen{min-width:61px}.tripwhen strong{font-size:20px}.tripwhen small{font-size:9px}.tripinfo h3{font-size:14px}.tripinfo p{font-size:11px}.tripmeta{gap:6px}.rowopen{width:36px;height:40px;font-size:17px}.filterbox{padding:14px}.filtergrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}.filtergrid input,.filtergrid select{font-size:16px;padding:9px 6px}.searchfield input{font-size:16px}.searchfield>span{font-size:10px}.searchrow{gap:8px}.searchrow .secondary{padding:8px}.attentiongrid{gap:8px;margin-bottom:22px}.attentiongrid button{padding:14px 10px}.attentiongrid strong{font-size:29px}.attentiongrid button>span:last-child{font-size:10px}.metricicon{width:24px;height:24px;font-size:12px}.sectionheading h3{font-size:15px}.sectionheading .textbutton{font-size:10px}.taskrow{padding:16px;gap:12px}.taskrow h3{font-size:14px}.taskrow p{font-size:11px}.taskrow .secondary{padding:9px 10px;font-size:11px}.addtrip{font-size:11px;padding:10px 12px;min-height:44px}.teamgrid{grid-template-columns:1fr;gap:12px}.pagination{flex-wrap:wrap;font-size:10px}.pagination .secondary{padding:8px 12px;font-size:11px}.editorhead{padding:18px 16px}.editorhead h3{font-size:22px}.editorbody{padding:0 16px 24px}.editorfooter{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.fieldpair{gap:12px}dialog.editor{width:100%;height:100dvh;max-height:100dvh;inset:0;margin:0}dialog:not(.editor){max-width:calc(100% - 24px);padding:20px}.missiontop{gap:6px}.missiontop .eyebrow{font-size:9px}.missiontop .pill{font-size:9px}}@media(max-width:350px){main{padding-left:12px;padding-right:12px}.mission{padding:16px}.mission h3{font-size:20px}.pagehead h2{font-size:23px}.addtrip{padding:9px}.eventbar .demo{font-size:8px}.fieldpair{grid-template-columns:1fr}.filtergrid{gap:0 8px}.missiontime span{font-size:11px}.tripwhen{min-width:55px}}
/* V3: complete itinerary, shared passengers and compact entry */
.driverbadge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;color:var(--ink)}.driverbadge i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--driver)}.driverlegend{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 18px}.triprow{border-left:3px solid var(--driver,#e6e8ef)}.planningtable{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.planningtable table{width:100%;table-layout:fixed;font-size:11px;border-collapse:collapse}.planningtable caption{caption-side:top;padding:14px;color:var(--muted);font-size:11px}.planningtable th{background:#f0f1f8;text-align:left;font-size:10px;color:#616879}.planningtable th,.planningtable td{padding:13px 9px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}.planningtable td:first-child{border-left:3px solid var(--driver)}.planningtable th:first-child{width:12%}.planningtable th:nth-child(2){width:18%}.planningtable th:nth-child(3){width:10%}.planningtable th:nth-child(4){width:24%}.planningtable th:nth-child(5){width:13%}.planningtable th:nth-child(6){width:16%}.planningtable th:last-child{width:7%}.planningtable small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.planningtable .rowopen{height:32px;width:30px;font-size:16px}.mobileagenda{display:none}.agendadate{font-size:13px;text-transform:capitalize;margin:22px 0 12px}.filtergrid{grid-template-columns:repeat(3,minmax(0,1fr))}.artistoptions{max-height:160px;overflow:auto;border:1px solid var(--line);border-radius:9px;margin-top:8px}.artistoption{display:flex!important;align-items:center;gap:10px;padding:10px 12px;margin:0!important;border-bottom:1px solid var(--line);min-height:48px}.artistoption input{width:20px!important;height:20px;min-width:20px!important;margin:0;accent-color:var(--green)}.artistoption span{font-size:12px}.artistoption small{font-size:10px;margin-top:2px}.artistselection{display:block;font-size:11px;color:var(--muted);margin:6px 0}.formextras{margin-top:16px;font-size:12px}.artistfield{margin-top:12px;font-size:12px;font-weight:650;color:#51586a}.artistfield>span:first-child{display:block}.editorbody legend{margin-top:16px}.editorbody input,.editorbody select{padding:9px 10px;min-height:44px}.editorbody label{margin-top:12px}.editorhead{padding:18px 22px}.editorhead h3{font-size:21px}.editorbody .note{font-size:11px}dialog.editor{width:min(480px,100%);height:auto;max-height:calc(100dvh - 40px);inset:20px 20px 20px auto;border-radius:16px}.editorfooter{padding:12px 22px}.editorbody{padding:0 22px 16px}#formerror:empty{display:none}
@media(max-width:800px){.planningtable{display:none}.mobileagenda{display:block}.filtergrid{grid-template-columns:repeat(2,minmax(0,1fr))}.driverlegend{gap:14px}.segmented button{padding:9px 11px;font-size:11px}dialog.editor{inset:0;max-height:100dvh;height:100dvh;width:100%;border-radius:0}.editorhead{padding:14px 16px}.editorbody{padding:0 16px 16px}.editorbody legend{margin-top:14px}.artistoptions{max-height:140px}.editorfooter{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}.editorhead h3{font-size:20px}.editorfooter .action{min-height:44px}.artistfield input,.searchfield input,.filtergrid input,.filtergrid select,.editorbody input,.editorbody select,.editorbody textarea{font-size:16px}.pagehead{flex-wrap:wrap}.pagehead>.addtrip{margin-left:auto}.driverbadge{font-size:10px}}
.artistdropdown{margin-top:7px;border:1px solid #dce0e9;border-radius:9px;padding:10px}.artistdropdown summary{min-height:24px;font-size:13px;font-weight:500}.artistdropdown[open] summary{margin-bottom:8px}.artistdropdown .artistoptions{border:0}.artistdropdown input[type=search]{margin:0}.artistselection{line-height:1.5}
.filterdetails{margin-top:12px}.filterdetails>summary{font-size:11px;font-weight:600;color:#6557b5;min-height:32px;padding-top:6px}@media(min-width:801px){.filterdetails:not([open])>.filtergrid{display:grid}.filterdetails>summary{display:none}}
/* Keep the disclosure arrow inset consistently across desktop and mobile. */
select:not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 42px;
}
@media (forced-colors: active) {
  select:not([multiple]) { appearance: auto; -webkit-appearance: auto; background-image: none; }
}

/* Keep compact dialogs inside the viewport even when a form has wide content. */
dialog:not(.editor) {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(440px, calc(100% - 24px));
  min-width: 0;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
}

#vehicleform input {
  box-sizing: border-box;
  min-width: 0;
  font-size: 16px;
}

#vehicleform .dialogactions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#vehicleform .dialogactions button {
  min-width: 0;
  white-space: normal;
}
