:root {
  color-scheme: dark;
  --bg: #061621;
  --surface: #0d1814;
  --surface-2: #12201a;
  --surface-3: #182820;
  --line: rgba(213, 237, 224, 0.11);
  --line-strong: rgba(213, 237, 224, 0.2);
  --text: #f4f8f5;
  --muted: #b5c9d3;
  --green: #50e38d;
  --green-soft: rgba(80, 227, 141, 0.12);
  --yellow: #f3c84b;
  --yellow-soft: rgba(243, 200, 75, 0.12);
  --red: #ff7c77;
  --red-soft: rgba(255, 124, 119, 0.12);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); isolation: isolate; }
body::before { content: ""; position: fixed; z-index: -2; inset: 0; background: url('/staking/kame-house.png') 35% 68% / cover no-repeat; pointer-events: none; }
body::after { content: ""; position: fixed; z-index: -1; inset: 0; background: linear-gradient(100deg, rgba(3,17,28,.74), rgba(3,17,28,.82)); pointer-events: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: -1; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(120px); opacity: .1; pointer-events: none; }
.ambient-one { top: -20rem; right: -12rem; background: var(--green); }
.ambient-two { bottom: -24rem; left: 12%; background: var(--yellow); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { position: relative; display: block; width: 42px; height: 42px; flex: 0 0 42px; overflow: visible; border: 1px solid rgba(255, 255, 255, .34); border-radius: 13px; background: #153d70; box-shadow: 0 0 28px rgba(80, 227, 141, .14); font-size: 0; }
.brand-house { display: block; width: 100%; height: 100%; border-radius: 12px; object-fit: cover; object-position: 35% 68%; }
.brand-goku { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; object-fit: cover; object-position: center; box-shadow: 0 3px 5px rgba(0, 0, 0, .35); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .18em; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.auth-brand { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vw, 70px); border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(3,17,28,.18), rgba(3,17,28,.58)), url('/staking/kame-house.png') 35% 68% / cover no-repeat; }
.auth-promise { max-width: 560px; padding: 0 0 2vh; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.auth-promise > p:last-child { max-width: 520px; margin: 0; color: rgba(246, 251, 248, .9); font-size: clamp(14px, 1.5vw, 18px); line-height: 1.55; text-shadow: 0 2px 14px rgba(0, 0, 0, .75); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.trust-row span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.auth-card { align-self: center; margin: 40px clamp(24px, 5vw, 70px); padding: 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(4,19,29,.86); box-shadow: 0 20px 60px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.auth-card-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.auth-card-heading > p:last-child, .auth-help { color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-help { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

.form-stack { display: grid; gap: 16px; margin-top: 28px; }
.form-stack.compact { margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.form-stack label, .form-grid label, .inline-form label, .member-selector-panel label { display: grid; gap: 8px; color: #c8d3cd; font-size: 12px; font-weight: 650; }
input, select { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; color: var(--text); background: rgba(255,255,255,.035); padding: 0 13px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: rgba(80, 227, 141, .72); box-shadow: 0 0 0 3px rgba(80, 227, 141, .08); }
select option { color: #142018; background: #f4f8f5; }
.full-span { grid-column: 1 / -1; }
.form-feedback { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.form-feedback[data-tone="error"] { color: var(--red); }
.form-feedback[data-tone="success"] { color: var(--green); }

.button { min-height: 43px; border: 0; border-radius: 12px; padding: 0 16px; cursor: pointer; font-size: 12px; font-weight: 780; transition: transform .18s, background .18s, opacity .18s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-primary { color: #06110c; background: var(--green); }
.button-accent { color: #0c130e; background: var(--yellow); }
.button-secondary { color: var(--green); background: var(--green-soft); border: 1px solid rgba(80, 227, 141, .2); }
.button-warning { color: var(--yellow); background: var(--yellow-soft); border: 1px solid rgba(243, 200, 75, .25); }
.button-quiet { width: 100%; margin-top: auto; color: var(--muted); background: transparent; border: 1px solid var(--line); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 22px; border-right: 1px solid var(--line); background: rgba(8, 18, 14, .78); backdrop-filter: blur(22px); }
.brand-sidebar { margin: 0 8px 46px; }
.navigation { display: grid; gap: 5px; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; border: 0; border-radius: 11px; padding: 0 13px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 670; text-align: left; }
.nav-button span { display: grid; width: 20px; place-items: center; font-size: 17px; }
.nav-button:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-button.is-active { color: var(--green); background: var(--green-soft); }
.sidebar-note { display: flex; gap: 9px; margin-top: 30px; padding: 14px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.45; }
.live-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.workspace { width: 100%; max-width: 1500px; margin: 0 auto; padding: 26px clamp(20px, 4vw, 58px) 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; margin-bottom: 34px; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.member-chip { display: flex; align-items: center; gap: 10px; }
.member-chip strong, .member-chip small { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-chip strong { font-size: 12px; }
.member-chip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.member-avatar { display: block; width: 39px; height: 39px; flex: 0 0 39px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; object-fit: cover; object-position: center; }
.loading-panel { display: flex; min-height: 45vh; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.spinner { width: 17px; height: 17px; border: 2px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.command-banner { margin: -14px 0 22px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 12px; }
.command-banner[data-tone="pending"] { color: var(--yellow); border-color: rgba(243,200,75,.22); background: var(--yellow-soft); }
.command-banner[data-tone="success"] { color: var(--green); border-color: rgba(80,227,141,.2); background: var(--green-soft); }
.command-banner[data-tone="error"] { color: var(--red); border-color: rgba(255,124,119,.2); background: var(--red-soft); }
.command-history-row { display: flex; align-items: center; gap: 9px; min-height: 28px; }
.command-history-row + .command-history-row { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.command-history-row strong { color: inherit; font-size: 11px; font-weight: 650; }

.view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.hero-card { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 25px 27px; border: 1px solid rgba(80, 227, 141, .18); border-radius: var(--radius); background: linear-gradient(135deg, rgba(80, 227, 141, .11), rgba(18, 32, 26, .58)); }
.hero-value { margin: 0; font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.05em; }
.hero-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.inline-form { display: grid; grid-template-columns: minmax(140px, 190px) auto; align-items: end; gap: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.billing-preview { margin: 16px 0; padding: 25px 27px; border: 1px solid rgba(243,200,75,.28); border-radius: var(--radius); background: linear-gradient(120deg,rgba(38,39,22,.94),rgba(9,26,30,.94)); }
.billing-preview h2 { margin: 8px 0 12px; font-size: 16px; }
.billing-preview-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.billing-amount { display: block; color: var(--yellow); font-size: 32px; letter-spacing: -.8px; }
.billing-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.billing-closed { display: grid; gap: 8px; max-width: 260px; padding-left: 24px; border-left: 1px solid var(--line); }
.billing-closed small, .billing-reference small { color: var(--muted); font-size: 11px; }
.billing-closed strong { font-size: 23px; }
.billing-breakdown { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.billing-reference { display: grid; gap: 6px; margin-top: 16px; padding: 12px 15px; border-radius: 10px; background: rgba(255,255,255,.045); }
.billing-reference strong { font-size: 12px; }
.pending-copy { color: var(--yellow); }
.owner-channel-summary { grid-template-columns:repeat(5,minmax(0,1fr)); }
.owner-money-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; align-items:center; gap:24px; margin-top:20px; }
.owner-money-grid small { display:block; margin-bottom:10px; color:var(--muted); font-size:11px; }
.owner-money-grid strong { font-size:24px; }
.owner-money-grid .billing-amount { font-size:32px; }
.command-history-panel { margin-top:26px; }
.command-history-panel > summary { cursor:pointer; font-weight:700; margin-bottom:20px; }
.channel-entry-card { grid-template-columns:repeat(3,minmax(0,1fr)); }
.metric-card, .panel, .entry-card, .pix-card { border: 1px solid var(--line); background: rgba(13, 24, 20, .78); box-shadow: 0 16px 45px rgba(0,0,0,.08); }
.metric-card { min-height: 134px; padding: 20px; border-radius: 16px; }
.metric-card small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 15px; font-size: 22px; letter-spacing: -.035em; }
.metric-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.neutral { color: var(--text) !important; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 14px; margin-top: 14px; }
.panel { border-radius: var(--radius); padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.data-pill { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; }
.results-chart { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; min-height: 210px; padding-top: 18px; }
.chart-column { display: grid; grid-template-rows: 1fr auto; height: 190px; gap: 10px; text-align: center; }
.chart-track { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.chart-bar { width: min(56px, 62%); min-height: 3px; border-radius: 8px 8px 2px 2px; background: linear-gradient(to top, rgba(80,227,141,.32), var(--green)); }
.chart-bar.is-negative { background: linear-gradient(to top, rgba(255,124,119,.25), var(--red)); }
.chart-bar[data-level="0"] { height: 2%; }
.chart-bar[data-level="1"] { height: 10%; }
.chart-bar[data-level="2"] { height: 20%; }
.chart-bar[data-level="3"] { height: 30%; }
.chart-bar[data-level="4"] { height: 40%; }
.chart-bar[data-level="5"] { height: 50%; }
.chart-bar[data-level="6"] { height: 60%; }
.chart-bar[data-level="7"] { height: 70%; }
.chart-bar[data-level="8"] { height: 80%; }
.chart-bar[data-level="9"] { height: 90%; }
.chart-bar[data-level="10"] { height: 100%; }
.chart-label strong, .chart-label small { display: block; }
.chart-label strong { font-size: 11px; }
.chart-label small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.attention-list, .stack-list { display: grid; gap: 9px; }
.attention-item, .list-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.attention-item:last-child, .list-row:last-child { border-bottom: 0; }
.attention-item strong, .list-row strong { display: block; font-size: 12px; }
.attention-item p, .list-row p, .list-row small { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.count-badge { display: grid; flex: 0 0 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--yellow); background: var(--yellow-soft); font-size: 11px; font-weight: 800; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.section-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: 10px; }
.legend span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; }
.entry-list { display: grid; gap: 10px; }
.entry-card { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: start; gap: 18px 24px; padding: 22px 24px; border-radius: 16px; }
.entry-title { grid-column: 1 / -1; padding-bottom: 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.entry-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.entry-heading > div { min-width: 0; }
.entry-title .entry-game { margin: 8px 0 12px; font-size: 17px; }
.entry-title .entry-league { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.entry-pick { margin: 5px 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.entry-betano { flex-shrink: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); text-decoration: none; font-size: 11px; }
.entry-betano:hover { border-color: var(--green); color: var(--green); }
.entry-original { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.entry-original summary { width: fit-content; cursor: pointer; }
.entry-original p { padding-top: 6px; white-space: pre-line; line-height: 1.7; overflow-wrap: anywhere; }
.entry-title strong { display: block; font-size: 13px; line-height: 1.45; }
.entry-title small, .entry-cell small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.entry-cell strong { font-size: 12px; }
.entry-result { text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 999px; padding: 6px 8px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 9px; font-weight: 800; }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.pending { color: var(--yellow); background: var(--yellow-soft); }
.badge.success { color: var(--green); background: var(--green-soft); }
.badge.error { color: var(--red); background: var(--red-soft); }
.adjustment-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.adjustment-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.empty-state { padding: 34px 22px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 13px; }
.empty-state p { max-width: 440px; margin: 0 auto; font-size: 11px; line-height: 1.55; }

.pix-card { min-width: 230px; padding: 13px 15px; border-radius: 13px; }
.pix-card small, .pix-card strong { display: block; }
.pix-card small { color: var(--muted); font-size: 9px; }
.pix-card strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 11px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.money { white-space: nowrap; text-align: right; }
.money strong { font-size: 13px; }

.owner-layout { display: grid; grid-template-columns: minmax(220px, .5fr) minmax(0, 1.5fr); gap: 14px; align-items: start; }
.general-settings { margin-bottom: 28px; background: rgba(5,24,36,.9); border-color: rgba(111,202,234,.25); }
.general-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; }
.general-settings h4 { margin: 0 0 10px; font-size: 14px; }
.general-copy { color: var(--muted); font-size: 12px; line-height: 1.7; }
.general-pix-value { padding: 14px; border-radius: 12px; background: rgba(92,181,219,.1); font-size: 13px; overflow-wrap: anywhere; }
.general-calendar { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.general-period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.general-period strong { font-size: 12px; }
.general-period span, .general-period small { color: var(--muted); font-size: 11px; }
.individual-heading h3 { margin: 0; }
.owner-tools { display: grid; gap: 14px; }
.report-filter { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.owner-entry-list .entry-card { grid-template-columns: repeat(2, minmax(0,1fr)); }
.owner-entry-list .entry-title { grid-column: 1 / -1; }
.member-selector-panel { position: sticky; top: 24px; }
.review-summary { display: grid; gap: 8px; margin-top: 16px; }
.review-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.review-line strong { max-width: 68%; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.panel hr { height: 1px; margin: 22px 0; border: 0; background: var(--line); }
.check-row { grid-template-columns: auto 1fr !important; align-items: start; color: var(--muted) !important; line-height: 1.5; }
.check-row input { width: 17px; min-height: 17px; margin: 1px 0 0; accent-color: var(--yellow); }
.review-panel { border-color: rgba(243,200,75,.18); }
.batch-panel { margin-bottom: 28px; }
.batch-panel .panel-heading { flex-wrap: wrap; }
.batch-panel .panel-heading .button { width: auto; flex-shrink: 0; margin: 0; }
.batch-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.batch-summary { color: var(--muted); font-size: 12px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.batch-table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; font-size: 12px; }
.batch-table th { padding: 12px 10px; color: var(--muted); font-size: 10px; font-weight: 600; }
.batch-table td { padding: 16px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.batch-table small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.batch-table .badge { white-space: normal; line-height: 1.5; }
.panel-copy { margin: -10px 0 16px; color: var(--muted); font-size: 11px; }
.statistics-filters { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:20px; }
.statistics-filters > label:first-child { width:min(100%,280px); }
.statistics-filters .check-row { display:flex; align-items:center; gap:10px; margin:0 0 10px; }
.statistics-filters input[type=checkbox] { width:18px; height:18px; margin:0; accent-color:var(--green); }
.statistics-notice { color:var(--muted); line-height:1.7; margin:16px 2px; font-size:13px; }
.statistics-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.statistic-card { min-width:0; }
.statistic-card strong { overflow-wrap:anywhere; }
.statistic-card p { line-height:1.5; }
.statistics-curve,.statistics-method { margin-top:18px; }
.equity-svg { display:block; width:100%; height:auto; max-height:300px; margin:12px 0; overflow:visible; }
.equity-zero { stroke:var(--line-strong); stroke-width:1; stroke-dasharray:5 5; }
.equity-line { fill:none; stroke:var(--green); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.equity-range { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; flex-wrap:wrap; }
.statistics-method summary { cursor:pointer; font-weight:700; }
.statistics-method dl { display:grid; grid-template-columns:minmax(130px,1fr) 3fr; gap:14px 24px; margin-top:24px; font-size:13px; line-height:1.7; }
.statistics-method dt { font-weight:700; }
.statistics-method dd { margin:0; color:var(--muted); }
@media(max-width:1000px){.statistics-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.statistics-filters{align-items:stretch;flex-direction:column;gap:16px;}.statistics-filters>label:first-child{width:100%;}.statistics-grid{grid-template-columns:1fr 1fr;gap:9px;}.statistics-method dl{display:block;}.statistics-method dt{margin-top:16px;}.statistic-card{padding:17px;}.statistic-card strong{font-size:23px;}}
@media(max-width:380px){.statistics-grid{grid-template-columns:1fr;}}
.mobile-nav { display: none; }

@media (max-width: 1040px) {
  .owner-channel-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .entry-card { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .entry-result { text-align: left; }
  .entry-card .entry-cell:nth-of-type(4), .entry-card .entry-cell:nth-of-type(5) { grid-column: auto; }
  .owner-layout { grid-template-columns: 1fr; }
  .member-selector-panel { position: static; }
}

@media (max-width: 760px) {
  .owner-money-grid { grid-template-columns:1fr; gap:20px; }
  .channel-entry-card { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .auth-shell { display: block; }
  .auth-brand { min-height: 42svh; padding: 22px 22px 24px; border: 0; background: linear-gradient(180deg, rgba(3,17,28,.12), rgba(3,17,28,.64)), url('/staking/kame-house.png') 35% center / cover no-repeat; }
  .auth-promise { margin-top: auto; padding: 28px 0 0; }
  .auth-promise > p:last-child { font-size: 15px; }
  .trust-row { display: none; }
  .auth-card { margin: 16px 22px 40px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(13,24,20,.72); }
  .sidebar { display: none; }
  .app-shell { display: block; }
  .workspace { padding: 20px 15px 96px; }
  .topbar { margin-bottom: 24px; }
  .topbar .eyebrow { display: none; }
  .topbar h1 { font-size: 21px; }
  .member-chip strong, .member-chip small { max-width: 112px; }
  .hero-card { display: grid; padding: 21px; }
  .billing-preview { padding: 21px; }
  .billing-preview-main { display: grid; gap: 20px; }
  .billing-closed { max-width: none; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .billing-breakdown { display: grid; gap: 9px; }
  .entry-heading { display: grid; gap: 14px; }
  .entry-betano { width: fit-content; }
  .inline-form { grid-template-columns: 1fr; width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-card { min-height: 116px; padding: 16px; }
  .metric-card strong { font-size: 18px; }
  .panel { padding: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .legend { justify-content: flex-start; }
  .entry-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 17px; }
  .entry-title { grid-column: 1 / -1; }
  .entry-result { text-align: right; }
  .adjustment-form { grid-template-columns: 1fr 1fr; }
  .adjustment-form .button { grid-column: 1 / -1; }
  .split-grid, .form-grid, .general-grid { grid-template-columns: 1fr; }
  .full-span { grid-column: auto; }
  .pix-card { width: 100%; min-width: 0; }
  .mobile-nav { position: fixed; z-index: 20; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(10,21,16,.94); box-shadow: 0 18px 50px rgba(0,0,0,.35); backdrop-filter: blur(22px); }
  .mobile-nav:has(.owner-only:not([hidden])) { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .mobile-nav button { display: grid; place-items: center; gap: 2px; min-height: 49px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 700; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.is-active { color: var(--green); background: var(--green-soft); }
}

@media (max-width: 410px) {
  .metric-grid { grid-template-columns: 1fr; }
  .entry-card { grid-template-columns: 1fr 1fr; }
  .member-chip span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
