:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #eef3f8;
    --text: #162033;
    --muted: #687386;
    --line: #dbe3ee;
    --primary: #18a999;
    --primary-strong: #0e7f74;
    --accent: #ffb020;
    --danger: #e5484d;
    --success: #21a67a;
    --warning: #d88a00;
    --shadow: 0 18px 50px rgba(24, 32, 51, .10);
    --sidebar: #111827;
    --sidebar-text: #e9eef8;
}

[data-theme="dark"] {
    --bg: #0d1118;
    --surface: #151b25;
    --surface-2: #1c2430;
    --text: #edf3ff;
    --muted: #9aa6b8;
    --line: #263344;
    --primary: #21d3bd;
    --primary-strong: #18a999;
    --accent: #ffc247;
    --shadow: 0 20px 55px rgba(0, 0, 0, .32);
    --sidebar: #0b0f16;
    --sidebar-text: #f3f7ff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 280px;
    padding: 22px 18px;
    background: var(--sidebar);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #fff; }
.brand strong, .brand small { display: block; }
.brand small { color: #9aa7ba; margin-top: 2px; }
.brand span { min-width: 0; }

.side-nav { display: grid; gap: 6px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #c8d2e2;
    transition: background .16s ease, color .16s ease;
}
.side-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #c8d2e2;
    transition: background .16s ease, color .16s ease;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav i { font-size: 20px; color: var(--primary); }

.side-panel {
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 14px;
    background: linear-gradient(140deg, rgba(33, 211, 189, .14), rgba(255, 176, 32, .10));
}
.side-panel p { margin: 8px 0 0; color: #b9c5d6; line-height: 1.45; font-size: 13px; }

.main { width: 100%; margin-left: 280px; min-height: 100vh; display: flex; flex-direction: column; }
.app-shell[data-sidebar-mode="collapsed"] .sidebar {
    width: 76px;
    padding: 22px 10px;
    transform: none;
}
.app-shell[data-sidebar-mode="collapsed"] .main { margin-left: 76px; }
.app-shell[data-sidebar-mode="collapsed"] .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.app-shell[data-sidebar-mode="collapsed"] .brand img { width: 42px; height: 42px; }
.app-shell[data-sidebar-mode="collapsed"] .brand span,
.app-shell[data-sidebar-mode="collapsed"] .side-nav a:not(:hover)::after,
.app-shell[data-sidebar-mode="collapsed"] .side-panel {
    display: none;
}
.app-shell[data-sidebar-mode="collapsed"] .side-nav a {
    position: relative;
    justify-content: center;
    padding: 10px;
    font-size: 0;
}
.app-shell[data-sidebar-mode="collapsed"] .side-nav i { font-size: 22px; }
.app-shell[data-sidebar-mode="collapsed"] .side-nav a:hover::after {
    content: attr(aria-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    font-size: 13px;
    white-space: nowrap;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; font-size: 20px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.content { width: min(1220px, calc(100% - 48px)); margin: 24px auto 32px; flex: 1; }
.footer {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.eyebrow { text-transform: uppercase; color: var(--primary); font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.hero {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}
.hero-main, .panel, .card, .auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.hero-main {
    position: relative;
    overflow: hidden;
    padding: 30px;
    min-height: 250px;
}
.hero-main:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--primary) 22%, transparent), transparent 45%),
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 20%, transparent), transparent 36%);
    pointer-events: none;
}
.hero-main > * { position: relative; }
.hero h1 { margin: 10px 0 12px; max-width: 760px; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: 0; }
.hero p { margin: 0; max-width: 700px; color: var(--muted); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dashboard-cta-banner {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 127, 116, .35), transparent 42%),
        radial-gradient(circle at 78% 62%, rgba(255, 176, 32, .30), transparent 40%),
        linear-gradient(130deg, #08162c, #0f1a36 45%, #211336);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: 22px;
    align-items: center;
    color: #eef3ff;
}
.dashboard-cta-banner .eyebrow { color: #6de3ff; }
.dashboard-cta-copy h2 {
    margin: 6px 0 10px;
    font-size: clamp(28px, 3.2vw, 48px);
    line-height: 1.05;
}
.dashboard-cta-copy p {
    margin: 0;
    max-width: 620px;
    color: #b9c9e4;
    line-height: 1.6;
}
.dashboard-cta-banner .btn-primary {
    background: #55d7ee;
    color: #072637;
}
.dashboard-cta-banner .btn-ghost {
    background: rgba(255, 255, 255, .10);
    color: #e6f0ff;
}
.dashboard-cta-visual {
    min-height: 220px;
    display: grid;
    place-items: center;
}
.dashboard-cta-screen {
    width: min(440px, 100%);
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(140, 169, 220, .35);
    background: rgba(8, 17, 36, .7);
    backdrop-filter: blur(3px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .35);
}
.dashboard-cta-chip {
    display: inline-flex;
    margin: 0 8px 10px 0;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(103, 232, 249, .15);
    border: 1px solid rgba(103, 232, 249, .35);
    color: #9cecff;
    font-size: 12px;
    font-weight: 800;
}
.dashboard-cta-screen strong {
    display: block;
    font-size: 24px;
    margin: 4px 0 8px;
}
.dashboard-cta-screen p {
    margin: 0;
    color: #b5c4dd;
}
.ranking-showcase {
    display: grid;
    gap: 14px;
}
.ranking-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.ranking-podium-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 86%, transparent), var(--surface));
}
.ranking-medal {
    display: inline-flex;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}
.ranking-pos-1 .ranking-medal { background: #f59e0b; color: #2d1b00; }
.ranking-pos-2 .ranking-medal { background: #cbd5e1; color: #172033; }
.ranking-pos-3 .ranking-medal { background: #d97706; color: #fff; }
.ranking-player {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ranking-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}
.ranking-avatar-fallback {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--primary) 24%, var(--surface-2));
    color: var(--primary-strong);
    font-weight: 900;
}
.ranking-player strong,
.ranking-player small {
    display: block;
}
.ranking-player small { color: var(--muted); }
.ranking-stats-line {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}
.ranking-stats-line strong { color: var(--text); }
.ranking-list {
    display: grid;
    gap: 8px;
}
.ranking-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.ranking-row:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 54%, var(--line));
    background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}
.ranking-row-position {
    font-size: 16px;
    font-weight: 900;
    color: var(--muted);
}
.ranking-row-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 13px;
}
.ranking-row-metrics b { color: var(--text); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 18px; }
.stat-card strong { display: block; font-size: 28px; margin-top: 8px; }
.stat-card span { color: var(--muted); font-size: 13px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 18px; }
.panel-header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.panel-header h2, .panel-header h1 { margin: 0; font-size: 20px; }
.panel-header p { margin: 4px 0 0; color: var(--muted); }

.card { padding: 16px; }
.tournament-card { display: grid; gap: 12px; min-height: 210px; overflow: hidden; }
.tournament-card-media {
    height: 138px;
    margin: -16px -16px 2px;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 24%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)),
        var(--surface-2);
}
.tournament-card-media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.tournament-card-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}
.tournament-card-fallback img {
    max-width: 70%;
    max-height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18));
}
.tournament-card-fallback i {
    color: var(--primary);
    font-size: 46px;
}
.card-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card-title h3 { margin: 0; font-size: 18px; }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}
.badge.success { color: #fff; background: var(--success); }
.badge.warning { color: #1f1600; background: var(--accent); }
.badge.danger { color: #fff; background: var(--danger); }
.badge.info { color: #072f35; background: #67e8f9; }

.btn, .icon-btn {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}
.btn { padding: 10px 14px; }
.btn-primary { color: #06231f; background: var(--primary); }
.btn-secondary { color: #211600; background: var(--accent); }
.btn-ghost { color: var(--text); background: var(--surface-2); }
.icon-btn { width: 42px; color: var(--text); background: var(--surface-2); }
[data-theme="dark"] .theme-dark-icon, :root:not([data-theme="dark"]) .theme-light-icon { display: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
label { color: var(--muted); font-weight: 700; font-size: 13px; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: center; }
.check-row input { width: 18px; min-height: 18px; }

.auth-layout { min-height: calc(100vh - 170px); display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); padding: 26px; }
.auth-card h1 { margin: 8px 0 8px; }
.auth-card p { color: var(--muted); margin: 0 0 20px; }

.empty-state { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); }
.split-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.split-actions form { margin: 0; }
.user-pill { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--surface-2); }
.user-pill span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #06231f; font-size: 12px; font-weight: 900; }
.user-pill small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.game-accounts-panel {
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 32%),
        linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--surface-2) 78%, var(--surface)));
}
.game-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.game-account-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.game-account-media,
.game-picker-card span {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #06231f;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}
.game-account-media img,
.game-picker-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-account-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.game-account-body p { margin: 3px 0 0; color: var(--muted); }
.game-account-modal-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 42px);
    overflow: auto;
}
.game-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.game-picker-card {
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 10px;
    justify-items: start;
    text-align: left;
    color: var(--text);
    background: var(--surface-2);
    cursor: pointer;
}
.game-picker-card:hover,
.game-picker-card:focus-visible {
    border-color: var(--primary);
    outline: none;
    transform: translateY(-1px);
}
.game-picker-card strong { font-size: 14px; }
.game-account-form-hero {
    min-height: 150px;
    margin: -20px -20px 18px;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(2, 6, 23, .76), rgba(2, 6, 23, .32)),
        var(--surface-2);
    background-size: cover;
    background-position: center;
}
.game-account-form-hero h2 { margin: 4px 0; }
.game-account-form-hero p { margin: 0; color: #d6e2f3; max-width: 560px; }

.org-cover {
    position: relative;
    min-height: 360px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(130deg, color-mix(in srgb, var(--sidebar) 86%, transparent), color-mix(in srgb, var(--primary) 28%, var(--sidebar)));
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
}
.org-cover.has-image { background-size: cover; background-position: center; }
.org-cover:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.74), rgba(0,0,0,.12));
}
.org-cover-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px;
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: end;
}
.org-avatar {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
    border: 3px solid rgba(255,255,255,.72);
}
.org-avatar.placeholder { display: grid; place-items: center; color: #07231f; background: var(--primary); font-size: 34px; font-weight: 900; }
.org-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.org-tabs a { padding: 12px 14px; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; font-weight: 800; color: var(--muted); }
.org-tabs a:hover { color: var(--text); }
.org-tabs a.active { color: var(--text); border-bottom-color: var(--primary); }
.tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; border-bottom: 1px solid var(--line); }
.tabs-nav a { padding: 12px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 900; }
.tabs-nav a.active { color: var(--text); border-bottom-color: var(--primary); }
.player-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.player-entry { display: flex; gap: 12px; align-items: center; min-width: 0; }
.player-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); font-weight: 900; flex: 0 0 auto; }
.player-entry strong, .player-entry span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-entry span { color: var(--muted); font-size: 13px; }
.players-view-switch { margin-left: auto; }
.player-list-row { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.player-list-row strong,
.player-list-row span { display: block; }
.player-list-row span { color: var(--muted); font-size: 13px; }
.config-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.config-item { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.config-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.config-item strong { display: block; margin-top: 6px; }
.overview-shell { display: grid; gap: 18px; }
.overview-main { display: grid; gap: 18px; }
.overview-panel { box-shadow: none; }
.overview-highlight {
    padding: 22px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 72%, transparent), transparent 72%),
        var(--surface);
}
.overview-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.overview-header h2 { margin: 4px 0 8px; font-size: 24px; }
.overview-header p { margin: 0; color: var(--muted); max-width: 640px; line-height: 1.55; }
.overview-status {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 180px;
}
.overview-status strong { font-size: 18px; text-align: right; }
.overview-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.overview-metric {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 82%, var(--surface-2));
}
.overview-metric span,
.timeline-label,
.overview-copy-label,
.overview-info-list span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.overview-metric strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.1;
}
.overview-metric small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}
.overview-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.timeline-item {
    display: grid;
    gap: 6px;
    min-height: 62px;
}
.timeline-item strong {
    font-size: 14px;
    line-height: 1.4;
}
.overview-secondary { margin-top: 0; }
.overview-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}
.overview-info-list div {
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.overview-info-list strong {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}
.overview-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}
.overview-copy-grid p {
    margin: 8px 0 0;
    color: var(--text);
    line-height: 1.65;
}
.tournament-admin-panel,
.tournament-checkin-panel {
    margin-bottom: 16px;
}
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.tournament-checkin-panel {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.tournament-checkin-panel h2 { margin: 4px 0 6px; font-size: 20px; }
.stage-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.stage-steps span {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}
.stage-steps span.active {
    border-color: var(--primary);
    color: var(--text);
    background: color-mix(in srgb, var(--primary) 16%, var(--surface));
}
.format-board { overflow: hidden; }
.format-admin-callout {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.format-admin-callout h2 { margin: 4px 0 6px; font-size: 20px; }
.format-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-edit-panel {
    margin-top: 0;
}
.admin-edit-form input,
.admin-edit-form textarea {
    width: 100%;
}
.admin-edit-form ul.errorlist {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--danger);
    font-size: 13px;
}
.bracket-scroll {
    overflow: auto;
    padding: 14px 0 4px;
    border-top: 1px solid var(--line);
}
.bracket-grid {
    display: grid;
    grid-template-columns: repeat(var(--round-count), minmax(250px, 1fr));
    gap: 34px;
    min-width: max(860px, calc(var(--round-count) * 284px));
    align-items: start;
}
.bracket-round {
    display: grid;
    gap: 18px;
    padding-top: calc(var(--round-index) * 34px);
}
.bracket-round header {
    min-height: 58px;
    border-bottom: 1px solid var(--line);
}
.bracket-round h3 {
    margin: 0;
    font-size: 15px;
    text-transform: uppercase;
}
.bracket-round header span,
.fixture-round summary span {
    color: var(--muted);
    font-size: 13px;
}
.bracket-match-list {
    display: grid;
    gap: calc(16px + var(--round-index) * 30px);
}
.bracket-match {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    overflow: visible;
}
.bracket-match:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 18px;
    border-top: 2px solid color-mix(in srgb, var(--line) 76%, var(--primary));
}
.bracket-round:last-child .bracket-match:after { display: none; }
.match-label {
    position: absolute;
    left: 8px;
    top: -18px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8db4ff;
    font-size: 11px;
    font-weight: 800;
}
.match-label .badge {
    min-height: 18px;
    padding: 1px 6px;
    font-size: 10px;
}
.match-slot {
    min-height: 46px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.match-slot:last-child { border-bottom: 0; }
.match-slot span:not(.match-avatar) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}
.match-slot.winner {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, transparent);
}
.match-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--primary) 18%, var(--surface));
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}
.match-avatar.placeholder i { font-size: 18px; }
.standings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr);
    gap: 18px;
    align-items: start;
}
.standing-player {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.standing-player.compact .match-avatar { width: 24px; height: 24px; }
.standing-player strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fixture-panel {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.fixture-round {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}
.fixture-round summary {
    cursor: pointer;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
}
.fixture-list {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}
.fixture-list-wide {
    padding: 0;
    gap: 0;
    border-top: 1px solid var(--line);
}
.fixture-match {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    display: grid;
    gap: 6px;
}
.fixture-match div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.fixture-list-wide .fixture-match {
    grid-template-columns: 250px minmax(0, 1fr) 160px;
    align-items: center;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
    padding: 18px 8px;
}
.match-row-meta {
    display: grid;
    gap: 3px;
}
.match-row-meta strong { color: var(--text); }
.match-row-meta small { color: #8db4ff; }
.fixture-match strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fixture-match small { color: var(--muted); }
.preview-row,
.bracket-match.preview,
.fixture-match.preview {
    color: color-mix(in srgb, var(--text) 86%, var(--muted));
}
.match-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-2);
    margin-bottom: 20px;
}
.match-filter-bar .filter-btn {
    border-radius: 0;
    border: 0;
    background: transparent;
}
.match-filter-bar .filter-btn.active {
    background: var(--primary);
    color: #06231f;
}
.match-row-list {
    display: grid;
    border-top: 1px solid var(--line);
}
.rounds-shell {
    display: grid;
    gap: 20px;
}
.rounds-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Badge color variants ── */
.badge--success { background: color-mix(in srgb, #22c55e 15%, transparent); color: #22c55e; border-color: color-mix(in srgb, #22c55e 30%, transparent); }
.badge--warning { background: color-mix(in srgb, #f59e0b 15%, transparent); color: #f59e0b; border-color: color-mix(in srgb, #f59e0b 30%, transparent); }
.badge--muted   { background: transparent; color: var(--text-muted); border-color: var(--line); }

/* ══════════════════════════════════════════
   ROUNDS GRID — grade de chips de rodada
   ══════════════════════════════════════════ */
.rounds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 8px;
}

/* Chip base */
.rchip {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px 8px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface, var(--bg));
    min-width: 100px;
    max-width: 160px;
    flex: 1 1 110px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
    position: relative;
    overflow: hidden;
}
.rchip:hover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 6%, var(--surface, var(--bg)));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* Mini barra de progresso no topo do chip */
.rchip__bar {
    display: block;
    height: 3px;
    background: color-mix(in srgb, var(--line) 60%, transparent);
    border-radius: 99px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.rchip__fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--line);
    transition: width .4s ease;
}

/* Label: nome da rodada — compacto, elipsis */
.rchip__label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

/* Meta: ícone + contagem */
.rchip__meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: inherit;
    opacity: .75;
}
.rchip__meta i { font-size: 11px; }

/* ── Separador de fase ── */
.rounds-grid-divider {
    width: 100%;
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 2px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.rounds-grid-divider::before,
.rounds-grid-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, var(--primary) 30%, var(--line));
}
.rounds-grid-divider span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* ── Chip de playoff — estilo distinto ── */
.rchip--playoff {
    border-style: dashed;
    min-width: 120px;
}
.rchip__phase-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--primary);
    align-self: flex-start;
}

/* ── Estado: encerrada ── */
.rchip--done {
    border-color: color-mix(in srgb, #22c55e 35%, var(--line));
    color: #22c55e;
}
.rchip--done .rchip__fill { background: #22c55e; }
.rchip--done .rchip__label { color: var(--text); }
.rchip--done:hover { border-color: #22c55e; background: color-mix(in srgb, #22c55e 10%, var(--surface, var(--bg))); }

/* ── Estado: em andamento ── */
.rchip--partial {
    border-color: color-mix(in srgb, #f59e0b 30%, var(--line));
    color: #f59e0b;
}
.rchip--partial .rchip__fill { background: #f59e0b; }
.rchip--partial .rchip__label { color: var(--text); }
.rchip--partial:hover { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 10%, var(--surface, var(--bg))); }

/* ── Estado: pendente ── */
.rchip--pending { opacity: .65; }
.rchip--pending:hover { opacity: 1; }

/* ── Selecionada (ativa) ── */
.rchip--active {
    opacity: 1 !important;
    box-shadow: 0 0 0 2px var(--primary), 0 4px 16px rgba(0,0,0,.22);
    transform: translateY(-1px);
}
.rchip--done.rchip--active   { box-shadow: 0 0 0 2px #22c55e, 0 4px 16px rgba(34,197,94,.18); }
.rchip--partial.rchip--active { box-shadow: 0 0 0 2px #f59e0b, 0 4px 16px rgba(245,158,11,.18); }

/* ══════════════════════════════════════════
   ROUND HEADER STRIP — cabeçalho da rodada
   ══════════════════════════════════════════ */
.round-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--line) 30%, transparent);
    border: 1px solid var(--line);
}
.round-header-strip__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.round-header-strip__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.round-header-strip__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.round-header-strip__count {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}
.round-header-strip__count span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.round-header-strip__bar {
    width: 100px;
    height: 6px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
}
.round-header-strip__fill {
    height: 100%;
    border-radius: 99px;
    background: var(--primary);
    transition: width .5s ease;
}
.round-header-strip__fill.done    { background: #22c55e; }
.round-header-strip__fill.partial { background: #f59e0b; }

/* Estado pill */
.round-state-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.round-state-pill--done    { background: color-mix(in srgb,#22c55e 15%,transparent); color:#22c55e; }
.round-state-pill--partial { background: color-mix(in srgb,#f59e0b 15%,transparent); color:#f59e0b; }
.round-state-pill--pending { background: color-mix(in srgb,var(--line) 40%,transparent); color:var(--text-muted); }
.match-row-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 132px;
    gap: 18px;
    align-items: center;
    padding: 18px 8px;
    border-bottom: 1px solid var(--line);
}
.match-row-info {
    display: grid;
    gap: 4px;
}
.match-row-info strong {
    color: var(--text);
    font-size: 15px;
}
.match-row-info small {
    color: #8db4ff;
}
.match-row-versus {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.match-row-player {
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}
.match-row-player strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.match-row-player.winner {
    border-color: color-mix(in srgb, var(--success) 70%, var(--line));
    color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
}
.match-row-score {
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-2);
    font-weight: 900;
}
.match-row-score span {
    min-width: 24px;
    text-align: center;
    font-size: 18px;
}
.match-row-score small {
    color: var(--muted);
    text-transform: uppercase;
}
.match-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-smish {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}
/* Botão Revisar placar — tom âmbar discreto */
.btn-revisar {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
    background: color-mix(in srgb, #f59e0b 10%, transparent);
    color: #f59e0b;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-revisar:hover {
    background: color-mix(in srgb, #f59e0b 20%, transparent);
    border-color: #f59e0b;
}
/* Aviso no modal de revisão — oculto por padrão, exibido via JS com display:flex */
.admin-modal-revisar-warning {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: color-mix(in srgb, #f59e0b 12%, transparent);
    border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
    color: #f59e0b;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.admin-modal-revisar-warning i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.match-action-hint {
    margin-top: 6px;
    color: #8db4ff;
    font-size: 12px;
}
.action-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(7, 10, 16, .62);
    display: grid;
    place-items: center;
    padding: 18px;
}
.action-modal[hidden] { display: none; }
.action-modal-card {
    width: min(620px, 100%);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.org-quick-modal {
    background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface-2) 75%, var(--surface)));
}
.org-url-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}
.org-url-field span {
    min-height: 44px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    background: var(--surface-2);
    border-right: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
}
.org-url-field input {
    border: 0;
    border-radius: 0;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.result-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    display: grid;
    gap: 14px;
}
.result-card-head,
.result-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.result-card-head strong,
.result-card-foot strong {
    color: var(--text);
}
.result-card-foot span {
    color: var(--muted);
}
.result-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.result-side {
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.result-side strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.result-side.winner {
    border-color: color-mix(in srgb, var(--success) 70%, var(--line));
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
    color: var(--success);
}
.result-scoreboard {
    min-height: 62px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
}
.result-scoreboard span {
    font-size: 28px;
    font-weight: 900;
}
.result-scoreboard small {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}
.group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.group-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}
.mini-standings {
    margin-top: 12px;
    background: var(--surface);
}

/* ── Grupos & Playoffs ── */
.gp-board { display: flex; flex-direction: column; gap: 0; }
.gp-group-row {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.gp-group-row:last-child { margin-bottom: 0; }
.gp-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.gp-group-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}
.gp-group-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
    background: var(--surface);
}
.gp-standings-wrap {
    border-right: 1px solid var(--line);
    overflow-x: auto;
}
.gp-standings { min-width: 0; width: 100%; }
.gp-standings thead th { font-size: 11px; }
.gp-standings tbody tr.qualifies td {
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.gp-standings tbody tr.qualifies td:first-child {
    border-left: 3px solid var(--primary);
}
.gp-standings tbody tr:not(.qualifies) + tr.qualifies td,
.gp-standings tbody tr.qualifies + tr:not(.qualifies) td:first-child {
    border-left: 3px solid transparent;
}
.gp-pos {
    display: flex;
    align-items: center;
    gap: 5px;
}
.gp-qualify-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.gp-group-fixtures {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 300px;
    min-width: 0;
}
.gp-group-fixtures .eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
}
.gp-fixture-round {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gp-round-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    padding: 2px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2px;
}
.gp-fixture-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr);
    align-items: center;
    gap: 4px;
    padding: 3px 4px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
}
.gp-fixture-row.done {
    background: var(--surface-2);
}
.gp-fx-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.gp-fx-name.right {
    text-align: right;
}
.gp-fx-name.winner {
    font-weight: 700;
    color: var(--primary);
}
.gp-fx-score {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    background: var(--surface-2);
    border-radius: 4px;
    padding: 1px 4px;
}
.gp-empty-round {
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
}
.gp-empty {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}
@media (max-width: 860px) {
    .gp-group-body { grid-template-columns: 1fr; }
    .gp-standings-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
    .gp-group-fixtures { max-height: none; }
}
.mini-standings table,
.standings-table table {
    min-width: 0;
}
.standing-pos-cell {
    white-space: nowrap;
}
.pos-up, .pos-down {
    font-size: 11px;
    font-weight: 700;
    margin-left: 3px;
}
.pos-up   { color: #22c55e; }
.pos-down { color: #ef4444; }

/* ══════════════════════════════════════════
   PÓDIO — medalhas e destaque de campeões
   ══════════════════════════════════════════ */

/* Medalha na célula de posição */
.standing-medal {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* Coroa dourada ao lado do nome */
.standing-crown {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #f59e0b;
    font-size: 14px;
    animation: crown-glow 2s ease-in-out infinite alternate;
}
@keyframes crown-glow {
    from { text-shadow: 0 0 4px rgba(245,158,11,.4); }
    to   { text-shadow: 0 0 12px rgba(245,158,11,.9); }
}

/* Linha — Campeão */
.standing-row--champion {
    background: linear-gradient(90deg,
        color-mix(in srgb, #f59e0b 14%, transparent) 0%,
        color-mix(in srgb, #f59e0b 4%, transparent) 100%
    ) !important;
    border-left: 3px solid #f59e0b;
    position: relative;
}
.standing-row--champion td { color: var(--text); }
.standing-row--champion td strong { color: #f8d262; }

/* Linha — Vice-campeão */
.standing-row--runner-up {
    background: linear-gradient(90deg,
        color-mix(in srgb, #94a3b8 12%, transparent) 0%,
        color-mix(in srgb, #94a3b8 3%, transparent) 100%
    ) !important;
    border-left: 3px solid #94a3b8;
}
.standing-row--runner-up td strong { color: #cbd5e1; }

/* Linha — 3º lugar */
.standing-row--third {
    background: linear-gradient(90deg,
        color-mix(in srgb, #cd7c3e 10%, transparent) 0%,
        color-mix(in srgb, #cd7c3e 2%, transparent) 100%
    ) !important;
    border-left: 3px solid #cd7c3e;
}
.standing-row--third td strong { color: #d4945c; }

/* ── Pódio no card Resumo ── */
.podio-resumo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 4px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, #f59e0b 30%, var(--line));
    background: linear-gradient(135deg,
        color-mix(in srgb, #f59e0b 10%, var(--surface, var(--bg))) 0%,
        var(--surface, var(--bg)) 60%
    );
}
.podio-resumo__item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.podio-resumo__item--campeao {
    padding-bottom: 8px;
    border-bottom: 1px solid color-mix(in srgb, #f59e0b 20%, transparent);
}
.podio-resumo__medal { font-size: 22px; flex-shrink: 0; line-height: 1; }
.podio-resumo__info  { flex: 1; min-width: 0; }
.podio-resumo__rank  {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1px;
}
.podio-resumo__name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.podio-resumo__item--campeao .podio-resumo__name { color: #f8d262; }
.podio-resumo__trophy {
    font-size: 22px;
    color: #f59e0b;
    flex-shrink: 0;
    animation: crown-glow 2s ease-in-out infinite alternate;
}

.format-board[data-hide-byes="true"] .bracket-match.has-bye { display: none; }
.format-board:fullscreen {
    overflow: auto;
    padding: 24px;
    background: var(--bg);
}
.org-section { margin-top: 18px; }
.future-feature {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr);
    gap: 20px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(125deg, color-mix(in srgb, var(--surface-2) 90%, transparent), color-mix(in srgb, var(--primary) 12%, var(--surface)));
}
.future-feature-media {
    min-height: 210px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-2);
}
.future-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.future-feature-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 44px;
    color: color-mix(in srgb, var(--primary) 68%, var(--text));
}
.future-feature-content {
    display: grid;
    align-content: center;
    gap: 8px;
}
.future-feature-content h3 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 38px);
}
.future-feature-content p {
    margin: 0;
    color: var(--muted);
}
.member-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 20px;
}
.member-card {
    min-width: 0;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 8px;
}
.member-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--primary) 60%, var(--text));
    font-size: 48px;
    font-weight: 900;
}
.member-card strong {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-card span { color: #8db4ff; font-size: 14px; }
.past-tournament-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.past-tournament-card {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.tournament-thumb {
    height: 154px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(24,169,153,.28), rgba(255,176,32,.18)),
        var(--surface-2);
    position: relative;
}
.tournament-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tournament-thumb .game-mark {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--danger);
    color: #fff;
}
.past-meta { display: flex; gap: 10px; align-items: center; min-width: 0; }
.past-meta .org-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary);
    display: grid;
    place-items: center;
    color: #08211f;
    font-weight: 900;
    flex: 0 0 auto;
}
.past-meta strong, .past-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-meta small { color: #8db4ff; margin-top: 3px; }
.org-featured-panel {
    background: linear-gradient(155deg, #0f1a2d, #0a1324);
    color: #eef4ff;
}
.org-featured-panel .eyebrow { color: #67e8f9; }
.org-featured-panel .panel-header p { color: #93a6c3; }
.org-featured-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.org-featured-item {
    min-width: 0;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
}
.org-featured-item img,
.org-featured-avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
}
.org-featured-item img {
    border: 2px solid rgba(103, 232, 249, .35);
}
.org-featured-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(24, 169, 153, .75), rgba(255, 176, 32, .75));
    color: #0e1728;
    font-weight: 900;
}
.org-featured-item strong {
    width: 100%;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.org-featured-item span {
    color: #8fb0de;
    font-size: 13px;
}
.tournament-list {
    display: grid;
    gap: 16px;
}
.tournament-row {
    display: grid;
    grid-template-columns: 210px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
}
.tournament-row:hover { background: var(--surface-2); }
.tournament-row .tournament-thumb { height: 112px; }
.mode-filter {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}
.segment { display: inline-flex; gap: 6px; }
.segment span, .segment a, .filter-btn {
    min-height: 40px;
    min-width: 62px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--line) 75%, var(--primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.segment span.active, .segment a.active, .filter-btn { border-color: var(--primary); color: var(--text); }
.role-switcher { flex-wrap: nowrap; }
.role-toggle {
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--line) 75%, var(--primary));
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}
.role-toggle.active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: var(--text);
}

.sidebar-backdrop { display: none; }

@media (max-width: 1040px) {
    .hero, .grid-2 { grid-template-columns: 1fr; }
    .grid-3, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-strip { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
    .player-list, .config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-metrics,
    .overview-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .standings-layout { grid-template-columns: 1fr; }
    .past-tournament-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .org-featured-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tournament-row { grid-template-columns: 160px 1fr; }
    .tournament-row > .icon-btn { display: none; }
}

@media (max-width: 820px) {
    .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
    .app-shell[data-sidebar-mode="collapsed"] .sidebar { width: 280px; padding: 22px 18px; transform: translateX(-105%); }
    .app-shell[data-sidebar-mode="collapsed"] .brand span,
    .app-shell[data-sidebar-mode="collapsed"] .side-panel { display: block; }
    .app-shell[data-sidebar-mode="collapsed"] .side-nav a { justify-content: flex-start; font-size: inherit; padding: 10px 12px; }
    .app-shell[data-sidebar-mode="collapsed"] .side-nav a:hover::after { display: none; }
    .app-shell[data-sidebar="open"] .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .45); }
    .app-shell[data-sidebar="open"] .sidebar-backdrop { display: block; }
    .main { margin-left: 0; }
    .menu-btn { display: inline-flex; }
    .topbar { padding: 12px 16px; }
    .topbar-title strong { font-size: 16px; }
    .topbar-actions { gap: 6px; }
    .role-switcher { display: none; }
    .topbar-actions .btn, .user-pill small { display: none; }
    .content, .footer { width: min(100% - 28px, 1220px); }
    .footer { flex-direction: column; }
    .org-cover-content { grid-template-columns: 1fr; align-items: start; }
    .member-strip { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .player-list, .config-grid { grid-template-columns: 1fr; }
    .overview-header,
    .overview-copy-grid,
    .overview-info-list,
    .overview-metrics,
    .overview-timeline { grid-template-columns: 1fr; }
    .overview-header { display: grid; }
    .overview-status { justify-items: start; }
    .overview-status strong { text-align: left; }
    .group-grid { grid-template-columns: 1fr; }
    .format-actions { justify-content: flex-start; width: 100%; }
    .format-admin-callout { align-items: stretch; flex-direction: column; }
    .match-filter-bar { grid-template-columns: 1fr 1fr; }
    .fixture-list-wide .fixture-match { grid-template-columns: 1fr; }
    .stage-steps { grid-template-columns: 1fr 1fr; }
    .tournament-checkin-panel { align-items: stretch; flex-direction: column; }
    .match-row-card { grid-template-columns: 1fr; }
    .match-row-versus { grid-template-columns: 1fr; }
    .match-row-score { grid-template-columns: 1fr auto 1fr; width: 112px; justify-self: center; }
    .match-row-actions { justify-content: flex-start; }
    .results-grid { grid-template-columns: 1fr; }
    .result-card-body { grid-template-columns: 1fr; }
    .member-avatar { width: 108px; height: 108px; }
    .past-tournament-grid { grid-template-columns: 1fr; }
    .org-featured-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tournament-row { grid-template-columns: 1fr; }
    .mode-filter { align-items: stretch; flex-direction: column; }
    .segment { overflow-x: auto; }
    .future-feature { grid-template-columns: 1fr; }
    .dashboard-cta-banner { grid-template-columns: 1fr; }
    .dashboard-cta-visual { min-height: auto; }
    .ranking-podium { grid-template-columns: 1fr; }
    .ranking-row { grid-template-columns: 1fr; align-items: start; }
    .ranking-row-metrics { justify-content: flex-start; }
}

@media (max-width: 620px) {
    .hero-main { padding: 22px; min-height: auto; }
    .grid-3, .stat-grid, .form-grid, .game-account-grid, .game-picker-grid { grid-template-columns: 1fr; }
    .game-account-card { grid-template-columns: 1fr; }
    .org-featured-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-header { flex-direction: column; }
    .split-actions { width: 100%; }
    .split-actions .btn { flex: 1; }
}

/* =============================================================
   Wizard de criacao de torneio
   ============================================================= */
.wizard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.wizard-main { min-width: 0; display: grid; gap: 14px; }
.wizard-header h1 { margin: 6px 0 4px; }
.wizard-header p { color: var(--muted); margin: 0; }

.wizard-stepper {
    list-style: none;
    margin: 0;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    counter-reset: wizardstep;
}
.wizard-stepper li {
    flex: 1 1 130px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.wizard-stepper li::before {
    counter-increment: wizardstep;
    content: counter(wizardstep);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid var(--line);
}
.wizard-stepper li.is-current {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--text);
    border-color: var(--primary);
}
.wizard-stepper li.is-current::before {
    background: var(--primary);
    color: #06231f;
    border-color: var(--primary);
}
.wizard-stepper li.is-done {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
}
.wizard-stepper li.is-done::before {
    content: '\2713';
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.wizard-stepper li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.wizard-step .panel { box-shadow: none; }
.wizard-step + .wizard-step { margin-top: 0; }
.wizard-step h2 { margin: 0; }

.wizard-footer {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.wizard-footer .spacer { flex: 1; }
.wizard-footer [hidden] { display: none !important; }

.wizard-summary {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.wizard-summary .eyebrow { color: var(--primary); }
.wizard-summary h3 { margin: 0; font-size: 18px; }
.wizard-summary dl { margin: 0; display: grid; gap: 8px; }
.wizard-summary dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.wizard-summary dt { color: var(--muted); font-weight: 700; }
.wizard-summary dd { margin: 0; font-weight: 700; text-align: right; }
.wizard-summary .summary-preview {
    border-top: 1px dashed var(--line);
    padding-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.wizard-summary .summary-preview strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 13px; }
.wizard-summary .summary-warnings { display: grid; gap: 6px; }

/* Cards selecionaveis (jogo, formato, participacao) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.option-grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.option-card {
    text-align: left;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    gap: 6px;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
    color: var(--text);
    font: inherit;
}
.option-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.option-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.option-card strong { font-size: 15px; }
.option-card small { color: var(--muted); font-size: 12px; }
.option-card .option-tag {
    align-self: start;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.option-card .option-tag.simples { color: #064e3b; background: #a7f3d0; }
.option-card .option-tag.intermediario { color: #1f1600; background: var(--accent); }
.option-card .option-tag.avancado { color: #fff; background: var(--primary-strong); }
.option-card .option-illustration {
    height: 38px;
    border-radius: 6px;
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--primary) 35%, transparent) 0 8px, transparent 8px 16px),
        var(--surface-2);
    margin-bottom: 4px;
}
.option-card .option-illustration.liga {
    background:
        linear-gradient(180deg, transparent 6px, color-mix(in srgb, var(--primary) 35%, transparent) 6px 8px, transparent 8px 16px, color-mix(in srgb, var(--primary) 35%, transparent) 16px 18px, transparent 18px),
        var(--surface-2);
}
.option-card .option-illustration.grupos {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--primary) 35%, transparent) 50%, color-mix(in srgb, var(--accent) 35%, transparent) 50%),
        var(--surface-2);
}

/* Blocos de regras condicionais */
.rule-block {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    background: var(--surface);
    margin-bottom: 12px;
}
.rule-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.rule-block-header h3 { margin: 0; font-size: 15px; }
.rule-block-header small { color: var(--muted); font-size: 12px; }

.advanced-toggle {
    width: 100%;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    margin-top: 12px;
}
.advanced-toggle[aria-expanded="true"] { background: var(--surface-2); border-style: solid; }
.advanced-toggle i { transition: transform .16s ease; }
.advanced-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.advanced-content { display: none; padding-top: 14px; }
.advanced-toggle[aria-expanded="true"] + .advanced-content { display: block; }

/* Alerts contextuais */
.alert-block {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}
.alert-block i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-block.info { color: #0e3a5e; background: #d6eaff; border-color: #b8d8f4; }
.alert-block.warn { color: #4a2f00; background: #fff1c4; border-color: #f1d27c; }
.alert-block.error { color: #4a0d10; background: #fde4e5; border-color: #f3b6ba; }
[data-theme="dark"] .alert-block.info { color: #cbe2ff; background: rgba(33, 124, 230, .14); border-color: rgba(33, 124, 230, .35); }
[data-theme="dark"] .alert-block.warn { color: #ffd680; background: rgba(216, 138, 0, .14); border-color: rgba(216, 138, 0, .35); }
[data-theme="dark"] .alert-block.error { color: #ffb1b4; background: rgba(229, 72, 77, .14); border-color: rgba(229, 72, 77, .35); }
.alert-stack { display: grid; gap: 8px; }

/* Lista ordenavel de criterios */
.criteria-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.criteria-list li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}
.criteria-list .criteria-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #06231f;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}
.criteria-list .criteria-actions { display: flex; gap: 4px; }
.criteria-list .criteria-actions button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.criteria-list .criteria-actions button:disabled { opacity: .35; cursor: not-allowed; }

/* Revisao final */
.review-block {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--surface);
    margin-bottom: 12px;
    display: grid;
    gap: 10px;
}
.review-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.review-block-header h3 { margin: 0; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.review-block dl { margin: 0; display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 14px; }
.review-block dt { color: var(--muted); font-weight: 700; }
.review-block dd { margin: 0; font-weight: 700; }

/* Segmented control reutilizavel para escolhas binarias */
.segmented {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-2);
}
.segmented button {
    border: 0;
    background: transparent;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
    font: inherit;
    min-height: 38px;
}
.segmented button.is-active { background: var(--primary); color: #06231f; }

@media (max-width: 1024px) {
    .wizard-shell { grid-template-columns: 1fr; }
    .wizard-summary { position: static; }
    .wizard-stepper li { flex: 1 1 90px; font-size: 12px; }
}
@media (max-width: 620px) {
    .wizard-stepper li span { display: none; }
    .wizard-stepper li { flex: 0 0 auto; padding: 8px; }
    .wizard-footer { flex-wrap: wrap; }
    .review-block dl { grid-template-columns: 1fr; }
}
