/* Jet fire and flare radiation — on top of calc.css */
main.jf { --jf-sky: var(--surface-2); --jf-b1: var(--x-f7ecc4, #f7ecc4); --jf-b2: var(--weld); --jf-b3: var(--x-e8907a, #e8907a); --jf-ink: var(--steel-750); --jf-steel: var(--steel-300); --jf-pill: var(--surface); --jf-pill-line: var(--steel-300); --jf-flame: var(--x-f6b26b, #f6b26b); --jf-flame-line: var(--orange); --jf-grid: var(--fill-1); --jf-plot: var(--surface); }
/* radiation bands in dark: a deepening warm ramp (the rule turned the outer band dark and the inner one pastel) */
@media screen and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main.jf { --jf-b1: #3d3424; --jf-b2: #5b4227; --jf-b3: #80443a; } }   /* theme: keep */
@media screen { :root[data-theme="dark"] main.jf { --jf-b1: #3d3424; --jf-b2: #5b4227; --jf-b3: #80443a; } }   /* theme: keep */
main.jf .tabs { grid-template-columns: repeat(3, 1fr); }
main.jf .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.jf .stage-bar .hist { margin-left: auto; }
#view { display: block; width: 100%; height: auto; user-select: none; touch-action: none; }
#view .hit { fill: transparent; stroke: none; }
#view .handle { cursor: grab; }
#view .handle.hv { cursor: ns-resize; }
#view .handle.hh { cursor: ew-resize; }
#view .handle .knob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.8; }
#view .handle:hover .knob, #view .handle:focus .knob { fill: var(--sel); }

/* the drawing */
.jf-sky { fill: var(--jf-sky); stroke: none; }
.jf-img { image-rendering: auto; }
.jf-ct { fill: none; stroke: var(--x-c99a3a, #c99a3a); stroke-width: 1; }
.jf-ct.k1 { stroke: var(--x-b8741c, #b8741c); stroke-width: 1.3; }
.jf-ct.k2 { stroke: var(--x-b0321f, #b0321f); stroke-width: 1.3; }
.jf-ct.k0 { stroke: var(--x-c9b37a, #c9b37a); stroke-dasharray: 3 3; }
.jf-ground { fill: none; stroke: var(--jf-ink); stroke-width: 1.4; }
.jf-hatch { fill: none; stroke: var(--x-a7adb4, #a7adb4); stroke-width: .8; }
.jf-tick { fill: none; stroke: var(--jf-ink); stroke-width: 1; }
.jf-tk { font-size: 10.5px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.jf-ttl { font-size: 11.5px; font-weight: 500; fill: var(--text-3); }
.jf-stack { fill: var(--jf-steel); stroke: var(--jf-ink); stroke-width: 1.1; }
.jf-ring { fill: none; stroke: var(--jf-ink); stroke-width: 1; }
.jf-pipe { fill: var(--jf-steel); stroke: var(--jf-ink); stroke-width: 1.1; }
.jf-sup { fill: none; stroke: var(--jf-ink); stroke-width: 1.4; }
.jf-flame { fill: var(--jf-flame); fill-opacity: .85; stroke: var(--jf-flame-line); stroke-width: 1.2; stroke-linejoin: round; }
.jf-flame.fr { fill-opacity: .75; }
.jf-liq { fill: none; stroke: var(--moment); stroke-width: 2; stroke-linecap: round; }
.jf-sw { stroke: none; } .jf-sw.b2 { fill: var(--jf-b2); } .jf-sw.b3 { fill: var(--jf-b3); }
.jf-ctr { fill: var(--surface); stroke: var(--x-8f2d1a, #8f2d1a); stroke-width: 1.6; }
.jf-person { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; }
.jf-person circle { fill: var(--text-2); }
.jf-equip { fill: var(--jf-steel); stroke: var(--jf-ink); stroke-width: 1.1; }
.jf-wind { fill: none; stroke: var(--text-2); stroke-width: 1.8; }
.jf-windh { fill: var(--text-2); }
.jf-hole { fill: var(--surface); stroke: var(--jf-ink); stroke-width: 1.2; }
.jf-dimh { fill: none; stroke: var(--sel); stroke-width: 1; stroke-dasharray: 3 2; }
.jf-axis { fill: none; stroke: var(--steel-400); stroke-width: 1; stroke-dasharray: 6 4; }
.jf-src { fill: var(--jf-flame-line); }
.jf-scale { fill: none; stroke: var(--jf-ink); stroke-width: 1.2; }
.jf-note { font-size: 10.5px; font-weight: 500; fill: var(--text-3); }
.jf-cl { font-size: 10.5px; font-weight: 600; fill: var(--warn-ink); paint-order: stroke; stroke: var(--jf-sky); stroke-width: 3px; }
.jf-cl.k2 { fill: var(--x-b0321f, #b0321f); }
.jf-cl.k1 { fill: var(--x-8a4f0c, #8a4f0c); }
.jf-name { font-size: 12.5px; font-weight: 600; fill: var(--text); }
.jf-nm { cursor: text; }
.jf-nm:hover .jf-name, .jf-nm:focus .jf-name { fill: var(--sel); }
.jf-nm:focus { outline: none; }

/* pills */
#view .pill rect { fill: var(--jf-pill); stroke: var(--jf-pill-line); }
#view .pill text { font-size: 11.5px; font-weight: 500; fill: var(--text-2); font-variant-numeric: tabular-nums; }
#view .pill.dim rect { stroke: color-mix(in srgb, var(--sel) 40%, transparent); } #view .pill.dim text { fill: var(--x-1d4fbf, #1d4fbf); font-weight: 600; }
#view .pill.wd text { fill: var(--text); font-weight: 600; }
#view .pill.pp text { font-weight: 600; }
#view .pill.pp.good text { fill: var(--good-ink, #1f6b45); } #view .pill.pp.good rect { stroke: color-mix(in srgb, var(--good) 45%, transparent); }
#view .pill.pp.warn text { fill: var(--warn-ink, #8a5a0e); } #view .pill.pp.warn rect { stroke: color-mix(in srgb, var(--amber) 55%, transparent); }
#view .pill.pp.bad text { fill: var(--bad-ink, #b0321f); } #view .pill.pp.bad rect { stroke: color-mix(in srgb, var(--bad) 55%, transparent); }
#view .pill.fl text { fill: var(--text); }
#view .pill.editable { cursor: text; }
#view .pill.editable:hover rect, #view .pill.editable:focus rect { stroke: var(--sel); stroke-width: 1.4; }
#view .pill.editable:focus { outline: none; }

/* editors in the drawing */
.stage { position: relative; }
.jf-edit { position: absolute; transform: translate(-50%, -50%); z-index: 5; display: flex; align-items: center; gap: 4px; background: var(--jf-pill); border: 1.5px solid var(--sel); border-radius: 9px; padding: 2px 8px 2px 4px; box-shadow: 0 6px 18px rgba(20, 22, 28, .14); }
.jf-edit input { width: 82px; border: 0; outline: none; font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; padding: 3px 2px; background: transparent; color: var(--text); }
.jf-edit-name input { width: 180px; text-align: center; }
.jf-edit span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

/* live strip and flags */
.jf-live { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 38px; align-items: center; }
.jf-live b { font-weight: 500; color: var(--text-3); margin-right: 5px; }
.jf-live i { font-style: normal; color: var(--text-3); }
.jf-flags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.jf-flags span { font-size: 11.5px; color: var(--warn-ink, #8a5a0e); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: 999px; padding: 2px 10px; white-space: normal; line-height: 1.35; }
.jf-flags span.jf-err { color: var(--bad-ink, #b0321f); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

/* panel */
.jf-seg { margin-bottom: 6px; }
.jf-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 8px; }
.jf-chips .chip { font: inherit; font-size: 11.5px; border: 1px solid var(--line); background: var(--jf-pill); color: var(--text-2); border-radius: 999px; padding: 3px 9px; cursor: pointer; line-height: 1.2; }
.jf-chips .chip[aria-pressed="true"] { border-color: var(--sel); color: var(--sel); }
#panel input.bad { color: var(--bad); }
#panel .num:has(input.bad) input { border-color: var(--bad); }
#panel.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
#panel.fade-t { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
#panel.fade-t.fade-b { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); }

/* summary */
.jf-say { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; max-width: 40ch; }
.jf-big { font-weight: 600; color: var(--x-8f4a20, #8f4a20); }

/* charts */
.jf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
#gChart, #sChart { touch-action: none; user-select: none; }
#gChart .cdrag, #sChart .cdrag { cursor: ew-resize; }
.ch-bg { fill: var(--jf-plot); }
.ch-g { fill: var(--jf-grid); }
.ch-pill { fill: var(--jf-pill); stroke: var(--sel); }
.halo { paint-order: stroke; stroke: var(--jf-plot); stroke-width: 3px; }
#checks td.note { white-space: normal; min-width: 200px; line-height: 1.4; }

@media (max-width: 1100px) { .jf-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  #checks thead { display: none; }
  #checks, #checks tbody { display: block; width: 100%; }
  #checks tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  #checks td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; }
  #checks td.chk { grid-column: 1; grid-row: 1; }
  #checks td:nth-child(5) { grid-column: 2; grid-row: 1; align-self: center; }
  #checks td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  #checks td:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 12.5px; text-align: right; }
  #checks td:nth-child(2)::before { content: "actual "; color: var(--text-3); }
  #checks td:nth-child(3)::before { content: "allowed "; color: var(--text-3); }
  #checks td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--text-3); min-width: 0; }
}
@media print { .jf-edit { display: none !important; } }

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-1d4fbf: #749ff5; --x-6e7177: #85827f; --x-8a4f0c: #cc9769; --x-8a5a0e: #c89e6a; --x-8f2d1a: #d98370;
    --x-8f4a20: #d19372; --x-8f979f: #61676d; --x-a7adb4: #52565b; --x-b0321f: #ef8470; --x-b8741c: #e3a96b;
    --x-c99a3a: #e5bd75; --x-c9b37a: #cfbd8f; --x-e8907a: #fdb29f; --x-f3c58e: #826137; --x-f6b26b: #f3bb83;
    --x-f7ecc4: #332c11;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-1d4fbf: #749ff5; --x-6e7177: #85827f; --x-8a4f0c: #cc9769; --x-8a5a0e: #c89e6a; --x-8f2d1a: #d98370;
    --x-8f4a20: #d19372; --x-8f979f: #61676d; --x-a7adb4: #52565b; --x-b0321f: #ef8470; --x-b8741c: #e3a96b;
    --x-c99a3a: #e5bd75; --x-c9b37a: #cfbd8f; --x-e8907a: #fdb29f; --x-f3c58e: #826137; --x-f6b26b: #f3bb83;
    --x-f7ecc4: #332c11;
  }
}
/* theme-auto:end */
