:root {
    --bg: #05010d;
    --bg-soft: #0f0820;
    --panel: rgba(10, 6, 20, 0.88);
    --panel-soft: rgba(0, 255, 245, 0.05);
    --panel-border: rgba(0, 255, 245, 0.2);
    --text: #eff8ff;
    --text-dim: rgba(205, 223, 255, 0.72);
    --accent: #00fff5;
    --accent-strong: #ff3fd2;
    --accent-cool: #7a7dff;
    --danger: #ff7aa8;
    --field: rgba(6, 4, 16, 0.92);
    --shadow: 0 0 0 1px rgba(0, 255, 245, 0.06), 0 20px 60px rgba(0, 0, 0, 0.5);
}

html,
body {
    font-family: Consolas, "Courier New", monospace;
    background: var(--bg);
    color: var(--text);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a,
.btn-link {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--accent);
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #ff9fc6;
}

.blazor-error-boundary {
    background: #260915;
    color: #ffb5ce;
    border: 1px solid rgba(255, 122, 168, 0.32);
    padding: 1rem 1rem 1rem 3.7rem;
}

.blazor-error-boundary::after {
    content: "neon_runtime_error";
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.35rem;
    padding: 1.3rem 1.45rem;
    border: 1px solid rgba(0, 255, 245, 0.16);
    background:
        linear-gradient(135deg, rgba(0, 255, 245, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(255, 63, 210, 0.06), rgba(122, 125, 255, 0.03)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 4px
        );
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 245, 0.03),
        0 0 32px rgba(0, 255, 245, 0.06);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.eyebrow,
.panel-kicker {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--accent);
    text-shadow:
        0 0 10px rgba(0, 255, 245, 0.5),
        0 0 20px rgba(0, 255, 245, 0.18);
}

h1,
h2,
.navbar-brand {
    font-family: Consolas, "Courier New", monospace;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f7fbff;
    text-shadow:
        0 0 12px rgba(0, 255, 245, 0.22),
        0 0 26px rgba(255, 63, 210, 0.12);
}

h2 {
    margin: 0;
    font-size: clamp(1.08rem, 1.9vw, 1.55rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subtitle {
    max-width: 52rem;
    margin: 0.85rem 0 0;
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.65;
}

.hero-note,
.panel,
.alert-card,
.note-card,
.auth-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-note {
    min-width: 18rem;
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.35rem;
    color: var(--text-dim);
}

.hero-note strong {
    color: #8df8ff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top, rgba(0, 255, 245, 0.08), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 63, 210, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(7, 4, 16, 0.98), rgba(4, 2, 10, 1));
}

.auth-stage,
.auth-login-card {
    position: relative;
    overflow: hidden;
}

.auth-stage {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    text-align: center;
}

.auth-stage-compact {
    width: min(100%, 30rem);
}

.auth-copy h1 {
    margin: 0;
}

.auth-sigil {
    position: relative;
    width: 10rem;
    height: 10rem;
    display: grid;
    place-items: center;
}

.auth-sigil-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 245, 0.18);
}

.auth-sigil-ring-outer {
    box-shadow:
        0 0 0 1px rgba(255, 63, 210, 0.08),
        0 0 36px rgba(0, 255, 245, 0.12);
}

.auth-sigil-ring-inner {
    inset: 1rem;
    border-color: rgba(255, 63, 210, 0.22);
}

.auth-sigil strong {
    position: relative;
    z-index: 1;
    color: #f7fbff;
    font-size: 1.4rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transform: translateX(0.14em);
}

.auth-inline-note {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.auth-login-card {
    padding: 1.4rem;
    display: grid;
    align-content: center;
    gap: 1rem;
}

.auth-login-card-compact {
    width: min(100%, 30rem);
}

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

.auth-field-grid {
    gap: 1rem;
}

.auth-action-row {
    grid-template-columns: auto 1fr;
}

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

.panel {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 255, 245, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 63, 210, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.12;
    pointer-events: none;
}

.panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(255, 63, 210, 0.16), transparent 65%);
    pointer-events: none;
}

.panel-span {
    grid-column: 1 / -1;
}

.panel-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.credentials-panel {
    grid-column: 1 / -1;
}

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

.dashboard-link-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.85rem;
    min-height: 15rem;
    padding: 1.35rem;
    text-decoration: none;
    color: inherit;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.dashboard-link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 255, 245, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 63, 210, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.12;
    pointer-events: none;
}

.dashboard-link-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(255, 63, 210, 0.16), transparent 65%);
    pointer-events: none;
}

.dashboard-link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 245, 0.3);
    box-shadow:
        0 0 0 1px rgba(0, 255, 245, 0.08),
        0 28px 70px rgba(0, 0, 0, 0.55),
        0 0 34px rgba(0, 255, 245, 0.1);
}

.dashboard-link-card h2,
.dashboard-link-card .panel-kicker,
.dashboard-link-copy {
    position: relative;
    z-index: 1;
}

.dashboard-link-copy {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.7;
}

.credentials-meta {
    margin-top: 0.9rem;
}

.top-gap {
    margin-top: 1rem;
}

.subscription-progress-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.subscription-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.subscription-progress-label {
    margin: 0 0 0.35rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.subscription-progress-head h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    color: #f7fbff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscription-progress-state {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
}

.subscription-progress-state strong {
    color: #8efbff;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.subscription-progress-state span {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}

.subscription-progress-shell {
    height: 16px;
}

.subscription-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.field-grid.compact {
    margin-top: 0.9rem;
}

.field {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.45rem;
}

.field-span {
    grid-column: 1 / -1;
}

.field span {
    font-size: 0.76rem;
    color: #9ef7ff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid rgba(0, 255, 245, 0.18);
    border-radius: 0;
    padding: 0.9rem 0.95rem;
    background:
        linear-gradient(180deg, rgba(8, 5, 18, 0.96), rgba(5, 4, 14, 0.96));
    color: var(--text);
    outline: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 63, 210, 0.04),
        inset 0 0 18px rgba(0, 255, 245, 0.02);
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px rgba(0, 255, 245, 0.55),
        0 0 16px rgba(0, 255, 245, 0.12),
        0 0 28px rgba(255, 63, 210, 0.08);
    background: rgba(10, 7, 22, 0.98);
}

.field input:disabled,
.field select:disabled {
    opacity: 0.58;
}

.password-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
}

.password-generate-button {
    border: 1px solid rgba(255, 63, 210, 0.3);
    border-radius: 0;
    padding: 0 0.85rem;
    min-width: 7.25rem;
    background: linear-gradient(135deg, rgba(255, 63, 210, 0.14), rgba(122, 125, 255, 0.1));
    color: #ffd5ff;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.password-generate-button:hover {
    border-color: rgba(255, 63, 210, 0.5);
    box-shadow: 0 0 18px rgba(255, 63, 210, 0.12);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow:
        inset 0 0 0 1000px rgba(8, 5, 18, 0.96),
        inset 0 0 0 1px rgba(255, 63, 210, 0.04),
        inset 0 0 18px rgba(0, 255, 245, 0.02);
    box-shadow:
        inset 0 0 0 1000px rgba(8, 5, 18, 0.96),
        inset 0 0 0 1px rgba(255, 63, 210, 0.04),
        inset 0 0 18px rgba(0, 255, 245, 0.02);
    transition: background-color 9999s ease-in-out 0s;
}

.toggle-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.95rem;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.85rem 0.95rem;
    background: rgba(0, 255, 245, 0.03);
    border: 1px solid rgba(0, 255, 245, 0.1);
    color: var(--text-dim);
}

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

.action-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.automation-helper {
    position: relative;
    z-index: 1;
    margin-top: 0.8rem;
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.5;
}

.primary-button {
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 0;
    padding: 0.95rem 1.2rem;
    background:
        linear-gradient(135deg, rgba(0, 255, 245, 0.14), rgba(255, 63, 210, 0.12));
    color: #9ef7ff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 1px rgba(255, 63, 210, 0.05),
        0 0 18px rgba(0, 255, 245, 0.08);
    transition: box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 63, 210, 0.08),
        0 0 20px rgba(0, 255, 245, 0.14),
        0 0 30px rgba(255, 63, 210, 0.12);
}

.primary-button.secondary {
    color: #ffd5ff;
    border-color: rgba(255, 63, 210, 0.3);
    background: linear-gradient(135deg, rgba(255, 63, 210, 0.16), rgba(122, 125, 255, 0.12));
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.link-button {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.progress-shell {
    position: relative;
    height: 12px;
    border: 1px solid rgba(0, 255, 245, 0.12);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 245, 0.58), var(--accent), var(--accent-strong));
    transition: width 180ms ease;
}

.secondary-fill {
    background: linear-gradient(90deg, rgba(122, 125, 255, 0.5), var(--accent-cool), var(--accent-strong));
}

.progress-label {
    min-width: 9rem;
    text-align: right;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.admin-feedback {
    grid-column: 1 / -1;
}

.admin-actions {
    grid-template-columns: auto;
    justify-content: start;
}

.panel-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table-shell {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    border: 1px solid rgba(0, 255, 245, 0.1);
    background: rgba(0, 255, 245, 0.02);
}

.client-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.client-table th,
.client-table td {
    padding: 0.95rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 245, 0.08);
    vertical-align: middle;
}

.client-table th {
    color: #9ef7ff;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: rgba(255, 63, 210, 0.05);
    white-space: nowrap;
}

.client-table td {
    color: var(--text-dim);
}

.client-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.note-card,
.alert-card {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
}

.note-card {
    color: var(--text-dim);
}

.alert-card {
    background: rgba(33, 5, 16, 0.92);
    color: #ffabd0;
    border-color: rgba(255, 63, 210, 0.24);
    margin-bottom: 1rem;
}

.profile-panel {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.stats-grid span {
    display: block;
    padding: 0.95rem;
    background: rgba(0, 255, 245, 0.03);
    border: 1px solid rgba(0, 255, 245, 0.1);
    color: var(--text-dim);
}

.stats-grid a {
    color: #dffcff;
    text-decoration: none;
}

.stats-grid a:hover,
.link-button:hover {
    text-shadow:
        0 0 10px rgba(0, 255, 245, 0.35),
        0 0 18px rgba(255, 63, 210, 0.2);
}

.client-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.client-card {
    padding: 1rem;
    background: rgba(0, 255, 245, 0.03);
    border: 1px solid rgba(0, 255, 245, 0.1);
    display: grid;
    gap: 0.85rem;
}

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

.client-head strong,
.client-head span,
.client-meta span {
    display: block;
}

.client-head strong {
    color: #f7fbff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.client-head div span,
.client-meta span {
    color: var(--text-dim);
}

.client-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.status-chip {
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(0, 255, 245, 0.18);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.status-active {
    color: #8efbff;
    background: rgba(0, 255, 245, 0.07);
}

.status-expired {
    color: #ff9fc6;
    border-color: rgba(255, 63, 210, 0.24);
    background: rgba(255, 63, 210, 0.08);
}

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

.credentials-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.credentials-stage,
.credentials-board,
.credentials-form-shell,
.credentials-summary-item,
.credentials-routing-item,
.credentials-roster-card,
.credentials-empty {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 255, 245, 0.1);
    background: rgba(0, 255, 245, 0.03);
}

.credentials-stage,
.credentials-board {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.credentials-stage-copy,
.credentials-board-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.credentials-stage-kicker {
    margin: 0 0 0.45rem;
    color: #9ef7ff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
}

.credentials-stage-copy h3,
.credentials-board-head h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #f7fbff;
    line-height: 1.35;
}

.credentials-stage-copy p:last-child {
    margin: 0.65rem 0 0;
    color: var(--text-dim);
    line-height: 1.6;
}

.credentials-form-shell {
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(9, 6, 20, 0.92), rgba(6, 5, 14, 0.92));
}

.credentials-form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.credentials-helper,
.credentials-empty span,
.credentials-row-label {
    margin: 0;
    color: var(--text-dim);
}

.credentials-helper {
    max-width: 34rem;
    font-size: 0.82rem;
    line-height: 1.55;
}

.credentials-summary-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.credentials-summary-item {
    padding: 0.95rem 1rem;
}

.credentials-routing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.85rem;
}

.credentials-table-shell .client-table {
    min-width: 0;
}

.credentials-routing-item {
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(0, 255, 245, 0.05), rgba(255, 63, 210, 0.05));
}

.credentials-summary-item span,
.credentials-routing-item span,
.credentials-meta-item span {
    display: block;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.credentials-summary-item strong,
.credentials-routing-item strong,
.credentials-meta-item strong,
.credentials-roster-card h3 {
    display: block;
    margin-top: 0.35rem;
    color: #f7fbff;
}

.credentials-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
}

.credentials-roster-card {
    padding: 1rem;
    display: grid;
    gap: 1rem;
    background:
        linear-gradient(180deg, rgba(8, 5, 18, 0.95), rgba(6, 4, 14, 0.95));
}

.credentials-roster-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.credentials-row-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.credentials-roster-card h3 {
    margin: 0.35rem 0 0;
    font-size: 1.02rem;
    word-break: break-word;
}

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

.credentials-meta-item {
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 4, 14, 0.28);
}

.credentials-meta-selected {
    border-color: rgba(0, 255, 245, 0.22);
    background: linear-gradient(135deg, rgba(0, 255, 245, 0.08), rgba(255, 63, 210, 0.06));
}

.credentials-roster-actions {
    justify-content: flex-start;
}

.credentials-empty {
    padding: 1.4rem;
    display: grid;
    gap: 0.45rem;
    text-align: center;
}

.credentials-empty p {
    margin: 0;
    color: #f7fbff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.runtime-table {
    min-width: 1180px;
}

.runtime-cell {
    display: grid;
    gap: 0.45rem;
    min-width: 13rem;
}

.runtime-filter-grid {
    position: relative;
    z-index: 1;
}

.runtime-error {
    color: #ff9fc6;
    font-size: 0.78rem;
    line-height: 1.4;
}

.exception-details {
    max-height: 28rem;
    margin: 0.75rem 0 0;
    padding: 0.85rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #ffd8e8;
    border: 1px solid rgba(255, 63, 210, 0.2);
    background: rgba(5, 4, 14, 0.5);
}

.request-log-detail {
    max-width: 22rem;
    max-height: 9rem;
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-dim);
    font-size: 0.74rem;
}

.console-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    max-height: 34rem;
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 245, 0.12);
    background:
        linear-gradient(180deg, rgba(4, 3, 12, 0.96), rgba(7, 4, 16, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 245, 0.04) 0,
            rgba(0, 255, 245, 0.04) 1px,
            transparent 1px,
            transparent 22px
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 63, 210, 0.04),
        inset 0 0 28px rgba(0, 255, 245, 0.03);
}

.console-shell-admin {
    max-height: 46rem;
}

.run-log-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    max-height: 34rem;
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 245, 0.12);
    background: rgba(0, 255, 245, 0.02);
}

.run-log-entry {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border-left: 2px solid rgba(0, 255, 245, 0.55);
    background: rgba(255, 255, 255, 0.025);
}

.run-log-error {
    border-left-color: rgba(255, 122, 168, 0.78);
    background: rgba(255, 63, 210, 0.05);
}

.run-log-head,
.run-log-progress,
.run-log-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
}

.run-log-head strong {
    display: block;
    margin-top: 0.3rem;
    color: #f7fbff;
    line-height: 1.35;
    word-break: break-word;
}

.run-log-label {
    color: #9ef7ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.run-log-progress {
    grid-template-columns: auto minmax(8rem, 1fr) auto;
    color: var(--text-dim);
}

.run-log-message {
    padding: 0.75rem;
    color: #ffb8d5;
    border: 1px solid rgba(255, 63, 210, 0.18);
    background: rgba(33, 5, 16, 0.38);
    white-space: pre-wrap;
    word-break: break-word;
}

.run-log-meta {
    color: var(--text-dim);
    font-size: 0.78rem;
}

.automation-log-shell {
    max-height: 34rem;
    overflow: auto;
}

.automation-log-table {
    min-width: 1120px;
}

.automation-log-table th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.automation-log-table td {
    vertical-align: top;
}

.automation-log-error-row {
    background: rgba(255, 63, 210, 0.035);
}

.automation-log-task {
    min-width: 14rem;
    color: #f7fbff;
    word-break: break-word;
}

.automation-log-progress {
    display: grid;
    grid-template-columns: auto minmax(8rem, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    min-width: 16rem;
    color: var(--text-dim);
}

.automation-log-error {
    min-width: 14rem;
    max-width: 28rem;
    color: #ffb8d5;
    white-space: pre-wrap;
    word-break: break-word;
}

.console-entry {
    border-left: 2px solid rgba(122, 125, 255, 0.45);
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.025);
}

.console-live {
    border-left-color: rgba(0, 255, 245, 0.7);
}

.console-error {
    border-left-color: rgba(255, 122, 168, 0.78);
    background: rgba(255, 63, 210, 0.05);
}

.console-entry-expand {
    padding: 0;
}

.console-entry-expand[open] {
    background: rgba(0, 255, 245, 0.035);
}

.console-summary {
    display: grid;
    gap: 0.45rem;
    cursor: pointer;
    padding: 0.65rem 0.75rem;
    list-style: none;
}

.console-summary::-webkit-details-marker {
    display: none;
}

.console-summary::marker {
    content: "";
}

.console-line {
    display: grid;
    grid-template-columns: 5.5rem 4.5rem 4.5rem 5rem minmax(9rem, 0.7fr) minmax(10rem, 1fr) minmax(12rem, 1.3fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 2rem;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.console-entry:not(.console-entry-expand) .console-line {
    grid-template-columns: 5.5rem 4.5rem 4.5rem minmax(10rem, 0.8fr) minmax(12rem, 1fr) 4rem;
}

.console-entry-expand .console-line {
    grid-template-columns: 1rem 5.5rem 4.5rem 4.5rem 5rem minmax(9rem, 0.7fr) minmax(10rem, 0.8fr) minmax(10rem, 1fr);
}

.console-entry-expand .console-line::before {
    content: "+";
    color: var(--accent);
    font-weight: 700;
}

.console-entry-expand[open] .console-line::before {
    content: "-";
}

.console-time,
.console-method,
.console-code {
    color: #f7fbff;
}

.console-status,
.console-method,
.console-code {
    justify-self: start;
    padding: 0.28rem 0.45rem;
    border: 1px solid rgba(0, 255, 245, 0.14);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.console-stage,
.console-url,
.console-note,
.console-account,
.console-client {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.console-client a {
    color: #dffcff;
    text-decoration: none;
}

.console-note {
    margin-top: 0.45rem;
    color: var(--text-dim);
    line-height: 1.45;
}

.console-detail-line {
    display: grid;
    gap: 0.28rem;
    padding-left: 19.2rem;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.5;
}

.console-entry-expand .console-detail-line {
    padding-left: 20.9rem;
}

.console-detail-line span {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

.console-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0 0.75rem 0.75rem;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.console-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.console-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0 0.75rem 0.75rem;
}

.console-detail-block {
    min-width: 0;
    border: 1px solid rgba(0, 255, 245, 0.1);
    background: rgba(5, 4, 14, 0.42);
}

.console-detail-block h3 {
    margin: 0;
    padding: 0.55rem 0.65rem;
    color: #9ef7ff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 1px solid rgba(0, 255, 245, 0.1);
}

.console-pre {
    max-height: 14rem;
    margin: 0;
    padding: 0.65rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-dim);
    font-size: 0.74rem;
    line-height: 1.45;
}

.truncate-cell {
    max-width: 20rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.danger-button {
    color: #ffd4e6;
    border-color: rgba(255, 122, 168, 0.34);
    background: linear-gradient(135deg, rgba(255, 122, 168, 0.16), rgba(255, 63, 210, 0.12));
}

code {
    font-family: Consolas, "Courier New", monospace;
}

@media (max-width: 900px) {
    .auth-shell,
    .hero {
        display: grid;
        align-items: start;
        padding: 1rem;
    }

    .dashboard-grid,
    .dashboard-link-grid,
    .field-grid,
    .toggle-grid,
    .action-row,
    .stats-grid,
    .client-grid,
    .client-meta,
    .credentials-layout,
    .credentials-summary-grid,
    .credentials-routing-grid,
    .credentials-roster-meta {
        grid-template-columns: 1fr;
    }

    .password-input-row {
        grid-template-columns: 1fr;
    }

    .hero-note {
        min-width: 0;
    }

    .auth-login-card {
        padding: 1rem;
    }

    .profile-panel {
        flex-direction: column;
        align-items: start;
    }

    .progress-label {
        min-width: 0;
        text-align: left;
    }

    .client-head {
        flex-direction: column;
    }

    .credentials-stage-copy,
    .credentials-board-head,
    .credentials-form-actions,
    .credentials-roster-head,
    .credentials-roster-actions,
    .auth-action-row {
        flex-direction: column;
        align-items: start;
    }

    .panel-toolbar {
        flex-direction: column;
    }

    .subscription-progress-head,
    .subscription-progress-meta {
        display: grid;
    }

    .subscription-progress-state {
        justify-items: start;
    }

    .console-line,
    .console-entry:not(.console-entry-expand) .console-line,
    .console-entry-expand .console-line,
    .run-log-head,
    .run-log-progress,
    .run-log-meta,
    .console-meta,
    .console-detail-grid {
        grid-template-columns: 1fr;
    }

    .console-detail-line,
    .console-entry-expand .console-detail-line {
        padding-left: 0;
    }

    .console-stage,
    .console-url,
    .console-note,
    .console-account,
    .console-client,
    .console-meta span {
        white-space: normal;
    }
}
