:root {
    color-scheme: dark;
    --bg: #0b0f14;
    --bg-soft: #10161e;
    --panel: #131a24;
    --panel-2: #171f2b;
    --line: #263244;
    --text: #e6edf8;
    --muted: #93a4bf;
    --green: #3ecf8e;
    --green-soft: rgba(62, 207, 142, 0.16);
    --danger: #ff7f95;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: radial-gradient(1200px 700px at 10% -10%, #1d2e47 0%, var(--bg) 48%);
    color: var(--text);
    font-family: "Sora", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

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

.button {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.6rem 0.95rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.86rem;
}

.button.primary {
    background: var(--green);
    color: #07140d;
}

.button.secondary {
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 56px 250px 1fr;
}

.app-rail {
    border-right: 1px solid var(--line);
    background: #090d13;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0.7rem 0.5rem;
    gap: 0.8rem;
}

.rail-brand {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.83rem;
    border: 1px solid rgba(62, 207, 142, 0.45);
    background: var(--green-soft);
    color: #bff2d8;
}

.rail-nav {
    display: grid;
    gap: 0.42rem;
    align-content: start;
}

.rail-nav a {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
}

.rail-nav a:hover,
.rail-nav a.is-active {
    color: var(--text);
    border-color: var(--line);
    background: #111927;
}

.app-sidebar {
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0c1118, #090e14);
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.app-sidebar-backdrop {
    display: none;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-lockup strong {
    display: block;
    font-size: 1rem;
}

.brand-lockup small {
    color: var(--muted);
    font-size: 0.78rem;
}

.brand-mark {
    width: 11px;
    height: 24px;
    border-radius: 100px;
    background: linear-gradient(180deg, #57f39f, #14b8a6);
    box-shadow: 0 0 24px rgba(87, 243, 159, 0.45);
}

.workspace-switcher {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    padding: 0.62rem 0.7rem;
    font-size: 0.82rem;
}

.sidebar-project {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    padding: 0.75rem;
}

.sidebar-project p {
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.sidebar-project strong {
    display: block;
    margin-top: 0.35rem;
}

.sidebar-project span {
    color: var(--muted);
    font-size: 0.8rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.24rem;
}

.nav-group-label {
    margin: 0.7rem 0 0.2rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.67rem;
}

.sidebar-nav a {
    border-radius: 8px;
    color: var(--muted);
    padding: 0.52rem 0.65rem;
    font-size: 0.84rem;
    border: 1px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--text);
    background: var(--panel);
}

.sidebar-nav a.is-active {
    color: var(--text);
    border-color: rgba(62, 207, 142, 0.5);
    background: var(--green-soft);
}

.sidebar-logout {
    margin-top: auto;
}

.sidebar-logout .button {
    width: 100%;
}

.app-main {
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(200px, 360px) 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 15, 20, 0.9);
    backdrop-filter: blur(8px);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.topbar-actions a {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0.35rem 0.6rem;
    font-size: 0.76rem;
    color: var(--muted);
}

.topbar-actions a:hover {
    color: var(--text);
    background: var(--panel);
}

.sidebar-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
}

.topbar-search-wrap {
    width: 100%;
}

.topbar-search {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 0.55rem 0.7rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.app-topbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.app-topbar h1 {
    margin: 0.16rem 0 0;
    font-size: 1rem;
}

.project-subnav {
    display: flex;
    gap: 0.45rem;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1.25rem;
    flex-wrap: wrap;
    background: rgba(14, 19, 27, 0.72);
}

.project-subnav a {
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.34rem 0.7rem;
    font-size: 0.78rem;
}

.project-subnav a:hover,
.project-subnav a.is-active {
    color: var(--text);
    border-color: var(--line);
    background: var(--panel);
}

.app-content {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.panel,
.auth-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-header h1 {
    margin: 0.14rem 0 0;
    font-size: 1.45rem;
}

.eyebrow,
.status {
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.grid {
    display: grid;
    gap: 0.95rem;
}

.grid.two-up {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.four-up {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.database-grid {
    grid-template-columns: 250px 1fr;
}

.stack {
    display: grid;
    gap: 0.68rem;
}

form.stack label {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.84rem;
}

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

input,
textarea,
select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #0f1520;
    color: var(--text);
    padding: 0.62rem 0.72rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(62, 207, 142, 0.26);
    border-color: rgba(62, 207, 142, 0.54);
}

.inline-form {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input[type="text"],
.inline-form input[type="file"] {
    flex: 1 1 170px;
}

.table-link {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    padding: 0.47rem 0.58rem;
}

.table-link:hover,
.table-link.active {
    border-color: var(--line);
    color: var(--text);
    background: #0f1828;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.55rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
}

pre,
code {
    font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
    color: #afc1db;
    background: #0b1220;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.72rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.policy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.storage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.storage-head h2 {
    margin: 0;
    font-size: 1.45rem;
}

.storage-head p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.storage-alert {
    padding: 0.7rem 0.9rem;
}

.storage-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.storage-alert.success {
    border-color: rgba(62, 207, 142, 0.5);
    background: rgba(62, 207, 142, 0.12);
    color: #9fe5c2;
}

.storage-alert.error {
    border-color: rgba(255, 127, 149, 0.46);
    background: rgba(255, 127, 149, 0.08);
    color: #ffb8c5;
}

.storage-bucket-row.is-selected {
    background: rgba(62, 207, 142, 0.07);
}

.bucket-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bucket-icon {
    color: var(--muted);
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bucket-icon svg {
    width: 16px;
    height: 16px;
}

.bucket-open-cell {
    text-align: right;
}

.bucket-open-link {
    color: var(--muted);
    font-size: 0.95rem;
    padding: 0.1rem 0.2rem;
}

.bucket-open-link:hover {
    color: var(--text);
}

.storage-browser-wrap {
    padding: 0;
    overflow: hidden;
}

.storage-browser-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
}

.storage-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.storage-breadcrumbs strong {
    color: var(--text);
}

.storage-browser-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.storage-browser-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: 380px;
}

.storage-file-list {
    border-right: 1px solid var(--line);
}

.storage-file-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.storage-folder-link {
    display: block;
    padding: 0.52rem 0.75rem;
    border-bottom: 1px solid var(--line);
    color: #b7c6de;
    font-size: 0.8rem;
}

.storage-folder-link:hover {
    background: rgba(62, 207, 142, 0.08);
}

.storage-file-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.storage-file-list li {
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.storage-file-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    text-align: left;
    cursor: pointer;
}

.storage-file-item:hover,
.storage-file-item.is-active {
    background: rgba(62, 207, 142, 0.1);
}

.storage-file-glyph {
    color: var(--muted);
    width: 16px;
    height: 16px;
    margin-top: 0.1rem;
}

.storage-file-glyph svg {
    width: 16px;
    height: 16px;
}

.storage-file-list li strong {
    display: block;
    margin-bottom: 0.1rem;
}

.storage-file-list li small {
    color: var(--muted);
    font-size: 0.76rem;
}

.storage-file-list li.is-empty {
    color: var(--muted);
    padding: 0.95rem 0.75rem;
}

.storage-file-preview {
    color: var(--muted);
    padding: 1.25rem;
}

.file-detail-card {
    max-width: 420px;
}

.file-detail-card h4 {
    margin: 0 0 0.8rem;
    color: var(--text);
    font-size: 1rem;
}

.file-detail-card dl {
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.file-detail-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
}

.file-detail-card dt {
    color: var(--muted);
    font-size: 0.8rem;
}

.file-detail-card dd {
    margin: 0;
    color: var(--text);
    font-size: 0.82rem;
}

.file-detail-actions {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.5rem;
}

.file-delete-zone {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.storage-tabs-wrap {
    padding: 0;
    overflow: hidden;
}

.storage-tabs {
    display: flex;
    gap: 0.9rem;
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 1rem 0;
}

.storage-tabs a {
    padding: 0.45rem 0.15rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    font-size: 0.84rem;
}

.storage-tabs a.is-active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.storage-toolbar {
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: minmax(180px, 260px) auto auto 1fr;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.storage-toolbar-form {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.storage-toolbar-form input,
.storage-toolbar-form select {
    width: auto;
    min-width: 160px;
}

.storage-toolbar .button.primary {
    justify-self: end;
}

.storage-table-wrap {
    padding: 0.2rem 0;
}

.storage-files-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.storage-files-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.storage-files-head h3 {
    margin: 0;
}

.storage-table th,
.storage-table td {
    padding: 0.72rem 1rem;
}

.bucket-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.bucket-pill {
    border: 1px solid #5c4b2d;
    background: rgba(243, 191, 112, 0.13);
    color: #f3bf70;
    font-size: 0.64rem;
    border-radius: 999px;
    padding: 0.13rem 0.35rem;
    letter-spacing: 0.08em;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(7, 10, 16, 0.7);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-card {
    width: min(540px, 100%);
    margin: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    line-height: 1;
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
    background: var(--panel);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.4rem;
}

body.modal-open {
    overflow: hidden;
}

.storage-loading-shell {
    position: relative;
}

html:not([data-ready="true"]) .storage-loading-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(19, 26, 36, 0.95), rgba(31, 41, 56, 0.7), rgba(19, 26, 36, 0.95));
    background-size: 220% 100%;
    animation: storageShimmer 1.2s linear infinite;
}

@keyframes storageShimmer {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 220% 0;
    }
}

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

.console-headline {
    margin: 0;
    font-size: 1.15rem;
}

.console-subtle {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.data-card {
    display: grid;
    gap: 0.75rem;
}

.data-card h3 {
    margin: 0;
    font-size: 0.95rem;
}

.data-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

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

.data-table th {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}

.data-table th,
.data-table td {
    white-space: nowrap;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--line);
}

.data-table tbody tr:hover {
    background: rgba(62, 207, 142, 0.05);
}

.muted-note {
    color: var(--muted);
    font-size: 0.82rem;
}

.upload-dropzone {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 1rem;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 21, 32, 0.65);
}

.upload-dropzone.is-active {
    border-color: rgba(62, 207, 142, 0.6);
    background: rgba(62, 207, 142, 0.1);
    color: #b6efcf;
}

.auth-shell {
    min-height: 100vh;
    width: min(430px, calc(100vw - 2rem));
    margin: 0 auto;
    display: grid;
    place-content: center;
    gap: 1rem;
}

.auth-brand {
    justify-content: center;
}

.marketing-shell {
    width: min(1200px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero {
    min-height: 84vh;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 1rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.15rem, 4.8vw, 3.8rem);
    line-height: 1.02;
}

.auth-users-screen {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
}

.auth-users-nav {
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    padding-right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-users-nav h2 {
    margin: 0;
    font-size: 17px;
}

.auth-nav-label {
    margin: 12px 0 4px;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-users-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    padding: 6px 8px;
}

.auth-users-nav a:hover,
.auth-users-nav a.is-active {
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
}

.auth-users-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-users-header h3 {
    margin: 0;
    font-size: 22px;
}

.auth-users-toolbar {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto auto auto auto;
    gap: 8px;
    align-items: center;
}

.auth-users-toolbar input,
.auth-users-toolbar select {
    min-height: 36px;
}

.auth-users-table-wrap {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    overflow: auto;
}

.auth-users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.auth-users-table thead th {
    text-align: left;
    color: #9fb0c9;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-users-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    font-size: 13px;
}

.auth-users-table thead th:first-child,
.auth-users-table tbody td:first-child {
    width: 46px;
}

.auth-row-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-row-select input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.auth-bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 0.95rem;
}

.auth-bulk-count {
    color: var(--muted);
    font-size: 0.84rem;
}

.auth-toolbar-menu-wrap,
.auth-row-menu-wrap {
    position: relative;
}

.auth-toolbar-menu,
.auth-row-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #0f1520;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.42);
    min-width: 170px;
    padding: 8px;
    z-index: 12;
}

.auth-toolbar-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    font-size: 12px;
    color: #cbd5e1;
}

.auth-toolbar-menu input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.auth-row-actions-cell {
    width: 48px;
    text-align: right;
}

.auth-row-menu-trigger {
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.auth-row-menu-trigger:hover {
    border-color: var(--line);
    color: #e2e8f0;
}

.auth-row-menu {
    min-width: 140px;
}

.auth-row-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
    border-radius: 6px;
    padding: 7px 8px;
    cursor: pointer;
    font-size: 12px;
}

.auth-row-menu form {
    margin: 0;
}

.auth-row-menu button:hover {
    background: rgba(148, 163, 184, 0.14);
    color: #f8fafc;
}

.auth-row-menu .danger {
    color: #ff9cae;
}

.auth-row-menu .danger:hover {
    background: rgba(255, 127, 149, 0.16);
    color: #ffd4de;
}

.auth-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.auth-user-avatar svg {
    width: 16px;
    height: 16px;
}

.provider-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.provider-pill.muted {
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
    margin-left: 6px;
}

.button.danger {
    border-color: rgba(255, 127, 149, 0.35);
    color: #ffb8c5;
}

.button.danger:hover {
    background: rgba(255, 127, 149, 0.12);
}

.auth-user-row-disabled td {
    opacity: 0.82;
}

.auth-user-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}

.auth-user-details-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
}

.auth-user-details-grid dt {
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 3px;
}

.auth-user-details-grid dd {
    margin: 0;
    font-size: 12px;
    color: #e2e8f0;
}

@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-rail {
        display: none;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 260px;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        z-index: 40;
    }

    .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        border: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        background: rgba(5, 9, 13, 0.58);
        backdrop-filter: blur(1.5px);
        z-index: 35;
    }

    .app-shell[data-sidebar-state="open"] .app-sidebar {
        transform: translateX(0);
    }

    .app-shell[data-sidebar-state="open"] .app-sidebar-backdrop {
        display: block;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .app-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .topbar-search-wrap {
        grid-column: 1 / -1;
    }

    .topbar-actions {
        justify-self: end;
    }

    .auth-users-screen {
        grid-template-columns: 1fr;
    }

    .auth-users-nav {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        padding-right: 0;
        padding-bottom: 12px;
    }
}

@media (max-width: 840px) {
    .hero,
    .database-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .policy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .storage-toolbar {
        grid-template-columns: 1fr;
    }

    .storage-toolbar-form {
        display: grid;
        width: 100%;
    }

    .storage-toolbar-form input,
    .storage-toolbar-form select {
        width: 100%;
    }

    .storage-toolbar .button.primary {
        justify-self: start;
    }

    .storage-files-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .storage-browser-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .storage-browser-grid {
        grid-template-columns: 1fr;
    }

    .storage-file-list {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .auth-users-toolbar {
        grid-template-columns: 1fr;
    }

    .auth-users-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auth-bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
