/* Synastry (Tool 2, prefix sy-) — the five-level funnel. Loaded through the `styles:` list in synastry.njk, so it sits in <head>,
   BEFORE the tool kit's inline <style> blocks. Rules are scoped `.sy .x`; where one restyles a kit class it adds a class
   (`.sy .sy-words .rk-name`) so it outranks the kit's `.tk .x`. Token overrides use `.tk.sy`.
   Depends on tokens.css, partials/tool-kit-css.njk, partials/result-kit-css.njk and partials/icons.njk.


   Person A is Cinnabar (the page accent), Person B is ink. Three tones carry every contact: flow (cyan, a triangle),
   friction (amber, a square) and fusion (violet, a circle). Colour and shape always travel together. */
.tk.sy {
  --tk-accent: var(--accent-love, #E11D48);
  --tone-flow: #0284C7;
  --tone-tension: #D97706;
  --tone-fusion: #7C3AED;
  --pa: var(--c-accent);
  --pb: var(--c-ink);
}

/* ---- Input: two charts side by side, one button ---- */
.sy .sy-pair { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .sy .sy-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; } }
.sy .sy-badge { font-size: 1.0625rem; font-weight: 800; letter-spacing: 0; }
.sy .sy-b .sy-badge { background: #EEF2F6; color: var(--c-ink); }
.sy .sy-person .chips { margin-top: 10px; }
.sy .sy-go { width: min(100%, 380px); margin: 20px auto 0; display: flex; }
.sy .sy-go svg { width: 22px; height: 22px; }

/* After a reading the two forms fold into one bar. The charts stay one tap away. */
.sy .sy-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 12px 12px 20px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-card); }
.sy .sy-strip-names { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.sy .sy-strip-names span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.sy .sy-strip-names i { font-style: normal; font-weight: 500; color: var(--c-muted); }
.sy .sy-strip + .tk-layout { margin-top: 16px; }
.tk #sy-forms { margin-bottom: 20px; }
.sy .tk-layout.sy-layout { grid-template-columns: minmax(0, 1fr); }

.sy .sy-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sy .sy-dot.a { background: var(--pa); }
.sy .sy-dot.b { background: var(--pb); }

/* ---- Rings: the mark of the tool. Two wheels, one overlap. ---- */
.sy .sy-rings { display: block; width: 100%; height: auto; overflow: visible; }
.sy .sy-ring { fill: none; stroke-width: 3; }
.sy .sy-ring.a { stroke: var(--pa); }
.sy .sy-ring.b { stroke: var(--pb); }
.sy .sy-ring.thin { stroke-width: 1; opacity: 0.45; }
.sy .sy-lens { fill: var(--pa); opacity: 0.1; }
.sy .sy-nodeA { fill: var(--pa); }
.sy .sy-nodeB { fill: var(--pb); }
.sy .sy-today { margin: 0 auto; width: 100%; max-width: 280px; }
.sy .sy-mark { position: absolute; right: -6%; top: -4%; width: min(78%, 560px); opacity: 0.12; pointer-events: none; }
.sy .sy-mark .sy-ring { stroke-width: 1.4; }

/* ================= Level 1: the verdict ================= */
.sy .sy-hero { --hl: var(--tone-fusion); }
.sy .sy-hero[data-tone="flow"] { --hl: var(--tone-flow); }
.sy .sy-hero[data-tone="friction"] { --hl: var(--tone-tension); }
.sy .sy-hero[data-tone="quiet"] { --hl: #94A3B8; }
.sy .sy-hero .rk-top { position: relative; }
.sy .sy-words { position: relative; margin-top: 12px; }
.sy .sy-words .rk-name { margin-top: 0; font-size: clamp(3rem, 19cqw, 8.5rem); letter-spacing: -0.05em; line-height: 0.94; }
.sy .sy-words .rk-name + .rk-name { margin-top: 4px; }
.sy .sy-words .rk-name.hl > span {
  margin-left: -0.07em; padding: 0 0.07em; border-radius: 0.08em;
  background: linear-gradient(transparent 50%, color-mix(in srgb, var(--hl) 55%, #fff) 50%, color-mix(in srgb, var(--hl) 55%, #fff) 93%, transparent 93%) no-repeat 0 0 / 100% 100%;
}
.sy .sy-sub { position: relative; margin-top: 12px; max-width: 54ch; font-size: 1rem; line-height: 1.5; color: var(--c-muted); }

.sy .sy-bar { display: block; height: 6px; border-radius: 3px; background: #E2E8F0; overflow: hidden; }
.sy .sy-bar i { display: block; width: var(--w); height: 100%; border-radius: 3px; background: var(--c-accent); }

.sy .sy-hotdot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c-ink); box-shadow: 0 0 8px rgba(15, 23, 42, 0.35); }
.sy .sy-born { position: relative; display: grid; gap: 4px; margin-top: 16px; color: var(--c-muted); font-size: 0.9375rem; }
.sy .sy-born li { display: flex; align-items: baseline; gap: 10px; }
.sy .sy-born .sy-dot { transform: translateY(1px); }

/* ---- Key: who is rose, who is ink ---- */
.sy .sy-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: 0.875rem; font-weight: 700; }
.sy .sy-key span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.sy .sy-key em { font-style: normal; font-weight: 500; color: var(--c-muted); }

/* ---- Shapes: colour never works alone ---- */
.sy .sy-sh { display: inline-block; flex: none; width: 11px; height: 11px; background: var(--tone); }
.sy .sy-sh.fusion { --tone: var(--tone-fusion); border-radius: 50%; }
.sy .sy-sh.flow { --tone: var(--tone-flow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sy .sy-sh.tension { --tone: var(--tone-tension); border-radius: 2px; }
.sy .sy-sh.lg { width: 16px; height: 16px; }

/* ---- Rows: one contact, two lines (overlay detail) ---- */
.sy .sy-rows { padding-top: 6px; }
.sy .sy-rows-k { margin-top: 16px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-muted); }
.sy .sy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--c-line); }
.sy .sy-row:first-child { border-top: 0; }
.sy .sy-rl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font-size: 0.9375rem; font-weight: 700; }
.sy .sy-pl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sy .sy-pl svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sy .sy-pl.a { color: var(--c-accent-ink); }
.sy .sy-pl.b { color: var(--c-ink); }
.sy .sy-asp { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.sy .sy-orb { font-size: 0.875rem; font-weight: 700; color: var(--c-muted); white-space: nowrap; }
.sy .sy-orb small { font-weight: 600; color: var(--c-muted); font-size: 0.75rem; margin-left: 4px; }
.sy .sy-txt { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.45; color: #475569; }
.sy .sy-txt b { display: block; margin-bottom: 1px; font-weight: 800; color: var(--c-ink); }
.sy .sy-none { margin-top: 14px; font-size: 0.9375rem; color: var(--c-muted); }
.sy .sy-more { margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--c-muted); }

/* ================= Level 4: the proof. Ten planets by ten, with filters, a stepper and hot spots that glow ================= */
.sy .sy-map { container: map / inline-size; }
.sy .sy-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.sy .sy-f { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font-size: 0.875rem; font-weight: 700; color: var(--c-ink); cursor: pointer; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.sy .sy-f .num { font-size: 0.8125rem; font-weight: 700; color: var(--c-muted); }
.sy .sy-f:hover { background: #F1F5F9; }
.sy .sy-f:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-accent) 55%, transparent); outline-offset: 2px; }
.sy .sy-f.is-on { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.sy .sy-f.is-on .num { color: rgba(255, 255, 255, 0.72); }

.sy .sy-grid { --hd: 30px; display: grid; grid-template-columns: var(--hd) repeat(10, minmax(0, 1fr)); gap: 3px; margin-top: 16px; }
@container map (max-width: 330px) { .sy .sy-grid { --hd: 22px; gap: 2px; } .sy .sy-h svg { width: 14px; } }
@container map (min-width: 520px) { .sy .sy-grid { --hd: 40px; gap: 4px; } }
.sy .sy-h { all: unset; box-sizing: border-box; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; cursor: pointer; color: var(--c-ink); transition: background 0.15s var(--ease); }
.sy .sy-h.row { aspect-ratio: auto; width: var(--hd); color: var(--c-accent-ink); }
.sy .sy-h.col { aspect-ratio: auto; height: var(--hd); color: var(--c-ink); }
.sy .sy-h:hover { background: #EEF2F6; }
.sy .sy-h:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-accent) 55%, transparent); outline-offset: 1px; }
.sy .sy-h.is-on { background: var(--c-ink); color: #fff; }
.sy .sy-h.row.is-on { background: var(--c-accent); color: #fff; }
.sy .sy-h svg { width: min(60%, 22px); height: auto; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sy .sy-corner { display: block; }
.sy .sy-c { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: #F4F6F9; }
.sy .sy-c.gen { background: repeating-linear-gradient(135deg, #E9EEF4 0 2px, #fff 2px 6px); }
.sy .sy-c.has { background: color-mix(in srgb, var(--tone) var(--hp), #fff); cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.2s var(--ease); }
.sy .sy-c.has:hover { transform: scale(1.08); box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.25); z-index: 1; }
.sy .sy-c.has:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 1px; z-index: 2; }
.sy .sy-c.is-on { outline: 3px solid var(--c-ink); outline-offset: 1px; z-index: 2; }
.sy .sy-c.is-line { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-ink) 40%, transparent); }
.sy .sy-c.hot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 85%, #fff), 0 0 14px color-mix(in srgb, var(--tone) 55%, transparent); }
.sy .sy-c.hot:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 85%, #fff), 0 8px 18px -4px rgba(15, 23, 42, 0.3); }
.sy .sy-c.exact::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink); }
.sy .sy-m { display: block; width: var(--sz); aspect-ratio: 1; background: var(--tone); }
.sy .sy-c.fusion { --tone: var(--tone-fusion); } .sy .sy-c.fusion .sy-m { border-radius: 50%; }
.sy .sy-c.flow { --tone: var(--tone-flow); } .sy .sy-c.flow .sy-m { clip-path: polygon(50% 8%, 100% 92%, 0 92%); }
.sy .sy-c.tension { --tone: var(--tone-tension); } .sy .sy-c.tension .sy-m { border-radius: 2px; }
.sy .sy-c.approx .sy-m { opacity: 0.55; }
.sy .sy-grid[data-f="flow"] .sy-c.has:not(.flow),
.sy .sy-grid[data-f="tension"] .sy-c.has:not(.tension),
.sy .sy-grid[data-f="fusion"] .sy-c.has:not(.fusion) { opacity: 0.16; }

.sy .sy-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 0.8125rem; font-weight: 600; color: var(--c-muted); }
.sy .sy-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sy .sy-legend b { color: var(--c-ink); font-weight: 700; }
.sy .sy-legend .hatch { width: 14px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(135deg, #D5DDE7 0 2px, #fff 2px 5px); border: 1px solid #E2E8F0; }

.sy .sy-detail { margin-top: 16px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-box); background: #F8FAFC; min-height: 132px; }
.sy .sy-detail .sy-empty { color: var(--c-muted); font-size: 0.9375rem; }
.sy .sy-d-head { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; }
.sy .sy-d-glyphs { display: inline-flex; align-items: center; gap: 8px; }
.sy .sy-d-g { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid currentColor; }
.sy .sy-d-g.a { color: var(--pa); }
.sy .sy-d-g.b { color: var(--pb); }
.sy .sy-d-g svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sy .sy-d-nick { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.sy .sy-d-title { margin-top: 2px; font-size: 0.9375rem; font-weight: 700; line-height: 1.25; color: #334155; }
.sy .sy-d-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 0.875rem; font-weight: 600; color: var(--c-muted); }
.sy .sy-tag { padding: 1px 9px; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: 0.75rem; font-weight: 700; }
.sy .sy-d-text { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: #334155; }
.sy .sy-d-orb { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 0.8125rem; font-weight: 600; color: var(--c-muted); }
.sy .sy-d-orb .sy-bar { flex: 1; min-width: 40px; }
.sy .sy-d-orb .sy-bar i { background: var(--c-ink); }
.sy .sy-d-orb .num { white-space: nowrap; }
.sy .sy-d-sub { margin-top: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-muted); }
.sy .sy-detail .sy-rows { padding-top: 6px; margin-top: 0; }
.sy .sy-detail .sy-row:first-child { border-top: 0; }

.sy .sy-step { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sy .sy-step .btn-sm { height: 48px; justify-content: center; }
.sy .sy-prev { width: 48px; padding: 0; }
.sy .sy-next { padding: 0 18px; }
.sy .sy-count { flex: 1; text-align: center; font-size: 0.9375rem; font-weight: 700; color: var(--c-muted); }

.sy .sy-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.9375rem; }
.sy .sy-table caption { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); padding-bottom: 6px; }
.sy .sy-table th, .sy .sy-table td { padding: 9px 8px; text-align: left; border-top: 1px solid var(--c-line); font-weight: 500; }
.sy .sy-table thead th { border-top: 0; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-muted); }
.sy .sy-table td:last-child { text-align: right; white-space: nowrap; }

.sy .sy-nexts { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sy .sy-nexts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Sprite icons and tone colours (blueprint: flow cyan triangle, friction amber square, fusion violet circle) ---- */
.sy .ic { width: 24px; height: 24px; flex: none; display: block; }
.sy .tone-flow { color: var(--tone-flow); }
.sy .tone-tension { color: var(--tone-tension); }
.sy .tone-fusion { color: var(--tone-fusion); }
.sy .sy-funnel { container: syfunnel / inline-size; }
.sy .sy-kick { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent-ink); margin-bottom: 4px; }

/* ---- Lockup: [A name / sign] — Alignment % — [B name / sign] ---- */
.sy .sy-lockup { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12px, 0.35fr) auto minmax(12px, 0.35fr) minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 22px; }
.sy .sy-side { display: grid; gap: 4px; min-width: 0; }
.sy .sy-side.b { text-align: right; justify-items: end; }
.sy .sy-pname { font-size: clamp(1.125rem, 5.4cqw, 2.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; overflow-wrap: anywhere; }
.sy .sy-side.a .sy-pname { color: var(--c-accent-ink); }
.sy .sy-psign { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--c-muted); }
.sy .sy-sg { display: inline-grid; place-items: center; }
.sy .sy-sg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sy .sy-rule { display: block; height: 2px; border-radius: 1px; background: var(--c-line); }
.sy .sy-score { display: grid; justify-items: center; }
.sy .sy-pct { display: flex; align-items: flex-start; font-size: clamp(4rem, 26cqw, 9.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.86; color: var(--hl); }
.sy .sy-hero[data-tone="quiet"] .sy-pct { color: var(--c-ink); }
.sy .sy-pct-u { margin-top: 0.08em; margin-left: 0.04em; font-size: 0.42em; letter-spacing: 0; }
.sy .sy-pct-k { margin-top: 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.sy .sy-align-sub { position: relative; margin-top: 10px; text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--c-muted); }
/* a narrow card drops the rules and stacks the figure above the two names */
@container rk (max-width: 459px) {
  .sy .sy-lockup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "s s" "a b"; row-gap: 14px; }
  .sy .sy-score { grid-area: s; }
  .sy .sy-side.a { grid-area: a; }
  .sy .sy-side.b { grid-area: b; }
  .sy .sy-rule { display: none; }
  .sy .sy-pct { font-size: clamp(5rem, 34cqw, 7.5rem); }
}

/* the subtitle: one 800-weight sentence */
.sy .sy-hook { position: relative; margin-top: 24px; max-width: 24ch; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.sy .sy-hero .sy-sub { margin-top: 10px; }
.sy .sy-hero .rk-ribbon { white-space: normal; height: auto; min-height: 28px; padding: 4px 12px; }

/* ================= Level 2: thematic breakdown ================= */
.sy .sy-mbars { display: grid; gap: 18px; margin-top: 4px; }
.sy .sy-mbar { --tone: var(--tone-flow); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; }
.sy .sy-mbar.tension { --tone: var(--tone-tension); }
.sy .sy-mbar-l { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.sy .sy-mbar-l .ic { width: 18px; height: 18px; color: var(--tone); }
.sy .sy-mbar-l b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.sy .sy-mbar-l small { font-size: 0.8125rem; font-weight: 600; color: var(--c-muted); }
.sy .sy-mbar-n { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.sy .sy-mbar-t { grid-column: 1 / -1; display: block; height: 12px; border-radius: 999px; background: #EEF2F6; overflow: hidden; }
.sy .sy-mbar-t i { display: block; width: var(--w); height: 100%; border-radius: 999px; background: var(--tone); transform-origin: left; }
.sy .sy-cts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.sy .sy-ct { --tone: var(--c-muted); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tone) 30%, #fff); background: color-mix(in srgb, var(--tone) 7%, #fff); font-size: 0.875rem; font-weight: 700; }
.sy .sy-ct.flow { --tone: var(--tone-flow); }
.sy .sy-ct.tension { --tone: var(--tone-tension); }
.sy .sy-ct.fusion { --tone: var(--tone-fusion); }
.sy .sy-ct .ic { width: 16px; height: 16px; }

/* ================= Level 3: micro-insights ================= */
.sy .rk-bento.sy-bento { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@container syfunnel (min-width: 640px) { .sy .rk-bento.sy-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sy .sy-tile.dir { grid-column: 1 / -1; } }
@container syfunnel (min-width: 900px) { .sy .rk-bento.sy-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sy .sy-tile.dir { grid-column: auto; } }
.sy .sy-tile { display: flex; flex-direction: column; }
.sy .sy-tile.flow { border-top: 3px solid var(--tone-flow); }
.sy .sy-tile.tension { border-top: 3px solid var(--tone-tension); }
.sy .sy-tile.dir { border-top: 3px solid var(--c-accent); }
.sy .sy-tile h3 { display: flex; align-items: center; gap: 8px; }
.sy .sy-tile h3 .ic { width: 16px; height: 16px; }
.sy .sy-tile.dir h3 .ic { color: var(--c-accent); }
.sy .sy-ins-list { display: grid; gap: 0; margin-top: 8px; }
.sy .sy-ins { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.sy .sy-ins:first-child { border-top: 0; }
.sy .sy-ins-g { display: inline-flex; align-items: center; gap: 4px; padding-top: 2px; }
.sy .sy-mini { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; background: #fff; }
.sy .sy-mini.a { color: var(--pa); }
.sy .sy-mini.b { color: var(--pb); }
.sy .sy-mini svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sy .sy-ins-tx { display: grid; gap: 2px; min-width: 0; }
.sy .sy-ins-tx b { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.sy .sy-ins-tx small { font-size: 0.8125rem; font-weight: 600; color: var(--c-muted); }
.sy .sy-ins-line { margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; color: #334155; }
.sy .sy-dir { padding: 12px 0; border-top: 1px solid var(--c-line); }
.sy .sy-tile h3 + .sy-dir { border-top: 0; padding-top: 10px; }
.sy .sy-dir-h { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sy .sy-dir-lead { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.8125rem; font-weight: 700; color: var(--c-muted); }
.sy .sy-dir-lead .ic { width: 14px; height: 14px; }
.sy .sy-el { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 0.875rem; line-height: 1.45; color: var(--c-muted); }
.sy .sy-el b { display: block; margin-bottom: 2px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-ink); }

/* ================= Level 5: deep dive ================= */
.sy .sy-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sy .sy-pos { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sy .sy-pos small { color: var(--c-muted); font-size: 0.75rem; }
.sy .sy-table thead th .sy-dot { vertical-align: 1px; }
.sy .sy-table th[scope="row"] { font-weight: 700; }
.sy .sy-table .sy-pl { color: var(--c-ink); }
@media (max-width: 480px) { .sy .sy-table th, .sy .sy-table td { padding: 8px 4px; font-size: 0.875rem; } .sy .sy-pos .sy-sg { display: none; } }

/* ---- Motion: the archetype lands word by word, the marker sweeps, the bars fill, the hot spots breathe three times ---- */
@keyframes sy-draw { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes sy-word { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sy-sweep { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@keyframes sy-grow { from { width: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .sy .results.is-in .sy-mark { animation: sy-draw var(--duration-normal, 180ms) var(--ease) backwards; transform-origin: 70% 40%; }
  .sy .results.is-in .sy-words .rk-name > span { animation: sy-word var(--duration-fast, 120ms) var(--ease) backwards; }
  .sy .results.is-in .sy-bar i, .sy .results.is-in .sy-mbar-t i { animation: sy-grow var(--duration-normal, 180ms) var(--ease) backwards; }
  .sy .results.is-in .sy-c.hot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 85%, #fff); }
}
