:root {
    /* NocoDB Design Tokens */
    --nc-primary: #1890ff;
    --nc-primary-hover: #40a9ff;
    --nc-bg: #f3f5fb;
    --nc-border: #dfe1e5;
    --nc-header-bg: #f8f8fa;
    --nc-text-main: #111827;
    --nc-text-muted: #6b7280;
    --nc-row-height: 32px;
    --nc-font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nc-glass: rgba(255, 255, 255, 0.85);
    --av-bg: #f3f5fb;
    --av-panel: rgba(255, 255, 255, 0.94);
    --av-border: rgba(15, 23, 42, 0.08);
    --av-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
    --av-dark: #07101d;
    --av-dark-soft: #0f1a2d;
    --av-muted: #7e8796;
    --av-text: #0f172a;
}

* {
    font-family: var(--nc-font-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(116, 130, 170, 0.08), transparent 22%),
        linear-gradient(180deg, #eef2f7 0%, #e8edf4 100%);
    color: #111827;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    color: #111827;
}

.glass {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.glass-light {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.truncate-tip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-tip] {
    position: relative;
}

.num-col {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.content-wrap {
    max-width: 1580px;
    width: 100%;
    margin: 0 auto;
}

/* Sidebar */
.sidebar-item {
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    border-radius: 13px;
    margin: 3px 6px;
    color: #d6deeb;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    transform: translateX(2px);
}

.sidebar-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #f8fafc;
    font-weight: 600;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.18);
}

.sub-nav {
    transition: all 0.2s ease;
}

.sub-arrow,
.sidebar-arrow {
    transition: transform 0.2s ease;
}

.sidebar-section-label {
    margin: 14px 12px 8px;
    color: rgba(191, 201, 217, 0.48);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.sidebar-item-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.sidebar-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.045);
    color: #dce5f3;
    flex-shrink: 0;
}

.sidebar-subitem .sidebar-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-item:hover .sidebar-icon-wrap,
.sidebar-item.active .sidebar-icon-wrap,
.sidebar-subitem:hover .sidebar-icon-wrap,
.sidebar-subitem.active .sidebar-icon-wrap {
    background: rgba(255, 255, 255, 0.095);
    color: #ffffff;
}

.sidebar-icon-wrap svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-item-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: inherit;
    white-space: normal;
}

.sidebar-subitem {
    color: #b7c3d6;
    margin-left: 8px;
}

.sidebar-subitem .sidebar-item-label {
    font-size: 10px;
}

.sidebar-subnav {
    margin: 2px 0 8px;
}

.sidebar-arrow {
    margin-left: auto;
    color: rgba(191, 201, 217, 0.48);
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-arrow svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-arrow.open {
    transform: rotate(90deg);
}

.card-hover {
    transition: all 0.25s ease;
    border-radius: 12px;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-box {
    animation: modalIn 0.2s ease-out;
}

.modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.modal-body {
    padding: 24px 28px;
}

.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 18px;
    transition: all 0.15s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.field-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: block;
}

textarea,
input,
select {
    background: #fff !important;
    color: #111827;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

textarea:focus,
input:focus,
select:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06) !important;
    outline: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.emoji-btn {
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.emoji-btn:hover {
    transform: scale(1.2);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.mini-sidebar {
    width: 48px;
    background: #1e1e2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    flex-shrink: 0;
}

.mini-sb-top,
.mini-sb-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mini-sb-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8888a8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.mini-sb-btn:hover {
    background: #2d2d44;
    color: #c4c4e0;
}

.mini-sb-btn.active {
    background: #3b3b5c;
    color: #fff;
}

.mini-sb-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
}

.mini-sb-avatar:hover {
    transform: scale(1.1);
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
    font-weight: 500;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #4338ca;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-outline {
    border: 1px solid #e0e0e8;
    color: #374151;
    font-weight: 500;
    border-radius: 10px;
    background: #fff;
    transition: all 0.15s;
    cursor: pointer;
}

.btn-outline:hover {
    background: #f0f0ff;
    border-color: #c7c7e0;
}

.btn-outline:active {
    transform: scale(0.97);
}

.btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.15s;
    cursor: pointer;
}

.btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.btn-danger:active {
    transform: scale(0.97);
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 9999px;
}

.kpi-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s;
    border-left: 3px solid var(--kpi-accent, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kpi-icon-bg {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--kpi-bg, #f3f4f6);
}

.kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.kpi-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-sub {
    font-size: 10px;
    color: #9ca3af;
}

.badge-picker {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 50;
}

.badge-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
}

.badge-color-dot:hover {
    transform: scale(1.2);
}

.badge-color-dot.active {
    border-color: #000;
}

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(18, 31, 56, 0.035), transparent 34%),
        linear-gradient(180deg, #f3f1ee 0%, #efede9 100%);
    padding: 32px;
}

.login-panel {
    width: min(100%, 456px);
    padding: 62px 48px 44px;
    border-radius: 32px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 24px 56px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 44px;
}

.login-brand-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 26px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.055), transparent 34%),
        linear-gradient(180deg, #050913 0%, #09101c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 36px rgba(2, 6, 23, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.login-logo {
    width: 176px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.login-sub {
    font-size: 13px;
    color: #7f8898;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    margin-top: 0;
    padding-left: 0.42em;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 247, 244, 0.96) 100%);
    color: #101827;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 6px 14px rgba(15, 23, 42, 0.035);
}

.login-field::placeholder {
    color: #99a1ad;
}

.login-field:focus {
    outline: none;
    border-color: rgba(21, 33, 55, 0.26);
    box-shadow:
        0 0 0 4px rgba(21, 33, 55, 0.065),
        0 10px 22px rgba(15, 23, 42, 0.05);
    background: #fff;
}

.login-submit {
    width: 100%;
    border: none;
    border-radius: 18px;
    background: linear-gradient(180deg, #15233a 0%, #0f1a2d 100%);
    color: #f7f7f5;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.015em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 30px rgba(12, 20, 34, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #101a2d 0%, #0b1424 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 34px rgba(11, 20, 36, 0.24);
}

.login-submit:active {
    transform: translateY(0);
}

.login-error {
    min-height: 20px;
    font-size: 12px;
    color: #b75a5a;
    text-align: center;
    letter-spacing: 0.01em;
    margin-top: 2px;
}

.login-foot {
    font-size: 11px;
    color: #96a0af;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;
    padding-left: 0.28em;
    margin-top: 32px;
}

/* Dashboard Bento */
.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
}

.dash-header {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 14px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    align-items: stretch;
}

.dash-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.dash-toolbar-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-toolbar-meta {
    font-size: 12px;
    color: #8691a2;
    line-height: 1.5;
}

.dash-toolbar-controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-toolbar-field {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-toolbar-field-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #8d95a4;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.dash-toolbar-btn {
    flex: 0 0 auto;
    padding: 0 15px;
}

.dash-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px 20px;
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.98) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

.dash-hero-card::after {
    display: none;
}

.dash-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8f98a8;
}

.dash-eyebrow svg,
.dash-inline-icon svg,
.dash-control-icon svg,
.dash-list-icon svg,
.dash-btn-icon svg,
.dash-ghost-icon svg,
.dash-note svg,
.kpi-icon-bg svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-headline {
    max-width: 700px;
    font-size: 26px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin: 0;
}

.dash-subcopy {
    max-width: 600px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #7f8897;
}

.dash-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.dash-inline-stat {
    min-width: 126px;
    padding: 11px 12px;
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(247, 249, 252, 0.9);
}

.dash-inline-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #9ba4b3;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.dash-inline-stat strong {
    font-size: 13px;
    font-weight: 700;
    color: #162033;
    letter-spacing: -0.01em;
}

.dash-controls-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.04), transparent 26%),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.dash-control-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dash-control-group:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dash-control-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    font-weight: 700;
    color: #8d95a4;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.dash-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.dashboard-shell .model-selector,
.dashboard-shell .cmdk-trigger {
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #162033;
    padding: 0 15px;
}

.dashboard-shell .model-selector {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-shell .cmdk-trigger {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    font-size: 12px;
    color: #7b8596;
}

.dashboard-shell .cmdk-trigger:hover,
.dashboard-shell .model-selector:hover,
.dashboard-shell .model-selector:focus {
    border-color: rgba(22, 35, 59, 0.18);
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-shell .cmdk-trigger kbd {
    background: #edf0f5;
    color: #6b7280;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 10px;
}

.dash-actions {
    display: flex;
    gap: 10px;
}

.dash-primary-btn,
.dash-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-height: 42px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-primary-btn {
    background: linear-gradient(180deg, #16233b 0%, #0f1a2d 100%);
    color: #f8fafc;
    box-shadow: 0 18px 34px rgba(12, 22, 38, 0.18);
}

.dash-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(12, 22, 38, 0.22);
}

.dash-secondary-btn {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(247, 248, 250, 0.92);
    color: #334155;
}

.dash-secondary-btn:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(22, 35, 59, 0.12);
}

.dash-btn-icon,
.dash-ghost-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.dash-note {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid rgba(180, 138, 40, 0.18);
    background: linear-gradient(180deg, #fff8e8 0%, #fff4d7 100%);
    padding: 12px 16px;
    font-size: 11px;
    color: #8c6618;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    align-items: start;
}

.bento-kpi {
    grid-column: span 3;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
}

.kpi-row .kpi-card {
    min-width: 0;
}

.bento-chart {
    grid-column: span 9;
}

.bento-side-stack {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bento-times {
    min-height: 0;
}

.bento-reels {
    grid-column: span 12;
}

.bento-card {
    background: linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 24px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.045);
    border: 1px solid rgba(15, 23, 42, 0.055);
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
}

.dashboard-shell .kpi-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-left: none;
    padding: 10px 12px 11px;
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.035), transparent 34%),
        linear-gradient(180deg, rgba(251, 252, 254, 0.99) 0%, rgba(246, 248, 251, 0.98) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.038);
}

.dashboard-shell .kpi-card::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--kpi-accent, #e5e7eb), rgba(15, 23, 42, 0.02) 78%);
    opacity: 0.72;
}

.dashboard-shell .kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.065);
}

.dashboard-shell .kpi-icon-bg {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: var(--kpi-accent, #16233b);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    filter: saturate(0.78);
}

.dashboard-shell .kpi-label {
    font-size: 9px;
    font-weight: 700;
    color: #738094;
    letter-spacing: 0.18em;
}

.dashboard-shell .kpi-value {
    font-size: 19px;
    letter-spacing: -0.045em;
}

.dashboard-shell .kpi-sub {
    font-size: 10px;
    color: #8f98a8;
}

.dashboard-shell .kpi-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.dashboard-shell .kpi-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-shell .kpi-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
}

.kpi-trend-up {
    color: #0f9f6e;
    font-size: 9px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 7px;
    border-radius: 999px;
}

.kpi-trend-down {
    color: #d34848;
    font-size: 9px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(239, 68, 68, 0.12);
    padding: 2px 7px;
    border-radius: 999px;
}

.kpi-trend-neutral {
    color: #6b7280;
    font-size: 9px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(148, 163, 184, 0.14);
    padding: 2px 7px;
    border-radius: 999px;
}

.metric-toggle {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.metric-toggle.active {
    background: #111;
    color: #fff;
}

.metric-toggle:not(.active) {
    background: #f3f4f6;
    color: #6b7280;
}

.metric-toggle:not(.active):hover {
    background: #e5e7eb;
}

.dash-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.dash-panel-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.dash-panel-sub {
    margin-top: 5px;
    font-size: 12px;
    color: #8791a1;
}

.dash-segmented {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #f7f8fa;
}

.dash-segment-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #8d96a6;
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease;
}

.dash-segment-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.dashboard-shell .metric-toggle {
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.dashboard-shell .metric-toggle:not(.active) {
    background: #f5f6f8;
    color: #8b95a5;
    border-color: rgba(15, 23, 42, 0.04);
}

.dashboard-shell .metric-toggle:not(.active):hover {
    background: #eef1f5;
}

.dashboard-shell .bento-chart {
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.07), transparent 26%),
        linear-gradient(180deg, rgba(253, 254, 255, 0.98) 0%, rgba(245, 248, 251, 0.98) 100%);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.07);
    border-color: rgba(15, 23, 42, 0.07);
}

.dash-chart-stage {
    position: relative;
    height: 292px;
    margin-top: 2px;
    padding: 12px 14px 8px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(243, 246, 250, 0.9) 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.dash-chart-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.05), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 24%);
    pointer-events: none;
}

#dash-chart {
    position: relative;
    z-index: 1;
}

.dashboard-shell .bento-side-stack .bento-card,
.dashboard-shell .insight-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(250, 252, 254, 0.98) 0%, rgba(245, 247, 250, 0.98) 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.035);
}

.dashboard-shell .bento-side-stack .dash-panel-title,
.dashboard-shell .insight-card .dash-panel-title {
    font-size: 15px;
}

.dashboard-shell .bento-side-stack .dash-panel-sub,
.dashboard-shell .insight-card .dash-panel-sub {
    font-size: 11px;
    line-height: 1.45;
}

.brand-identity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfdff 0%, #f3f5f8 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.brand-mini-section {
    margin-bottom: 12px;
}

.brand-mini-section:last-child {
    margin-bottom: 0;
}

.brand-mini-label {
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.brand-mini-note {
    font-size: 11px;
    line-height: 1.55;
    color: #7f8897;
}

.best-times-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.best-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.best-time-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.best-time-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #97a0af;
}

.best-time-day {
    font-size: 13px;
    font-weight: 700;
    color: #172033;
}

.best-time-window {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.best-time-summary {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 11px;
    line-height: 1.55;
    color: #738094;
}

.insight-card {
    min-height: 248px;
    display: flex;
    flex-direction: column;
}

.reels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-spacing: 0;
}

.reels-table th {
    text-align: left;
    padding: 11px 14px;
    font-size: 10px;
    font-weight: 700;
    color: #8a94a5;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.reels-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    color: #5e6b80;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.reels-table td:first-child {
    color: #111827;
    font-weight: 500;
}

.reels-table tr:hover td {
    background: #fbfcfe;
}

.reels-table tr:last-child td {
    border-bottom: none;
}

.reels-table .num-col {
    text-align: right;
}

@media (max-width: 1480px) {
    .dash-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-toolbar-controls {
        justify-content: flex-start;
    }

    .dash-header {
        grid-template-columns: 1fr;
    }

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

    .bento-chart,
    .bento-side-stack,
    .bento-reels,
    .bento-calendar,
    .bento-insights,
    .bento-card[style*="grid-column:span 4;"] {
        grid-column: span 12;
    }
}

@media (max-width: 1040px) {
    .dash-toolbar-field {
        min-width: 100%;
    }

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

    .dash-control-row {
        grid-template-columns: 1fr;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.trigger-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #f5f6f8;
    color: #445066;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
    display: inline-block;
    margin: 2px;
}

/* Cmd+K */
.cmdk-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.cmdk-box {
    background: #fff;
    border-radius: 16px;
    width: 560px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.cmdk-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: none;
    outline: none;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Inter', sans-serif;
}

.cmdk-result {
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    border-radius: 8px;
    margin: 2px 8px;
    gap: 10px;
    transition: background 0.1s;
}

.cmdk-result:hover,
.cmdk-result.active {
    background: #f3f4f6;
}

.cmdk-result .cmdk-icon {
    font-size: 15px;
    width: 28px;
    text-align: center;
}

.cmdk-result .cmdk-label {
    font-weight: 500;
}

.cmdk-result .cmdk-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-left: auto;
}

.cmdk-section {
    padding: 8px 20px 4px;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Dark Mode */
.dark body,
.dark {
    background: #0f0f0f !important;
    color: #e5e7eb !important;
}

.dark .glass,
.dark .glass-light {
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

.dark .bento-card,
.dark .kpi-card {
    background: #1a1a1a !important;
    border-color: transparent !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.dark .kpi-card {
    border-left: 3px solid var(--kpi-accent, #333) !important;
}

.dark .bento-card:hover,
.dark .kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.dark h2,
.dark h3,
.dark .font-bold,
.dark .font-semibold,
.dark .font-medium {
    color: #f3f4f6 !important;
}

.dark .text-gray-400,
.dark .text-gray-500 {
    color: #6b7280 !important;
}

.dark .text-gray-300 {
    color: #4b5563 !important;
}

.dark .text-gray-600,
.dark .text-gray-700,
.dark .text-gray-900 {
    color: #e5e7eb !important;
}

.dark .text-black {
    color: #f3f4f6 !important;
}

.dark .bg-gray-50,
.dark .bg-gray-100 {
    background: #252525 !important;
}

.dark .bg-white {
    background: #1a1a1a !important;
}

.dark .border-gray-100,
.dark .border-gray-200 {
    border-color: #2a2a2a !important;
}

.dark .dash-header {
    border-color: #2a2a2a !important;
}

.dark .sidebar-item:hover {
    background: #1f1f1f !important;
    color: #fff !important;
}

.dark .sidebar-item.active {
    background: #1f1f1f !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 #fff !important;
}

.dark .modal-header {
    border-color: #2a2a2a !important;
}

.dark .modal-footer {
    background: #141414 !important;
    border-color: #2a2a2a !important;
}

.dark .modal-box {
    background: #1a1a1a !important;
}

.dark .reels-table th {
    background: #1a1a1a !important;
    color: #6b7280 !important;
    border-color: #2a2a2a !important;
}

.dark .reels-table td {
    border-color: #1f1f1f !important;
    color: #9ca3af !important;
}

.dark .reels-table tr:hover td {
    background: #1f1f1f !important;
}

.dark textarea,
.dark input,
.dark select {
    background: #1a1a1a !important;
    color: #e5e7eb !important;
    border-color: #333 !important;
}

.dark .btn-primary {
    background: #fff !important;
    color: #000 !important;
}

.dark .btn-outline {
    border-color: #333 !important;
    color: #9ca3af !important;
}

.dark .btn-outline:hover {
    background: #1f1f1f !important;
}

.dark .model-selector {
    background: #1a1a1a !important;
    color: #e5e7eb !important;
    border-color: #333 !important;
}

.dark .cmdk-trigger {
    background: #1a1a1a !important;
    border-color: #333 !important;
}

.dark .metric-toggle:not(.active) {
    background: #252525 !important;
    color: #6b7280 !important;
}

.dark .metric-toggle.active {
    background: #fff !important;
    color: #000 !important;
}

.dark .trigger-pill {
    background: #252525 !important;
    color: #9ca3af !important;
}

.dark #app-sidebar {
    background: #0f0f0f !important;
    border-color: #1f1f1f !important;
}

.dark .kpi-trend-up {
    background: #064e3b !important;
}

.dark .kpi-trend-down {
    background: #7f1d1d !important;
}

.dark .kpi-trend-neutral {
    background: #252525 !important;
}

/* Dark mode toggle */
.dm-toggle {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.dm-toggle.on {
    background: #111;
    border-color: #333;
}

.dm-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.dm-toggle.on::after {
    transform: translateX(16px);
}

/* Posting heatmap */
.heatmap-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #f3f4f6;
}

.dark .heatmap-cell {
    background: #252525;
}

.heatmap-l1 {
    background: #d1fae5;
}

.dark .heatmap-l1 {
    background: #064e3b;
}

.heatmap-l2 {
    background: #6ee7b7;
}

.dark .heatmap-l2 {
    background: #047857;
}

.heatmap-l3 {
    background: #10b981;
}

.dark .heatmap-l3 {
    background: #10b981;
}

.heatmap-l4 {
    background: #047857;
}

.dark .heatmap-l4 {
    background: #34d399;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}

.toast-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.toast-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.toast-warn {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dark .toast-info {
    background: #1e3a5f;
    color: #93c5fd;
    border-color: #1e40af;
}

.dark .toast-success {
    background: #14532d;
    color: #86efac;
    border-color: #166534;
}

.dark .toast-warn {
    background: #78350f;
    color: #fde68a;
    border-color: #92400e;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sparkline */
.sparkline {
    display: inline-block;
    vertical-align: middle;
}

/* Bento additions */
.bento-calendar {
    grid-column: span 4;
}

.bento-insights {
    grid-column: span 4;
}

.acct-table {
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.acct-table th {
    text-align: left;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--nc-text-muted);
    border-bottom: 1px solid var(--nc-border);
    border-right: 1px solid var(--nc-border);
    position: sticky;
    top: 0;
    background: var(--nc-header-bg);
    z-index: 2;
    white-space: nowrap;
    height: var(--nc-row-height);
    letter-spacing: 0.01em;
    cursor: pointer;
    user-select: none;
}

.acct-table th:last-child {
    border-right: none;
}

.acct-table th .col-icon {
    display: inline-block;
    width: 14px;
    text-align: center;
    margin-right: 4px;
    font-size: 10px;
    opacity: 0.5;
    vertical-align: middle;
    color: #7c7c9a;
}

.acct-table td {
    padding: 0 12px;
    border-bottom: 1px solid var(--nc-border);
    border-right: 1px solid var(--nc-border);
    font-size: 12px;
    height: var(--nc-row-height);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.acct-table td:last-child {
    border-right: none;
}

.acct-table td:first-child {
    border-left: 1px solid var(--nc-border);
}

.acct-table td.cell-active {
    box-shadow: inset 0 0 0 2px var(--nc-primary) !important;
    z-index: 10;
}

.inline-input,
.inline-textarea {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--nc-primary) !important;
    padding: 0 10px;
    font-size: 12px;
    background: #fff;
    z-index: 20;
    border-radius: 0;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-bg {
    0% {
        background: #fff;
    }

    50% {
        background: #f3f4f6;
    }

    100% {
        background: #fff;
    }
}

.pulse-loading {
    animation: pulse-bg 1.5s infinite ease-in-out;
}

.inline-textarea {
    height: auto;
    min-height: 80px;
    padding: 8px 10px;
    white-space: pre-wrap;
}

.inline-select-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--nc-border);
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    padding: 4px;
}

.inline-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
    transition: background 0.1s;
}

.inline-select-option:hover {
    background: #f3f4f6;
}

.inline-select-new {
    margin-top: 4px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--nc-primary);
    cursor: pointer;
    border-top: 1px solid #f3f4f6;
    font-weight: 500;
}

.acct-table tr {
    background: #fff;
    transition: background 0.05s;
}

.acct-table tr:hover {
    background: #f5f5f5;
}

.acct-table tr.selected {
    background: #e6f7ff;
}

.acct-table td:first-child {
    color: #111827;
    font-weight: 500;
}

.acct-table th,
.acct-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    cursor: col-resize;
    background: transparent;
    z-index: 2;
}

.col-resize-handle:hover,
.col-resize-handle.resizing {
    background: #7c3aed;
}

.acct-table tbody tr:nth-child(even) td {
    background: #fff;
}

.acct-table tbody tr:hover td {
    background: #f5f5ff !important;
}

.acct-table .empty-row td {
    border-bottom: 1px solid #dde0e4;
    border-right: 1px solid #dde0e4;
    height: 40px;
    cursor: default;
}

/* Active cell highlight (Airtable blue border) */
.acct-table td.cell-active {
    box-shadow: inset 0 0 0 2px #2563eb;
    background: #fff !important;
}

/* Status color bar on left edge */
.acct-row .status-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0;
}

.acct-row {
    position: relative;
}

.status-bar-green {
    background: #10b981;
}

.status-bar-red {
    background: #ef4444;
}

.status-bar-orange {
    background: #f59e0b;
}

.status-bar-gray {
    background: #d1d5db;
}

.status-bar-yellow {
    background: #eab308;
}

.status-bar-blue {
    background: #3b82f6;
}

/* Primary column (first data column) expand icon */
.primary-cell {
    position: relative;
}

.primary-cell .expand-icon {
    display: none;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.primary-cell:hover .expand-icon {
    display: inline-flex;
}

.primary-cell .expand-icon:hover {
    background: #7c3aed;
    color: #fff;
}

/* Add row button at bottom of table */
.add-row-row td {
    border-bottom: 1px solid var(--nc-border);
    border-right: 1px solid var(--nc-border);
    height: 32px;
    cursor: pointer;
    color: var(--nc-text-muted);
    font-size: 13px;
    transition: background 0.1s;
    background: #fff;
}

.add-row-row:hover td {
    background: #f5f5f5 !important;
    color: var(--nc-text-main);
}

.add-row-row .num-add {
    text-align: center;
    font-size: 14px;
    color: var(--nc-primary);
    font-weight: bold;
}

.acct-footer {
    height: 28px;
    background: #fff;
    border-top: 1px solid var(--nc-border);
    display: flex;
    align-items: center;
    /* px-4: ; */
    padding: 0 12px;
    font-size: 11px;
    color: var(--nc-text-muted);
    gap: 16px;
    flex-shrink: 0;
}

.acct-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-row-btn td {
    border-bottom: 1px solid #dde0e4;
    border-right: 1px solid #dde0e4;
    height: 40px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 12px;
    transition: background 0.1s;
}

.add-row-btn:hover td {
    background: #f9fafb;
}

.add-row-btn td.add-row-label {
    color: #9ca3af;
    padding-left: 12px;
}

.add-row-btn:hover td.add-row-label {
    color: #6b7280;
}

/* Column header dropdown trigger */
.col-header-menu {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 3px;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9ca3af;
    cursor: pointer;
}

.acct-table th:hover .col-header-menu {
    display: inline-flex;
}

.col-header-menu:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Column sort dropdown */
.col-sort-dropdown {
    position: fixed;
    z-index: 70;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
    min-width: 180px;
}

.col-sort-option {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
    color: #374151;
}

.col-sort-option:hover {
    background: #f5f3ff;
    color: #5b21b6;
}

/* Row context menu (right-click) */
.row-context-menu {
    position: fixed;
    z-index: 80;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    padding: 6px;
    min-width: 210px;
    animation: fadeIn 0.1s ease;
}

.ctx-option {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.1s;
    color: #374151;
}

.ctx-option:hover {
    background: #f5f3ff;
}

.ctx-option .ctx-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.ctx-divider {
    border-top: 1px solid #f3f4f6;
    margin: 4px 0;
}

.ctx-option.ctx-danger {
    color: #dc2626;
}

.ctx-option.ctx-danger:hover {
    background: #fef2f2;
}

/* Row height classes */
.acct-table.row-compact td {
    height: 32px;
    padding: 4px 12px;
    font-size: 12px;
}

.acct-table.row-compact .empty-row td {
    height: 32px;
}

.acct-table.row-compact .add-row-btn td {
    height: 32px;
}

.acct-table.row-tall td {
    height: 52px;
    padding: 12px 12px;
}

.acct-table.row-tall .empty-row td {
    height: 52px;
}

.acct-table.row-tall .add-row-btn td {
    height: 52px;
}

/* Row height toggle button */
.row-height-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px;
}

.row-height-toggle button {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
}

.row-height-toggle button.active {
    background: #fff;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.row-height-toggle button:hover:not(.active) {
    color: #6b7280;
}

/* Search highlight */
.search-highlight {
    background: #fef08a;
    color: #111827;
    border-radius: 2px;
    padding: 0 1px;
}

/* Toolbar bar */
.acct-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 1px solid var(--nc-border);
    height: 48px;
    flex-shrink: 0;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--nc-text-muted);
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.1s;
    font-weight: 500;
}

.toolbar-btn:hover {
    background: #f3f4f6;
    color: var(--nc-text-main);
}

.toolbar-btn.active {
    color: var(--nc-primary);
    background: #e6f7ff;
}

.toolbar-btn .tb-icon {
    font-size: 13px;
    opacity: 0.7;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--nc-border);
    margin: 0 4px;
}

.toolbar-popup {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--nc-border);
    min-width: 240px;
    z-index: 1000;
    padding: 8px;
    animation: popup-fade 0.15s ease-out;
}

@keyframes popup-fade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toolbar-popup h4 {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px 0;
}

.toolbar-popup .popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    transition: background 0.1s;
}

.toolbar-popup .popup-item:hover {
    background: #f3f4f6;
}

.toolbar-popup .popup-item.selected {
    background: #ede9fe;
    color: #7c3aed;
}

.toolbar-popup .popup-toggle {
    width: 32px;
    height: 18px;
    border-radius: 9px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toolbar-popup .popup-toggle.on {
    background: #7c3aed;
}

.toolbar-popup .popup-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.toolbar-popup .popup-toggle.on::after {
    transform: translateX(14px);
}

.toolbar-popup select,
.toolbar-popup input[type="text"] {
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    outline: none;
    width: 100%;
}

.toolbar-popup .popup-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.toolbar-popup .popup-btn {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    transition: all 0.1s;
}

.toolbar-popup .popup-btn:hover {
    background: #f3f4f6;
}

.toolbar-popup .popup-btn.primary {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.toolbar-popup .popup-btn.primary:hover {
    background: #6d28d9;
}

.toolbar-popup .popup-btn.danger {
    color: #ef4444;
}

.toolbar-popup .color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.1s;
}

.toolbar-popup .color-swatch:hover,
.toolbar-popup .color-swatch.active {
    border-color: #374151;
}

/* Sum/Calc footer row */
.acct-table tfoot td {
    padding: 6px 12px;
    font-size: 11px;
    color: #9ca3af;
    border-top: 2px solid #e5e7eb;
    background: #fafafa;
    height: 32px;
    font-variant-numeric: tabular-nums;
}

.acct-table tfoot td:hover {
    color: #6b7280;
    cursor: pointer;
}

.calc-value {
    font-weight: 600;
    color: #6b7280;
}

/* Footer add button */
.footer-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    color: #9ca3af;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
}

.footer-add-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.acct-table td.num {
    color: #9ca3af;
    font-size: 11px;
    width: 40px;
    text-align: center;
}

.acct-table a.link-cell {
    color: #4f46e5 !important;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}

.acct-table a.link-cell:hover {
    color: #4338ca !important;
}

.acct-tab {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    color: #6b7280;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}

.acct-tab .tab-icon-wrap {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.acct-tab:hover {
    background: #f0f0ff;
    color: #4338ca;
}

.acct-tab.active {
    background: #fff;
    color: #4f46e5;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
    border-bottom-color: #4f46e5;
}

.acct-footer {
    padding: 6px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f5f5fa;
    font-size: 11px;
    color: #7c7c9a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.acct-table tbody tr:hover .row-actions {
    opacity: 1 !important;
}

.editable-cell {
    cursor: cell;
}

.editable-cell:hover {
    background: #f5f3ff !important;
}

.editable-cell.editing {
    padding: 2px 4px !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 2px #7c3aed;
}

.inline-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 12.5px;
    padding: 3px 4px;
    background: transparent;
    font-family: inherit;
    color: #111827;
}

.inline-textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 12px;
    padding: 3px 4px;
    background: transparent;
    font-family: inherit;
    color: #111827;
    resize: none;
    min-height: 60px;
}

.inline-select-dropdown {
    position: absolute;
    z-index: 60;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
    min-width: 160px;
    max-height: 240px;
    overflow-y: auto;
}

.inline-select-option {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
}

.inline-select-option:hover {
    background: #f5f3ff;
}

.inline-select-new {
    padding: 6px 10px;
    font-size: 11px;
    color: #7c3aed;
    cursor: pointer;
    border-top: 1px solid #f3f4f6;
    margin-top: 2px;
}

.color-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    margin: 1px 2px;
}

.color-tag.green {
    background: #d1fae5;
    color: #065f46;
}

.color-tag.orange {
    background: #ffedd5;
    color: #9a3412;
}

.color-tag.blue {
    background: #dbeafe;
    color: #1e40af;
}

.color-tag.purple {
    background: #ede9fe;
    color: #5b21b6;
}

.color-tag.pink {
    background: #fce7f3;
    color: #9d174d;
}

.color-tag.red {
    background: #fee2e2;
    color: #991b1b;
}

.color-tag.yellow {
    background: #fef3c7;
    color: #92400e;
}

.color-tag.teal {
    background: #ccfbf1;
    color: #115e59;
}

.color-tag.gray {
    background: #f3f4f6;
    color: #4b5563;
}

.color-tag.cyan {
    background: #cffafe;
    color: #155e75;
}

.views-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 8px 0;
    background: #fff;
}

.views-sidebar-top {
    padding: 4px 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.views-create-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.12s;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}

.views-create-btn:hover {
    background: #f3f4f6;
}

.views-create-btn .create-icon {
    font-size: 14px;
    color: #9ca3af;
}

.views-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.12s;
}

.views-search:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.views-search-icon {
    font-size: 12px;
}

.views-search-settings {
    margin-left: auto;
    font-size: 13px;
    color: #d1d5db;
}

.views-search-settings:hover {
    color: #9ca3af;
}

.view-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 13px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.12s;
    gap: 8px;
    border-radius: 20px;
    margin: 1px 8px;
}

.view-item:hover {
    background: #f3f4f6;
}

.view-item.active {
    background: #d6e4f0;
    color: #1f2937;
    font-weight: 500;
}

.view-item.active .view-icon {
    opacity: 0.7;
}

.view-item .view-icon {
    font-size: 13px;
    opacity: 0.45;
    color: #6b7280;
    flex-shrink: 0;
}

.view-item .view-delete {
    opacity: 0;
    font-size: 10px;
    margin-left: auto;
    padding: 2px 4px;
    border-radius: 4px;
}

.view-item:hover .view-delete {
    opacity: 0.5;
}

.view-item .view-delete:hover {
    opacity: 1;
    background: #fee2e2;
    color: #991b1b;
}

.acct-tab[draggable="true"] {
    cursor: grab;
    user-select: none;
}

.acct-tab[draggable="true"]:active {
    cursor: grabbing;
}

.acct-tab.drag-over {
    border-left: 2px solid #000;
}

.acct-table th[draggable="true"] {
    cursor: grab;
    user-select: none;
}

.acct-table th[draggable="true"]:active {
    cursor: grabbing;
}

.acct-table th.col-drag-over {
    background: #e5e7eb !important;
    border-left: 2px solid #000;
}

.acct-table th.cb-col,
.acct-table td.cb-col {
    width: 36px;
    padding: 0 8px;
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f8f8fa;
}

.acct-table td.cb-col {
    background: #fff;
    z-index: 1;
}

.acct-table .empty-row td.cb-col {
    background: #fff;
}

.acct-table tbody tr:nth-child(even) td.cb-col {
    background: #fafbfc;
}

.acct-table tbody tr:hover td.cb-col {
    background: #f0eeff !important;
}

.acct-table tr.row-selected td {
    background: #ede9fe !important;
}

.acct-table tr.row-selected td.cb-col {
    background: #ede9fe !important;
}

.bulk-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 100;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bulk-bar .bulk-count {
    font-size: 13px;
    font-weight: 600;
}

.bulk-bar .bulk-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.bulk-bar .bulk-btn.danger {
    background: #ef4444;
    color: #fff;
}

.bulk-bar .bulk-btn.danger:hover {
    background: #dc2626;
}

.bulk-bar .bulk-btn.action {
    background: #374151;
    color: #fff;
}

.bulk-bar .bulk-btn.action:hover {
    background: #4b5563;
}

.bulk-bar .bulk-btn.cancel {
    background: transparent;
    color: #9ca3af;
}

.bulk-bar .bulk-btn.cancel:hover {
    color: #fff;
}

.csv-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.csv-drop-zone:hover,
.csv-drop-zone.drag-over {
    border-color: #000;
    background: #f9fafb;
}

.col-map-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px;
}

.workspace-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #f5f3f0 0%, #f2f0ec 100%);
}

.workspace-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workspace-brand-logo {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(8%) sepia(19%) saturate(1641%) hue-rotate(184deg) brightness(95%) contrast(96%);
}

.workspace-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.workspace-brand-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.workspace-brandsub {
    color: #9aa3b2;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.workspace-topbar-btn {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.74);
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.workspace-topbar-btn:hover {
    border-color: rgba(22, 35, 59, 0.14);
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
}

.workspace-topbar-btn-muted {
    color: #8f98a8;
    background: transparent;
    border-color: transparent;
    padding-inline: 10px;
}

.workspace-topbar-btn-muted:hover {
    color: #111827;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.06);
}

.workspace-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 32px 56px;
}

.workspace-grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.workspace-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #16233b 0%, #0f1a2d 100%);
    color: #f8fafc;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.workspace-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
    background: linear-gradient(180deg, #111c31 0%, #0b1424 100%);
}

.workspace-primary-action svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.sidebar-brand-logo {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.inline-brand-logo {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

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

.workspace-card {
    min-height: 222px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.workspace-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    border-color: rgba(22, 35, 59, 0.14);
}

.workspace-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.workspace-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--workspace-icon-bg, rgba(15, 23, 42, 0.06));
    color: var(--workspace-icon-color, #16233b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.workspace-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.workspace-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.workspace-card-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #768195;
    margin-top: 8px;
    max-width: 26ch;
}

.workspace-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.workspace-card-label {
    font-size: 11px;
    font-weight: 700;
    color: #99a3b3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.workspace-card-arrow {
    color: #8d97a8;
    font-size: 16px;
}

.workspace-add-card {
    border-style: dashed;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 248, 246, 0.96) 100%);
}

.workspace-add-card .workspace-icon {
    background: rgba(22, 35, 59, 0.08);
    color: #16233b;
}
