/* GRBI · sistema visual. Cores da marca e regras financeiras preservadas. */
:root{--radius-control:9999px;--radius-card:20px;--shadow-card:0 3px 6px #11182702,0 12px 32px #11182703;--shadow-hover:0 8px 26px #11182709;--motion-fast:160ms;--motion-enter:300ms;--ease-out:cubic-bezier(.22,1,.36,1);--sidebar-size:252px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button{border-radius:var(--radius-control)!important;transition:background var(--motion-fast),color var(--motion-fast),box-shadow var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast);letter-spacing:-.01em}
button svg{vertical-align:middle;flex-shrink:0}button svg+span{margin-left:0}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{cursor:default;opacity:.6}button[aria-busy=true]{cursor:progress}
.primary{box-shadow:0 3px 7px #a6004317}.primary:hover:not(:disabled){box-shadow:0 5px 14px #a6004329;transform:translateY(-1px)}
.secondary{box-shadow:0 1px 2px #11182703}.secondary:hover:not(:disabled){border-color:#d8bac7;background:#fff8fb}
button:focus-visible,a:focus-visible{outline:3px solid #a6004370;outline-offset:3px}
input:not([type=checkbox]),select{border-radius:12px;border-color:#e0e3e9;transition:border-color var(--motion-fast),box-shadow var(--motion-fast);min-height:46px}
input:focus,select:focus{border-color:#b96a89;box-shadow:0 0 0 4px #a600430a}
input[type=checkbox]{accent-color:var(--brand);cursor:pointer}
label{font-size:11px;font-weight:500;color:#58667a;letter-spacing:.005em}
.shell{grid-template-columns:var(--sidebar-size) minmax(0,1fr);transition:grid-template-columns 250ms var(--ease-out)}
.sidebar{padding:28px 16px 20px;position:sticky;top:0;height:100svh;overflow-y:auto;overflow-x:hidden;border-color:#e9ebf0;z-index:20;min-width:0}
.brand-link{padding:8px 16px 22px;margin:0 0 24px;border-bottom:1px solid #eff0f4;height:82px;display:flex;align-items:center}
.brand-link .brand-wordmark{width:148px;height:auto}.brand-link .brand-symbol{display:none;width:34px;height:34px;object-fit:contain}
.nav-caption{font-size:9px;letter-spacing:.15em;margin:0 16px 16px;color:#64748b}
.sidebar nav{gap:7px}.nav-button{display:flex;align-items:center;gap:12px;padding:13px 15px;min-height:47px;white-space:nowrap;font-size:12px;font-weight:500;position:relative;color:#606d80;overflow:hidden;width:100%}
.nav-button svg{width:19px;height:19px;opacity:.9}.nav-label{overflow:hidden;text-overflow:ellipsis}
.nav-button.active{color:var(--brand);background:var(--brand-soft);font-weight:600;box-shadow:inset 0 0 0 1px #a6004305}
.nav-button:hover{background:#f8f3f6;color:var(--brand)}
.nav-button.active:before{content:'';position:absolute;left:0;top:15px;bottom:15px;width:3px;border-radius:4px;background:var(--brand)}
.sidebar-footer{padding:20px 7px 0;margin-top:auto;border-color:#eff0f4}.sidebar-signature{padding:0 8px 15px;font-size:11px;font-weight:600}.sidebar-signature span{display:block;font-size:10px;font-weight:400;color:var(--muted)}
.sidebar-toggle{background:transparent;border:1px solid #e9ebf0;width:100%;padding:10px;display:flex;align-items:center;justify-content:center;gap:9px;color:#667285;font-size:11px;min-height:39px}.sidebar-toggle:hover{background:#f7f8fa;color:var(--brand)}.sidebar-toggle svg{width:17px;height:17px;transition:transform 250ms}
.workspace{position:relative}.topbar{min-height:76px;padding:16px 36px;background:#ffffffed;border-color:#e9ebf0;font-size:11px;gap:16px}
#role-label{display:flex;align-items:center;gap:9px}#role-label:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.user-actions{gap:12px}.user-avatar{width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;font-size:10px;font-weight:600;color:var(--brand);background:var(--brand-soft);border:1px solid #efdce4;flex-shrink:0}
#user-name{font-size:12px;margin-right:8px}.user-actions .quiet{display:inline-flex;align-items:center;gap:7px;font-size:11px;padding:8px 12px;min-height:36px}.user-actions svg{width:15px;height:15px}
.content{max-width:1530px;padding:36px 36px 28px}.page-heading{align-items:center;gap:20px;margin-bottom:4px}.page-heading h1{font-size:30px;letter-spacing:-.045em;font-weight:650;line-height:1.2;margin-bottom:8px}.page-heading p{font-size:12px;line-height:1.7;color:#64748b}
#refresh{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;padding:10px 17px;min-height:42px}#refresh svg{width:16px;height:16px}#refresh[aria-busy=true] svg{animation:grbi-spin 1.2s linear infinite}
.filters{padding:20px;background:#fff;border:1px solid #e9ebf0;border-radius:16px;margin:27px 0 15px;gap:12px;box-shadow:0 2px 6px #11182702}.filters label{min-width:135px;max-width:240px}.filters select,.filters input{font-size:12px;background:#fff;min-height:42px;padding:10px 12px}.filters .apply-filters{min-height:42px;font-size:11px;color:var(--brand);background:var(--brand-soft);border-color:transparent;padding:10px 17px}
.filter-caption{font-size:10px;margin:0 2px 24px;color:#64748b;letter-spacing:.005em}
.stats{gap:18px;margin-bottom:26px}.stat{border-color:#e6e8ee;border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:22px 22px 20px;position:relative;overflow:hidden;transition:transform 200ms var(--ease-out),box-shadow 200ms}
.stat-visual{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#faf3f6;color:var(--brand);border:1px solid #f3e6ec;margin-bottom:17px}.stat-visual svg{width:19px;height:19px}.stat p{margin-bottom:10px;font-size:11px;font-weight:500;color:#637084}.stat strong{font-size:clamp(24px,2.1vw,33px);font-weight:650;letter-spacing:-.045em;transition:opacity 160ms}.stat span{margin-top:11px;font-size:10px;line-height:1.65;color:#64748b;max-width:32ch}
.stat.emphasis{background:linear-gradient(120deg,#fff7fb 0%,#f9edf2 100%);border-color:#edcedb}.stat.emphasis .stat-visual{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 4px 10px #a600431c}
.stat.emphasis:after{content:'';position:absolute;width:125px;height:125px;border-radius:50%;border:1px solid #a6004308;right:-42px;top:-32px;pointer-events:none}
.panel{border-color:#e6e8ee;border-radius:var(--radius-card);box-shadow:var(--shadow-card);margin-bottom:22px}.panel-header{padding:21px 24px;border-color:#eceef3;min-height:67px}.panel-header h2{font-size:14px;font-weight:600;letter-spacing:-.02em}.panel-header>span{font-size:10px;background:#f5f6f8;padding:5px 9px;border-radius:9999px}.panel-subtitle{font-size:11px;margin-top:5px}.panel-footer{padding:0 24px}.panel-footer button{font-size:11px;min-height:48px}
table{font-size:12px}th{font-size:10px;letter-spacing:.035em;font-weight:500;background:#fbfcfd;padding-top:13px;padding-bottom:13px;color:#64748b}td{padding-top:18px;padding-bottom:18px;border-color:#edf0f4}.cell-title{font-size:12px;font-weight:500}.cell-detail{font-size:10px;line-height:1.6;color:#64748b}tbody tr{transition:background 150ms}tbody tr:hover{background:#fdf9fb}.table-actions{gap:6px}.table-actions button{padding:7px 12px;min-height:33px;font-size:10px}.tag{border-radius:9999px;padding:5px 10px;font-size:10px;font-weight:500}.tag.good{border:1px solid #dbeddf;background:#f0f8f2;color:#24653b}.tag.refund{border:1px solid #efdce4}.tag.review{border:1px solid #f4e8b7;background:#fffbec}.empty{padding:40px 24px;font-size:12px;color:#64748b}.pagination{font-size:11px}.pagination button{font-size:11px;min-height:36px;padding:8px 14px}
.section-action{margin-bottom:22px}.section-action>.primary{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;font-size:12px}.section-action svg{width:17px;height:17px}
.product-tools{margin-bottom:20px}.product-tools select{font-size:12px}.product-tools p{font-size:11px}.product-intro{border-color:#efdfe6;border-radius:16px;background:#fffafd;padding:19px 22px;box-shadow:0 2px 5px #a6004302}.product-intro strong{font-size:12px;color:#842342}.product-intro p{font-size:12px;line-height:1.8}.book-card>summary{padding:23px 24px}.book-title{font-size:15px;letter-spacing:-.015em}.book-meta{font-size:11px;margin-top:6px}.book-link-count{font-size:10px;border-radius:9999px}.book-card>summary:after{width:7px;height:7px;border-width:1.5px;transition:transform 200ms}.book-toolbar{padding:17px 24px;background:#fdfcfd}.book-rule{font-size:11px}.book-card[open]>:not(summary){animation:grbi-reveal 220ms var(--ease-out) both}
.payment-tabs{padding:4px;background:#eaeef2;border-radius:9999px;gap:4px}.payment-tabs button{font-size:11px;min-height:39px;padding:10px 19px}.payment-tabs button.active{box-shadow:0 2px 5px #1118270c}.payment-author-total{border-radius:16px}.payment-author-total span{font-size:11px}.payment-author-total strong{font-weight:650}.rank-number{border-radius:11px}.rank-bar>span{transition:width 350ms var(--ease-out)}
dialog{border-radius:22px;border-color:#e7e9ee;box-shadow:0 30px 100px #1118272b;animation:grbi-dialog 240ms var(--ease-out)}dialog::backdrop{background:#19202c50;backdrop-filter:blur(4px)}.modal-heading{padding:22px 26px}.modal-heading h2{font-size:15px;letter-spacing:-.02em}.modal-heading .quiet{width:34px;min-height:34px;padding:4px;font-size:22px}.modal-fields{padding:26px;gap:20px}.modal-fields input,.modal-fields select{font-size:13px;min-height:46px}.modal-fields p{font-size:11px;line-height:1.8}.modal-footer{padding:18px 26px;background:#fcfcfd;gap:10px}.modal-footer button{font-size:12px;padding:11px 20px;min-height:42px}.message:not(:empty){border:1px solid #efdce4;font-size:12px;animation:grbi-reveal 180ms var(--ease-out)}.message.error:not(:empty){border-color:#f6d9de}.message.success:not(:empty){border-color:#d9ebdf}
.page-panel:not([hidden]){animation:grbi-reveal var(--motion-enter) var(--ease-out) both}.page-panel .stats .stat{animation:grbi-reveal 350ms var(--ease-out) both}.page-panel .stats .stat:nth-child(2){animation-delay:35ms}.page-panel .stats .stat:nth-child(3){animation-delay:70ms}.page-panel .stats .stat:nth-child(4){animation-delay:105ms}
.workspace-progress{position:fixed;top:0;left:var(--sidebar-size);right:0;height:3px;background:#f3e4eb;z-index:60;overflow:hidden;pointer-events:none}.workspace-progress>span:first-child{display:block;width:35%;height:100%;background:var(--brand);border-radius:9999px;animation:grbi-progress 1.2s ease-in-out infinite}.is-updating .stat strong{opacity:.55}
.session-screen{background:radial-gradient(ellipse at center,#fff 0%,#f7f8fa 75%)}.session-card{display:flex;align-items:center;flex-direction:column;width:min(100%,400px)}.session-loader{width:88px;height:88px;position:relative;display:grid;place-items:center;color:var(--brand)}.session-loader>svg{filter:drop-shadow(0 2px 3px #a6004310)}.loader-orbit{position:absolute;inset:0;border-radius:50%;border:2px solid #f1dfe7;border-top-color:var(--brand);border-right-color:#ce7c9d;animation:grbi-spin 1.35s linear infinite}.loader-orbit-inner{inset:9px;border-width:1px;border-color:#f4e9ee;border-bottom-color:#a6004345;animation-direction:reverse;animation-duration:1.9s}.loader-tracks{display:flex;align-items:center;gap:5px;height:20px;margin-top:22px}.loader-tracks i{display:block;height:3px;width:14px;border-radius:9999px;background:#a60043;opacity:.15;animation:grbi-pulse 1.25s ease-in-out infinite}.loader-tracks i:nth-child(2){animation-delay:150ms}.loader-tracks i:nth-child(3){animation-delay:300ms}
.session-screen[data-state=loading] #session-title,.session-screen[data-state=loading] #session-message{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.session-screen[data-state=error] .session-loader,.session-screen[data-state=error] .loader-tracks{display:none}.session-screen[data-state=error] .session-card{background:#fff;border:1px solid #e6e8ee;padding:32px 26px;border-radius:22px;box-shadow:var(--shadow-card)}.session-screen[data-state=error] #session-title{font-size:22px}.session-screen[data-state=error] #session-message{font-size:12px}
.access-form{animation:grbi-reveal 300ms var(--ease-out)}.access-inner h2{font-weight:650}.access-inner .primary{min-height:48px}.access-inner input{border-radius:12px}.password-toggle{border-radius:9999px!important}
@keyframes grbi-spin{to{transform:rotate(360deg)}}@keyframes grbi-pulse{0%,80%,100%{opacity:.15;transform:scaleX(.8)}40%{opacity:.7;transform:scaleX(1)}}@keyframes grbi-progress{from{transform:translateX(-110%)}to{transform:translateX(390%)}}@keyframes grbi-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes grbi-dialog{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(hover:hover){.stat:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}}
@media(min-width:761px){.sidebar-collapsed{--sidebar-size:84px}.sidebar-collapsed .sidebar{padding-left:12px;padding-right:12px}.sidebar-collapsed .brand-link{padding:8px 12px 22px}.sidebar-collapsed .brand-wordmark{display:none}.sidebar-collapsed .brand-symbol{display:block}.sidebar-collapsed .nav-caption,.sidebar-collapsed .nav-label,.sidebar-collapsed .sidebar-signature,.sidebar-collapsed .sidebar-toggle span{display:none}.sidebar-collapsed .nav-button{justify-content:center;padding:13px 0;gap:0}.sidebar-collapsed .nav-button.active:before{left:0}.sidebar-collapsed .sidebar-footer{padding-left:0;padding-right:0}.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}.sidebar-collapsed .sidebar-toggle{width:40px;margin:auto}.sidebar-collapsed .nav-button svg{width:20px;height:20px}}
@media(min-width:761px) and (max-width:1150px){:root{--sidebar-size:220px}.content{padding:30px 24px}.topbar{padding:16px 24px}.stat{padding:20px 18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-button{font-size:11px;gap:10px}.brand-link .brand-wordmark{width:140px}}
@media(max-width:760px){
 .shell{display:block}.content{padding:26px 16px calc(28px + env(safe-area-inset-bottom))}.mobile-header{border-color:#e9ebf0;box-shadow:0 3px 14px #11182703}.mobile-header .icon-button{border:1px solid #e9ebf0;width:42px;height:42px;min-height:42px;background:#fff;padding:9px}.page-heading h1{font-size:27px}.page-heading p{font-size:12px}.page-heading #refresh{font-size:0;width:42px;height:42px;min-height:42px;padding:10px;gap:0}.page-heading #refresh svg{width:18px;height:18px}.filter-bar{border-radius:16px;margin:22px 0;box-shadow:0 2px 8px #11182702}.filter-bar button{border-radius:9999px;min-height:40px;padding:10px 14px}.stats{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}.stat{padding:18px 16px;border-radius:18px}.stat-visual{width:33px;height:33px;border-radius:11px;margin-bottom:13px}.stat-visual svg{width:17px;height:17px}.stat p{font-size:10px;line-height:1.5;min-height:30px;margin-bottom:9px}.stat strong{font-size:clamp(19px,5.5vw,27px);white-space:normal;line-height:1.2}.stat span{font-size:10px;line-height:1.6;max-width:none;margin-top:9px}.panel{border-radius:18px}.panel-header{padding:18px;min-height:63px}.panel-header h2{font-size:13px}.panel-header>span{font-size:9px}.panel-footer{padding:0 18px}.sale-card{padding:18px}.sale-amounts{border-radius:12px;background:#f8f6f8}.sale-card h3{font-size:14px}.sale-amounts dd{font-size:18px}.sale-card .tag{font-size:9px}.table-actions button{min-height:42px;font-size:11px}td,td:first-child,td:last-child{padding:0}tbody tr:hover{background:transparent}.pagination{padding:13px}.pagination button{min-height:42px}.section-action>.primary{padding:11px 18px;justify-content:center}.product-intro{padding:17px 18px}.product-intro p{font-size:12px}.product-tools select{font-size:14px}.product-tools p{font-size:10px}.book-card>summary{padding:20px 18px}.book-title{font-size:14px}.book-toolbar{padding:17px 18px}.book-toolbar .table-actions{gap:7px}.book-toolbar button{flex:1;padding:9px 13px}.book-link-count{font-size:9px}.payment-tabs{width:100%}.payment-tabs button{flex:1;padding:10px 12px;font-size:11px}.kdp-stats{grid-template-columns:1fr}.kdp-stats .stat{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:14px}.kdp-stats .stat-visual{grid-column:1;grid-row:1/4;margin:0}.kdp-stats .stat p,.kdp-stats .stat strong,.kdp-stats .stat>span{grid-column:2;min-height:0}.kdp-stats .stat strong{font-size:27px}.kdp-pad{padding:18px}.kdp-upload input[type=file]{font-size:12px}.kdp-upload button{min-height:44px}.navigation-dialog .sidebar{position:static;height:auto;overflow:visible;padding:15px 16px}.navigation-dialog .brand-link{height:auto;padding:8px 14px 24px;margin-bottom:20px;width:100%}.navigation-dialog .brand-wordmark{display:block;width:135px}.navigation-dialog .brand-symbol{display:none}.navigation-dialog .nav-caption{display:block}.navigation-dialog .nav-label{display:block}.navigation-dialog .nav-button{justify-content:flex-start;gap:13px;padding:13px 15px;font-size:13px;min-height:48px}.navigation-dialog .nav-button svg{width:19px;height:19px}.navigation-dialog .sidebar-footer{display:none}.navigation-dialog .topbar{margin-top:8px;padding-top:18px}.navigation-dialog .user-actions{grid-template-columns:1fr 1fr}.navigation-dialog .user-avatar{display:none}.navigation-dialog .user-actions .quiet{justify-content:center;min-height:44px;font-size:12px}.workspace-progress{left:0;top:0}.filter-dialog .modal-heading,#modal .modal-heading{padding:20px}.filter-dialog .filters{border:0;box-shadow:none;border-radius:0;margin:0;gap:18px}.filter-dialog input,.filter-dialog select,.modal-fields input,.modal-fields select{font-size:16px;min-height:48px}.modal-fields{padding:22px 20px}.modal-footer{padding:16px 20px}.modal-footer button{min-height:46px}#modal,.filter-dialog{border-radius:24px 24px 0 0}.navigation-dialog{border-radius:24px 0 0 24px}.modal-heading .quiet{min-height:44px;width:44px}.session-loader{width:78px;height:78px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.loader-orbit{border-top-color:var(--brand)}.loader-tracks i{opacity:.45}.workspace-progress>span:first-child{width:100%;opacity:.5}}
/* Perfil, imagens e tema escuro. */
.user-actions{flex-wrap:nowrap}.theme-toggle{display:grid;place-items:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:9px;color:var(--muted);background:var(--surface);border:1px solid var(--line)}.theme-toggle svg{width:17px;height:17px}.profile-dropdown{position:relative}.profile-trigger{display:flex;align-items:center;gap:10px;padding:4px 10px 4px 4px;background:transparent;color:var(--ink);border:1px solid transparent;min-height:42px}.profile-trigger:hover,.profile-trigger[aria-expanded=true]{background:var(--brand-soft);border-color:#a6004310}.profile-trigger #user-name{margin:0;font-size:12px}.profile-trigger .user-avatar{width:33px;height:33px;overflow:hidden;position:relative}.user-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.profile-menu{position:absolute;right:0;top:calc(100% + 10px);width:210px;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 45px #1118271a;z-index:80;animation:grbi-reveal 150ms var(--ease-out)}.profile-menu-title{display:block;padding:10px 12px;font-size:10px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:5px}.profile-menu .quiet{display:flex;align-items:center;gap:10px;width:100%;justify-content:flex-start;padding:11px 12px;min-height:42px;font-size:12px;text-align:left}.profile-menu #logout{color:var(--brand)}
.media-field{border:1px dashed var(--line);border-radius:16px;padding:17px;display:grid;gap:12px}.media-field h3{font-size:12px;margin:0}.media-preview{display:flex;align-items:center;gap:15px;min-width:0}.media-frame{display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);border:1px solid var(--line);width:64px;height:64px;border-radius:50%;overflow:hidden;flex-shrink:0}.media-frame.cover{width:62px;height:86px;border-radius:9px}.media-frame img{height:100%;width:100%;object-fit:cover}.media-frame.cover img{object-fit:contain;background:var(--surface)}.media-frame span{font-size:11px;font-weight:600}.media-field input[type=file]{font-size:11px;max-width:100%;padding:9px}.media-field .secondary{font-size:10px;padding:7px 12px;min-height:32px}.media-field .media-description{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.media-error{font-size:11px;color:#a3224a;margin:0}.media-caption{min-width:0;display:grid;gap:8px}.catalog-person{display:flex;align-items:center;gap:11px}.catalog-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;overflow:hidden;flex-shrink:0;background:var(--brand-soft);color:var(--brand);font-size:10px;font-weight:600}.catalog-avatar img{width:100%;height:100%;object-fit:cover}.book-identity{display:flex;align-items:center;gap:17px;min-width:0;flex:1}.book-cover{width:45px;height:62px;display:grid;place-items:center;flex-shrink:0;background:var(--brand-soft);border:1px solid var(--line);color:var(--brand);border-radius:6px;overflow:hidden;font-size:18px}.book-cover img{width:100%;height:100%;object-fit:contain;background:var(--surface)}.book-heading{min-width:0}
:root[data-theme=dark]{color-scheme:dark;--ink:#edf0f5;--muted:#acb5c6;--line:#303746;--surface:#181e29;--background:#0e131c;--brand-soft:#33222e;--green:#a3deba;--green-bg:#19352a;--shadow-card:0 4px 18px #00000014;--shadow-hover:0 8px 26px #00000025;--accent:#f1a8c6}
[data-theme=dark] body{background:var(--background)}[data-theme=dark] .sidebar,[data-theme=dark] .topbar,[data-theme=dark] .mobile-header,[data-theme=dark] .access-form{background:var(--surface);border-color:var(--line)}[data-theme=dark] .brand-link,[data-theme=dark] .sidebar-footer{border-color:var(--line)}[data-theme=dark] .brand-wordmark,[data-theme=dark] .mobile-header img{object-fit:contain;max-height:54px}[data-theme=dark] .nav-button{color:#b4bdcc}[data-theme=dark] .nav-button.active,[data-theme=dark] .nav-button:hover{background:var(--brand-soft);color:var(--accent)}[data-theme=dark] .nav-button.active:before{background:var(--accent)}[data-theme=dark] .sidebar-toggle{border-color:var(--line);color:var(--muted)}[data-theme=dark] .sidebar-toggle:hover{background:#242a37;color:var(--accent)}[data-theme=dark] .nav-caption,[data-theme=dark] .page-heading p,[data-theme=dark] .filter-caption,[data-theme=dark] label,[data-theme=dark] .stat p,[data-theme=dark] .stat span,[data-theme=dark] .cell-detail,[data-theme=dark] .empty{color:var(--muted)}
[data-theme=dark] button.secondary,[data-theme=dark] .theme-toggle{background:#1e2532;border-color:#374050;color:var(--ink)}[data-theme=dark] .secondary:hover:not(:disabled),[data-theme=dark] .quiet:hover{background:#2a2433;border-color:#695062}[data-theme=dark] .primary{background:#a60043;color:#fff;box-shadow:0 3px 12px #00000020}[data-theme=dark] .primary:hover:not(:disabled){background:#be165b}[data-theme=dark] .text-button,[data-theme=dark] .brand-text,[data-theme=dark] .profile-menu #logout{color:var(--accent)}[data-theme=dark] input,[data-theme=dark] select{background:#141a24;color:var(--ink);border-color:#364051}[data-theme=dark] input:focus,[data-theme=dark] select:focus{border-color:#cc7c9d;box-shadow:0 0 0 4px #d67c9d12}[data-theme=dark] .filters{background:var(--surface);border-color:var(--line)}[data-theme=dark] .filters .apply-filters,[data-theme=dark] .filter-bar button{color:var(--accent);background:var(--brand-soft);border-color:transparent}
[data-theme=dark] .stat,[data-theme=dark] .panel{background:var(--surface);border-color:var(--line)}[data-theme=dark] .stat-visual{background:#332330;border-color:#533344;color:var(--accent)}[data-theme=dark] .stat.emphasis{background:linear-gradient(120deg,#2f202c,#211c2a);border-color:#674052}[data-theme=dark] .stat.emphasis strong{color:var(--accent)}[data-theme=dark] .stat.emphasis .stat-visual{background:#a60043;color:#fff;border-color:#b51d59}[data-theme=dark] .panel-header,[data-theme=dark] .panel-footer,[data-theme=dark] td,[data-theme=dark] .pagination,[data-theme=dark] .book-toolbar,[data-theme=dark] .book-card .table-wrap{border-color:var(--line)}[data-theme=dark] .panel-header>span{background:#252c39;color:var(--muted)}[data-theme=dark] th{background:#1e2531;color:var(--muted)}[data-theme=dark] tbody tr:hover{background:#25202d}[data-theme=dark] .tag{background:#2b3240;color:#c1c9d6}[data-theme=dark] .tag.good{background:#1b3429;border-color:#31533f;color:#a8dfb9}[data-theme=dark] .tag.refund,[data-theme=dark] .channel-tag{background:var(--brand-soft);border-color:#644051;color:#f0abc7}[data-theme=dark] .tag.review{background:#393221;border-color:#645735;color:#e9d18b}
[data-theme=dark] .product-intro{background:#241e2a;border-color:#573849}[data-theme=dark] .product-intro strong{color:#f1aac6}[data-theme=dark] .product-intro p{color:var(--muted)}[data-theme=dark] .book-toolbar{background:#1c222e}[data-theme=dark] .book-link-count,[data-theme=dark] .rank-number.leading,[data-theme=dark] .catalog-avatar,[data-theme=dark] .book-cover,[data-theme=dark] .media-frame{color:var(--accent);background:var(--brand-soft)}[data-theme=dark] .rank-number,[data-theme=dark] .rank-bar{background:#2b3240}[data-theme=dark] .rank-bar>span{background:#d47a9f}[data-theme=dark] .payment-tabs{background:#242b38}[data-theme=dark] .payment-tabs button{color:var(--muted)}[data-theme=dark] .payment-tabs button.active{background:#3b2836;color:var(--accent)}[data-theme=dark] .payment-author-total{background:#2b2030;border-color:#5b3a4b}[data-theme=dark] .payment-author-total strong{color:var(--accent)}[data-theme=dark] .integration-note{background:#302231;color:#dec5d1}[data-theme=dark] #mail-health{background:var(--surface);border-color:var(--line)}[data-theme=dark] .pending-edit{color:#e9d18b}
[data-theme=dark] dialog{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 30px 100px #00000065}[data-theme=dark] dialog::backdrop{background:#06080dc0}[data-theme=dark] .modal-heading,[data-theme=dark] .modal-footer{border-color:var(--line);background:#1a202c}[data-theme=dark] .modal-fields p{color:var(--muted)}[data-theme=dark] .message:not(:empty){background:#30212e;border-color:#5e394e;color:#f1b1cd}[data-theme=dark] .message.success:not(:empty){background:#193328;border-color:#305740;color:#b0e4c2}[data-theme=dark] .message.error:not(:empty){background:#3c222e;border-color:#6d3b50;color:#ffc2d3}[data-theme=dark] .profile-trigger{color:var(--ink)}[data-theme=dark] .user-avatar{background:#3c2634;color:var(--accent);border-color:#684455}[data-theme=dark] .profile-menu{box-shadow:0 14px 45px #00000060}[data-theme=dark] .profile-trigger:hover,[data-theme=dark] .profile-trigger[aria-expanded=true]{border-color:#654153}
[data-theme=dark] .session-screen{background:radial-gradient(ellipse at center,#1a202c,#0e131c)}[data-theme=dark] .session-loader{color:var(--accent)}[data-theme=dark] .loader-orbit{border-color:#422b3a;border-top-color:#e197b6;border-right-color:#a60043}[data-theme=dark] .loader-orbit-inner{border-color:#30232e;border-bottom-color:#80516b}[data-theme=dark] .loader-tracks i{background:#e197b6}[data-theme=dark] .session-screen[data-state=error] .session-card{background:var(--surface);border-color:var(--line)}[data-theme=dark] .workspace-progress{background:#412a38}[data-theme=dark] .workspace-progress>span:first-child{background:#e197b6}[data-theme=dark] .media-error{color:#ffb8ce}
@media(max-width:760px){.navigation-dialog .user-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.navigation-dialog .user-avatar{display:inline-grid}.navigation-dialog #user-name{font-size:12px}.navigation-dialog .profile-trigger{min-height:46px;padding-right:10px}.navigation-dialog .profile-menu{top:auto;bottom:calc(100% + 10px);right:0}.navigation-dialog .profile-menu .quiet{justify-content:flex-start;background:transparent}.navigation-dialog .profile-menu .quiet:hover{background:var(--brand-soft)}.navigation-dialog .profile-dropdown{flex:1;min-width:0}.navigation-dialog .profile-trigger #user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:155px}.navigation-dialog .theme-toggle{width:40px;min-width:40px;min-height:40px}.media-field input[type=file]{font-size:12px}.book-cover{width:38px;height:53px}.book-identity{gap:12px}[data-theme=dark] .filter-dialog .modal-heading,[data-theme=dark] #modal .modal-heading,[data-theme=dark] #modal .modal-footer{background:#1a202c}[data-theme=dark] .mobile-header .icon-button{background:#222937;border-color:var(--line);color:var(--ink)}[data-theme=dark] .filter-bar{background:var(--surface);border-color:var(--line)}[data-theme=dark] .sale-amounts{background:#222a37}[data-theme=dark] .sale-amounts>div:last-child dd{color:var(--accent)}[data-theme=dark] .navigation-dialog .quiet{background:#222937}[data-theme=dark] .navigation-dialog .profile-menu .quiet{background:transparent}}

.profile-trigger #user-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}@media(max-width:760px){.navigation-dialog .profile-trigger{max-width:100%;width:100%}.navigation-dialog .profile-trigger #user-name{flex:1;min-width:0}}

/* Tons de apoio suaves; o saldo continua com o destaque bordô. */
.stats>.stat:not(.emphasis):nth-child(1){background:linear-gradient(125deg,#f5f8ff,#eef3fc);border-color:#dfe7f5}
.stats>.stat:not(.emphasis):nth-child(1) .stat-visual{background:#e5edfb;border-color:#d5e0f5;color:#536f9c}
.stats>.stat:not(.emphasis):nth-child(2){background:linear-gradient(125deg,#f3faf7,#edf6f1);border-color:#dcece3}
.stats>.stat:not(.emphasis):nth-child(2) .stat-visual{background:#e0f0e7;border-color:#cfe5d9;color:#487b63}
.stats>.stat:not(.emphasis):nth-child(3){background:linear-gradient(125deg,#faf7ff,#f3effa);border-color:#e8dff2}
.stats>.stat:not(.emphasis):nth-child(3) .stat-visual{background:#ece3f7;border-color:#dfd3ef;color:#7d629c}
[data-theme=dark] .stats>.stat:not(.emphasis):nth-child(1){background:linear-gradient(125deg,#1d283a,#1a2332);border-color:#32435e}
[data-theme=dark] .stats>.stat:not(.emphasis):nth-child(1) .stat-visual{background:#293b55;border-color:#3a5070;color:#afc7ed}
[data-theme=dark] .stats>.stat:not(.emphasis):nth-child(2){background:linear-gradient(125deg,#1c2d28,#192721);border-color:#304b3e}
[data-theme=dark] .stats>.stat:not(.emphasis):nth-child(2) .stat-visual{background:#294337;border-color:#3a5948;color:#acd4ba}
[data-theme=dark] .stats>.stat:not(.emphasis):nth-child(3){background:linear-gradient(125deg,#2b2438,#231f30);border-color:#493c5a}
[data-theme=dark] .stats>.stat:not(.emphasis):nth-child(3) .stat-visual{background:#3d3051;border-color:#554169;color:#d0bae9}
.modal-heading #menu-close,.modal-heading #filters-close,.modal-heading #modal-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;text-align:center;line-height:1}
.modal-heading #menu-close svg,.modal-heading #filters-close svg,.modal-heading #modal-close svg{display:block;width:20px;height:20px}

/* A miniatura permanece no layout enquanto o carregamento lazy acontece. */
.catalog-avatar,.book-cover{position:relative}
.catalog-avatar>img,.book-cover>img{position:absolute;inset:0;opacity:0}
.catalog-avatar.media-loaded>img,.book-cover.media-loaded>img{opacity:1}
.ranking-identity{display:flex;align-items:center;gap:13px;min-width:0}
.ranking-identity .ranking-book{flex:1;min-width:0}
.ranking-identity .book-cover{width:38px;height:53px}
@media(max-width:760px){.ranking-identity{gap:11px}.ranking-identity .book-cover{width:34px;height:47px}}
