/* The shared calc-panel/grid/footer provide the form palette. */
#calculator .section-top{margin-bottom:30px}
#calculator .maintenance-intro{max-width:1000px}
#calculator h2{max-width:1000px;text-wrap:balance}
#calculator .maintenance-phrase{white-space:nowrap}
html[lang="ru"] #calculator .maintenance-title-opening{white-space:nowrap}
#calculator .maintenance-subtitle{max-width:790px;margin:20px 0 0;color:var(--muted);font-size:16px;line-height:1.6;text-wrap:balance}
#calculator .maintenance-layout{display:grid;grid-template-columns:minmax(0,.44fr) minmax(0,.56fr);padding:0;overflow:hidden}
#calculator .maintenance-estimate{min-width:0;padding:30px 32px;align-self:center}
#calculator .calc-head{margin-bottom:22px}
#calculator .calc-head h3{margin:0;font-size:23px}
#calculator .maintenance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
#calculator .maintenance-grid select{height:52px}
#calculator .maintenance-visual{position:relative;align-self:stretch;min-height:420px;margin:0;background:#202327}
#calculator .maintenance-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;display:block}
#calculator .maintenance-visual .maintenance-visual-light{display:none}
html[data-theme="light"] #calculator .maintenance-visual .maintenance-visual-dark{display:none}
html[data-theme="light"] #calculator .maintenance-visual .maintenance-visual-light{display:block}
#calculator .maintenance-grid label[hidden]{display:none}
#calculator [data-maintenance-parts-note]{font-size:13px;color:var(--muted);margin:12px 0 0}
#calculator .maintenance-actions{flex-direction:column;align-items:flex-start;gap:20px;margin-top:22px;padding-top:20px}
#calculator .maintenance-actions p{max-width:48ch;line-height:1.55}
#calculator .maintenance-actions .button{width:var(--action-width);height:var(--action-height);max-width:100%}
html.maintenance-modal-open{overflow:hidden!important;scroll-behavior:auto!important}
.maintenance-dialog{--estimate-bg:#1b1d20;--estimate-text:#f2f2f3;--estimate-muted:#bec0c4;--estimate-rule:var(--glass-edge,#43464b);box-sizing:border-box;width:min(1060px,calc(100% - 48px));max-width:none;max-height:calc(calc(100dvh / var(--porscha-scale,1)) - 48px);padding:0;margin:auto;border:1px solid var(--estimate-rule);border-radius:8px;background:var(--estimate-bg);color:var(--estimate-text);box-shadow:0 24px 90px #0008;overflow:auto;overscroll-behavior:contain;font:15px/1.55 'Golos Text',sans-serif}
.maintenance-dialog{--estimate-scroll-thumb:#666c75;--estimate-scroll-track:#22262c;--estimate-hover:rgba(255,255,255,.035);color-scheme:dark;scrollbar-color:var(--estimate-scroll-thumb) var(--estimate-scroll-track);scrollbar-width:auto;scrollbar-gutter:stable}
html[data-theme="light"] .maintenance-dialog{--estimate-bg:#f8f9fa;--estimate-text:#202328;--estimate-muted:#595f68;--estimate-scroll-thumb:#a0a6ae;--estimate-scroll-track:#edf0f3;--estimate-hover:rgba(0,0,0,.035);color-scheme:light}
.maintenance-dialog::-webkit-scrollbar{width:12px;height:12px}
.maintenance-dialog::-webkit-scrollbar-track{background:var(--estimate-scroll-track)}
.maintenance-dialog::-webkit-scrollbar-thumb{background:var(--estimate-scroll-thumb);border:3px solid var(--estimate-scroll-track);border-radius:10px}
.maintenance-dialog::-webkit-scrollbar-thumb:hover{background:var(--estimate-muted)}
.maintenance-dialog::-webkit-scrollbar-corner{background:var(--estimate-scroll-track)}
.maintenance-dialog::backdrop{background:#080b10c7;backdrop-filter:blur(5px)}
.maintenance-dialog *{box-sizing:border-box}
.maintenance-dialog-head{padding:28px 36px 20px;display:flex;gap:20px;justify-content:space-between;border-bottom:1px solid var(--estimate-rule)}
.maintenance-dialog .eyebrow{font-size:12px;margin:0 0 14px;color:var(--gold);letter-spacing:.14em;text-transform:uppercase;font-weight:600;line-height:1.4}
.maintenance-dialog .eyebrow::before{content:"";display:inline-block;width:23px;height:2px;background:var(--red);vertical-align:middle;margin:0 11px 3px 0}
.maintenance-dialog h2{font:600 clamp(22px,calc(3vw / var(--porscha-scale,1)),32px)/1.2 var(--heading-font,sans-serif);margin:0 0 12px;color:inherit;letter-spacing:0}
.maintenance-dialog [data-estimate-car]{margin:0;color:var(--estimate-text);opacity:.85;font-size:16px}
.maintenance-engine-label{white-space:nowrap}
.maintenance-dialog [data-estimate-date]{margin:6px 0 0;font-size:13px;color:var(--estimate-muted)}
.maintenance-dialog-close{flex:0 0 44px;align-self:flex-start;width:44px;height:44px;padding:0;background:transparent;border:1px solid var(--estimate-rule);border-radius:50%;color:inherit;font:30px/1 sans-serif;cursor:pointer}
.maintenance-dialog :focus-visible{outline:2px solid var(--red,#d12e36);outline-offset:4px}
.maintenance-dialog [tabindex="-1"]:focus{outline:none}
.maintenance-dialog-close:hover{color:var(--gold);filter:var(--hover-glow,none)}
.maintenance-dialog-body{padding:8px 36px 24px}
.maintenance-table-section{margin:24px 0}.maintenance-table-section h3{font:600 19px/1.3 var(--heading-font,sans-serif);margin:0 0 12px;color:inherit}
.maintenance-table-section h3::before{content:"";display:block;width:30px;height:2px;background:var(--red);margin:0 0 12px}
.maintenance-dialog table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.45}
.maintenance-dialog caption{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
.maintenance-dialog th{color:var(--estimate-muted);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.maintenance-dialog td{font-variant-numeric:tabular-nums}
.maintenance-dialog tbody tr:hover>td{background:var(--estimate-hover)}
.maintenance-dialog :is(th,td){padding:12px 9px;border-bottom:1px solid var(--estimate-rule);text-align:right;vertical-align:top;overflow-wrap:anywhere}
.maintenance-dialog :is(th,td):first-child{width:55%;padding-left:0;text-align:left}.maintenance-dialog :is(th,td):nth-child(2){width:10%}.maintenance-dialog :is(th,td):last-child{padding-right:0}
.maintenance-totals{display:grid;grid-template-columns:1fr auto;gap:10px 0;margin:26px 0;color:var(--estimate-muted);font-size:14px}
.maintenance-totals :is(dt,dd){margin:0}.maintenance-totals dt{padding-right:20px}.maintenance-totals dd{text-align:right;white-space:nowrap}
.maintenance-totals :is(dt,dd):nth-last-child(-n+2){padding-top:16px;margin-top:5px;border-top:1px solid var(--estimate-rule);color:var(--estimate-text);font-weight:700;font-size:26px;line-height:1.2}
.maintenance-totals dt:nth-last-child(2){color:var(--gold);font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:31px}
.maintenance-notes{font-size:13px;color:var(--estimate-muted)}.maintenance-notes p{margin:10px 0}
.maintenance-dialog-footer{padding:20px 36px 24px;border-top:1px solid var(--estimate-rule);background:var(--estimate-bg)}
.maintenance-dialog-footer>[data-estimate-guide]{margin:0 0 16px;font-size:14px}
.maintenance-dialog-footer .button{width:var(--action-width,260px);height:var(--action-height,54px);max-width:100%;min-height:0;color:#fff}
.maintenance-dialog-footer .button[aria-disabled="true"]{opacity:.65;cursor:wait}
.maintenance-download-status{font-size:13px;color:var(--estimate-muted);margin:12px 0 0}.maintenance-download-status:empty{display:none}
/* The site scales the body on 4K displays; bound the dialog in the same coordinate system. */
@media(min-width:1921px) and (min-height:901px){.maintenance-dialog{max-height:calc(100dvh / var(--porscha-scale,1) - 24px)}}
@media /*fhd*/ (max-width:1100px) and (max-width: 1279px), (max-width:1100px) and (hover: none), (max-width:1100px) and (pointer: coarse) {#calculator .maintenance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  #calculator .maintenance-layout{grid-template-columns:minmax(0,1fr)}
  #calculator .maintenance-visual{grid-row:1;min-height:0;height:clamp(180px,calc(34vw / var(--porscha-scale,1)),300px)}
  #calculator .maintenance-estimate{padding:26px}
}
@media(max-width:600px){
  #calculator .section-top{margin-bottom:24px}
  #calculator h2{font-size:clamp(28px,calc(8.2vw / var(--porscha-scale,1)),34px);line-height:1.15}
  #calculator .maintenance-subtitle{font-size:15px;line-height:1.55;margin-top:18px}
  #calculator .maintenance-visual{height:180px}
  #calculator .maintenance-estimate{padding:24px 18px}
  #calculator .maintenance-actions .button{width:100%}
  #calculator .maintenance-grid{grid-template-columns:minmax(0,1fr)}
  .maintenance-dialog{width:calc(100% - 20px);max-height:calc(calc(100dvh / var(--porscha-scale,1)) - 24px);font-size:14px}
  .maintenance-dialog-head{padding:20px 18px 16px;gap:8px}.maintenance-dialog h2{font-size:22px}.maintenance-dialog-close{flex-basis:38px;width:38px;height:38px}
  .maintenance-dialog-body{padding:0 18px 18px}.maintenance-dialog-footer{padding:18px}
  .maintenance-dialog table,.maintenance-dialog tbody{display:block}.maintenance-dialog thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
  .maintenance-dialog tbody tr{display:grid;grid-template-columns:1fr 1.2fr 1.2fr;gap:8px;border-bottom:1px solid var(--estimate-rule);padding:12px 0}
  .maintenance-dialog td{display:block!important;padding:0!important;border:0!important;width:auto!important;text-align:right;font-size:13px}
  .maintenance-dialog td:first-child{grid-column:1/-1;text-align:left;font-size:14px}
  .maintenance-dialog td:not(:first-child)::before{content:attr(data-label);display:block;color:var(--estimate-muted);font-size:10px;margin-bottom:3px}.maintenance-dialog td:nth-child(2){text-align:left}
  .maintenance-dialog tbody tr:hover>td{background:none}
.maintenance-totals{font-size:13px;gap:10px 0}.maintenance-totals dt:nth-last-child(2){font-size:12px}.maintenance-totals :is(dt,dd):nth-last-child(-n+2){font-size:19px}
}
