/* Identidade compartilhada inspirada no Dasher. Apenas apresentação. */
:root{--bg:#f8fafb;--surface:#fff;--ink:#18242c;--muted:#61717c;--border:#e8edf0;--green:#087f64;--soft:#d8f8e5;--danger:#b4483b;--serif:'Segoe UI',Arial,sans-serif;--card-shadow:0 4px 18px #182b3805;--hero:linear-gradient(110deg,#fff0dd 0%,#e7f5df 55%,#cef9df 100%)}
body{font-size:14px;line-height:1.6}h1,h2,h3{font-family:'Segoe UI',Arial,sans-serif;color:var(--ink)}h1{font-size:30px;font-weight:650;letter-spacing:-.8px}h2{font-size:19px;font-weight:650;letter-spacing:-.35px}h3{font-weight:600}.eyebrow{font-size:10px;letter-spacing:1.3px;color:var(--muted)}
button,.portal-link{border-radius:8px;font-weight:500}button{min-height:38px}button:hover{border-color:#acbdb6}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:#076b54;border-color:#076b54}.text-button{min-height:0}.actions{flex-wrap:wrap}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #10a17c;outline-offset:3px}
.sidebar{width:248px;padding:25px 16px 18px;border-right:1px dashed var(--border);overflow-y:auto}.workspace{margin-left:248px}.brand{margin:0 8px 36px;gap:11px}.brand strong{font-size:24px;font-weight:700;letter-spacing:-.8px;color:var(--green)}.brand>span{font-size:9px;letter-spacing:1.5px}.monogram{width:39px;height:42px;border:0;border-radius:10px;background:var(--soft);font-size:29px;font-weight:750;color:var(--green)}.monogram:after{display:none}.switch-system{margin:-12px 12px 25px}.nav-caption{font-size:10px;font-weight:650;letter-spacing:1px}nav a{font-size:13px;border-radius:8px;padding:11px 12px;margin:5px 0;color:var(--muted)}nav a>span{font-size:19px}nav a.active{background:var(--soft);color:var(--green)}nav a:hover{background:var(--soft)}.nav-rule{margin:20px 12px;border-top:1px dashed var(--border);height:0}.profile{border-top-style:dashed}.avatar{font-family:inherit;font-weight:650;width:34px;height:34px;flex-shrink:0}.profile>span{overflow-wrap:anywhere;min-width:0}.topbar{height:70px;padding:0 32px;border-bottom:1px dashed var(--border);background:var(--surface)}.portal-controls{gap:16px}.portal-controls button{border-radius:8px}.slash{margin:0 12px}main{padding:28px 32px;max-width:1600px;min-height:calc(100vh - 129px)}footer{border-top-style:dashed;padding:17px 32px}
.page-heading{background:var(--hero);padding:26px 28px;border-radius:14px;margin-bottom:26px;min-height:138px}.page-heading h1{margin-top:7px}.page-heading p{color:#435750;font-size:13px}.page-heading .eyebrow{color:#456b5b}.page-heading>.actions{flex-shrink:0}.page-heading .primary{box-shadow:0 3px 7px #086f6414}
.stats{gap:20px;border:0;background:transparent;border-radius:0;margin-bottom:26px}.stat{border:1px solid var(--border)!important;background:var(--surface);border-radius:14px;box-shadow:var(--card-shadow);padding:23px 22px;min-width:0}.stat-label{font-size:12px;font-weight:500;display:flex;align-items:center;gap:9px}.stat-label:before{content:'';width:10px;height:10px;border:5px solid #d1f3e4;background:#07946d;border-radius:50%;box-sizing:content-box;flex-shrink:0}.stat:nth-child(2) .stat-label:before{background:#1877a3;border-color:#d9eff9}.stat:nth-child(3) .stat-label:before{background:#b47708;border-color:#fff0cb}.stat:nth-child(4) .stat-label:before{background:#7957b5;border-color:#eee5fb}.stat strong{font-size:31px;font-weight:650;letter-spacing:-.7px;margin:18px 0 6px;font-variant-numeric:tabular-nums}.stat strong.money-stat{font-size:clamp(21px,2vw,30px)}.stat small{line-height:1.6;display:block}.panel,.table-wrap,.book-card{border-radius:14px;border-color:var(--border);box-shadow:var(--card-shadow)}.panel-head{padding:20px 24px;border-bottom-color:var(--border)}.panel-body{padding:24px}.panel-head a{font-weight:500}.note-panel{background:var(--surface);padding:25px}.note-panel .eyebrow{color:var(--green)}.distribution progress{height:7px;border-radius:10px}progress::-webkit-progress-value{background:#12a479}progress::-moz-progress-bar{background:#12a479}.recent-row{padding:16px 24px}.recent-row h3{font-size:13px}.recent-row p{font-size:12px}
input,select,textarea{border-radius:8px;border-color:#dce4e8;min-height:43px;padding:10px 12px}input:focus,select:focus,textarea:focus{outline-color:#10a17c}.toolbar{gap:12px}.toolbar select{border-color:var(--border)}.search>span{top:9px}label{font-size:12px;font-weight:550}th{background:var(--bg);font-size:10px;letter-spacing:.7px;padding-top:14px;padding-bottom:14px}td{padding-top:17px;padding-bottom:17px}tbody tr:hover{background:var(--bg)}td .text-button{font-weight:600}td small{margin-top:4px}.badge{border-radius:6px;padding:4px 8px;font-size:10px;font-weight:550;color:#08714f;background:#ddf8eb}.badge.warning{background:#fff1cf;color:#835a05}.badge.danger{background:#ffe6e1;color:#a2392e}.category-card h2{margin-top:10px}.category-card,.reading-card{padding:24px}.reading-card progress{border-radius:8px}.cover-stage{background:#eff4f2}.book-meta{padding:17px}.book-meta h3{font-size:14px}.book-card:hover{border-color:#9bcab9;box-shadow:0 6px 22px #193b3110}.book-cover{font-family:Georgia,'Times New Roman',serif}.book-cover small{font-family:'Segoe UI',sans-serif}.category-picker,.category-tag{border-radius:8px}.category-picker summary{min-height:45px}.category-option{border-radius:6px}.view-toggle button.selected{background:var(--soft)}
dialog{border-radius:16px;box-shadow:0 24px 100px #102c3b30}.dialog-header{padding:22px 26px}.dialog-header h2{font-size:20px}.dialog-header button{border-radius:7px;min-width:32px;min-height:32px}dialog::backdrop{background:#10202e80;backdrop-filter:blur(3px)}.form-footer{gap:12px}.form-section h3{color:var(--muted)}#toast{background:#087f64;border-radius:10px;box-shadow:0 6px 25px #143c3129}.empty-mark{color:#8daf9e!important}.empty{padding:45px 26px}.error-box{border-radius:10px}.finance-totals strong,.finance-balance{font-family:'Segoe UI',sans-serif;font-size:27px;font-weight:650;letter-spacing:-.7px}.finance-history-row{padding:18px 0}.finance-history{font-size:15px}.finance-summary{gap:24px}.finance-summary h2{margin-top:12px}#finance-filters{padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:14px}#finance-period{margin-bottom:22px}
.portal-mode main{max-width:1160px;padding-top:42px}.lobby-intro{background:var(--hero);padding:32px;border-radius:16px;margin-bottom:28px}.lobby-intro h1{font-size:36px;font-weight:650}.lobby-intro p{font-size:14px;color:#435750}.lobby-intro .eyebrow{color:#456b5b}.system-card{border-radius:16px;box-shadow:var(--card-shadow);padding:30px 30px 0}.system-card h2{font-size:25px}.system-card:hover{border-color:#8dc8af;box-shadow:0 8px 28px #13372a0c}.system-icon{border:0;border-radius:14px;background:var(--soft);color:var(--green)}.system-card-footer{font-weight:600}.system-card-top{margin-bottom:24px}.system-card>p{line-height:1.75}.lobby-account{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px;margin-top:28px}.lobby-account h3{font-size:15px}.account-notice{border-radius:8px}.auth{background:linear-gradient(110deg,#f8fafb 52%,#def6e9);padding-top:42px}.auth-brand strong{font-family:'Segoe UI',sans-serif;font-weight:700;letter-spacing:1px;color:var(--green)}.auth-content h1{font-family:'Segoe UI',sans-serif;font-size:52px;line-height:1.15;font-weight:700;letter-spacing:-2px}.login-form{border-radius:16px;padding:34px;box-shadow:0 12px 45px #173b2e09}.login-form h2{font-weight:650;font-size:22px}.login-form button{border-radius:8px}.auth-foot{letter-spacing:1.4px}
body.dark{--bg:#141c23;--surface:#1e2831;--ink:#eef3f5;--muted:#acbac5;--border:#303c46;--green:#42d4a2;--soft:#103c32;--danger:#f2a396;--card-shadow:0 4px 18px #00000012;--hero:linear-gradient(110deg,#29332f,#16443c 65%,#105345)}body.dark .sidebar,body.dark .topbar{background:#171f27}body.dark nav a{color:var(--muted)}body.dark nav a.active{color:#74e5bc}body.dark .primary{background:#087f64;color:#fff;border-color:#15977a}body.dark .primary:hover{background:#096c57}body.dark .page-heading p,body.dark .lobby-intro p{color:#d4e5dd}body.dark .page-heading .eyebrow,body.dark .lobby-intro .eyebrow{color:#9dd2bd}body.dark input,body.dark select,body.dark textarea{border-color:var(--border)}body.dark .cover-stage{background:#24333a}body.dark .badge{background:#133d32;color:#9ce6c5}body.dark .badge.warning{background:#40351d;color:#f5d68a}body.dark .badge.danger{background:#472d2c;color:#ffb5a8}body.dark .auth{background:var(--bg)}body.dark .stat-label:before{border-color:#144b3a}body.dark .stat:nth-child(2) .stat-label:before{border-color:#173e55}body.dark .stat:nth-child(3) .stat-label:before{border-color:#493c20}body.dark .stat:nth-child(4) .stat-label:before{border-color:#382c53}
@media(max-width:1150px){.sidebar{width:220px;padding-left:12px;padding-right:12px}.workspace{margin-left:220px}main{padding:26px 24px}.topbar{padding:0 24px}.stats{gap:14px}.stat{padding:20px 16px}.page-heading{padding:24px}.page-heading>.actions{flex-shrink:1}}
@media(max-width:800px){.sidebar{width:248px}.workspace{margin-left:0}.stats{gap:16px}.page-heading{min-height:0}.page-heading h1{font-size:28px}.topbar{height:64px}.auth-content h1{font-size:42px}.login-form{padding:28px}.portal-mode main{padding-top:30px}.finance-summary{grid-template-columns:1fr}}
@media(max-width:540px){main{padding:22px 16px}.topbar{padding:0 16px}.portal-controls{gap:9px}.portal-controls button{padding:6px 9px}.page-heading{padding:22px 20px;border-radius:12px}.page-heading h1{font-size:27px}.page-heading .actions{margin-top:18px}.stats{gap:12px}.stat{padding:18px 14px;border-radius:12px}.stat-label{font-size:11px;gap:6px}.stat-label:before{width:7px;height:7px;border-width:4px}.stat strong{font-size:29px}.stat strong.money-stat{font-size:22px}.panel-head,.panel-body{padding:20px}.panel-head{flex-wrap:wrap}.lobby-intro{padding:25px 22px}.lobby-intro h1{font-size:30px}.portal-mode main{padding:26px 16px}.system-card{padding:25px 23px 0}.lobby-account{padding:22px}.auth-content h1{font-size:38px}.finance-totals{gap:22px}.finance-totals strong{font-size:25px}.category-grid,.reading-grid{gap:16px}#finance-filters{padding:16px}.dialog-header{padding:19px 20px}#modal-content{padding:20px}.book-meta{padding:12px}.book-meta h3{font-size:13px}.recent-row{padding:15px 18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
@media print{.page-heading,.lobby-intro{background:transparent;padding:0}.stat,.panel,.table-wrap{box-shadow:none}.stats{gap:10px}body.dark{--bg:#fff;--surface:#fff;--ink:#111;--muted:#555;--border:#ccc}.page-heading p{color:#444}}
.result-line>.actions{flex-wrap:nowrap}.result-line>.actions>select{width:auto;min-width:0}.view-toggle{flex-shrink:0}.sidebar>.brand,.sidebar>.switch-system,.sidebar>.nav-caption,.sidebar>nav,.sidebar>.sidebar-bottom{flex-shrink:0}
/* Lombadas da estante: contraste invertido conforme o tema. */
.shelf-books .spine{background:#000;color:#fff}
body.dark .shelf-books .spine{background:#fff;color:#000}
/* Destaque da lombada sem deslocar os livros vizinhos. */
.shelf-books .spine{position:relative;transition:transform .18s ease,box-shadow .18s ease}
@media(hover:hover){.shelf-books .spine:hover{transform:translateY(-8px);box-shadow:0 8px 12px #0003;z-index:1}}
.shelf-books .spine:focus-visible{transform:translateY(-8px);box-shadow:0 8px 12px #0003;z-index:1}
@media(prefers-reduced-motion:reduce){.shelf-books .spine:hover,.shelf-books .spine:focus-visible{transform:none}}
/* Zoom discreto das capas no catálogo, preservando o espaço dos cartões. */
.book-card .cover-stage{overflow:hidden}
.book-card .cover-stage .book-cover,.book-card .cover-stage .cover-image{transition:transform .22s ease;transform-origin:center}
@media(hover:hover){.book-card:hover .cover-stage .book-cover,.book-card:hover .cover-stage .cover-image{transform:scale(1.06)}}
.book-card:focus-visible .cover-stage .book-cover,.book-card:focus-visible .cover-stage .cover-image{transform:scale(1.06)}
@media(prefers-reduced-motion:reduce){.book-card:hover .cover-stage .book-cover,.book-card:hover .cover-stage .cover-image,.book-card:focus-visible .cover-stage .book-cover,.book-card:focus-visible .cover-stage .cover-image{transform:none}}
/* Créditos compartilhados e relatórios financeiros. */
footer{gap:12px;flex-wrap:wrap}.developer-credit{font-size:11px;color:var(--muted);letter-spacing:0;text-transform:none}.developer-credit a{font-weight:600;color:var(--green)}.developer-credit a:hover{text-decoration:underline}.auth-foot .developer-credit{margin-top:10px}.report-preview{margin-top:26px}.report-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.report-totals>div{padding:18px;background:var(--bg);border-radius:10px}.report-totals span{font-size:12px;color:var(--muted);display:block}.report-totals strong{display:block;font-size:24px;margin-top:8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}#report-basis{margin:22px 0 16px}#finance-report-form .actions{justify-content:flex-end}.report-preview .table-wrap{border-radius:0;border-left:0;border-right:0}@media(max-width:540px){.report-totals{grid-template-columns:1fr;gap:10px}footer .developer-credit{display:block}#finance-report-form .actions>button{flex:1}}

/* Identidade da conta: nomes longos e iniciais variáveis. */
.brand>span{min-width:0;flex:1}.brand strong{overflow-wrap:anywhere;font-size:clamp(17px,2vw,24px)}.monogram{flex-shrink:0}[data-user-name],#footer-brand,#section-label,.lobby-intro .eyebrow{overflow-wrap:anywhere}#footer-brand{min-width:0}footer{gap:14px;flex-wrap:wrap}
