:root{color-scheme:light dark;--bg: #f5f6f8;--bg-elevated: #ffffff;--bg-hover: #ecedf1;--border: #dde1e6;--text: #1b1e24;--text-muted: #6b7280;--accent: #3457d5;--accent-contrast: #ffffff;--danger: #c23b3b;--warning: #b8860b;--success: #1f9254;--status-created: #9ca3af;--status-linking: #b8860b;--status-active: #1f9254;--status-expired: #c2793b;--status-banned: #c23b3b;--status-offline: #6b7280;--status-deleted: #4b5563;--radius: 8px;--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}@media (prefers-color-scheme: dark){:root{--bg: #16181d;--bg-elevated: #1e2127;--bg-hover: #262a32;--border: #2e333c;--text: #e7e9ec;--text-muted: #9aa1ac;--accent: #7c96ff;--accent-contrast: #0c1020;--danger: #ef6a6a;--warning: #e0b04d;--success: #4ed08a;--status-created: #6b7280;--status-linking: #e0b04d;--status-active: #4ed08a;--status-expired: #e08a4d;--status-banned: #ef6a6a;--status-offline: #9aa1ac;--status-deleted: #6b7280;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5)}}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}a{color:var(--accent)}.app-shell{display:flex;height:100%}.sidebar{width:220px;flex-shrink:0;background:var(--bg-elevated);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 12px;gap:4px}.sidebar .brand{font-weight:700;font-size:15px;padding:8px;margin-bottom:8px}.nav-link{display:block;padding:8px 10px;border-radius:var(--radius);color:var(--text);text-decoration:none;font-size:14px}.nav-link:hover{background:var(--bg-hover)}.nav-link.active{background:var(--accent);color:var(--accent-contrast)}.sidebar-footer{margin-top:auto;font-size:12px;color:var(--text-muted);padding:8px 10px}.main{flex:1;min-width:0;overflow:auto;padding:24px}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}.page-header h1{font-size:18px;margin:0}.card{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg-elevated);color:var(--text);cursor:pointer;font-size:13px;line-height:1.2}.btn:hover{background:var(--bg-hover)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.btn-primary:hover{filter:brightness(1.05)}.btn-danger{color:var(--danger);border-color:var(--danger)}.field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.field label{font-size:12px;color:var(--text-muted)}.field input,.field select,.field textarea{padding:8px 10px;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);color:var(--text)}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}.error-text{color:var(--danger);font-size:13px}.muted{color:var(--text-muted)}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;padding:8px 12px;border-bottom:1px solid var(--border);color:var(--text-muted);font-weight:500}.table td{padding:8px 12px;border-bottom:1px solid var(--border)}.table tr:last-child td{border-bottom:none}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.status-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:12px;background:var(--bg-hover)}.login-shell{display:flex;align-items:center;justify-content:center;height:100%}.login-card{width:320px;padding:28px}.login-card h1{font-size:18px;margin:0 0 20px}.two-pane{display:flex;gap:16px;height:100%}.pane-list{width:280px;flex-shrink:0;overflow-y:auto}.pane-main{flex:1;min-width:0;display:flex;flex-direction:column}.chat-list-item{display:block;padding:10px 12px;border-bottom:1px solid var(--border);text-decoration:none;color:var(--text)}.chat-list-item:hover,.chat-list-item.active{background:var(--bg-hover)}.chat-peer{font-weight:600;font-size:13px}.chat-preview{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-feed{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.bubble-row{display:flex}.bubble-row.out{justify-content:flex-end}.bubble{max-width:60%;padding:8px 12px;border-radius:12px;font-size:13px;background:var(--bg-hover)}.bubble-row.out .bubble{background:var(--accent);color:var(--accent-contrast)}.bubble-meta{display:flex;gap:4px;align-items:center;font-size:10px;opacity:.75;margin-top:4px}.composer{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--border)}.composer textarea{flex:1;resize:none;padding:8px 10px;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);color:var(--text);min-height:38px;max-height:120px}.typing-indicator{font-size:12px;color:var(--text-muted);padding:0 16px 8px;height:16px}.empty-state{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted);font-size:13px;flex-direction:column;gap:8px}.qr-box{display:flex;flex-direction:column;align-items:center;gap:16px;padding:32px}.qr-box img{width:220px;height:220px;border:1px solid var(--border);border-radius:var(--radius);background:#fff}.link-code{font-size:28px;letter-spacing:4px;font-weight:700}code.token{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--bg-hover);padding:2px 6px;border-radius:4px;font-size:12px}
