/* Readable controls and layouts for desktop, tablet and phone. */
.mixed-toggle{padding:18px 20px;border-bottom:1px solid #344c3c}.mixed-toggle .check-line{font-size:17px;color:#c5edcf}.mixed-toggle p{font-size:14px;line-height:1.8;margin-bottom:0;color:#abc5b4}#position-layer{color:#c5edcf;font-size:16px}.source-tabs{border-radius:0}
.placement-controls{padding:18px 24px 0}.screen-choice{display:grid;gap:8px;font-size:16px}.screen-choice select{width:100%;max-width:360px}.position-fields{display:flex;gap:18px;align-items:center;margin-top:16px;flex-wrap:wrap}.position-fields>label{display:grid;grid-template-columns:1fr 72px;gap:8px;align-items:center;flex:1;min-width:160px;font-size:16px}.position-fields input[type=number]{width:72px}.position-fields input[type=range]{grid-column:1/-1;width:100%;margin:4px 0}.placement-controls p{font-size:14px;line-height:1.7;margin:10px 0;color:#b7cebf}.placement-controls .screen-note{color:#9aad9f}.canvas-container canvas{height:auto!important}.canvas-container{aspect-ratio:auto!important}@media(max-width:740px){.placement-controls{padding:16px 16px 0}.position-fields{gap:14px}.position-fields>label{min-width:120px}.position-fields>button{width:100%;text-align:left}}
.content-update{padding:18px;background:#21362a;border:1px solid #4c7958;border-radius:8px;margin-bottom:20px}.content-update strong{font-size:17px;color:#caf0d3}.content-update p{font-size:14px;line-height:1.8;color:#b0cab9}.content-update .generate-button{margin-top:14px;white-space:normal}.first-install>summary{cursor:pointer;font-size:16px;color:#b0c9b7;padding:7px 0}
.starter-panel{border-color:#537e5d}.starter-options{margin-top:16px;color:#b4cbbb;font-size:14px}.starter-options summary{cursor:pointer;line-height:1.8}.starter-config{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:14px}.starter-config label{font-size:14px}.starter-config select{margin-top:7px;width:100%}.starter-recipe{display:grid;grid-template-columns:125px minmax(0,1fr);gap:10px;margin-top:20px;font-size:14px}.starter-recipe code{font:16px/1.7 Consolas,monospace;color:#b6ecc2;overflow-wrap:anywhere}.starter-recipe span{align-self:center;color:#9fbbab}@media(max-width:500px){.starter-config{grid-template-columns:1fr}.starter-recipe{grid-template-columns:1fr;gap:6px}.starter-recipe code{margin-bottom:8px}}
:root{--muted:#a3b1ac}body{font-size:16px}.workspace{grid-template-columns:380px minmax(0,1fr)}main{max-width:1700px}.page-heading p{font-size:16px;line-height:1.8}.wordmark{font-size:20px}.wordmark span{font-size:13px}.eyebrow{font-size:13px}.field-label{font-size:16px;color:#c0cdc5}.field-label span,.field-label output{font-size:14px;color:#9cad9f}.source-tabs button,.section-caption,.panel-heading h2{font-size:17px}.source-tabs button{height:49px}.section-caption>span{font-size:14px}textarea{font-size:17px;height:104px}select,input[type=number]{height:42px;font-size:16px}.dimension-row>div>span{top:13px;font-size:14px}.under-field,.range-labels,.auto-note{font-size:14px;line-height:1.8;color:#9aad9f}.under-field a,.context-guide{color:#abd8b5}.context-guide{display:block;font-size:14px;margin:9px 0}.presets button{font-size:14px;padding:8px 0}.scan-options button{font-size:14px;padding:13px 4px}.two-fields{gap:10px}.two-fields select{font-size:14px;padding:0 6px}.generate-button{font-size:16px;min-height:46px}.quiet,.text-link{font-size:14px}.check-line{font-size:14px}input[type=checkbox]{width:16px;height:16px}.panel-heading,.code-panel .panel-heading{height:auto;min-height:64px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.preview-tools{flex-wrap:wrap;gap:14px}.preview-tools select{font-size:14px;height:36px;width:108px}.live-tag{font-size:12px}.preview-bottom{flex-wrap:wrap}.preview-hint{font-size:14px;line-height:1.7;max-width:none;color:#a0b1a5}.preview-bottom .quiet{font-size:14px}.screen-top{font-size:13px;letter-spacing:.5px}.screen-bottom{font-size:12px}.screen-bottom>span:last-child{font-size:11px}.glyph-strip{font-size:14px}#glyphs button{font-size:16px;height:36px;min-width:36px}#glyph-total{font-size:12px}.stats-row>div>div>span,.stats-row small{font-size:14px}.stats-row strong{font-size:21px}.stats-row{padding:19px 8px}.code-actions{flex-wrap:wrap;gap:13px}.code-actions select{font-size:14px;width:155px;height:36px}.code-actions .quiet,.download-button{font-size:14px;gap:7px}.download-button{padding:8px 10px}.code-file{font-size:14px}pre,#line-numbers{font-size:14px;line-height:1.85}.code-scroll{height:280px}.code-footer{font-size:13px;flex-wrap:wrap;gap:10px}.driver-body>p:first-child{font-size:17px}.driver-description{font-size:16px;color:#b0c2b4}.driver-license,.driver-tags span,.driver-compat,.driver-note{font-size:14px}.driver-note{color:#9eb2a5}.driver-actions{flex-wrap:wrap}.driver-actions .download-button{font-size:15px}.driver-tags{gap:9px}.driver-tags span{padding:5px 9px}.upload-zone{min-height:166px}.upload-zone strong{font-size:16px}.upload-zone span{font-size:14px}dialog{width:min(760px,calc(100vw - 32px));font-size:16px}dialog p,dialog dd,dialog dt,.help-note,#driver-dialog code{font-size:16px}dialog h3{font-size:19px}dialog h2{font-size:27px}.manual-link{display:block;background:#273b2e;border:1px solid #4b6b53;padding:14px 16px;border-radius:7px;color:#b9ebc5;text-decoration:none;font-size:16px;line-height:1.8}footer{font-size:14px;color:#95aa9b}footer>span:last-child{font-size:12px}.toast{font-size:16px;max-width:calc(100vw - 32px);width:max-content}.guide-banner{display:flex;justify-content:space-between;align-items:center;gap:25px;background:#1a2820;border:1px solid #3a5241;border-radius:10px;padding:20px 24px;margin-bottom:24px}.guide-banner strong{font-size:17px;font-weight:550;color:#cee6d4}.guide-banner p{font-size:14px;color:#a4bbaa;margin:8px 0 0;line-height:1.8}.guide-banner>a{color:#b5eac1;flex-shrink:0;text-decoration:none;font-size:16px}.top-right>.quiet{font-size:14px;gap:7px}
@media(max-width:1300px){.workspace{grid-template-columns:350px minmax(0,1fr)}.stats-row>div{padding:0 13px}.stats-row strong{font-size:18px}.code-actions{gap:9px}.guide-banner{align-items:flex-start}}
@media(max-width:1080px){.workspace{grid-template-columns:1fr}.settings-body{padding:24px}.settings-panel{max-width:none}.preview-tools .check-line{display:flex}.stat-symbol{display:inline}.code-panel h2 svg{display:inline}.guide-banner{flex-direction:column;gap:15px}.result-column{gap:20px}.canvas-container{max-height:390px}.page-heading h1{font-size:29px}}
@media(max-width:740px){.wordmark{font-size:18px}.wordmark span{display:none}.page-heading h1{font-size:26px}.page-heading p{font-size:15px}.settings-body{padding:20px}.presets{gap:7px}.source-tabs button{height:46px}.panel-heading{padding:14px 16px}.panel-heading h2{font-size:16px}.code-actions{width:100%;justify-content:space-between}.code-actions .quiet{font-size:14px;gap:7px}.download-button{font-size:14px;gap:7px}.preview-tools{gap:10px}.preview-tools .check-line{font-size:14px}.stats-row>div{padding:0 10px}.stat-symbol{display:none}.stats-row strong{font-size:16px}.stats-row small,.stats-row>div>div>span{font-size:13px}.code-footer{font-size:13px}footer{flex-direction:column;gap:8px}.glyph-strip{gap:9px}.guide-banner{padding:18px}.driver-actions{gap:13px}.screen-bottom>span:last-child{display:none}.source-tabs{gap:7px}}
@media(max-width:400px){.code-actions select{width:150px;font-size:13px}.code-actions{gap:6px}.code-actions .quiet,.code-actions .download-button{font-size:13px}.code-actions .download-button{padding:8px}.screen-top{font-size:11px}.live-tag{font-size:11px}.stats-row>div{padding:0 8px}.stats-row strong{font-size:15px}}

/* Focus the main flow on first installation, then content updates. */
.page-heading{padding:20px 0;margin-bottom:20px;align-items:center}.page-heading h1{font-size:28px;margin:0}.first-install{padding-bottom:24px}.first-install>summary{font-size:18px;font-weight:600;color:#d8efdf}.content-update{margin:0;padding:20px}.content-update strong{font-size:18px}.content-update p{font-size:16px}.content-update .content-path{margin-bottom:0;font-size:14px}.advanced-scan{margin-top:24px}.advanced-scan>summary,.advanced-output>summary{cursor:pointer;color:#b7cebf;font-size:16px;padding:14px 0}.advanced-output>summary{border:1px solid #344c3c;border-radius:8px;padding:18px}.advanced-output[open]>summary{margin-bottom:18px}.advanced-output>.panel{margin-top:20px}footer a{color:#b7cebf}@media(max-width:740px){.page-heading{gap:12px;flex-wrap:wrap}.page-heading h1{font-size:24px}.content-update{padding:16px}}

[hidden]{display:none!important}.content-actions{display:flex;justify-content:space-between;gap:12px;margin:10px 0}.sensor-help{margin-top:18px}.sensor-help summary{cursor:pointer;font-size:16px;color:#c5edcf}.sensor-help pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.mixed-toggle strong{font-size:17px;color:#c5edcf}#remove-image{margin-bottom:14px}

.clear-content-actions{display:flex;gap:12px;padding:16px 20px;border-bottom:1px solid #344c3c}.clear-content-actions button{flex:1;min-height:46px;padding:10px 12px;border:1px solid #73907d;border-radius:8px;background:#253b2d;color:#e0f1e5;font:600 16px/1.4 "Microsoft YaHei",sans-serif;cursor:pointer}.clear-content-actions button:hover{background:#36503e}.clear-content-actions button:focus-visible{outline:2px solid #a5f5b9;outline-offset:3px}.clear-content-actions #remove-image{margin:0}

.clear-content-actions{flex-wrap:wrap}.clear-content-actions #sensor-example{flex:0 0 100%;background:#a5f5b9;border-color:#a5f5b9;color:#14261a}.clear-content-actions #sensor-example:hover{background:#c4ffd3}

#line-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#line-sizes label{display:flex;align-items:center;gap:8px;font-size:15px}#line-sizes input{width:72px;min-width:0}#line-gap{width:90px}.line-layout{margin:18px 0;padding-top:4px;border-top:1px solid #344c3c}

.value-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.value-buttons button{padding:8px;border:1px solid #607b69;border-radius:6px}#value-settings{padding:14px;background:#203429;border-radius:8px;margin:16px 0}#value-inputs{display:grid;gap:8px;margin:12px 0}#value-inputs label{display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere}#value-inputs input{width:110px;min-width:0;font:16px Consolas,monospace;padding:8px;background:#101b14;border:1px solid #607b69;color:#d7eddf;border-radius:5px}#value-code{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}#value-settings summary{cursor:pointer;font-size:15px}
