:root {
    --cti-navy: #0f1b3d;
    --cti-text: #26304a;
    --cti-tab: #10184a;
    --cti-blue: #1683f8;
    --cti-border: #e4e7ec;
    --cti-muted: #858998;
    --cti-page: #f7f8fa;
    --cti-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--cti-page);
    color: var(--cti-text);
    font-size: 14px;
}

.cti-header {
    height: 52px;
    background: #fff;
    color: var(--cti-navy);
    border-bottom: 1px solid var(--cti-border);
    box-shadow: 0 1px 2px rgba(15, 27, 61, .08);
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cti-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--cti-navy);
    margin-right: 18px;
    flex-shrink: 0;
}

.cti-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6aa8ff, #134fd6);
    color: white;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
}

.cti-brand-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

.cti-nav {
    display: flex;
    align-items: stretch;
    height: 52px;
    flex: 1;
}

.cti-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: var(--cti-tab);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.cti-nav a:hover {
    background: #f4f9ff;
}

.cti-nav a.active {
    color: var(--cti-blue);
    background: linear-gradient(180deg, #f4f9ff, #eaf4ff 45%, #e4f1ff);
    border-bottom-color: var(--cti-blue);
}

.cti-user {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--cti-text);
    font-size: 13px;
}

.cti-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cti-blue);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.page {
    padding: 24px;
    max-width: 1800px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.page-title {
    margin: 0;
    color: #202124;
    font-size: 24px;
    font-weight: 700;
}

.page-description {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.card {
    background: #fff;
    border: 1px solid var(--cti-border);
    border-radius: 6px;
}

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

.metric {
    padding: 18px;
}

.metric-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.metric-value {
    margin-top: 8px;
    color: var(--cti-navy);
    font-size: 28px;
    font-weight: 700;
}

.metric-sub {
    margin-top: 5px;
    color: #858998;
    font-size: 12px;
}

.section {
    margin-top: 20px;
    padding: 20px;
}

.section h2 {
    margin: 0 0 6px;
    color: var(--cti-navy);
    font-size: 17px;
}

.section p {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 1180px) {
    .cti-nav {
        overflow-x: auto;
    }

    .cti-user-name {
        display: none;
    }

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

@media (max-width: 700px) {
    .page {
        padding: 16px;
    }

    .cti-brand-text {
        display: none;
    }

    .cti-nav a {
        padding: 0 9px;
    }

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