/* Revisão 32: leitura contínua e aproveitamento da área do painel. */
.ac-panel .quantity{display:inline-block;white-space:nowrap}
.ac-panel #view{gap:7px!important;padding:8px 12px!important}
.ac-panel .story,.ac-panel .study-steps button{border-left:4px solid #003366!important}
.ac-panel .story{padding:20px 22px!important;gap:24px!important}
.ac-panel .story-copy h1{max-width:none!important;font-size:clamp(26px,1.9vw,35px)!important;line-height:1.16!important}
.ac-panel .story-copy p{font-size:clamp(14px,.98vw,17px)!important;line-height:1.55!important;margin-bottom:12px!important}
.ac-panel .story-copy p.kicker{font-size:10px!important}
.ac-panel .study-steps{margin-top:5px!important;gap:12px!important;min-height:150px!important}
.ac-panel .study-steps button{padding:17px 18px!important;min-height:150px!important;justify-content:flex-start!important}
.ac-panel .study-steps button>span{font-size:13px!important;margin-bottom:8px!important}
.ac-panel .study-steps strong{font-size:18px!important;line-height:1.3!important}
.ac-panel .study-steps small{font-size:13px!important;line-height:1.5!important;margin-top:7px!important}
.ac-panel .system-flow small{font-size:12px!important;line-height:1.6!important}
.ac-panel .system-flow strong{font-size:14px!important}
.ac-panel .story-system h2{font-size:17px!important}
.ac-panel .premise-intro{grid-template-columns:minmax(230px,.6fr) minmax(0,1.6fr)!important;padding:12px 15px!important;gap:16px!important}
.ac-panel .premise-badges{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
.ac-panel .premise-badges>div{padding:9px!important}
.ac-panel .premise-badges h2{font-size:11px!important}
.ac-panel .premise-badges strong{font-size:13px!important;line-height:1.35!important}
.ac-panel .page-head:has(.common-context:empty) p,.ac-panel .common-context:empty{display:none!important}
.ac-panel .page-head.premises-inline>.ac-heading{display:flex!important;align-items:center!important;gap:12px!important}
.ac-panel .premises-inline h1{flex:0 0 auto!important;font-size:22px!important}
.ac-panel .premises-inline p{font-size:14px!important;line-height:1.4!important;flex:1 1 auto!important;margin:0!important}
.ac-panel .page-head .ac-heading>p:empty{display:none!important}
.ac-panel #view>.page-head.with-chart-legend{grid-template-columns:max-content minmax(0,1fr) auto!important;align-items:center!important;gap:4px 12px!important;padding:0!important}
.ac-panel #view>.page-head.with-chart-legend h1{font-size:clamp(19px,1.38vw,25px)!important;white-space:nowrap!important;line-height:1.2!important}
.ac-panel #view>.page-head.with-chart-legend>.chart-heading-toolbar{gap:2px!important}
.ac-panel #view>.with-chart-legend .unified-legend{gap:4px 7px!important;flex-wrap:nowrap!important}
.ac-panel #view>.with-chart-legend .unified-legend>:is(span,button,label){font-size:10px!important;gap:4px!important}
.ac-panel #view>.with-chart-legend .unified-legend .line-key{width:22px!important}
.ac-panel #view>.with-chart-legend .unified-legend .poi-icon{width:15px!important;height:18px!important}
.ac-panel .profile-grid.ac-analysis-grid{flex:1 1 0!important;min-height:240px!important;height:auto!important;gap:12px!important}
.ac-panel .profile-grid .chart-card{min-height:240px!important}
.ac-panel .ac-body:has(.inventory-table) .profile-grid{min-height:300px!important;flex:0 0 330px!important}
.ac-panel .inventory-table{margin-top:0!important}
.ac-panel .inventory-table .table-scroll{max-height:350px!important}
.ac-panel .source-id{font-size:9px!important;font-weight:400!important;color:#6c8397!important}
.ac-panel .selected-reading .pressure-value{display:inline!important;white-space:nowrap!important}
.ac-panel #steady-chart{height:clamp(245px,47vh,400px)!important;min-height:245px!important;max-height:400px!important}
.ac-panel .compare-table{margin-top:0!important}
.ac-panel .ac-pump-grid{flex:0 0 auto!important;min-height:0!important;align-items:stretch!important;grid-template-columns:minmax(290px,.65fr) minmax(0,1.35fr)!important}
.ac-panel .ac-pump-grid>.surface-card{height:auto!important;min-height:0!important}
.ac-panel .ac-pump-grid .ac-pump-parameters .table-scroll{flex:0 0 auto!important;overflow:visible!important}
.ac-panel .ac-pump-grid .ac-pump-parameters td{padding:6px 9px!important}
.ac-panel .ac-pump-grid .ac-pump-curves{min-height:0!important}
.ac-panel .ac-pump-grid .ac-pump-curves .chart-scroll{height:0!important;min-height:0!important;flex:1 1 0!important}
.ac-panel .ac-pump-grid .ac-pump-curves .plot{height:100%!important;min-height:0!important}
.ac-panel .device-grid:not(.ac-pump-grid){flex:0 0 auto!important;align-items:start!important}
.ac-panel .tank-card .tank-diagram{min-height:0!important;padding:10px 12px!important}
.ac-panel .tank-card .tank-diagram svg{width:100%!important;max-height:340px!important;display:block;margin:auto!important}
.ac-panel .device-response.filling-response{flex:1 1 0!important;min-height:0!important;height:auto!important}
.ac-panel #device-response-content{flex:1 1 0!important;min-height:0!important}
.ac-panel .filling-response .response-plots{flex:1 1 0!important;min-height:160px!important;padding:5px 7px 0!important;gap:9px!important}
.ac-panel .filling-response .response-chart{min-height:160px!important;height:auto!important;min-width:0!important}
.ac-panel .filling-response .response-chart .plot{height:100%!important;min-height:125px!important}
.ac-panel .filling-response .profile-note{flex:0 0 auto!important;font-size:11px!important;line-height:1.45!important;margin:5px 12px 8px!important;overflow:visible!important;max-height:none!important}
.ac-panel .spatial-card{flex:1 1 0!important;min-height:290px!important;height:auto!important;overflow:hidden!important;margin:0!important}
.ac-panel .spatial-card .chart-scroll{flex:1 1 0!important;min-height:200px!important;overflow:hidden!important}
.ac-panel .spatial-card .plot{flex:1 1 0!important;height:100%!important;min-height:200px!important}
.ac-panel .spatial-card .chart-composition-head{padding:6px 10px!important;gap:5px 12px!important;flex-wrap:nowrap!important;align-items:center!important}
.ac-panel .spatial-card .chart-composition-head>div:first-child{flex:0 0 auto!important}
.ac-panel .spatial-card .chart-composition-head h2{font-size:15px!important}
.ac-panel .spatial-card .chart-composition-head .choice{margin-top:3px!important}
.ac-panel .spatial-card .plot-toolbar{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:flex-end!important;gap:3px!important}
.ac-panel .spatial-card .unified-legend{display:flex!important;flex-wrap:nowrap!important;gap:4px 9px!important;padding:2px 5px!important;font-size:10px!important}
.ac-panel .spatial-card .unified-legend :is(span,label,button){font-size:10px!important;white-space:nowrap!important;gap:4px!important}
.ac-panel .spatial-card .unified-legend .line-key{width:22px!important}
.ac-panel .spatial-card .unified-legend .legend-symbol{padding:0!important;min-height:21px!important}
.ac-panel .spatial-card .vapor-legend{display:flex!important;justify-content:flex-end!important;margin:0!important;padding:0!important;gap:4px 10px!important;min-height:20px!important;line-height:1.2!important;font-size:10px!important}
.ac-panel .spatial-card .vapor-legend i{transform:scale(.8)!important}
.ac-panel .bands-grid{margin-top:0!important;gap:12px!important}
.ac-panel .bands-card .card-head{padding:8px 12px!important}
.ac-panel .bands-card .card-head p{margin:2px 0 0!important}
.ac-panel .bands-list{padding:9px!important;gap:7px!important}
.ac-panel .band-row{padding:6px 8px!important;gap:8px!important}
.ac-panel .band-result{grid-template-columns:92px 1fr!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:3px!important;align-items:center!important;margin:1px 0 4px!important;line-height:1.2!important}
.ac-panel .band-result>span{grid-column:1!important;grid-row:1/3!important;align-self:center!important;justify-self:center!important;text-align:center!important}
.ac-panel .band-result>b{grid-column:2!important;grid-row:1!important}
.ac-panel .band-result>.bar{grid-column:2!important;grid-row:2!important}
.ac-panel .band-result :is(span,b){font-size:10px!important;line-height:1.2!important}
.ac-panel .band-result>.bar{height:5px!important}
@media(max-width:1299px) and (min-width:760px){
 .ac-panel #view>.page-head.with-chart-legend{grid-template-columns:minmax(0,1fr) auto!important}
 .ac-panel #view>.page-head.with-chart-legend>.ac-heading{grid-column:1!important;grid-row:1!important}
 .ac-panel #view>.page-head.with-chart-legend>.controls{grid-column:2!important;grid-row:1!important}
 .ac-panel #view>.page-head.with-chart-legend>.chart-heading-toolbar{grid-column:1/-1!important;grid-row:2!important}
 .ac-panel .premise-intro{grid-template-columns:1fr!important}
 .ac-panel .premises-inline>.ac-heading{flex-wrap:wrap!important;gap:4px!important}
 .ac-panel .spatial-card .unified-legend{gap:3px 6px!important}
}
@media(max-width:759px){
 .ac-panel .story{padding:17px!important}
 .ac-panel .study-steps{min-height:0!important}
 .ac-panel .study-steps button{min-height:125px!important;padding:15px 17px!important}
 .ac-panel .study-steps strong{font-size:17px!important}
 .ac-panel .premise-intro{grid-template-columns:minmax(0,1fr)!important}
 .ac-panel .premise-badges{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ac-panel .page-head.premises-inline>.ac-heading{display:block!important}
 .ac-panel .premises-inline h1{font-size:21px!important}
 .ac-panel .premises-inline p{margin-top:6px!important;font-size:13px!important}
 .ac-panel #view>.page-head.with-chart-legend{grid-template-columns:minmax(0,1fr)!important;gap:5px!important}
 .ac-panel #view>.page-head.with-chart-legend h1{font-size:21px!important;white-space:normal!important}
 .ac-panel #view>.page-head.with-chart-legend>.ac-heading{grid-column:1!important;grid-row:1!important}
 .ac-panel #view>.page-head.with-chart-legend>.controls{grid-column:1!important;grid-row:2!important}
 .ac-panel #view>.page-head.with-chart-legend>.chart-heading-toolbar{grid-column:1!important;grid-row:3!important}
 .ac-panel #view>.with-chart-legend .unified-legend{flex-wrap:wrap!important}
 .ac-panel .profile-grid.ac-analysis-grid{flex:0 0 auto!important;height:auto!important;min-height:0!important}
 .ac-panel .profile-grid>.chart-card{height:330px!important;min-height:330px!important}
 .ac-panel .profile-grid>.side-table{height:330px!important;min-height:330px!important}
 .ac-panel .ac-pump-grid{display:flex!important;flex-direction:column!important;flex:none!important}
 .ac-panel .ac-pump-grid>.ac-pump-curves{height:330px!important;min-height:330px!important;flex:0 0 330px!important}
 .ac-panel .ac-pump-grid>.ac-pump-parameters{height:auto!important;min-height:0!important;flex:none!important}
 .ac-panel .device-response.filling-response,.ac-panel #device-response-content{flex:none!important;min-height:0!important;height:auto!important}
 .ac-panel .filling-response .response-chart{height:290px!important;min-height:290px!important}
 .ac-panel .filling-response .response-chart .plot{height:250px!important;min-height:250px!important}
 .ac-panel .spatial-card{flex:none!important;height:570px!important;min-height:570px!important}
 .ac-panel .spatial-card .chart-composition-head{flex-wrap:wrap!important}
 .ac-panel .spatial-card .plot-toolbar{align-items:flex-start!important}
 .ac-panel .spatial-card .unified-legend{flex-wrap:wrap!important}
 .ac-panel .spatial-card .vapor-legend{flex-wrap:wrap!important;justify-content:flex-start!important}
 .ac-panel .spatial-card .chart-scroll,.ac-panel .spatial-card .plot{min-height:330px!important;height:100%!important}
 .ac-panel .band-result{grid-template-columns:85px 1fr!important}
}
