/* OmniSupply — freight disruption exposure.

   The visual job here is one thing: make the difference between a sourced
   number and an invented one impossible to miss at a glance. Provenance is
   typographically small but always present; the illustrative treatment is
   loud, because a synthetic figure mistaken for a measured one is the failure
   mode that matters. */

.omni-answer{margin-top:14px;cursor:pointer}
.omni-answer:hover{border-color:#c7cecb}
.omni-head-meta{display:flex;align-items:center;gap:8px;flex-shrink:0}
.omni-head-meta .quiet{font-size:9px;white-space:nowrap}

/* ── Confidence chips ──────────────────────────────────────────────
   The database keeps the exact provenance basis. The UI translates that
   workflow state into decision confidence without inventing a probability. */
.confidence-chip{display:inline-block;padding:3px 7px;border-radius:999px;font-size:8px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;border:1px solid transparent}
.confidence-high{background:#e7f2e9;color:#245c33;border-color:#c3ddc9}
.confidence-moderate{background:#e8eff4;color:#33596f;border-color:#c4d7e2}
.confidence-low{background:#fbf1e4;color:#8a5c28;border-color:#e6d2b6}
.confidence-scenario{background:#7e6b98;color:#fff;border-color:#6b5985}

/* ── Figure tiles ────────────────────────────────────────────────── */
.omni-figures{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-top:14px}
.omni-figure{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fcfdfc;min-width:0}
.omni-figure>small{display:block;color:var(--muted);font-size:9px;line-height:1.35}
.omni-figure>strong{display:block;font-family:Georgia,serif;font-size:25px;letter-spacing:-.02em;margin:5px 0 8px;
  overflow-wrap:anywhere}
.omni-figure>strong em{font-style:normal;font-size:10px;font-family:-apple-system,sans-serif;color:var(--muted);margin-left:5px}
.omni-prov{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.omni-prov>span{color:var(--muted);font-size:8px;line-height:1.4;overflow-wrap:anywhere}
.omni-method{display:block;margin-top:6px;padding-top:6px;border-top:1px dashed var(--line);
  color:#7c8480;font-size:8px;line-height:1.45;font-style:italic}

/* ── Tables ──────────────────────────────────────────────────────── */
.omni-table{margin-top:14px;display:block;overflow-x:auto;white-space:nowrap}
.omni-table td{white-space:nowrap}
.omni-more{margin:8px 0 0;font-size:9px}
.drill-table{margin-top:12px;overflow-x:auto}
.drill-table .omni-table{white-space:normal}

/* ── Freshness ───────────────────────────────────────────────────── */
.omni-freshness{margin-top:14px}
.omni-fresh-grid{display:grid;gap:9px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-top:13px}
.omni-fresh-grid>div{border:1px solid var(--line);border-radius:10px;padding:10px 11px;background:#fcfdfc}
.omni-fresh-grid small{display:block;color:var(--muted);font-size:9px;line-height:1.35}
.omni-fresh-grid strong{display:block;margin-top:5px;font-family:Georgia,serif;font-size:16px}

.omni-replay{border-left-color:var(--blue);background:#f0f5f8;color:#33596f}

/* ── Illustrative segregation ────────────────────────────────────── */
/* A different border, a different tint and a standing banner. The Company tab
   never renders a sourced answer, so this styling can be unconditional. */
.omni-illustrative{border:1px solid #cbc0dc;background:#fdfcff}
.omni-illustrative .omni-figure{background:#f8f5fc;border-color:#ddd4e8}
.omni-illustrative-banner{border-left-color:#7e6b98;background:#f6f3fa;color:#544468;font-size:10px}
.badge-illustrative{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;
  background:#7e6b98;color:#fff;font-size:7px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}

@media(max-width:700px){
  .omni-figures,.omni-fresh-grid{grid-template-columns:minmax(0,1fr)}
  .omni-head-meta{flex-wrap:wrap}
}

/* ── OmniSupply system map ───────────────────────────────────────── */
.omni-system-map{position:relative;margin-top:14px;padding:22px;border:1px solid #c5d1ca;
  border-radius:18px;background:
  radial-gradient(circle at 15% 15%,rgba(68,140,94,.08),transparent 28%),
  linear-gradient(145deg,#fbfdfb 0%,#f1f6f3 100%);box-shadow:var(--shadow);overflow:hidden}
.omni-system-map:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.36;
  background-image:linear-gradient(rgba(20,79,52,.06) 1px,transparent 1px),
  linear-gradient(90deg,rgba(20,79,52,.06) 1px,transparent 1px);background-size:28px 28px}
.omni-system-status{position:relative;z-index:1;display:flex;justify-content:flex-end;gap:14px;
  margin-bottom:18px;color:#53615a;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.omni-system-status span{display:flex;align-items:center;gap:6px}
.omni-system-status i{width:7px;height:7px;border-radius:50%;background:#ad625d;box-shadow:0 0 0 3px rgba(173,98,93,.12)}
.omni-system-status i.online{background:#3d9b60;box-shadow:0 0 0 3px rgba(61,155,96,.13)}
.omni-architecture{position:relative;z-index:1;display:grid;grid-template-columns:minmax(180px,1fr) 90px minmax(180px,1fr) 90px minmax(180px,1fr);
  gap:8px;align-items:center}
.omni-system-node{position:relative;min-height:238px;padding:22px 18px 18px;border:1px solid #b9c9c0;
  border-radius:16px;background:rgba(255,255,255,.93);box-shadow:0 12px 28px rgba(17,66,44,.08)}
.omni-system-node.database{border-color:#80a890;background:linear-gradient(155deg,#fff,#edf6f0)}
.omni-system-node.runner{border-color:#91adbd;background:linear-gradient(155deg,#fff,#eef5f8)}
.omni-node-icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:17px;border-radius:12px;
  background:#e4f0e8;color:var(--green);font:700 18px Georgia,serif}
.omni-system-node.database .omni-node-icon{background:var(--green);color:#fff}
.omni-system-node.runner .omni-node-icon{background:#dfeaf0;color:#315b72}
.omni-system-node>small{display:block;color:#6f7b74;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.omni-system-node h3{margin:5px 0 9px;font:700 21px Georgia,serif;color:#163d2c}
.omni-system-node p{margin:0;color:#56615b;font-size:10px;line-height:1.55}
.omni-node-chip{position:absolute;left:18px;bottom:17px;padding:4px 8px;border:1px solid #c8d8ce;
  border-radius:999px;background:#f5faf7;color:#37634b;font-size:8px;font-weight:700}
.omni-system-link{text-align:center;color:#5d6a63}
.omni-system-link span,.omni-system-link small{display:block;font-size:8px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.omni-system-link b{display:block;margin:5px 0;color:#b46630;font-size:31px;line-height:1}
.omni-system-link.execution b{color:#3f7898}
.omni-process-strip{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  margin-top:22px;overflow:hidden;border:1px solid #c3d0c8;border-radius:13px;background:#c3d0c8}
.omni-process-strip>div{display:flex;gap:10px;padding:14px;background:rgba(255,255,255,.94)}
.omni-process-strip b{font:700 18px Georgia,serif;color:#b86b39}
.omni-process-strip span{font-size:9px;line-height:1.45;color:#637068}
.omni-process-strip strong{display:block;color:#193d2e;font-size:10px}
.omni-boundary-note{position:relative;z-index:1;display:flex;gap:12px;align-items:center;margin-top:12px;
  padding:11px 13px;border-left:3px solid #b86b39;background:rgba(255,248,241,.88);color:#755134}
.omni-boundary-note strong{font-size:9px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.omni-boundary-note span{font-size:9px;line-height:1.45}
.omni-enrichment{margin-top:14px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}
.omni-enrichment-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:17px}
.omni-enrichment-head small{color:#777f7a;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.omni-enrichment-head h3{margin:4px 0 0;font:700 19px Georgia,serif;color:#183d2d}
.omni-enrichment-head>span{padding:5px 8px;border-radius:999px;background:#f4eee7;color:#875d3d;font-size:8px;font-weight:800;text-transform:uppercase}
.omni-enrichment-flow{display:grid;grid-template-columns:1fr 38px 1fr 38px 1fr;align-items:stretch}
.omni-enrichment-flow article{position:relative;padding:17px;border:1px solid #ccd6d0;border-radius:13px;background:#f9fbfa}
.omni-enrichment-flow article.outcome{border-color:#7fa88d;background:#edf6f0}
.omni-enrichment-number{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#173e2d;color:#fff;
  font:700 12px Georgia,serif}
.omni-enrichment-flow h4{margin:10px 0 6px;font-size:12px;color:#203e31}
.omni-enrichment-flow p,.omni-enrichment-flow li{font-size:9px;line-height:1.45;color:#657068}
.omni-enrichment-flow p{margin:0}
.omni-enrichment-flow ul{margin:10px 0 0;padding-left:16px}
.omni-enrichment-arrow{display:grid;place-items:center;color:#b86b39;font-size:24px}

@media(max-width:980px){
  .omni-architecture{grid-template-columns:1fr;gap:8px}
  .omni-system-node{min-height:190px}
  .omni-system-link{display:flex;align-items:center;justify-content:center;gap:8px}
  .omni-system-link b{margin:0;transform:rotate(90deg)}
  .omni-process-strip{grid-template-columns:1fr 1fr}
  .omni-enrichment-flow{grid-template-columns:1fr}
  .omni-enrichment-arrow{height:35px;transform:rotate(90deg)}
}
@media(max-width:600px){
  .omni-system-map,.omni-enrichment{padding:14px}
  .omni-system-status{justify-content:flex-start;flex-wrap:wrap}
  .omni-process-strip{grid-template-columns:1fr}
  .omni-boundary-note,.omni-enrichment-head{align-items:flex-start;flex-direction:column}
}

/* ── Chats ───────────────────────────────────────────────────────────
   Two columns: thread list, conversation. The composer is pinned under the
   thread rather than floating, because this lives inside a dashboard panel
   that already scrolls and a fixed composer would fight it. */
.chat-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;margin-top:14px;align-items:start}
.chat-sidebar{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:13px;box-shadow:var(--shadow);
  position:sticky;top:14px}
.chat-new{width:100%;appearance:none;border:1px solid var(--green);background:var(--green);color:#fff;
  border-radius:9px;padding:10px;font-size:10px;font-weight:700;cursor:pointer;margin-bottom:11px}
.chat-new:hover{background:var(--green-800)}
.chat-search{height:36px;border:1px solid var(--line);border-radius:9px;background:#f7f9f8;
  display:flex;align-items:center;gap:7px;padding:0 10px;color:var(--muted)}
.chat-search:focus-within{border-color:var(--green);background:#fff;box-shadow:0 0 0 3px rgba(46,107,63,.08)}
.chat-search span{font-size:15px;line-height:1}
.chat-search input{border:0;outline:0;background:transparent;min-width:0;width:100%;font-family:inherit;font-size:10px;font-weight:500;color:var(--ink)}
.chat-search input::placeholder{color:#929994}
.chat-list-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:10px 0 8px;padding:3px;border-radius:9px;background:#f1f4f2}
.chat-list-tabs button{appearance:none;border:0;border-radius:7px;padding:7px 6px;background:transparent;color:var(--muted);
  font-family:inherit;font-size:9px;font-weight:700;cursor:pointer}
.chat-list-tabs button span{margin-left:3px;color:#8d948f}
.chat-list-tabs button.active{background:#fff;color:var(--green-950);box-shadow:0 1px 4px rgba(20,49,37,.09)}
#chat-list-results{max-height:55vh;overflow-y:auto;padding-right:2px}
.chat-list{display:flex;flex-direction:column;gap:5px}
.chat-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid transparent;
  border-radius:10px;transition:background .14s,border-color .14s}
.chat-list-row:hover{background:#f4f6f5}
.chat-list-row.active{background:var(--mint);border-color:#c3ddc9}
.chat-list-item{appearance:none;text-align:left;background:transparent;border:1px solid transparent;
  border-radius:10px;padding:9px 7px 9px 10px;cursor:pointer;display:block;width:100%;min-width:0}
.chat-list-item:hover{background:transparent}
.chat-list-item strong{display:block;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.chat-list-item small{display:block;color:var(--muted);font-size:9px;margin-top:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-list-item span{display:block;color:#8a918d;font-size:8px;margin-top:5px}
.chat-list-actions{display:flex;gap:2px;padding-right:5px;opacity:0;transform:translateX(3px);
  transition:opacity .14s,transform .14s}
.chat-list-row:hover .chat-list-actions,.chat-list-row:focus-within .chat-list-actions,.chat-list-row.active .chat-list-actions{
  opacity:1;transform:none}
.chat-list-actions button{appearance:none;width:24px;height:24px;border:0;border-radius:7px;background:transparent;
  color:var(--muted);font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.chat-list-actions button:hover{background:#e4e9e6;color:var(--green-950)}
.chat-list-actions button.danger:hover{background:#f8e8e7;color:#9a514f}
.chat-list-actions button.busy{overflow:hidden;background:#e4e9e6;color:var(--green-950);
  font-size:13px;letter-spacing:0;cursor:wait}
.chat-list-empty{text-align:center;padding:25px 10px;color:var(--muted)}
.chat-list-empty strong{display:block;color:var(--ink);font-size:10px}
.chat-list-empty p{margin:5px 0 0;font-size:9px;line-height:1.4}

.chat-main{background:var(--panel);border:1px solid var(--line);border-radius:15px;
  box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:520px;min-width:0}
.chat-thread-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;
  border-bottom:1px solid var(--line)}
.chat-thread-toolbar>div:first-child{min-width:0}
.chat-thread-toolbar strong{display:block;font-family:inherit;font-size:12px;font-weight:650;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-thread-toolbar small{display:block;margin-top:3px;color:var(--muted);font-size:8px}
.chat-thread-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.chat-thread-actions button,.chat-archived-note button{appearance:none;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--ink);padding:7px 9px;font-family:inherit;font-size:8px;font-weight:700;cursor:pointer}
.chat-thread-actions button:hover,.chat-archived-note button:hover{border-color:var(--green);color:var(--green)}
.chat-thread-actions button.primary{background:var(--green);border-color:var(--green);color:#fff}
.chat-thread-actions button.primary:hover{background:var(--green-800);color:#fff}
.chat-thread-actions button.danger{color:#9a514f}
.chat-thread-actions button.danger:hover{border-color:#cf9692;background:#fdf4f3}
.chat-thread-actions button:disabled{opacity:.45;cursor:not-allowed}
.chat-notice{display:grid;grid-template-columns:20px minmax(0,1fr) 24px;align-items:center;gap:7px;
  margin:11px 17px 0;padding:9px 10px;border:1px solid #bdd9c4;border-radius:9px;background:#f0f8f2;color:#315f3e}
.chat-notice.error{border-color:#e4c4c2;background:#fdf4f3;color:#7d4442}
.chat-notice>span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:currentColor;color:#fff;font-size:9px}
.chat-notice p{margin:0;font-size:9px;line-height:1.4}
.chat-notice button{appearance:none;border:0;background:transparent;color:inherit;font-size:15px;cursor:pointer}
.chat-thread{flex:1;padding:18px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;max-height:60vh}
.chat-turn{display:flex}
.chat-turn.user{justify-content:flex-end}
.chat-bubble{max-width:82%;border-radius:14px;padding:13px 15px;font-size:11px;line-height:1.55;min-width:0}
.chat-turn.user .chat-bubble{background:var(--green);color:#fff;border-bottom-right-radius:5px}
.chat-turn.assistant .chat-bubble{background:#f6f8f7;border:1px solid var(--line);
  border-bottom-left-radius:5px;max-width:100%;width:100%}
.chat-bubble.failed{background:#fdf4f3;border-color:#e4c4c2;color:#7d4442}
.chat-error-details{margin-top:12px;padding-top:10px;border-top:1px solid #e4c4c2}
.chat-error-details summary{cursor:pointer;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.chat-error-details code{display:block;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.45}
.chat-error-details small{display:block;margin-top:8px;color:#8a6462;font-size:9px}
.chat-answer{overflow-wrap:anywhere}
.chat-figures{margin-top:13px}
.chat-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px;
  padding-top:10px;border-top:1px solid var(--line)}
.chat-meta code{background:#eceeed;border-radius:5px;padding:2px 6px;font-size:8px;color:#5b625e}

.chat-bubble.thinking{color:var(--muted)}
.chat-dots{display:inline-flex;gap:3px;margin-right:6px}
.chat-dots i{width:5px;height:5px;border-radius:50%;background:var(--green);
  animation:chat-pulse 1.2s infinite ease-in-out}
.chat-dots i:nth-child(2){animation-delay:.18s}
.chat-dots i:nth-child(3){animation-delay:.36s}
@keyframes chat-pulse{0%,80%,100%{opacity:.25}40%{opacity:1}}
.chat-steps{margin-top:10px;display:flex;flex-direction:column;gap:4px}
.chat-step{font-size:9px;color:#6f7671;display:flex;gap:6px;align-items:baseline}
.chat-step span{color:var(--green);flex-shrink:0}
.chat-step div{min-width:0}
.chat-step small{display:block;margin-top:2px;color:inherit;opacity:.76;overflow-wrap:anywhere}
.chat-step.error{color:#9a514f}

.chat-empty{text-align:center;padding:52px 28px 16px}
.chat-empty h3{font-family:Georgia,serif;font-size:34px;line-height:1.08;margin:0 0 7px;
  color:var(--green-950);font-weight:600;letter-spacing:-.025em}
.chat-empty>p{color:var(--muted);font-size:17px;margin:0}

.chat-composer{display:flex;flex-direction:column;margin:14px 22px 0;border:1px solid #bfc8c2;
  border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 12px 28px rgba(12,46,34,.07);
  transition:border-color .18s,box-shadow .18s}
.chat-composer:focus-within{border-color:var(--green);box-shadow:0 14px 34px rgba(12,73,48,.11)}
.chat-composer textarea{width:100%;resize:none;border:0;background:transparent;padding:22px 24px 12px;
  font:400 16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;
  color:var(--ink);min-height:105px;box-sizing:border-box}
.chat-composer textarea::placeholder{color:#8b918d}
.chat-composer textarea:focus{outline:none}
.chat-composer-bar{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;padding:0 14px 13px 18px}
.chat-composer-config{display:flex;align-items:flex-end;gap:9px}
.chat-provider{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:8px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.chat-provider select{appearance:none;border:0;border-radius:9px;background:#f3f5f4;color:var(--ink);font-family:inherit;font-size:10px;font-weight:650;padding:9px 27px 9px 10px}
.chat-provider select:focus{outline:1px solid var(--green)}
.chat-provider:first-child select{min-width:142px}
.chat-composer button{appearance:none;border:0;background:var(--green);color:#fff;border-radius:10px;
  max-width:0;padding:10px 0;opacity:0;overflow:hidden;white-space:nowrap;font-size:10px;
  font-weight:750;cursor:pointer;pointer-events:none;transform:translateX(6px);
  transition:max-width .2s,padding .2s,opacity .16s,transform .2s}
.chat-composer.has-text button{max-width:90px;padding:10px 13px;opacity:1;pointer-events:auto;transform:none}
.chat-composer.has-text button:hover{background:var(--green-800)}
.chat-composer button span{display:inline-grid;place-items:center;margin-left:5px;width:16px;height:16px;
  border-radius:50%;background:rgba(255,255,255,.17)}
.chat-composer button:disabled{background:#b3c2b8;cursor:default}

.chat-presets{padding:18px 22px 0}
.chat-presets>p{margin:0 0 9px;color:#7b837e;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.chat-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.chat-suggestion{appearance:none;display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;align-items:start;
  background:#f6f8f7;border:1px solid var(--line);border-radius:11px;padding:11px 12px;
  text-align:left;cursor:pointer;color:var(--ink);min-height:58px}
.chat-suggestion span{font-size:8px;font-weight:800;color:var(--green);letter-spacing:.04em;padding-top:2px}
.chat-suggestion strong{font-size:9px;line-height:1.42;font-weight:600}
.chat-suggestion:hover{border-color:var(--green);background:var(--mint);transform:translateY(-1px)}
.chat-note{margin:0;padding:10px 22px 16px;color:#8a918d;font-size:8px}
.chat-archived-note{margin:14px 22px 0;padding:13px 14px;border:1px solid #d6dbd8;border-radius:11px;
  background:#f7f8f7;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:9px}
.chat-archived-note strong{color:var(--ink)}
.chat-archived-note button{margin-left:auto;background:#fff}

/* ── Reports ─────────────────────────────────────────────────────────── */
.report-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));margin-top:14px}
.report-card{appearance:none;text-align:left;cursor:pointer;display:block}
.report-card:hover{border-color:#c7cecb}
.report-card h3{margin:9px 0 5px;font-size:14px}
.report-card p{margin:0 0 11px;color:var(--muted);font-size:10px;line-height:1.5}
.report-card-top{display:flex;align-items:center;gap:7px}
.report-pin{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--amber)}
.report-back{margin:14px 0 0}
.report-head{margin-top:12px}

/* ── Fleet map ───────────────────────────────────────────────────────── */
.fleet-card{margin-top:14px}
.fleet-map-shell{position:relative;height:clamp(360px,52vw,610px);margin-top:14px;overflow:hidden;
  border:1px solid var(--line);border-radius:14px;background:#eef1f0}
.fleet-map{width:100%;height:100%;display:block;cursor:grab;touch-action:none;user-select:none}
.fleet-map.dragging{cursor:grabbing}
.fleet-map-controls{position:absolute;z-index:2;top:12px;right:12px;display:flex;gap:5px;
  padding:5px;border:1px solid rgba(6,47,35,.13);border-radius:10px;background:rgba(255,255,255,.92);
  box-shadow:0 4px 18px rgba(6,47,35,.09);backdrop-filter:blur(6px)}
.fleet-map-controls button{appearance:none;min-width:32px;height:30px;border:0;border-radius:7px;
  background:#fff;color:var(--green-950);font:700 11px -apple-system,sans-serif;cursor:pointer}
.fleet-map-controls button:hover{background:#e9f3ed}
.fleet-map-controls button:last-child{padding:0 10px}
.fleet-map-hint{position:absolute;left:12px;bottom:11px;padding:5px 8px;border-radius:7px;
  background:rgba(255,255,255,.88);color:#657069;font-size:8px;font-weight:700;letter-spacing:.02em}
.map-airport circle{fill:#fff;stroke:var(--green);stroke-width:2;vector-effect:non-scaling-stroke}
.map-airport text{font:700 11px -apple-system,sans-serif;fill:#4a524d;paint-order:stroke;
  stroke:rgba(255,255,255,.9);stroke-width:3px;stroke-linejoin:round}
.map-trail{fill:none;stroke:var(--blue);stroke-width:1.5;opacity:.35;stroke-linecap:round;
  vector-effect:non-scaling-stroke}
.map-aircraft path{fill:var(--green);stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.map-aircraft.live path{fill:var(--blue)}
.map-aircraft.grounded path{fill:#7d8982}
.map-aircraft text{font:800 10px -apple-system,sans-serif;fill:#26352d;paint-order:stroke;
  stroke:rgba(255,255,255,.96);stroke-width:3px;stroke-linejoin:round}
.fleet-caption{margin:12px 0 0;font-size:9px;line-height:1.5}
.fleet-mode{margin-top:14px}
.fleet-history-toggle{display:grid;grid-template-columns:auto auto;gap:2px 8px;align-items:center;
  padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fafbfa;cursor:pointer}
.fleet-history-toggle input{accent-color:var(--green);margin:0}
.fleet-history-toggle span{font-size:10px;font-weight:750;color:var(--ink)}
.fleet-history-toggle small{grid-column:2;color:var(--muted);font-size:8px}
.fleet-table-wrap{overflow:auto;margin-top:12px;border:1px solid var(--line);border-radius:10px}
.fleet-table{min-width:850px;margin:0;border:0}
.fleet-table td small{display:block;margin-top:4px;color:var(--muted);font-size:8px;line-height:1.35}
.fleet-table a{color:var(--green);text-decoration:none}
.fleet-table a:hover{text-decoration:underline}
.fleet-table tr.fleet-historic{background:#fafafa;color:#747b77}
.fleet-status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;
  background:#eef1ef;color:#667069;font-size:8px;font-weight:800;letter-spacing:.02em}
.fleet-status.active{background:#e8f2ec;color:#246140}
.fleet-status.live{background:#e5eef9;color:#215e9a}
.fleet-status.live::before{content:"";width:5px;height:5px;margin-right:5px;border-radius:50%;
  background:#2f80c9;box-shadow:0 0 0 3px rgba(47,128,201,.12)}

@media(max-width:820px){
  .chat-layout{grid-template-columns:minmax(0,1fr)}
  .chat-sidebar{position:static}
  #chat-list-results{max-height:260px}
  .chat-bubble{max-width:95%}
  .chat-empty{padding-top:38px}
  .chat-suggestions{grid-template-columns:minmax(0,1fr)}
  .fleet-map-shell{height:430px}
}
@media(max-width:700px){
  .chat-thread-toolbar{align-items:flex-start;flex-direction:column}
  .chat-thread-actions{width:100%;flex-wrap:wrap}
  .chat-thread-actions button{flex:1}
  .chat-empty h3{font-size:27px}
  .chat-empty>p{font-size:15px}
  .chat-composer{margin-inline:13px}
  .chat-composer textarea{padding:18px 17px 10px}
  .chat-composer-bar{align-items:stretch;padding-inline:12px}
  .chat-composer-config{flex:1;min-width:0}
  .chat-provider{flex:1;min-width:0}
  .chat-provider select{width:100%;min-width:0!important}
  .chat-presets{padding-inline:13px}
  .chat-archived-note{margin-inline:13px;align-items:flex-start;flex-wrap:wrap}
  .chat-archived-note button{margin-left:0;width:100%}
  .fleet-card .card-head{align-items:flex-start;flex-direction:column}
  .fleet-card .omni-head-meta{width:100%;align-items:flex-start}
  .fleet-map-shell{height:380px;border-radius:10px}
  .fleet-map-hint{display:none}
  .fleet-history-toggle{width:100%;box-sizing:border-box}
}
.map-sea{fill:#eef1f0}
.map-land{fill:#fbfcfb;stroke:#ccd5d0;stroke-width:.8;stroke-linejoin:round}
.fleet-quiet{margin-top:14px;padding:34px 22px;text-align:center;border:1px dashed #cfd4d1;border-radius:12px;background:#fbfcfb}
.fleet-quiet strong{display:block;font-family:Georgia,serif;font-size:16px;margin-bottom:7px}
.fleet-quiet p{margin:0 auto;max-width:520px;color:var(--muted);font-size:10px;line-height:1.55}

/* ── Thinking panel ──────────────────────────────────────────────────
   Compact by design. The first version ran the full height of the panel and
   pushed the conversation off screen, which is the opposite of what a loading
   state should do -- it is context for the wait, not the subject of it. */
.chat-turn.assistant .chat-bubble.working{background:var(--green-950);border-color:var(--green-800);
  color:#dbe7de;padding:0;overflow:hidden}
.think{padding:13px 14px 11px}
.think-head{display:flex;align-items:center;gap:9px}
.think-head strong{font-size:11px;color:#fff}
.think-head .chat-dots i{background:var(--bright)}
.think-elapsed{margin-left:auto;font-size:9px;color:#7f9c8a;font-variant-numeric:tabular-nums}
.think-toggle{appearance:none;border:1px solid #2f5f47;background:transparent;color:#9fbcab;
  border-radius:7px;padding:3px 8px;font-size:8px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;cursor:pointer}
.think-toggle:hover{border-color:var(--bright);color:#fff}
.think-detail{margin:5px 0 0;font-size:9px;color:#93ac9d;line-height:1.5}

/* Collapsed by the toggle, or hidden automatically outside the graph phases.
   max-height rather than display:none so it animates rather than jumping. */
.think-graph-wrap{max-height:210px;opacity:1;overflow:hidden;
  transition:max-height .45s ease,opacity .3s ease,margin .45s ease}
.think[data-open="0"] .think-graph-wrap,
.think[data-graph="0"] .think-graph-wrap{max-height:0;opacity:0;margin-bottom:-8px}
.think[data-graph="0"] .think-toggle{opacity:.35;pointer-events:none}

.think-graph{width:100%;aspect-ratio:640/100;height:auto;max-height:160px;margin:9px 0 3px;display:block;
  border-radius:9px;background:#0a2a20}

/* Field: dormant dots drift continuously so the panel never looks frozen. */
.tg-dot{fill:#24513c;transition:fill .6s,r .6s;animation:tg-drift var(--t,8s) ease-in-out var(--d,0s) infinite}
.tg-spoke{stroke:#1d4433;stroke-width:.6;opacity:.5;transition:stroke .6s,opacity .6s}
.tg-dot.seen{fill:#356e51}
.tg-spoke.seen{stroke:#2b5f47;opacity:.65}
.tg-dot.lit{fill:var(--bright);animation:tg-drift var(--t,8s) ease-in-out var(--d,0s) infinite,
  tg-flash 1.9s ease-in-out var(--d,0s) infinite}
.tg-spoke.lit{stroke:#5fae82;opacity:.9;stroke-dasharray:3 7;animation:tg-run 1.4s linear infinite}

.tg-hub-dot{fill:#2c6349;stroke:#4a8a67;stroke-width:1.5;transition:fill .5s,stroke .5s}
.tg-hub-halo{fill:var(--bright);opacity:0;transition:opacity .5s}
.tg-hub-label{fill:#7f9c8a;font:700 5.5px -apple-system,sans-serif;text-anchor:middle;transition:fill .5s}
.tg-hub.seen .tg-hub-dot{fill:#3f7f5e;stroke:#6aa885}
.tg-hub.seen .tg-hub-label{fill:#9fbcab}
.tg-hub.lit .tg-hub-dot{fill:var(--bright);stroke:#e2f5e7}
.tg-hub.lit .tg-hub-halo{opacity:.2;animation:tg-halo 1.9s ease-in-out infinite}
.tg-hub.lit .tg-hub-label{fill:#fff}

@keyframes tg-drift{0%,100%{transform:translate(0,0)}50%{transform:translate(1.6px,-1.4px)}}
@keyframes tg-flash{0%,100%{opacity:.75}50%{opacity:1}}
@keyframes tg-halo{0%,100%{opacity:.12}50%{opacity:.3}}
@keyframes tg-run{to{stroke-dashoffset:-20}}

.think-legend{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding-top:7px;font-size:8px;color:#6f8c7b}
.think-note{font-style:italic;color:#5d7a68}
.think-steps{margin-top:9px}
.think-steps-head{font-size:8px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  color:#6f8c7b;margin-bottom:5px}
.think .chat-step{color:#a8c3b3;font-size:9px}
.think .chat-step span{color:var(--bright)}

/* ── Placement simulation sandbox ─────────────────────────────────── */
.sim-demo-banner{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 14px;
  border:1px solid #d3c9df;border-radius:12px;background:#f8f5fb;color:#50425f}
.sim-demo-banner>span{display:grid;place-items:center;flex:0 0 auto;width:47px;height:28px;border-radius:7px;
  background:var(--purple);color:#fff;font-size:8px;font-weight:900;letter-spacing:.12em}
.sim-demo-banner strong{display:block;font-size:10px}.sim-demo-banner p{margin:3px 0 0;font-size:9px;line-height:1.45}
.sim-config-card,.sim-results-card{margin-top:14px}
.sim-eyebrow{margin:0 0 4px!important;color:var(--green)!important;font-size:8px!important;font-weight:900;
  letter-spacing:.1em;text-transform:uppercase}
.sim-config-card .card-head h3,.sim-run-head h3{margin:0;font:700 21px Georgia,serif;color:var(--green-950)}
.sim-config-card .card-head p:not(.sim-eyebrow),.sim-run-head p{margin:5px 0 0;color:var(--muted);font-size:9px}
.sim-status{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--line);
  border-radius:999px;background:#f4f6f5;color:#68716c;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.sim-status i{width:7px;height:7px;border-radius:50%;background:#9ba29e}
.sim-status.running{border-color:#afd0b7;background:#edf7ef;color:#27633a}.sim-status.running i{background:#45a563;box-shadow:0 0 0 4px rgba(69,165,99,.13);animation:sim-pulse 1.4s infinite}
.sim-status.paused{border-color:#e3cda9;background:#fff7e9;color:#895d25}.sim-status.paused i{background:#c98b39}
.sim-status.complete{border-color:#bdd2df;background:#eef5f8;color:#35657f}.sim-status.complete i{background:var(--blue)}
@keyframes sim-pulse{50%{box-shadow:0 0 0 7px rgba(69,165,99,0)}}
.sim-settings-grid{display:grid;grid-template-columns:1.1fr .8fr 1fr 1fr;gap:10px;margin-top:18px}
.sim-field{min-width:0;margin:0;padding:0;border:0}.sim-field>span,.sim-field legend{display:block;margin:0 0 7px;
  color:#69716c;font-size:8px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.sim-field select{width:100%;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:9px;
  background:#f9faf9;color:var(--ink);font:700 10px inherit;outline:0}
.sim-field select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(46,107,63,.08)}
.sim-segmented{display:grid;grid-template-columns:repeat(3,1fr);height:38px;padding:3px;border-radius:10px;background:#eff2f0}
.sim-segmented button{appearance:none;border:0;border-radius:7px;background:transparent;color:#69716c;font:750 9px inherit;cursor:pointer}
.sim-segmented button.active{background:#fff;color:var(--green-950);box-shadow:0 2px 7px rgba(14,54,42,.11)}
.sim-range>span{display:flex;justify-content:space-between}.sim-range output{color:var(--green-950);font-size:9px}
.sim-range input{width:100%;height:16px;margin:0;accent-color:var(--green);cursor:pointer}
.sim-range small{display:block;margin-top:4px;color:#8a918d;font-size:7px}
.sim-strategy{margin:19px 0 0;padding:0;border:0}.sim-strategy legend,.sim-section-label{display:flex;width:100%;
  align-items:center;justify-content:space-between;margin-bottom:8px;color:#69716c;font-size:8px;font-weight:850;
  letter-spacing:.06em;text-transform:uppercase}
.sim-strategy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.sim-strategy-grid button{position:relative;appearance:none;min-height:88px;padding:13px 12px 11px;border:1px solid var(--line);
  border-radius:11px;background:#fff;color:var(--ink);font-family:inherit;text-align:left;cursor:pointer}
.sim-strategy-grid button:hover{border-color:#adc8b5}.sim-strategy-grid button.active{border-color:var(--green);
  background:#f1f7f3;box-shadow:inset 0 0 0 1px var(--green)}
.sim-strategy-grid button>i{position:absolute;top:12px;right:12px;width:11px;height:11px;border:1px solid #b5beb8;border-radius:50%}
.sim-strategy-grid button.active>i{border:3px solid #f1f7f3;background:var(--green);box-shadow:0 0 0 1px var(--green)}
.sim-strategy-grid strong,.sim-strategy-grid span{display:block}.sim-strategy-grid strong{padding-right:17px;font-size:10px}
.sim-strategy-grid span{margin-top:7px;color:var(--muted);font-size:8px;line-height:1.4}
.sim-config-lower{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;margin-top:18px;padding-top:17px;border-top:1px solid var(--line)}
.sim-section-label{margin-bottom:9px}.sim-section-label span{font-weight:700;letter-spacing:0;text-transform:none}
.sim-fleet-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sim-fleet-row{display:grid;grid-template-columns:minmax(0,1fr) 67px;align-items:center;gap:8px;padding:8px 9px;
  border:1px solid #e5e8e6;border-radius:9px;background:#fafbfa}
.sim-fleet-row label{display:flex;align-items:center;gap:8px;min-width:0}.sim-fleet-row input{margin:0;accent-color:var(--green)}
.sim-fleet-row label span,.sim-fleet-row label strong,.sim-fleet-row label small{display:block;min-width:0}
.sim-fleet-row label strong{font-size:9px}.sim-fleet-row label small{margin-top:2px;color:var(--muted);font-size:7px}
.sim-fleet-row select{width:100%;padding:6px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:800 8px inherit}
.sim-fleet-row select:disabled{opacity:.48}
.sim-switch{display:block;cursor:pointer}.sim-switch+.sim-switch{margin-top:7px}.sim-switch>input{position:absolute;opacity:0;pointer-events:none}
.sim-switch>span{display:grid;grid-template-columns:31px 1fr;grid-template-rows:auto auto;gap:2px 8px;padding:9px 10px;
  border:1px solid var(--line);border-radius:9px;background:#fafbfa}
.sim-switch>span>i{grid-row:1/3;align-self:center;position:relative;width:31px;height:18px;border-radius:999px;background:#cbd1cd;transition:.2s}
.sim-switch>span>i:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:.2s}
.sim-switch input:checked+span>i{background:var(--green)}.sim-switch input:checked+span>i:after{transform:translateX(13px)}
.sim-switch strong{font-size:9px}.sim-switch small{color:var(--muted);font-size:7px}
.sim-assumption-note{margin-top:8px;padding:10px 11px;border-left:3px solid var(--purple);background:#f8f6fa}
.sim-assumption-note strong{font-size:8px}.sim-assumption-note p{margin:4px 0 0;color:var(--muted);font-size:8px;line-height:1.45}
.sim-run-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sim-run-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.sim-run-actions label{display:grid;gap:3px;color:var(--muted);font-size:7px;font-weight:800;text-transform:uppercase}
.sim-run-actions select{height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;font:800 9px inherit}
.sim-button{appearance:none;height:32px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--green-950);
  font:800 8px inherit;cursor:pointer}.sim-button.primary{border-color:var(--green);background:var(--green);color:#fff}
.sim-button.quiet-button{color:var(--muted)}.sim-button:disabled{cursor:not-allowed;opacity:.45}
.sim-kpis{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;margin-top:16px;border:1px solid var(--line);border-radius:12px;
  overflow:hidden;background:var(--line)}
.sim-kpis>div{padding:11px 10px;background:#fff}.sim-kpis small{display:block;color:var(--muted);font-size:7px;text-transform:uppercase;letter-spacing:.05em}
.sim-kpis strong{display:inline-block;margin-top:5px;font:700 20px Georgia,serif}.sim-kpis span{margin-left:4px;color:var(--muted);font-size:7px}
.sim-replay-grid{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:10px;margin-top:10px}
.sim-map-shell{position:relative;height:470px;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#eef1f0}
.sim-map-clock{position:absolute;z-index:3;top:12px;left:12px;display:flex;align-items:center;gap:8px;padding:7px 9px;
  border:1px solid rgba(6,47,35,.12);border-radius:9px;background:rgba(255,255,255,.92);box-shadow:0 4px 16px rgba(6,47,35,.08)}
.sim-map-clock span{font-size:9px;font-weight:800}.sim-map-clock strong{padding-left:8px;border-left:1px solid var(--line);color:var(--green);font-size:8px}
.sim-airport circle{fill:#fff;stroke:var(--green);stroke-width:2;vector-effect:non-scaling-stroke}.sim-airport text{font:800 10px -apple-system,sans-serif;
  fill:#445049;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.sim-active-leg{stroke:#81a58e;stroke-width:1.3;stroke-dasharray:5 5;opacity:.48;vector-effect:non-scaling-stroke}
.sim-aircraft path{fill:var(--green);stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}.sim-aircraft.deadhead path{fill:var(--amber)}
.sim-aircraft.maintenance path{fill:var(--rose)}.sim-aircraft.weather-hold path{fill:var(--blue)}.sim-aircraft.available path{fill:#65756c}
.sim-aircraft text{font:850 9px -apple-system,sans-serif;fill:#26352d;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.sim-timeline{padding:10px 3px 0}.sim-progress{height:4px;margin:0 7px;background:#e2e7e4;border-radius:999px;overflow:hidden}
.sim-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--bright));transition:width .2s}
.sim-timeline input{display:block;width:100%;height:17px;margin:-10px 0 0;opacity:0;cursor:pointer}.sim-timeline>div:last-child{display:flex;justify-content:space-between;
  align-items:center;margin-top:5px;color:var(--muted);font-size:7px}.sim-timeline strong{color:var(--ink);font-size:8px}
.sim-live-panel{min-height:470px;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#0c2c22;color:#dce9e1}
.sim-live-head{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-bottom:1px solid rgba(255,255,255,.08)}
.sim-live-head>div strong,.sim-live-head>div span{display:block}.sim-live-head strong{font-size:9px}.sim-live-head span{margin-top:2px;color:#7f9c8a;font-size:7px}
.sim-live-head>i{width:7px;height:7px;border-radius:50%;background:#526b5e}.sim-live-head>i.live{background:var(--bright);box-shadow:0 0 0 4px rgba(136,211,151,.12);animation:sim-pulse 1.4s infinite}
.sim-events{height:269px;overflow-y:auto;padding:7px 8px}.sim-event{display:grid;grid-template-columns:20px 1fr;gap:6px;padding:8px 5px;border-bottom:1px solid rgba(255,255,255,.055)}
.sim-event>span{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:rgba(255,255,255,.07);color:#8db29c;font-size:9px}
.sim-event strong,.sim-event small{display:block}.sim-event strong{color:#d5e5dc;font-size:8px;line-height:1.4}.sim-event small{margin-top:3px;color:#6f8a7b;font-size:7px}
.sim-event.latest{background:rgba(255,255,255,.025)}.sim-event.weather>span{color:#78acd0}.sim-event.maintenance>span{color:#df9992}.sim-event.deadhead>span{color:#dcaa6b}
.sim-tail-status{padding:10px 13px;border-top:1px solid rgba(255,255,255,.08)}.sim-tail-status>strong{display:block;margin-bottom:6px;color:#7f9c8a;font-size:7px;text-transform:uppercase;letter-spacing:.07em}
.sim-tail-status>div{display:flex;justify-content:space-between;gap:7px;padding:3px 0;font-size:7px}.sim-tail-status span{display:flex;align-items:center;gap:5px;color:#b8cdc1}
.sim-tail-status span i{width:5px;height:5px;border-radius:50%;background:#78a98a}.sim-tail-status b{color:#7f9c8a;font-size:7px;font-weight:700}
.sim-analysis-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-top:14px}.sim-comparison{margin-top:13px}
.sim-compare-row{display:grid;grid-template-columns:180px 1fr 25px;gap:10px;align-items:center;padding:8px;border-radius:9px}
.sim-compare-row+.sim-compare-row{margin-top:3px}.sim-compare-row.selected{background:#edf5ef}.sim-compare-row>div:first-child strong,.sim-compare-row>div:first-child span{display:block}
.sim-compare-row strong{font-size:9px}.sim-compare-row span{margin-top:3px;color:var(--muted);font-size:7px}.sim-score-track{height:6px;border-radius:999px;background:#e9edea;overflow:hidden}
.sim-score-track i{display:block;height:100%;border-radius:inherit;background:#8dad98}.sim-compare-row.selected .sim-score-track i{background:var(--green)}
.sim-compare-row>b{font:700 13px Georgia,serif}.sim-caption{margin:9px 0 0}
.sim-contract{margin:13px 0 0}.sim-contract>div{padding:9px 0;border-top:1px solid var(--line)}.sim-contract dt{color:var(--muted);font-size:7px;font-weight:850;text-transform:uppercase}
.sim-contract dd{margin:4px 0 0;font-size:9px;line-height:1.4}

@media(max-width:980px){
  .sim-settings-grid{grid-template-columns:1fr 1fr}.sim-strategy-grid{grid-template-columns:1fr 1fr}
  .sim-config-lower,.sim-analysis-grid{grid-template-columns:1fr}.sim-kpis{grid-template-columns:repeat(4,1fr)}
  .sim-replay-grid{grid-template-columns:1fr}.sim-live-panel{min-height:0}.sim-events{height:220px}
}
@media(max-width:650px){
  .sim-settings-grid,.sim-strategy-grid,.sim-fleet-list,.sim-kpis{grid-template-columns:1fr}
  .sim-run-head{flex-direction:column}.sim-run-actions{justify-content:flex-start}.sim-run-actions .sim-button{flex:1}
  .sim-map-shell{height:390px}.sim-map-clock{max-width:calc(100% - 92px);align-items:flex-start;flex-direction:column;gap:3px}
  .sim-map-clock strong{padding:3px 0 0;border-left:0;border-top:1px solid var(--line)}
  .sim-compare-row{grid-template-columns:1fr 32px}.sim-compare-row .sim-score-track{grid-column:1/-1;grid-row:2}
  .sim-demo-banner{align-items:flex-start}.sim-config-card .card-head{align-items:flex-start;flex-direction:column}
}

@media(prefers-reduced-motion:reduce){
  .tg-dot,.tg-dot.lit,.tg-spoke.lit,.tg-hub.lit .tg-hub-halo,.sim-status.running i,.sim-live-head>i.live{animation:none}
  .tg-hub.lit .tg-hub-halo{opacity:.2}
}

/* Walkthrough film at the foot of the OmniSupply system tab. preload="none"
   matters: the file is ~20MB and the tab is rendered on every load(), so an
   eager preload would pull it down for anyone who never scrolls this far. */
.omni-film{margin-top:14px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}
.omni-film-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:15px}
.omni-film-head small{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.omni-film-head h3{margin:5px 0 0}
.omni-film-head p{margin:7px 0 0;max-width:62ch;font-size:10px;line-height:1.5;color:var(--muted)}
.omni-film-head>span{flex:none;font-size:9px;color:var(--muted);white-space:nowrap}
.omni-film-video{display:block;width:100%;border-radius:12px;background:#08261e;border:1px solid var(--line)}
.omni-film-note{margin:11px 0 0;font-size:9px;line-height:1.45;color:var(--muted)}
@media(max-width:650px){
  .omni-film-head{flex-direction:column}.omni-film-head>span{white-space:normal}
}
