:root {
    --bg: #f3f7fb;
    --surface: #ffffff;
    --surface-soft: #eef7ff;
    --ink: #0b1425;
    --muted: #738197;
    --line: #dbe6f1;
    --line-strong: #c6d7e8;
    --blue: #1e9af2;
    --blue-dark: #06325f;
    --cyan: #69d7ff;
    --mint: #37c99a;
    --violet: #825be9;
    --red: #ed4d64;
    --amber: #b87816;
    --sidebar: #061a31;
    --sidebar-2: #08233f;
    --sidebar-muted: #89a2bc;
    --shadow: 0 18px 45px rgba(20, 54, 92, .10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255,255,255,.7), rgba(243,247,251,.9) 320px),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

body.auth-open,
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 292px;
    padding: 28px 22px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #dcecff;
    background:
        radial-gradient(circle at 72% 15%, rgba(32, 154, 242, .17), transparent 32%),
        linear-gradient(180deg, var(--sidebar), #041324);
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 8px 30px;
    font-size: 26px;
    font-weight: 850;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(162, 213, 255, .30);
    border-radius: var(--radius);
    color: #dcf5ff;
    background: linear-gradient(145deg, rgba(114, 203, 255, .32), rgba(20, 75, 130, .76));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.sidebar-sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -14px 0 22px;
    min-height: 78px;
    padding: 9px 15px;
    overflow: hidden;
    border: 1px solid rgba(105, 215, 255, .46);
    border-radius: var(--radius);
    color: #eaf8ff;
    background:
        linear-gradient(135deg, rgba(30, 154, 242, .26), rgba(55, 201, 154, .18)),
        linear-gradient(180deg, rgba(9, 41, 76, .96), rgba(4, 19, 36, .94));
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.12);
}

.sidebar-sponsor-logo {
    display: block;
    width: 204px;
    max-width: 100%;
    height: 56px;
    margin: 0;
    overflow: hidden;
}

.sidebar-sponsor-logo img {
    display: block;
    width: 204px;
    max-width: none;
    height: 204px;
    filter: invert(1) brightness(1.25) contrast(1.05);
    transform: translate(-1px, -75px);
}

.round-card {
    border: 1px solid rgba(164, 211, 255, .14);
    border-radius: var(--radius);
    background: rgba(15, 47, 82, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.round-card {
    padding: 18px 18px 20px;
    margin-bottom: 26px;
}

.card-label,
.nav-label,
.kicker {
    display: block;
    color: #258fdf;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.round-card strong {
    display: block;
    margin: 10px 0 14px;
    font-size: 18px;
}

.round-card small {
    color: #89a2bc;
}

.progress {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(163, 207, 243, .12);
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.nav-group {
    margin: 0 0 26px;
}

.nav-label {
    margin: 0 8px 10px;
    color: #617993;
}

.nav-link {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 13px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #a7b8c8;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    border-color: rgba(93, 181, 255, .22);
    background: linear-gradient(90deg, rgba(30, 154, 242, .28), rgba(20, 65, 110, .12));
}

.nav-link.is-active::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(105, 215, 255, .9);
}

.nav-link em {
    display: grid;
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    place-items: center;
    border-radius: 999px;
    color: #c9edff;
    background: rgba(55, 156, 232, .36);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.sidebar-bottom {
    display: grid;
    gap: 16px;
    margin-top: auto;
    padding-top: 64px;
}

.login-mini {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 0 8px;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}

.login-mini span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--radius);
    color: #06213c;
    background: #a6e4ff;
    font-weight: 850;
}

.login-mini span .icon {
    width: 21px;
    height: 21px;
}

.login-mini div {
    display: grid;
    gap: 2px;
}

.login-mini strong,
.account-mini-link {
    color: inherit;
    font-weight: 850;
}

.login-mini small {
    color: var(--sidebar-muted);
    font-size: 12px;
    font-weight: 700;
}

.login-mini button {
    width: max-content;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.login-mini button + button {
    color: var(--sidebar-muted);
    font-size: 12px;
    font-weight: 700;
}

.logout-mini {
    margin: 0;
}

.logout-mini button {
    color: var(--sidebar-muted);
    font-size: 12px;
    font-weight: 700;
}

.creator-link {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 55;
    display: inline-flex;
    width: max-content;
    max-width: calc(100vw - 36px);
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(162, 213, 255, .18);
    border-radius: 999px;
    color: #f3fbff;
    background: linear-gradient(135deg, rgba(8, 35, 63, .94), rgba(4, 19, 36, .84));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    font-size: 13px;
    font-weight: 850;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.creator-link:hover {
    color: #fff;
    border-color: rgba(105, 215, 255, .42);
    background: linear-gradient(135deg, rgba(14, 52, 88, .96), rgba(5, 26, 50, .9));
    box-shadow: 0 12px 24px rgba(2, 12, 24, .22), inset 0 1px 0 rgba(255,255,255,.1);
}

.creator-link:focus-visible {
    outline: 2px solid rgba(105, 215, 255, .85);
    outline-offset: 3px;
}

.creator-link .icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    color: var(--cyan);
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app {
    min-height: 100vh;
    margin-left: 292px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    height: 78px;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    padding: 0 54px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 251, 255, .88);
    backdrop-filter: blur(18px);
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6d7b91;
    font-weight: 800;
}

.content {
    width: calc(100% - 72px);
    max-width: 1240px;
    min-width: 0;
    margin: 0 auto;
    padding: 56px 0 70px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.page-head h1 {
    margin: 14px 0 12px;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 650;
}

.page-head p,
.section-heading p,
.form-title p,
.card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.role-badge {
    margin-top: 10px;
    padding: 11px 16px;
    border: 1px solid #bfe3fb;
    border-radius: var(--radius);
    color: #187dbe;
    background: #eef9ff;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 850;
    line-height: 1;
}

.button.is-loading {
    pointer-events: none;
    opacity: .82;
}

.button.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #65d8ff, #1d91ec);
    box-shadow: 0 12px 25px rgba(30, 154, 242, .26);
}

.button-dark {
    color: #d8edff;
    background: rgba(4, 24, 48, .68);
    border-color: rgba(255,255,255,.12);
}

.button-light {
    color: var(--blue-dark);
    background: #dff7ff;
}

.button-ghost {
    min-height: 38px;
    color: #376079;
    border-color: #cfe0ed;
    background: #f8fcff;
    box-shadow: none;
}

.button-danger {
    color: #b2465a;
    border-color: #f1cdd5;
    background: #fff7f8;
}

.button-wide {
    width: 100%;
}

.button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.hero-panel {
    position: relative;
    display: grid;
    min-height: 362px;
    grid-template-columns: 1fr 270px;
    align-items: center;
    gap: 44px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 56px 52px;
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(circle at 78% 42%, rgba(64, 179, 255, .33), transparent 27%),
        radial-gradient(circle at 42% 80%, rgba(49, 210, 183, .18), transparent 34%),
        linear-gradient(135deg, #071b35 0%, #052b57 52%, #086ea3 100%);
    box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-panel::before {
    width: 400px;
    height: 400px;
    right: 58px;
    top: -54px;
    border: 1px solid rgba(126, 212, 255, .13);
    border-radius: 50%;
    box-shadow:
        0 0 0 54px rgba(119, 207, 255, .05),
        0 0 0 108px rgba(119, 207, 255, .04),
        inset 0 0 0 80px rgba(255,255,255,.02);
}

.hero-panel::after {
    right: 80px;
    bottom: 42px;
    width: 88px;
    height: 62px;
    border: 1px solid rgba(169, 228, 255, .18);
    border-radius: var(--radius);
    background: rgba(1, 21, 42, .26);
}

.hero-copy,
.hero-prize {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(140, 222, 255, .16);
    border-radius: 999px;
    color: #91defc;
    background: rgba(255,255,255,.06);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.hero-panel h1 {
    margin: 18px 0 16px;
    font-size: 62px;
    line-height: .98;
    font-weight: 650;
}

.hero-panel h1 em {
    color: #92ddff;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
}

.hero-panel p {
    max-width: 560px;
    margin: 0 0 25px;
    color: #bdd2e4;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions form {
    margin: 0;
}

.hero-prize {
    display: grid;
    width: 210px;
    height: 210px;
    place-items: center;
    justify-self: center;
    border: 1px solid rgba(164, 225, 255, .20);
    border-radius: 50%;
    background: rgba(7, 50, 94, .48);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-prize span,
.hero-prize small {
    color: #a8c8df;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-prize strong {
    margin: -18px 0;
    font-size: 34px;
}

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

.metric-card,
.surface,
.step-card,
.profile-card,
.clip-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-card {
    display: flex;
    min-height: 102px;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.metric-card small,
.clip-body footer,
.queue-head,
.field small,
.profile-card small,
.card-head p,
.integration-row small,
.team-row small,
.user-row small,
.profile-top p,
.profile-details dt,
.history-row small,
.leader-row small {
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin: 4px 0;
    font-size: 26px;
}

.metric-card em {
    display: block;
    color: var(--mint);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.metric-highlight {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #086ea3, #20a8f5);
}

.metric-highlight small,
.metric-highlight em {
    color: #d9f4ff;
}

.metric-icon,
.soft-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #edf8ff;
}

.section-block {
    margin-top: 8px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading > div {
    min-width: 0;
}

.section-heading h2,
.section-block > h2 {
    margin: 8px 0 6px;
    font-size: 28px;
}

.section-heading a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #238fd8;
    font-weight: 850;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.section-actions form {
    margin: 0;
}

.dashboard-status {
    margin: -6px 0 18px;
}

.toolbar,
.queue-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    max-width: 100%;
}

.tabs button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 0;
    border-radius: 6px;
    color: #64758a;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.tabs button.is-active {
    color: #fff;
    background: var(--blue);
}

.tabs span {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.20);
    font-size: 12px;
}

.search-field {
    display: flex;
    min-width: 260px;
    height: 44px;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: #9aa8b8;
}

.search-field input,
.field input,
.field select,
.toolbar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.toolbar select {
    width: 190px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.clip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.clip-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.clip-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
}

.clip-card-link:focus-visible {
    outline: 3px solid rgba(30, 154, 242, .55);
    outline-offset: 3px;
}

.clip-card.is-clickable {
    cursor: pointer;
}

.clip-card.is-clickable:hover .clip-body h3 {
    color: var(--blue);
}

.clip-card.is-filtered-out,
.clip-card[hidden],
.empty-state[hidden] {
    display: none;
}

.clip-thumb {
    position: relative;
    display: grid;
    min-height: 150px;
    align-content: end;
    padding: 18px;
    overflow: hidden;
    color: #fff;
}

.clip-thumb > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.clip-card.is-clickable:hover .clip-thumb > img {
    transform: scale(1.035);
}

.clip-thumb::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -86px;
    top: -86px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.04);
}

.clip-thumb.has-preview::before {
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(2, 17, 31, .08), rgba(2, 17, 31, .82));
    box-shadow: none;
}

.clip-thumb::after {
    content: "*";
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: rgba(255,255,255,.22);
    font-size: 48px;
    font-weight: 300;
}

.clip-thumb.has-preview::after {
    display: none;
}

.clip-thumb strong {
    position: relative;
    z-index: 2;
    max-width: 72%;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,.36);
}

.clip-play,
.action-set button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
}

.clip-play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    color: #fff;
    background: rgba(2, 23, 45, .56);
    transform: translate(-50%, -50%);
}

.platform-pill,
.rank-pill {
    position: absolute;
    top: 14px;
    z-index: 2;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(1, 20, 39, .58);
    font-size: 11px;
    font-weight: 850;
}

.platform-pill {
    left: 14px;
}

.rank-pill {
    right: 14px;
}

.tone-aqua { background: linear-gradient(135deg, #00a6b7, #06315c); }
.tone-blue { background: linear-gradient(135deg, #1d9bee, #062a57); }
.tone-violet { background: linear-gradient(135deg, #8053e9, #07325f); }
.tone-navy { background: linear-gradient(135deg, #063e65, #051d38); }
.tone-cyan { background: linear-gradient(135deg, #32c3dd, #06335f); }
.tone-green { background: linear-gradient(135deg, #00a99c, #07365a); }
.tone-red { background: linear-gradient(135deg, #e94a62, #21456a); }
.tone-dark { background: #132f4d; }
.tone-lime { background: #7cff45; color: #102d18; }

.clip-body {
    padding: 18px;
}

.clip-body h3 {
    margin: 0 0 18px;
    min-height: 42px;
    font-size: 15px;
    text-transform: uppercase;
}

.clip-description {
    display: -webkit-box;
    min-height: 42px;
    margin: -8px 0 16px;
    overflow: hidden;
    color: #52657b;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-row > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #edf8ff;
    font-weight: 850;
}

.author-row small,
.author-row strong {
    display: block;
}

.clip-body footer {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 18px;
    font-size: 12px;
}

.clip-body footer em {
    margin-left: auto;
    color: var(--mint);
    font-style: normal;
    font-weight: 850;
}

.finish-hero {
    margin-bottom: 22px;
}

.winner-finish-form {
    display: grid;
    gap: 18px;
}

.winner-counter {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    border: 1px solid #bfe3fb;
    border-radius: var(--radius);
    color: #147fc7;
    background: #eef9ff;
    font-weight: 900;
}

.winner-counter span,
.winner-counter strong {
    font-size: 20px;
}

.winner-select-card {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.winner-select-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.winner-select-card.is-selected {
    border-color: #1e9af2;
    box-shadow: 0 18px 40px rgba(30, 154, 242, .16);
}

.winner-select-card.is-disabled {
    cursor: default;
}

.winner-check {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 999px;
    color: transparent;
    background: rgba(1, 20, 39, .38);
    cursor: pointer;
}

.winner-select-card.is-selected .winner-check {
    color: #06315c;
    background: #a6e4ff;
}

.winner-select-card.is-disabled .winner-check {
    cursor: not-allowed;
    opacity: .55;
}

.winner-select-card .platform-pill {
    left: 56px;
}

.winner-feedback {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    cursor: default;
}

.winner-feedback span {
    color: #34445a;
    font-size: 12px;
    font-weight: 850;
}

.winner-feedback textarea {
    width: 100%;
    min-height: 86px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    resize: vertical;
}

.winner-feedback textarea:focus {
    border-color: #8ad8ff;
    box-shadow: 0 0 0 4px rgba(105, 215, 255, .16);
}

.finish-actions {
    justify-content: flex-end;
}

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

.step-card {
    min-height: 180px;
    padding: 28px 24px;
}

.step-card span {
    display: block;
    margin-bottom: 38px;
    color: var(--blue);
    font-weight: 900;
}

.step-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.step-card p,
.rule-row p,
.checklist-card li,
.history-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.notice-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0 36px;
    padding: 20px 24px;
    border: 1px solid #a8dffa;
    border-radius: var(--radius);
    color: #28536b;
    background: #eef9ff;
}

.notice-strip > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--blue);
}

.notice-strip p {
    flex: 1;
    margin: 0;
}

.notice-strip a,
.notice-strip button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    padding: 0;
    color: #1689d4;
    background: transparent;
    font-weight: 850;
    font: inherit;
    cursor: pointer;
}

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

.profile-card {
    display: grid;
    min-height: 76px;
    grid-template-columns: 46px 1fr 18px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.profile-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 900;
}

.profile-favicon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.profile-favicon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.profile-card strong,
.profile-card small {
    display: block;
}

.two-column,
.submit-layout,
.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 22px;
    align-items: start;
}

.two-column {
    align-items: stretch;
}

.two-column > .surface,
.two-column > .reward-card-large {
    height: 100%;
}

.submit-layout {
    align-items: stretch;
}

.submit-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.submit-layout > .surface {
    height: 100%;
}

.surface {
    padding: 28px;
    min-width: 0;
}

.prose-card h2,
.reward-card-large strong,
.checklist-card h2,
.settings-card h2,
.team-card h2,
.integrations-card h2,
.user-summary-card h2,
.users-card h2 {
    margin: 10px 0 20px;
    font-size: 28px;
}

.rule-row {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.rule-row h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.reward-card-large {
    overflow: hidden;
    padding: 38px 30px;
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(83, 197, 255, .32), transparent 34%),
        linear-gradient(145deg, #06345f, #078ad3);
    box-shadow: var(--shadow);
}

.reward-card-large > span {
    color: #cbe9fb;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.reward-card-large strong {
    display: block;
    font-size: 48px;
    line-height: 1;
}

.reward-card-large div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 28px 0;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.10);
}

.reward-card-large p {
    display: grid;
    gap: 4px;
    margin: 0;
}

.reward-card-large b {
    display: block;
}

.reward-card-large small {
    color: #d4f2ff;
    line-height: 1.45;
}

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

.form-title {
    display: flex;
    grid-column: 1 / -1;
    gap: 16px;
    align-items: flex-start;
}

.form-title > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eaf8ff;
    font-weight: 900;
}

.form-title h2 {
    margin: 0 0 4px;
    font-size: 25px;
}

.field {
    display: grid;
    gap: 9px;
}

.field-full {
    grid-column: 1 / -1;
}

.field > span {
    color: #34445a;
    font-size: 13px;
    font-weight: 850;
}

.field input,
.field select,
.field textarea {
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.field textarea {
    height: auto;
    min-height: 118px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field:focus-within {
    border-color: #8ad8ff;
    box-shadow: 0 0 0 4px rgba(105, 215, 255, .16);
}

.check-field {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #66758a;
}

.check-field input {
    width: 20px;
    height: 20px;
}

.form-status {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: var(--radius);
    color: #116b9f;
    background: #edf9ff;
    font-weight: 800;
}

.form-status.is-success {
    color: #167052;
    background: #eefbf6;
}

.form-status.is-error {
    color: #9f1d33;
    background: #fff1f4;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 22px;
    align-items: start;
}

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

.account-side {
    display: grid;
    gap: 16px;
}

.account-side h2,
.account-side p {
    margin: 0;
}

.account-side p {
    color: var(--muted);
    line-height: 1.65;
}

.account-feedback-card {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.account-feedback-card .section-heading {
    margin-bottom: 0;
}

.account-feedback-list {
    display: grid;
    gap: 14px;
}

.account-feedback-item {
    display: grid;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.feedback-meta {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.feedback-meta > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #edf8ff;
}

.feedback-meta strong,
.feedback-meta small,
.account-feedback-item a {
    display: block;
}

.feedback-meta strong {
    color: var(--ink);
}

.feedback-meta small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.account-feedback-item p {
    margin: 0;
    color: #42546a;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.account-feedback-item a {
    justify-self: start;
    color: #1689d4;
    font-weight: 850;
}

.account-feedback-item a:hover {
    text-decoration: underline;
}

.checklist-card {
    min-height: 360px;
}

.checklist-card .soft-icon {
    margin-bottom: 30px;
}

.checklist-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.65;
}

.checklist-card .button {
    width: fit-content;
}

.checklist-card ul {
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 26px 0 32px;
    list-style: none;
}

.checklist-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checklist-card li .icon {
    color: var(--blue);
}

.info-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border-radius: var(--radius);
    color: #3c6177;
    background: #eff7ff;
}

.info-box strong,
.info-box small {
    display: block;
}

.approval-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: -6px 0 22px;
}

.warning-card {
    border-color: #eddcb7;
    background: #fffaf0;
}

.surface.warning-card {
    margin-bottom: 18px;
}

.warning-card strong,
.status-warning {
    color: var(--amber);
}

.queue-panel {
    padding: 0;
    overflow: hidden;
}

.queue-count {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid #bfe3fb;
    border-radius: var(--radius);
    color: #147fc7;
    background: #eef9ff;
    font-weight: 900;
}

.queue-count span {
    text-transform: uppercase;
    font-size: 12px;
}

.queue-count strong {
    display: grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
}

.queue-toolbar {
    justify-content: space-between;
    padding: 24px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.queue-toolbar h2 {
    margin: 0;
    font-size: 22px;
}

.queue-table {
    display: grid;
}

.queue-row {
    display: grid;
    grid-template-columns: minmax(320px, 1.8fr) minmax(110px, .55fr) minmax(120px, .6fr) minmax(220px, .9fr);
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
}

.queue-row:last-child {
    border-bottom: 0;
}

.queue-head {
    min-height: 48px;
    background: #f6faff;
    font-size: 12px;
    font-weight: 850;
}

.queue-row.is-warning {
    background: #fffdf5;
}

.queue-clip {
    display: flex;
    align-items: center;
    gap: 14px;
}

.queue-clip strong,
.queue-clip small {
    display: block;
}

.queue-clip a {
    color: #1689d4;
    font-weight: 850;
}

.queue-clip a:hover {
    text-decoration: underline;
}

.queue-thumb {
    display: grid;
    width: 54px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
}

.status-ok {
    color: #138b64;
    font-weight: 850;
}

.status-warning {
    font-weight: 850;
}

.action-set {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-set form {
    margin: 0;
}

.action-set button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 104px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    color: #6b7d91;
    background: #fff;
    font-size: 13px;
    font-weight: 850;
}

.action-set button:first-child {
    color: #0d966c;
    border-color: #b7ead9;
}

.action-set button:nth-child(2),
.action-set button[value="reject"] {
    color: #cf4c65;
    border-color: #f1cbd3;
}

.action-set button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.queue-status {
    margin: 18px 24px 0;
}

.settings-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    margin-bottom: 22px;
    align-items: stretch;
}

.settings-grid > .surface {
    height: 100%;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.card-head > div {
    flex: 1;
}

.card-head h2 {
    margin: 0 0 4px;
    font-size: 21px;
}

.card-head em,
.team-row em,
.integration-row em,
.leader-row em,
.history-row em {
    color: #138b64;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

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

.settings-card hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
}

.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0;
    margin: 0 0 30px;
    border: 0;
}

.toggle-row legend {
    flex: 0 0 100%;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.toggle-row label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.toggle-row input {
    position: absolute;
    opacity: 0;
}

.toggle-row span {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #c9d8e6;
}

.toggle-row span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    transition: left .2s ease;
}

.toggle-row input:checked + span {
    background: var(--blue);
}

.toggle-row input:checked + span::after {
    left: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.summary-metrics div {
    min-height: 88px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fcff;
}

.summary-metrics strong,
.summary-metrics small {
    display: block;
}

.summary-metrics strong {
    margin-bottom: 6px;
    font-size: 26px;
}

.summary-metrics small {
    color: var(--muted);
    line-height: 1.35;
}

.users-card {
    margin-top: 22px;
}

.users-head {
    align-items: flex-start;
}

.users-layout {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(360px, 1.1fr);
    gap: 22px;
    align-items: start;
}

.user-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.user-list-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 10px;
    margin-bottom: 8px;
}

.user-list-toolbar .search-field {
    min-width: 0;
}

.user-list-toolbar select {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}

.user-row {
    display: grid;
    width: 100%;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    background: #fff;
    text-align: left;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.user-row.is-filtered-out,
.user-filter-empty[hidden] {
    display: none;
}

.user-row:hover,
.user-row.is-active {
    border-color: #9edcff;
    background: #f4fbff;
    box-shadow: 0 12px 28px rgba(30, 154, 242, .10);
}

.user-row > span,
.profile-top > span {
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, #0c4b82, #1e9af2);
    font-weight: 900;
}

.user-row > span {
    width: 46px;
    height: 46px;
}

.user-row strong,
.user-row small {
    display: block;
}

.user-row small {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-row em,
.profile-top em {
    padding: 7px 10px;
    border-radius: 999px;
    color: #138b64;
    background: #eafaf4;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.user-row em.is-banned,
.profile-top em.is-banned {
    color: #b2465a;
    background: #fff0f2;
}

.empty-state {
    padding: 22px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    background: #f8fcff;
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

.empty-state p {
    margin: 0;
    line-height: 1.55;
}

.user-profile {
    position: sticky;
    top: 100px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.profile-top {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.profile-top > span {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.profile-top h3,
.profile-top p {
    margin: 0;
}

.profile-top h3 {
    margin-bottom: 4px;
    font-size: 24px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.profile-details div {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.profile-details dt {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 850;
}

.profile-details a,
.profile-copy {
    display: inline;
    border: 0;
    padding: 0;
    color: #1689d4;
    background: transparent;
    font: inherit;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.profile-details a:hover,
.profile-copy:hover {
    text-decoration: underline;
}

.profile-details a.is-disabled,
.profile-copy.is-disabled {
    color: var(--muted);
    cursor: default;
    text-decoration: none;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.empty-profile {
    display: grid;
    gap: 10px;
    align-content: start;
}

.empty-profile h3,
.empty-profile p {
    margin: 0;
}

.empty-profile p {
    color: var(--muted);
    line-height: 1.55;
}

.submit-closed-card {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 360px;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.submit-closed-card > * {
    max-width: 520px;
}

.submit-closed-card .form-actions {
    justify-content: center;
}

.my-clips-list {
    display: grid;
    gap: 10px;
}

.my-clip-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.my-clip-row[hidden] {
    display: none;
}

.my-clip-row strong,
.my-clip-row small,
.my-clip-row a {
    display: block;
}

.my-clip-row small {
    margin-top: 4px;
    color: var(--muted);
}

.my-clip-row a {
    margin-top: 6px;
    color: #1689d4;
    font-weight: 850;
}

.my-clip-row a:hover {
    text-decoration: underline;
}

.my-clip-row b {
    color: #138b64;
}

.my-clips-more {
    justify-self: center;
    margin-top: 6px;
}

.my-clips-more[hidden] {
    display: none;
}

.manual-stats-toggle {
    grid-column: 1 / -1;
    justify-self: start;
}

.manual-stats-panel {
    grid-column: 1 / -1;
}

.manual-stats-panel[hidden] {
    display: none;
}

.manual-stats-form {
    display: grid;
    grid-template-columns: minmax(100px, .55fr) minmax(100px, .55fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.manual-stats-form label {
    display: grid;
    gap: 6px;
}

.manual-stats-form label span,
.manual-stats-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.manual-stats-form input,
.manual-stats-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
}

.manual-stats-form textarea {
    min-height: 40px;
    max-height: 120px;
    padding-top: 9px;
    padding-bottom: 9px;
    resize: vertical;
}

.manual-stats-note {
    grid-column: 1 / -1;
}

.clip-status {
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.clip-status-pending {
    color: #a96f13;
    background: #fff4da;
}

.clip-status-approved {
    color: #138b64;
    background: #eafaf4;
}

.clip-status-rejected {
    color: #b2465a;
    background: #fff0f2;
}

.team-row,
.integration-row,
.leader-row,
.history-row {
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.team-row {
    grid-template-columns: 46px 1fr auto;
}

.team-row > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--blue);
    font-weight: 900;
}

.team-card .info-box {
    margin-top: 10px;
}

.integrations-card {
    margin-bottom: 22px;
}

.integration-row {
    grid-template-columns: 46px 1fr auto auto;
}

.integration-row em {
    color: var(--amber);
}

.leaderboard-card,
.history-card {
    padding: 0;
    overflow: hidden;
}

.leader-row {
    grid-template-columns: 52px 1fr minmax(140px, auto) minmax(90px, auto);
    padding: 22px 28px;
}

.leader-row > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--blue-dark);
    font-weight: 900;
}

.leader-row p {
    margin: 0;
    color: #42546a;
    font-weight: 800;
}

.history-row {
    grid-template-columns: 46px 1fr auto;
    padding: 24px 28px;
}

.history-row > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #edf8ff;
}

.history-row strong,
.leader-row strong {
    display: block;
    margin: 3px 0;
    font-size: 18px;
}

.leaderboard-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.leaderboard-mode {
    display: grid;
    padding: 0;
    overflow: hidden;
}

.leaderboard-mode[hidden] {
    display: none;
}

.leader-item + .leader-item {
    border-top: 1px solid var(--line);
}

.leader-toggle {
    display: grid;
    width: 100%;
    min-height: 92px;
    grid-template-columns: 54px 48px minmax(0, 1fr) minmax(140px, auto) minmax(150px, auto) 38px;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    border: 0;
    color: inherit;
    background: #fff;
    text-align: left;
}

.leader-toggle:hover {
    background: #f7fbff;
}

.leader-rank,
.leader-avatar,
.leader-toggle i {
    display: grid;
    place-items: center;
    border-radius: var(--radius);
}

.leader-rank {
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--blue-dark);
    font-weight: 900;
}

.leader-avatar {
    width: 48px;
    height: 48px;
    color: #fff;
    background: linear-gradient(135deg, #0c4b82, #1e9af2);
    font-weight: 900;
}

.leader-name strong,
.leader-name small,
.leader-stat b,
.leader-stat small {
    display: block;
}

.leader-name strong {
    font-size: 19px;
}

.leader-name small,
.leader-stat small,
.leader-detail-head,
.leader-detail-row small {
    color: var(--muted);
}

.leader-stat b {
    margin-bottom: 4px;
    font-size: 21px;
}

.leader-stat small {
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.leader-toggle i {
    width: 38px;
    height: 38px;
    color: #238fd8;
    background: #edf8ff;
    transition: transform .2s ease;
}

.leader-item.is-open .leader-toggle i {
    transform: rotate(90deg);
}

.leader-panel {
    overflow-x: auto;
    padding: 0 28px 24px 146px;
    background: #fff;
    max-height: 620px;
    opacity: 1;
    transition: max-height .28s ease, opacity .22s ease, padding-top .28s ease, padding-bottom .28s ease;
}

.leader-item:not(.is-open) .leader-panel {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.leader-panel h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.leader-detail-head,
.leader-detail-row {
    display: grid;
    align-items: center;
    gap: 14px;
    min-width: 720px;
}

.leader-detail-clips .leader-detail-head,
.leader-detail-clips .leader-detail-row {
    grid-template-columns: minmax(260px, 1fr) 130px 110px 90px 120px;
}

.leader-detail-wins .leader-detail-head,
.leader-detail-wins .leader-detail-row {
    grid-template-columns: minmax(240px, 1fr) 150px 90px 120px 110px 120px;
}

.leader-detail-head {
    min-height: 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.leader-detail-row {
    min-height: 58px;
    border-bottom: 1px solid var(--line);
}

.leader-detail-row:last-child {
    border-bottom: 0;
}

.leader-detail-row strong {
    color: #213850;
}

.leader-detail-row em {
    justify-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    color: #138b64;
    background: #eafaf4;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.leader-detail-row b {
    color: #138b64;
}

.leader-detail-row a {
    color: #1689d4;
    font-weight: 850;
}

.leader-detail-row a:hover {
    text-decoration: underline;
}

.history-accordion {
    display: grid;
}

.history-item + .history-item {
    border-top: 1px solid var(--line);
}

.history-toggle {
    display: grid;
    width: 100%;
    min-height: 88px;
    grid-template-columns: 46px minmax(0, 1fr) auto auto 38px;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border: 0;
    color: inherit;
    background: #fff;
    text-align: left;
}

.history-toggle:hover {
    background: #f7fbff;
}

.history-toggle small,
.winner-head,
.winner-row small {
    color: var(--muted);
}

.history-toggle small,
.history-toggle strong {
    display: block;
}

.history-toggle strong {
    margin-top: 4px;
    font-size: 20px;
}

.history-icon,
.history-toggle i {
    display: grid;
    place-items: center;
    border-radius: var(--radius);
}

.history-icon {
    width: 44px;
    height: 44px;
    color: var(--blue);
    background: #edf8ff;
}

.history-toggle em {
    padding: 8px 11px;
    border-radius: 999px;
    color: #138b64;
    background: #eafaf4;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.history-toggle b {
    color: var(--ink);
    font-size: 18px;
}

.history-toggle i {
    width: 38px;
    height: 38px;
    color: #238fd8;
    background: #edf8ff;
    transition: transform .2s ease;
}

.history-item.is-open .history-toggle i {
    transform: rotate(90deg);
}

.history-panel {
    overflow-x: auto;
    padding: 0 28px 24px 90px;
    background: #fff;
    max-height: 520px;
    opacity: 1;
    transition: max-height .28s ease, opacity .22s ease, padding-top .28s ease, padding-bottom .28s ease;
}

.history-item:not(.is-open) .history-panel {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.winner-head,
.winner-row {
    display: grid;
    grid-template-columns: 74px 130px minmax(220px, 1fr) 120px 110px 110px 120px;
    align-items: center;
    gap: 14px;
    min-width: 880px;
}

.winner-head {
    min-height: 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.winner-row {
    min-height: 62px;
    border-bottom: 1px solid var(--line);
}

.winner-row:last-child {
    border-bottom: 0;
}

.winner-row > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--blue-dark);
    font-weight: 900;
}

.winner-row p {
    margin: 0;
    color: #42546a;
    font-weight: 800;
}

.winner-row em {
    color: #238fd8;
    font-style: normal;
    font-weight: 850;
}

.winner-row b {
    color: #138b64;
}

.winner-row a {
    color: #1689d4;
    font-weight: 850;
}

.winner-row a:hover {
    text-decoration: underline;
}

.mobile-toggle,
.sidebar-backdrop {
    display: none;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal,
.clips-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-backdrop,
.clips-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 17, 32, .58);
    backdrop-filter: blur(6px);
}

.clips-backdrop {
    backdrop-filter: none;
}

.auth-dialog,
.clips-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 24, 48, .26);
}

.clips-modal[hidden] {
    display: none;
}

.clips-dialog {
    width: min(820px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #65778b;
    background: #f8fcff;
}

.auth-dialog-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 44px;
    margin-bottom: 22px;
}

.auth-dialog-head .brand-mark {
    margin: 0;
    color: #dff6ff;
    background: linear-gradient(145deg, #1d85ce, #083a68);
}

.auth-dialog-head h2,
.auth-dialog-head p {
    margin: 0;
}

.auth-dialog-head h2 {
    font-size: 25px;
}

.auth-dialog-head p {
    margin-top: 3px;
    color: var(--muted);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fcff;
}

.auth-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    color: #63758a;
    background: transparent;
    font-weight: 850;
}

.auth-tabs button.is-active {
    color: #fff;
    background: var(--blue);
}

.auth-status {
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #b7def5;
    border-radius: var(--radius);
    color: #155a7f;
    background: #eef9ff;
    font-weight: 750;
}

.auth-status.is-error {
    border-color: #f1bac4;
    color: #9f1d33;
    background: #fff1f4;
}

.auth-status.is-success {
    border-color: #b8eadb;
    color: #167052;
    background: #eefbf6;
}

.auth-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.auth-note strong {
    color: var(--ink);
}

.auth-form-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
}

.auth-link-button {
    width: fit-content;
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    box-shadow: none;
    font-weight: 850;
    text-align: left;
}

.auth-link-button:hover {
    text-decoration: underline;
}

.auth-form {
    display: none;
    gap: 16px;
}

.auth-form.is-active {
    display: grid;
}

.sponsor-widget {
    position: fixed;
    right: 22px;
    top: 118px;
    z-index: 70;
    width: min(272px, calc(100vw - 32px));
    overflow: hidden;
    border: 2px solid rgba(30, 154, 242, .62);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(235, 248, 255, .98));
    box-shadow: 0 24px 64px rgba(5, 24, 48, .24), 0 0 0 6px rgba(30, 154, 242, .10);
    backdrop-filter: blur(10px);
}

.sponsor-widget::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--mint));
}

.sponsor-widget[hidden] {
    display: none;
}

.sponsor-widget a {
    display: grid;
    gap: 8px;
    padding: 18px 18px 16px;
}

.sponsor-widget .sponsor-logo {
    display: block;
    width: 172px;
    max-width: 100%;
    height: 48px;
    overflow: hidden;
}

.sponsor-widget .sponsor-logo img {
    display: block;
    width: 172px;
    max-width: none;
    height: 172px;
    transform: translateY(-64px);
}

.sponsor-widget .sponsor-offer,
.sponsor-widget strong {
    display: block;
    text-transform: uppercase;
}

.sponsor-widget .sponsor-offer {
    color: #1378bd;
    font-size: 12px;
    font-weight: 900;
}

.sponsor-widget strong {
    color: #0b1425;
    font-size: 24px;
    line-height: 1;
}

.sponsor-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #53667c;
    background: #f8fcff;
}

@media (max-width: 1180px) {
    .content {
        width: calc(100% - 44px);
        max-width: 1040px;
    }

    .metric-grid,
    .steps-grid,
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .hero-prize {
        justify-self: start;
    }

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

    .queue-row {
        grid-template-columns: minmax(270px, 1.7fr) minmax(92px, .6fr) minmax(105px, .65fr) minmax(210px, .9fr);
    }
}

@media (max-width: 940px) {
    html.sidebar-open,
    body.sidebar-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .mobile-toggle {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 45;
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        color: var(--ink);
        background: #fff;
        box-shadow: var(--shadow);
    }

    body.sidebar-open .mobile-toggle {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-bottom {
        padding-top: 44px;
        padding-bottom: 8px;
    }

    .creator-link {
        position: static;
        z-index: auto;
        width: 100%;
        max-width: none;
        min-height: 42px;
        align-self: stretch;
    }

    body.sidebar-open .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        background: rgba(4, 17, 32, .45);
    }

    .app {
        margin-left: 0;
    }

    .topbar {
        height: 72px;
        padding: 0 20px 0 76px;
    }

    .content {
        width: calc(100% - 32px);
        max-width: 760px;
        padding-top: 34px;
    }

    .page-head,
    .section-heading,
    .toolbar,
    .queue-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .section-actions {
        justify-content: flex-start;
    }

    .page-head h1 {
        font-size: 40px;
    }

    .hero-panel {
        padding: 38px 28px;
    }

    .hero-panel h1 {
        font-size: 46px;
    }

    .two-column,
    .submit-layout,
    .settings-grid,
    .users-layout {
        grid-template-columns: 1fr;
    }

    .user-profile {
        position: static;
    }

    .reward-card-large {
        position: static;
    }

    .search-field,
    .toolbar select {
        width: 100%;
        min-width: 0;
    }

    .manual-stats-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manual-stats-form .button {
        grid-column: 1 / -1;
    }

    .tabs {
        width: 100%;
        overflow-x: auto;
    }

    .queue-table {
        overflow-x: auto;
    }

    .queue-row {
        min-width: 720px;
    }

    .leaderboard-switch {
        justify-content: flex-start;
    }

    .leaderboard-switch .tabs {
        width: 100%;
    }

    .leader-toggle {
        grid-template-columns: 42px 48px minmax(0, 1fr) 38px;
        gap: 12px;
        padding: 18px;
    }

    .leader-rank {
        grid-column: 1;
        grid-row: 1;
    }

    .leader-avatar {
        grid-column: 2;
        grid-row: 1;
    }

    .leader-name {
        grid-column: 3;
        grid-row: 1;
    }

    .leader-stat {
        grid-column: 3;
    }

    .leader-toggle i {
        grid-column: 4;
        grid-row: 1 / span 3;
    }

    .leader-panel {
        padding: 0 18px 20px;
    }

    .leader-item:not(.is-open) .leader-panel {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .topbar {
        gap: 10px;
        padding-right: 12px;
    }

    .top-link {
        display: none;
    }

    .topbar .button {
        width: 52px;
        min-width: 52px;
        padding: 0;
        overflow: hidden;
        font-size: 0;
    }

    .topbar .button .icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .auth-actions {
        gap: 8px;
    }

    .auth-dialog {
        padding: 22px;
    }

    .sponsor-widget {
        right: 11px;
        top: auto;
        bottom: 70px;
        width: calc(100vw - 22px);
    }

    .sponsor-widget a {
        grid-template-columns: 104px 1fr;
        align-items: center;
        gap: 8px 12px;
        padding: 14px 48px 14px 14px;
    }

    .sponsor-widget .sponsor-logo {
        grid-row: 1 / span 2;
        width: 104px;
        height: 32px;
    }

    .sponsor-widget .sponsor-logo img {
        width: 104px;
        height: 104px;
        transform: translateY(-39px);
    }

    .sponsor-widget strong {
        font-size: 20px;
    }

    .content {
        width: calc(100% - 22px);
        max-width: 540px;
        padding-bottom: 42px;
    }

    .page-head h1 {
        font-size: 34px;
    }

    .page-head p,
    .section-heading p {
        font-size: 15px;
    }

    .hero-panel {
        min-height: auto;
        padding: 30px 20px;
    }

    .hero-panel h1 {
        font-size: 38px;
        overflow-wrap: anywhere;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-actions form {
        width: 100%;
    }

    .section-actions,
    .section-actions form,
    .section-actions .button,
    .checklist-card .button {
        width: 100%;
    }

    .manual-stats-form {
        grid-template-columns: 1fr;
    }

    .hero-prize {
        width: 150px;
        height: 150px;
    }

    .metric-grid,
    .approval-stats,
    .steps-grid,
    .profile-grid,
    .clip-grid,
    .form-card,
    .account-card,
    .form-grid,
    .my-clip-row {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .notice-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .surface,
    .step-card {
        padding: 22px;
    }

    .profile-card {
        grid-template-columns: 46px 1fr 18px;
    }

    .form-actions {
        flex-direction: column;
    }

    .integration-row,
    .leader-row,
    .history-row,
    .team-row {
        grid-template-columns: 46px 1fr;
    }

    .summary-metrics,
    .user-list-toolbar,
    .profile-details {
        grid-template-columns: 1fr;
    }

    .users-head {
        align-items: stretch;
        flex-direction: column;
    }

    .users-head .button {
        width: 100%;
    }

    .user-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .user-row em {
        grid-column: 2;
        justify-self: start;
    }

    .profile-top {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .profile-top > span {
        width: 56px;
        height: 56px;
    }

    .profile-top em {
        grid-column: 2;
        justify-self: start;
    }

    .leader-toggle {
        grid-template-columns: 42px minmax(0, 1fr) 38px;
    }

    .leader-avatar {
        display: none;
    }

    .leader-name,
    .leader-stat {
        grid-column: 2;
    }

    .leader-toggle i {
        grid-column: 3;
    }

    .history-toggle {
        grid-template-columns: 46px minmax(0, 1fr) 38px;
        padding: 18px;
    }

    .history-toggle em,
    .history-toggle b {
        grid-column: 2;
        justify-self: start;
    }

    .history-toggle i {
        grid-column: 3;
        grid-row: 1 / span 3;
    }

    .history-panel {
        padding: 0 18px 20px;
    }

    .history-item:not(.is-open) .history-panel {
        padding-top: 0;
        padding-bottom: 0;
    }

    .integration-row em,
    .integration-row .button,
    .leader-row p,
    .leader-row em,
    .history-row em,
    .team-row em {
        grid-column: 2;
        justify-self: start;
    }
}
