:root {
    --bg: #f7f3ec;
    --panel: #fffdf9;
    --sidebar: #5c4a3d;
    --sidebar-soft: #7b6658;
    --text: #2f2a26;
    --muted: #7f776e;
    --border: #e7dfd3;
    --beige: #e8d8c3;
    --olive: #6b7a44;
    --gold: #c89d53;
    --red: #a85f5f;
    --shadow: 0 18px 50px rgba(54, 39, 28, 0.08);
    --radius: 20px;
    --studio-stone: #7a5b45;
    --studio-stone-deep: #4a3d34;
    --studio-sand: #f3ebe0;
    --studio-ink: #2c2620;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(165deg, #fdfcfa 0%, #f4ebe1 48%, #efe4d6 100%);
    color: var(--text);
    font-family: "Tajawal", "Almarai", sans-serif;
}

body.app-shell {
    position: relative;
    isolation: isolate;
}

body.app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(122, 91, 69, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 0% 100%, rgba(107, 122, 68, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 12px,
            rgba(74, 61, 52, 0.025) 12px,
            rgba(74, 61, 52, 0.025) 13px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 18px,
            rgba(122, 91, 69, 0.02) 18px,
            rgba(122, 91, 69, 0.02) 19px
        );
}

.shell-grid,
.shell-main,
.sidebar-panel {
    position: relative;
    z-index: 1;
}

.page-title,
.studio-card-title,
.studio-eyebrow,
.studio-intro-lead,
.section-title {
    font-family: "Almarai", "Tajawal", sans-serif;
}

.app-shell {
    min-height: 100vh;
}

.shell-grid {
    display: block;
    min-height: 100vh;
}

.sidebar-panel {
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-soft) 100%);
    color: #fff;
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 320px;
    height: 100vh;
    z-index: 1000;
    overflow: visible;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-brand-badge,
.sidebar-menu-trigger {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sidebar-brand-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.sidebar-brand-text strong {
    font-size: 1.12rem;
    line-height: 1.2;
}

.sidebar-brand-text small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
}

.sidebar-menu-trigger {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
}

.sidebar-menu-trigger span {
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    display: block;
    margin: 2px auto;
}

.sidebar-intro-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-intro-eyebrow {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.sidebar-intro-card strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.sidebar-intro-card small {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-inline-end: 2px;
}

.sidebar-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
}

.sidebar-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px;
    cursor: pointer;
    font-weight: 700;
}

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

.sidebar-group-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-group-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    flex-shrink: 0;
}

.sidebar-group-title {
    font-size: 0.98rem;
}

.sidebar-group-arrow {
    width: 8px;
    height: 8px;
    border-inline-start: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.sidebar-group[open] .sidebar-group-arrow {
    transform: rotate(-135deg);
}

.sidebar-group-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px 10px;
}

.sidebar-group-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 15px;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
}

.sidebar-link-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.sidebar-link-text strong {
    font-size: 0.93rem;
    font-weight: 700;
}

.sidebar-link-text small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    flex-shrink: 0;
}

.sidebar-group-links a:hover,
.sidebar-group-links a.active {
    background: rgba(255, 255, 255, 0.98);
    color: var(--sidebar);
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(33, 23, 16, 0.12);
}

.sidebar-group-links a:hover .sidebar-link-text small,
.sidebar-group-links a.active .sidebar-link-text small {
    color: rgba(92, 74, 61, 0.72);
}

.sidebar-group-links a:hover .sidebar-link-indicator,
.sidebar-group-links a.active .sidebar-link-indicator {
    background: var(--sidebar);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.sidebar-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.sidebar-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2fc26e;
    box-shadow: 0 0 0 3px rgba(47, 194, 110, 0.18);
}

.sidebar-notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.sidebar-bell {
    width: 16px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.sidebar-bell::before {
    content: "";
    position: absolute;
    inset: 0 2px 4px;
    border: 2px solid currentColor;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.sidebar-bell::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
}

.sidebar-notification-count {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--sidebar);
    font-size: 0.74rem;
    font-weight: 700;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

button.sidebar-user-menu-toggle {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    text-align: inherit;
    color: inherit;
    cursor: pointer;
}

.sidebar-user-menu-toggle .sidebar-user-chevron {
    margin-inline-start: auto;
    font-size: 0.9rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.sidebar-account-menu {
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 10px !important;
    border: 1px solid #eee7dd !important;
}

.sidebar-account-menu .dropdown-item {
    border-radius: 12px;
    font-weight: 600;
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.sidebar-user-meta strong,
.sidebar-user-meta small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-meta small {
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-logout-btn {
    border-width: 1px;
    border-radius: 16px;
    background: transparent;
}

.shell-main {
    padding: 28px;
    margin-right: 320px;
    margin-left: 0;
}

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

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.page-subtitle {
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-counter {
    position: absolute;
    top: -6px;
    left: -6px;
}

.user-pill {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.content-wrap .card,
.metric-card,
.config-item,
.note-card,
.notification-item {
    border-radius: var(--radius);
}

.metric-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.metric-card strong {
    font-size: 2rem;
    line-height: 1;
}

.accent-olive {
    border-inline-start: 6px solid var(--olive);
}

.accent-gold {
    border-inline-start: 6px solid var(--gold);
}

.accent-red {
    border-inline-start: 6px solid var(--red);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 8px 12px;
    background: #f4e7d4;
    color: #705942;
    border-radius: 999px;
    font-size: 0.9rem;
}

.notification-item,
.note-card,
.config-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 12px;
}

.review-note-text {
    white-space: pre-line;
    line-height: 1.7;
}

.review-evaluation-table-wrap {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.review-evaluation-table {
    margin-bottom: 0;
}

.review-evaluation-table thead th {
    background: #f6efe3;
    color: #6b5846;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-evaluation-table td,
.review-evaluation-table th {
    vertical-align: middle;
    white-space: normal;
}

.guest-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.guest-card {
    width: min(100%, 480px);
    background: rgba(255, 253, 249, 0.95);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.brand-block {
    margin-bottom: 24px;
}

.brand-tag {
    color: var(--red);
    font-weight: 700;
    margin-bottom: 12px;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: var(--border);
    padding: 0.8rem 1rem;
}

.btn {
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #7a5b45 0%, #a27758 100%);
    border-color: transparent;
}

.btn-outline-primary {
    color: #7a5b45;
    border-color: #7a5b45;
}

.table thead th {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

/* Sidebar modern polish */
.shell-grid {
    grid-template-columns: 320px 1fr;
}

.sidebar-panel {
    padding: 18px 14px 16px;
    gap: 12px;
}

.sidebar-brand {
    padding: 4px 4px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-brand-text {
    min-width: 0;
}

.sidebar-brand-text strong {
    font-size: 1.05rem;
    line-height: 1.3;
}

.sidebar-brand-text small {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.76);
}

.sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-inline-end: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.sidebar-sections::-webkit-scrollbar {
    width: 8px;
}

.sidebar-sections::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-sections::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar-sections::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
    background-clip: padding-box;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-card h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-panel .sidebar-link,
.sidebar-panel .sidebar-link:link,
.sidebar-panel .sidebar-link:visited {
    display: block !important;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.93rem;
    transition: 0.2s ease;
    line-height: 1.5;
}

.sidebar-panel .sidebar-link:hover,
.sidebar-panel .sidebar-link.active {
    background: rgba(255, 255, 255, 0.97);
    color: var(--sidebar) !important;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(35, 23, 14, 0.12);
}

.sidebar-footer {
    gap: 10px;
}

.sidebar-user-card {
    padding: 12px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.sidebar-user-meta strong {
    font-size: 0.92rem;
}

.sidebar-user-meta small {
    font-size: 0.78rem;
}

.sidebar-logout-btn {
    border-radius: 14px;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.requests-header-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 242, 234, 0.96) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.request-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.request-stat-card::after {
    content: "";
    position: absolute;
    top: -18px;
    left: -10px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.request-stat-card span,
.request-stat-card strong {
    position: relative;
    z-index: 1;
}

.request-stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.request-stat-card strong {
    font-size: 2rem;
    line-height: 1;
}

.accent-red-soft strong {
    color: #db5d5d;
}

.accent-gold-soft strong {
    color: #d49b1f;
}

.accent-purple-soft strong {
    color: #8a63db;
}

.accent-green-soft strong {
    color: #27a66a;
}

.accent-slate-soft strong {
    color: #56708d;
}

.requests-filter-card,
.requests-table-card {
    border-radius: 24px !important;
}

.requests-table thead th {
    color: #776c62;
    font-size: 0.9rem;
}

.requests-table tbody tr {
    border-bottom-color: #eee7dd;
}

.requests-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.request-number-cell strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8f1e8;
    color: #6b5846;
    font-size: 0.92rem;
}

.dashboard-hero {
    border-radius: 28px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 240, 232, 0.95) 100%);
}

.dashboard-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-overline {
    color: #8b7560;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.dashboard-pill {
    background: #f6efe4;
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.dashboard-pill span {
    color: var(--muted);
    font-size: 0.85rem;
}

.dashboard-pill strong {
    font-size: 1.8rem;
    line-height: 1;
    color: #6b5846;
}

.dashboard-status-track {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #eee7dd;
}

.dashboard-status-segment {
    height: 100%;
}

.dashboard-status-segment.is-open,
.legend-dot.is-open {
    background: #b96c6c;
}

.dashboard-status-segment.is-progress,
.legend-dot.is-progress {
    background: #c89d53;
}

.dashboard-status-segment.is-revision,
.legend-dot.is-revision {
    background: #8a63db;
}

.dashboard-status-segment.is-approved,
.legend-dot.is-approved {
    background: #6b7a44;
}

.dashboard-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #776c62;
    font-size: 0.88rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

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

.dashboard-kpi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px 20px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.dashboard-kpi-card::after {
    content: "";
    position: absolute;
    top: -18px;
    left: -12px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
}

.dashboard-kpi-card span,
.dashboard-kpi-card strong,
.dashboard-kpi-card small {
    position: relative;
    z-index: 1;
}

.dashboard-kpi-card span {
    color: var(--muted);
    font-size: 0.88rem;
}

.dashboard-kpi-card strong {
    font-size: 1.75rem;
    line-height: 1.1;
}

.dashboard-kpi-card small {
    color: #8d847c;
    font-size: 0.78rem;
}

.accent-slate {
    border-inline-start: 6px solid #6f839b;
}

.accent-purple {
    border-inline-start: 6px solid #8a63db;
}

.dashboard-request-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8f1e8;
    color: #6b5846;
    font-size: 0.9rem;
}

.dashboard-reviewer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee7dd;
}

.dashboard-reviewer-row:last-child {
    border-bottom: 0;
}

.dashboard-table thead th {
    color: #776c62;
    font-size: 0.9rem;
}

.kpi-hero {
    border-radius: 28px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 240, 232, 0.95) 100%);
}

.kpi-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kpi-overline {
    color: #8b7560;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.kpi-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kpi-comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f6efe4;
    color: #6b5846;
    border-radius: 999px;
    padding: 10px 14px;
}

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

.kpi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: "";
    position: absolute;
    top: -20px;
    left: -14px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.kpi-card span,
.kpi-card strong {
    position: relative;
    z-index: 1;
}

.kpi-card span {
    color: var(--muted);
    font-size: 0.84rem;
}

.kpi-card strong {
    font-size: 1.45rem;
    line-height: 1.1;
}

.kpi-mini-card {
    background: #fbf7f2;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-mini-card span {
    color: var(--muted);
    font-size: 0.88rem;
}

.kpi-mini-card strong {
    font-size: 1.1rem;
}

#trendChart,
#statusChart,
#projectChart,
#styleChart,
#reviewerChart {
    width: 100% !important;
    height: 100% !important;
}

.kpi-chart-box {
    position: relative;
    width: 100%;
}

.kpi-chart-lg {
    height: 280px;
}

.kpi-chart-md {
    height: 240px;
}

@media (max-width: 991px) {
    .shell-grid {
        display: block;
    }

    .sidebar-panel {
        position: relative;
        min-height: auto;
        width: auto;
        height: auto;
        right: auto;
        left: auto;
    }

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

    .shell-main {
        margin-right: 0;
        margin-left: 0;
    }

    .requests-header-card {
        flex-direction: column;
        align-items: stretch;
    }

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

    .dashboard-hero-top {
        flex-direction: column;
        align-items: stretch;
    }

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

    .kpi-hero-top {
        flex-direction: column;
        align-items: stretch;
    }

    .kpi-hero-actions {
        flex-direction: column;
    }

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

    .kpi-chart-lg,
    .kpi-chart-md {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .kpi-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard + Sidebar refresh */
.sidebar-panel {
    background: #fffdf9 !important;
    color: var(--text) !important;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 34px rgba(62, 46, 33, 0.08);
}

.sidebar-brand,
.sidebar-footer {
    border-color: #eee7dd !important;
}

.sidebar-brand-badge {
    background: #efe2d3 !important;
    border-color: #eadbc7 !important;
    color: #7a5b45 !important;
}

.sidebar-brand-text strong {
    color: #3d332c;
    font-size: 1.1rem;
}

.sidebar-brand-text small,
.sidebar-user-status,
.sidebar-user-meta small {
    color: #8b7f73 !important;
}

.sidebar-card {
    background: #ffffff !important;
    border: 1px solid #eee7dd !important;
    box-shadow: 0 10px 24px rgba(55, 39, 28, 0.05);
}

.sidebar-card h4 {
    color: #6b5846 !important;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.sidebar-panel .sidebar-link,
.sidebar-panel .sidebar-link:link,
.sidebar-panel .sidebar-link:visited {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #faf6f0 !important;
    color: #6b5846 !important;
    border: 1px solid #eee4d8 !important;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
}

.sidebar-link-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eadfcf;
    color: #8a6a54;
    flex-shrink: 0;
}

.sidebar-panel .sidebar-link span:last-child {
    flex: 1;
}

.sidebar-panel .sidebar-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(77, 58, 41, 0.09);
}

.sidebar-panel .sidebar-link.active {
    background: linear-gradient(135deg, #8a6a54 0%, #b18462 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 12px 22px rgba(122, 91, 69, 0.24);
}

.sidebar-panel .sidebar-link.active .sidebar-link-icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sidebar-notification-btn,
.sidebar-icon-btn,
.sidebar-user-card {
    background: #faf6f0 !important;
    border-color: #eee7dd !important;
    color: #7a5b45 !important;
}

.sidebar-icon-btn:hover {
    background: #f3ece4 !important;
    border-color: #e8dcc8 !important;
}

.sidebar-user-avatar {
    background: #efe2d3 !important;
    color: #7a5b45 !important;
}

.sidebar-logout-btn {
    border-color: #d9c8b6 !important;
    color: #7a5b45 !important;
    background: #fff !important;
}

.sidebar-logout-btn:hover {
    background: #7a5b45 !important;
    color: #fff !important;
    border-color: #7a5b45 !important;
}

.topbar {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.1rem;
    font-weight: 800;
}

.page-subtitle {
    font-size: 0.98rem;
    color: #8c8177;
}

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

.dashboard-kpi-card {
    padding: 20px 20px 18px;
    min-height: 142px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(55, 39, 28, 0.12);
}

.dashboard-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.dashboard-kpi-icon i {
    line-height: 1;
}

.dashboard-kpi-icon-primary,
.dashboard-kpi-primary {
    border-inline-start: 6px solid #8a6a54;
}

.dashboard-kpi-icon-primary {
    background: #8a6a54;
}

.dashboard-kpi-icon-success,
.dashboard-kpi-success {
    border-inline-start: 6px solid #6b7a44;
}

.dashboard-kpi-icon-success {
    background: #6b7a44;
}

.dashboard-kpi-icon-warning,
.dashboard-kpi-warning {
    border-inline-start: 6px solid #c89d53;
}

.dashboard-kpi-icon-warning {
    background: #c89d53;
}

.dashboard-kpi-icon-danger,
.dashboard-kpi-danger {
    border-inline-start: 6px solid #b96c6c;
}

.dashboard-kpi-icon-danger {
    background: #b96c6c;
}

.dashboard-kpi-icon-secondary,
.dashboard-kpi-secondary {
    border-inline-start: 6px solid #6f839b;
}

.dashboard-kpi-icon-secondary {
    background: #6f839b;
}

.dashboard-kpi-body span {
    color: #8c8177;
    font-size: 0.88rem;
}

.dashboard-kpi-body strong {
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: 800;
}

.dashboard-kpi-trend {
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6efe4;
}

.dashboard-kpi-trend.is-up {
    color: #2c8f56;
}

.dashboard-kpi-trend.is-down {
    color: #b96c6c;
}

.dashboard-kpi-trend.is-steady {
    color: #7b746d;
}

.dashboard-chart-box {
    position: relative;
    width: 100%;
    height: 320px;
}

.dashboard-chart-sm {
    height: 280px;
}

.dashboard-chart-reviewers {
    height: 300px;
}

.dashboard-table thead th {
    color: #7b7067;
    font-size: 0.88rem;
}

.dashboard-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 1200px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-box,
    .dashboard-chart-sm,
    .dashboard-chart-reviewers {
        height: 240px;
    }
}

.theme-icon-light {
    display: none;
}

/* —— Saudi Archid / studio identity: projects & guest —— */
.page-studio-projects .page-title {
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--studio-ink) 0%, #6b5344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.projects-studio {
    animation: studio-fade-in 0.45s ease-out;
}

@keyframes studio-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.studio-intro {
    overflow: hidden;
    border-radius: 24px !important;
    border: 1px solid rgba(231, 223, 211, 0.95) !important;
    background: linear-gradient(125deg, rgba(255, 253, 249, 0.98) 0%, rgba(248, 240, 230, 0.96) 42%, rgba(241, 232, 218, 0.94) 100%);
    box-shadow: 0 20px 48px rgba(62, 46, 33, 0.09), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.studio-intro-body {
    position: relative;
    padding: 1.5rem 1.75rem !important;
}

.studio-intro-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='none' stroke='%237a5b45' stroke-width='0.6' d='M30 5 L55 17.5 L55 42.5 L30 55 L5 42.5 L5 17.5 Z M30 20 L45 27.5 L45 37.5 L30 45 L15 37.5 L15 27.5 Z'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

.studio-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--studio-stone);
    opacity: 0.92;
}

.studio-intro-lead {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #5c534a;
    max-width: 52rem;
}

.studio-stat-chips {
    margin-top: 0.25rem;
}

.studio-stat-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
    min-width: 118px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e8dfd2;
    box-shadow: 0 8px 20px rgba(55, 42, 30, 0.06);
}

.studio-stat-chip span {
    font-size: 0.78rem;
    color: #8a7f72;
    font-weight: 600;
}

.studio-stat-chip strong {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: var(--studio-stone-deep);
    font-family: "Almarai", "Tajawal", sans-serif;
}

.studio-stat-chip--active {
    border-color: rgba(107, 122, 68, 0.35);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(236, 244, 228, 0.5) 100%);
}

.studio-stat-chip--active strong {
    color: #4d5c32;
}

.studio-form-card,
.studio-table-card {
    border-radius: 22px !important;
    border: 1px solid rgba(231, 223, 211, 0.95) !important;
    box-shadow: 0 16px 40px rgba(62, 46, 33, 0.07);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 251, 246, 1) 100%);
}

.studio-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1.25rem 1.35rem !important;
    background: linear-gradient(180deg, #faf6f0 0%, #f5efe6 100%);
    border-bottom: 1px solid #ebe3d6 !important;
}

.studio-card-header--table {
    align-items: center;
}

.studio-card-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, var(--studio-stone) 0%, #9a765c 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(122, 91, 69, 0.28);
}

.studio-card-header-icon--muted {
    background: linear-gradient(145deg, #6f839b 0%, #8a9eb5 100%);
    box-shadow: 0 8px 18px rgba(90, 110, 130, 0.22);
}

.studio-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--studio-ink);
}

.studio-card-subtitle {
    font-size: 0.84rem;
    color: #8a7f72;
    margin-top: 4px !important;
}

.studio-label {
    font-weight: 700;
    color: #5a5248;
    font-size: 0.9rem;
}

.studio-input:focus {
    border-color: rgba(122, 91, 69, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(122, 91, 69, 0.12);
}

.studio-check .form-check-label {
    font-size: 0.9rem;
    color: #6b635a;
}

.studio-submit-btn {
    font-weight: 700;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: linear-gradient(135deg, #6d5240 0%, #9a7358 55%, #b88968 100%) !important;
    border: none !important;
    box-shadow: 0 12px 28px rgba(109, 82, 64, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.studio-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(109, 82, 64, 0.34);
}

.studio-projects-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(250, 246, 240, 0.65);
}

.studio-projects-table thead th {
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    color: #7a7065 !important;
    font-weight: 800;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f7f1e9 0%, #f0e8dd 100%) !important;
    border-bottom: 1px solid #e3d9cb !important;
    white-space: nowrap;
}

.studio-projects-table tbody td {
    padding: 1rem 1.25rem;
    border-color: #efe8de !important;
    vertical-align: middle;
}

.studio-projects-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.studio-projects-table tbody tr:hover td {
    background: rgba(255, 251, 246, 0.85);
}

.studio-cell-name {
    font-weight: 700;
    color: #3d332c;
}

.studio-cell-desc {
    color: #6b635a;
    font-size: 0.93rem;
    max-width: 280px;
}

.studio-code-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: ui-monospace, "Cascadia Mono", monospace;
    background: #f0e8dd;
    color: #5c4a3d;
    border: 1px solid #e5d9c8;
}

.studio-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.studio-status--on {
    background: linear-gradient(180deg, #ecf4e4 0%, #dfead2 100%);
    color: #3d4f28;
    border: 1px solid rgba(107, 122, 68, 0.35);
}

.studio-status--off {
    background: #f3f0eb;
    color: #8a7f72;
    border: 1px solid #e5ddd2;
}

.studio-empty {
    text-align: center;
    padding: 3rem 1.5rem 3.25rem;
}

.studio-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    color: var(--studio-stone);
    background: linear-gradient(145deg, #faf6f0 0%, #efe6d8 100%);
    border: 1px solid #e8dfd2;
}

.studio-empty-title {
    font-family: "Almarai", "Tajawal", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--studio-ink);
    margin-bottom: 0.35rem;
}

.studio-empty-text {
    color: #8a7f72;
    margin: 0;
    font-size: 0.95rem;
}

.guest-shell--studio {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 20px;
    position: relative;
    isolation: isolate;
    background: linear-gradient(155deg, #1a1612 0%, #2d241c 38%, #3d2f24 100%);
}

.guest-shell--studio::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        radial-gradient(ellipse 100% 70% at 80% 10%, rgba(200, 157, 83, 0.15) 0%, transparent 45%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%23c89d53' stroke-opacity='0.12' stroke-width='0.5' d='M40 8 L72 24 L72 56 L40 72 L8 56 L8 24 Z'/%3E%3C/svg%3E");
    background-size: auto, 80px 80px;
}

.guest-shell--studio .guest-card--studio {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    border-radius: 26px;
    padding: 2.25rem 2rem 2rem;
    background: linear-gradient(165deg, rgba(255, 253, 249, 0.98) 0%, rgba(250, 244, 236, 0.99) 100%);
    border: 1px solid rgba(231, 223, 211, 0.95);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.guest-shell--studio .brand-block h1 {
    font-family: "Almarai", "Tajawal", sans-serif;
    font-weight: 800;
    font-size: 1.65rem;
    line-height: 1.35;
    color: var(--studio-ink);
    margin-bottom: 0.75rem;
}

.guest-shell--studio .brand-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, rgba(122, 91, 69, 0.12) 0%, rgba(200, 157, 83, 0.15) 100%);
    color: var(--studio-stone);
    border: 1px solid rgba(122, 91, 69, 0.2);
    margin-bottom: 1rem;
}

.guest-shell--studio .brand-block p {
    color: #6b635a;
    line-height: 1.75;
    font-size: 0.95rem;
}

.guest-shell--studio .btn-primary {
    font-weight: 700;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: linear-gradient(135deg, #6d5240 0%, #9a7358 55%, #b88968 100%) !important;
    border: none !important;
    box-shadow: 0 12px 28px rgba(109, 82, 64, 0.28);
}

@media (max-width: 991px) {
    .studio-intro-body {
        padding: 1.25rem 1.15rem !important;
    }

    .studio-stat-chips {
        justify-content: flex-start !important;
    }
}

html[data-theme="dark"] {
    --bs-body-bg: #1b2028;
    --bs-body-color: #e9edf3;
    --bs-table-bg: transparent;
    --bs-table-color: #e9edf3;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.045);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-border-color: #323b48;
}

html[data-theme="dark"] body {
    background: linear-gradient(180deg, #16181d 0%, #1b2028 100%);
    color: #e9edf3;
}

html[data-theme="dark"] .sidebar-panel {
    background: linear-gradient(180deg, #1b2028 0%, #202632 100%) !important;
    border-left-color: rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 34px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .sidebar-brand,
html[data-theme="dark"] .sidebar-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .sidebar-brand-badge,
html[data-theme="dark"] .sidebar-user-avatar {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f4f6fb !important;
}

html[data-theme="dark"] .sidebar-brand-text strong,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .dashboard-kpi-body strong,
html[data-theme="dark"] .kpi-card strong,
html[data-theme="dark"] .kpi-mini-card strong {
    color: #f4f6fb !important;
}

html[data-theme="dark"] .sidebar-brand-text small,
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .dashboard-kpi-body span,
html[data-theme="dark"] .dashboard-kpi-card small,
html[data-theme="dark"] .kpi-card span,
html[data-theme="dark"] .kpi-mini-card span {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .sidebar-notification-btn,
html[data-theme="dark"] .sidebar-icon-btn,
html[data-theme="dark"] .sidebar-user-card,
html[data-theme="dark"] .guest-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .notification-item,
html[data-theme="dark"] .note-card,
html[data-theme="dark"] .config-item,
html[data-theme="dark"] .request-stat-card,
html[data-theme="dark"] .dashboard-kpi-card,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .kpi-mini-card {
    background: #242b35 !important;
    border-color: #323b48 !important;
    color: #e9edf3 !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .sidebar-panel .sidebar-link,
html[data-theme="dark"] .sidebar-panel .sidebar-link:link,
html[data-theme="dark"] .sidebar-panel .sidebar-link:visited {
    background: #2b3440 !important;
    border-color: #364150 !important;
    color: #e9edf3 !important;
}

html[data-theme="dark"] .sidebar-panel .sidebar-link:hover {
    background: #333d4a !important;
}

html[data-theme="dark"] .sidebar-panel .sidebar-link.active {
    background: linear-gradient(135deg, #6f839b 0%, #8a63db 100%) !important;
    color: #fff !important;
}

html[data-theme="dark"] .sidebar-link-icon {
    background: #202632;
    border-color: #364150;
    color: #d7dfeb;
}

html[data-theme="dark"] .sidebar-icon-btn:hover {
    background: #333d4a !important;
    border-color: #3d4756 !important;
}

html[data-theme="dark"] .sidebar-user-menu-toggle .sidebar-user-chevron {
    color: #aab4c5;
}

html[data-theme="dark"] .sidebar-account-menu {
    background: #2b3440 !important;
    border: 1px solid #364150 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .sidebar-account-menu .dropdown-item {
    color: #e9edf3;
}

html[data-theme="dark"] .sidebar-account-menu .dropdown-item:hover,
html[data-theme="dark"] .sidebar-account-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff;
}

html[data-theme="dark"] .sidebar-account-menu .sidebar-logout-item.text-danger {
    color: #f0a8a8 !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input {
    background-color: #1f252e !important;
    color: #edf1f7 !important;
    border-color: #364150 !important;
}

html[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e9edf3;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.045);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-table-border-color: #323b48;
    color: #e9edf3 !important;
    border-color: #323b48 !important;
}

html[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #e9edf3 !important;
    border-color: #323b48 !important;
}

html[data-theme="dark"] .table thead th {
    background-color: rgba(0, 0, 0, 0.22) !important;
    color: #c8d0dc !important;
}

html[data-theme="dark"] .table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.045) !important;
    color: #e9edf3 !important;
}

html[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #f4f6fb !important;
}

html[data-theme="dark"] .dashboard-table thead th {
    color: #c8d0dc !important;
}

html[data-theme="dark"] .requests-table thead th {
    color: #c8d0dc !important;
}

html[data-theme="dark"] .requests-table tbody tr {
    border-bottom-color: #323b48 !important;
}

html[data-theme="dark"] .request-number-cell strong {
    background: #1f252e !important;
    color: #dbe4f2 !important;
}

html[data-theme="dark"] .review-evaluation-table-wrap {
    background: #242b35 !important;
    border-color: #323b48 !important;
}

html[data-theme="dark"] .review-evaluation-table thead th {
    background: rgba(0, 0, 0, 0.28) !important;
    color: #dbe4f2 !important;
}

html[data-theme="dark"] .dashboard-hero {
    background: linear-gradient(135deg, #242b35 0%, #1c222b 100%) !important;
    border-color: #323b48 !important;
}

html[data-theme="dark"] .requests-header-card {
    background: linear-gradient(135deg, #242b35 0%, #1c222b 100%) !important;
    border-color: #323b48 !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
    color: #e9edf3 !important;
}

html[data-theme="dark"] .kpi-hero {
    background: linear-gradient(135deg, #242b35 0%, #1c222b 100%) !important;
    border-color: #323b48 !important;
}

html[data-theme="dark"] .kpi-overline {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .dashboard-overline {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .dashboard-kpi-trend.is-steady {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .dashboard-kpi-card::after,
html[data-theme="dark"] .kpi-card::after,
html[data-theme="dark"] .request-stat-card::after {
    background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .status-badge,
html[data-theme="dark"] .dashboard-request-pill,
html[data-theme="dark"] .dashboard-pill,
html[data-theme="dark"] .kpi-comparison-badge {
    background: #1f252e !important;
    color: #dbe4f2 !important;
    border-color: #364150 !important;
}

html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-primary {
    color: #e9edf3 !important;
    border-color: #526172 !important;
    background: transparent !important;
}

html[data-theme="dark"] .theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .theme-icon-light {
    display: inline-block;
}

html[data-theme="dark"] body.app-shell::before {
    background-image:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(96, 120, 160, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 0% 100%, rgba(80, 140, 100, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(135deg, transparent, transparent 12px, rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.02) 13px),
        repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255, 255, 255, 0.015) 18px, rgba(255, 255, 255, 0.015) 19px);
}

html[data-theme="dark"] .page-studio-projects .page-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #f4f6fb !important;
}

html[data-theme="dark"] .studio-intro {
    background: linear-gradient(125deg, #242b35 0%, #1a1f28 100%) !important;
    border-color: #323b48 !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .studio-intro-lead {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .studio-eyebrow {
    color: #c8b8a8 !important;
}

html[data-theme="dark"] .studio-stat-chip {
    background: #1f252e !important;
    border-color: #364150 !important;
}

html[data-theme="dark"] .studio-stat-chip span {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .studio-stat-chip strong {
    color: #f4f6fb !important;
}

html[data-theme="dark"] .studio-stat-chip--active {
    background: linear-gradient(145deg, #1f252e 0%, rgba(80, 120, 90, 0.2) 100%) !important;
    border-color: rgba(100, 140, 110, 0.35) !important;
}

html[data-theme="dark"] .studio-form-card,
html[data-theme="dark"] .studio-table-card {
    background: linear-gradient(180deg, #242b35 0%, #1e242e 100%) !important;
    border-color: #323b48 !important;
}

html[data-theme="dark"] .studio-card-header {
    background: linear-gradient(180deg, #1f252e 0%, #1a1f28 100%) !important;
    border-bottom-color: #323b48 !important;
}

html[data-theme="dark"] .studio-card-title {
    color: #f4f6fb !important;
}

html[data-theme="dark"] .studio-card-subtitle,
html[data-theme="dark"] .studio-label,
html[data-theme="dark"] .studio-check .form-check-label {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .studio-projects-table thead th {
    background: rgba(0, 0, 0, 0.28) !important;
    color: #c8d0dc !important;
    border-bottom-color: #323b48 !important;
}

html[data-theme="dark"] .studio-projects-table tbody td {
    border-color: #323b48 !important;
}

html[data-theme="dark"] .studio-cell-name {
    color: #f4f6fb !important;
}

html[data-theme="dark"] .studio-cell-desc {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .studio-code-pill {
    background: #1f252e !important;
    color: #dbe4f2 !important;
    border-color: #364150 !important;
}

html[data-theme="dark"] .studio-projects-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .studio-empty-icon {
    background: #1f252e !important;
    border-color: #364150 !important;
    color: #dbe4f2 !important;
}

html[data-theme="dark"] .studio-empty-title {
    color: #f4f6fb !important;
}

html[data-theme="dark"] .studio-empty-text {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .guest-shell--studio {
    background: linear-gradient(155deg, #0f1218 0%, #161b24 45%, #1b2028 100%);
}

html[data-theme="dark"] .guest-shell--studio .guest-card--studio {
    background: linear-gradient(165deg, #242b35 0%, #1c222b 100%) !important;
    border-color: #323b48 !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .guest-shell--studio .brand-block h1,
html[data-theme="dark"] .guest-shell--studio .brand-tag {
    color: #f4f6fb !important;
}

html[data-theme="dark"] .guest-shell--studio .brand-block p {
    color: #aab4c5 !important;
}

html[data-theme="dark"] .guest-shell--studio .brand-tag {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
