/* ============================================================
   MineOS — Despacho (Ciclos) · board esquemático + criação
   Carregado depois dos tokens; escopo em .dispatch / .cyc-create
   ============================================================ */

/* ---------------- BOARD ---------------- */
.dispatch { display: flex; flex-direction: column; gap: 18px; }
.dsp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dsp-titles h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 0; }
.dsp-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--fg-lo); margin-top: 5px; }
.dsp-actions { display: flex; align-items: center; gap: 14px; }
.dsp-stats { display: flex; gap: 8px; }
.dsp-stat { display: flex; flex-direction: column; gap: 2px; padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.dsp-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1; }
.dsp-stat .l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-lo); }

/* ---------------- LANE ---------------- */
.dsp-board { display: flex; flex-direction: column; gap: 14px; }
.cyc-lane {
  --cyc: var(--accent);
  display: grid; grid-template-columns: 246px 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cyc-lane.drop-ok { border-color: var(--cyc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyc) 22%, transparent); transform: translateY(-1px); }

.cyc-info { position: relative; padding: 16px 16px 14px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--cyc) 7%, var(--surface)); display: flex; flex-direction: column; gap: 9px; }
.cyc-info::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--cyc); }
.cyc-id-row { display: flex; align-items: center; gap: 8px; }
.cyc-id { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--cyc); }
.cyc-mat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--cyc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--cyc) 40%, transparent); }
.cyc-mat-chip .mn { font-weight: 800; font-size: 13px; color: var(--fg); }
.cyc-mat-chip .mt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); }
.cyc-route { font-size: 13px; color: var(--fg-mid); line-height: 1.4; }
.cyc-route b { color: var(--fg); font-weight: 700; }
.cyc-metrics { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.cyc-metrics .cm { display: flex; flex-direction: column; gap: 1px; }
.cyc-metrics .cm .v { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1; }
.cyc-metrics .cm .v small { font-size: 10px; font-weight: 700; color: var(--fg-lo); }
.cyc-metrics .cm .l { font-family: var(--font-mono); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-lo); white-space: nowrap; }
.cyc-edit { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--fg-lo); cursor: pointer; }
.cyc-edit:hover { color: var(--fg); border-color: var(--cyc); }

/* ---- track (origem / destino columns) ---- */
.cyc-track { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; padding: 12px 16px; gap: 0; }
.track-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-lo); }
.col-head .ck { font-weight: 700; color: var(--fg-mid); }
.col-head .ca { color: var(--fg); font-weight: 700; text-transform: none; font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0; }
.rail {
  position: relative; height: 74px; border-radius: var(--r-md);
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, color-mix(in srgb, var(--fg-lo) 10%, transparent) 16px 17px),
    var(--surface-2);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.rail::after { /* travel direction wash toward the point */
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent 40%, color-mix(in srgb, var(--cyc) 10%, transparent));
  pointer-events: none;
}
.rail.dest::after { background: linear-gradient(90deg, transparent 40%, color-mix(in srgb, var(--st-loading) 12%, transparent)); }

/* the fixed load / dump point at the right edge */
.point { position: absolute; right: 0; top: 0; bottom: 0; width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-left: 1.5px dashed color-mix(in srgb, var(--cyc) 55%, transparent); background: color-mix(in srgb, var(--cyc) 9%, transparent); z-index: 3; }
.point.dump { border-left-color: color-mix(in srgb, var(--st-loading) 55%, transparent); background: color-mix(in srgb, var(--st-loading) 9%, transparent); }
.point svg { width: 22px; height: 22px; }
.point .pt-ico { display: flex; align-items: center; justify-content: center; }
.point .pt-ico svg.eq-ico { width: 44px; height: 29px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.point .pl { font-family: var(--font-mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-lo); text-align: center; line-height: 1.1; }
.point .pc { font-family: var(--font-mono); font-weight: 700; font-size: 9.5px; color: var(--fg); }
.point.load svg { color: var(--cyc); }
.point.dump svg { color: var(--st-loading); }

.track-link { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--fg-lo); }
.track-link svg { width: 18px; height: 18px; }
.track-link .tl-t { font-family: var(--font-mono); font-size: 8px; color: var(--fg-lo); margin-top: 2px; }

/* ---- truck chip ---- */
.truck {
  --tk: var(--st-enroute);
  position: absolute; top: 0; left: 0;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 5px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--tk);
  box-shadow: var(--shadow-sm); cursor: grab; user-select: none;
  z-index: 4; will-change: transform; white-space: nowrap;
  transition: box-shadow .15s;
}
.truck:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tk) 22%, transparent); z-index: 6; }
.truck.dragging { opacity: .4; cursor: grabbing; }
.truck .tk-ico { width: 30px; height: 20px; flex: none; overflow: visible; }
.truck .tk-ico .load { opacity: 0; }
.truck.full .tk-ico .load { opacity: 1; }
.truck .tk-code { font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; letter-spacing: .02em; color: var(--fg); }
.truck.empty { --tk: var(--st-enroute); }
.truck.full  { --tk: var(--st-loading); }
.truck.acting { --tk: var(--accent); animation: tkpulse 1.1s ease-in-out infinite; }
@keyframes tkpulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.truck.bad { --tk: var(--st-breakdown); }

/* ---- available fleet tray ---- */
.dsp-tray { border: 1px dashed var(--border); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 60%, transparent); padding: 13px 16px; transition: border-color .18s, box-shadow .18s; }
.dsp-tray.drop-ok { border-color: var(--st-available); box-shadow: 0 0 0 3px var(--available-soft); border-style: solid; }
.tray-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.tray-head .th-t { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.tray-head .th-s { font-family: var(--font-mono); font-size: 11px; color: var(--fg-lo); }
.tray-trucks { display: flex; flex-wrap: wrap; gap: 9px; min-height: 34px; align-items: center; }
.tray-trucks .truck { position: static; }
.tray-empty { font-family: var(--font-mono); font-size: 11px; color: var(--fg-lo); font-style: italic; }

/* density */
.dispatch[data-density="compact"] .rail { height: 56px; }
.dispatch[data-density="compact"] .cyc-track { padding: 9px 14px; }
.dispatch[data-density="compact"] .cyc-info { padding: 12px 14px; }
.dispatch[data-density="compact"] .cyc-lane { grid-template-columns: 220px 1fr; }
.dispatch:not([data-throughput="on"]) .cm.cm-tph { display: none; }
.dispatch:not([data-accent="on"]) .cyc-lane { --cyc: var(--accent) !important; }

@media (max-width: 880px) {
  .cyc-lane { grid-template-columns: 1fr; }
  .cyc-info { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cyc-metrics { margin-top: 0; margin-left: auto; padding-top: 0; }
}

/* ============================================================
   CRIAR CICLO — overlay wizard
   ============================================================ */
.cyc-create { position: fixed; inset: 0; z-index: 120; display: none; flex-direction: column; background: var(--bg); }
.cyc-create.show { display: flex; animation: ccIn .26s var(--ease, cubic-bezier(.2,.7,.3,1)) both; }
@keyframes ccIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cc-head { display: flex; align-items: center; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--border); }
.cc-head .cc-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.cc-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin: 0; }
.cc-head .cc-sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg-lo); letter-spacing: .05em; }
.cc-x { margin-left: auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--fg-mid); cursor: pointer; font-size: 16px; }
.cc-x:hover { color: var(--fg); border-color: var(--accent); }

.cc-stepsbar { padding: 22px 26px 6px; border-bottom: 1px solid var(--border-soft); }
.cc-steps { display: flex; align-items: flex-start; max-width: 880px; margin: 0 auto; }
.cc-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.cc-step .nodewrap { display: flex; align-items: center; width: 100%; }
.cc-step .line { height: 3px; flex: 1; background: var(--border); transition: background .3s; }
.cc-step:first-child .line.l { visibility: hidden; }
.cc-step:last-child .line.r { visibility: hidden; }
.cc-step .node { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--border); flex: none; display: flex; align-items: center; justify-content: center; transition: .2s; }
.cc-step .node svg { width: 17px; height: 17px; color: var(--fg-lo); }
.cc-step .node .chk { display: none; }
.cc-step .lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-lo); text-align: center; line-height: 1.25; }
.cc-step .lbl small { display: block; font-weight: 500; opacity: .7; letter-spacing: 0; text-transform: none; margin-top: 2px; }
.cc-step.done .node { background: var(--st-available); border-color: var(--st-available); }
.cc-step.done .node svg:not(.chk) { display: none; }
.cc-step.done .node .chk { display: block; color: #fff; }
.cc-step.done .line.l, .cc-step.done .line.r, .cc-step.current .line.l { background: var(--st-available); }
.cc-step.current .node { background: var(--accent); border-color: var(--accent); transform: scale(1.12); box-shadow: 0 0 0 4px var(--accent-soft); }
.cc-step.current .node svg { color: var(--accent-ink); }
.cc-step.current .lbl { color: var(--fg); font-weight: 700; }

.cc-body { flex: 1; display: grid; grid-template-columns: 1fr 380px; gap: 0; overflow: hidden; }
.cc-panel { overflow-y: auto; padding: 28px 32px 28px; }
.cc-panel-in { max-width: 720px; margin: 0 auto; }
.cc-step-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.cc-step-h .num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.cc-step-h h3 { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; margin: 0; }
.cc-step-desc { color: var(--fg-mid); font-size: 14px; margin: 0 0 22px; line-height: 1.5; }

.cc-fld { margin-bottom: 22px; }
.cc-fld > label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); margin-bottom: 10px; }
.cc-fld > label .req { color: var(--accent); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: .15s; text-align: left; }
.pick:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick.disabled { opacity: .4; pointer-events: none; }
.pick .pi { width: 30px; height: 30px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex: none; background: var(--surface-2); }
.pick .pi svg { width: 18px; height: 18px; color: var(--fg-mid); }
.pick .pi svg.eq-ico { width: 28px; height: 19px; }
.pick.on .pi { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.pick.on .pi svg { color: var(--accent); }
.pick .pmeta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pick .pn { display: block; font-weight: 700; font-size: 13.5px; line-height: 1.2; color: var(--fg); }
.pick .ps { display: block; font-family: var(--font-mono); font-size: 10px; line-height: 1.2; color: var(--fg-lo); }
.pick .pdot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; }
.pick-empty { font-family: var(--font-mono); font-size: 12px; color: var(--fg-lo); padding: 14px; border: 1px dashed var(--border); border-radius: var(--r-md); }

/* numeric stepper + suggestion */
.num-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.num-row { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.num-btn { width: 46px; border: none; background: var(--surface-2); color: var(--fg); font-size: 22px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.num-btn:hover { background: var(--surface-3); color: var(--accent); }
.num-val { width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.num-val .nv { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.num-val .nu { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-lo); margin-top: 2px; }
.sugg { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--accent-soft); cursor: pointer; }
.sugg:hover { border-style: solid; }
.sugg .sg-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-lo); }
.sugg .sg-v { font-weight: 800; font-size: 14px; color: var(--accent); }

/* travel hero (haul steps) */
.travel-hero { display: flex; align-items: center; justify-content: center; gap: 0; padding: 6px 0 26px; }
.travel-hero .th-end { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 120px; }
.travel-hero .th-end .ic { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); background: var(--surface); }
.travel-hero .th-end .ic svg { width: 22px; height: 22px; color: var(--fg-mid); }
.travel-hero .th-end .ic svg.eq-ico { width: 40px; height: 27px; }
.travel-hero .th-end .nm { font-weight: 700; font-size: 13px; text-align: center; }
.travel-hero .th-end .tg { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); }
.travel-hero .th-mid { flex: 1; max-width: 230px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.travel-hero .th-line { width: 100%; height: 2.5px; background: var(--border); position: relative; border-radius: 2px; }
.travel-hero .th-line .dotmove { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--cc-leg, var(--st-enroute)); transform: translate(-50%,-50%); animation: legmove 2.6s linear infinite; }
@keyframes legmove { from { left: 4%; } to { left: 96%; } }
.travel-hero.empty .th-line .dotmove { animation-direction: reverse; }
.travel-hero .th-cap { font-family: var(--font-mono); font-size: 10px; color: var(--fg-lo); letter-spacing: .05em; }

/* fleet assign step */
.cc-fleet { display: grid; grid-template-columns: 1fr; gap: 18px; }
.fleet-drop { min-height: 120px; border: 2px dashed var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 16px; transition: .15s; }
.fleet-drop.drop-ok { border-color: var(--accent); background: var(--accent-soft); border-style: solid; }
.fleet-drop .fd-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); margin-bottom: 12px; }
.fleet-pool { display: flex; flex-wrap: wrap; gap: 9px; }
.fleet-pool .truck, .fleet-drop .truck { position: static; }
.fd-empty { font-family: var(--font-mono); font-size: 12px; color: var(--fg-lo); font-style: italic; padding: 10px 0; }
.pool-drop { border: 2px dashed transparent; border-radius: var(--r-lg); padding: 12px; margin: 0 -12px; transition: .15s; }
.pool-drop.drop-ok { border-color: var(--st-available); background: var(--available-soft); border-style: solid; }

/* preview rail */
.cc-preview { border-left: 1px solid var(--border); background: var(--surface-2); overflow-y: auto; padding: 24px 22px; }
.cc-prev-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-lo); margin-bottom: 14px; }
.prev-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.prev-loop { padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.prev-node { display: flex; align-items: center; gap: 12px; }
.prev-node .pn-body { min-width: 0; }
.prev-node .pn-v { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--fg); }
.prev-node .pn-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); background: var(--surface-2); }
.prev-node .pn-dot svg { width: 17px; height: 17px; color: var(--fg-mid); }
.prev-node .pn-dot svg.eq-ico { width: 30px; height: 20px; }
.prev-node.set .pn-dot { border-color: var(--accent); background: var(--accent-soft); }
.prev-node.set .pn-dot svg { color: var(--accent); }
.prev-node .pn-body { min-width: 0; }
.prev-node .pn-k { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); }
.prev-node .pn-v { font-weight: 700; font-size: 14px; color: var(--fg); }
.prev-node .pn-v.dim { color: var(--fg-lo); font-weight: 500; font-style: italic; }
.prev-leg { margin-left: 16px; padding: 9px 0 9px 24px; border-left: 2px dashed var(--border); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; color: var(--fg-mid); display: flex; align-items: center; gap: 7px; }
.prev-leg .lt { color: var(--fg); font-weight: 700; }
.prev-foot { border-top: 1px solid var(--border); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.prev-foot .pf-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); }
.prev-foot .pf-v { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.prev-foot .pf-v small { font-size: 12px; color: var(--fg-lo); font-weight: 700; }
.prev-trucks { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 16px; }
.prev-trucks .ptk { font-family: var(--font-mono); font-weight: 700; font-size: 10px; padding: 3px 8px; border-radius: 999px; border: 1.5px solid var(--st-enroute); color: var(--fg); }

.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 26px; border-top: 1px solid var(--border); background: var(--surface); }
.cc-foot .cf-hint { font-family: var(--font-mono); font-size: 11px; color: var(--fg-lo); }
.cc-foot .cf-btns { display: flex; gap: 10px; margin-left: auto; }

/* ============================================================
   TWEAKS panel
   ============================================================ */
#tweakPanel { position: fixed; right: 18px; bottom: 18px; z-index: 200; width: 268px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: none; overflow: hidden; }
#tweakPanel.show { display: block; }
.twk-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.twk-head .tt { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.twk-head .tx { margin-left: auto; cursor: pointer; color: var(--fg-lo); border: none; background: none; font-size: 15px; }
.twk-body { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.twk-row .tl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); margin-bottom: 7px; }
.twk-seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.twk-seg button { flex: 1; border: none; background: none; padding: 6px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; color: var(--fg-mid); cursor: pointer; }
.twk-seg button.on { background: var(--accent); color: var(--accent-ink); }
.twk-toggle { display: flex; align-items: center; justify-content: space-between; }
.twk-toggle .switch { width: 40px; height: 23px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); position: relative; cursor: pointer; transition: .15s; }
.twk-toggle .switch::after { content:""; position:absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--fg-lo); transition: .15s; }
.twk-toggle .switch.on { background: var(--accent); border-color: var(--accent); }
.twk-toggle .switch.on::after { left: 19px; background: var(--accent-ink); }
.twk-toggle .tlbl { font-size: 13px; font-weight: 600; }

/* model filter in fleet status drawer */
.td-model { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; flex: none; }
.td-model label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-lo); white-space: nowrap; }
.td-model select { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--fg); font-family: var(--font-ui); font-size: 12px; font-weight: 600; padding: 5px 9px; outline: none; cursor: pointer; }
.td-model select:focus { border-color: var(--accent); }
