﻿:root {
    --night: #07152f;
    --night-soft: #0d2042;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --white: #ffffff;
    --cloud: #f5f7fb;
    --line: #dbe3ef;
    --muted: #64748b;
    --text: #102033;
    --danger: #dc2626;
    --success: #0f766e;
    --shadow: 0 20px 60px rgba(7, 21, 47, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--cloud);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
    font: inherit;
}

[hidden],
.is-hidden {
    display: none !important;
}

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

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px;
    color: var(--white);
    background: var(--night);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: var(--night);
    background: var(--white);
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    padding: 12px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.74);
}

.nav a:hover,
.nav a.active {
    color: var(--white);
    background: var(--night-soft);
}

.sidebar-footer {
    display: grid;
    gap: 8px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.sidebar-footer a {
    color: var(--white);
    font-weight: 700;
}

.main {
    display: grid;
    align-content: start;
    gap: 28px;
    padding: 32px;
}

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

.topbar h1,
.content-section h2,
.assistants-band h2,
.auth-panel h1 {
    margin: 0;
    color: var(--night);
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue);
    cursor: pointer;
    font-weight: 800;
}

.button:hover,
button:hover {
    background: var(--blue-dark);
}

.button.secondary {
    color: var(--night);
    background: var(--white);
    border: 1px solid var(--line);
}

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

.stat-card,
.content-section,
.assistants-band,
.chat-panel,
.auth-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.stat-card {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.stat-card span,
.conversation-row time,
.conversation-row small,
.empty-state p,
.assistants-band p,
.auth-switch,
label {
    color: var(--muted);
}

.stat-card strong {
    color: var(--night);
    font-size: 30px;
    line-height: 1;
}

.stat-card .stat-text {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.content-section {
    padding: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
}

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

.field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid transparent;
}

.status-pill.status-success {
    color: #0f766e;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.status-pill.status-warning {
    color: #9a6700;
    background: #fff7ed;
    border-color: #fed7aa;
}

.status-pill.status-danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.status-pill.status-muted {
    color: var(--muted);
    background: #f8fafc;
    border-color: var(--line);
}

.flash {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.flash.success {
    color: #0f766e;
    background: #ecfdf5;
    border-color: #99f6e4;
}

.flash.error {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.conversation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

code {
    display: inline-block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
    color: var(--night);
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .conversation-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .conversation-actions {
        justify-content: flex-start;
    }
}

.section-heading a {
    color: var(--blue);
    font-weight: 800;
}

.conversation-list {
    display: grid;
    gap: 10px;
}

.conversation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.conversation-row:hover {
    border-color: #b9c8df;
}

.history-row a {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.history-row span,
.conversation-row > span {
    color: var(--night);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.danger-link {
    min-height: 36px;
    padding: 0 12px;
    color: var(--danger);
    background: #fff1f2;
}

.danger-link:hover {
    color: var(--white);
    background: var(--danger);
}

.assistants-band {
    padding: 28px;
}

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

.assistant-grid a {
    display: grid;
    gap: 8px;
    min-height: 50px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.assistant-grid a:hover {
    border-color: #b9c8df;
}

.assistant-grid a.locked,
.assistant-selector a.locked,
.category-card.locked {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    filter: grayscale(0.25);
}

.assistant-grid a.locked em,
.assistant-selector a.locked em,
.category-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.section-intro {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.assistant-grid strong {
    color: var(--night);
}

.assistant-grid span {
    color: var(--muted);
    line-height: 1.5;
}

.chat-layout {
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
}

.chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

.assistant-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.assistant-tabs a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.assistant-tabs a.active,
.assistant-tabs a:hover {
    color: var(--white);
    border-color: var(--night);
    background: var(--night);
}

.messages {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 360px;
    padding: 24px;
    overflow-y: auto;
}

.message {
    display: grid;
    gap: 8px;
    max-width: 820px;
}

.message.user {
    justify-self: end;
}

.message-role {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.message-content {
    padding: 14px 16px;
    border-radius: 8px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.message-content p,
.message-content ul,
.message-content ol,
.message-content h3 {
    margin: 0 0 12px;
}

.message-content p:last-child,
.message-content ul:last-child,
.message-content ol:last-child,
.message-content h3:last-child {
    margin-bottom: 0;
}

.message-content h3 {
    color: var(--night);
    font-size: 17px;
    line-height: 1.35;
}

.message-content ul,
.message-content ol {
    padding-left: 22px;
}

.message-content li + li {
    margin-top: 6px;
}

.message.assistant .message-content {
    background: #eef4ff;
}

.message.user .message-content {
    color: var(--white);
    background: var(--night);
}

.message-fold {
    display: grid;
    gap: 12px;
}

.message-fold summary {
    display: grid;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    color: var(--night);
    font-weight: 800;
}

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

.message-fold summary::after {
    content: '›';
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--blue);
    font-size: 22px;
    font-weight: 700;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.message-fold[open] summary::after {
    transform: rotate(-90deg);
}

.message-fold summary {
    position: relative;
    padding-right: 28px;
}

.message-fold-label {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.message-fold-preview {
    display: block;
    line-height: 1.6;
}

.message-fold summary:hover .message-fold-preview {
    text-decoration: underline;
}

.message-fold-body {
    padding-top: 2px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.7;
}

.generated-image-card {
    display: grid;
    gap: 12px;
}

.generated-image {
    width: 100%;
    max-width: 640px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #dfe9f7;
    object-fit: cover;
}

.generated-image-card details {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.generated-image-card summary {
    cursor: pointer;
    color: var(--night);
    font-weight: 800;
}

.inline-download {
    width: fit-content;
}

.response-actions {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #c9d8ef;
    border-radius: 8px;
    background: #f8fbff;
}

.response-actions-title {
    color: var(--night);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.response-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.response-actions-grid button {
    min-height: 34px;
    padding: 0 11px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(22, 44, 86, 0.96), rgba(14, 31, 61, 0.92));
    border: 1px solid rgba(80, 121, 184, 0.5);
    font-size: 13px;
}

.response-actions-grid button:hover {
    color: #08142d;
    background: linear-gradient(135deg, rgba(245, 184, 73, 0.98), rgba(255, 210, 85, 0.94));
    border-color: rgba(245, 184, 73, 0.34);
}

.integration-recommendations {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #c9d8ef;
    border-radius: 12px;
    background: #f8fbff;
}

.integration-recommendations-title {
    color: var(--night);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.integration-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.integration-recommendation-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d7e2f3;
    background: #ffffff;
}

.integration-recommendation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.integration-recommendation-head strong {
    color: var(--night);
    font-size: 15px;
}

.integration-recommendation-level,
.integration-recommendation-card p,
.integration-recommendation-card small {
    color: #536987;
}

.integration-recommendation-card p,
.integration-recommendation-card small {
    margin: 0;
}

.integration-recommendation-automations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integration-recommendation-automations span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--night);
    font-size: 12px;
    font-weight: 700;
}

.integration-recommendation-actions {
    display: flex;
    gap: 8px;
}

.integration-recommendation-actions .button.secondary {
    width: fit-content;
}

.project-action-button {
    background: #eef4ff;
    border-color: #bfd4ff;
}

.composer {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #fbfdff;
    margin-bottom: 0;
}

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

.composer textarea {
    width: 100%;
    max-height: 180px;
    resize: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    outline: none;
}

.composer textarea:focus,
.auth-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.empty-state {
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    max-width: 520px;
    padding: 32px;
    text-align: center;
}

.empty-state.compact {
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.empty-state h2,
.empty-state h3 {
    margin: 0 0 8px;
    color: var(--night);
}

.empty-state p {
    margin: 0;
}

.notice,
.form-error {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
}

.notice {
    color: var(--success);
    background: #ecfdf5;
}

.form-error {
    color: var(--danger);
    background: #fff1f2;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--night), #12386f);
}

.auth-panel {
    display: grid;
    gap: 20px;
    width: min(100%, 460px);
    padding: 32px;
}

.auth-brand {
    color: var(--night);
}

.auth-brand .brand-mark {
    color: var(--white);
    background: var(--night);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.auth-form input {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    outline: none;
}

.auth-switch {
    margin: 0;
}

.auth-switch a {
    color: var(--blue);
    font-weight: 800;
}

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

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 16px;
    }

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

    .nav a {
        text-align: center;
    }

    .sidebar-footer {
        display: none;
    }

    .main {
        padding: 20px;
    }

    .chat-layout {
        height: auto;
        min-height: calc(100vh - 132px);
    }

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

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

@media (max-width: 640px) {
    .topbar,
    .conversation-row,
    .history-row {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-grid,
    .assistant-grid,
    .composer {
        grid-template-columns: 1fr;
    }

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

    .messages {
        padding: 16px;
    }

    .auth-panel {
        padding: 24px;
    }
}

.credit-pill {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--night-soft);
}

.credit-pill span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.credit-pill strong {
    color: var(--white);
}

.topbar-actions,
.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.compact-stats .stat-card strong {
    font-size: 24px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
}

.assistant-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    overflow-x: auto;
}

.assistant-selector a {
    display: grid;
    gap: 7px;
    min-height: 104px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.assistant-selector a.active,
.assistant-selector a:hover {
    color: var(--white);
    border-color: var(--night);
    background: var(--night);
}

.assistant-selector span {
    color: inherit;
    opacity: 0.72;
    font-size: 13px;
    line-height: 1.4;
}

.selected-assistant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.selected-assistant-card h2,
.selected-assistant-card p {
    margin: 0;
}

.selected-assistant-card h2 {
    color: var(--night);
}

.selected-assistant-card p,
.selected-assistant-card small {
    color: var(--muted);
    line-height: 1.5;
}

.chat-layout {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
}

.chat-panel {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
}

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

.action-card {
    justify-content: flex-start;
    min-height: 58px;
    padding: 12px 14px;
    color: var(--night);
    background: var(--white);
    border: 1px solid var(--line);
    text-align: left;
}

.action-card.active,
.action-card:hover {
    color: var(--white);
    border-color: var(--blue);
    background: var(--blue);
}

.guided-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

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

.guided-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.guided-file-help {
    font-size: 12px;
    font-weight: 600;
    color: rgba(232, 239, 255, 0.72);
}

.guided-form input,
.guided-form textarea,
.guided-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    outline: none;
}

.guided-form textarea {
    resize: vertical;
}

.guided-form button {
    align-self: end;
}

.multimodal-bar,
.composer-tools {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.multimodal-bar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.composer-tools {
    padding-bottom: 2px;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background: var(--white);
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.file-button input {
    display: none;
}

.video-prep {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfdff;
}

.webcam-video {
    width: min(280px, 100%);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--night);
    object-fit: cover;
}

.button.active,
.action-card.active {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.video-placeholder {
    color: var(--muted);
    font-size: 14px;
}

.video-placeholder:empty,
.video-placeholder[hidden] {
    display: none;
}

.selected-files {
    padding: 10px 16px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    background: #f8fbff;
    font-size: 14px;
}

.profile-list {
    display: grid;
    gap: 12px;
}

.profile-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.profile-list div:last-child {
    border-bottom: 0;
}

.profile-list span,
.notice-card p {
    color: var(--muted);
}

.profile-list strong {
    color: var(--night);
}

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

.notice-card {
    display: grid;
    align-content: start;
    gap: 10px;
    border: 1px solid rgba(45, 77, 132, 0.46);
    background: linear-gradient(180deg, rgba(26, 43, 78, 0.96), rgba(18, 31, 57, 0.92));
    box-shadow: inset 0 1px 0 rgba(160, 196, 255, 0.05);
}

.notice-card h2,
.notice-card p {
    margin: 0;
}

.notice-card p {
    color: #d8e5fb;
}

.notice-example {
    padding: 18px;
    border: 1px solid rgba(58, 91, 146, 0.42);
    border-radius: 8px;
    color: #eff6ff;
    background: linear-gradient(180deg, rgba(20, 34, 64, 0.96), rgba(13, 24, 46, 0.92));
    line-height: 1.7;
}

.notice-surface {
    border: 1px solid rgba(45, 77, 132, 0.44);
    background: linear-gradient(180deg, rgba(24, 40, 74, 0.98), rgba(17, 29, 55, 0.94));
}

.work-list {
    display: grid;
    gap: 14px;
}

.work-item {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.work-item > div {
    display: grid;
    gap: 5px;
}

.work-item span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-item h2,
.work-item p {
    margin: 0;
}

.work-item h2 {
    color: var(--night);
    font-size: 20px;
}

.work-item p,
.work-item small,
.work-item time {
    color: var(--muted);
    line-height: 1.6;
}

.category-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.category-summary span {
    color: var(--muted);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-pills a {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background: #eef4ff;
    font-weight: 800;
}

.category-pills a[aria-current="page"] {
    color: var(--white);
    background: var(--night);
    border-color: var(--night);
}

.stacked-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response-actions-status {
    margin: 8px 0 14px;
    color: var(--muted);
    font-weight: 700;
}

.project-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.project-item-meta span {
    display: inline-flex;
    gap: 6px;
}

.project-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.project-item-target {
    min-width: 210px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--night);
    font: inherit;
}

.button.danger {
    color: #8f1d2c;
    border-color: #f2c9cf;
    background: #fff5f6;
}

.generated-image-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin: 12px 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #f8fbff;
}

.chat-history-notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbff;
    color: var(--muted);
}

.chat-history-notice strong {
    display: block;
    margin-bottom: 6px;
    color: var(--night);
}

.chat-history-notice p {
    margin: 0;
}

.category-pills span {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background: #eef4ff;
    font-weight: 800;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.project-sidebar-panel,
.project-detail-column {
    display: grid;
    gap: 18px;
}

.project-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 16px;
}

.project-search-form input {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.project-card-list,
.project-item-list,
.recommendation-list {
    display: grid;
    gap: 14px;
}

.project-accordion-list {
    display: grid;
    gap: 14px;
}

.project-content-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.project-content-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background: #f8fbff;
    font-weight: 800;
}

.project-content-tabs a strong {
    color: var(--muted);
    font-size: 12px;
}

.project-content-tabs a:hover {
    border-color: #93c5fd;
    background: #eef4ff;
}

.project-accordion {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    overflow: hidden;
    scroll-margin-top: 24px;
}

.project-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

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

.project-accordion summary span {
    color: var(--night);
    font-size: 18px;
    font-weight: 900;
}

.project-accordion summary strong {
    color: var(--muted);
    font-size: 13px;
}

.project-accordion[open] summary {
    border-bottom: 1px solid var(--line);
    background: #f8fbff;
}

.project-accordion .project-item-list {
    padding: 16px;
}

.project-list-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.project-list-card.selected {
    border-color: #93c5fd;
    box-shadow: inset 0 0 0 1px #93c5fd;
}

.project-list-card a {
    display: grid;
    gap: 8px;
    color: inherit;
}

.project-list-card span,
.project-item-head span,
.project-dashboard-head span,
.project-status-badge {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-list-card h3,
.project-item-card h3,
.project-dashboard-head h3,
.project-detail-panel h2,
.recommendation-item {
    margin: 0;
}

.project-list-card p,
.project-detail-description,
.project-item-card p,
.project-overview-text,
.project-dashboard-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.project-list-card small,
.project-item-head time {
    color: var(--muted);
}

.project-overview-band {
    display: grid;
    gap: 14px;
}

.project-recent-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-recent-strip a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background: #fbfdff;
    font-weight: 700;
}

.project-recent-strip a.active {
    border-color: #93c5fd;
    background: #eef4ff;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.project-meta-grid article,
.project-dashboard-card,
.recommendation-item,
.project-item-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.project-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.project-meta-grid strong,
.project-dashboard-head strong {
    color: var(--night);
    font-size: 18px;
}

.project-member-list {
    display: grid;
    gap: 12px;
}

.project-member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.project-member-card div,
.project-member-card strong,
.project-member-card span {
    display: block;
}

.project-member-card strong {
    color: var(--night);
}

.project-member-card span {
    color: var(--muted);
    font-size: 14px;
}

.project-status-badge.active {
    padding: 8px 12px;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    background: #eef4ff;
}

.project-item-card {
    display: grid;
    gap: 12px;
}

.project-item-head,
.project-dashboard-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.project-item-content {
    color: #f4f8ff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.75;
}

.project-item-content p {
    margin: 0 0 10px;
}

.project-item-content h1,
.project-item-content h2,
.project-item-content h3,
.project-item-content h4,
.project-item-content strong,
.project-item-content b,
.project-item-content li,
.project-item-content blockquote,
.project-item-content a,
.project-item-content code,
.project-item-content pre {
    color: #f8fbff;
}

.project-item-content em,
.project-item-content small,
.project-item-content span {
    color: #d7e3fb;
}

.project-item-content,
.project-item-content * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-item-content p:last-child {
    margin-bottom: 0;
}

.project-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #bfd4ff;
    border-radius: 8px;
    background: #eef4ff;
}

.project-feedback strong,
.project-feedback span {
    display: block;
}

.project-feedback span {
    color: var(--night);
    font-weight: 800;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
}

.project-modal-card {
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.project-modal-body,
.project-modal-section,
.project-modal-list,
.project-quick-create {
    display: grid;
    gap: 14px;
}

.project-quick-create label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.project-modal-body {
    margin-top: 10px;
}

.project-modal-section input,
.project-quick-create input,
.project-quick-create textarea {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.project-quick-create textarea {
    min-height: 140px;
    padding: 12px 14px;
    resize: vertical;
}

.project-option {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background: #fbfdff;
    text-align: left;
}

.project-option.is-active {
    border-color: #93c5fd;
    background: #eef4ff;
}

.project-option span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-option strong {
    font-size: 18px;
}

.project-modal-empty {
    margin: 0;
    color: var(--muted);
}

.guided-source,
.reuse-source-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
}

.guided-source strong,
.reuse-source-card strong {
    color: var(--gold-soft);
}

.reuse-option-grid,
.reuse-custom-grid,
.reuse-modal-actions {
    display: grid;
    gap: 12px;
}

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

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

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

.reuse-custom-grid label {
    display: grid;
    gap: 8px;
}

.reuse-custom-grid select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    font: inherit;
}

.reuse-custom-grid select option,
.reuse-custom-grid select optgroup,
.admin-provider-card select option,
.admin-provider-card select optgroup,
.admin-user-form select option,
.admin-user-form select optgroup {
    color: #0b1833;
    background: #ffffff;
}

.ai-provider-meta {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    font-size: 12px;
    opacity: 0.8;
}

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

.category-card {
    display: grid;
    gap: 14px;
    min-height: 260px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.category-card input {
    width: 18px;
    height: 18px;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #b7d0ff;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

.category-card-top {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid #d9e6ff;
    background: linear-gradient(180deg, #eef4ff 0%, #dfeeff 100%);
    color: var(--blue);
    font-size: 19px;
    font-weight: 900;
}

.category-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.category-copy {
    display: grid;
    gap: 8px;
}

.category-card span {
    color: var(--night);
    font-size: 20px;
    font-weight: 900;
}

.category-card strong {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.5;
}

.category-highlights {
    display: grid;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid #e3ecfb;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.category-highlights p {
    margin: 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-highlights ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-highlights li {
    color: var(--night);
    font-weight: 700;
}

.category-highlights li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--blue);
    font-weight: 900;
}

.category-card.enabled {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

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

.pricing-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border-color: #93c5fd;
}

.pricing-card span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-card h2,
.pricing-card p {
    margin: 0;
}

.pricing-card h2 {
    color: var(--night);
}

.pricing-card p {
    color: var(--muted);
    line-height: 1.6;
}

.pricing-feature-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--white);
}

.message-role {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speak-button {
    min-height: 26px;
    padding: 0 9px;
    color: var(--blue);
    background: #eef4ff;
    font-size: 12px;
}

.speak-button:hover {
    color: var(--white);
    background: var(--blue);
}

@media (max-width: 920px) {
    .two-column {
        grid-template-columns: 1fr;
    }

    .project-layout,
    .project-meta-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 640px) {
    .assistant-selector,
    .action-grid,
    .category-grid,
    .pricing-grid,
    .guided-form {
        grid-template-columns: 1fr;
    }

    .selected-assistant-card {
        align-items: stretch;
        flex-direction: column;
    }

    .video-prep {
        align-items: stretch;
        flex-direction: column;
    }

    .project-search-form {
        grid-template-columns: 1fr;
    }

    .project-item-head,
    .project-dashboard-head {
        flex-direction: column;
    }
}

:root {
    --night: #061126;
    --night-soft: #0b1837;
    --night-elevated: #112958;
    --blue: #6ea8ff;
    --blue-dark: #4d85f5;
    --gold: #f5b849;
    --gold-soft: #ffd76a;
    --white: #f8fbff;
    --cloud: #09152c;
    --line: rgba(255, 255, 255, 0.12);
    --muted: rgba(222, 231, 248, 0.72);
    --text: #f8fbff;
    --danger: #ff6f7d;
    --success: #7de7c0;
    --shadow: 0 24px 60px rgba(2, 8, 23, 0.35);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.09);
    --gold-shadow: 0 0 0 1px rgba(245, 184, 73, 0.18), 0 22px 44px rgba(245, 184, 73, 0.08);
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 184, 73, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(110, 168, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #061126 0%, #09152c 35%, #0b1837 100%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 55%, transparent 95%);
    opacity: 0.28;
}

.sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(8, 18, 40, 0.96), rgba(7, 17, 38, 0.92)),
        radial-gradient(circle at top, rgba(245, 184, 73, 0.14), transparent 40%);
    backdrop-filter: blur(22px);
}

.brand-mark {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #0b1837;
    background: linear-gradient(135deg, #ffffff 0%, #ffd76a 100%);
    box-shadow: 0 14px 28px rgba(245, 184, 73, 0.24);
}

.nav {
    gap: 10px;
}

.nav a {
    position: relative;
    padding: 13px 14px 13px 18px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.35;
}

.nav a:hover,
.nav a.active {
    border-color: rgba(245, 184, 73, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--gold-shadow);
    transform: translateX(2px);
}

.nav a:hover::before,
.nav a.active::before {
    opacity: 1;
}

.sidebar-footer a,
.section-heading a,
.conversation-row a,
.project-recent-strip a,
.project-content-tabs a {
    color: var(--white);
}

.credit-pill {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.main {
    gap: 24px;
    padding: 32px;
}

.topbar h1,
.content-section h2,
.assistants-band h2,
.auth-panel h1,
.selected-assistant-card h2,
.project-detail-panel h2,
.work-item h2,
.project-list-card h3,
.project-item-card h3,
.recommendation-item h3 {
    color: var(--white);
}

.eyebrow,
.work-item span,
.project-list-card span,
.project-item-head span,
.project-dashboard-head span,
.project-status-badge,
.response-actions-title,
.credit-pill span {
    color: var(--gold-soft);
}

.button,
button {
    border: 1px solid rgba(245, 184, 73, 0.18);
    color: #08142d;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    box-shadow: 0 16px 28px rgba(245, 184, 73, 0.22);
}

.button:hover,
button:hover {
    background: linear-gradient(135deg, #f2af35 0%, #ffd255 100%);
}

.button.secondary,
.file-button,
.response-actions-grid button,
.project-item-target,
.project-option,
.pricing-card,
.conversation-row,
.work-item,
.project-meta-grid article,
.project-dashboard-card,
.recommendation-item,
.project-item-card,
.generated-image-card details,
.chat-history-notice,
.category-summary,
.category-highlights,
.selected-files,
.video-prep,
.guidance-card {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.response-actions-grid button {
    color: #f8fbff;
    border-color: rgba(75, 117, 182, 0.48);
    background: linear-gradient(180deg, rgba(24, 45, 86, 0.98), rgba(16, 33, 64, 0.94));
    box-shadow: inset 0 1px 0 rgba(175, 208, 255, 0.05);
}

.response-actions-grid button:hover {
    color: #08142d;
    border-color: rgba(245, 184, 73, 0.32);
    background: linear-gradient(135deg, rgba(245, 184, 73, 0.98), rgba(255, 210, 85, 0.94));
}

.button.secondary:hover,
.file-button:hover,
.response-actions-grid button:hover,
.project-option:hover,
.conversation-row:hover,
.work-item:hover,
.project-list-card:hover {
    border-color: rgba(245, 184, 73, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.response-actions {
    border-color: rgba(57, 92, 148, 0.42);
    background: linear-gradient(180deg, rgba(22, 37, 67, 0.98), rgba(15, 28, 54, 0.94));
}

.response-actions-grid button:hover {
    color: #08142d;
    border-color: rgba(245, 184, 73, 0.34);
    background: linear-gradient(135deg, rgba(245, 184, 73, 0.98), rgba(255, 210, 85, 0.94));
    box-shadow: 0 14px 26px rgba(245, 184, 73, 0.16);
}

.stat-card,
.content-section,
.assistants-band,
.chat-panel,
.auth-panel,
.selected-assistant-card,
.guided-panel,
.project-modal-card,
.project-list-card,
.category-card,
.pricing-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat-card strong,
.project-meta-grid strong,
.project-dashboard-head strong,
.profile-list strong {
    color: var(--white);
}

.stat-card span,
.conversation-row time,
.conversation-row small,
.empty-state p,
.assistants-band p,
.auth-switch,
label,
.selected-assistant-card p,
.selected-assistant-card small,
.profile-list span,
.notice-card p,
.work-item p,
.work-item time,
.project-list-card p,
.project-list-card small,
.project-detail-description,
.project-overview-text,
.project-dashboard-card p,
.category-summary span,
.video-placeholder,
.selected-files,
.chat-history-notice,
.project-feedback strong,
.project-feedback span {
    color: var(--muted);
}

.empty-state.compact,
.notice-example,
.generated-image-shell {
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.conversation-row,
.project-list-card,
.work-item,
.project-item-card,
.project-option,
.pricing-card,
.category-card,
.assistant-grid a,
.action-card,
.message-content,
.response-actions,
.generated-image,
.project-accordion,
.project-accordion[open] summary {
    border-radius: 18px;
}

.category-pills a,
.category-pills span,
.project-recent-strip a {
    border: 1px solid rgba(245, 184, 73, 0.16);
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.category-pills a[aria-current="page"] {
    color: #08142d;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    border-color: transparent;
}

.assistant-grid a,
.action-card,
.assistant-selector a,
.project-accordion,
.category-card {
    background: rgba(255, 255, 255, 0.05);
}

.assistant-grid a:hover,
.action-card:hover,
.action-card.active,
.assistant-selector a.active,
.assistant-selector a:hover,
.category-card:hover,
.category-card.enabled {
    border-color: rgba(245, 184, 73, 0.24);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--gold-shadow);
}

.action-card {
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #eff6ff;
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.2), rgba(15, 23, 42, 0.42));
    box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.08);
}

.action-card span {
    color: #eff6ff;
}

.action-card:hover,
.action-card.active {
    border-color: rgba(245, 184, 73, 0.34);
    color: #08142d;
    background: linear-gradient(135deg, rgba(245, 184, 73, 0.98), rgba(255, 210, 85, 0.94));
    box-shadow: 0 18px 34px rgba(245, 184, 73, 0.24);
}

.action-card:hover span,
.action-card.active span {
    color: #08142d;
}

.composer-tools .button.secondary,
.composer-tools .file-button {
    border: 1px solid rgba(79, 117, 175, 0.52);
    color: #f8fbff;
    background: linear-gradient(180deg, rgba(31, 54, 99, 0.98), rgba(20, 39, 72, 0.94));
    box-shadow: inset 0 1px 0 rgba(188, 214, 255, 0.07), 0 10px 20px rgba(5, 11, 27, 0.22);
}

.composer-tools .button.secondary:hover,
.composer-tools .file-button:hover {
    border-color: rgba(245, 184, 73, 0.3);
    color: #08142d;
    background: linear-gradient(135deg, rgba(245, 184, 73, 0.96), rgba(255, 210, 85, 0.9));
}

.assistant-grid strong,
.assistant-grid span,
.assistant-selector span,
.category-card span,
.category-card strong,
.message-fold summary,
.generated-image-card summary,
.conversation-row > span,
.history-row span,
.message-content h3 {
    color: var(--white);
}

.message.assistant .message-content {
    background: rgba(255, 255, 255, 0.06);
}

.message.user .message-content {
    color: var(--white);
    background: linear-gradient(180deg, rgba(11, 24, 55, 0.96), rgba(17, 41, 88, 0.88));
}

.message-fold-label {
    color: var(--gold-soft);
}

.message-fold summary::after {
    content: '›';
    color: var(--gold-soft);
}

.danger-link,
.button.danger {
    color: #ffd2d8;
    background: rgba(255, 111, 125, 0.1);
    border: 1px solid rgba(255, 111, 125, 0.2);
}

.danger-link:hover,
.button.danger:hover {
    color: #08142d;
    background: linear-gradient(135deg, #ff8a96 0%, #ffc5cc 100%);
}

.project-feedback {
    border: 1px solid rgba(245, 184, 73, 0.22);
    background: rgba(245, 184, 73, 0.12);
}

.dashboard-hero,
.project-spotlight,
.glass-panel {
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before,
.project-spotlight::before,
.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 45%);
}

.premium-main {
    gap: 22px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(245, 184, 73, 0.16), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.hero-subtitle {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-hero-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.hero-badge {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-badge span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge strong {
    color: var(--white);
    font-size: 28px;
}

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

.kpi-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 22px;
}

.kpi-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kpi-card strong {
    color: var(--white);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
}

.project-spotlight {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(110, 168, 255, 0.12), transparent 32%),
        rgba(255, 255, 255, 0.06);
}

.project-spotlight-text,
.project-spotlight-note {
    max-width: 940px;
    color: var(--muted);
    line-height: 1.7;
}

.project-spotlight-note {
    margin-top: 8px;
    color: var(--gold-soft);
    font-weight: 700;
}

.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.project-summary-grid article {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.project-summary-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-summary-grid strong {
    color: var(--white);
    font-size: 22px;
}

.premium-summary {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.premium-pills {
    gap: 10px;
}

.premium-pills a {
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-assistant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.expert-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.expert-card-head-main {
    display: grid;
    gap: 4px;
}

.expert-card-head strong {
    font-size: 20px;
}

.expert-card-head small {
    color: #b9cff1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.expert-card-head span {
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.expert-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.expert-card-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.expert-card-list li {
    color: var(--white);
    font-weight: 700;
}

.expert-card-list li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--gold-soft);
}

.expert-card-action {
    min-height: 44px;
    padding: 10px 18px;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 18px;
}

.activity-timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    box-shadow: 0 0 18px rgba(245, 184, 73, 0.45);
}

.timeline-content span {
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-content h3,
.timeline-content p {
    margin: 4px 0 0;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 18px;
}

.timeline-content p,
.timeline-item time {
    color: var(--muted);
}

.recommendation-stack {
    display: grid;
    gap: 14px;
}

.premium-recommendation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 18px;
}

.premium-recommendation h3 {
    font-size: 18px;
    line-height: 1.5;
}

.premium-work-list,
.premium-conversation-list {
    display: grid;
    gap: 16px;
}

.work-item.glass-panel {
    padding: 20px 22px;
}

.work-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.premium-history-row {
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.premium-history-row:hover {
    border-color: rgba(245, 184, 73, 0.3);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.chat-layout,
.chat-panel,
.project-layout,
.project-meta-grid,
.notice-grid,
.pricing-grid,
.category-grid,
.action-grid,
.guided-form,
.assistant-grid {
    row-gap: 16px;
}

.category-card.premium {
    gap: 18px;
    min-height: 280px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(245, 184, 73, 0.09), transparent 30%),
        rgba(255, 255, 255, 0.06);
}

.category-card.premium.enabled {
    box-shadow: var(--gold-shadow);
}

.category-card.premium input {
    accent-color: #102a58;
}

.category-icon {
    border: 1px solid rgba(245, 184, 73, 0.18);
    background: rgba(245, 184, 73, 0.12);
    color: var(--gold-soft);
}

.category-card.premium .category-highlights {
    border: 1px solid rgba(16, 42, 88, 0.42);
    background: linear-gradient(180deg, rgba(13, 32, 66, 0.92), rgba(10, 24, 50, 0.84));
    box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.06);
}

.category-card.premium .category-highlights p {
    color: #9dc2ff;
}

.category-card.premium .category-highlights li {
    color: #eff6ff;
}

.category-card.premium .category-highlights li::before {
    color: var(--gold-soft);
}

.project-content-tabs a {
    border-color: rgba(52, 88, 146, 0.5);
    color: #f5f9ff;
    background: linear-gradient(180deg, rgba(24, 45, 86, 0.98), rgba(15, 31, 61, 0.94));
}

.project-content-tabs a strong {
    color: #b9cff1;
}

.project-content-tabs a:hover {
    border-color: rgba(245, 184, 73, 0.26);
    background: linear-gradient(180deg, rgba(19, 41, 78, 0.96), rgba(12, 28, 56, 0.9));
}

.project-search-form input,
.project-item-target,
.project-quick-create input,
.project-quick-create textarea {
    border-color: rgba(53, 86, 141, 0.54);
    color: #f5f9ff;
    background: linear-gradient(180deg, rgba(19, 37, 71, 0.98), rgba(12, 25, 49, 0.94));
}

.project-search-form input::placeholder,
.project-item-target::placeholder,
.project-quick-create input::placeholder,
.project-quick-create textarea::placeholder {
    color: #93a8c8;
}

.project-accordion summary {
    background: linear-gradient(180deg, rgba(20, 39, 74, 0.94), rgba(13, 28, 56, 0.9));
}

.project-accordion[open] summary {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(24, 45, 84, 0.98), rgba(16, 34, 64, 0.94));
}

.project-item-card,
.project-meta-grid article,
.project-dashboard-card,
.recommendation-item {
    border-color: rgba(56, 89, 146, 0.42);
    background: linear-gradient(180deg, rgba(23, 38, 68, 0.98), rgba(15, 27, 51, 0.94));
}

.project-member-card {
    border-color: rgba(56, 89, 146, 0.42);
    background: linear-gradient(180deg, rgba(23, 38, 68, 0.98), rgba(15, 27, 51, 0.94));
}

.project-member-card strong {
    color: var(--white);
}

.project-member-card span {
    color: var(--muted);
}

.category-highlights li::before {
    content: "✓";
    color: var(--gold-soft);
}

.category-card em {
    color: var(--gold-soft);
}

.project-modal {
    background: rgba(3, 10, 24, 0.68);
    backdrop-filter: blur(10px);
}

.project-modal-card {
    border-radius: 24px;
    background: rgba(8, 18, 40, 0.96);
}

.project-modal-card,
.project-modal-card h2,
.project-modal-card p,
.project-modal-card label,
.project-modal-card strong,
.project-modal-card span {
    color: var(--white);
}

.project-search-form input,
.project-modal-section input,
.project-quick-create input,
.project-quick-create textarea,
.guided-form input,
.guided-form textarea,
.guided-form select,
.composer textarea,
.auth-form input {
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.composer textarea {
    color: #000000 !important;
    -webkit-text-fill-color: #000000;
    caret-color: #f8fbff;
    border-color: rgba(96, 129, 184, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-search-form input::placeholder,
.project-modal-section input::placeholder,
.project-quick-create input::placeholder,
.project-quick-create textarea::placeholder,
.guided-form input::placeholder,
.guided-form textarea::placeholder,
.composer textarea::placeholder {
    color: #807272;
    -webkit-text-fill-color: #807272;
}

.guided-form select option,
.guided-form select optgroup {
    color: #0b1833;
    background: #ffffff;
}

.auth-page {
    background:
        radial-gradient(circle at top, rgba(245, 184, 73, 0.18), transparent 32%),
        linear-gradient(180deg, #061126 0%, #09152c 100%);
}

.auth-panel {
    border-radius: 24px;
}

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

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

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

@media (max-width: 920px) {
    .main,
    .premium-main {
        padding: 20px;
    }

    .dashboard-kpi-grid,
    .project-summary-grid,
    .premium-assistant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-hero,
    .project-spotlight {
        padding: 22px 18px;
    }

    .hero-actions,
    .topbar-actions {
        width: 100%;
    }

    .hero-actions .button,
    .topbar-actions .button,
    .topbar-actions form,
    .topbar-actions form button {
        width: 100%;
    }

    .dashboard-kpi-grid,
    .project-summary-grid,
    .premium-assistant-grid,
    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .premium-recommendation {
        grid-template-columns: 18px minmax(0, 1fr);
        flex-direction: column;
    }

    .timeline-item time {
        grid-column: 2;
    }
}

.admin-provider-form,
.admin-user-form {
    display: grid;
    gap: 20px;
}

.admin-provider-grid,
.admin-user-grid {
    display: grid;
    gap: 20px;
}

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

.admin-provider-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-provider-card-title {
    font-weight: 700;
}

.admin-provider-card-caption {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffd35a;
}

.admin-provider-routes {
    display: grid;
    gap: 12px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-provider-route {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(8, 18, 38, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-provider-route strong {
    font-size: 14px;
}

.admin-provider-card select,
.admin-user-form select,
.admin-user-form input,
.admin-search-form input,
.admin-danger-card input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.admin-provider-card small,
.admin-user-head p,
.admin-danger-card p {
    color: rgba(232, 239, 255, 0.72);
}

.admin-form-actions,
.admin-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-search-form input {
    max-width: 420px;
}

.admin-user-card {
    display: grid;
    gap: 22px;
}

.admin-user-head,
.admin-user-badges,
.admin-danger-grid,
.admin-form-grid {
    display: grid;
    gap: 16px;
}

.admin-user-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.admin-user-badges {
    grid-auto-flow: column;
    align-content: start;
}

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

.admin-form-grid label,
.admin-danger-card label {
    display: grid;
    gap: 8px;
}

.admin-stats-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.admin-danger-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-danger-card-strong {
    border-color: rgba(255, 110, 110, 0.34);
    background: linear-gradient(180deg, rgba(68, 24, 39, 0.45), rgba(46, 14, 26, 0.35));
}

.button.danger,
button.danger {
    border-color: rgba(255, 141, 141, 0.4);
    background: linear-gradient(180deg, #7f2741, #631c31);
    color: #fff4f5;
    box-shadow: none;
}

.button.danger:hover,
button.danger:hover {
    background: linear-gradient(180deg, #92304b, #742137);
}

/* Premium refresh */
:root {
    --night-soft: #0c1a38;
    --night-elevated: #14274a;
    --line: rgba(255, 255, 255, 0.08);
    --muted: rgba(226, 234, 248, 0.7);
    --shadow: 0 18px 44px rgba(2, 8, 23, 0.26);
    --glass: rgba(255, 255, 255, 0.045);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --gold-shadow: 0 0 0 1px rgba(245, 184, 73, 0.14), 0 16px 30px rgba(245, 184, 73, 0.08);
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 184, 73, 0.09), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(110, 168, 255, 0.1), transparent 28%),
        linear-gradient(180deg, #071226 0%, #09162c 42%, #0c1a34 100%);
}

body::before {
    opacity: 0.16;
}

.main {
    gap: 30px;
    padding: 36px;
}

.sidebar {
    gap: 30px;
    padding: 30px 24px;
    background:
        linear-gradient(180deg, rgba(8, 17, 36, 0.94), rgba(7, 16, 33, 0.9)),
        radial-gradient(circle at top, rgba(245, 184, 73, 0.09), transparent 34%);
}

.brand {
    gap: 14px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(245, 184, 73, 0.16);
}

.nav {
    gap: 9px;
}

.nav a {
    padding: 14px 16px 14px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.nav a::before {
    left: 13px;
    width: 7px;
    height: 7px;
    opacity: 0.22;
}

.nav a:hover,
.nav a.active {
    transform: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.06));
    box-shadow: 0 14px 30px rgba(2, 8, 23, 0.18);
}

.sidebar-footer,
.credit-pill {
    border-radius: 18px;
}

.topbar {
    align-items: flex-start;
    gap: 24px;
}

.topbar h1,
.dashboard-hero h1 {
    letter-spacing: -0.03em;
    font-weight: 780;
}

.hero-subtitle,
.project-detail-description,
.project-overview-text,
.section-intro {
    line-height: 1.72;
}

.button,
button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(245, 184, 73, 0.16);
    transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(245, 184, 73, 0.18);
}

.button.secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.button.secondary:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.stat-card,
.content-section,
.assistants-band,
.chat-panel,
.auth-panel,
.selected-assistant-card,
.guided-panel,
.project-modal-card,
.project-list-card,
.category-card,
.pricing-card {
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.032)),
        rgba(8, 18, 40, 0.78);
    box-shadow:
        0 18px 42px rgba(2, 8, 23, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.content-section {
    padding: 28px;
}

.section-heading {
    margin-bottom: 22px;
}

.stats-grid {
    gap: 18px;
}

.stat-card {
    gap: 14px;
    padding: 24px;
}

.stat-card span {
    font-size: 13px;
    letter-spacing: 0.03em;
}

.stat-card strong {
    font-size: clamp(32px, 3vw, 42px);
    letter-spacing: -0.03em;
}

.dashboard-hero {
    gap: 28px;
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(245, 184, 73, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    box-shadow: 0 22px 48px rgba(2, 8, 23, 0.24);
}

.hero-badge,
.project-overview-band,
.project-sidebar-panel,
.project-detail-panel,
.project-item-card,
.recommendation-item,
.project-member-card,
.project-meta-grid article {
    border-radius: 20px;
}

.project-layout {
    gap: 24px;
}

.project-list-card,
.premium-history-row,
.conversation-row,
.project-option {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-list-card:hover,
.premium-history-row:hover,
.conversation-row:hover,
.project-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(2, 8, 23, 0.18);
}

.project-meta-grid {
    gap: 18px;
}

.project-meta-grid article {
    padding: 22px;
    border-color: rgba(255, 255, 255, 0.06);
}

.project-meta-grid span {
    margin-bottom: 12px;
    font-size: 13px;
}

.project-item-card,
.recommendation-item,
.project-member-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(24, 39, 70, 0.92), rgba(15, 27, 52, 0.86));
}

.project-item-card {
    padding: 22px;
}

.project-item-content {
    line-height: 1.75;
}

.project-item-content p,
.project-item-content li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-content-tabs {
    gap: 10px;
    margin-bottom: 12px;
}

.project-content-tabs a {
    border-radius: 14px;
    padding: 12px 16px;
}

.project-accordion summary {
    padding: 18px 20px;
}

.project-accordion > div,
.project-accordion .project-item-list {
    padding: 6px 0 0;
}

.project-search-form input,
.project-item-target,
.project-quick-create input,
.project-quick-create textarea,
.project-modal-section input,
.project-modal-section textarea,
.guided-form input,
.guided-form textarea,
.guided-form select {
    border-radius: 16px;
    min-height: 50px;
}

.project-quick-create textarea,
.guided-form textarea {
    min-height: 136px;
}

.action-card,
.assistant-grid a,
.category-card {
    transition: transform 170ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action-card:hover,
.assistant-grid a:hover,
.category-card:hover {
    transform: translateY(-2px);
}

.content-section,
.stat-card,
.dashboard-hero,
.project-list-card,
.project-item-card,
.recommendation-item,
.project-member-card {
    animation: premiumFadeIn 360ms ease;
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .admin-user-head {
        grid-template-columns: 1fr;
    }

    .admin-user-badges {
        grid-auto-flow: row;
    }
}

.expertise-form {
    display: grid;
    gap: 18px;
    max-width: 980px;
}

.expertise-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.expertise-form input,
.expertise-form textarea {
    width: 100%;
    border: 1px solid rgba(96, 129, 184, 0.6);
    border-radius: 14px;
    padding: 13px 14px;
    color: #000000;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.expertise-form textarea {
    min-height: 140px;
    resize: vertical;
}

.expertise-form input:focus,
.expertise-form textarea:focus {
    border-color: rgba(245, 184, 73, 0.65);
    box-shadow: 0 0 0 3px rgba(245, 184, 73, 0.16);
}

.expertise-form button {
    width: fit-content;
    margin-top: 6px;
}

.expertise-share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 16px;
}

.expertise-share-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.form-actions .button {
    min-width: 280px;
}

.sticky-save-bar {
    position: sticky;
    bottom: 20px;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    z-index: 50;
}

.sticky-save-bar .button {
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.expertise-subsection {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions .button {
    min-width: 280px;
}

.expertise-subsection {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* Premium polish */
.sidebar {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.nav a {
    font-weight: 700;
    color: rgba(248, 251, 255, 0.86);
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.topbar,
.project-dashboard-head,
.project-item-head,
.section-heading {
    gap: 18px;
}

.topbar h1,
.dashboard-hero h1 {
    line-height: 1.02;
}

.content-section,
.stat-card,
.dashboard-hero,
.project-list-card,
.project-item-card,
.recommendation-item,
.project-member-card,
.project-overview-band,
.project-sidebar-panel,
.project-detail-panel,
.project-modal-card,
.chat-panel,
.guided-panel,
.selected-assistant-card,
.auth-panel,
.assistants-band {
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.content-section,
.stat-card,
.project-list-card,
.project-item-card,
.recommendation-item,
.project-member-card,
.project-overview-band,
.project-sidebar-panel,
.project-detail-panel,
.chat-panel,
.guided-panel,
.selected-assistant-card,
.auth-panel,
.assistants-band {
    backdrop-filter: blur(16px);
}

.dashboard-hero {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card,
.project-meta-grid article {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
        rgba(10, 21, 43, 0.82);
}

.stat-card strong,
.project-meta-grid strong,
.project-detail-panel h2,
.project-list-card h3,
.project-item-card h3,
.recommendation-item h3 {
    text-wrap: balance;
}

.stat-card span,
.project-detail-description,
.project-item-meta span,
.project-list-card p,
.recommendation-item,
.empty-state p {
    color: rgba(230, 237, 249, 0.74);
}

.button,
button {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.button.secondary,
button.secondary {
    box-shadow: none;
}

.button.secondary:hover,
button.secondary:hover {
    box-shadow: 0 12px 26px rgba(2, 8, 23, 0.16);
}

.topbar-actions,
.hero-actions,
.project-item-actions {
    gap: 12px;
}

.project-item-actions {
    margin-top: 18px;
    flex-wrap: wrap;
}

.project-item-card {
    overflow: hidden;
}

.project-item-content,
.project-item-content * {
    max-width: 100%;
}

.project-item-content {
    color: rgba(242, 246, 255, 0.94);
}

.project-item-content pre,
.project-item-content code {
    white-space: pre-wrap;
    word-break: break-word;
}

.project-item-content img {
    display: block;
    width: 100%;
    max-width: min(720px, 100%);
    margin: 16px 0;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(2, 8, 23, 0.28);
}

.project-content-tabs a {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(248, 251, 255, 0.88);
}

.project-content-tabs a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.project-accordion {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    background: rgba(12, 24, 49, 0.44);
    overflow: hidden;
}

.project-accordion summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.project-search-form input,
.project-item-target,
.project-quick-create input,
.project-quick-create textarea,
.project-modal-section input,
.project-modal-section textarea,
.guided-form input,
.guided-form textarea,
.guided-form select {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 23, 46, 0.92);
    color: rgba(248, 251, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.project-search-form input::placeholder,
.project-item-target::placeholder,
.project-quick-create input::placeholder,
.project-quick-create textarea::placeholder,
.project-modal-section input::placeholder,
.project-modal-section textarea::placeholder,
.guided-form input::placeholder,
.guided-form textarea::placeholder {
    color: rgba(225, 233, 246, 0.42);
}

.project-search-form input:focus,
.project-item-target:focus,
.project-quick-create input:focus,
.project-quick-create textarea:focus,
.project-modal-section input:focus,
.project-modal-section textarea:focus,
.guided-form input:focus,
.guided-form textarea:focus,
.guided-form select:focus {
    border-color: rgba(245, 184, 73, 0.34);
    box-shadow: 0 0 0 4px rgba(245, 184, 73, 0.1);
}

.project-option {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(255, 255, 255, 0.03);
}

.project-option:hover {
    border-color: rgba(245, 184, 73, 0.18);
}

.recommendation-list {
    gap: 14px;
}

.recommendation-item {
    line-height: 1.7;
}

.empty-state.compact {
    padding: 26px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 1100px) {
    .main {
        padding: 28px 22px 34px;
        gap: 24px;
    }

    .dashboard-hero,
    .content-section {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .main {
        padding: 18px 14px 28px;
        gap: 18px;
    }

    .content-section,
    .stat-card,
    .dashboard-hero,
    .project-list-card,
    .project-item-card,
    .recommendation-item {
        border-radius: 18px;
    }

    .topbar-actions,
    .hero-actions,
    .project-item-actions {
        width: 100%;
    }

    .topbar-actions .button,
    .hero-actions .button,
    .project-item-actions .button {
        width: 100%;
    }
}

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

.theme-card {
    display: grid;
    gap: 8px;
    text-align: left;
    align-content: start;
    min-height: 150px;
    padding: 22px 22px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(10, 21, 43, 0.82);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.16);
}

.theme-card:hover {
    transform: translateY(-2px);
}

.theme-card.active {
    border-color: rgba(245, 184, 73, 0.34);
    box-shadow: 0 0 0 1px rgba(245, 184, 73, 0.18), 0 18px 36px rgba(245, 184, 73, 0.12);
}

.theme-card-label {
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-card strong {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.theme-card small {
    color: rgba(230, 237, 249, 0.72);
    font-size: 15px;
    line-height: 1.55;
}

body[data-theme="light"] {
    color: #132238;
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 184, 73, 0.16), transparent 22%),
        radial-gradient(circle at 100% 0%, rgba(80, 120, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f8fd 0%, #edf2fb 52%, #e6ecf7 100%);
}

body[data-theme="light"]::before {
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(15, 33, 62, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 33, 62, 0.045) 1px, transparent 1px);
}

body[data-theme="light"] .sidebar {
    border-right: 1px solid rgba(16, 39, 74, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.92)),
        radial-gradient(circle at top, rgba(245, 184, 73, 0.12), transparent 38%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.45);
}

body[data-theme="light"] .brand,
body[data-theme="light"] .sidebar-footer span,
body[data-theme="light"] .nav a,
body[data-theme="light"] .sidebar-footer a,
body[data-theme="light"] .section-heading a,
body[data-theme="light"] .conversation-row a,
body[data-theme="light"] .project-recent-strip a,
body[data-theme="light"] .project-content-tabs a {
    color: #1a2d48;
}

body[data-theme="light"] .nav a {
    background: rgba(20, 46, 84, 0.04);
    border-color: transparent;
}

body[data-theme="light"] .nav a:hover,
body[data-theme="light"] .nav a.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.88));
    border-color: rgba(245, 184, 73, 0.18);
    box-shadow: 0 12px 26px rgba(30, 61, 112, 0.1);
}

body[data-theme="light"] .credit-pill {
    border-color: rgba(24, 49, 86, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.9));
    box-shadow: 0 14px 30px rgba(28, 57, 105, 0.08);
}

body[data-theme="light"] .credit-pill span {
    color: #6f7f98;
}

body[data-theme="light"] .credit-pill strong {
    color: #12233e;
}

body[data-theme="light"] .main {
    color: #16263f;
}

body[data-theme="light"] .topbar h1,
body[data-theme="light"] .dashboard-hero h1,
body[data-theme="light"] .content-section h2,
body[data-theme="light"] .assistants-band h2,
body[data-theme="light"] .auth-panel h1,
body[data-theme="light"] .selected-assistant-card h2,
body[data-theme="light"] .project-detail-panel h2,
body[data-theme="light"] .work-item h2,
body[data-theme="light"] .project-list-card h3,
body[data-theme="light"] .project-item-card h3,
body[data-theme="light"] .recommendation-item h3,
body[data-theme="light"] .hero-badge strong,
body[data-theme="light"] .stat-card strong,
body[data-theme="light"] .kpi-card strong,
body[data-theme="light"] .project-meta-grid strong,
body[data-theme="light"] .theme-card strong,
body[data-theme="light"] .project-member-card strong,
body[data-theme="light"] .project-modal-card h2,
body[data-theme="light"] .selected-assistant-card p strong,
body[data-theme="light"] .selected-assistant-card small strong,
body[data-theme="light"] .reuse-source-card strong {
    color: #12233f;
}

body[data-theme="light"] .project-modal-card,
body[data-theme="light"] .project-modal-card p,
body[data-theme="light"] .project-modal-card strong,
body[data-theme="light"] .project-modal-card span,
body[data-theme="light"] .project-modal-card .project-modal-empty,
body[data-theme="light"] .project-modal-card .project-modal-section,
body[data-theme="light"] .project-modal-card .project-modal-list,
body[data-theme="light"] .project-modal-card .project-option,
body[data-theme="light"] .project-modal-card .project-option strong {
    color: #223754;
}

body[data-theme="light"] .eyebrow,
body[data-theme="light"] .work-item span,
body[data-theme="light"] .project-list-card span,
body[data-theme="light"] .project-item-head span,
body[data-theme="light"] .project-dashboard-head span,
body[data-theme="light"] .project-status-badge,
body[data-theme="light"] .response-actions-title,
body[data-theme="light"] .theme-card-label {
    color: #b37a11;
}

body[data-theme="light"] .hero-subtitle,
body[data-theme="light"] .project-detail-description,
body[data-theme="light"] .project-overview-text,
body[data-theme="light"] .section-intro,
body[data-theme="light"] .stat-card span,
body[data-theme="light"] .kpi-card span,
body[data-theme="light"] .project-item-meta span,
body[data-theme="light"] .project-list-card p,
body[data-theme="light"] .recommendation-item,
body[data-theme="light"] .empty-state p,
body[data-theme="light"] .theme-card small,
body[data-theme="light"] .project-spotlight-text,
body[data-theme="light"] .project-spotlight-note,
body[data-theme="light"] .project-member-card span,
body[data-theme="light"] .selected-assistant-card p,
body[data-theme="light"] .selected-assistant-card small,
body[data-theme="light"] .reuse-source-card,
body[data-theme="light"] .reuse-source-card * {
    color: #5f7088;
}

body[data-theme="light"] .content-section,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .dashboard-hero,
body[data-theme="light"] .project-list-card,
body[data-theme="light"] .project-item-card,
body[data-theme="light"] .recommendation-item,
body[data-theme="light"] .project-member-card,
body[data-theme="light"] .project-overview-band,
body[data-theme="light"] .project-sidebar-panel,
body[data-theme="light"] .project-detail-panel,
body[data-theme="light"] .project-modal-card,
body[data-theme="light"] .chat-panel,
body[data-theme="light"] .guided-panel,
body[data-theme="light"] .selected-assistant-card,
body[data-theme="light"] .auth-panel,
body[data-theme="light"] .assistants-band,
body[data-theme="light"] .theme-card,
body[data-theme="light"] .kpi-card,
body[data-theme="light"] .expert-card,
body[data-theme="light"] .timeline-item,
body[data-theme="light"] .conversation-row,
body[data-theme="light"] .premium-history-row {
    border: 1px solid rgba(20, 44, 82, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.88)),
        rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 40px rgba(20, 44, 82, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body[data-theme="light"] .category-card,
body[data-theme="light"] .category-card.premium {
    border: 1px solid rgba(20, 44, 82, 0.08);
    background:
        radial-gradient(circle at top right, rgba(245, 184, 73, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.9));
    box-shadow:
        0 18px 40px rgba(20, 44, 82, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body[data-theme="light"] .category-card span,
body[data-theme="light"] .category-copy span {
    color: #13233f;
}

body[data-theme="light"] .category-card strong,
body[data-theme="light"] .category-copy strong {
    color: #5b6e86;
    font-weight: 600;
}

body[data-theme="light"] .category-card.premium .category-highlights,
body[data-theme="light"] .category-highlights {
    border: 1px solid rgba(20, 44, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 253, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body[data-theme="light"] .category-card.premium .category-highlights p,
body[data-theme="light"] .category-highlights p {
    color: #9a6b12;
}

body[data-theme="light"] .category-card.premium .category-highlights li,
body[data-theme="light"] .category-highlights li {
    color: #233854;
}

body[data-theme="light"] .category-card.premium .category-highlights li::before,
body[data-theme="light"] .category-highlights li::before {
    color: #d79a20;
}

body[data-theme="light"] .category-icon {
    border-color: rgba(245, 184, 73, 0.2);
    background: linear-gradient(180deg, #fff8e7 0%, #fff1c6 100%);
    color: #c48612;
}

body[data-theme="light"] .conversation-row,
body[data-theme="light"] .premium-history-row,
body[data-theme="light"] .history-row {
    border: 1px solid rgba(20, 44, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 253, 0.92));
}

body[data-theme="light"] .conversation-row > a,
body[data-theme="light"] .history-row > a,
body[data-theme="light"] .conversation-row > a span,
body[data-theme="light"] .history-row > a span {
    color: #13233f;
}

body[data-theme="light"] .admin-provider-card,
body[data-theme="light"] .admin-provider-route {
    border: 1px solid rgba(20, 44, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.9));
    box-shadow: 0 18px 40px rgba(28, 57, 105, 0.08);
}

body[data-theme="light"] .admin-provider-card-title,
body[data-theme="light"] .admin-provider-route strong {
    color: #13233f;
}

body[data-theme="light"] .admin-provider-card small,
body[data-theme="light"] .admin-provider-card-caption {
    color: #51677f;
}

body[data-theme="light"] .admin-provider-card select,
body[data-theme="light"] .admin-provider-route select {
    color: #1a2d48;
    border-color: rgba(20, 44, 82, 0.1);
    background: rgba(255, 255, 255, 0.96);
}

body[data-theme="light"] .conversation-row small,
body[data-theme="light"] .conversation-row time,
body[data-theme="light"] .history-row small,
body[data-theme="light"] .history-row time,
body[data-theme="light"] .history-row span:not(:first-child) {
    color: #5a6f88;
}

body[data-theme="light"] .danger-link {
    color: #b54757;
    border: 1px solid rgba(233, 114, 133, 0.28);
    background: rgba(255, 245, 247, 0.92);
}

body[data-theme="light"] .danger-link:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #d85b6d, #c44457);
    border-color: rgba(196, 68, 87, 0.95);
}

body[data-theme="light"] .project-item-card,
body[data-theme="light"] .recommendation-item,
body[data-theme="light"] .project-member-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 253, 0.9));
}

body[data-theme="light"] .project-accordion {
    border-color: rgba(20, 44, 82, 0.08);
    background: rgba(255, 255, 255, 0.44);
}

body[data-theme="light"] .project-accordion summary {
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(240, 245, 252, 0.94));
}

body[data-theme="light"] .project-content-tabs a {
    border-color: rgba(20, 44, 82, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: #223754;
}

body[data-theme="light"] .project-content-tabs a:hover {
    background: #ffffff;
}

body[data-theme="light"] .button.secondary,
body[data-theme="light"] button.secondary {
    color: #223754;
    border-color: rgba(20, 44, 82, 0.1);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 22px rgba(20, 44, 82, 0.08);
}

body[data-theme="light"] .button.secondary:hover,
body[data-theme="light"] button.secondary:hover {
    background: #ffffff;
}

body[data-theme="light"] .button.danger,
body[data-theme="light"] button.danger {
    color: #fff4f5;
}

body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select,
body[data-theme="light"] .project-search-form input,
body[data-theme="light"] .project-item-target,
body[data-theme="light"] .project-quick-create input,
body[data-theme="light"] .project-quick-create textarea,
body[data-theme="light"] .project-modal-section input,
body[data-theme="light"] .project-modal-section textarea,
body[data-theme="light"] .guided-form input,
body[data-theme="light"] .guided-form textarea,
body[data-theme="light"] .guided-form select {
    color: #1a2d48;
    border-color: rgba(20, 44, 82, 0.1);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder,
body[data-theme="light"] .guided-form input::placeholder,
body[data-theme="light"] .guided-form textarea::placeholder {
    color: rgba(55, 78, 112, 0.46);
}

body[data-theme="light"] .brand-mark {
    color: #13233e;
    box-shadow: 0 12px 26px rgba(245, 184, 73, 0.18);
}

body[data-theme="light"] .project-item-content,
body[data-theme="light"] .project-item-content * {
    color: #223551;
}

body[data-theme="light"] .empty-state.compact {
    border-color: rgba(20, 44, 82, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .message-role,
body[data-theme="light"] .guided-source strong,
body[data-theme="light"] .timeline-content h3,
body[data-theme="light"] .expert-card-head strong,
body[data-theme="light"] .expert-card-list li,
body[data-theme="light"] .chat-history-notice strong,
body[data-theme="light"] .empty-state h2,
body[data-theme="light"] .empty-state h3,
body[data-theme="light"] .auth-brand,
body[data-theme="light"] .auth-panel h1 {
    color: #13233f;
}

body[data-theme="light"] .message.assistant .message-content,
body[data-theme="light"] .message-fold,
body[data-theme="light"] .response-actions,
body[data-theme="light"] .chat-history-notice,
body[data-theme="light"] .guided-source,
body[data-theme="light"] .composer-shell,
body[data-theme="light"] .composer-panel,
body[data-theme="light"] .composer-tools {
    border: 1px solid rgba(20, 44, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.92));
    color: #1b2e48;
}

body[data-theme="light"] .message.assistant .message-content,
body[data-theme="light"] .message.assistant .message-content *,
body[data-theme="light"] .message-fold summary,
body[data-theme="light"] .message-fold-preview,
body[data-theme="light"] .message-fold-body,
body[data-theme="light"] .message-fold-body *,
body[data-theme="light"] .response-actions,
body[data-theme="light"] .response-actions *,
body[data-theme="light"] .chat-history-notice,
body[data-theme="light"] .chat-history-notice *,
body[data-theme="light"] .guided-source,
body[data-theme="light"] .guided-source *,
body[data-theme="light"] .timeline-content p,
body[data-theme="light"] .timeline-item time,
body[data-theme="light"] .expert-card p,
body[data-theme="light"] .expert-card-head small {
    color: #425870;
}

body[data-theme="light"] .message.user .message-content {
    background: linear-gradient(180deg, #d9e9ff, #c6ddff);
    color: #173255;
    box-shadow: 0 14px 28px rgba(96, 137, 198, 0.16);
}

body[data-theme="light"] .message.user .message-content,
body[data-theme="light"] .message.user .message-content *,
body[data-theme="light"] .message.user .message-content strong,
body[data-theme="light"] .message.user .message-content span,
body[data-theme="light"] .message.user .message-content p,
body[data-theme="light"] .message.user .message-content li {
    color: #173255 !important;
}

body[data-theme="light"] .message.user .message-fold {
    border: 1px solid rgba(96, 137, 198, 0.24);
    background: rgba(255, 255, 255, 0.38);
}

body[data-theme="light"] .message.user .message-fold summary,
body[data-theme="light"] .message.user .message-fold-preview,
body[data-theme="light"] .message.user .message-fold-body,
body[data-theme="light"] .message.user .message-fold-body *,
body[data-theme="light"] .message.user .message-fold-label {
    color: #173255 !important;
}

body[data-theme="light"] .message.user .message-fold summary::after {
    color: #ffd26e;
}

body[data-theme="light"] .response-actions-grid button,
body[data-theme="light"] .composer-tools .button.secondary {
    color: #223754;
}

body[data-theme="light"] .message.assistant .message-content,
body[data-theme="light"] .message.assistant .message-content *,
body[data-theme="light"] .message.assistant .message-content strong,
body[data-theme="light"] .message.assistant .message-content span,
body[data-theme="light"] .message.assistant .message-content p,
body[data-theme="light"] .message.assistant .message-content li {
    color: #223754;
}

body[data-theme="light"] .message-content h3,
body[data-theme="light"] .message-fold-label,
body[data-theme="light"] .response-actions-title,
body[data-theme="light"] .timeline-content span,
body[data-theme="light"] .expert-card-head span,
body[data-theme="light"] .project-status-badge,
body[data-theme="light"] .eyebrow,
body[data-theme="light"] .theme-card-label {
    color: #9a6b12;
}

body[data-theme="light"] .response-actions-grid button,
body[data-theme="light"] .composer-tools .button.secondary {
    border-color: rgba(20, 44, 82, 0.1);
    background: rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .response-actions-grid button:hover,
body[data-theme="light"] .composer-tools .button.secondary:hover {
    background: #ffffff;
}

body[data-theme="light"] .integration-recommendations {
    border-color: rgba(20, 44, 82, 0.08);
    background: rgba(248, 251, 255, 0.92);
    box-shadow: 0 18px 42px rgba(94, 119, 171, 0.10);
}

body[data-theme="light"] .integration-recommendations-title {
    color: #9a6b12;
}

body[data-theme="light"] .integration-recommendation-card {
    border-color: rgba(20, 44, 82, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

body[data-theme="light"] .integration-recommendation-head strong,
body[data-theme="light"] .integration-recommendation-level,
body[data-theme="light"] .integration-recommendation-card p,
body[data-theme="light"] .integration-recommendation-card small,
body[data-theme="light"] .integration-recommendation-automations span {
    color: #223754;
}

body[data-theme="light"] .message-fold summary::after,
body[data-theme="light"] .project-accordion summary::after {
    color: #b37a11;
}

body[data-theme="light"] .hero-badge,
body[data-theme="light"] .category-summary,
body[data-theme="light"] .project-summary-grid article,
body[data-theme="light"] .project-meta-grid article {
    border: 1px solid rgba(20, 44, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 253, 0.88));
}

body[data-theme="light"] .hero-badge span,
body[data-theme="light"] .category-summary span,
body[data-theme="light"] .project-summary-grid span,
body[data-theme="light"] .project-meta-grid span,
body[data-theme="light"] .project-list-card small,
body[data-theme="light"] .kpi-card span {
    color: #647791;
}

body[data-theme="light"] .expert-card-list li::before,
body[data-theme="light"] .timeline-dot {
    background: linear-gradient(135deg, #d79a20, #f3c45a);
}

body[data-theme="light"] .category-pills a,
body[data-theme="light"] .project-status-badge,
body[data-theme="light"] .project-option span {
    color: #9b6b13;
}

body[data-theme="light"] .category-pills a,
body[data-theme="light"] .project-option {
    background: rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .project-option {
    border-color: rgba(20, 44, 82, 0.1);
    box-shadow: 0 10px 24px rgba(20, 44, 82, 0.06);
}

body[data-theme="light"] .project-modal-list .project-option,
body[data-theme="light"] #project-modal-active .project-option,
body[data-theme="light"] #history-project-modal-active .project-option,
body[data-theme="light"] #project-transfer-list .project-option {
    color: #223754 !important;
    background: rgba(255, 255, 255, 0.94);
}

body[data-theme="light"] .project-option strong {
    color: #223754 !important;
}

body[data-theme="light"] .project-modal-list .project-option strong,
body[data-theme="light"] #project-modal-active .project-option strong,
body[data-theme="light"] #history-project-modal-active .project-option strong,
body[data-theme="light"] #project-transfer-list .project-option strong {
    color: #223754 !important;
}

body[data-theme="light"] .project-modal-list .project-option span,
body[data-theme="light"] #project-modal-active .project-option span,
body[data-theme="light"] #history-project-modal-active .project-option span,
body[data-theme="light"] #project-transfer-list .project-option span {
    color: #9b6b13 !important;
}

body[data-theme="light"] .project-modal-empty {
    color: #5f7088 !important;
}

body[data-theme="light"] .project-option.is-active {
    border-color: rgba(96, 137, 198, 0.45);
    background: linear-gradient(180deg, #dcebff, #cfe2ff);
    box-shadow: 0 14px 28px rgba(96, 137, 198, 0.14);
}

body[data-theme="light"] .project-option.is-active strong,
body[data-theme="light"] .project-option.is-active span {
    color: #173255;
}

body[data-theme="light"] .category-pills a {
    border-color: rgba(20, 44, 82, 0.1);
    color: #233854;
}

body[data-theme="light"] .category-pills span {
    border: 1px solid rgba(20, 44, 82, 0.1);
    color: #233854;
    background: rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .category-pills a[aria-current="page"] {
    color: #173255;
    background: linear-gradient(180deg, #dcebff, #c8ddff);
    border-color: rgba(96, 137, 198, 0.55);
    box-shadow: 0 10px 22px rgba(96, 137, 198, 0.16);
}

body[data-theme="light"] select,
body[data-theme="light"] select option,
body[data-theme="light"] select optgroup,
body[data-theme="light"] .reuse-custom-grid select option,
body[data-theme="light"] .admin-provider-card select option,
body[data-theme="light"] .admin-user-form select option,
body[data-theme="light"] .guided-form select option {
    color: #1a2d48;
    background: #ffffff;
}

body[data-theme="light"] .auth-switch,
body[data-theme="light"] .auth-switch a,
body[data-theme="light"] .guided-file-help,
body[data-theme="light"] .sidebar-footer a:hover {
    color: #4c627b;
}

body[data-theme="light"] .guided-file-help,
body[data-theme="light"] .video-placeholder,
body[data-theme="light"] .selected-files,
body[data-theme="light"] .profile-list span,
body[data-theme="light"] .notice-card p,
body[data-theme="light"] .work-item p,
body[data-theme="light"] .work-item small,
body[data-theme="light"] .work-item time,
body[data-theme="light"] .category-summary span,
body[data-theme="light"] .response-actions-status,
body[data-theme="light"] .project-list-card small {
    color: #51677f;
}

body[data-theme="light"] .action-card,
body[data-theme="light"] .file-button,
body[data-theme="light"] .work-item,
body[data-theme="light"] .category-summary,
body[data-theme="light"] .generated-image-card details,
body[data-theme="light"] .notice-example,
body[data-theme="light"] .notice-surface {
    border-color: rgba(20, 44, 82, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.9));
    color: #223551;
}

body[data-theme="light"] .action-card,
body[data-theme="light"] .file-button,
body[data-theme="light"] .work-item h2,
body[data-theme="light"] .profile-list strong,
body[data-theme="light"] .generated-image-card summary,
body[data-theme="light"] .notice-card h2 {
    color: #13233f;
}

body[data-theme="light"] .action-card,
body[data-theme="light"] .action-card span {
    color: #233854 !important;
}

body[data-theme="light"] .action-card.active,
body[data-theme="light"] .action-card:hover {
    color: #173255;
    background: linear-gradient(180deg, #dcebff, #c8ddff);
    border-color: rgba(96, 137, 198, 0.55);
    box-shadow: 0 10px 22px rgba(96, 137, 198, 0.16);
}

body[data-theme="light"] .action-card.active *,
body[data-theme="light"] .action-card:hover * {
    color: #173255;
}

body[data-theme="light"] .reuse-custom-grid label,
body[data-theme="light"] .project-modal-section label,
body[data-theme="light"] .project-quick-create label {
    color: #334a68;
}

body[data-theme="light"] .composer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.92));
    border-top-color: rgba(20, 44, 82, 0.08);
}

body[data-theme="light"] .multimodal-bar,
body[data-theme="light"] .video-prep,
body[data-theme="light"] .selected-files {
    background: rgba(248, 251, 255, 0.88);
    border-bottom-color: rgba(20, 44, 82, 0.08);
}

body[data-theme="light"] .generated-image {
    background: #edf3fb;
    border-color: rgba(20, 44, 82, 0.08);
}

body[data-theme="light"] .message-fold summary:hover .message-fold-preview {
    text-decoration-color: rgba(19, 35, 63, 0.3);
}

body[data-theme="light"] .project-item-meta strong,
body[data-theme="light"] .profile-list strong,
body[data-theme="light"] .timeline-item time,
body[data-theme="light"] .response-actions-grid button:hover {
    color: #13233f;
}

body[data-theme="light"] .response-actions-grid button:hover {
    background: linear-gradient(135deg, rgba(245, 184, 73, 0.96), rgba(255, 213, 103, 0.92));
    border-color: rgba(245, 184, 73, 0.28);
}

body[data-theme="light"] .notice-example,
body[data-theme="light"] .notice-example *,
body[data-theme="light"] .notice-surface,
body[data-theme="light"] .notice-surface * {
    color: #223551;
}
