* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #080b14;
    --panel: #111827;
    --panel-light: #172238;
    --border: #26334b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --blue: #4f8cff;
    --cyan: #35d5e8;
    --green: #22c55e;
    --danger: #ef4444;
}

body {
    font-family: Arial, Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    padding: 28px 18px;
    background: #0d1321;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.logo {
    font-size: 27px;
    font-weight: bold;
    margin: 0 10px 38px;
    letter-spacing: 1px;
}

.logo span {
    color: var(--cyan);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nav-btn {
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: right;
    background: transparent;
    color: var(--muted);
    transition: 0.2s;
}

.english-ui .sidebar {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border);
}

.english-ui .main-content {
    margin-right: 0;
    margin-left: 250px;
}

.english-ui .nav-btn {
    text-align: left;
}

.nav-btn:hover,
.nav-btn.active {
    background: #172640;
    color: white;
    border-color: #294c79;
}

.sidebar-footer {
    margin-top: auto;
    padding: 15px 8px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5d782;
    margin-left: 7px;
}

.status-dot-connected {
    background: var(--green);
}

.status-dot-error {
    background: var(--danger);
}

.main-content {
    width: calc(100% - 250px);
    margin-right: 250px;
    padding: 30px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.topbar p,
.section-heading p,
.stat-card small {
    color: var(--muted);
}

.cloud-status {
    background: #101d2a;
    border: 1px solid #1f3b4c;
    padding: 11px 15px;
    border-radius: 30px;
    font-size: 13px;
    white-space: nowrap;
}

.page {
    display: none;
    animation: fadeIn 0.25s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    min-height: 250px;
    padding: 35px;
    border: 1px solid #294c79;
    border-radius: 20px;
    background:
        radial-gradient(circle at 15% 20%, #1d4774 0, transparent 35%),
        linear-gradient(135deg, #172c49, #101827 70%);
    margin-bottom: 25px;
}

.tag {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 2px;
}

.welcome-card h2 {
    font-size: 30px;
    margin: 18px 0 12px;
}

.welcome-card p {
    color: #c2cede;
    line-height: 1.9;
    max-width: 550px;
    margin-bottom: 22px;
}

.cloud-icon {
    font-size: 100px;
    color: var(--cyan);
    text-shadow: 0 0 40px #35d5e844;
    padding: 0 20px;
}

.primary-btn {
    padding: 13px 20px;
    color: white;
    background: linear-gradient(135deg, #3478f6, #2362d6);
    border: 1px solid #6398ff;
    border-radius: 9px;
    transition: 0.2s;
}

.primary-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.stat-card,
.service-card,
.panel,
.item-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 15px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    margin-bottom: 9px;
}

.section-heading {
    margin: 30px 0 20px;
}

.section-heading h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.service-card {
    padding: 23px;
    transition: 0.2s;
}

.service-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #1a3151;
    color: var(--cyan);
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 17px;
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

.panel {
    padding: 25px;
    margin-bottom: 20px;
}

.panel h3 {
    margin-bottom: 15px;
}

.panel p {
    color: var(--muted);
    line-height: 1.9;
    margin: 8px 0;
}

.panel label {
    display: block;
    margin: 18px 0 9px;
    color: #dbe5f5;
}

.panel input:not([type="checkbox"]),
.panel select {
    width: 100%;
    padding: 13px 14px;
    background: #0b1220;
    border: 1px solid #34445f;
    color: white;
    border-radius: 8px;
    outline: none;
}

.panel input:focus,
.panel select:focus {
    border-color: var(--blue);
}

.panel input::placeholder {
    color: #718198;
}

.panel .primary-btn {
    margin-top: 20px;
}

.approval-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    line-height: 1.7;
}

.approval-label input {
    accent-color: var(--blue);
    width: 17px;
    height: 17px;
}

.items-list {
    display: grid;
    gap: 13px;
}

.storage-heading,
.storage-capacity-label,
.storage-actions,
.storage-pagination,
.preview-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.storage-heading {
    flex-wrap: wrap;
}

.storage-heading h3 {
    margin-bottom: 8px;
}

.storage-heading p {
    margin: 0;
}

.storage-heading .badge {
    margin: 0;
}

.storage-capacity {
    margin: 24px 0 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b1220;
}

.storage-capacity-label {
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.storage-capacity-label span,
.storage-capacity small {
    color: var(--muted);
}

.storage-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 10px;
    background: #26334b;
    margin-bottom: 10px;
}

.storage-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transition: width 0.25s ease;
}

.storage-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.storage-upload-status {
    min-height: 24px;
    margin-top: 12px;
    color: var(--cyan);
    overflow-wrap: anywhere;
}

.storage-setup-note {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #6b5422;
    border-radius: 10px;
    background: #2b281a;
    color: #f5d782;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.storage-setup-note code {
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--cyan);
}

.storage-preview-note {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.storage-pagination {
    justify-content: flex-end;
    margin-top: 16px;
    color: var(--muted);
}

.file-preview-dialog {
    width: min(1000px, calc(100vw - 32px));
    max-width: 1000px;
    max-height: min(90vh, 900px);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
}

.file-preview-dialog::backdrop {
    background: #02040bd9;
}

.preview-dialog-header {
    margin-bottom: 16px;
}

.preview-dialog-header h2 {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 19px;
}

.file-preview-content {
    max-height: calc(90vh - 100px);
    overflow: auto;
    text-align: center;
}

.file-preview-content img,
.file-preview-content video,
.file-preview-content iframe,
.file-preview-content audio {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.file-preview-content img,
.file-preview-content video,
.file-preview-content iframe {
    max-height: calc(90vh - 140px);
}

.file-preview-content iframe {
    width: 100%;
    min-height: 65vh;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.file-preview-content pre {
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 8px;
    background: #04060b;
    color: var(--text);
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.item-card {
    padding: 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.item-card h3 {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.item-card p {
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.small-btn {
    padding: 9px 12px;
    border: 1px solid var(--border);
    background: var(--panel-light);
    color: white;
    border-radius: 7px;
}

.delete-btn {
    border-color: #71343b;
    color: #ff9ca5;
}

.badge {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 10px;
    border-radius: 7px;
    background: #2b281a;
    color: #f5d782;
    font-size: 12px;
}

.empty-state {
    padding: 25px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    line-height: 1.9;
}

.resource-note {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b1220;
    line-height: 1.8;
}

.resource-note p {
    margin: 8px 0 0;
    color: var(--muted);
}

.health-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.health-card h3 {
    overflow-wrap: anywhere;
}

.health-status {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 13px;
    background: #2b281a;
    color: #f5d782;
}

.health-status.connected {
    background: #123523;
    color: #79e4a0;
}

.health-status.error,
.health-status.unavailable {
    background: #3f1c1f;
    color: #ff9ca5;
}

.assistant-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.assistant-toolbar label {
    margin: 0 !important;
}

.assistant-toolbar select {
    width: auto;
    min-width: 180px;
}

.assistant-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 16px;
}

.assistant-history,
.assistant-chat {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b1220;
}

.assistant-history > strong {
    display: block;
    margin-bottom: 12px;
}

#assistant-history-list {
    display: grid;
    gap: 8px;
}

.history-item {
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item.active,
.history-item:hover {
    border-color: var(--border);
    background: var(--panel-light);
    color: var(--text);
}

.assistant-messages {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 280px;
    max-height: 55vh;
    overflow-y: auto;
    margin-bottom: 16px;
}

.chat-message {
    max-width: 92%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    overflow-wrap: anywhere;
}

.chat-message.user {
    justify-self: start;
    border-color: #294c79;
}

.chat-message.assistant {
    justify-self: end;
}

.chat-message p {
    margin-top: 8px;
    white-space: pre-wrap;
}

#assistant-form textarea {
    width: 100%;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid #34445f;
    border-radius: 8px;
    background: #080b14;
    color: var(--text);
}

#assistant-form .primary-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

footer {
    text-align: center;
    color: #718198;
    padding: 35px 10px 10px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .sidebar {
        width: 200px;
        padding: 22px 12px;
    }

    .english-ui .sidebar {
        right: auto;
        left: 0;
    }

    .main-content {
        width: calc(100% - 200px);
        margin-right: 200px;
        padding: 22px;
    }

    .english-ui .main-content {
        margin-right: 0;
        margin-left: 200px;
    }

    .welcome-card {
        padding: 25px;
    }

    .welcome-card h2 {
        font-size: 24px;
    }

    .cloud-icon {
        font-size: 70px;
        padding: 0;
    }
}

@media (max-width: 620px) {
    body {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        padding: 15px;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .english-ui .sidebar {
        position: relative;
        left: auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .logo {
        margin: 0 5px 15px;
        font-size: 23px;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .nav-btn {
        padding: 11px 9px;
        font-size: 13px;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        width: 100%;
        margin-right: 0;
        padding: 18px 14px;
    }

    .english-ui .main-content {
        width: 100%;
        margin-left: 0;
        padding: 18px 14px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar h1 {
        font-size: 23px;
    }

    .welcome-card {
        padding: 22px;
    }

    .welcome-card h2 {
        font-size: 23px;
    }

    .cloud-icon {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 17px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .assistant-layout {
        grid-template-columns: 1fr;
    }

    .assistant-history {
        order: 2;
    }

    .panel {
        padding: 18px;
    }

    .storage-actions,
    .storage-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .storage-actions > *,
    .storage-pagination > * {
        width: 100%;
        text-align: center;
    }

    .file-preview-dialog {
        padding: 14px;
    }

    .item-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-actions {
        width: 100%;
    }
}

/* ZOS dashboard theme */
:root {
    --bg: #050907;
    --panel: #0a110e;
    --panel-light: #101b16;
    --border: #1c3328;
    --text: #eef8f1;
    --muted: #8ca397;
    --blue: #10d980;
    --cyan: #38f5ad;
    --green: #13e68d;
    --danger: #ef5968;
}

body {
    background:
        radial-gradient(ellipse at 38% 0%, #0c3020 0, transparent 38%),
        radial-gradient(ellipse at 72% 45%, #061a12 0, transparent 44%),
        var(--bg);
}

.sidebar {
    width: 220px;
    padding: 18px 12px;
    background: rgba(5, 11, 8, .94);
    border-left-color: #1d392b;
    box-shadow: -10px 0 42px #0008;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 6px 24px;
    letter-spacing: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    filter: drop-shadow(0 0 8px #15ed9b88);
}

.logo-mark text {
    fill: var(--cyan);
    stroke: none;
    font: 700 14px Arial, sans-serif;
}

.logo-copy {
    display: grid;
    gap: 3px;
}

.logo-copy strong {
    font-size: 19px;
}

.logo-copy strong span {
    color: var(--cyan);
}

.logo-copy small {
    color: var(--muted);
    font-size: 10px;
    font-weight: normal;
}

.sidebar nav {
    gap: 5px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 39px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #b7c8bd;
    font-size: 13px;
    text-align: right;
}

.nav-btn::before {
    display: inline-grid;
    width: 21px;
    flex: 0 0 21px;
    place-items: center;
    color: #a7baae;
    font-size: 15px;
}

.nav-btn[data-page="dashboard"]::before { content: "⌂"; }
.nav-btn[data-page="ai-assistant"]::before { content: "✦"; }
.nav-btn[data-page="projects-hub"]::before { content: "⬡"; }
.nav-btn[data-page="apps"]::before { content: "▦"; }
.nav-btn[data-page="file-storage"]::before { content: "▰"; }
.nav-btn[data-page="servers"]::before { content: "▤"; }
.nav-btn[data-page="database"]::before { content: "▥"; }
.nav-btn[data-page="connections"]::before { content: "↗"; }
.nav-btn[data-page="ai-discovery-hub"]::before,
.nav-btn[data-page="ai-providers-hub"]::before,
.nav-btn[data-page="chatgpt-hub"]::before,
.nav-btn[data-page="gemini-hub"]::before { content: "✧"; }
.nav-btn[data-page="connection-test"]::before { content: "⌁"; }
.nav-btn[data-page="audit-logs"]::before { content: "◷"; }
.nav-btn[data-page="settings"]::before { content: "⚙"; }
.nav-btn[data-page="qr-code"]::before { content: "▦"; }

.nav-btn:hover,
.nav-btn.active {
    background: linear-gradient(90deg, #0d2b1d, #0a1912);
    color: #65ffc0;
    border-color: #14844e;
    box-shadow: inset 0 0 18px #00d77d12, 0 0 12px #00e78b12;
}

.nav-btn.active::before {
    color: var(--cyan);
}

.sidebar-footer {
    padding: 13px 8px 8px;
    border-color: var(--border);
    font-size: 11px;
}

.main-content {
    width: calc(100% - 220px);
    margin-right: 220px;
    padding: 20px 22px;
}

.english-ui .main-content {
    margin-right: 0;
    margin-left: 220px;
}

.topbar {
    min-height: 54px;
    margin-bottom: 20px;
    padding: 9px 12px;
    border: 1px solid #14271e;
    border-radius: 14px;
    background: #070d0bd9;
    box-shadow: 0 8px 30px #0005;
}

.topbar h1 {
    margin-bottom: 4px;
    font-size: 21px;
}

.topbar p {
    font-size: 11px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(290px, 30vw);
    margin: 0;
    padding: 0 11px;
    border: 1px solid #263c31;
    border-radius: 24px;
    background: #030706;
    color: var(--muted);
}

.dashboard-search input {
    width: 100%;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.dashboard-search input::placeholder {
    color: #71847a;
}

.cloud-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid #174630;
    background: #06160e;
    color: #67f5ad;
    font: inherit;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, filter .2s ease;
}

.cloud-status:hover,
.cloud-status:focus-visible {
    border-color: var(--cyan);
    background: #092116;
    outline: none;
}

.cloud-status .status-dot {
    margin: 0;
}

.cloud-status .status-dot-error {
    background: var(--danger);
    box-shadow: 0 0 9px #ef5968;
}

.small-btn,
.primary-btn {
    border-color: #16794a;
    background: #062b19;
    color: #76ffc0;
}

.primary-btn {
    background: linear-gradient(135deg, #00a956, #087442);
    border-color: #19e98a;
    box-shadow: 0 0 18px #00cc7130;
}

.primary-btn:hover,
.small-btn:hover {
    filter: brightness(1.2);
    border-color: var(--cyan);
}

.page.active {
    animation: fadeIn .2s ease;
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding: 19px 21px;
    border: 1px solid #1b4c32;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 15% 50%, #0f472a88, transparent 45%),
        linear-gradient(110deg, #0c1711, #08110d);
}

.dashboard-welcome h2 {
    margin: 7px 0 5px;
    font-size: 21px;
}

.dashboard-welcome p {
    color: var(--muted);
    font-size: 12px;
}

.tag {
    color: var(--cyan);
    font-size: 11px;
    letter-spacing: 1px;
}

.stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.stat-card {
    position: relative;
    min-width: 0;
    padding: 15px 14px;
    border-color: #1a3327;
    background: linear-gradient(145deg, #0d1712, #080e0b);
    box-shadow: inset 0 1px #ffffff08;
}

.stat-card::before {
    position: absolute;
    top: 14px;
    right: 13px;
    color: var(--cyan);
    font-size: 16px;
    opacity: .8;
}

.stat-card:nth-child(1)::before { content: "⬡"; }
.stat-card:nth-child(2)::before { content: "▤"; }
.stat-card:nth-child(3)::before { content: "◷"; }
.stat-card:nth-child(4)::before { content: "☁"; }
.stat-card:nth-child(5)::before { content: "▥"; }

.stat-card span {
    margin: 0 0 13px;
    padding-left: 20px;
    font-size: 11px;
}

.stat-card strong {
    margin-bottom: 5px;
    color: #f0fff6;
    font-size: 25px;
}

.stat-card small {
    font-size: 10px;
    line-height: 1.5;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: start;
    gap: 13px;
    direction: ltr;
}

.dashboard-primary {
    min-width: 0;
    direction: rtl;
}

.dashboard-ai-card {
    position: sticky;
    top: 15px;
    min-height: 360px;
    padding: 18px;
    overflow: hidden;
    border-color: #1a4c34;
    background:
        radial-gradient(ellipse at 50% 25%, #0c683a3d, transparent 44%),
        linear-gradient(155deg, #0d1712, #060b08);
    text-align: center;
    direction: rtl;
}

.ai-card-heading {
    position: relative;
    display: grid;
    min-height: 130px;
    place-items: center;
}

.ai-orb {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid #40f4a8aa;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #baffdd, #12c879 33%, #06361f 70%);
    color: #e9fff4;
    font-size: 44px;
    box-shadow: 0 0 20px #00ed8a88, inset 0 0 28px #d9ffea4a;
}

.ai-online-dot {
    position: absolute;
    top: 12px;
    left: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffcd62;
    box-shadow: 0 0 10px #ffcd62;
}

.dashboard-ai-card h2 {
    margin: 8px 0;
    font-size: 19px;
}

.dashboard-ai-card > p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.ai-placeholder-status {
    margin: 16px 0;
    padding: 9px;
    border: 1px solid #26372e;
    border-radius: 9px;
    background: #08100b;
    color: #b9cbbf;
    font-size: 11px;
}

.ai-placeholder-status .status-dot {
    background: #f5d782;
}

.dashboard-ai-card > .primary-btn {
    width: 100%;
    padding: 10px;
}

.ai-quick-links {
    display: grid;
    gap: 5px;
    margin-top: 16px;
}

.ai-quick-links button,
.text-btn {
    border: 0;
    background: transparent;
    color: #9fb6a7;
    cursor: pointer;
    text-align: start;
}

.ai-quick-links button {
    padding: 8px 4px;
    border-top: 1px solid #1b2c22;
    font-size: 11px;
}

.ai-quick-links button:hover,
.text-btn:hover {
    color: var(--cyan);
}

.dashboard-section-heading,
.dashboard-lower-grid .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 7px 0 11px;
}

.dashboard-section-heading h2,
.dashboard-lower-grid .section-heading h2 {
    margin: 0 0 4px;
    font-size: 15px;
}

.dashboard-section-heading p,
.dashboard-lower-grid .section-heading p {
    color: var(--muted);
    font-size: 10px;
}

.dashboard-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.dashboard-services .service-card {
    padding: 12px;
}

.health-card {
    gap: 9px;
}

.health-card h3 {
    margin: 0;
    font-size: 12px;
}

.health-status {
    padding: 5px 7px;
    border: 1px solid #554823;
    background: #201b0d;
    color: #f1d176;
    font-size: 10px;
}

.health-status.connected {
    border-color: #15583a;
    background: #092217;
    color: #68e9a1;
}

.health-status.error,
.health-status.unavailable {
    border-color: #623039;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-lower-grid .panel {
    min-height: 155px;
    margin-bottom: 10px;
    padding: 14px;
}

.dashboard-app-list,
.dashboard-activity-list {
    display: grid;
    gap: 8px;
}

.dashboard-app-row,
.dashboard-activity-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #d7e7dc;
    font-size: 11px;
}

.dashboard-app-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border: 1px solid #264a36;
    border-radius: 8px;
    background: #0a2114;
    color: var(--cyan);
}

.dashboard-app-row > span:last-child,
.dashboard-activity-row > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-activity-mark {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px #2cf5a3;
}

.dashboard-empty {
    padding: 12px 4px;
    color: var(--muted);
    font-size: 11px;
}

.dashboard-primary .resource-note {
    margin: 8px 0;
    padding: 12px 14px;
    border-color: #1a3327;
    background: #080e0b;
}

.dashboard-primary .resource-note strong {
    color: #cce8d7;
    font-size: 11px;
}

.dashboard-primary .resource-note p {
    margin: 5px 0 0;
    font-size: 10px;
    line-height: 1.7;
}

.service-card,
.panel,
.item-card {
    border-color: #1b3327;
    background: linear-gradient(150deg, #0d1712, #080e0b);
    box-shadow: inset 0 1px #ffffff08;
}

.service-card:hover {
    border-color: #1dad68;
    box-shadow: 0 0 18px #0bd77716;
}

.service-icon {
    background: #0c2b1b;
    color: var(--cyan);
}

.panel input:not([type="checkbox"]),
.panel select,
#assistant-form textarea {
    border-color: #274133;
    background: #060c09;
}

.panel input:focus,
.panel select:focus,
#assistant-form textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px #28eda31c;
}

.empty-state {
    border-color: #264333;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-columns {
        grid-template-columns: minmax(0, 1fr) 205px;
    }
}

@media (max-width: 800px) {
    .sidebar {
        width: 190px;
        min-width: 0;
    }

    .logo-copy,
    .sidebar nav,
    .nav-btn {
        min-width: 0;
    }

    .main-content {
        width: calc(100% - 190px);
        margin-right: 190px;
    }

    .english-ui .main-content {
        margin-right: 0;
        margin-left: 190px;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-search {
        width: 100%;
        flex: 1 1 100%;
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .dashboard-ai-card {
        position: static;
        min-height: auto;
        grid-row: 1;
    }

    .ai-card-heading {
        min-height: 100px;
    }

    .dashboard-ai-card > p {
        max-width: 400px;
        margin: auto;
    }
}

@media (max-width: 620px) {
    .sidebar,
    .english-ui .sidebar {
        position: relative;
        width: 100%;
        padding: 12px;
        border: 0;
        border-bottom: 1px solid var(--border);
    }

    .logo {
        margin: 0 3px 12px;
    }

    .sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 215px;
        overflow: auto;
    }

    .nav-btn {
        min-height: 36px;
        padding: 7px;
        font-size: 11px;
    }

    .main-content,
    .english-ui .main-content {
        width: 100%;
        margin: 0;
        padding: 13px 11px;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 13px;
    }

    .topbar-actions {
        flex-wrap: wrap;
    }

    .dashboard-search {
        width: 100%;
        flex: 1 1 100%;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .dashboard-welcome h2 {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 801px) {
        body {
            background:
                radial-gradient(ellipse at 42% 0%, #08331f 0, transparent 34%),
                radial-gradient(ellipse at 58% 72%, #06170f 0, transparent 45%),
                #030705;
        }

        .sidebar,
        .english-ui .sidebar {
            width: 174px;
            padding: 14px 9px;
            background: linear-gradient(180deg, #050b08f5, #030705f7);
            border-color: #163d2a;
            box-shadow: 0 0 28px #00e78b12;
        }

        .main-content,
        .english-ui .main-content {
            width: calc(100% - 174px);
            margin: 0 174px 0 0;
            padding: 10px 12px 18px;
        }

        .english-ui .main-content {
            margin-right: 0;
            margin-left: 174px;
        }

        .logo {
            gap: 7px;
            margin: 0 4px 17px;
        }

        .logo-mark {
            width: 34px;
            height: 34px;
        }

        .logo-copy strong {
            font-size: 16px;
        }

        .logo-copy small {
            font-size: 9px;
        }

        .sidebar nav {
            gap: 3px;
        }

        .nav-btn {
            min-height: 34px;
            padding: 7px 8px;
            gap: 7px;
            border-radius: 8px;
            font-size: 11px;
        }

        .nav-btn::before {
            width: 18px;
            flex-basis: 18px;
            font-size: 13px;
        }

        .sidebar-footer {
            display: block;
            padding: 10px 5px 5px;
            font-size: 10px;
        }

        .topbar {
            min-height: 48px;
            align-items: center;
            flex-direction: row;
            gap: 12px;
            margin-bottom: 10px;
            padding: 6px 10px;
            border-color: #153a29;
            border-radius: 12px;
            background: #050a08eF;
            box-shadow: 0 5px 22px #0008, 0 0 18px #00e78b0a;
        }

        .topbar h1 {
            margin-bottom: 2px;
            font-size: 17px;
        }

        .topbar p {
            font-size: 9px;
        }

        .topbar-actions {
            width: auto;
            flex-wrap: nowrap;
            gap: 7px;
        }

        .dashboard-search {
            width: min(230px, 23vw);
            flex: 0 1 230px;
        }

        .dashboard-search input {
            padding: 7px 0;
            font-size: 11px;
        }

        .cloud-status,
        .small-btn {
            padding: 7px 10px;
            font-size: 11px;
        }

        #language-toggle {
            white-space: nowrap;
        }

        #dashboard .dashboard-welcome {
            position: relative;
            min-height: 116px;
            align-items: center;
            flex-direction: row;
            margin-bottom: 10px;
            padding: 14px 18px;
            overflow: hidden;
            border-color: #087c50;
            border-radius: 13px;
            background:
                radial-gradient(ellipse at 20% 60%, #007d584d, transparent 36%),
                radial-gradient(circle at 15% 50%, #05c6ff29, transparent 20%),
                linear-gradient(105deg, #071b17, #07100d 58%, #05110b);
            box-shadow: inset 0 0 25px #00f5a00c, 0 0 14px #00eb9814;
        }

        #dashboard .dashboard-welcome::after {
            position: absolute;
            top: 50%;
            left: 18%;
            width: 100px;
            height: 70px;
            border: 1px solid #00e7bb55;
            border-radius: 50%;
            content: "";
            pointer-events: none;
            transform: translate(-50%, -50%) rotate(-12deg);
            box-shadow: 0 0 22px #00dba033, inset 0 0 16px #00dba018;
        }

        #dashboard .dashboard-welcome > div,
        #dashboard .dashboard-welcome > button {
            position: relative;
            z-index: 1;
        }

        #dashboard .dashboard-welcome h2 {
            margin: 6px 0 4px;
            font-size: 18px;
        }

        #dashboard .dashboard-welcome p {
            font-size: 10px;
        }

        #dashboard .dashboard-welcome .tag {
            font-size: 9px;
        }

        #dashboard .dashboard-welcome .primary-btn {
            padding: 9px 12px;
            font-size: 10px;
            white-space: nowrap;
        }

        #dashboard .stats-grid {
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 7px;
            margin-bottom: 9px;
        }

        #dashboard .stat-card {
            min-height: 72px;
            padding: 10px;
            border-color: #16482f;
            border-radius: 10px;
            background: linear-gradient(145deg, #0b1711, #050b08);
            box-shadow: inset 0 1px #ffffff08, 0 0 10px #00e78b0a;
        }

        #dashboard .stat-card::before {
            top: 9px;
            right: 9px;
            color: #02e89b;
            font-size: 13px;
        }

        #dashboard .stat-card span {
            margin-bottom: 5px;
            font-size: 9px;
        }

        #dashboard .stat-card strong {
            margin-bottom: 1px;
            font-size: 19px;
        }

        #dashboard .stat-card small {
            font-size: 8px;
        }

        #dashboard .dashboard-columns {
            grid-template-columns: minmax(0, 1fr) 190px;
            gap: 9px;
            direction: rtl;
        }

        #dashboard .dashboard-ai-card {
            position: static;
            grid-row: auto;
            min-height: auto;
            padding: 11px;
            border-color: #14623c;
            border-radius: 11px;
            background:
                radial-gradient(ellipse at 50% 15%, #0873424a, transparent 48%),
                linear-gradient(160deg, #0b1711, #040907);
            box-shadow: inset 0 0 20px #00f59c0a, 0 0 12px #00e78b12;
        }

        #dashboard .ai-card-heading {
            min-height: 62px;
        }

        #dashboard .ai-orb {
            width: 48px;
            height: 48px;
            font-size: 25px;
            box-shadow: 0 0 15px #00ed8a66, inset 0 0 18px #d9ffea3a;
        }

        #dashboard .dashboard-ai-card h2 {
            margin: 5px 0;
            font-size: 14px;
        }

        #dashboard .dashboard-ai-card > p,
        #dashboard .ai-placeholder-status {
            font-size: 9px;
        }

        #dashboard .ai-placeholder-status {
            margin: 8px 0;
            padding: 6px;
        }

        #dashboard .dashboard-ai-card > .primary-btn {
            padding: 7px;
            font-size: 10px;
        }

        #dashboard .ai-quick-links {
            gap: 2px;
            margin-top: 7px;
        }

        #dashboard .ai-quick-links button {
            padding: 5px 2px;
            font-size: 9px;
        }

        #dashboard .dashboard-section-heading,
        #dashboard .dashboard-lower-grid .section-heading {
            margin: 4px 0 7px;
        }

        #dashboard .dashboard-section-heading h2,
        #dashboard .dashboard-lower-grid .section-heading h2 {
            font-size: 12px;
        }

        #dashboard .dashboard-section-heading p,
        #dashboard .dashboard-lower-grid .section-heading p {
            font-size: 8px;
        }

        #dashboard .dashboard-services {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
            margin-bottom: 8px;
        }

        #dashboard .dashboard-services .service-card {
            padding: 8px;
            border-color: #16482f;
            border-radius: 9px;
            background: linear-gradient(145deg, #0b1711, #050b08);
        }

        #dashboard .dashboard-services .service-card h3 {
            font-size: 10px;
        }

        #dashboard .dashboard-services .service-card p {
            font-size: 8px;
            line-height: 1.5;
        }

        #dashboard .dashboard-lower-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
        }

        #dashboard .dashboard-lower-grid .panel,
        #dashboard .resource-note.panel {
            min-height: 92px;
            margin-bottom: 7px;
            padding: 9px;
            border-color: #16442e;
            border-radius: 9px;
            background: linear-gradient(145deg, #0a1510, #050a08);
        }

        #dashboard .dashboard-app-row,
        #dashboard .dashboard-activity-row {
            font-size: 9px;
        }

        #dashboard > .services-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 7px;
            margin-top: 8px;
        }

        #dashboard > .services-grid .service-card {
            min-width: 0;
            padding: 9px;
            border-color: #16442e;
            border-radius: 9px;
            background: linear-gradient(145deg, #0a1510, #050a08);
        }

        .panel,
        .service-card,
        .stat-card {
            border-color: #16442e;
            box-shadow: inset 0 1px #ffffff08, 0 0 12px #00e78b08;
        }

        .primary-btn {
            background: linear-gradient(135deg, #00a95b, #075e39);
            border-color: #14d987;
        }
    }

@media (min-width: 801px) and (max-width: 1100px) {
        #dashboard .stats-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        #dashboard .dashboard-columns {
            grid-template-columns: minmax(0, 1fr) 175px;
        }
    }

@media (max-width: 800px) {
        #dashboard .dashboard-welcome {
            border-color: #087c50;
            background:
                radial-gradient(ellipse at 20% 60%, #007d584d, transparent 36%),
                linear-gradient(110deg, #0c1711, #08110d);
            box-shadow: inset 0 0 22px #00f5a00c;
        }

        #dashboard .stat-card,
        #dashboard .dashboard-ai-card,
        #dashboard .dashboard-services .service-card,
        #dashboard .dashboard-lower-grid .panel {
            border-color: #16482f;
            background-color: #08110c;
            box-shadow: inset 0 1px #ffffff08, 0 0 12px #00e78b08;
        }
}

.hosting-project-card {
    align-items: stretch;
    flex-direction: column;
}

.hosting-deploy-controls,
.hosting-deploy-form {
    width: 100%;
}

.hosting-deploy-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hosting-deploy-form label {
    display: grid;
    align-content: start;
    gap: 7px;
    color: var(--muted);
}

.hosting-deploy-form input {
    width: 100%;
    min-width: 0;
}

.hosting-deploy-form input[type="file"] {
    padding: 8px;
}

.hosting-deploy-form .item-actions {
    grid-column: 1 / -1;
}

.hosting-deployment-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.hosting-deployment-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #070d0a;
}

.hosting-deployment-row time,
.hosting-deployment-row p {
    color: var(--muted);
    font-size: 12px;
}

.hosting-deployment-row p {
    flex: 1 1 100%;
    overflow-wrap: anywhere;
}

.hosting-project-card .item-actions {
    align-items: center;
}

.hosting-project-card button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 620px) {
    .hosting-deploy-form {
        grid-template-columns: 1fr;
    }

    .hosting-deploy-form .item-actions {
        grid-column: auto;
    }
}

.qr-code-panel {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(100%, 470px);
    margin-inline: auto;
    padding: 24px;
}

.qr-code-output {
    display: grid;
    width: min(304px, 100%);
    aspect-ratio: 1;
    place-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    color: #17231d;
}

.qr-code-output canvas {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.qr-code-address {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--muted);
    text-align: center;
}

.qr-code-warning,
.qr-code-error {
    width: 100%;
    padding: 12px;
    border: 1px solid #786126;
    border-radius: 8px;
    color: #ffe4a0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.qr-code-error {
    border-color: #71343b;
    color: #ffb8bf;
}

.qr-code-panel button {
    width: 100%;
}

body {
    display: flex;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 220px;
    min-height: 100vh;
    padding: 18px 12px;
    overflow-y: auto;
    border-left: 1px solid #1d392b;
    border-right: 0;
}

.english-ui .sidebar {
    right: auto;
    left: 0;
    border-left: 0;
    border-right: 1px solid #1d392b;
}

.logo {
    margin: 0 6px 24px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: calc(100vh - 125px);
    overflow-y: auto;
}

.nav-btn {
    min-width: 0;
    min-height: 39px;
    padding: 9px;
    font-size: 13px;
}

.main-content {
    width: calc(100% - 220px);
    margin-right: 220px;
    padding: 20px 22px;
}

.english-ui .main-content {
    width: calc(100% - 220px);
    margin-right: 0;
    margin-left: 220px;
}

.topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 13px;
}

.topbar-actions {
    width: 100%;
    flex-wrap: wrap;
}

.dashboard-search {
    width: 100%;
    flex: 1 1 100%;
}

.dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
}

.dashboard-welcome h2 {
    font-size: 18px;
}

.cloud-icon {
    display: none;
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-columns {
    grid-template-columns: 1fr;
    direction: rtl;
}

.dashboard-ai-card {
    position: static;
    min-height: auto;
    grid-row: 1;
}

.dashboard-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-lower-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 800px) {
    .sidebar {
        width: 190px;
    }

    .main-content {
        width: calc(100% - 190px);
        margin-right: 190px;
    }

    .english-ui .main-content {
        width: calc(100% - 190px);
        margin-right: 0;
        margin-left: 190px;
    }
}

@media (max-width: 620px) {
    body {
        display: block;
    }

    .sidebar,
    .english-ui .sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: auto;
        padding: 15px;
        border: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 215px;
    }

    .main-content,
    .english-ui .main-content {
        width: 100%;
        margin: 0;
        padding: 18px 14px;
    }
}

@media (min-width: 801px) {
    body {
        display: flex;
        background:
            radial-gradient(ellipse at 42% 0%, #08331f 0, transparent 34%),
            radial-gradient(ellipse at 58% 72%, #06170f 0, transparent 45%),
            #030705;
    }

    .sidebar,
    .english-ui .sidebar {
        position: fixed;
        inset: 0 0 0 auto;
        width: 174px;
        min-height: 100vh;
        padding: 14px 9px;
        overflow-y: auto;
        background: linear-gradient(180deg, #050b08f5, #030705f7);
        border: 0;
        border-left: 1px solid #163d2a;
        box-shadow: 0 0 28px #00e78b12;
    }

    .english-ui .sidebar {
        inset: 0 auto 0 0;
        border-left: 0;
        border-right: 1px solid #163d2a;
    }

    .logo {
        gap: 7px;
        margin: 0 4px 17px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .logo-copy strong {
        font-size: 16px;
    }

    .logo-copy small {
        font-size: 9px;
    }

    .sidebar nav {
        display: flex;
        flex-direction: column;
        gap: 3px;
        max-height: none;
        overflow: visible;
    }

    .nav-btn {
        min-height: 34px;
        padding: 7px 8px;
        gap: 7px;
        border-radius: 8px;
        font-size: 11px;
    }

    .nav-btn::before {
        width: 18px;
        flex-basis: 18px;
        font-size: 13px;
    }

    .sidebar-footer {
        display: block;
        padding: 10px 5px 5px;
        font-size: 10px;
    }

    .main-content,
    .english-ui .main-content {
        width: calc(100% - 174px);
        margin: 0 174px 0 0;
        padding: 10px 12px 18px;
    }

    .english-ui .main-content {
        margin-right: 0;
        margin-left: 174px;
    }

    .topbar {
        min-height: 48px;
        align-items: center;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 10px;
        padding: 6px 10px;
        border-color: #153a29;
        border-radius: 12px;
        background: #050a08ef;
        box-shadow: 0 5px 22px #0008, 0 0 18px #00e78b0a;
    }

    .topbar h1 {
        margin-bottom: 2px;
        font-size: 17px;
    }

    .topbar p {
        font-size: 9px;
    }

    .topbar-actions {
        width: auto;
        flex-wrap: nowrap;
        gap: 7px;
    }

    .dashboard-search {
        width: min(230px, 23vw);
        flex: 0 1 230px;
    }

    .dashboard-search input {
        padding: 7px 0;
        font-size: 11px;
    }

    #dashboard .dashboard-welcome {
        min-height: 116px;
        align-items: center;
        flex-direction: row;
        margin-bottom: 10px;
        padding: 14px 18px;
        overflow: hidden;
        border-color: #087c50;
        border-radius: 13px;
        background:
            radial-gradient(ellipse at 20% 60%, #007d584d, transparent 36%),
            radial-gradient(circle at 15% 50%, #05c6ff29, transparent 20%),
            linear-gradient(105deg, #071b17, #07100d 58%, #05110b);
        box-shadow: inset 0 0 25px #00f5a00c, 0 0 14px #00eb9814;
    }

    #dashboard .dashboard-welcome::after {
        position: absolute;
        top: 50%;
        left: 18%;
        width: 100px;
        height: 70px;
        border: 1px solid #00e7bb55;
        border-radius: 50%;
        content: "";
        pointer-events: none;
        transform: translate(-50%, -50%) rotate(-12deg);
        box-shadow: 0 0 22px #00dba033, inset 0 0 16px #00dba018;
    }

    #dashboard .dashboard-welcome > div,
    #dashboard .dashboard-welcome > button {
        position: relative;
        z-index: 1;
    }

    #dashboard .dashboard-welcome h2 {
        margin: 6px 0 4px;
        font-size: 18px;
    }

    #dashboard .dashboard-welcome p,
    #dashboard .dashboard-welcome .primary-btn {
        font-size: 10px;
    }

    #dashboard .dashboard-welcome .primary-btn {
        padding: 9px 12px;
        white-space: nowrap;
    }

    #dashboard .stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
        margin-bottom: 9px;
    }

    #dashboard .stat-card {
        min-height: 72px;
        padding: 10px;
        border-color: #16482f;
        border-radius: 10px;
        background: linear-gradient(145deg, #0b1711, #050b08);
        box-shadow: inset 0 1px #ffffff08, 0 0 10px #00e78b0a;
    }

    #dashboard .stat-card span {
        margin-bottom: 5px;
        font-size: 9px;
    }

    #dashboard .stat-card strong {
        margin-bottom: 1px;
        font-size: 19px;
    }

    #dashboard .stat-card small {
        font-size: 8px;
    }

    #dashboard .dashboard-columns {
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 9px;
        direction: rtl;
    }

    #dashboard .dashboard-primary {
        direction: rtl;
    }

    #dashboard .dashboard-ai-card {
        position: static;
        grid-row: auto;
        min-height: auto;
        padding: 11px;
        border-color: #14623c;
        border-radius: 11px;
        background:
            radial-gradient(ellipse at 50% 15%, #0873424a, transparent 48%),
            linear-gradient(160deg, #0b1711, #040907);
        box-shadow: inset 0 0 20px #00f59c0a, 0 0 12px #00e78b12;
    }

    #dashboard .ai-card-heading {
        min-height: 62px;
    }

    #dashboard .ai-orb {
        width: 48px;
        height: 48px;
        font-size: 25px;
    }

    #dashboard .dashboard-ai-card h2 {
        margin: 5px 0;
        font-size: 14px;
    }

    #dashboard .dashboard-ai-card > p,
    #dashboard .ai-placeholder-status {
        font-size: 9px;
    }

    #dashboard .ai-placeholder-status {
        margin: 8px 0;
        padding: 6px;
    }

    #dashboard .dashboard-ai-card > .primary-btn {
        padding: 7px;
        font-size: 10px;
    }

    #dashboard .ai-quick-links {
        gap: 2px;
        margin-top: 7px;
    }

    #dashboard .ai-quick-links button {
        padding: 5px 2px;
        font-size: 9px;
    }

    #dashboard .dashboard-section-heading,
    #dashboard .dashboard-lower-grid .section-heading {
        margin: 4px 0 7px;
    }

    #dashboard .dashboard-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 8px;
    }

    #dashboard .dashboard-services .service-card,
    #dashboard .dashboard-lower-grid .panel,
    #dashboard .resource-note.panel,
    #dashboard > .services-grid .service-card {
        border-color: #16442e;
        border-radius: 9px;
        background: linear-gradient(145deg, #0a1510, #050a08);
        box-shadow: inset 0 1px #ffffff08, 0 0 12px #00e78b08;
    }

    #dashboard .dashboard-services .service-card {
        padding: 8px;
    }

    #dashboard .dashboard-services .service-card h3 {
        font-size: 10px;
    }

    #dashboard .dashboard-services .service-card p {
        font-size: 8px;
        line-height: 1.5;
    }

    #dashboard .dashboard-lower-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    #dashboard .dashboard-lower-grid .panel,
    #dashboard .resource-note.panel {
        min-height: 92px;
        margin-bottom: 7px;
        padding: 9px;
    }

    #dashboard .dashboard-app-row,
    #dashboard .dashboard-activity-row {
        font-size: 9px;
    }

    #dashboard > .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        margin-top: 8px;
    }

    #dashboard > .services-grid .service-card {
        min-width: 0;
        padding: 9px;
    }
}

@media (min-width: 801px) and (max-width: 1100px) {
    #dashboard .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #dashboard .dashboard-columns {
        grid-template-columns: minmax(0, 1fr) 175px;
    }
}
