/* Componentes da modelagem com escopo restrito ao painel DN 400.
   Declarações copiadas sem alteração; origem preservada na versão 27; declarações idênticas nesta revisão.
   A sequência mantém a cascata painel.css → template-21.css → refinamento-21.css. */
/* Adaptação de identidade: #view se associa ao corpo do painel; as declarações são preservadas. */

/* painel.css */
#dn400-panel{font-family:Aptos,Arial,sans-serif;color:#003366;background:#edf2f5;font-size:14px;--line:#c6d8e7;--navy:#003366;--blue:#215c98;--green:#21835b;--orange:#e66b00;--purple:#7b1b6f;--cyan:#00aeef}
#dn400-panel *{box-sizing:border-box}
#dn400-panel button,#dn400-panel select,#dn400-panel input{font:inherit;color:inherit}
#dn400-panel button,#dn400-panel select{cursor:pointer}
#dn400-panel button,#dn400-panel a,#dn400-panel select,#dn400-panel input{touch-action:manipulation}
#dn400-panel button{border:1px solid #b9c9d6;border-radius:7px;background:#f6f9fb;min-height:32px;padding:5px 11px;font-weight:600;font-size:12px}
#dn400-panel button:hover{background:#e7f1f9}
#dn400-panel button:focus-visible,#dn400-panel a:focus-visible,#dn400-panel select:focus-visible,#dn400-panel input:focus-visible{outline:3px solid #4d93d9;outline-offset:2px}
#dn400-panel button.active,#dn400-panel button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}
#dn400-panel select,#dn400-panel input{border:1px solid #b9c9d6;border-radius:7px;background:white;min-height:32px;padding:5px 9px;max-width:100%}
#dn400-panel input[type=checkbox]{min-height:auto;accent-color:#003366}
#dn400-panel button:disabled{opacity:.35;cursor:default}
#dn400-panel a{color:inherit}
#dn400-panel [hidden]{display:none!important}
#dn400-panel .panel-header{display:flex;align-items:center;gap:12px;background:white;border-bottom:1px solid var(--line);padding:5px 14px;min-height:48px;flex-shrink:0}
#dn400-panel .panel-header>strong{font-size:16px}
#dn400-panel .panel-header>#expand{margin-left:auto;white-space:nowrap}
#dn400-panel .panel-nav{display:flex;gap:4px;align-items:center;min-height:43px;padding:5px 14px;background:#f8fafb;border-bottom:1px solid var(--line);flex-shrink:0}
#dn400-panel .panel-nav button{border:0;background:transparent;font-size:13px;padding:6px 14px}
#dn400-panel .panel-nav button.active{background:#003366}
#dn400-panel .panel-nav .data-note{margin-left:auto;font-size:11px;color:#607b90}
#dn400-panel main{flex:1;min-height:0;overflow:auto;padding:12px 14px 14px;scrollbar-color:#4d93d9 #edf2f5;scrollbar-width:thin}
#dn400-panel .page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}
#dn400-panel .kicker{text-transform:uppercase;letter-spacing:.9px;font-size:10px;color:#607b90;font-weight:600;margin:0 0 4px}
#dn400-panel .page-head h1{font-size:23px;line-height:1.12;letter-spacing:.2px;margin:0}
#dn400-panel .page-head p:not(.kicker){font-size:12px;margin:4px 0 0;color:#587591}
#dn400-panel .controls{display:flex;align-items:flex-end;gap:7px;flex-shrink:0}
#dn400-panel .controls label{font-size:11px;font-weight:600;display:flex;flex-direction:column;gap:4px}
#dn400-panel .controls select{font-size:12px;font-weight:600}
#dn400-panel .controls .inline{flex-direction:row;align-items:center}
#dn400-panel .surface-card{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;min-width:0}
#dn400-panel .card-head{border-bottom:1px solid var(--line);padding:10px 16px;text-align:center}
#dn400-panel .card-head h2{margin:0;font-size:17px;letter-spacing:.5px}
#dn400-panel .card-head p{font-size:11px;color:#607b90;margin:4px 0 0}
#dn400-panel .chart-card{display:flex;flex-direction:column}
#dn400-panel .chart-scroll{min-height:0;flex:1;overflow-x:auto;overflow-y:hidden}
#dn400-panel .plot{width:100%;height:100%;min-height:230px}
#dn400-panel .chart-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;width:max-content;max-width:95%;margin:10px auto 0;border:1px solid #003366;border-radius:10px;padding:8px;background:#edf5fa;font-size:11px;line-height:1}
#dn400-panel .chart-legend span{display:flex;align-items:center;gap:6px}
#dn400-panel .chart-legend i{display:inline-block;width:32px;height:0;border-top:3px solid var(--c)}
#dn400-panel .chart-legend i.dot{width:8px;height:8px;background:var(--c);border:0;border-radius:50%}
#dn400-panel .chart-legend i.dashed{border-top-style:dashed}
#dn400-panel .profile-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(240px,.8fr);gap:14px;height:calc(100% - 54px);min-height:270px}
#dn400-panel .profile-layout .chart-card,#dn400-panel .profile-layout .table-card{height:100%}
#dn400-panel .table-card{display:flex;flex-direction:column}
#dn400-panel .table-card .card-head{text-align:left}
#dn400-panel .table-scroll{overflow:auto;min-height:0;flex:1;scrollbar-color:#4d93d9 #edf2f5;scrollbar-width:thin}
#dn400-panel table{border-collapse:collapse;width:100%;font-size:12px;font-variant-numeric:tabular-nums;text-align:center}
#dn400-panel th{position:sticky;top:0;z-index:2;background:#003366;color:#fff;font-size:12px;font-weight:700;padding:10px 9px;border-right:1px solid #446684;vertical-align:middle}
#dn400-panel th:last-child{border-right:0}
#dn400-panel th .head-inner{display:flex;justify-content:center;align-items:center;gap:10px}
#dn400-panel th .head-title{display:block}
#dn400-panel th small{display:table;border-top:1px solid #8ba4bb;padding-top:3px;margin:3px auto 0;color:#c6d8e7;font-size:11px;font-weight:400;line-height:1.1}
#dn400-panel th button{min-height:26px;height:26px;min-width:26px;width:26px;padding:0;border:1px solid #577d9e;border-radius:4px;color:white;background:transparent;line-height:1;flex-shrink:0}
#dn400-panel th button:hover{background:#215c98}
#dn400-panel td{padding:8px 10px;border-bottom:1px dotted #d3dee7}
#dn400-panel tr:nth-child(even) td{background:#f2f6f8}
#dn400-panel tr.selected td{background:#deedf7}
#dn400-panel tbody tr[data-row]{cursor:pointer}
#dn400-panel tbody tr[data-row]:hover td{background:#e7f1f9}
#dn400-panel .code-pill{display:inline-block;background:#1b527d;color:#fff;border-radius:6px;padding:5px 8px;white-space:nowrap;font-size:11px;font-weight:700;line-height:1.25}
#dn400-panel .bar{height:5px;display:block;border-radius:3px;background:#d9e5ed;margin-top:5px;width:100%;min-width:40px}
#dn400-panel .bar i{display:block;border-radius:3px;height:100%;background:var(--c,#003366);width:var(--w)}
#dn400-panel .table-tools{display:flex;align-items:center;gap:10px;padding:7px 12px;font-size:11px;color:#607b90;border-bottom:1px solid var(--line);min-height:35px}
#dn400-panel .table-tools input{min-height:26px;width:135px;font-size:11px;margin-left:auto}
#dn400-panel .table-tools button{min-height:26px;font-size:11px;padding:3px 8px}
#dn400-panel .home-copy .home-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}
#dn400-panel .reading{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:11px;min-height:29px;padding:5px 14px;background:#f8fafb;border-top:1px solid var(--line);color:#4d6d88}
#dn400-panel .reading output{font-weight:600;color:#003366}
@media(min-width:1000px){
#dn400-panel main{padding:12px 16px}
#dn400-panel .panel-header{padding-inline:16px}
#dn400-panel .panel-nav{padding-inline:16px}
}
@media(max-height:490px) and (min-width:760px){
#dn400-panel .page-head{margin-bottom:7px}
#dn400-panel .page-head h1{font-size:20px}
#dn400-panel .card-head{padding:7px 12px}
#dn400-panel .card-head h2{font-size:15px}
#dn400-panel .chart-legend{margin-top:7px;padding:6px}
#dn400-panel .panel-header{min-height:42px}
#dn400-panel .panel-nav{min-height:39px}
}
@media(max-width:759px){
#dn400-panel .panel-header{gap:7px;padding:6px 9px;flex-wrap:wrap}
#dn400-panel .panel-header>strong{font-size:13px}
#dn400-panel .panel-header>#expand{font-size:11px}
#dn400-panel .panel-nav{overflow-x:auto;padding:5px;gap:0;min-height:41px}
#dn400-panel .panel-nav button{font-size:12px;padding:6px 9px;white-space:nowrap}
#dn400-panel .page-head{align-items:flex-start;flex-wrap:wrap;gap:10px}
#dn400-panel .page-head h1{font-size:20px}
#dn400-panel .controls{flex-wrap:wrap}
#dn400-panel .controls label{font-size:10px}
#dn400-panel main{padding:10px}
#dn400-panel .profile-layout{grid-template-columns:1fr;height:auto}
#dn400-panel .profile-layout .chart-card{height:340px}
#dn400-panel .profile-layout .table-card{height:280px}
#dn400-panel .profile-layout .plot{min-width:630px}
#dn400-panel .chart-legend{font-size:10px;gap:9px}
#dn400-panel .chart-legend i{width:20px}
#dn400-panel .table-scroll table{min-width:570px}
#dn400-panel .profile-layout .table-scroll table{min-width:390px}
#dn400-panel .reading{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
#dn400-panel *{scroll-behavior:auto!important}
}
@media(min-width:760px){
#dn400-panel .plot{min-height:0}
#dn400-panel .profile-layout{min-height:235px}
}
@media(max-height:490px) and (min-width:760px){
#dn400-panel .page-head .kicker{display:none}
#dn400-panel .page-head{min-height:34px;margin-bottom:6px}
#dn400-panel .page-head h1{font-size:19px}
#dn400-panel .card-head p{display:none}
#dn400-panel .profile-layout{height:calc(100% - 42px)}
#dn400-panel .card-head{padding:8px 12px}
#dn400-panel .controls label{gap:2px}
#dn400-panel .controls select{min-height:28px;padding-top:3px;padding-bottom:3px}
}
@media(max-width:759px){
#dn400-panel .profile-layout .chart-card .card-head p:after{content:" Deslize para percorrer o perfil."}
}
#dn400-panel .table-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left}
@media(max-width:759px){
#dn400-panel .table-heading{flex-wrap:wrap}
}

/* template-21.css */
#dn400-panel button{border-radius:8px;min-height:38px;font-weight:650}
#dn400-panel button.active{background:#003366;border-color:#003366;color:#fff}
#dn400-panel button:focus-visible,#dn400-panel a:focus-visible{outline:3px solid #4d93d9;outline-offset:2px}
#dn400-panel .choice-group{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
#dn400-panel .choice-group .choice-label{font-size:11px;color:#557a9b;margin-right:5px}
#dn400-panel .controls{flex-wrap:wrap;gap:10px;justify-content:flex-end}
#dn400-panel .panel-nav .data-note{display:block;font-size:11px}
#dn400-panel table{border-collapse:separate;border-spacing:0}
#dn400-panel thead{position:sticky;top:0;z-index:2;background:#003366}
#dn400-panel thead th{position:relative;top:auto;z-index:auto;border-right:1px solid #496e94}
#dn400-panel th .head-title>span{display:inline-block;border-bottom:1px solid #9ab5d0;padding-bottom:3px}
#dn400-panel th small{border:0;margin-top:4px;padding:0;color:white}
#dn400-panel th .head-inner{position:relative;display:block;padding:0 22px;min-height:20px}
#dn400-panel th button{position:absolute;right:-3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:23px;height:28px;min-width:23px;min-height:28px;padding:0}
#dn400-panel th button svg{width:12px;height:12px;display:block}
#dn400-panel .table-tools{order:2;justify-content:space-between;min-height:42px;background:#fff}
#dn400-panel .table-tools button{min-height:28px;height:30px}
#dn400-panel .table-tools #table-count{margin:auto;font-size:11px}
#dn400-panel .table-card>.reading{order:3;min-height:35px;font-weight:400}
#dn400-panel .table-card .table-scroll table{table-layout:fixed;min-width:445px}
#dn400-panel .table-card .table-scroll table[data-columns="5"]{min-width:0}
#dn400-panel .table-card th{padding:12px 4px}
#dn400-panel .table-card th:first-child{width:28%}
#dn400-panel .table-card th:last-child{width:22%}
#dn400-panel .table-card td{padding:10px 5px}
#dn400-panel .table-card td:first-child{font-weight:500}
#dn400-panel .table-card th:not(:first-child):not(:last-child) .head-inner{padding:0}
#dn400-panel .table-card th:not(:first-child):not(:last-child) button{display:none}
#dn400-panel .table-card .reading output{font-weight:400}
#dn400-panel .chart-legend{border:0;border-radius:0;background:#f7fafc;margin:0;padding:10px 14px;gap:17px;align-self:stretch;width:100%;max-width:none;justify-content:center;flex-wrap:wrap;border-bottom:1px solid #c6d8e7}
#dn400-panel .chart-card>.card-head{display:none}
#dn400-panel .profile-layout{grid-template-columns:minmax(0,1.9fr) minmax(420px,1fr);gap:16px;height:360px;min-height:0}
#dn400-panel .profile-layout .plot{min-height:0;min-width:0}
#dn400-panel .profile-layout .table-card,#dn400-panel .profile-layout .chart-card{min-width:0;height:360px}
#dn400-panel .profile-layout .table-card .card-head{padding:13px 16px;flex-shrink:0}
#dn400-panel .table-card .card-head h2{font-size:16px}
#dn400-panel .table-card .card-head p{font-size:11px}
#dn400-panel .review-page-head{margin-bottom:10px}
#dn400-panel .review-page-head h1{font-size:24px;margin:3px 0 6px}
#dn400-panel .review-page-head p{font-size:12px;color:#547797;margin:0}
#dn400-panel .review-conditions{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
#dn400-panel .review-conditions button{padding:8px 14px}
#dn400-panel .review-result{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;border:1px solid #bfd3e5;border-left:4px solid #003366;border-radius:9px;background:white;padding:13px 17px;margin:12px 0;font-size:13px}
#dn400-panel .review-result p{margin:5px 0 0;color:#4a6d8c;line-height:1.5}
#dn400-panel .review-result strong{font-size:15px}
#dn400-panel .review-result .result-value{font-size:26px;white-space:nowrap}
#dn400-panel .review-result small{display:block;font-size:11px;color:#557a9b;text-align:right}
#dn400-panel .review-result.warning{border-left-color:#e66b00}
#dn400-panel .review-result.warning .result-value{color:#b64d00}
#dn400-panel .case-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);padding:24px;gap:30px}
#dn400-panel .case-hero h1{font-size:28px;line-height:1.17;margin:7px 0 14px;max-width:650px}
#dn400-panel .case-hero p{font-size:14px;color:#486e8e;line-height:1.6;margin:10px 0}
#dn400-panel .case-hero .home-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:19px}
#dn400-panel .case-evidence{border-left:1px solid #bed2e3;padding:8px 0 8px 25px;display:flex;flex-direction:column;justify-content:center}
#dn400-panel .case-evidence .big-number{font-size:46px;line-height:1.2;color:#b84b00;letter-spacing:-1px;font-weight:700}
#dn400-panel .case-evidence .big-number small{font-size:18px;letter-spacing:0}
#dn400-panel .case-evidence strong{font-size:14px}
#dn400-panel .case-evidence p{font-size:12px}
#dn400-panel .review-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
#dn400-panel .review-step{padding:17px 18px}
#dn400-panel .review-step .step-number{font-size:11px;letter-spacing:.6px;color:#607f99}
#dn400-panel .review-step h2{font-size:17px;margin:7px 0}
#dn400-panel .review-step p{font-size:13px;line-height:1.55;margin:0;color:#476b8b}
#dn400-panel .review-footnote{font-size:11px;color:#557a9b;line-height:1.5;margin:10px 2px}
#dn400-panel .review-math-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#dn400-panel .calculation{padding:18px}
#dn400-panel .calculation h2{font-size:17px;margin:0 0 10px}
#dn400-panel .calculation p{font-size:13px;line-height:1.55;color:#476b8b;margin:8px 0}
#dn400-panel .review-check-table{min-width:700px}
#dn400-panel .review-check-table td{text-align:left;vertical-align:top;line-height:1.5;padding:12px}
#dn400-panel .review-check-table th{padding:13px 12px}
#dn400-panel .review-check-table th .term{display:inline-block;border-bottom:1px solid #9ab5d0;padding-bottom:3px}
#dn400-panel .review-check-table td:first-child{width:21%;font-weight:650}
#dn400-panel .review-check-table td:nth-child(2),#dn400-panel .review-check-table td:nth-child(3){white-space:nowrap;text-align:center}
#dn400-panel .review-check-table .status-note{display:block;font-weight:400;color:#557a9b;font-size:11px}
#dn400-panel .review-checks>.surface-card{margin-bottom:12px}
@media(max-width:1050px){
#dn400-panel .profile-layout{grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr)}
#dn400-panel .case-hero{gap:18px;padding:20px}
#dn400-panel .case-hero h1{font-size:25px}
#dn400-panel .table-card .table-scroll table{min-width:410px}
}
@media(max-width:759px){
#dn400-panel .case-hero,#dn400-panel .review-steps,#dn400-panel .review-math-grid{grid-template-columns:1fr}
#dn400-panel .case-hero{padding:18px;gap:16px}
#dn400-panel .case-evidence{border-left:0;border-top:1px solid #bed2e3;padding:16px 0 0}
#dn400-panel .case-evidence .big-number{font-size:38px}
#dn400-panel .review-steps{gap:9px}
#dn400-panel .review-step{padding:15px}
#dn400-panel .profile-layout{grid-template-columns:1fr;height:auto;gap:12px}
#dn400-panel .profile-layout .chart-card{height:310px}
#dn400-panel .profile-layout .table-card{height:330px}
#dn400-panel .review-conditions{gap:5px}
#dn400-panel .review-conditions button{font-size:11px;padding:7px 9px;flex:1 1 42%}
#dn400-panel .review-conditions button:first-child{flex-basis:100%}
#dn400-panel .review-result{grid-template-columns:1fr;gap:10px;padding:12px}
#dn400-panel .review-result .result-value{font-size:23px}
#dn400-panel .review-result small{text-align:left}
#dn400-panel .review-page-head h1{font-size:22px}
#dn400-panel .controls{justify-content:flex-start}
#dn400-panel .choice-group{gap:4px}
#dn400-panel .choice-group button{font-size:11px;padding:6px 9px}
#dn400-panel .choice-group .choice-label{flex-basis:100%}
#dn400-panel .panel-nav{flex-wrap:wrap;overflow:visible}
#dn400-panel .panel-nav .data-note{margin-left:auto;padding:4px 8px}
#dn400-panel .panel-nav button{min-height:35px}
#dn400-panel .profile-layout .chart-card .card-head p:after{content:none}
#dn400-panel .chart-legend{gap:10px;font-size:10px}
#dn400-panel .table-card .reading{font-size:10px}
#dn400-panel .table-card .table-scroll table[data-columns="5"]{min-width:0;font-size:11px}
#dn400-panel .table-card table[data-columns="5"] th{font-size:10px;padding:10px 3px}
#dn400-panel .table-card table[data-columns="5"] td{padding:10px 3px}
#dn400-panel .table-card table[data-columns="5"] th:first-child{width:27%}
#dn400-panel .table-card table[data-columns="5"] th:last-child{width:23%}
#dn400-panel .table-card table[data-columns="5"] th .head-inner{padding-left:0;padding-right:22px}
#dn400-panel .table-card table[data-columns="5"] th:not(:first-child):not(:last-child) .head-inner{padding:0}
}

/* refinamento-21.css */
#dn400-panel .ad01-body.review-profile-view{display:flex;flex-direction:column;gap:12px}
#dn400-panel .review-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;flex-shrink:0}
#dn400-panel .review-toolbar .review-page-head{flex:1 1 430px;margin:0}
#dn400-panel .review-toolbar .review-conditions{flex:0 1 auto;justify-content:flex-end;margin:0}
#dn400-panel .review-toolbar .review-conditions button{padding:8px 12px;white-space:nowrap}
#dn400-panel .review-profile-view .review-profile{flex:1 0 350px;height:auto;min-height:350px}
#dn400-panel .review-profile-view .review-profile>.chart-card,#dn400-panel .review-profile-view .review-profile>.table-card{height:auto;min-height:0}
#dn400-panel .review-chart-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;padding:6px 10px;background:#f7fafc;border-bottom:1px solid #c6d8e7;flex-shrink:0}
#dn400-panel .review-chart-bar .chart-legend{flex:1 1 auto;width:auto;align-self:auto;margin:0;padding:4px 0;gap:12px;border:0;background:transparent}
#dn400-panel .review-display{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:0}
#dn400-panel .review-display button{min-height:30px;padding:5px 9px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;color:#003366}
#dn400-panel .review-display button.active{color:#fff}
#dn400-panel .review-profile-view>.review-result{flex-shrink:0;margin:0;padding:10px 14px}
#dn400-panel .review-profile-view>.review-footnote{flex-shrink:0;margin:0;line-height:1.4}
#dn400-panel .review-values{margin:12px 0;background:#f1f6fa;border-radius:7px;padding:3px 13px;font-variant-numeric:tabular-nums}
#dn400-panel .review-values>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #dce7ef}
#dn400-panel .review-values>div:last-child{border-bottom:0}
#dn400-panel .review-values dt{font-size:12px;color:#476b8b}
#dn400-panel .review-values dd{margin:0;font-size:16px;font-weight:650;white-space:nowrap}
#dn400-panel .review-checks .calculation{padding:15px 18px}
@media(max-width:1199px) and (min-width:760px){
#dn400-panel .review-toolbar{gap:8px}
#dn400-panel .review-toolbar .review-conditions{justify-content:flex-start}
#dn400-panel .review-toolbar .review-page-head{flex-basis:100%}
}
@media(max-width:759px){
#dn400-panel .ad01-body.review-profile-view{gap:10px}
#dn400-panel .review-toolbar{gap:8px}
#dn400-panel .review-toolbar .review-page-head{flex-basis:100%}
#dn400-panel .review-toolbar .review-conditions{width:100%}
#dn400-panel .review-toolbar .review-conditions button{padding:7px 9px}
#dn400-panel .review-profile-view .review-profile{flex:none;min-height:0;height:auto}
#dn400-panel .review-profile-view .review-profile>.chart-card{height:380px}
#dn400-panel .review-profile-view .review-profile>.table-card{height:360px}
#dn400-panel .review-chart-bar{gap:7px;padding:8px}
#dn400-panel .review-chart-bar .chart-legend{flex-basis:100%;gap:9px}
#dn400-panel .review-display{width:100%}
#dn400-panel .review-display button{flex:1;min-height:34px}
#dn400-panel .review-values dd{font-size:15px}
}

/* Revisão 48: leituras focadas, referências abertas e comparação por perfil. */
#dn400-panel .dn-heading-icon{display:inline-block;vertical-align:middle;width:21px;height:24px;object-fit:contain;margin-right:5px}
#dn400-panel .dn-key-icon{width:16px;height:19px;object-fit:contain;vertical-align:middle}
#dn400-panel .dn-poi-key{display:flex;flex-wrap:wrap;gap:6px 13px;align-items:center;justify-content:center;font-size:10px}
#dn400-panel .dn-poi-key span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
#dn400-panel .dn-open-note{padding:12px 16px;margin:0}
#dn400-panel .dn-open-note h2,#dn400-panel .dn-open-note h3{font-size:14px;margin:0 0 8px;color:#003366}
#dn400-panel .dn-open-note p{margin:6px 0;font-size:12px;line-height:1.6}
#dn400-panel .dn-pressure-references{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:0 0 auto}
#dn400-panel .dn-pressure-references article{padding:11px 14px;border-left:4px solid}
#dn400-panel .dn-pressure-references strong{font-size:14px}
#dn400-panel .dn-pressure-references p{font-size:12px;line-height:1.55;margin:5px 0 0}
#dn400-panel .dn-reference-min{border-left-color:#005fbd!important}
#dn400-panel .dn-reference-min>strong{color:#005fbd}
#dn400-panel .dn-reference-max{border-left-color:#ff0000!important}
#dn400-panel .dn-reference-max>strong{color:#ff0000}
#dn400-panel .dn-status{display:inline-flex;align-items:center;border-radius:5px;padding:5px 8px;font-size:11px;font-weight:700;line-height:1.4}
#dn400-panel .dn-status-pass{background:#e5f4eb;color:#17613a;border:1px solid #9fceb2}
#dn400-panel .dn-status-fail{background:#fbecef;color:#95334d;border:1px solid #e6b5c2}
#dn400-panel .dn-status-old{background:#fff4df;color:#7d5a18;border:1px solid #e4cb95}
#dn400-panel .dn-comparison-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;flex:0 0 auto}
#dn400-panel .dn-stacked-comparison{height:610px;min-height:610px;flex:1 0 610px}
#dn400-panel .dn-stacked-comparison .dn-plot{min-height:450px}
#dn400-panel .dn-stacked-comparison .card-head{flex-wrap:wrap}
#dn400-panel .dn-stacked-comparison .dn-pressure-key{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:11px}
#dn400-panel .dn-pressure-key span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#dn400-panel .dn-pressure-key i{display:inline-block;width:22px;height:3px}
#dn400-panel .dn-band-bar{height:5px;background:#e7eef3;border-radius:4px;margin:6px 0 2px;min-width:80px}
#dn400-panel .dn-band-bar i{display:block;height:5px;border-radius:4px}
#dn400-panel .dn-reading-note{padding:0 14px;font-size:11px;color:#537794}
#dn400-panel .dn-results .dn-curated-table{width:100%;max-width:100%;min-width:0!important;table-layout:fixed;font-size:12px}
#dn400-panel .dn-results .dn-curated-table th{padding:9px 3px;font-size:11px;width:auto!important}
#dn400-panel .dn-results .dn-curated-table th:first-child{width:27%!important}
#dn400-panel .dn-results .dn-curated-table td{padding:8px 4px;white-space:normal;overflow-wrap:normal}
#dn400-panel .dn-results .dn-curated-table .head-inner{padding:0!important}
#dn400-panel .dn-poi-label{display:block;color:#597c9f;font-size:10px;font-weight:400;line-height:1.3;margin-top:4px}
#dn400-panel .dn-minimum-cell{box-shadow:inset 3px 0 #005fbd}
#dn400-panel .dn-maximum-cell{box-shadow:inset 3px 0 #ff0000}
@media(max-width:759px){
 #dn400-panel .dn-pressure-references{grid-template-columns:1fr;gap:9px}
 #dn400-panel .dn-comparison-controls{align-items:flex-start;flex-direction:column;gap:8px}
 #dn400-panel .dn-stacked-comparison{height:650px;min-height:650px;flex:none}
 #dn400-panel .dn-profile-grid>.chart-card{height:480px!important;min-height:480px!important}
 #dn400-panel .dn-results .dn-curated-table{font-size:11px}
 #dn400-panel .dn-results .dn-curated-table th{font-size:10px}
 #dn400-panel .dn-profile-grid>.table-card{height:390px!important;min-height:390px!important}
}
#dn400-panel .dn-stacked-comparison{height:610px!important;min-height:610px!important;max-height:none!important;flex:1 0 610px!important}
#dn400-panel .dn-stacked-comparison .dn-plot{height:100%!important;min-height:420px!important;flex:1 1 420px!important}
@media(max-width:759px){#dn400-panel .dn-stacked-comparison{height:660px!important;min-height:660px!important;flex:0 0 660px!important}#dn400-panel .dn-stacked-comparison .dn-plot{min-height:450px!important;flex:1 1 450px!important}}
#dn400-panel .dn-pressure-references article{border-left-width:4px!important;border-left-style:solid!important}

/* Revisão 49: grade comum, identidade dos cenários e faixas de referência. */
#dn400-panel .dn-home-story{grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);align-items:stretch}
#dn400-panel .dn-home-narrative{border-left:1px solid #bfd3e5;padding-left:23px;display:grid;align-content:center;gap:9px}
#dn400-panel .dn-home-narrative>strong{font-size:14px;margin-bottom:3px}
#dn400-panel .dn-narrative-case{border-left:4px solid var(--case)!important;background:#f3f7fa;padding:10px 13px;border-radius:7px}
#dn400-panel .dn-narrative-case h2{font-size:14px;margin:0 0 4px}
#dn400-panel .dn-narrative-case p{font-size:12px;margin:0;line-height:1.5}
#dn400-panel .dn-home-step{border-left:4px solid var(--case)!important;display:flex;flex-direction:column;min-width:0}
#dn400-panel .dn-home-step .home-actions{margin-top:auto;padding-top:15px}
#dn400-panel .dn-home-step .step-number{font-size:12px;letter-spacing:0;display:flex;gap:6px;align-items:center}
#dn400-panel .dn-case-tag{vertical-align:baseline;white-space:nowrap;line-height:1.35;min-width:24px;flex:none}
#dn400-panel .dn-scenarios button{border-left:4px solid var(--case,#003366)!important}
#dn400-panel .dn-scenarios button.active{background:var(--case,#003366)!important;border-color:var(--case,#003366)!important;color:#fff!important}
#dn400-panel .dn-scenarios button.active .dn-case-tag{background:#fff!important;color:var(--case,#003366)!important}
#dn400-panel .dn-pressure-references{align-items:stretch;margin:0}
#dn400-panel .dn-premises-grid{align-items:stretch!important}
#dn400-panel .dn-inertia-note{border-left:4px solid #003366!important;background:#fff}
#dn400-panel .dn-inertia-note strong{font-weight:700;color:#003366}
#dn400-panel .dn-inertia-note h2{margin-bottom:10px}
#dn400-panel .dn-device-case{padding:12px 14px 2px}
#dn400-panel .dn-valve-parameters{table-layout:fixed;width:100%;min-width:0}
#dn400-panel .dn-valve-parameters td:first-child{width:36%;font-weight:650;text-align:left}
#dn400-panel .dn-valve-parameters td{padding:12px;white-space:normal}
#dn400-panel .dn-valve-parameters th:first-child{width:36%}
#dn400-panel .dn-valve-parameters th:last-child{width:12%}
#dn400-panel .dn-valve-action{padding:13px 15px}
#dn400-panel .dn-band-line,#dn400-panel .dn-max-band-line{height:3px!important;border:0!important;background:linear-gradient(90deg,#ff0000 0 33%,#e0c500 33% 66%,#1b8d60 66% 100%)!important}
#dn400-panel .dn-max-band-line{background:linear-gradient(90deg,#171717 0 33%,#44afd4 33% 66%,#8a208f 66% 100%)!important}
#dn400-panel .dn-pressure-key{display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;font-size:10px}
#dn400-panel .dn-pressure-key span{display:inline-flex;align-items:center;gap:5px}
#dn400-panel .dn-pressure-key i{width:22px;height:3px;display:inline-block}
#dn400-panel .dn-minimum-cell,#dn400-panel .dn-maximum-cell{box-shadow:inset 3px 0 var(--pressure-band,#657589)!important}
#dn400-panel .dn-bands-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
#dn400-panel .dn-bands-card{min-width:0;overflow:hidden}
#dn400-panel .dn-bands-card .card-head h2{font-size:15px}
#dn400-panel .dn-bands-list{padding:0 14px}
#dn400-panel .dn-band-row{display:grid;grid-template-columns:minmax(110px,.76fr) minmax(0,1.8fr);gap:13px;padding:15px 0;border-bottom:1px solid #d6e2ec}
#dn400-panel .dn-band-row>strong{font-size:12px;align-self:center;border-left:4px solid var(--band)!important;padding-left:9px;line-height:1.5}
#dn400-panel .dn-band-row:last-child{border-bottom:0}
#dn400-panel .dn-band-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;margin:0 0 8px;font-size:11px}
#dn400-panel .dn-band-result:last-child{margin-bottom:0}
#dn400-panel .dn-band-result>span{display:flex;gap:4px;align-items:center}
#dn400-panel .dn-band-result>b{font-size:11px;white-space:nowrap}
#dn400-panel .dn-band-result .dn-band-bar{grid-column:1/-1;margin:0;min-width:0}
#dn400-panel .dn-reading-note{font-size:11px;line-height:1.5;color:#527899;padding:0 14px 10px;margin:8px 0 0}
@media(max-width:1050px){
 #dn400-panel .dn-band-row{grid-template-columns:1fr;gap:9px}
}
@media(max-width:759px){
 #dn400-panel .dn-home-story{grid-template-columns:1fr}
 #dn400-panel .dn-home-narrative{padding:14px 0 0;border-left:0;border-top:1px solid #bfd3e5}
 #dn400-panel .dn-bands-grid{grid-template-columns:1fr}
 #dn400-panel .dn-valve-parameters td{font-size:11px;padding:9px 5px}
 #dn400-panel .dn-valve-parameters th{font-size:10px;padding:10px 4px}
 #dn400-panel .dn-band-result{grid-template-columns:minmax(0,1fr) auto;font-size:10px}
 #dn400-panel .dn-band-result>b{font-size:10px}
 #dn400-panel .dn-band-result .dn-case-name{max-width:110px;overflow-wrap:anywhere}
}
#dn400-panel[data-view="envelopes"][data-envelope="pressure"] .dn-profile-grid>.chart-card{min-height:570px!important}
@media(max-width:759px){#dn400-panel[data-view="envelopes"][data-envelope="pressure"] .dn-profile-grid>.chart-card{height:620px!important;min-height:620px!important}}
#dn400-panel .ac-steps>.dn-home-step{display:flex!important;flex-direction:column!important}
#dn400-panel .dn-home-step .home-actions{margin-top:auto!important;padding-top:15px}
#dn400-panel .dn-bands-list{padding:12px;display:grid;gap:10px}
#dn400-panel .dn-band-row{padding:12px;background:#f7fafc;border:1px solid #d4e2ed!important;border-radius:8px;align-items:center}
@media(max-width:759px){#dn400-panel .dn-band-row{padding:10px}}
@media(max-width:759px){#dn400-panel .dn-source-profile{height:440px!important;min-height:440px!important;flex:0 0 440px!important}}
@media(max-width:759px){#dn400-panel .dn-source-profile>.dn-plot{height:auto!important;min-height:300px!important;flex:1 1 300px!important}}
/* Versão 50: composição específica dos dados DN 400; medidas comuns em painel-universal.css. */
#dn400-panel .dn-home-story{grid-template-columns:minmax(0,2fr) minmax(260px,1fr);align-items:start!important;min-height:0!important}
#dn400-panel .dn-home-story .dn-home-metrics{border-left:1px solid #bfd3e5;padding-left:12px;gap:6px}
#dn400-panel .dn-home-story p{margin:8px 0!important}
#dn400-panel .dn-home-metrics .review-values{margin:0;padding:0 8px}
#dn400-panel .dn-home-metrics h2{margin:0 0 6px}
#dn400-panel .dn-home-metrics dd{font-weight:700}
#dn400-panel .ac-steps,#dn400-panel .dn-premise-cases,#dn400-panel .dn-comparison-cards{align-items:start!important;grid-template-columns:repeat(3,minmax(0,1fr))}
#dn400-panel .ac-steps>.dn-home-step,#dn400-panel .dn-premise-cases>.dn-case-card{height:auto!important;min-height:0!important;align-self:start!important}
#dn400-panel .dn-home-step .home-actions{margin-top:10px!important;padding-top:0!important}
#dn400-panel .dn-home-step p{margin:8px 0 0!important}
#dn400-panel .dn-home-step h2{margin:8px 0 0!important}
#dn400-panel .dn-home-story .home-actions{margin-top:10px!important}
#dn400-panel .dn-profile-grid{grid-template-columns:minmax(0,65fr) minmax(320px,35fr);flex:0 0 auto!important;align-items:stretch;min-height:0!important}
#dn400-panel .dn-envelope-chart{height:auto!important;min-height:0!important}
#dn400-panel .dn-envelope-chart>.dn-plot,#dn400-panel .dn-pressure-chart>.dn-plot{height:360px!important;min-height:360px!important;flex:0 0 360px!important}
#dn400-panel .dn-consult{height:auto!important;min-height:0!important;max-height:560px}
#dn400-panel .dn-pressure-charts{display:grid;gap:12px;min-width:0;align-content:start}
#dn400-panel .dn-pressure-chart{height:auto!important;min-height:0!important;flex:none!important}
#dn400-panel .dn-pressure-grid>.dn-consult{height:520px!important;align-self:start;position:sticky;top:0}
#dn400-panel .dn-consult-scope{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
#dn400-panel .dn-pagination{gap:6px;flex-wrap:wrap;padding:5px 8px}
#dn400-panel .dn-pagination>div{display:flex;align-items:center;gap:7px}
#dn400-panel .dn-pagination button{width:28px!important;min-width:28px!important}
#dn400-panel .dn-results tr.selected td{background:#e4f0fa!important}
#dn400-panel .dn-results .dn-curated-table th:first-child{width:34%!important}
#dn400-panel .dn-minimum-cell,#dn400-panel .dn-maximum-cell,#dn400-panel .dn-band-cell{box-shadow:inset 3px 0 var(--pressure-band)!important;color:inherit!important}
#dn400-panel .dn-bands-grid{grid-template-columns:1fr;align-items:start}
#dn400-panel .dn-bands-table{table-layout:fixed;width:100%;min-width:600px}
#dn400-panel .dn-bands-table th:first-child{width:24%!important}
#dn400-panel .dn-bands-table .dn-band-heading{display:block;border-bottom:2px solid var(--band);padding-bottom:4px}
#dn400-panel .dn-bands-table .dn-band-range{display:block;font-size:11px;font-weight:400;margin-top:4px}
#dn400-panel .dn-band-bar{height:5px;margin:5px 0;background:#e9eff4;border-radius:4px;overflow:hidden}
#dn400-panel .dn-band-bar i{display:block;height:5px;border-radius:4px}
#dn400-panel .dn-band-cell small{display:block;font-size:11px;font-weight:400}
#dn400-panel .dn-pressure-key{justify-content:flex-start}
#dn400-panel .dn-pressure-key>span{white-space:normal;align-items:flex-start;flex:1 1 190px}
#dn400-panel .dn-pressure-key>span>span{display:block;white-space:normal}
#dn400-panel .dn-pressure-key small{display:block;font-size:11px;color:#5b7693}
#dn400-panel .dn-pressure-key i{flex:0 0 20px;margin-top:7px}
#dn400-panel .dn-vapor-legend,#dn400-panel .dn-poi-key{justify-content:flex-start}
#dn400-panel .dn-heading-icon,#dn400-panel .dn-key-icon{width:22px;height:22px;object-fit:contain}
@media(max-width:759px){
 #dn400-panel .dn-home-story{grid-template-columns:1fr}
 #dn400-panel .dn-home-story .dn-home-metrics{border-left:0;padding-left:0;border-top:1px solid #bfd3e5;padding-top:10px}
 #dn400-panel .ac-steps,#dn400-panel .dn-premise-cases,#dn400-panel .dn-comparison-cards{grid-template-columns:1fr}
 #dn400-panel .dn-profile-grid{display:flex;flex-direction:column}
 #dn400-panel .dn-profile-grid>.dn-consult{position:static;height:390px!important;max-height:390px}
 #dn400-panel .dn-pressure-charts{width:100%}
 #dn400-panel .dn-envelope-chart>.dn-plot,#dn400-panel .dn-pressure-chart>.dn-plot{min-height:360px!important;height:360px!important}
}
#dn400-panel .panel-nav{height:32px!important;min-height:32px!important;padding-block:0!important;box-sizing:border-box}
#dn400-panel .panel-nav button{height:32px!important;min-height:32px!important;box-sizing:border-box}
#dn400-panel .dn-profile-grid>.dn-consult{height:500px!important;max-height:500px!important;align-self:start!important}
#dn400-panel .dn-pressure-grid>.dn-consult{height:500px!important;max-height:500px!important}
#dn400-panel .dn-consult>.dn-results{height:0;flex:1 1 0!important;min-height:0}
#dn400-panel .dn-consult .table-scroll{max-height:none!important}
#dn400-panel .ac-chart-bar{justify-content:flex-start!important;align-items:flex-start!important}
#dn400-panel .dn-legend{margin-left:0!important;margin-right:auto!important;justify-content:flex-start!important}
#dn400-panel .table-scroll table td,#dn400-panel .table-scroll table th{font-size:12px!important;line-height:1.3!important}
#dn400-panel .table-scroll table tbody tr{height:32px!important}
#dn400-panel .table-scroll table td small,#dn400-panel .table-scroll table th small{font-size:12px!important}
#dn400-panel .dn-home-metrics h2,#dn400-panel .card-head h2{font-size:20px!important;line-height:1.25!important}
#dn400-panel .dn-home-story .kicker{font-size:12px!important}
#dn400-panel .dn-tank-parameters{min-width:0!important;width:100%;table-layout:fixed}
#dn400-panel .dn-tank-parameters th:first-child{width:50%!important}
#dn400-panel .dn-poi-key,#dn400-panel .dn-vapor-legend,#dn400-panel .dn-pressure-key{font-size:12px!important}
#dn400-panel .table-scroll table th:first-child{width:34%!important}
#dn400-panel .table-scroll table[data-columns="3"] th:not(:first-child){width:33%!important}
#dn400-panel .dn-case-card{border-left:4px solid var(--case,#003366)!important}
#dn400-panel .dn-pressure-references>article>strong{font-size:20px!important;line-height:1.25!important}
#dn400-panel .dn-pressure-references p{font-size:15px!important;line-height:1.45!important}
