:root { --bg: #0f1419; --surface: #1a2129; --surface-2: #232c36; --border: #2e3a46; --text: #e6edf3; --muted: #8b98a5; --accent: #4f8cff; --accent-hover: #3d78e8; --danger: #e5534b; --ok: #3fb950; --radius: 10px; } * { box-sizing: border-box; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); } button { font: inherit; cursor: pointer; } code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; } /* layout */ .center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); } .layout { min-height: 100vh; } .topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; } .brand { font-weight: 700; font-size: 1.1rem; color: var(--accent); } .brand-lg { margin: 0 0 8px; color: var(--accent); text-align: center; } .tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tab { white-space: nowrap; } .tab { background: transparent; border: none; color: var(--muted); padding: 6px 12px; border-radius: var(--radius); } .tab:hover { color: var(--text); background: var(--surface-2); } .tab.active { color: var(--text); background: var(--surface-2); } .user-area { display: flex; align-items: center; gap: 12px; margin-left: auto; } .user-name { color: var(--muted); font-size: 0.9rem; } .content { max-width: 1100px; margin: 0 auto; padding: 24px; } /* cards & grid */ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; } .card.wide { grid-column: 1 / -1; } .card h2 { margin: 0 0 16px; font-size: 1rem; } .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .card-head h2 { margin: 0; } .row { display: flex; gap: 8px; align-items: center; } /* forms */ form label { display: block; margin-bottom: 14px; font-size: 0.85rem; color: var(--muted); } form label.checkbox { display: flex; align-items: center; gap: 8px; color: var(--text); } .form label.checkbox, .card-head label.checkbox { color: var(--text); } input[type='text'], input[type='email'], input[type='password'], input[type='number'], input:not([type]) { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); } input:focus { outline: none; border-color: var(--accent); } input:disabled { opacity: 0.6; } input[type='checkbox'] { width: auto; margin: 0; } /* buttons */ .btn-primary { background: var(--accent); color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 600; } .btn-primary:hover:not(:disabled) { background: var(--accent-hover); } .btn-primary:disabled { opacity: 0.6; cursor: default; } .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: 0.85rem; } .btn-ghost:hover { background: var(--surface-2); } .btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 7px 12px; border-radius: 8px; } .btn-danger-sm { background: transparent; color: var(--danger); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; } .btn-danger-sm:hover { border-color: var(--danger); } /* auth page */ .auth-card { width: 340px; } .mode-switch { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 8px; margin-bottom: 20px; } .mode-switch button { flex: 1; background: transparent; border: none; color: var(--muted); padding: 8px; border-radius: 6px; } .mode-switch button.active { background: var(--surface-2); color: var(--text); } .auth-card .btn-primary { width: 100%; } /* tables */ .table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } .table th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--border); } .table td { padding: 10px; border-bottom: 1px solid var(--border); } .table tr:last-child td { border-bottom: none; } /* misc */ .badge { display: inline-block; margin-left: 8px; padding: 1px 7px; font-size: 0.7rem; border-radius: 999px; background: var(--surface-2); color: var(--accent); text-transform: uppercase; letter-spacing: 0.03em; } .muted { color: var(--muted); } .hint { color: var(--muted); font-size: 0.8rem; } /* Puts each limit on its own line so long hints do not overflow the card. */ .hint-line { display: block; } .error { color: var(--danger); font-size: 0.85rem; } .ok { color: var(--ok); font-size: 0.85rem; } .avatar-row { display: flex; gap: 16px; align-items: center; } .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); } .avatar-fallback { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 600; color: var(--muted); } .room-list { list-style: none; margin: 0; padding: 0; } .room-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); } .room-list li:last-child { border-bottom: none; } /* tables */ .table-wrap { width: 100%; overflow-x: auto; } .token-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .token-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; } /* responsive */ @media (max-width: 640px) { .topbar { gap: 8px 12px; padding: 10px 14px; } .content { padding: 14px; } /* Tabs take the full width on their own row and scroll horizontally. */ .tabs { order: 3; flex-basis: 100%; justify-content: flex-start; } .grid { grid-template-columns: 1fr; } .card { padding: 16px; } .auth-card { width: 100%; max-width: 340px; } .avatar-row { flex-wrap: wrap; } }