.cx-panel {color:#163e37; font-size:1rem; line-height:1.55}
.cx-panel h1,.cx-panel h2,.cx-panel h3 {color:inherit; margin:.4em 0}
.cx-panel h3 {font-size:1.12rem}
.cx-heading,.cx-line,.cx-slot {display:flex;align-items:center;gap:.65rem}
.cx-heading {justify-content:space-between}
.cx-panel button,.cx-panel input:not([type="range"]):not([type="checkbox"]) {font:inherit; color:inherit; padding:.5rem .85rem;border-radius:12px;background:#f5fcfa;border:1px solid #c1dcd4;min-width:0}
.cx-panel button {cursor:pointer;font-weight:700}
.cx-panel button:hover {background:#e0f5ea}
.cx-panel input[type="range"] {width:100%;accent-color:#078663}
.cx-panel label,.cx-panel small {display:block;margin:.5rem 0}
.cx-panel a,#cx-remote a {color:#087456;text-decoration:underline;text-underline-offset:.15em}
.cx-panel hr {border:0;border-top:1px solid #c9dfd5;margin:1rem 0}
#cx-qr svg {width:140px;display:block;margin:auto}
#cx-phone-link {margin:.4rem 0;display:grid;gap:.3rem}
#cx-phone-link input {font-size:.82rem}
.cx-line {flex-wrap:wrap;margin:.5rem 0}
.cx-remote> :not(#cx-remote):not(script) {display:none!important}
#cx-remote {max-width:850px;margin:auto;min-height:100vh;padding:clamp(18px,4vw,50px)}
#cx-remote>header {display:flex;align-items:center;justify-content:space-between;margin:0 0 2rem}
#cx-remote>.cx-panel {padding:clamp(16px,4vw,40px);border:1px solid white;border-radius:24px;background:linear-gradient(135deg,#fffffff0,#f5fffcbe);box-shadow:0 16px 56px #296b5719;backdrop-filter:blur(12px)}
#modalBody>.cx-panel {padding:clamp(15px,3vw,32px)}
#cx-layout {display:grid;gap:.5rem}
.cx-slot {flex-wrap:wrap;padding:.5rem;background:#edf7f3;border-radius:12px}
.cx-code {display:inline-block;letter-spacing:.13em;padding:.2rem .6rem;background:#d7f5e7;border-radius:8px}
.cx-card {padding:1.4rem;border-radius:18px;background:linear-gradient(120deg,#d1f1df,#d8e9fd)}
.cx-card b,#cx-stage>strong {font-size:2rem}
#cx-stage {margin-top:1rem}
#cx-stage svg {width:100%;display:block;border-radius:12px}
:fullscreen #cx-remote {max-width:none;padding:1rem}
:fullscreen #cx-remote>header,:fullscreen #cx-retry,:fullscreen #cx-full {display:none}
:fullscreen #cx-remote .cx-panel {padding:0;background:transparent;box-shadow:none;border:0}
:fullscreen #cx-remote {padding:0}
:fullscreen #cx-stage svg {border-radius:0}
#cx-mission,.cx-card,#cx-stage,#cx-current,#cx-queue {overflow-wrap:anywhere}
#cx-controls,.cx-options {border:0;min-width:0;margin:0;padding:0}
#cx-controls>legend {font-size:1.3rem;font-weight:bold;margin-block:.6rem}
#cx-controls:disabled {opacity:.68}
#cx-lock:empty,#cx-effect:empty {display:none}
#cx-lock {padding:.5rem .8rem;background:#fff4cf;color:#65461b;border-radius:.65rem}
.cx-panel .cx-options {display:flex;flex-wrap:wrap;gap:.35rem}
.cx-options legend {font-weight:bold;font-size:.9rem;padding:0;margin:0 0 .4rem}
.cx-options button {min-height:40px}
.cx-panel button[aria-pressed="true"] {background:#09644c;color:#fff;border-color:#09644c}
.cx-slot {display:grid;gap:.65rem;padding:.8rem 1rem}
.cx-slot header,.cx-bot header {display:flex;align-items:center;gap:.55rem}
.cx-slot header a,.cx-bot header span {margin-inline-start:auto}
.cx-panel .cx-positions button {min-width:2.4rem;padding:.2rem .52rem}
.cx-road {display:flex;gap:1rem;align-items:center;background:#e8f4ea;padding:.8rem 1rem;margin:0 0 .75rem;border-radius:.9rem}
.cx-road p,.cx-bot p {margin:.15rem 0}
.cx-slope-illustration {width:64px;height:58px;display:grid;place-items:center;flex:none}
.cx-slope-illustration i {width:58px;height:9px;border-radius:5px;background:#4e7668;transform:rotate(var(--cx-angle,0deg));position:relative}
.cx-slope-illustration i:before {content:"";position:absolute;bottom:8px;left:18px;width:22px;height:14px;background:#118560;border-radius:6px;box-shadow:inset 0 -4px #25564b}
.cx-fleet {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:.6rem;margin:.7rem 0}
.cx-bot {padding:.65rem .8rem;background:#f4faf8;border:1px solid #c4dcd3;border-radius:.85rem;overflow-wrap:anywhere}
.cx-bot progress {width:100%;height:.6rem;accent-color:#087456}
.cx-bot[data-status="empty"] progress {accent-color:#b83d28}
.cx-bot small {margin:0 0 .25rem}
.cx-bot strong {color:#076a50}
@media (prefers-reduced-motion:no-preference) {
  .cx-slope-illustration i {transition:transform .24s ease-out}
  .cx-options button {transition:background-color .14s,color .14s}
}
.cx-mission-art {margin:.75rem 0 1rem;overflow:hidden;border-radius:.85rem}
.cx-mission-art[hidden],#cx-fleet[hidden],#cx-board-live[hidden],#cx-idle[hidden],.cx-bot progress[hidden] {display:none}
.cx-mission-art:empty,.cx-cargo-art:empty {display:none}
.cx-mission-art svg,.cx-mission-art img {display:block;width:100%;height:auto;max-height:clamp(135px,25vh,280px);object-fit:contain}
.cx-card .cx-mission-art {margin-top:0}
.cx-cargo-art {display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:.3rem 0}
.cx-cargo-art img,.cx-cargo-art svg,#cx-stage .cx-cargo-art svg {display:block;width:40px;height:40px;object-fit:contain}
