:root {
    --bg: #071018;
    --bg-soft: #0b1622;
    --panel: #101d2b;
    --panel-2: #152434;
    --panel-3: #1a2b3d;
    --border: #23384f;
    --border-strong: #315173;
    --text: #e7f1fb;
    --text-soft: #98aec4;
    --text-faint: #68829d;
    --success: #00d5aa;
    --info: #53a6ff;
    --warning: #ffb14a;
    --danger: #ff5d7e;
    --accent: #b8ff57;

    --radius: 14px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.28);

    --font-sans: Outfit, Inter, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --sidebar-width: 272px;
    --topbar-height: 68px;

    --transition-fast: 140ms ease;
    --transition-base: 220ms ease;
    --page-width: 1400px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 213, 170, 0.05), transparent 28%),
        radial-gradient(circle at bottom right, rgba(83, 166, 255, 0.04), transparent 22%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

code,
pre,
kbd,
samp {
    font-family: var(--font-mono);
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

::selection {
    background: rgba(83, 166, 255, 0.22);
    color: var(--text);
}

:focus-visible {
    outline: 2px solid rgba(83, 166, 255, 0.65);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.container {
    width: min(var(--page-width), calc(100% - 32px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    border-right: 1px solid var(--border);
    background: rgba(11, 22, 34, 0.94);
    backdrop-filter: blur(12px);
    overflow-y: auto;
}

.content-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.page {
    padding: 28px 24px 44px;
}

.page__inner {
    width: 100%;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-title {
    margin: 0;
    font-size: clamp(1.45rem, 1rem + 1vw, 1.8rem);
    line-height: 1.1;
    font-weight: 800;
}

.page-subtitle {
    margin: 8px 0 0;
    color: var(--text-soft);
    max-width: 80ch;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Sidebar / nav */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand__icon,
.avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--success), var(--info));
    color: #041116;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.brand__title {
    font-size: 1.05rem;
    font-weight: 800;
}

.brand__title span {
    color: var(--success);
}

.brand__meta {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.nav-section {
    margin-top: 18px;
}

.nav-section__title {
    margin-bottom: 8px;
    padding-inline: 10px;
    color: var(--text-faint);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-list {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-soft);
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.nav-item:hover,
.nav-item.is-active {
    background: rgba(0, 213, 170, 0.08);
    border-color: rgba(0, 213, 170, 0.15);
    color: var(--text);
}

.nav-item:active {
    transform: translateY(1px);
}

.nav-item__badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(83, 166, 255, 0.16);
    color: var(--info);
    font-size: 0.7rem;
    font-weight: 700;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: var(--topbar-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 16, 24, 0.85);
    backdrop-filter: blur(16px);
}

.topbar__group,
.stack-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar__chip,
.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    white-space: nowrap;
}

.status-pill--success {
    border-color: rgba(0, 213, 170, 0.22);
    background: rgba(0, 213, 170, 0.08);
    color: var(--success);
}

.status-pill--warning {
    border-color: rgba(255, 177, 74, 0.22);
    background: rgba(255, 177, 74, 0.08);
    color: var(--warning);
}

.status-pill--danger {
    border-color: rgba(255, 93, 126, 0.22);
    background: rgba(255, 93, 126, 0.08);
    color: var(--danger);
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--panel);
    box-shadow: var(--shadow-sm);
}

.card+.card {
    margin-top: 16px;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.card__body {
    padding: 20px;
}

.card__footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grid helpers */
.grid {
    display: grid;
    gap: 16px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Metric / summary */
.metric {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-2);
}

.metric__label {
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric__value {
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.metric__trend {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.metric__progress {
    margin-top: 14px;
    height: 6px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.metric__progress>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--success), var(--info));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--panel-2);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(135deg, var(--success), #00b88f);
    color: #071018;
    box-shadow: 0 10px 24px rgba(0, 213, 170, 0.18);
}

.btn--secondary {
    border-color: var(--border-strong);
}

.btn--ghost {
    border-color: var(--border);
    background: transparent;
    color: var(--text-soft);
}

.btn--danger {
    border-color: rgba(255, 93, 126, 0.22);
    background: rgba(255, 93, 126, 0.08);
    color: var(--danger);
}

.btn--sm {
    min-height: 34px;
    padding-inline: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
}

/* Badges */
.badge--success {
    border-color: rgba(0, 213, 170, 0.18);
    background: rgba(0, 213, 170, 0.08);
    color: var(--success);
}

.badge--warning {
    border-color: rgba(255, 177, 74, 0.18);
    background: rgba(255, 177, 74, 0.08);
    color: var(--warning);
}

.badge--danger {
    border-color: rgba(255, 93, 126, 0.18);
    background: rgba(255, 93, 126, 0.08);
    color: var(--danger);
}

.badge--info {
    border-color: rgba(83, 166, 255, 0.18);
    background: rgba(83, 166, 255, 0.08);
    color: var(--info);
}

.badge--muted {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

/* Forms */
.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: var(--bg-soft);
    color: var(--text);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.sql-editor:focus {
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(83, 166, 255, 0.12);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.field__hint {
    color: var(--text-faint);
    font-size: 0.82rem;
}

.field--error input,
.field--error select,
.field--error textarea {
    border-color: rgba(255, 93, 126, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 93, 126, 0.1);
}

.field__error {
    color: var(--danger);
    font-size: 0.82rem;
}

.kbd {
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tab {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    transition:
        border-color var(--transition-fast),
        color var(--transition-fast),
        background var(--transition-fast);
}

.tab.is-active,
.tab:hover {
    border-color: rgba(0, 213, 170, 0.2);
    background: rgba(0, 213, 170, 0.06);
    color: var(--success);
}

/* Tables */
.table-wrap {
    overflow: auto;
    width: 100%;
}

table,
.data-table {
    width: 100%;
    border-collapse: collapse;
}

th,
td,
.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    vertical-align: top;
}

th,
.data-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tbody tr:hover td,
.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table {
    min-width: 760px;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(16, 29, 43, 0.96);
    backdrop-filter: blur(8px);
}

.data-table td code {
    white-space: nowrap;
    color: #c8fff4;
    font-size: 0.82rem;
}

.data-table__empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-soft);
}

/* SQL / explorer */
.sql-editor {
    width: 100%;
    min-height: 360px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #06111a;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    resize: vertical;
}

.sql-snippets {
    display: grid;
    gap: 12px;
}

.sql-snippet-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-2);
}

.sql-snippet-card__title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.sql-snippet-card pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.query-result {
    display: grid;
    gap: 16px;
}

.query-result__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.query-result__stat {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
}

.query-result__label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-faint);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.query-result__value {
    font-weight: 700;
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.table-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.table-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.table-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.table-panel__meta {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Lists */
.list {
    display: grid;
    gap: 12px;
}

.list-item {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-2);
}

.list-item__title {
    margin: 0 0 6px;
    font-size: 1rem;
}

.list-item__meta {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Utility display */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.progress>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--info), var(--success));
}

.code-block {
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #06111a;
    color: #c8fff4;
    font-family: var(--font-mono);
    font-size: 0.86rem;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline__item {
    margin-left: 8px;
    padding-left: 16px;
    border-left: 2px solid var(--border-strong);
}

.timeline__time {
    color: var(--text-faint);
    font-size: 0.8rem;
}

/* Dashboard / charts */
.chart-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22px, 1fr));
    align-items: end;
    gap: 8px;
    height: 220px;
}

.chart-bars__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bars__bar {
    width: 100%;
    min-height: 6px;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, var(--success), var(--info));
}

.chart-bars__label {
    color: var(--text-faint);
    font-size: 0.74rem;
    font-family: var(--font-mono);
}

.sparkline {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 36px;
}

.sparkline span {
    display: block;
    flex: 1;
    min-height: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--info), var(--success));
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.status-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-2);
}

.hero-banner {
    padding: 24px;
    border: 1px solid rgba(0, 213, 170, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(184, 255, 87, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(0, 213, 170, 0.14), rgba(83, 166, 255, 0.06)),
        var(--panel);
    box-shadow: var(--shadow-md);
}

.hero-banner__title {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
}

.hero-banner__text {
    max-width: 70ch;
    color: var(--text-soft);
}

/* States */
.empty-state,
.error-state {
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 32px;
    text-align: center;
}

.empty-state__icon,
.error-state__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-inline: auto;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel-2);
    font-size: 1.8rem;
}

.empty-state__title,
.error-state__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.empty-state__body,
.error-state__body {
    max-width: 48ch;
    margin: 0 auto 18px;
    color: var(--text-soft);
}

/* Toast */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 120;
    display: grid;
    gap: 12px;
    width: min(420px, calc(100vw - 24px));
}

.toast {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(16, 29, 43, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.toast__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

.toast__body {
    min-width: 0;
    flex: 1 1 auto;
}

.toast__title {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
}

.toast__message {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.toast--success {
    border-color: rgba(0, 213, 170, 0.22);
}

.toast--info {
    border-color: rgba(83, 166, 255, 0.22);
}

.toast--warning {
    border-color: rgba(255, 177, 74, 0.22);
}

.toast--danger {
    border-color: rgba(255, 93, 126, 0.22);
}

/* Loader */
.loader-backdrop {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
    place-items: center;
    background: rgba(3, 10, 16, 0.56);
    backdrop-filter: blur(4px);
}

.loader-backdrop.is-visible {
    display: grid;
}

.loader {
    display: grid;
    gap: 14px;
    place-items: center;
    min-width: 220px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow-lg);
}

.loader__spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--success);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loader__label {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(3, 10, 16, 0.62);
    backdrop-filter: blur(6px);
}

.modal-backdrop.is-visible {
    display: grid;
}

.modal {
    width: min(560px, 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.modal__body {
    padding: 20px;
    color: var(--text-soft);
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dropdown-ish helpers */
.menu {
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow-md);
}

.menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text-soft);
}

.menu__item:hover,
.menu__item.is-active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

/* Small utility helpers */
.text-muted {
    color: var(--text-soft);
}

.text-faint {
    color: var(--text-faint);
}

.text-success {
    color: var(--success);
}

.text-info {
    color: var(--info);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.mono {
    font-family: var(--font-mono);
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1080px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 960px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .table-toolbar,
    .table-panel__header,
    .split {
        align-items: flex-start;
    }
}

@media (max-width: 860px) {

    .grid--2,
    .grid--3,
    .grid--4,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding-inline: 16px;
    }

    .topbar {
        padding-inline: 16px;
    }

    .card__header,
    .card__body,
    .card__footer {
        padding-inline: 16px;
    }

    .toast-stack {
        right: 12px;
        left: 12px;
        width: auto;
    }
}

.database-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.database-create__header,
.panel-actions,
.database-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.database-create-grid {
    align-items: start;
}

.database-create-form .card {
    height: 100%;
}

.database-summary {
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface-muted);
}

@media (max-width: 900px) {
    .database-create-grid {
        grid-template-columns: 1fr;
    }
}
/* Header content must wrap within small database dashboard viewports. */
@media(max-width:860px){.topbar{flex-wrap:wrap;padding-block:12px}.topbar__group,.topbar .stack-inline,.topbar .stack-inline>div{min-width:0;max-width:100%;overflow-wrap:anywhere}}
