/* V4 shared interior shell. The approved home retains its own assets unchanged. */
:where(body.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) {
  --bg:rgb(var(--c-bg));--bg-elevated:rgb(var(--c-panel));--surface:rgb(var(--c-surface));--surface-hover:rgb(var(--c-surface2));
  --border:rgb(var(--c-line));--text:rgb(var(--c-text));--text-muted:rgb(var(--c-muted));--accent:rgb(var(--c-accent));
  --accent-hover:rgb(var(--c-accent-soft));--gold:rgb(var(--c-accent));--gold-hover:rgb(var(--c-accent-soft));--rust:rgb(var(--c-dim));
  --success:rgb(var(--c-ok));--warn:rgb(var(--c-warn));--danger:rgb(var(--c-danger));--radius:8px;--radius-lg:12px;
  --heading:var(--f-display);--mono:var(--f-mono);
  background:var(--bg);color:var(--text);font-family:var(--f-body);font-size:18px;line-height:1.6;
}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) h1,
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) h2,
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) h3 {font-family:var(--f-display);letter-spacing:.01em;line-height:1.06;text-transform:uppercase}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) h1 {font-size:32px;font-weight:750;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) h2 {font-size:24px;font-weight:650;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) h3 {font-size:19px;font-weight:650;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .container {width:min(1320px,calc(100% - 80px));padding:0;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .interior-main {padding:36px 0 64px;}
/* The public header (.site-header) is the same on every page: css/site-header.css. */
:where(.site-identity-v4:not(.home-identity-v4)) .interior-brand-logo {width:220px;height:78px;object-fit:contain;object-position:left center;flex:none;}
:where(.site-identity-v4:not(.home-identity-v4)) .account-header-link {color:rgb(var(--c-text));background:rgb(var(--c-surface));border-color:rgb(var(--c-accent)/.15);border-radius:8px;font-size:16px;}
:where(.site-identity-v4:not(.home-identity-v4)) .account-header-link:hover,
:where(.site-identity-v4:not(.home-identity-v4)) .header-account[open]>summary {color:rgb(var(--c-text));border-color:rgb(var(--c-accent));background:rgb(var(--c-surface2));}
:where(.site-identity-v4:not(.home-identity-v4)) .header-summary-balance {border-color:rgb(var(--c-line));color:rgb(var(--c-accent-soft));font-size:15px;}
:where(.site-identity-v4:not(.home-identity-v4)) .account-menu {background:rgb(var(--c-panel));border-color:rgb(var(--c-line));border-radius:12px;color:rgb(var(--c-text));font-size:16px;}
:where(.site-identity-v4:not(.home-identity-v4)) .account-menu-dashboard {border-color:rgb(var(--c-line));color:rgb(var(--c-text));}
:where(.site-identity-v4:not(.home-identity-v4)) .account-menu-balance small,
:where(.site-identity-v4:not(.home-identity-v4)) .account-menu-chevron {color:rgb(var(--c-muted));}
:where(.site-identity-v4:not(.home-identity-v4)) .account-menu .account-streamer-control {border-color:rgb(var(--c-line));color:rgb(var(--c-text));}
:where(.site-identity-v4:not(.home-identity-v4)) .account-streamer-control.active {background:rgb(var(--c-accent)/.08);border-color:rgb(var(--c-accent)/.5);}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .btn {min-height:46px;font-family:var(--f-body);font-size:17px;font-weight:650;border-radius:8px;gap:10px;}
/* botão principal prata, como o "Adicionar saldo" do topo e a loja (o laranja vinha do reference-shell.css) */
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .btn {border-color:rgb(var(--c-btn));background:rgb(var(--c-btn));box-shadow:none;color:rgb(var(--c-btn-ink));font-weight:700;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .btn:hover {border-color:rgb(var(--c-btn-hover));background:rgb(var(--c-btn-hover));color:rgb(var(--c-btn-ink));}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .btn:disabled {opacity:.55;cursor:not-allowed;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .btn-sm {min-height:40px;font-size:15px;padding:8px 14px;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .btn-outline {border-color:rgb(var(--c-line2));color:rgb(var(--c-text));background:transparent;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .btn-outline:hover {border-color:rgb(var(--c-accent));background:rgb(var(--c-surface2));color:rgb(var(--c-text));}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .card {border-radius:12px;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) :is(input,select,textarea) {background:rgb(var(--c-input));border-color:rgb(var(--c-line));border-radius:8px;color:rgb(var(--c-text));}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) :is(input,select,textarea):focus {border-color:rgb(var(--c-accent));}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) input::placeholder {color:rgb(var(--c-dim));opacity:1;}
:where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) :focus-visible {outline:3px solid rgb(var(--c-accent));outline-offset:4px;}
:where(.site-identity-v4:not(.home-identity-v4)) .site-footer {background:rgb(var(--c-bg));border-color:rgb(var(--c-accent)/.1);padding:0;}
:where(.site-identity-v4:not(.home-identity-v4)) .footer-atmosphere {background:rgb(var(--c-panel));border-top:1px solid rgb(var(--c-accent)/.1);}
:where(.site-identity-v4:not(.home-identity-v4)) .footer-atmosphere::before {opacity:.22;}
:where(.site-identity-v4:not(.home-identity-v4)) .site-footer .footer-scene {width:min(1440px,calc(100% - 80px));padding:22px 0;gap:24px;grid-template-columns:220px minmax(0,1fr) 150px;}
:where(.site-identity-v4:not(.home-identity-v4)) .footer-wordmark .interior-brand-logo {width:194px;height:72px;}
:where(.site-identity-v4:not(.home-identity-v4)) .footer-wordmark>span {color:rgb(var(--c-muted));font-family:var(--f-body);font-size:12px;line-height:1.4;letter-spacing:.06em;}
:where(.site-identity-v4:not(.home-identity-v4)) .footer-mantra {color:rgb(var(--c-muted));font-size:16px;letter-spacing:0;line-height:1.5;}
:where(.site-identity-v4:not(.home-identity-v4)) .footer-connect {color:rgb(var(--c-accent-soft));font-family:var(--f-body);font-size:16px;letter-spacing:0;}
.interior-heading {display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px;}
.interior-heading h1 {margin:0 0 10px;}
.interior-heading p {color:var(--text-muted);max-width:720px;font-size:18px;line-height:1.6;}
.interior-eyebrow,.account-eyebrow {display:block;margin-bottom:9px;font-size:12px;line-height:1.5;font-weight:650;letter-spacing:.12em;color:var(--text-muted);}
.interior-heading>.btn {flex:none;}
.rules-main {padding:34px 0 60px;background:var(--bg);}
.rules-board {max-width:1320px;}
.rules-note {padding:18px 22px;margin-bottom:24px;border:1px solid rgb(var(--c-line2));border-left:3px solid rgb(var(--c-accent));border-radius:8px;background:rgb(var(--c-panel));color:rgb(var(--c-accent-soft));font-size:17px;line-height:1.6;}
.rules-tools {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;}
.rules-search {display:flex;align-items:center;gap:12px;width:min(480px,100%);padding:0 16px;border:1px solid rgb(var(--c-line));border-radius:10px;background:rgb(var(--c-panel));}
.rules-search:focus-within {border-color:rgb(var(--c-accent));}
.rules-search svg {width:20px;height:20px;flex:none;color:rgb(var(--c-muted));}
.rules-search input {width:100%;min-width:0;background:transparent!important;border:0!important;padding:13px 0;font-size:17px;outline:none;}
.rules-search input:focus-visible {outline:none!important;}
[data-rules-count] {color:rgb(var(--c-muted));font-size:15px;white-space:nowrap;}
.rules-categories {display:flex;gap:8px;flex-wrap:wrap;margin:0 0 26px;}
.rules-categories a {display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid rgb(var(--c-line));background:rgb(var(--c-panel));border-radius:8px;font-size:15px;font-weight:600;text-decoration:none;color:rgb(var(--c-accent-soft));transition:background .2s,border-color .2s;}
.rules-categories a:hover {background:rgb(var(--c-surface2));border-color:rgb(var(--c-dim));color:rgb(var(--c-text));}
.rules-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.rule-card {min-width:0;padding:26px;background:rgb(var(--c-panel));border:1px solid rgb(var(--c-line));border-radius:12px;scroll-margin-top:110px;}
.rule-card h2 {margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid rgb(var(--c-line));font-size:23px;color:rgb(var(--c-text));}
.rules-items {list-style:none;margin:0;padding:0;}
.rules-items li {position:relative;padding-left:18px;font-size:18px;line-height:1.65;color:rgb(var(--c-soft));overflow-wrap:anywhere;}
.rules-items li::before {content:'';position:absolute;top:.69em;left:0;width:4px;height:4px;border-radius:50%;background:rgb(var(--c-dim));}
.rules-items li+li {margin-top:15px;}
.rules-support {display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:26px;padding:24px 26px;border:1px solid rgb(var(--c-line));border-radius:12px;background:linear-gradient(110deg,rgb(var(--c-surface)),rgb(var(--c-panel)));}
.rules-support h2 {font-size:20px;margin:0 0 6px;}
.rules-support p {font-size:17px;color:rgb(var(--c-muted));}
.rules-support>.btn {flex:none;}
.rules-empty {padding:42px 24px;text-align:center;border:1px dashed rgb(var(--c-line2));border-radius:12px;background:rgb(var(--c-panel));}
.rules-empty h2 {font-size:23px;margin-bottom:8px;}
.rules-empty p {color:rgb(var(--c-muted));margin-bottom:18px;}
.public-main {padding:34px 0 60px;}
.public-heading .breadcrumb {margin-bottom:16px;font-size:14px;display:flex;gap:10px;color:rgb(var(--c-muted));}
.public-heading .breadcrumb a {text-decoration:none;}
.public-layout {display:grid;grid-template-columns:190px minmax(0,1fr);gap:40px;align-items:start;}
.public-navigation {display:grid;gap:6px;position:sticky;top:110px;}
.public-navigation a {padding:10px 12px;border-radius:8px;font-size:16px;text-decoration:none;color:rgb(var(--c-muted));}
.public-navigation a:hover {background:rgb(var(--c-surface));color:rgb(var(--c-text));}
.public-prose {min-width:0;}
.public-prose section {padding:0 0 28px;margin:0 0 28px;border-bottom:1px solid rgb(var(--c-line));}
.public-prose h2 {font-size:24px;margin-bottom:15px;}
.public-prose h3 {font-size:18px;margin:18px 0 8px;}
.public-prose :is(p,.public-list,.content-lines) {font-family:var(--f-body);font-size:18px;line-height:1.7;color:rgb(var(--c-muted));}
.public-prose .public-list {padding-left:22px;}
.public-prose .public-list li+li {margin-top:8px;}
.public-prose .notice {padding:18px 20px;margin:20px 0;border-radius:8px;background:rgb(var(--c-surface));border:1px solid rgb(var(--c-line2));color:rgb(var(--c-accent-soft));font-size:17px;}
.public-prose .copy-field {background:rgb(var(--c-panel));border-color:rgb(var(--c-line));border-radius:8px;padding:18px;gap:15px;flex-wrap:wrap;}
.public-prose .copy-field code {font-size:19px;color:rgb(var(--c-text));}
.connection-fields {display:flex;gap:32px;margin:20px 0;flex-wrap:wrap;}
.connection-fields span {display:block;font-size:14px;color:rgb(var(--c-muted));}
.connection-fields code {font-size:22px;color:rgb(var(--c-text));}
.public-notice-entry time {font-size:14px;color:rgb(var(--c-muted));display:block;margin-bottom:10px;}
@media(max-width:1100px) {
  :where(.site-identity-v4:not(.home-identity-v4)) .account-menu {font-size:16px;}
}
@media(max-width:760px) {
  :where(body.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) {font-size:17px;}
  :where(.site-identity-v4:not(.home-identity-v4):not(.admin-workspace)) .container {width:calc(100% - 40px);}
  :where(.site-identity-v4:not(.home-identity-v4)) .account-header-link {font-size:15px;}
  :where(.site-identity-v4:not(.home-identity-v4)) .site-footer .footer-scene {width:calc(100% - 40px);grid-template-columns:minmax(0,1fr) auto;padding:20px 0;gap:18px;}
  :where(.site-identity-v4:not(.home-identity-v4)) .footer-wordmark .interior-brand-logo {width:175px;height:66px;}
  :where(.site-identity-v4:not(.home-identity-v4)) .footer-mantra {grid-column:1/-1;grid-row:2;text-align:left;font-size:15px;}
  :where(.site-identity-v4:not(.home-identity-v4)) .footer-connect {font-size:15px;gap:8px;}
  .interior-heading {flex-direction:column;gap:17px;margin-bottom:24px;}
  .interior-heading p {font-size:17px;}
  .rules-main,.public-main {padding:26px 0 44px;}
  .rules-grid {grid-template-columns:1fr;gap:16px;}
  .rule-card {padding:22px;}
  .rules-items li {font-size:17px;}
  .rules-support {flex-direction:column;align-items:flex-start;padding:22px;gap:18px;}
  .rules-support>.btn {width:100%;}
  .rules-tools {align-items:flex-start;flex-direction:column;gap:10px;}
  .public-layout {grid-template-columns:1fr;gap:28px;}
  .public-navigation {position:static;display:flex;flex-wrap:wrap;gap:5px;border-block:1px solid rgb(var(--c-line));padding:10px 0;}
  .public-navigation a {font-size:15px;}
  .public-prose :is(p,.public-list,.content-lines) {font-size:17px;}
}
@media(max-width:420px) {
  :where(.site-identity-v4:not(.home-identity-v4)) .account-header-link {padding:8px 10px;font-size:14px;}
  .rule-card {padding:20px;}
  .rules-note {padding:17px;}
  .rules-categories a {font-size:14px;padding:8px 11px;}
}
@media(max-width:340px) {
  :where(.site-identity-v4:not(.home-identity-v4)) .site-footer .footer-scene {grid-template-columns:1fr;gap:12px;}
  :where(.site-identity-v4:not(.home-identity-v4)) .footer-mantra {grid-row:auto;}
}
@media(prefers-reduced-motion:reduce) {
  :where(.site-identity-v4:not(.home-identity-v4)) *,
  :where(.site-identity-v4:not(.home-identity-v4)) *::before,
  :where(.site-identity-v4:not(.home-identity-v4)) *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
