.kwWorkspace{--role-accent:#79b5ca;--role-soft:#eaf3f7}
.kwWorkspace[data-workspace=business]{--role-accent:#97b5d2;--role-soft:#edf2f9}
.kwWorkspace[data-workspace=individual]{--role-accent:#d8ba78;--role-soft:#faf4e6}
.kwWorkspace[data-workspace=transporter]{--role-accent:#83bcba;--role-soft:#e9f4f3}
.kwWorkspace[data-workspace=inspector]{--role-accent:#b5bea1;--role-soft:#f1f4eb}
.kwWorkspace[data-workspace=admin]{--role-accent:#abb9cc;--role-soft:#eef1f6}
.kwRoleLaunchpad{margin:6px 0 28px;padding:22px;border:1px solid #2b4554;border-radius:22px;background:linear-gradient(115deg,#102d3b,#0a202b);box-shadow:0 12px 30px #00000012}
.kwRoleIntroduction{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.kwRoleIntroduction .kwOverline{color:var(--role-accent)}.kwRoleIntroduction p{font-size:15px;margin:0;color:#d2e0e7}
.kwActionGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kwActionCard{display:flex;gap:13px;align-items:center;text-align:left;color:#152e3b;background:#f8fbfc;border:1px solid #d7e2e8;border-radius:15px;padding:18px;min-height:104px;transition:background .16s,border-color .16s;cursor:pointer}
.kwActionCard:hover{background:var(--role-soft);border-color:var(--role-accent)}.kwActionCard b{display:block;font-size:17px;line-height:1.35}.kwActionCard small{display:block;font-size:14px;line-height:1.5;margin-top:5px;color:#4f6572}.kwActionIndex{font-size:13px;color:#765914;border:1px solid #d3bd86;background:#fff4d8;min-width:29px;min-height:29px;border-radius:50%;display:grid;place-items:center}.kwActionArrow{font-size:21px;color:#496674;margin-left:auto}
.kwWorkspace .sidebar{border-top:3px solid var(--role-accent)}.kwWorkspace .sidebar button.active{border-left:3px solid #d7a23b}.kwWorkspace .kwMetric{border-radius:16px}.kwWorkspace .kwTask{border-radius:16px}.kwWorkspace .kwTask:focus-within{outline:2px solid #d7a23b;outline-offset:3px}
.kwInfoStrip{display:grid;gap:6px;padding:18px 20px;background:#edf4f7;color:#203b4b;border-left:4px solid #6c9db1;border-radius:12px;margin:18px 0}.kwInfoStrip span{font-size:15px;line-height:1.6}
.kwRuleCard{border-top:3px solid var(--role-accent);margin-top:18px}.kwRuleCard h3{margin:0}.kwRuleRoute{display:flex;gap:18px;align-items:center;padding:18px 0;font-size:20px;flex-wrap:wrap}.kwRuleEditor{margin:24px 0;scroll-margin-top:150px}.kwRuleEditor fieldset{min-width:0;margin:24px 0;padding:20px;border:1px solid #ccdce3;border-radius:14px}.kwRuleEditor legend{font-weight:700;padding:0 8px;font-size:18px}.kwRuleEditor .choicePill{display:flex;align-items:flex-start;white-space:normal;gap:12px;font-size:16px;line-height:1.5}.kwRuleEditor input[type=checkbox]{width:22px;height:22px;min-width:22px;accent-color:#947127;margin-top:2px}.kwRuleEditor .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.kwPickupPreview{margin-top:28px}.kwPickupGrid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}.kwPickupCard{min-width:0;border-top:3px solid var(--role-accent)}.kwAppointment{background:var(--role-soft);border:1px solid #cadbe1;border-radius:14px;padding:18px;margin:18px 0;color:#16323f}.kwAppointment>span:first-child{display:block;font-size:14px;font-weight:600}.kwAppointment strong{font-size:24px;display:block;margin:6px 0}.kwAppointment p{font-size:15px;margin:6px 0 12px}.kwContactCard{padding:18px;background:#f4f7f9;border:1px solid #dce5e9;border-radius:14px;margin:18px 0;overflow-wrap:anywhere;color:#193846}.kwContactCard p{margin:6px 0}.kwContactCard h3{margin:8px 0 12px}.kwContactCard .kwOverline{color:#496773}.kwContactCard .buttonRow{margin-top:14px}.kwContactCard a{display:inline-flex;align-items:center;text-decoration:none;min-height:44px;box-sizing:border-box}.kwPickupEditor:not(:empty){margin-top:20px}.kwPickupEditor .panelWhite{padding:16px}.kwPickupCard .kwVehiclePhoto{flex-shrink:0}
.kwWorkspace button:focus-visible,.kwWorkspace a:focus-visible,.kwWorkspace input:focus-visible,.kwWorkspace select:focus-visible,.kwWorkspace textarea:focus-visible{outline:3px solid #d7a23b;outline-offset:3px}.kwWorkspace .badge[data-tone=green]{background:#e5f2e9;color:#23523c}.kwWorkspace .badge[data-tone=amber]{background:#fff0ca;color:#715216}.kwWorkspace .badge[data-tone=red]{background:#fde7e4;color:#8b342b}
@media(max-width:1000px){.kwActionGrid{grid-template-columns:1fr}.kwActionCard{min-height:76px;padding:15px}.kwRoleIntroduction{align-items:flex-start;flex-direction:column;gap:8px}.kwRoleLaunchpad{padding:18px}.kwActionIndex{min-width:28px}}
@media(max-width:600px){.kwRoleLaunchpad{padding:14px;border-radius:17px;margin-bottom:22px}.kwActionCard b{font-size:16px}.kwActionCard small{font-size:14px}.kwActionArrow{display:none}.kwRoleIntroduction p{font-size:14px}.kwRuleEditor fieldset{padding:14px}.kwRuleEditor .formgrid,.kwPickupEditor .formgrid{grid-template-columns:1fr}.kwRuleRoute{font-size:18px;gap:10px}.kwPickupCard .buttonRow>*{flex:1 1 100%;justify-content:center}.kwPickupCard .kwVehiclePhoto{width:100px}.kwPickupGrid{grid-template-columns:1fr}.kwWorkspace .kwSectionTitle{flex-wrap:wrap;gap:12px}}
@media(prefers-reduced-motion:reduce){.kwActionCard{transition:none}.kwWorkspace *{scroll-behavior:auto!important}}
/* Route planner: the timeline stays vertical at every viewport. */
.kwTripPlan{background:#f6fafb;border:1px solid #d0e0e5;border-radius:22px;color:#183746;overflow:hidden;margin:24px 0}.kwTripPlan>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px;background:#e9f3f3;border-bottom:1px solid #cbdfe0}.kwTripPlan h3{font-size:25px;margin:7px 0}.kwTripPlan header p{margin-bottom:0}.kwTripPlan .kwOverline{color:#486b72}.kwTripSelector{max-width:640px}.kwStopTimeline{list-style:none;margin:0;padding:24px}.kwStopTimeline>li{position:relative;padding:0 0 24px 46px;border-left:2px solid #b6d4d3;margin-left:17px}.kwStopTimeline>li:last-child{border-left-color:transparent;padding-bottom:0}.kwStopHeading{display:flex;align-items:center;gap:12px}.kwStopHeading b{display:block;font-size:22px}.kwStopHeading small{font-size:13px;color:#526a73}.kwStopHeading time{display:block;color:#4e6570;font-size:14px;margin-top:4px}.kwStopNumber{position:absolute;left:-18px;top:0;width:34px;height:34px;display:grid;place-items:center;background:#193e48;border:4px solid #f6fafb;border-radius:50%;color:#fff;font-size:13px;box-sizing:content-box;transform:translateX(-4px)}.kwStopMovement{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;font-size:14px}.kwStopMovement>span{border-radius:8px;padding:7px 10px;background:#edf1f3;color:#49616c}.kwStopMovement .kwUnload{background:#e0eee9;color:#235143}.kwStopMovement .kwLoad{background:#fff0d0;color:#6a4c17}.kwLegCapacity{padding:15px 18px;background:#eaf1f5;border:1px solid #d8e3e8;border-radius:12px}.kwLegCapacity>div{display:flex;justify-content:space-between;gap:12px;font-size:14px;flex-wrap:wrap}.kwLegCapacity meter{display:block;width:100%;height:12px;margin-top:10px;accent-color:#357875}.kwLegCapacity meter::-webkit-meter-optimum-value{background:#357875}.kwTripHint{margin:18px 24px;color:#526b76;font-size:14px;line-height:1.6}.kwTripLoads{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px}.kwTripLoad{margin:0!important;border-top:4px solid #d7b767!important}.kwTripLoad.confirmed{border-top-color:#45847c!important}.kwTripLoads .kwVehiclePhoto{width:110px;flex-basis:110px;height:82px}.kwTripLoads .kwVehicleText b{font-size:18px}.kwTripLoads .kwVehicleText a{font-size:14px}.kwTripFit{display:grid;gap:6px;background:#e8f3ee;border-radius:12px;padding:16px;color:#265348}.kwTripFit span{font-size:14px}.kwMatchCard{border-top:4px solid #6c9a87!important;margin:0!important}.kwTripOffer{border-top:1px solid #d9e4e8;margin-top:18px;padding-top:4px}.kwTripNet{font-size:14px;color:#426270}.kwTripOffer button{width:100%;margin-top:6px}.kwSynergies,.kwUnplanned{margin-top:36px}.kwSynergies>p,.kwUnplanned>p{max-width:780px;color:#b7cbd6;font-size:16px}.kwTripWelcome{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:24px;background:#102a36;border:1px solid #294954;border-radius:20px}.kwTripWelcome .kwTransportImage{margin:0}.kwTripWelcome h3{font-size:25px;margin:4px 0 16px}.kwTripWelcome p{font-size:16px;color:#ccdae1}.kwTripEditor{margin:24px 0;scroll-margin-top:140px}.kwTripEditor h4{font-size:19px}.kwTripEditor fieldset{min-width:0;border:1px solid #cfdee3;border-radius:14px;padding:18px;margin:20px 0;background:#f6fafb}.kwTripEditor legend{font-weight:700;padding:0 8px;color:#315a66}.kwStopFields{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:14px}.kwMutedState{font-size:14px;color:#566d77;background:#edf2f5;border-radius:8px;padding:12px}.kwWorkspace .kwTripLoads .panel{min-width:0}.kwTripOffer .formgrid{grid-template-columns:1fr 1fr}.kwTripOffer .formgrid .field{min-width:0}.kwTripOffer input{width:100%}
/* Role workspaces: clear visual zones, readable labels and restrained state color. */
.kwWorkspace .kwNavGroup{display:block;color:#91b2c2;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:750;padding:20px 14px 8px}.kwWorkspace .kwNavGroup:first-child{padding-top:8px}.kwWorkspace .sidebar>button{border:1px solid transparent}.kwWorkspace .sidebar>button:hover{background:#173c4c;color:#fff}.kwWorkspace .sidebar>button.active:hover{background:#f1c45e;color:#142f3e}.kwProfileSections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 32px}.kwProfileSection{border-radius:18px;padding:22px;background:#f5f9fb;color:#203f4d;border:1px solid #d4e2e8;border-top:4px solid #91b3c9}.kwProfileSection:nth-child(2){background:#faf7ef;border-top-color:#d1b371}.kwProfileSection:nth-child(3){background:#edf6f2;border-top-color:#83aaa0}.kwProfileSection h3{font-size:19px;margin:8px 0}.kwProfileSection p{font-size:14px;color:#536c77;line-height:1.6;min-height:45px}.kwProfileSection .kwOverline{font-size:11px;color:#55717c}.kwProfileSection button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;background:#fff;border:1px solid #d8e3e6;border-radius:10px;padding:12px 14px;margin-top:9px;color:#183746;width:100%;font-size:14px;font-weight:650;min-height:46px}.kwProfileSection button:hover{border-color:#bfa363;background:#fff9e9}.kwProfileSection button span{color:#95752a}.kwWorkspace .accountNav>.panel{border-top:3px solid #88aebf}.kwWorkspace .accountNav>.panel:nth-child(3n+2){border-top-color:#d5b263}.kwWorkspace .accountNav>.panel:nth-child(3n){border-top-color:#80a897}.kwWorkspace .kwSectionTitle{border-bottom:1px solid #254350;padding-bottom:12px;margin-top:28px}.kwWorkspace .panel .kwSectionTitle,.kwWorkspace .panelWhite .kwSectionTitle{border-bottom-color:#dbe6eb}.kwWorkspace .kwMetric{position:relative;overflow:hidden}.kwWorkspace .kwMetric::after{content:'';position:absolute;right:-12px;bottom:-24px;width:92px;height:92px;border-radius:50%;background:currentColor;opacity:.035;pointer-events:none}.kwWorkspace .adminQueue>section{border-top:3px solid #d4b165;border-radius:14px;padding:16px;background:#f5f8fa;color:#183746}.kwWorkspace .adminQueue>section:nth-child(2n){border-top-color:#86aca7}.kwWorkspace .adminQueue>section h3{margin-top:4px}.kwWorkspace .kwQuickNav{gap:10px}.kwWorkspace .kwQuickNav button{border-radius:12px;min-height:46px}.kwWorkspace .kwTask{border-left:3px solid var(--role-accent)}.kwWorkspace .pageHero{padding-top:18px;padding-bottom:24px}.kwWorkspace .pageHero h1{font-size:clamp(30px,4vw,44px)}
@media(max-width:1000px){.kwProfileSections{grid-template-columns:1fr}.kwProfileSection p{min-height:0}.kwProfileSection{padding:19px}.kwTripWelcome{grid-template-columns:1fr}.kwTripPlan>header{flex-direction:column}.kwTripPlan header .buttonRow{width:100%}}
@media(max-width:800px){.kwWorkspace .kwNavGroup{flex:1 1 100%;padding:12px 8px 4px}.kwProfileSections{gap:12px}.kwStopFields{grid-template-columns:1fr}.kwTripLoads{grid-template-columns:1fr}.kwTripPlan>header{padding:18px}.kwStopTimeline{padding:20px 15px}.kwStopTimeline>li{padding-left:27px}.kwStopHeading b{font-size:19px}.kwLegCapacity{padding:12px}.kwTripHint{margin:16px}.kwTripEditor fieldset{padding:14px}.kwTripOffer .formgrid{grid-template-columns:1fr}.kwTripPlan .buttonRow>*{flex:1}.kwTripLoad .buttonRow>*{flex:1 1 100%}.kwTripWelcome{padding:18px}.kwTripPlan h3{font-size:22px}.kwTripSelector select{width:100%;min-width:0}}
.kwRoleLaunchpad .kwProfileSections{margin:0}.kwProfileSection .kwActionCard{padding:15px 12px;min-height:125px;background:#fff;display:flex;justify-content:flex-start;box-shadow:0 4px 14px #193f4d06}.kwProfileSection .kwActionCard>span:nth-child(2){color:#183746}.kwProfileSection .kwActionCard .kwActionIndex{color:#765914;flex-shrink:0}.kwProfileSection .kwActionCard .kwActionArrow{color:#496674}.kwRoleLaunchpad:has(+.pageHero){margin-bottom:16px}.kwWorkspace .kwRoleLaunchpad[hidden]{display:none}
@media(max-width:1000px){.kwProfileSection .kwActionCard{min-height:78px}.kwProfileSection{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.kwProfileSection>.kwOverline,.kwProfileSection>h3,.kwProfileSection>.kwActionCard{grid-column:1/-1}.kwProfileSection>h3{margin:0 0 5px}.kwProfileSection>button{margin:0}.kwProfileSection>button:not(.kwActionCard){font-size:14px}.kwProfileSections .kwProfileSection{padding:17px}}
@media(max-width:400px){.kwProfileSection{grid-template-columns:1fr}.kwProfileSection>button{grid-column:1/-1}}
/* Seller summary: compact shortcuts follow the next action, with full touch targets. */
.kwSellerShortcuts{padding:16px;margin:22px 0;border-radius:16px}
.kwSellerShortcuts>h2{font-size:1.125rem;margin:0 0 12px}
.kwSellerShortcuts .kwProfileSections{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.kwSellerShortcuts .kwProfileSection{padding:12px;display:block;border-radius:12px}
.kwSellerShortcuts .kwProfileSection h3{font-size:.875rem;letter-spacing:.015em;margin:0 0 10px;line-height:1.5}
.kwSellerShortcuts .kwProfileSection button{min-height:44px;font-size:.9375rem;padding:10px;margin-top:6px}
.kwStoreManager{margin-bottom:24px}.kwStoreManager h2{margin:0}.kwStoreManager p{color:#bdcdd6}
.kwStoreManager .buttonRow{flex-wrap:wrap}.kwStoreManager a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.kwStoreHeader{border:1px solid #36515e;border-top:4px solid #d7a23b;border-radius:18px;background:linear-gradient(115deg,#123340,#0c232f);padding:24px;margin:18px 0 26px}
.kwStoreIdentity{display:flex;gap:18px;align-items:center}.kwStoreIdentity h2{margin:6px 0;font-size:clamp(1.4rem,3vw,2rem)}.kwStoreIdentity p{margin:4px 0;color:#c5d8e0}
.kwStoreLogo{flex-shrink:0;object-fit:contain;background:#fff;border-radius:12px;padding:6px}.kwStoreDescription{white-space:pre-wrap;line-height:1.65;max-width:70ch;color:#d5e3e8}
.kwStoreHeader .kwOverline{font-size:.875rem;color:#e7c875}.kwStoreHeader #sellerShareStatus:empty{display:none}
.kwStoreBack{flex-wrap:wrap}.kwStoreManager~#sellerPublic .resultsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.kwWorkspace .kwNavGroup{font-size:.875rem;letter-spacing:.04em}.kwProfileSection .kwOverline{font-size:.875rem}
@media(max-width:1050px){.kwSellerShortcuts .kwProfileSections{grid-template-columns:1fr}.kwSellerShortcuts .kwProfileSection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kwSellerShortcuts .kwProfileSection h3{grid-column:1/-1;margin:0}.kwSellerShortcuts .kwProfileSection button{margin:0;grid-column:auto}}
@media(max-width:600px){.kwSellerShortcuts .kwProfileSection{grid-template-columns:1fr}.kwStoreHeader{padding:18px}.kwStoreLogo{width:60px;height:60px}.kwStoreManager~#sellerPublic .resultsGrid{grid-template-columns:1fr}.kwStoreManager .buttonRow>*{flex:1 1 100%;justify-content:center}}
.kwSellerShortcuts .kwProfileSection .kwActionCard{min-height:44px;padding:10px;font-size:.9375rem;background:#fffaf0;box-shadow:none;justify-content:space-between}

/* Final beta: priority cards must fit narrow phones without hiding their action. */
.kwRolePriorities{margin-bottom:24px;min-width:0}.kwRolePriorities h2{font-size:22px}.kwRoleAction{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0}.kwRoleAction>div{min-width:0;flex:1}.kwRoleAction h3,.kwRoleAction p{overflow-wrap:anywhere}.kwRoleAction .primary{white-space:normal;text-align:center;min-height:44px;max-width:100%;flex-shrink:0}.kwRoleAction p:empty{display:none}
@media(max-width:600px){.kwRoleAction{flex-direction:column;align-items:stretch;padding:16px}.kwRoleAction .primary{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.kwRolePriorities h2{font-size:20px}.kwRoleAction h3{font-size:18px}.kwRoleAction p{font-size:16px}.kwWorkspace .sideLayout,.kwWorkspace .partnerLayout{min-width:0}.kwWorkspace .kwTabNav{display:flex;flex-wrap:wrap;gap:8px}.kwWorkspace .kwTabNav button{min-height:44px;max-width:100%;white-space:normal}}

/* Administrator support fits the existing mobile workspace. */
.kwSupportUser{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.kwSupportUser>div{min-width:0;flex:1 1 220px}.kwSupportUser p,#supportWorkspace p{overflow-wrap:anywhere}
.kwSupportBanner{border:2px solid #bf721a;background:#fff4df;border-radius:14px;padding:16px;margin:20px 0;color:#593500}
.kwSupportBanner button{max-width:100%;white-space:normal}#supportWorkspace{scroll-margin-top:160px}#supportWorkspace .panelWhite{min-width:0}
