/* Revisão 33: menor ocupação vertical e apresentação contínua. */
.ac-panel .panel-header{min-height:42px!important;padding-block:3px!important}
.ac-panel .panel-nav{min-height:37px!important;padding-block:3px!important;gap:3px!important}
.ac-panel .panel-nav button{min-height:30px!important;padding:5px 11px!important}
.ac-panel .choice button{min-height:31px!important;padding-block:5px!important}
.ac-panel .surface-card>.card-head{padding:7px 12px!important}
.ac-panel .card-head h2{font-size:15px!important}
.ac-panel .page-head{min-height:35px!important}
.ac-panel #view{gap:6px!important;padding:7px 10px!important}
.ac-panel .story{padding:14px 18px!important;gap:22px!important}
.ac-panel .story-copy p{margin-bottom:10px!important;line-height:1.48!important}
.ac-panel .story-copy h1{font-size:clamp(25px,1.8vw,32px)!important;margin:6px 0 11px!important}
.ac-panel .story-system h2{margin-bottom:12px!important}
.ac-panel .alignment-strip{margin-top:12px!important;padding-block:9px!important}
.ac-panel .alignment-strip>span:first-child{font-size:11px!important}
.ac-panel .study-steps{min-height:133px!important;margin-top:2px!important}
.ac-panel .study-steps button{min-height:133px!important;padding:12px 16px!important}
.ac-panel .study-steps button>span{margin-bottom:5px!important}
.ac-panel .study-steps small{margin-top:5px!important;line-height:1.4!important}
.ac-panel .premise-intro{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 16px!important;padding:9px 13px!important}
.ac-panel .premise-intro>div:first-child{flex:1 1 580px!important;min-width:0!important}
.ac-panel .premise-intro .kicker{font-size:10px!important;margin:0 0 6px!important}
.ac-panel .premise-intro p:not(.kicker){font-size:13px!important;line-height:1.35!important;margin:0!important}
.ac-panel .premise-badges{display:flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;gap:6px!important}
.ac-panel .premise-badges>div{flex:0 0 auto!important;padding:7px 10px!important;min-width:105px!important}
.ac-panel .premise-badges h2{font-size:10px!important;margin-bottom:4px!important;line-height:1.15!important;white-space:nowrap!important}
.ac-panel .premise-badges strong{font-size:12px!important;line-height:1.2!important;white-space:nowrap!important}
.ac-panel .premise-badges>div:nth-child(4) strong{font-size:11px!important}
.ac-panel .transient-premise-left{display:flex;flex-direction:column;justify-content:flex-end;min-width:0;gap:8px}
.ac-panel .transient-premises{align-items:end!important;gap:12px!important}
.ac-panel .transient-premise-story{font-size:13px;line-height:1.45;color:#476b8b}
.ac-panel .transient-premise-story p{margin:0 2px 7px}
.ac-panel .transient-premise-story p:last-child{margin-bottom:0}
.ac-panel .transient-premises .premise-table td{padding:7px 11px!important;line-height:1.35!important;font-size:12px!important}
.ac-panel .transient-premises .premise-table th{padding:7px 10px!important;font-size:11px!important}
.ac-panel .page-head.premises-inline>.ac-heading{display:block!important}
.ac-panel .premises-inline h1{font-size:22px!important}
.ac-panel .premises-inline p{font-size:12px!important;margin-top:3px!important}
.ac-panel .side-table table{font-size:11px!important;table-layout:auto!important;min-width:0!important}
.ac-panel .side-table td{font-size:11px!important;line-height:1.2!important;padding:4px 6px!important;height:auto!important}
.ac-panel.ac-expanded-view .side-table td{font-size:11px!important;padding:4px 6px!important}
.ac-panel .side-table th{font-size:10px!important;line-height:1.1!important;padding:6px!important;height:auto!important}
.ac-panel .side-table th>small{margin-top:4px!important;padding-top:3px!important;line-height:1!important;font-size:9px!important}
.ac-panel .side-table th .th-term{padding-bottom:0!important}
.ac-panel .side-table th:first-child{width:auto!important;min-width:115px!important}
.ac-panel .side-table td:first-child{min-width:115px!important}
.ac-panel .side-table td small{font-size:9px!important;margin-top:2px!important;line-height:1.15!important}
.ac-panel .side-table .header-menu>summary{min-height:16px!important;padding:0!important;font-size:10px!important;line-height:1.2!important}
.ac-panel .side-table .filter-chevron{width:21px!important;height:21px!important}
.ac-panel .side-table .table-pager{padding:3px 7px!important;min-height:18px!important;justify-content:center!important;font-size:9px!important}
.ac-panel .transient-pressure{color:#003366!important;box-shadow:none!important;border-left:0!important}
.ac-panel .side-table .poi-icon{width:16px!important;height:16px!important}
.ac-panel .poi-icon{filter:none!important;box-shadow:none!important;border:0!important;outline:0!important}
.ac-panel .tank-grid{align-items:start!important}
.ac-panel .tank-grid>.premise-table{height:auto!important;align-self:start!important}
.ac-panel .tank-grid .tank-card{height:var(--tank-height,340px)!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.ac-panel .tank-card .tank-diagram{padding:8px 10px!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important}
.ac-panel .tank-card .tank-diagram svg{height:100%!important;width:100%!important;max-height:none!important;max-width:100%!important;object-fit:contain!important}
.ac-panel .spatial-card .chart-composition-head{padding:5px 10px!important}
.ac-panel .spatial-card .unified-legend{min-height:23px!important}
.ac-panel .spatial-card .vapor-legend{min-height:18px!important}
.ac-panel .spatial-card .chart-composition-head h2{font-size:14px!important}
@media(min-width:1550px){
 .ac-panel .premise-intro{flex-wrap:nowrap!important}
 .ac-panel .premise-intro>div:first-child{flex:1 1 auto!important}
 .ac-panel .premise-intro p:not(.kicker){white-space:nowrap!important}
}
@media(min-width:760px) and (max-width:1549px){
 .ac-panel .premise-intro>div:first-child{flex-basis:100%!important}
 .ac-panel .premise-badges{flex:1 1 auto!important;justify-content:space-between!important}
 .ac-panel .premise-badges>div{flex:1 1 auto!important}
 .ac-panel .transient-premise-story{font-size:12px!important;line-height:1.4!important}
}
@media(max-width:759px){
 .ac-panel .panel-header{padding:4px 8px!important;gap:5px!important}
 .ac-panel .panel-header>strong{font-size:15px!important}
 .ac-panel .panel-nav{padding:3px 5px!important}
 .ac-panel .story{padding:14px!important;gap:15px!important}
 .ac-panel .story-copy h1{font-size:25px!important}
 .ac-panel .study-steps{min-height:0!important}
 .ac-panel .study-steps button{min-height:112px!important}
 .ac-panel .premise-intro>div:first-child{flex-basis:100%!important}
 .ac-panel .premise-badges{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;flex:1 1 100%!important;width:100%!important}
 .ac-panel .premise-badges>div{min-width:0!important;padding:7px!important}
 .ac-panel .premise-badges strong{font-size:11px!important;white-space:normal!important}
 .ac-panel .premise-badges>div:nth-child(4) strong{font-size:10px!important}
 .ac-panel .transient-premises{grid-template-columns:minmax(0,1fr)!important}
 .ac-panel .transient-premise-story{font-size:12px!important}
 .ac-panel .premises-inline h1{font-size:21px!important}
 .ac-panel .side-table td:first-child,.ac-panel .side-table th:first-child{min-width:95px!important}
 .ac-panel .tank-grid .tank-card{height:var(--tank-height,340px)!important}
}
/* Os quadros dos dispositivos mantêm a leitura aprovada; a compressão extrema se limita à consulta. */
.ac-panel #view .device-grid .premise-table td{font-size:12px!important;line-height:1.35!important;padding:6px 9px!important}
.ac-panel #view .device-grid .premise-table th{font-size:11px!important;line-height:1.15!important;padding:6px 9px!important}
.ac-panel #view .device-grid .premise-table td small{font-size:10px!important}
@media(min-width:1280px){
 .ac-panel .premise-intro{flex-wrap:nowrap!important}
 .ac-panel .premise-intro>div:first-child{flex:1 1 auto!important}
 .ac-panel .premise-intro p:not(.kicker){white-space:nowrap!important}
 .ac-panel .premise-badges{flex:0 0 auto!important}
 .ac-panel .premise-badges>div{flex:0 0 auto!important}
}
.ac-panel #view .tank-grid .premise-table td{padding-block:7.5px!important}
@media(max-width:759px){.ac-panel .tank-grid .ac-tank-conception[data-tank-layout=compact] text{font-size:22px!important}}
/* A visibilidade de cada perspectiva prevalece sobre os ajustes de layout. */
body.ac-panel #view [hidden]{display:none!important}
@media(min-width:760px) and (max-height:550px){
 .ac-panel #view .transient-premises .premise-table td{padding-block:5px!important;font-size:11.5px!important;line-height:1.3!important}
 .ac-panel .transient-premise-story{font-size:11.5px!important;line-height:1.35!important}
}
@media(min-width:760px){
 .ac-panel .premise-intro{flex-wrap:wrap!important}
 .ac-panel .premise-intro>div:first-child{flex:1 1 auto!important;min-width:max-content!important}
 .ac-panel .premise-intro p:not(.kicker){white-space:nowrap!important}
 .ac-panel .premise-badges{flex:0 0 auto!important;flex-wrap:nowrap!important}
 .ac-panel .premise-badges>div{flex:0 0 auto!important}
 .ac-panel .premise-badges h2{font-size:11px!important}
}
@media(min-width:1200px){
 .ac-panel #view>.profile-grid.ac-analysis-grid{grid-template-columns:minmax(0,1fr) clamp(400px,29vw,480px)!important}
 .ac-panel #view .side-table table{table-layout:fixed!important}
 .ac-panel #view .side-table :is(th,td):first-child{width:var(--ac-first-column)!important;min-width:0!important;max-width:none!important}
 .ac-panel .side-table .header-menu>summary{gap:4px!important}
 .ac-panel .side-table .pressure-menu .filter-chevron{width:16px!important;height:18px!important;flex:0 0 16px!important;padding:0!important}
}
/* No celular, respostas completas seguem o fluxo e a nota vem após o último gráfico. */
@media(max-width:759px){
 body.ac-panel #view>.device-response.filling-response:not([hidden]){display:block!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.ac-panel #view #device-response-content{display:block!important;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.ac-panel #view .filling-response .response-plots{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;align-items:start!important;overflow:visible!important}
 body.ac-panel #view .filling-response .response-chart{display:flex!important;flex-direction:column!important;flex:none!important;height:290px!important;min-height:290px!important;max-height:290px!important;overflow:visible!important}
 body.ac-panel #view .filling-response .response-chart .plot{flex:0 0 250px!important;height:250px!important;min-height:250px!important;max-height:250px!important;overflow:visible!important}
 body.ac-panel #view .filling-response .profile-note{display:block!important;position:static!important;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:7px 12px 10px!important;clear:both!important}
}
/* Revisão 34: premissas legíveis e consulta com rodapé próprio. */
@media(min-width:760px){
 body.ac-panel #view .premise-intro{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px 18px!important;padding:11px 15px!important}
 body.ac-panel #view .premise-intro>div:first-child{flex:1 1 410px!important;min-width:410px!important}
 body.ac-panel #view .premise-badges{display:grid!important;grid-template-columns:repeat(3,minmax(140px,1fr)) minmax(185px,1.35fr) minmax(115px,.85fr)!important;flex:1 1 850px!important;gap:8px!important}
 body.ac-panel #view .premise-badges>div{min-width:0!important;padding:10px 12px!important}
 body.ac-panel #view .premise-badges h2{font-size:11px!important;line-height:1.3!important;margin-bottom:6px!important}
 body.ac-panel #view .premise-badges strong{font-size:14px!important;line-height:1.3!important}
 body.ac-panel #view .premise-badges>div:nth-child(4) strong{font-size:12px!important;white-space:nowrap!important}
 body.ac-panel #view .ac-system-fluid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:12px!important}
 body.ac-panel #view>.page-head.premises-inline{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,.78fr)!important;align-items:start!important;gap:12px 24px!important}
 body.ac-panel #view>.page-head.premises-inline h1{white-space:normal!important;font-size:22px!important;line-height:1.25!important}
 body.ac-panel #view>.page-head.premises-inline>.controls{display:block!important;align-self:start!important}
 body.ac-panel #view .premise-callout{font-size:12px!important;line-height:1.45!important;color:#476b8b!important;text-align:right!important;margin:1px 0 0!important}
 body.ac-panel #view .transient-premise-story{font-size:12px!important;line-height:1.42!important}
 body.ac-panel #view .transient-premise-story p{margin-bottom:8px!important}
}
body.ac-panel #view .side-table{overflow:hidden!important;isolation:isolate!important}
body.ac-panel #view .side-table>.table-scroll{overflow:auto!important;position:relative!important;contain:paint!important;isolation:isolate!important}
body.ac-panel #view .side-table th{position:sticky!important;top:0!important;z-index:3!important;background:#003366!important}
body.ac-panel #view .side-table>.table-pager{position:relative!important;z-index:5!important;flex:0 0 auto!important;background:#fff!important;overflow:hidden!important}
body.ac-panel #view .side-table>.pressure-footer{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;padding:5px 7px!important;min-height:0!important}
body.ac-panel #view .footer-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;font-size:9px!important;line-height:1.25!important}
body.ac-panel #view .footer-meta strong{font-weight:600!important;font-size:9px!important;color:#003366!important}
body.ac-panel #view .pressure-footer-legend{display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important;gap:4px 6px!important;font-size:9px!important;line-height:1.25!important}
body.ac-panel #view .pressure-footer-legend>span{display:inline-flex!important;align-items:center!important;gap:3px!important;white-space:nowrap!important}
body.ac-panel #view .pressure-footer-legend i{display:inline-block!important;flex:0 0 6px!important;width:6px!important;height:9px!important;border-radius:1px!important}
body.ac-panel #view .air-response-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:6px 12px!important;padding:5px 10px 0!important}
body.ac-panel #view .air-response-toolbar>.response-legend{display:flex!important;align-items:center!important;flex:1 1 auto!important;justify-content:flex-end!important;gap:12px!important;margin:0!important;padding:0!important;min-height:29px!important}
body.ac-panel #view .air-response .response-plots{padding-top:0!important}
@media(min-width:1200px){body.ac-panel #view .side-table :is(th,td):first-child{width:var(--ac-first-column)!important;min-width:0!important;max-width:none!important}}
@media(max-width:759px){
 body.ac-panel #view .premise-callout{font-size:12px!important;line-height:1.4!important;margin:3px 0 0!important;text-align:left!important;color:#476b8b!important}
 body.ac-panel #view .premise-badges>div{padding:9px!important}
 body.ac-panel #view .premise-badges h2{font-size:11px!important}
 body.ac-panel #view .premise-badges strong{font-size:12px!important}
 body.ac-panel #view .premise-badges>div:nth-child(4) strong{font-size:11px!important}
 body.ac-panel #view .side-table>.table-scroll{overflow:auto!important}
 body.ac-panel #view .air-response-toolbar>.response-legend{justify-content:flex-start!important;flex-basis:100%!important}
}

/* Revisão 35: critérios transitórios próximos das respectivas premissas. */
body.ac-panel #view .transient-premise-right{display:flex;flex-direction:column;justify-content:flex-end;min-width:0;gap:8px}
@media(min-width:760px){
 body.ac-panel #view .transient-premises .transient-premise-story{font-size:12px!important;line-height:1.35!important}
 body.ac-panel #view .transient-premises .transient-premise-story p{margin-bottom:7px!important}
 body.ac-panel #view .transient-premises .premise-table td{padding-block:5px!important;font-size:12px!important;line-height:1.3!important}
 body.ac-panel #view .transient-premises .premise-table th{padding-block:6px!important}
}

@media(min-width:760px){body.ac-panel #view .transient-premises{align-items:stretch!important}body.ac-panel #view :is(.transient-premise-left,.transient-premise-right){justify-content:space-between!important}}
