#ez2-line-admin {
  --bg: #07131e;
  --bg-soft: #0b1926;
  --panel: #0f2030;
  --panel-2: #13283a;
  --panel-3: #172f43;
  --line: #284156;
  --line-soft: rgba(137, 174, 203, .15);
  --text: #eef7fb;
  --muted: #8ea5b7;
  --subtle: #61798d;
  --cyan: #25d6c8;
  --cyan-soft: rgba(37, 214, 200, .13);
  --blue: #4aa5ff;
  --green: #5ee6a8;
  --orange: #ff9f58;
  --red: #ff6b75;
  --purple: #aa7cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, .25);
  --radius: 15px;
  min-height: 100vh;
  background: radial-gradient(circle at 82% -10%, rgba(41, 137, 161, .15), transparent 28%), var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  display: grid;
  grid-template: 68px 1fr / 252px 1fr;
}

#ez2-line-admin[data-theme="light"] {
  --bg: #eef4f7;
  --bg-soft: #e5edf2;
  --panel: #ffffff;
  --panel-2: #f6fafb;
  --panel-3: #edf4f6;
  --line: #c8d8e1;
  --line-soft: rgba(35, 75, 96, .1);
  --text: #102735;
  --muted: #557082;
  --subtle: #78909f;
  --cyan: #008f86;
  --cyan-soft: rgba(0, 143, 134, .1);
  --blue: #1677d2;
  --green: #178b5b;
  --orange: #d66c20;
  --red: #d94451;
  --purple: #7651c5;
  --shadow: 0 18px 45px rgba(22, 50, 68, .12);
}

body.ez2-line-shadow-host { margin: 0; }

@scope (#ez2-line-admin) {
* { box-sizing: border-box; }
button, select, input { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
button:disabled:hover { filter: none; border-color: var(--line); }
input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 75%, white); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 10px 14px; background: #fff; color: #111; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { grid-column: 1 / -1; z-index: 20; display: grid; grid-template-columns: 252px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); position: sticky; top: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 20px; height: 100%; border-right: 1px solid var(--line); }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-8deg); }
.brand-mark span { background: var(--cyan); border-radius: 3px 3px 8px 3px; }
.brand-mark span:nth-child(2) { opacity: .7; transform: translateY(5px); }
.brand-mark span:nth-child(3) { opacity: .4; transform: translateY(10px); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 16px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); margin-top: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.shadow-guard { justify-self: center; display: flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--cyan) 32%, var(--line)); background: var(--cyan-soft); color: var(--cyan); padding: 7px 12px; border-radius: 99px; font-size: 12px; }
.shadow-guard b { color: var(--text); padding-left: 7px; border-left: 1px solid var(--line); font-weight: 650; }
.pulse-dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--cyan) 14%, transparent); }
.top-actions { display: flex; align-items: center; gap: 8px; padding-right: 18px; }
.icon-button, .avatar-button, .tiny-icon { border: 1px solid var(--line); background: var(--panel); display: inline-grid; place-items: center; }
.icon-button { width: 36px; height: 36px; border-radius: 10px; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.avatar-button { width: 36px; height: 36px; border-radius: 50%; color: var(--cyan); font-weight: 750; }
.tiny-icon { width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.select-shell { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.select-shell select { appearance: none; border: 1px solid var(--line); border-radius: 9px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238ea5b7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; padding: 8px 29px 8px 10px; }
.compact select { width: 75px; }
.sidebar { grid-row: 2; padding: 16px 12px; background: color-mix(in srgb, var(--bg-soft) 93%, black); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: calc(100vh - 68px); position: sticky; top: 68px; align-self: start; height: calc(100vh - 68px); }
.tenant-card { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 9px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tenant-logo { display: grid; place-items: center; width: 37px; height: 37px; background: linear-gradient(145deg, var(--orange), #c84e36); border-radius: 10px; font-weight: 800; color: white; }
.tenant-card span:not(.tenant-logo) { min-width: 0; display: flex; flex-direction: column; }
.tenant-card strong, .tenant-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-card strong { font-size: 12px; }
.tenant-card small { color: var(--muted); font-size: 10px; }
#primary-nav { display: grid; gap: 3px; margin: 22px 0; }
.nav-button { width: 100%; border: 0; background: transparent; border-radius: 10px; padding: 10px 11px; display: flex; align-items: center; gap: 11px; color: var(--muted); text-align: left; }
.nav-button:hover { background: var(--line-soft); color: var(--text); }
.nav-button.active { background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 3px 0 var(--cyan); }
.nav-icon { width: 21px; height: 21px; display: grid; place-items: center; font-weight: 750; border: 1px solid currentColor; border-radius: 7px; font-size: 9px; }
.nav-label { flex: 1; }
.nav-badge { background: var(--panel-3); color: var(--muted); border-radius: 99px; padding: 1px 7px; font-size: 10px; }
.fixture-badge { border: 1px solid color-mix(in srgb, var(--cyan) 34%, transparent); background: var(--cyan-soft); color: var(--cyan); font-weight: 750; }
.scope-card { margin-top: auto; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 11px; display: grid; gap: 9px; font-size: 10px; }
.scope-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scope-card span { color: var(--muted); }
.scope-card b { font-weight: 650; }
.tag { display: inline-flex; align-items: center; border-radius: 99px; padding: 3px 8px; font-size: 10px; font-weight: 700; }
.tag.cyan { color: var(--cyan); background: var(--cyan-soft); }
.tag.good { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.tag.warn { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.tag.danger { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.tag.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.tag.muted { color: var(--muted); background: var(--line-soft); }
.main { min-width: 0; padding: 25px 28px 60px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.eyebrow { color: var(--cyan); font-size: 9px; letter-spacing: .15em; font-weight: 750; text-transform: uppercase; }
.dot-sep { color: var(--subtle); padding: 0 8px; }
.page-head h1 { font-size: clamp(24px, 3vw, 35px); letter-spacing: -.035em; line-height: 1; margin: 10px 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.page-actions { display: flex; align-items: center; gap: 9px; }
.scenario-select { border: 1px solid var(--line); background: var(--panel); padding-left: 10px; border-radius: 10px; }
.scenario-select select { border: 0; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 8px 13px; border: 1px solid var(--line); font-weight: 670; }
.button svg { width: 16px; fill: currentColor; }
.button.primary { background: var(--cyan); border-color: var(--cyan); color: #05201e; }
.button.primary:hover { filter: brightness(1.08); }
.button.secondary { background: var(--panel); color: var(--text); }
.button.secondary:hover { border-color: var(--cyan); }
.button.full { width: 100%; }
.button-icon { font-size: 9px; color: var(--cyan); }
.button b { background: var(--panel-3); color: var(--muted); border-radius: 99px; padding: 1px 6px; font-size: 10px; }
.public-preview-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--cyan) 34%, var(--line)); border-radius: 12px; background: var(--cyan-soft); }
.public-preview-notice > div { min-width: 0; display: grid; gap: 2px; }
.public-preview-notice b { color: var(--cyan); }
.public-preview-notice span { color: var(--muted); font-size: 11px; }
.public-preview-notice > .tag { flex: none; color: var(--muted); }
.safety-strip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; margin-bottom: 18px; }
.safety-item { padding: 9px 12px; display: flex; align-items: center; gap: 7px; min-width: 0; border-right: 1px solid var(--line); }
.safety-item:last-child { border-right: 0; }
.safety-item span { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.safety-item b { margin-left: auto; color: var(--green); font-size: 10px; text-transform: uppercase; }
.lock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.route-progress { border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--line)); background: color-mix(in srgb, var(--blue) 8%, var(--panel)); border-radius: 12px; padding: 13px; margin-bottom: 18px; }
.route-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.route-step { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 5px 9px; font-size: 11px; }
.route-step.done { color: var(--green); }
.route-step.fail { color: var(--red); }
.route-step.selected { color: var(--cyan); border-color: var(--cyan); }
.view-root { display: grid; gap: 18px; }
.motion-stage:not(.is-visible), .motion-stage:not(.is-visible) * { animation-play-state: paused !important; }
.grid { display: grid; gap: 16px; }
.grid.metrics { grid-template-columns: repeat(5, 1fr); }
.grid.two { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--panel-2) 87%, var(--bg))); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.06); min-width: 0; }
.panel-head { padding: 17px 18px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; }
.panel-head p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.panel-body { padding: 0 18px 18px; }
.metric { padding: 16px; position: relative; overflow: hidden; }
.metric::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; right: -25px; top: -25px; background: var(--cyan-soft); }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin: 6px 0 2px; font-size: 24px; letter-spacing: -.03em; }
.metric small { color: var(--green); }
.metric small.down { color: var(--orange); }
.metric .sparkline { position: absolute; right: 12px; bottom: 11px; width: 82px; height: 25px; overflow: visible; opacity: .82; }
.sparkline path { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: chartDraw 1.2s cubic-bezier(.22,.61,.36,1) both; }
.sparkline circle { fill: var(--cyan); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--cyan) 70%, transparent)); }
.sparkline.green path { stroke: var(--green); }
.sparkline.green circle { fill: var(--green); }
.sparkline.orange path { stroke: var(--orange); }
.sparkline.orange circle { fill: var(--orange); }
.analytics-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, .72fr); gap: 16px; }
.chart-panel { overflow: hidden; }
.chart-panel .panel-head h2 { margin-top: 3px; font-size: 17px; }
.period-tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); }
.period-tabs button { border: 0; border-radius: 6px; padding: 5px 8px; background: transparent; color: var(--muted); font-size: 10px; }
.period-tabs button.active { color: var(--text); background: var(--panel-3); }
.trend-chart svg { display: block; width: 100%; height: 245px; overflow: visible; }
.chart-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-area { opacity: 0; animation: chartAreaIn 1.1s .16s ease-out forwards; }
.chart-area.resolved-area { animation-delay: .24s; }
.chart-line-base { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .26; }
.chart-line-base.incoming-base { stroke: var(--blue); }
.chart-line-base.resolved-base { stroke: var(--orange); }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: chartDraw 1.5s cubic-bezier(.22,.61,.36,1) forwards; }
.chart-line.incoming { stroke: var(--blue); }
.chart-line.resolved { stroke: var(--orange); animation-delay: .14s; }
.chart-point circle { fill: var(--panel); stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: chartPointIn .45s .82s ease-out both; }
.chart-point rect { fill: var(--panel); stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: chartPointIn .45s .96s ease-out both; }
.chart-axis-label { fill: var(--subtle); font-size: 9px; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; color: var(--muted); font-size: 10px; }
.chart-legend span, .chart-legend b { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend b { margin-left: auto; color: var(--green); font-weight: 650; }
.chart-legend i, .donut-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.chart-legend i.green, .donut-legend i.green { background: var(--green); }
.chart-legend i.blue, .donut-legend i.blue { background: var(--blue); }
.chart-legend i.orange, .donut-legend i.orange { background: var(--orange); }
.chart-legend i.square { border-radius: 2px; }
.chart-legend .live-dot { background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 13%, transparent); animation: livePulse 5.6s ease-in-out infinite; }
.donut-layout { min-height: 275px; display: grid; place-items: center; align-content: center; gap: 20px; }
.donut { width: 166px; aspect-ratio: 1; position: relative; display: grid; place-items: center; animation: ringReveal .8s cubic-bezier(.22,.61,.36,1) both; }
.donut svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.donut > div { position: relative; z-index: 1; text-align: center; display: grid; }
.donut strong { font-size: 24px; line-height: 1; }
.donut span { color: var(--muted); font-size: 10px; margin-top: 5px; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 12; }
.ring-track.compact { stroke-width: 7; opacity: .76; }
.ring-segment { fill: none; stroke-width: 12; stroke-linecap: butt; stroke-dasharray: var(--segment) var(--segment-rest); stroke-dashoffset: var(--segment-start); animation: ringSegmentDraw 1.25s var(--delay) cubic-bezier(.22,.61,.36,1) backwards; }
.ring-progress { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--ring-offset); animation: ringProgress 1.35s var(--delay) cubic-bezier(.22,.61,.36,1) backwards; }
.ring-progress.compact { stroke-width: 7; }
.ring-tracer { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 96; opacity: .26; filter: drop-shadow(0 0 2px currentColor); animation: ringTracer 24s var(--delay, 0ms) linear infinite, ringBreath 8s ease-in-out infinite; }
.tone-cyan { color: var(--cyan); stroke: var(--cyan); }
.tone-green { color: var(--green); stroke: var(--green); }
.tone-orange { color: var(--orange); stroke: var(--orange); }
.tone-blue { color: var(--blue); stroke: var(--blue); }
.donut-legend { width: 100%; display: grid; gap: 8px; }
.donut-legend > div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.donut-legend b { color: var(--text); }
.visual-mosaic { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(390px, 1.35fr) minmax(260px, .9fr); gap: 16px; }
.radar-gem { min-height: 245px; display: grid; place-items: center; }
.radar-gem svg { width: min(100%, 280px); height: 250px; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line-soft); stroke-width: 1; }
.radar-value { fill: url(#radar-gem-fill); transform-box: fill-box; transform-origin: center; animation: radarBloom 1.2s cubic-bezier(.22,.61,.36,1) both; }
.radar-outline { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: chartDraw 1.35s .16s ease-out both; }
.radar-node { fill: var(--panel); stroke: var(--green); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: chartPointIn .45s .9s ease-out both; }
.radar-label { fill: var(--muted); font-size: 9px; }
.outcome-rings { min-height: 245px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; }
.progress-ring { position: relative; display: grid; place-items: center; min-width: 0; }
.progress-ring svg { width: 100%; max-width: 148px; aspect-ratio: 1; }
.progress-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 25%; }
.progress-ring strong { font-size: clamp(17px, 2vw, 24px); line-height: 1; }
.progress-ring span { color: var(--muted); font-size: 9px; margin-top: 6px; }
.column-chart { min-height: 245px; display: grid; grid-template-columns: repeat(7, minmax(20px, 1fr)); align-items: end; gap: 8px; padding: 12px 4px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 49px, var(--line-soft) 49px 50px); }
.column-item { height: 225px; display: grid; grid-template-rows: 18px 1fr 20px; gap: 5px; align-items: end; text-align: center; }
.column-item > span { color: var(--subtle); font-size: 8px; opacity: 0; animation: chartAreaIn .4s calc(var(--delay, 0ms) + 720ms) ease-out forwards; }
.column-item > div { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.column-item i { display: block; width: min(28px, 72%); height: var(--bar-height); border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, var(--cyan), color-mix(in srgb, var(--blue) 66%, var(--cyan))); box-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 18%, transparent); transform-origin: bottom; animation: columnGrow 1.1s var(--delay) cubic-bezier(.22,.61,.36,1) backwards; }
.column-item b { color: var(--muted); font-size: 9px; font-weight: 500; }
.rag-rigor-layout { display: grid; gap: 18px; }
.concentric-layout { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.concentric-rings { width: 145px; aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.concentric-rings svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.concentric-rings > div { position: relative; display: grid; text-align: center; }
.concentric-rings strong { font-size: 19px; }
.concentric-rings span { color: var(--muted); font-size: 8px; }
.concentric-legend { display: grid; gap: 8px; }
.concentric-legend > span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.concentric-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.concentric-legend i.green { background: var(--green); }
.concentric-legend i.orange { background: var(--orange); }
.concentric-legend b { color: var(--text); }
.route-orbit { min-height: 310px; }
.route-orbit svg { display: block; width: 100%; height: 290px; overflow: visible; }
.orbit-glow { fill: url(#orbit-core); }
.orbit-track { fill: none; stroke: var(--line); stroke-width: 1.2; }
.orbit-track-a { stroke-dasharray: 1 3; }
.orbit-track-b { stroke-dasharray: 3 5; }
.orbit-track-c { stroke: color-mix(in srgb, var(--cyan) 35%, var(--line)); }
.orbit-flow { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 4 14; animation: orbitFlow 32s linear infinite; }
.orbit-flow-a { --flow-cycle: -108; }
.orbit-flow-b { --flow-cycle: -95; stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 2 17; animation-duration: 28s; }
.orbit-core circle { fill: color-mix(in srgb, var(--panel-3) 88%, var(--cyan)); stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--cyan) 35%, transparent)); }
.orbit-core text:first-of-type { fill: var(--text); font-size: 28px; font-weight: 800; }
.orbit-core text:nth-of-type(2) { fill: var(--cyan); font-size: 10px; }
.orbit-core text:nth-of-type(3) { fill: var(--muted); font-size: 8px; }
.orbit-node { animation: orbitNodeIn .8s var(--delay) ease-out backwards; }
.orbit-node circle { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.orbit-node text { fill: var(--muted); font-size: 8px; font-weight: 700; }
.orbit-node .orbit-node-label { font-size: 9px; font-weight: 500; }
.orbit-node.selected circle { stroke: var(--green); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--green) 58%, transparent)); }
.orbit-node.selected text { fill: var(--green); }
.orbit-caption, .topology-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 10px; }
.orbit-caption span, .orbit-caption b, .topology-legend span, .topology-legend b { display: inline-flex; align-items: center; gap: 7px; }
.orbit-caption b, .topology-legend b { margin-left: auto; color: var(--green); }
.signal-topology { min-height: 320px; }
.signal-topology svg { display: block; width: 100%; height: 290px; }
.topology-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 7; }
.signal-path { fill: none; stroke: url(#topology-flow); stroke-width: 2.3; stroke-linecap: round; stroke-dasharray: 6 12; animation: signalFlow 22s var(--delay) linear infinite; }
.topology-node .node-halo { fill: color-mix(in srgb, var(--cyan) 8%, transparent); stroke: currentColor; stroke-width: 1; opacity: .64; transform-box: fill-box; transform-origin: center; animation: topologyPulse 7.2s var(--delay) ease-in-out infinite; }
.topology-node .node-core { fill: currentColor; filter: drop-shadow(0 0 7px currentColor); }
.topology-node text { fill: var(--text); font-size: 9px; }
.topology-node.tone-cyan { color: var(--cyan); }
.topology-node.tone-green { color: var(--green); }
.topology-node.tone-orange { color: var(--orange); }
.topology-node.tone-blue { color: var(--blue); }
.topology-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.topology-legend i.blue { background: var(--blue); }
.topology-legend i.orange { background: var(--orange); }
.assurance-bars { display: grid; gap: 13px; }
.assurance-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 10px; }
.assurance-row span, .assurance-row small { color: var(--muted); }
.assurance-row small { display: block; margin-top: 4px; font-size: 9px; text-align: right; }
.assurance-track { position: relative; height: 7px; border-radius: 99px; background: var(--line); overflow: visible; }
.assurance-track i { display: block; width: var(--value); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; animation: barGrow 1.1s ease-out both; }
.assurance-track em { position: absolute; left: var(--target); top: -3px; width: 2px; height: 13px; background: var(--orange); border-radius: 2px; }
.domain-sync-visual { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 24px; }
.coverage-ring { width: 158px; aspect-ratio: 1; display: grid; place-items: center; position: relative; animation: ringReveal .8s cubic-bezier(.22,.61,.36,1) both; }
.coverage-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.coverage-ring > div { position: relative; z-index: 1; display: grid; text-align: center; }
.coverage-ring strong { font-size: 23px; }
.coverage-ring span { color: var(--muted); font-size: 10px; }
.sync-curve svg { width: 100%; height: 165px; display: block; }
.sync-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.sync-stats > div { border: 1px solid var(--line); border-radius: 9px; background: var(--line-soft); padding: 9px 10px; }
.sync-stats span { display: block; color: var(--muted); font-size: 9px; }
.sync-stats b { display: block; margin-top: 3px; font-size: 14px; }
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
@keyframes chartAreaIn { to { opacity: 1; } }
@keyframes chartPointIn { from { opacity: 0; transform: scale(.2); } }
@keyframes livePulse { 50% { opacity: .7; box-shadow: 0 0 0 7px transparent; } }
@keyframes ringReveal { from { opacity: 0; transform: scale(.9); } }
@keyframes ringSegmentDraw { from { stroke-dasharray: 0 100; } }
@keyframes ringProgress { from { stroke-dashoffset: 100; } }
@keyframes ringTracer { to { stroke-dashoffset: -100; } }
@keyframes ringBreath { 0%, 100% { opacity: .24; filter: drop-shadow(0 0 2px currentColor); } 50% { opacity: .36; filter: drop-shadow(0 0 3px currentColor); } }
@keyframes radarBloom { from { opacity: 0; transform: scale(.08); } }
@keyframes columnGrow { from { transform: scaleY(0); } }
@keyframes orbitFlow { to { stroke-dashoffset: var(--flow-cycle, -108); } }
@keyframes orbitNodeIn { from { opacity: 0; } }
@keyframes signalFlow { to { stroke-dashoffset: -108; } }
@keyframes topologyPulse { 50% { opacity: .48; transform: scale(1.12); } }
@keyframes barGrow { from { transform: scaleX(0); } }
.scenario-card { padding: 18px; display: grid; grid-template-columns: 8px 1fr auto; gap: 13px; align-items: center; }
.scenario-bar { height: 100%; min-height: 64px; border-radius: 99px; background: var(--green); }
.scenario-card.warn .scenario-bar { background: var(--orange); }
.scenario-card.danger .scenario-bar { background: var(--red); }
.scenario-card.blue .scenario-bar { background: var(--blue); }
.scenario-card h2 { margin: 0 0 5px; font-size: 18px; }
.scenario-card p { margin: 0; color: var(--muted); }
.mini-orbit { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; position: relative; color: var(--cyan); font-weight: 800; }
.mini-orbit::after { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--cyan); border-radius: 50%; }
.provider-grid, .persona-grid, .kb-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.provider-card, .persona-card, .kb-card { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 14px; }
.provider-top, .persona-top { display: flex; align-items: center; gap: 11px; }
.provider-mark, .persona-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--cyan-soft); color: var(--cyan); font-weight: 800; }
.provider-mark.orange { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.provider-mark.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.provider-mark.purple { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); }
.provider-top h3, .persona-top h3 { margin: 0; font-size: 13px; }
.provider-top p, .persona-top p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.provider-top .tag { margin-left: auto; }
.provider-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.provider-stats div { background: var(--line-soft); border-radius: 8px; padding: 8px; }
.provider-stats span { color: var(--muted); display: block; font-size: 9px; }
.provider-stats b { font-size: 11px; }
.bar { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--cyan); border-radius: inherit; transform-origin: left; animation: barGrow 1s ease-out both; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.switch-row span { color: var(--muted); }
.switch { position: relative; width: 38px; height: 21px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: .18s; }
.switch i::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .18s; }
.switch input:checked + i { background: var(--cyan); }
.switch input:checked + i::after { transform: translateX(17px); }
.switch input:focus-visible + i { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch input:disabled + i { background: var(--line); opacity: .55; cursor: not-allowed; }
.switch input:disabled + i::after { background: var(--subtle); transform: none; }
.segmented button:disabled { color: var(--subtle); background: transparent; box-shadow: none; }
.segmented button:disabled.active { color: var(--muted); background: var(--line-soft); }
.persona-card { cursor: pointer; }
.persona-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan-soft); }
.persona-card button { all: unset; display: block; cursor: pointer; width: 100%; }
.persona-card .description { color: var(--muted); font-size: 11px; min-height: 48px; margin: 12px 0; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 3px 7px; font-size: 9px; }
.route-chain { display: grid; gap: 10px; }
.route-node { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel-2); }
.route-node:not(:last-child)::after { content: ""; position: absolute; left: 28px; top: 100%; height: 11px; border-left: 1px dashed var(--cyan); }
.route-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--cyan-soft); color: var(--cyan); font-weight: 800; }
.route-node h3 { font-size: 12px; margin: 0; }
.route-node p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.rule-list { display: grid; gap: 8px; }
.rule { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rule code { color: var(--cyan); background: var(--cyan-soft); padding: 3px 6px; border-radius: 5px; min-width: 0; overflow-wrap: anywhere; }
.rule span { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.rule b { margin-left: auto; font-size: 10px; flex: none; }
.kb-card h3 { margin: 0 0 3px; font-size: 13px; }
.kb-card > p { color: var(--muted); margin: 0 0 12px; font-size: 10px; }
.kb-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.kb-stats div { background: var(--line-soft); padding: 7px; border-radius: 8px; }
.kb-stats span { display: block; color: var(--muted); font-size: 9px; }
.kb-stats b { font-size: 11px; }
.test-query { display: flex; gap: 8px; }
.text-input { width: 100%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); padding: 10px 12px; border-radius: 9px; }
.citation { border-left: 3px solid var(--cyan); background: var(--cyan-soft); padding: 10px 12px; margin-top: 11px; border-radius: 0 9px 9px 0; color: var(--muted); font-size: 11px; }
.empty-state { grid-column: 1 / -1; min-height: 132px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--line-soft); padding: 22px; text-align: left; }
.empty-state > span { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); font-weight: 800; }
.empty-state b { display: block; color: var(--text); font-size: 13px; }
.empty-state p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 11px 13px; text-align: left; border-top: 1px solid var(--line-soft); font-size: 11px; }
th { color: var(--subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
td { color: var(--muted); }
td strong { color: var(--text); display: block; }
.confidence { display: flex; align-items: center; gap: 7px; }
.confidence i { width: 43px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.confidence i::after { content: ""; display: block; width: var(--value); height: 100%; background: var(--cyan); transform-origin: left; animation: barGrow 1s ease-out both; }
.experience-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.65fr); gap: 16px; }
.mode-axis { padding: 13px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; }
.mode-axis h3 { margin: 0; font-size: 12px; }
.mode-axis p { color: var(--muted); font-size: 10px; margin: 4px 0 10px; }
.segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; background: var(--bg-soft); border-radius: 9px; padding: 4px; }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 7px 5px; font-size: 10px; }
.segmented button.active { color: var(--text); background: var(--panel-3); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.phone { width: 290px; max-width: 100%; margin: auto; border: 8px solid #162631; border-radius: 31px; background: #eef5f5; color: #25353c; box-shadow: var(--shadow); overflow: hidden; }
.phone-bar { background: #314c49; color: white; padding: 13px; text-align: center; font-weight: 700; font-size: 12px; }
.chat-window { padding: 14px 11px; min-height: 308px; background: linear-gradient(#dbe7e6, #eef3f2); }
.bubble { width: fit-content; max-width: 82%; padding: 9px 10px; background: white; border-radius: 4px 13px 13px 13px; font-size: 11px; box-shadow: 0 2px 5px rgba(0,0,0,.08); margin-bottom: 9px; }
.bubble.user { margin-left: auto; background: #82e274; border-radius: 13px 4px 13px 13px; }
.quick-replies { display: flex; gap: 5px; overflow: hidden; margin: 10px -1px; }
.quick-replies span { flex: none; border: 1px solid #43a99e; color: #257c74; background: white; border-radius: 99px; padding: 5px 8px; font-size: 9px; }
.flex-card { background: white; border-radius: 11px; overflow: hidden; box-shadow: 0 3px 8px rgba(0,0,0,.1); }
.flex-image { height: 77px; background: linear-gradient(135deg, #1f7377, #6fc3b6); display: grid; place-items: center; color: white; font-weight: 800; letter-spacing: .1em; }
.flex-copy { padding: 9px; font-size: 10px; }
.flex-copy b { display: block; font-size: 11px; }
.flex-copy span { color: #5d717a; }
.richmenu { display: grid; grid-template-columns: repeat(3,1fr); background: white; border-top: 1px solid #ccd8d8; }
.richmenu div { padding: 9px 3px; text-align: center; font-size: 9px; border-right: 1px solid #e2e8e8; }
.widget-preview { border: 1px dashed var(--line); border-radius: 12px; min-height: 220px; background: linear-gradient(145deg, var(--panel-2), var(--panel)); position: relative; padding: 15px; }
.fake-site { color: var(--subtle); font-size: 10px; }
.fake-lines { display: grid; gap: 7px; margin-top: 12px; }
.fake-lines i { height: 7px; border-radius: 99px; background: var(--line-soft); }
.fake-lines i:nth-child(2) { width: 72%; }
.widget-button { position: absolute; right: 17px; bottom: 17px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--cyan); color: #05201e; font-weight: 800; box-shadow: 0 8px 30px color-mix(in srgb, var(--cyan) 28%, transparent); }
.decision-drawer { position: fixed; z-index: 50; right: 0; top: 0; width: min(430px, 100vw); height: 100vh; background: var(--bg-soft); border-left: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(102%); transition: transform .22s ease; display: flex; flex-direction: column; }
.decision-drawer[hidden], .drawer-scrim[hidden] { display: none; }
.decision-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 21px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 6px 0 0; }
.decision-list { padding: 15px 21px; overflow: auto; display: grid; gap: 10px; }
.decision { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 13px; }
.decision-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.decision h3 { font-size: 12px; margin: 0; }
.decision p { color: var(--muted); font-size: 11px; }
.decision code { color: var(--subtle); font-size: 9px; }
.drawer-foot { margin-top: auto; padding: 18px 21px; border-top: 1px solid var(--line); }
.drawer-foot p { color: var(--muted); font-size: 10px; }
.drawer-scrim { position: fixed; z-index: 45; inset: 0; border: 0; background: rgba(0,0,0,.54); }
.toast-region { position: fixed; z-index: 70; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { width: min(350px, calc(100vw - 40px)); padding: 11px 13px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); border-radius: 10px; color: var(--text); animation: toastIn .18s ease; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1100px) {
  :scope { grid-template-columns: 76px 1fr; }
  .topbar { grid-template-columns: 76px 1fr auto; }
  .brand { padding: 0 18px; }
  .brand-copy, .tenant-card > span:not(.tenant-logo), .tenant-card .tiny-icon, .nav-label, .nav-badge, .scope-card { display: none; }
  .tenant-card { display: block; padding: 7px; }
  .tenant-logo { width: 37px; }
  .nav-button { justify-content: center; padding: 10px; }
  .grid.metrics { grid-template-columns: repeat(3, 1fr); }
  .analytics-layout { grid-template-columns: 1fr; }
  .visual-mosaic { grid-template-columns: 1fr 1fr; }
  .visual-mosaic > :last-child { grid-column: 1 / -1; }
  .donut-layout { grid-template-columns: 180px 1fr; min-height: 210px; }
  .domain-sync-visual { grid-template-columns: 160px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :scope { display: block; padding-top: 60px; }
  .topbar { position: fixed; height: 60px; width: 100%; display: flex; justify-content: space-between; }
  .brand { border: 0; padding: 0 12px; }
  .brand-copy { display: flex; }
  .shadow-guard { position: static; inset: auto; z-index: auto; justify-content: center; margin-left: auto; padding: 5px 8px; box-shadow: none; font-size: 10px; flex: none; }
  .shadow-guard b { display: none; }
  .top-actions { padding-right: 10px; }
  .sidebar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 62px; min-height: 0; border: 0; border-top: 1px solid var(--line); padding: 7px; background: var(--bg-soft); overflow-x: auto; }
  .sidebar::after { content: ""; position: fixed; right: 0; bottom: 0; width: 24px; height: 61px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg-soft)); }
  .tenant-card, .scope-card { display: none; }
  #primary-nav { display: flex; gap: 4px; margin: 0; width: max-content; }
  #primary-nav { scroll-snap-type: x proximity; }
  .nav-button { width: 62px; min-height: 48px; flex: 0 0 62px; display: grid; justify-items: center; gap: 2px; padding: 3px; font-size: 9px; scroll-snap-align: start; }
  .nav-label { display: block; }
  .nav-icon { width: 22px; height: 22px; }
  .main { padding: 18px 12px 150px; }
  .public-preview-notice { align-items: flex-start; display: grid; }
  .public-preview-notice > .tag { justify-self: start; }
  .page-head { align-items: stretch; display: grid; }
  .page-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .scenario-select { grid-column: 1 / -1; justify-content: space-between; }
  .scenario-select select { flex: 1; }
  .safety-strip { grid-template-columns: 1fr 1fr; }
  .safety-item { border-bottom: 1px solid var(--line); }
  .grid.metrics, .grid.two, .grid.three, .provider-grid, .persona-grid, .kb-grid, .experience-layout { grid-template-columns: 1fr; }
  .analytics-layout { grid-template-columns: 1fr; }
  .visual-mosaic { grid-template-columns: 1fr; }
  .visual-mosaic > :last-child { grid-column: auto; }
  .outcome-rings { grid-template-columns: repeat(3, minmax(92px, 1fr)); }
  .route-orbit svg, .signal-topology svg { height: auto; min-height: 220px; }
  .trend-chart svg { height: 205px; }
  .donut-layout { grid-template-columns: 1fr; }
  .domain-sync-visual { grid-template-columns: 1fr; justify-items: center; }
  .sync-curve { width: 100%; }
  .sync-stats { grid-template-columns: repeat(2, 1fr); }
  .metric strong { font-size: 21px; }
  .scenario-card { grid-template-columns: 7px 1fr; }
  .mini-orbit { display: none; }
  .panel-head { padding: 15px 14px 10px; }
  .panel-body { padding: 0 14px 14px; }
}

@media (max-width: 600px) {
  .safety-strip { display: block; }
  .safety-item { border-right: 0; }
  .top-actions .avatar-button { display: none; }
}

@media (max-width: 430px) {
  .brand-copy small, .compact { display: none; }
  .page-head h1 { font-size: 25px; }
  .page-actions .button { padding: 7px; font-size: 11px; }
  .outcome-rings { grid-template-columns: 1fr; }
  .progress-ring svg { max-width: 160px; }
  .concentric-layout { grid-template-columns: 1fr; justify-items: center; }
  .column-chart { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
}

@media (max-width: 1100px) {
  #ez2-line-admin { grid-template-columns: 76px 1fr; }
}

@media (max-width: 760px) {
  #ez2-line-admin { display: block; padding-top: 60px; }
}
