:root {
    --bg: #f6f7fb;
    --surface: #fff;
    --soft: #fafafe;
    --line: #ececf3;
    --text: #171820;
    --muted: #7b8090;
    --primary: #6f45ff;
    --primary-dark: #5d34ef;
    --primary-soft: #f0edff;
    --green: #18a66f;
    --green-soft: #ecfaf4;
    --amber: #d99a18;
    --amber-soft: #fff7e7;
    --danger: #e4697e;
    --shadow: 0 18px 45px rgba(33, 31, 55, .055);
    --xl: 24px;
    --lg: 18px;
    --md: 14px;
    --sm: 10px
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Arial, sans-serif;
    color: var(--text)
}

body {
    background: var(--bg);
    font-size: 13px
}

button,
input,
textarea,
select {
    font: inherit
}

button {
    cursor: pointer
}

a {
    text-decoration: none;
    color: inherit
}

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr)
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: rgba(255, 255, 255, .95);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    z-index: 30
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 17px;
    margin-bottom: 22px
}

.side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%
}

.side-btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #858a99;
    display: grid;
    place-items: center;
    font-size: 15px;
    position: relative
}

.side-btn:hover,
.side-btn.active {
    background: var(--primary-soft);
    color: var(--primary)
}

.side-btn.active:after {
    content: "";
    position: absolute;
    left: -10px;
    width: 3px;
    height: 22px;
    border-radius: 10px;
    background: var(--primary)
}

.side-bottom {
    margin-top: auto
}

.main {
    min-width: 0;
    padding: 14px 18px 24px
}

.topbar {
    height: 62px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    position: sticky;
    top: 10px;
    z-index: 20;
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(30, 30, 55, .035)
}

.logo {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap
}

.logo span {
    color: var(--primary)
}

.global-search {
    flex: 1;
    max-width: 620px;
    margin-left: 14px;
    position: relative
}

.global-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #969aa7
}

.global-search input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8f9fc;
    outline: 0;
    padding: 0 14px 0 36px
}

.global-search input:focus {
    background: #fff;
    border-color: #d8cffc;
    box-shadow: 0 0 0 3px rgba(111, 69, 255, .07)
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    color: #767b8b;
    display: grid;
    place-items: center
}

.icon-btn:hover {
    color: var(--primary);
    border-color: #dcd4ff
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eeeaff, #dce9ff);
    color: #5c42c5;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px
}

.content {
    padding: 14px 0 20px
}

.page-head {
    background: linear-gradient(120deg, #fff, #f9f7ff);
    border: 1px solid #e9e5fb;
    border-radius: var(--xl);
    padding: 25px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden
}

.page-head:after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 69, 255, .14), transparent 68%)
}

.page-head>div,
.page-head>.btn {
    position: relative;
    z-index: 1
}

.kicker {
    color: var(--primary);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.page-head h1 {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.045em;
    margin: 8px 0
}

.page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--lg);
    box-shadow: var(--shadow)
}

.panel-title {
    font-size: 13px;
    font-weight: 700
}

.btn {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: #30323c;
    padding: 0 13px;
    font-weight: 600;
    font-size: 11px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(35, 33, 60, .05)
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.btn-primary:hover {
    background: var(--primary-dark)
}

.control {
    width: 100%;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    outline: 0;
    padding: 0 11px;
    color: var(--text)
}

textarea.control {
    height: auto;
    padding: 11px;
    resize: vertical
}

.control:focus {
    border-color: #d4c8ff;
    box-shadow: 0 0 0 3px rgba(111, 69, 255, .06)
}

.tag {
    font-size: 9px;
    padding: 4px 7px;
    border-radius: 7px;
    background: #f2f5ff;
    color: #516eb7
}

.badge {
    font-size: 9px;
    padding: 5px 7px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 700
}

.empty {
    padding: 40px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 11px
}

.app-footer {
    min-height: 60px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
    padding: 0 4px;
    margin-top: 16px
}

.footer-links {
    display: flex;
    gap: 16px
}

.mobile-nav {
    display: none
}

@media(max-width:850px) {
    .app {
        grid-template-columns: 1fr
    }

    .sidebar {
        display: none
    }

    .main {
        padding: 10px
    }

    .topbar {
        top: 7px
    }

    .global-search {
        display: none
    }

    .mobile-nav {
        display: flex;
        overflow-x: auto;
        gap: 4px
    }

    .mobile-nav a {
        padding: 7px 9px;
        border-radius: 9px;
        color: var(--muted);
        white-space: nowrap
    }

    .mobile-nav a.active {
        background: var(--primary-soft);
        color: var(--primary)
    }

    .page-head {
        padding: 22px 19px
    }

    .top-actions .new-action {
        display: none
    }
}

@media(max-width:560px) {
    .logo {
        font-size: 17px
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 4px;
        gap: 9px
    }
}
/* Shared readable typography: page modules may change hierarchy, never shrink body copy below this floor. */
.content p,.content small,.content label,.content td,.content th,.content li,.content .tag,.content .badge,.content .btn,.content .control,.content .country,.content .chart-row,.content .match,.content .section-copy{font-size:12px!important;line-height:1.5}
.content h2,.content .section-title,.content .title h2{font-size:16px!important;line-height:1.3}
.content h3{font-size:14px!important;line-height:1.35}
.content .metric strong,.content .score,.content .ring strong{font-size:22px!important}