body.rw-shell .rw-player-tools {
    color: var(--rw-aged-ink);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.rw-shell .rw-player-tools :is(h1, h2, h3) {
    color: var(--rw-aged-green);
    line-height: 1.25;
}

body.rw-shell .rw-player-tools h1 { margin-block: 0 .5em; }
body.rw-shell .rw-player-tools h2 { margin-block: 1em .35em; }
body.rw-shell .rw-player-tools h3 { margin-block: 0 .25em; }
body.rw-shell .rw-player-tools h2 img { object-fit: contain; image-rendering: pixelated; }
body.rw-shell .rw-player-tools li + li { margin-top: .45em; }

body.rw-shell .rw-player-tools :is(.rw-tool-form, .rw-tool-card, .rw-tool-message) {
    margin-block: 10px;
    padding: 10px 12px;
    border: 1px solid var(--rw-aged-paper-line);
    background: var(--rw-aged-paper-raised);
}

body.rw-shell .rw-player-tools .rw-tool-form {
    display: grid;
    justify-items: start;
    gap: 7px;
}

body.rw-shell .rw-player-tools :is(input:not([type=checkbox]):not([type=hidden]), select) {
    max-width: 100%;
    min-height: 40px;
    padding: 5px 7px;
    border: 1px solid var(--rw-aged-paper-line);
    background: var(--rw-aged-paper-raised);
    color: var(--rw-aged-ink);
    font: inherit;
}

body.rw-shell .rw-tool-form input:not([type=checkbox]) { width: min(100%, 34rem); box-sizing: border-box; }
body.rw-shell .rw-player-tools .rw-tool-check { display: flex; gap: 8px; align-items: baseline; }
body.rw-shell .rw-player-tools input[type=checkbox] { flex: none; }

body.rw-shell .rw-tool-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

body.rw-shell .rw-player-tools .rw-tool-button,
body.rw-shell .rw-classic-header .rw-mobile-menu {
    align-items: center;
    justify-content: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 6px 12px;
    border: 1px solid var(--rw-dusk-brass);
    background: var(--rw-dusk-green);
    color: var(--rw-dusk-cream) !important;
    font: bold 14px Georgia, serif;
    text-decoration: none;
    cursor: pointer;
}

body.rw-shell .rw-player-tools .rw-tool-button { display: inline-flex; }
body.rw-shell .rw-player-tools :is(summary, .rw-tool-check) { cursor: pointer; }
body.rw-shell .rw-player-tools summary { color: var(--rw-aged-green); font-weight: bold; min-height: 26px; }
body.rw-shell .rw-player-tools .rw-tool-meta { color: var(--rw-aged-muted); font-size: .92em; }
body.rw-shell .rw-tracker-quest { border-top: 1px solid var(--rw-aged-paper-line); margin-top: 6px; padding-top: 6px; }
body.rw-shell .rw-tracker-quest p { margin: 0 0 6px; }
body.rw-shell .rw-stream-progress,
body.rw-shell .rw-stream-milestones,
body.rw-shell .rw-stream-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 8px;
}
body.rw-shell .rw-stream-channels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
body.rw-shell .rw-stream-progress {
    align-items: center;
    padding: 12px;
    border: 1px solid var(--rw-dusk-brass);
    background: var(--rw-dusk-bevel);
    color: var(--rw-dusk-cream);
}
body.rw-shell .rw-player-tools .rw-stream-progress h2 { color: var(--rw-dusk-title); margin-top: 0; }
body.rw-shell .rw-player-tools .rw-stream-progress a { color: var(--rw-dusk-gold) !important; text-decoration: underline; }
body.rw-shell .rw-stream-progress span,
body.rw-shell .rw-stream-progress .rw-stream-total { display: block; }
body.rw-shell .rw-stream-total { color: var(--rw-dusk-title); font-size: clamp(1.65rem, 3.5vw, 2.4rem); line-height: 1.25; }
body.rw-shell .rw-stream-progress p,
body.rw-shell .rw-stream-milestone p { margin: 4px 0; }
body.rw-shell .rw-stream-progress progress { width: 100%; height: 12px; accent-color: #e3bd69; }
body.rw-shell .rw-stream-milestone[data-next] { border-top: 3px solid var(--rw-aged-green); }
body.rw-shell .rw-stream-gold { color: var(--rw-aged-green); font-size: 1.1rem; }
body.rw-shell .rw-stream-milestone h3 { display: flex; align-items: center; gap: 5px; }
body.rw-shell .rw-stream-badge {
    display: inline-block;
    flex: 0 0 48px;
    height: 48px;
    background: url('/images/creator-rewards/stream-badges.png') no-repeat 0 50% / 300% auto;
    image-rendering: pixelated;
}
body.rw-shell .rw-stream-badge-lantern { background-position-x: 50%; }
body.rw-shell .rw-stream-badge-banner { background-position-x: 100%; }
body.rw-shell :is(.rw-account-creators, .rw-creator-tabs) { margin-block: 8px 12px; }
body.rw-shell .rw-account-creators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 14px;
    padding: 6px 9px;
    border: 1px solid var(--rw-aged-paper-line);
    background: var(--rw-aged-paper-raised);
    color: var(--rw-aged-ink);
}
body.rw-shell :is(.rw-account-creators, .rw-creator-tabs) a { display: inline-flex; align-items: center; min-height: 40px; }
body.rw-shell .rw-creator-tabs a { padding-inline: 8px; border: 1px solid var(--rw-aged-paper-line); }
body.rw-shell .rw-creator-tabs a[aria-current="page"] { color: var(--rw-dusk-cream) !important; background: var(--rw-dusk-green); }
body.rw-shell .rw-player-tools nav a[aria-current="page"] { font-weight: bold; }
body.rw-shell .rw-ranking-tabs { margin-bottom: 10px; }
body.rw-shell .rw-ranking-tabs a { display: inline-flex; align-items: center; min-height: 42px; padding-inline: 11px; border: 1px solid var(--rw-aged-paper-line); }
body.rw-shell .rw-ranking-tabs a[aria-current="page"] { color: var(--rw-dusk-cream) !important; background: var(--rw-dusk-green); }
body.rw-shell .rw-iron-mode-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-inline-start: 5px;
    object-fit: contain;
    vertical-align: middle;
    image-rendering: pixelated;
}
body.rw-shell .rw-profile-identity .rw-iron-mode-badge { width: 24px; height: 24px; }

body.rw-shell .rw-classic-header .rw-mobile-menu { display: none; }

@media (max-width: 800px) {
    body.rw-shell.rw-navigation-ready .rw-classic-header .rw-mobile-menu { display: inline-flex; }
    body.rw-shell.rw-navigation-ready:not(.rw-navigation-open) #MenuColumn { display: none !important; }
}

body.rw-shell .Content .BoxContent .rw-ranking-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin: 8px 0 0;
}

html[data-relaxera-theme] body.rw-shell .Content .BoxContent .rw-ranking-pages > :is(a, span) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    min-height: 34px;
    padding: 3px 7px;
    border: 1px solid var(--rw-aged-paper-line);
    background: var(--rw-aged-paper-raised);
    color: var(--rw-aged-link) !important;
    font: bold 12px/1.2 Georgia, serif;
    text-decoration: none;
}

html[data-relaxera-theme] body.rw-shell .Content .BoxContent .rw-ranking-pages > :is(a:hover, a:focus-visible, [aria-current="page"]) {
    background: var(--rw-dusk-green);
    color: var(--rw-dusk-cream) !important;
}
