:root {
    --bg-primary: #070913;
    --bg-secondary: rgba(15, 20, 35, 0.65);
    --bg-tertiary: rgba(25, 32, 54, 0.5);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-cyan: #06b6d4;
    --accent-cyan-rgb: 6, 182, 212;
    --accent-violet: #8b5cf6;
    --accent-violet-rgb: 139, 92, 246;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

body {
    background: radial-gradient(circle at 50% 0%, #151833 0%, #070913 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 侧边导航栏 */
.sidebar {
    width: 260px;
    background-color: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 32px 20px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-area:hover .logo-icon {
    transform: scale(1.08) rotate(10deg);
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(120deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    user-select: none;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.12) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
    font-weight: 600;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
}

/* 主内容区域 */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 32px;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
    display: flex;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.view-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-subtitle {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 数据概览卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(15, 20, 35, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.stat-card.cyan::after {
    background: var(--accent-cyan);
}

.stat-card.violet::after {
    background: var(--accent-violet);
}

.stat-card.danger::after {
    background: var(--color-danger);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 50%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.cyan .stat-value {
    background: linear-gradient(135deg, var(--accent-cyan), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.violet .stat-value {
    background: linear-gradient(135deg, var(--accent-violet), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.danger .stat-value {
    background: linear-gradient(135deg, var(--color-danger), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 动作按钮栏 */
.action-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.btn:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #ffffff;
    color: #070913;
    border: 1px solid transparent;
    box-shadow: none;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e2e8f0;
    color: #000000;
    box-shadow: none;
}

.btn-success {
    background-color: #008264;
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: none;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #006b52;
    box-shadow: none;
}

.btn-danger {
    background-color: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: none;
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    box-shadow: none;
}

/* 组织及席位信息卡片列表 */
.orgs-list-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.org-card {
    background: rgba(15, 20, 35, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.org-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.org-card-header {
    background-color: rgba(255, 255, 255, 0.01);
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.org-info-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.org-name-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.org-ref-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 6px;
}

.org-owner-account {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.org-owner-account strong {
    color: var(--accent-cyan);
}

.org-products-container {
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.product-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

.product-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-code-tag {
    font-size: 11px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.seat-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.seat-details .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* 自定义进度条 */
.progress-container {
    position: relative;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.progress-fill.success {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.progress-fill.unlimited {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    animation: flowStripe 2s linear infinite;
    background-size: 40px 40px;
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
}

@keyframes flowStripe {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 0;
    }
}

.unlimited-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* 账号列表 Table */
.table-card {
    background: rgba(15, 20, 35, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(255, 255, 255, 0.01);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.015);
}

.badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}

.badge.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 输入组件 & 弹窗 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(3, 5, 10, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    background: #0f1322;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

textarea,
input[type="text"],
input[type="email"],
input[type="number"],
select {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: var(--accent-cyan);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

/* 覆盖 Chrome 等浏览器的自动填充白色背景 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0f1322 inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Toggle 开关 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.config-row:last-child {
    border-bottom: none;
}

.settings-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    max-width: 920px;
}

.settings-section-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    align-self: start;
}

.settings-section-nav button {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    padding: 11px 12px;
    border-radius: 8px;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.settings-section-nav button.active {
    background: rgba(79, 70, 229, .10);
    color: var(--primary-color);
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.settings-panel-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 14px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-wrapper input {
    width: 100%;
    padding-left: 40px;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.02);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Toast 通知 */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast {
    background-color: #0f1322;
    border-left: 4px solid var(--accent-cyan);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 14px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--color-success);
}

.toast.danger {
    border-left-color: var(--color-danger);
}

/* Apple x Tencent Cloud inspired refresh */
:root {
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8fafc;
    --border-color: #e5eaf3;
    --border-hover: #cfd8e6;
    --text-primary: #111827;
    --text-secondary: #667085;
    --accent-cyan: #1769ff;
    --accent-cyan-rgb: 23, 105, 255;
    --accent-violet: #7c3aed;
    --accent-violet-rgb: 124, 58, 237;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.08);
    --shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 18px 44px rgba(16, 24, 40, 0.12);
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.16);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.28);
}

body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 251, 0.98)),
        radial-gradient(circle at 18% -10%, rgba(23, 105, 255, 0.12), transparent 32%),
        radial-gradient(circle at 92% 6%, rgba(22, 163, 74, 0.08), transparent 28%);
    color: var(--text-primary);
    letter-spacing: 0;
}

.sidebar {
    width: 248px;
    background: rgba(255, 255, 255, 0.82);
    border-right: 1px solid rgba(229, 234, 243, 0.9);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.72) inset, 12px 0 36px rgba(16, 24, 40, 0.05);
    padding: 28px 16px;
}

.logo-area {
    margin-bottom: 32px;
    padding: 0 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1769ff, #00a4ff);
    box-shadow: 0 10px 22px rgba(23, 105, 255, 0.22);
}

.logo-area:hover .logo-icon {
    transform: translateY(-1px);
}

.logo-title {
    color: #111827;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 15px;
    letter-spacing: 0;
}

.nav-menu {
    gap: 6px;
}

.nav-item {
    border-radius: 8px;
    color: #475467;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 600;
}

.nav-item:hover {
    background: #f2f6ff;
    color: #175cd3;
    transform: none;
}

.nav-item.active {
    background: #eaf1ff;
    border-color: #c7d7fe;
    color: #175cd3;
    box-shadow: none;
}

.sidebar-footer {
    color: #98a2b3;
    border-top-color: #eef2f7;
}

.main-content {
    margin-left: 248px;
    padding: 32px 40px 48px;
    gap: 24px;
}

.tab-content {
    gap: 24px;
}

.view-header {
    gap: 16px;
    padding-bottom: 2px;
}

.view-title {
    color: #101828;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
}

.view-subtitle {
    color: #667085;
    font-size: 14px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.stat-card,
.org-card,
.table-card,
.modal,
.product-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.stat-card {
    border-radius: 8px;
    padding: 20px;
    gap: 10px;
}

.stat-card::after {
    height: 2px;
    background: #d0d5dd;
}

.stat-card:hover,
.org-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.stat-label {
    color: #667085;
    font-size: 13px;
}

.stat-value,
.stat-card.cyan .stat-value,
.stat-card.violet .stat-value,
.stat-card.danger .stat-value {
    color: #101828;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 34px;
    font-weight: 700;
}

.stat-card.cyan .stat-value {
    color: #175cd3;
}

.stat-card.violet .stat-value {
    color: #6941c6;
}

.stat-card.danger .stat-value {
    color: #b42318;
}

.action-bar {
    gap: 10px;
}

.btn {
    min-height: 34px;
    border-radius: 6px;
    border-color: #d0d5dd;
    background: #ffffff;
    color: #344054;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn:hover {
    background: #f9fafb;
    border-color: #98a2b3;
    transform: none;
}

.btn-primary {
    background: #1769ff;
    color: #ffffff;
    border-color: #1769ff;
    box-shadow: 0 6px 14px rgba(23, 105, 255, 0.18);
}

.btn-primary:hover {
    background: #1457d9;
    color: #ffffff;
    border-color: #1457d9;
}

.btn-success {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #fff;
    color: #b42318;
    border-color: #fecdca;
}

.btn-danger:hover {
    background: #fff5f5;
    border-color: #fda29b;
}

.orgs-list-container {
    gap: 18px;
}

.org-card {
    border-radius: 8px;
    overflow: hidden;
}

.org-card-header {
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border-bottom-color: #eef2f7;
    padding: 18px 22px;
}

.org-name-title {
    color: #101828;
    font-size: 17px;
}

.org-ref-id,
.product-code-tag {
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #eaecf0;
    border-radius: 5px;
}

.org-owner-account {
    color: #667085;
}

.org-owner-account strong {
    color: #175cd3;
}

.org-products-container {
    padding: 20px 22px 22px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.product-box {
    border-radius: 8px;
    padding: 16px;
    box-shadow: none;
}

.product-box:hover {
    background: #fbfdff;
    border-color: #cfd8e6;
    transform: none;
}

.product-name {
    color: #182230;
}

.seat-details {
    color: #667085;
}

.seat-details .value {
    color: #101828;
}

.progress-container {
    height: 8px;
    background: #edf1f7;
}

.progress-fill.success {
    background: #12b76a;
}

.progress-fill.warning {
    background: #f79009;
}

.progress-fill.danger {
    background: #f04438;
}

.progress-fill.unlimited {
    background: linear-gradient(90deg, #1769ff, #00a4ff);
}

.unlimited-badge {
    background: #eaf1ff;
    color: #175cd3;
    border-color: #c7d7fe;
    border-radius: 5px;
}

.table-card {
    border-radius: 8px;
}

table {
    color: #344054;
}

th,
td {
    padding: 14px 18px;
    border-bottom-color: #eef2f7;
}

th {
    background: #f8fafc;
    color: #667085;
    font-weight: 700;
}

tr:hover td {
    background: #f9fbff;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.badge.success {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.badge.danger {
    background: #fef3f2;
    color: #b42318;
    border-color: #fecdca;
}

.badge.pending {
    background: #fffaeb;
    color: #b54708;
    border-color: #fedf89;
}

.modal-backdrop {
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
}

.modal {
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
}

.modal-header {
    background: #ffffff;
    border-bottom-color: #eef2f7;
    padding: 18px 22px;
}

.modal-title {
    color: #101828;
    font-size: 17px;
}

.modal-close {
    color: #667085;
}

.modal-close:hover {
    color: #101828;
}

.modal-body {
    padding: 22px;
}

.form-group label {
    color: #344054;
    font-weight: 600;
}

textarea,
input[type="text"],
input[type="email"],
input[type="number"],
select {
    background: #ffffff;
    border-color: #d0d5dd;
    color: #101828;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

textarea::placeholder,
input::placeholder {
    color: #98a2b3;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #1769ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #101828 !important;
}

.modal-footer {
    background: #f8fafc;
    border-top-color: #eef2f7;
    padding: 16px 22px;
}

.slider {
    background: #e4e7ec;
    border-color: #d0d5dd;
}

.slider:before {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
}

input:checked+.slider {
    background: #1769ff;
    border-color: #1769ff;
}

.config-row {
    border-bottom-color: #eef2f7;
}

.search-wrapper input {
    background: #ffffff;
    padding-left: 38px;
}

.search-icon {
    color: #98a2b3;
}

.toast {
    background: #ffffff;
    color: #101828;
    border-top-color: #eaecf0;
    border-right-color: #eaecf0;
    border-bottom-color: #eaecf0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    body {
        display: block;
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
    }

    .nav-item {
        white-space: nowrap;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 22px 16px 36px;
    }

    .view-header {
        align-items: flex-start;
    }

    .search-wrapper {
        max-width: none;
        width: 100%;
    }

    .action-bar {
        width: 100%;
    }

    .btn {
        justify-content: center;
    }

    .org-products-container {
        grid-template-columns: 1fr;
    }
}

/* Refined console skin: quieter, denser, more premium */
:root {
    --page-bg: #f3f5f9;
    --panel: #ffffff;
    --panel-muted: #f7f9fc;
    --line: #e6ebf2;
    --line-strong: #d8e0ea;
    --ink: #0b1220;
    --muted: #667085;
    --blue: #1d66ff;
    --blue-dark: #1554d1;
    --blue-soft: #eef4ff;
    --green: #12a66a;
    --red: #d92d20;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 20px rgba(16, 24, 40, .045);
}

body {
    background:
        linear-gradient(180deg, #f8faff 0%, var(--page-bg) 240px),
        var(--page-bg);
    color: var(--ink);
}

.sidebar {
    width: 232px;
    background: #fbfcff;
    border-right: 1px solid var(--line);
    box-shadow: none;
    padding: 24px 16px;
}

.logo-area {
    gap: 10px;
    margin-bottom: 28px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #1d66ff;
    box-shadow: 0 8px 18px rgba(29, 102, 255, .22);
    font-size: 17px;
}

.logo-title {
    font-size: 14px;
    font-weight: 700;
}

.nav-item {
    height: 42px;
    padding: 0 12px;
    border-radius: 7px;
    color: #465468;
    border: 1px solid transparent;
}

.nav-item span {
    width: 18px;
    text-align: center;
    opacity: .9;
}

.nav-item:hover {
    background: #f4f7fb;
    color: #1d2939;
}

.nav-item.active {
    background: #eef4ff;
    border-color: #cddcff;
    color: var(--blue);
}

.main-content {
    margin-left: 232px;
    padding: 34px 40px 48px;
    max-width: 1720px;
}

.view-header {
    min-height: 52px;
    margin-bottom: 4px;
}

.view-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.view-subtitle {
    margin-top: 7px;
    color: #536176;
}

.search-wrapper {
    width: 240px;
    max-width: 280px;
}

.search-wrapper input {
    height: 38px;
    border-radius: 7px;
    border-color: #d8e0ea;
    box-shadow: none;
}

.btn {
    height: 38px;
    border-radius: 7px;
    box-shadow: none;
    padding: 0 14px;
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 6px 14px rgba(29, 102, 255, .16);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    min-height: 104px;
    border-radius: 9px;
    padding: 18px 20px;
    background: var(--panel);
    box-shadow: var(--shadow-card);
    border-color: var(--line);
}

.stat-card::after {
    display: none;
}

.stat-card::before {
    content: "";
    width: 32px;
    height: 3px;
    border-radius: 99px;
    background: #cfd8e6;
    position: absolute;
    left: 20px;
    top: 14px;
}

.stat-card.cyan::before {
    background: var(--blue);
}

.stat-card.violet::before {
    background: #7a5af8;
}

.stat-card.danger::before {
    background: var(--red);
}

.stat-label {
    margin-top: 14px;
    color: #667085;
    font-weight: 600;
}

.stat-value,
.stat-card.cyan .stat-value,
.stat-card.violet .stat-value,
.stat-card.danger .stat-value {
    font-size: 32px;
    line-height: 1;
    color: #101828;
}

.stat-card:hover,
.org-card:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 24px rgba(16, 24, 40, .07);
}

.org-card {
    border-radius: 9px;
    background: var(--panel);
    border-color: var(--line);
    box-shadow: var(--shadow-card);
}

.org-card-header {
    min-height: 58px;
    padding: 16px 22px;
    background: #ffffff;
}

.org-name-title {
    font-size: 16px;
    font-weight: 750;
}

.org-owner-account {
    font-size: 13px;
}

.org-products-container {
    padding: 18px 22px 22px;
    background: #fbfcff;
    grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
    gap: 14px;
}

.product-box {
    background: #ffffff;
    border-color: #dfe6ef;
    border-radius: 8px;
    padding: 16px;
    min-height: 108px;
}

.product-header {
    align-items: center;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
}

.product-code-tag {
    height: 22px;
    display: inline-flex;
    align-items: center;
    color: #536176;
    background: #f5f7fa;
}

.seat-details {
    font-size: 13px;
}

.progress-container {
    height: 7px;
    background: #edf1f6;
}

.progress-fill.success {
    background: linear-gradient(90deg, #11a969, #20c982);
}

.table-card {
    border-radius: 9px;
    border-color: var(--line);
    box-shadow: var(--shadow-card);
}

th {
    height: 44px;
    background: #f7f9fc;
    color: #536176;
}

td {
    background: #fff;
}

.modal {
    border-radius: 10px;
}

.toast {
    border-radius: 9px;
}

@media (min-width: 1280px) {
    .orgs-list-container {
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .view-title {
        font-size: 24px;
    }
}

/* Structural redesign */
.console-shell {
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 36px rgba(16, 24, 40, .06);
    overflow: hidden;
}

.console-topbar {
    min-height: 84px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border-bottom: 1px solid #e8edf4;
}

.console-kicker {
    margin-bottom: 4px;
    color: #1d66ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.console-topbar .view-title {
    font-size: 25px;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e8edf4;
    background: #ffffff;
}

.summary-item {
    padding: 18px 24px;
    border-right: 1px solid #e8edf4;
}

.summary-item:last-child {
    border-right: none;
}

.summary-label {
    color: #667085;
    font-size: 13px;
    font-weight: 650;
}

.summary-value {
    margin-top: 7px;
    color: #101828;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.summary-item.danger .summary-value {
    color: #c4322b;
}

.workspace-panel {
    background: #f7f9fc;
}

.panel-heading {
    height: 62px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8edf4;
}

.panel-title {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.panel-subtitle {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.console-shell .orgs-list-container {
    gap: 0;
    padding: 0;
}

.org-row-card {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
}

.org-row-card:last-child {
    border-bottom: none;
}

.org-row-meta {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    border-right: 1px solid #e8edf4;
    background: #fcfdff;
}

.org-avatar {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    border: 1px solid #d6e3ff;
}

.org-row-meta .org-info-left {
    min-width: 0;
}

.org-row-meta .org-name-title {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-row-meta .org-ref-id {
    margin-top: 7px;
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-row-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.org-row-stats div {
    padding: 10px;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    color: #667085;
    font-size: 12px;
    background: #ffffff;
}

.org-row-stats span {
    display: block;
    margin-bottom: 2px;
    color: #101828;
    font-size: 15px;
    font-weight: 800;
}

.org-row-meta .org-owner-account {
    grid-column: 1 / -1;
    margin-top: 8px;
    display: block;
    min-width: 0;
}

.org-row-meta .org-owner-account span {
    display: block;
    margin-bottom: 3px;
    color: #98a2b3;
    font-size: 12px;
}

.org-row-meta .org-owner-account strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-resource-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-resource-row {
    min-height: 72px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) 72px;
    align-items: center;
    gap: 16px;
    border: 1px solid #e8edf4;
    border-radius: 9px;
    background: #ffffff;
}

.product-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.product-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #175cd3;
    background: #eef4ff;
    border: 1px solid #d6e3ff;
    font-size: 12px;
    font-weight: 800;
}

.product-main .product-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-main .product-code-tag {
    margin-top: 4px;
}

.product-usage {
    min-width: 0;
}

.usage-chip {
    justify-self: end;
    min-width: 56px;
    padding: 5px 8px;
    border-radius: 999px;
    text-align: center;
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    font-size: 12px;
    font-weight: 800;
}

.usage-chip.warning {
    color: #b54708;
    background: #fffaeb;
    border-color: #fedf89;
}

.usage-chip.danger {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca;
}

.empty-inline,
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #667085;
}

.empty-state {
    background: #ffffff;
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.empty-state-title {
    color: #101828;
    font-weight: 800;
}

.empty-state-desc {
    margin-top: 4px;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .org-row-card {
        grid-template-columns: 1fr;
    }

    .org-row-meta {
        border-right: none;
        border-bottom: 1px solid #e8edf4;
    }
}

@media (max-width: 760px) {

    .console-topbar,
    .dashboard-summary {
        display: block;
    }

    .summary-item {
        border-right: none;
        border-bottom: 1px solid #e8edf4;
    }

    .product-resource-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .usage-chip {
        justify-self: start;
    }
}

/* Simple table layout reset */
.console-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.console-topbar {
    min-height: auto;
    padding: 0 0 20px;
    background: transparent;
    border-bottom: 0;
}

.console-kicker {
    color: #667085;
    letter-spacing: .06em;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    background: transparent;
    margin-bottom: 16px;
}

.summary-item {
    padding: 16px 18px;
    border: 1px solid #e4eaf2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.summary-item:last-child {
    border-right: 1px solid #e4eaf2;
}

.summary-value {
    font-size: 26px;
}

.workspace-panel.simple-workspace {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 24px rgba(16, 24, 40, .04);
    overflow: hidden;
}

.simple-workspace .panel-heading {
    height: 52px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.simple-workspace .panel-subtitle {
    display: none;
}

.simple-workspace .orgs-list-container {
    padding: 0;
    display: block;
}

.account-workspace {
    margin-bottom: 16px;
}

.customer-picker {
    margin: 0 0 16px;
    padding: 0 2px;
}

.customer-picker-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.customer-picker-heading.is-customer-home {
    display: none;
}

.customer-home-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

.customer-home-toolbar[hidden] {
    display: none;
}

.customer-add-btn {
    height: 34px !important;
    padding: 0 14px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}

.move-batch-modal {
    width: min(560px, calc(100vw - 36px));
}

.create-customer-modal {
    width: min(440px, calc(100vw - 36px));
}

.create-customer-modal .modal-body {
    padding: 22px;
}

.create-customer-field {
    margin: 0;
}

.create-customer-field label {
    display: block;
    margin-bottom: 9px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.create-customer-field input {
    width: 100%;
    box-sizing: border-box;
}

.move-batch-modal .modal-body {
    gap: 16px;
}

.move-batch-source {
    padding: 11px 12px;
    border: 1px solid #dbe5f2;
    border-radius: 7px;
    background: #f7faff;
    color: #344b70;
    font-size: 13px;
    font-weight: 700;
}

.move-batch-section > label,
.move-batch-new-customer label {
    display: block;
    margin-bottom: 9px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.move-customer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 174px;
    overflow: auto;
    padding: 2px;
}

.move-customer-option {
    max-width: 100%;
    min-height: 34px;
    overflow: hidden;
    padding: 0 12px;
    border: 1px solid #d7e0ed;
    border-radius: 7px;
    background: #fff;
    color: #42526b;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.move-customer-option:hover,
.move-customer-option.is-selected {
    border-color: #5267f5;
    background: #f1f3ff;
    color: #3d4fd7;
}

.move-customer-empty {
    color: #7a8aa5;
    font-size: 12px;
    line-height: 34px;
}

.move-batch-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #98a5ba;
    font-size: 12px;
}

.move-batch-divider::before,
.move-batch-divider::after {
    height: 1px;
    flex: 1;
    background: #e7edf5;
    content: '';
}

.move-batch-new-customer {
    margin: 0;
}

.move-batch-new-customer input {
    width: 100%;
    box-sizing: border-box;
}

.customer-picker-copy {
    display: none;
}

.customer-picker-title {
    color: #1f2a44;
    font-size: 15px;
    font-weight: 800;
}

.customer-picker-meta,
.customer-picker-current {
    color: #7a8aa5;
    font-size: 12px;
    margin-top: 4px;
}

.customer-picker-current {
    margin: 0;
    color: #4f46e5;
    font-weight: 700;
}

.customer-picker-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-picker-back {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.customer-picker-back[hidden],
.customer-picker-assign[hidden] {
    display: none !important;
}

.customer-picker-assign {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
}

.customer-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 10px;
}

/* First level: customer overview. The second level keeps the compact batch cards below. */
.customer-card-grid.customer-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.customer-home-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #fff;
    color: #17243b;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.customer-home-card:hover {
    border-color: #92a5ff;
    box-shadow: 0 10px 22px rgba(39, 61, 118, .10);
    transform: translateY(-1px);
}

.customer-home-card-top,
.customer-home-card-middle,
.customer-home-stats {
    display: flex;
    align-items: center;
}

.customer-home-card-top {
    justify-content: space-between;
}

.customer-home-folder {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf4ff;
    color: #2864d7;
}

.customer-home-folder svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.customer-home-total {
    color: #60718e;
    font-size: 12px;
    font-weight: 700;
}

.customer-home-card-middle {
    min-width: 0;
    margin-top: 20px;
    justify-content: space-between;
    gap: 12px;
}

.customer-home-name {
    min-width: 0;
    overflow: hidden;
    color: #17243b;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-home-batch-count {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 12px;
}

.customer-home-stats {
    margin-top: 18px;
    padding: 13px 0;
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
}

.customer-home-stat {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.customer-home-stat + .customer-home-stat {
    padding-left: 14px;
    border-left: 1px solid #edf1f6;
}

.customer-home-stat small {
    color: #7b8aa3;
    font-size: 11px;
}

.customer-home-stat strong {
    color: #22314b;
    font-size: 15px;
    line-height: 1.1;
}

.customer-home-enter {
    margin-top: auto;
    padding-top: 15px;
    color: #2864d7;
    font-size: 12px;
    font-weight: 800;
}

.customer-card-grid.customer-batch-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.customer-card {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding: 13px 14px;
    border: 1px solid #dbe4f4;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2a44;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.customer-card:hover {
    border-color: #98a4ff;
    box-shadow: 0 5px 14px rgba(59, 76, 196, .1);
}

.customer-card.is-active {
    border-color: #5b55f6;
    background: #f5f4ff;
    box-shadow: inset 3px 0 0 #5b55f6;
}

.customer-card-name {
    width: 100%;
    overflow: hidden;
    color: #18233b;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-card-counts {
    color: #4b5e7c;
    font-size: 12px;
}

.customer-card-footer {
    width: 100%;
    overflow: hidden;
    color: #8a98af;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-filter-hidden {
    display: none;
}

.account-workspace.customer-selection-pending {
    display: none;
}

@media (max-width: 760px) {
    .customer-picker-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

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

    .customer-card-grid.customer-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .customer-home-card {
        min-height: 196px;
        padding: 14px;
    }

    .customer-home-name {
        font-size: 16px;
    }

    .customer-home-stat + .customer-home-stat {
        padding-left: 8px;
    }

    .customer-card {
        min-height: 88px;
        padding: 11px 12px;
    }
}

@media (max-width: 440px) {
    .customer-card-grid.customer-home-grid {
        grid-template-columns: 1fr;
    }
}

.account-table-toolbar {
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.customer-group-exported-at {
    flex: 0 0 auto;
    max-width: 220px;
    color: #344054;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-group-exported-at.is-muted {
    color: #8a98af;
}

.account-table-toolbar .search-wrapper {
    width: 220px;
    max-width: 220px;
}

.registration-pool-search {
    width: 280px;
    max-width: 320px;
}

.registration-pool-search input {
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
    padding-left: 40px;
    background: #ffffff;
}

.registration-pool-search .search-icon {
    left: 14px;
}

#registration-pool-search {
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
    padding-left: 40px;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 18px 4px;
    color: #667085;
    font-size: 12px;
}

.pagination-summary {
    margin-right: 4px;
}

.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn.active {
    border-color: #5b5cf6;
    background: #5b5cf6;
    color: #ffffff;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pagination-ellipsis {
    color: #98a2b3;
    padding: 0 2px;
}

.embedded-table {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.embedded-table table {
    margin: 0;
}

.embedded-table th,
.embedded-table td {
    padding: 13px 20px;
}

.embedded-table tr:last-child td {
    border-bottom: 0;
}

#tab-accounts {
    display: none !important;
}

.account-workspace .panel-title::after {
    content: "支持导入、检测、查看组织成员与删除账号";
    margin-left: 10px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 500;
}

.seat-summary-value {
    color: #175cd3;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 14px;
    font-weight: 800;
}

.seat-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 280px;
}

.seat-summary-rate {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.seat-summary-progress {
    width: 100%;
    max-width: 280px;
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f6;
}

.seat-summary-progress .progress-fill {
    height: 100%;
    border-radius: 999px;
}

.seat-summary-note {
    margin-top: 6px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #667085;
    font-size: 12px;
}

.status-stack {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.token-pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    color: #175cd3;
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.token-pill.warning {
    color: #b54708;
    background: #fffaeb;
    border-color: #fedf89;
}

.token-pill.danger {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca;
}

.account-note-input {
    width: 120px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f3f6fb;
    color: var(--text-primary);
    font-size: 12px;
    line-height: 30px;
    outline: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.account-note-input::placeholder {
    color: #98a2b3;
}

.account-note-input:hover {
    background: #ffffff;
    border-color: #d0d5dd;
}

.account-note-input:focus {
    background: #ffffff;
    border-color: #1769ff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

/* Polished light dashboard skin based on the provided mockup */
:root {
    --mock-bg: #f5f8ff;
    --mock-panel: rgba(255, 255, 255, 0.86);
    --mock-line: #e7edf8;
    --mock-ink: #101828;
    --mock-muted: #65758f;
    --mock-primary: #635bff;
    --mock-primary-dark: #4f46e5;
    --mock-primary-soft: #f0efff;
}

body {
    background: #f6f8fc;
    color: var(--mock-ink);
}

.sidebar {
    width: 252px;
    padding: 34px 24px 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    border-right: 1px solid rgba(226, 234, 247, 0.78);
    box-shadow: 18px 0 48px rgba(42, 58, 92, 0.045);
}

.logo-area {
    gap: 14px;
    margin-bottom: 44px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(145deg, #2d7dff, #7657ff);
    box-shadow: 0 14px 28px rgba(99, 91, 255, 0.26);
    font-size: 16px;
    font-weight: 700;
}

.logo-title {
    width: 120px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.adobe-logo-icon {
    width: 40px;
    height: 40px;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
}

.adobe-logo-icon svg {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.nav-menu {
    gap: 18px;
}

.nav-item {
    position: relative;
    height: 58px;
    padding: 0 14px;
    border-radius: 10px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.nav-item span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-weight: 800;
}

.nav-item span svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

.nav-item.active {
    color: #4f46e5;
    background: linear-gradient(90deg, rgba(99, 91, 255, 0.15), rgba(99, 91, 255, 0.06));
    border-color: rgba(99, 91, 255, 0.08);
    box-shadow: 0 12px 26px rgba(99, 91, 255, 0.10);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 3px;
    height: 26px;
    border-radius: 999px;
    background: #4f46e5;
}

.sidebar-footer {
    color: #8290a8;
    border-top-color: transparent;
}

.main-content {
    margin-left: 252px;
    padding: 54px 56px 54px 42px;
    max-width: none;
}

.console-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.console-topbar {
    min-height: 104px;
    padding: 0 0 34px;
    align-items: flex-start;
    background: transparent;
    border: 0;
}

.console-kicker {
    margin-bottom: 8px;
    color: #66738f;
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 800;
}

.console-topbar .view-title {
    color: #0f172a;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 850;
}

.console-topbar .view-subtitle {
    margin-top: 14px;
    color: #6b7890;
    font-size: 14px;
}

.action-bar {
    align-items: center;
    gap: 14px;
}

.search-wrapper {
    width: 268px;
    max-width: 268px;
}

.search-wrapper input {
    height: 52px;
    padding-left: 54px;
    border-radius: 14px;
    border-color: rgba(216, 225, 239, 0.9);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(36, 52, 90, 0.06);
    color: #1d2939;
}

.search-wrapper input::placeholder {
    color: #8a98af;
}

.search-icon {
    left: 22px;
    color: transparent;
}

.search-icon::before {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: 2px solid #66738f;
    border-radius: 50%;
    top: 50%;
    left: 0;
    transform: translateY(-56%);
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #66738f;
    top: 29px;
    left: 13px;
    transform: rotate(45deg);
}

.btn {
    height: 52px;
    padding: 0 20px;
    border-radius: 14px;
    border-color: rgba(216, 225, 239, 0.95);
    background: rgba(255, 255, 255, 0.86);
    color: #1d2939;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(36, 52, 90, 0.06);
}

.btn-primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #6d5cff, #4f46e5);
    box-shadow: 0 14px 28px rgba(99, 91, 255, 0.26);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5f50f1, #4338ca);
}

.dashboard-summary {
    gap: 18px;
    margin-bottom: 38px;
}

.summary-item {
    min-height: 130px;
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    column-gap: 18px;
    padding: 24px 28px 24px 20px;
    border: 1px solid rgba(223, 231, 244, 0.88);
    border-radius: 14px;
    background: var(--mock-panel);
    box-shadow: 0 16px 36px rgba(43, 57, 90, 0.08);
    backdrop-filter: blur(18px);
}

.summary-item:last-child {
    border-right-color: rgba(223, 231, 244, 0.88);
}

.summary-icon {
    grid-row: 1 / span 2;
    width: 74px;
    height: 74px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3f1ff, #ebe8ff);
}

.summary-icon.product {
    background: linear-gradient(145deg, #edf4ff, #e4edff);
}

.summary-icon.valid {
    background: linear-gradient(145deg, #e8fbf4, #dcf7ee);
}

.summary-icon.invalid {
    background: linear-gradient(145deg, #fff2e9, #ffeadb);
}

.summary-icon::before,
.summary-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.summary-icon.org::before {
    width: 24px;
    height: 18px;
    border: 3px solid #635bff;
    border-radius: 4px;
}

.summary-icon.org::after {
    width: 30px;
    height: 8px;
    border: 3px solid #635bff;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    top: 58%;
}

.summary-icon.product::before {
    width: 24px;
    height: 24px;
    border: 3px solid #3b82f6;
    border-radius: 6px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.summary-icon.valid::before {
    width: 24px;
    height: 28px;
    border: 3px solid #12a66a;
    border-radius: 14px 14px 10px 10px;
}

.summary-icon.valid::after {
    width: 12px;
    height: 7px;
    border-left: 3px solid #12a66a;
    border-bottom: 3px solid #12a66a;
    transform: translate(-50%, -45%) rotate(-45deg);
}

.summary-icon.invalid::before {
    width: 28px;
    height: 28px;
    border: 3px solid #f79009;
    border-radius: 50%;
}

.summary-icon.invalid::after {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: #f79009;
    box-shadow: 0 11px 0 -1px #f79009;
}

.summary-label {
    align-self: end;
    color: #53627c;
    font-size: 15px;
    font-weight: 700;
}

.summary-value {
    align-self: start;
    margin-top: 4px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
}

.summary-item.danger .summary-value {
    color: #ef4444;
}

.workspace-panel.simple-workspace {
    border-radius: 14px;
    border-color: rgba(223, 231, 244, 0.92);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 44px rgba(43, 57, 90, 0.08);
    backdrop-filter: blur(18px);
}

.simple-workspace .panel-heading {
    height: 80px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.86);
    border-bottom-color: #edf2f8;
}

.panel-title {
    color: #0f172a;
    font-size: 21px;
    font-weight: 850;
}

.account-workspace .panel-title::after {
    content: "支持导入、检测、查看组织成员与删除账号";
    padding-left: 18px;
    margin-left: 16px;
    border-left: 1px solid #d8e1ef;
    color: #8a98af;
    font-size: 13px;
    font-weight: 600;
}

.embedded-table th {
    height: 60px;
    padding: 0 32px;
    background: rgba(248, 250, 253, 0.9);
    color: #53627c;
    font-size: 13px;
    font-weight: 800;
}

.embedded-table td {
    height: 132px;
    padding: 22px 32px;
    border-bottom-color: #edf2f8;
    background: rgba(255, 255, 255, 0.82);
    vertical-align: middle;
}

.embedded-table tbody tr:hover td {
    background: #fbfdff;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 260px;
}

.account-mail-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    border-radius: 50%;
    background: #f1efff;
    box-shadow: inset 0 0 0 1px rgba(99, 91, 255, 0.08);
}

.account-mail-icon::before {
    content: none;
}

.account-mail-icon::after {
    content: none;
}

.account-mail-icon svg {
    width: 19px;
    height: 19px;
    stroke: #635bff;
    stroke-width: 2.2;
}

.account-email-text {
    display: block;
    color: #111827;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.account-sub-pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    margin-top: 7px;
    padding: 0 10px;
    border-radius: 999px;
    color: #635bff;
    background: #f0efff;
    font-size: 12px;
    font-weight: 800;
}

.account-sub-pill-input {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 54px;
    max-width: 180px;
    height: 22px;
    margin-top: 7px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #635bff;
    background: #f0efff;
    font-size: 12px;
    font-weight: 800;
    outline: none;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.account-sub-pill-input::placeholder {
    color: #635bff;
    opacity: 1;
}

.account-note-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.account-note-row .account-sub-pill-input {
    margin-top: 0;
}

.account-sub-pill-input-extra {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.account-sub-pill-input-extra::placeholder {
    color: #c2410c;
}

.customer-group-pill {
    background: #e7f8f3;
    color: #047857;
    border-color: #a7f3d0;
}

.customer-group-pill {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    min-height: 22px;
    padding: 3px 9px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-note2-pill {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.22);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-credit-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 180px;
}

.member-credit-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.member-credit-chip.zero {
    color: #dc2626;
    background: #fff1f2;
    border-color: #fecdd3;
}

.member-credit-chip.low {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.member-credit-chip.sufficient {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.account-sub-pill-input:hover {
    background: #ffffff;
    border-color: #d8d4ff;
}

.account-sub-pill-input:focus {
    background: #ffffff;
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.account-note-input {
    width: 116px;
    height: 34px;
    text-align: center;
    background: transparent;
    color: #66738f;
    border-color: transparent;
    font-weight: 700;
}

.account-note-input:not(:placeholder-shown) {
    background: #f7f9ff;
    border-color: #e1e8f5;
    color: #344054;
}

.badge.success,
.token-pill {
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.seat-summary-top,
.seat-summary-progress,
.seat-summary-note {
    max-width: 300px;
}

.seat-summary-value {
    color: #4f46e5;
    font-size: 15px;
}

.seat-summary-rate {
    color: #344054;
}

.seat-summary-progress {
    height: 7px;
    background: #e9eef8;
}

.seat-summary-progress .progress-fill {
    background: linear-gradient(90deg, #615cff, #5b7cff);
}

.seat-summary-note {
    color: #66738f;
    font-size: 13px;
}

.embedded-table td .btn {
    height: 40px;
    padding: 0 14px !important;
    border-radius: 8px;
    font-size: 12px !important;
}

.embedded-table td .btn-primary {
    background: linear-gradient(135deg, #6d5cff, #4f46e5);
    box-shadow: 0 10px 20px rgba(99, 91, 255, 0.24);
}

.embedded-table td .btn-danger {
    color: #ef4444;
    background: #ffffff;
    border-color: #ffd7d7;
    box-shadow: none;
}

.icon-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 8px 18px rgba(36, 52, 90, 0.06);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.icon-btn.primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #1769ff, #4f46e5);
    box-shadow: 0 10px 20px rgba(29, 102, 255, 0.24);
}

.icon-btn.danger {
    color: #ef4444;
    border-color: #ffd7d7;
    background: #ffffff;
    box-shadow: none;
}

.icon-btn:hover {
    transform: translateY(-1px);
}

/* Compact pass: keep the visual direction, reduce display-scale typography */
.main-content {
    padding: 38px 56px 44px 42px;
}

.console-topbar {
    min-height: 86px;
    padding-bottom: 24px;
}

.console-topbar .view-title {
    font-size: 26px;
}

.console-topbar .view-subtitle {
    margin-top: 9px;
    font-size: 13px;
}

.console-kicker {
    font-size: 11px;
}

.search-wrapper input,
.btn {
    height: 44px;
    border-radius: 11px;
    font-size: 13px;
}

.search-wrapper {
    width: 248px;
    max-width: 248px;
}

.dashboard-summary {
    gap: 14px;
    margin-bottom: 26px;
}

.summary-item {
    min-height: 104px;
    grid-template-columns: 58px 1fr;
    column-gap: 16px;
    padding: 18px 22px 18px 18px;
    border-radius: 12px;
}

.summary-icon {
    width: 58px;
    height: 58px;
}

.summary-label {
    font-size: 13px;
}

.summary-value {
    font-size: 26px;
}

.simple-workspace .panel-heading {
    height: 64px;
    padding: 0 22px;
}

.panel-title {
    font-size: 18px;
}

.account-workspace .panel-title::after {
    font-size: 12px;
}

.account-workspace .panel-heading {
    min-height: 64px;
    height: auto;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.account-workspace .account-table-toolbar .btn,
.account-workspace .account-table-toolbar .search-wrapper input {
    height: 38px;
}

.embedded-table th {
    height: 50px;
    padding: 0 28px;
    font-size: 12px;
}

.embedded-table td {
    height: 104px;
    padding: 18px 28px;
}

.account-identity {
    gap: 14px;
    min-width: 240px;
}

.account-mail-icon {
    width: 40px;
    height: 40px;
}

.account-mail-icon::before {
    left: 12px;
    top: 13px;
    width: 16px;
    height: 13px;
}

.account-mail-icon::after {
    left: 14px;
    top: 16px;
    width: 12px;
    height: 8px;
}

.account-email-text {
    font-size: 14px;
}

.account-added-time {
    color: #667085;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.account-sub-pill {
    height: 20px;
    margin-top: 6px;
    padding: 0 8px;
    font-size: 11px;
}

.account-sub-pill-input {
    height: 20px;
    margin-top: 6px;
    padding: 0 8px;
    font-size: 11px;
}

.account-note-input {
    width: 104px;
    height: 30px;
    font-size: 12px;
}

.badge.success,
.token-pill {
    height: 24px;
    padding: 0 9px;
    font-size: 11px;
}

.seat-summary-value {
    font-size: 14px;
}

.seat-summary-rate,
.seat-summary-note {
    font-size: 12px;
}

.embedded-table td .btn {
    height: 34px;
    padding: 0 12px !important;
    font-size: 12px !important;
}

#users-modal-backdrop .modal {
    width: min(1180px, calc(100vw - 48px)) !important;
    max-height: 86vh !important;
    border-radius: 12px;
}

#users-modal-backdrop .modal-header {
    padding: 18px 22px;
}

#users-modal-title {
    font-size: 17px;
}

#users-modal-body {
    padding: 18px 20px !important;
    background: #f7f9fc;
}

.member-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.member-org-card {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e4eaf2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.member-org-header {
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eef2f7;
    background: #ffffff;
}

.member-org-body {
    padding: 0;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

.member-table thead tr {
    background: #f8fafc !important;
}

.member-table th {
    height: 40px;
    padding: 0 12px !important;
    color: #667085 !important;
    border-bottom: 1px solid #eef2f7 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.member-table td {
    height: 56px;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f0f3f8 !important;
    background: #ffffff;
    color: #344054;
}

.member-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.member-table tbody tr:hover td {
    background: #fbfdff;
}

.member-table .badge.success {
    margin: 2px 4px 2px 0 !important;
    padding: 2px 7px !important;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 700;
}

.member-table a {
    color: #175cd3 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.member-table a:hover {
    text-decoration: underline !important;
}

.member-table .btn-danger {
    height: 30px;
    padding: 0 10px !important;
    border-radius: 6px;
    font-size: 12px !important;
}

.member-toolbar .btn {
    height: 36px;
}

.copy-pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.copy-pill:hover {
    color: #175cd3;
    background: #eef4ff;
    border-color: #c7d7fe;
}

.member-products {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    max-width: 100%;
}

.member-products span,
.member-products em {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    height: 22px;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 999px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
}

.member-products em {
    color: #475467;
    background: #f2f4f7;
    border-color: #e4e7ec;
}

.mini-action {
    height: 22px;
    padding: 0 8px;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    color: #175cd3;
    background: #eef4ff;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.mini-action:hover {
    background: #dbe8ff;
}

.member-products .member-product-pill {
    gap: 6px;
    padding-right: 4px;
}

.member-product-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 750;
}

.member-product-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    color: #ef4444;
    background: transparent;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    padding: 0 1px;
}

.member-product-remove:hover {
    color: #dc2626;
    background: transparent;
}

.member-remove-btn,
.member-table .member-remove-btn {
    color: #ffffff !important;
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.member-remove-btn:hover,
.member-table .member-remove-btn:hover {
    color: #ffffff !important;
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* Member modal refresh */
#users-modal-backdrop {
    background: rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(8px);
}

#users-modal-backdrop .modal {
    width: min(1120px, calc(100vw - 56px)) !important;
    max-height: 84vh !important;
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

#users-modal-backdrop .modal-header {
    min-height: 62px;
    padding: 0 22px;
    border-bottom: 1px solid #edf2f8;
    background: #ffffff;
}

#users-modal-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 850;
}

#users-modal-backdrop .modal-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #64748b;
    font-size: 18px;
}

#users-modal-backdrop .modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#users-modal-body {
    padding: 16px 18px !important;
    background: #f7f9fc;
}

#users-modal-footer {
    min-height: 64px;
    padding: 12px 22px;
    border-top: 1px solid #edf2f8;
    background: #ffffff;
}

#users-modal-footer .btn {
    height: 38px;
    border-radius: 10px;
    box-shadow: none;
}

.member-toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 0 0 14px;
    margin-bottom: 0;
    background: #f7f9fc;
}

.member-toolbar .btn {
    height: 36px;
    padding: 0 14px !important;
    border-radius: 10px;
    font-size: 12px !important;
    box-shadow: 0 8px 18px rgba(36, 52, 90, 0.06);
}

.member-toolbar .btn-primary {
    background: linear-gradient(135deg, #6d5cff, #4f46e5);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(99, 91, 255, 0.22);
}

.member-toolbar .btn-danger {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.16);
}

.member-check {
    width: 16px;
    height: 16px;
    accent-color: #635bff;
    cursor: pointer;
}

.member-check:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.member-org-card {
    margin-bottom: 14px;
    border-color: #dfe7f3;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(43, 57, 90, 0.06);
}

.member-org-header {
    min-height: 56px;
    padding: 0 18px;
    background: #ffffff;
}

.member-org-header .badge.success {
    height: 26px;
    padding: 0 10px !important;
    display: inline-flex;
    align-items: center;
}

.member-table {
    font-size: 12px;
}

.member-table thead tr {
    background: #f8fafc !important;
}

.member-table th {
    height: 42px;
    padding: 0 12px !important;
    color: #53627c !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.member-table td {
    height: 58px;
    padding: 10px 12px !important;
    color: #344054;
    border-bottom-color: #edf2f8 !important;
    background: #ffffff;
}

.member-table tbody tr:hover td {
    background: #fbfdff;
}

.member-table a,
.member-table td span[title*="@"] {
    color: #1769ff !important;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-weight: 800 !important;
}

.copy-pill {
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475467;
    background: #f3f6fb;
    border-color: #dfe7f3;
    font-size: 11px;
}

.member-products {
    gap: 6px;
}

.member-products span,
.member-products em {
    height: 23px;
    max-width: 190px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    background: #ecfdf3;
    border-color: #abefc6;
}

.mini-action {
    height: 23px;
    border-radius: 999px;
    font-size: 11px;
}

.member-remove-btn,
.member-table .member-remove-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    color: #ef4444 !important;
    background: #ffffff !important;
    border-color: #ffd7d7 !important;
    box-shadow: none !important;
}

.member-remove-btn svg,
.member-table .member-remove-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
}

.detail-shell {
    min-height: calc(100vh - 92px);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.detail-topbar {
    min-height: auto;
    padding-bottom: 18px;
}

.detail-members-body {
    padding: 18px;
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    background: #f7f9fc;
    box-shadow: 0 18px 44px rgba(43, 57, 90, 0.07);
}

#tab-account-detail .member-toolbar {
    top: 0;
    padding-bottom: 16px;
}

#tab-account-detail .member-org-card {
    margin-bottom: 18px;
}

#tab-account-detail .member-table td {
    height: 64px;
}

#tab-account-detail .detail-shell {
    /* padding-top: 34px; */
}

#tab-account-detail .detail-topbar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding: 0 0 18px;
}

.detail-header-main {
    min-width: 0;
}

.detail-nav-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.detail-back-btn {
    height: 34px;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 10px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #dfe7f3;
    box-shadow: 0 8px 20px rgba(36, 52, 90, 0.06);
    font-size: 13px !important;
    font-weight: 800;
}

.detail-nav-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f3;
    border-radius: 10px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(36, 52, 90, 0.06);
    cursor: pointer;
}

.detail-nav-btn:hover:not(:disabled) {
    color: #1769ff;
    border-color: #bcd2ff;
    background: #f7faff;
}

.detail-nav-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.detail-nav-count {
    min-width: 52px;
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e4f4;
    border-radius: 999px;
    background: #ffffff;
    color: #52627a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.detail-back-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.detail-nav-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.4;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 2px;
}

.detail-actions-nav {
    flex-basis: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.detail-actions .btn {
    height: 36px;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 12px !important;
    font-weight: 850;
    box-shadow: 0 10px 20px rgba(36, 52, 90, 0.06);
}

.detail-actions .btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.detail-actions .btn-primary {
    background: linear-gradient(135deg, #1769ff, #635bff);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(23, 105, 255, 0.24);
}

.detail-actions .btn-danger {
    color: #dc2626;
    background: #ffffff;
    border-color: #fecaca;
    box-shadow: none;
}

#tab-account-detail .detail-members-body {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(43, 57, 90, 0.08);
}

#tab-account-detail .member-toolbar {
    display: none;
}

#tab-account-detail .member-org-card {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#tab-account-detail .member-org-header {
    min-height: 54px;
    padding: 0 20px;
    border-bottom: 1px solid #e7edf6;
    background: #ffffff;
}

.member-org-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-org-title strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0;
}

#detail-users-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#detail-users-subtitle:empty {
    display: none;
}

.detail-note-pill {
    font-size: 12px !important;
    vertical-align: middle;
}

.detail-note-input {
    margin-top: 0;
    margin-left: 6px;
    vertical-align: middle;
}

.member-org-title span {
    overflow: hidden;
    color: #8a98ad;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-copy-btn,
.copy-icon-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
}

.org-copy-btn:hover,
.copy-icon-btn:hover {
    color: #1769ff;
    background: #eef4ff;
}

.org-copy-btn svg,
.copy-icon-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.member-count-pill {
    height: 28px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

#tab-account-detail .member-table {
    table-layout: fixed;
    font-size: 12px;
}

#tab-account-detail .member-table th {
    height: 42px;
    padding: 0 16px !important;
    color: #53627c !important;
    background: #f8fafc;
}

#tab-account-detail .member-table td {
    height: 60px;
    padding: 10px 16px !important;
    color: #334155;
}

.member-name-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.member-avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.member-name-text,
.member-email-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-name-text {
    color: #0f172a;
    font-weight: 800;
}

.member-email-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-email-text {
    color: #475569 !important;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500 !important;
}

.member-email-cell:hover .member-email-text {
    color: #1769ff !important;
}

#tab-account-detail .member-table td .member-email-text[title*="@"] {
    color: #475569 !important;
    font-family: var(--font-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

#tab-account-detail .member-table td .member-email-cell:hover .member-email-text[title*="@"] {
    color: #1769ff !important;
}

.account-type-pill {
    height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    color: #635bff;
    background: #f4f0ff;
    border: 1px solid #ded6ff;
    font-size: 11px;
    font-weight: 850;
}

.account-type-pill.parent {
    color: #1769ff;
    background: #eef4ff;
    border-color: #c7d7fe;
}

.member-credit {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    font-family: "JetBrains Mono", Consolas, monospace;
    letter-spacing: 0;
    white-space: nowrap;
}

.member-credit-current {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.member-credit-current.good {
    color: #1769ff;
}

.member-credit-current.warn {
    color: #f97316;
}

.member-credit-current.danger {
    color: #dc2626;
}

.member-credit-sep,
.member-credit-total {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.member-credit-empty {
    color: #8a98ad;
    font-size: 11px;
    font-weight: 700;
}

.member-countdown {
    height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #1769ff;
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.member-countdown.soon {
    color: #f97316;
    background: #fff7ed;
    border-color: #fed7aa;
}

.member-countdown.expired {
    color: #dc2626;
    background: #fff1f2;
    border-color: #fecdd3;
}

.member-countdown.empty {
    color: #8a98ad;
    background: #f8fafc;
    border-color: #e4eaf2;
    font-family: var(--font-sans);
}

.member-countdown.unlimited {
    color: #1769ff;
    background: #eef4ff;
    border-color: #c7d7fe;
    font-family: var(--font-sans);
}

.member-timer-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.member-timer-set {
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    color: #64748b;
    background: #ffffff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.member-timer-set:hover {
    color: #1769ff;
    background: #eef4ff;
    border-color: #c7d7fe;
}

.member-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.member-edit-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    color: #64748b;
    background: #ffffff;
    cursor: pointer;
}

.member-edit-btn:hover {
    color: #1769ff;
    background: #eef4ff;
    border-color: #c7d7fe;
}

.member-edit-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
}

.timer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.timer-info-item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e4eaf2;
    border-radius: 10px;
    background: #f8fafc;
}

.timer-info-label {
    margin-bottom: 5px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.timer-info-value {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timer-info-value.muted {
    color: #64748b;
    font-weight: 650;
}

#tab-account-detail .member-products span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 2px;
    background: #039855;
    transform: rotate(45deg);
}

#tab-account-detail .member-products span,
#tab-account-detail .member-products em {
    max-width: 210px;
    height: 22px;
    padding: 0 9px;
    font-size: 10.5px;
}

#add-user-modal-backdrop .modal {
    border-radius: 12px;
}

#add-user-modal-backdrop .modal-body {
    background: #ffffff;
}

#add-user-modal-backdrop .form-group {
    gap: 8px;
}

#add-user-modal-backdrop label {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

#add-user-email,
.add-user-select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #101828;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
}

#add-user-email {
    min-height: 148px;
    padding: 12px;
    resize: vertical;
    line-height: 1.55;
    font-family: "JetBrains Mono", Consolas, monospace;
}

.add-user-select {
    padding-right: 36px;
    cursor: pointer;
}

.add-user-select option {
    color: #101828;
    background: #ffffff;
}

#add-user-email:focus,
.add-user-select:focus {
    border-color: #1769ff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, .12);
}

.member-dropzone {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #b8c7dd;
    border-radius: 10px;
    background: #f8fbff;
    text-align: center;
    transition: all .18s ease;
}

.member-dropzone.dragover {
    border-color: #1769ff;
    background: #eef4ff;
}

.import-cookie-dropzone {
    min-height: 132px;
}

.dropzone-title {
    color: #101828;
    font-size: 15px;
    font-weight: 800;
}

.dropzone-subtitle {
    color: #667085;
    font-size: 13px;
}

.member-import-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
}

.member-import-item {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    background: #ffffff;
}

.member-import-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #101828;
    font-size: 13px;
    font-weight: 700;
}

.member-import-meta {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #667085;
    font-size: 12px;
}

.license-table-head,
.license-table-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, .9fr) 92px;
    align-items: center;
    gap: 16px;
}

.license-table-head {
    height: 42px;
    padding: 0 20px;
    color: #667085;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    font-weight: 800;
}

.license-table-row {
    min-height: 76px;
    padding: 14px 20px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.license-table-row:last-child {
    border-bottom: 0;
}

.license-table-row:hover {
    background: #fbfdff;
}

.license-table-row .cell {
    min-width: 0;
}

.cell-org {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cell-org .org-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.cell-org .org-name-title,
.cell-product .product-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-owner span {
    display: none;
}

.cell-owner strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #175cd3;
    font-size: 13px;
}

.cell-usage .seat-details {
    margin-bottom: 7px;
}

.cell-status {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .license-table-head {
        display: none;
    }

    .license-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cell-status {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Sub account monitor */

#tab-sub-monitor .table-card .table-header {
    padding: 18px 22px 0;
}

#tab-sub-monitor .table-card .table-header h3 {
    margin: 0 0 12px;
}

#tab-sub-monitor .table-card .table-header span {
    display: block;
    margin-bottom: 2px;
}

.sub-monitor-summary {
    margin-bottom: 18px;
}

.sub-monitor-table th,
.sub-monitor-table td {
    vertical-align: middle;
}

.sub-monitor-email,
.sub-monitor-parent {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.sub-monitor-main-text {
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-monitor-email span {
    color: #667085;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-monitor-parent>div {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

@media (max-width: 980px) {
    .sub-monitor-table {
        min-width: 980px;
    }
}


.sub-monitor-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .sub-monitor-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sub-monitor-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Replace zero-credit progress modal */
.replace-zero-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.replace-zero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.replace-zero-grid>div {
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f8fafc;
    min-width: 0;
}

.replace-zero-grid span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-bottom: 5px;
}

.replace-zero-grid strong {
    display: block;
    color: #101828;
    font-size: 14px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.replace-zero-warn {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #fedf89;
    border-radius: 8px;
    background: #fffaeb;
    color: #93370d;
    font-size: 13px;
    font-weight: 700;
}

.replace-zero-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.replace-zero-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    color: #667085;
}

.replace-zero-step span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 12px;
    font-weight: 900;
}

.replace-zero-step strong {
    font-size: 13px;
    font-weight: 800;
}

.replace-zero-step.running {
    border-color: #84caff;
    background: #eff8ff;
    color: #175cd3;
}

.replace-zero-step.running span {
    background: #2e90fa;
    color: #fff;
}

.replace-zero-step.done {
    border-color: #75e0a7;
    background: #ecfdf3;
    color: #027a48;
}

.replace-zero-step.done span {
    background: #12b76a;
    color: #fff;
}

.replace-zero-extra {
    color: #667085;
    font-size: 13px;
    padding: 4px 2px 0;
}

.replace-zero-report {
    max-height: 260px;
    overflow: auto;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e4e7ec;
    background: #101828;
    color: #f9fafb;
    font: 12px/1.6 "JetBrains Mono", Consolas, monospace;
    white-space: pre-wrap;
}

.batch-replace-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.batch-replace-progress {
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
}

.batch-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #175cd3;
    font-size: 13px;
    font-weight: 800;
}

.batch-progress-bar {
    height: 9px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

#batch-replace-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    transition: width 0.35s ease;
}

.batch-replace-current {
    margin-top: 9px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.batch-replace-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow: auto;
}

.batch-replace-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) minmax(160px, 0.65fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #ffffff;
}

.batch-replace-item.running {
    border-color: #84caff;
    background: #eff8ff;
}

.batch-replace-item.ok {
    border-color: #75e0a7;
    background: #ecfdf3;
}

.batch-replace-item.failed {
    border-color: #fda29b;
    background: #fffbfa;
}

.batch-replace-status {
    display: inline-flex;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.batch-replace-item.running .batch-replace-status {
    background: #2e90fa;
    color: #ffffff;
}

.batch-replace-item.ok .batch-replace-status {
    background: #12b76a;
    color: #ffffff;
}

.batch-replace-item.failed .batch-replace-status {
    background: #f04438;
    color: #ffffff;
}

.batch-replace-main {
    min-width: 0;
}

.batch-replace-main strong,
.batch-replace-main small,
.batch-replace-item em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-replace-main strong {
    color: #101828;
    font-size: 13px;
    font-weight: 850;
}

.batch-replace-main small,
.batch-replace-item em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
}

.batch-replace-empty {
    padding: 12px;
    border: 1px dashed #d0d5dd;
    border-radius: 9px;
    color: #667085;
    background: #f8fafc;
    font-size: 13px;
}

@media (max-width: 760px) {
    .replace-zero-grid {
        grid-template-columns: 1fr;
    }

    .batch-replace-item {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .main-content {
        padding-left: 38px;
        padding-right: 24px;
    }

    #tab-dashboard .console-shell {
        width: 100%;
    }

    #tab-dashboard .dashboard-summary,
    #tab-dashboard .account-workspace {
        width: 100%;
    }

    .account-workspace .panel-heading {
        min-height: 104px;
        padding: 28px 28px;
        align-items: center;
        background: #ffffff;
    }

    .account-workspace .panel-heading>div:first-child {
        display: none;
    }

    .account-table-toolbar {
        flex: 1;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        flex-wrap: wrap;
    }

    .account-table-toolbar .search-wrapper {
        flex: 0 0 360px;
        width: 360px;
        max-width: 420px;
        margin-left: auto;
    }

    .account-workspace .account-table-toolbar .btn,
    .account-workspace .account-table-toolbar .add-user-select,
    .account-workspace .account-table-toolbar .search-wrapper input {
        height: 44px;
        min-height: 44px;
        border-radius: 14px;
    }

    .account-workspace .account-table-toolbar .btn {
        padding-left: 18px !important;
        padding-right: 18px !important;
        font-size: 13px;
        font-weight: 850;
    }

    .account-workspace .account-table-toolbar .search-wrapper input {
        padding-left: 48px;
        background: #ffffff;
        border-color: #dbe4f0;
    }

    .account-workspace .account-table-toolbar .search-icon {
        left: 18px;
    }

    .account-workspace .panel-title::after {
        content: none;
    }
}

@media (max-width: 1400px) {
    .account-table-toolbar .search-wrapper {
        order: 10;
        flex-basis: 100%;
        width: 100%;
        max-width: none;
        margin-left: 0;
    }
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.account-workspace .account-table-toolbar .btn-primary,
.account-workspace .account-table-toolbar .btn-primary:hover,
.account-workspace .account-table-toolbar .btn-primary:focus {
    box-shadow: none !important;
}

#export-org-cookies-modal-backdrop #export-org-select-all-btn,
#export-org-cookies-modal-backdrop #export-org-customer-filter {
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
}

#export-org-cookies-modal-backdrop #export-org-select-all-btn {
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 800;
}

.export-org-summary {
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}
#btn-refresh-sub-credits {
    display: none !important;
}

#tab-dashboard .embedded-table table th:nth-child(6),
#tab-accounts .table-card table th:nth-child(6),
#tab-sub-monitor table th:nth-child(4),
#tab-sub-monitor table td:nth-child(4) {
    display: none !important;
}

/* 2026 editorial operations redesign */
:root {
    --page-bg: #eeede7;
    --panel: #fffef9;
    --panel-muted: #f6f4ed;
    --line: #d8d7ce;
    --line-strong: #b9b8af;
    --ink: #1a211e;
    --muted: #64706a;
    --blue: #176b62;
    --blue-dark: #104d46;
    --blue-soft: #dcebe5;
    --green: #176b62;
    --red: #bf4f45;
    --gold: #ba852b;
    --font-sans: "Fira Sans", "Noto Sans SC", sans-serif;
    --font-mono: "Fira Code", monospace;
}

* {
    scrollbar-color: #b4b7ac transparent;
    scrollbar-width: thin;
}

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: var(--font-sans);
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button,
[role="button"],
.nav-item,
.customer-home-card,
.customer-card {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-item:focus-visible {
    outline: 3px solid rgba(23, 107, 98, .28);
    outline-offset: 2px;
}

.sidebar {
    width: 264px;
    padding: 28px 18px 22px;
    background: #1a211e;
    border-right: 1px solid #303a35;
    box-shadow: none;
}

.logo-area {
    margin: 0 4px 40px;
    padding: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.logo-icon svg {
    width: 38px;
    height: 38px;
}

.logo-title {
    color: #f8f6ef;
    font-family: "Noto Serif SC", serif;
    font-size: 17px;
    font-weight: 700;
}

.nav-menu {
    gap: 5px;
}

.nav-item {
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #bfc7c1;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.nav-item:hover {
    background: #26302b;
    color: #f8f6ef;
}

.nav-item.active {
    position: relative;
    border-color: #416158;
    background: #dcebe5;
    color: #173f39;
    box-shadow: none;
}

.nav-item.active::before {
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: -1px;
    width: 3px;
    background: #bf4f45;
    content: "";
}

.sidebar-footer {
    margin: auto 4px 0;
    padding-top: 16px;
    border-top: 1px solid #303a35;
    color: #86928b;
    font-family: var(--font-mono);
    font-size: 10px;
}

.main-content {
    max-width: none;
    margin-left: 264px;
    padding: 38px 44px 56px;
}

.console-shell,
.view-header {
    max-width: 1560px;
}

.console-topbar,
.view-header {
    min-height: 86px;
    margin: 0;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--line);
}

.view-title,
.console-topbar .view-title {
    color: var(--ink);
    font-family: "Noto Serif SC", serif;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.18;
}

.view-subtitle,
.console-topbar .view-subtitle {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0 30px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    box-shadow: none;
}

.summary-item,
.summary-item.danger {
    position: relative;
    min-height: 106px;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    padding: 20px 22px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
}

.summary-item:last-child {
    border-right: 0;
}

.summary-icon {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: #176b62;
}

.summary-icon::before,
.summary-icon::after {
    background: currentColor !important;
}

.summary-item:nth-child(2) .summary-icon { color: #a06c1d; }
.summary-item:nth-child(3) .summary-icon { color: #176b62; }
.summary-item.danger .summary-icon { color: #bf4f45; }

.summary-label {
    align-self: end;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.summary-value {
    align-self: start;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
}

.summary-item.danger .summary-value { color: #bf4f45; }

.customer-picker {
    margin: 0 0 28px;
}

.customer-home-toolbar {
    justify-content: flex-start;
    margin: 0 0 14px;
}

.customer-add-btn,
.btn-primary,
.account-workspace .account-table-toolbar .btn-primary {
    border-color: #176b62 !important;
    background: #176b62 !important;
    color: #fffef9 !important;
}

.customer-add-btn:hover,
.btn-primary:hover,
.account-workspace .account-table-toolbar .btn-primary:hover {
    border-color: #104d46 !important;
    background: #104d46 !important;
}

.customer-card-grid.customer-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line-strong);
    background: var(--line-strong);
}

.customer-home-card {
    min-height: 222px;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: var(--panel);
    box-shadow: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.customer-home-card:hover {
    border-color: transparent;
    background: #f5faf7;
    box-shadow: inset 0 4px 0 #176b62;
    transform: none;
}

.customer-home-folder {
    width: 36px;
    height: 36px;
    border: 1px solid #c6dbd2;
    border-radius: 50%;
    background: #e8f1ec;
    color: #176b62;
}

.customer-home-total,
.customer-home-batch-count {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
}

.customer-home-name {
    color: var(--ink);
    font-family: "Noto Serif SC", serif;
    font-size: 19px;
    font-weight: 700;
}

.customer-home-stats {
    border-color: var(--line);
}

.customer-home-stat + .customer-home-stat { border-color: var(--line); }
.customer-home-stat small { color: var(--muted); font-size: 11px; }
.customer-home-stat strong { color: var(--ink); font-family: var(--font-mono); font-size: 14px; }
.customer-home-enter { color: #176b62; font-family: var(--font-mono); font-size: 11px; }

.customer-picker-heading {
    min-height: 44px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.customer-picker-current {
    color: #176b62;
    font-family: var(--font-mono);
    font-size: 11px;
}

.customer-picker-back {
    border-radius: 4px;
    color: #176b62;
}

.customer-picker-assign {
    border-color: #176b62;
    color: #176b62;
}

.customer-card-grid.customer-batch-grid {
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
    gap: 8px;
}

.customer-card {
    min-height: 108px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--panel);
    box-shadow: none;
}

.customer-card:hover,
.customer-card.is-active {
    border-color: #176b62;
    background: #f1f7f4;
    box-shadow: inset 3px 0 0 #176b62;
}

.customer-card-name { color: var(--ink); font-size: 13px; }
.customer-card-counts { color: #3d514a; font-family: var(--font-mono); font-size: 11px; }
.customer-card-footer { color: var(--muted); font-size: 10px; }

.workspace-panel.simple-workspace,
.table-card {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--panel);
    box-shadow: none;
}

.simple-workspace .panel-heading,
.account-workspace .panel-heading {
    min-height: 82px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #f8f7f1;
}

.panel-title,
.table-header h3,
.settings-panel-title {
    color: var(--ink);
    font-family: "Noto Serif SC", serif;
}

.btn {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #bfc5bd;
    border-radius: 3px;
    background: transparent;
    color: #28352f;
    box-shadow: none;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn:hover {
    border-color: #176b62;
    background: #e5f0eb;
    color: #104d46;
    transform: none;
}

.btn-danger {
    border-color: #d5aaa4;
    background: transparent;
    color: #a83d35;
}

.btn-danger:hover { border-color: #bf4f45; background: #fff0ed; color: #91342d; }

.search-wrapper,
.search-wrapper input,
.add-user-select,
input,
textarea,
select {
    border-radius: 3px !important;
}

.search-wrapper input,
input,
textarea,
select {
    border-color: #cbd0c8 !important;
    background: #fffef9 !important;
    color: var(--ink) !important;
}

.search-wrapper input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #176b62 !important;
    box-shadow: 0 0 0 3px rgba(23, 107, 98, .12) !important;
}

table { border-collapse: collapse; }
thead th,
.embedded-table thead th {
    height: 42px;
    border-bottom: 1px solid var(--line-strong);
    background: #e8e7df;
    color: #46524c;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

tbody td,
.embedded-table tbody td {
    border-bottom: 1px solid #e5e4dc;
    color: #27332e;
    font-size: 12px;
}

tbody tr:hover td,
.embedded-table tbody tr:hover td { background: #f4f8f5; }

.badge,
.status-badge,
.tag,
.account-tag {
    border-radius: 2px !important;
}

.modal-backdrop {
    background: rgba(20, 28, 25, .42);
    backdrop-filter: blur(3px);
}

.modal {
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--panel);
    box-shadow: 0 22px 64px rgba(20, 30, 25, .22);
}

.modal-header,
.modal-footer {
    background: #f6f4ed;
    border-color: var(--line);
}

.modal-title {
    color: var(--ink);
    font-family: "Noto Serif SC", serif;
}

.modal-close { color: #59675f; }

@media (max-width: 1100px) {
    .sidebar { width: 214px; }
    .main-content { margin-left: 214px; padding: 30px 28px 44px; }
    .customer-card-grid.customer-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body { display: block; }
    .sidebar {
        position: static;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 16px;
    }
    .logo-area { margin-bottom: 16px; }
    .nav-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar-footer { display: none; }
    .main-content { margin-left: 0; padding: 24px 16px 36px; }
    .console-topbar, .view-header { min-height: 0; }
    .view-title, .console-topbar .view-title { font-size: 24px; }
    .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-item, .summary-item.danger { min-height: 88px; padding: 14px; }
    .summary-item:nth-child(2) { border-right: 0; }
    .summary-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .customer-card-grid.customer-home-grid { grid-template-columns: 1fr; }
    .customer-home-card { min-height: 194px; }
    .account-workspace .panel-heading { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Calm archive workspace refinement */
:root {
    --page-bg: #f3f6f8;
    --panel: #ffffff;
    --panel-muted: #f8fafb;
    --line: #dce4e9;
    --line-strong: #c8d4dc;
    --ink: #17212b;
    --muted: #66788a;
    --blue: #146a7c;
    --blue-dark: #0c5261;
    --blue-soft: #e2f1f3;
    --green: #178263;
    --red: #c44e4a;
}

body {
    background: var(--page-bg);
    color: var(--ink);
}

.sidebar {
    width: 246px;
    padding: 28px 16px 22px;
    background: #ffffff;
    border-right: 1px solid #dbe4e9;
    box-shadow: 8px 0 26px rgba(38, 63, 78, .035);
}

.logo-area {
    margin: 0 8px 34px;
}

.logo-title {
    color: #17212b;
    font-family: "Noto Serif SC", serif;
    font-size: 17px;
}

.nav-menu { gap: 7px; }

.nav-item {
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #526677;
    font-size: 13px;
    font-weight: 600;
}

.nav-item:hover {
    background: #f1f6f7;
    color: #1b5360;
}

.nav-item.active {
    border-color: #c4e0e4;
    background: #e7f3f4;
    color: #0e6677;
}

.nav-item.active::before {
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #dd6a59;
}

.sidebar-footer {
    margin: auto 8px 0;
    padding-top: 14px;
    border-top-color: #e5eaee;
    color: #93a1ad;
}

.main-content {
    margin-left: 246px;
    padding: 36px 42px 52px;
}

.console-shell,
.view-header {
    max-width: 1600px;
}

.console-topbar,
.view-header {
    min-height: 72px;
    padding: 0 0 18px;
    border-bottom: 0;
}

.view-title,
.console-topbar .view-title {
    color: #17212b;
    font-size: 28px;
}

.view-subtitle,
.console-topbar .view-subtitle {
    color: #718395;
    font-size: 13px;
}

.dashboard-summary {
    gap: 12px;
    margin: 18px 0 28px;
    border: 0;
    background: transparent;
}

.summary-item,
.summary-item.danger {
    min-height: 104px;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 18px;
    border: 1px solid #dce5eb;
    border-right: 1px solid #dce5eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(35, 62, 78, .04);
}

.summary-item::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: #5b9ba6;
    content: "";
}

.summary-item:nth-child(2)::after { background: #cc9a51; }
.summary-item:nth-child(3)::after { background: #2f9d78; }
.summary-item.danger::after { background: #dd6a59; }

.summary-icon {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #e6f3f5;
    color: #146a7c;
}

.summary-item:nth-child(2) .summary-icon { background: #fff2df; color: #a76f1d; }
.summary-item:nth-child(3) .summary-icon { background: #e2f6ed; color: #178263; }
.summary-item.danger .summary-icon { background: #fff0ed; color: #c44e4a; }

.summary-label { color: #6e8192; font-size: 12px; }
.summary-value { color: #182631; font-size: 24px; }

.customer-picker { margin-bottom: 26px; }

.customer-home-toolbar {
    justify-content: flex-end;
    margin: 0 0 12px;
}

.customer-card-grid.customer-home-grid {
    gap: 14px;
    border: 0;
    background: transparent;
}

.customer-home-card {
    min-height: 208px;
    padding: 18px;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(35, 62, 78, .04);
}

.customer-home-card:hover {
    border-color: #8fc4cb;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 106, 124, .11);
}

.customer-home-folder {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #e8f3f5;
    color: #146a7c;
}

.customer-home-name {
    font-size: 18px;
    color: #182631;
}

.customer-home-total,
.customer-home-batch-count { color: #718395; }

.customer-home-stats {
    padding: 12px 0;
    border-color: #e6edf0;
}

.customer-home-stat + .customer-home-stat { border-color: #e6edf0; }
.customer-home-stat small { color: #748697; }
.customer-home-stat strong { color: #1d2e39; }
.customer-home-enter { padding-top: 13px; color: #146a7c; }

.customer-picker-heading {
    min-height: 38px;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: 0;
}

.customer-picker-current { color: #146a7c; }

.customer-card-grid.customer-batch-grid { gap: 12px; }

.customer-card {
    min-height: 100px;
    border-color: #dbe5eb;
    border-radius: 8px;
    box-shadow: none;
}

.customer-card:hover,
.customer-card.is-active {
    border-color: #8fc4cb;
    background: #f2f9fa;
    box-shadow: inset 3px 0 0 #146a7c;
}

.workspace-panel.simple-workspace,
.table-card {
    border-color: #dbe5eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(35, 62, 78, .045);
}

.simple-workspace .panel-heading,
.account-workspace .panel-heading {
    min-height: 76px;
    border-bottom-color: #e3eaee;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
}

.btn {
    height: 36px;
    min-height: 36px;
    border-color: #cbd8df;
    border-radius: 7px;
    background: #ffffff;
    color: #3d5160;
}

.btn:hover {
    border-color: #83b8c1;
    background: #eef7f8;
    color: #0f5f70;
}

.customer-add-btn,
.btn-primary,
.account-workspace .account-table-toolbar .btn-primary {
    border-color: #146a7c !important;
    background: #146a7c !important;
}

.customer-add-btn:hover,
.btn-primary:hover,
.account-workspace .account-table-toolbar .btn-primary:hover {
    border-color: #0c5261 !important;
    background: #0c5261 !important;
}

.btn-danger { border-color: #e4b7b0; color: #b84943; }
.btn-danger:hover { border-color: #d56a60; background: #fff3f1; color: #a33e38; }

.search-wrapper input,
input,
textarea,
select { border-color: #cdd9e0 !important; background: #ffffff !important; }

thead th,
.embedded-table thead th {
    background: #f3f7f8;
    color: #526777;
    font-size: 10px;
    letter-spacing: .025em;
}

tbody td,
.embedded-table tbody td { border-bottom-color: #e6edf0; color: #314553; }
tbody tr:hover td,
.embedded-table tbody tr:hover td { background: #f4f9fa; }

.modal {
    border-color: #d7e2e7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 64px rgba(30, 56, 68, .2);
}

.modal-header,
.modal-footer { background: #f7fafb; border-color: #e2eaee; }

@media (max-width: 1100px) {
    .sidebar { width: 218px; }
    .main-content { margin-left: 218px; padding: 30px 26px 44px; }
}

@media (max-width: 760px) {
    .sidebar { width: auto; }
    .main-content { margin-left: 0; padding: 22px 14px 34px; }
    .dashboard-summary { gap: 8px; }
    .summary-item, .summary-item.danger { border-radius: 8px; }
}

/* Swiss operations board: hard grid, black-white structure, Adobe red accent */
:root {
    --page-bg: #f1f1ef;
    --panel: #ffffff;
    --panel-muted: #f5f5f3;
    --line: #171717;
    --line-strong: #171717;
    --ink: #111111;
    --muted: #5d5d5a;
    --blue: #eb1000;
    --blue-dark: #bd0d00;
    --blue-soft: #ffe4e1;
    --green: #157a52;
    --red: #eb1000;
    --font-sans: "Fira Sans", "Noto Sans SC", sans-serif;
    --font-mono: "Fira Code", monospace;
}

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: var(--font-sans);
}

.sidebar {
    width: 232px;
    padding: 24px 14px 18px;
    background: #111111;
    border-right: 2px solid #111111;
    box-shadow: none;
}

.logo-area { margin: 0 8px 38px; }
.logo-title { color: #ffffff; font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.logo-icon, .logo-icon svg { width: 36px; height: 36px; }
.nav-menu { gap: 2px; }

.nav-item {
    min-height: 46px;
    padding: 0 11px;
    border: 0;
    border-radius: 0;
    color: #b6b6b3;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
}

.nav-item:hover { background: #292929; color: #ffffff; }
.nav-item.active { background: #eb1000; color: #ffffff; }
.nav-item.active::before { display: none; }
.sidebar-footer { margin: auto 8px 0; border-top: 1px solid #3c3c3a; color: #898985; font-family: var(--font-mono); }

.main-content {
    max-width: none;
    margin-left: 232px;
    padding: 0 40px 48px;
}

.console-shell,
.view-header { max-width: 1680px; }

.console-topbar,
.view-header {
    min-height: 132px;
    display: flex;
    align-items: flex-end;
    margin: 0 -40px 0;
    padding: 28px 40px 26px;
    border-bottom: 2px solid #111111;
    background: #ffffff;
}

.view-title,
.console-topbar .view-title {
    color: #111111;
    font-family: var(--font-mono);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.view-subtitle,
.console-topbar .view-subtitle {
    max-width: 720px;
    color: #555552;
    font-family: var(--font-sans);
    font-size: 13px;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 24px 0 30px;
    border: 2px solid #111111;
    background: #111111;
}

.summary-item,
.summary-item.danger {
    min-height: 112px;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 18px;
    border: 0;
    border-right: 1px solid #111111;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.summary-item:last-child { border-right: 0; }
.summary-item::after { display: none; }

.summary-icon,
.summary-item:nth-child(2) .summary-icon,
.summary-item:nth-child(3) .summary-icon,
.summary-item.danger .summary-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #111111;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
}

.summary-item.danger .summary-icon { border-color: #eb1000; color: #eb1000; }
.summary-label { color: #5d5d5a; font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.summary-value { color: #111111; font-family: var(--font-mono); font-size: 27px; font-weight: 700; }
.summary-item.danger .summary-value { color: #eb1000; }

.customer-picker { margin-bottom: 30px; }
.customer-home-toolbar { justify-content: flex-end; margin: 0 0 14px; }

.customer-card-grid.customer-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    background: transparent;
}

.customer-home-card {
    min-height: 218px;
    padding: 18px;
    border: 2px solid #111111;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.customer-home-card:hover {
    border-color: #eb1000;
    background: #fff6f5;
    box-shadow: none;
    transform: none;
}

.customer-home-folder {
    width: 36px;
    height: 36px;
    border: 2px solid #111111;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
}

.customer-home-name { color: #111111; font-family: var(--font-mono); font-size: 17px; font-weight: 700; }
.customer-home-total, .customer-home-batch-count { color: #5d5d5a; font-family: var(--font-mono); font-size: 10px; }
.customer-home-stats { border-color: #111111; }
.customer-home-stat + .customer-home-stat { border-color: #111111; }
.customer-home-stat small { color: #666663; font-family: var(--font-mono); font-size: 10px; }
.customer-home-stat strong { color: #111111; font-family: var(--font-mono); font-size: 14px; }
.customer-home-enter { color: #eb1000; font-family: var(--font-mono); font-size: 10px; }

.customer-picker-heading { margin-bottom: 14px; border-bottom: 2px solid #111111; }
.customer-picker-current { color: #eb1000; font-family: var(--font-mono); font-size: 10px; }
.customer-picker-back { border-radius: 0; color: #111111; }
.customer-picker-assign { border-color: #111111; border-radius: 0; color: #111111; }

.customer-card-grid.customer-batch-grid { gap: 10px; }
.customer-card {
    min-height: 102px;
    padding: 14px;
    border: 1px solid #111111;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}
.customer-card:hover, .customer-card.is-active { border-color: #eb1000; background: #fff6f5; box-shadow: inset 3px 0 0 #eb1000; }
.customer-card-name { color: #111111; font-family: var(--font-mono); font-size: 12px; }
.customer-card-counts, .customer-card-footer { color: #5d5d5a; font-family: var(--font-mono); font-size: 10px; }

.workspace-panel.simple-workspace,
.table-card {
    border: 2px solid #111111;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.simple-workspace .panel-heading,
.account-workspace .panel-heading {
    min-height: 78px;
    padding: 16px 18px;
    border-bottom: 2px solid #111111;
    border-radius: 0;
    background: #ffffff;
}

.btn {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #111111;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
}

.btn:hover { border-color: #eb1000; background: #fff4f2; color: #c80e00; }
.customer-add-btn,
.btn-primary,
.account-workspace .account-table-toolbar .btn-primary {
    border-color: #eb1000 !important;
    background: #eb1000 !important;
    color: #ffffff !important;
}
.customer-add-btn:hover,
.btn-primary:hover,
.account-workspace .account-table-toolbar .btn-primary:hover {
    border-color: #bd0d00 !important;
    background: #bd0d00 !important;
}
.btn-danger { border-color: #eb1000; color: #d60f00; }
.btn-danger:hover { border-color: #111111; background: #111111; color: #ffffff; }

.search-wrapper,
.search-wrapper input,
.add-user-select,
input,
textarea,
select { border-radius: 0 !important; }
.search-wrapper input,
input,
textarea,
select { border-color: #111111 !important; background: #ffffff !important; color: #111111 !important; }
.search-wrapper input:focus,
input:focus,
textarea:focus,
select:focus { border-color: #eb1000 !important; box-shadow: 3px 3px 0 #111111 !important; }

thead th,
.embedded-table thead th {
    height: 42px;
    border-bottom: 2px solid #111111;
    background: #111111;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
}
tbody td,
.embedded-table tbody td { border-bottom: 1px solid #c8c8c5; color: #20201e; font-size: 12px; }
tbody tr:hover td,
.embedded-table tbody tr:hover td { background: #fff4f2; }

.modal-backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: none; }
.modal { border: 2px solid #111111; border-radius: 0; background: #ffffff; box-shadow: 10px 10px 0 #111111; }
.modal-header, .modal-footer { border-color: #111111; border-radius: 0; background: #ffffff; }
.modal-title { color: #111111; font-family: var(--font-mono); }

@media (max-width: 1100px) {
    .sidebar { width: 202px; }
    .main-content { margin-left: 202px; padding: 0 26px 42px; }
    .console-topbar, .view-header { margin: 0 -26px; padding-left: 26px; padding-right: 26px; }
    .customer-card-grid.customer-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .sidebar { width: auto; padding: 14px; }
    .nav-menu { grid-template-columns: 1fr; }
    .main-content { margin-left: 0; padding: 0 14px 30px; }
    .console-topbar, .view-header { min-height: 106px; margin: 0 -14px; padding: 22px 14px; }
    .view-title, .console-topbar .view-title { font-size: 21px; }
    .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; border-width: 2px; }
    .summary-item, .summary-item.danger { min-height: 88px; padding: 12px; }
    .summary-item:nth-child(2) { border-right: 0; }
    .summary-item:nth-child(-n + 2) { border-bottom: 1px solid #111111; }
    .customer-card-grid.customer-home-grid { grid-template-columns: 1fr; }
}

/* Final operational canvas: restore proportion and readable data hierarchy */
:root {
    --page-bg: #f6f8fb;
    --panel: #ffffff;
    --panel-muted: #f8fafc;
    --line: #dde5ee;
    --line-strong: #cfd9e4;
    --ink: #142033;
    --muted: #66788e;
    --blue: #2b6de9;
    --blue-dark: #2056c2;
    --blue-soft: #edf3ff;
    --green: #159b69;
    --red: #e05252;
    --font-sans: "Fira Sans", "Noto Sans SC", sans-serif;
    --font-mono: "Fira Code", monospace;
}

body { background: #f6f8fb; color: var(--ink); font-family: var(--font-sans); }

.sidebar {
    width: 232px;
    padding: 28px 16px 22px;
    background: #ffffff;
    border-right: 1px solid #e1e8f0;
    box-shadow: 12px 0 30px rgba(36, 52, 90, .035);
}

.logo-area { margin: 0 8px 34px; }
.logo-title { color: #142033; font-family: var(--font-sans); font-size: 16px; font-weight: 800; }
.logo-icon, .logo-icon svg { width: 38px; height: 38px; }
.nav-menu { gap: 7px; }

.nav-item {
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #53657a;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 650;
}
.nav-item:hover { background: #f4f7fb; color: #285dc7; }
.nav-item.active { border-color: #d8e4ff; background: #edf3ff; color: #2b6de9; }
.nav-item.active::before { display: block; top: 13px; bottom: 13px; left: -1px; width: 3px; border-radius: 0 3px 3px 0; background: #2b6de9; }
.sidebar-footer { margin: auto 8px 0; border-top-color: #e6ecf2; color: #98a6b6; font-family: var(--font-sans); font-size: 10px; }

.main-content { margin-left: 232px; padding: 34px 40px 50px; }
.console-shell, .view-header { max-width: 1640px; }
.console-topbar, .view-header { min-height: 74px; margin: 0; padding: 0 0 20px; border: 0; background: transparent; }
.view-title, .console-topbar .view-title { color: #142033; font-family: var(--font-sans); font-size: 28px; font-weight: 800; }
.view-subtitle, .console-topbar .view-subtitle { color: #66788e; font-family: var(--font-sans); font-size: 13px; }

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 28px;
    border: 0;
    background: transparent;
}

.summary-item, .summary-item.danger {
    position: relative;
    min-height: 104px;
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 18px 20px;
    border: 1px solid #dde5ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(36, 52, 90, .04);
}
.summary-item::after { display: none; }

.summary-icon,
.summary-item:nth-child(2) .summary-icon,
.summary-item:nth-child(3) .summary-icon,
.summary-item.danger .summary-icon {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    position: relative;
    border: 0;
    border-radius: 50%;
    background: #eeefff;
    color: #5d5cf6;
}
.summary-icon.product { background: #edf4ff; color: #4385f5; }
.summary-icon.valid { background: #e5f9f0; color: #159b69; }
.summary-icon.invalid { background: #fff1e8; color: #f08a24; }
.summary-icon::before, .summary-icon::after { background: none !important; }
.summary-icon.org::before { width: 24px; height: 18px; border: 3px solid #5d5cf6; border-radius: 4px; }
.summary-icon.org::after { width: 30px; height: 8px; border: 3px solid #5d5cf6; border-top: 0; border-radius: 0 0 8px 8px; top: 58%; }
.summary-icon.product::before { width: 24px; height: 24px; border: 3px solid #4385f5; border-radius: 6px; transform: translate(-50%, -50%) rotate(45deg); }
.summary-icon.valid::before { width: 24px; height: 28px; border: 3px solid #159b69; border-radius: 14px 14px 10px 10px; }
.summary-icon.valid::after { width: 12px; height: 7px; border-left: 3px solid #159b69; border-bottom: 3px solid #159b69; transform: translate(-50%, -45%) rotate(-45deg); }
.summary-icon.invalid::before { width: 28px; height: 28px; border: 3px solid #f08a24; border-radius: 50%; }
.summary-icon.invalid::after { width: 4px; height: 18px; border-radius: 99px; background: #f08a24 !important; box-shadow: 0 11px 0 -1px #f08a24; }
.summary-label { align-self: end; color: #5d7087; font-family: var(--font-sans); font-size: 12px; font-weight: 650; text-transform: none; }
.summary-value { align-self: start; color: #142033; font-family: var(--font-sans); font-size: 25px; font-weight: 800; }
.summary-item.danger .summary-value { color: #e05252; }

.customer-picker { margin-bottom: 26px; }
.customer-home-toolbar { justify-content: flex-end; margin: 0 0 12px; }
.customer-card-grid.customer-home-grid { gap: 14px; border: 0; background: transparent; }
.customer-home-card { min-height: 208px; padding: 18px; border: 1px solid #dde5ee; border-radius: 10px; background: #ffffff; box-shadow: 0 5px 18px rgba(36, 52, 90, .04); }
.customer-home-card:hover { border-color: #b8cfff; background: #ffffff; box-shadow: 0 10px 26px rgba(43, 109, 233, .10); }
.customer-home-folder { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #edf3ff; color: #2b6de9; }
.customer-home-name { color: #18283a; font-family: var(--font-sans); font-size: 18px; font-weight: 800; }
.customer-home-total, .customer-home-batch-count { color: #6d8095; font-family: var(--font-sans); font-size: 11px; }
.customer-home-stats { padding: 12px 0; border-color: #e8edf3; }
.customer-home-stat + .customer-home-stat { border-color: #e8edf3; }
.customer-home-stat small { color: #78899b; font-family: var(--font-sans); font-size: 11px; }
.customer-home-stat strong { color: #1d2d40; font-family: var(--font-sans); font-size: 14px; }
.customer-home-enter { padding-top: 13px; color: #2b6de9; font-family: var(--font-sans); font-size: 11px; }

.customer-picker-heading { min-height: 40px; margin-bottom: 10px; border: 0; }
.customer-picker-current { color: #2b6de9; font-family: var(--font-sans); font-size: 12px; }
.customer-picker-back { border-radius: 7px; color: #2b6de9; }
.customer-picker-assign { border-color: #b9c9e5; border-radius: 7px; color: #2b6de9; }
.customer-card-grid.customer-batch-grid { gap: 10px; }
.customer-card { min-height: 100px; border-color: #dde5ee; border-radius: 8px; background: #ffffff; box-shadow: none; }
.customer-card:hover, .customer-card.is-active { border-color: #b8cfff; background: #f4f7ff; box-shadow: inset 3px 0 0 #2b6de9; }
.customer-card-name { color: #18283a; font-family: var(--font-sans); font-size: 13px; }
.customer-card-counts { color: #455d78; font-family: var(--font-sans); font-size: 11px; }
.customer-card-footer { color: #718398; font-family: var(--font-sans); font-size: 10px; }

.workspace-panel.simple-workspace, .table-card { border: 1px solid #dde5ee; border-radius: 10px; background: #ffffff; box-shadow: 0 8px 24px rgba(36, 52, 90, .045); }
.simple-workspace .panel-heading, .account-workspace .panel-heading { min-height: 76px; padding: 18px 20px; border-bottom-color: #e5ebf1; border-radius: 10px 10px 0 0; background: #ffffff; }

.btn { height: 36px; min-height: 36px; padding: 0 13px; border-color: #cbd7e4; border-radius: 7px; background: #ffffff; color: #3c5269; font-family: var(--font-sans); font-size: 12px; font-weight: 700; }
.btn:hover { border-color: #a8bce0; background: #f4f7ff; color: #285bc4; }
.customer-add-btn, .btn-primary, .account-workspace .account-table-toolbar .btn-primary { border-color: #2b6de9 !important; background: #2b6de9 !important; color: #ffffff !important; }
.customer-add-btn:hover, .btn-primary:hover, .account-workspace .account-table-toolbar .btn-primary:hover { border-color: #2056c2 !important; background: #2056c2 !important; }
.btn-danger { border-color: #f2c3c0; background: #ffffff; color: #c74442; }
.btn-danger:hover { border-color: #e8928d; background: #fff5f4; color: #b53a38; }

.search-wrapper, .search-wrapper input, .add-user-select, input, textarea, select { border-radius: 7px !important; }
.search-wrapper input, input, textarea, select { border-color: #ccd7e2 !important; background: #ffffff !important; color: #26394d !important; }
.search-wrapper input:focus, input:focus, textarea:focus, select:focus { border-color: #2b6de9 !important; box-shadow: 0 0 0 3px rgba(43, 109, 233, .12) !important; }

thead th, .embedded-table thead th { height: 44px; border-bottom: 1px solid #e1e8ef; background: #f6f8fb; color: #5a6d82; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0; }
tbody td, .embedded-table tbody td { border-bottom-color: #e8edf3; color: #32475d; font-size: 12px; }
tbody tr:hover td, .embedded-table tbody tr:hover td { background: #f7faff; }

.modal-backdrop { background: rgba(28, 44, 61, .34); backdrop-filter: blur(5px); }
.modal { border: 1px solid #d9e3ec; border-radius: 10px; background: #ffffff; box-shadow: 0 22px 64px rgba(25, 47, 69, .20); }
.modal-header, .modal-footer { border-color: #e3eaf0; border-radius: 0; background: #f8fafc; }
.modal-title { color: #17283a; font-family: var(--font-sans); }

@media (max-width: 1100px) {
    .sidebar { width: 214px; }
    .main-content { margin-left: 214px; padding: 30px 26px 44px; }
}
@media (max-width: 760px) {
    .sidebar { width: auto; padding: 16px; }
    .main-content { margin-left: 0; padding: 22px 14px 34px; }
    .dashboard-summary { gap: 8px; }
    .summary-item, .summary-item.danger { border-radius: 10px; }
}
