/* MRO AI Assisted Solver デモ — site.css のトークンの上に重ねる */

:root {
  --w-base: #2F6DB5;
  --w-crunch: #B4492F;
  --w-parts: #7B5BA8;
  --good: var(--green);
  --warn: var(--amber);
  --good-wash: #DCEEE5;
  --bar: #8FA3B3;
  --bar-over: var(--amber-fill);
  --header-h: 60px;
}

body { line-height: 1.75; }

/* Header */
.demo-header .header-inner { gap: 12px; }
.badge {
  display: inline-block; white-space: nowrap;
  font-size: 0.75rem; font-weight: 600; line-height: 1.6;
  padding: 1px 8px; border-radius: var(--r-sm);
  color: var(--amber); background: var(--amber-wash);
}
.header-links { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-links .back { font-size: var(--step--1); color: var(--ink-soft); text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 720px) {
  .demo-header .brand-name { display: none; }
  .header-links { gap: 12px; }
}
.demo-header .brand-context { margin-left: -2px; }
@media (max-width: 480px) { .header-links .back, .demo-header .brand-context { display: none; } }

/* Intro */
.intro { padding: 36px 0 20px; }
.intro .kicker { margin-bottom: 10px; }
.intro h1 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
.intro .lead { margin-top: 12px; max-width: 46em; }

/* Month control (sticky under header) */
.monthbar {
  position: sticky; top: var(--header-h); z-index: 9;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.monthbar-inner { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.month-ctl { display: flex; align-items: center; gap: 8px; }
.month-now { min-width: 9.5em; text-align: center; line-height: 1.3; }
.month-now .lbl { display: block; font-size: 0.75rem; color: var(--steel); }
.month-now strong { font-family: var(--font-latin); font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.month-now strong .ja { font-family: var(--font-ja); font-size: 1rem; }
.month-now .sub { display: block; font-size: 0.75rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.step {
  font: inherit; font-size: var(--step--1); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 6px 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer;
  transition: background-color 200ms var(--ease), transform 150ms var(--ease);
}
.step:hover:not(:disabled) { background: var(--paper-deep); }
.step:active:not(:disabled) { transform: scale(0.97); }
.step:disabled { opacity: 0.4; cursor: default; }
.step-next { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step-next:hover:not(:disabled) { background: var(--ink-soft); }

.ticks { list-style: none; margin: 0 0 0 auto; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; flex: 1; max-width: 560px; }
.ticks button {
  width: 100%; font: inherit; font-family: var(--font-latin); font-size: 0.8rem; font-variant-numeric: tabular-nums;
  min-height: 34px; padding: 0; cursor: pointer;
  background: var(--paper-deep); color: var(--steel); border: 0; border-radius: var(--r-sm);
  position: relative;
}
.ticks button.past { background: color-mix(in srgb, var(--ink) 14%, var(--paper-deep)); color: var(--ink-soft); }
.ticks button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.ticks button.has-event::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-fill);
}
@media (max-width: 820px) { .ticks { display: none; } .monthbar-inner { justify-content: center; } }

/* Signals */
.signals { padding: 18px 0 8px; }
.signals-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.signals h2 { font-size: var(--step-0); font-weight: 600; }
.signals .fine { margin: 0; }
.signal-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }
.signal { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 10px 14px; font-size: 0.92rem; line-height: 1.6; }
.signal .k { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.kind { font-size: 0.72rem; font-weight: 600; padding: 0 7px; border-radius: var(--r-sm); background: var(--paper-deep); color: var(--ink-soft); white-space: nowrap; }
.kind-removal { background: var(--amber-wash); color: var(--amber); }
.kind-lead { background: var(--ink); color: var(--paper); }
.signal-fresh { animation: fresh 700ms var(--ease) both; }
@keyframes fresh { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tabs */
.tabs-wrap { padding-top: 22px; }
.tablist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; border-bottom: 2px solid var(--ink); }
.tab {
  font: inherit; text-align: left; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 0; border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 10px 14px 12px; line-height: 1.4;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.tab .role { display: block; font-size: 0.75rem; color: var(--steel); }
.tab .ttl { display: block; font-weight: 600; margin-top: 2px; }
.tab:hover { background: var(--paper-deep); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] .role { color: color-mix(in srgb, var(--paper) 70%, transparent); }
@media (max-width: 820px) {
  .tablist { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 8px 12px 10px; }
}

.panel { padding: 28px 0 72px; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 6px; }
.panel-head h2 { font-size: var(--step-1); font-weight: 700; }
.panel-head p { margin-top: 6px; color: var(--ink-soft); max-width: 46em; font-size: 0.95rem; }

/* Headline answer (the sentence you would say in the meeting) */
.answer {
  margin-top: 20px; padding: 16px 20px;
  background: var(--surface); border-radius: var(--r-md);
  border-left: 6px solid var(--good);
  font-size: 1.1rem; font-weight: 600; line-height: 1.6;
}
.answer[data-state="warn"] { border-left-color: var(--amber-fill); }
.answer .sub { display: block; margin-top: 4px; font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.kpi { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; border: 1px solid var(--line-soft); }
.kpi-label { font-size: 0.8rem; color: var(--steel); line-height: 1.5; }
.kpi-val { font-family: var(--font-latin); font-size: 1.9rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi-val small { font-family: var(--font-ja); font-size: 0.85rem; font-weight: 500; margin-left: 3px; color: var(--ink-soft); }
.kpi-note { font-size: 0.78rem; color: var(--steel); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-warn .kpi-val { color: var(--warn); }
.kpi-good .kpi-val { color: var(--good); }
.delta { font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-up { color: var(--warn); }
.delta-down { color: var(--good); }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Layout helpers */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .split, .split-even { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
.card h3 { font-size: var(--step-0); font-weight: 600; }
.card .card-sub { font-size: 0.82rem; color: var(--steel); margin-top: 2px; }
.stack-gap > * + * { margin-top: 20px; }
@media (max-width: 420px) { .card { padding: 14px 14px; } }

/* Charts */
.chart { position: relative; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-latin); font-size: 12px; fill: var(--steel); font-variant-numeric: tabular-nums; }
.chart text.ja { font-family: var(--font-ja); font-size: 11.5px; }
.chart text.strong { fill: var(--ink); font-weight: 600; }
.chart .axis { stroke: var(--steel); stroke-width: 1; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .bar { fill: var(--bar); }
.chart .bar-over { fill: var(--bar-over); }
.chart .bar:hover, .chart .bar-over:hover { opacity: 0.8; }
.chart .ref { stroke: var(--ink); stroke-width: 2; }
.chart .ref-dash { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .now { stroke: var(--amber); stroke-width: 2; }
.chart .w-base { stroke: var(--w-base); fill: var(--w-base); }
.chart .w-crunch { stroke: var(--w-crunch); fill: var(--w-crunch); }
.chart .w-parts { stroke: var(--w-parts); fill: var(--w-parts); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .band { fill: var(--window); }
.chart .band-live { fill: color-mix(in srgb, var(--amber-fill) 45%, var(--surface)); }
.chart .tick-med { stroke: var(--ink); stroke-width: 2; }
.chart .actual { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.chart .curve-prior { fill: none; stroke: var(--steel); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .curve-next { fill: color-mix(in srgb, var(--amber-fill) 18%, transparent); stroke: var(--amber); stroke-width: 2; }
.chart .obs-past { fill: var(--steel); }
.chart .obs-now { fill: var(--amber-fill); stroke: var(--surface); stroke-width: 1.5; }
.chart .opt { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.chart .opt-pool { fill: var(--amber-fill); stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: default; }
.chart .flag { fill: var(--ink); }
.chart .flag-text { fill: var(--paper); font-family: var(--font-ja); font-size: 11px; }

.tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--ink); color: var(--paper);
  font-size: 0.8rem; line-height: 1.5; font-variant-numeric: tabular-nums;
  padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0; transition: opacity 120ms;
}
.tip.on { opacity: 1; }

.legend-row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 0.8rem; color: var(--steel); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 14px; height: 8px; border-radius: 1px; }
.key-line { height: 2px; }
.key-dash { height: 0; border-top: 2px dashed var(--steel); background: none !important; }
.k-bar { background: var(--bar); }
.k-over { background: var(--bar-over); }
.k-ink { background: var(--ink); }
.k-base { background: var(--w-base); }
.k-crunch { background: var(--w-crunch); }
.k-parts { background: var(--w-parts); }
.k-window { background: var(--window); }
.k-late { background: var(--amber-fill); }
.k-amber { background: var(--amber); }
.k-steel { background: var(--steel); }

/* Tables */
.tbl-scroll { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl thead th { font-size: 0.78rem; color: var(--steel); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; }
.tbl tbody th { font-weight: 600; }
.tbl-nowrap th[scope="row"] { white-space: nowrap; }
.tbl tr.hl td, .tbl tr.hl th { background: var(--amber-wash); }
.tbl tr.cur th { box-shadow: inset 3px 0 0 var(--amber-fill); }
.tbl .muted { color: var(--steel); }
.good { color: var(--good); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }

/* World probabilities */
.worlds { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.world { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 3.6em; align-items: center; gap: 10px; font-size: 0.92rem; }
.world .meter { height: 10px; background: var(--paper-deep); border-radius: 2px; overflow: hidden; }
.world .meter i { display: block; height: 100%; border-radius: 0 2px 2px 0; transition: width 500ms var(--ease); }
.world .pct { font-family: var(--font-latin); font-size: 1.15rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.world .pct .delta { display: block; font-family: var(--font-ja); font-size: 0.72rem; font-weight: 500; color: var(--steel); line-height: 1.2; }
.world { grid-template-columns: 6.5em minmax(0, 1fr) 3.4em; }
.world-top .name { font-weight: 700; }

.seg-wrap .seg button { white-space: nowrap; }
.seg-wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Brief */
.brief { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow); min-width: 0; }
.brief-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 0.8rem; color: var(--steel); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.brief h3 { font-size: var(--step-1); font-weight: 700; margin-top: 4px; }
.brief h4 { font-size: 0.85rem; font-weight: 700; color: var(--steel); margin-top: 22px; letter-spacing: 0.02em; }
.brief .conclusion { margin-top: 6px; font-size: 1.05rem; font-weight: 600; line-height: 1.7; }
.brief ul.changes { margin-top: 6px; padding-left: 1.2em; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 420px) { .brief { padding: 18px 16px; } }

.agent-log { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.85rem; line-height: 1.55; }
.agent-log li { display: grid; grid-template-columns: 3.2em 6.2em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.agent-log time { font-family: var(--font-latin); color: var(--steel); font-variant-numeric: tabular-nums; }
.agent-log .who { font-size: 0.75rem; font-weight: 600; align-self: start; padding: 0 6px; border-radius: var(--r-sm); text-align: center; white-space: nowrap; }
.who-plan { background: var(--paper-deep); color: var(--ink); }
.who-review { background: var(--amber-wash); color: var(--amber); }
.agent-log li.appear { animation: fresh 500ms var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@media (max-width: 420px) { .agent-log li { grid-template-columns: 3em minmax(0, 1fr); } .agent-log li > span:last-child { grid-column: 1 / -1; } }

.status { font-size: 0.75rem; font-weight: 600; padding: 0 6px; border-radius: var(--r-sm); white-space: nowrap; }
.status-done { background: var(--good-wash); color: var(--good); }
.status-open { background: var(--amber-wash); color: var(--amber); }
.log-new td, .log-new th { animation: fresh 600ms var(--ease) both; }

.note { margin-top: 12px; font-size: 0.8rem; color: var(--steel); line-height: 1.65; }
.assume { margin-top: 12px; padding: 0; list-style: none; font-size: 0.8rem; color: var(--steel); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Footer CTA */
.demo-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 24px 28px; background: var(--amber-wash); border-radius: var(--r-lg); margin-bottom: 64px; }
.demo-cta p { font-weight: 600; font-size: var(--step-1); }
.demo-cta .fine { font-weight: 400; font-size: var(--step--1); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .signal-fresh, .agent-log li.appear, .log-new td, .log-new th { animation: none; }
  .world .meter i { transition: none; }
  .step, .tab { transition: none; }
}

@media (max-width: 480px) {
  .tbl th, .tbl td { padding: 7px 6px; }
  .brief .tbl td:last-child { white-space: nowrap; }
}

/* ヘッダー：言語の切り替えを足したぶん、狭い画面で詰める */
@media (max-width: 420px) {
  .demo-header .badge { display: none; }
  .header-links { gap: 8px; }
  .header-links .btn-small { padding: 6px 10px; }
}
@media (max-width: 360px) {
  .month-ctl { flex-wrap: wrap; gap: 6px; }
}


/* 6. 需要と比べる */
.card-top { margin-top: 20px; }
.k-short { background: color-mix(in srgb, var(--amber-fill) 55%, var(--surface)); }
.k-fan { background: color-mix(in srgb, var(--w-base) 22%, var(--surface)); }
.chart .seat { fill: var(--bar); opacity: 0.55; }
.chart .seat-short { fill: color-mix(in srgb, var(--amber-fill) 55%, var(--surface)); }
.chart .tight-bg { fill: var(--amber-wash); }
.chart .fan { fill: color-mix(in srgb, var(--w-base) 22%, var(--surface)); }
.chart .dem { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart .dem-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
.chart .lf85 { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .trig-band { fill: var(--window); opacity: 0.6; }
.chart .g-line { fill: none; stroke: var(--amber); stroke-width: 2; }
.opts { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; line-height: 1.6; }
.opts li { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.opts li.best { font-weight: 700; }

/* 3. QCD：打ち手ごとの三角形（スモールマルチプル） */
.qcd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 720px) { .qcd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .qcd-grid { grid-template-columns: minmax(0, 1fr); } }
.qcd-cell { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 10px 12px 8px; }
.qcd-cell.dominated { opacity: 0.6; }
.qcd-cell h4 { font-size: 0.86rem; font-weight: 600; line-height: 1.4; min-height: 2.8em; }
.qcd-cell .qcd-flag { display: block; font-size: 0.72rem; font-weight: 500; color: var(--steel); }
.qcd-cell svg { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.chart-qcd .tri-grid { fill: none; stroke: var(--line-soft); stroke-width: 1; }
.chart-qcd .tri-base { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart-qcd .tri-opt { fill: color-mix(in srgb, var(--ink) 12%, transparent); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart-qcd .tri-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.chart-qcd text { font-size: 11px; fill: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chart-qcd text.ax { font-weight: 700; fill: var(--ink); font-size: 12px; }

/* 3. カタログ：三角形の形を変える打ち手 */
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 720px) { .catalog { grid-template-columns: minmax(0, 1fr); } }
.cat-group { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 12px 14px; }
.cat-group.touched { border-color: var(--amber-fill); box-shadow: inset 3px 0 0 var(--amber-fill); }
.cat-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cat-head h4 { font-size: 0.95rem; font-weight: 700; }
.cat-head .cat-ax { font-family: var(--font-latin); font-weight: 700; }
.cat-why { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }
.cat-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.cat-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: 0.86rem; line-height: 1.55; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.cat-list .fx { font-size: 0.75rem; color: var(--steel); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-list .ex { display: block; font-size: 0.78rem; color: var(--steel); }

/* 6. 需要と航路 */
.k-spare { background: color-mix(in srgb, var(--green) 30%, var(--surface)); }
.chart .spare-bg { fill: color-mix(in srgb, var(--green) 14%, transparent); }
.chart .avail { fill: var(--bar); opacity: 0.6; }
.chart .need { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart .need-whisker { stroke: var(--ink); stroke-width: 1.2; }
.month-pick { font-size: 0.85rem; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }
.month-pick select { font: inherit; padding: 3px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.net-split { margin-top: 10px; align-items: center; }
.chart .edge { stroke: var(--ink); stroke-linecap: round; opacity: 0.75; }
.chart .edge-tight { stroke: var(--amber-fill); opacity: 1; }
.chart .ap { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart .ap-base { fill: var(--ink); }
.chart .ap-label { font-weight: 700; fill: var(--ink); font-size: 12px; }
.chart .edge-label { font-size: 11px; fill: var(--ink-soft); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.sub-h { font-size: 0.92rem; font-weight: 600; margin-top: 18px; }
.chain { font-size: 0.82rem; white-space: nowrap; }
.chain .arr { color: var(--steel); margin: 0 3px; }
.chain .hub { font-weight: 700; }
#p6-decide .opts li { display: block; white-space: normal; padding: 3px 0; }
#p6-decide .opts li > span:last-child { display: block; font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#p6-decide .opts li.best > span:last-child { color: var(--ink); }

/* 6. 機材割当：737 の使い道 */
.chart .fa-trunk, .key.fa-trunk { fill: var(--w-base); background: var(--w-base); }
.chart .fa-reg, .key.fa-reg { fill: color-mix(in srgb, var(--w-base) 45%, var(--surface)); background: color-mix(in srgb, var(--w-base) 45%, var(--surface)); }
.chart .fa-chk, .key.fa-chk { fill: var(--bar); background: var(--bar); }
.chart .fa-spare { fill: none; stroke: var(--bar); stroke-dasharray: 3 2; }
.key.fa-spare { background: none; border: 1px dashed var(--bar); }
