/* Design tokens, reset, and shared controls (buttons, inputs, select). */

:root {
    --bg: #0b0d12;
    --panel: #12151d;
    --panel-2: #171b25;
    --line: #232838;
    --text: #e7eaf3;
    --muted: #8b93a7;
    --accent: #5b8cff;
    --accent-soft: rgba(91, 140, 255, .16);
    --radius: 12px;
    --topbar-h: 56px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

svg .fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

.btn:hover { background: #1e2432; border-color: #303649; }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
}

.btn-primary:hover { background: #6f9bff; border-color: #6f9bff; }

.btn-ghost { width: 34px; padding: 0; justify-content: center; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn:disabled { opacity: .4; cursor: default; pointer-events: none; }

/* ---------- Inputs ---------- */

.search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search svg {
    position: absolute;
    left: 10px;
    color: var(--muted);
    width: 16px;
    height: 16px;
}

.search input {
    height: 34px;
    width: 200px;
    padding: 0 12px 0 32px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    outline: none;
}

.search input:focus { border-color: var(--accent); }
.search input::placeholder { color: var(--muted); }

.select {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    outline: none;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.toggle input { accent-color: var(--accent); cursor: pointer; }

.meta {
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
    min-width: 92px;
    text-align: right;
}

kbd {
    min-width: 25px;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--panel-2);
    font: 11.5px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
    text-align: center;
}
