:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#17202a;background:#eef1f5;letter-spacing:0}*{box-sizing:border-box}body{height:100%;margin:0;overflow:hidden}html,#app{height:100%}button,input,select{font:inherit}button{border:1px solid #c6ced8;background:#fff;color:#17202a;border-radius:6px;padding:8px 12px;cursor:pointer}button.active,button:hover{border-color:#1864ab;background:#e7f0fa}input,select{min-height:36px;border:1px solid #c6ced8;border-radius:6px;padding:7px 10px;background:#fff}.login-shell{min-height:100vh;display:grid;place-items:center;background:#dfe5ec}.login-panel{width:min(420px,calc(100vw - 32px));display:grid;gap:14px;padding:28px;background:#fff;border:1px solid #d4dbe4;border-radius:8px;box-shadow:0 18px 50px #1e2a3824}.login-panel h1{margin:0 0 8px;font-size:22px}.login-panel label{display:grid;gap:6px;font-size:13px;color:#52606d}.app-shell{height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr);overflow:hidden}aside{background:#17202a;color:#e9edf2;display:flex;flex-direction:column;gap:8px;height:100vh;overflow:hidden;padding:18px}aside button{width:100%;text-align:left;background:transparent;color:#e9edf2;border-color:#344253}aside button.active,aside button:hover{background:#263548;border-color:#7aa7d9}.brand{font-weight:700;margin-bottom:18px}.operator{margin-top:auto;padding-top:16px;color:#aeb9c6;font-size:13px}.content{height:100vh;min-width:0;overflow-y:auto;padding:18px}.topbar,.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.topbar{justify-content:space-between;min-height:42px}.error{color:#b42318}.grid,.panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}.overview-grid{display:grid;grid-template-columns:1fr;gap:14px}.node-card,.panel,.detail{background:#fff;border:1px solid #d4dbe4;border-radius:8px;padding:14px}.node-card h2,.panel h2{margin:0 0 12px;font-size:18px}.node-card p,.panel p{margin:7px 0}.node-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.node-card-header span,.muted-line{color:#64748b;font-size:13px}.inline-loading{display:inline-flex;align-items:center;gap:7px;color:#52606d;font-size:13px}.inline-loading i,.local-spinner{width:16px;height:16px;border-radius:999px;border:2px solid rgba(24,100,171,.18);border-top-color:#1864ab;animation:loading-spin .8s linear infinite}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:10px}.metric-item{min-height:74px;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;display:grid;align-content:space-between}.metric-item span{color:#64748b;font-size:12px}.metric-item strong{font-size:20px}.status-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:700;white-space:nowrap}.status-badge.ok{background:#dcfce7;color:#166534}.status-badge.warning{background:#fef3c7;color:#92400e}.status-badge.critical,.status-badge.unavailable{background:#fee2e2;color:#991b1b}.alert-list{display:grid;gap:8px;margin-top:14px}.alert-item{padding:8px 10px;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:13px}.alert-item.critical{background:#fee2e2;color:#991b1b}.panel,.detail{margin-top:14px}.toolbar-spread{justify-content:space-between}.compact-toolbar{margin-bottom:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-heading h2{margin:0}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chart-card{border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:12px}.chart-card header,.chart-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.chart-card header span,.chart-card footer{color:#64748b;font-size:12px}.chart-scroll{width:100%;overflow-x:auto;overflow-y:hidden}.chart-card svg{display:block;min-width:100%;height:210px;margin:8px 0}.chart-card line{stroke:#cbd5e1;stroke-width:1}.chart-card .chart-grid-line{stroke:#e2e8f0}.chart-axis-label{fill:#64748b;font-size:11px}.chart-card polyline{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-hit-point{fill:transparent;cursor:crosshair}.chart-active-point{stroke:#fff;stroke-width:2;pointer-events:none}.chart-hover-line{stroke:#94a3b8;stroke-dasharray:4 4}.chart-tooltip rect{fill:#17202a;opacity:.94}.chart-tooltip{pointer-events:none}.chart-tooltip text{fill:#fff;font-size:12px;font-weight:700}.chart-tooltip .chart-tooltip-time{fill:#cbd5e1;font-weight:400}.chart-actions,.chart-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}.chart-actions button{width:32px;min-height:30px;padding:4px 0;text-align:center;font-weight:700}.chart-actions button:disabled{cursor:not-allowed;opacity:.5}.chart-loading{min-height:210px;display:grid;place-items:center;gap:8px;color:#52606d}.chart-legend span{display:inline-flex;align-items:center;gap:5px;color:#52606d;font-size:12px}.chart-legend i{width:16px;height:3px;border-radius:999px}.table-scroll{max-height:420px;overflow:auto;border:1px solid #d4dbe4;border-radius:8px;background:#fff}.table-scroll table{border:0;border-radius:0}.table-scroll thead th{position:sticky;top:0;z-index:1}.users-layout{display:grid;grid-template-columns:minmax(560px,1.05fr) minmax(440px,.95fr);gap:14px;align-items:start}.users-list-panel,.users-detail-panel{margin-top:0;min-width:0}.users-table-scroll{max-height:calc(100vh - 360px)}.user-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.user-stats-grid .metric-item{min-height:68px}.user-stats-grid .metric-item strong{font-size:18px}.bug-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.bugs-table-scroll{max-height:calc(100vh - 310px)}.bug-text-cell{min-width:320px}.bug-text-cell textarea{width:100%;min-height:72px;resize:vertical}.row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:210px}.users-detail-panel{position:sticky;top:0;max-height:calc(100vh - 78px);overflow:hidden;display:flex;flex-direction:column}.users-detail-panel pre{flex:1;max-height:none}.empty-detail{min-height:220px;display:grid;place-items:center;color:#64748b}.table-sort{border:0;background:transparent;color:inherit;padding:0;min-height:0;border-radius:0;font-weight:700}.table-sort:hover{background:transparent;color:#1864ab;border-color:transparent}.debug-view-dot{display:inline-block;width:11px;height:11px;border-radius:999px;vertical-align:middle;box-shadow:0 0 0 2px #ffffffeb,0 0 0 3px #0f172a14}.debug-view-dot.current,.debug-view-dot.fixed{background:#16a34a}.debug-view-dot.stale{background:#eab308}.debug-view-dot.missing,.debug-view-dot.open{background:#dc2626}.pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}.pager button:disabled{cursor:not-allowed;opacity:.5}.chat-pager{flex-shrink:0;justify-content:flex-start;margin-top:12px}table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #d4dbe4;border-radius:8px;overflow:hidden}th,td{padding:10px;border-bottom:1px solid #edf0f4;text-align:left;font-size:13px;vertical-align:top}th{background:#f7f9fb;color:#52606d}tbody tr{cursor:pointer}tbody tr:hover{background:#f4f8fc}tbody tr.selected{background:#e7f0fa}pre{max-height:70vh;overflow-y:auto;overflow-x:hidden;margin:0;padding:14px;background:#101820;color:#d9e2ec;border-radius:8px;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.chat-view{flex:1;min-height:0;overflow:auto;padding:12px;border:1px solid #d4dbe4;border-radius:8px;background:#f8fafc;display:grid;gap:10px;align-content:start}.chat-row{display:flex}.agent-message{justify-content:flex-start}.user-message{justify-content:flex-end}.chat-bubble{width:min(78%,720px);border:1px solid #d7dee8;border-radius:8px;padding:10px 12px;background:#fff}.user-message .chat-bubble{background:#e7f0fa;border-color:#bfd3ea}.chat-bubble header,.chat-bubble footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:12px}.chat-bubble p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.65;color:#17202a}.chat-bubble footer{margin-top:8px;justify-content:flex-end}.feedback-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:24px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:800}.feedback-badge.liked{background:#dcfce7;color:#166534;border:1px solid #86efac}.feedback-badge.disliked{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.debug-panel{flex:1;min-height:0;overflow:auto;display:grid;align-content:start;gap:14px}.debug-section{border:1px solid #d4dbe4;border-radius:8px;padding:12px;background:#f8fafc}.debug-section h3{margin:0 0 10px;font-size:15px}.debug-section label{display:grid;gap:6px}.debug-section label span{color:#52606d;font-size:13px}.debug-new-bug{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;margin-bottom:12px}.debug-new-bug textarea,.debug-bug-item textarea{width:100%;min-height:78px;resize:vertical}.debug-bug-list{display:grid;gap:10px}.debug-bug-item{border:1px solid #e2e8f0;border-radius:8px;padding:10px;background:#fff}.inline-check{display:inline-flex!important;align-items:center;grid-template-columns:none!important;gap:6px!important}.loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:center;gap:12px;align-content:center;color:#17202a;background:#eef1f5a8;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.loading-spinner{width:42px;height:42px;border-radius:999px;border:4px solid rgba(24,100,171,.18);border-top-color:#1864ab;animation:loading-spin .8s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}@media (max-width: 760px){body{overflow:auto}.app-shell{height:auto;min-height:100vh;grid-template-columns:1fr;overflow:visible}aside{position:sticky;top:0;z-index:2;flex-direction:row;height:auto;overflow-x:auto}.content{height:auto;overflow:visible}.chart-grid,.users-layout{grid-template-columns:1fr}.user-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.users-detail-panel{position:static;max-height:none}aside button{width:auto;white-space:nowrap}.operator{margin-top:0;padding-top:0}}
