:root {
    --space-void: hsl(231 48% 5%);
    --space-deep: hsl(234 44% 8%);
    --surface-glass: hsla(233 47% 12% / 0.72);
    --surface-raised: hsla(236 44% 16% / 0.82);
    --rim-default: hsla(215 92% 82% / 0.20);
    --rim-active: hsla(190 100% 70% / 0.62);
    --text-primary: hsl(213 56% 96%);
    --text-secondary: hsl(221 31% 74%);
    --text-tertiary: hsl(224 24% 56%);
    --accent-cyan: hsl(190 100% 63%);
    --accent-violet: hsl(265 100% 72%);
    --accent-pink: hsl(326 94% 69%);
    --status-success: hsl(166 87% 58%);
    --status-warning: hsl(38 95% 64%);
    --status-error: hsl(337 91% 68%);
    --status-info: hsl(221 100% 72%);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --font-ui: "Space Grotesk", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--space-void); }

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--space-void);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.48; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
[v-cloak] { display: none; }

.app-shell { position: relative; min-height: 100dvh; isolation: isolate; }
.ambient, .starfield { position: fixed; pointer-events: none; inset: 0; z-index: -1; }
.ambient { filter: blur(70px); opacity: 0.18; transform: translateZ(0); }
.ambient-cyan { background: radial-gradient(circle at 72% 22%, var(--accent-cyan), transparent 34%); }
.ambient-violet { background: radial-gradient(circle at 22% 78%, var(--accent-violet), transparent 38%); opacity: 0.13; }
.starfield { opacity: 0.4; background-image: radial-gradient(circle, hsla(213 100% 90% / 0.7) 0 1px, transparent 1px), radial-gradient(circle, hsla(265 100% 82% / 0.6) 0 1px, transparent 1px); background-position: 10% 20%, 70% 70%; background-size: 180px 220px, 240px 280px; }

.app-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--space-8); width: min(100% - 48px, 1488px); min-height: 100dvh; margin: 0 auto; padding: 24px 0; }
.nav-rail { position: sticky; top: 24px; display: flex; flex-direction: column; height: calc(100dvh - 48px); min-height: 560px; padding: var(--space-5); overflow: hidden; }
.glass-panel { position: relative; border: 1px solid var(--rim-default); border-radius: 20px; background: linear-gradient(145deg, hsla(234 50% 16% / 0.76), var(--surface-glass) 48%, hsla(230 48% 8% / 0.82)); box-shadow: inset 0 1px 0 hsla(213 100% 96% / 0.10), inset 0 -20px 40px hsla(234 55% 3% / 0.22); backdrop-filter: blur(18px); }
.nav-rail.glass-panel { background: linear-gradient(180deg, hsla(234 48% 15% / 0.85), hsla(233 48% 9% / 0.68)); }
.nav-rail::after, .glass-panel::after { position: absolute; inset: 1px; border-radius: inherit; border-top: 1px solid hsla(213 100% 96% / 0.08); pointer-events: none; content: ""; }
.brand-lockup { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; }
.brand-lockup small { margin-top: 2px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.11em; }
.brand-orb { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--rim-active); border-radius: 50%; background: radial-gradient(circle, hsla(190 100% 65% / 0.28), transparent 60%); box-shadow: 0 0 20px hsla(190 100% 64% / 0.22); }
.brand-orb::before, .brand-orb::after { position: absolute; border: 1px solid var(--accent-cyan); border-radius: 50%; content: ""; }
.brand-orb::before { width: 13px; height: 13px; opacity: 0.9; }
.brand-orb::after { width: 22px; height: 7px; transform: rotate(-35deg); opacity: 0.55; }
.brand-orb i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 12px var(--accent-cyan); }
.nav-links { display: grid; gap: var(--space-2); margin-top: 52px; }
.nav-link { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-3); border: 1px solid transparent; border-radius: 12px; color: var(--text-secondary); transition: transform 240ms var(--ease-spring), border-color 240ms var(--ease-spring), background 240ms var(--ease-spring), color 240ms var(--ease-spring); }
.nav-link:hover { transform: translateX(3px); border-color: var(--rim-default); background: hsla(215 100% 72% / 0.06); color: var(--text-primary); }
.nav-link.active { border-color: hsla(190 100% 70% / 0.32); background: linear-gradient(90deg, hsla(190 100% 63% / 0.16), transparent); color: var(--text-primary); box-shadow: inset 3px 0 var(--accent-cyan); }
.nav-glyph { display: grid; width: 22px; place-items: center; color: var(--accent-cyan); font-size: 20px; font-weight: 400; }
.rail-footer { margin-top: auto; padding: var(--space-4); border: 1px solid hsla(215 92% 82% / 0.12); border-radius: 14px; background: hsla(236 45% 14% / 0.42); }
.rail-label, .eyebrow { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.health-line { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); color: var(--status-success); }
.rail-user { display: block; overflow: hidden; margin-top: var(--space-5); color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.text-action { padding: 0; background: none; color: var(--accent-cyan); font-size: 12px; }
.rail-footer .text-action { margin-top: var(--space-2); }

.main-column { min-width: 0; padding-bottom: 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 4px 24px; }
.topbar-meta { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: var(--space-3); }
.last-updated { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; }
.icon-action, .pager-button { display: grid; place-items: center; border: 1px solid var(--rim-default); border-radius: 10px; background: hsla(234 43% 14% / 0.72); color: var(--text-primary); transition: transform 180ms var(--ease-spring), border-color 180ms var(--ease-spring), background 180ms var(--ease-spring); }
.icon-action { width: 38px; height: 38px; font-size: 22px; }
.icon-action:hover, .pager-button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--rim-active); background: hsla(190 100% 63% / 0.12); }
.error-banner { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); padding: 14px 16px; border-color: hsla(337 91% 68% / 0.42); color: var(--text-secondary); }
.error-banner .text-action { margin-left: auto; }
.entry-block { animation: enter-frame 620ms var(--ease-fluid) both; }
.entry-block:nth-child(2) { animation-delay: 70ms; }
.entry-block:nth-child(3) { animation-delay: 130ms; }
@keyframes enter-frame { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-grid { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.65fr); gap: var(--space-5); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px 16px 32px 8px; }
.accent-label { color: var(--accent-cyan); }
.hero-copy h1 { max-width: 560px; margin: 16px 0 20px; font-size: clamp(2.3rem, 5vw, 4.35rem); font-weight: 600; letter-spacing: -0.07em; line-height: 1.04; }
.hero-copy h1 em { color: var(--accent-cyan); font-style: normal; text-shadow: 0 0 28px hsla(190 100% 63% / 0.28); }
.hero-description { max-width: 420px; margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); margin-top: 30px; }
.primary-action { display: inline-flex; align-items: center; gap: var(--space-4); min-height: 44px; padding: 6px 7px 6px 18px; border-radius: 999px; background: var(--text-primary); color: var(--space-void); font-weight: 600; transition: transform 220ms var(--ease-spring), box-shadow 220ms var(--ease-spring); }
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 10px 28px hsla(190 100% 63% / 0.20); }
.action-arrow { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent-cyan); color: var(--space-void); font-size: 19px; transition: transform 220ms var(--ease-spring); }
.primary-action:hover .action-arrow { transform: translate(2px, -2px) scale(1.05); }
.sync-note { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); font-size: 12px; }

.constellation-panel { min-height: 455px; overflow: hidden; }
.panel-heading { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-6) 0; }
.panel-heading-spaced { padding-bottom: var(--space-5); }
.panel-heading h2 { margin: 5px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -0.04em; }
.panel-code { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; }
.orbit-stage { position: relative; min-height: 356px; margin: 0 var(--space-4); overflow: hidden; }
.orbit-horizon { position: absolute; right: 15%; bottom: 40px; left: 8%; height: 70px; border-radius: 50%; background: radial-gradient(ellipse at center, hsla(190 100% 63% / 0.22), transparent 68%); filter: blur(14px); }
.orbit-ring { position: absolute; top: 50%; left: 44%; width: 370px; height: 174px; border: 1px solid hsla(190 100% 68% / 0.38); border-radius: 50%; transform: translate(-50%, -50%) rotate(-16deg); box-shadow: 0 0 22px hsla(190 100% 63% / 0.08); }
.ring-b { width: 280px; height: 128px; border-color: hsla(265 100% 72% / 0.34); transform: translate(-50%, -50%) rotate(22deg); }
.ring-c { width: 210px; height: 94px; border-style: dashed; border-color: hsla(213 100% 90% / 0.22); transform: translate(-50%, -50%) rotate(-38deg); }
.orbit-core { position: absolute; top: 50%; left: 44%; display: grid; width: 116px; height: 116px; place-items: center; border: 1px solid hsla(190 100% 70% / 0.52); border-radius: 50%; background: radial-gradient(circle at 36% 30%, hsla(190 100% 70% / 0.42), hsla(226 80% 22% / 0.88) 38%, hsla(232 47% 8% / 0.96) 74%); box-shadow: 0 0 30px hsla(190 100% 63% / 0.30), inset 0 0 24px hsla(213 100% 90% / 0.14); transform: translate(-50%, -50%); }
.orbit-core strong, .orbit-core small { position: relative; z-index: 1; display: block; text-align: center; }
.orbit-core strong { font-size: 22px; font-weight: 500; letter-spacing: -0.05em; }
.orbit-core small { color: var(--text-secondary); font-size: 9px; }
.core-glow { position: absolute; inset: 16%; border: 1px solid hsla(190 100% 70% / 0.24); border-radius: 50%; animation: core-pulse 3.2s ease-in-out infinite; }
@keyframes core-pulse { 50% { transform: scale(1.12); opacity: 0.38; } }
.orbit-node { position: absolute; display: flex; align-items: center; gap: 6px; padding: 0; background: none; color: var(--text-secondary); transform: translate(-50%, -50%); transition: transform 240ms var(--ease-spring), color 240ms var(--ease-spring); }
.orbit-node:hover { z-index: 3; color: var(--text-primary); transform: translate(-50%, -50%) scale(1.07); }
.node-pulse { display: block; width: 14px; height: 14px; border: 1px solid hsla(190 100% 70% / 0.72); border-radius: 50%; background: hsla(190 100% 63% / 0.25); box-shadow: 0 0 16px hsla(190 100% 63% / 0.48); }
.orbit-node:nth-of-type(5n) .node-pulse { border-color: hsla(265 100% 72% / 0.72); background: hsla(265 100% 72% / 0.25); box-shadow: 0 0 16px hsla(265 100% 72% / 0.48); }
.node-label { max-width: 86px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.muse-art { position: absolute; right: -12px; bottom: -20px; z-index: 1; width: min(31%, 236px); min-width: 136px; max-height: 410px; object-fit: contain; object-position: bottom right; opacity: 0.78; mix-blend-mode: screen; filter: saturate(0.92) contrast(1.04) drop-shadow(0 0 26px hsla(265 100% 72% / 0.24)); pointer-events: none; }
.constellation-legend { display: flex; gap: var(--space-5); padding: 0 var(--space-6) var(--space-5); color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; }
.constellation-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.metric-tile { min-height: 164px; padding: var(--space-5); overflow: hidden; }
.metric-tile > strong { display: block; margin-top: 22px; font-size: 32px; font-weight: 500; letter-spacing: -0.07em; }
.metric-caption { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 12px; }
.metric-breakdown { display: block; margin-top: 10px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; }
.cyan-edge { border-color: hsla(190 100% 63% / 0.30); }
.violet-edge { border-color: hsla(265 100% 72% / 0.30); }
.blue-edge { border-color: hsla(221 100% 72% / 0.30); }
.pink-edge { border-color: hsla(326 94% 69% / 0.28); }
.metric-orbit { position: absolute; right: -10px; bottom: -30px; width: 110px; height: 110px; border: 1px solid hsla(190 100% 63% / 0.35); border-radius: 50%; transform: rotate(-22deg); }
.metric-orbit::after { position: absolute; inset: 16px -12px; border: 1px solid hsla(190 100% 63% / 0.25); border-radius: 50%; content: ""; }
.metric-sparkline { position: absolute; right: 18px; bottom: 28px; width: 84px; height: 30px; border-bottom: 1px solid currentColor; clip-path: polygon(0 72%, 9% 58%, 18% 66%, 29% 22%, 39% 44%, 49% 17%, 60% 52%, 70% 36%, 81% 61%, 91% 12%, 100% 32%, 100% 100%, 0 100%); opacity: 0.9; }
.blue-spark { color: var(--status-info); background: hsla(221 100% 72% / 0.16); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr); gap: var(--space-5); margin-top: var(--space-5); }
.account-panel, .chat-panel { overflow: hidden; }
.account-table, .chat-table { display: grid; padding: 0 var(--space-4); }
.account-row, .chat-row { display: grid; align-items: center; gap: var(--space-3); min-width: 0; border-bottom: 1px solid hsla(215 92% 82% / 0.10); }
.account-row { grid-template-columns: minmax(170px, 1.45fr) minmax(100px, 0.8fr) minmax(105px, 0.82fr) minmax(100px, 0.82fr) 22px; }
.chat-row { grid-template-columns: minmax(200px, 1.4fr) minmax(72px, 0.5fr) minmax(88px, 0.65fr) minmax(100px, 0.72fr) minmax(110px, 0.75fr) 22px; }
.account-header, .chat-header { min-height: 38px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
.account-data, .chat-data { width: 100%; min-height: 76px; padding: 10px 0; background: none; color: var(--text-primary); text-align: left; transition: background 180ms var(--ease-spring), transform 180ms var(--ease-spring); }
.account-data:hover, .chat-data:hover { border-color: hsla(190 100% 63% / 0.3); background: linear-gradient(90deg, hsla(190 100% 63% / 0.08), transparent 76%); transform: translateX(3px); }
.account-identity, .chat-identity { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.account-identity > span, .chat-identity > span { min-width: 0; }
.account-identity strong, .account-identity small, .chat-identity strong, .chat-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity strong, .chat-identity strong { font-size: 13px; font-weight: 500; }
.account-identity small, .chat-identity small { margin-top: 4px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; }
.account-avatar, .detail-avatar { display: grid; flex: 0 0 auto; place-items: center; border: 1px solid hsla(190 100% 63% / 0.44); border-radius: 50%; background: radial-gradient(circle at 35% 25%, hsla(190 100% 63% / 0.46), hsla(265 100% 72% / 0.16) 58%, hsla(234 44% 8% / 0.9)); color: var(--text-primary); font-style: normal; font-weight: 600; }
.account-avatar { width: 36px; height: 36px; font-size: 11px; }
.chat-orb { display: block; width: 28px; height: 28px; border: 1px solid hsla(190 100% 63% / 0.5); border-radius: 50%; background: radial-gradient(circle, hsla(190 100% 63% / 0.45), transparent 62%); box-shadow: 0 0 12px hsla(190 100% 63% / 0.16); }
.chat-orb.type-channel { border-color: hsla(265 100% 72% / 0.60); background: radial-gradient(circle, hsla(265 100% 72% / 0.48), transparent 62%); }
.chat-orb.type-group, .chat-orb.type-supergroup { border-color: hsla(221 100% 72% / 0.60); background: radial-gradient(circle, hsla(221 100% 72% / 0.48), transparent 62%); }
.count-cluster strong, .count-cluster small { display: block; }
.count-cluster strong { font-size: 13px; font-weight: 500; }
.count-cluster small, .chat-time { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; }
.row-arrow { color: var(--accent-cyan); font-size: 19px; transition: transform 180ms var(--ease-spring); }
.account-data:hover .row-arrow, .chat-data:hover .row-arrow { transform: translate(2px, -2px); }
.signal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-tertiary); box-shadow: 0 0 8px currentColor; color: var(--text-tertiary); }
.signal-dot.success, .status-ready .signal-dot, .activity-active .signal-dot { background: var(--status-success); color: var(--status-success); }
.signal-dot.info, .status-syncing .signal-dot { background: var(--status-info); color: var(--status-info); }
.signal-dot.warning, .status-pending .signal-dot, .activity-quiet .signal-dot { background: var(--status-warning); color: var(--status-warning); }
.signal-dot.error, .status-error .signal-dot { background: var(--status-error); color: var(--status-error); }
.signal-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 11px; white-space: nowrap; }
.status-ready, .activity-active { color: var(--status-success); }
.status-syncing { color: var(--status-info); }
.status-pending, .activity-quiet { color: var(--status-warning); }
.status-error { color: var(--status-error); }
.activity-archived { color: var(--text-tertiary); }
.activity-unknown { color: var(--text-secondary); }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; }
.pagination-bar > div { display: flex; gap: var(--space-2); }
.pager-button { width: 30px; height: 30px; font-size: 16px; }
.side-stack { display: grid; align-content: start; gap: var(--space-5); }
.scheduler-card, .activity-card { overflow: hidden; }
.scheduler-core { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6); }
.scheduler-ring { position: relative; display: grid; width: 78px; height: 78px; place-items: center; border: 1px solid hsla(190 100% 63% / 0.50); border-radius: 50%; background: conic-gradient(var(--accent-cyan) 0 74%, hsla(190 100% 63% / 0.10) 74% 100%); box-shadow: 0 0 24px hsla(190 100% 63% / 0.14); }
.scheduler-ring::before { position: absolute; inset: 8px; border-radius: inherit; background: var(--space-deep); content: ""; }
.scheduler-ring i { position: relative; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 15px var(--accent-cyan); }
.scheduler-core strong, .scheduler-core small { display: block; }
.scheduler-core strong { font-size: 18px; font-weight: 500; }
.scheduler-core small { max-width: 150px; margin-top: 6px; color: var(--text-tertiary); font-size: 11px; }
.scheduler-list { margin: 0 var(--space-6); border-top: 1px solid hsla(215 92% 82% / 0.11); }
.scheduler-list div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 13px 0; border-bottom: 1px solid hsla(215 92% 82% / 0.11); }
.scheduler-list dt { color: var(--text-tertiary); font-size: 11px; }
.scheduler-list dd { max-width: 160px; margin: 0; color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; text-align: right; }
.scheduler-note { display: flex; gap: var(--space-2); margin: var(--space-5) var(--space-6) var(--space-6); color: var(--text-tertiary); font-size: 11px; }
.scheduler-note .signal-dot { flex: 0 0 auto; margin-top: 5px; }
.activity-card { padding-bottom: var(--space-6); }
.activity-card > p { margin: var(--space-5) var(--space-6); color: var(--text-secondary); font-size: 12px; line-height: 1.7; }
.activity-bar { height: 6px; margin: 0 var(--space-6); overflow: hidden; border-radius: 999px; background: hsla(215 92% 82% / 0.12); }
.activity-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet)); box-shadow: 0 0 15px hsla(190 100% 63% / 0.42); transition: width 500ms var(--ease-fluid); }
.activity-foot { display: flex; justify-content: space-between; gap: var(--space-3); margin: 10px var(--space-6) 0; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; }

.auth-stage { display: grid; min-height: 100dvh; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 460px); padding: 40px; overflow: hidden; }
.auth-card h1 { margin: 14px 0 8px; font-size: 34px; font-weight: 600; letter-spacing: -0.06em; }
.auth-copy { margin: 0 0 28px; color: var(--text-secondary); line-height: 1.7; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 12px; }
.auth-form input, .search-control input { width: 100%; border: 1px solid var(--rim-default); border-radius: 10px; background: hsla(234 44% 8% / 0.70); color: var(--text-primary); }
.auth-form input { min-height: 44px; padding: 0 13px; }
.auth-form input:focus, .search-control input:focus { border-color: var(--rim-active); outline: none; box-shadow: 0 0 0 3px hsla(190 100% 63% / 0.10); }
.form-error { margin: 0; color: var(--status-error); font-size: 12px; }
.auth-form .primary-action { justify-content: space-between; margin-top: 5px; }
.auth-orbit { position: absolute; top: -90px; right: -60px; width: 240px; height: 240px; border: 1px solid hsla(265 100% 72% / 0.36); border-radius: 50%; transform: rotate(-20deg); }
.auth-orbit::before, .auth-orbit::after { position: absolute; inset: 28px -14px; border: 1px solid hsla(190 100% 63% / 0.34); border-radius: 50%; content: ""; }
.auth-orbit::after { inset: 68px 48px; background: radial-gradient(circle, var(--accent-violet), transparent 60%); filter: blur(8px); border: 0; }

.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: end; padding: 8px 4px 28px; }
.back-link { grid-column: 1 / -1; justify-self: start; padding: 0; background: none; color: var(--text-secondary); font-size: 12px; transition: color 180ms var(--ease-spring), transform 180ms var(--ease-spring); }
.back-link:hover { color: var(--accent-cyan); transform: translateX(-3px); }
.detail-identity { display: flex; align-items: center; gap: var(--space-5); }
.detail-avatar { width: 72px; height: 72px; font-size: 20px; box-shadow: 0 0 30px hsla(190 100% 63% / 0.18); }
.detail-identity h1 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.07em; line-height: 1; }
.detail-contact { display: block; margin-bottom: 8px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 11px; }
.detail-metrics { display: flex; gap: 28px; }
.detail-metrics div { min-width: 82px; padding-left: 16px; border-left: 1px solid var(--rim-default); }
.detail-metrics strong { display: block; margin-top: 7px; font-size: 24px; font-weight: 500; letter-spacing: -0.06em; }
.chat-panel { min-height: 420px; }
.search-control { display: flex; align-items: center; gap: 7px; min-width: 190px; color: var(--text-tertiary); }
.search-control input { height: 34px; padding: 0 10px; font-size: 12px; }
.search-control input::placeholder { color: var(--text-tertiary); }
.loading-stack { display: grid; gap: 20px; padding: 20px; }
.skeleton-line { display: block; height: 52px; border-radius: 10px; background: linear-gradient(90deg, hsla(215 92% 82% / 0.05), hsla(190 100% 63% / 0.15), hsla(215 92% 82% / 0.05)); background-size: 220% 100%; animation: skeleton-wave 1.4s ease-in-out infinite; }
@keyframes skeleton-wave { 50% { background-position: -120% 0; } }
.empty-state { display: grid; gap: 8px; place-items: center; min-height: 280px; padding: 40px; color: var(--text-tertiary); text-align: center; }
.empty-state strong { color: var(--text-secondary); font-weight: 500; }
.empty-orb { display: grid; width: 54px; height: 54px; margin-bottom: 8px; place-items: center; border: 1px solid var(--rim-default); border-radius: 50%; color: var(--accent-cyan); font-size: 26px; }

@media (max-width: 1180px) {
    .app-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; width: min(100% - 32px, 1488px); }
    .account-row { grid-template-columns: minmax(140px, 1.4fr) minmax(90px, 0.8fr) minmax(92px, 0.8fr) minmax(86px, 0.8fr) 18px; }
    .muse-art { opacity: 0.56; }
}

@media (max-width: 900px) {
    .app-layout { display: block; width: min(100% - 32px, 720px); padding-top: 16px; }
    .nav-rail { position: relative; top: auto; display: flex; flex-direction: row; align-items: center; height: auto; min-height: 0; padding: 12px 16px; }
    .nav-links { display: flex; gap: 5px; margin: 0 0 0 auto; }
    .nav-link { min-height: 36px; padding: 0 10px; }
    .nav-link span:last-child, .rail-footer { display: none; }
    .nav-glyph { width: auto; font-size: 18px; }
    .main-column { padding-top: 24px; }
    .hero-grid, .content-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 24px 4px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .app-layout { width: min(100% - 24px, 560px); }
    .topbar { align-items: flex-start; padding-bottom: 18px; }
    .last-updated { display: none; }
    .hero-copy h1 { font-size: clamp(2.25rem, 13vw, 3.6rem); }
    .hero-description { font-size: 14px; }
    .constellation-panel { min-height: 390px; }
    .orbit-stage { min-height: 290px; }
    .orbit-ring { left: 42%; width: 300px; height: 140px; }
    .ring-b { width: 230px; height: 110px; }
    .ring-c { width: 170px; height: 80px; }
    .orbit-core { left: 42%; width: 98px; height: 98px; }
    .orbit-core strong { font-size: 18px; }
    .muse-art { right: -24px; width: 45%; min-width: 118px; opacity: 0.42; }
    .constellation-legend { display: grid; gap: 7px; padding-left: 20px; }
    .metric-grid, .side-stack { grid-template-columns: 1fr; }
    .account-table, .chat-table { padding: 0 12px; }
    .account-header, .chat-header { display: none; }
    .account-data { grid-template-columns: minmax(0, 1fr) auto; min-height: 78px; }
    .account-data > span:nth-child(2), .account-data > span:nth-child(3), .account-data > span:nth-child(4) { display: none; }
    .chat-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 74px; }
    .chat-data > span:nth-child(2), .chat-data > span:nth-child(3), .chat-data > span:nth-child(4), .chat-data > span:nth-child(5) { display: none; }
    .panel-heading { padding-right: 18px; padding-left: 18px; }
    .search-control { min-width: 128px; }
    .detail-hero { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; }
    .detail-metrics { gap: 14px; }
    .detail-metrics div { min-width: 70px; }
    .auth-card { padding: 28px 22px; }
}

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