:root {
    color-scheme: dark;
    font: 15px/1.5 system-ui, sans-serif;
    color: #f4f4f5;
    background: #0c0d10;
    --surface: #15161b;
    --control: #191b21;
    --border: #2b2d35;
    --muted: #a4a7b3;
    --focus: #a9bcff;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, p { margin: 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mark {
    display: inline-grid;
    grid-template-columns: auto auto;
    place-content: center;
    width: 2.15rem;
    height: 2.15rem;
    flex: none;
    border-radius: 0.6rem;
    color: #15161b;
    background: #eff0f3;
    font: 800 0.95rem/1 ui-monospace, monospace;
    letter-spacing: -0.08em;
}
.mark span { color: #4a5279; }

.login {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 2.5rem 1.25rem;
}
.sign-in { width: min(100%, 21rem); }
.sign-in-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.sign-in-brand .mark { width: 2.9rem; height: 2.9rem; font-size: 1.22rem; }
.sign-in h1 {
    margin: 1.35rem 0 1.65rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}
.sign-in form { display: grid; }
.sign-in label { margin-bottom: 0.42rem; font-size: 0.87rem; font-weight: 550; }
.sign-in input, .search input {
    min-width: 0;
    padding: 0.63rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.43rem;
    background: var(--surface);
    color: inherit;
}
.sign-in input { width: 100%; margin-bottom: 1rem; }
.sign-in button {
    padding: 0.63rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.43rem;
    color: #171820;
    background: #eeeef2;
    font-weight: 650;
}
.sign-in button:hover { background: #d9dcf0; }
.notice {
    margin: 0 0 1rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #683d49;
    border-radius: 0.43rem;
    background: #251921;
    color: #ffc2cb;
}

.top {
    display: flex;
    align-items: center;
    min-height: 4.2rem;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--border);
}
.brand, .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.63rem;
    font-weight: 620;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link { padding: 0.45rem 0; font-size: 0.9rem; }
.nav-link:hover { color: var(--focus); }
.account {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.65rem;
    color: var(--muted);
    font-size: 0.86rem;
}
.avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: 0.43rem;
    color: #dddfe7;
    background: var(--control);
    font-size: 0.7rem;
}
.account button, .search button, .open {
    padding: 0.43rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.42rem;
    color: #ececf1;
    background: var(--control);
    font-size: 0.84rem;
    font-weight: 550;
    white-space: nowrap;
}
.account button:hover, .search button:hover, .open:hover { background: #232633; }

.dashboard { margin: auto; max-width: 91rem; padding: clamp(2.1rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem); }
.dashboard h1 { font-size: clamp(1.95rem, 4vw, 2.55rem); line-height: 1.1; letter-spacing: -0.045em; }
.search { display: flex; align-items: center; gap: 0.45rem; max-width: 35rem; margin-top: 1.5rem; }
.search input { flex: 1; min-height: 2.35rem; font-size: 0.87rem; }
.search input::placeholder { color: var(--muted); }
.clear { padding: 0.3rem; font-size: 0.83rem; color: #b9c6ff; }
.count { margin: 0.65rem 0 0.9rem; color: var(--muted); font-size: 0.8rem; }

.table-frame, .empty { border: 1px solid var(--border); border-radius: 0.52rem; overflow: hidden; }
.empty { padding: 1.2rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.66rem clamp(0.65rem, 1.5vw, 1rem); }
th { color: var(--muted); background: #111217; font-size: 0.8rem; font-weight: 550; }
td { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; }
tbody tr:hover { background: #111319; }
.workspace-name { display: flex; align-items: center; gap: 0.7rem; overflow-wrap: anywhere; }
.workspace-name h2 { color: #f4f4f5; font-size: 0.95rem; font-weight: 630; }
.workspace-icon { display: grid; flex: none; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: 0.4rem; background: var(--control); color: #b9c6ff; font: 600 0.75rem ui-monospace, monospace; }
.assigned { display: inline-flex; align-items: center; gap: 0.45rem; color: #8bd9ae; }
.assigned::before { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; content: ""; }
.action { text-align: right; width: 1%; }
.open { display: inline-flex; align-items: baseline; gap: 0.45rem; text-decoration: none; }
.open span { color: var(--muted); }

@media (max-width: 600px) {
    .connection, .account-name { display: none; }
}
@media (max-width: 430px) {
    .top { flex-wrap: wrap; column-gap: 0.8rem; }
    .avatar, .access { display: none; }
    .top nav { order: 1; flex-basis: 100%; }
}
