/* Mobile uses a focused form/inspection flow; desktop geometry is untouched. */
.mobile-workspace-actions,.mobile-machine-slot,.mobile-overview-bar,.mobile-return-model,.mobile-run-model{display:none}
@media(max-width:900px){
 html{scroll-padding-top:16px;scroll-padding-bottom:120px}
 body{padding-bottom:env(safe-area-inset-bottom)}
 main{padding:20px 16px 110px}
 .page-heading{gap:12px;margin-bottom:18px}
 .page-title h1{font-size:27px;line-height:1.3;letter-spacing:-.02em}
 .page-heading .page-title-en{font-size:13px;margin-top:5px}
 .studio-intro{display:none}
 .workbench,.workbench.is-evaluating{grid-template-columns:minmax(0,1fr);grid-template-areas:"tabs" "mobile-heading" "configuration" "machine";gap:14px;align-items:start}
 .workspace-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:0;min-height:0}
 .workspace-tabs .task-tabs{width:100%;padding:0;gap:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .task-tabs button{height:auto;min-height:58px;padding:9px 12px;gap:9px;min-width:0}
 .task-tabs button strong{font-size:16px;line-height:1.35}
 .task-tabs button small{font-size:11px;line-height:1.3;white-space:normal}
 #workspace-caption{display:none}
 .mobile-workspace-actions{display:flex;width:100%}
 .mobile-workspace-actions button{min-height:44px;width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--accent);font-size:14px;font-weight:650;text-align:center;line-height:1.4}
 #mobile-model-results{display:none}
 html[data-workspace=model] #mobile-overview-toggle{display:none}
 html[data-workspace=model] #mobile-model-results{display:block}
 .mobile-machine-slot{display:block;grid-area:mobile-heading;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px}
 .mobile-machine-slot .machine-heading{min-height:0;display:block;padding:0}
 .mobile-machine-slot .machine-nameplate{height:66px;padding:10px 14px;gap:13px;width:100%;max-width:none;border-bottom:1px solid var(--line)}
 .mobile-machine-slot .nameplate-shape{display:none}
 .mobile-machine-slot .machine-heading .h3c{font-size:28px}
 .mobile-machine-slot .machine-heading h2{flex-direction:row;align-items:baseline;gap:7px}
 .mobile-machine-slot .machine-heading h2 span{font-size:12px;letter-spacing:0}
 .mobile-machine-slot .machine-heading h2 strong{font-size:23px}
 .mobile-machine-slot #variant-label{font-size:11px;line-height:1.5}
 .mobile-machine-slot .machine-heading>.machine-settings{grid-template-columns:1fr 1fr;gap:10px;padding:11px 12px;max-width:none;width:100%;margin:0}
 .mobile-machine-slot .machine-settings legend{font-size:11px;line-height:1.4;min-height:31px;padding-bottom:5px}
 .mobile-machine-slot .machine-choice{padding:3px;border-radius:8px;gap:2px}
 .mobile-machine-slot .machine-choice button{min-height:50px;padding:5px 6px}
 .mobile-machine-slot .machine-choice strong{font-size:13px;line-height:1.4}
 .mobile-machine-slot .machine-choice span{font-size:10px;line-height:1.4;margin-top:2px;overflow-wrap:anywhere}
 .workbench:not(.is-evaluating) .task-panel,.workbench.is-evaluating .task-panel{height:auto;max-height:none;min-height:0;contain:none;position:static;align-self:start;overflow:visible}
 .workbench:not(.is-evaluating) #hardware-panel{display:block;overflow:visible;min-height:0}
 #hardware-panel,#model-panel,#machine-overview,#result-stage{scroll-margin-top:16px;scroll-margin-bottom:120px}
 #part-nav{padding:12px 12px 0;gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}
 #part-nav button{min-height:56px;padding:7px 3px;font-size:13px;line-height:1.3;gap:4px;min-width:0}
 #part-nav .hardware-icon{width:17px;height:17px}
 .workbench:not(.is-evaluating) #hardware-controls,#model-controls{padding:16px 12px;overflow:visible;max-height:none;min-height:0;scrollbar-gutter:auto;overscroll-behavior:auto}
 #hardware-controls .control-heading{margin-bottom:12px;gap:8px}
 #hardware-controls .control-heading h3{font-size:21px;line-height:1.35}
 .control-heading>span{font-size:12px;flex-shrink:0}
 #hardware-controls .option-grid{gap:8px}
 #hardware-controls .option-button{min-height:75px;padding:10px 11px}
 #hardware-controls .option-button strong{font-size:16px;line-height:1.4}
 #hardware-controls .option-button small{font-size:13px;line-height:1.45}
 .quantity-row{gap:7px;flex-wrap:wrap}
 .quantity-row button{min-height:46px;min-width:44px;font-size:16px}
 .field select,.field input,input[type=number],textarea{font-size:16px;min-height:48px}
 .field-help,.model-select-info,.pcie-review{font-size:13px;line-height:1.65}
 .field-grid{gap:12px}
 .workbench:not(.is-evaluating) .hardware-bottom{padding:10px 12px 14px;overflow:visible;border-radius:0 0 12px 12px}
 .workbench:not(.is-evaluating) .selection-note{height:auto;min-height:0;max-height:none;overflow:visible;font-size:13px;line-height:1.6;margin-bottom:8px}
 .selection-note:empty{display:none}
 .hardware-bottom>.task-footer{min-height:44px;margin:0;padding:0;gap:8px;align-items:center}
 .hardware-bottom>.task-footer .text-button{min-height:44px;font-size:12px;flex-shrink:0}
 .workbench:not(.is-evaluating) .step-actions{position:fixed;z-index:45;left:0;right:0;bottom:0;margin:0;display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.4fr);gap:9px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -4px 18px #17394e0c}
 .workbench:not(.is-evaluating) .step-actions button{height:auto;min-height:48px;padding:9px 10px;font-size:15px;line-height:1.35;white-space:normal}
 .workbench.is-evaluating .step-actions{display:none}
 :is(button,input,select,summary,textarea){scroll-margin-top:18px;scroll-margin-bottom:150px}
 .power-price{margin:0 12px 14px;padding:14px 16px}
 .power-price>strong{font-size:32px}
 .power-price .text-button{min-height:44px;font-size:13px}
 .mobile-overview-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px 10px 0 0;padding:8px 12px}
 .mobile-overview-bar>strong{font-size:14px;line-height:1.4}
 .mobile-overview-bar button,.mobile-return-model{min-height:44px;padding:9px 11px;font-size:13px;border:1px solid var(--line);border-radius:8px;color:var(--accent);background:var(--accent-soft);line-height:1.4}
 .mobile-return-model{display:block;width:100%;margin-top:18px}
 .mobile-run-model{display:block;width:calc(100% - 24px);margin:0 12px 16px;min-height:48px;font-size:15px}
 .machine-column:before{inset:0;border-radius:12px}
 .workbench:not(.is-evaluating) .viewer-wrap{height:clamp(330px,70vw,480px)}
 .machine-numbers,.workbench.is-evaluating .machine-numbers{padding:12px;gap:8px}
 .machine-numbers>div+div{padding-left:9px}
 .machine-numbers span{font-size:11px;line-height:1.5}
 .machine-numbers strong,.workbench.is-evaluating .machine-numbers strong{font-size:22px;line-height:1.45}
 .machine-numbers strong small{font-size:12px}
 .machine-column>.current-config{padding:12px}
 .current-config-heading,:root[lang=en] .current-config-heading{height:auto;min-height:34px;align-items:flex-start;gap:8px;margin-bottom:10px}
 .current-config-heading h2{font-size:15px;line-height:1.4}
 .current-config-heading>span{font-size:11px;max-width:145px;line-height:1.45}
 .current-config-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .config-summary-item{height:auto;min-height:104px;overflow:visible;padding:10px;align-self:stretch}
 .config-summary-item[data-edit=storage],.config-summary-item[data-edit=nic]{grid-column:1/-1;min-height:90px}
 .config-summary-item[data-edit=storage] strong,.config-summary-item[data-edit=nic] strong{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;width:100%}
 .config-summary-item strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
 .config-summary-item small{font-size:12px}
 .model-filter{gap:7px;flex-wrap:wrap}
 .model-filter button{min-height:44px;font-size:13px;padding:8px 11px}
 .review-back{gap:8px;padding:12px}
 .review-back button{font-size:12px;min-height:44px;white-space:normal;line-height:1.4}
 .workbench.is-evaluating .result-stage{padding:18px 12px}
 .report-heading{align-items:flex-start;flex-wrap:wrap}
 .report-heading h3{font-size:21px;line-height:1.4;overflow-wrap:anywhere}
 .estimate-tag{white-space:normal;font-size:12px}
 .model-capacity-grid{grid-template-columns:1fr}
 .model-capacity-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:14px}
 .model-capacity-card>strong{grid-column:2;grid-row:1/span 2;margin:0;align-self:center;font-size:23px}
 .model-capacity-card>small{grid-column:1;font-size:12px}
 .workbench.is-evaluating .estimate-main{grid-template-columns:1fr;padding:18px;gap:18px}
 .workbench.is-evaluating .estimate-number{font-size:42px}
 .workbench.is-evaluating .memory-visual{padding:14px}
 .memory-legend{gap:7px 12px;flex-wrap:wrap;font-size:12px}
 .quote-panel{padding:18px 14px;margin-top:18px}
 .quote-panel>button{min-height:48px;white-space:normal}
 #bom-details{scroll-margin-top:16px}
 #bom-details>summary{min-height:48px;padding-block:12px;font-size:15px;line-height:1.5}
 .consult-fab{left:auto;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));width:48px;height:48px;min-height:48px;padding:0;gap:0;border-radius:50%;justify-content:center}
 .consult-fab>span:not(.consult-emblem){display:none}
 .consult-fab .consult-emblem{border:0;background:none;padding:0;width:32px;height:32px}
 .consult-fab .consult-emblem svg{width:28px;height:28px}
 html[data-workspace=hardware][data-mobile-inspect=false] .consult-fab{bottom:calc(85px + env(safe-area-inset-bottom))}
 body:has(input:focus) .consult-fab,body:has(select:focus) .consult-fab,body:has(textarea:focus) .consult-fab{display:none}
 #toast{bottom:calc(92px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
 :root[lang=en] #part-nav button{font-size:12px;overflow-wrap:anywhere}
 :root[lang=en] .machine-choice strong{font-size:12px}
 :root[lang=en] .task-tabs button strong{font-size:15px}
}
@media(max-width:380px){
 main{padding-inline:10px}
 .site-header-inner{padding-inline:10px}
 .site-logo img{max-width:136px}
 .mobile-machine-slot .machine-heading h2 strong{font-size:21px}
 .mobile-machine-slot .machine-heading>.machine-settings{gap:7px;padding-inline:9px}
 .mobile-machine-slot .machine-choice button{padding-inline:4px}
 .nic-row{padding:10px 8px;gap:7px}
 .nic-stepper{grid-template-columns:44px 24px 44px}
}
@media(max-width:600px){
 .bom-table-wrap{overflow:visible}
 .bom-price-table{display:block;width:100%;font-size:13px}
 .bom-price-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
 .bom-price-table tbody{display:grid;gap:12px}
 .bom-price-table tbody tr{display:grid;grid-template-columns:1fr .6fr 1fr;border:1px solid var(--line);border-radius:10px;padding:12px;gap:10px;background:var(--surface)}
 .bom-price-table tbody th{display:block;min-width:0;grid-column:1/-1;padding:0 0 10px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
 .bom-price-table tbody td{display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
 .bom-price-table td[data-label]:before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;font-weight:500;margin-bottom:3px}
 .bom-price-table tbody td:last-child{grid-column:1/-1;text-align:right}
 .bom-price-table .text-button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:13px}
}
@media(max-width:900px) and (orientation:landscape){
 .workbench:not(.is-evaluating) .step-actions{padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}
 .workbench:not(.is-evaluating) .viewer-wrap{height:340px}
}
