.pc-tower-fields{display:grid;gap:17px;min-width:0;font-size:12px;color:inherit}.pc-tower-fields *{box-sizing:border-box}.pc-tower-fields fieldset{min-width:0;padding:15px;border:1px solid var(--border,#dce3d5);border-radius:9px;margin:0}.pc-tower-fields legend{padding:0 7px;font-size:11px;font-weight:600;color:var(--muted,#6d7965)}.pc-tower-component-grid{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:13px}.pc-tower-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}.pc-tower-field>span{font-size:11px;font-weight:550;line-height:1.6}.pc-tower-field input,.pc-tower-field select{width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid var(--border,#dce3d5);background:var(--panel,#fff);color:inherit;border-radius:7px;padding:10px 11px;font:inherit;font-size:13px;line-height:1.6}.pc-tower-field input:disabled{opacity:.45;background:transparent}.pc-tower-field input[type=number]{font-variant-numeric:tabular-nums}.pc-tower-hint{display:block;margin-top:11px;font-size:10px;line-height:1.8;color:var(--muted,#6d7965)}.pc-tower-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.pc-tower-slot{border:1px solid var(--border,#dce3d5);border-radius:8px;padding:12px;min-width:0;background:transparent}.pc-tower-slot-active{background:#f4f8ed}.pc-tower-slot-toggle{display:flex;align-items:center;gap:9px;min-height:30px;cursor:pointer;font-size:11px;font-weight:600;line-height:1.7;margin:0 0 11px}.pc-tower-slot-toggle input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:#6c953e}.pc-tower-slot-values{display:grid;gap:10px}.pc-tower-note{margin:0;padding:12px 14px;font-size:10px;line-height:1.8;background:var(--panel,#f4f7ee);border:1px solid var(--border,#dce3d5);border-radius:8px;color:var(--muted,#6d7965)}.pc-tower-fields [aria-invalid=true]{outline:2px solid #c47750;outline-offset:2px}.pc-tower-status{margin:15px 0 0;padding:11px 13px;font-size:12px;line-height:1.8;color:#ad4235;background:#fff2ef;border:1px solid #e5b4a9;border-radius:8px}.pc-tower-status[hidden]{display:none}.pc-tower-inspector-button{width:100%;min-height:44px;margin-top:8px}dialog:has(#pc-tower-form){width:min(740px,calc(100vw - 24px));max-width:740px;max-height:calc(100dvh - 24px)}#pc-tower-form .pc-tower-status{position:relative}.pc-tower-fields input:focus,.pc-tower-fields select:focus{outline:2px solid #a2c36f;outline-offset:1px}html[data-theme=dark] .pc-tower-slot-active{background:#243320}html[data-theme=dark] .pc-tower-status{background:#35241f;border-color:#734b3d;color:#f0b0a2}@media(max-width:600px){.pc-tower-fields{gap:14px}.pc-tower-fields fieldset{padding:12px}.pc-tower-component-grid{grid-template-columns:minmax(0,1fr) 85px;gap:10px}.pc-tower-field input,.pc-tower-field select{font-size:16px}.pc-tower-slot-grid{grid-template-columns:1fr}.pc-tower-slot-values{grid-template-columns:minmax(0,1fr) 105px;gap:9px}.pc-tower-slot{padding:11px}.pc-tower-field>span{font-size:10px}.pc-tower-fields legend{font-size:10px}.pc-tower-hint{font-size:10px}.pc-tower-note{font-size:10px}}@media(max-width:350px){.pc-tower-slot-values{grid-template-columns:1fr}.pc-tower-component-grid{grid-template-columns:1fr}.pc-tower-slot-toggle{font-size:11px}}
.pc-tower-summary{margin:0;padding:12px 14px;font-size:12px;line-height:1.8;border:1px solid var(--border,#dce3d5);border-radius:8px;font-variant-numeric:tabular-nums}.pc-tower-language{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0 0 17px;font-size:11px;line-height:1.6}.pc-tower-language select{min-height:44px;max-width:130px;padding:8px 11px;background:var(--panel,#fff);border:1px solid var(--border,#dce3d5);border-radius:7px;color:inherit}dialog:has(#pc-tower-form) #modal-content{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:0}dialog:has(#pc-tower-form) .modal-header,dialog:has(#pc-tower-form) .modal-footer{flex:none}dialog:has(#pc-tower-form) .modal-body{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}dialog:has(#pc-tower-form) .modal-footer .btn{min-height:44px}#pc-tower-form .pc-tower-status{margin:10px 0}#pc-tower-form input,#pc-tower-form select{scroll-margin-block:22px}@media(max-height:500px){dialog:has(#pc-tower-form) .modal-header{padding:10px 16px}dialog:has(#pc-tower-form) .modal-header h2{font-size:16px}dialog:has(#pc-tower-form) .modal-header p{font-size:10px}dialog:has(#pc-tower-form) .modal-footer{padding:8px 16px}dialog:has(#pc-tower-form) .modal-body{padding:14px 16px}}@media(max-width:600px){dialog:has(#pc-tower-form) .modal-header{padding:14px 16px}dialog:has(#pc-tower-form) .modal-header h2{font-size:17px}dialog:has(#pc-tower-form) .modal-body{padding:16px}dialog:has(#pc-tower-form) .modal-footer{padding:11px 16px}.pc-tower-language select{font-size:16px}}

/* The manual and guided forms both follow the selected application theme. */
.pc-tower-field input,.pc-tower-field select,.pc-tower-language select{background:#fff;color:#272e29;color-scheme:light}
.pc-tower-fields legend,.pc-tower-hint,.pc-tower-note{color:#65705f}
html[data-theme=dark] .pc-tower-field input,html[data-theme=dark] .pc-tower-field select,html[data-theme=dark] .pc-tower-language select{background:#111b15;color:#e0ead7;border-color:#3b4c38;color-scheme:dark}
html[data-theme=dark] .pc-tower-note{background:#16221a;color:#b8c6b0;border-color:#3b4c38}
html[data-theme=dark] .pc-tower-fields legend,html[data-theme=dark] .pc-tower-hint{color:#b8c6b0}
