/* nutshell/ - Any.Company overview. Tokens per theme first; the diagram's layout never changes with the theme or the screen:
   .nt-stage is always 1000px wide and nutshell.js scales it to fit. */

/* ---------- themes ---------- */
:root {
  --base: 17px; --stage-fs: 14.5px;
  --bg: #f4f6fb; --bg-2: #e9eef7; --card: #fff; --ink: #14213d; --muted: #4d5a75; --line: #d3dbe8;
  --accent: #0b2e6f; --accent-2: #0067df; --on-accent: #fff;
  --social: #0189bc; --biz: #0067df; --svc: #05875a; --agent: #6a5cff; --gate: #6f7883;
  --ly-social: #eef6fb; --ly-biz: #e6effc; --band: #e3f4ec; --band-ink: #0d3b2b;
  --syn-bg: #0d1b3e; --syn-ink: #e9edf7; --syn-muted: #b4bfd6; --syn-card: #18284f; --syn-line: #33456f;
  --r-lg: 12px; --r: 8px; --r-ic: 7px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-h: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-lab: var(--font);
  --line-w: 1.6; --dash: none;
  --live: #0a6b45; --live-bg: #dcf3e8; --part: #7a4b00; --part-bg: #fdeecb; --bld: #23457f; --bld-bg: #e0e9f8; --pln: #55506e; --pln-bg: #ecebf3;
  --ic-bg: color-mix(in srgb, var(--accent-2) 11%, var(--card)); --ic-fg: var(--accent);
}
html[data-theme="social"] {
  --bg: #fff8ef; --bg-2: #ffeedd; --card: #fff; --ink: #2c2140; --muted: #5f5474; --line: #efdcc9;
  --accent: #c8452a; --accent-2: #5b4bd6; --on-accent: #fff;
  --social: #e2674a; --biz: #5b4bd6; --svc: #16936b; --agent: #b0459e; --gate: #6f7883;
  --ly-social: #ffeee3; --ly-biz: #eeebff; --band: #e1f6ec; --band-ink: #0f4733;
  --syn-bg: #33205c; --syn-ink: #f6f0ff; --syn-muted: #cfc1ea; --syn-card: #472e78; --syn-line: #6a4f9c;
  --r-lg: 26px; --r: 18px; --r-ic: 50%;
  --font: ui-rounded, "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-h: var(--font); --line-w: 2.4; --dash: 1 7;
  --ic-bg: linear-gradient(135deg, #ffe1b8, #ffc9d6); --ic-fg: var(--ink);
}
html[data-theme="futuristic"] {
  --bg: #05070f; --bg-2: #0a0f1f; --card: #0d1426; --ink: #e6f6ff; --muted: #9db4c9; --line: #1f3852;
  --accent: #38e8ff; --accent-2: #ff4fd8; --on-accent: #03121a;
  --social: #38e8ff; --biz: #5a9dff; --svc: #52f5a9; --agent: #ff4fd8; --gate: #76838f;
  --ly-social: #0a1730; --ly-biz: #0c1b3b; --band: #06221d; --band-ink: #b9ffe0;
  --syn-bg: #14061f; --syn-ink: #f8e9ff; --syn-muted: #c8a9dd; --syn-card: #220b33; --syn-line: #5a2678;
  --r-lg: 3px; --r: 2px; --r-ic: 0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-h: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --font-lab: var(--font-h); --line-w: 1.2; --dash: 6 5;
  --live: #52f5a9; --live-bg: #0a2f24; --part: #ffd166; --part-bg: #33280a; --bld: #7fb6ff; --bld-bg: #0f2547; --pln: #d7b8f0; --pln-bg: #2a1740;
  --ic-bg: color-mix(in srgb, var(--accent) 14%, transparent); --ic-fg: var(--accent);
}
html.pr-large { --base: 20px; --stage-fs: 17px; }

/* ---------- page ---------- */
* { box-sizing: border-box; }
html { font-size: var(--base); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
html[data-theme="futuristic"] body { background-image: linear-gradient(rgba(56,232,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(56,232,255,.045) 1px, transparent 1px); background-size: 34px 34px; }
a { color: var(--accent-2); }
html[data-theme="social"] a { color: #4436b8; }
html[data-theme="futuristic"] a { color: var(--accent); }
.nt-skip { position: absolute; left: -999px; top: 0; }
.nt-skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; }
.nt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nt-sprite { position: absolute; width: 0; height: 0; }
.nt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 520px) { .nt-wrap { padding: 0 16px; } }
.nt-hero { padding: 16px 0 8px; }
@media (max-width: 620px) { .nt-hero h1, .nt-lead { display: none; } }
.nt-hero-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nt-hero-tools .nt-eyebrow { margin: 0; }
.nt-textsize, .nt-back { min-height: 40px; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; }
.nt-textsize { padding: 4px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.nt-textsize span { font-size: 1.3em; margin-left: 1px; }
.nt-textsize[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nt-back { display: grid; place-items: center; min-width: 40px; padding: 4px 8px; }
.nt-back svg { width: 20px; height: 20px; }
.nt-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.nt-seg button { min-height: 40px; padding: 4px 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; }
.nt-seg button + button { border-left: 1px solid var(--line); }
.nt-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 620px) { .nt-seg { display: none; } }
:is(button, a, select):focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.nt-eyebrow { margin: 0 0 .3em; color: var(--muted); font-family: var(--font-lab); font-size: .85em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
h1, h2 { font-family: var(--font-h); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .35em; }
h1 { font-size: clamp(1.9em, 5vw, 2.9em); }
h2 { font-size: clamp(1.5em, 3.6vw, 2.1em); }
.nt-lead { max-width: 46em; margin: 0; font-size: 1.12em; color: var(--muted); }

/* the signed-out bar takes its colour from the page's dark-on-light default */
.ac-mini-bar { color: var(--ink); }

/* ---------- controls around the diagram ---------- */
.nt-diagram { padding: 6px 0 34px; }
.nt-ctl { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.nt-ctl-l { flex: none; min-width: 3.4em; font-weight: 700; font-size: .92em; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-chip { min-height: 36px; padding: 3px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .88em; cursor: pointer; }
.nt-chip:hover { border-color: var(--accent); }
.nt-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.nt-you { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--accent-2); border-radius: 0 var(--r) var(--r) 0; background: var(--card); max-width: 60em; }
.nt-bar-first { margin-top: 12px; }
.nt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 14px; }
.nt-bar-r { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: .8em; color: var(--muted); }
.nt-legend .st { margin-right: 3px; font-size: 1em; }
.nt-tool { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; }
.nt-tool svg { width: 18px; height: 18px; }
.nt-tool-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nt-hint { margin: 12px 0 8px; color: var(--muted); font-size: .86em; }
@media (hover: hover) { .nt-hint-touch { display: none; } }
@media (hover: none) { .nt-hint-mouse { display: none; } }
.nt-cap { position: sticky; top: 6px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: var(--r); }
.nt-cap[hidden] { display: none; }
.nt-cap-b { display: flex; flex: none; gap: 5px; }
.nt-cap-b button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
#nt-cap-n { opacity: .85; font-size: .85em; }

/* ---------- the stage ---------- */
.nt-fit { position: relative; overflow: hidden; }
.nt-stage { position: relative; width: 1000px; transform-origin: 0 0; font-size: var(--stage-fs); line-height: 1.32; padding: 2px; }
.nt-flows { position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
.realm { position: relative; padding: 11px 22px 16px; border-radius: var(--r-lg); }
.realm-hum { background: var(--bg-2); border: 1px solid var(--line); }
.realm-h { position: relative; z-index: 2; display: flex; width: fit-content; align-items: center; gap: 7px; margin: 0 0 9px; padding-right: 8px; background: var(--bg-2); border-radius: var(--r); font-family: var(--font-lab); font-size: 1.04em; }
.realm-h b { font-family: var(--font-h); font-size: 1.14em; }
.realm-h span { color: var(--muted); font-size: .9em; }
.realm-brand { position: absolute; z-index: 3; top: 7px; right: 22px; text-decoration: none; font-family: var(--font-h); font-weight: 700; font-size: 31px; line-height: 1; letter-spacing: -.01em; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ly { position: relative; padding: 10px 12px 12px; border-radius: var(--r-lg); transition: opacity .25s; }
.ly-social { --ly-bg: var(--ly-social); background: var(--ly-bg); border: 2px solid var(--social); padding: 8px 10px 10px; }
.ly-biz { --ly-bg: var(--ly-biz); background: var(--ly-bg); border: 2px solid var(--biz); }
.ly-h { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.ly-logo { display: block; flex: none; line-height: 0; }
.ly-logo img { display: block; height: 48px; width: 48px; border-radius: 50%; animation: nt-logo-spin 2s ease-in-out infinite; }
/* Each logo turns once every 2 seconds, in 0.5s: Social first, then Business, then both rest for 1s. */
@keyframes nt-logo-spin { 0% { transform: rotate(0); } 25%, 100% { transform: rotate(360deg); } }
html[data-theme="futuristic"] .ly-logo img { filter: drop-shadow(0 0 7px var(--accent)); }
/* A round badge like the Social logo. The hollow stays pale in every theme, because the mark's blue and green need a light ground. */
.ly-biz .ly-logo { box-sizing: border-box; width: 48px; height: 48px; background: #dcebff; border: 2px solid var(--biz); border-radius: 50%; }
.ly-biz .ly-logo img { width: 100%; height: 100%; animation-delay: .5s; }
html[data-theme="futuristic"] .ly-biz .ly-logo { box-shadow: 0 0 7px var(--accent); }
html[data-theme="futuristic"] .ly-biz .ly-logo img { filter: none; }
/* The background hugs each line of text, so connectors stay visible right next to a short title. */
.ly-tx { flex: 0 1 auto; min-width: 0; }
.ly-tx h3, .ly-tx p { width: fit-content; padding: 0 8px 1px 0; background: var(--ly-bg); border-radius: var(--r); }
.ly-tx h3 { margin: 0; font-family: var(--font-h); font-size: 1.32em; line-height: 1.15; }
.ly-tx p { margin: 0; color: var(--muted); }
.ly-go { flex: none; margin-left: auto; padding: 0 6px; font-weight: 700; font-size: 1.3em; line-height: 1.2; text-decoration: none; background: var(--ly-bg); border-radius: var(--r); }
.g { display: grid; gap: 10px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.segs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { position: relative; padding: 7px 9px 10px; border-radius: var(--r); --seg-bg: color-mix(in srgb, var(--card) 45%, var(--ly-biz)); background: var(--seg-bg); }
.seg-h { position: relative; z-index: 2; width: fit-content; margin: 0 0 7px; padding-right: 8px; background: var(--seg-bg); border-radius: var(--r); color: var(--muted); font-size: .9em; }
.seg-h b { display: block; color: var(--ink); font-family: var(--font-h); font-size: 1.15em; }
.nd-wide { grid-column: 1 / -1; }

/* the visitor line */
.gate { position: relative; z-index: 2; height: 42px; display: flex; align-items: center; }
.gate::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--gate); opacity: .6; }
.gate-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; margin-left: 42px; padding: 3px 11px; border-radius: 999px; background: var(--card); color: var(--gate); border: 1px solid var(--gate); font-weight: 400; font-size: .9em; }

/* ---------- nodes ---------- */
.nd { position: relative; z-index: 2; display: flex; min-width: 0; transition: opacity .25s, transform .2s; }
.nd-hit { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 9px; align-content: start; width: 100%; padding: 9px 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 3px rgba(14,30,70,.09); }
.nd-hit:hover, .nd.is-hot .nd-hit { border-color: var(--accent-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 40%, transparent), 0 5px 16px rgba(14,30,70,.17); }
.nd.is-linked .nd-hit { border-color: var(--accent-2); }
.nd-ic { grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 2.35em; height: 2.35em; background: var(--ic-bg); color: var(--ic-fg); border-radius: var(--r-ic); }
.nd-ic svg { width: 1.45em; height: 1.45em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nd-t { font-family: var(--font-h); font-weight: 700; font-size: 1.04em; line-height: 1.2; }
.nd-s { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: .9em; }
.nd-hit > .st { grid-column: 2; justify-self: start; margin-top: 5px; }
.nd-star .nd-hit { border: 2px solid var(--biz); }
.nd[data-status="planned"] .nd-hit, .nd[data-status="building"] .nd-hit { border-style: dashed; }

/* icons per theme */
html[data-theme="social"] .nd-ic svg { display: none; }
html[data-theme="social"] .nd-ic::before { content: attr(data-emoji); font-size: 1.28em; line-height: 1; }
html[data-theme="futuristic"] .nd-ic { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
html[data-theme="futuristic"] .nd-ic svg { stroke-width: 1.3; filter: drop-shadow(0 0 3px currentColor); }
html[data-theme="futuristic"] .nd-hit { box-shadow: inset 0 0 14px rgba(56,232,255,.06); }
html[data-theme="futuristic"] .nd-t { font-size: .97em; letter-spacing: -.01em; }
html[data-theme="social"] .nd-hit { box-shadow: 0 3px 0 color-mix(in srgb, var(--line) 80%, var(--ink) 8%); }

/* status */
.st { display: inline-block; padding: 0 7px; border-radius: 999px; font-family: var(--font-lab); font-size: .76em; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.st[data-s="live"] { background: var(--live-bg); color: var(--live); }
.st[data-s="partly"] { background: var(--part-bg); color: var(--part); }
.st[data-s="building"] { background: var(--bld-bg); color: var(--bld); }
.st[data-s="planned"] { background: var(--pln-bg); color: var(--pln); }

/* where you fit: dimmed, but back to full on hover */
.is-dim { opacity: .3; }
.is-dim:hover, .is-dim:focus-within { opacity: 1; }
.nd.is-here .nd-hit { border: 2px solid var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.nd.is-here::after { content: "You are here"; position: absolute; right: 7px; top: -9px; padding: 0 8px; border-radius: 999px; background: var(--accent-2); color: #fff; font-size: .76em; font-weight: 700; line-height: 1.6; pointer-events: none; }
html[data-theme="futuristic"] .nd.is-here::after { color: #18031a; }

/* story spotlight */
.nd.st-on .nd-hit { border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-2), 0 8px 24px rgba(14,30,70,.28); }
.nd.st-off { opacity: .22; }

/* ---------- services band ---------- */
.band { position: relative; margin: 12px 0; padding: 9px 22px 13px; border-radius: var(--r-lg); background: var(--band); border: 2px solid var(--svc); }
.band-h { position: relative; z-index: 2; width: fit-content; margin: 0 0 3px; padding-right: 8px; color: var(--band-ink); background: var(--band); border-radius: var(--r); }
.band-h b { font-family: var(--font-h); font-size: 1.25em; margin-right: 6px; }
.band-g { display: grid; grid-template-columns: 3fr 2.15fr; gap: 16px; }
.band-l { position: relative; z-index: 2; width: fit-content; margin: 0 0 5px; padding-right: 8px; background: var(--band); color: var(--band-ink); font-family: var(--font-lab); font-size: .82em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.band .nd-hit { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
.band .nd-ic { grid-row: auto; margin-bottom: 4px; }
.band .nd-s, .band .nd-hit > .st { grid-column: 1; }
.band .nd-hit > .st { align-self: end; }

/* ---------- synthetic realm: always dark, in every theme ---------- */
.realm-syn { background: var(--syn-bg); color: var(--syn-ink); border: 2px solid var(--agent); padding: 10px 21px 15px; --card: var(--syn-card); --ink: var(--syn-ink); --muted: var(--syn-muted); --line: var(--syn-line); --ic-fg: var(--syn-ink); --ic-bg: rgba(255,255,255,.12);
  --bld: #cfe0ff; --bld-bg: rgba(127,182,255,.2); }
.realm-syn .realm-h { background: var(--syn-bg); }
.realm-syn .realm-h span { color: var(--syn-muted); }
.nd-thin { margin-bottom: 26px; }
.nd-thin .nd-hit { grid-template-columns: auto auto 1fr auto; grid-template-rows: auto; align-items: center; padding: 5px 11px; background: color-mix(in srgb, var(--agent) 32%, var(--syn-card)); }
.nd-thin .nd-ic { grid-row: auto; width: 1.9em; height: 1.9em; }
.nd-thin .nd-s, .nd-thin .nd-hit > .st { grid-column: auto; margin: 0; }
.nd-thin .nd-s { padding-left: 8px; color: var(--syn-ink); }
.nd-thin .nd-hit > .st { margin-left: 8px; }
.g-fleets { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 60px; }
.agents { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.agents i { padding: 0 7px; border-radius: 999px; font-style: normal; font-size: .8em; line-height: 1.65; background: rgba(255,255,255,.14); color: var(--syn-ink); animation: nt-agent 3.5s ease-in-out infinite; }
.agents i:nth-child(2) { animation-delay: -1.15s; }
.agents i:nth-child(3) { animation-delay: -2.3s; }
@keyframes nt-agent { 0%, 12% { opacity: .22; transform: scale(.94); } 25%, 72% { opacity: 1; transform: none; } 88%, 100% { opacity: .22; transform: scale(.94); } }
.nd-fleet .nd-hit > .st, .nd-a2a .nd-hit > .st { grid-column: 1 / -1; }
.meter { grid-column: 1 / -1; position: relative; display: block; height: 1.3em; margin-top: 6px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.13); }
.meter i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--agent), var(--svc)); transform-origin: 0 50%; animation: nt-meter 3.5s linear infinite; }
.meter em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: .78em; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.65); }
@keyframes nt-meter { 0% { transform: scaleX(.04); } 80%, 100% { transform: scaleX(1); } }

/* ---------- connectors ---------- */
.fl { transition: opacity .25s; }
.fl path { fill: none; stroke: var(--c); stroke-width: var(--line-w); stroke-dasharray: var(--dash); stroke-linecap: round; opacity: .62; }
.fl circle { fill: var(--c); }
html[data-theme="futuristic"] .fl circle { filter: drop-shadow(0 0 4px var(--c)); }
.fl.is-dim { opacity: .14; }
.fl.fl-hot path { stroke-width: 3; opacity: 1; }
.fl.fl-off { opacity: .1; }
.fl.fl-on path { stroke-width: 3.2; opacity: 1; }
.fl-block path { stroke-dasharray: 4 4; }
.fl text { fill: var(--c); font-family: var(--font-lab); font-size: 11.5px; font-weight: 700; paint-order: stroke; stroke: var(--lab-bg, var(--bg-2)); stroke-width: 3.5px; stroke-linejoin: round; }

/* ---------- tooltip + sheet + zoom ---------- */
.nt-tip { position: fixed; z-index: 60; max-width: 340px; padding: 10px 13px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-size: .84rem; line-height: 1.42; box-shadow: 0 8px 26px rgba(0,0,0,.34); pointer-events: none; }
.nt-tip b { display: block; margin-bottom: 2px; }
.nt-tip small { display: block; margin-top: 5px; opacity: .78; }
.nt-sheet { width: min(560px, calc(100vw - 24px)); max-height: 82dvh; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink); }
.nt-sheet::backdrop, .nt-zoom::backdrop { background: rgba(5,10,25,.55); }
.nt-sheet-in { padding: 15px 18px 18px; }
.nt-sheet-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-right: 42px; position: relative; }
.nt-sheet-h h3 { margin: 0; font-family: var(--font-h); font-size: 1.25em; line-height: 1.2; }
.nt-x { position: absolute; right: -6px; top: -5px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.nt-sheet-b p { margin: .7em 0 0; }
.nt-sheet-b ul { display: flex; flex-direction: column; gap: 3px; margin: .8em 0 0; padding: 0; list-style: none; }
.nt-sheet-b a { display: flex; align-items: center; min-height: 40px; font-weight: 700; }
.nt-sheet-b a::after { content: " →"; white-space: pre; }
@media (max-width: 620px) {
  .nt-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; border-width: 1px 0 0; }
}
.nt-zoom { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: hidden; }
.nt-zoom[open] { display: flex; flex-direction: column; }
.nt-zoom-bar { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.nt-zoom-bar select { flex: 1; min-width: 0; max-width: 340px; }
.nt-zoom-bar #nt-zoom-x { margin-left: auto; }
.nt-zoom-cap .nt-cap { margin: 0; border-radius: 0; }
.nt-pan { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px; }
.nt-zoom-holder { position: relative; margin: 0 auto; }

/* ---------- sections under the diagram ---------- */
.nt-sec { padding: 34px 0; }
.nt-sec-alt { background: var(--bg-2); }
.nt-sub { margin: 0 0 1em; color: var(--muted); max-width: 46em; }
.nt-cards { display: grid; gap: 14px; margin-top: 12px; }
.nt-cards-4 { grid-template-columns: repeat(4, 1fr); }
.nt-cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .nt-cards-4, .nt-cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .nt-cards-4, .nt-cards-3 { grid-template-columns: 1fr; } }
.nt-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.nt-card h3 { margin: 0; font-family: var(--font-h); font-size: 1.1em; line-height: 1.22; }
.nt-card p { margin: 0; color: var(--muted); }
.nt-card p:first-of-type { flex: 1; }
.nt-show { min-height: 40px; padding: 4px 13px; border-radius: 10px; border: 1px solid var(--accent); background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.nt-show:hover { background: var(--accent); color: var(--on-accent); }
.nt-docs { margin: 1.3em 0 0; }
.nt-next { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.nt-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 20px; border-radius: 10px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent) !important; font-weight: 700; text-decoration: none; }
.nt-btn-ghost { background: none; color: var(--ink) !important; }
.nt-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1000px) { .nt-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .nt-links { grid-template-columns: 1fr; } }
.nt-links a { display: block; height: 100%; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); text-decoration: none; font-size: .92em; }
.nt-links a:hover { border-color: var(--accent); }
.nt-links b { display: block; color: var(--ink); font-size: 1.05em; }

@media (prefers-reduced-motion: reduce) {
  .agents i, .meter i, .ly-logo img { animation: none; }
  .meter i { transform: none; }
  .is-dim, .nd, .fl, .ly { transition: none; }
}
html.nt-still .agents i, html.nt-still .meter i, html.nt-still .ly-logo img { animation-play-state: paused; }
