:root {
    color-scheme: light; --ink: #222538; --muted: #656b80; --paper: #fff;
    --background: #f4f5fa; --border: #e1e3ee; --primary: #4e46d8;
    --primary-dark: #3932b5; --sidebar: #171a2b; font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 1.05rem; }
a { color: var(--primary-dark); }
input, button, .button, select { font: inherit; }
input, button, .button { min-height: 40px; border-radius: 8px; }
input { width: 100%; padding: 8px 12px; color: var(--ink); background: var(--paper); border: 1px solid #cbd0df; }
input[readonly] { background: #f5f4fa; font-family: ui-monospace, monospace; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; color: var(--ink); background: var(--paper); border: 1px solid #cbd0df; padding: 6px 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .button:hover { background: #f0eef9; }
.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.primary:hover { background: var(--primary-dark); }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #9a85ec; outline-offset: 2px; }
label { display: grid; gap: 5px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f8f9fc; color: #666d82; font-weight: 650; font-size: .79rem; text-transform: uppercase; letter-spacing: .035em; }
th, td { padding: 14px 18px; border-top: 1px solid var(--border); }
tbody tr:hover { background: #fafaff; }
td small { display: block; color: var(--muted); overflow-wrap: anywhere; }
a.skip { position: fixed; top: 8px; left: 8px; z-index: 2; padding: 8px; background: white; transform: translateY(-150%); }
a.skip:focus { transform: none; }
.muted { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 750; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #bfaaff; color: #241643; font-weight: 800; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 28px 18px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; gap: 28px; }
nav { display: grid; gap: 6px; }
nav a { color: #b8bbcc; padding: 11px 12px; border-radius: 9px; text-decoration: none; font-weight: 550; }
nav a span { display: inline-grid; width: 24px; color: #a8a2ff; }
nav a:hover, nav a.selected { color: #fff; background: #292d43; }
.sidebar-bottom { margin-top: auto; }
.domain { color: #d9d0f0; font-size: .85rem; overflow-wrap: anywhere; }
.signout { border: 0; padding: 0; background: transparent; color: #fff; font-size: .9rem; }
.signout:hover { background: transparent; text-decoration: underline; }
.workspace { margin-left: 244px; padding: clamp(24px, 4.5vw, 64px); max-width: 1560px; }
.signed-out { min-height: 100vh; padding: 20px; display: grid; place-items: center; }
.heading { margin-bottom: 30px; }
.heading p { margin-top: 7px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.eyebrow { color: var(--primary); font-weight: 750; letter-spacing: .09em; font-size: .75rem; margin-bottom: 8px; }
.live-indicator { color: #477261; font-size: .84rem; font-weight: 650; padding-bottom: 5px; }
.live-indicator i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #42aa7c; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px #282d4210; }
.login { width: min(100%, 420px); padding: 32px; }
.login h1 { margin-top: 25px; }
.login form { margin-top: 20px; }
.stack { display: grid; gap: 14px; }
.detail { padding: 24px; max-width: 660px; }
.detail h1 { font-size: 1.55rem; }
.detail ul { margin: 0; padding-left: 1.4rem; }
.inline, .actions { display: flex; align-items: center; gap: 8px; }
.create-panel, .table-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; }
.create-panel { margin-bottom: 22px; border-color: #dfdefb; background: linear-gradient(110deg, #fff 55%, #f6f5ff); }
.create-copy { display: flex; gap: 13px; align-items: center; }
.create-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edecff; color: var(--primary); font-size: 1.5rem; }
.create-copy p, .table-heading .muted, .activity-toolbar p { margin-top: 4px; font-size: .88rem; }
.create-panel input { width: min(250px, 50vw); }
.table-heading { padding-block: 20px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters select { min-height: 40px; padding: 7px 30px 7px 10px; border: 1px solid #cbd0df; border-radius: 8px; color: var(--ink); background: white; }
.searchbox { position: relative; display: flex; align-items: center; }
.searchbox span { position: absolute; left: 11px; color: var(--muted); font-size: 1.35rem; line-height: 1; }
.searchbox input { min-width: 220px; padding-left: 34px; }
.accounts .count { margin-left: 5px; padding: 2px 6px; border-radius: 6px; font-size: .82rem; background: #f0ecfb; color: #4a359d; }
.table-scroll { overflow-x: auto; }
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.active { background: #e5f5ed; color: #186148; }
.disabled { background: #eeeef3; color: #535768; }
.pagination, .empty { padding: 14px 18px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
.pagination div { display: flex; gap: 8px; }
.account-link { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.account-link:hover strong { color: var(--primary); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #edecff; color: var(--primary); font-weight: 750; }
.activity-panel { overflow: hidden; }
.activity-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 20px; }
.log-note { padding: 10px 18px; color: var(--muted); font-size: .84rem; }
.source-empty { min-height: 280px; padding: 38px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--border); }
.source-empty h2 { margin: 12px 0 7px; }
.source-empty p { max-width: 600px; color: var(--muted); }
.source-empty a { margin-top: 17px; font-weight: 650; text-decoration: none; }
.source-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #f0efff; color: var(--primary); font-size: 1.35rem; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.error, .danger-text { color: #942337; }
.danger { color: #942337; border-color: #daabaf; }
details { border-top: 1px solid var(--border); padding-top: 14px; }
details p { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.qr { width: min(240px, 100%); height: auto; aspect-ratio: 1; border: 1px solid var(--border); }
@media (max-width: 760px) {
    .sidebar { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 15px; }
    .sidebar nav { display: flex; flex-wrap: wrap; order: 3; width: 100%; }
    .sidebar-bottom { margin: 0 0 0 auto; }
    .sidebar-bottom .domain { display: none; }
    .workspace { margin-left: 0; padding: 22px 15px; }
    .inline.search { flex-wrap: wrap; }
    .page-heading { align-items: start; flex-direction: column; }
    .filters { width: 100%; }
    .filters select, .searchbox, .searchbox input { flex: 1; min-width: 145px; }
    .create-panel form { width: 100%; }
    .create-panel input { flex: 1; width: auto; }
    th, td { padding-inline: 12px; }
}
