/* GruzoLab Planner — visual overrides only */
.rtlp{--orange:#6656e8;--ink:#232246;--muted:#75778e;--border:#e3e5f1;max-width:1540px;margin:18px auto 30px;padding:23px;background:#fff;color:var(--ink);font:400 15px/1.45 system-ui,-apple-system,'Segoe UI',Arial,sans-serif;border:1px solid var(--border);border-radius:20px;box-shadow:0 12px 36px rgba(25,44,64,.06)}
.rtlp *,.rtlp *:before,.rtlp *:after{box-sizing:border-box}.rtlp h2,.rtlp h3,.rtlp p{margin:0}.rtlp button,.rtlp input,.rtlp select{font-family:inherit}.rtlp button{cursor:pointer;transition:background-color .15s,box-shadow .15s}.rtlp button:disabled{opacity:.35;cursor:not-allowed}.rtlp button:focus-visible,.rtlp input:focus-visible,.rtlp select:focus-visible{outline:2px solid var(--orange);outline-offset:2px}.rtlp button:active{transform:translateY(1px)}
.rtlp-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:15px}.rtlp-eyebrow{color:#6755d9;text-transform:uppercase;letter-spacing:.13em;font-size:11px;font-weight:600}.rtlp-title{color:var(--ink)!important;font-size:clamp(23px,2.5vw,31px)!important;font-weight:650!important;line-height:1.18!important;margin:5px 0 6px!important}.rtlp-sub{font-size:14px;color:var(--muted)}.rtlp-badge{padding:7px 12px;border-radius:30px;background:#f0edff;color:#5e4dbe;border:1px solid #dedaff;font-size:12px;font-weight:550;white-space:nowrap}
.rtlp-topbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:13px 15px;margin-bottom:12px;border:1px solid #e1e8ef;background:#f8fafc;border-radius:13px}.rtlp-topbar label{font-size:13px;color:#34465a;font-weight:550}.rtlp-topbar select{width:auto;min-width:240px;min-height:39px;max-width:100%}.rtlp-car-info{flex:1;font-size:12px;color:#62758b;min-width:210px}.rtlp-select,.rtlp-input{width:100%;min-width:0;min-height:39px;border:1px solid #cad4df!important;background:white!important;border-radius:9px!important;padding:9px 10px!important;font-size:14px!important;line-height:1.35!important;color:#142235!important;box-shadow:none!important}.rtlp-check{width:17px!important;height:17px!important;margin:0;accent-color:var(--orange)}
.rtlp-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:15px}.rtlp-stat{background:#fff;border:1px solid #e4eaf0;border-radius:12px;padding:11px 14px;min-width:0}.rtlp-stat dt{font-size:11px;color:#76859a;margin-bottom:3px}.rtlp-stat dd{font-size:21px;font-weight:650;margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}.rtlp-stat small{font-size:11px;font-weight:400;color:#7b8998}.rtlp-stat.is-warning{border-color:#a79af5;background:#f6f4ff}
.rtlp-grid{display:grid;grid-template-columns:minmax(0,3.25fr) minmax(270px,1fr);gap:15px;align-items:start}.rtlp-workspace{min-width:0}.rtlp-stagebox{background:linear-gradient(180deg,#fcfdff,#eff4f8);border:1px solid #dce5ec;border-radius:15px;overflow:hidden;box-shadow:inset 0 1px 3px rgba(23,44,69,.035)}.rtlp-stage-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 12px;background:#fff;border-bottom:1px solid #e4e9ee}.rtlp-modes,.rtlp-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.rtlp-btn{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:35px;padding:8px 11px;border-radius:9px!important;border:1px solid #d5dee7!important;background:#fff!important;color:#2b4055!important;font-size:12px!important;font-weight:600!important;line-height:1.25!important;text-decoration:none!important}.rtlp-btn:hover{background:#f3f7fa!important}.rtlp-btn.is-active{border-color:#c3b9ff!important;background:#efedff!important;color:#5947c5!important}.rtlp-btn-primary{background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}.rtlp-btn-primary:hover{background:#5343ca!important;color:white!important}.rtlp-btn-dark{background:#24204e!important;color:#fff!important;border-color:#24204e!important}.rtlp-btn-dark:hover{background:#443a85!important}.rtlp-btn-icon{min-width:35px;padding:8px 9px;font-size:17px!important}.rtlp-stage{height:auto;position:relative;overflow:hidden;touch-action:pan-y;overscroll-behavior:contain}.rtlp-stage svg{display:block;width:100%!important;height:auto!important;max-width:100%;user-select:none;-webkit-user-select:none}.rtlp-stage[data-mode="3d"]{height:clamp(390px,43vw,580px);overflow:hidden;touch-action:none;cursor:grab}.rtlp-stage[data-mode="3d"].is-orbiting{cursor:grabbing}.rtlp-stage[data-mode="3d"] svg{width:100%!important;height:100%!important;touch-action:none}.rtlp-stage [data-cargo]{cursor:grab;touch-action:none}.rtlp-stage [data-cargo]:active{cursor:grabbing}.rtlp-stage[data-mode="3d"] [data-cargo]{cursor:pointer}.rtlp-stage[data-mode="side"] [data-cargo],.rtlp-stage[data-mode="rear"] [data-cargo]{cursor:grab;touch-action:none}.rtlp-stage-hint{padding:9px 13px;background:#fff;font-size:12px;color:#718197;border-top:1px solid #e4ebf1}.rtlp-stage-hint strong{color:#575575;font-weight:550}.rtlp-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.rtlp-actions .rtlp-btn{font-size:13px!important;padding:10px 13px;min-height:41px}.rtlp-message{display:none;padding:10px 13px;border:1px solid #d5e3f1;background:#eef6fd;border-radius:10px;font-size:13px;color:#2e5174;margin-top:11px}.rtlp-message.is-error{color:#9d3024;border-color:#f6c0b9;background:#fff1f0}.rtlp-message.is-ok{color:#237043;border-color:#bee6c9;background:#edf9f0}
.rtlp-sidebar{display:flex;flex-direction:column;gap:11px;min-width:0}.rtlp-sidecard{background:#fff;padding:15px;border:1px solid #e0e7ee;border-radius:14px}.rtlp-sidehead{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:11px}.rtlp-sidehead h3{font-size:16px!important;color:var(--ink)!important;font-weight:650!important;line-height:1.25!important}.rtlp-small{font-size:11px;color:#7a8ba0}.rtlp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.rtlp-field{min-width:0}.rtlp-field.wide{grid-column:1/-1}.rtlp-field label{display:block;font-size:11px;font-weight:550;color:#607187;margin-bottom:5px}.rtlp-form .rtlp-btn{grid-column:1/-1;margin-top:3px;min-height:44px;font-size:14px!important}.rtlp-form .rtlp-togglebox{grid-column:1/-1;border:1px solid #e3e9ef;background:#f8fafc;padding:9px 10px;border-radius:9px;display:flex;gap:8px;align-items:center;font-size:12px;color:#34495e;cursor:pointer}.rtlp-stack-limit{grid-column:1/-1}.rtlp-stack-limit[hidden]{display:none}.rtlp-helper{margin-top:9px!important;color:#7a8898;font-size:11px}.rtlp-items{max-height:390px;overflow:auto;display:flex;flex-direction:column;gap:7px}.rtlp-item{display:flex;gap:8px;align-items:center;border:1px solid #e2e8ef;padding:8px;border-radius:9px;min-width:0}.rtlp-item.is-chosen{border-color:#c8beff;background:#f7f5ff}.rtlp-item-color{width:14px;height:14px;border-radius:3px;border:1px solid #9baec1;flex-shrink:0}.rtlp-item-meta{min-width:0;flex:1;cursor:pointer}.rtlp-item-name{font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rtlp-item-detail{font-size:11px;color:#6e7f93;line-height:1.4;margin-top:2px}.rtlp-iconbutton{border:1px solid #dce4ec!important;background:#f8fafb!important;border-radius:7px!important;font-size:15px!important;min-width:27px;min-height:27px;color:#4c4a71;padding:2px 5px}.rtlp-empty{padding:14px 8px;color:#8795a5;font-size:12px;text-align:center}.rtlp-selected{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 12px;border:1px solid #dcd5ff;background:#f7f5ff;border-radius:10px;margin-top:10px;color:#6650ca;font-size:12px}.rtlp-selected strong{font-weight:650}.rtlp-selected[hidden]{display:none}.rtlp-bottom-note{font-size:11px;color:#7b8998;line-height:1.5;margin:15px 3px 0!important}
@media(max-width:1100px){.rtlp-grid{grid-template-columns:minmax(0,2.15fr) minmax(260px,1fr)}.rtlp-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.rtlp-stage[data-mode="3d"]{height:490px}}
@media(max-width:820px){.rtlp{padding:15px}.rtlp-grid{grid-template-columns:1fr}.rtlp-sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.rtlp-stage[data-mode="3d"]{height:470px}.rtlp-topbar{gap:8px}.rtlp-topbar label{width:100%}}
@media(max-width:620px){.rtlp{padding:10px;border-radius:13px}.rtlp-sidebar{grid-template-columns:1fr}.rtlp-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.rtlp-stat{padding:9px 10px}.rtlp-stat dd{font-size:18px}.rtlp-stage[data-mode="3d"]{height:390px}.rtlp-stage-toolbar{gap:5px}.rtlp-btn{font-size:11px!important;padding:7px 9px}.rtlp-stage-hint{font-size:11px}.rtlp-actions .rtlp-btn{flex:1;white-space:nowrap}}

/* V3: metric readings remain visible outside the drawing, including on mobiles. */
.rtlp-measures{background:#f9fbfd;border:1px solid #e4e6f4;border-radius:13px;padding:13px 14px;margin-top:11px}
.rtlp-measures-head{display:flex;gap:9px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin-bottom:9px}
.rtlp-measures-head strong{color:#233b51;font-size:14px;font-weight:650}
.rtlp-measures-head span{font-size:12px;color:#685bc6}
.rtlp-measures-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.rtlp-measure-row{background:#fff;border:1px solid #e3eaf0;border-radius:10px;padding:10px;min-width:0;display:grid;grid-template-columns:1fr;gap:7px}
.rtlp-measure-row>strong{font-size:12px;color:#35516b;font-weight:650}
.rtlp-measure-entry{display:flex;gap:7px;align-items:baseline;justify-content:space-between;border-top:1px solid #eff2f6;padding-top:5px}
.rtlp-measure-entry small{color:#708193;font-size:11px;line-height:1.35}
.rtlp-measure-entry b{white-space:nowrap;color:#2b4257;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
.rtlp-measure-entry.is-cargo b{color:#6554cf}
.rtlp-measure-entry.is-cargo small{color:#6d63af}
@media(max-width:1100px){.rtlp-measures-grid{grid-template-columns:1fr}.rtlp-measure-row{grid-template-columns:85px repeat(3,minmax(0,1fr));align-items:start}.rtlp-measure-entry{display:block;border-top:0;border-left:1px solid #e8eef4;padding:0 0 0 8px}.rtlp-measure-entry small{display:block}.rtlp-measure-entry b{display:block;margin-top:4px}}
@media(max-width:620px){.rtlp-measures{padding:10px}.rtlp-measure-row{grid-template-columns:1fr 1fr 1fr;gap:6px}.rtlp-measure-row>strong{grid-column:1/-1}.rtlp-measure-entry{padding-left:5px}.rtlp-measure-entry small{font-size:10px}.rtlp-measure-entry b{font-size:12px}.rtlp-stage-toolbar{justify-content:center}.rtlp-modes{justify-content:center}.rtlp-tools{justify-content:center}}

/* V4: on-canvas ghost target and feedback for all three orthographic projections. */
.rtlp-drag-status{position:relative;z-index:1;margin:8px 12px 0;border-radius:9px;padding:8px 11px;font-size:12px;line-height:1.45;font-weight:550;border:1px solid #99d6b8;background:#ebf9f0;color:#18613c;overflow-wrap:anywhere}
.rtlp-drag-status.is-invalid{border-color:#f2b8b4;background:#fff0ee;color:#a22c22}
.rtlp-drag-status[hidden]{display:none}
.rtlp-stage[data-mode="top"] [data-cargo],.rtlp-stage[data-mode="side"] [data-cargo],.rtlp-stage[data-mode="rear"] [data-cargo]{cursor:grab}
.rtlp-stage [data-cargo]:active{cursor:grabbing}
@media(max-width:620px){.rtlp-drag-status{font-size:11px;margin:7px 9px 0;padding:7px 9px}}

/* V5: primary interactive 3D workspace with a generous orbit canvas. */
.rtlp-grid{grid-template-columns:minmax(0,1fr) minmax(265px,295px);gap:14px}
.rtlp-stage[data-mode="3d"]{height:clamp(520px,46vw,680px);cursor:grab}
.rtlp-stage[data-mode="3d"] [data-cargo]{cursor:move;touch-action:none}
.rtlp-stage[data-mode="3d"] [data-height-handle],
.rtlp-stage[data-mode="3d"] [data-height-handle] *{cursor:ns-resize;touch-action:none}
.rtlp-stage[data-mode="3d"].is-dragging-cargo{cursor:move}
.rtlp-stage[data-mode="3d"].is-dragging-cargo [data-cargo]{cursor:grabbing}
.rtlp-stage[data-mode="3d"] svg{overflow:visible}
.rtlp-stage-toolbar .rtlp-modes .rtlp-btn:first-child{font-weight:700!important}
.rtlp-stage-hint{font-size:13px;line-height:1.5;padding:11px 14px}
@media(max-width:1160px){.rtlp-grid{grid-template-columns:minmax(0,1fr) 270px}.rtlp-stage[data-mode="3d"]{height:550px}}
@media(max-width:850px){.rtlp-grid{grid-template-columns:minmax(0,1fr)}.rtlp-stage[data-mode="3d"]{height:clamp(420px,65vw,590px)}}
@media(max-width:620px){.rtlp-stage[data-mode="3d"]{height:clamp(300px,85vw,430px)}.rtlp-stage-hint{font-size:12px}}

/* ===============================================================
   GruzoLab independent SaaS design. Internal planner logic stays.
   =============================================================== */
.rtlp{--orange:#6656e8;--ink:#212447;--muted:#707895;--border:#e3e5f3;max-width:1510px;margin:12px auto 28px;padding:24px;border-radius:24px;background:#fff;box-shadow:0 12px 48px rgba(43,38,116,.06);color:#242640;border-color:#e3e5f1;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.rtlp-head{align-items:flex-start;margin-bottom:21px}
.rtlp-eyebrow{color:#6655dc;font-weight:800;letter-spacing:.13em}
.rtlp-title{font-size:clamp(23px,2.4vw,31px)!important;font-weight:800!important;letter-spacing:-.043em!important;color:#252540!important}
.rtlp-sub{color:#747b91;font-size:13px}
.rtlp-badge{background:#e6faf5;border:1px solid #d5f6ea;color:#138c7c;font-weight:700}
.rtlp-topbar{background:#f9f9ff;border:1px solid #e8e7f6;border-radius:14px;padding:15px 18px}
.rtlp-topbar label{color:#4f526c;font-weight:750}
.rtlp-car-info{color:#777e98}
.rtlp-select,.rtlp-input{border:1px solid #dcddeb!important;border-radius:11px!important;min-height:43px!important;color:#2e3151!important;background:#fff!important;font-size:13px!important}
.rtlp-select:focus,.rtlp-input:focus{border-color:#8c7bf1!important;box-shadow:0 0 0 3px rgba(101,86,232,.12)!important;outline:0!important}
.rtlp-stats{gap:11px;margin-bottom:17px}
.rtlp-stat{border:1px solid #e9e9f4;background:linear-gradient(180deg,#fff,#fbfbff);border-radius:14px;padding:13px 15px}
.rtlp-stat dt{color:#868ca1;font-size:11px}
.rtlp-stat dd{color:#343257;font-size:23px;font-weight:760;letter-spacing:-.035em}
.rtlp-grid{gap:16px}
.rtlp-stagebox{background:#fafaff;border:1px solid #e3e5f0;border-radius:17px}
.rtlp-stage-toolbar{border-color:#e8e7f1;padding:13px}
.rtlp-btn{border:1px solid #e0e0ec!important;border-radius:11px!important;color:#505576!important;background:#fff!important;font-weight:700!important;transition:background .18s,transform .18s,box-shadow .18s!important}
.rtlp-btn:hover{background:#f3f0ff!important;border-color:#cbc5f3!important;transform:translateY(-1px)}
.rtlp-btn.is-active{background:#f0edff!important;border-color:#d6ceff!important;color:#5d4bd0!important}
.rtlp-btn-primary{background:linear-gradient(110deg,#5b4bd8,#8774f4)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 7px 20px rgba(99,82,227,.18)!important}
.rtlp-btn-primary:hover{background:linear-gradient(110deg,#4c3fbc,#7160df)!important;color:#fff!important}
.rtlp-btn-dark{background:#262344!important;color:white!important;border-color:#262344!important}
.rtlp-stage-hint{background:#fcfcff;border-color:#e8e9f4;color:#747b94}
.rtlp-sidebar{gap:13px}
.rtlp-sidecard{border-color:#e5e5f0;border-radius:17px;padding:19px;background:#fff}
.rtlp-sidehead h3{color:#252443!important;font-weight:800!important;font-size:16px!important}
.rtlp-small{color:#888da0}
.rtlp-field label{font-weight:700;color:#6b6f89}
.rtlp-form{gap:11px}
.rtlp-form .rtlp-togglebox{border:1px solid #e4e3f2;background:#faf9ff;border-radius:10px;color:#53536f}
.rtlp-check{accent-color:#6857e8}
.rtlp-item{border-color:#e7e7f0;border-radius:10px}
.rtlp-item.is-chosen{border-color:#aca0f3;background:#f5f2ff}
.rtlp-item-detail{color:#8a8ca1}
.rtlp-item-name{color:#32324e}
.rtlp-selected{background:#f0edff;border-color:#ddd6ff;color:#5c4dbb}
.rtlp-measures{background:#f9faff;border-color:#e6e5f4;border-radius:16px}
.rtlp-measures-head strong{color:#30304d;font-weight:770}
.rtlp-measures-head span{color:#6655bd}
.rtlp-measure-row{border-color:#e7e7f1;border-radius:11px}
.rtlp-measure-row>strong{color:#4f5075}
.rtlp-measure-entry b{color:#343a5b}
.rtlp-measure-entry.is-cargo b{color:#6550d1}
.rtlp-measure-entry.is-cargo small{color:#7b6ac1}
.rtlp-bottom-note{color:#83869d;font-size:12px;line-height:1.75}
@media(max-width:850px){.rtlp{margin-left:14px;margin-right:14px}}
@media(max-width:620px){.rtlp{padding:10px;margin-left:10px;margin-right:10px}.rtlp-sidecard{padding:14px}.rtlp-stat dd{font-size:19px}.rtlp-title{font-size:23px!important}}
