body {
    background-color: #f1f3f4;
}

.dashboard-shell {
    background:
        radial-gradient(circle at top, rgba(66, 133, 244, 0.16), transparent 26%),
        linear-gradient(180deg, #050505 0%, #0b0b0b 55%, #101214 100%);
}

.dashboard-sidebar {
    border-right: 1px solid var(--dashboard-border);
    background: var(--dashboard-rail);
    backdrop-filter: blur(18px);
    box-shadow: var(--dashboard-shadow);
}

.dashboard-nav-link {
    color: var(--dashboard-text-muted);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-nav-icon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dashboard-text-muted);
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dashboard-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dashboard-text);
    transform: translateX(2px);
}

.dashboard-nav-link:hover .dashboard-nav-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dashboard-text);
}

.dashboard-nav-link-active {
    background: rgba(138, 180, 248, 0.12);
    color: var(--dashboard-text);
    box-shadow: inset 0 0 0 1px rgba(138, 180, 248, 0.18);
}

.dashboard-nav-link-active:hover {
    background: rgba(138, 180, 248, 0.16);
    transform: none;
}

.dashboard-nav-link-active .dashboard-nav-icon,
.dashboard-nav-icon-active {
    background: linear-gradient(145deg, rgba(66, 133, 244, 0.95), rgba(32, 99, 214, 0.96));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(66, 133, 244, 0.24);
}

.dashboard-nav-sublink {
    color: var(--dashboard-text-muted);
    transition: background-color 160ms ease, color 160ms ease;
}

.dashboard-nav-sublink:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dashboard-text);
}

.dashboard-nav-sublink-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dashboard-text);
}

.dashboard-nav-bullet {
    height: 8px;
    width: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(163, 163, 163, 0.55);
}

.dashboard-nav-bullet-active {
    background: var(--dashboard-accent-strong);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.14);
}

.dashboard-page-sublink,
.dashboard-page-create {
    color: #8f8f8f;
    transition: background-color 160ms ease, color 160ms ease;
}

.dashboard-page-sublink:hover,
.dashboard-page-create:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dashboard-text);
}

.dashboard-page-sublink-active {
    background: rgba(138, 180, 248, 0.1);
    color: var(--dashboard-text);
}

.dashboard-page-dot {
    height: 6px;
    width: 6px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
}

.dashboard-page-dot-active,
.dashboard-page-dot-create {
    background: var(--dashboard-accent);
}

.dashboard-surface {
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-panel);
    box-shadow: var(--dashboard-shadow);
}

.dashboard-surface-muted {
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-panel-muted);
    box-shadow: var(--dashboard-shadow);
}

.dashboard-surface-strong {
    border: 1px solid var(--dashboard-border);
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.97), rgba(8, 8, 8, 0.98));
    box-shadow: var(--dashboard-shadow);
}

.dashboard-panel-label {
    color: var(--dashboard-accent);
}

.dashboard-panel-title {
    color: var(--dashboard-text);
}

.dashboard-copy {
    color: var(--dashboard-text-muted);
}

.dashboard-table thead {
    border-bottom: 1px solid var(--dashboard-border);
    color: var(--dashboard-text-muted);
}

.dashboard-table tbody {
    color: var(--dashboard-text-muted);
}

.dashboard-table tbody tr {
    border-color: rgba(82, 82, 82, 0.35);
}

.dashboard-table-strong {
    color: var(--dashboard-text);
    font-weight: 600;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(138, 180, 248, 0.22);
    background: rgba(138, 180, 248, 0.12);
    color: #dbeafe;
}

.dashboard-btn-primary {
    background: var(--dashboard-accent-strong);
    color: #fff;
    box-shadow: 0 14px 36px rgba(66, 133, 244, 0.28);
}

.dashboard-btn-secondary {
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-panel-strong);
    color: var(--dashboard-text);
}

.dashboard-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dashboard-text);
}

.dashboard-btn-danger {
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.dashboard-btn-danger:hover {
    background: rgba(220, 38, 38, 0.26);
    color: #fee2e2;
}

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

.dashboard-alert-trigger {
    transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.dashboard-alert-trigger:hover {
    border-color: rgba(138, 180, 248, 0.3);
    transform: translateY(-1px);
}

.dashboard-alerts[open] .dashboard-alert-trigger {
    border-color: rgba(138, 180, 248, 0.35);
    background: rgba(24, 24, 24, 0.98);
}

.dashboard-alert-bell {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dashboard-text);
}

.dashboard-alert-badge {
    background: var(--dashboard-accent-strong);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(66, 133, 244, 0.28);
}

.dashboard-alert-panel {
    backdrop-filter: blur(18px);
}

.dashboard-alert-card {
    border: 1px solid rgba(82, 82, 82, 0.4);
    background: rgba(24, 24, 24, 0.92);
}

.dashboard-alert-card-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(120, 53, 15, 0.16);
}

.dashboard-alert-card-danger {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(127, 29, 29, 0.18);
}

.dashboard-alert-card-info {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(30, 64, 175, 0.14);
}

.dashboard-alert-dot {
    height: 10px;
    width: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--dashboard-accent);
    box-shadow: 0 0 0 4px rgba(138, 180, 248, 0.12);
}

.dashboard-alert-card-warning .dashboard-alert-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.dashboard-alert-card-danger .dashboard-alert-dot {
    background: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.dashboard-chip-blue {
    background: rgba(138, 180, 248, 0.14);
    color: #dbeafe;
}

.dashboard-chip-emerald {
    background: rgba(52, 211, 153, 0.14);
    color: #d1fae5;
}

.dashboard-chip-violet {
    background: rgba(167, 139, 250, 0.16);
    color: #ede9fe;
}

.dashboard-chip-amber {
    background: rgba(251, 191, 36, 0.16);
    color: #fef3c7;
}

.dashboard-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.dashboard-shell select,
.dashboard-shell textarea {
    border-color: rgba(82, 82, 82, 0.52) !important;
    background: rgba(15, 15, 15, 0.94) !important;
    color: var(--dashboard-text) !important;
    box-shadow: none !important;
}

.dashboard-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"])::placeholder,
.dashboard-shell textarea::placeholder {
    color: #737373 !important;
}

.dashboard-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.dashboard-shell select:focus,
.dashboard-shell textarea:focus {
    border-color: rgba(138, 180, 248, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.22) !important;
    outline: none !important;
}

.dashboard-shell option {
    background: #111;
    color: #f5f5f5;
}

.dashboard-editor {
    border: 1px solid var(--dashboard-border);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.98) 100%);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.dashboard-editor .codex-editor {
    color: #0f172a;
    min-height: 460px;
    padding-bottom: 20px;
}

.dashboard-editor .ce-block__content,
.dashboard-editor .ce-toolbar__content {
    max-width: 100%;
}

.dashboard-editor .ce-paragraph,
.dashboard-editor .ce-header {
    color: #0f172a;
}

.dashboard-editor .ce-block:first-child .ce-paragraph[data-placeholder-active]:empty::before,
.dashboard-editor .ce-block:first-child .ce-header[data-placeholder-active]:empty::before {
    color: #64748b;
}

.dashboard-editor .ce-toolbar__plus,
.dashboard-editor .ce-toolbar__settings-btn {
    color: #0f172a;
}

.dashboard-editor .ce-toolbar__plus:hover,
.dashboard-editor .ce-toolbar__settings-btn:hover {
    background: rgba(14, 165, 233, 0.12);
}

.dashboard-template-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 26%),
        linear-gradient(135deg, rgba(124, 45, 18, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
    border-radius: 1.5rem;
    padding: 1rem 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-template-banner-copy {
    min-width: 0;
}

.dashboard-template-banner-kicker {
    display: block;
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-template-banner-copy strong {
    display: block;
    margin-top: 0.45rem;
    color: #fff7ed;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.dashboard-template-banner-badge {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: #fffbeb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.5rem 0.8rem;
    text-transform: uppercase;
}

.dashboard-html-editor-shell {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 1.35rem;
    background: #0b1120;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.18);
}

.dashboard-html-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top right, rgba(244, 114, 182, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.98) 100%);
}

.dashboard-html-editor-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.12);
    border-radius: 9999px;
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.38rem 0.72rem;
    text-transform: uppercase;
}

.dashboard-html-editor-chip-muted {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5e1;
}

.dashboard-html-editor {
    min-height: 42rem;
    width: 100%;
}

.dashboard-html-editor .ace_gutter {
    background: #0f172a !important;
    color: #64748b !important;
}

.dashboard-html-editor .ace_gutter-active-line {
    background: rgba(30, 41, 59, 0.95) !important;
}

.dashboard-html-editor .ace_marker-layer .ace_active-line {
    background: rgba(30, 41, 59, 0.45) !important;
}

.dashboard-html-editor .ace_cursor {
    color: #f8fafc !important;
}

.dashboard-code-panel {
    border: 1px solid rgba(71, 85, 105, 0.42);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.96) 100%);
    border-radius: 1.4rem;
    padding: 1rem;
}

.dashboard-code-panel-template {
    border-color: rgba(250, 204, 21, 0.38);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(8, 15, 34, 0.98) 0%, rgba(3, 7, 18, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.08);
}

.dashboard-code-label {
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.dashboard-code-chip {
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.12);
    color: #fef08a;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.7rem;
    text-transform: uppercase;
}

.dashboard-code-block {
    border: 1px solid rgba(71, 85, 105, 0.48) !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    color: #e0f2fe;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.dashboard-code-block::selection {
    background: rgba(56, 189, 248, 0.3);
    color: #f8fafc;
}

.dashboard-code-block-template {
    border-color: rgba(250, 204, 21, 0.34) !important;
    background: linear-gradient(180deg, rgba(12, 20, 38, 0.98) 0%, rgba(4, 8, 20, 0.98) 100%);
    color: #fde68a;
    box-shadow:
        inset 0 1px 0 rgba(250, 204, 21, 0.08),
        inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.dashboard-code-block-template::selection {
    background: rgba(250, 204, 21, 0.26);
    color: #fff7ed;
}

.console-auth-shell {
    background:
        radial-gradient(circle at top left, rgba(66, 133, 244, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(120, 120, 120, 0.14), transparent 28%),
        linear-gradient(180deg, #050505 0%, #0b0b0b 100%);
}

.console-auth-panel {
    border: 1px solid rgba(82, 82, 82, 0.42);
    background: rgba(14, 14, 14, 0.96);
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.46);
}

.console-auth-side {
    background: linear-gradient(145deg, rgba(66, 133, 244, 0.18), rgba(10, 10, 10, 0.98));
}

.console-auth-form {
    background: rgba(18, 18, 18, 0.98);
}

.console-auth-form input {
    border-color: rgba(82, 82, 82, 0.52) !important;
    background: rgba(7, 7, 7, 0.96) !important;
    color: #f5f5f5 !important;
    box-shadow: none !important;
}

.console-auth-form input::placeholder {
    color: #737373 !important;
}

.console-auth-form input:focus {
    border-color: rgba(138, 180, 248, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.22) !important;
    outline: none !important;
}

.prose a {
    color: #0284c7;
}

.prose img {
    border-radius: 1rem;
}
