* { box-sizing: border-box; }

:root {
    --bg-1: #04101f;
    --bg-2: #09192f;
    --panel: rgba(9, 24, 46, 0.8);
    --panel-solid: #0d1d36;
    --text: #eef6ff;
    --muted: #a8bfdc;
    --line: rgba(144, 179, 230, 0.18);
    --accent: #49d3ff;
    --accent-2: #1f8dff;
    --accent-3: #ffcb4d;
    --success: #1ccf99;
    --error: #ff6f91;
}

html, body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 22%, rgba(73, 211, 255, 0.18), transparent 24%),
        radial-gradient(circle at 80% 10%, rgba(255, 203, 77, 0.13), transparent 18%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

body {
    min-height: 100vh;
}

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

.auth-shell,
.page-shell {
    position: relative;
    z-index: 1;
}

.auth-shell {
    width: min(1380px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.4rem 0;
}

.auth-shell-admin .auth-hero {
    background: linear-gradient(180deg, rgba(11, 24, 44, 0.92), rgba(8, 18, 33, 0.96));
}

.auth-hero,
.auth-card,
.panel {
    border-radius: 30px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 3rem;
    background: linear-gradient(180deg, rgba(10, 24, 45, 0.84), rgba(7, 17, 31, 0.92));
}

.auth-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.auth-kicker,
.kicker,
.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.76rem;
    color: #94e5ff;
}

.auth-copy h1,
.page-header h1 {
    margin: 0.85rem 0 0.9rem;
}

.auth-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.94;
    max-width: 10ch;
}

.auth-copy p,
.page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.auth-copy p {
    max-width: 46ch;
    font-size: 1.03rem;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.auth-feature-list span,
.ghost-button,
.google-button,
.primary-button,
.table-link {
    border-radius: 999px;
}

.auth-feature-list span {
    padding: 0.7rem 0.95rem;
    background: rgba(73, 211, 255, 0.09);
    border: 1px solid rgba(97, 175, 255, 0.16);
}

.auth-card {
    padding: 1.55rem;
    background: linear-gradient(180deg, rgba(9, 19, 37, 0.96), rgba(8, 16, 31, 0.96));
}

.auth-card-head {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.auth-card-head h2 {
    margin: 0.35rem 0 0;
    font-size: 1.8rem;
}

.auth-logo {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(148, 179, 228, 0.18);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.stack-form {
    display: grid;
    gap: 1rem;
}

label,
legend {
    font-size: 0.92rem;
    color: #dce8f9;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 0.45rem;
    border-radius: 16px;
    border: 1px solid rgba(138, 170, 219, 0.22);
    background: rgba(15, 30, 56, 0.92);
    color: var(--text);
    padding: 0.95rem 1rem;
    font: inherit;
}

textarea {
    resize: vertical;
}

fieldset {
    margin: 0;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(138, 170, 219, 0.16);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
}

.checkbox-row {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.checkbox-row input {
    width: auto;
    margin-top: 0;
}

.primary-button,
.ghost-button,
.google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.85rem 1.15rem;
    font-weight: 700;
}

.primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #061120;
    box-shadow: 0 18px 34px rgba(31, 141, 255, 0.24);
    cursor: pointer;
}

.ghost-button {
    background: rgba(19, 34, 61, 0.66);
    border: 1px solid rgba(138, 170, 219, 0.18);
}

.google-button {
    width: 100%;
    gap: 0.75rem;
    margin: 1rem 0 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    color: #14213d;
}

.google-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #fbbc05);
    color: white;
    font-weight: 700;
}

.auth-form {
    margin-top: 0.4rem;
}

.auth-footer-links {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: #c7d8f2;
    font-size: 0.9rem;
}

.auth-footer-links a {
    color: var(--accent);
}

.alert {
    padding: 0.9rem 1rem;
    margin: 1rem 0;
    border-radius: 18px;
}

.alert-success {
    background: rgba(28, 207, 153, 0.12);
    border: 1px solid rgba(28, 207, 153, 0.26);
}

.alert-error {
    background: rgba(255, 111, 145, 0.12);
    border: 1px solid rgba(255, 111, 145, 0.26);
}

.page-shell {
    width: min(1380px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.6rem 0 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

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

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.panel {
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(12, 28, 53, 0.9), rgba(8, 18, 36, 0.94));
}

.panel-head {
    margin-bottom: 1rem;
}

.panel-head h2 {
    margin: 0.35rem 0 0;
}

.admin-list-panel {
    margin-top: 1rem;
}

.admin-presets-panel {
    margin-bottom: 1.1rem;
}

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

.preset-card {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(144, 179, 230, 0.12);
    background: linear-gradient(180deg, rgba(10, 22, 42, 0.92), rgba(8, 16, 30, 0.96));
}

.preset-card h3 {
    margin: 0;
    font-size: 1.02rem;
}

.preset-card p {
    margin: 0.7rem 0 0;
    color: #dbe7fb;
    line-height: 1.5;
}

.preset-card-head,
.preset-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.preset-badge {
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(73, 211, 255, 0.12);
    border: 1px solid rgba(73, 211, 255, 0.18);
    color: var(--accent);
    font-size: 0.78rem;
}

.preset-meta {
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.82rem;
}

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

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid rgba(144, 179, 230, 0.12);
    vertical-align: top;
    font-size: 0.92rem;
}

.data-table th {
    color: var(--muted);
    font-weight: 600;
}

.table-link {
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(73, 211, 255, 0.2);
    color: var(--accent);
    background: rgba(73, 211, 255, 0.08);
}

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

.job-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(144, 179, 230, 0.14);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.job-status-queued,
.job-status-running {
    background: rgba(255, 203, 77, 0.12);
    color: var(--accent-3);
}

.job-status-completed {
    background: rgba(28, 207, 153, 0.12);
    color: var(--success);
}

.job-status-failed {
    background: rgba(255, 111, 145, 0.12);
    color: var(--error);
}

.job-error {
    margin-top: 0.35rem;
    color: var(--error);
    font-size: 0.82rem;
    line-height: 1.45;
}

.job-result {
    max-width: 360px;
    white-space: normal;
    word-break: break-word;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.admin-footnote {
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

body.admin-command-body {
    --admin-bg: #edf2f7;
    --admin-surface: #ffffff;
    --admin-surface-strong: #f8fbff;
    --admin-sidebar: #f7faff;
    --admin-text: #18304d;
    --admin-muted: #6c7d93;
    --admin-line: #d8e2ef;
    --admin-line-soft: #edf2f8;
    --admin-blue: #2563eb;
    --admin-blue-soft: #e8f0ff;
    --admin-indigo: #4f46e5;
    --admin-success: #0f9f6e;
    --admin-warning: #b7791f;
    --admin-error: #c2415d;
    min-height: 100vh;
    color: var(--admin-text);
    background:
        radial-gradient(circle at 14% 8%, rgba(37, 99, 235, 0.16), transparent 28%),
        radial-gradient(circle at 88% 4%, rgba(15, 159, 110, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--admin-bg) 100%);
}

.admin-command-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
}

.admin-command-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem;
    border-right: 1px solid var(--admin-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.96)),
        var(--admin-sidebar);
    box-shadow: 18px 0 45px rgba(50, 75, 115, 0.08);
}

.admin-command-brand {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 22px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-line);
    box-shadow: 0 16px 34px rgba(41, 67, 111, 0.08);
}

.admin-command-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
    background: #f5f8fc;
}

.admin-command-brand strong {
    display: block;
    margin-top: 0.22rem;
    color: var(--admin-text);
    font-size: 1.08rem;
    line-height: 1.15;
}

.admin-command-kicker {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: var(--admin-blue);
    font-weight: 800;
}

.admin-command-nav {
    display: grid;
    gap: 0.55rem;
}

.admin-command-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    padding: 0.78rem;
    border-radius: 18px;
    color: var(--admin-muted);
    border: 1px solid transparent;
}

.admin-command-link strong {
    display: block;
    color: var(--admin-text);
    font-size: 0.95rem;
}

.admin-command-link small {
    display: block;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.admin-command-link:hover,
.admin-command-link.active {
    background: var(--admin-blue-soft);
    border-color: rgba(37, 99, 235, 0.2);
    color: #355275;
}

.admin-command-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--admin-blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.admin-command-link.active .admin-command-icon {
    background: linear-gradient(135deg, var(--admin-blue), var(--admin-indigo));
    color: #ffffff;
}

.admin-command-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--admin-line);
    background: linear-gradient(180deg, #ffffff, #f3f7fd);
    color: var(--admin-muted);
    line-height: 1.55;
}

.admin-command-sidebar-footer strong {
    display: block;
    margin: 0.35rem 0;
    color: var(--admin-text);
}

.admin-command-sidebar-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.admin-command-main {
    min-width: 0;
}

.admin-command-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(248, 251, 255, 0.92);
    backdrop-filter: blur(16px);
}

.admin-command-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.admin-command-context > span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--admin-line);
}

.admin-health-pill {
    color: var(--admin-success) !important;
    font-weight: 800;
}

.admin-health-pill span {
    width: 8px;
    height: 8px;
    margin-right: 0.4rem;
    border-radius: 999px;
    background: var(--admin-success);
    box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.12);
}

.admin-command-workspace {
    width: min(1460px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.3rem 0 2rem;
}

.admin-command-body .page-header {
    align-items: stretch;
    margin-bottom: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--admin-line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92)),
        var(--admin-surface);
    box-shadow: 0 22px 55px rgba(41, 67, 111, 0.08);
}

.admin-command-body .page-header h1 {
    color: var(--admin-text);
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.05em;
}

.admin-command-body .page-header p {
    max-width: 780px;
    color: var(--admin-muted);
}

.admin-page-status {
    min-width: 220px;
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    border: 1px solid var(--admin-line);
    text-align: right;
}

.admin-page-status span {
    color: var(--admin-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.admin-page-status strong {
    color: var(--admin-blue);
    font-size: 1.05rem;
}

.admin-command-body .kicker,
.admin-command-body .card-kicker {
    color: var(--admin-blue);
    font-weight: 800;
}

.admin-command-body .header-actions {
    align-items: center;
}

.admin-command-body .panel {
    border-radius: 24px;
    border: 1px solid var(--admin-line);
    background: var(--admin-surface);
    box-shadow: 0 18px 45px rgba(41, 67, 111, 0.07);
}

.admin-command-body .panel-head h2 {
    color: var(--admin-text);
    letter-spacing: -0.02em;
}

.admin-command-body .panel-head p,
.admin-command-body .admin-footnote,
.admin-command-body .muted-inline {
    color: var(--admin-muted);
}

.admin-command-body label,
.admin-command-body legend {
    color: #36506f;
    font-weight: 700;
}

.admin-command-body input,
.admin-command-body textarea,
.admin-command-body select {
    background: #f8fbff;
    color: var(--admin-text);
    border: 1px solid var(--admin-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-command-body input:focus,
.admin-command-body textarea:focus,
.admin-command-body select:focus {
    outline: 3px solid rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.55);
}

.admin-command-body fieldset {
    border-color: var(--admin-line);
    background: var(--admin-surface-strong);
}

.admin-command-body .primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--admin-blue), var(--admin-indigo));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.admin-command-body .ghost-button {
    color: var(--admin-text);
    background: #ffffff;
    border: 1px solid var(--admin-line);
}

.admin-command-body .ghost-button:hover,
.admin-command-body .primary-button:hover,
.admin-command-body .table-link:hover {
    transform: translateY(-1px);
}

.admin-command-body .alert-success {
    color: #0b6f50;
    background: rgba(15, 159, 110, 0.1);
    border-color: rgba(15, 159, 110, 0.22);
}

.admin-command-body .alert-error {
    color: var(--admin-error);
    background: rgba(194, 65, 93, 0.1);
    border-color: rgba(194, 65, 93, 0.22);
}

.admin-command-body .preset-card {
    border-color: var(--admin-line);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.admin-command-body .preset-card h3,
.admin-command-body .preset-meta strong {
    color: var(--admin-text);
}

.admin-command-body .preset-card p,
.admin-command-body .preset-meta {
    color: var(--admin-muted);
}

.admin-command-body .preset-badge {
    color: var(--admin-blue);
    background: var(--admin-blue-soft);
    border-color: rgba(37, 99, 235, 0.18);
}

.admin-command-body .data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-command-body .data-table th {
    position: sticky;
    top: 73px;
    z-index: 2;
    color: var(--admin-muted);
    background: #f8fbff;
    border-bottom: 1px solid var(--admin-line);
}

.admin-command-body .data-table td {
    color: var(--admin-text);
    border-bottom: 1px solid var(--admin-line-soft);
}

.admin-command-body .data-table tr:hover td {
    background: #f8fbff;
}

.admin-command-body .table-link {
    color: var(--admin-blue);
    background: var(--admin-blue-soft);
    border-color: rgba(37, 99, 235, 0.18);
}

.admin-command-body .job-status {
    border-color: var(--admin-line);
    background: #f8fbff;
}

.admin-command-body .job-status-queued,
.admin-command-body .job-status-running {
    color: var(--admin-warning);
    background: rgba(183, 121, 31, 0.1);
}

.admin-command-body .job-status-completed {
    color: var(--admin-success);
    background: rgba(15, 159, 110, 0.1);
}

.admin-command-body .job-status-failed,
.admin-command-body .job-error {
    color: var(--admin-error);
}

.admin-command-body .job-status-failed {
    background: rgba(194, 65, 93, 0.1);
}

.admin-command-body .job-result {
    color: var(--admin-muted);
}

.auth-aurora,
.auth-orbit {
    position: absolute;
    pointer-events: none;
}

.auth-aurora {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.55;
    animation: drift 18s ease-in-out infinite alternate;
}

.auth-aurora-one {
    top: -120px;
    right: -60px;
    background: radial-gradient(circle, rgba(73, 211, 255, 0.7), rgba(73, 211, 255, 0));
}

.auth-aurora-two {
    bottom: -120px;
    left: -40px;
    background: radial-gradient(circle, rgba(255, 203, 77, 0.48), rgba(255, 203, 77, 0));
    animation-delay: -6s;
}

.auth-orbit {
    border-radius: 999px;
    border: 1px solid rgba(129, 186, 255, 0.18);
    animation: rotate 24s linear infinite;
}

.auth-orbit-one {
    width: 540px;
    height: 540px;
    top: 14%;
    right: -220px;
}

.auth-orbit-two {
    width: 360px;
    height: 360px;
    bottom: 8%;
    left: -140px;
    animation-direction: reverse;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(30px, 26px, 0) scale(1.08); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
        width: min(760px, calc(100% - 1rem));
        padding: 1rem 0 1.4rem;
    }

    .auth-hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .auth-copy h1 {
        max-width: none;
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .auth-card-head {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .page-shell {
        width: min(980px, calc(100% - 1rem));
        padding-top: 1rem;
    }

    .page-header,
    .admin-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .preset-grid {
        grid-template-columns: 1fr;
    }

    .admin-command-shell {
        grid-template-columns: 1fr;
    }

    .admin-command-sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-command-nav {
        grid-template-columns: 1fr;
    }

    .admin-command-topbar,
    .admin-command-body .page-header {
        display: grid;
    }

    .admin-command-workspace {
        width: min(980px, calc(100% - 1rem));
    }

    .admin-page-status {
        text-align: left;
    }
}

/* Admin command center visual alignment with the Next.js Command Center. */
body.admin-command-body {
    --admin-bg: #f3f6fa;
    --admin-bg-deep: #e8eef6;
    --admin-sidebar: #0d1726;
    --admin-sidebar-2: #111f33;
    --admin-surface: #ffffff;
    --admin-surface-strong: #f8fafc;
    --admin-text: #182638;
    --admin-heading: #102033;
    --admin-muted: #68798c;
    --admin-line: #dbe4ee;
    --admin-line-soft: #edf2f8;
    --admin-blue: #2563eb;
    --admin-blue-soft: #e8f0ff;
    --admin-cyan: #67e8f9;
    --admin-indigo: #4f46e5;
    --admin-success: #0f9f6e;
    --admin-warning: #b7791f;
    --admin-error: #c2415d;
    background:
        radial-gradient(circle at 70% -10%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, var(--admin-bg), var(--admin-bg-deep));
}

.admin-command-shell {
    grid-template-columns: 292px minmax(0, 1fr);
    background:
        radial-gradient(circle at 70% -10%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, var(--admin-bg), var(--admin-bg-deep));
}

.admin-command-sidebar {
    overflow-y: auto;
    gap: 1rem;
    padding: 18px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 40% 0, rgba(73, 211, 255, 0.16), transparent 28%),
        linear-gradient(180deg, var(--admin-sidebar), var(--admin-sidebar-2));
    color: #dce8f7;
    box-shadow: none;
}

.admin-command-brand {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 82px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(148, 179, 228, 0.16);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.admin-command-brand-mark {
    width: 64px;
    height: 64px;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(148, 179, 228, 0.16);
    background: #061126;
}

.admin-command-brand img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: transparent;
    max-width: none;
}

.admin-command-brand strong {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.12;
    overflow-wrap: normal;
}

.admin-command-kicker {
    color: var(--admin-cyan);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
}

.admin-command-link {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    min-height: 44px;
    padding: 10px 11px;
    color: rgba(220, 232, 247, 0.82);
    border-radius: 16px;
}

.admin-command-link strong {
    color: inherit;
    font-size: 0.93rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-command-link small {
    display: none;
}

.admin-command-link:hover,
.admin-command-link.active {
    color: #ffffff;
    border-color: rgba(103, 232, 249, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.admin-command-link.active {
    box-shadow: inset 3px 0 0 var(--admin-cyan), 0 14px 30px rgba(0, 0, 0, 0.14);
}

.admin-command-icon,
.admin-command-link.active .admin-command-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    color: var(--admin-cyan);
    background: rgba(103, 232, 249, 0.1);
    font-size: 0.54rem;
    box-shadow: none;
}

.admin-command-sidebar-footer {
    margin-top: 24px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 179, 228, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(220, 232, 247, 0.72);
}

.admin-command-sidebar-footer strong {
    color: #ffffff;
    line-height: 1.2;
}

.admin-command-sidebar-footer p {
    color: rgba(220, 232, 247, 0.72);
    font-size: 0.82rem;
}

.admin-command-topbar {
    min-height: 68px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(248, 250, 252, 0.86);
    box-shadow: 0 12px 28px rgba(41, 67, 111, 0.06);
}

.admin-command-workspace {
    width: min(1540px, calc(100% - 36px));
    padding: 22px 0 34px;
}

.admin-command-body .page-header {
    align-items: flex-end;
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)),
        var(--admin-surface);
}

.admin-command-body .page-header h1 {
    margin: 8px 0 6px;
    color: var(--admin-heading);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.admin-command-body .page-header p {
    max-width: 920px;
    line-height: 1.55;
}

.admin-page-status {
    border-radius: 18px;
}

.admin-command-body .panel {
    border-radius: 22px;
    border-color: var(--admin-line);
    background: linear-gradient(180deg, var(--admin-surface), #fbfdff);
    box-shadow: 0 18px 45px rgba(41, 67, 111, 0.07);
}

.admin-command-body .panel h2,
.admin-command-body .panel-head h2 {
    color: var(--admin-heading);
    line-height: 1.16;
}

.admin-command-body .ghost-button,
.admin-command-body .primary-button,
.admin-command-body .table-link {
    white-space: nowrap;
}

.admin-command-body .data-table {
    table-layout: fixed;
}

.admin-command-body .data-table th,
.admin-command-body .data-table td {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .admin-command-shell {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .admin-command-brand {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 8px;
    }

    .admin-command-brand-mark {
        width: 52px;
        height: 52px;
        justify-self: center;
    }

    .admin-command-brand > span:not(.admin-command-brand-mark),
    .admin-command-link span:not(.admin-command-icon),
    .admin-command-sidebar-footer {
        display: none;
    }

    .admin-command-link {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 820px) {
    .admin-command-shell {
        grid-template-columns: 1fr;
    }

    .admin-command-sidebar {
        position: static;
        height: auto;
    }

    .admin-command-nav {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .admin-command-brand > span:not(.admin-command-brand-mark),
    .admin-command-link span:not(.admin-command-icon) {
        display: block;
    }

    .admin-command-topbar,
    .admin-command-body .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-command-workspace {
        width: min(100% - 24px, 1540px);
    }

    .admin-page-status {
        min-width: 0;
        text-align: left;
    }
}
