body > header {gap:24px;min-height:74px;height:auto;padding-block:14px;border-bottom:1px solid #dce0d7}
body > header nav {align-items:center;gap:clamp(12px,2.2vw,32px);flex-wrap:wrap}
#site-language {font:inherit;font-size:14px;font-weight:560;line-height:1.3;color:#2e4635;background:#f3f5ef;border:1px solid #bac7b5;border-radius:20px;padding:8px 10px;max-width:100%;cursor:pointer;min-height:38px}
:where(button,select,input,a):focus-visible {outline:3px solid #357047;outline-offset:3px}
.tool-page .model-header {margin-block:20px 28px}
.tool-page .model-heading h1 {letter-spacing:-.055em}
.config-grid {min-width:0}
.config-grid > section, .preview-reports > section {border-color:#d7dfd1;border-radius:16px}
.config-grid > section {padding:clamp(16px,1.5vw,24px)}
.config-grid select, .config-grid input {max-width:100%}
#host-fields select,#accessories select,#model-picker select {min-height:44px}
#host-fields small,#accessories small,.module-options small {letter-spacing:normal;font-weight:450}
#accessories input[readonly] {border:0;background:#f1f3ed;color:#314235;font-variant-numeric:tabular-nums}
.specs {overflow-wrap:anywhere;grid-template-columns:minmax(5em,.6fr) minmax(0,1fr)}
.sim-menu button {overflow-wrap:anywhere}
html:not(:lang(zh)) #controls {grid-template-columns:repeat(2,minmax(0,1fr))}
html:not(:lang(zh)) #controls label {grid-column:auto}
html:not(:lang(zh)) #controls h2 {grid-column:1/-1}
@media(max-width:680px){
  body > header {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:64px}
  body > header nav {display:contents}
  body > header nav a {grid-row:2;font-size:13px;padding-block:5px}
  body > header nav a:nth-child(2){justify-self:end}
  #site-language {grid-column:2;grid-row:1;justify-self:end}
  .tool-page {padding-top:20px}
  .tool-page .model-header {margin-block:14px 18px}
  .config-grid label {min-width:0}
  #accessories fieldset {grid-template-columns:repeat(2,minmax(0,1fr))}
  #host-fields select,#accessories select,.tool-page #model-picker select {font-size:16px}
}

@media (max-width: 480px) {
  #site-language { min-height: 44px; }
  html:not(:lang(zh)) #controls {
    grid-template-columns: minmax(0, 1fr) minmax(4.5rem, .45fr);
    align-items: end;
  }
  html:not(:lang(zh)) #controls label:first-of-type,
  html:not(:lang(zh)) #controls label:last-of-type { grid-column: 1 / -1; }
}
.host-choices, .host-config .module-options {display:flex; flex-wrap:wrap; gap:6px; margin:0 0 .85rem; padding:0; border:0;min-width:0}
.host-choices legend,.host-config .module-options legend {margin-bottom:6px}
.host-choices button,.host-config .module-options label {font:inherit; font-size:.91rem; text-align:start; cursor:pointer; padding:8px 12px; border-radius:8px; border:1px solid #b8c5b6; color:#324535;background:white; min-height:42px}
.host-choices button[aria-pressed=true],.host-config .module-options label:has(:checked) {background:#344a38;color:white}
.host-config .module-options input {width:1em;height:1em;accent-color:#537953}
.host-choices small,.host-config .module-options small {flex-basis:100%; margin:3px 0}

#module-demo section {border-top:1px solid #d3dbcf;margin-top:1rem;padding-top:.8rem}
#module-demo h3 {font-size:1rem;margin:0 0 .65rem}
.command-row {display:flex;flex-wrap:wrap;align-items:end;gap:.45rem;margin:.55rem 0}
.command-row label {display:grid;gap:.25rem;font-size:.85rem}
.command-row input {box-sizing:border-box;min-height:2.4rem;max-width:100%;padding:.35rem;border:1px solid #acb8a7;border-radius:.45rem;font:inherit}
.command-row input[type=number] {width:6rem}
#module-feedback:empty {display:none}
