/* K-Line Shared: isolated visual system; the existing marketplace stays intact. */
.ks-page{--ks-ink:#251b3d;--ks-muted:#746784;--ks-line:#e7dcf3;--ks-purple:#753adb;--ks-pink:#eb4bba;background:#f7f3fc;color:var(--ks-ink);border-radius:24px;padding:24px;min-width:0;font-family:inherit}
.ks-page *{box-sizing:border-box}.ks-page button,.ks-page input,.ks-page select{font:inherit}.ks-page h1,.ks-page h2,.ks-page h3,.ks-page h4,.ks-page p{margin:0}.ks-page button{cursor:pointer}.ks-page button:disabled{opacity:.45;cursor:not-allowed}.ks-page button:focus-visible,.ks-page input:focus-visible,.ks-page select:focus-visible,.ks-chat-bar button:focus-visible{outline:3px solid #de68dc;outline-offset:3px}.ks-page [hidden]{display:none!important}
.ks-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:30px;align-items:center;border:1px solid #765090;border-radius:20px;min-height:245px;padding:38px;background:radial-gradient(ellipse at 75% 100%,#67287690,transparent 60%),linear-gradient(120deg,#171026,#322043);color:#fff;box-shadow:0 18px 40px #30203c1a}.ks-hero-copy,.ks-hero-controls{position:relative;z-index:1}.ks-brand{display:flex;align-items:center;gap:14px;font-size:12px;letter-spacing:2.8px;font-weight:800}.ks-brand>b{font-size:9px;letter-spacing:1px;color:#f8e3a5;border:1px solid #a291614d;padding:4px 8px;border-radius:5px}.ks-live{display:inline-flex;gap:5px;align-items:center;white-space:nowrap;color:#ff9fe2!important;background:#ee4baa21;border:1px solid #ed68bc66;border-radius:5px;padding:3px 7px;font-size:9px;font-weight:800;line-height:1.2;letter-spacing:1px;box-shadow:0 0 11px #ef5bb33d}.ks-live i{width:4px;height:4px;background:currentColor;border-radius:50%;box-shadow:0 0 7px currentColor;animation:ks-glow 3s ease-in-out infinite}.ks-hero h1{font-size:clamp(24px,2.6vw,37px);line-height:1.16;font-weight:750;letter-spacing:-1px;margin:20px 0 14px}.ks-hero h1 span{color:#e4b5ff}.ks-hero p{font-size:13px;line-height:1.7;color:#c5b9d4;max-width:460px}.ks-hero-controls{padding:20px;border:1px solid #d6b2e926;background:#fff1;border-radius:14px;display:grid;gap:13px}.ks-hero-controls>small{font-size:11px;line-height:1.6;color:#d1bfdc}.ks-hero-controls .ks-button{background:#fff1;color:#f6e5ff;border-color:#c991ef5c}.ks-orbit{position:absolute;right:22%;top:25px;width:220px;height:220px;border:1px solid #ecadff18;border-radius:50%;color:#e9a5ff14;transform:rotate(-12deg)}.ks-orbit svg{width:100%;height:100%;padding:40px}.ks-orbit i{position:absolute;inset:20px;border:1px solid #f2a8ed22;border-radius:50%;animation:ks-orbit 20s linear infinite}.ks-orbit i:after{content:'';position:absolute;top:0;left:50%;width:7px;height:7px;background:#f88cd4;border-radius:50%;box-shadow:0 0 22px #e366b8}.ks-orbit i+i{inset:-25px;animation-direction:reverse;animation-duration:30s}
.ks-toggle{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650;cursor:pointer}.ks-toggle input{position:absolute;opacity:0;width:1px;height:1px}.ks-toggle>span{position:relative;display:inline-block;flex-shrink:0;width:36px;height:21px;background:#9a8ea8;border-radius:18px;transition:background .2s}.ks-toggle>span:after{content:'';position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002;transition:transform .2s}.ks-toggle input:checked+span{background:linear-gradient(110deg,#8b47e7,#d959be)}.ks-toggle input:checked+span:after{transform:translateX(15px)}.ks-toggle input:focus-visible+span{outline:3px solid #e994ed;outline-offset:3px}.ks-toggle input:disabled+span{opacity:.4}
.ks-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.ks-counters>div{padding:21px;border:1px solid var(--ks-line);border-radius:13px;background:#fff;box-shadow:0 5px 20px #4c296b05}.ks-counters small{font-size:9px;letter-spacing:1.1px;font-weight:750;color:var(--ks-muted)}.ks-counters strong{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:700;margin-top:10px;color:#57317b}.ks-counters strong span{font-size:10px;font-weight:400;color:var(--ks-muted);max-width:100px;line-height:1.6}
.ks-tabs{display:flex;gap:24px;border-bottom:1px solid var(--ks-line);margin:4px 0 24px;overflow:auto}.ks-tabs button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--ks-muted);font-size:12px;font-weight:650;white-space:nowrap;padding:12px 0 15px}.ks-tabs button.active{color:#6e35ab;border-bottom-color:#ac50ce}.ks-tab-content{min-height:280px}.ks-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.ks-section-head h2{font-size:21px;font-weight:700;letter-spacing:-.4px;margin-top:7px}.ks-section-head h2>span{font-size:13px;color:var(--ks-muted)}.ks-section-head h3{font-size:18px;margin-top:6px}.ks-section-head p{font-size:12px;color:var(--ks-muted);margin-top:8px}.ks-eyebrow{display:block;font-size:9px;font-weight:750;letter-spacing:1.6px;color:#8d5ba6}.ks-soft-tag{display:inline-block;font-size:10px;white-space:nowrap;background:#f1e6fb;border:1px solid #e3cdf2;padding:6px 9px;border-radius:7px;color:#734790;font-weight:650}.ks-filter,.ks-panel,.ks-private-panel{padding:25px;border:1px solid var(--ks-line);background:#fff;border-radius:15px;box-shadow:0 8px 25px #3f1b5305}.ks-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end}.ks-fields label,.ks-quote-form label{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:650;color:#5d4a6b}.ks-fields input,.ks-fields select,.ks-quote-form input,.ks-quote-form select{width:100%;min-width:0;border:1px solid #ded3e9;border-radius:8px;background:#fcfaff;color:#342240;padding:11px 12px;font-size:12px;line-height:1.35}.ks-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 15px;border:1px solid #d8c5e9;border-radius:8px;background:#fff;color:#754a92;font:600 11px/1.45 inherit;font-size:11px;font-weight:650;white-space:normal;transition:box-shadow .2s,transform .2s}.ks-button:hover{box-shadow:0 4px 13px #8747b124;transform:translateY(-1px)}.ks-button svg{width:19px;height:19px;flex-shrink:0}.ks-button.ks-primary{border:1px solid #a34dd3;background:linear-gradient(115deg,#743fbc,#ab4db0);color:#fff;box-shadow:0 4px 12px #963abb26}.ks-caption{font-size:11px!important;line-height:1.8;color:var(--ks-muted);margin:15px 0!important}.ks-empty{padding:45px 20px;text-align:center;color:#786184;border:1px dashed #d8c5e8;border-radius:14px;margin-top:22px;grid-column:1/-1}.ks-empty>span{font-size:40px;display:block;color:#bda0d8;margin-bottom:10px}.ks-empty h3{font-size:17px;color:#64457d}.ks-empty p{max-width:470px;margin:12px auto!important;font-size:12px;line-height:1.8}.ks-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.ks-route-card,.ks-trip-card{background:#fff;border:1px solid var(--ks-line);border-radius:15px;padding:22px;min-width:0;box-shadow:0 8px 20px #39294b07;transition:box-shadow .3s,border-color .3s}.ks-route-card:hover,.ks-trip-card:hover{border-color:#cd9be6;box-shadow:0 12px 25px #532f7310}.ks-route-card header,.ks-trip-card header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:17px}.ks-route-card header>strong{font-size:17px;color:#64407e}.ks-route-card h3,.ks-trip-card h3{font-size:19px;line-height:1.5;overflow-wrap:anywhere}.ks-route-card h3>span,.ks-trip-card h3>span{color:#b681d0;margin:0 6px}.ks-trip-card p{font-size:12px;line-height:1.7;color:var(--ks-muted);margin-top:7px}.ks-route-card footer,.ks-trip-card footer{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid #efe6f5;padding-top:18px;margin-top:18px}.ks-route-card footer>span,.ks-trip-card footer>small,.ks-trip-card header>small{font-size:10px;color:var(--ks-muted);line-height:1.6}.ks-capacity{display:flex;gap:35px;background:#faf6fe;border:1px solid #efe4f7;border-radius:10px;padding:14px;margin:17px 0}.ks-capacity small{display:block;font-size:9px;color:var(--ks-muted);letter-spacing:.7px}.ks-capacity strong{display:block;font-size:12px;margin-top:7px;color:#694382}.ks-route-card summary{font-size:11px;color:#8656a4;cursor:pointer;padding:5px 0}.ks-load-mini{padding:12px 0;border-top:1px solid #e9def1;display:grid;gap:4px}.ks-load-mini strong,.ks-load-mini span{font-size:12px}.ks-load-mini p{font-size:11px;line-height:1.6;color:var(--ks-muted)}.ks-text-button{border:0;background:none;color:#8c4cab;font-size:11px;text-align:left;padding:0;margin:6px 0;cursor:pointer}.ks-status{font-size:10px;border-radius:6px;padding:6px 9px;background:#f0e7fa;color:#8650a2;font-weight:650}.ks-status.confirmed{color:#267c6b;background:#e9f7f2}.ks-status.invalid,.ks-status.expired,.ks-status.cancelled{color:#886d79;background:#f5edf1}.ks-progress{height:5px;background:#efe6f5;border-radius:3px;overflow:hidden;margin-top:24px}.ks-progress>span{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#8e59d0,#e47bbe)}.ks-progress-caption{display:flex;justify-content:space-between;font-size:10px;color:var(--ks-muted);margin-top:10px}.ks-detail{margin-top:22px}.ks-detail-grid{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(300px,1.15fr);gap:20px;margin-top:20px;align-items:start}.ks-panel h3{font-size:14px;line-height:1.7;margin:10px 0}.ks-route{list-style:none!important;margin:23px 0!important;padding:0!important}.ks-route li{position:relative;display:flex;gap:12px;align-items:start;min-height:87px;padding:0 0 22px}.ks-route li:not(:last-child):before{content:'';position:absolute;left:12px;top:27px;bottom:0;width:1px;background:linear-gradient(#ac7fcc,#e3caef)}.ks-stop-number{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:26px;height:26px;border-radius:8px;background:#eee1fa;border:1px solid #c8a4e6;color:#8550a5;font-size:11px;font-weight:700}.ks-route li.delivery .ks-stop-number{background:#fae7f5;border-color:#e5b4d5;color:#b0609c}.ks-route li>div{flex:1}.ks-route small{display:block;font-size:8px;letter-spacing:1px;color:#9679a5}.ks-route strong{display:block;font-size:13px;margin:4px 0}.ks-route em{font-size:9px;font-style:normal;background:#f3edf8;padding:2px 5px;color:#9574a6;border-radius:3px}.ks-route li>div>span,.ks-stop-capacity{font-size:10px;color:var(--ks-muted);line-height:1.8}.ks-stop-capacity{text-align:right;white-space:nowrap}.ks-route-compact{margin:15px 0!important}.ks-route-compact li{min-height:77px}.ks-note{margin:16px 0;padding:15px 18px;border:1px solid #dfcde9;border-radius:10px;background:#f3eafb;color:#775589;font-size:11px;line-height:1.8}.ks-warning{color:#a25466!important}.ks-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ks-guide article{padding:25px;background:#fff;border:1px solid var(--ks-line);border-radius:14px}.ks-guide b{display:inline-block;font-size:21px;color:#b68ed0;margin-bottom:15px}.ks-guide h3{font-size:15px;margin-bottom:10px}.ks-guide p{font-size:12px;line-height:1.8;color:var(--ks-muted)}.ks-participants{border-top:1px solid var(--ks-line);padding:18px 0;display:flex;flex-wrap:wrap;gap:9px}.ks-participants h4{width:100%;font-size:12px;margin-bottom:6px}.ks-participants span{font-size:10px;padding:7px;border-radius:6px;background:#f5effa}.ks-leg{border-top:1px solid var(--ks-line);padding:19px 0}.ks-leg h4{font-size:14px}.ks-leg p{font-size:11px;line-height:1.8;color:var(--ks-muted);margin:8px 0}.ks-leg>.ks-button{margin:6px 7px 0 0}.ks-leg-status{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#936da7;margin:12px 0}.ks-price{padding:15px;background:linear-gradient(120deg,#f1e8fc,#fcecf7);border:1px solid #e7d3ee;border-radius:10px;margin:15px 0}.ks-price strong{display:block;font-size:22px;color:#754293}.ks-price small{display:block;font-size:11px;line-height:1.6;color:#97649e;margin-top:7px}.ks-quote-form{display:grid;grid-template-columns:1fr 95px;gap:12px;margin:17px 0}.ks-span{grid-column:1/-1}.ks-doc-state{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border:1px solid #d4e8e1;border-radius:10px;background:#f1faf7;padding:13px;font-size:10px;color:#537e70;margin-top:18px}.ks-doc-state>strong{width:100%;font-size:12px}.ks-consent-card,.ks-final-confirm{padding:24px;border:1px solid #c99bdd;border-radius:14px;background:linear-gradient(110deg,#f1e5fa,#f9eaf5);margin:20px 0}.ks-consent-card h3,.ks-final-confirm h3{font-size:17px}.ks-consent-card p,.ks-final-confirm p{font-size:12px;line-height:1.8;margin:12px 0;color:#755786}.ks-consent-card label,.ks-final-confirm label{display:flex;align-items:start;gap:10px;line-height:1.7;font-size:12px;margin:17px 0;color:#68477c}.ks-consent-card input,.ks-final-confirm input{accent-color:#9f4abc;width:17px;height:17px;flex-shrink:0}.ks-consent-card .ks-button,.ks-final-confirm .ks-button{margin-right:10px}.ks-load-list>article{display:flex;justify-content:space-between;gap:22px;align-items:center;background:#fff;border:1px solid var(--ks-line);border-radius:12px;padding:20px;margin-bottom:13px}.ks-load-list strong{font-size:14px}.ks-load-list small{display:block;font-size:9px;color:#a78fb7;margin:7px 0}.ks-load-list p{font-size:11px;color:var(--ks-muted);line-height:1.7}.ks-load-actions{display:flex;flex-shrink:0;align-items:center;gap:12px;flex-wrap:wrap;max-width:330px}.ks-nav-item>svg{color:#bc6be4}.ks-nav-item .ks-live{margin-left:auto}.ks-nav-item.ks-attention{box-shadow:inset 3px 0 0 #e065cf,0 0 12px #cf60da20}.ks-nav-item [data-ks-count]:not(:empty){font-size:10px;color:#ea7ccc;margin-left:4px}.ks-spinner{display:inline-block!important;width:30px;height:30px;border:2px solid #ddc6ee;border-top-color:#974dd2;border-radius:50%;animation:ks-orbit 1s linear infinite}.ks-page[aria-busy=true]{cursor:progress}.ks-page[aria-busy=true] .ks-primary{opacity:.65;pointer-events:none}
.ks-load-field{border:1px solid #ba79d5!important;background:#b854e20b;border-radius:12px;padding:18px;margin:5px 0;color:inherit}.ks-load-field legend{padding:0 8px;display:flex;gap:9px;align-items:center;font-size:13px;font-weight:700}.ks-load-field legend>svg{width:24px;height:24px;color:#ab50ce}.ks-load-field>small{display:block;font-size:11px;line-height:1.7;opacity:.75;margin:12px 0}.ks-load-opt{display:flex;align-items:center;gap:9px;font-size:13px}.ks-load-opt input{accent-color:#a455c5;width:17px;height:17px}.ks-load-field .ks-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ks-load-field .ks-fields label{color:inherit}
/* The perimeter light travels slowly, for both full communication and Live chat. */
@property --ks-angle{syntax:'<angle>';initial-value:0deg;inherits:false}.ks-shared-chat{position:relative!important;isolation:isolate;border:2px solid #b45bdd!important;box-shadow:0 0 20px #be56cc30!important;background:#21152e!important;color:#f7ebff!important;--ks-angle:0deg}.ks-shared-chat:before{content:'';position:absolute;inset:-2px;border-radius:inherit;padding:2px;background:conic-gradient(from var(--ks-angle),transparent 0deg,#9c4bce66 230deg,#ffa0de 270deg,#fb62bd 300deg,transparent 330deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;pointer-events:none;z-index:3;animation:ks-border 12s linear infinite}.ks-shared-chat .chat-pane-head,.ks-shared-chat .dock-chat-head{background:linear-gradient(100deg,#39204d,#5b255b)!important;color:#ffddf4!important;border-color:#874191!important}.ks-shared-chat .chat-pane-head strong,.ks-shared-chat .dock-chat-head strong,.ks-shared-chat .chat-pane-head small{color:#f5d5ef!important}.ks-shared-chat .chat-stream,.ks-shared-chat .dock-messages{background:radial-gradient(ellipse at 10% 0,#51326566,transparent 70%),#21182d!important;background-image:radial-gradient(ellipse at 10% 0,#51326566,transparent 70%)!important}.ks-shared-chat .chat-compose,.ks-shared-chat .dock-compose{background:#31203f!important;border-color:#633872!important}.ks-shared-chat .chat-compose input,.ks-shared-chat .dock-compose input{background:#412954!important;border:1px solid #76518a!important;color:#fff!important}.ks-shared-chat input::placeholder{color:#d3b4df!important}.ks-shared-chat .chat-bubble,.ks-shared-chat .dock-message{background:#49315d!important;color:#f7ecff!important;border-color:#775086!important}.ks-shared-chat .chat-message.user .chat-bubble,.ks-shared-chat .dock-message.mine{background:linear-gradient(120deg,#6b398c,#944984)!important;color:#fff!important}.ks-shared-chat [data-action="send-offer"],.ks-shared-chat [data-chat-wallpaper-toggle],.ks-shared-chat [data-chat-color-toggle]{display:none!important}.ks-shared-chat .chat-partner-link{background:transparent!important}.ks-shared-record{border-color:#c86bda!important;box-shadow:inset 3px 0 0 #b351ca;background:linear-gradient(90deg,#bd68d619,transparent)!important}.ks-shared-record .conversation-copy>strong{color:#b659c9!important}.ks-chat-bar{display:flex;flex-direction:column;gap:6px;padding:12px 16px;background:linear-gradient(110deg,#462958,#542747);border-bottom:1px solid #ad60b455;color:#f4dafa}.ks-chat-bar>strong{display:flex;gap:7px;align-items:center;font-size:11px}.ks-chat-bar>strong svg{width:20px;height:20px;color:#ed9cdb}.ks-chat-bar>small{font-size:10px;line-height:1.6;color:#dfbbdf}.ks-chat-bar>div{display:flex;gap:7px;flex-wrap:wrap}.ks-chat-bar .ks-button,.ks-chat-card .ks-button{font-size:10px;border:1px solid #bb7ac988;background:#60356f;color:#fbe4ff;padding:6px 9px}.ks-chat-card{max-width:440px;margin:12px 8px;padding:17px;border:1px solid #b564c1;border-radius:13px;background:linear-gradient(130deg,#4c2b61,#572a50);color:#f9e9ff;box-shadow:0 4px 15px #170a2926;font-size:12px}.ks-chat-card .ks-eyebrow{font-size:8px;color:#e2abd8}.ks-chat-card p{font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.ks-chat-card>small{display:block;font-size:10px;color:#deb3dc;line-height:1.7;margin:8px 0}.ks-chat-card .ks-chat-price{display:block;font-size:24px;margin:12px 0;color:#fff}.ks-chat-card.ks-mine{margin-left:auto}.ks-chat-card.ks-compact{padding:11px;margin:8px 4px;font-size:11px}.ks-chat-card.ks-compact p{font-size:11px}.ks-shared-chat .dock-chat-body{min-height:0}.ks-shared-chat .dock-messages{min-height:95px}.ks-shared-chat .dock-chat-body .ks-chat-bar{padding:9px 12px}.ks-shared-chat .dock-chat-body .ks-chat-bar>small{font-size:9px}.ks-shared-chat.ks-group [data-ios-message-reply],.ks-shared-chat.ks-group [data-ios-message-forward]{display:none!important}
@keyframes ks-border{to{--ks-angle:360deg}}@keyframes ks-orbit{to{transform:rotate(360deg)}}@keyframes ks-glow{50%{opacity:.5;box-shadow:0 0 12px currentColor}}
@media(min-width:1600px){.ks-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.ks-page{padding:17px}.ks-hero{padding:25px;grid-template-columns:1fr 210px}.ks-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ks-counters{gap:10px}.ks-counters>div{padding:15px}.ks-counters strong{display:block}.ks-counters strong span{display:block;max-width:none;font-size:9px;margin-top:4px}.ks-detail-grid{grid-template-columns:1fr}.ks-card-grid{grid-template-columns:1fr 1fr}.ks-load-list>article{align-items:start}.ks-load-actions{max-width:180px}}
@media(max-width:700px){.ks-page{padding:12px;border-radius:15px}.ks-hero{grid-template-columns:1fr;padding:24px;gap:20px}.ks-hero h1{font-size:28px}.ks-hero-controls{padding:15px}.ks-brand{gap:10px;font-size:10px}.ks-counters{grid-template-columns:repeat(2,minmax(0,1fr));margin:15px 0}.ks-tabs{gap:20px}.ks-card-grid,.ks-guide{grid-template-columns:1fr}.ks-section-head{align-items:start}.ks-section-head h2{font-size:18px}.ks-section-head>.ks-soft-tag{display:none}.ks-filter,.ks-panel,.ks-private-panel{padding:18px}.ks-route-card footer{flex-direction:column;align-items:stretch}.ks-fields{gap:12px}.ks-fields label{font-size:10px}.ks-fields input,.ks-fields select{font-size:12px;padding:10px 8px}.ks-load-list>article{flex-direction:column;gap:15px}.ks-load-actions{max-width:none}.ks-load-field .ks-fields{grid-template-columns:1fr 1fr}.ks-final-confirm{padding:18px}.ks-final-confirm .ks-button{width:100%;margin:6px 0}.ks-orbit{right:-50px;top:5px}.ks-chat-card{max-width:94%}.ks-detail-grid{display:block}.ks-private-panel{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.ks-page *,.ks-shared-chat:before,.ks-live i{animation:none!important;transition:none!important}}

/* Explicit rows keep the Shared notice above the stream in both chat sizes. */
.chat-pane.ks-shared-chat{grid-template-rows:auto auto minmax(0,1fr) auto!important}
.chat-pane.ks-shared-chat>.chat-pane-head{grid-row:1!important}
.chat-pane.ks-shared-chat>.ks-chat-bar{grid-row:2!important}
.chat-pane.ks-shared-chat>.chat-stream{grid-row:3!important;min-height:0!important}
.chat-pane.ks-shared-chat>.chat-compose{grid-row:4!important}
.dock-chat.ks-shared-chat>.dock-chat-body,.dock-chat.ks-shared-chat.open>.dock-chat-body{grid-template-rows:auto minmax(0,1fr) auto!important}
.dock-chat.ks-shared-chat .ks-chat-bar{grid-row:1}
.dock-chat.ks-shared-chat .dock-messages{grid-row:2;min-height:0!important}
.dock-chat.ks-shared-chat .dock-compose{grid-row:3}
.ks-group-sender{display:block;color:#f0b2dc;font-weight:700;font-size:10px;margin-bottom:4px}
.ks-page [aria-busy="true"]{cursor:progress}

.ks-location-field{position:relative}
.ks-location-wrap{position:relative;width:100%}
.ks-location-suggestion-menu{position:absolute;z-index:40;top:calc(100% + 6px);left:0;right:0;max-height:280px;overflow-y:auto;padding:6px;border:1px solid rgba(138,103,164,.35);border-radius:12px;background:var(--panel-solid,#fff);box-shadow:0 18px 44px rgba(17,8,31,.28)}
.ks-location-suggestion-menu[hidden]{display:none}
.ks-location-option{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;min-height:42px;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:var(--text);cursor:pointer;text-align:left}
.ks-location-option:hover,.ks-location-option.keyboard-active{background:var(--accent-soft);outline:0}
.ks-location-option img{width:25px;height:17px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(127,153,190,.26)}
.ks-location-option>span{display:flex;min-width:0;flex-direction:column;gap:2px}
.ks-location-option strong{overflow:hidden;font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.ks-location-option small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
html[data-theme]:not([data-theme="white"]) .ks-location-suggestion-menu{background:linear-gradient(145deg,rgba(43,31,62,.98),rgba(22,16,37,.99));border-color:rgba(218,145,245,.42);box-shadow:0 18px 48px rgba(5,2,13,.48)}
html[data-theme]:not([data-theme="white"]) .ks-location-option{color:#f7efff}
html[data-theme]:not([data-theme="white"]) .ks-location-option:hover,html[data-theme]:not([data-theme="white"]) .ks-location-option.keyboard-active{background:rgba(174,91,205,.28)}
html[data-theme]:not([data-theme="white"]) .ks-location-option small{color:#c7b6d6}

/* K-Line Shared: premium background for every dark workspace theme. White remains unchanged. */
html[data-theme]:not([data-theme="white"]) .ks-page{
  --ks-ink:#f7efff;
  --ks-muted:#c7b6d6;
  --ks-line:rgba(206,145,236,.22);
  background:
    radial-gradient(ellipse at 7% -9%,rgba(161,72,221,.28),transparent 31%),
    radial-gradient(ellipse at 99% 12%,rgba(246,77,178,.18),transparent 29%),
    radial-gradient(ellipse at 49% 116%,rgba(96,50,164,.2),transparent 42%),
    repeating-linear-gradient(115deg,rgba(255,255,255,.022) 0,rgba(255,255,255,.022) 1px,transparent 1px,transparent 42px),
    linear-gradient(135deg,#0e0b19 0%,#171024 48%,#120c1e 100%);
  color:var(--ks-ink);
  box-shadow:inset 0 0 0 1px rgba(218,145,245,.18),inset 0 0 80px rgba(113,48,146,.12),0 18px 45px rgba(5,2,13,.32);
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-counters>div,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-filter,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-panel,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-private-panel,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-route-card,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-trip-card,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-consent-card,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-final-confirm,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-list>article{
  background:linear-gradient(145deg,rgba(43,31,62,.93),rgba(22,16,37,.97));
  border-color:rgba(204,140,235,.23);
  box-shadow:0 13px 32px rgba(5,2,13,.25),inset 0 1px 0 rgba(255,255,255,.045);
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-counters strong,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-route-card header>strong,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-capacity strong,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-route-card h3,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-trip-card h3,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-section-head h2,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-section-head h3,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-panel h3,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-private-panel h3,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-list strong,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-mini strong,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-mini span{
  color:#f7efff;
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-counters small,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-counters strong span,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-section-head p,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-caption,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-route-card footer>span,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-trip-card footer>small,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-trip-card p,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-list small,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-list p,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-mini p{
  color:#c7b6d6;
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-fields label,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-quote-form label{
  color:#dfcbed;
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-fields input,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-fields select,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-quote-form input,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-quote-form select{
  color:#fff7ff;
  background:rgba(18,12,31,.82);
  border-color:rgba(208,144,237,.3);
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-fields input::placeholder,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-quote-form input::placeholder{color:#a996ba}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-capacity{
  background:rgba(123,64,154,.15);
  border-color:rgba(206,145,236,.2);
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-soft-tag,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-status{
  background:rgba(164,83,201,.18);
  border-color:rgba(218,145,245,.24);
  color:#efcfff;
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-tabs{border-color:rgba(206,145,236,.22)}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-tabs button{color:#c7b6d6}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-tabs button.active{color:#ffd8f5}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-empty{
  color:#c7b6d6;
  border-color:rgba(206,145,236,.28);
  background:rgba(28,19,45,.42);
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-empty h3{color:#f3ddff}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-route-card footer,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-trip-card footer,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-load-mini{border-color:rgba(206,145,236,.18)}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-button:not(.ks-primary){
  background:rgba(139,76,171,.16);
  border-color:rgba(218,145,245,.34);
  color:#f7ddff;
}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-button:not(.ks-primary):hover{background:rgba(174,91,205,.28);box-shadow:0 6px 18px rgba(154,63,193,.25)}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-route-card:hover,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-trip-card:hover{border-color:rgba(244,145,220,.62)}

/* Explicit per-load vehicle permissions; no automatic selection by load size. */
.ks-load-field .ks-vehicle-choices{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #ad7bc655;border-radius:10px;min-width:0}
.ks-load-field .ks-vehicle-choices>strong{font-size:11px}
.ks-load-field .ks-vehicle-choices>label{display:flex;flex-direction:row;align-items:center;gap:8px;cursor:pointer}
.ks-load-field .ks-vehicle-choices input[type="checkbox"]{width:17px;height:17px;flex:none;margin:0;padding:0;accent-color:#ac50ce}
.ks-load-field .ks-vehicle-choices>small{font-size:10px;line-height:1.5;opacity:.8}

/* Shared guide and calculated alternative origins. */
.ks-help-intro{margin-bottom:22px;max-width:780px}
.ks-help-intro h2{font-size:26px;line-height:1.2;margin:10px 0 14px}
.ks-help-intro p,.ks-help-example>p,.ks-help-faq p{font-size:12px;line-height:1.8;color:var(--ks-muted)}
.ks-help-example,.ks-help-faq,.ks-alternatives{margin-top:22px;padding:25px;border:1px solid var(--ks-line);border-radius:16px;background:#fff;box-shadow:0 8px 25px #3f1b5308}
.ks-help-example>h3,.ks-help-faq>h3{font-size:21px;margin:10px 0 16px}
.ks-example-stops{display:grid;gap:12px;list-style:none;margin:22px 0;padding:0}
.ks-example-stops li{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid var(--ks-line);border-radius:12px;background:#faf7fd}
.ks-example-stops li>b{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;color:#9145b2;background:#ead9f9;font-size:12px}
.ks-example-stops strong{display:block;font-size:13px;margin-bottom:5px}
.ks-example-stops span{font-size:11px;line-height:1.7;color:var(--ks-muted)}
.ks-example-stops .ks-example-shared{border-color:#ca85d9;background:linear-gradient(110deg,#f2e5ff,#fbeaf6);box-shadow:inset 3px 0 #b64fc8}
.ks-help-callout{margin-top:20px;padding:17px;border:1px solid #cfabd9;border-radius:12px;background:#f5eafb}
.ks-help-callout>strong{font-size:12px}
.ks-help-callout p{font-size:12px;line-height:1.8;color:var(--ks-muted);margin-top:8px}
.ks-help-faq details{border-top:1px solid var(--ks-line);padding:14px 0}
.ks-help-faq summary{cursor:pointer;font-size:13px;font-weight:650;line-height:1.6}
.ks-help-faq details[open] summary{color:#9551b4;margin-bottom:10px}
.ks-help-faq details p+p{margin-top:10px}
.ks-help-faq summary:focus-visible{outline:3px solid #de68dc;outline-offset:4px;border-radius:4px}
.ks-alternative-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ks-alternative-grid>article{display:flex;flex-direction:column;align-items:start;gap:12px;padding:18px;border:1px solid var(--ks-line);border-radius:12px;background:#faf7fd;min-width:0}
.ks-alternative-title{display:flex;align-items:center;gap:9px}
.ks-alternative-title img{width:25px;height:17px;border-radius:3px;object-fit:cover}
.ks-alternative-title h3{font-size:17px;overflow-wrap:anywhere}
.ks-alternative-grid p{font-size:11px;line-height:1.6;color:var(--ks-muted)}
.ks-alternative-grid .ks-button{margin-top:auto}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-guide article,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-help-example,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-help-faq,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-alternatives{background:radial-gradient(ellipse at 0 0,rgba(137,68,189,.14),transparent 65%),linear-gradient(145deg,#291e3a,#171021);border-color:rgba(206,145,236,.25);box-shadow:0 14px 35px #07031040,inset 0 1px #ffffff09}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-guide h3,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-help-example h3,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-help-faq h3{color:#f7efff}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-guide b{color:#e8a6ee}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-help-faq details[open] summary{color:#f4b6e8}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-example-stops li,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-alternative-grid>article{background:#1b1328;border-color:#ce91ec38}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-example-stops li>b{background:#703a9140;color:#efb5ff}
html[data-theme]:not([data-theme="white"]) .ks-page .ks-example-stops .ks-example-shared,
html[data-theme]:not([data-theme="white"]) .ks-page .ks-help-callout{background:linear-gradient(110deg,#45265c,#412038);border-color:#d789da66}
@media(max-width:900px){.ks-alternative-grid{grid-template-columns:1fr}.ks-help-example,.ks-help-faq,.ks-alternatives{padding:18px}.ks-help-intro h2{font-size:22px}}

/* Passive hint follows the existing consent; no extra checkbox or validation. */
.ks-load-field>.ks-interval-hint{display:none;font-size:11px;line-height:1.6;margin:8px 0;color:inherit;opacity:.85}
.ks-load-field:has([data-ks-load-field="klineSharedOptIn"]:checked)>.ks-interval-hint{display:block}
/* Anchor invisible promotion controls to their own row, including when focused. */
.app-dialog .marketplace-promotion-create-switches:has([data-new-load-promotion]){min-width:0;width:100%;box-sizing:border-box}
.app-dialog .marketplace-promotion-create-switches:has([data-new-load-promotion])>.switch-row{position:relative;min-width:0;display:flex;flex-direction:row;align-items:center;gap:12px;box-sizing:border-box}
.app-dialog .marketplace-promotion-create-switches:has([data-new-load-promotion])>.switch-row>span{min-width:0;flex:1;overflow-wrap:anywhere}
.app-dialog .marketplace-promotion-create-switches [data-new-load-promotion]{position:absolute;inset:50% 18px auto auto;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none;transform:translateY(-50%)}
.app-dialog .marketplace-promotion-create-switches [data-new-load-promotion]+i{width:37px;height:21px;flex:0 0 37px}
.app-dialog .marketplace-promotion-create-switches [data-new-load-promotion]:focus-visible+i{outline:2px solid var(--accent);outline-offset:3px}

/* Customer's own loads: readiness is separate from consent to participate. */
.ks-own-loads-head { flex-wrap: wrap; }
.ks-own-loads-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ks-load-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--ks-line); border-radius: 11px; background: #f6f0fb; }
.ks-load-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; background: transparent; color: #755786; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.ks-load-tabs button.active { background: #fff; border-color: #d8c5e9; color: #633684; box-shadow: 0 2px 7px #532f7312; }
.ks-load-tabs button:focus-visible { outline: 2px solid #a34dd3; outline-offset: 2px; }
.ks-load-tab-count { min-width: 22px; padding: 2px 6px; border-radius: 20px; text-align: center; background: #e9dcf4; color: #633684; font-size: 11px; }
.ks-load-title { display: flex; align-items: center; gap: 11px; }
.ks-load-led { display: inline-block; flex: 0 0 11px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #94a39c; background: #b7c1bc; box-shadow: inset 0 1px 2px #fff8; }
.ks-load-led.is-on { border-color: #2bba64; background: radial-gradient(circle at 35% 30%,#d6ffe3 0%,#61ff93 35%,#16cb57 72%,#119943 100%); box-shadow: 0 0 6px #2ee873b3, 0 0 14px #2ee87380, inset 0 1px 2px #fff9; }
html[data-theme]:not([data-theme="white"]) .ks-load-tabs { background: #ffffff06; border-color: #ce91ec38; }
html[data-theme]:not([data-theme="white"]) .ks-load-tabs button { color: #c7b6d6; }
html[data-theme]:not([data-theme="white"]) .ks-load-tabs button.active { background: #ae65d52b; border-color: #c481e55c; color: #ffd8f5; }
html[data-theme]:not([data-theme="white"]) .ks-load-tab-count { background: #c481e526; color: #edd6fc; }
@media(max-width:700px) { .ks-own-loads-toolbar { width: 100%; } .ks-load-tabs { width: 100%; } .ks-load-tabs button { flex: 1; justify-content: center; padding: 10px 8px; } }
