/* ==========================================================================
   unclesystems.com
   Design tokens read off codespring.app on 2026-08-25 from live computed
   styles, then applied to an original layout. Nothing here is framework
   output: no build step, no dependencies, no runtime.
   ========================================================================== */

:root {
  /* Surfaces. Five steps of near black. Nothing is ever pure #000. */
  --canvas:        #0A0A0A;
  --page:          #0F0F0F;
  --surface:       #131316;
  --surface-2:     #171717;
  --raised:        #1D1D20;
  --line:          #1C1C1C;
  --border:        #292929;
  --border-2:      #2E2E33;

  /* Ink. Never pure white either. */
  --text:          #FAFAFA;
  --text-2:        #A8A8A8;
  --muted:         #999999;
  --faint:         #666666;

  /* Accent */
  --violet:        #9B63E9;   /* hsl(265 75% 65%) */
  --violet-strong: #8945E8;   /* hsl(265 78% 59%) */
  --violet-deep:   #7F3CDD;
  --violet-top:    #A370EB;
  --violet-light:  #D3B8F9;
  --violet-2:      #A17DE8;   /* hsl(280 70% 70%) */
  --violet-bg:     rgba(155, 99, 233, 0.14);

  /* Status */
  --success:       #39C67D;
  --warning:       #F18246;
  --caution:       #E35F72;

  /* Rhythm */
  --container:     71.25rem;                    /* 1140px */
  --narrow:        48rem;
  --gutter:        clamp(1.25rem, 4vw, 2rem);
  --section:       clamp(4.5rem, 8vw, 7rem);

  /* Radii */
  --r-control:     0.75rem;
  --r-card:        1rem;
  --r-panel:       1.5rem;
  --r-pill:        999px;

  /* Motion */
  --fast:          140ms;
  --standard:      240ms;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);

  /* Elevation. The inset hairline is what makes a surface read as an object. */
  --shadow-control: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 10px rgba(112, 32, 223, 0.30);
  --shadow-primary: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 32px rgba(155, 99, 233, 0.28);
  --shadow-card:    rgba(3, 3, 7, 0.5) 0 12px 34px 0, rgba(255, 255, 255, 0.05) 0 1px 0 0 inset;
  --shadow-panel:   rgba(0, 0, 0, 0.6) 0 18px 50px 0, rgba(255, 255, 255, 0.05) 0 1px 0 0 inset;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Decorative blooms are absolutely positioned and can push the document wider
   than the viewport. Nothing decorative may ever create a horizontal scrollbar. */
html, body { overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--violet); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--violet-light); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------- layout -- */

.wrap { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-top: var(--section); }
.stack { display: flex; flex-direction: column; }

/* ----------------------------------------------------------- typography -- */

/* Negative tracking on large type only. This single property is most of the
   difference between "designed" and "typed into a box". */
.h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.1rem + 4.6vw, 3.625rem);   /* 36px to 58px */
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 2.75rem);   /* 28px to 44px */
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: clamp(1rem, 0.93rem + 0.35vw, 1.125rem); line-height: 1.55; color: var(--muted); }
.body { margin: 0; font-size: 0.9375rem; line-height: 1.62; color: var(--muted); }
.accent { color: var(--violet); }
.strong { color: var(--text); font-weight: 700; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

/* -------------------------------------------------------------- controls -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--r-control);
  background: linear-gradient(180deg, var(--violet-top), var(--violet-deep));
  box-shadow: var(--shadow-primary);
  color: var(--text);
  font: inherit;
  font-size: 0.90625rem;
  font-weight: 660;
  cursor: pointer;
  transition: transform 180ms var(--ease), filter var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 34px; padding: 0 0.9375rem; font-size: 0.84375rem; border-radius: 11px; box-shadow: var(--shadow-control); }
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
  font-weight: 600;
}
.btn--ghost:hover { background: var(--raised); filter: none; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  background: var(--violet-bg);
  font-family: var(--mono);
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet-light);
}
.tag--live { background: rgba(57, 198, 125, 0.14); color: var(--success); }
.tag--neutral { background: var(--raised); color: var(--text-2); }

.chip {
  display: inline-flex;
  padding: 0.4375rem 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ------------------------------------------------------------ structure -- */

.card {
  padding: 1.625rem;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 2.125rem);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, #131316, #0F0F11);
  box-shadow: var(--shadow-panel);
}

/* Atmosphere: a soft violet bloom and a dotted grid. Depth beats a flat fill. */
.bloom {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(155, 99, 233, 0.20), rgba(155, 99, 233, 0));
}
.dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(56, 56, 56, 0.32) 1px, rgba(0, 0, 0, 0) 1px);
  background-size: 28px 28px;
}

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ nav -- */

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  min-height: 36px;
  padding: 0.375rem var(--gutter);
  background: #2A1550;
  border-bottom: 1px solid #3A1F66;
  font-size: 0.8125rem;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.625rem;
  padding: 0.5625rem 0.5625rem 0.5625rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(23, 23, 23, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: rgba(3, 3, 7, 0.5) 0 10px 34px 0, rgba(255, 255, 255, 0.05) 0 1px 0 0 inset;
}
.nav__brand { display: flex; align-items: center; gap: 0.5625rem; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.nav__mark {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(180deg, var(--violet-top), var(--violet-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.nav__links { display: flex; align-items: center; gap: 1.625rem; }
.nav__links a { font-size: 0.84375rem; font-weight: 500; color: var(--text-2); }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }

/* --------------------------------------------------------------- footer -- */

.footer { margin-top: var(--section); padding: 1.625rem 0 3.25rem; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.625rem; border-top: 1px solid var(--line);
}
.footer a, .footer span { font-size: 0.78125rem; color: var(--faint); }
.footer a:hover { color: var(--text-2); }
.footer__brand { font-size: 0.90625rem !important; font-weight: 700; letter-spacing: -0.02em; color: var(--text-2) !important; }

/* ----------------------------------------------------------- legal pages -- */

.legal { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 3.75rem; align-items: start; margin-top: 3.75rem; }
.legal__toc { position: sticky; top: 1.5rem; padding: 1.375rem; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
.legal__toc ol { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6875rem; counter-reset: toc; }
.legal__toc a { font-size: 0.8125rem; line-height: 1.5; font-weight: 500; color: var(--muted); }
.legal__toc a:hover { color: var(--violet-light); }
.legal__body { display: flex; flex-direction: column; gap: 2.5rem; max-width: 45rem; }
.legal__sec { display: flex; flex-direction: column; gap: 0.875rem; scroll-margin-top: 1.5rem; }
.legal__num { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--violet); }
.legal__h { margin: 0; font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.legal p, .legal li { font-size: 0.96875rem; line-height: 1.68; color: var(--text-2); }
.legal ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4375rem; }
.legal__facts { padding: 0.375rem 1.25rem 0.875rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.legal__row { display: flex; justify-content: space-between; gap: 1.25rem; padding: 0.5625rem 0; border-bottom: 1px solid #232326; }
.legal__row:last-child { border-bottom: 0; }
.legal__row dt { font-size: 0.84375rem; color: var(--muted); }
.legal__row dd { margin: 0; font-size: 0.84375rem; font-weight: 600; color: var(--text); text-align: right; max-width: 24rem; }
.ph { color: var(--violet-light); font-weight: 600; }
.stamp {
  display: inline-flex; align-items: center;
  padding: 0.3125rem 0.6875rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-2);
}

/* ---------------------------------------------------------- breakpoints -- */

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { grid-template-columns: 1fr; gap: 2rem; }
  .legal__toc { position: static; }
}

@media (max-width: 720px) {
  .nav__links a { display: none; }
  .nav__toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px; color: var(--text-2); background: none; border: 0; cursor: pointer; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Window chrome, cards and the modal
   "Traffic lights" are the macOS window controls: red close, amber minimise,
   green zoom. Standard UI vocabulary, used here to say "this is a real
   application window" rather than a screenshot.
   ========================================================================== */

.lights { display: flex; gap: 6px; flex-shrink: 0; }
.light { width: 11px; height: 11px; border-radius: 50%; display: block; }
.light--red   { background: #FF5F57; }
.light--amber { background: #FEBC2E; }
.light--green { background: #28C840; }

/* ------------------------------------------------------------ window card -- */

.wincard {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--standard) var(--ease), border-color var(--standard) var(--ease),
              box-shadow var(--standard) var(--ease);
}
.wincard:hover {
  transform: translateY(-3px);
  border-color: #3E3352;
  box-shadow: rgba(0, 0, 0, 0.55) 0 20px 44px 0, rgba(155, 99, 233, 0.16) 0 0 0 1px,
              rgba(255, 255, 255, 0.06) 0 1px 0 0 inset;
}
.wincard:hover .wincard__open { opacity: 1; transform: translateX(0); }

.wincard__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: #17171A;
}
.wincard__path {
  font-family: var(--mono);
  font-size: 0.65625rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wincard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0E0E11;
}
.wincard__media > video,
.wincard__media > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wincard__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 55%, rgba(10,10,10,0.55));
  pointer-events: none;
}

.wincard__foot { padding: 18px 20px 20px; }
.wincard__open {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: 0.8125rem; font-weight: 660; color: var(--violet);
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--standard) var(--ease), transform var(--standard) var(--ease);
}

/* ----------------------------------------------------------------- modal -- */

.winmodal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 180ms var(--ease);
}
.winmodal.is-open { opacity: 1; }

.winmodal__panel {
  width: min(64rem, 100%);
  max-height: min(88vh, 56rem);
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid #3A3A40;
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, #141418, #0E0E11);
  box-shadow: rgba(0, 0, 0, 0.7) 0 32px 90px 0, rgba(255, 255, 255, 0.06) 0 1px 0 0 inset;
  transform: translateY(10px) scale(0.985);
  transition: transform 200ms var(--ease);
}
.winmodal.is-open .winmodal__panel { transform: none; }

.winmodal__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #26262B;
  background: #17171A;
  flex-shrink: 0;
}
.winmodal__title {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.71875rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.winmodal__close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin: -6px -4px -6px 0;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.winmodal__close:hover { background: #232328; color: var(--text); }

.winmodal__body { overflow: auto; padding: 0; background: #0E0E11; }
.winmodal__body > * { display: block; }
.winmodal__caption {
  padding: 16px 22px 20px;
  border-top: 1px solid #26262B;
  background: #131316;
  font-size: 0.875rem; line-height: 1.6; color: var(--text-2);
  flex-shrink: 0;
}

/* ------------------------------------------------- looping system mockups -- */
/* Placeholder visuals that loop, so the section works before any screen
   recording exists. Swap the whole .mock div for a <video autoplay muted loop
   playsinline> when the real footage is ready. */

.mock { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mock__row { display: flex; align-items: center; gap: 8px; }
.mock__node {
  flex: 1; height: 30px; border-radius: 7px;
  border: 1px solid #2C2C33; background: #17171C;
  display: flex; align-items: center; padding: 0 9px;
  font-family: var(--mono); font-size: 0.5625rem; color: #6C6C78;
}
.mock__node span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__wire { width: 14px; height: 1px; background: #2C2C33; flex-shrink: 0; }

.mock__node--fire { animation: fire 4.8s var(--ease) infinite; }
.mock__node--fire:nth-of-type(1) { animation-delay: 0s; }
.mock__node--fire:nth-of-type(3) { animation-delay: 0.5s; }
.mock__node--fire:nth-of-type(5) { animation-delay: 1s; }
.mock__node--fire:nth-of-type(7) { animation-delay: 1.5s; }

@keyframes fire {
  0%, 8%   { border-color: #2C2C33; background: #17171C; color: #6C6C78; box-shadow: none; }
  12%, 26% { border-color: #6B48B0; background: #1E1730; color: #D3B8F9; box-shadow: 0 0 0 1px rgba(155,99,233,0.18), 0 6px 18px rgba(112,32,223,0.20); }
  38%, 100%{ border-color: #2C4A3A; background: #14201A; color: #6FCFA0; box-shadow: none; }
}

.mock__bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; }
.mock__bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--violet); transform-origin: bottom; animation: grow 3.6s var(--ease) infinite; }
@keyframes grow { 0%, 100% { transform: scaleY(0.35); opacity: 0.55; } 50% { transform: scaleY(1); opacity: 1; } }

.mock__line { height: 9px; border-radius: 3px; background: #22222A; }
.mock__line--fill { background: linear-gradient(90deg, var(--violet) 0 50%, #22222A 50% 100%); background-size: 200% 100%; animation: fill 3.4s var(--ease) infinite; }
@keyframes fill { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }

.mock__caret { display: inline-block; width: 6px; height: 11px; background: var(--violet); margin-left: 2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Inside the modal the mock is bigger and gets room to breathe. */
.winmodal__body .mock { position: relative; inset: auto; min-height: 26rem; padding: 32px; gap: 14px; }
.winmodal__body .mock__node { height: 40px; font-size: 0.6875rem; padding: 0 13px; }

@media (max-width: 720px) {
  .winmodal__panel { max-height: 92vh; }
  .winmodal__body .mock { min-height: 18rem; padding: 18px; }
  .wincard__media { aspect-ratio: 16 / 11; }
}

/* Modal-only furniture: a status strip and an output panel, so opening a card
   shows more than the card did rather than the same thing enlarged. */
.mock__strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 12px; border-bottom: 1px solid #222227;
}
.mock__stat { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--faint); }
.mock__stat--accent { color: var(--violet); }

.mock__out {
  margin-top: auto;
  border: 1px solid #26262C; border-radius: 12px; background: #131317; overflow: hidden;
}
.mock__out-h {
  padding: 9px 14px; border-bottom: 1px solid #222227; background: #171719;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; color: var(--faint);
}
.mock__out-b { padding: 14px; font-size: 0.84375rem; line-height: 1.62; color: var(--text-2); }
.mock__out-b strong { color: var(--text); font-weight: 700; }
.mock__out-b code {
  font-family: var(--mono); font-size: 0.78125rem; color: var(--violet-light);
  background: rgba(155, 99, 233, 0.10); padding: 1px 5px; border-radius: 4px;
}

/* ---------------------------------------------------- pan / zoom viewport -- */

.pz { position: relative; overflow: hidden; cursor: grab; touch-action: none; background: #0B0B0E; }
.pz.is-grabbing { cursor: grabbing; }
.pz__inner { transform-origin: 0 0; will-change: transform; }

.pz__ui {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  padding: 5px; border: 1px solid var(--border); border-radius: 11px;
  background: rgba(19, 19, 22, 0.92); backdrop-filter: blur(8px);
  box-shadow: rgba(0, 0, 0, 0.45) 0 8px 22px 0, rgba(255, 255, 255, 0.05) 0 1px 0 0 inset;
}
.pz__ui button {
  min-width: 30px; height: 30px; padding: 0 9px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2); font: inherit; font-size: 0.8125rem; font-weight: 660;
  cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.pz__ui button:hover { background: #232328; color: var(--text); }
.pz__label {
  min-width: 46px; text-align: center;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--faint);
}

.pz__hint {
  position: absolute; left: 14px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em;
  color: #55555E; pointer-events: none;
}

/* A zoomable modal body must not scroll: the viewport handles movement. */
.winmodal__body.is-zoom { overflow: hidden; height: min(62vh, 34rem); }
.winmodal__body.is-zoom .mock { position: relative; inset: auto; min-height: 0; }

@media (max-width: 720px) {
  .pz__hint { display: none; }
  .winmodal__body.is-zoom { height: 52vh; }
}

/* --------------------------------------------------------- the system map -- */
/* A wide canvas meant to be zoomed. Text is deliberately small: reading it is
   what the zoom is for. Swap the whole .mapcanvas for a high resolution PNG of
   a real n8n canvas and the viewport behaves identically. */

.mapcanvas { position: relative; background: #0B0B0E; }
.mapcanvas__wires { position: absolute; inset: 0; }
.mapcanvas__wires path { fill: none; stroke: #2E2E36; stroke-width: 1.5; }
.mapcanvas__legend {
  position: absolute; left: 40px; bottom: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #4E4E58;
}

.mn {
  position: absolute; box-sizing: border-box;
  padding: 9px 11px; border: 1px solid #2C2C34; border-radius: 9px;
  background: #16161A; overflow: hidden;
}
.mn__h { display: flex; align-items: center; gap: 6px; }
.mn__dot { width: 6px; height: 6px; border-radius: 50%; background: #4E4E58; flex-shrink: 0; }
.mn__k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: #6C6C78; }
.mn__t { margin-top: 6px; font-size: 13px; font-weight: 700; color: #E8E8EC; letter-spacing: -0.2px; }
.mn__m { margin-top: 4px; font-family: var(--mono); font-size: 9.5px; line-height: 1.5; color: #7A7A86; }

.mn--done { border-color: #2C4A3A; background: #121A16; }
.mn--done .mn__dot { background: #39C67D; }
.mn--run  { border-color: #5B3A9E; background: #1A1428; box-shadow: 0 0 0 1px rgba(155,99,233,0.14), 0 10px 28px rgba(112,32,223,0.22); }
.mn--run .mn__dot { background: #9B63E9; animation: blink 1.2s steps(2) infinite; }
.mn--wait .mn__dot { background: #FEBC2E; }
.mn--idle { opacity: 0.5; border-style: dashed; }
