/* Interaction-focused refinements. Loaded after the original visual theme. */
:root{--muted:#69735f}
html{scroll-behavior:smooth;scroll-padding-top:16px}
.site-header{height:72px}
.nav-button{min-height:36px;font-size:12px}
.icon-button{width:34px;min-width:34px;height:34px}
.intro{padding:19px 0 18px}
.intro h1{font-size:29px;margin:6px 0}
.intro p{font-size:12px;line-height:1.5;color:#68735e}
.intro .eyebrow{font-size:10px;letter-spacing:1.3px}
.day-badge{padding:7px 15px;gap:10px}
.day-badge strong{font-size:27px}
.day-badge> .icon{width:25px;height:25px}
.day-badge span{font-size:9px;letter-spacing:1.4px}
.stats-strip{padding:12px 0;margin-bottom:20px}
.stat{padding:0 20px}
.stat-label{font-size:11px;color:#6f7864;margin-bottom:3px}
.stat strong{font-size:23px}
.stat-level strong{font-size:13px}
.level-name{font-size:11px;color:#748168}
.saved-label{font-size:11px;color:#6d7a61}
.game-grid{gap:22px;align-items:start}
.section-heading{margin-bottom:12px}
.section-heading h2{font-size:15px}
.tiny-label{font-size:10px;letter-spacing:1.1px}
.order-card{padding:14px}
.order-card.active{padding:13.5px}
.customer-info strong{font-size:13px}
.customer-info small{font-size:11px;line-height:1.4;color:#6c7860}
.customer-quote{font-size:12px;line-height:1.5;margin-top:11px;color:#627056}
.order-budget{font-size:11px;color:#748168;margin-top:10px}
.order-budget strong{font-size:15px;color:#465a36}
.requirements{gap:8px;margin-top:11px;padding-top:11px}
.requirement{font-size:11px;line-height:1.4;color:#7c816f}
.requirement.met{color:#455d34}
.order-status{font-size:11px;padding:8px;line-height:1.4;margin-top:11px}
.order-status.done{color:#4f673d}
.order-peek{font-size:11px;color:#6f7c61}
.order-actions{display:flex;align-items:center;gap:8px;margin-top:10px}
.order-actions button,.order-actions a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;width:100%;padding:8px 11px;border:1px solid #c8d6b6;border-radius:7px;background:#e8f1dc;color:#465b36;font-size:12px;font-weight:600}
.order-actions button:hover,.order-actions a:hover{background:#ddeaCA;border-color:#9fb883}
.order-actions .icon{width:15px;height:15px}
.next-day{min-height:38px;font-size:12px;margin-top:15px;padding:10px 12px;color:#60714f}
.day-note{font-size:11px;line-height:1.5;color:#75816a;margin-top:8px}
.daily-note{padding:20px 16px 16px;margin-top:21px}
.daily-note .eyebrow{font-size:9px;line-height:1.5;letter-spacing:1px}
.daily-note p{font-size:16px;line-height:1.4}
.workbench{overflow:visible;scroll-margin-top:14px}
.bench-heading{padding:14px 21px 13px;min-height:66px}
.bench-heading .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:4px}
.bench-heading h2{font-size:23px}
.build-id{font-size:10px;padding:7px;color:#728063}
.keyboard-stage{height:220px}
.keyboard-wrap{inset:25px 42px 46px}
.keyboard{max-width:610px;width:85%}
.keyboard.compact{width:77%}
.stage-label{font-size:9px;left:20px;top:13px;letter-spacing:1px;padding:6px 8px}
.stage-bottom{bottom:11px;left:19px;right:19px}
.color-picker{gap:6px}
.color-picker .swatch{height:32px;width:32px;padding:0;background-clip:content-box;border:7px solid transparent;box-shadow:none;outline:none;position:relative;flex-shrink:0}
.color-picker .swatch:after{content:'';position:absolute;inset:-3px;border:1.5px solid transparent;border-radius:50%;pointer-events:none}
.color-picker .swatch.selected:after{border-color:#657b51}
.color-picker .swatch:focus-visible:after{outline:2px solid #8b74bd;outline-offset:2px}
.color-picker>span{font-size:11px;color:#6c785d}
.test-button{font-size:11px;min-height:34px;padding:7px 11px;color:#536847;background:#fbfcf0e8;gap:7px;box-shadow:0 1px 4px #374a2220}
.test-button .icon{width:14px;height:14px}
.build-meters{gap:23px;padding:13px 21px 12px}
.build-meter{gap:9px}
.build-meter>div>span{font-size:11px;color:#657558}
.build-meter strong{font-size:12px;color:#4e643f}
.build-meter strong small{font-size:10px;color:#89947e}
.meter-track{height:5px;margin-top:6px;background:#e8ecdf}
.sound-meter .meter-track{position:relative;overflow:visible;background:linear-gradient(90deg,#e4e0d6,#c6bcca)}
.sound-meter .meter-track>i{background:#8f8199!important;position:relative;min-width:2px}
.sound-meter .meter-track>i:after{content:'';position:absolute;right:-3px;top:-2px;width:9px;height:9px;border-radius:50%;background:#75647f;border:1.5px solid #fffefb;box-shadow:0 0 0 1px #75647f55}
.sound-meter strong{color:#73647c}
.meter-endpoints,.sound-meter .endpoints{display:flex;justify-content:space-between;gap:8px;font-size:10px;line-height:1.3;color:#817789;margin-top:6px}
.active-brief{position:sticky;top:8px;z-index:12;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid #dce3ce;background:#f0f5e8;box-shadow:0 3px 5px #55674308;color:#556a42}
.brief-customer{display:flex;flex-direction:column;gap:3px;min-width:125px;font-size:12px;line-height:1.35}
.brief-customer>strong{font-size:13px;color:#394d2d}
.brief-customer>span,.brief-customer>small{font-size:11px;color:#6d7c60}
.brief-customer .eyebrow{font-size:9px;letter-spacing:1px}
.brief-requirements{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:1;min-width:180px}
.brief-chip,.brief-requirements>.requirement{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.35;border:1px solid #d6dbce;border-radius:5px;padding:5px 7px;background:#fcfcf8;color:#707b64;min-height:28px}
.brief-chip.met,.brief-requirements>.requirement.met{border-color:#b9cea1;background:#e6f0da;color:#3d602b}
.brief-chip .icon{width:12px;height:12px;flex-shrink:0}
.brief-budget{margin-left:auto;display:flex;align-items:baseline;gap:6px;white-space:nowrap;font-size:11px;color:#6d7d5e}
.brief-budget strong{font-family:var(--display);font-size:17px;color:#4c643a}
.component-config{padding:17px 20px 13px}
.config-title{gap:12px;align-items:center;flex-wrap:wrap}
.config-title h3{font-size:14px;color:#415236}
.config-title>span{font-size:11px;color:#7b886c}
.component-filter{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #dfe4d6;background:#f0f2e8;border-radius:7px;margin-left:auto}
.component-filter button{min-height:32px;padding:6px 10px;border-radius:4px;font-size:11px;color:#718063;white-space:nowrap}
.component-filter button.active,.component-filter button[aria-pressed="true"]{background:#fffefb;box-shadow:0 1px 3px #38452716;color:#425b32;font-weight:600}
.component-filter button:hover{background:#e5ebda}
.component-tabs{gap:4px;margin:13px 0 12px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#c4d0b7 transparent}
.component-tab{font-size:12px;min-height:38px;padding:8px 12px 11px;flex:1;white-space:nowrap;color:#728064}
.component-tab.active{color:#405d2d}
.parts-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:294px;padding-bottom:3px}
.part-card{min-height:143px;padding:11px 12px}
.part-top{margin-bottom:8px;min-height:25px}
.part-card>strong{font-size:12px;color:#455c36;line-height:1.4}
.part-card>small{font-size:11px;line-height:1.4;margin-top:4px}
.part-card:not(.locked)>small{color:#6c7c5b}
.part-card.selected{border-color:#7f9b62;background:#eef5e4;box-shadow:inset 0 0 0 .5px #7f9b62}
.part-card.locked{background:#f7f7f1}
.part-card.locked>strong{color:#81916f}
.part-card.locked>small{color:#89977b}
.part-price{font-size:15px;color:#536e3d}
.part-level{font-size:11px;color:#7e8f6a}
.part-bottom{font-size:11px;margin-top:8px;line-height:1.3;min-height:21px}
.part-card:not(.locked) .part-bottom{color:#667f51}
.part-select{height:22px;width:22px}
.part-specs{font-size:11px;gap:10px;margin-top:8px;color:#6d8458}
.part-specs .icon{height:11px;width:11px}
.part-card.locked .part-specs{opacity:.85}
.build-summary{gap:7px 13px;padding-top:11px;margin-top:12px}
.build-summary>span{font-size:11px;line-height:1.4;color:#667c52}
.build-summary .icon{height:11px;width:11px}
.checkout{position:sticky;bottom:10px;z-index:20;display:flex;align-items:center;gap:18px;padding:13px 20px;background:#f5f7ee;border:1px solid #d4dfc5;border-radius:0 0 11px 11px;margin:0 -1px -1px;box-shadow:0 -5px 15px #40542a0a,0 5px 12px #40542a0a}
.checkout.ready{background:#edf5df;border-color:#adc98c}
.checkout-totals{gap:20px;min-width:0}
.checkout-totals>div{gap:4px}
.checkout-totals span{font-size:11px;color:#728562;line-height:1.3}
.checkout-totals strong{font-size:21px;color:#4e693b;white-space:nowrap}
.checkout-totals .profit strong{color:#3e672a}
.checkout-totals .math-symbol{font-size:18px;margin:0 -7px}
.sell-button{min-height:43px;padding:11px 16px;font-size:12px;gap:8px;white-space:nowrap;color:#3e582b;flex-shrink:0}
.sell-button>.icon:first-child{display:inline-block}
.sell-button:disabled{background:#e6ebdf;color:#919c87;border-color:#d4ddc7;opacity:1}
.build-feedback{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.45;padding:10px 20px;color:#8a704b;background:#faf6e9;border-top:1px solid #ece5ce;border-radius:0 0 11px 11px}
.build-feedback .icon{width:14px;height:14px}
.next-research-banner{display:flex;align-items:center;gap:10px;padding:12px 15px;margin-top:15px;background:#eee9f5;border:1px solid #d9cee9;border-radius:9px;color:#736086;font-size:12px;line-height:1.45}
.next-research-banner>.icon{width:24px;height:24px;flex-shrink:0;color:#8e78a9}
.research-banner-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.research-banner-copy strong{font-size:12px;color:#67507e}
.research-banner-copy span,.research-banner-copy small{font-size:11px;color:#857196}
.next-research-banner button,.next-research-banner a{min-height:34px;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;background:#fffafc;color:#70538b;border:1px solid #d5c6e4;border-radius:6px;font-size:11px;white-space:nowrap}
.next-research-banner button:hover,.next-research-banner a:hover{background:#e5dbef}
.next-research-banner button .icon,.next-research-banner a .icon{width:13px;height:13px}
.tip-bar{font-size:11px;margin-top:18px;padding:12px 16px;line-height:1.4}
.tip-bar>span{font-size:11px}
.site-footer{margin-top:25px;padding-top:18px;font-size:11px;color:#818c75}
.site-footer button{font-size:11px;min-height:32px;padding:6px 4px;color:#7c876f}
.primary,.secondary,.danger{font-size:12px;min-height:38px}
.research-card p,.research-card li,.goal-content p,.creation-info>div,.collection-empty p{font-size:12px;line-height:1.6}
.research-footer,.goal-items>span,.creation-details,.receipt>div{font-size:11px}
.help-steps>li,dialog>p{font-size:12px;line-height:1.65}
.help-footnote{font-size:11px!important}
.test-status,.test-status.success,.sale-quote{font-size:12px!important}
.toast{font-size:12px;z-index:50}

@media(max-width:1120px){
  .site-header{padding:0 24px}
  .game-grid{grid-template-columns:245px minmax(0,1fr);gap:17px}
  .intro h1{font-size:27px}
  .stat{padding:0 14px;gap:9px}
  .stat strong{font-size:21px}
  .stat-level strong{font-size:12px}
  .parts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .keyboard-wrap{inset:28px 0 43px}
  .keyboard{width:90%}.keyboard.compact{width:84%}
  .bench-heading,.component-config{padding-left:17px;padding-right:17px}
  .bench-heading h2{font-size:21px}
  .build-meters{gap:17px;padding:12px 17px}
  .build-meter{gap:6px}
  .active-brief{padding:11px 17px;gap:9px}
  .brief-customer{min-width:100px}
  .brief-requirements{min-width:180px;gap:5px}
  .brief-budget{width:100%;justify-content:flex-end;margin-top:-2px}
  .component-tabs{gap:1px}
  .component-tab{font-size:11px;padding:8px 8px 10px}
  .checkout{gap:14px;padding:12px 17px;flex-wrap:wrap}
  .checkout-totals{gap:16px;width:100%}
  .checkout-totals strong{font-size:21px}
  .sell-button{width:100%;margin:0;min-height:39px;font-size:12px}
  .checkout-totals .profit{padding-right:0}
  .next-research-banner{flex-wrap:wrap;padding:11px 13px}
  .next-research-banner button{margin-left:auto}
}

@media(min-width:861px) and (max-height:1000px){
  .site-header{height:64px}
  .intro{padding:13px 0 14px}
  .intro h1{font-size:26px;margin:4px 0}
  .intro .eyebrow{font-size:9px}
  .intro p{font-size:11px}
  .stats-strip{padding:10px 0;margin-bottom:16px}
  .bench-heading{min-height:60px;padding-top:11px;padding-bottom:10px}
  .bench-heading h2{font-size:21px}
  .keyboard-stage{height:205px}
  .keyboard-wrap{top:20px;bottom:42px}
  .build-meters{padding-top:10px;padding-bottom:10px}
  .component-config{padding-top:13px;padding-bottom:11px}
  .component-tabs{margin-top:9px;margin-bottom:9px}
  .part-card{min-height:137px}
  .build-summary{margin-top:9px;padding-top:9px}
  .parts-grid{max-height:285px}
  .active-brief{padding-top:9px;padding-bottom:9px}
}

@media(max-width:860px){
  .site-header{height:68px;padding:0 20px}
  .nav-button{font-size:11px;min-height:36px;padding:0 9px}
  .header-actions .icon-button{width:32px;min-width:32px;height:34px}
  .intro{padding:17px 0}
  .intro h1{font-size:26px}
  .intro p{font-size:11px}
  .stat-label{font-size:11px}
  .stat strong{font-size:20px}
  .stat-level strong{font-size:12px;line-height:1.4}
  .game-grid{grid-template-columns:210px minmax(0,1fr);gap:15px}
  .order-card{padding:12px}.order-card.active{padding:11.5px}
  .customer-info strong{font-size:12px}.customer-info small{font-size:11px}
  .customer-quote{font-size:11px}.requirement{font-size:11px}
  .daily-note{display:none}
  .bench-heading .eyebrow{font-size:8px}.bench-heading h2{font-size:20px}
  .build-id{font-size:9px;padding:6px}
  .keyboard-stage{height:205px}
  .keyboard-wrap{inset:31px -7px 47px}
  .stage-label{font-size:8px;left:13px;top:10px}
  .stage-bottom{left:10px;right:10px;bottom:8px}
  .color-picker{gap:0}.color-picker>span{display:none}
  .color-picker .swatch{width:30px;height:32px;border-width:7px}
  .test-button{font-size:11px;padding:7px;gap:5px}
  .test-button .icon{height:12px;width:12px}
  .build-meters{gap:12px;padding:11px 14px}
  .build-meter>.icon{display:none}
  .build-meter>div>span{font-size:11px}
  .build-meter strong{font-size:11px}
  .build-meter strong small{font-size:9px}
  .meter-endpoints{font-size:9px}
  .active-brief{padding:10px 14px;gap:8px}
  .brief-customer{flex:1;min-width:110px}
  .brief-budget{width:auto;margin:0;font-size:11px}
  .brief-requirements{order:3;width:100%;flex-basis:100%;min-width:0}
  .brief-chip{font-size:11px;padding:4px 6px;min-height:26px}
  .component-config{padding:13px 13px 11px}
  .config-title{gap:8px}.config-title h3{font-size:13px}
  .config-title>span{display:none}
  .component-filter{padding:2px;gap:1px}
  .component-filter button{font-size:11px;padding:5px 7px;min-height:32px}
  .component-tab{min-height:38px;font-size:11px;padding:8px 9px 10px;flex:none}
  .component-tabs{margin:10px 0}
  .part-card{min-height:153px;padding:10px}
  .part-card>strong{font-size:12px}.part-card>small{font-size:11px;line-height:1.4}
  .part-bottom{font-size:11px;gap:5px}.part-price{font-size:14px}
  .part-top{margin-bottom:6px;min-height:23px}
  .part-level{font-size:10px}.part-specs{font-size:10px;gap:7px}
  .parts-grid{gap:7px;max-height:322px}
  .build-summary{gap:7px 10px}.build-summary>span{font-size:11px}
  .checkout{padding:11px 14px;gap:11px}
  .checkout-totals span{font-size:11px}.checkout-totals strong{font-size:20px}
  .checkout-totals{gap:14px}.checkout-totals .math-symbol{display:none}
  .sell-button{font-size:12px;min-height:39px;padding:9px}
  .build-feedback{font-size:11px;padding:10px 14px}
  .tip-bar{margin-left:225px;font-size:11px}.tip-bar>span{font-size:11px}
  .research-intro p,.research-footer,.goal-content p,.goal-items>span{font-size:11px}
  .site-footer{font-size:11px}
}

@media(max-width:620px){
  main{margin:0 12px}
  .site-header{height:auto;min-height:69px;padding:12px 14px 0;gap:10px}
  .brand{font-size:18px}.brand-light{font-size:13px}
  .logo-key{width:35px;height:36px;font-size:25px}
  .header-actions{gap:6px}
  .main-nav{margin-top:3px;padding-top:5px}
  .nav-button{font-size:11px;min-height:38px;padding:0 7px}
  .intro{padding:15px 1px 14px;gap:12px}
  .intro .eyebrow{font-size:9px;letter-spacing:1px}
  .intro h1{font-size:24px;max-width:285px;line-height:1.15;margin:6px 0}
  .intro p{display:none}
  .day-badge{padding:7px 9px;gap:6px;flex-shrink:0;margin:0 2px 0 0}
  .day-badge>.icon{width:18px;height:18px}.day-badge span{font-size:8px;letter-spacing:1px}
  .day-badge strong{font-size:25px}
  .stats-strip{padding:0;margin-bottom:17px}
  .stat{min-height:62px;padding:10px 12px;gap:9px}
  .stat strong{font-size:22px}.stat-label{font-size:11px}
  .stat-level strong{font-size:12px}.stat-icon{width:31px;height:32px}
  .stat-level .stat-icon{display:none}
  .game-grid{display:flex;gap:15px}
  .orders-column{min-width:0;width:100%}
  .section-heading{margin-bottom:9px;min-height:23px}
  .section-heading h2{font-size:14px}.tiny-label{font-size:10px}
  .order-list{gap:8px;align-items:stretch;padding:1px 1px 7px;scrollbar-color:#b6c6a4 transparent;scroll-padding:1px}
  .order-card,.order-card.active{flex:0 0 205px;min-height:139px;padding:12px;display:flex;justify-content:flex-start}
  .order-card.active{padding:11.5px;background:#f3f8e9}
  .order-card .customer-quote,.order-card .requirements,.order-card .order-status{display:none}
  .order-card .customer-info strong{font-size:13px}
  .order-card .customer-info small{font-size:11px;line-height:1.4}
  .order-card .customer-top{gap:8px;align-items:flex-start}
  .order-card .avatar{width:31px;height:33px;font-size:11px}
  .order-card .order-selection{width:16px;height:16px;margin-top:6px}
  .order-card .order-budget{font-size:11px;padding:0;margin:13px 0 0;line-height:1.4;width:100%}
  .order-card .order-budget strong{font-size:14px}
  .order-card .order-peek{padding-top:10px;margin-top:auto;font-size:11px;width:100%}
  .order-card.active:after{content:'Cliente selezionato · richieste al banco ↓';font-size:10px;line-height:1.4;color:#526e3b;display:block;margin-top:auto;padding-top:9px}
  .orders-column:has(.order-card):after{content:'Scorri i clienti ↔  ·  Le richieste restano visibili al banco';display:block;font-size:10px;line-height:1.5;color:#7b8a6c;margin:7px 2px 0}
  .order-actions{margin-top:8px}
  .order-actions button,.order-actions a{font-size:12px;min-height:36px;padding:7px 10px}
  .next-day{min-height:36px;margin-top:8px;font-size:11px;padding:8px 12px}
  .day-note{display:none}
  .workbench{width:100%;scroll-margin-top:8px}
  .bench-heading{padding:12px 15px 11px;min-height:62px}
  .bench-heading h2{font-size:21px}.bench-heading .eyebrow{font-size:8px;letter-spacing:.9px}
  .build-id{font-size:9px}
  .keyboard-stage{height:202px}
  .shop-scene{width:170%;left:-35%}
  .keyboard-wrap{inset:32px -7px 43px}
  .keyboard{width:87%;max-width:460px}.keyboard.compact{width:80%}
  .stage-bottom{bottom:8px;left:9px;right:9px}
  .color-picker .swatch{width:32px;height:32px;border-width:7px}
  .test-button{font-size:11px;padding:7px 8px;min-height:34px;gap:5px}
  .build-meters{padding:11px 13px 10px;gap:14px}
  .build-meter>div>span{font-size:11px}.build-meter strong{font-size:11px}
  .meter-endpoints{font-size:9px;gap:2px}
  .active-brief{top:5px;padding:10px 13px;gap:8px;box-shadow:0 3px 8px #506b2b0d}
  .brief-customer{min-width:0}.brief-customer strong{font-size:13px}
  .brief-requirements{gap:5px}.brief-chip{font-size:11px;min-height:26px;padding:4px 6px}
  .brief-budget{font-size:11px}.brief-budget strong{font-size:16px}
  .component-config{padding:13px 12px 11px}
  .config-title{gap:7px}.config-title h3{font-size:13px}
  .component-filter button{font-size:11px;padding:5px 8px;min-height:32px}
  .component-tabs{margin:9px 0;gap:0;scrollbar-width:thin}
  .component-tab{font-size:11px;padding:8px 11px 10px;min-height:39px;flex:1}
  .parts-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:327px;gap:8px}
  .part-card{padding:10px;min-height:153px}
  .part-card>strong{font-size:12px;line-height:1.35}
  .part-card>small{font-size:11px;line-height:1.4}
  .part-bottom{font-size:11px;margin-top:7px}.part-specs{font-size:10px;gap:7px}
  .part-price{font-size:15px}.part-top{margin-bottom:6px}
  .build-summary{padding-top:10px;margin-top:11px;gap:6px 10px}
  .build-summary>span{font-size:11px;line-height:1.4}
  .checkout{bottom:6px;display:flex;gap:10px;padding:11px 12px;background:#f5f8ec;box-shadow:0 -4px 14px #3f542a0d,0 4px 12px #3f542a0e}
  .checkout-totals{gap:12px;justify-content:space-between;width:100%}
  .checkout-totals span{font-size:11px;line-height:1.35}
  .checkout-totals strong{font-size:20px}
  .checkout-totals .profit{margin-left:0;padding:0}
  .sell-button{margin:0;min-height:42px;padding:10px;font-size:12px;gap:8px}
  .build-feedback{padding:10px 13px;font-size:11px;line-height:1.5}
  .next-research-banner{margin-top:13px;padding:11px 12px;gap:9px;font-size:12px}
  .research-banner-copy strong{font-size:12px}.research-banner-copy span,.research-banner-copy small{font-size:11px}
  .next-research-banner button{min-height:34px;font-size:11px}
  .tip-bar{margin-left:0;margin-top:14px;font-size:11px;gap:6px;padding:11px 12px}
  .tip-bar>span{font-size:11px;line-height:1.5}
  .site-footer{font-size:11px;margin-top:20px;gap:10px;align-items:center}
  .site-footer>span{font-size:11px;line-height:1.4}
  .site-footer button{font-size:11px;min-height:34px;white-space:nowrap}
  .research-intro p,.research-card p,.research-card li,.research-footer,.goal-content p,.collection-empty p,.creation-info>div{font-size:12px;line-height:1.55}
  .goal-items>span{font-size:11px}
  .help-steps>li,dialog>p{font-size:12px;line-height:1.6}
  .help-footnote{font-size:11px!important}
  .test-status{font-size:12px}.toast{font-size:12px;bottom:15px}
}

@media(max-width:370px){
  .intro h1{font-size:21px}.day-badge>.icon{display:none}
  .config-title h3{font-size:12px}.component-filter button{padding:5px 6px}
  .part-card{padding:9px}.part-card>strong{font-size:11px}
  .color-picker .swatch{width:28px;border-width:6px}
  .test-button{font-size:10px;padding:7px 6px}
  .checkout-totals span{font-size:10px}.checkout-totals strong{font-size:18px}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.next-research-banner{margin:0 0 17px}
.research-banner-copy{flex-direction:row;align-items:center;gap:10px}
.research-banner-copy>.icon{width:22px;height:22px}
.research-banner-copy>span{display:block}
.research-banner-copy small{display:block;margin-top:3px}
.sound-meter .meter-track{height:5px}
.sound-meter .meter-track>.sound-pointer{position:absolute;top:0;width:0;min-width:0;height:5px;background:transparent!important}
.sound-meter .meter-track>.sound-pointer:after{left:-4px;right:auto;top:-3px;width:10px;height:10px}
.sound-target{display:block;position:absolute;top:-3px;height:11px;border:1px solid #9cba84;border-radius:4px;background:#cae1b573}
.keyboard-stage .keyboard{max-width:520px}
.keyboard-stage .keyboard.fullsize{max-width:590px}
.checkout{flex-wrap:wrap}
.checkout-hint{width:100%;font-size:11px;line-height:1.45;color:#8b6c55;border-top:1px solid #dddcc8;padding-top:7px}
.build-summary>button{display:flex;align-items:center;gap:4px;padding:4px 6px;font-size:11px;color:#647d4e;border:1px solid #dce5d0;border-radius:4px;background:#f8faF2;min-height:28px}
.build-summary>button:hover{background:#e7efd9}
.build-summary>button .icon{width:11px;height:11px}
.brief-budget{font-size:11px}
.brief-customer>span:last-child{margin-left:auto;font-size:11px}
.component-config{scroll-margin:130px}
@media(max-width:620px){.keyboard-stage .keyboard{max-width:390px}.keyboard-stage .keyboard.fullsize{max-width:430px}.next-research-banner{margin-bottom:18px}.research-banner-copy{gap:8px}.brief-customer{width:100%}.build-summary>button{font-size:10px}.active-brief{position:relative;top:auto}}
.firmware-panel{margin-top:16px;padding:14px;border:1px solid #d9cce4;background:#f4f0f8;border-radius:7px;scroll-margin:140px}
.firmware-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:13px}
.firmware-heading strong{font-size:12px;color:#705d82;display:flex;align-items:center;gap:5px}
.firmware-heading .icon{width:15px;height:15px}
.firmware-heading>span{font-size:11px;line-height:1.4;color:#8b7e97}
.tuning-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tuning-controls label{font-size:11px;color:#7b6c87;display:flex;align-items:center;justify-content:space-between;gap:8px}
.tuning-controls select{border:1px solid #c8b9d4;border-radius:5px;padding:7px;background:#fffdfd;color:#675575;font:inherit;min-height:35px;max-width:150px;cursor:pointer}
.tuning-controls select:disabled{color:#aaa4ae;background:#ece9ef;border-color:#d6d0db;cursor:default}
.technical-panel{border:1px solid #dce3d2;border-radius:7px;padding:10px 13px;margin-top:14px;background:#fafbf5}
.technical-panel summary{cursor:pointer;font-size:11px;font-weight:600;color:#6e805c;min-height:25px;line-height:25px}
.technical-panel summary>span{float:right;font-weight:400;color:#919e81}
.technical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 0;border-top:1px solid #e1e6d9;margin-top:8px}
.technical-grid>div{display:flex;flex-direction:column;gap:5px}
.technical-grid span{font-size:10px;color:#89977b}.technical-grid strong{font-size:12px;color:#62784e;font-weight:500}
.technical-panel p{font-size:11px;line-height:1.65;color:#839174;margin-top:8px}
.technical-sources{font-size:10px;color:#889879;margin-top:13px;line-height:1.7}.technical-sources a{text-decoration:underline;text-underline-offset:3px;color:#6d805b}
@media(max-width:860px){.tuning-controls label{display:flex;flex-direction:column;align-items:stretch;gap:6px}.tuning-controls select{max-width:none}.firmware-heading{align-items:start;flex-direction:column;gap:7px}}
@media(max-width:620px){.technical-panel summary>span{font-size:10px}.technical-grid{gap:10px}.technical-grid strong{font-size:11px}.firmware-panel{padding:12px}.firmware-heading>span{font-size:10px}}
