:root {
    --mcp-bg: #eef1f5;
    --mcp-surface: #ffffff;
    --mcp-surface-soft: #f7f9fc;
    --mcp-sidebar: #f7f8fb;
    --mcp-rail: #233448;
    --mcp-rail-hover: #2e435a;
    --mcp-text: #2a2e35;
    --mcp-muted: #7f8896;
    --mcp-border: #e2e7ef;
    --mcp-primary: #1f91ff;
    --mcp-primary-soft: #e8f3ff;
    --mcp-success: #7ac943;
    --mcp-warning: #ffb020;
    --mcp-danger: #f05d5e;
    --mcp-shadow: 0 10px 30px rgba(37, 55, 77, 0.08);
    --mcp-radius: 18px;
    --mcp-font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--mcp-font);
    background: var(--mcp-bg);
    color: var(--mcp-text);
}

body.mcp-screen-app {
    min-height: 100vh;
}

body.mcp-screen-login {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 18%, rgba(31, 145, 255, 0.16), transparent 26%),
        radial-gradient(circle at 78% 20%, rgba(122, 201, 67, 0.16), transparent 24%),
        radial-gradient(circle at 70% 78%, rgba(255, 176, 32, 0.18), transparent 28%),
        linear-gradient(180deg, #eef3f9 0%, #e8eef6 100%);
}

.mcp-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
    gap: 32px;
    align-items: center;
    padding: 42px;
}

.mcp-brand-panel {
    display: grid;
    gap: 28px;
    align-content: center;
}

.mcp-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(46, 67, 90, 0.12);
}

.mcp-brand-chip-text {
    display: grid;
    gap: 4px;
}

.mcp-brand-chip-text strong {
    font-size: 16px;
}

.mcp-brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1173d8, #55b5ff);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(17, 115, 216, 0.3);
}

.mcp-brand-copy {
    max-width: 760px;
    display: grid;
    gap: 16px;
}

.mcp-brand-copy h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.mcp-eyebrow {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #607186;
    font-weight: 700;
}

.mcp-brand-text {
    margin: 0;
    max-width: 680px;
    color: #596675;
    font-size: 20px;
    line-height: 1.6;
}

.mcp-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
}

.mcp-brand-info-card {
    display: grid;
    gap: 10px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 44px rgba(46, 67, 90, 0.1);
}

.mcp-brand-info-card span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6f7d8d;
    font-weight: 700;
}

.mcp-brand-info-card strong {
    font-size: 20px;
    line-height: 1.2;
}

.mcp-brand-info-card p {
    margin: 0;
    color: #5f6d7b;
    line-height: 1.55;
}

.mcp-login-panel {
    display: flex;
    justify-content: center;
}

.mcp-login-card {
    width: min(100%, 440px);
    padding: 28px 28px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(28, 45, 66, 0.16);
}

.mcp-login-card-header {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.mcp-login-card h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.mcp-login-subtitle {
    margin: 0;
    color: #647282;
    line-height: 1.55;
}

.mcp-login-card .mcp-field {
    gap: 8px;
}

.mcp-login-card .mcp-field span {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: #758396;
}

.mcp-login-card .mcp-field input {
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    border-color: #d9e2ee;
    background: rgba(255, 255, 255, 0.92);
}

.mcp-login-card .mcp-field input:focus {
    outline: none;
    border-color: #72b6ff;
    box-shadow: 0 0 0 4px rgba(31, 145, 255, 0.14);
}

.mcp-login-actions {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.mcp-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #566475;
}

.mcp-checkbox input {
    width: 18px;
    height: 18px;
}

.mcp-login-submit {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 20px 36px rgba(31, 145, 255, 0.24);
}

.mcp-login-footer {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--mcp-border);
    color: #6f7d8d;
    font-size: 14px;
}

.mcp-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.mcp-app-rail {
    display: none;
}

.mcp-rail-top,
.mcp-rail-bottom {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.mcp-rail-logo,
.mcp-rail-avatar,
.mcp-rail-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.mcp-rail-logo {
    border: 2px solid rgba(148, 182, 255, 0.7);
    font-weight: 800;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.mcp-rail-avatar {
    background: linear-gradient(135deg, #6dd4ff, #7a7cff);
    font-weight: 700;
}

.mcp-rail-icon {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font: inherit;
}

.mcp-rail-icon.is-active,
.mcp-rail-icon:hover,
.mcp-rail-home.is-active,
.mcp-rail-home:hover {
    background: var(--mcp-rail-hover);
}

.mcp-sidebar {
    background: #fff;
    border-right: 1px solid #edf1f5;
    padding: 20px 0 18px;
    display: grid;
    align-content: start;
    gap: 18px;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.04);
}

.mcp-sidebar-brand,
.mcp-sidebar-search,
.mcp-sidebar-section,
.mcp-logout-link {
    padding-left: 24px;
    padding-right: 24px;
}

.mcp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f3f7;
}

.mcp-sidebar-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4776ff 0%, #6ab8ff 100%);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 16px 30px rgba(71, 118, 255, 0.24);
}

.mcp-sidebar-brand-copy {
    display: grid;
    gap: 3px;
}

.mcp-sidebar-brand h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mcp-sidebar-brand p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

.mcp-sidebar-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
    font: inherit;
}

.mcp-sidebar-section {
    display: grid;
    gap: 10px;
}

.mcp-sidebar-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #9aa4b2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mcp-sidebar-list {
    display: grid;
    gap: 6px;
}

.mcp-sidebar-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: transparent;
    color: var(--mcp-text);
    font-size: 14px;
}

.mcp-sidebar-list-item:hover {
    background: #f6f9fc;
}

.mcp-sidebar-list-item-bullet {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #7cb6ff;
    flex: 0 0 auto;
}

.mcp-navigation {
    display: grid;
    gap: 8px;
}

.mcp-nav-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #3b4554;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mcp-nav-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
    color: #7b8797;
    font-size: 16px;
}

.mcp-nav-item strong {
    font-size: 15px;
    font-weight: 700;
}

.mcp-nav-item.is-active,
.mcp-nav-item:hover {
    background: #eef3ff;
    color: #335de6;
}

.mcp-nav-item.is-active .mcp-nav-item-icon,
.mcp-nav-item:hover .mcp-nav-item-icon {
    background: #dfe9ff;
    color: #335de6;
    box-shadow: inset 0 0 0 1px rgba(51, 93, 230, 0.1);
}

.mcp-sidebar-quick-actions {
    display: grid;
    gap: 10px;
}

.mcp-sidebar-quick-action {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid #e6edf5;
    background: #fff;
    text-align: left;
    color: #445064;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mcp-sidebar-quick-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.mcp-sidebar-quick-action.is-primary {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #2563eb;
}

.mcp-sidebar-quick-action.is-success {
    border-color: #dcfce7;
    background: #f0fdf4;
    color: #15803d;
}

.mcp-sidebar-quick-action.is-danger {
    border-color: #fee2e2;
    background: #fff5f5;
    color: #dc2626;
}

.mcp-sidebar-quick-action.is-warning {
    border-color: #fde68a;
    background: #fff9eb;
    color: #b45309;
}

.mcp-logout-link {
    margin-top: auto;
    color: var(--mcp-muted);
    text-decoration: none;
    font-weight: 600;
}

.mcp-main {
    padding: 22px 24px 24px;
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
}

.mcp-mobile-nav {
    display: none;
}

.mcp-mobile-nav-button {
    border: 0;
    background: transparent;
    color: #697586;
    font: inherit;
    cursor: pointer;
}

.mcp-workspace-header,
.mcp-view-tabs,
.mcp-toolbar,
.mcp-card {
    background: var(--mcp-surface);
    border: 1px solid var(--mcp-border);
    box-shadow: var(--mcp-shadow);
}

.mcp-workspace-header {
    padding: 16px 20px;
    border-radius: 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 78px;
}

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

.mcp-header-actions-dashboard {
    margin-left: auto;
}

.mcp-header-action-button {
    min-width: 160px;
    padding: 12px 14px;
    border: 1px solid var(--mcp-border);
    border-radius: 16px;
    background: var(--mcp-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: inherit;
    cursor: pointer;
}

.mcp-header-action-button strong {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mcp-header-action-button strong.is-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.mcp-workspace-headline {
    display: none;
}

.mcp-project-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9b8cff, #6bc2ff);
    font-size: 24px;
}

.mcp-workspace-kicker,
.mcp-card-header span,
.mcp-user-badge-label {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mcp-muted);
}

.mcp-workspace-header h2,
.mcp-card-header h3 {
    margin: 0;
}

.mcp-workspace-header h2 {
    font-size: 24px;
}

.mcp-user-badge {
    min-width: 210px;
    padding: 10px 12px;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.mcp-user-badge-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2f80ed, #6fc3ff);
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}

.mcp-user-badge-copy {
    display: grid;
    gap: 2px;
}

.mcp-user-badge strong {
    font-size: 15px;
    line-height: 1.1;
}

.mcp-user-badge-copy span {
    color: #8b96a7;
    font-size: 12px;
    line-height: 1.2;
}

.mcp-main > .mcp-view-tabs {
    display: none;
}

.mcp-header-filter-button,
.mcp-header-icon-button {
    min-height: 46px;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.mcp-header-filter-button {
    min-width: 186px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.mcp-header-filter-button i,
.mcp-header-icon-button i {
    font-style: normal;
    color: #64748b;
}

.mcp-header-icon-button {
    width: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mcp-header-icon-button strong {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

.mcp-section-panel[data-section-panel="dashboard"] {
    position: relative;
}

.mcp-dashboard-filters-panel {
    position: absolute;
    top: -6px;
    right: 0;
    z-index: 25;
    width: min(100%, 760px);
    padding: 18px;
    border-radius: 24px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
}

.mcp-dashboard-filters-panel.is-hidden {
    display: none;
}

.mcp-dashboard-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.mcp-dashboard-filters-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.mcp-dashboard-filters-panel .mcp-field {
    margin: 0;
}

.mcp-dashboard-filters-panel .mcp-view-tabs-inline {
    margin: 0;
    min-height: 50px;
    padding: 4px;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: none;
}

.mcp-dashboard-filters-panel .mcp-planning-tab {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 12px;
}

.mcp-dashboard-filters-panel .mcp-planning-tab.is-active {
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mcp-view-tab {
    border: 0;
    background: transparent;
    color: #5b6470;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    min-height: 54px;
    border-bottom: 3px solid transparent;
}

.mcp-view-tab.is-active {
    color: var(--mcp-text);
    border-bottom-color: #1f2328;
}

.mcp-toolbar {
    padding: 12px 18px;
    border-radius: 18px;
}

.mcp-toolbar-stats {
    display: block;
}

.mcp-stat {
    padding: 4px 18px;
    border-right: 1px solid var(--mcp-border);
}

.mcp-stat:last-child {
    border-right: 0;
}

.mcp-stat span {
    display: block;
    font-size: 12px;
    color: var(--mcp-muted);
    margin-bottom: 6px;
}

.mcp-stat strong {
    font-size: 28px;
}

.mcp-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 56%, #fff7f7 100%);
    border: 1px solid #d9e5f3;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.mcp-dashboard-hero.is-alert {
    border-color: rgba(239, 68, 68, 0.16);
}

.mcp-dashboard-hero-main,
.mcp-dashboard-hero-side {
    display: grid;
    gap: 14px;
}

.mcp-dashboard-hero-kicker {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.mcp-dashboard-hero h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 0.98;
}

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

.mcp-hero-metric,
.mcp-dashboard-hero-status,
.mcp-dashboard-action-card,
.mcp-dashboard-blocker-card,
.mcp-dashboard-overload-row {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-align: left;
    color: #1e1e1e;
}

.mcp-hero-metric {
    padding: 14px 16px;
    display: grid;
    gap: 8px;
    cursor: pointer;
}

.mcp-hero-metric span {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 800;
}

.mcp-hero-metric strong {
    font-size: 34px;
    line-height: 1;
}

.mcp-hero-metric.is-danger {
    background: #fee2e2;
    border-color: rgba(239, 68, 68, 0.24);
    color: #991b1b;
}

.mcp-hero-metric.is-warning {
    background: #fef3c7;
    border-color: rgba(245, 158, 11, 0.26);
    color: #92400e;
}

.mcp-hero-metric.is-success {
    background: #dcfce7;
    border-color: rgba(34, 197, 94, 0.2);
    color: #166534;
}

.mcp-hero-metric.is-primary {
    background: #dbeafe;
    border-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.mcp-hero-metric.is-neutral {
    background: #f3f4f6;
    color: #374151;
}

.mcp-dashboard-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mcp-dashboard-hero-status {
    padding: 14px 16px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.mcp-dashboard-hero-status span {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
}

.mcp-dashboard-hero-status strong {
    font-size: 28px;
    line-height: 1;
}

.mcp-dashboard-hero-status.is-empty {
    background: #f9fafb;
}

.mcp-dashboard-hero-status em {
    color: #6b7280;
    font-style: normal;
    font-size: 13px;
}

.mcp-card-header-tight {
    margin-bottom: 14px;
}

.mcp-dashboard-attention {
    display: grid;
    gap: 14px;
}

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

.mcp-dashboard-attention-card {
    border: 1px solid var(--mcp-border);
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.mcp-dashboard-attention-card small {
    display: block;
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mcp-dashboard-attention-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 6px;
}

.mcp-dashboard-attention-card p {
    margin: 0;
    color: var(--mcp-muted);
    font-size: 13px;
    line-height: 1.35;
}

.mcp-dashboard-attention-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    background: rgba(255,255,255,0.85);
}

.mcp-dashboard-attention-card.is-danger {
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

.mcp-dashboard-attention-card.is-warning {
    background: linear-gradient(180deg, #fff9ef 0%, #fff 100%);
}

.mcp-dashboard-attention-card.is-warning-soft {
    background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
}

.mcp-dashboard-attention-card.is-primary {
    background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%);
}

.mcp-dashboard-attention-card.is-success {
    background: linear-gradient(180deg, #f2fcf5 0%, #fff 100%);
}

.mcp-dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

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

.mcp-dashboard-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.mcp-dashboard-filter-left,
.mcp-dashboard-filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mcp-dashboard-widget {
    padding: 18px;
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mcp-dashboard-widget span {
    display: block;
    margin-bottom: 10px;
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mcp-dashboard-widget strong {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1;
}

.mcp-dashboard-widget p {
    margin: 0;
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-dashboard-widget-primary {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.mcp-dashboard-widget-success {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
}

.mcp-dashboard-widget-warning {
    background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
}

.mcp-dashboard-widget-danger {
    background: linear-gradient(180deg, #ffffff 0%, #fff4f4 100%);
}

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

.mcp-dashboard-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.mcp-dashboard-reference-card {
    min-height: 320px;
    width: 100%;
    min-width: 0;
}

.mcp-finance-hero-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.mcp-finance-hero-card {
    min-height: 208px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid #e5edf5;
    background: #fff;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
        "icon body"
        "chart chart";
    gap: 18px 20px;
    align-items: start;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.mcp-finance-hero-card-icon {
    grid-area: icon;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    font-size: 24px;
    font-weight: 800;
}

.mcp-finance-hero-card span {
    display: block;
    margin-bottom: 10px;
    color: #8793a5;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.mcp-finance-hero-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.mcp-finance-hero-card p {
    margin: 0;
    color: #667387;
    line-height: 1.45;
    max-width: 24ch;
}

.mcp-finance-hero-card-body {
    grid-area: body;
    display: grid;
    gap: 4px;
    align-content: start;
    min-width: 0;
}

.mcp-finance-hero-card-chart {
    grid-area: chart;
    width: 100%;
    align-self: end;
    justify-self: stretch;
    margin-top: 4px;
}

.mcp-finance-sparkline {
    width: 100%;
    height: 56px;
}

.mcp-finance-hero-card-meta {
    margin-top: 10px;
    display: grid;
    gap: 2px;
    max-width: 24ch;
}

.mcp-finance-hero-card-meta em {
    font-style: normal;
    font-weight: 800;
    font-size: 14px;
}

.mcp-finance-hero-card-meta small {
    color: #94a3b8;
    font-size: 12px;
}

.mcp-finance-hero-card-meta.is-positive em {
    color: #22c55e;
}

.mcp-finance-hero-card-meta.is-negative em {
    color: #ef4444;
}

.mcp-finance-hero-card.is-success {
    background: linear-gradient(180deg, #f2fcf5 0%, #fff 100%);
}

.mcp-finance-hero-card.is-success .mcp-finance-hero-card-icon {
    color: #22c55e;
}

.mcp-finance-hero-card.is-danger {
    background: linear-gradient(180deg, #fff4f4 0%, #fff 100%);
}

.mcp-finance-hero-card.is-danger .mcp-finance-hero-card-icon {
    color: #ef4444;
}

.mcp-finance-hero-card.is-success-soft {
    background: linear-gradient(180deg, #f4fff8 0%, #fff 100%);
}

.mcp-finance-hero-card.is-success-soft .mcp-finance-hero-card-icon {
    color: #22c55e;
}

.mcp-finance-hero-card.is-primary {
    background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%);
}

.mcp-finance-hero-card.is-primary .mcp-finance-hero-card-icon {
    color: #4f7cff;
}

.mcp-finance-hero-card.is-warning {
    background: linear-gradient(180deg, #fff8eb 0%, #fff 100%);
}

.mcp-finance-hero-card.is-warning .mcp-finance-hero-card-icon {
    color: #f59e0b;
}

.mcp-finance-reference-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    gap: 18px;
}

.mcp-finance-reference-grid .mcp-dashboard-panel,
.mcp-finance-reference-grid .mcp-dashboard-reference-card {
    min-height: 332px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.mcp-finance-reference-grid .mcp-card-header {
    align-items: center;
    margin-bottom: 8px;
}

.mcp-finance-card-distribution,
.mcp-finance-card-trend,
.mcp-finance-card-top,
.mcp-finance-card-negative,
.mcp-finance-card-roi,
.mcp-finance-card-projects,
.mcp-finance-card-value-balance,
.mcp-finance-card-statuses,
.mcp-finance-card-payments {
    grid-column: span 4;
}

.mcp-finance-card-table {
    grid-column: 1 / -1;
}

.mcp-finance-card-top .mcp-dashboard-table-list,
.mcp-finance-card-projects .mcp-dashboard-table-list,
.mcp-finance-card-negative .mcp-dashboard-table-list {
    display: grid;
    gap: 0;
}

.mcp-finance-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf1f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #7b8797;
    font-weight: 700;
}

.mcp-finance-card-footer strong {
    color: #22c55e;
    font-size: 26px;
}

.mcp-value-type-list {
    display: grid;
    gap: 10px;
}

.mcp-value-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
}

.mcp-value-type-row:last-child {
    border-bottom: 0;
}

.mcp-value-type-row > div {
    display: grid;
    gap: 2px;
}

.mcp-value-type-row strong {
    font-size: 15px;
}

.mcp-value-type-row span {
    color: #94a3b8;
    font-size: 13px;
}

.mcp-value-type-row em {
    font-style: normal;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.mcp-finance-task-row {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
}

.mcp-finance-task-row:last-child {
    border-bottom: 0;
}

.mcp-finance-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5b942;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.mcp-finance-task-row:nth-child(2) .mcp-finance-rank {
    background: #cbd5e1;
    color: #475569;
}

.mcp-finance-task-row:nth-child(3) .mcp-finance-rank {
    background: #f4b255;
    color: #fff;
}

.mcp-finance-task-row:nth-child(n+4) .mcp-finance-rank {
    background: #dbeafe;
    color: #2563eb;
}

.mcp-finance-task-row.is-negative .mcp-finance-rank {
    background: #fee2e2;
    color: #ef4444;
}

.mcp-finance-task-row-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.mcp-finance-task-row-body strong {
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mcp-finance-task-row-body span {
    color: #8b96a7;
    font-size: 12px;
}

.mcp-finance-effect-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    width: fit-content;
    padding: 0 10px;
    border-radius: 999px;
    background: #eefaf1;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.mcp-finance-effect-tag.is-subtle {
    background: #f2f6fb;
    color: #64748b;
}

.mcp-finance-roi-badge {
    min-width: 74px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ebfdf0;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 800;
}

.mcp-finance-roi-badge.is-negative {
    background: #fff1f1;
    color: #dc2626;
}

.mcp-finance-positive {
    color: #16a34a;
}

.mcp-finance-negative {
    color: #dc2626;
}

.mcp-finance-roi-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: center;
}

.mcp-finance-gauge {
    position: relative;
    min-height: 210px;
    display: grid;
    align-items: end;
    justify-items: center;
}

.mcp-finance-gauge-arc {
    width: 250px;
    height: 125px;
    border-radius: 250px 250px 0 0;
    background:
        radial-gradient(circle at 50% 100%, #fff 0 58%, transparent 59%),
        conic-gradient(from 180deg, #22c55e 0deg, #22c55e var(--mcp-finance-angle), #e9eef4 var(--mcp-finance-angle), #e9eef4 180deg);
}

.mcp-finance-gauge-center {
    position: absolute;
    bottom: 30px;
    display: grid;
    gap: 6px;
    text-align: center;
}

.mcp-finance-gauge-center strong {
    font-size: 50px;
    line-height: 1;
    color: #16a34a;
}

.mcp-finance-gauge-center span,
.mcp-finance-gauge-scale {
    color: #8b96a7;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mcp-finance-gauge-scale {
    width: 250px;
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.mcp-finance-roi-metrics {
    display: grid;
    gap: 14px;
}

.mcp-finance-roi-metrics div {
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid #edf1f5;
    background: #fafcff;
}

.mcp-finance-roi-metrics span {
    display: block;
    margin-bottom: 6px;
    color: #8b96a7;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.mcp-finance-project-result {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f5;
}

.mcp-finance-project-result:last-child {
    border-bottom: 0;
}

.mcp-finance-project-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mcp-finance-project-result-head strong {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mcp-finance-project-result-head strong span:last-child,
.mcp-finance-project-result-head strong {
    overflow-wrap: anywhere;
}

.mcp-finance-project-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: #f3f6fb;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mcp-finance-project-result-bar {
    height: 10px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.mcp-finance-project-result-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.mcp-finance-project-result-bar span.is-positive {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.mcp-finance-project-result-bar span.is-negative {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.mcp-finance-recommendations {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mcp-finance-recommendations p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e8eef5;
    background: #f8fbff;
    color: #526175;
    line-height: 1.5;
}

.mcp-finance-table-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mcp-finance-info-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #dbe4ef;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
}

.mcp-finance-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    background: #eff6ff;
    color: #2563eb;
}

.mcp-finance-status-pill.is-success {
    background: #ecfdf3;
    color: #16a34a;
}

.mcp-finance-status-pill.is-primary {
    background: #eef4ff;
    color: #2563eb;
}

.mcp-finance-payment-row {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
}

.mcp-finance-payment-row:last-child {
    border-bottom: 0;
}

.mcp-finance-payment-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mcp-finance-payment-row-head strong {
    font-size: 15px;
    line-height: 1.3;
}

.mcp-finance-payment-row-head em {
    color: #0f172a;
    font-style: normal;
    font-weight: 800;
}

.mcp-finance-payment-row-meta {
    display: grid;
    gap: 4px;
    color: #64748b;
    font-size: 13px;
}

.mcp-finance-table-filter {
    min-width: 170px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e5edf5;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    color: #475569;
}

.mcp-section-panel[data-section-panel="finance"] {
    position: relative;
    display: grid;
    gap: 16px;
}

.mcp-section-panel[data-section-panel="finance"].is-hidden {
    display: none;
}

#mcp-finance-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.mcp-finance-filters-panel {
    position: absolute;
    top: -6px;
    right: 0;
    z-index: 25;
    width: min(100%, 620px);
    padding: 18px;
    border-radius: 24px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
}

.mcp-finance-filters-panel .mcp-dashboard-filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mcp-finance-filters-panel .mcp-dashboard-filters-actions {
    align-self: end;
}

.mcp-finance-filters-panel .mcp-button {
    min-width: 132px;
}

.mcp-dashboard-ring-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}

.mcp-dashboard-ring-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

.mcp-dashboard-ring-wrap .mcp-project-donut {
    width: 220px;
    height: 220px;
}

.mcp-dashboard-ring-wrap .mcp-project-donut::after {
    inset: 42px;
}

.mcp-dashboard-ring-center {
    position: absolute;
    display: grid;
    gap: 4px;
    text-align: center;
}

.mcp-dashboard-ring-center strong {
    font-size: 42px;
    line-height: 1;
}

.mcp-dashboard-ring-center span {
    color: var(--mcp-muted);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
}

.mcp-dashboard-legend-list {
    display: grid;
    gap: 10px;
}

.mcp-dashboard-legend-item {
    border: 0;
    background: transparent;
    padding: 0;
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.mcp-dashboard-legend-item em {
    color: var(--mcp-muted);
    font-style: normal;
    font-size: 13px;
}

.mcp-dashboard-people-list,
.mcp-dashboard-deadline-list,
.mcp-dashboard-activity-list,
.mcp-dashboard-recommendation-stack {
    display: grid;
    gap: 12px;
}

.mcp-dashboard-person-row,
.mcp-dashboard-deadline-row,
.mcp-dashboard-activity-row {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.mcp-dashboard-person-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}

.mcp-dashboard-person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #1d4ed8;
}

.mcp-dashboard-person-body {
    display: grid;
    gap: 8px;
}

.mcp-dashboard-person-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--mcp-muted);
    font-size: 13px;
}

.mcp-dashboard-person-badge {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.mcp-dashboard-person-badge.is-success {
    background: #dcfce7;
    color: #166534;
}

.mcp-dashboard-person-badge.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.mcp-dashboard-person-badge.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.mcp-dashboard-person-bar {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.mcp-dashboard-person-bar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22C55E 0%, #3B82F6 55%, #EF4444 100%);
}

.mcp-dashboard-deadline-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.mcp-dashboard-deadline-date {
    display: grid;
    justify-items: center;
    gap: 2px;
}

.mcp-dashboard-deadline-date strong {
    font-size: 28px;
    line-height: 1;
}

.mcp-dashboard-deadline-date span,
.mcp-dashboard-deadline-body span,
.mcp-dashboard-deadline-side em {
    color: var(--mcp-muted);
    font-style: normal;
    font-size: 12px;
}

.mcp-dashboard-deadline-body {
    display: grid;
    gap: 4px;
}

.mcp-dashboard-deadline-side {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.mcp-dashboard-severity {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.mcp-dashboard-severity.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.mcp-dashboard-severity.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.mcp-dashboard-severity.is-neutral {
    background: #f3f4f6;
    color: #374151;
}

.mcp-dashboard-recommendation-inline {
    border: 1px solid var(--mcp-border);
    border-radius: 16px;
    padding: 14px 16px;
    display: grid;
    gap: 6px;
    text-align: left;
    cursor: pointer;
}

.mcp-dashboard-recommendation-inline-warning {
    background: linear-gradient(180deg, #fff9ef 0%, #fff 100%);
}

.mcp-dashboard-recommendation-inline-danger {
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

.mcp-dashboard-recommendation-inline-neutral {
    background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%);
}

.mcp-dashboard-recommendation-inline span {
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-dashboard-recommendation-inline em {
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
}

.mcp-dashboard-efficiency-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.mcp-dashboard-efficiency-kpis div {
    border-top: 1px solid #eef2f7;
    padding-top: 10px;
    display: grid;
    gap: 4px;
}

.mcp-dashboard-efficiency-kpis span {
    color: var(--mcp-muted);
    font-size: 12px;
}

.mcp-dashboard-efficiency-kpis strong {
    font-size: 24px;
    line-height: 1;
}

.mcp-dashboard-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #eef2f7;
}

.mcp-dashboard-activity-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcp-dashboard-activity-row em {
    font-style: normal;
    font-weight: 800;
    color: #2563eb;
}

.mcp-dashboard-activity-icon {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.mcp-dashboard-activity-icon.is-primary { background: #3B82F6; }
.mcp-dashboard-activity-icon.is-success { background: #22C55E; }
.mcp-dashboard-activity-icon.is-warning { background: #F59E0B; }
.mcp-dashboard-activity-icon.is-danger { background: #EF4444; }

.mcp-project-workspace {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.mcp-project-workspace-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.mcp-project-workspace-stat {
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #f9fbff;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.mcp-project-workspace-stat span {
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mcp-project-workspace-stat strong {
    font-size: 18px;
    line-height: 1.15;
}

.mcp-project-workspace .mcp-card-header {
    margin-bottom: 2px;
}

.mcp-project-workspace .mcp-card-header h3 {
    font-size: 24px;
}

.mcp-project-workspace .mcp-card-header span {
    font-size: 13px;
}

.mcp-project-workspace-tabs {
    gap: 8px;
    padding-bottom: 2px;
}

.mcp-project-workspace-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--mcp-border);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.mcp-project-workspace-tab.is-active {
    background: #eef4ff;
    border-color: #cfe0ff;
    color: var(--mcp-primary);
}

.mcp-project-workspace-view {
    border-top: 1px solid var(--mcp-border);
    padding-top: 14px;
}

.mcp-project-workspace-view.is-hidden {
    display: none;
}

.mcp-project-gantt-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mcp-project-gantt-tabs {
    margin: 0;
    min-height: auto;
    padding: 0;
}

.mcp-project-gantt-tab {
    border: 0;
    background: transparent;
    color: var(--mcp-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
}

.mcp-project-gantt-tab.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: var(--mcp-text);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mcp-project-gantt-range {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mcp-project-raci-panel {
    margin-bottom: 14px;
}

.mcp-project-raci-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mcp-project-raci-grid div {
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.mcp-project-raci-grid strong {
    font-size: 12px;
    color: var(--mcp-muted);
    text-transform: uppercase;
}

.mcp-project-map {
    display: flex;
    gap: 12px;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 6px;
}

.mcp-project-map-lane {
    display: flex;
    align-items: stretch;
}

.mcp-project-map-node {
    min-width: 260px;
    max-width: 260px;
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.mcp-project-map-stage {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--mcp-primary);
}

.mcp-project-map-node p {
    margin: 0;
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-project-map-meta {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--mcp-text);
}

.mcp-project-map-arrow {
    display: flex;
    align-items: center;
    color: var(--mcp-muted);
    font-size: 28px;
    font-weight: 700;
}

.mcp-project-tree {
    display: grid;
    gap: 12px;
}

.mcp-project-tree-node {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: start;
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}

.mcp-project-tree-order {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #eef4ff;
    color: var(--mcp-primary);
    font-size: 22px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mcp-project-tree-content {
    display: grid;
    gap: 8px;
}

.mcp-project-tree-content p {
    margin: 0;
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-project-tree-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mcp-project-tree-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5f8fc;
    font-size: 12px;
    color: var(--mcp-text);
}

.mcp-project-gantt-board {
    display: grid;
    gap: 12px;
}

.mcp-project-gantt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mcp-project-gantt-toolbar strong {
    font-size: 15px;
}

.mcp-project-gantt-toolbar span {
    color: var(--mcp-muted);
    font-size: 13px;
}

.mcp-project-gantt-layout {
    --mcp-gantt-day-width: 56px;
    --mcp-gantt-row-height: 88px;
    --mcp-gantt-bar-min-width: 118px;
    --mcp-gantt-left-width: 900px;
    display: grid;
    grid-template-columns: var(--mcp-gantt-left-width) minmax(720px, 1fr);
    overflow-x: auto;
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: #fff;
}

.mcp-project-gantt-board-week .mcp-project-gantt-layout {
    grid-template-columns: var(--mcp-gantt-left-width) max-content;
}

.mcp-project-gantt-left {
    position: sticky;
    left: 0;
    z-index: 6;
    width: var(--mcp-gantt-left-width);
    min-width: var(--mcp-gantt-left-width);
    overflow: hidden;
    border-right: 1px solid var(--mcp-border);
    background: #fff;
    box-shadow: 12px 0 24px rgba(15, 23, 42, 0.04);
}

.mcp-project-gantt-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 2px;
    height: 100%;
    background: #d7dfec;
    box-shadow: 8px 0 16px rgba(15, 23, 42, 0.06);
    pointer-events: none;
}

.mcp-project-gantt-left-month-spacer {
    min-height: 46px;
    border-bottom: 1px solid var(--mcp-border);
    background: #fff;
}

.mcp-project-gantt-left-head,
.mcp-project-gantt-left-row {
    display: grid;
    grid-template-columns: 84px minmax(320px, 1fr) 170px 180px;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    box-sizing: border-box;
}

.mcp-project-gantt-left-head {
    min-height: 58px;
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid var(--mcp-border);
    background: #f8fbff;
}

.mcp-project-gantt-left-head span,
.mcp-project-gantt-left-row span,
.mcp-project-gantt-left-row strong {
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcp-project-gantt-left-row + .mcp-project-gantt-left-row {
    border-top: 1px solid var(--mcp-border);
}

.mcp-project-gantt-left-row {
    min-height: var(--mcp-gantt-row-height);
}

.mcp-project-gantt-left-row span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcp-project-gantt-left-head span {
    white-space: normal;
    overflow: visible;
    line-height: 1.1;
}

.mcp-project-gantt-left-head span:nth-child(3),
.mcp-project-gantt-left-head span:nth-child(4),
.mcp-project-gantt-left-row span:nth-child(3),
.mcp-project-gantt-left-row span:nth-child(4) {
    text-align: left;
    white-space: nowrap;
}

.mcp-project-gantt-left-head span:nth-child(4),
.mcp-project-gantt-left-row span:nth-child(4) {
    padding-right: 20px;
}

.mcp-project-gantt-left-title {
    display: grid;
    gap: 4px;
}

.mcp-project-gantt-left-title span {
    color: var(--mcp-muted);
    font-size: 13px;
}

.mcp-project-gantt-right {
    overflow-x: auto;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px) 0 0 / var(--mcp-gantt-day-width) 100%;
}

.mcp-project-gantt-board-week .mcp-project-gantt-right {
    width: fit-content;
}

.mcp-project-gantt-month {
    padding: 10px 16px 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: lowercase;
    min-height: 46px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--mcp-border);
    background: #fff;
}

.mcp-project-gantt-right-head,
.mcp-project-gantt-right-row {
    display: grid;
    position: relative;
    min-width: 720px;
    box-sizing: border-box;
}

.mcp-project-gantt-board-week .mcp-project-gantt-right-head,
.mcp-project-gantt-board-week .mcp-project-gantt-right-row {
    min-width: 0;
}

.mcp-project-gantt-right-head {
    border-bottom: 1px solid var(--mcp-border);
    background: #f8fbff;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.mcp-project-gantt-right::before {
    content: "";
    position: sticky;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--mcp-border);
    z-index: 4;
    display: block;
    pointer-events: none;
}

.mcp-project-gantt-day {
    min-height: 58px;
    padding: 10px 4px;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    place-items: center;
    text-align: center;
}

.mcp-project-gantt-day strong {
    font-size: 12px;
}

.mcp-project-gantt-day.is-weekend {
    background: rgba(15, 23, 42, 0.035);
}

.mcp-project-gantt-day span {
    color: var(--mcp-muted);
    font-size: 11px;
    text-transform: lowercase;
}

.mcp-project-gantt-right-body {
    position: relative;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: var(--mcp-gantt-day-width) 100%;
}

.mcp-project-gantt-right-row {
    min-height: var(--mcp-gantt-row-height);
    align-items: stretch;
}

.mcp-project-gantt-right-row + .mcp-project-gantt-right-row {
    border-top: 1px solid var(--mcp-border);
}

.mcp-project-gantt-cell {
    border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.mcp-project-gantt-links {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.mcp-project-gantt-link-path {
    fill: none;
    stroke: rgba(122, 136, 150, 0.85);
    stroke-width: 2;
    marker-end: url(#mcp-gantt-arrow);
}

.mcp-project-gantt-link-path-week {
    stroke-width: 2.25;
}

.mcp-project-gantt-bar-wrap {
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 6px;
    cursor: grab;
    transition: transform 0.15s ease;
}

.mcp-project-gantt-bar-wrap.is-readonly {
    cursor: default;
}

.mcp-project-gantt-bar-wrap.is-dragging {
    z-index: 5;
    cursor: grabbing;
    transition: none;
}

.mcp-project-gantt-bar {
    width: 100%;
    min-width: var(--mcp-gantt-bar-min-width);
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(90deg, #4d8cff 0%, #2f73ea 100%);
    color: #fff;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 8px 18px rgba(47, 115, 234, 0.22);
    position: relative;
    overflow: hidden;
}

.mcp-project-gantt-board-week .mcp-project-gantt-bar {
    min-width: 0;
    min-height: 42px;
    border-radius: 14px;
    padding: 7px 14px;
}

.mcp-project-gantt-bar strong,
.mcp-project-gantt-bar span {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.mcp-project-gantt-bar strong {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcp-project-gantt-board-week .mcp-project-gantt-bar strong {
    font-size: 13px;
}

.mcp-project-gantt-bar span {
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcp-project-gantt-board-week .mcp-project-gantt-bar span {
    max-width: 34%;
}

.mcp-project-gantt-bar-0 {
    background: linear-gradient(90deg, #4d8cff 0%, #2f73ea 100%);
}

.mcp-project-gantt-bar-1 {
    background: linear-gradient(90deg, #ffd34f 0%, #f5b516 100%);
    box-shadow: 0 8px 18px rgba(245, 181, 22, 0.22);
}

.mcp-project-gantt-bar-2 {
    background: linear-gradient(90deg, #61c971 0%, #4cae5f 100%);
    box-shadow: 0 8px 18px rgba(76, 174, 95, 0.22);
}

.mcp-project-gantt-bar-waiting {
    background: linear-gradient(90deg, #c9d3df 0%, #9aa9bc 100%);
    box-shadow: 0 8px 18px rgba(122, 136, 150, 0.2);
}

.mcp-project-gantt-bar-tip {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(122, 136, 150, 0.9);
}

.mcp-dashboard-panel {
    border: 1px solid var(--mcp-border);
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.mcp-dashboard-panel-wide {
    grid-column: span 2;
}

.mcp-dashboard-panel-danger {
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.mcp-dashboard-panel-warning {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border-color: rgba(245, 158, 11, 0.18);
}

.mcp-dashboard-panel[draggable="true"] {
    cursor: grab;
}

.mcp-dashboard-panel.is-dragging {
    opacity: 0.55;
}

.mcp-dashboard-panel.is-drop-target {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
}

.mcp-dashboard-drag-handle {
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: grab;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
}

.mcp-dashboard-empty-state {
    min-height: 180px;
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: start;
    color: #6b7280;
}

.mcp-dashboard-empty-state strong {
    color: #1e1e1e;
    font-size: 18px;
}

.mcp-dashboard-action-stack,
.mcp-dashboard-blocker-list,
.mcp-dashboard-overload-list {
    display: grid;
    gap: 12px;
}

.mcp-dashboard-action-card,
.mcp-dashboard-blocker-card,
.mcp-dashboard-overload-row {
    padding: 14px 16px;
    display: grid;
    gap: 6px;
    cursor: pointer;
}

.mcp-dashboard-action-card strong,
.mcp-dashboard-blocker-card strong,
.mcp-dashboard-overload-row strong {
    font-size: 16px;
}

.mcp-dashboard-action-card span,
.mcp-dashboard-blocker-card span,
.mcp-dashboard-overload-row span {
    color: #6b7280;
    line-height: 1.45;
}

.mcp-dashboard-action-card em,
.mcp-dashboard-blocker-card em,
.mcp-dashboard-overload-row em {
    color: #111827;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
}

.mcp-dashboard-action-card-danger {
    background: #fee2e2;
    border-color: rgba(239, 68, 68, 0.24);
}

.mcp-dashboard-action-card-warning {
    background: #fef3c7;
    border-color: rgba(245, 158, 11, 0.24);
}

.mcp-dashboard-action-card-neutral {
    background: #dbeafe;
    border-color: rgba(59, 130, 246, 0.18);
}

.mcp-dashboard-overload-row.is-alert {
    background: #fef3c7;
    border-color: rgba(245, 158, 11, 0.24);
}

.mcp-dashboard-kpi-list,
.mcp-hours-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mcp-kpi-link,
.mcp-kpi-tile,
.mcp-dashboard-task-item,
.mcp-load-day,
.mcp-legend-row,
.mcp-table-row-link,
.mcp-risk-row,
.mcp-efficiency-row,
.mcp-chart-bar-card,
.mcp-dashboard-alert-card {
    width: 100%;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
    color: var(--mcp-text);
    cursor: pointer;
    text-align: left;
}

.mcp-kpi-link,
.mcp-kpi-tile,
.mcp-risk-row,
.mcp-chart-bar-card {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
}

.mcp-kpi-link span,
.mcp-kpi-tile span,
.mcp-risk-row span,
.mcp-chart-bar-card span {
    font-size: 12px;
    color: var(--mcp-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.mcp-kpi-link strong,
.mcp-kpi-tile strong,
.mcp-risk-row strong {
    font-size: 28px;
    line-height: 1;
}

.mcp-kpi-tile em {
    color: #475569;
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.mcp-kpi-link.is-critical {
    border-color: rgba(239, 83, 80, 0.35);
    background: #fff5f5;
}

.mcp-dashboard-task-list,
.mcp-dashboard-table-list,
.mcp-dashboard-risk-list,
.mcp-dashboard-efficiency-list {
    display: grid;
    gap: 10px;
}

.mcp-dashboard-task-item,
.mcp-table-row-link,
.mcp-efficiency-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

.mcp-dashboard-task-item strong,
.mcp-table-row-link span,
.mcp-efficiency-row span {
    font-size: 16px;
    font-weight: 800;
}

.mcp-dashboard-task-item span,
.mcp-table-row-link em {
    color: var(--mcp-muted);
    font-style: normal;
    font-size: 13px;
}

.mcp-dashboard-task-item em {
    color: var(--mcp-primary);
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
}

.mcp-dashboard-foot-note {
    margin-top: 14px;
    display: grid;
    gap: 4px;
    color: var(--mcp-muted);
}

.mcp-dashboard-foot-note strong {
    color: var(--mcp-text);
    font-size: 13px;
}

.mcp-dashboard-load-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mcp-load-day {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.mcp-load-day span {
    font-size: 12px;
    color: var(--mcp-muted);
    text-transform: uppercase;
}

.mcp-load-day strong {
    font-size: 22px;
}

.mcp-load-day-success {
    background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 100%);
}

.mcp-load-day-warning {
    background: linear-gradient(180deg, #fff8ea 0%, #ffffff 100%);
}

.mcp-load-day-danger {
    background: linear-gradient(180deg, #fff3f2 0%, #ffffff 100%);
}

.mcp-dashboard-load-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--mcp-muted);
}

.mcp-dashboard-bars {
    display: grid;
    gap: 12px;
}

.mcp-chart-bar-track {
    height: 10px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.mcp-chart-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}

.mcp-chart-bar-fill-accent {
    background: linear-gradient(90deg, #5bbf63 0%, #2563eb 55%, #ef5350 100%);
}

.mcp-chart-bar-card strong {
    font-size: 26px;
}

.mcp-project-donut-wrap {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
}

.mcp-project-donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
}

.mcp-project-donut::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--mcp-border);
}

.mcp-project-donut-legend {
    display: grid;
    gap: 10px;
}

.mcp-dashboard-project-gantt {
    display: grid;
    gap: 18px;
}

.mcp-dashboard-gantt-shell {
    min-height: 92vh;
}

.mcp-dashboard-gantt-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.mcp-dashboard-gantt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mcp-dashboard-gantt-tab {
    border: 1px solid var(--mcp-border);
    background: #fff;
    color: var(--mcp-text);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.mcp-dashboard-gantt-tab.is-active {
    background: #eef4ff;
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--mcp-primary);
}

.mcp-dashboard-gantt-range {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.mcp-dashboard-gantt-range.is-passive {
    opacity: 0.92;
}

.mcp-dashboard-gantt-range label {
    display: grid;
    gap: 6px;
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 700;
}

.mcp-dashboard-gantt-range input {
    min-width: 150px;
}

.mcp-dashboard-project-gantt-list-shell {
    display: grid;
    gap: 12px;
}

.mcp-dashboard-project-gantt-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mcp-dashboard-project-gantt-list-head strong {
    font-size: 16px;
}

.mcp-dashboard-project-gantt-list-head span {
    color: var(--mcp-muted);
    font-size: 13px;
}

.mcp-dashboard-project-gantt-list {
    display: grid;
    gap: 10px;
}

.mcp-dashboard-project-gantt-item {
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.mcp-dashboard-project-gantt-item.is-open {
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.06);
}

.mcp-dashboard-project-gantt-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.mcp-dashboard-project-gantt-head strong {
    font-size: 16px;
}

.mcp-dashboard-project-gantt-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: var(--mcp-muted);
    font-size: 13px;
}

.mcp-dashboard-project-gantt-expanded {
    border: 1px solid var(--mcp-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    min-height: max(76vh, 860px);
    overflow: hidden;
}

.mcp-dashboard-project-gantt-expanded.is-open {
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.09);
}

.mcp-dashboard-project-gantt-expanded-head {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--mcp-border);
    background: rgba(255, 255, 255, 0.9);
}

.mcp-dashboard-project-gantt-expanded-head strong {
    font-size: 22px;
}

.mcp-dashboard-project-gantt-expanded-note {
    color: var(--mcp-muted);
    font-size: 14px;
}

.mcp-dashboard-project-gantt-body {
    padding: 0;
    min-height: max(68vh, 760px);
    background: #fff;
}

.mcp-dashboard-project-gantt-placeholder {
    min-height: 320px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 32px;
    text-align: center;
    color: var(--mcp-muted);
}

.mcp-dashboard-project-gantt-placeholder strong {
    color: var(--mcp-text);
    font-size: 22px;
}

.mcp-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

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

.mcp-dot-success { background: #5bbf63; }
.mcp-dot-warning { background: #ffd24d; }
.mcp-dot-primary { background: #3b82f6; }
.mcp-dot-danger { background: #ef5350; }

.mcp-dashboard-alert-card {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fff7e9 0%, #fff 100%);
    border-color: rgba(245, 158, 11, 0.22);
    display: grid;
    gap: 6px;
}

.mcp-dashboard-alert-card strong {
    color: #b45309;
    font-size: 18px;
}

.mcp-dashboard-alert-card span {
    color: var(--mcp-text);
}

.mcp-dashboard-subsection {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.mcp-dashboard-subsection strong {
    font-size: 13px;
}

.mcp-dashboard-trend-shell {
    display: grid;
    gap: 14px;
}

.mcp-dashboard-trend-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}

.mcp-dashboard-trend-chart {
    position: relative;
    min-height: 240px;
}

.mcp-dashboard-trend-svg {
    display: block;
    width: 100%;
    height: 240px;
}

.mcp-dashboard-trend-grid-line {
    stroke: #e5e7eb;
    stroke-width: 1;
}

.mcp-dashboard-trend-grid-label {
    fill: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.mcp-dashboard-trend-area {
    opacity: 1;
}

.mcp-dashboard-trend-hotspots {
    position: absolute;
    inset: 0;
}

.mcp-dashboard-trend-hotspot {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.mcp-dashboard-trend-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 8px;
}

.mcp-dashboard-trend-tick {
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 10px 8px;
    display: grid;
    gap: 4px;
    justify-items: center;
    cursor: pointer;
    text-align: center;
}

.mcp-dashboard-trend-tick strong {
    font-size: 16px;
    line-height: 1;
}

.mcp-dashboard-trend-tick em {
    color: var(--mcp-muted);
    font-style: normal;
    font-size: 11px;
}

.mcp-dashboard-line-chart-shell {
    display: grid;
    gap: 12px;
}

.mcp-dashboard-line-chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

.mcp-dashboard-line-chart {
    position: relative;
    min-height: 220px;
}

.mcp-dashboard-line-svg {
    display: block;
    width: 100%;
    height: 220px;
}

.mcp-dashboard-line-axis {
    stroke: #e5e7eb;
    stroke-width: 1;
}

.mcp-dashboard-line-value {
    fill: #111827;
    font-size: 12px;
    font-weight: 700;
}

.mcp-dashboard-line-hotspots {
    position: absolute;
    inset: 0;
}

.mcp-dashboard-line-hotspot {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.mcp-dashboard-line-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
}

.mcp-dashboard-line-label {
    border: 0;
    background: transparent;
    text-align: center;
    display: grid;
    gap: 4px;
    cursor: pointer;
}

.mcp-dashboard-line-label em {
    color: var(--mcp-muted);
    font-style: normal;
    font-size: 12px;
}

.mcp-dashboard-gauge-card {
    display: grid;
    gap: 16px;
    justify-items: center;
}

.mcp-dashboard-gauge {
    width: 220px;
    height: 220px;
    position: relative;
    display: grid;
    place-items: center;
}

.mcp-dashboard-gauge-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(
            #22c55e 0 calc(var(--mcp-gauge-value, 0) * 1%),
            #e8edf5 calc(var(--mcp-gauge-value, 0) * 1%) 100%
        );
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.mcp-dashboard-gauge-card-warning .mcp-dashboard-gauge-ring {
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(
            #f59e0b 0 calc(var(--mcp-gauge-value, 0) * 1%),
            #e8edf5 calc(var(--mcp-gauge-value, 0) * 1%) 100%
        );
}

.mcp-dashboard-gauge-card-danger .mcp-dashboard-gauge-ring {
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(
            #ef4444 0 calc(var(--mcp-gauge-value, 0) * 1%),
            #e8edf5 calc(var(--mcp-gauge-value, 0) * 1%) 100%
        );
}

.mcp-dashboard-gauge-center {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    text-align: center;
}

.mcp-dashboard-gauge-center strong {
    font-size: 40px;
    line-height: 1;
}

.mcp-dashboard-gauge-center span {
    color: var(--mcp-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
}

.mcp-dashboard-gauge-meta {
    text-align: center;
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-dashboard-recommendations {
    display: grid;
    gap: 10px;
}

.mcp-dashboard-recommendation {
    border: 1px solid var(--mcp-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px 16px;
    display: grid;
    gap: 6px;
    text-align: left;
    cursor: pointer;
}

.mcp-dashboard-recommendation strong {
    font-size: 15px;
}

.mcp-dashboard-recommendation span {
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-dashboard-recommendation-warning {
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.mcp-dashboard-recommendation-danger {
    background: linear-gradient(180deg, #fff3f3 0%, #ffffff 100%);
    border-color: rgba(239, 68, 68, 0.18);
}

.mcp-dashboard-recommendation-neutral {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.mcp-efficiency-row {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
}

.mcp-efficiency-bar {
    height: 14px;
    background: #e9eef5;
    border-radius: 999px;
    overflow: hidden;
}

.mcp-efficiency-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f46e5 0%, #60a5fa 100%);
}

.mcp-dashboard-grid-planning {
    grid-template-columns: 1fr;
}

.mcp-tasks-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

#mcp-task-sidebar {
    display: none;
}

.mcp-card {
    border-radius: 18px;
    padding: 18px;
}

.mcp-card-header,
.mcp-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mcp-list-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mcp-list-count {
    font-weight: 700;
}

.mcp-filter-button {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--mcp-text);
}

.mcp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: 0;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.mcp-button-primary {
    background: var(--mcp-primary);
    color: #fff;
}

.mcp-button-secondary {
    background: #eef3f9;
    color: var(--mcp-text);
}

.mcp-button-danger {
    background: var(--mcp-danger);
    color: #fff;
}

.mcp-form {
    display: grid;
    gap: 14px;
}

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

.mcp-field {
    display: grid;
    gap: 6px;
}

.mcp-field span {
    font-size: 13px;
    color: var(--mcp-muted);
}

.mcp-field input,
.mcp-field select,
.mcp-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

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

.mcp-field-compact {
    min-width: 150px;
}

.mcp-field-compact span {
    margin-bottom: 2px;
}

.mcp-field-wide {
    grid-column: 1 / -1;
}

.mcp-field-checkbox {
    align-content: start;
}

.mcp-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 12px;
    background: #fff;
    color: var(--mcp-text);
}

.mcp-checkbox-row input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
}

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

.mcp-admin-cleanup-card {
    align-self: start;
}

.mcp-admin-cleanup-preview {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(240, 93, 94, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 246, 246, 0.96), rgba(255, 250, 250, 0.98));
}

.mcp-admin-cleanup-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mcp-admin-cleanup-stat {
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(240, 93, 94, 0.14);
}

.mcp-admin-cleanup-stat span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mcp-muted);
}

.mcp-admin-cleanup-stat strong {
    font-size: 26px;
}

.mcp-admin-cleanup-list {
    display: grid;
    gap: 10px;
}

.mcp-admin-cleanup-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--mcp-border);
    background: #fff;
}

.mcp-admin-cleanup-item strong {
    font-size: 15px;
}

.mcp-admin-cleanup-item span {
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-admin-cleanup-warning {
    margin: 0;
    color: #a44a4a;
    line-height: 1.55;
}

.mcp-admin-cleanup-empty {
    margin: 0;
    color: var(--mcp-muted);
}

.mcp-admin-cleanup-checkbox {
    align-self: end;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 12px;
    background: #fff;
}

.mcp-planning-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.mcp-planning-toolbar-left {
    display: grid;
    gap: 12px;
    flex: 1;
}

.mcp-planning-toolbar-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 240px;
}

.mcp-planning-range-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mcp-message,
.mcp-empty,
.mcp-placeholder-text {
    margin: 0;
    color: var(--mcp-muted);
    line-height: 1.6;
}

.mcp-plan-preview {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--mcp-border);
    border-radius: 16px;
    background: var(--mcp-surface-soft);
}

.mcp-plan-preview-empty {
    margin: 0;
    color: var(--mcp-muted);
    line-height: 1.6;
}

.mcp-plan-preview-head {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mcp-plan-preview-pill {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--mcp-border);
}

.mcp-plan-preview-pill span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mcp-muted);
}

.mcp-plan-preview-pill strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.mcp-plan-preview-list {
    display: grid;
    gap: 10px;
}

.mcp-plan-preview-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--mcp-border);
}

.mcp-plan-preview-item span {
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-table-wrap {
    overflow-x: auto;
}

.mcp-table {
    width: 100%;
    border-collapse: collapse;
}

.mcp-table th,
.mcp-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--mcp-border);
    white-space: nowrap;
}

.mcp-table th {
    font-size: 12px;
    color: var(--mcp-muted);
    text-transform: uppercase;
}

.mcp-table-actions-cell {
    white-space: nowrap;
}

.mcp-table-subtle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--mcp-muted);
}

.mcp-inline-action {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--mcp-border);
    border-radius: 9px;
    background: #fff;
    font: inherit;
    cursor: pointer;
    margin-right: 6px;
}

.mcp-inline-action-secondary {
    background: #f5f8fb;
}

.mcp-project-constructor {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--mcp-border);
}

.mcp-project-constructor.is-hidden {
    display: none;
}

.mcp-raci-field-picker {
    display: grid;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
}

.mcp-project-constructor-table th,
.mcp-project-constructor-table td {
    vertical-align: top;
    white-space: normal;
}

.mcp-project-constructor-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
    max-width: 100%;
}

.mcp-project-constructor-table {
    min-width: 2240px;
    width: max-content;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.mcp-project-constructor-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 var(--mcp-border);
    padding: 18px 16px;
}

.mcp-project-constructor-table tbody tr {
    background: #fff;
}

.mcp-project-constructor-table tbody td {
    padding: 18px 16px;
}

.mcp-project-constructor-table tbody tr + tr td {
    border-top: 10px solid var(--mcp-bg);
}

.mcp-project-col-stage {
    width: 140px;
}

.mcp-project-col-title {
    width: 320px;
}

.mcp-project-col-description {
    width: 480px;
}

.mcp-project-col-estimate {
    width: 180px;
}

.mcp-project-col-dependencies {
    width: 300px;
}

.mcp-project-col-raci-inline {
    width: 270px;
}

.mcp-project-col-actions {
    width: 170px;
}

.mcp-raci-cell {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-content: start;
    width: 100%;
}

.mcp-project-tree-links,
.mcp-project-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mcp-project-tree-links span,
.mcp-project-map-links span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f6fb;
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 700;
}

.mcp-project-stage-cell {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: grab;
    user-select: none;
}

.mcp-project-stage-handle {
    color: var(--mcp-muted);
    font-size: 14px;
    letter-spacing: -0.15em;
}

.mcp-raci-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
    align-items: flex-start;
}

.mcp-raci-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.mcp-raci-tag button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mcp-raci-empty {
    font-size: 12px;
    color: var(--mcp-muted);
}

.mcp-raci-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.mcp-raci-picker select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--mcp-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.mcp-project-row-remove {
    color: var(--mcp-danger);
}

.mcp-project-row-actions {
    display: flex;
    justify-content: flex-end;
}

.mcp-project-constructor-table input,
.mcp-project-constructor-table textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--mcp-border);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    background: #fff;
}

.mcp-project-constructor-table input {
    min-height: 42px;
}

.mcp-project-constructor-table textarea {
    min-height: 88px;
    resize: vertical;
}

.mcp-project-constructor-table .mcp-inline-action {
    margin-right: 0;
    min-width: 44px;
    min-height: 42px;
    padding: 0;
}

.mcp-project-constructor-table th,
.mcp-project-constructor-table td {
    box-sizing: border-box;
}

.mcp-project-constructor-table .mcp-table-actions-cell {
    text-align: right;
}

.mcp-project-constructor-table .mcp-table-actions-cell {
    text-align: right;
}

.mcp-project-cards,
.mcp-company-cards,
.mcp-timeline-wrap,
.mcp-directory-cards {
    display: grid;
    gap: 10px;
}

.mcp-role-accordion {
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: var(--mcp-surface-soft);
    overflow: hidden;
}

.mcp-role-accordion + .mcp-role-accordion {
    margin-top: 10px;
}

.mcp-role-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 800;
}

.mcp-role-summary::-webkit-details-marker {
    display: none;
}

.mcp-role-summary span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mcp-muted);
}

.mcp-role-body {
    padding: 0 12px 12px;
}

.mcp-project-card,
.mcp-company-card,
.mcp-timeline-item,
.mcp-directory-card {
    padding: 14px;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: var(--mcp-surface-soft);
}

.mcp-project-card strong,
.mcp-company-card strong,
.mcp-timeline-item strong,
.mcp-timeline-item p,
.mcp-timeline-item span {
    margin: 0;
}

.mcp-project-card strong,
.mcp-company-card strong,
.mcp-timeline-item strong {
    display: block;
    margin-bottom: 6px;
}

.mcp-project-card p,
.mcp-company-card p,
.mcp-timeline-item p {
    margin: 0;
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-timeline-item span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--mcp-muted);
}

.mcp-notification-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: var(--mcp-surface-soft);
    padding: 14px;
    cursor: pointer;
}

.mcp-notification-item.is-unread {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.mcp-notification-item + .mcp-notification-item {
    margin-top: 10px;
}

.mcp-section-panel.is-hidden {
    display: none;
}

.mcp-directories-layout {
    display: grid;
    gap: 14px;
}

.mcp-card-header-panel {
    margin-bottom: 14px;
}

.mcp-view-tabs-inline {
    margin-bottom: 14px;
    border-radius: 14px;
    padding: 0 14px;
    min-height: 48px;
}

.mcp-task-tabs {
    margin: 0 0 14px;
    padding: 0;
    min-height: auto;
}

.mcp-task-tab {
    border: 0;
    background: transparent;
    color: var(--mcp-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
}

.mcp-task-tab.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: var(--mcp-ink);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mcp-directory-tabs {
    gap: 10px;
}

.mcp-directory-tab {
    border: 0;
    background: transparent;
    color: var(--mcp-muted);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.mcp-directory-tab.is-active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--mcp-ink);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mcp-directory-panel.is-hidden {
    display: none;
}

.mcp-task-view.is-hidden {
    display: none;
}

.mcp-directory-table-wrap {
    overflow: auto;
}

.mcp-matrix-wrap {
    overflow: auto;
}

.mcp-matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.mcp-matrix-table th,
.mcp-matrix-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--mcp-border);
    text-align: left;
    white-space: nowrap;
}

.mcp-matrix-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--mcp-muted);
}

.mcp-directory-table td,
.mcp-directory-table th {
    vertical-align: middle;
}

.mcp-form-actions-inline {
    margin-bottom: 14px;
}

.mcp-field-note {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--mcp-muted);
}

.mcp-inline-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.mcp-role-picker {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.mcp-role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.mcp-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 999px;
    background: var(--mcp-surface-soft);
    font-size: 14px;
    font-weight: 700;
}

.mcp-role-tag button {
    border: 0;
    background: transparent;
    color: var(--mcp-muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.mcp-kanban-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 14px;
    overflow: auto;
}

.mcp-planning-grid {
    display: grid;
    gap: 1px;
    overflow: auto;
    background: var(--mcp-border);
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
}

.mcp-planning-grid-corner,
.mcp-planning-grid-head-cell,
.mcp-planning-grid-user,
.mcp-planning-grid-cell {
    background: #fff;
    padding: 12px;
}

.mcp-planning-grid-corner {
    position: sticky;
    left: 0;
    z-index: 3;
    font-weight: 700;
}

.mcp-planning-grid-head-cell {
    min-width: 160px;
    text-align: center;
}

.mcp-planning-grid-head-cell strong {
    display: block;
    margin-bottom: 4px;
}

.mcp-planning-grid-head-cell span,
.mcp-planning-grid-user span,
.mcp-planning-cell-hours span,
.mcp-planning-item span {
    color: var(--mcp-muted);
    font-size: 12px;
}

.mcp-planning-grid-row {
    display: contents;
}

.mcp-planning-grid-user {
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 1px solid var(--mcp-border);
}

.mcp-planning-grid-user strong {
    display: block;
    margin-bottom: 4px;
}

.mcp-planning-grid-cell {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 164px;
}

.mcp-planning-grid-cell.is-overloaded {
    background: #fff4f4;
}

.mcp-planning-grid-cell.is-drop-target {
    background: #eef5ff;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.mcp-planning-cell-hours {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.mcp-planning-cell-items {
    display: grid;
    gap: 8px;
}

.mcp-planning-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--mcp-border);
    border-radius: 12px;
    background: var(--mcp-surface-soft);
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.mcp-planning-item strong {
    font-size: 13px;
    line-height: 1.4;
}

.mcp-planning-item[draggable="true"] {
    cursor: grab;
}

.mcp-planning-item.is-dragging {
    opacity: 0.55;
    transform: scale(0.98);
    cursor: grabbing;
}

.mcp-planning-item {
    border-left: 4px solid var(--mcp-user-color, #3b82f6);
}

.mcp-planning-item em {
    color: var(--mcp-muted);
    font-size: 12px;
    font-style: normal;
}

.mcp-planning-user-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mcp-planning-user-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--mcp-border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.mcp-planning-user-option input {
    margin: 0;
}

.mcp-planning-user-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--mcp-user-color, #3b82f6);
    flex: 0 0 auto;
}

.mcp-planning-legend {
    margin-bottom: 14px;
}

.mcp-planning-legend-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mcp-planning-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid var(--mcp-border);
    color: var(--mcp-text);
    font-size: 13px;
    font-weight: 600;
}

.mcp-planning-legend-item i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--mcp-user-color, #3b82f6);
    display: inline-block;
}

.mcp-planning-calendar-shell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    align-items: start;
}

.mcp-planning-day-column {
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
    min-width: 0;
}

.mcp-planning-day-column-head {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mcp-border);
    background: rgba(255, 255, 255, 0.92);
}

.mcp-planning-day-column-head strong {
    font-size: 20px;
}

.mcp-planning-day-column-head span,
.mcp-planning-day-column-head em,
.mcp-planning-month-day span,
.mcp-planning-day-lane-head em {
    color: var(--mcp-muted);
    font-size: 12px;
    font-style: normal;
}

.mcp-planning-day-column-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.mcp-planning-day-lane {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
    min-height: 120px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mcp-planning-day-lane.is-overloaded {
    background: #fff4f4;
}

.mcp-planning-day-lane.is-drop-target {
    background: #eef5ff;
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.mcp-planning-day-lane-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.mcp-planning-day-lane-items,
.mcp-planning-month-items {
    display: grid;
    gap: 8px;
}

.mcp-planning-month {
    display: grid;
    gap: 1px;
    background: var(--mcp-border);
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    overflow: hidden;
}

.mcp-planning-month-head,
.mcp-planning-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mcp-planning-month-head > div {
    padding: 12px;
    background: #f8fbff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--mcp-muted);
    text-transform: uppercase;
}

.mcp-planning-month-cell {
    min-height: 190px;
    background: #fff;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.mcp-planning-month-cell.is-outside {
    background: #f8fafc;
}

.mcp-planning-month-day {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.mcp-planning-month-day strong {
    font-size: 18px;
}

.mcp-kanban-column {
    min-width: 0;
    min-width: 220px;
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: var(--mcp-surface-soft);
    padding: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcp-kanban-column.is-drop-target {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mcp-kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.mcp-kanban-column-head span {
    color: var(--mcp-muted);
    font-size: 13px;
    font-weight: 700;
}

.mcp-kanban-cards {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.mcp-kanban-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    cursor: grab;
}

.mcp-kanban-card button {
    cursor: pointer;
}

.mcp-kanban-card.is-dragging {
    opacity: 0.55;
}

.mcp-kanban-card strong {
    display: block;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mcp-kanban-card p {
    margin: 0 0 6px;
    color: var(--mcp-muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mcp-kanban-card .mcp-form-actions {
    min-width: 0;
    width: 100%;
}

.mcp-task-details {
    margin-bottom: 16px;
}

.mcp-task-detail-card {
    border: 1px solid var(--mcp-border);
    border-radius: 18px;
    background: var(--mcp-surface-soft);
    padding: 16px;
}

.mcp-task-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mcp-task-detail-head strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.mcp-task-detail-head p,
.mcp-task-detail-description p {
    margin: 0;
    color: var(--mcp-muted);
    line-height: 1.5;
}

.mcp-task-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.mcp-task-detail-grid div {
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.mcp-task-detail-grid span,
.mcp-task-detail-description span,
.mcp-task-detail-slots span {
    display: block;
    margin-bottom: 6px;
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mcp-task-detail-grid strong {
    display: block;
    line-height: 1.4;
}

.mcp-task-detail-description {
    margin-bottom: 16px;
}

.mcp-task-workflow-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mcp-task-workflow-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--mcp-border);
    border-radius: 14px;
    background: #fff;
}

.mcp-task-workflow-strip span {
    color: var(--mcp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mcp-task-workflow-strip strong {
    font-size: 14px;
}

.mcp-task-workflow-strip em {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--mcp-surface-soft);
    color: var(--mcp-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.mcp-checkbox-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.mcp-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.mcp-modal.is-hidden {
    display: none;
}

.mcp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.45);
}

.mcp-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 80px auto 0;
    padding: 0 16px;
}

.mcp-modal-dialog-wide {
    max-width: 1440px;
}

.mcp-modal-dialog .mcp-card {
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@media (max-width: 1280px) {
    .mcp-shell {
        grid-template-columns: 248px 1fr;
    }

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

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

    .mcp-login-layout {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .mcp-brand-grid {
        grid-template-columns: 1fr;
    }

    .mcp-brand-copy h1 {
        font-size: 42px;
    }

    .mcp-login-card {
        width: 100%;
    }

    .mcp-app-rail,
    .mcp-sidebar {
        display: none;
    }

    .mcp-main {
        padding: 10px 10px 96px;
        gap: 10px;
    }

    .mcp-workspace-header {
        justify-content: stretch;
    }

    .mcp-header-actions-dashboard {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mcp-header-filter-button,
    .mcp-user-badge {
        min-width: 0;
        width: 100%;
    }

    .mcp-dashboard-filters-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .mcp-dashboard-filters-grid {
        grid-template-columns: 1fr;
    }

    .mcp-mobile-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid rgba(226, 231, 239, 0.92);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 24px 48px rgba(28, 45, 66, 0.16);
        backdrop-filter: blur(18px);
    }

    .mcp-mobile-nav-button {
        min-height: 62px;
        border-radius: 18px;
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 6px;
        color: #6d7989;
        transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .mcp-mobile-nav-button.is-active {
        background: #eef4ff;
        color: var(--mcp-primary);
    }

    .mcp-mobile-nav-button:active {
        transform: translateY(1px);
    }

    .mcp-mobile-nav-button-primary {
        width: 62px;
        height: 62px;
        margin: -26px auto 0;
        border-radius: 22px;
        background: linear-gradient(135deg, #1482ef, #36a3ff);
        color: #fff;
        box-shadow: 0 18px 32px rgba(20, 130, 239, 0.34);
    }

    .mcp-mobile-nav-icon {
        font-size: 18px;
        line-height: 1;
    }

    .mcp-mobile-nav-plus {
        font-size: 34px;
        line-height: 1;
        font-weight: 500;
    }

    .mcp-mobile-nav-label {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.01em;
    }

    .mcp-dashboard-grid,
    .mcp-dashboard-panels,
    .mcp-dashboard-widgets,
    .mcp-tasks-layout,
    .mcp-toolbar-stats,
    .mcp-form-grid,
    .mcp-planning-toolbar {
        grid-template-columns: 1fr;
    }

    .mcp-planning-toolbar {
        display: grid;
    }

    .mcp-dashboard-hero {
        grid-template-columns: 1fr;
    }

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

    .mcp-dashboard-attention-grid,
    .mcp-dashboard-reference-grid {
        grid-template-columns: 1fr;
    }

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

    .mcp-finance-roi-layout {
        grid-template-columns: 1fr;
    }

    .mcp-dashboard-ring-layout {
        grid-template-columns: 1fr;
    }

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

    .mcp-dashboard-panel-wide {
        grid-column: span 1;
    }

    .mcp-dashboard-gantt-controls,
    .mcp-dashboard-project-gantt-head {
        grid-template-columns: 1fr;
    }

    .mcp-dashboard-gantt-controls {
        display: grid;
    }

    .mcp-dashboard-gantt-range input {
        min-width: 100%;
    }

    .mcp-dashboard-gantt-shell {
        min-height: auto;
    }

    .mcp-dashboard-project-gantt-list-head {
        align-items: flex-start;
    }

    .mcp-dashboard-project-gantt-expanded {
        min-height: 70vh;
    }

    .mcp-dashboard-project-gantt-expanded-head {
        padding: 16px;
    }

    .mcp-dashboard-project-gantt-expanded-head strong {
        font-size: 18px;
    }

    .mcp-workspace-header {
        padding: 14px 16px;
        border-radius: 22px;
        display: grid;
        gap: 16px;
    }

    .mcp-workspace-headline {
        align-items: flex-start;
        gap: 12px;
    }

    .mcp-project-badge {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 21px;
    }

    .mcp-workspace-header h2 {
        font-size: 20px;
        line-height: 1.05;
    }

    .mcp-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mcp-header-action-button,
    .mcp-user-badge {
        min-width: 0;
        width: 100%;
    }

    .mcp-view-tabs {
        padding: 0 12px;
        min-height: 50px;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .mcp-view-tab {
        min-height: 50px;
        flex: 0 0 auto;
        padding: 0 6px;
        scroll-snap-align: start;
    }

    .mcp-card,
    .mcp-toolbar {
        border-radius: 20px;
        box-shadow: 0 12px 28px rgba(37, 55, 77, 0.08);
    }

    .mcp-card-header {
        gap: 6px;
    }

    .mcp-card-header h3 {
        font-size: 18px;
    }

    .mcp-toolbar {
        padding: 10px 14px;
    }

    .mcp-toolbar-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mcp-stat {
        padding: 10px 12px;
        border-right: 0;
        border-radius: 14px;
        background: #f8fbff;
    }

    .mcp-stat strong {
        font-size: 22px;
    }

    .mcp-dashboard-filter-bar,
    .mcp-project-donut-wrap {
        grid-template-columns: 1fr;
        display: grid;
    }

    .mcp-dashboard-panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mcp-dashboard-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .mcp-dashboard-widget {
        padding: 16px;
        border-radius: 18px;
    }

    .mcp-dashboard-widget strong {
        font-size: 26px;
    }

    .mcp-dashboard-task-item,
    .mcp-table-row-link,
    .mcp-efficiency-row {
        grid-template-columns: 1fr;
    }

    .mcp-planning-toolbar-right {
        min-width: 0;
        justify-content: flex-start;
    }

    .mcp-planning-toolbar {
        gap: 12px;
        padding: 14px;
    }

    .mcp-planning-range-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mcp-planning-range-controls > * {
        min-width: 0;
    }

    .mcp-project-workspace-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mcp-project-workspace-stat {
        padding: 12px;
    }

    .mcp-project-workspace-tabs,
    .mcp-task-tabs,
    .mcp-directory-tabs,
    .mcp-planning-tabs,
    .mcp-project-gantt-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .mcp-project-workspace-tab,
    .mcp-task-tab,
    .mcp-directory-tab,
    .mcp-planning-tab,
    .mcp-project-gantt-tab {
        flex: 0 0 auto;
    }

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

    .mcp-list-header-left {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        white-space: nowrap;
    }

    .mcp-list-header-left > * {
        flex: 0 0 auto;
    }

    .mcp-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 720px) {
    .mcp-main {
        padding: 8px 8px 102px;
        gap: 8px;
    }

    .mcp-workspace-header {
        padding: 12px 14px;
    }

    .mcp-header-actions-dashboard {
        grid-template-columns: 1fr;
    }

    .mcp-view-tabs {
        padding: 0 10px;
    }

    .mcp-toolbar-stats,
    .mcp-project-workspace-summary,
    .mcp-planning-range-controls {
        grid-template-columns: 1fr;
    }

    .mcp-dashboard-widget strong {
        font-size: 24px;
    }

    .mcp-finance-hero-grid {
        grid-template-columns: 1fr;
    }

    .mcp-finance-task-row {
        grid-template-columns: 30px 1fr;
    }

    .mcp-admin-cleanup-grid {
        grid-template-columns: 1fr;
    }

    .mcp-dashboard-widget,
    .mcp-dashboard-panel,
    .mcp-project-workspace-stat {
        padding: 14px;
    }

    .mcp-mobile-nav {
        left: 8px;
        right: 8px;
        gap: 8px;
        padding: 8px 10px;
    }

    .mcp-mobile-nav-button {
        min-height: 56px;
        gap: 4px;
    }

    .mcp-mobile-nav-button-primary {
        width: 58px;
        height: 58px;
        margin-top: -22px;
    }

    .mcp-dashboard-project-gantt-head {
        display: grid;
        gap: 10px;
    }

    .mcp-dashboard-project-gantt-meta {
        gap: 8px;
        font-size: 12px;
    }
}
