:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #152238;
  --muted: #718096;
  --line: #e5eaf1;
  --line-strong: #d6dee9;
  --green: #11b981;
  --green-hover: #0da673;
  --green-soft: #e9fbf3;
  --red: #ef4f5f;
  --red-soft: #fff0f2;
  --yellow: #f4b51f;
  --unknown: #d5dae2;
  --shadow: 0 12px 36px rgba(23, 43, 77, 0.07);
  --dialog-shadow: 0 30px 90px rgba(18, 33, 54, 0.22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1522;
  --surface: #151f2f;
  --surface-raised: #1a2637;
  --surface-soft: #1b2738;
  --text: #edf3fb;
  --muted: #9dacbf;
  --line: #2b394d;
  --line-strong: #3a4b63;
  --green-soft: #15392f;
  --red-soft: #41232a;
  --unknown: #3b4657;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  --dialog-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

:root[data-color-theme="ocean"] { --green: #2479e8; --green-hover: #1768d2; --green-soft: #eaf2ff; }
:root[data-color-theme="violet"] { --green: #7b5ce1; --green-hover: #6848ce; --green-soft: #f1edff; }
:root[data-color-theme="amber"] { --green: #e48718; --green-hover: #ca7310; --green-soft: #fff3e3; }
:root[data-color-theme="anime"] { --bg: #fff9fd; --surface: rgba(255, 255, 255, .9); --surface-raised: #fffafd; --surface-soft: #fff2f9; --text: #35233f; --muted: #806f8a; --line: #f0d9e8; --line-strong: #e5c4d9; --green: #e95f9f; --green-hover: #d94b8c; --green-soft: #ffebf5; --shadow: 0 16px 42px rgba(126, 77, 120, .1); --anime-violet: #8a70d6; --anime-cyan: #65cfee; }
:root[data-color-theme="fighter"] { --bg: #f0f1f5; --surface: rgba(255, 255, 255, .94); --surface-raised: #fff; --surface-soft: #e9eaf0; --text: #10121a; --muted: #62697d; --line: #cfd1dc; --line-strong: #b4b8c8; --green: #ed168f; --green-hover: #c90072; --green-soft: #ffe5f4; --yellow: #f4ca24; --shadow: 0 16px 42px rgba(21, 20, 45, .12); --fighter-blue: #244eff; --fighter-violet: #6e24f1; }
:root[data-color-theme="qiying"] { --bg: #eae7f3; --surface: rgba(251, 249, 255, .94); --surface-raised: #fff; --surface-soft: #f1edf8; --text: #1d162b; --muted: #716684; --line: #d8cfe8; --line-strong: #bbaad5; --green: #7d3fd0; --green-hover: #6730b5; --green-soft: #eee3ff; --yellow: #d69cff; --shadow: 0 17px 44px rgba(39, 20, 72, .13); --qiying-violet: #9a54f2; --qiying-blue: #5066d8; --qiying-red: #d32b61; }
:root[data-theme="dark"][data-color-theme="ocean"] { --green: #62a4ff; --green-hover: #86b9ff; --green-soft: #172f52; }
:root[data-theme="dark"][data-color-theme="violet"] { --green: #ad93ff; --green-hover: #c2afff; --green-soft: #2d254e; }
:root[data-theme="dark"][data-color-theme="amber"] { --green: #f4ad55; --green-hover: #ffc47c; --green-soft: #46331c; }
:root[data-theme="dark"][data-color-theme="anime"] { --bg: #171326; --surface: rgba(34, 27, 52, .92); --surface-raised: #251d39; --surface-soft: #2b213f; --text: #fff2fa; --muted: #b7a4c2; --line: #493553; --line-strong: #624568; --green: #ff8ec4; --green-hover: #ffacd3; --green-soft: #43243a; --shadow: 0 16px 42px rgba(7, 4, 18, .3); }
:root[data-theme="dark"][data-color-theme="fighter"] { --bg: #06070d; --surface: rgba(12, 13, 24, .94); --surface-raised: #121422; --surface-soft: #161929; --text: #f8f8ff; --muted: #9ba1b7; --line: #303349; --line-strong: #4a4e68; --green: #ff3dad; --green-hover: #ff67bf; --green-soft: #35152c; --yellow: #ffd62e; --shadow: 0 18px 48px rgba(0, 0, 0, .38); }
:root[data-theme="dark"][data-color-theme="qiying"] { --bg: #070511; --surface: rgba(15, 10, 29, .94); --surface-raised: #151022; --surface-soft: #1b142b; --text: #f7f0ff; --muted: #ad9dbf; --line: #342648; --line-strong: #58406f; --green: #b06cff; --green-hover: #c38bff; --green-soft: #2b1742; --yellow: #d69cff; --shadow: 0 20px 52px rgba(0, 0, 0, .46); --qiying-violet: #b06cff; --qiying-blue: #7586ff; --qiying-red: #ff4678; }

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, a { font: inherit; }
button { color: inherit; }
.page-shell { width: min(1260px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 30px; }
.topbar { position: relative; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 2px solid var(--green); border-radius: 50%; color: var(--green); font-size: 22px; font-weight: 650; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 21px; font-weight: 650; letter-spacing: .01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.refresh-button, .icon-button, .logout-button, .language-switch { min-height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; }
.refresh-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-color: transparent; background: var(--green-soft); color: var(--green); cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.refresh-button:hover { border-color: color-mix(in srgb, var(--green) 34%, transparent); background: color-mix(in srgb, var(--green-soft) 80%, var(--surface)); }
.refresh-button:disabled { cursor: wait; opacity: .72; }
.refresh-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.refresh-button.is-loading .refresh-icon { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.language-switch { display: inline-flex; align-items: center; padding: 3px; }
.language-switch button { min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.language-switch button:hover { color: var(--green); }
.language-switch button.is-active { background: var(--green); color: #fff; }
.icon-button { display: grid; place-items: center; width: 42px; padding: 0; cursor: pointer; }
.icon-button:hover, .logout-button:hover { border-color: var(--green); color: var(--green); }
.color-theme-picker { position: relative; z-index: 110; }
.color-theme-picker > summary { list-style: none; }
.color-theme-picker > summary::-webkit-details-marker { display: none; }
.color-theme-picker[open] > summary { border-color: var(--green); color: var(--green); }
.palette-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.palette-icon circle { fill: currentColor; stroke: none; }
.color-theme-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 120; display: grid; width: 196px; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); box-shadow: var(--dialog-shadow); }
.color-theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; text-align: left; }
.color-theme-menu button:hover { background: var(--surface-soft); color: var(--text); }
.color-theme-menu button.is-active { background: var(--green-soft); color: var(--green); font-weight: 650; }
.theme-swatch { flex: 0 0 13px; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); }
.theme-swatch-green { background: #11b981; color: #11b981; }
.theme-swatch-ocean { background: #2479e8; color: #2479e8; }
.theme-swatch-violet { background: #7b5ce1; color: #7b5ce1; }
.theme-swatch-amber { background: #e48718; color: #e48718; }
.theme-swatch-anime { background: linear-gradient(135deg, #f06dac 15%, #a98bff 55%, #65cfee); color: #e95f9f; }
.theme-swatch-fighter { background: conic-gradient(from 215deg, #11131d, #284dff, #7b2bff, #ef168f, #ffd52c, #11131d); color: #ed168f; }
.theme-swatch-qiying { border-radius: 3px 50% 3px 50%; background: linear-gradient(135deg, #090611 0 42%, #e8d8ff 43% 49%, #8c43e2 50% 72%, #d5285f 73% 78%, #151021 79%); color: #9b55ef; transform: rotate(-12deg); }
.theme-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
.logout-button { padding: 0 14px; cursor: pointer; }
.logout-button[hidden] { display: none; }
.hoshizakura-hero, .toushin-hero, .qiying-hero { display: none; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.summary-card { min-height: 132px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.summary-card span, .summary-card small { display: block; color: var(--muted); }
.summary-card span { font-size: 14px; }
.summary-card small { font-size: 12px; }
.summary-card strong { display: block; margin: 10px 0 5px; font-size: 26px; font-weight: 620; }
.summary-card.is-online strong { color: var(--green); }
.summary-card.is-offline strong { color: var(--red); }
.notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f4d38a; border-radius: 12px; background: #fff8e7; color: #805d13; }
:root[data-theme="dark"] .notice { background: #3b321d; color: #f7d375; }
.node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.node-card { --card-gutter: 28px; overflow: visible; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.node-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px var(--card-gutter) 22px; }
.node-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.node-heading h2 { margin: 0; font-size: 19px; font-weight: 640; line-height: 1.35; }
.copy-control { position: relative; display: inline-flex; }
.copy-ssh-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.copy-ssh-button[hidden] { display: none; }
.copy-ssh-button:hover, .copy-ssh-button.is-copied { border-color: color-mix(in srgb, var(--green) 30%, transparent); background: var(--green-soft); color: var(--green); }
.copy-ssh-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.copy-feedback { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30; padding: 5px 8px; border-radius: 7px; background: #20242c; color: #fff; font-size: 11px; white-space: nowrap; transform: translateX(-50%); }
.copy-feedback[hidden] { display: none; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border-radius: 999px; padding: 7px 11px; background: var(--surface-soft); font-size: 13px; font-weight: 600; }
.status-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--unknown); box-shadow: 0 0 0 4px color-mix(in srgb, var(--unknown) 18%, transparent); }
.node-card.is-online .status-badge { background: var(--green-soft); color: var(--green); }
.node-card.is-online .status-badge i { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.node-card.is-offline .status-badge { background: var(--red-soft); color: var(--red); }
.node-card.is-offline .status-badge i { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 var(--card-gutter) 20px; }
.metric-card { min-width: 0; padding: 18px 19px; border: 1px solid transparent; border-radius: 13px; background: var(--surface-soft); text-align: left; }
.latency-metric { cursor: pointer; }
.latency-metric:hover { border-color: color-mix(in srgb, var(--green) 38%, transparent); }
.metric-label-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.trend-icon { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid span { font-size: 13px; }
.metric-grid small { font-size: 12px; }
.metric-grid strong { display: block; margin: 8px 0 4px; font-size: 23px; font-weight: 610; }
.history-panel { margin: 0 var(--card-gutter) 20px; padding: 20px; border-radius: 13px; background: var(--surface-soft); }
.history-heading, .history-scale { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.ping-summary { display: inline-flex; align-items: center; gap: 6px; }
.ping-summary i { width: 8px; height: 8px; border-radius: 50%; background: var(--unknown); }
.ping-summary b { color: var(--muted); font-weight: 600; }
.node-card.is-online .ping-summary i { background: var(--green); }
.node-card.is-online .ping-summary b { color: var(--green); }
.node-card.is-offline .ping-summary i { background: var(--red); }
.node-card.is-offline .ping-summary b { color: var(--red); }
.history-scale { display: grid; grid-template-columns: 1fr auto 1fr; }
.history-scale span:last-child { text-align: right; }
.history-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 5px; margin: 24px 0 14px; }
.history-bar { position: relative; height: 17px; border-radius: 5px; background: var(--unknown); outline: none; }
.history-bar::before { position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 40; min-width: 150px; padding: 8px 10px; border-radius: 8px; background: #24272d; color: #fff; content: attr(data-tooltip); font-size: 11px; font-weight: 500; line-height: 1.5; white-space: pre; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.history-bar::after { position: absolute; bottom: calc(100% + 5px); left: 50%; z-index: 39; width: 9px; height: 9px; background: #24272d; content: ""; opacity: 0; pointer-events: none; transform: translateX(-50%) rotate(45deg); transition: opacity .15s ease; }
.history-bar:hover::before, .history-bar:hover::after, .history-bar:focus-visible::before, .history-bar:focus-visible::after { opacity: 1; }
.history-bar:hover::before, .history-bar:focus-visible::before { transform: translate(-50%, 0); }
.history-bar.tooltip-align-start::before { left: -6px; transform: translate(0, 4px); }
.history-bar.tooltip-align-start:hover::before, .history-bar.tooltip-align-start:focus-visible::before { transform: translate(0, 0); }
.history-bar.tooltip-align-start::after { left: 50%; }
.history-bar.tooltip-align-end::before { right: -6px; left: auto; transform: translate(0, 4px); }
.history-bar.tooltip-align-end:hover::before, .history-bar.tooltip-align-end:focus-visible::before { transform: translate(0, 0); }
.history-bar.tooltip-align-end::after { right: 50%; left: auto; }
.history-bar.is-online { background: var(--green); }
.history-bar.is-degraded { background: var(--yellow); }
.history-bar.is-offline { background: var(--red); }
.incident-panel { position: relative; margin: 0 var(--card-gutter) 20px; }
.incident-panel summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.incident-panel summary::-webkit-details-marker { display: none; }
.incident-summary-tail { display: inline-flex; align-items: center; gap: 10px; }
.incident-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .2s ease; }
.incident-panel[open] { z-index: 20; }
.incident-panel[open] .incident-arrow { transform: rotate(180deg); }
.incident-list { position: absolute; right: 0; bottom: calc(100% + 10px); left: 0; z-index: 20; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--dialog-shadow); }
.incident-list::after { position: absolute; right: 17px; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-raised); content: ""; transform: rotate(45deg); }
.incident-panel:not([open]) .incident-list { display: none; }
.incident-item, .incident-empty { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 13px; }
.incident-item + .incident-item { border-top: 1px solid var(--line); }
.incident-empty { justify-content: center; padding: 16px 0; font-size: 14px; font-weight: 550; }
.incident-item strong { color: var(--red); }
.detail-link { display: flex; align-items: center; justify-content: space-between; margin: 0 var(--card-gutter) 28px; padding: 12px 14px; border-radius: 10px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.detail-link[hidden], .resource-preview[hidden] { display: none; }
.detail-link:hover { background: var(--green-hover); }
.resource-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 14px; margin: 0 var(--card-gutter) 28px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.resource-preview:hover { border-color: var(--green); transform: translateY(-1px); }
.resource-stat { min-width: 0; }
.resource-stat small, .resource-stat strong { display: block; }
.resource-stat small { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.resource-stat strong { font-size: 14px; font-weight: 600; }
.resource-meter { display: block; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: var(--line-strong); }
.resource-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.resource-preview.is-unavailable:not(.has-resource-data) .resource-meter span { width: 0 !important; }
.resource-preview-arrow { color: var(--green); font-size: 20px; font-weight: 750; }
.loading-card { grid-column: 1 / -1; padding: 48px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--muted); text-align: center; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding: 18px 4px; color: var(--muted); font-size: 12px; }
footer > div span { display: block; }
.icp-placeholder { margin-top: 6px; }

.login-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-raised); color: var(--text); box-shadow: var(--dialog-shadow); }
.login-dialog::backdrop { background: rgba(8, 18, 32, 0.54); backdrop-filter: blur(6px); }
.login-form { padding: 26px; }
.login-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.login-kicker { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-heading h2 { margin: 5px 0 0; font-size: 23px; }
.dialog-close { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; }
.dialog-close:hover { border-color: var(--green); color: var(--green); }
.login-description { margin: 18px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.login-form > label:not(.remember-row) { display: block; margin-top: 14px; }
.login-form > label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.login-form input[type="text"], .login-form input[type="password"] { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: var(--surface-soft); color: var(--text); }
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.remember-row { display: flex; align-items: center; gap: 9px; margin: 16px 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.remember-row input { width: 17px; height: 17px; accent-color: var(--green); }
.remember-row span { margin: 0 !important; }
.login-message { margin: 0 0 13px; padding: 10px 12px; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 13px; }
.login-submit { width: 100%; min-height: 45px; border: 0; border-radius: 10px; background: var(--green); color: #fff; cursor: pointer; font-weight: 750; }
.login-submit:hover { background: var(--green-hover); }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-security { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }

.latency-dialog { width: min(880px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-raised); color: var(--text); box-shadow: var(--dialog-shadow); }
.latency-dialog::backdrop { background: rgba(8, 18, 32, 0.54); backdrop-filter: blur(6px); }
.latency-dialog-panel { padding: 28px 30px 30px; }
.latency-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.latency-dialog-heading h2 { margin: 0; font-size: 21px; font-weight: 650; }
.latency-dialog-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.latency-chart-summary { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.latency-chart-summary strong { color: var(--text); font-size: 20px; font-weight: 620; }
.latency-chart-wrap { position: relative; min-height: 320px; margin-top: 16px; padding: 14px 6px 2px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
#latency-chart { display: block; width: 100%; height: 300px; overflow: visible; }
.latency-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 14px; }
.latency-chart-empty[hidden] { display: none; }
.chart-grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: var(--muted); font-size: 11px; }
.latency-chart-line { fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.latency-chart-point { fill: var(--surface-raised); stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }

:root[data-color-theme="anime"] body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 12% 8%, rgba(99, 205, 240, .16), transparent 25%), radial-gradient(circle at 88% 12%, rgba(240, 109, 172, .18), transparent 28%), linear-gradient(145deg, transparent 52%, rgba(170, 139, 255, .08));
  background-attachment: fixed;
}
:root[data-color-theme="anime"] body::before { position: fixed; inset: 0; z-index: 0; background-image: radial-gradient(circle, rgba(240, 109, 172, .24) 0 1px, transparent 1.8px), radial-gradient(circle, rgba(99, 205, 240, .19) 0 1px, transparent 1.8px); background-position: 8px 12px, 54px 58px; background-size: 92px 92px; content: ""; pointer-events: none; }
:root[data-color-theme="anime"] .page-shell { position: relative; z-index: 1; }
:root[data-color-theme="anime"] .topbar { margin-bottom: 24px; animation: anime-fade-down .7s cubic-bezier(.2, .7, .2, 1) both; }
:root[data-color-theme="anime"] .brand strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", serif; letter-spacing: .045em; }
:root[data-color-theme="anime"] .brand-mark { border-color: transparent; background: linear-gradient(135deg, #f06dac, #a98bff 55%, #65cfee); color: #fff; box-shadow: 0 9px 22px rgba(226, 91, 156, .22); }

:root[data-color-theme="anime"] .hoshizakura-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 370px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid rgba(222, 178, 213, .72);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(95, 64, 116, .15);
  animation: anime-hero-enter .95s cubic-bezier(.16, .84, .24, 1) both;
}
:root[data-color-theme="anime"] .hoshizakura-hero::before { position: absolute; inset: -3%; z-index: -3; background: url("/status-assets/assets/hoshizakura-lab-v1.webp") center 12% / cover no-repeat; content: ""; animation: anime-hero-image 7s cubic-bezier(.16, .84, .24, 1) both; }
:root[data-color-theme="anime"] .hoshizakura-hero::after { position: absolute; inset: -40% -15%; z-index: 2; background: linear-gradient(112deg, transparent 35%, rgba(255, 255, 255, .7) 48%, transparent 61%); content: ""; opacity: 0; pointer-events: none; transform: translateX(-42%); animation: anime-light-pass 1.7s .35s ease-out both; }
.hoshizakura-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 252, 255, .94) 31%, rgba(255, 250, 254, .48) 52%, rgba(255, 255, 255, .04) 77%); }
.hoshizakura-copy { position: relative; z-index: 3; width: min(53%, 590px); padding: 46px 0 48px 58px; color: #3a294b; }
.hoshizakura-kicker { display: block; color: #bc4f8a; font-size: 11px; font-weight: 750; letter-spacing: .28em; }
.hoshizakura-copy h1 { margin: 14px 0 9px; font-family: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", serif; font-size: clamp(36px, 4.4vw, 58px); font-weight: 600; line-height: 1.14; letter-spacing: .055em; text-shadow: 0 4px 22px rgba(255, 255, 255, .9); }
.hoshizakura-copy p { max-width: 470px; margin: 0; color: #725e7d; font-family: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", serif; font-size: 15px; letter-spacing: .08em; }
.hoshizakura-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 27px; padding: 8px 13px; border: 1px solid rgba(227, 151, 194, .5); border-radius: 999px; background: rgba(255, 255, 255, .64); color: #955076; font-size: 11px; font-weight: 650; letter-spacing: .06em; backdrop-filter: blur(8px); }
.hoshizakura-status > i { width: 7px; height: 7px; border-radius: 50%; background: #ef6aaa; box-shadow: 0 0 0 4px rgba(239, 106, 170, .14); animation: anime-status-pulse 2.4s ease-in-out infinite; }
.hoshizakura-copy > * { animation: anime-copy-rise .72s cubic-bezier(.2, .76, .2, 1) both; }
.hoshizakura-copy > :nth-child(1) { animation-delay: .2s; }
.hoshizakura-copy > :nth-child(2) { animation-delay: .3s; }
.hoshizakura-copy > :nth-child(3) { animation-delay: .41s; }
.hoshizakura-copy > :nth-child(4) { animation-delay: .52s; }
.hoshizakura-petals { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.hoshizakura-petals i { --petal-x: 20%; --petal-drift: 80px; --petal-duration: 8s; position: absolute; top: -28px; left: var(--petal-x); width: 11px; height: 17px; border-radius: 75% 0 75% 0; background: linear-gradient(145deg, rgba(255, 250, 253, .95), rgba(238, 129, 183, .74)); box-shadow: 0 1px 5px rgba(180, 75, 132, .16); opacity: 0; animation: anime-petal-fall var(--petal-duration) linear infinite; }
.hoshizakura-petals i:nth-child(1) { --petal-x: 9%; --petal-drift: 64px; --petal-duration: 8.6s; animation-delay: 1.2s; }
.hoshizakura-petals i:nth-child(2) { --petal-x: 29%; --petal-drift: -74px; --petal-duration: 10.2s; animation-delay: 4.4s; }
.hoshizakura-petals i:nth-child(3) { --petal-x: 48%; --petal-drift: 90px; --petal-duration: 9.4s; animation-delay: 2.7s; }
.hoshizakura-petals i:nth-child(4) { --petal-x: 69%; --petal-drift: -58px; --petal-duration: 8.9s; animation-delay: .4s; }
.hoshizakura-petals i:nth-child(5) { --petal-x: 84%; --petal-drift: 52px; --petal-duration: 10.8s; animation-delay: 5.6s; }
.hoshizakura-petals i:nth-child(6) { --petal-x: 94%; --petal-drift: -82px; --petal-duration: 9.7s; animation-delay: 3.3s; }
:root[data-theme="dark"][data-color-theme="anime"] .hoshizakura-hero { border-color: rgba(210, 139, 189, .28); background: #21192f; box-shadow: 0 26px 76px rgba(4, 2, 12, .42); }
:root[data-theme="dark"][data-color-theme="anime"] .hoshizakura-hero::before { filter: brightness(.68) saturate(.86); }
:root[data-theme="dark"][data-color-theme="anime"] .hoshizakura-veil { background: linear-gradient(90deg, rgba(24, 18, 39, .98) 0%, rgba(28, 21, 44, .94) 34%, rgba(30, 23, 47, .57) 58%, rgba(23, 18, 37, .17) 82%); }
:root[data-theme="dark"][data-color-theme="anime"] .hoshizakura-copy { color: #fff4fb; }
:root[data-theme="dark"][data-color-theme="anime"] .hoshizakura-copy p { color: #d7bfd9; }
:root[data-theme="dark"][data-color-theme="anime"] .hoshizakura-status { border-color: rgba(255, 142, 196, .34); background: rgba(37, 29, 57, .66); color: #ffbad9; }

:root[data-color-theme="anime"] .summary-card,
:root[data-color-theme="anime"] .node-card { border-color: color-mix(in srgb, var(--green) 20%, var(--line)); backdrop-filter: blur(13px); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; animation: anime-card-rise .62s cubic-bezier(.2, .75, .2, 1) both; }
:root[data-color-theme="anime"] .summary-card:nth-child(1) { animation-delay: .08s; }
:root[data-color-theme="anime"] .summary-card:nth-child(2) { animation-delay: .14s; }
:root[data-color-theme="anime"] .summary-card:nth-child(3) { animation-delay: .2s; }
:root[data-color-theme="anime"] .summary-card:nth-child(4) { animation-delay: .26s; }
:root[data-color-theme="anime"] .node-card:nth-child(1) { animation-delay: .08s; }
:root[data-color-theme="anime"] .node-card:nth-child(2) { animation-delay: .16s; }
:root[data-color-theme="anime"] .node-card:nth-child(3) { animation-delay: .24s; }
:root[data-color-theme="anime"] .summary-card:hover,
:root[data-color-theme="anime"] .node-card:hover { border-color: color-mix(in srgb, var(--green) 38%, var(--line)); box-shadow: 0 22px 52px rgba(126, 77, 120, .14); transform: translateY(-3px); }
:root[data-color-theme="anime"] .node-card { position: relative; }
:root[data-color-theme="anime"] .node-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; border-radius: 19px 19px 0 0; background: linear-gradient(90deg, #f06dac, #a98bff 52%, #65cfee); content: ""; }
:root[data-color-theme="anime"] .history-panel { background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 92%, #fff), color-mix(in srgb, var(--green-soft) 72%, #eefaff)); }
:root[data-theme="dark"][data-color-theme="anime"] .history-panel { background: linear-gradient(135deg, #2d2240, #342740 58%, #263344); }
:root[data-color-theme="anime"] .detail-link,
:root[data-color-theme="anime"] .login-submit { position: relative; overflow: hidden; background: linear-gradient(110deg, #ed649f, #9a7bea 62%, #59bee3); box-shadow: 0 9px 22px rgba(208, 91, 165, .18); }
:root[data-color-theme="anime"] .detail-link:hover,
:root[data-color-theme="anime"] .login-submit:hover { background: linear-gradient(110deg, #dc4e8c, #8768dc 62%, #43add5); }

@keyframes anime-fade-down { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }
@keyframes anime-hero-enter { from { opacity: 0; translate: 0 22px; clip-path: inset(7% 4% 7% 4% round 30px); } to { opacity: 1; translate: 0 0; clip-path: inset(0 round 26px); } }
@keyframes anime-hero-image { from { opacity: .78; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
@keyframes anime-light-pass { 0% { opacity: 0; transform: translateX(-42%); } 30% { opacity: .52; } 100% { opacity: 0; transform: translateX(48%); } }
@keyframes anime-copy-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes anime-card-rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes anime-status-pulse { 0%, 100% { opacity: .7; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes anime-petal-fall { 0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0); } 12% { opacity: .9; } 82% { opacity: .78; } 100% { opacity: 0; transform: translate3d(var(--petal-drift), 430px, 0) rotate(440deg); } }

:root[data-color-theme="fighter"] body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 9% 5%, rgba(36, 78, 255, .2), transparent 24%), radial-gradient(circle at 92% 11%, rgba(237, 22, 143, .18), transparent 25%), linear-gradient(122deg, transparent 0 71%, rgba(110, 36, 241, .08) 71% 73%, transparent 73%);
  background-attachment: fixed;
}
:root[data-color-theme="fighter"] body::before { position: fixed; inset: 0; z-index: 0; background-image: radial-gradient(circle, rgba(42, 48, 83, .23) 0 1px, transparent 1.4px), repeating-linear-gradient(164deg, transparent 0 78px, rgba(34, 42, 82, .055) 79px 81px, transparent 82px 138px); background-position: 0 0, center; background-size: 12px 12px, auto; content: ""; opacity: .54; pointer-events: none; }
:root[data-theme="dark"][data-color-theme="fighter"] body::before { opacity: .72; filter: invert(.16); }
:root[data-color-theme="fighter"] .page-shell { isolation: isolate; position: relative; z-index: 2; }
:root[data-color-theme="fighter"] .page-shell::before { position: absolute; inset: 0 -20px; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 90%, transparent), var(--bg) 7% 93%, color-mix(in srgb, var(--bg) 90%, transparent)); box-shadow: -24px 0 38px color-mix(in srgb, var(--bg) 48%, transparent), 24px 0 38px color-mix(in srgb, var(--bg) 48%, transparent); content: ""; pointer-events: none; }

.fighter-duel-stage { display: none; }
:root[data-color-theme="fighter"] .fighter-duel-stage { isolation: isolate; position: fixed; inset: 0; z-index: 1; display: block; overflow: hidden; pointer-events: none; }
:root[data-color-theme="fighter"] .fighter-duel-stage::before { position: absolute; inset: 0; z-index: -3; background: url("/status-assets/assets/toushin-duel-bg-v1.jpg") center / cover no-repeat; content: ""; opacity: .76; filter: saturate(1.08) contrast(1.04) brightness(.82); }
:root[data-color-theme="fighter"] .fighter-duel-stage::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 0 19%, color-mix(in srgb, var(--bg) 38%, transparent) 27%, color-mix(in srgb, var(--bg) 91%, transparent) 38% 62%, color-mix(in srgb, var(--bg) 38%, transparent) 73%, transparent 81%), linear-gradient(180deg, color-mix(in srgb, var(--bg) 18%, transparent), transparent 24% 78%, color-mix(in srgb, var(--bg) 24%, transparent)); content: ""; }
:root[data-theme="dark"][data-color-theme="fighter"] .fighter-duel-stage::before { opacity: .9; filter: saturate(1.16) contrast(1.08) brightness(.68); }
.fighter-duel-effects { display: none; }
:root[data-color-theme="fighter"] .fighter-duel-effects { position: fixed; inset: 0; z-index: 160; display: block; overflow: hidden; pointer-events: none; }

.fighter-aura { position: absolute; z-index: 1; opacity: 0; mix-blend-mode: screen; filter: blur(7px); }
.fighter-aura-ryu { bottom: -8%; left: -7%; width: 45%; height: 66%; background: radial-gradient(ellipse at 36% 62%, rgba(220, 253, 255, .96), rgba(32, 211, 255, .52) 22%, rgba(22, 88, 255, .12) 48%, transparent 70%); }
.fighter-aura-ken { top: -8%; left: -6%; width: 44%; height: 61%; background: radial-gradient(ellipse at 38% 44%, rgba(255, 248, 212, .98), rgba(255, 112, 21, .57) 23%, rgba(239, 27, 16, .12) 50%, transparent 72%); }
.fighter-aura-akuma { top: 10%; right: -8%; width: 47%; height: 74%; background: radial-gradient(ellipse at 61% 48%, rgba(255, 224, 255, .9), rgba(181, 35, 255, .52) 24%, rgba(35, 0, 72, .15) 52%, transparent 72%); }
.fighter-attack-wave { --wave: #58dfff; --wave-core: #f4ffff; position: absolute; z-index: 3; width: 82px; height: 58px; border-radius: 48% 52% 54% 46%; background: radial-gradient(circle at 58% 50%, var(--wave-core) 0 10%, var(--wave) 24%, color-mix(in srgb, var(--wave) 52%, transparent) 49%, transparent 72%); box-shadow: 0 0 15px var(--wave), 0 0 42px color-mix(in srgb, var(--wave) 72%, transparent), -26px 0 38px color-mix(in srgb, var(--wave) 38%, transparent); opacity: 0; filter: saturate(1.25); }
.fighter-attack-wave::before, .fighter-attack-wave::after { position: absolute; top: 50%; right: 48%; width: 96px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--wave) 76%, transparent)); box-shadow: 0 -13px 0 color-mix(in srgb, var(--wave) 34%, transparent), 0 14px 0 color-mix(in srgb, var(--wave) 24%, transparent); content: ""; transform: translateY(-50%) rotate(-8deg); }
.fighter-attack-wave::after { width: 70px; transform: translateY(-50%) rotate(11deg); }
.fighter-attack-wave b { position: absolute; inset: 12px 18px; border: 2px solid color-mix(in srgb, var(--wave-core) 84%, transparent); border-radius: 50%; box-shadow: inset 0 0 12px var(--wave-core); animation: fight-wave-spin .24s linear infinite; }
.fighter-attack-wave-ryu { --wave: #39dfff; --wave-core: #f2ffff; top: 61%; left: 24%; }
.fighter-attack-wave-ken { --wave: #ff681f; --wave-core: #fff7c9; top: 33%; left: 25%; width: 90px; height: 62px; }
.fighter-attack-wave-akuma { --wave: #a22bff; --wave-core: #f7d9ff; top: 53%; right: 25%; width: 94px; height: 64px; transform: scaleX(-1); }
.fighter-impact { position: absolute; left: 50%; z-index: 4; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 22px 8px var(--impact-color, #fff), 0 0 82px 26px color-mix(in srgb, var(--impact-color, #fff) 52%, transparent); opacity: 0; transform: translate(-50%, -50%); }
.fighter-duel-effects[data-attacker="ryu"] .fighter-impact { --impact-color: #39dfff; top: 62%; }
.fighter-duel-effects[data-attacker="ken"] .fighter-impact { --impact-color: #ff681f; top: 35%; }
.fighter-duel-effects[data-attacker="akuma"] .fighter-impact { --impact-color: #a22bff; top: 55%; }
.fighter-duel-effects.is-attacking[data-attacker="ryu"] .fighter-aura-ryu,
.fighter-duel-effects.is-attacking[data-attacker="ken"] .fighter-aura-ken,
.fighter-duel-effects.is-attacking[data-attacker="akuma"] .fighter-aura-akuma { animation: fight-character-charge .86s cubic-bezier(.18, .72, .2, 1) both; }
.fighter-duel-effects.is-attacking[data-attacker="ryu"] .fighter-attack-wave-ryu,
.fighter-duel-effects.is-attacking[data-attacker="ken"] .fighter-attack-wave-ken { animation: fight-wave-right .86s cubic-bezier(.18, .68, .16, 1) both; }
.fighter-duel-effects.is-attacking[data-attacker="akuma"] .fighter-attack-wave-akuma { animation: fight-wave-left .86s cubic-bezier(.18, .68, .16, 1) both; }
.fighter-duel-effects.is-attacking .fighter-impact { animation: fight-wave-impact .86s ease-out both; }
:root[data-color-theme="fighter"] body.fighter-transitioning .page-shell { animation: fight-ui-impact .86s ease-out both; }
:root[data-color-theme="fighter"] .topbar { margin-bottom: 24px; animation: fight-top-drop .62s cubic-bezier(.16, .82, .22, 1) both; }
:root[data-color-theme="fighter"] .brand strong,
:root[data-color-theme="fighter"] .node-heading h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "PingFang SC", sans-serif; letter-spacing: .045em; }
:root[data-color-theme="fighter"] .brand-mark { border: 0; border-radius: 5px; background: linear-gradient(135deg, #244eff, #7629f5 52%, #ed168f); color: #fff; box-shadow: 7px 7px 0 rgba(244, 202, 36, .72); clip-path: polygon(13% 0, 100% 0, 88% 100%, 0 100%); }
:root[data-color-theme="fighter"] .refresh-button,
:root[data-color-theme="fighter"] .language-switch,
:root[data-color-theme="fighter"] .icon-button,
:root[data-color-theme="fighter"] .logout-button { border-radius: 6px; }

:root[data-color-theme="fighter"] .toushin-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 390px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid rgba(112, 71, 255, .72);
  background: #050610;
  box-shadow: 0 25px 74px rgba(21, 14, 56, .29), 8px 8px 0 rgba(237, 22, 143, .19);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  animation: fight-hero-enter .74s cubic-bezier(.14, .84, .22, 1) both;
}
:root[data-color-theme="fighter"] .toushin-hero::before { position: absolute; inset: -3%; z-index: -3; background: url("/status-assets/assets/toushin-fight-lab-v1.webp") center 18% / cover no-repeat; content: ""; animation: fight-image-slam 1.05s cubic-bezier(.12, .78, .16, 1) both; }
:root[data-color-theme="fighter"] .toushin-hero::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3, 5, 16, .99) 0%, rgba(3, 5, 16, .95) 27%, rgba(4, 6, 18, .68) 43%, rgba(4, 6, 18, .08) 68%), linear-gradient(112deg, transparent 0 68%, rgba(237, 22, 143, .25) 68.2% 69.2%, transparent 69.4%), linear-gradient(112deg, transparent 0 74%, rgba(36, 78, 255, .36) 74.2% 75.2%, transparent 75.4%); content: ""; pointer-events: none; }
.toushin-ink { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at 7% 82%, rgba(237, 22, 143, .82) 0 2px, transparent 3px), radial-gradient(circle at 10% 78%, rgba(36, 78, 255, .76) 0 1px, transparent 2px), repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .025) 4px); background-size: 22px 22px, 14px 14px, auto; opacity: .42; pointer-events: none; }
.toushin-copy { position: relative; z-index: 4; width: min(46%, 520px); padding: 46px 0 48px 58px; color: #fff; }
.toushin-kicker { display: inline-block; padding: 5px 8px; background: #f4ca24; color: #090a10; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 900; letter-spacing: .12em; transform: skewX(-8deg); }
.toushin-copy h1 { max-width: 550px; margin: 13px 0 7px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "PingFang SC", sans-serif; font-size: clamp(45px, 5.3vw, 70px); font-style: italic; font-weight: 900; line-height: .98; letter-spacing: .015em; text-wrap: balance; text-transform: uppercase; text-shadow: 5px 5px 0 rgba(89, 29, 210, .88), -2px -2px 0 rgba(237, 22, 143, .88); animation: fight-title-hit .66s .24s cubic-bezier(.12, .8, .2, 1) both; }
.toushin-copy p { max-width: 430px; margin: 17px 0 0; color: #cbd0e5; font-size: 14px; font-weight: 650; letter-spacing: .06em; }
.toushin-status { display: inline-flex; align-items: stretch; margin-top: 26px; border: 1px solid rgba(255, 255, 255, .36); background: rgba(6, 8, 21, .76); color: #f3f4ff; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em; backdrop-filter: blur(8px); }
.toushin-status b { padding: 8px 10px; background: linear-gradient(120deg, #244eff, #7629f5); color: #fff; font-style: italic; }
.toushin-status span { padding: 8px 11px; }
.toushin-slashes { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.toushin-slashes i { position: absolute; top: -38%; width: 2px; height: 176%; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .9), #ed168f, transparent); box-shadow: 0 0 16px rgba(237, 22, 143, .75); opacity: 0; transform: rotate(24deg); animation: fight-slash-pass 5.2s ease-in-out infinite; }
.toushin-slashes i:nth-child(1) { left: 54%; animation-delay: .6s; }
.toushin-slashes i:nth-child(2) { left: 61%; animation-delay: .68s; }
.toushin-slashes i:nth-child(3) { left: 68%; animation-delay: .76s; }

:root[data-color-theme="fighter"] .summary-card,
:root[data-color-theme="fighter"] .node-card { position: relative; border-color: color-mix(in srgb, var(--fighter-violet) 42%, var(--line)); background-image: linear-gradient(135deg, transparent 0 82%, color-mix(in srgb, var(--green) 8%, transparent) 82%), radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--fighter-blue) 13%, transparent) 0 1px, transparent 1.4px); background-size: auto, 9px 9px; backdrop-filter: blur(13px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; animation: fight-card-enter .46s cubic-bezier(.17, .8, .22, 1) both; }
:root[data-color-theme="fighter"] .summary-card::after,
:root[data-color-theme="fighter"] .node-card::after { position: absolute; top: -1px; right: 18px; width: 72px; height: 4px; background: linear-gradient(90deg, #244eff, #ed168f, #f4ca24); content: ""; transform: skewX(-32deg); }
:root[data-color-theme="fighter"] .summary-card:nth-child(2),
:root[data-color-theme="fighter"] .node-card:nth-child(2) { animation-delay: .06s; }
:root[data-color-theme="fighter"] .summary-card:nth-child(3),
:root[data-color-theme="fighter"] .node-card:nth-child(3) { animation-delay: .12s; }
:root[data-color-theme="fighter"] .summary-card:nth-child(4) { animation-delay: .18s; }
:root[data-color-theme="fighter"] .summary-card:hover,
:root[data-color-theme="fighter"] .node-card:hover { border-color: var(--green); box-shadow: 8px 8px 0 color-mix(in srgb, var(--fighter-violet) 22%, transparent), var(--shadow); transform: translate(-2px, -2px); }
:root[data-color-theme="fighter"] .summary-card strong { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 30px; letter-spacing: .04em; }
:root[data-color-theme="fighter"] .status-badge,
:root[data-color-theme="fighter"] .metric-card,
:root[data-color-theme="fighter"] .history-panel,
:root[data-color-theme="fighter"] .incident-panel summary,
:root[data-color-theme="fighter"] .detail-link,
:root[data-color-theme="fighter"] .resource-preview { border-radius: 4px; }
:root[data-color-theme="fighter"] .history-panel { border-left: 3px solid var(--fighter-blue); background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 92%, #10152b), color-mix(in srgb, var(--green-soft) 84%, #2a1749)); }
:root[data-theme="dark"][data-color-theme="fighter"] .history-panel { background: linear-gradient(135deg, #111526, #19142b 58%, #22122a); }
:root[data-color-theme="fighter"] .history-bar { border-radius: 1px; transform: skewX(-5deg); }
:root[data-color-theme="fighter"] .detail-link,
:root[data-color-theme="fighter"] .login-submit { border-radius: 3px; background: linear-gradient(105deg, #244eff, #7629f5 53%, #ed168f); box-shadow: 6px 6px 0 color-mix(in srgb, #f4ca24 65%, transparent); text-transform: uppercase; }
:root[data-color-theme="fighter"] .detail-link:hover,
:root[data-color-theme="fighter"] .login-submit:hover { background: linear-gradient(105deg, #1738db, #5a18d2 53%, #c90072); }
:root[data-color-theme="fighter"] .latency-chart-line { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--green) 55%, transparent)); }

.fighter-wave-badge { display: none; }
:root[data-color-theme="fighter"] .fighter-wave-badge { --badge-wave: #39dfff; --badge-core: #efffff; position: absolute; top: -13px; right: 92px; z-index: 5; display: block; width: 58px; height: 30px; border: 1px solid color-mix(in srgb, var(--badge-wave) 74%, #fff); border-radius: 50%; background: radial-gradient(circle at 62% 50%, var(--badge-core) 0 8%, var(--badge-wave) 28%, color-mix(in srgb, var(--badge-wave) 32%, transparent) 58%, transparent 72%); box-shadow: 0 0 12px color-mix(in srgb, var(--badge-wave) 54%, transparent); transform: skewX(-9deg); }
:root[data-color-theme="fighter"] .fighter-wave-badge::before { position: absolute; top: 50%; right: 64%; width: 46px; height: 2px; background: linear-gradient(90deg, transparent, var(--badge-wave)); box-shadow: 0 -7px 0 color-mix(in srgb, var(--badge-wave) 34%, transparent), 0 7px 0 color-mix(in srgb, var(--badge-wave) 26%, transparent); content: ""; transform: translateY(-50%); }
:root[data-color-theme="fighter"] .fighter-wave-badge i { position: absolute; inset: 7px 12px 7px 18px; border: 1px solid var(--badge-core); border-radius: 50%; animation: fight-badge-energy 2.2s linear infinite; }
:root[data-color-theme="fighter"] .node-card[data-fighter="ken"] .fighter-wave-badge { --badge-wave: #ff681f; --badge-core: #fff5bc; }
:root[data-color-theme="fighter"] .node-card[data-fighter="akuma"] .fighter-wave-badge { --badge-wave: #a22bff; --badge-core: #f7d9ff; transform: scaleX(-1) skewX(-9deg); }
:root[data-color-theme="fighter"] body[data-fighter-attacker="ryu"] .node-card[data-fighter="ryu"] .fighter-wave-badge,
:root[data-color-theme="fighter"] body[data-fighter-attacker="ken"] .node-card[data-fighter="ken"] .fighter-wave-badge,
:root[data-color-theme="fighter"] body[data-fighter-attacker="akuma"] .node-card[data-fighter="akuma"] .fighter-wave-badge { animation: fight-badge-release .86s ease-out both; }

/* 柒影：静态角色素材配合纯 CSS 刀痕、撕裂、碎片与气场，避免视频和持续 Canvas。 */
:root[data-color-theme="qiying"] body { background-color: var(--bg); background-image: radial-gradient(circle at 82% 5%, color-mix(in srgb, var(--qiying-violet) 17%, transparent), transparent 28%), radial-gradient(circle at 8% 26%, color-mix(in srgb, var(--qiying-blue) 12%, transparent), transparent 30%), repeating-linear-gradient(154deg, transparent 0 118px, color-mix(in srgb, var(--qiying-violet) 4%, transparent) 119px 121px, transparent 122px 208px); background-attachment: fixed; }
:root[data-color-theme="qiying"] body::before { position: fixed; inset: 0; z-index: 0; background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--qiying-violet) 16%, transparent) 0 1px, transparent 1.6px) 0 0 / 38px 38px, linear-gradient(116deg, transparent 0 57%, color-mix(in srgb, var(--qiying-violet) 7%, transparent) 57.1% 57.35%, transparent 57.45%); content: ""; opacity: .6; pointer-events: none; }
:root[data-color-theme="qiying"] .page-shell { isolation: isolate; position: relative; z-index: 2; }
:root[data-color-theme="qiying"] .brand-mark { border: 0; border-radius: 6px 50% 6px 50%; background: linear-gradient(145deg, #171021, #7d3fd0 56%, #d8c4ff); color: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--qiying-violet) 56%, transparent), 0 0 24px color-mix(in srgb, var(--qiying-violet) 28%, transparent); transform: rotate(-7deg); }
:root[data-color-theme="qiying"] .brand-mark::first-letter { color: #fff; }
:root[data-color-theme="qiying"] .refresh-button,
:root[data-color-theme="qiying"] .language-switch,
:root[data-color-theme="qiying"] .icon-button,
:root[data-color-theme="qiying"] .logout-button { border-color: color-mix(in srgb, var(--qiying-violet) 24%, var(--line)); backdrop-filter: blur(12px); }

:root[data-color-theme="qiying"] .qiying-hero { isolation: isolate; position: relative; display: grid; align-items: center; min-height: 410px; margin-bottom: 36px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--qiying-violet) 66%, #17101f); border-radius: 19px 7px 19px 7px; background: #08050f; box-shadow: 0 28px 78px rgba(21, 10, 42, .38), 0 0 0 1px rgba(204, 166, 255, .09) inset; }
:root[data-color-theme="qiying"] .qiying-hero::before { position: absolute; inset: -2%; z-index: -3; background: url("/status-assets/assets/qiying-idle-v1.jpg") center / cover no-repeat; content: ""; filter: saturate(1.02) contrast(1.03); transform: scale(1.01); }
:root[data-color-theme="qiying"] .qiying-hero::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 3, 12, .99) 0%, rgba(7, 4, 16, .95) 27%, rgba(9, 5, 20, .7) 46%, rgba(9, 5, 20, .08) 74%), linear-gradient(180deg, rgba(4, 2, 10, .14), transparent 68%, rgba(5, 2, 12, .58)); content: ""; pointer-events: none; }
.qiying-hero-veil { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.qiying-hero-veil::before { position: absolute; right: -9%; bottom: 14%; width: 70%; height: 4px; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(191, 132, 255, .2), rgba(249, 240, 255, .93), rgba(166, 85, 255, .5), transparent); box-shadow: 0 0 8px rgba(233, 213, 255, .85), 0 0 28px rgba(139, 60, 238, .58); content: ""; opacity: .58; transform: rotate(-23deg); transform-origin: right center; animation: qiying-blade-breathe 3.8s ease-in-out infinite; }
.qiying-hero-veil::after { position: absolute; top: 31%; right: 27.6%; width: 26px; height: 3px; border-radius: 50%; background: #ff3f72; box-shadow: 0 0 5px #fff, 0 0 12px #ff315f, 0 0 24px #b5003d; content: ""; opacity: 0; transform: rotate(-8deg); animation: qiying-eye-flash 7.6s ease-in-out infinite; }
.qiying-hero-copy { position: relative; z-index: 5; width: min(47%, 530px); padding: 50px 0 52px 58px; color: #fff; }
.qiying-kicker { display: inline-flex; align-items: center; gap: 7px; color: #c9a5ff; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.qiying-kicker::before { width: 28px; height: 1px; background: linear-gradient(90deg, #fff, #9b52ed); box-shadow: 0 0 7px #a25bf4; content: ""; }
.qiying-hero-copy h1 { max-width: 540px; margin: 16px 0 9px; font-family: "Songti SC", "STSong", "Yu Mincho", serif; font-size: clamp(42px, 5vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: .035em; text-shadow: 0 0 28px rgba(139, 66, 230, .38); text-wrap: balance; }
.qiying-hero-copy p { max-width: 430px; margin: 16px 0 0; color: #c7bad5; font-size: 14px; font-weight: 520; letter-spacing: .055em; }
.qiying-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 27px; padding: 7px 11px; border: 1px solid rgba(192, 149, 255, .36); border-radius: 3px 12px 3px 12px; background: rgba(16, 8, 29, .68); color: #e9ddf5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .07em; backdrop-filter: blur(8px); }
.qiying-status i { width: 6px; height: 6px; border-radius: 50%; background: #bd7aff; box-shadow: 0 0 0 4px rgba(179, 104, 255, .12), 0 0 13px #a955ff; animation: qiying-status-pulse 2.8s ease-in-out infinite; }
.qiying-hero-aura { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.qiying-hero-aura i { position: absolute; top: 8%; right: 2%; width: 52%; height: 86%; border: 1px solid rgba(177, 108, 255, .22); border-radius: 50%; box-shadow: 0 0 36px rgba(137, 59, 231, .11) inset; opacity: .38; transform: rotate(-13deg) scale(.86); animation: qiying-aura-breathe 5.4s ease-in-out infinite; }
.qiying-hero-aura i:nth-child(2) { inset: 17% 5% auto auto; width: 44%; height: 69%; border-color: rgba(105, 126, 255, .18); animation-delay: -1.8s; }
.qiying-hero-aura i:nth-child(3) { inset: 26% 11% auto auto; width: 34%; height: 52%; border-color: rgba(239, 210, 255, .14); animation-delay: -3.6s; }
.qiying-hero-fragments { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.qiying-hero-fragments i { position: absolute; top: 18%; left: 57%; width: 9px; height: 18px; border: 1px solid rgba(238, 220, 255, .8); background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(146,65,238,.28)); box-shadow: 0 0 12px rgba(153, 75, 244, .52); clip-path: polygon(50% 0, 100% 56%, 50% 100%, 0 46%); animation: qiying-fragment-drift 6.2s ease-in-out infinite; }
.qiying-hero-fragments i:nth-child(2) { top: 65%; left: 62%; width: 7px; height: 14px; animation-delay: -1.6s; }
.qiying-hero-fragments i:nth-child(3) { top: 24%; left: 87%; width: 6px; height: 12px; animation-delay: -2.8s; }
.qiying-hero-fragments i:nth-child(4) { top: 75%; left: 82%; width: 10px; height: 19px; animation-delay: -4.1s; }
.qiying-hero-fragments i:nth-child(5) { top: 46%; left: 95%; width: 5px; height: 10px; animation-delay: -5.2s; }

:root[data-color-theme="qiying"] .summary-card,
:root[data-color-theme="qiying"] .node-card { position: relative; border-color: color-mix(in srgb, var(--qiying-violet) 32%, var(--line)); background-image: linear-gradient(145deg, transparent 0 86%, color-mix(in srgb, var(--qiying-violet) 7%, transparent) 86%), radial-gradient(circle at 91% 11%, color-mix(in srgb, var(--qiying-blue) 12%, transparent) 0 1px, transparent 1.5px); background-size: auto, 12px 12px; backdrop-filter: blur(13px); transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
:root[data-color-theme="qiying"] .summary-card::after,
:root[data-color-theme="qiying"] .node-card::after { position: absolute; top: -1px; right: 22px; width: 88px; height: 2px; background: linear-gradient(90deg, transparent, var(--qiying-violet), #f2e7ff, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--qiying-violet) 42%, transparent); content: ""; transform: skewX(-32deg); }
:root[data-color-theme="qiying"] .summary-card:hover,
:root[data-color-theme="qiying"] .node-card:hover { border-color: color-mix(in srgb, var(--qiying-violet) 72%, var(--line)); box-shadow: 0 20px 52px rgba(42, 18, 78, .2); transform: translateY(-2px); }
:root[data-color-theme="qiying"] .summary-card strong { font-family: "Songti SC", "STSong", serif; }
:root[data-color-theme="qiying"] .history-panel { border-left: 2px solid var(--qiying-violet); background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 94%, #0d0816), color-mix(in srgb, var(--green-soft) 86%, #211036)); }
:root[data-theme="dark"][data-color-theme="qiying"] .history-panel { background: linear-gradient(135deg, #171022, #20122f 58%, #11162d); }
:root[data-color-theme="qiying"] .history-bar { border-radius: 2px 7px 2px 7px; transform: skewX(-5deg); }
:root[data-color-theme="qiying"] .status-badge,
:root[data-color-theme="qiying"] .metric-card,
:root[data-color-theme="qiying"] .incident-panel summary,
:root[data-color-theme="qiying"] .resource-preview { border-radius: 5px 13px 5px 13px; }
:root[data-color-theme="qiying"] .detail-link,
:root[data-color-theme="qiying"] .login-submit { border-radius: 4px 14px 4px 14px; background: linear-gradient(108deg, #3d1c71, #7d3fd0 55%, #a46af0); box-shadow: 0 8px 22px rgba(83, 34, 145, .24); }
:root[data-color-theme="qiying"] .detail-link:hover,
:root[data-color-theme="qiying"] .login-submit:hover { background: linear-gradient(108deg, #31165d, #6730b5 55%, #8d52d8); }

.qiying-blade-badge { display: none; }
:root[data-color-theme="qiying"] .qiying-blade-badge { position: absolute; top: -12px; right: 91px; z-index: 6; display: block; width: 62px; height: 30px; pointer-events: none; transform: rotate(-14deg); }
.qiying-blade-badge::before { position: absolute; top: 13px; left: 2px; width: 56px; height: 5px; border-radius: 80% 8px 8px 80%; background: linear-gradient(90deg, transparent 0 4%, #f8f2ff 12%, #a558f1 46%, #5f278f 83%, transparent); box-shadow: 0 0 5px #fff, 0 0 15px rgba(158, 77, 242, .75); content: ""; clip-path: polygon(0 50%, 16% 0, 100% 28%, 100% 72%, 16% 100%); }
.qiying-blade-badge i { position: absolute; top: 7px; left: 20px; width: 8px; height: 8px; border: 1px solid #e9d6ff; background: rgba(145, 61, 231, .42); box-shadow: 17px 7px 0 -2px rgba(191, 130, 255, .65), 30px -4px 0 -2px rgba(221, 187, 255, .5); transform: rotate(45deg); }
.qiying-blade-badge b { position: absolute; top: 10px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff3f72; box-shadow: 0 0 9px #ff315f; opacity: .7; }
:root[data-color-theme="qiying"] .node-card.is-qiying-striking .qiying-blade-badge { animation: qiying-badge-strike .62s cubic-bezier(.16, .78, .2, 1) both; }

.qiying-transition { --qiying-slash-angle: -24deg; visibility: hidden; position: fixed; inset: 0; z-index: 900; overflow: hidden; opacity: 0; pointer-events: none; }
.qiying-transition.is-active,
.qiying-transition.is-detail { visibility: visible; opacity: 1; }
.qiying-transition-art { position: absolute; inset: -3%; z-index: 1; background: #070410 url("/status-assets/assets/qiying-slash-v1.jpg") center / cover no-repeat; opacity: 0; transform: scale(1.07); }
.qiying-transition-shroud { position: absolute; inset: 0; z-index: 3; background: rgba(5, 3, 12, .86); backdrop-filter: blur(10px) saturate(.62); }
.qiying-transition-shroud-left { clip-path: polygon(0 0, 28% 0, 34% 13%, 33% 22%, 43% 34%, 42% 43%, 52% 54%, 51% 64%, 61% 76%, 60% 85%, 69% 100%, 0 100%); }
.qiying-transition-shroud-right { clip-path: polygon(28% 0, 100% 0, 100% 100%, 69% 100%, 60% 85%, 61% 76%, 51% 64%, 52% 54%, 42% 43%, 43% 34%, 33% 22%, 34% 13%); }
.qiying-transition-flash,
.qiying-transition-scar { position: absolute; top: -17vh; left: 28vw; z-index: 6; width: 5px; height: 142vh; border-radius: 50%; opacity: 0; transform: rotate(var(--qiying-slash-angle)); transform-origin: top center; }
.qiying-transition-flash { background: #fff; box-shadow: 0 0 7px #fff, 0 0 22px #d7b1ff, 0 0 64px 18px rgba(139, 57, 238, .75); }
.qiying-transition-scar { z-index: 5; width: 2px; background: linear-gradient(#fff, #b56bff 38%, #5e1fa0 75%, transparent); box-shadow: 0 0 4px #fff, 0 0 18px #9c48ef, 0 0 42px rgba(100, 31, 165, .7); }
.qiying-transition-shards { position: absolute; inset: 0; z-index: 7; }
.qiying-transition-shards i { position: absolute; top: 28%; left: 41%; width: 12px; height: 24px; background: linear-gradient(145deg, #fff, #9e55ed 55%, rgba(66,18,111,.2)); box-shadow: 0 0 14px #a557ef; opacity: 0; clip-path: polygon(45% 0, 100% 42%, 58% 100%, 0 65%); }
.qiying-transition-shards i:nth-child(2) { top: 44%; left: 48%; width: 8px; height: 17px; }
.qiying-transition-shards i:nth-child(3) { top: 56%; left: 54%; width: 16px; height: 29px; }
.qiying-transition-shards i:nth-child(4) { top: 68%; left: 59%; width: 7px; height: 14px; }
.qiying-transition-shards i:nth-child(5) { top: 20%; left: 36%; width: 6px; height: 13px; }
.qiying-transition-shards i:nth-child(6) { top: 77%; left: 64%; width: 11px; height: 20px; }
.qiying-transition.is-active .qiying-transition-flash { animation: qiying-transition-flash .72s cubic-bezier(.1, .74, .16, 1) both; }
.qiying-transition.is-active .qiying-transition-scar { animation: qiying-transition-scar 1.65s .08s ease-out both; }
.qiying-transition.is-revealing .qiying-transition-art { animation: qiying-transition-art 1.5s cubic-bezier(.16, .76, .2, 1) both; }
.qiying-transition.is-revealing .qiying-transition-shroud-left { animation: qiying-tear-left 1.28s .08s cubic-bezier(.15, .77, .17, 1) both; }
.qiying-transition.is-revealing .qiying-transition-shroud-right { animation: qiying-tear-right 1.28s .08s cubic-bezier(.15, .77, .17, 1) both; }
.qiying-transition.is-revealing .qiying-transition-shards i { animation: qiying-transition-shard 1.08s cubic-bezier(.14, .73, .17, 1) both; }
.qiying-transition.is-revealing .qiying-transition-shards i:nth-child(2) { animation-delay: .05s; }
.qiying-transition.is-revealing .qiying-transition-shards i:nth-child(3) { animation-delay: .11s; }
.qiying-transition.is-revealing .qiying-transition-shards i:nth-child(4) { animation-delay: .16s; }
.qiying-transition.is-revealing .qiying-transition-shards i:nth-child(5) { animation-delay: .2s; }
.qiying-transition.is-revealing .qiying-transition-shards i:nth-child(6) { animation-delay: .24s; }
.qiying-transition.is-detail .qiying-transition-shroud,
.qiying-transition.is-detail .qiying-transition-art,
.qiying-transition.is-detail .qiying-transition-shards { display: none; }
.qiying-transition.is-detail .qiying-transition-flash { animation: qiying-detail-flash .6s cubic-bezier(.12, .76, .18, 1) both; }
.qiying-transition.is-detail .qiying-transition-scar { animation: qiying-detail-scar .6s ease-out both; }

@keyframes qiying-blade-breathe { 0%, 100% { opacity: .34; filter: brightness(.9); transform: rotate(-23deg) scaleX(.94); } 48% { opacity: .86; filter: brightness(1.25); transform: rotate(-23deg) scaleX(1.02); } }
@keyframes qiying-eye-flash { 0%, 42%, 47%, 100% { opacity: 0; transform: rotate(-8deg) scaleX(.25); } 44% { opacity: .92; transform: rotate(-8deg) scaleX(1); } 45.2% { opacity: .38; transform: rotate(-8deg) scaleX(.72); } 46% { opacity: .78; transform: rotate(-8deg) scaleX(.9); } }
@keyframes qiying-status-pulse { 0%, 100% { opacity: .72; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes qiying-aura-breathe { 0%, 100% { opacity: .2; transform: rotate(-13deg) scale(.82); } 50% { opacity: .58; transform: rotate(-10deg) scale(1.03); } }
@keyframes qiying-fragment-drift { 0%, 100% { opacity: .22; transform: translate3d(0, 8px, 0) rotate(20deg); } 50% { opacity: .85; transform: translate3d(14px, -14px, 0) rotate(118deg); } }
@keyframes qiying-badge-strike { 0% { filter: brightness(1); transform: rotate(-14deg) translateX(0) scale(1); } 32% { filter: brightness(2.2); transform: rotate(-19deg) translateX(-8px) scale(1.16); } 68% { filter: brightness(1.35); transform: rotate(-14deg) translateX(15px) scale(.96); } 100% { filter: brightness(1); transform: rotate(-14deg) translateX(0) scale(1); } }
@keyframes qiying-transition-flash { 0% { opacity: 0; filter: blur(7px); transform: rotate(var(--qiying-slash-angle)) translateY(-8vh) scaleY(.15); } 18% { opacity: 1; filter: blur(0); } 54% { opacity: .96; transform: rotate(var(--qiying-slash-angle)) translateY(0) scaleY(1); } 100% { opacity: 0; filter: blur(4px); transform: rotate(var(--qiying-slash-angle)) translateY(4vh) scaleY(1.04); } }
@keyframes qiying-transition-scar { 0%, 12% { opacity: 0; filter: brightness(2); transform: rotate(var(--qiying-slash-angle)) scaleY(.08); } 25% { opacity: 1; transform: rotate(var(--qiying-slash-angle)) scaleY(1); } 72% { opacity: .8; filter: brightness(1); } 100% { opacity: 0; filter: blur(7px); transform: rotate(var(--qiying-slash-angle)) scaleY(1.02); } }
@keyframes qiying-transition-art { 0% { opacity: 0; filter: brightness(1.7) saturate(.55); transform: scale(1.11) translate3d(18px, -8px, 0); } 20% { opacity: 1; filter: brightness(1.12) saturate(1.18); } 68% { opacity: .94; transform: scale(1.015) translate3d(0, 0, 0); } 100% { opacity: 0; filter: brightness(.72) saturate(.9); transform: scale(1); } }
@keyframes qiying-tear-left { 0% { transform: translate3d(0, 0, 0); } 22% { transform: translate3d(-1.2vw, 0, 0); } 100% { transform: translate3d(-76vw, 7vh, 0) rotate(-5deg); } }
@keyframes qiying-tear-right { 0% { transform: translate3d(0, 0, 0); } 22% { transform: translate3d(1.2vw, 0, 0); } 100% { transform: translate3d(76vw, -7vh, 0) rotate(5deg); } }
@keyframes qiying-transition-shard { 0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0) scale(.35); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--shard-x), var(--shard-y), 0) rotate(290deg) scale(1.2); } }
.qiying-transition-shards i:nth-child(odd) { --shard-x: -19vw; --shard-y: -18vh; }
.qiying-transition-shards i:nth-child(even) { --shard-x: 19vw; --shard-y: 18vh; }
@keyframes qiying-detail-flash { 0% { opacity: 0; filter: blur(6px); transform: rotate(var(--qiying-slash-angle)) translateY(-8vh) scaleY(.08); } 24% { opacity: 1; filter: blur(0); } 65% { opacity: .9; transform: rotate(var(--qiying-slash-angle)) translateY(0) scaleY(1); } 100% { opacity: 0; filter: blur(5px); transform: rotate(var(--qiying-slash-angle)) translateY(3vh) scaleY(1.03); } }
@keyframes qiying-detail-scar { 0%, 22% { opacity: 0; transform: rotate(var(--qiying-slash-angle)) scaleY(.1); } 50% { opacity: 1; transform: rotate(var(--qiying-slash-angle)) scaleY(1); } 100% { opacity: 0; filter: blur(6px); transform: rotate(var(--qiying-slash-angle)) scaleY(1); } }

@keyframes fight-top-drop { from { opacity: 0; translate: 0 -16px; } to { opacity: 1; translate: 0 0; } }
@keyframes fight-hero-enter { from { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); } }
@keyframes fight-image-slam { 0% { opacity: .32; transform: scale(1.11) translateX(24px); filter: saturate(.55); } 72% { opacity: 1; transform: scale(.992) translateX(-3px); filter: saturate(1.14); } 100% { opacity: 1; transform: scale(1) translateX(0); filter: saturate(1); } }
@keyframes fight-title-hit { 0% { opacity: 0; transform: translateX(-42px) skewX(-12deg); } 74% { opacity: 1; transform: translateX(5px) skewX(-5deg); } 100% { opacity: 1; transform: translateX(0) skewX(0); } }
@keyframes fight-card-enter { from { opacity: 0; translate: -12px 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes fight-slash-pass { 0%, 9%, 100% { opacity: 0; translate: -180px 0; } 12% { opacity: .9; } 24% { opacity: 0; translate: 290px 0; } }
@keyframes fight-character-charge { 0% { opacity: 0; transform: scale(.82); } 24% { opacity: 1; transform: scale(1.04); } 68% { opacity: .72; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.2); } }
@keyframes fight-wave-right { 0% { opacity: 0; transform: translate3d(-5vw, 0, 0) scale(.28) rotate(-8deg); } 18% { opacity: 1; } 72% { opacity: 1; transform: translate3d(24vw, 0, 0) scale(1.08) rotate(2deg); } 100% { opacity: 0; transform: translate3d(31vw, 0, 0) scale(.4) rotate(5deg); } }
@keyframes fight-wave-left { 0% { opacity: 0; transform: translate3d(5vw, 0, 0) scaleX(-1) scale(.28) rotate(8deg); } 18% { opacity: 1; } 72% { opacity: 1; transform: translate3d(-24vw, 0, 0) scaleX(-1) scale(1.08) rotate(-2deg); } 100% { opacity: 0; transform: translate3d(-31vw, 0, 0) scaleX(-1) scale(.4) rotate(-5deg); } }
@keyframes fight-wave-impact { 0%, 63% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 72% { opacity: 1; transform: translate(-50%, -50%) scale(2.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(8); } }
@keyframes fight-wave-spin { to { transform: rotate(360deg); } }
@keyframes fight-badge-energy { to { transform: rotate(360deg); } }
@keyframes fight-badge-release { 0% { filter: brightness(1); } 32% { filter: brightness(2.2); transform: scale(1.22) skewX(-9deg); } 100% { filter: brightness(1); } }
@keyframes fight-ui-impact { 0%, 68% { filter: none; transform: translateX(0); } 74% { filter: brightness(1.08); transform: translateX(-2px); } 80% { transform: translateX(2px); } 100% { filter: none; transform: translateX(0); } }

:where(button, a, input, summary):focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 38%, transparent); outline-offset: 2px; }

@media (max-width: 920px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .toolbar { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .node-grid { grid-template-columns: 1fr; }
  :root[data-color-theme="anime"] .hoshizakura-hero { min-height: 340px; }
  .hoshizakura-copy { width: 62%; padding-left: 42px; }
  :root[data-color-theme="fighter"] .toushin-hero { min-height: 360px; }
  .toushin-copy { width: 53%; padding-left: 42px; }
  :root[data-color-theme="fighter"] .fighter-duel-stage::before { opacity: .24; }
  :root[data-color-theme="fighter"] .fighter-duel-stage::after { background: color-mix(in srgb, var(--bg) 72%, transparent); }
  :root[data-color-theme="qiying"] .qiying-hero { min-height: 370px; }
  .qiying-hero-copy { width: 56%; padding-left: 42px; }
  .qiying-transition { --qiying-slash-angle: -17deg; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 20px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 12px; }
  .refresh-button { flex: 1; justify-content: center; }
  .summary-grid { gap: 10px; }
  .summary-card { padding: 15px; }
  .node-card { --card-gutter: 16px; }
  .metric-grid { grid-template-columns: 1fr; }
  .history-bars { gap: 2px; }
  .resource-preview { gap: 8px; }
  .incident-item { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; }
  .login-form { padding: 22px; }
  .latency-dialog-panel { padding: 22px 18px 20px; }
  .latency-chart-wrap { min-height: 260px; }
  #latency-chart { height: 240px; }
  :root[data-color-theme="anime"] .hoshizakura-hero { min-height: 350px; border-radius: 20px; }
  :root[data-color-theme="anime"] .hoshizakura-hero::before { inset: -2% -31% -2% -8%; background-position: 61% 12%; }
  .hoshizakura-veil { background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 252, 255, .91) 43%, rgba(255, 250, 254, .45) 72%, rgba(255, 255, 255, .12)); }
  .hoshizakura-copy { width: 76%; padding: 34px 0 36px 24px; }
  .hoshizakura-copy h1 { font-size: clamp(31px, 10vw, 42px); }
  .hoshizakura-copy p { max-width: 280px; font-size: 13px; }
  .hoshizakura-status { margin-top: 22px; }
  :root[data-theme="dark"][data-color-theme="anime"] .hoshizakura-veil { background: linear-gradient(90deg, rgba(24, 18, 39, .98) 0%, rgba(28, 21, 44, .92) 48%, rgba(30, 23, 47, .48) 78%, rgba(23, 18, 37, .14)); }
  :root[data-color-theme="fighter"] .toushin-hero { min-height: 390px; box-shadow: 5px 5px 0 rgba(237, 22, 143, .2); }
  :root[data-color-theme="fighter"] .toushin-hero::before { inset: -2% -28%; background-position: 67% 32%; }
  :root[data-color-theme="fighter"] .toushin-hero::after { background: linear-gradient(90deg, rgba(3, 5, 16, .98) 0%, rgba(3, 5, 16, .9) 44%, rgba(4, 6, 18, .46) 72%, rgba(4, 6, 18, .12)); }
  .toushin-copy { width: 76%; padding: 34px 0 36px 24px; }
  .toushin-copy h1 { font-size: clamp(39px, 13vw, 54px); }
  .toushin-copy p { max-width: 265px; font-size: 12px; }
  .toushin-kicker { font-size: 8px; }
  .toushin-status { margin-top: 22px; }
  .toushin-status span { max-width: 150px; }
  :root[data-color-theme="fighter"] .fighter-wave-badge { top: -11px; right: 66px; width: 50px; height: 27px; }
  :root[data-color-theme="qiying"] .qiying-hero { min-height: 390px; border-radius: 14px 5px 14px 5px; }
  :root[data-color-theme="qiying"] .qiying-hero::before { inset: -2% -42% -2% -12%; background-position: 65% center; }
  :root[data-color-theme="qiying"] .qiying-hero::after { background: linear-gradient(90deg, rgba(5, 3, 12, .99) 0%, rgba(7, 4, 16, .94) 45%, rgba(9, 5, 20, .46) 76%, rgba(9, 5, 20, .12)); }
  .qiying-hero-copy { width: 79%; padding: 36px 0 38px 24px; }
  .qiying-hero-copy h1 { font-size: clamp(34px, 11vw, 47px); }
  .qiying-hero-copy p { max-width: 270px; font-size: 12px; }
  .qiying-kicker { font-size: 8px; letter-spacing: .1em; }
  .qiying-status { margin-top: 22px; }
  .qiying-hero-veil::after { top: 30%; right: 15%; }
  :root[data-color-theme="qiying"] .qiying-blade-badge { top: -10px; right: 64px; width: 52px; transform: rotate(-14deg) scale(.88); }
  .qiying-transition { --qiying-slash-angle: -9deg; }
  .qiying-transition-art { background-position: 58% center; }
}

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