:root { color-scheme: light; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; color:#172638; background:#f4f7fb; font-size:16px; --muted:#65758a; --border:#e2e8f0; --blue:#2563eb; }
* { box-sizing:border-box; }
body { margin:0; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.45; cursor:default; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.table-scroll:focus-visible { outline:3px solid #93b4ff; outline-offset:3px; }
.topbar { height:76px; padding:0 36px; background:#fff; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:flex; align-items:center; gap:14px; }
.brand strong { font-size:1.15rem; letter-spacing:.025em; }
.brand-icon { display:grid; place-items:center; width:34px; height:34px; background:var(--blue); color:#fff; border-radius:9px; font-weight:800; }
.brand-divider { height:22px; width:1px; background:var(--border); margin:0 6px; }
.badge { background:#edf2f8; color:#53657c; border-radius:30px; padding:8px 14px; font-size:.875rem; white-space:nowrap; }
.badge.online { background:#e9f7f0; color:#187145; }
.badge.offline { background:#fff1df; color:#925a15; }
main { max-width:1500px; margin:0 auto; padding:36px; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.eyebrow { color:var(--blue); margin:0 0 10px; font-size:.875rem; font-weight:600; }
h1 { margin:0; font-size:1.9rem; letter-spacing:-.04em; font-weight:650; }
.subtitle { margin:12px 0 0; color:var(--muted); line-height:1.6; }
.timezone { color:var(--muted); font-size:.875rem; padding-bottom:5px; white-space:nowrap; }
.stats { display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:18px; }
.stat { background:white; border:1px solid var(--border); border-radius:12px; padding:22px 24px; display:flex; flex-direction:column; gap:10px; }
.stat>span { color:var(--muted); font-size:.875rem; }
.stat strong { font-size:2rem; font-weight:650; font-variant-numeric:tabular-nums; }
.stat .date-stat { font-size:1.3rem; line-height:2.4rem; }
.stat small { color:var(--muted); font-size:.875rem; }
.connections-panel { border:1px solid var(--border); border-radius:10px; margin:20px 0; background:#fff; padding:16px 20px; }
summary { cursor:pointer; font-size:.875rem; }
summary>span { color:var(--muted); margin-left:8px; }
.connection-list { display:flex; flex-wrap:wrap; gap:10px; padding-top:16px; }
.connection-card { padding:12px 16px; border:1px solid var(--border); border-radius:8px; font-size:.875rem; background:#fafcff; }
.connection-card p { margin:6px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.workspace { background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; box-shadow:0 3px 16px #16346204; }
.workspace-heading { display:flex; align-items:center; justify-content:space-between; padding:14px 22px; border-bottom:1px solid var(--border); gap:12px; }
.tabs { display:flex; align-items:center; gap:6px; }
.tab { border:0; background:transparent; padding:10px 16px; border-radius:7px; color:var(--muted); font-size:.875rem; }
.tab.active { color:var(--blue); background:#edf3ff; font-weight:650; }
.button { border:1px solid var(--border); border-radius:7px; padding:9px 14px; font-size:.875rem; white-space:nowrap; min-height:39px; }
.primary { background:var(--blue); color:white; border-color:var(--blue); }
.primary:hover { background:#1d4ed8; }
.secondary { background:#fff; color:#34455b; }
.secondary:hover { background:#f6f8fc; }
.filters { display:grid; grid-template-columns:1.3fr 1fr 1.1fr; gap:16px; padding:22px; border-bottom:1px solid var(--border); background:#fcfdff; }
label { display:flex; flex-direction:column; gap:8px; font-size:.875rem; color:#4b5e75; min-width:0; }
input { width:100%; border:1px solid #d7dfeb; border-radius:7px; padding:10px 12px; background:#fff; color:#172638; min-height:42px; font-size:.875rem; }
input::placeholder { color:#8491a3; }
.filter-actions { display:flex; align-items:flex-end; gap:10px; }
.live-console { padding:22px; border-bottom:1px solid var(--border); }
.console-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.console-heading h2 { margin:0; font-size:1rem; font-weight:600; }
.console-heading>span,.console-note { color:var(--muted); font-size:.875rem; }
.console-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:20px; }
.console-output { min-width:0; }
#message-text { display:block; width:100%; height:250px; min-height:150px; resize:vertical; border:1px solid #d7dfeb; border-radius:8px; background:#f8faff; padding:14px 16px; font-family:Consolas,"Cascadia Code",monospace; font-size:.875rem; line-height:1.75; color:#23354f; }
.console-note { margin:9px 0 0; line-height:1.5; }
.console-sidebar label { margin-bottom:9px; }
.console-sidebar select { appearance:none; width:100%; border:1px solid #d7dfeb; border-radius:7px; background:#fff; padding:10px 30px 10px 12px; font-size:.875rem; color:#26394f; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2365758a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.selected-connection { font-size:.875rem; line-height:1.7; color:var(--muted); overflow-wrap:anywhere; margin-top:16px; }
.selected-connection p { margin:7px 0; }
.selected-connection strong { color:#344b68; font-weight:500; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.list-toolbar { display:flex; justify-content:space-between; padding:15px 22px; color:var(--muted); gap:12px; font-size:.875rem; }
.new-count { color:var(--blue); }
.table-scroll { overflow:auto; max-height:58vh; min-height:240px; border-top:1px solid var(--border); }
table { border-collapse:separate; border-spacing:0; width:100%; min-width:780px; table-layout:fixed; }
th { position:sticky; top:0; z-index:1; background:#f5f7fb; color:#65758a; text-align:left; font-size:.875rem; font-weight:500; border-bottom:1px solid var(--border); padding:13px 20px; }
td { padding:16px 20px; vertical-align:top; border-bottom:1px solid #edf0f5; font-size:.875rem; overflow-wrap:anywhere; line-height:1.6; }
tr:hover td { background:#fafcff; }
.time-column { width:215px; }
.source-column { width:205px; }
.reason-column { width:120px; }
td .secondary-text { display:block; color:var(--muted); margin-top:5px; font-size:.875rem; }
.raw-text { font-family:Consolas,"Cascadia Code",monospace; white-space:pre-wrap; margin:0; font-size:.875rem; line-height:1.65; overflow-wrap:anywhere; }
.reason { display:inline-block; padding:2px 8px; border-radius:5px; background:#eef2f7; color:#53657b; white-space:nowrap; }
.reason.interrupted { background:#fff0df; color:#966018; }
.expand { border:0; background:transparent; color:var(--blue); padding:8px 0 0; font-size:.875rem; }
.empty { padding:44px 20px; text-align:center; color:var(--muted); }
.empty h2 { font-size:1rem; color:#415570; margin:12px 0; }
.empty p { font-size:.875rem; }
.empty-icon { display:inline-grid; place-items:center; width:48px; height:48px; border:1px solid var(--border); border-radius:12px; font-size:1.8rem; color:#90a0b7; }
.list-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 22px; color:var(--muted); font-size:.875rem; border-top:1px solid var(--border); }
.pagination { display:flex; align-items:center; gap:12px; }
.page-footer { color:var(--muted); font-size:.875rem; text-align:center; line-height:1.8; margin:24px 0 0; }
.page-footer span { padding:0 8px; }
.error { margin:16px 22px 0; background:#fff0ef; color:#a93128; padding:12px 16px; border-radius:7px; font-size:.875rem; }
.muted { color:var(--muted); font-size:.875rem; }
dialog { border:1px solid var(--border); border-radius:12px; padding:24px; width:min(900px,90vw); max-height:85vh; }
dialog::backdrop { background:#17263870; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.dialog-heading h2 { margin:0; font-size:1.2rem; }
dialog pre { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
[hidden] { display:none !important; }
@media(max-width:850px) { main { padding:24px 18px; } .topbar { padding:0 18px; } .page-heading { display:block; } .timezone { display:block; margin-top:16px; } .stats { grid-template-columns:1fr 1fr; } .stat:last-child { grid-column:1/-1; } .filters { grid-template-columns:1fr 1fr; } .list-footer { flex-wrap:wrap; } .console-layout { grid-template-columns:1fr; } .console-sidebar { grid-row:1; } .console-heading { align-items:flex-start; flex-direction:column; } }
@media(max-width:520px) { .topbar { height:auto; min-height:70px; gap:10px; } .brand { gap:8px; font-size:.875rem; } .brand-divider { margin:0; } .brand-icon { width:28px; height:28px; } .badge { padding:6px 10px; } h1 { font-size:1.55rem; } .stat { padding:18px; } .stat small { line-height:1.5; } .filters { grid-template-columns:1fr; padding:18px; } .workspace-heading { padding:12px; } .tab { padding:10px; } .button { padding:9px 10px; } .page-footer { text-align:left; } }
