*{box-sizing:border-box}body{margin:0;background:#f7f7f7;color:#232323;font:15px system-ui,sans-serif}main{max-width:1100px;margin:auto;padding:20px}header{padding:12px 0}h1{color:#606060;margin:0}small{font-size:13px}h2{font-size:20px}nav{display:flex;gap:7px;overflow:auto;padding:10px 0;position:sticky;top:0;background:#f7f7f7;z-index:2}button,input,select{font:inherit;padding:11px;border-radius:9px;border:1px solid #d4d4d4}button{background:#606060;color:white;border:0;cursor:pointer;white-space:nowrap}button.secondary{background:#e7e7e7;color:#232323}button:disabled{opacity:.5}section{background:white;border:1px solid #e7e7e7;border-radius:15px;padding:18px;margin:12px 0}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.metrics section{margin:0}.metrics strong{display:block;font-size:27px;margin-top:8px}label{display:grid;gap:5px;margin:8px 0}input,select{width:100%;background:white;color:inherit}input[type=checkbox]{width:auto}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row>*{flex:1}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:360px}th,td{padding:11px 8px;border-bottom:1px solid #e7e7e7;text-align:right;white-space:nowrap}th:first-child,td:first-child{text-align:left;white-space:normal;min-width:100px}.good{color:#15803d}.bad{color:#b91c1c}.blue{color:#606060}.muted{color:#727272}#clock{font-size:48px;font-variant-numeric:tabular-nums}#message{color:#4e4e4e}progress{width:100%}a{color:#606060}
.donutwrap{display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap;padding:12px}.donut{width:190px;height:190px;border-radius:50%;display:grid;place-items:center}.donut>div{width:150px;height:150px;border-radius:50%;background:white;display:grid;align-content:center;text-align:center}.donut strong{font-size:32px}.donut small{color:#727272}.barlabel{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.bartrack{height:10px;background:#e7e7e7;border-radius:8px;overflow:hidden;margin-top:5px}.barfill{height:100%;background:#16a34a}.barfill.bad{background:#ef4444}.barfill.amber{background:#eab308}.amber{color:#a16207}.trend{width:100%;max-height:300px}

.milestone progress{width:100%;height:18px;accent-color:#606060}.milestone-list{max-height:420px;overflow:auto}.milestone h3{font-size:16px}
:root{--navy:#292929;--accent:#606060;--line:#e8e8e8;--sub:#727272}body{background:#f7f7f7;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}main{max-width:1500px;padding:28px 36px}header{border-bottom:1px solid var(--line);padding:0 0 20px;position:relative}header h1{color:var(--navy);font-size:27px;letter-spacing:-1px}header h1 small{background:#eeeeee;color:#515151;padding:3px 8px;border-radius:20px;letter-spacing:0}header p{margin:3px 0;color:var(--sub);font-size:13px}#status{display:inline-block;font-size:12px;color:#515151;background:#eeeeee;padding:4px 10px;border-radius:20px}nav{gap:5px;background:#f7f7f7}nav button{font-weight:600;text-align:left;padding:12px 15px}nav button.secondary{background:transparent;color:#626262}nav button.secondary:hover{background:#ececec;color:var(--navy)}button{font-weight:600;transition:background .15s}button:hover:not(:disabled){filter:brightness(.95)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b2b2b2;outline-offset:2px}section{border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 3px 12px #29292907;margin:16px 0}h2,h3{color:var(--navy);letter-spacing:-.35px}h2{font-size:21px;margin:24px 0 12px}section h2,section h3{margin-top:0}.metrics{gap:14px}.metrics section{font-size:13px;color:var(--sub);border-top:3px solid #d4d4d4}.metrics section:nth-child(1){border-top-color:#16a34a}.metrics section:nth-child(2){border-top-color:#dc2626}.metrics section:nth-child(3){border-top-color:#606060}.metrics strong{font-size:clamp(23px,3vw,34px);letter-spacing:-1px;font-variant-numeric:tabular-nums}.welcome{background:linear-gradient(115deg,#292929,#474747);color:white;padding:25px 30px;border-radius:18px;margin:8px 0 22px}.welcome h2{color:white;font-size:clamp(22px,3vw,32px);margin:7px 0}.welcome small{color:#d0d0d0;letter-spacing:1.5px;font-size:11px;font-weight:700}.welcome p{margin:0;color:#e6e6e6}.milestone{background:linear-gradient(115deg,#292929,#3b3b3b);color:#fff;border:0}.milestone h2,.milestone h3{color:#fff}.milestone progress{accent-color:#eabf53}.milestone progress::-webkit-progress-bar{background:#ffffff25;border-radius:12px}.milestone progress::-webkit-progress-value{background:#eabf53;border-radius:12px}.milestone .good{color:#f8d77b}progress{accent-color:#606060;height:12px}th{background:#f5f5f5;color:#626262;font-size:12px;font-weight:700}td{font-size:14px}tbody tr:hover{background:#fafafa}input,select{border-color:#dfdfdf;padding:12px}#entry{max-width:760px}#entry button{min-width:180px}#entry label{margin:14px 0}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.home-grid section{margin:0}.monthchart{display:flex;gap:12px;justify-content:space-around;align-items:end;padding-top:12px}.monthchart>div{flex:1;min-width:0;text-align:center;font-size:11px}.monthcolumn{height:125px;background:#f4f4f4;border-radius:6px;display:flex;align-items:end;margin:5px 0}.monthcolumn i{display:block;width:100%;background:#606060;border-radius:6px}.attention{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.attention+button{margin-top:15px}.donut{box-shadow:0 0 0 6px #f7f7f7}.bartrack{height:12px}.scroll{border-radius:8px}#message:empty{display:none}
@media(min-width:900px){main{display:grid;grid-template-columns:220px minmax(0,1fr);column-gap:30px;align-items:start}header{grid-column:1/-1;margin-bottom:20px}#status{position:absolute;right:0;top:10px}nav{grid-column:1;grid-row:2/5;flex-direction:column;position:sticky;top:20px;padding:12px;background:white;border:1px solid var(--line);border-radius:16px;overflow:visible;box-shadow:0 3px 12px #29292907}#message,#view{grid-column:2;min-width:0}#view{grid-row:auto}nav button{width:100%}}
@media(max-width:899px){main{padding:16px}nav{margin:0 -16px;padding:10px 16px;box-shadow:0 3px 8px #29292908}section{padding:16px}.home-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.welcome{padding:20px}.row>*{min-width:0}.scroll{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
body.auth-screen{min-height:100vh;background:#f5f5f5}body.auth-screen main{display:block;max-width:480px;margin:0 auto;padding:28px 16px}body.auth-screen header,body.auth-screen nav{display:none}body.auth-screen #view,body.auth-screen #message{width:100%}body.auth-screen section{margin:0;background:white}body.auth-screen .login-card{text-align:center;padding:24px} .login-brand{background:linear-gradient(115deg,#292929,#474747);color:white;border-radius:14px;padding:24px 12px;margin-bottom:24px}.login-brand h2{color:white;margin:8px 0}.login-brand small{letter-spacing:1.5px;color:#d4d4d4}.login-brand p{color:#e7e7e7;font-size:13px}.login-card form{display:grid;gap:10px;text-align:left}.login-card form button{width:100%}.login-card form p{text-align:center;margin:6px 0}.login-card .show-password{display:flex;align-items:center;gap:8px;font-size:13px}.login-card .show-password input{width:auto}.login-card .forgot-link{background:transparent;color:#606060;text-align:right;padding:5px}.login-card label input:not([type=checkbox]){width:100%;box-sizing:border-box}
/* 3.7 — tema claro exclusivo da autenticação */
body.auth-screen{background:#eeeeee}body.auth-screen .login-card{background:transparent;border:0;box-shadow:none;padding:0}body.auth-screen .login-brand{background:transparent;color:#292929;padding:20px 12px;margin-bottom:12px}body.auth-screen .login-brand h2{color:#292929}body.auth-screen .login-brand small{color:#727272}body.auth-screen .login-brand p{color:#535353}body.auth-screen .login-brand img{border-radius:16px}body.auth-screen .login-card form{background:#fff;border:1px solid #e2e2e2;border-radius:18px;padding:24px;box-shadow:0 8px 28px #29292910}body.auth-screen .login-card input:not([type=checkbox]){background:#fafafa;border-color:#e2e2e2}body.auth-screen .login-card form button:not(.secondary){background:#292929}body.auth-screen .login-card form button.secondary:not(.forgot-link){background:#fff;border:1px solid #292929;color:#292929}body.auth-screen .login-card .forgot-link{background:transparent;color:#606060}
body.module-central{background:#eeeeee}body.module-central main{display:block;max-width:1100px}body.module-central nav{display:none}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.module-tile{text-align:left;background:white;color:#292929;border:1px solid #e2e2e2;padding:22px;border-radius:18px;white-space:normal}.module-tile:hover{background:#fafafa}.module-tile span{font-size:30px}.module-tile p{color:#727272}.module-tile b{font-size:13px}.item-card,.law-article{border-bottom:1px solid #e2e2e2;padding:16px 0}.item-card p,.law-article p{white-space:pre-wrap;overflow-wrap:anywhere}.law-layout{display:grid;grid-template-columns:minmax(150px,30%) minmax(0,1fr);gap:18px}.law-layout aside{position:sticky;top:10px;max-height:75vh;overflow:auto;background:#f4f4f4;padding:10px;border-radius:10px}.lawlink{display:block;padding:7px;color:#292929;font-size:13px}.lawlink[hidden]{display:none}.law-note{background:#f5f5f5;border-left:4px solid #606060;padding:12px;margin:10px 0;border-radius:6px}textarea{width:100%;box-sizing:border-box;border:1px solid #dfdfdf;border-radius:8px;padding:10px;font:inherit}.rating{display:flex;flex-wrap:wrap;gap:5px}@media(max-width:600px){.module-grid{grid-template-columns:1fr}.law-layout{display:block}.law-layout aside{position:static;max-height:220px}}
#lawtree details{padding-left:10px}#lawtree summary{cursor:pointer;font-weight:600;padding:7px 0}#lawtree .lawlink{display:block;text-align:left;width:100%;white-space:normal;margin:3px 0;font-size:.85rem}.law-note[data-category="Jurisprudência"]{background:#ececec;border-left:4px solid #555555}.law-note[data-category="Atenção"]{background:#fff7ed;border-left:4px solid #ea580c}.law-note[data-category="Memorização"]{background:#ecfdf5;border-left:4px solid #16a34a}.law-note[data-category="Pegadinha"]{background:#fef2f2;border-left:4px solid #dc2626}
/* 4.2 Premium Modular */
.module-tile{display:flex;flex-direction:column;gap:8px;align-items:flex-start;box-shadow:0 5px 20px #29292909}.module-tile span{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;color:var(--module-color);background:color-mix(in srgb,var(--module-color) 12%,white)}.module-tile h2,.module-tile p{margin:0}.module-tile small{color:#727272;margin-top:auto}.module-tile b{border-top:1px solid #e7e7e7;width:100%;padding-top:12px}.module-heading{background:#292929;color:white;padding:20px;border-radius:14px;margin-bottom:18px}.module-heading h2{color:white;margin:4px 0}.module-heading small{color:#d4d4d4;letter-spacing:1px}.mod-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:18px}.mod-metric{border:1px solid #e2e2e2;border-radius:12px;padding:14px;background:#fafafa}.mod-metric small{color:#727272}.mod-metric strong{display:block;font-size:27px;color:#292929}.module-form{background:#fafafa;border:1px solid #e2e2e2;border-radius:12px;padding:16px;margin:16px 0}.item-card{border:1px solid #e2e2e2;border-radius:12px;padding:16px;margin:12px 0;background:white}.item-card h3{margin:0 0 8px}.library-card small{display:block;color:#727272;margin-top:8px}.law-tools{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}.law-tools button{font-size:11px;padding:6px}.law-layout aside h3{margin:4px 0 10px}.law-note[data-category="Doutrina"]{background:#f4f4f4;border-color:#727272}.law-note button{font-size:12px;padding:6px 10px}.law-article{scroll-margin-top:16px}.law-reader{min-width:0}.module-shell{padding:16px}@media(max-width:600px){.module-shell{padding:10px}.mod-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.official-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}.official-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}.official-actions a{color:#575757;font-weight:600}.library-card[hidden]{display:none!important}
.law-block-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.law-block-head small{color:#727272}.law-edit-form textarea{width:100%;min-height:160px;resize:vertical;font:inherit;line-height:1.6}.law-personalized{background:#fff7ed;color:#9a3412;padding:10px;border-radius:8px}.law-edit-form{margin:12px 0}.law-block-head button{font-size:.8rem}

.library-section{margin-top:20px;padding:18px;border:1px solid #e2e2e2;border-radius:14px;background:#fff}.library-section h3 small{font-size:12px;color:#727272;font-weight:400;margin-left:8px}.library-section p{color:#727272}.library-section .library-card{margin:0}.library-section .official-grid{margin:14px 0}.library-section .library-card>button{margin-top:12px}.library-suggestions{background:#f4f4f4}.library-section details{margin-top:16px}.library-section summary{cursor:pointer;color:#292929;font-weight:600}
.law-note-image,.comment-previews img{display:block;max-width:100%;height:auto;border-radius:8px;margin:8px 0;object-fit:contain}.comment-previews figure{margin:8px 0;padding:8px;border:1px solid #d4d4d4;border-radius:8px}.law-comment-form input[type=file]{max-width:100%}.image-status{font-size:.85rem;color:#535353}
.rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:8px;background:#eeeeee;border-radius:8px 8px 0 0}.rich-toolbar button,.rich-toolbar select{width:auto;min-width:32px;padding:6px 9px;margin:0;background:white;color:#292929;border:1px solid #d4d4d4;border-radius:5px}.rich-toolbar label{display:flex;align-items:center;gap:4px;font-size:12px;margin:0}.rich-toolbar input[type=color]{width:30px;height:30px;padding:2px;margin:0}.rich-input{min-height:140px;padding:12px;background:white;border:1px solid #d4d4d4;border-radius:0 0 8px 8px;white-space:pre-wrap;overflow-wrap:anywhere;color:#292929}.rich-render{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.rich-toolbar button[data-cmd=bold]{font-weight:bold}.rich-toolbar button[data-cmd=italic]{font-style:italic}.rich-toolbar button[data-cmd=underline]{text-decoration:underline}.rich-toolbar button[data-cmd=strikeThrough]{text-decoration:line-through}

.law-inline-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:6px 0 2px}.law-inline-actions button{background:transparent;border:0;box-shadow:none;color:#727272;font-size:12px;font-weight:400;padding:5px 3px;margin:0;min-height:28px;line-height:1.4}.law-inline-actions button:hover,.law-inline-actions button:focus-visible{background:transparent;color:#292929;text-decoration:underline}.law-inline-actions button:focus-visible{outline:2px solid #727272;outline-offset:2px}

/* 4.12 — hierarquia legislativa */
.law-inline-actions button{background:#f1f1f1;color:#535353;border-radius:5px;padding:4px 8px;font-size:11px;min-height:24px}.law-inline-actions button:hover,.law-inline-actions button:focus-visible{background:#e2e2e2;text-decoration:none}.law-inline-actions{margin:0 0 8px;gap:6px}
.law-reader .law-kind-parte,#lawtree .law-kind-parte{background:#292929;color:#ffffff;font-weight:700;border-radius:6px;padding:10px;white-space:pre-wrap} .law-reader .law-kind-parte{font-size:20px;text-align:center} #lawtree .law-kind-parte{font-size:14px}
.law-reader .law-kind-livro,#lawtree .law-kind-livro{background:#f1f1f1;color:#505050;font-weight:700;border-radius:6px;padding:10px;white-space:pre-wrap} .law-reader .law-kind-livro{font-size:20px;text-align:center} #lawtree .law-kind-livro{font-size:14px}
.law-reader .law-kind-titulo,#lawtree .law-kind-titulo{background:#e8e8e8;color:#414141;font-weight:700;border-radius:6px;padding:10px;white-space:pre-wrap} .law-reader .law-kind-titulo{font-size:20px;text-align:center} #lawtree .law-kind-titulo{font-size:14px}
.law-reader .law-kind-subtitulo,#lawtree .law-kind-subtitulo{background:#e7e7e7;color:#454545;font-weight:700;border-radius:6px;padding:10px;white-space:pre-wrap} .law-reader .law-kind-subtitulo{font-size:17px;text-align:center} #lawtree .law-kind-subtitulo{font-size:14px}
.law-reader .law-kind-capitulo,#lawtree .law-kind-capitulo{background:#ebebeb;color:#434343;font-weight:700;border-radius:6px;padding:10px;white-space:pre-wrap} .law-reader .law-kind-capitulo{font-size:17px;text-align:center} #lawtree .law-kind-capitulo{font-size:14px}
.law-reader .law-kind-secao,#lawtree .law-kind-secao{background:#dcfce7;color:#166534;font-weight:700;border-radius:6px;padding:10px;white-space:pre-wrap} .law-reader .law-kind-secao{font-size:17px;text-align:center} #lawtree .law-kind-secao{font-size:14px}
.law-reader .law-kind-subsecao,#lawtree .law-kind-subsecao{background:#ffedd5;color:#9a3412;font-weight:700;border-radius:6px;padding:10px;white-space:pre-wrap} .law-reader .law-kind-subsecao{font-size:17px;text-align:center} #lawtree .law-kind-subsecao{font-size:14px}
.jur-tabs,.jur-filters,.jur-months,.jur-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;align-items:end}.jur-filters label{flex:1;min-width:110px}.jur-months button,.jur-actions button{font-size:12px;padding:5px 9px}.jur-active{background:#e8e8e8!important}.jur-layout{display:grid;grid-template-columns:minmax(150px,25%) 1fr;gap:12px;margin-top:12px}.jur-layout aside{align-self:start}.jur-layout aside button{display:block;width:100%;text-align:left;font-size:12px;margin:4px 0}.jur-discipline{background:#e8e8e8;color:#414141;padding:10px;border-radius:6px}.jur-note{background:#ecfdf5;padding:12px;margin:12px 0;border-radius:6px}.jpreview img{max-width:100%}@media(max-width:650px){.jur-layout{grid-template-columns:1fr}}

/* 4.15 — navegação compacta, sem reduzir o texto de leitura */
body.module-central main{max-width:1200px;padding-top:18px}body.module-central header{padding-bottom:12px;margin-bottom:12px}body.module-central .welcome{padding:14px 18px;margin:8px 0 12px;border-radius:12px}body.module-central .welcome h2{font-size:22px;margin:0 0 2px}body.module-central .welcome p{font-size:13px}
.module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 16px}.module-tile{display:grid;grid-template-columns:36px minmax(0,1fr) 12px;align-items:center;gap:10px;padding:12px;border-radius:10px;min-height:84px;box-shadow:0 2px 6px #29292907}.module-tile span{width:36px;height:36px;font-size:21px;border-radius:8px}.tile-copy{min-width:0}.module-tile h2{font-size:14px;line-height:1.25;letter-spacing:0;overflow-wrap:anywhere}.module-tile p{font-size:11px;line-height:1.35;font-weight:400;margin:3px 0}.module-tile small{display:block;font-size:11px;line-height:1.3;font-weight:500;margin:0}.module-tile b{width:auto;border:0;padding:0;font-size:22px;color:#727272}.module-tile:hover{border-color:#b2b2b2;background:#fafafa}
.module-shell{padding:12px;margin:8px 0}.module-heading{padding:10px 14px;border-radius:9px;margin-bottom:10px}.module-heading small{font-size:10px}.module-heading h2{font-size:19px;margin:0}.mod-stats{gap:8px;margin-bottom:12px}.mod-metric{padding:8px 11px;border-radius:8px}.mod-metric strong{font-size:21px}.mod-metric small{font-size:12px}.module-form{padding:12px;margin:10px 0}.module-shell .item-card{padding:12px;margin:8px 0}.jur-tabs,.jur-filters,.jur-months,.jur-actions{gap:5px;margin:8px 0}.jur-tabs button,.jur-months button,.jur-actions button{padding:7px 10px;font-size:12px;min-height:34px}.jur-filters label{margin:3px 0;font-size:12px}.jur-filters input,.jur-filters select{padding:7px 9px;font-size:13px}.jur-discipline{padding:7px 10px}.jur-layout{gap:10px;margin-top:8px}
@media(max-width:1000px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.module-grid{grid-template-columns:1fr;gap:7px}.module-tile{min-height:70px;padding:9px 12px}.module-shell{padding:8px}.module-heading{padding:9px 12px}}
.jur-summary,.jur-explanation{margin:12px 0;padding:10px 12px;border-radius:6px;border:1px solid #e2e2e2}.jur-summary{background:#f5f5f5}.jur-explanation{background:#fff}.jur-summary h4,.jur-explanation h4,#jsummary h4,#jexplanation h4{margin:0 0 8px;color:#292929;font-size:14px}.jur-outline-discipline{margin:5px 0 5px 12px}.jur-outline-discipline summary{color:#535353;font-size:13px}#jsummary,#jexplanation{margin:10px 0}
.share-panel{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;background:#eeeeee;border-radius:9px;margin:12px 0}.share-panel>div{flex:1;min-width:180px}.share-panel small{display:block;color:#535353}.share-panel label{margin:0}.share-dialog{width:min(95vw,560px);max-height:92vh;overflow:auto;border:1px solid #d4d4d4;border-radius:12px;padding:16px;color:#292929}.share-dialog::backdrop{background:#14141499}.share-dialog canvas{display:block;max-width:100%;max-height:58vh;width:auto;height:auto;margin:12px auto}.share-dialog .row{flex-wrap:wrap}

.share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.share-options label{margin:0}.share-options select{width:100%}@media(max-width:380px){.share-options{grid-template-columns:1fr}}

.share-instagram{background:linear-gradient(120deg,#525252,#c13584,#b94723);color:white}.share-whatsapp{background:#087f48;color:white}.share-dialog .row{flex-wrap:wrap}

.qr-card{padding:12px;margin:8px 0}.qr-card small{display:block;color:#727272}.qr-me{background:#e8e8e8}.qr-card p:empty{display:none}

.share-panel label[hidden]{display:none!important}
.flash-actions,.flash-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.flash-filters>*{flex:1;min-width:180px}.flash-list h3{margin:6px 0}.flash-list>div{margin-top:8px}.flash-review{background:#eeeeee;color:#292929;border:1px solid #d4d4d4;border-radius:16px;padding:24px;margin:14px 0;min-height:220px;text-align:center;overflow-wrap:anywhere}.flash-review .rich-render{font-size:19px;margin:20px 0}.flash-ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.flash-ratings button:nth-child(1){background:#b91c1c}.flash-ratings button:nth-child(2){background:#b45309}.flash-ratings button:nth-child(3){background:#15803d}.flash-ratings button:nth-child(4){background:#4e4e4e}.flash-ratings button{padding:10px 4px}#modulebody progress{width:100%;accent-color:#292929}


/* 4.28 — identidade editorial, superfícies planas */
:root{--navy:#292929;--accent:#515151;--line:#e0e0e0;--sub:#646464}
body,body.module-central,body.auth-screen{background:#f6f6f6;color:#282828;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}
main{padding-top:22px}header{background:transparent;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:0 0 14px}header h1{font-size:28px;letter-spacing:-1.2px;color:var(--navy)}header h1 small{background:transparent;color:#747474;font-size:11px;font-weight:400;padding:0 5px}header p{color:var(--sub)}#status{background:transparent;color:#646464;border-radius:0;padding:4px 0}
button,input,select,textarea{border-radius:5px}button{background:var(--navy);font-weight:600;box-shadow:none}button.secondary{background:#f1f1f1;color:#404040}button.secondary:hover{background:#e7e7e7}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #838383;outline-offset:2px}
section,.module-shell,.module-form,.item-card,.library-section,.mod-metric,.share-panel,.flash-review,.share-dialog{border-radius:6px;box-shadow:none;border-color:var(--line)}section{padding:18px;margin:12px 0}h2,h3{letter-spacing:-.25px}h2{font-size:20px}th{background:#f2f2f2;color:#515151;font-size:12px}th,td{padding:9px 10px;border-color:#e8e8e8}tbody tr:hover{background:#f8f8f8}.scroll{border-radius:0}
.welcome,body.module-central .welcome{background:transparent;color:var(--navy);border-radius:0;border:0;border-bottom:1px solid var(--line);padding:12px 0 16px;margin:8px 0 16px;box-shadow:none}.welcome h2,.welcome p,.welcome small{color:inherit}.welcome small{color:var(--sub);letter-spacing:.5px}.welcome p{color:var(--sub)}
.metrics{gap:10px}.metrics section{background:#fff;border-top:1px solid var(--line);padding:15px}.metrics section:nth-child(-n+3){border-top-color:var(--line)}.metrics strong{letter-spacing:-.7px}.metrics section:nth-child(4) strong{color:var(--navy)}.milestone{background:var(--navy);border-radius:6px;box-shadow:none}
.module-grid{gap:0;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);background:white;border-radius:6px;overflow:hidden}.module-tile{background:white;border:0;border-bottom:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;box-shadow:none;min-height:86px;padding:14px 16px;grid-template-columns:30px minmax(0,1fr) 12px;gap:12px}.module-tile:nth-child(2n){border-right:0}.module-tile:nth-last-child(-n+2){border-bottom:0}.module-tile span{background:transparent;color:var(--navy);width:30px;height:30px;border-radius:0;font-size:19px;filter:grayscale(1)}.module-tile h2{font-size:15px;font-weight:600}.module-tile p,.module-tile small{color:var(--sub);font-size:12px}.module-tile b{color:#808080;font-size:18px}.module-tile:hover{background:#f6f6f6}
.module-heading{background:transparent;color:var(--navy);border-radius:0;border-bottom:1px solid var(--line);padding:8px 0 14px;box-shadow:none}.module-heading h2{color:var(--navy)}.module-heading small{color:var(--sub);letter-spacing:.4px}.mod-metric{background:white;padding:12px}.module-form,.share-panel{background:#f8f8f8}.flash-review{background:white;border:1px solid var(--line);padding:24px}.donut{box-shadow:none}.bartrack,.monthcolumn,.monthcolumn i{border-radius:3px}
body.auth-screen .login-brand{background:transparent;color:var(--navy);box-shadow:none;border-radius:0}body.auth-screen .login-brand h2{color:var(--navy)}body.auth-screen .login-brand p,body.auth-screen .login-brand small{color:var(--sub)}body.auth-screen .login-card form{border-radius:6px;border-color:var(--line);box-shadow:none}body.auth-screen .login-card form button:not(.secondary){background:var(--navy)}
@media(min-width:900px){main{grid-template-columns:210px minmax(0,1fr);column-gap:24px}nav{background:transparent;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;padding:4px 12px 4px 0}nav button{font-size:13px;padding:10px 12px}nav button.secondary{color:#515151}nav button.secondary:hover{background:#ededed}nav button:not(.secondary){background:#e7e7e7;color:var(--navy);box-shadow:inset 3px 0 var(--navy)}}
@media(max-width:899px){nav{background:#f6f6f6;box-shadow:none;border-bottom:1px solid var(--line)}section{padding:14px}}
@media(max-width:600px){.module-grid{grid-template-columns:1fr}.module-tile,.module-tile:nth-child(2n),.module-tile:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--line);min-height:72px}.module-tile:last-child{border-bottom:0}}
.history-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;align-items:end;margin:12px 0}.history-filters label{min-width:0;margin:0}.history-filters input,.history-filters select{width:100%;min-width:0}.history-pages{align-items:center;justify-content:center;margin-top:12px}

/* 4.33 — contraste funcional, sem excesso decorativo */
:root{--navy:#323232;--accent:#575757;--line:#d6d6d6;--sub:#626262}
body,body.module-central{background:#efefef;color:#313131}header{background:#323232;border:1px solid #323232;border-radius:8px;padding:16px 20px;box-shadow:0 3px 8px #32323212}header h1,header p{color:#fff}header h1 small,#status{color:#ececec;background:#ffffff18;border-radius:4px;padding:4px 8px}#status{right:16px;top:16px}
section,.module-shell,.item-card,.library-section,.share-dialog{background:#fff;border:1px solid #cbcbcb;border-radius:8px;box-shadow:0 2px 5px #3232320b}section>h2,.module-shell>h2{background:#ececec;border-bottom:1px solid #d6d6d6;border-left:4px solid #575757;padding:10px 12px;border-radius:4px;margin:0 0 16px;color:#323232}section>h3{color:#323232;border-bottom:1px solid #dfdfdf;padding-bottom:8px}
label{font-weight:600;color:#4b4b4b;font-size:13px}input:not([type=checkbox]):not([type=radio]),select,textarea{background:#f8f8f8;border:1px solid #bbbbbb;color:#313131;border-radius:6px}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{background:#fff;border-color:#575757;outline:2px solid #d0d0d0;outline-offset:1px}button{background:#575757;border-radius:6px}button.secondary{background:#ececec;color:#414141;border:1px solid #d0d0d0}button.secondary:hover{background:#e1e1e1}button:disabled{cursor:not-allowed}
#entry{max-width:850px;background:#f4f4f4;border:1px solid #d1d1d1;border-radius:8px;padding:16px}#entry label.good{color:#17613e}#entry #c{background:#edf9f1;border-color:#80b99a;color:#17613e}#entry #totalQuestions{background:#f1f1f1;border-color:#a9a9a9;color:#474747}#entry p.bad{background:#fff0f0;border:1px solid #edc3c3;border-left:4px solid #b91c1c;padding:10px 12px;border-radius:5px}#entry button{background:#575757}#entry button.secondary{background:#ececec;color:#414141}
.history-filters,.module-form,.share-panel,.flash-filters,.jur-filters{background:#f2f2f2;border:1px solid #d3d3d3;border-radius:7px;padding:12px}.scroll{border:1px solid #d6d6d6;border-radius:6px}th{background:#e7e7e7;color:#323232}td{border-color:#e4e4e4}tbody tr:nth-child(even){background:#f8f8f8}tbody tr:hover{background:#f0f0f0}
.metrics section:nth-child(1){background:#edf8f1;border:1px solid #a7d0b6;border-top:4px solid #25834e}.metrics section:nth-child(2){background:#fff1f1;border:1px solid #e9b8b8;border-top:4px solid #c43c3c}.metrics section:nth-child(3){background:#f3f3f3;border:1px solid #c2c2c2;border-top:4px solid #575757}.metrics section:nth-child(4){background:#f0f0f0;border:1px solid #c1c1c1;border-top:4px solid #5d5d5d}.mod-metric{background:#f2f2f2;border:1px solid #d1d1d1;border-top:3px solid #575757}
body.module-central .welcome,.welcome{background:#e7e7e7;border:1px solid #cacaca;border-left:4px solid #575757;border-radius:7px;padding:14px 18px;color:#323232}.module-grid{gap:10px;border:0;background:transparent;overflow:visible}.module-tile,.module-tile:nth-child(2n),.module-tile:nth-last-child(-n+2){background:#fff;border:1px solid #cacaca;border-radius:7px;border-left:4px solid #575757}.module-tile span{background:#ebebeb;border-radius:5px;filter:none}.module-tile:hover{background:#f1f1f1;border-color:#a0a0a0}.module-heading{background:#e7e7e7;border:1px solid #cacaca;border-left:4px solid #575757;border-radius:6px;padding:12px 14px}.flash-review{background:#f2f2f2;border:1px solid #bebebe;border-radius:8px}.rich-editor,.rich-render{overflow-wrap:anywhere}.share-dialog::backdrop{background:#2929297d}
body.auth-screen{background:#eaeaea}body.auth-screen .login-brand{background:#323232;border-radius:8px;color:#fff}body.auth-screen .login-brand h2,body.auth-screen .login-brand p,body.auth-screen .login-brand small{color:#fff}body.auth-screen .login-card form{border:1px solid #cacaca;border-radius:8px;box-shadow:0 3px 10px #32323212}
@media(min-width:900px){nav{background:#e6e6e6;border:1px solid #cdcdcd;border-radius:7px;padding:9px}nav button.secondary{background:transparent;border:0;color:#454545}nav button:not(.secondary){background:#575757;color:white;box-shadow:none}nav button.secondary:hover{background:#dadada}}
@media(max-width:899px){nav{background:#e6e6e6;border-bottom:1px solid #cdcdcd}nav button.secondary{border:0}header{padding:12px 14px}#entry{padding:12px}}

.image-size-control{display:block;max-width:420px;margin:8px 0;color:#323232;font-weight:600}.image-size-control input[type=range]{display:block;width:100%;accent-color:#575757;padding:0;min-height:24px}.image-size-control output{color:#575757}

.law-explain-row{display:flex;justify-content:flex-end;margin:6px 0 10px}.law-explain-row .law-explain{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:500;color:#727272;text-decoration:none;background:none;border:0;padding:4px 2px;line-height:1.5}.law-explain-row .law-explain:hover,.law-explain-row .law-explain:focus-visible{color:#575757;text-decoration:underline}.law-explain svg{flex:none}

/* 4.38 — grafite, cinza e branco */
:root{--navy:#303236;--accent:#45484d;--line:#d0d2d5;--sub:#62656a}
body,body.module-central,body.auth-screen{background:#eceeef;color:#292b2e}header{background:#303236;border-color:#303236;box-shadow:0 2px 5px #00000012}header h1,header p{color:#fff}header h1 small,#status{color:#f1f1f1;background:#ffffff18}
section,.module-shell,.item-card,.library-section,.share-dialog{background:#fff;border-color:#c8cace;box-shadow:0 2px 5px #0000000b}section>h2,.module-shell>h2{background:#e4e5e7;border-color:#c9cbce;border-left-color:#45484d;color:#303236}section>h3{color:#303236;border-color:#d4d6d8}
label{color:#45484d}input:not([type=checkbox]):not([type=radio]),select,textarea{background:#f6f6f7;border-color:#b9bcc1;color:#292b2e}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{background:#fff;border-color:#45484d;outline:2px solid #c5c7ca}button,#entry button{background:#45484d}button.secondary,#entry button.secondary{background:#e4e5e7;color:#303236;border-color:#c8cace}button.secondary:hover{background:#d5d7da}
#entry,.history-filters,.module-form,.share-panel,.flash-filters,.jur-filters{background:#f0f1f2;border-color:#c8cace}#entry #totalQuestions{background:#fff;border-color:#9da0a5;color:#303236}#entry #c{background:#fff;border-color:#9da0a5;color:#17613e}th{background:#dedfe1;color:#303236}td{border-color:#dedfe1}tbody tr:nth-child(even){background:#f5f5f6}tbody tr:hover{background:#e9eaec}.scroll{border-color:#c8cace}
.metrics section:nth-child(n){background:#fff;border:1px solid #c8cace;border-top:4px solid #55585d}.metrics section:nth-child(1) strong{color:#17613e}.metrics section:nth-child(2) strong{color:#b91c1c}.metrics section:nth-child(3) strong,.metrics section:nth-child(4) strong{color:#303236}.mod-metric{background:#f5f5f6;border-color:#c8cace;border-top-color:#55585d}
body.module-central .welcome,.welcome,.module-heading{background:#e0e1e3;border-color:#c8cace;border-left-color:#45484d;color:#303236}.module-tile,.module-tile:nth-child(2n),.module-tile:nth-last-child(-n+2){background:#fff;border-color:#c8cace;border-left-color:#55585d}.module-tile span{background:#e5e6e8;filter:grayscale(1)}.module-tile:hover{background:#f0f1f2;border-color:#92959a}.flash-review{background:#f4f4f5;border-color:#c8cace}.milestone{background:#303236}.law-layout aside{background:#f0f1f2}.law-explain-row .law-explain{color:#62656a}.law-explain-row .law-explain:hover{color:#303236}body.auth-screen .login-brand{background:#303236}body.auth-screen .login-card form{border-color:#c8cace}body.auth-screen .login-card form button:not(.secondary){background:#45484d}
@media(min-width:900px){nav{background:#303236;border-color:#303236}nav button.secondary{color:#f1f1f1;background:transparent}nav button.secondary:hover{background:#484b50;color:#fff}nav button:not(.secondary){background:#fff;color:#303236;box-shadow:none}}
@media(max-width:899px){nav{background:#303236;border-color:#303236}nav button.secondary{color:#f1f1f1;background:transparent}nav button.secondary:hover{background:#484b50;color:#fff}nav button:not(.secondary){background:#fff;color:#303236}}
/* 4.39 — identidade e temas */
:root{--navy:#242629;--accent:#3f4247;--line:#d1d5db;--sub:#62656a}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body,body.module-central,body.auth-screen{background:#f0f1f3;color:#171717}header,nav,body.auth-screen .login-brand{background:#242629;border-color:#242629}section,.module-shell,.item-card,.library-section{border-color:#d1d5db;box-shadow:0 2px 7px #2426290d}button,#entry button{background:#242629}nav button:not(.secondary){background:#3f4247;color:white;border-left:3px solid white}th{background:#3f4247;color:white}input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#a9adb3}.metrics strong{font-size:clamp(24px,3vw,34px)}.metrics small{font-size:12px}
html[data-theme=claro] header,html[data-theme=claro] nav{background:white;border-color:#d1d5db}html[data-theme=claro] header h1,html[data-theme=claro] header p,html[data-theme=claro] header h1 small,html[data-theme=claro] #status,html[data-theme=claro] nav button.secondary{color:#242629}html[data-theme=claro] nav button.secondary:hover{background:#e5e7eb}html[data-theme=claro] nav button:not(.secondary){background:#e5e7eb;color:#242629;border-left-color:#242629}html[data-theme=claro] th{background:#e5e7eb;color:#242629}
html[data-theme=escuro]{color-scheme:dark;--navy:#e4e4e7;--accent:#a1a1aa;--line:#48484e;--sub:#b4b4bd}html[data-theme=escuro] body{background:#111113;color:#f4f4f5}html[data-theme=escuro] :is(section,.module-shell,.item-card,.library-section,.share-dialog,dialog,.module-tile,.metrics section:nth-child(n),.donut>div,.rich-editor,.rich-render,.login-card form){background:#262629;color:#f4f4f5;border-color:#48484e}html[data-theme=escuro] :is(#entry,.history-filters,.module-form,.share-panel,.flash-filters,.jur-filters,.flash-review,.mod-metric,.welcome,.module-heading,.law-layout aside,section>h2,.module-shell>h2){background:#303033;color:#f4f4f5;border-color:#52525b}html[data-theme=escuro] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,#entry #totalQuestions,#entry #c){background:#18181b;color:#f4f4f5;border-color:#71717a}html[data-theme=escuro] :is(label,h2,h3,.muted,.blue,.law-explain-row .law-explain,.image-size-control,.image-size-control output,#message){color:#d4d4d8}html[data-theme=escuro] :is(th,button.secondary,#entry button.secondary){background:#3f3f46;color:#fafafa;border-color:#52525b}html[data-theme=escuro] td{border-color:#48484e}html[data-theme=escuro] tbody tr:nth-child(even){background:#303033}html[data-theme=escuro] tbody tr:hover{background:#3f3f46}html[data-theme=escuro] .metrics section:nth-child(n) strong{color:#fafafa}html[data-theme=escuro] :is(.good,.metrics section:nth-child(1) strong,#entry #c){color:#86efac}html[data-theme=escuro] :is(.bad,.metrics section:nth-child(2) strong){color:#fca5a5}html[data-theme=escuro] #entry p.bad{background:#402629;color:#fca5a5;border-color:#85454b}html[data-theme=escuro] a{color:#d4d4d8}html[data-theme=escuro] .law-layout [class*="law-kind-"]:not(.law-kind-article){color:#171717}html[data-theme=escuro] .law-layout .law-kind-parte{color:white}
/* 4.40 — Deep Blue */
html[data-theme=azul]{--navy:#092650;--accent:#0756c8;--line:#bdcfe8;--sub:#526d92}
html[data-theme=azul] body{background:#e8eff9;color:#10284b}html[data-theme=azul] header,html[data-theme=azul] nav{background:linear-gradient(120deg,#07366c,#041a39);border-color:#234e80}html[data-theme=azul] nav button:not(.secondary){background:#1454a0;color:white;border-left-color:#7bd6f6}html[data-theme=azul] nav button.secondary:hover{background:#164679}html[data-theme=azul] :is(section,.module-shell,.item-card,.library-section,.share-dialog){background:#fff;border-color:#b9cde7;box-shadow:0 3px 12px #0a326315}html[data-theme=azul] :is(section>h2,.module-shell>h2,.welcome,.module-heading){background:#e3edfc;color:#092650;border-color:#b9cde7;border-left-color:#0756e9}html[data-theme=azul] :is(label,h3){color:#10284b}html[data-theme=azul] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#eaf2ff;border-color:#a9c6ed;color:#10284b}html[data-theme=azul] :is(button,#entry button){background:#07366c}html[data-theme=azul] :is(button.secondary,#entry button.secondary){background:#e8f0fc;color:#123b70;border-color:#adc6e7}html[data-theme=azul] :is(#entry,.history-filters,.module-form,.share-panel,.flash-filters,.jur-filters,.flash-review,.law-layout aside){background:#eef4fd;border-color:#b9cde7}html[data-theme=azul] th{background:#103d74;color:white}html[data-theme=azul] tbody tr:nth-child(even){background:#f0f5fc}html[data-theme=azul] tbody tr:hover{background:#e1edfc}html[data-theme=azul] .metrics section:nth-child(n){border-top-color:#1454a0}html[data-theme=azul] .metrics section:nth-child(3) strong,html[data-theme=azul] .metrics section:nth-child(4) strong{color:#103d74}html[data-theme=azul] .module-tile{border-left-color:#1454a0}html[data-theme=azul] .module-tile span{background:#e3edfc;filter:none}html[data-theme=azul] .module-tile:hover{background:#eef4fd}html[data-theme=azul] a{color:#0756c8}
body.auth-screen{background:#061a34 url('study-background.png') center center/cover no-repeat fixed;color:#10284b;min-height:100vh;min-height:100dvh}body.auth-screen main{max-width:630px;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:24px 18px}body.auth-screen .login-card{overflow:hidden;background:#f2f6ff;color:#10284b;border:1px solid #b5c7e1;border-radius:24px;box-shadow:0 20px 55px #0009;padding:0 30px 18px}body.auth-screen .login-brand{margin:0 -30px 16px;padding:30px 15px 42px;background:radial-gradient(ellipse at 0 110%,#0753a7 0,transparent 55%),linear-gradient(150deg,#07366c,#03142e 65%,#07366c);border-radius:0;color:white}body.auth-screen .login-brand h2{font-size:clamp(32px,5vw,48px);letter-spacing:-1.5px;margin:0;color:white;display:flex;align-items:center;justify-content:center;gap:12px}body.auth-screen .login-brand p{font-size:clamp(13px,2.5vw,19px);color:white;margin:10px 0 0}.brand-bars{display:inline-flex;gap:4px;align-items:flex-end;height:38px}.brand-bars i{display:block;width:10px;background:#65d1f2;border-radius:2px;height:15px}.brand-bars i:nth-child(2){height:25px}.brand-bars i:nth-child(3){height:38px}body.auth-screen .login-card>h2{border-left:5px solid #064cff;border-bottom:1px solid #c9d8ed;padding:9px;margin:0 0 12px;font-size:26px;color:#10284b}body.auth-screen .login-card .muted{color:#526d92}body.auth-screen .login-card form{background:transparent;border:0;box-shadow:none;padding:8px 0;text-align:left}body.auth-screen .login-card form label{color:#10284b}body.auth-screen .login-card input:not([type=checkbox]){background:#dfeafa;color:#10284b;border:1px solid #b4cdf1;border-radius:9px;padding:13px}body.auth-screen .login-card form button:not(.secondary){background:linear-gradient(#084481,#04234b);color:white;border-radius:10px;box-shadow:0 4px 9px #09265025}body.auth-screen .login-card form button.secondary:not(.forgot-link){background:transparent;border:1px solid #10284b;color:#10284b;border-radius:10px}body.auth-screen .login-card .forgot-link{color:#064cff;background:transparent}body.auth-screen #message{color:white;text-shadow:0 1px 4px #000}body.auth-screen .login-card form button{width:100%}body.auth-screen .login-card form .forgot-link{text-align:right}body.auth-screen .login-card form p{text-align:center} @media(max-width:600px){body.auth-screen main{padding:16px}body.auth-screen .login-card{padding:0 20px 14px;border-radius:18px}body.auth-screen .login-brand{margin:0 -20px 12px;padding:24px 12px 30px}}
/* 4.41 — composição fiel à referência */
html body.auth-screen{background:#061a34 url('study-background.png') center/cover no-repeat fixed;color:#10284b;color-scheme:light;font-family:Arial,sans-serif}
html body.auth-screen main{width:min(50.6vw,45vh);max-width:none;padding:0;min-height:100vh;justify-content:center;transform:translateY(-2.3vh)}
html body.auth-screen #message:empty{display:none}
html body.auth-screen .login-card{--u:min(.0868vw,.07716vh);padding:0 calc(35 * var(--u)) calc(25 * var(--u));border-radius:calc(30 * var(--u));background:#f0f4fc;color:#10284b;border:1px solid #b5c7e1;box-shadow:0 12px 28px #0008;font-size:calc(20 * var(--u));line-height:1.35}
html body.auth-screen .login-brand{margin:0 calc(-35 * var(--u)) calc(18 * var(--u));height:calc(200 * var(--u));padding:0;background:url('login-brand.webp') center/cover no-repeat;border:0;position:relative}
html body.auth-screen .login-brand h2,html body.auth-screen .login-brand p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body.auth-screen .login-card>h2{font-size:calc(32 * var(--u));padding:calc(6 * var(--u)) 0 calc(14 * var(--u));margin:0 0 calc(16 * var(--u));border-left:calc(6 * var(--u)) solid #064cff;border-bottom:1px solid #c9d8ed;color:#10284b;background:transparent}
html body.auth-screen .login-card>p{margin:0 0 calc(26 * var(--u));color:#10284b;font-size:inherit}
html body.auth-screen .login-card>p:last-child{margin:calc(25 * var(--u)) 0 0;color:#6c86ad;font-weight:600}
html body.auth-screen .login-card form{display:block;padding:0;margin:0;background:transparent;border:0;box-shadow:none}
html body.auth-screen .login-card form label{display:block;font-size:calc(20 * var(--u));font-weight:600;margin:0 0 calc(20 * var(--u));color:#10284b}
html body.auth-screen .login-card input:not([type=checkbox]){display:block;width:100%;height:calc(55 * var(--u));min-height:0;margin:calc(4 * var(--u)) 0 0;padding:0 calc(17 * var(--u));font-size:inherit;background:#dfeafa;border:1px solid #b4cdf1;border-radius:calc(11 * var(--u));color:#10284b}
html body.auth-screen .login-card form .show-password{display:flex;align-items:center;gap:calc(10 * var(--u));margin:0;font-weight:500}
html body.auth-screen .login-card .show-password input{width:calc(20 * var(--u));height:calc(20 * var(--u));margin:0}
html body.auth-screen .login-card form button{font-size:calc(22 * var(--u));min-height:0;height:calc(58 * var(--u));padding:0;border-radius:calc(12 * var(--u));margin:0;font-weight:700}
html body.auth-screen .login-card form .forgot-link{height:auto;font-size:calc(20 * var(--u));margin:calc(14 * var(--u)) 0 calc(25 * var(--u));color:#064cff;background:transparent;border:0;box-shadow:none}
html body.auth-screen .login-card form button:not(.secondary){background:linear-gradient(#084481,#031c3e);color:white}
html body.auth-screen .login-card form p{font-size:inherit;color:#10284b;margin:calc(24 * var(--u)) 0 calc(19 * var(--u))}
html body.auth-screen .login-card form button.secondary:not(.forgot-link){background:transparent;color:#10284b;border:1px solid #10284b}
@media(max-width:650px){html body.auth-screen{background-size:cover}html body.auth-screen main{width:min(92vw,440px);padding:12px 0;transform:none}html body.auth-screen .login-card{--u:clamp(.56px,.158vw,.76px)}}

/* 4.43 — ondas azuis da identidade visual, sem interferir na leitura */
html[data-theme=azul]{--brand-wave:radial-gradient(ellipse 100% 105% at 45% -12%,#03132f 0%,#05234d 65%,transparent 66%),radial-gradient(ellipse 95% 130% at 80% -48%,#0b3976 0%,#082653 79%,transparent 80%),linear-gradient(155deg,#0759b3,#07366c 45%,#03142e);--line:#b8cce8}
html[data-theme=azul] body:not(.auth-screen) :is(header,nav,.welcome,.module-heading,.milestone,section>h2,.module-shell>h2){background:var(--brand-wave);color:#fff;border-color:#31598a}
html[data-theme=azul] body:not(.auth-screen) :is(header,.welcome,.module-heading,.milestone) :is(h1,h2,h3,p,small){color:#fff}
html[data-theme=azul] body:not(.auth-screen) :is(.welcome,.module-heading){border-radius:12px;padding:20px 24px;box-shadow:0 5px 14px #03142e24}
html[data-theme=azul] body:not(.auth-screen) section>h2{padding:12px 16px;border-radius:8px;border-left:4px solid #60c9ef}
html[data-theme=azul] body:not(.auth-screen) header h1 small{background:#ffffff20;color:#fff}
html[data-theme=azul] body:not(.auth-screen) #status{background:#ffffff20;color:#e2efff}
html[data-theme=azul] body:not(.auth-screen) :is(button:not(.secondary),#entry button:not(.secondary)){background:linear-gradient(155deg,#11539b,#05234b 85%);color:#fff}
html[data-theme=azul] body:not(.auth-screen) nav button.secondary{background:transparent;color:#e5efff}
html[data-theme=azul] body:not(.auth-screen) nav button:not(.secondary){background:linear-gradient(120deg,#1461b5,#0b3875);border-left-color:#65d1f2}
html[data-theme=azul] body:not(.auth-screen) th{background:linear-gradient(180deg,#154b88,#082952);color:white}
html[data-theme=azul] body:not(.auth-screen) .module-tile{background:linear-gradient(145deg,#fff 55%,#e4efff);border:1px solid #b8cce8;border-left:4px solid #1454a0;color:#092650;box-shadow:0 3px 9px #09265012}
html[data-theme=azul] body:not(.auth-screen) .module-tile :is(strong,b,small,.tile-copy){color:#092650}
html[data-theme=azul] body:not(.auth-screen) .module-tile:hover{background:linear-gradient(145deg,#f5f9ff,#d4e6ff)}
html[data-theme=azul] body:not(.auth-screen) .metrics section{background:linear-gradient(155deg,#fff 55%,#eaf2ff);border-top-color:#1454a0}
html[data-theme=azul] body:not(.auth-screen) .metrics section:nth-child(1){border-top-color:#15803d}html[data-theme=azul] body:not(.auth-screen) .metrics section:nth-child(2){border-top-color:#b91c1c}
html[data-theme=azul] body:not(.auth-screen) :is(input,select,textarea):focus-visible{outline-color:#4b98e9}

/* 4.46 — botões sólidos; ondas reservadas aos cabeçalhos */
html[data-theme=azul] body:not(.auth-screen) button:not(.module-tile):not(.law-explain),html body.auth-screen .login-card form button:not(.forgot-link){background:#326b9b!important;color:#fff!important;border-color:#326b9b!important;box-shadow:none}
html[data-theme=azul] body:not(.auth-screen) button:not(.module-tile):not(.law-explain):hover,html body.auth-screen .login-card form button:not(.forgot-link):hover{background:#28577f!important}
html[data-theme=azul] body:not(.auth-screen) nav button:not(.secondary){box-shadow:inset 3px 0 #65d1f2}
html[data-theme=azul] body:not(.auth-screen) button:disabled{opacity:.5}
/* 4.47 — identidade oceano e navegação compacta */
html[data-theme=azul]{--brand-wave:radial-gradient(ellipse 110% 110% at 42% -35%,#326b9b 0%,#194875 70%,transparent 71%),radial-gradient(ellipse 130% 110% at 35% -10%,#326b9b55 0%,#19487588 80%,transparent 81%),linear-gradient(120deg,#326b9b,#194875 55%,#09254b)}
html[data-theme=azul] body:not(.auth-screen) header{position:relative;overflow:hidden;padding:20px 24px;border-radius:10px;min-height:96px;background:var(--brand-wave)}
.header-bars{display:inline-flex;align-items:flex-end;gap:4px;margin-right:5px}.header-bars i{width:7px;height:12px;background:#8bd9f5;border-radius:2px}.header-bars i:nth-child(2){height:20px}.header-bars i:nth-child(3){height:28px}
html[data-theme=azul] body:not(.auth-screen) header:after{content:'';position:absolute;right:175px;bottom:12px;width:110px;height:65px;opacity:.35;pointer-events:none;background:url('header-chart.svg') center/contain no-repeat}
html[data-theme=azul] body:not(.auth-screen) #status{position:absolute;right:16px;top:16px}html[data-theme=azul] body:not(.auth-screen) #status:before{content:'●';color:#86efac;margin-right:6px}
html[data-theme=azul] body:not(.auth-screen) .welcome{padding:18px 24px;background:var(--brand-wave);min-height:0}html[data-theme=azul] body:not(.auth-screen) .welcome h2{font-size:clamp(20px,2.3vw,30px);margin:8px 0}html[data-theme=azul] body:not(.auth-screen) .welcome small{letter-spacing:1.5px;color:#c6e0f5}html[data-theme=azul] body:not(.auth-screen) .welcome p{color:#d1e4f5;margin:8px 0 0}
html[data-theme=azul] body:not(.auth-screen) .module-heading{background:#fff!important;color:#17365c!important;border:1px solid #b7cbe0;box-shadow:0 2px 6px #0926500c}html[data-theme=azul] body:not(.auth-screen) .module-heading :is(h2,p){color:#17365c!important;background:none!important}
html[data-theme=azul] body:not(.auth-screen) button.module-tile{background:#fff!important;color:#17365c!important;border:1px solid #b7cbe0!important;border-left:4px solid #326b9b!important;box-shadow:0 2px 7px #09265012!important}html[data-theme=azul] body:not(.auth-screen) button.module-tile:hover{background:#f0f5fc!important}html[data-theme=azul] body:not(.auth-screen) .module-tile .tile-copy h2{color:#17365c!important;background:none!important}html[data-theme=azul] body:not(.auth-screen) .module-tile .tile-copy p{color:#64748b!important}html[data-theme=azul] body:not(.auth-screen) .module-tile :is(small,b){color:#326b9b!important}html[data-theme=azul] body:not(.auth-screen) .module-tile span{background:#e5eef8!important;color:#326b9b!important}
html[data-theme=azul] body:not(.auth-screen) th{background:#326b9b;color:white}.other-total td{background:#dfeaf6}.other-total button,.other-sub-toggle{font-weight:600;text-align:left}.other-sub-toggle{width:100%;margin:10px 0}.discipline-buttons{flex-wrap:wrap}.discipline-buttons button{flex:0 1 auto}html[data-theme=azul] body:not(.auth-screen) button:is(#toggleOtherTotals,#toggleOtherSubjects){background:#dfeaf6!important;color:#17365c!important;border-color:#b7cbe0!important}html[data-theme=azul] body:not(.auth-screen) button.selected-sub{background:#194875!important;box-shadow:inset 0 0 0 2px #8bd9f5!important}
@media(max-width:600px){html[data-theme=azul] body:not(.auth-screen) header:after{display:none}html[data-theme=azul] body:not(.auth-screen) header{padding:16px}html[data-theme=azul] body:not(.auth-screen) #status{position:static;display:inline-block;margin-top:8px}.discipline-buttons button{flex:1 1 auto}}

/* 4.51: respiro no painel inicial */
.recent-studies{margin-top:20px;gap:16px;margin-bottom:20px}

/* 4.54 — menu lateral claro */
#nav button{display:flex;align-items:center;gap:9px;white-space:nowrap;min-height:38px}.nav-icon{display:inline-flex;width:18px;flex:0 0 18px;justify-content:center;font-size:17px;line-height:1}.nav-modules{margin-top:12px}html[data-theme=azul] body:not(.auth-screen) #nav{background:#f0f5fb;border:1px solid #c5d5e7;border-radius:9px;padding:10px;gap:5px;box-shadow:0 2px 7px #0926500c}html[data-theme=azul] body:not(.auth-screen) #nav button:not(.module-tile):not(.law-explain){background:transparent!important;color:#173d63!important;border:1px solid transparent!important;box-shadow:none;padding:10px 12px}html[data-theme=azul] body:not(.auth-screen) #nav button .nav-icon{color:#326b9b}html[data-theme=azul] body:not(.auth-screen) #nav button[aria-current=page]:not(.nav-register){background:#d6e5f4!important;box-shadow:inset 3px 0 #326b9b!important}html[data-theme=azul] body:not(.auth-screen) #nav button:not(.nav-register):hover{background:#e0ebf7!important}html[data-theme=azul] body:not(.auth-screen) #nav button.nav-register{background:#326b9b!important;color:white!important;border-color:#326b9b!important;margin-bottom:7px;font-weight:700}html[data-theme=azul] body:not(.auth-screen) #nav button.nav-register .nav-icon{color:white}html[data-theme=azul] body:not(.auth-screen) #nav button.nav-register:hover{background:#28577f!important}html[data-theme=azul] body:not(.auth-screen) #nav button.nav-modules{border-top:1px solid #c5d5e7!important;border-radius:0 0 6px 6px;padding-top:14px!important}@media(max-width:760px){#nav button{flex-shrink:0}#nav button.nav-modules{margin-top:0}html[data-theme=azul] body:not(.auth-screen) #nav button.nav-modules{border-top:0!important;border-left:1px solid #c5d5e7!important;padding-top:10px!important}html[data-theme=azul] body:not(.auth-screen) #nav button.nav-register{margin-bottom:0}}

/* 4.55 — explicit navigation states override generic button rules */
html[data-theme=azul] body:not(.auth-screen) #nav button.nav-register:not(.module-tile):not(.law-explain){background:#326b9b!important;color:#fff!important;border:1px solid #326b9b!important;box-shadow:none!important}
html[data-theme=azul] body:not(.auth-screen) #nav button.nav-register:not(.module-tile):not(.law-explain):hover{background:#28577f!important}
html[data-theme=azul] body:not(.auth-screen) #nav button[aria-current=page]:not(.nav-register):not(.module-tile):not(.law-explain){background:#d6e5f4!important;color:#173d63!important;box-shadow:inset 3px 0 #326b9b!important}
html[data-theme=azul] body:not(.auth-screen) #nav button:not(.nav-register):not(.module-tile):not(.law-explain):hover{background:#e0ebf7!important}
html[data-theme=azul] body:not(.auth-screen) #nav button.nav-modules:not(.module-tile):not(.law-explain){border-top:1px solid #c5d5e7!important}
@media(max-width:760px){html[data-theme=azul] body:not(.auth-screen) #nav button.nav-modules:not(.module-tile):not(.law-explain){border-top:0!important;border-left:1px solid #c5d5e7!important}}
body.study-exclusive #nav{display:none!important}body.study-exclusive #view{grid-column:1/-1;width:100%;max-width:900px;margin:0 auto}body.study-exclusive main{display:block!important}.study-timer #tmClock{text-align:center;font-size:clamp(36px,8vw,64px);font-variant-numeric:tabular-nums;color:#326b9b;padding:20px}.study-timer #tmPhase{text-align:center}.tmActions{justify-content:center;flex-wrap:wrap}#tmFloat{position:fixed;right:18px;bottom:18px;z-index:1000;display:flex;align-items:center;gap:8px;padding:8px 12px 12px;border:1px solid #a3bdd680;border-radius:13px;background:#e5eff8a8;backdrop-filter:blur(12px);color:#527da5;opacity:.75;transition:opacity .25s,background .25s;box-shadow:0 3px 12px #173d6310}#tmFloat:hover,#tmFloat:focus-within{opacity:1;background:#f0f7fffa}#tmFloat strong{font-size:19px;font-variant-numeric:tabular-nums}html body:not(.auth-screen) #tmFloat button{background:transparent!important;color:#527da5!important;border:0!important;box-shadow:none!important;padding:4px!important;min-height:0!important}.tmProgress{position:absolute;bottom:5px;left:12px;right:12px;height:3px;background:#c5d5e7;border-radius:3px;overflow:hidden}.tmProgress i{display:block;height:100%;background:#7295b6}#tmDialog{width:min(480px,92vw);max-height:90vh;overflow:auto;border:1px solid #c5d5e7;border-radius:12px;padding:20px;background:white;color:#173d63}#tmDialog::backdrop{background:#09254b66}#tmQuestions[hidden]{display:none!important}

/* 4.59 — compact frosted internal timer */
#tmFloat{box-sizing:border-box;width:190px;height:40px;gap:4px;justify-content:space-evenly;padding:3px 6px 5px;border-radius:20px;background:rgba(180,205,230,.23);border:1px solid rgba(130,165,200,.22);backdrop-filter:blur(9px);color:#527da5;opacity:.68;box-shadow:0 2px 6px #173d6308;transition:opacity .35s,background .35s,box-shadow .35s}#tmFloat:hover,#tmFloat:focus-within{opacity:1;background:rgba(220,235,249,.95);box-shadow:0 3px 12px #173d6318}#tmFloat strong{font-size:17px;font-weight:600;white-space:nowrap}html body:not(.auth-screen) #tmFloat button{padding:2px 3px!important;min-width:16px!important;min-height:20px!important;font-size:13px!important}#tmFloat .tmProgress{left:15px;right:15px;bottom:3px;height:2px}

#tmCycleAlert{position:fixed;inset:0;z-index:9999;background:#07182b88;display:grid;place-items:center;padding:20px}#tmCycleAlert section{background:linear-gradient(145deg,#09243e,#173d63);color:#f5dfb5;border:1px solid #e4c38a;border-radius:18px;padding:28px;text-align:center;max-width:580px;box-shadow:0 0 24px #e4c38a55}#tmCycleAlert h2{color:#f5dfb5}#tmCycleAlert strong{font-size:32px}#tmCycleAlert .cycle-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}html body #tmCycleAlert button.cycle-register{background:#f5dfb5!important;color:#102d49!important}body:has(#tmDialog[open]) #tmCycleAlert{display:none}

/* 4.64 — champagne gold, light reading surfaces */
html[data-theme=dourado]{--navy:#10283e;--accent:#946315;--line:#ddc9a5;--sub:#75664f;--gold-wave:radial-gradient(ellipse 95% 135% at 70% -55%,#142d43 65%,#b78b43 66%,transparent 67%),linear-gradient(125deg,#142d43 20%,#091a2b 68%,#62451e 100%)}
html[data-theme=dourado] body:not(.auth-screen){background:#f8f3e9;color:#10283e}
html[data-theme=dourado] body:not(.auth-screen) :is(header,.welcome,.milestone){background:var(--gold-wave);color:#f5dfb5;border:1px solid #b78b43;border-radius:10px;box-shadow:0 4px 12px #60451b18}
html[data-theme=dourado] body:not(.auth-screen) :is(header,.welcome,.milestone) :is(h1,h2,h3,p,small){color:#f8f2e7}
html[data-theme=dourado] body:not(.auth-screen) header{position:relative;overflow:hidden;padding:20px 24px;min-height:96px}
html[data-theme=dourado] body:not(.auth-screen) header:after{content:'';position:absolute;right:175px;bottom:12px;width:110px;height:65px;opacity:.8;pointer-events:none;background:url('header-chart.svg') center/contain no-repeat;filter:sepia(1) saturate(2)}
html[data-theme=dourado] body:not(.auth-screen) #status{position:absolute;right:16px;top:16px;background:#ffffff15;color:#fff;border:1px solid #c39a56}
html[data-theme=dourado] body:not(.auth-screen) #status:before{content:'●';color:#86efac;margin-right:6px}
html[data-theme=dourado] .header-bars i{background:#e9c580}
html[data-theme=dourado] body:not(.auth-screen) header h1 small{background:#b78b4338;color:#f5dfb5}
html[data-theme=dourado] body:not(.auth-screen) .welcome{padding:18px 24px}
html[data-theme=dourado] body:not(.auth-screen) .welcome small{color:#f5dfb5}
html[data-theme=dourado] body:not(.auth-screen) :is(section,.module-shell,.item-card,.library-section,.share-dialog){background:#fffdf8;border-color:#ddc9a5;box-shadow:0 3px 10px #60451b0c}
html[data-theme=dourado] body:not(.auth-screen) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fffdf8;color:#10283e;border-color:#d7c29b}
html[data-theme=dourado] body:not(.auth-screen) :is(button,#entry button):not(.module-tile):not(.law-explain){background:#e9c580;color:#17283a;border-color:#c29a58}
html[data-theme=dourado] body:not(.auth-screen) button.secondary{background:#f4ead7;color:#10283e}
html[data-theme=dourado] body:not(.auth-screen) #nav{background:#fffaf0;border:1px solid #ddc9a5;border-radius:9px;padding:10px;gap:5px}
html[data-theme=dourado] body:not(.auth-screen) #nav button{background:transparent;color:#10283e;border:1px solid transparent;box-shadow:none;padding:10px 12px}
html[data-theme=dourado] body:not(.auth-screen) #nav .nav-icon{color:#946315}
html[data-theme=dourado] body:not(.auth-screen) #nav button[aria-current=page]{background:#10283e;color:#fff;box-shadow:inset 3px 0 #e9c580}
html[data-theme=dourado] body:not(.auth-screen) #nav button[aria-current=page] .nav-icon{color:#f5dfb5}
html[data-theme=dourado] body:not(.auth-screen) #nav button.nav-register{background:linear-gradient(160deg,#f5dfb5,#d6a34c);color:#10283e;margin-bottom:7px;font-weight:700}
html[data-theme=dourado] body:not(.auth-screen) #nav button.nav-modules{border-top:1px solid #ddc9a5}
html[data-theme=dourado] body:not(.auth-screen) .metrics section{background:linear-gradient(150deg,#fffdf8,#f7eddb);border-top:4px solid #b78b43;color:#75664f}
html[data-theme=dourado] body:not(.auth-screen) .metrics section:nth-child(1){border-top-color:#15803d}
html[data-theme=dourado] body:not(.auth-screen) .metrics section:nth-child(2){border-top-color:#b91c1c}
html[data-theme=dourado] body:not(.auth-screen) .metrics section:nth-child(3) strong{color:#10283e}
html[data-theme=dourado] body:not(.auth-screen) .metrics section:nth-child(4) strong{color:#946315}
html[data-theme=dourado] body:not(.auth-screen) .good{color:#15803d}html[data-theme=dourado] body:not(.auth-screen) .bad{color:#b91c1c}
html[data-theme=dourado] body:not(.auth-screen) th{background:#89601f;color:white}html[data-theme=dourado] body:not(.auth-screen) tbody tr:nth-child(even){background:#f6eddf}
html[data-theme=dourado] body:not(.auth-screen) :is(.module-heading,.module-tile){background:#fffdf8;color:#10283e;border-color:#ddc9a5;border-left-color:#b78b43}
html[data-theme=dourado] body:not(.auth-screen) :is(a,.blue){color:#946315}
html[data-theme=dourado] body:not(.auth-screen) #tmFloat{background:#10283e;color:#f5dfb5;border-color:#b78b43}html[data-theme=dourado] body:not(.auth-screen) #tmFloat button{color:#f5dfb5!important}html[data-theme=dourado] body:not(.auth-screen) #tmFloat:hover{background:#10283e}
html[data-theme=dourado] body:not(.auth-screen) .study-timer #tmClock{color:#946315}
@media(max-width:600px){html[data-theme=dourado] body:not(.auth-screen) header:after{display:none}html[data-theme=dourado] body:not(.auth-screen) #status{position:static;display:inline-block;margin-top:8px}}

html[data-theme=dourado-noturno]{color-scheme:dark;--navy:#e4e4e7;--accent:#a1a1aa;--line:#48484e;--sub:#b4b4bd}
html[data-theme=dourado-noturno] body{background:#111113;color:#f4f4f5}
html[data-theme=dourado-noturno] :is(section,.module-shell,.item-card,.library-section,.share-dialog,dialog,.module-tile,.metrics section:nth-child(n),.donut>div,.rich-editor,.rich-render,.login-card form){background:#262629;color:#f4f4f5;border-color:#48484e}
html[data-theme=dourado-noturno] :is(#entry,.history-filters,.module-form,.share-panel,.flash-filters,.jur-filters,.flash-review,.mod-metric,.welcome,.module-heading,.law-layout aside,section>h2,.module-shell>h2){background:#303033;color:#f4f4f5;border-color:#52525b}
html[data-theme=dourado-noturno] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,#entry #totalQuestions,#entry #c){background:#18181b;color:#f4f4f5;border-color:#71717a}
html[data-theme=dourado-noturno] :is(label,h2,h3,.muted,.blue,.law-explain-row .law-explain,.image-size-control,.image-size-control output,#message){color:#d4d4d8}
html[data-theme=dourado-noturno] :is(th,button.secondary,#entry button.secondary){background:#3f3f46;color:#fafafa;border-color:#52525b}
html[data-theme=dourado-noturno] td{border-color:#48484e}
html[data-theme=dourado-noturno] tbody tr:nth-child(even){background:#303033}
html[data-theme=dourado-noturno] tbody tr:hover{background:#3f3f46}
html[data-theme=dourado-noturno] .metrics section:nth-child(n) strong{color:#fafafa}
html[data-theme=dourado-noturno] :is(.good,.metrics section:nth-child(1) strong,#entry #c){color:#86efac}
html[data-theme=dourado-noturno] :is(.bad,.metrics section:nth-child(2) strong){color:#fca5a5}
html[data-theme=dourado-noturno] #entry p.bad{background:#402629;color:#fca5a5;border-color:#85454b}
html[data-theme=dourado-noturno] a{color:#d4d4d8}
html[data-theme=dourado-noturno] .law-layout [class*="law-kind-"]:not(.law-kind-article){color:#171717}
html[data-theme=dourado-noturno] .law-layout .law-kind-parte{color:white}
html[data-theme=operacional]{color-scheme:dark;--navy:#e4e4e7;--accent:#a1a1aa;--line:#48484e;--sub:#b4b4bd}
html[data-theme=operacional] body{background:#111113;color:#f4f4f5}
html[data-theme=operacional] :is(section,.module-shell,.item-card,.library-section,.share-dialog,dialog,.module-tile,.metrics section:nth-child(n),.donut>div,.rich-editor,.rich-render,.login-card form){background:#262629;color:#f4f4f5;border-color:#48484e}
html[data-theme=operacional] :is(#entry,.history-filters,.module-form,.share-panel,.flash-filters,.jur-filters,.flash-review,.mod-metric,.welcome,.module-heading,.law-layout aside,section>h2,.module-shell>h2){background:#303033;color:#f4f4f5;border-color:#52525b}
html[data-theme=operacional] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,#entry #totalQuestions,#entry #c){background:#18181b;color:#f4f4f5;border-color:#71717a}
html[data-theme=operacional] :is(label,h2,h3,.muted,.blue,.law-explain-row .law-explain,.image-size-control,.image-size-control output,#message){color:#d4d4d8}
html[data-theme=operacional] :is(th,button.secondary,#entry button.secondary){background:#3f3f46;color:#fafafa;border-color:#52525b}
html[data-theme=operacional] td{border-color:#48484e}
html[data-theme=operacional] tbody tr:nth-child(even){background:#303033}
html[data-theme=operacional] tbody tr:hover{background:#3f3f46}
html[data-theme=operacional] .metrics section:nth-child(n) strong{color:#fafafa}
html[data-theme=operacional] :is(.good,.metrics section:nth-child(1) strong,#entry #c){color:#86efac}
html[data-theme=operacional] :is(.bad,.metrics section:nth-child(2) strong){color:#fca5a5}
html[data-theme=operacional] #entry p.bad{background:#402629;color:#fca5a5;border-color:#85454b}
html[data-theme=operacional] a{color:#d4d4d8}
html[data-theme=operacional] .law-layout [class*="law-kind-"]:not(.law-kind-article){color:#171717}
html[data-theme=operacional] .law-layout .law-kind-parte{color:white}/* 4.65 — theme gallery */
.theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:14px 0}.theme-grid .theme-choice{display:grid;gap:8px;text-align:left;white-space:normal;padding:10px!important;border:2px solid #a0a0a0!important;border-radius:10px;box-shadow:none}.theme-grid .theme-choice[aria-pressed=true]{outline:3px solid #b78b43;outline-offset:2px}.theme-mini{display:grid;grid-template-columns:25% repeat(3,1fr);grid-template-rows:24px 24px 18px;gap:4px;padding:5px;background:var(--pbg,#e6edf7);border-radius:5px;overflow:hidden}.theme-mini i{grid-column:1/-1;background:var(--ph,#194875);border-radius:3px}.theme-mini b{grid-row:2/4;background:var(--ph,#194875);border-radius:3px;opacity:.7}.theme-mini em{background:var(--pc,#fff);border-top:3px solid var(--pa,#326b9b);border-radius:3px;grid-row:2/4}.theme-mini[data-preview=grafite]{--pbg:#292929;--ph:#555;--pc:#aaa;--pa:#777}.theme-mini[data-preview=claro]{--pbg:#fff;--ph:#aaa;--pa:#aaa}.theme-mini[data-preview=escuro]{--pbg:#0b192c;--ph:#23476c;--pc:#21354d}.theme-mini[data-preview=dourado]{--pbg:#f8f3e9;--ph:#10283e;--pa:#b78b43}.theme-mini[data-preview=dourado-noturno]{--pbg:#171717;--ph:#373027;--pc:#333;--pa:#e9c580}.theme-mini[data-preview=operacional]{--pbg:#444;--ph:#222;--pa:#b78b43}.theme-mini[data-preview=operacional] i{background:url(police-header.webp) center/cover}
html[data-theme=escuro] body{background:#101e30}html[data-theme=escuro] :is(section,.module-shell,.item-card,.library-section,.metrics section:nth-child(n)){background:#20334a;border-color:#415773}html[data-theme=escuro] :is(header,.welcome,#nav){background:#142b46;color:#fff}html[data-theme=escuro] :is(header,.welcome) :is(h1,h2,p,small){color:#fff}
html[data-theme=dourado-noturno] body:not(.auth-screen) :is(header,.welcome,#nav){background:linear-gradient(125deg,#111b25,#29241d);color:#f5dfb5;border:1px solid #94713d;border-radius:10px}html[data-theme=dourado-noturno] body:not(.auth-screen) :is(header,.welcome) :is(h1,h2,p,small){color:#f5dfb5}html[data-theme=dourado-noturno] body:not(.auth-screen) button:not(.module-tile){background:#e9c580;color:#171717}html[data-theme=dourado-noturno] body:not(.auth-screen) th{background:#70501d;color:white}
html[data-theme=operacional] body:not(.auth-screen){background:linear-gradient(145deg,#222,#555);color:#fff}html[data-theme=operacional] body:not(.auth-screen) header{background:linear-gradient(90deg,#171717 8%,transparent 65%),url(police-header.webp) center 42%/cover;min-height:112px;padding:20px;border-radius:10px;position:relative}html[data-theme=operacional] body:not(.auth-screen) .welcome{background:linear-gradient(90deg,#191919 48%,transparent 85%),url(police-cuffs.webp) right center/auto 100% no-repeat,#191919;border:1px solid #b78b43;color:white;padding:22px}html[data-theme=operacional] body:not(.auth-screen) :is(header,.welcome) :is(h1,h2,p,small){color:white}html[data-theme=operacional] body:not(.auth-screen) #nav{background:#222;border:1px solid #777;border-radius:10px;padding:10px}html[data-theme=operacional] body:not(.auth-screen) #nav button{background:transparent;color:#fff;border:1px solid transparent}html[data-theme=operacional] body:not(.auth-screen) #nav button[aria-current=page]{background:#e9c580;color:#161616}html[data-theme=operacional] body:not(.auth-screen) #nav .nav-icon{color:#d7b365}html[data-theme=operacional] body:not(.auth-screen) #nav button[aria-current=page] .nav-icon{color:#222}html[data-theme=operacional] body:not(.auth-screen) #nav button.nav-register{border-color:#b78b43}html[data-theme=operacional] body:not(.auth-screen) .header-bars i{background:#e9c580}html[data-theme=operacional] body:not(.auth-screen) :is(.metrics section:nth-child(n),.recent-studies section){background:#f5f5f5;color:#171717;border-color:#aaa}html[data-theme=operacional] body:not(.auth-screen) .metrics section:nth-child(n){border-top:4px solid #b78b43}html[data-theme=operacional] body:not(.auth-screen) .metrics section:nth-child(1) strong{color:#15803d}html[data-theme=operacional] body:not(.auth-screen) .metrics section:nth-child(2) strong{color:#b91c1c}html[data-theme=operacional] body:not(.auth-screen) .metrics section:nth-child(n+3) strong{color:#174e83}html[data-theme=operacional] body:not(.auth-screen) .recent-studies :is(h2,h3,p,.muted){color:#222;background:transparent}html[data-theme=operacional] body:not(.auth-screen) .recent-studies tbody tr{background:#eee;color:#222}html[data-theme=operacional] body:not(.auth-screen) .recent-studies .good{color:#15803d}html[data-theme=operacional] body:not(.auth-screen) .recent-studies .bad{color:#b91c1c}html[data-theme=operacional] body:not(.auth-screen) .recent-studies td:nth-child(4){color:#174e83}html[data-theme=operacional] body:not(.auth-screen) th{background:#70501d;color:white}html[data-theme=operacional] body:not(.auth-screen) #tmFloat{background:#222;color:#e9c580}

/* 4.66: operational dashboard contrast, scoped to the light dashboard cards */
html[data-theme=operacional] body:not(.auth-screen){background:linear-gradient(145deg,#292929,#454545);color:#f8f8f8}
html[data-theme=operacional] body:not(.auth-screen) header{background:linear-gradient(90deg,#171717 10%,transparent 65%),url('police-header.webp') right 20%/cover no-repeat!important}
html[data-theme=operacional] body:not(.auth-screen) #view .welcome{background:linear-gradient(90deg,#191919 38%,#191919bb 57%,transparent 78%),url('police-cuffs.webp') right center/auto 100% no-repeat,#191919!important;border:1px solid #b78b43!important;padding:22px;min-height:130px}
html[data-theme=operacional] body:not(.auth-screen) #view .welcome :is(h2,p){color:#fff!important;background:transparent!important}
html[data-theme=operacional] body:not(.auth-screen) #view .welcome small{color:#f0c66c!important}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section{background:linear-gradient(145deg,#fff,#eaeaea)!important;border:1px solid #b9b9b9!important;border-top:4px solid #b78b43!important;color:#174e83!important;font-weight:600;color-scheme:light}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(1),html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(1) strong{color:#08752c!important}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(2),html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(2) strong{color:#b91c1c!important}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(n+3) strong{color:#174e83!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies section{background:#f5f5f5!important;color:#202124!important;color-scheme:light;--navy:#202124;--sub:#505050;--line:#ccc}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies :is(h2,h3,p,.muted){color:#303030!important;background:transparent!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies th{background:linear-gradient(#946b20,#70501d)!important;color:#fff!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies td{color:#222!important;border-color:#ccc!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies td.good{color:#08752c!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies td.bad{color:#b91c1c!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies td.blue,html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies td.blue b{color:#174e83!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies tbody tr{background:#fff!important}
html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies tbody tr:nth-child(even){background:#eaeaea!important}
/* 4.67 — operational refinements */
html[data-theme=operacional] body:not(.auth-screen) header{background:linear-gradient(90deg,#171717 12%,#171717bb 25%,transparent 52%),url(police-header.webp) right center/auto 100% no-repeat,#171717!important;min-height:132px}
html[data-theme=operacional] body:not(.auth-screen) #view .welcome{background:linear-gradient(90deg,#191919 45%,#191919e0 58%,transparent 82%),url(police-cuffs.webp) right center/auto 92% no-repeat,#191919!important}
html[data-theme=operacional] body:not(.auth-screen) #status{position:absolute;right:16px;top:16px;border:1px solid #d4a84c;border-radius:20px;background:#171717df;color:white;padding:6px 10px}
html[data-theme=operacional] body:not(.auth-screen) #status:before{content:'●';color:#55d86a;margin-right:6px}
html[data-theme=operacional] body:not(.auth-screen) #nav button.nav-modules{border-top:1px solid #666;border-radius:0;margin-top:9px;padding-top:14px}
html[data-theme=operacional] body:not(.auth-screen) #nav button[aria-current=page]{background:linear-gradient(135deg,#f5dfb5,#d4a84c);color:#171717}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section{position:relative;padding-right:52px;border-radius:10px}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:after{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:32px;line-height:1;opacity:.48;content:'◎';pointer-events:none}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(1):after{content:'✓';border:2px solid currentColor;border-radius:50%;width:32px;height:32px;text-align:center;font-size:26px}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(2):after{content:'×';border:2px solid currentColor;border-radius:50%;width:32px;height:32px;text-align:center;font-size:30px}
html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(3):after{content:'▱';font-size:40px}
@media(max-width:760px){html[data-theme=operacional] body:not(.auth-screen) #nav button.nav-modules{border-top:0;border-left:1px solid #666;margin-top:0;padding-top:10px}html[data-theme=operacional] body:not(.auth-screen) #view .metrics section{padding-right:12px}html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:after{display:none}html[data-theme=operacional] body:not(.auth-screen) #status{position:static;display:inline-block;margin-top:8px}}

/* 4.68: continuous panoramic header */
html[data-theme=operacional] body:not(.auth-screen) header{background:linear-gradient(90deg,#171717 0%,#171717e8 18%,#17171744 48%,transparent 78%),url(police-header.webp) right 47%/100% auto no-repeat,#171717!important;min-height:132px}
@media(max-width:760px){html[data-theme=operacional] body:not(.auth-screen) header{background-size:cover!important;background-position:center,right center!important}}
#sharePanelStatus:empty{display:none}#sharePanelStatus{flex-basis:100%;margin:4px 0;color:inherit}
/* 4.71 — timer layout, scoped to timer panel in all themes */
.study-timer{--tm-accent:#326b9b;--tm-surface:#f0f5fb;--tm-ink:#173d63;--tm-line:#bdcfe8;--tm-button-ink:#fff;display:grid;gap:16px;padding:16px!important}
html[data-theme=claro] .study-timer{--tm-accent:#42464b;--tm-surface:#f5f5f5;--tm-ink:#252629;--tm-line:#d1d5db}
html[data-theme=grafite] .study-timer{--tm-accent:#c4c7cc;--tm-surface:#292c30;--tm-ink:#f3f4f6;--tm-line:#555b63;--tm-button-ink:#15171a}
html[data-theme=escuro] .study-timer{--tm-accent:#91c5fa;--tm-surface:#142b46;--tm-ink:#eef6ff;--tm-line:#415773;--tm-button-ink:#102033}
html[data-theme=dourado] .study-timer{--tm-accent:#946315;--tm-surface:#fff7e7;--tm-ink:#493619;--tm-line:#d9bf89}
html:is([data-theme=dourado-noturno],[data-theme=operacional]) .study-timer{--tm-accent:#eac477;--tm-surface:#17191c;--tm-ink:#f5f1e8;--tm-line:#626168;--tm-button-ink:#181511}
.study-timer .tmHero,.study-timer .tmConfig,.study-timer .tmStage{border:1px solid var(--tm-line);border-radius:12px;padding:18px;background:var(--tm-surface);color:var(--tm-ink)}
.study-timer .tmHero{border-left:4px solid var(--tm-accent);background:linear-gradient(115deg,var(--tm-surface),transparent)}
html[data-theme=operacional] .study-timer .tmHero{background:linear-gradient(90deg,#15171a 15%,#15171ad9 55%,transparent),url(police-header.webp) right center/cover;color:white}
.study-timer .tmHero h2,.study-timer .tmConfig h3{background:none!important;border:0!important;padding:0!important;margin:0 0 8px!important;color:inherit!important}.study-timer .tmHero p{margin:0}.study-timer .tmConfig .row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.study-timer .tmConfig label{color:var(--tm-ink)}.study-timer .tmStage{background:radial-gradient(ellipse at 50% 110%,color-mix(in srgb,var(--tm-accent) 15%,transparent),transparent 65%),var(--tm-surface);padding:24px 12px}.study-timer #tmClock{color:var(--tm-accent)!important;font-weight:700;font-size:clamp(38px,7vw,94px);padding:12px 0 24px}.study-timer .tmActions{display:flex;gap:12px}.study-timer .tmTools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;border-bottom:1px solid var(--tm-line);padding:0 0 16px}.study-timer .tmTools label{max-width:180px;color:var(--tm-ink)}.study-timer .tmManualRow{text-align:center}
html body:not(.auth-screen) #view .study-timer :is(.tmActions,.tmTools,.tmManualRow) button{background:var(--tm-surface)!important;color:var(--tm-ink)!important;border:1px solid var(--tm-line)!important;border-radius:8px!important;padding:11px 18px!important;box-shadow:none!important}html body:not(.auth-screen) #view .study-timer button#tmStart{background:var(--tm-accent)!important;color:var(--tm-button-ink)!important;border-color:var(--tm-accent)!important}html body:not(.auth-screen) #view .study-timer button:disabled{opacity:.45}html body:not(.auth-screen) #view .study-timer button:not(:disabled):hover{outline:1px solid var(--tm-accent)}.study-timer input[type=range]{accent-color:var(--tm-accent)}@media(max-width:700px){.study-timer .tmConfig .row{grid-template-columns:repeat(2,minmax(0,1fr))}.study-timer .tmActions button{flex:1 1 40%}}
/* 4.72 — Jurídico */
html[data-theme=juridico]{color-scheme:light;--navy:#122e40;--accent:#481d26;--line:#d9cec5;--sub:#73675d}
html[data-theme=juridico] body:not(.auth-screen){background:#eee8e0;color:#122e40}
html[data-theme=juridico] body:not(.auth-screen) :is(header,.welcome){background:linear-gradient(90deg,#481d26 15%,#481d26ee 45%,#122e4044 80%),url('share-juridico.webp') right 35%/cover;border:1px solid #b89459;border-radius:10px;color:#fff;min-height:110px;padding:20px 24px}
html[data-theme=juridico] body:not(.auth-screen) :is(header,.welcome) :is(h1,h2,p,small){color:#fff!important;background:transparent!important}
html[data-theme=juridico] body:not(.auth-screen) #nav{background:#481d26;border:1px solid #b89459;border-radius:10px;padding:10px}
html[data-theme=juridico] body:not(.auth-screen) #nav button{background:transparent;color:#fff;border:1px solid transparent}
html[data-theme=juridico] body:not(.auth-screen) #nav button[aria-current=page]{background:#e8c88b;color:#122e40}
html[data-theme=juridico] body:not(.auth-screen) #nav button.nav-register{border-color:#e8c88b}
html[data-theme=juridico] .nav-icon{color:#e8c88b}html[data-theme=juridico] #nav button[aria-current=page] .nav-icon{color:#481d26}
html[data-theme=juridico] body:not(.auth-screen) section{background:#fffcf7;border-color:#d9cec5;box-shadow:0 2px 6px #73675d15}
html[data-theme=juridico] body:not(.auth-screen) button:not(.module-tile):not(.law-explain){background:#481d26;color:white}
html[data-theme=juridico] body:not(.auth-screen) #nav button.secondary{background:transparent;color:white}
html[data-theme=juridico] body:not(.auth-screen) #nav button[aria-current=page]{background:#e8c88b;color:#122e40}
html[data-theme=juridico] body:not(.auth-screen) th{background:#1e4e59;color:#fff}
html[data-theme=juridico] body:not(.auth-screen) .metrics section{border-top:3px solid #b89459}
html[data-theme=juridico] .study-timer{--tm-accent:#481d26;--tm-surface:#fffaf3;--tm-ink:#122e40;--tm-line:#d9cec5;--tm-button-ink:#fff}
html[data-theme=juridico] .study-timer #clock{color:#122e40!important}
.theme-mini[data-preview=juridico]{--pbg:#eee8e0;--ph:#481d26;--pa:#b89459;--pc:#fffcf7}
/* 4.73 — central de módulos operacional: prata e grafite, isolada dos demais temas */
html[data-theme=operacional] body.module-central:not(.auth-screen){background:linear-gradient(145deg,#242629,#393b3e);min-height:100vh}
html[data-theme=operacional] body.module-central:not(.auth-screen) .module-tile{background:linear-gradient(145deg,#303236,#202225)!important;border:1px solid #62666b!important;border-left:4px solid #b9bdc2!important;border-radius:10px!important;min-height:86px;grid-template-columns:40px minmax(0,1fr) 16px;gap:13px;box-shadow:0 2px 5px #0002}
html[data-theme=operacional] body.module-central:not(.auth-screen) .module-tile:hover{background:#414449!important;border-color:#d0d3d7!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) .module-tile>span{background:linear-gradient(145deg,#565a60,#34373b)!important;color:#e1e4e8!important;width:40px;height:40px;border-radius:8px;filter:none!important;font-size:23px;line-height:1}
html[data-theme=operacional] body.module-central:not(.auth-screen) .module-tile h2{color:#fff!important;background:none!important;border:0!important;padding:0!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) .module-tile p{color:#c7cbd0!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) .module-tile :is(small,b){color:#e1e4e8!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) :is(#view .welcome,#status){border-color:#b9bdc2!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) .header-bars i{background:#d5d8dc!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) :is(#modprofile,#modlogout){background:#292c30!important;color:#f4f4f5!important;border:1px solid #a4a8ae!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) .module-tile>span svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.performance-row{padding:10px 12px;border:1px solid var(--border,#8885);border-radius:8px;margin:8px 0}.performance-row .bartrack{overflow:hidden}.performance-row .barfill{border-radius:0}

/* 4.75 — internal operational banners and readable evolution charts */
html[data-theme=operacional] body:not(.auth-screen) #view :is(section>h2,.module-shell>h2,.study-timer .tmHero){background:linear-gradient(90deg,#191919 35%,#191919ed 52%,#19191955 72%,transparent 90%),url('police-cuffs.webp') right center/auto 100% no-repeat,#191919!important;color:#fff!important;border:1px solid #777!important;border-left:4px solid #b9bdc2!important;border-radius:8px;padding:18px 20px;min-height:82px;box-sizing:border-box}
html[data-theme=operacional] body:not(.auth-screen) #view .study-timer .tmHero :is(h2,p){color:#fff!important;background:none!important;border:0!important}
html[data-theme=operacional] body:not(.auth-screen) #view :is(.recent-studies,.metrics,.module-tile) h2{background:none!important;min-height:0;padding:0;border:0!important}
html body:not(.auth-screen) #view .evolution-chart{background:#fff!important;color:#30343b!important;border:1px solid #cbd0d6!important;border-radius:8px;padding:12px;overflow-x:auto}
html body:not(.auth-screen) #view .evolution-chart .trend{background:#fff!important;display:block}
html body:not(.auth-screen) #view .evolution-chart .trend text{fill:#30343b!important}
html body:not(.auth-screen) #view .evolution-chart .trend path{stroke:#d5d9df!important}
@media(max-width:600px){html[data-theme=operacional] body:not(.auth-screen) #view :is(section>h2,.module-shell>h2,.study-timer .tmHero){background-size:auto,auto 100%,auto!important;padding:14px;min-height:68px}}

/* 4.76 — fade the actual image layer, not the entire banner width */
html[data-theme=operacional] body:not(.auth-screen) #view :is(section>h2,.module-shell>h2,.study-timer .tmHero,.welcome){position:relative;isolation:isolate;overflow:hidden;background:#191919!important;color:#fff!important}
html[data-theme=operacional] body:not(.auth-screen) #view :is(section>h2,.module-shell>h2,.study-timer .tmHero,.welcome)::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:0;top:0;height:100%;aspect-ratio:472/120;max-width:65%;background:url('police-cuffs.webp') right center/cover no-repeat;mask-image:linear-gradient(to right,transparent 0%,#0003 18%,#000b 40%,#000 65%);-webkit-mask-image:linear-gradient(to right,transparent 0%,#0003 18%,#000b 40%,#000 65%)}
html[data-theme=operacional] body:not(.auth-screen) #view :is(.recent-studies,.metrics,.module-tile) h2{background:none!important;min-height:0;padding:0;border:0!important}
html[data-theme=operacional] body:not(.auth-screen) #view :is(.recent-studies,.metrics,.module-tile) h2::before,html[data-theme=operacional] body:not(.auth-screen) #view .study-timer .tmHero h2::before{content:none!important}
html[data-theme=operacional] body:not(.auth-screen) #view .study-timer .tmHero h2{background:none!important;min-height:0;padding:0!important;border:0!important}
@media(max-width:600px){html[data-theme=operacional] body:not(.auth-screen) #view :is(section>h2,.module-shell>h2,.study-timer .tmHero,.welcome)::before{max-width:55%;opacity:.65;mask-image:linear-gradient(to right,transparent,#0005 40%,#000 90%);-webkit-mask-image:linear-gradient(to right,transparent,#0005 40%,#000 90%)}}

html[data-theme=juridico-marinho]{color-scheme:light;--navy:#122e40;--accent:#102a40;--line:#d9cec5;--sub:#73675d}
html[data-theme=juridico-marinho] body:not(.auth-screen){background:#eee8e0;color:#122e40}
html[data-theme=juridico-marinho] body:not(.auth-screen) :is(header,.welcome){background:linear-gradient(90deg,#102a40 15%,#102a40ee 45%,#122e4044 80%),url('share-juridico.webp') right 35%/cover;border:1px solid #b89459;border-radius:10px;color:#fff;min-height:110px;padding:20px 24px}
html[data-theme=juridico-marinho] body:not(.auth-screen) :is(header,.welcome) :is(h1,h2,p,small){color:#fff!important;background:transparent!important}
html[data-theme=juridico-marinho] body:not(.auth-screen) #nav{background:#102a40;border:1px solid #b89459;border-radius:10px;padding:10px}
html[data-theme=juridico-marinho] body:not(.auth-screen) #nav button{background:transparent;color:#fff;border:1px solid transparent}
html[data-theme=juridico-marinho] body:not(.auth-screen) #nav button[aria-current=page]{background:#e8c88b;color:#122e40}
html[data-theme=juridico-marinho] body:not(.auth-screen) #nav button.nav-register{border-color:#e8c88b}
html[data-theme=juridico-marinho] .nav-icon{color:#e8c88b}html[data-theme=juridico-marinho] #nav button[aria-current=page] .nav-icon{color:#102a40}
html[data-theme=juridico-marinho] body:not(.auth-screen) section{background:#fffcf7;border-color:#d9cec5;box-shadow:0 2px 6px #73675d15}
html[data-theme=juridico-marinho] body:not(.auth-screen) button:not(.module-tile):not(.law-explain){background:#102a40;color:white}
html[data-theme=juridico-marinho] body:not(.auth-screen) #nav button.secondary{background:transparent;color:white}
html[data-theme=juridico-marinho] body:not(.auth-screen) #nav button[aria-current=page]{background:#e8c88b;color:#122e40}
html[data-theme=juridico-marinho] body:not(.auth-screen) th{background:#102a40;color:#fff}
html[data-theme=juridico-marinho] body:not(.auth-screen) .metrics section{border-top:3px solid #b89459}
html[data-theme=juridico-marinho] .study-timer{--tm-accent:#102a40;--tm-surface:#fffaf3;--tm-ink:#122e40;--tm-line:#d9cec5;--tm-button-ink:#fff}
html[data-theme=juridico-marinho] .study-timer #clock{color:#122e40!important}
.theme-mini[data-preview=juridico-marinho]{--pbg:#eee8e0;--ph:#102a40;--pa:#b89459;--pc:#fffcf7}
html[data-theme=juridico]{--legal:#481d26}html[data-theme=juridico-marinho]{--legal:#102a40}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) :is(header,.welcome,#view section>h2,#view .module-shell>h2,#view .tmHero){position:relative;isolation:isolate;overflow:hidden;background:var(--legal)!important;color:white!important;border:1px solid #b39560;border-radius:9px;padding:18px 22px}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) :is(header,.welcome,#view section>h2,#view .module-shell>h2,#view .tmHero)::before{content:"";position:absolute;z-index:-1;inset:0 0 0 auto;width:45%;background:url(legal-books.webp) right center/cover no-repeat;mask-image:linear-gradient(90deg,transparent,#000 65%);pointer-events:none}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) header::before{background-image:url(legal-header.webp);background-size:auto 170%;background-position:right 22%}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) :is(.recent-studies,.metrics,.module-tile,.tmHero) h2{background:none!important;color:inherit!important;border:0!important;padding:0!important;min-height:0}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) :is(.recent-studies,.metrics,.module-tile,.tmHero) h2::before{content:none!important}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) th{background:var(--legal)!important;color:white!important}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) .header-bars i{background:#d6b578!important}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) .blue{color:var(--legal)!important}

/* 4.81: independent, explicit image layers */
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) main>header{background:var(--legal)!important;position:relative;isolation:isolate;overflow:hidden}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) main>header::before{content:""!important;position:absolute;inset:0 0 0 auto;width:min(65%,540px);height:100%;z-index:-1;pointer-events:none;background:url('legal-justice-banner.webp') right center/cover no-repeat!important;mask-image:linear-gradient(90deg,transparent,#000 55%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 55%)}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) #view :is(.welcome,section>h2,.module-shell>h2,.tmHero)::before{content:"";position:absolute;inset:0 0 0 auto;width:min(65%,540px);height:100%;z-index:-1;pointer-events:none;background:url('legal-books-482.webp') right center/cover no-repeat!important;mask-image:linear-gradient(90deg,transparent,#000 60%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 60%)}
html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) #view :is(.recent-studies,.metrics,.module-tile,.tmHero) h2::before{content:none!important}
@media(max-width:600px){html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) main>header::before,html:is([data-theme=juridico],[data-theme=juridico-marinho]) body:not(.auth-screen) #view :is(.welcome,section>h2,.module-shell>h2,.tmHero)::before{width:55%;opacity:.55}}

.integrated-metrics{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}.study-hours{white-space:nowrap;font-variant-numeric:tabular-nums}
.qa-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.qa-nav button{min-height:40px}#qeditor:not(:empty){border:1px solid #aaa;border-radius:10px;padding:16px;margin:12px 0}#qbody .item-card{margin:12px 0}#qbody #qpreview .rich-render{padding:12px 0;border-bottom:1px solid #8884}#qofficial{margin:12px 0}
/* 5.2 — seleção de ambiente */
.qa-access{max-width:760px;margin:28px auto;text-align:center;padding:28px!important}.qa-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.qa-access .qa-access-card{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:220px;white-space:normal!important;padding:22px!important;border-radius:12px!important;border:1px solid #b69a68!important;background:#faf8f4!important;color:#122e40!important}.qa-access-card span{font-size:38px;color:#98723c}.qa-access-card strong{font-size:22px}.qa-access-card small{font-size:14px;color:#53616b}.qa-access-card b{background:#122e40;color:white;padding:12px;border-radius:6px;width:100%}.qa-access-card:hover{outline:2px solid #b69a68;outline-offset:2px}@media(max-width:560px){.qa-access-grid{grid-template-columns:1fr}.qa-access{padding:16px!important}.qa-access .qa-access-card{min-height:170px}}
/* 5.3 — compact ranking cards, including the joined-groups filter */
#qrGroups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px;margin:10px 0 16px;align-items:stretch}
#qrGroups>.qr-card{min-width:0;margin:0;padding:9px 10px;border-radius:7px;display:flex;flex-direction:column;gap:6px;box-shadow:none}
#qrGroups>.qr-card-head,#qrGroups .qr-card-head{display:flex;align-items:center;gap:8px;min-width:0}
#qrGroups .qr-icon{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:5px;background:color-mix(in srgb,currentColor 9%,transparent);font-size:16px}
#qrGroups .qr-card-title{min-width:0;overflow-wrap:anywhere;line-height:1.3}
#qrGroups .qr-card-title b{font-size:13px;display:block}
#qrGroups .qr-card-title small{font-size:11px;color:inherit;opacity:.75;display:block}
#qrGroups .qr-card>.row{gap:5px;margin-top:auto;align-items:stretch}
html body #qrGroups .qr-card button{font-size:12px!important;padding:5px 8px!important;min-height:29px!important;border-radius:5px!important;white-space:normal;line-height:1.3;flex:1 1 auto}
#qrGroups .qr-description{font-size:11px;margin:0;padding:0;box-shadow:none;border:0;background:transparent}
#qrGroups .qr-description p{margin:4px 0;overflow-wrap:anywhere}
#qrGroups>p{grid-column:1/-1}
@media(min-width:1200px){#qrGroups{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:760px) and (max-width:1199px){#qrGroups{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:759px){#qrGroups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){#qrGroups{grid-template-columns:1fr}}
.qb{--qb-accent:#326b9b;--qb-bg:#e6edf7;--qb-paper:#fff;--qb-ink:#20262c;background:var(--qb-bg);color:var(--qb-ink);padding:16px;border-radius:8px}.qb-head,.qb-footer,.qb-option{display:flex;align-items:center;gap:8px}.qb-head h2{margin:0}.qb-progress,.qb-footer{background:var(--qb-accent);color:white;padding:10px;border-radius:6px}.qb-paper,.qb-draft{background:var(--qb-paper);color:var(--qb-ink);padding:18px;margin:12px 0;border-radius:6px}.qb-stem{white-space:pre-wrap;font-size:17px;margin:20px 0}.qb-option{border:1px solid #aab2ba66;margin:5px 0;border-radius:5px}.qb-option button:first-child{flex:1;text-align:left;background:transparent!important;color:var(--qb-ink)!important;border:0!important;white-space:normal}.qb-option b{margin-right:12px}.qb-option.qb-selected{outline:2px solid var(--qb-accent)}.qb-option.qb-correct{background:#d9efdf;color:#155d30}.qb-option.qb-wrong{background:#f8dddd;color:#9b2222}.qb-correct button:first-child,.qb-wrong button:first-child{color:#20262c!important}.qb-footer{position:sticky;bottom:0;justify-content:space-between;z-index:5}.qb-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.qb textarea{width:100%;min-height:65px}.qb details{padding:10px;border-top:1px solid #aab2ba66}.qb summary{cursor:pointer}.qb-head{padding:10px;background:var(--qb-accent);color:white}.qb-head h2{color:white}html[data-theme=operacional] .qb{--qb-accent:#252d35;--qb-bg:#dde1e5}html[data-theme=juridico] .qb{--qb-accent:#451c25;--qb-bg:#ece7de;--qb-paper:#fcfaf6}html[data-theme=juridico-marinho] .qb{--qb-accent:#122e40;--qb-bg:#ece7de;--qb-paper:#fcfaf6}html[data-theme=grafite] .qb,html[data-theme=escuro] .qb,html[data-theme=dourado-noturno] .qb{--qb-accent:#343a40;--qb-bg:#242629;--qb-paper:#303338;--qb-ink:#f1f1f1}html[data-theme=dourado] .qb{--qb-accent:#79602f;--qb-bg:#f0e8d6}html[data-theme=claro] .qb{--qb-accent:#454c54;--qb-bg:#f3f4f6}html[data-theme=operacional] .qb-head{background:linear-gradient(90deg,#252d35 55%,transparent),url(police-header.webp) right center/cover}html[data-theme=juridico] .qb-head{background:linear-gradient(90deg,#451c25 55%,transparent),url(legal-books.webp) right center/cover}html[data-theme=juridico-marinho] .qb-head{background:linear-gradient(90deg,#122e40 55%,transparent),url(legal-justice-banner.webp) right center/cover}

/* 6.0.4: isolated cycle dialog, independent of global theme heading rules */
html body #tmCycleAlert section{box-sizing:border-box;width:min(100%,520px);max-height:90vh;overflow:auto;padding:24px;border-radius:14px;background:#102d49!important;color:#f5dfb5!important;box-shadow:0 12px 40px #0005}html body #tmCycleAlert section h2{background:transparent!important;background-image:none!important;color:#f5dfb5!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 16px!important;text-align:center;font-size:24px}html body #tmCycleAlert section p{color:#e3e9ef!important;margin:0 0 8px}html body #tmCycleAlert section strong{display:block;color:#f5dfb5!important;font-size:36px;font-variant-numeric:tabular-nums}html body #tmCycleAlert .cycle-actions button{background:#23445f!important;color:#fff!important;border:1px solid #58738a!important;font-size:14px;padding:10px 14px;min-height:42px;box-shadow:none!important}html body #tmCycleAlert .cycle-actions button.cycle-register{background:#f5dfb5!important;color:#102d49!important;border-color:#f5dfb5!important}html body #tmCycleAlert button.cycle-cancel{display:block;margin:14px auto 0;background:transparent!important;color:#e3e9ef!important;border:1px solid #7890a3!important;box-shadow:none!important;padding:8px 20px;font-size:14px}html body #tmCycleAlert button:focus-visible{outline:2px solid #fff!important;outline-offset:3px}@media(max-width:480px){#tmCycleAlert .cycle-actions{flex-direction:column}html body #tmCycleAlert section{padding:18px}}
/* 6.0.6: readable milestone and analytics surfaces, isolated from banner styles */
html body:not(.auth-screen) #view .milestone{--ms-paper:#fcfaf6;--ms-ink:#172e40;--ms-muted:#52616c;--ms-line:#d9d5cd;--ms-accent:#926a25;background:var(--ms-paper)!important;color:var(--ms-ink)!important;border:1px solid var(--ms-line)!important;border-radius:10px;padding:18px}
html[data-theme=azul] body:not(.auth-screen) #view .milestone{--ms-paper:#f7fbff;--ms-accent:#326b9b;--ms-line:#c8d9e8}html[data-theme=juridico] body:not(.auth-screen) #view .milestone{--ms-accent:#762e40}html[data-theme=operacional] body:not(.auth-screen) #view .milestone{--ms-paper:#f4f5f6;--ms-accent:#46535e}html:is([data-theme=grafite],[data-theme=escuro],[data-theme=dourado-noturno]) body:not(.auth-screen) #view .milestone{--ms-paper:#252b33;--ms-ink:#f3f5f7;--ms-muted:#c4ccd4;--ms-line:#4c5662;--ms-accent:#e5c584}
html body:not(.auth-screen) #view .milestone :is(p,h3,b,strong,small){color:var(--ms-ink)!important}html body:not(.auth-screen) #view .milestone h3{background:none!important;border:0!important;padding:0!important;margin:20px 0 12px!important}.milestone-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.milestone-metrics>div{border:1px solid var(--ms-line);border-radius:8px;padding:12px}.milestone-metrics strong{display:block;font-size:clamp(18px,2.5vw,28px);margin-top:5px;font-variant-numeric:tabular-nums}.milestone-progress-label{display:flex;justify-content:space-between;gap:8px;font-size:13px}.milestone progress{height:12px;margin:8px 0;accent-color:var(--ms-accent)}.milestone progress::-webkit-progress-bar{background:var(--ms-line)!important}.milestone progress::-webkit-progress-value{background:var(--ms-accent)!important}.milestone progress::-moz-progress-bar{background:var(--ms-accent)}html body:not(.auth-screen) #view .milestone .milestone-note{color:var(--ms-muted)!important;font-size:13px;margin:4px 0}.milestone-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;max-height:360px}.milestone-item{display:grid;grid-template-columns:24px 1fr;gap:3px 8px;align-items:center;padding:10px;border:1px solid var(--ms-line);border-radius:7px}.milestone-item small{grid-column:2}.milestone-item.earned{border-left:3px solid #16803d}.milestone-item.upcoming{border-left:3px solid var(--ms-accent)}.milestone-item.locked{opacity:.75}.analytics-panel .donutwrap{gap:24px;padding:16px 8px}.analytics-panel .donutwrap p{margin:8px 0}.analytics-panel .performance-row{padding:10px 12px;margin:6px 0}.analytics-panel .barlabel{margin:0 0 6px;align-items:center;flex-wrap:wrap}.analytics-panel .bartrack{height:8px}.analytics-panel .barlabel b{font-size:13px;font-variant-numeric:tabular-nums}@media(max-width:540px){.milestone-metrics{grid-template-columns:1fr}.milestone-metrics>div{display:flex;align-items:center;justify-content:space-between}.milestone-metrics strong{margin:0}.analytics-panel .barlabel{align-items:flex-start;flex-direction:column;gap:3px}}

/* 6.0.7 — ações da conta na central */
.module-account-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding:16px 0 4px;border-top:1px solid rgba(128,128,128,.35)}
html body.module-central #view .module-account-footer button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:auto!important;min-height:40px;padding:8px 15px!important;margin:0!important;border-radius:7px!important;box-shadow:none!important;font-size:14px!important;background:transparent!important;color:inherit!important;border:1px solid rgba(128,128,128,.5)!important}
html body.module-central #view .module-account-footer button.account-logout{color:#b42332!important;border-color:transparent!important;background:rgba(255,255,255,.94)!important}
.module-account-footer svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.module-account-footer button:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Profile accordion, native keyboard-accessible disclosure */
#view .profile-fold{margin:12px 0;border:1px solid var(--border,#b7b7b7);border-radius:8px;background:transparent;color:inherit;overflow:hidden}
#view .profile-fold>summary{display:block;position:relative;cursor:pointer;padding:16px 48px 16px 18px;font-weight:700;color:inherit;background:transparent;list-style:none}
#view .profile-fold>summary::-webkit-details-marker{display:none}
#view .profile-fold>summary::after{content:"⌄";position:absolute;right:20px;top:18px;font-size:22px;line-height:1}
#view .profile-fold[open]>summary::after{transform:rotate(180deg)}
#view .profile-fold>summary small{display:block;font-weight:400;font-size:12px;margin-top:5px;color:inherit;opacity:.8}
#view .profile-fold>summary:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
#view .profile-fold-body{padding:16px 18px;border-top:1px solid var(--border,#b7b7b7)}

/* 6.0.9 daily goals */
.daily-goal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.daily-goal-line{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0 6px;flex-wrap:wrap}.daily-goals progress{width:100%;display:block}.daily-goals .muted{margin:6px 0 12px}@media(max-width:480px){.daily-goal-fields{grid-template-columns:1fr}}

/* 6.0.10 — biblioteca por disciplina */
#modulebody .law-discipline-group,#modulebody #lawsuggestions{border:1px solid var(--line,#c8cace);border-radius:8px;padding:12px;margin-top:10px}
#modulebody .law-discipline-group[hidden]{display:none!important}
#modulebody .law-discipline-group>summary,#modulebody #lawsuggestions>summary{display:flex;align-items:center;gap:10px;cursor:pointer;color:inherit;font-weight:650;list-style:none;min-height:28px}
#modulebody .law-discipline-group>summary::-webkit-details-marker,#modulebody #lawsuggestions>summary::-webkit-details-marker{display:none}
#modulebody .law-discipline-group>summary:before,#modulebody #lawsuggestions>summary:before{content:'›';font-size:20px;line-height:1;transition:transform .15s}
#modulebody .law-discipline-group[open]>summary:before,#modulebody #lawsuggestions[open]>summary:before{transform:rotate(90deg)}
#modulebody .law-discipline-group>summary small,#modulebody #lawsuggestions>summary small{margin-left:auto;color:inherit;opacity:.8;font-weight:400;font-size:12px}
#modulebody .law-discipline-group .official-grid{margin-bottom:0}

body.module-central .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.module-central #qbankopen{width:100%;min-width:0}@media(max-width:600px){body.module-central .module-grid{grid-template-columns:1fr}}

/* 6.0.12 — operational steel: light reading surfaces, dark photographic banners */
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view{--navy:#25313b;--sub:#48535e;--line:#aeb6bf;color:#25313b;color-scheme:light}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(section,.module-shell,.library-section,.module-form,.item-card,.flash-review,.flash-filters,.jur-filters,.history-filters,.law-layout aside,.law-reader,.jur-layout,.rich-editor,.rich-input,.share-panel,#entry){background:#e1e5e9;color:#25313b;border-color:#aeb6bf}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.item-card,.law-reader,.rich-input,.flash-review,.law-note,.jur-note){background:#f5f6f7;color:#25313b;border-color:#b6bec6}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .rich-render:not([class*="law-kind-"]){background:transparent;color:#25313b}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .mod-metric{background:#cbd2d9;color:#25313b;border:1px solid #9da8b3;border-top:3px solid #596673}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .mod-metric :is(strong,small){color:#25313b}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(label,.muted,h3,a,.blue){color:#344452}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#f7f8f9;color:#25313b;border-color:#929eaa;color-scheme:light}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(input,textarea)::placeholder{color:#52616d;opacity:1}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view button:not(.lawlink):not(.law-explain):not(.qb-option):not(.qb button):not(.study-timer button){background:#303b45;color:#fff;border-color:#596673}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view button:disabled{opacity:.55}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .module-heading{background:linear-gradient(90deg,#20272e 45%,#20272ee8 60%,transparent),url(police-cuffs.webp) right center/auto 100% no-repeat,#20272e;border-color:#78838e;color:#fff}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .module-heading :is(h2,small){color:#fff}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(td,tbody tr){color:#25313b;border-color:#aeb6bf;background:#f1f3f5}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view tbody tr:nth-child(even) td{background:#dce2e7}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view th{background:#394550;color:#fff}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .good{color:#166534}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .bad{color:#a91d26}
html[data-theme=operacional] body:not(.auth-screen) #view .study-timer{--tm-surface:#e1e5e9;--tm-ink:#25313b;--tm-line:#929eaa;--tm-accent:#46535e;--tm-button-ink:#fff}

/* 6.0.15 — central operacional em prata, preservando os banners escuros */
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile{background:linear-gradient(145deg,#e4e8ec,#cbd2d9)!important;color:#25313b!important;border:1px solid #aeb8c2!important;border-left:4px solid #788692!important;box-shadow:0 2px 5px #0002}
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile:hover{background:#f0f3f5!important;border-color:#aeb8c2!important;border-left-color:#596673!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile>span{background:linear-gradient(145deg,#596673,#394550)!important;color:#fff!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile :is(h2,p,small,b,.tile-copy){color:#25313b!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile:focus-visible{outline:3px solid #d6b578!important;outline-offset:3px}

/* 6.0.24 — cartões uniformes na central operacional */
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile{background:#e3e7eb!important;color:#25313b!important;border-left-color:#788692!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile:hover{background:#f0f3f5!important}
html[data-theme=operacional] body.module-central:not(.auth-screen) #view .module-tile>span{background:#46535e!important;color:#fff!important}

/* 6.0.18 — contraste interno operacional */
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .module-shell{background:#dce2e7!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .library-section{background:#edf0f3!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .law-discipline-group{background:#c4ced7!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .library-card{background:#fafbfc!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view #lawsuggestions{background:#c4ced7!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .mod-metric:nth-child(even){background:#d9e0e6!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .law-layout aside{background:#cbd4dc!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .law-reader{background:#f7f8fa!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .law-reader .law-article{background:#f7f8fa!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .law-reader .rich-render.law-kind-article{background:#ffffff!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view #lawtree .law-kind-article{background:#e9edf1!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#ffffff!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.flash-filters,.jur-filters,.history-filters,.module-form){background:#cbd4dc!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.item-card,.flash-review,.law-note,.jur-note){background:#fafbfc!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.law-reader,#lawtree) .law-kind-parte{background:#303b45!important;color:#ffffff!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.law-reader,#lawtree) .law-kind-livro{background:#aebbc7!important;color:#17212a!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.law-reader,#lawtree) .law-kind-titulo{background:#c5cfd8!important;color:#17212a!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.law-reader,#lawtree) .law-kind-subtitulo{background:#d3dce4!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.law-reader,#lawtree) .law-kind-capitulo{background:#dce3e9!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.law-reader,#lawtree) .law-kind-secao{background:#e5eaf0!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(.law-reader,#lawtree) .law-kind-subsecao{background:#edf0f3!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .law-reader .rich-render.law-kind-article{padding:12px;border:1px solid #d1d8df;border-radius:6px}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .module-shell :is(h2,h3):not(.module-heading h2){color:#25313b!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .module-heading h2{color:#fff!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view .library-card{background:#fafbfc!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view :is(input,textarea)::placeholder{color:#52616d!important}
html[data-theme=operacional] body:not(.auth-screen):not(.module-central) #view #lawtree .law-kind-article:hover{background:#b9c7d3!important}

/* 6.0.19 — operational form and semantic contrast */
html[data-theme=operacional] body:not(.auth-screen) #view #entry{background:#edf0f3!important;border-color:#a5b0bb!important;color:#25313b!important}
html[data-theme=operacional] body:not(.auth-screen) #view #entry :is(input,select,textarea){background:#f8fafb!important;color:#25313b!important;border:1px solid #8c9aa6!important;color-scheme:light!important}
html[data-theme=operacional] body:not(.auth-screen) #view #entry :is(input,select,textarea):focus{outline:2px solid #596e80;outline-offset:1px}
html[data-theme=operacional] body:not(.auth-screen) #view #entry #c{color:#167044!important;background:#f2f8f4!important;border-color:#8ba99a!important}
html[data-theme=operacional] body:not(.auth-screen) #view #entry label.good,html[data-theme=operacional] body:not(.auth-screen) #view :is(td.good,p.good,strong.good),html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies td.good,html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(1),html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(1) strong{color:#167044!important;font-weight:650}
html[data-theme=operacional] body:not(.auth-screen) #view :is(td.bad,p.bad,strong.bad),html[data-theme=operacional] body:not(.auth-screen) #view .recent-studies td.bad,html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(2),html[data-theme=operacional] body:not(.auth-screen) #view .metrics section:nth-child(2) strong{color:#b4232d!important;font-weight:650}
html[data-theme=operacional] body:not(.auth-screen) #view #entry p.bad{background:#f8e5e7!important;color:#a51f29!important;border:1px solid #d7a4aa!important;border-left:4px solid #b4232d!important}
html[data-theme=operacional] body:not(.auth-screen) #view #discipline-history th{background:#36434f!important;color:#fff!important}
html[data-theme=operacional] body:not(.auth-screen) #view #discipline-history tbody tr:nth-child(odd) td{background:#f5f7f9!important}
html[data-theme=operacional] body:not(.auth-screen) #view #discipline-history tbody tr:nth-child(even) td{background:#e0e6eb!important}

/* 6.0.20: compact entry metrics */
.entry-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}.entry-counts label{min-width:0}.entry-counts input{width:100%;box-sizing:border-box}.entry-wrong{color:#b4232d!important}.entry-wrong output{display:block;margin-top:6px;padding:12px;border:1px solid #d7a4aa;border-radius:6px;background:#f8e5e7;color:#a51f29;font-weight:700;min-height:44px;box-sizing:border-box}.entry-yield{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin:12px 0;border:1px solid #a5b0bb;border-radius:8px}.entry-yield strong{display:block;font-size:1.6rem}.entry-donut{width:76px;height:76px;flex:none;border-radius:50%;background:#aeb8c2;position:relative}.entry-donut.has-result{background:conic-gradient(#167044 var(--entry-rate),#b4232d 0)}.entry-donut:after{content:'';position:absolute;inset:15px;border-radius:50%;background:#f5f7f9}html[data-theme=policial] .entry-yield{background:#edf0f3;color:#25313b}html[data-theme=policial] .entry-yield strong{color:#167044}

.tmStage{position:relative}#tmWallClock{text-align:right;font-size:.85rem;font-weight:600;font-variant-numeric:tabular-nums;margin-bottom:8px}#tmWallClock[hidden]{display:none}

/* 6.0.23 — marca e slogan em texto real, sem frase antiga embutida */
html body.auth-screen .login-brand{background:radial-gradient(ellipse at 0 115%,#0753a7 0,transparent 58%),linear-gradient(150deg,#07366c,#03142e 65%,#07366c)!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;box-sizing:border-box;color:#fff!important}
html body.auth-screen .login-brand h2,html body.auth-screen .login-brand p{position:static;width:auto;height:auto;overflow:visible;clip-path:none;color:#fff!important;margin:0;text-align:center}
html body.auth-screen .login-brand h2{font-size:clamp(24px,calc(55 * var(--u)),48px);line-height:1.1;display:flex;align-items:center;justify-content:center;gap:10px}
html body.auth-screen .login-brand p{font-size:clamp(12px,calc(22 * var(--u)),18px);line-height:1.35;max-width:100%;font-weight:400}
html body.auth-screen .login-brand .brand-bars{height:0.8em;gap:4px}html body.auth-screen .login-brand .brand-bars i{width:.20em;height:40%}html body.auth-screen .login-brand .brand-bars i:nth-child(2){height:70%}html body.auth-screen .login-brand .brand-bars i:nth-child(3){height:100%}

/* 6.0.26 — anel operacional com centro transparente, integrado ao painel */
html[data-theme=operacional] body:not(.auth-screen) #view .donut{position:relative;background:transparent!important;box-shadow:none!important}
html[data-theme=operacional] body:not(.auth-screen) #view .donut::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--donut-fill);mask-image:radial-gradient(circle,transparent 0 74px,#000 75px);-webkit-mask-image:radial-gradient(circle,transparent 0 74px,#000 75px);pointer-events:none}
html[data-theme=operacional] body:not(.auth-screen) #view .donut>div{position:relative;background:transparent!important;color:#25313b!important}
html[data-theme=operacional] body:not(.auth-screen) #view .donut strong{color:#25313b!important}
html[data-theme=operacional] body:not(.auth-screen) #view .donut small{color:#48535e!important}

.daily-export-footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--border,#aab4bf)}.daily-export-footer p{margin-bottom:0}

/* 6.0.27: desempenho compacto */
.performance-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.performance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.performance-card{border:1px solid var(--line,#aab4be);border-radius:10px;padding:14px;background:rgba(128,128,128,.08);min-width:0;display:flex;flex-direction:column;gap:10px}.performance-card h4{margin:0;font-size:15px;color:inherit;overflow-wrap:anywhere}.performance-content{display:flex;align-items:center;gap:12px;flex:1}.performance-ring{width:86px;flex:0 0 86px;position:relative;aspect-ratio:1;display:grid;place-items:center}.performance-ring svg{position:absolute;inset:0;width:100%;height:100%}.performance-ring strong{font-size:15px;z-index:1;color:inherit}.performance-total{display:block;font-size:24px}.performance-card footer{border-top:1px solid var(--line,#aab4be);padding-top:9px;font-size:12px;color:inherit}.performance-card button{align-self:flex-start;font-size:12px;padding:7px 10px}html[data-theme=policial] .performance-card,html[data-theme=operacional] .performance-card{background:#f5f7f9;color:#25313b;border-color:#aab4be}@media(max-width:1100px){.performance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.performance-grid,.performance-filters{grid-template-columns:1fr}}

/* 6.0.28 — perfil compacto e legível */
#view .profile-layout{display:grid;gap:12px;min-width:0}
#view .profile-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
#view .profile-card{margin:0;min-width:0;padding:16px;box-sizing:border-box}
#view .profile-card h2{margin-top:0}
#view .profile-card form{display:grid;gap:10px}
#view .profile-card form button{justify-self:start}
#view .profile-card form p{margin:0}
#view .profile-connected{font-size:13px;font-weight:600}
#view .profile-logout{display:flex;justify-content:flex-end;border-top:1px solid #aab4be;margin-top:16px;padding-top:12px}
#view .profile-logout #logout{background:#fff!important;color:#a51f29!important;border:1px solid #c9a1a5!important}
#view .profile-layout .profile-fold{margin:0;background:var(--card,rgba(128,128,128,.12))}
#view .profile-backup{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#view .profile-backup h3,#view .profile-backup p{margin:0 0 5px}
html[data-theme=operacional] body:not(.auth-screen) #view .profile-layout .profile-fold{background:#e3e7eb!important;color:#25313b!important;border-color:#a5b0bb!important}
html[data-theme=operacional] body:not(.auth-screen) #view .profile-layout .profile-fold>summary{background:#cbd4dc!important;color:#25313b!important}
html[data-theme=operacional] body:not(.auth-screen) #view .profile-layout .profile-fold>summary small{color:#46535e!important;opacity:1}
html[data-theme=operacional] body:not(.auth-screen) #view .profile-layout .profile-fold-body{background:#edf0f3!important;color:#25313b!important}
html[data-theme=operacional] body:not(.auth-screen) #view .profile-connected{color:#167044!important}
html[data-theme=operacional] body:not(.auth-screen) #view .profile-card{background:#e3e7eb!important;color:#25313b!important}
html[data-theme=operacional] body:not(.auth-screen) #view .profile-card :is(input:not([type=checkbox]),select){background:#fff!important;color:#25313b!important;color-scheme:light}
@media(max-width:850px){#view .profile-top{grid-template-columns:1fr}}

/* 6.0.29 — perfil consistente nos nove temas */
html[data-theme=azul] #view .profile-layout{--pf-card:#f7faff;--pf-fold:#e0ebf6;--pf-ink:#173d63;--pf-muted:#435d77;--pf-line:#b8cce8;--pf-input:#ffffff;--pf-good:#166534;--pf-bad:#a51f29;--pf-scheme:light;}
html[data-theme=claro] #view .profile-layout{--pf-card:#ffffff;--pf-fold:#edf0f2;--pf-ink:#252629;--pf-muted:#50565c;--pf-line:#cdd2d7;--pf-input:#ffffff;--pf-good:#166534;--pf-bad:#a51f29;--pf-scheme:light;}
html[data-theme=grafite] #view .profile-layout{--pf-card:#292c30;--pf-fold:#373c42;--pf-ink:#f3f4f6;--pf-muted:#c5cbd2;--pf-line:#555b63;--pf-input:#202328;--pf-good:#86efac;--pf-bad:#fda4af;--pf-scheme:dark;}
html[data-theme=escuro] #view .profile-layout{--pf-card:#142b46;--pf-fold:#203b59;--pf-ink:#eef6ff;--pf-muted:#b8cde3;--pf-line:#415773;--pf-input:#10243a;--pf-good:#86efac;--pf-bad:#fda4af;--pf-scheme:dark;}
html[data-theme=dourado] #view .profile-layout{--pf-card:#fffaf0;--pf-fold:#f1e4ca;--pf-ink:#493619;--pf-muted:#75664f;--pf-line:#d9bf89;--pf-input:#fffdf8;--pf-good:#166534;--pf-bad:#a51f29;--pf-scheme:light;}
html[data-theme=dourado-noturno] #view .profile-layout{--pf-card:#29251f;--pf-fold:#3b3327;--pf-ink:#f5e4c5;--pf-muted:#d5c4a6;--pf-line:#766143;--pf-input:#211e19;--pf-good:#86efac;--pf-bad:#fda4af;--pf-scheme:dark;}
html[data-theme=juridico] #view .profile-layout{--pf-card:#fcfaf6;--pf-fold:#e9ded9;--pf-ink:#451c25;--pf-muted:#73675d;--pf-line:#d4c9ba;--pf-input:#ffffff;--pf-good:#166534;--pf-bad:#a51f29;--pf-scheme:light;}
html[data-theme=juridico-marinho] #view .profile-layout{--pf-card:#fcfaf6;--pf-fold:#e1e5e5;--pf-ink:#122e40;--pf-muted:#52616d;--pf-line:#d4c9ba;--pf-input:#ffffff;--pf-good:#166534;--pf-bad:#a51f29;--pf-scheme:light;}
html[data-theme=operacional] #view .profile-layout{--pf-card:#e3e7eb;--pf-fold:#cbd4dc;--pf-ink:#25313b;--pf-muted:#46535e;--pf-line:#a5b0bb;--pf-input:#ffffff;--pf-good:#167044;--pf-bad:#a51f29;--pf-scheme:light;}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-card{background:var(--pf-card)!important;color:var(--pf-ink)!important;border-color:var(--pf-line)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-fold{background:var(--pf-card)!important;color:var(--pf-ink)!important;border-color:var(--pf-line)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-fold>summary{background:var(--pf-fold)!important;color:var(--pf-ink)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-fold>summary small{color:var(--pf-muted)!important;opacity:1}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-fold-body{background:var(--pf-card)!important;color:var(--pf-ink)!important;border-color:var(--pf-line)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-card :is(input:not([type=checkbox]),select){background:var(--pf-input)!important;color:var(--pf-ink)!important;border-color:var(--pf-line)!important;color-scheme:var(--pf-scheme)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-card :is(label,p,h3){color:var(--pf-ink)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-connected{color:var(--pf-good)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-logout #logout{background:var(--pf-input)!important;color:var(--pf-bad)!important;border-color:var(--pf-line)!important}
html[data-theme] body:not(.auth-screen) #view .profile-layout .profile-logout{border-color:var(--pf-line)!important}

/* 6.0.30 — superfícies coordenadas e totais */
html[data-theme=azul] #view{--u30-surface:#f0f5fb;--u30-group:#dce9f7;--u30-filter:#e7eff9;--u30-input:#fff;--u30-ink:#173d63;--u30-line:#bdcfe8;--u30-accent:#326b9b;--u30-buttonink:#fff;--u30-good:#167044;--u30-bad:#a51f29;--u30-scheme:light;--u30-wrong:#f9ecea;--u30-right:#edf5ee;}
html[data-theme=claro] #view{--u30-surface:#f5f5f5;--u30-group:#e1e5e9;--u30-filter:#eceff1;--u30-input:#fff;--u30-ink:#252629;--u30-line:#cdd2d7;--u30-accent:#42464b;--u30-buttonink:#fff;--u30-good:#167044;--u30-bad:#a51f29;--u30-scheme:light;--u30-wrong:#f9ecea;--u30-right:#edf5ee;}
html[data-theme=grafite] #view{--u30-surface:#292c30;--u30-group:#3b4148;--u30-filter:#33383e;--u30-input:#202328;--u30-ink:#f3f4f6;--u30-line:#555b63;--u30-accent:#c4c7cc;--u30-buttonink:#15171a;--u30-good:#86efac;--u30-bad:#fda4af;--u30-scheme:dark;--u30-wrong:#402629;--u30-right:#203b30;}
html[data-theme=escuro] #view{--u30-surface:#142b46;--u30-group:#284562;--u30-filter:#203b59;--u30-input:#10243a;--u30-ink:#eef6ff;--u30-line:#415773;--u30-accent:#91c5fa;--u30-buttonink:#15171a;--u30-good:#86efac;--u30-bad:#fda4af;--u30-scheme:dark;--u30-wrong:#402629;--u30-right:#203b30;}
html[data-theme=dourado] #view{--u30-surface:#fff7e7;--u30-group:#efdfbd;--u30-filter:#f5e9d0;--u30-input:#fffdf8;--u30-ink:#493619;--u30-line:#d9bf89;--u30-accent:#946315;--u30-buttonink:#fff;--u30-good:#167044;--u30-bad:#a51f29;--u30-scheme:light;--u30-wrong:#f9ecea;--u30-right:#edf5ee;}
html[data-theme=dourado-noturno] #view{--u30-surface:#29251f;--u30-group:#463a29;--u30-filter:#383025;--u30-input:#211e19;--u30-ink:#f5e4c5;--u30-line:#766143;--u30-accent:#eac477;--u30-buttonink:#15171a;--u30-good:#86efac;--u30-bad:#fda4af;--u30-scheme:dark;--u30-wrong:#402629;--u30-right:#203b30;}
html[data-theme=operacional] #view{--u30-surface:#e1e5e9;--u30-group:#c4ced7;--u30-filter:#d3dbe2;--u30-input:#fafbfc;--u30-ink:#25313b;--u30-line:#a5b0bb;--u30-accent:#46535e;--u30-buttonink:#fff;--u30-good:#167044;--u30-bad:#a51f29;--u30-scheme:light;--u30-wrong:#f9ecea;--u30-right:#edf5ee;}
html[data-theme=juridico] #view{--u30-surface:#fffaf3;--u30-group:#e9d9d9;--u30-filter:#efe4d8;--u30-input:#fffefd;--u30-ink:#451c25;--u30-line:#d4c9ba;--u30-accent:#481d26;--u30-buttonink:#fff;--u30-good:#167044;--u30-bad:#a51f29;--u30-scheme:light;--u30-wrong:#f9ecea;--u30-right:#edf5ee;}
html[data-theme=juridico-marinho] #view{--u30-surface:#fffaf3;--u30-group:#d5dfe5;--u30-filter:#efe6d8;--u30-input:#fffefd;--u30-ink:#122e40;--u30-line:#d4c9ba;--u30-accent:#102a40;--u30-buttonink:#fff;--u30-good:#167044;--u30-bad:#a51f29;--u30-scheme:light;--u30-wrong:#f9ecea;--u30-right:#edf5ee;}
html[data-theme] body:not(.auth-screen):not(.module-central) #view :is(#entry,.library-section){background:var(--u30-surface)!important;color:var(--u30-ink)!important;border-color:var(--u30-line)!important;border-radius:12px}
html[data-theme] body:not(.auth-screen):not(.module-central) #view :is(.law-discipline-group,.share-panel){background:var(--u30-group)!important;color:var(--u30-ink)!important;border-color:var(--u30-line)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view :is(.library-card,.law-discipline-group .item-card){background:var(--u30-input)!important;color:var(--u30-ink)!important;border-color:var(--u30-line)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view :is(.history-filters,.entry-yield,.performance-more){background:var(--u30-filter)!important;color:var(--u30-ink)!important;border-color:var(--u30-line)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view :is(#entry,.history-filters,.share-panel) :is(label,strong,small){color:var(--u30-ink)}
html[data-theme] body:not(.auth-screen):not(.module-central) #view :is(#entry,.history-filters,.share-panel) :is(input,select){background:var(--u30-input)!important;color:var(--u30-ink)!important;border-color:var(--u30-line)!important;color-scheme:var(--u30-scheme)}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #entry #c{background:var(--u30-right)!important;color:var(--u30-good)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #entry label.good{color:var(--u30-good)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #entry .entry-wrong{color:var(--u30-bad)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #entry .entry-wrong output{background:var(--u30-wrong)!important;color:var(--u30-bad)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #entry button:not(.secondary){background:var(--u30-accent)!important;color:var(--u30-buttonink)!important;width:100%}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #entry .entry-yield{justify-content:center;flex-direction:row-reverse;gap:20px}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #entry .entry-donut:after{background:var(--u30-filter)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #discipline-history tbody tr:nth-child(even) td{background:var(--u30-filter)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view #discipline-history tbody tr:nth-child(odd) td{background:var(--u30-surface)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view table tfoot .topic-total td{background:var(--u30-accent)!important;color:var(--u30-buttonink)!important;font-weight:700;border-color:var(--u30-line)!important}
html[data-theme] body:not(.auth-screen):not(.module-central) #view  .performance-more summary{cursor:pointer;font-weight:650;padding:12px}
 .performance-more{margin-top:12px;border:1px solid var(--u30-line);border-radius:9px;padding:4px 12px 12px}.performance-more:not([open]){padding-bottom:4px}.performance-more .performance-grid{margin-top:8px}

/* 6.0.32 — independent navigation separator, all themes */
html[data-theme] body:not(.auth-screen) #nav .nav-section-divider{display:block;flex:none;align-self:stretch;height:1px;margin:5px 2px;background:currentColor;opacity:.35;pointer-events:none}
html[data-theme] body:not(.auth-screen) #nav button.nav-modules:not(.module-tile):not(.law-explain){border-top:0!important;margin-top:0!important}
@media(max-width:760px){html[data-theme] body:not(.auth-screen) #nav .nav-section-divider{width:1px;height:auto;min-height:28px;margin:3px 4px}html[data-theme] body:not(.auth-screen) #nav button.nav-modules:not(.module-tile):not(.law-explain){border-left:0!important}}
/* 6.0.32 — grouped navigation, inherits each theme */
html[data-theme] body:not(.auth-screen) #nav .nav-category{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;opacity:.78;margin:10px 8px 3px;white-space:nowrap;color:inherit}
#nav .nav-category:after{content:'';height:1px;background:currentColor;opacity:.35;flex:1}
html[data-theme] body:not(.auth-screen) #nav .nav-group{margin:0;padding:0;border:0;background:transparent;color:inherit;box-shadow:none;min-width:0}
#nav .nav-group summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:11px 10px;font-size:12px;font-weight:700;list-style:none;color:inherit;border-radius:6px}
#nav .nav-group summary::-webkit-details-marker{display:none}
#nav .nav-group summary:after{content:'›';margin-left:auto;font-size:16px;line-height:1}
#nav .nav-group[open] summary:after{transform:rotate(90deg)}
#nav .nav-group summary:hover{background:#8882}
#nav .nav-children{display:grid;gap:3px;margin:2px 0 5px 14px;padding-left:5px;border-left:1px solid #8886}
#nav .nav-children button{width:100%;font-size:12px}
#nav .nav-group summary:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
@media(max-width:760px){#nav .nav-category{display:none!important}#nav .nav-group{flex:none}#nav .nav-group summary{white-space:nowrap}#nav .nav-children{margin-left:4px}#nav .nav-group[open]{min-width:150px}}

/* 6.0.35 — always visible navigation */
html[data-theme] body:not(.auth-screen) #nav{--nav-label:#c2cbd4;--nav-ink:#fff}
html:is([data-theme=azul],[data-theme=claro],[data-theme=dourado]) body:not(.auth-screen) #nav{--nav-label:#475569;--nav-ink:#17324a}
html[data-theme] body:not(.auth-screen) #nav .nav-category{color:var(--nav-label)!important;opacity:1;margin:8px 8px 2px;font-size:10px}
html[data-theme] body:not(.auth-screen) #nav button[data-tab]:not([aria-current=page]):not(.nav-register),html[data-theme] body:not(.auth-screen) #nav button.nav-modules{color:var(--nav-ink)!important}
html[data-theme] body:not(.auth-screen) #nav .nav-section-divider{background:var(--nav-label);opacity:.55}

/* 6.0.36 — monthly calendar with inline week expansion */
#view .monthly-cal{margin-top:12px;border:1px solid var(--u30-line);border-radius:9px;overflow:hidden;color:var(--u30-ink);background:var(--u30-surface)}
#view .cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:var(--u30-accent);color:var(--u30-buttonink)}
#view .cal-head button{background:transparent!important;color:var(--u30-buttonink)!important;border:1px solid currentColor!important;padding:3px 12px;min-height:30px;font-size:18px}
#view .cal-switch{display:flex;justify-content:flex-end;gap:6px;padding:8px}#view .cal-switch button{background:var(--u30-filter)!important;color:var(--u30-ink)!important;border:1px solid var(--u30-line)!important;padding:6px 12px}#view .cal-switch button[aria-pressed=true]{background:var(--u30-accent)!important;color:var(--u30-buttonink)!important}
#view .cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:2px 5px}#view .cal-weekdays{background:var(--u30-accent);color:var(--u30-buttonink);text-align:center;font-size:12px;padding:6px 5px}
#view .cal-week button.cal-day{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;min-height:104px;white-space:normal;text-align:left;padding:7px;background:var(--u30-filter)!important;color:var(--u30-ink)!important;border:1px solid var(--u30-line)!important;border-radius:5px;box-shadow:none!important;font-size:12px;line-height:1.25}
#view .cal-week button.cal-day.has-study{background:var(--u30-right)!important}#view .cal-week button.cal-day.cal-selected{outline:2px solid var(--u30-accent);outline-offset:-2px}#view .cal-day strong{font-size:15px;color:var(--u30-ink)!important}#view .cal-day small{font-size:10px}#view .cal-date{font-weight:700}#view .cal-time{font-size:10px;font-variant-numeric:tabular-nums}#view .cal-empty{background:var(--u30-filter);opacity:.45;border-radius:5px}
#view .monthly-cal .good{color:var(--u30-good)!important}#view .monthly-cal .bad{color:var(--u30-bad)!important}#view .cal-details{margin:5px;border:1px solid var(--u30-line);border-radius:7px;overflow:hidden;text-align:left;white-space:normal}#view .cal-detail-body{padding:12px;background:var(--u30-group);color:var(--u30-ink)}#view .cal-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:6px;margin-bottom:10px}#view .cal-summary>span{padding:8px;background:var(--u30-input);border-radius:5px;font-size:12px}#view .cal-summary b{display:block;font-size:17px}#view .cal-record{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px;margin:5px 0;background:var(--u30-input);border:1px solid var(--u30-line);border-radius:6px}#view .cal-record small{display:block}#view .cal-record-values{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:12px}#view .cal-close{margin-top:8px;width:100%;background:var(--u30-accent)!important;color:var(--u30-buttonink)!important}
@media(max-width:600px){#view .cal-week{gap:2px;padding:2px}#view .cal-week button.cal-day{padding:3px;min-height:87px;font-size:10px;gap:2px}#view .cal-day strong{font-size:12px}#view .cal-day strong small{display:none}#view .cal-time{font-size:9px;overflow-wrap:anywhere}#view .cal-weekdays{font-size:10px}#view .cal-detail-body{padding:7px}}
/* 6.0.37 — Revisões compactas */
.review-panel .review-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.review-panel .review-heading h2,.review-panel .review-heading h3{margin:0}.review-panel .review-summary,.review-panel .review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.review-panel .review-summary>div,.review-panel button.review-card{border:1px solid var(--review-border);background:var(--review-bg)!important;color:#172c40!important;border-radius:6px;box-shadow:none;padding:9px 11px;text-align:left;min-width:0}.review-panel .review-white{--review-bg:#fff;--review-border:#d1d5db;--review-ink:#233e53}.review-panel .review-yellow{--review-bg:#fff4d2;--review-border:#dfc16b;--review-ink:#805300}.review-panel .review-red{--review-bg:#fbe2e2;--review-border:#dba0a0;--review-ink:#a51d28}.review-panel .review-summary>div,.review-panel button.review-card{display:flex;flex-direction:column;gap:3px;align-items:flex-start;justify-content:flex-start}.review-panel .review-summary strong{font-size:22px;color:var(--review-ink)!important}.review-panel button.review-card strong{font-size:13px;line-height:1.25;color:#172c40!important;overflow-wrap:anywhere}.review-panel button.review-card b{font-size:13px;color:var(--review-ink)!important}.review-panel button.review-card small,.review-panel .review-summary small{font-size:11px;color:#475569!important}.review-panel .review-topic{font-size:12px;line-height:1.3;color:#172c40!important;overflow-wrap:anywhere}.review-panel button.review-card[aria-expanded=true]{outline:2px solid #a17b40;outline-offset:-2px}.review-panel .review-detail{grid-column:1/-1;border:1px solid #a17b40;border-radius:6px;padding:12px;min-width:0}.review-panel .review-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.review-panel .review-filters label{min-width:0}.review-panel .review-settings{border:1px solid #a17b40;border-radius:6px;padding:12px;margin:10px 0}.review-panel .review-actions{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.review-panel .review-summary{margin:12px 0}.review-panel .review-detail .scroll{max-width:100%;overflow-x:auto}@media(max-width:900px){.review-panel .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.review-panel .review-grid,.review-panel .review-filters{grid-template-columns:minmax(0,1fr)}.review-panel .review-summary>div{padding:7px}}

/* 6.0.38 — Revisões: tipografia e densidade */
.review-panel .review-heading #reviewConfig{background:transparent!important;color:inherit!important;border:0!important;box-shadow:none!important;font-size:12px;font-weight:500;padding:5px 7px;min-height:30px;opacity:.85}
.review-panel .review-summary{display:flex;flex-wrap:wrap;gap:8px 20px;margin:5px 0 8px;padding:0 0 8px;border-bottom:1px solid currentColor;border-bottom-color:color-mix(in srgb,currentColor 15%,transparent)}
.review-panel .review-summary>div{display:flex;flex-direction:row;align-items:center;gap:5px;background:transparent!important;border:0!important;padding:0!important;color:inherit!important;font-size:11px;font-weight:400;min-height:0}
.review-panel .review-summary strong{font-size:12px;color:inherit!important;font-weight:600}
.review-panel .review-dot{width:7px;height:7px;border-radius:50%;background:#8796a5;flex:none}.review-panel .review-yellow .review-dot{background:#d6a328}.review-panel .review-red .review-dot{background:#c84a50}
.review-panel button.review-card{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:grid;grid-template-rows:auto auto 1fr auto;gap:5px;padding:9px 12px;min-height:116px;height:100%;border-radius:8px;transition:border-color .16s ease,box-shadow .16s ease;align-items:start;justify-content:stretch;font-weight:400}
.review-panel button.review-card strong{font-size:14px;font-weight:600;line-height:1.25}.review-panel .review-white{--review-ink:#326b9b}.review-panel .review-days{display:flex;align-items:baseline;gap:5px;color:#526477;font-size:11px;font-weight:400}.review-panel button.review-card .review-days b{font-size:25px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
.review-panel .review-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #d4dae1;padding-top:6px;min-width:0;color:#526477;font-size:11px}.review-panel .review-date,.review-panel .review-topic{display:flex;align-items:center;gap:4px;min-width:0;font-size:11px;font-weight:400}.review-panel .review-date{white-space:nowrap}.review-panel .review-topic{flex:1 1 90px}.review-panel .review-topic span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-panel .review-meta svg{width:13px;height:13px;flex:none;color:#64748b}.review-panel .review-link{display:flex;justify-content:space-between;align-items:center;color:#285e91;font-size:11px;font-weight:500;line-height:1.3}.review-panel button.review-card:hover,.review-panel button.review-card:focus-visible{border-color:#7896b2;box-shadow:0 0 0 1px #7896b2}.review-panel .review-detail{animation:reviewReveal .18s ease-out}@keyframes reviewReveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.review-panel button.review-card{transition:none}.review-panel .review-detail{animation:none}}
