@font-face {
  font-family: "Barlow Condensed";
  src: url("../../barlow-condensed-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.af-fc {
  --fc-bg: #101216;
  --fc-panel: #181b22;
  --fc-panel-deep: #14171c;
  --fc-border: #343a45;
  --fc-text: #f3f1ef;
  --fc-muted: #b7bfcc;
  --fc-accent: #ff9a72;
  --fc-orange: #ff8960;
  --fc-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fc-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  width: min(91rem, calc(100% - clamp(1.5rem, 5vw, 5rem)));
  margin: 0 auto;
  padding: .5rem 0 2.5rem;
  color: var(--fc-text);
  color-scheme: dark;
}

.af-fc [hidden] { display: none !important; }
.af-fc :focus-visible { outline: 2px solid var(--fc-accent); outline-offset: 3px; }
.af-fc-crumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .65rem; color: var(--fc-muted); font-size: .875rem; }
.af-fc-crumbs a { color: var(--fc-accent); text-underline-offset: .22em; }
.af-fc-crumbs [aria-current] { color: var(--fc-text); }

.af-fc-heading { display: flex; align-items: end; justify-content: space-between; gap: .65rem 1rem; margin-bottom: 1.05rem; }
body.af-fireground-page .af-fc-heading h1 {
  margin: 0 0 .25rem;
  font: 700 clamp(2.15rem, 4vw, 3.65rem)/.98 var(--fc-heading);
  text-transform: uppercase;
  letter-spacing: -.012em;
}

.af-fc-heading p { margin: 0; color: var(--fc-muted); font-size: .97rem; }
.af-fc-heading p span { padding-inline: .2rem; }
.af-fc-prototype {
  flex: none;
  padding: .3rem .55rem;
  border: 1px solid #735343;
  border-radius: .3rem;
  background: #2f251f;
  color: #ffc4a9;
  font-size: .813rem;
  font-weight: 700;
}

.af-fc-workspace { display: grid; grid-template-columns: minmax(0, 1fr) clamp(17rem, 23vw, 20rem); align-items: start; gap: .9rem; }
.af-fc-panel { min-width: 0; border: 1px solid var(--fc-border); border-radius: .62rem; background: var(--fc-panel); }
.af-fc-stage { overflow: hidden; }

.af-fc-stage-bar, .af-fc-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.15rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--fc-border);
  gap: .5rem;
}

.af-fc-stage-bar > span, .af-fc-panel-title h2 {
  margin: 0;
  font: 700 1.24rem/1.1 var(--fc-heading);
  text-transform: uppercase;
  letter-spacing: .035em;
}
.af-fc-stage-bar i, .af-fc-panel-title i, .af-fc-note i { margin-right: .25rem; color: var(--fc-accent); font-size: .85rem; }
.af-fc-clock { display: flex; align-items: center; gap: .55rem; color: var(--fc-muted); font-size: .81rem; }
.af-fc-clock time {
  min-width: 3.5rem;
  padding: .17rem .3rem;
  border-radius: .2rem;
  background: #0e1014;
  color: #ffd2be;
  font: 650 1.04rem/1.25 var(--fc-mono);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.af-fc-viewport {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #17191c radial-gradient(ellipse at 50% 40%, #272a2e 0%, #131619 92%);
}

.af-fc-poster, .af-fc-scene, .af-fc-outlines, .af-fc-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.af-fc-poster { display: block; object-fit: cover; object-position: 50% 52%; }
.af-fc-scene { display: block; touch-action: none; cursor: grab; }
.af-fc-scene:focus-visible { outline-offset: -4px; }
.af-fc-scene[data-hover] { cursor: pointer; }
.af-fc-scene[data-dragging] { cursor: grabbing; }
.af-fc-outlines, .af-fc-markers { pointer-events: none; }
.af-fc-marker {
  --fc-tone: #ffc2a3;
  position: absolute;
  top: 0;
  left: 0;
  translate: -50% -50%;
  min-width: 2.65rem;
  min-height: 1.9rem;
  padding: .22rem .45rem;
  border: 1px solid var(--fc-tone);
  border-radius: .26rem;
  background: #11151aef;
  box-shadow: 0 2px 6px #000b;
  color: var(--fc-tone);
  font: 700 .77rem/1.15 var(--fc-mono);
  pointer-events: auto;
  touch-action: manipulation;
}
.af-fc-marker[data-active], .af-fc-marker:hover { background: var(--fc-tone); color: #13171d; }
.af-fc-camera {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  display: grid;
  gap: .22rem;
  padding: .24rem;
  border: 1px solid #797b84;
  border-radius: .48rem;
  background: #12161af2;
}
.af-fc-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: .26rem;
  background: #252a32;
  color: var(--fc-text);
}
.af-fc-icon:hover { background: #3c4656; }
.af-fc-map-help, .af-fc-stage-status {
  position: absolute;
  bottom: .65rem;
  left: .65rem;
  max-width: calc(100% - 5rem);
  margin: 0;
  padding: .3rem .55rem;
  border: 1px solid #626671;
  border-radius: .3rem;
  background: #11151ae8;
  color: #f4f2ee;
  font-size: .82rem;
}
.af-fc-touch-hint { display: none; }
@media (pointer: coarse) {
  .af-fc-mouse-hint { display: none; }
  .af-fc-touch-hint { display: inline; }
}

.af-fc-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .95rem;
  justify-content: space-between;
  padding: .65rem .85rem;
  border-top: 1px solid var(--fc-border);
}
.af-fc-transport, .af-fc-speed { display: flex; align-items: center; gap: .45rem; }
.af-fc-transport button {
  min-height: 2.6rem;
  padding: .35rem .7rem;
  border: 1px solid var(--fc-border);
  border-radius: .38rem;
  font-size: .88rem;
  font-weight: 700;
}
.af-fc-play { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 5.65rem; background: var(--fc-orange); color: #23130d; }
.af-fc-play:hover { background: #ffad8b; }
.af-fc-restart { background: #232831; color: var(--fc-text); }
.af-fc-restart:hover { background: #333d4b; }
.af-fc-speed { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; }
.af-fc-speed legend { float: left; width: auto; margin: 0; color: var(--fc-muted); font-size: .85rem; }
.af-fc-speeds { display: flex; gap: .2rem; padding: .18rem; border: 1px solid var(--fc-border); border-radius: .38rem; background: #101318; }
.af-fc-speeds button {
  min-width: 2.35rem;
  min-height: 2.15rem;
  padding: .2rem .28rem;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: var(--fc-muted);
  font: 700 .85rem/1.1 var(--fc-mono);
}
.af-fc-speeds button:hover { color: var(--fc-text); }
.af-fc-speeds button[aria-pressed="true"] { background: #3a2a27; color: #ffbc9b; }
.af-fc button:disabled { opacity: .55; cursor: not-allowed; }
.af-fc-run-state { display: inline-flex; align-items: center; gap: .35rem; color: var(--fc-muted); font-size: .82rem; }
.af-fc-run-state::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: #93a0b2; }
.af-fc-run-state[data-playing]::before { background: #a4d5ac; box-shadow: 0 0 .5rem #79bc8c5c; }

.af-fc-sidebar { display: grid; gap: .85rem; }
.af-fc-panel-title > span { color: var(--fc-muted); font-size: .82rem; }
.af-fc-resource-list { display: grid; gap: .35rem; padding: .65rem .65rem .55rem; }
.af-fc-resource {
  --fc-tone: #ffc2a3;
  display: grid;
  grid-template-columns: minmax(3.2rem, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 2.65rem;
  padding: .35rem .5rem;
  border: 1px solid #353d49;
  border-radius: .36rem;
  background: #1d222b;
  color: var(--fc-text);
  font-size: .91rem;
  text-align: left;
}
.af-fc-resource:hover, .af-fc-resource[aria-pressed="true"] { border-color: var(--fc-tone); background: #2a2b31; }
.af-fc [data-tone="engine"] { --fc-tone: #ff978a; }
.af-fc [data-tone="ladder"] { --fc-tone: #9dcaff; }
.af-fc [data-tone="crew"] { --fc-tone: #b8dbaa; }
.af-fc-code {
  display: inline-block;
  padding: .25rem .25rem;
  border-radius: .2rem;
  background: #10141a;
  color: var(--fc-tone);
  font: 700 .75rem/1.15 var(--fc-mono);
  text-align: center;
}
.af-fc-resource i { color: var(--fc-tone); font-size: .77rem; }
.af-fc-inspector { margin: 0 .65rem .65rem; padding: .6rem .65rem; border: 1px solid #333a45; border-radius: .32rem; background: var(--fc-panel-deep); }
.af-fc-inspector span { color: #f3e8e1; font-size: .88rem; font-weight: 700; }
.af-fc-inspector p { min-height: 2.55em; margin: .2rem 0 0; color: var(--fc-muted); font-size: .84rem; line-height: 1.44; }
.af-fc-event-list { display: grid; gap: 0; margin: 0; padding: .15rem .75rem .4rem; list-style: none; }
.af-fc-event-list li { display: grid; grid-template-columns: 2.9rem 1fr; gap: .4rem; padding: .58rem 0; margin: 0; }
.af-fc-event-list li + li { border-top: 1px solid #343943; }
.af-fc-event-list time { padding-top: .13rem; color: #ffbc9e; font: 650 .77rem/1.4 var(--fc-mono); }
.af-fc-event-list strong { display: block; font-size: .865rem; line-height: 1.35; }
.af-fc-event-list small { display: block; margin-top: .15rem; color: var(--fc-muted); font-size: .8rem; }
.af-fc-note { margin: .85rem 0 0; color: var(--fc-muted); font-size: .875rem; }

@media (max-width: 950px) {
  .af-fc-workspace { grid-template-columns: 1fr; }
  .af-fc-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 600px) {
  .af-fc-heading { align-items: start; flex-direction: column; }
  .af-fc-viewport { aspect-ratio: 1.06; }
  .af-fc-sidebar { grid-template-columns: 1fr; }
  .af-fc-controls { padding: .55rem; }
  .af-fc-speed { flex: none; }
  .af-fc-marker { min-height: 2.35rem; }
  .af-fc-camera { top: .55rem; right: .55rem; bottom: auto; grid-auto-flow: column; }
}

@media (max-width: 390px) {
  .af-fc-controls { gap: .45rem; }
  .af-fc-speed legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .af-fc-transport button { padding-inline: .52rem; }
}
