:root{color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#e9eff0;background:#0b1015}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{display:flex;flex-direction:column}a{color:inherit;text-decoration:none}.masthead{flex:none;display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:center;padding:14px 24px;background:#10171e;border-bottom:1px solid #34424b;z-index:2;box-shadow:0 3px 18px #0003}.brand{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.4;letter-spacing:.6px;color:#aebbc4}.brand strong{display:block;font-size:20px;letter-spacing:.2px;color:#e9eff0}.mark{font-size:31px;color:#a8d4bb}nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.channel{--accent:#a8d4bb;display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:66px;padding:10px 18px;border:1px solid #2a353e;border-bottom:3px solid transparent;border-radius:7px;background:#141d25;color:#adb8c2;transition:background .15s,border-color .15s}.channel span{font-size:18px;font-weight:650;letter-spacing:.2px}.channel small{font-size:11px;font-weight:400;color:#93a2b0}.senado{--accent:#86d6a1}.estadual{--accent:#d8b97b}.federal{--accent:#8bbfe4}.channel:hover{background:#1c2933;border-color:#526574}.channel[aria-current=page]{background:color-mix(in srgb,var(--accent) 12%,#10171e);border-color:color-mix(in srgb,var(--accent) 35%,#2a353e);border-bottom-color:var(--accent);color:var(--accent)}.channel[aria-current=page] small{color:#d2dcdf}a:focus-visible,button:focus-visible{outline:2px solid #c6dfed;outline-offset:3px}#workspace{position:relative;flex:1;min-height:0}iframe{display:block;width:100%;height:100%;border:0;background:#0b1015}#frame-status{position:absolute;left:20px;top:12px;z-index:1;color:#b5c3ce;background:#10171ef2;padding:9px 14px;border:1px solid #34424b;border-radius:6px;font-size:12px;pointer-events:none}#frame-error{position:absolute;left:20px;bottom:20px;right:20px;z-index:1;background:#211d16;color:#eedbb8;border:1px solid #7d6947;padding:14px;border-radius:6px;font-size:13px}#frame-error button{font:inherit;color:inherit;background:none;border:0;text-decoration:underline;cursor:pointer}.not-found{padding:48px;color:#c8d4dd}[hidden]{display:none!important}
@media(max-width:900px){.masthead{grid-template-columns:135px minmax(0,1fr);gap:12px;padding:10px 14px}.brand strong{font-size:17px}.mark{font-size:24px}.channel{padding:10px;min-height:64px}.channel span{font-size:16px}.channel small{font-size:10px}}
@media(max-width:620px){.masthead{grid-template-columns:1fr;gap:8px;padding:9px 10px}.brand{font-size:11px;gap:6px}.brand strong{display:inline;font-size:12px;margin-left:4px}.mark{font-size:16px}nav{gap:6px}.channel{min-height:46px;padding:9px 5px;text-align:center;border-radius:5px}.channel span{font-size:14px}.channel small{display:none}}
/* A navegação pertence ao portal; a identidade fica discreta na lateral. */
.masthead{grid-template-columns:minmax(0,1fr) 245px;gap:24px;padding:10px 22px}nav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.identity{display:flex;align-items:center;gap:12px}.brand{gap:7px;font-size:11px;letter-spacing:0;white-space:nowrap}.brand img{object-fit:contain;flex:none}.brand small{display:block;font-size:9px;color:#8495a4}.socials{display:grid;grid-template-columns:repeat(2,24px);gap:7px}.socials a{color:#9dadb9;display:flex;align-items:center;gap:5px}.socials a:hover{color:#fff}.socials svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}.socials span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.portal-footer{flex:none;min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 22px;background:#10171e;border-top:1px solid #27343e;font-size:10px;color:#8c9eac}.context summary{cursor:pointer}.context summary:hover{color:#dbe5ea}.context article{position:absolute;bottom:31px;right:16px;z-index:4;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 160px);overflow:auto;padding:22px 26px;background:#141e27;border:1px solid #526574;border-radius:10px;color:#c2cfd7;box-shadow:0 8px 45px #0008;font-size:14px;line-height:1.7}.context h1{font-size:21px;color:#edf4f5;margin:0 0 12px}.context a{text-decoration:underline;text-underline-offset:3px}.context summary:focus-visible{outline:2px solid #c6dfed;outline-offset:3px}
@media(max-width:1100px){.masthead{grid-template-columns:minmax(0,1fr) 174px;gap:12px;padding:9px 12px}.brand img{width:30px;height:30px}.brand small{display:none}.identity{gap:7px}.brand{font-size:10px}.socials{gap:5px;grid-template-columns:repeat(2,20px)}.channel{padding:9px 10px}.channel small{font-size:10px}.channel span{font-size:16px}}
@media(max-width:720px){.masthead{grid-template-columns:1fr;gap:7px;padding:7px 10px}.identity{grid-row:1;justify-content:flex-end}.brand img{width:23px;height:23px}.brand{font-size:10px}.brand small{display:inline;margin-left:7px}.socials{display:flex;gap:12px;margin-left:10px}.socials svg{width:17px;height:17px}.channel{min-height:43px;text-align:center;padding:7px 4px}.channel span{font-size:13px}.channel small{display:none}nav{gap:6px}.portal-footer{padding:4px 10px;font-size:9px;gap:6px}.context article{max-height:calc(100dvh - 145px);padding:18px;font-size:13px}}
/* Direção final: uma testeira de navegação e uma assinatura discreta no rodapé. */
.masthead{grid-template-columns:minmax(0,1fr);padding:8px 18px;gap:0}.channel{min-height:56px;padding:8px 16px}.portal-footer{min-height:32px;padding:3px 18px}.portal-footer .identity{display:flex;gap:12px}.portal-footer .brand img{width:22px;height:22px}.portal-footer .brand{font-size:10px}.portal-footer .socials{display:flex;gap:13px;margin:0}.portal-footer .socials svg{width:16px;height:16px}.author{font-size:10px;color:#879aa7}.context article{bottom:39px}
@media(max-width:720px){.masthead{padding:6px 9px}.channel{min-height:42px;padding:7px 4px}.portal-footer{padding:3px 9px}.portal-footer .identity{gap:8px}.portal-footer .socials{gap:9px}.author{display:none}.portal-footer .brand img{width:19px;height:19px}.portal-footer .brand{font-size:9px}.context summary{font-size:9px}.context article{bottom:38px}}
/* Três blocos: marca à esquerda, fontes no centro geométrico e autoria à direita. */
.portal-footer{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;min-height:34px;padding:4px 18px}.footer-brand,.footer-creator{display:flex;align-items:center;gap:12px;min-width:0}.footer-brand{justify-self:start}.footer-creator{justify-self:end;justify-content:flex-end;text-align:right}.byline{font-size:10px;line-height:1.45}.byline strong{display:inline;color:#becbd4;font-size:inherit;font-weight:600;white-space:nowrap}.portal-footer .socials{flex:none}.portal-footer>.context{justify-self:center;text-align:center}.portal-footer .context article{left:50%;right:auto;bottom:calc(100% + 8px);transform:translateX(-50%);text-align:left}
@media(max-width:1000px){.footer-creator{gap:6px;flex-wrap:wrap}.byline{flex-basis:100%;font-size:9px}.portal-footer{gap:10px}.footer-brand{gap:9px}}
@media(max-width:520px){.portal-footer{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);padding:5px 9px;gap:6px}.footer-brand{flex-direction:column;align-items:flex-start;gap:5px}.footer-creator{gap:5px}.byline{font-size:9px}.byline strong{display:block}.portal-footer .context summary{font-size:9px;line-height:1.5}.portal-footer .socials{gap:12px}.portal-footer .context article{width:calc(100vw - 24px)}}
/* 30 / 30 / 40: assinatura e ícones permanecem lado a lado. */
.portal-footer{grid-template-columns:minmax(0,3fr) minmax(0,3fr) minmax(0,4fr);column-gap:0}.portal-footer .footer-brand,.portal-footer .footer-creator{flex-direction:row;flex-wrap:nowrap;gap:10px}.portal-footer .byline{flex-basis:auto;white-space:nowrap}.portal-footer .byline strong{display:inline}.portal-footer .byline-short{display:none}.portal-footer .context summary{white-space:nowrap}.portal-footer .socials{gap:10px}
@media(max-width:1000px){.portal-footer .footer-creator{gap:8px}.portal-footer .byline{font-size:9px}.portal-footer .socials{gap:8px}}
@media(max-width:600px){.portal-footer{min-height:34px;padding:4px 9px}.portal-footer .footer-brand,.portal-footer .footer-creator{gap:6px}.portal-footer .brand span,.portal-footer .byline-full{display:none}.portal-footer .byline-short{display:inline}.portal-footer .byline,.portal-footer .context summary{font-size:8px}.portal-footer .socials{gap:6px}.portal-footer .socials svg{width:14px;height:14px}}
/* Pergunte Aí abre o portal: a identidade do AIstein vive na testeira comum. */
nav{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row}
.channel.pergunte{--accent:#76d9ab;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:10px;background:#14251f;border-color:#355744}
.channel.pergunte .channel-avatar{grid-row:1/3;align-self:center;width:38px;height:38px;object-fit:cover;object-position:50% 17%;border-radius:50%;background:#d9f7e6}
.channel.pergunte span,.channel.pergunte small{grid-column:2;min-width:0}
.channel.pergunte span{color:#d3f3df}.channel.pergunte small{color:#a9d4bc}
.channel.pergunte[aria-current=page]{background:#1e3b2d;border-color:#72c99c;border-bottom-color:#76d9ab}
@media(max-width:720px){nav{grid-template-columns:minmax(104px,1.35fr) repeat(4,minmax(0,1fr));gap:5px}.channel{min-width:0}.channel.pergunte{display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto;align-items:center;gap:5px;padding:4px 5px}.channel.pergunte .channel-avatar{grid-row:1;width:26px;height:26px}.channel.pergunte span{grid-column:2;font-size:11px;line-height:1.1;text-align:left;white-space:normal}.channel.pergunte small{display:none}}
nav{grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr))}
.channel.pergunte{grid-template-rows:auto auto;min-height:70px}
.channel.pergunte > span{grid-column:2;font-size:15px;font-weight:400}
.channel.pergunte > small{grid-column:2;font-size:12px;line-height:1.25;white-space:normal}
.channel.pergunte .title-full{font-size:inherit;font-weight:400}
.channel.pergunte .title-full strong{font-weight:650}
.channel.pergunte .title-compact{display:none;font-size:inherit}
.channel.pergunte small span{color:#a9d4bc;font-size:inherit;font-weight:400}
.channel.pergunte .subtitle-compact{display:none}
@media(max-width:1100px){.channel.pergunte .subtitle-full{display:none}.channel.pergunte .subtitle-compact{display:inline}}
@media(max-width:720px){nav{grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr))}.channel.pergunte{grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto auto;column-gap:5px;min-height:62px;padding:4px 5px}.channel.pergunte .channel-avatar{grid-row:1/3}.channel.pergunte > span{font-size:11px;line-height:1.1}.channel.pergunte .title-full{display:none}.channel.pergunte .title-compact{display:inline;font-weight:400}.channel.pergunte > small{display:block;font-size:8px;line-height:1.15;text-align:left}}
@media(max-width:420px){.channel.pergunte > small{display:none}.channel:not(.pergunte) span{font-size:10px;letter-spacing:0}}
/* O cubo identifica a visualização 3D; os três símbolos cívicos ficam como marcas d'água à direita. */
.channel{position:relative;overflow:hidden}
.channel>span,.channel>small{position:relative;z-index:1}
.channel.panorama{padding-left:52px}
.channel.panorama>span{font-size:16px;line-height:1.15}
.channel.panorama .title-full{font-size:inherit}
.channel.panorama .title-compact{display:none;font-size:inherit}
.channel.panorama .channel-icon{position:absolute;left:14px;top:50%;width:30px;height:30px;transform:translateY(-50%);filter:drop-shadow(0 3px 4px #0007)}
.channel.senado{--accent:#8af0a3}
.channel.estadual{--accent:#eec578}
.channel.federal{--accent:#9c94e8}
.channel:is(.senado,.estadual,.federal){padding-right:48px;background:color-mix(in srgb,var(--accent) 10%,#141d25);border-color:transparent}
.channel:is(.senado,.estadual,.federal):hover:not([aria-current=page]){background:color-mix(in srgb,var(--accent) 17%,#141d25);border-color:transparent}
.channel:is(.senado,.estadual,.federal)[aria-current=page]{background:color-mix(in srgb,var(--accent) 19%,#10171e);border-color:var(--accent);border-bottom-color:var(--accent)}
.channel-symbol{position:absolute;right:8px;top:50%;width:37px;height:37px;transform:translateY(-50%);color:var(--accent);opacity:.36;pointer-events:none}
.channel[aria-current=page] .channel-symbol{opacity:.58}
@media(max-width:1100px){.channel.panorama{padding-left:39px}.channel.panorama .channel-icon{left:9px;width:24px;height:24px}.channel:is(.senado,.estadual,.federal){padding-right:32px}.channel-symbol{right:4px;width:28px;height:28px}}
@media(max-width:720px){.channel.panorama{padding-left:4px}.channel.panorama>span{font-size:13px}.channel.panorama .title-full{display:none}.channel.panorama .title-compact{display:inline}.channel.panorama .channel-icon,.channel-symbol{display:none}.channel:is(.senado,.estadual,.federal){padding-right:4px}}
@media(max-width:420px){.channel.panorama>span{font-size:10px}}

#notifications{flex:none;display:flex;align-items:center;gap:12px;padding:9px 18px;background:#fff4d6;color:#6f5116;border-bottom:1px solid #efdbad;font-size:13px;line-height:1.4}#notification-text{flex:1}#notifications button{flex:none;background:transparent;border:1px solid #a78a45;border-radius:5px;color:inherit;padding:5px 8px;cursor:pointer;font:inherit}#dismiss-notification{font-size:20px}#panel-version{white-space:nowrap}@media(max-width:600px){#notifications{gap:7px;padding:8px 9px;flex-wrap:wrap}#notification-text{flex-basis:100%}}

/* Um controle de tema pertence ao portal e propaga a preferência ao módulo ativo. */
.masthead{grid-template-columns:minmax(0,1fr) 28px;gap:8px}#portal-theme{width:28px;height:28px;padding:0;align-self:center;color:#c4cfd5;background:#19232b;border:1px solid #34434e;border-radius:7px;font-size:16px;cursor:pointer}html[data-theme=light]{color-scheme:light;background:#f4f7f5;color:#243b32}html[data-theme=light] body,html[data-theme=light] .masthead,html[data-theme=light] .portal-footer{background:#f7faf8;color:#52675c;border-color:#d6e3db}html[data-theme=light] .channel{background:#edf4ef;color:#34493d;border-color:#c7d8cd}html[data-theme=light] .channel[aria-current=page]{background:#d9eee2;border-color:#7ba68d;color:#1b5135}html[data-theme=light] .channel small,html[data-theme=light] .brand,html[data-theme=light] .socials a,html[data-theme=light] .byline strong{color:#52675c}html[data-theme=light] .context article{background:#fff;color:#243b32;border-color:#c7d8cd}html[data-theme=light] .context h1{color:#243b32}html[data-theme=light] #portal-theme{background:#edf4ef;color:#34493d;border-color:#c7d8cd}@media(max-width:720px){.masthead{grid-template-columns:minmax(0,1fr) 24px;gap:5px}#portal-theme{width:24px;height:24px;font-size:14px}}
/* Readable foregrounds for every interaction state in both portal themes. */
html[data-theme=light] .brand strong{color:#243b32}html[data-theme=light] :is(.channel,.context summary,#portal-theme):is(:hover,:focus-visible){background:#dbece1;color:#1b5135}html[data-theme=light] :is(a,button,summary):focus-visible{outline-color:#276b46}html[data-theme=light] #frame-status{color:#34493d;background:#f7faf8;border-color:#9bb4a4}html[data-theme=light] #frame-error{background:#fff2dc;color:#624416}html[data-theme=light] .byline{color:#52675c}#portal-theme:hover,#portal-theme:focus-visible{background:#2b3d49;color:#fff}.portal-footer a:hover,.portal-footer a:focus-visible{color:#e9eff0}html[data-theme=light] .portal-footer a:is(:hover,:focus-visible){color:#1b5135}
/* Métricas públicas dentro do Sobre, com superfícies próprias nos dois temas. */
.usage-open{padding:7px 10px;border:1px solid #647b8a;border-radius:6px;background:#21323e;color:#e9eff0;font:inherit;cursor:pointer}.usage-dialog{--usage-bg:#141e27;--usage-raised:#243542;--usage-ink:#e9eff0;--usage-muted:#b5c6d0;--usage-line:#647b8a;--usage-accent:#b8dfc8;width:min(1080px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--usage-line);border-radius:10px;background:var(--usage-bg);color:var(--usage-ink);overflow:auto;box-sizing:border-box;font-size:14px}.usage-dialog::backdrop{background:#050b10b8}.usage-heading,.usage-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.usage-heading h2{font-size:21px;margin:0}.usage-dialog :is(button,select){font:inherit;background:var(--usage-raised);color:var(--usage-ink);border:1px solid var(--usage-line);border-radius:6px;padding:8px 12px;cursor:pointer}.usage-dialog button:hover,.usage-open:hover{background:#34503f;color:#fff}.usage-dialog :is(button,select):focus-visible,.usage-open:focus-visible{outline:2px solid var(--usage-accent,#b8dfc8);outline-offset:3px}.usage-dialog button:disabled{color:var(--usage-muted);opacity:1;cursor:wait}.usage-note,.usage-status{color:var(--usage-muted);font-size:13px;line-height:1.6}.usage-table-wrap{max-width:100%;overflow:auto;margin:16px 0}.usage-dialog table{border-collapse:collapse;width:100%;font-size:13px}.usage-dialog caption{text-align:left;margin-bottom:12px;font-weight:650}.usage-dialog th,.usage-dialog td{text-align:right;padding:12px;border-bottom:1px solid var(--usage-line);min-width:105px;vertical-align:top}.usage-dialog th:first-child{text-align:left;min-width:150px}.usage-dialog thead th{background:var(--usage-raised)}html[data-theme=light] .usage-dialog{--usage-bg:#fff;--usage-raised:#edf4ef;--usage-ink:#243b32;--usage-muted:#4f6859;--usage-line:#a1b9a9;--usage-accent:#276b46}html[data-theme=light] .usage-open{background:#edf4ef;color:#243b32;border-color:#a1b9a9}html[data-theme=light] :is(.usage-dialog button,.usage-open):hover{background:#d5e8dc;color:#194b30}@media(max-width:600px){.usage-dialog{padding:16px}.usage-heading h2{font-size:18px}.usage-dialog th,.usage-dialog td{padding:9px}.usage-controls{margin-top:12px}}
@media(max-width:640px){.usage-table-wrap{overflow:visible;min-width:0}.usage-dialog table,.usage-dialog tbody,.usage-dialog caption{display:block;min-width:0;width:100%}.usage-dialog thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.usage-dialog tbody tr{display:block;min-width:0;border:1px solid var(--usage-line);border-radius:8px;margin:12px 0;overflow:hidden}.usage-dialog tbody th,.usage-dialog tbody td{min-width:0;width:auto;border:0;overflow-wrap:anywhere;padding:9px 12px}.usage-dialog tbody th{display:block;text-align:left;background:var(--usage-raised)}.usage-dialog tbody td{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;text-align:right;border-top:1px solid var(--usage-line)}.usage-dialog tbody td::before{content:attr(data-label);text-align:left;color:var(--usage-muted)}.usage-dialog tbody td.usage-unavailable{display:block;text-align:left}.usage-dialog tbody td.usage-unavailable::before{content:none}}
/* Nested Pergunte Aí labels require explicit light-theme colors. */
html[data-theme=light] .channel.pergunte{--accent:#276b46;background:#edf4ef;color:#243b32;border-color:#9db8a7}html[data-theme=light] .channel.pergunte :is(span,strong){color:inherit}html[data-theme=light] .channel.pergunte small,html[data-theme=light] .channel.pergunte small span{color:#456450}html[data-theme=light] .channel.pergunte:is(:hover,:focus-visible){background:#dbece1;color:#194b30;border-color:#276b46}html[data-theme=light] .channel.pergunte:is(:hover,:focus-visible) small,html[data-theme=light] .channel.pergunte:is(:hover,:focus-visible) small span{color:#36543f}html[data-theme=light] .channel.pergunte[aria-current=page]{background:#d9eee2;color:#194b30;border-color:#276b46;border-bottom-color:#276b46}html[data-theme=light] .channel.pergunte[aria-current=page] small,html[data-theme=light] .channel.pergunte[aria-current=page] small span{color:#36543f}html[data-theme=light] .channel-symbol{opacity:1}html[data-theme=light] .senado .channel-symbol{color:#286044}html[data-theme=light] .estadual .channel-symbol{color:#80601a}html[data-theme=light] .federal .channel-symbol{color:#24638e}

/* Menu recolhível: a navegação e o rodapé cedem toda a altura ao módulo. */
.portal-controls{display:grid;gap:4px;justify-items:end;align-content:center}
#portal-collapse{width:28px;height:28px;padding:0;border:1px solid #34434e;border-radius:7px;background:#19232b;color:#c4cfd5;font:normal 24px/1 system-ui,sans-serif;cursor:pointer}
#portal-collapse:hover,#portal-collapse:focus-visible{background:#2b3d49;color:#fff}
html[data-theme=light] #portal-collapse{background:#edf4ef;color:#34493d;border-color:#c7d8cd}
html[data-theme=light] #portal-collapse:is(:hover,:focus-visible){background:#dbece1;color:#1b5135}
html.portal-collapsed body{height:100dvh}
html.portal-collapsed .masthead,html.portal-collapsed .portal-footer{display:none}
#portal-expand{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(24px,calc(env(safe-area-inset-right) + 16px));z-index:6;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:9px;background:transparent;color:#e9eff0;filter:drop-shadow(0 1px 2px #000);cursor:pointer}
#portal-expand:focus-visible{outline:2px solid #8aa9bb}
.hamburger-lines{display:block;width:22px;height:18px;background:linear-gradient(currentColor,currentColor) center top/22px 3px no-repeat,linear-gradient(currentColor,currentColor) center/22px 3px no-repeat,linear-gradient(currentColor,currentColor) center bottom/22px 3px no-repeat}
html[data-theme=light] #portal-expand{color:#243b32;filter:drop-shadow(0 1px 2px #fff)}
html[data-theme=light] #portal-expand:focus-visible{outline-color:#427559}
@media(max-width:720px){#portal-collapse{width:24px;height:24px;font-size:21px}#portal-expand{width:40px;height:40px}}
