/* WT13 shared form controls. Native values, validation and input events stay intact. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select.wt-native-select-source{position:absolute!important;width:1px!important;min-width:0!important;max-width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip-path:inset(50%)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;vertical-align:middle;width:100%;min-width:0;min-height:39px;padding:9px 12px;border:1px solid var(--wt-border,#cfdced);border-radius:9px;background:#fff;color:var(--wt-ink,#203b61);box-shadow:0 1px 2px rgba(30,56,94,.035);font:inherit;font-size:13px;line-height:1.45;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control:hover:not([aria-disabled="true"]){border-color:#a9bfdc;background:#fbfdff;box-shadow:0 2px 5px rgba(30,56,94,.07)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control:focus-visible,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control[aria-expanded="true"]{outline:2px solid var(--wt-accent,#6745c5);outline-offset:2px;border-color:var(--wt-accent,#6745c5);box-shadow:0 0 0 3px var(--wt-tint,#f3effd)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control[aria-invalid="true"]{border-color:#c94050;outline-color:#c94050}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control[aria-disabled="true"]{cursor:not-allowed;color:#64748b;background:#f1f5fa;border-color:#d9e2ed;box-shadow:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control[hidden]{display:none!important}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-caret{flex:0 0 auto;width:7px;height:7px;margin:-3px 2px 0 4px;border:solid #7a91ad;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);transition:transform .16s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control[aria-expanded="true"] .wt-select-caret{transform:translateY(3px) rotate(225deg);border-color:var(--wt-accent,#6745c5)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-unit-inputs>.wt-select-control{font-size:13px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-bar-select+.wt-select-control{width:auto;min-width:130px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup[data-wt-select-popup]{position:fixed;z-index:2147483000;display:flex;flex-direction:column;gap:0;box-sizing:border-box;max-width:calc(100vw - 16px);padding:6px;border:1px solid var(--wt-border,#cfdced);border-radius:12px;background:#fff;color:var(--wt-ink,#203b61);box-shadow:0 14px 38px rgba(30,56,94,.17),0 3px 8px rgba(30,56,94,.07);font-family:inherit;font-size:13px;line-height:1.45;overflow:auto;isolation:isolate;color-scheme:light}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup[data-wt-select-popup][hidden]{display:none!important}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-search{box-sizing:border-box;flex:0 0 auto;width:calc(100% - 4px);min-width:0;height:37px;padding:8px 10px;margin:2px 2px 6px;border:1px solid #cddbed;border-radius:8px;background:#f7faff;color:var(--wt-ink,#203b61);font:inherit;outline:none;box-shadow:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-search::placeholder{color:var(--wt-muted,#526b89)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-search:focus{border-color:var(--wt-accent,#6745c5);box-shadow:0 0 0 2px var(--wt-tint,#f3effd)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-search[hidden]{display:none!important}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-list{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c4d4e7 transparent;scroll-padding:4px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-option{position:relative;box-sizing:border-box;width:100%;min-height:34px;padding:8px 30px 8px 10px;border:0;border-radius:7px;background:#fff;color:var(--wt-ink,#203b61);overflow-wrap:anywhere;text-align:start;cursor:pointer;user-select:none;transition:background .12s ease,color .12s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-option:hover,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-option.is-active{background:#edf4fe;color:#214d83}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-option[aria-selected="true"]{background:var(--wt-tint,#f3effd);color:var(--wt-accent,#6745c5);font-weight:650}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-option[aria-selected="true"]::after{content:"";position:absolute;right:13px;top:50%;width:5px;height:9px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:translateY(-60%) rotate(45deg)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-group{padding:10px 10px 5px;color:var(--wt-muted,#526d8e);font-size:11px;font-weight:650;letter-spacing:.02em}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-empty{padding:22px 10px;margin:0;color:var(--wt-muted,#526d8e);text-align:center;font-size:13px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-empty[hidden]{display:none!important}
/* Compact editor/tree selects remain native; single-select proxies deliberately exclude them. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select[multiple],html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select[size]:not([size="1"]):not([size="0"]){padding:7px;border-color:var(--wt-border,#cfdced);border-radius:9px;background:#fff;color:var(--wt-ink,#203b61);accent-color:var(--wt-accent,#6745c5)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select[multiple] option,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select[size]:not([size="1"]):not([size="0"]) option{padding:7px 8px;border-radius:5px}
/* Keep custom switch source inputs hidden: only ordinary checkboxes/radios get this skin. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="checkbox"],[type="radio"]):not(.nxt-switch input):not(.its-switch input):not(.wt-switch input){appearance:none;-webkit-appearance:none;box-sizing:border-box;display:inline-block;vertical-align:-3px;flex:0 0 auto;width:17px;min-width:17px;max-width:17px;height:17px;min-height:17px;margin:0 6px 0 0;padding:0;border:1.5px solid #a7bbd3;border-radius:5px;background:#fff;cursor:pointer;box-shadow:0 1px 2px rgba(30,56,94,.04);transition:background .13s ease,border-color .13s ease,box-shadow .13s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="radio"]:not(.nxt-switch input):not(.its-switch input):not(.wt-switch input){border-radius:50%}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="checkbox"],[type="radio"]):not(.nxt-switch input):not(.its-switch input):not(.wt-switch input):hover:not(:disabled){border-color:var(--wt-accent,#6745c5);box-shadow:0 0 0 3px var(--wt-tint,#f3effd)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="checkbox"]:not(.nxt-switch input):not(.its-switch input):not(.wt-switch input):checked{border-color:var(--wt-accent,#6745c5);background:var(--wt-accent,#6745c5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px 15px no-repeat}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="checkbox"]:not(.nxt-switch input):not(.its-switch input):not(.wt-switch input):indeterminate{border-color:var(--wt-accent,#6745c5);background:var(--wt-accent,#6745c5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/15px 15px no-repeat}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="radio"]:checked{border-color:var(--wt-accent,#6745c5);background:radial-gradient(circle,var(--wt-accent,#6745c5) 0 4px,#fff 4.5px)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="checkbox"],[type="radio"]):not(.nxt-switch input):not(.its-switch input):not(.wt-switch input):disabled{cursor:not-allowed;border-color:#becada;background-color:#eef3f8;opacity:1}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="checkbox"]:checked:disabled:not(.nxt-switch input):not(.its-switch input):not(.wt-switch input){background-color:#879ab5;border-color:#879ab5}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="radio"]:checked:disabled{background:radial-gradient(circle,#879ab5 0 4px,#eef3f8 4.5px)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="checkbox"],[type="radio"],[type="range"],[type="color"]):focus-visible{outline:2px solid var(--wt-accent,#6745c5);outline-offset:3px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]{appearance:none;-webkit-appearance:none;box-sizing:border-box;min-width:0;height:22px;max-width:100%;padding:0;border:0;border-radius:0;background:transparent;accent-color:var(--wt-accent,#6745c5);cursor:pointer;box-shadow:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]::-webkit-slider-runnable-track{height:5px;border-radius:9px;background:#dce6f2;border:0;box-shadow:inset 0 1px 2px rgba(30,56,94,.06)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;margin-top:-6px;border:2px solid #fff;border-radius:50%;background:var(--wt-accent,#6745c5);box-shadow:0 1px 5px rgba(30,56,94,.3);transition:box-shadow .15s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]::-moz-range-track{height:5px;border:0;border-radius:9px;background:#dce6f2}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]::-moz-range-progress{height:5px;border-radius:9px;background:var(--wt-accent,#6745c5)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]::-moz-range-thumb{width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:var(--wt-accent,#6745c5);box-shadow:0 1px 5px rgba(30,56,94,.3)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px var(--wt-tint,#f3effd),0 1px 5px rgba(30,56,94,.25)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="range"]:disabled{cursor:not-allowed;opacity:.65}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="file"]{max-width:100%;min-width:0;padding:6px 0;color:var(--wt-muted,#526d8e);font-family:inherit;font-size:12px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="file"]::file-selector-button{padding:9px 12px;margin-right:10px;border:1px solid var(--wt-border,#cfdced);border-radius:8px;background:#fff;color:var(--wt-accent,#6745c5);font:inherit;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="file"]::file-selector-button:hover{border-color:var(--wt-accent,#6745c5);background:var(--wt-tint,#f3effd);box-shadow:0 2px 5px rgba(30,56,94,.06)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="file"]:disabled::file-selector-button{cursor:not-allowed;color:#6c809b;border-color:#d9e2ed;background:#f1f5fa}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="date"],[type="time"],[type="datetime-local"]){box-sizing:border-box;min-width:0;max-width:100%;min-height:39px;padding:8px 11px;border:1px solid var(--wt-border,#cfdced);border-radius:9px;background:#fff;color:var(--wt-ink,#203b61);font:inherit;font-size:13px;color-scheme:light;box-shadow:0 1px 2px rgba(30,56,94,.035)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="date"],[type="time"],[type="datetime-local"])::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.7}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="date"],[type="time"],[type="datetime-local"]):focus{outline:none;border-color:var(--wt-accent,#6745c5);box-shadow:0 0 0 3px var(--wt-tint,#f3effd)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="color"]{box-sizing:border-box;width:38px;min-width:38px;height:36px;padding:4px;border:1px solid var(--wt-border,#cfdced);border-radius:8px;background:#fff;cursor:pointer;box-shadow:0 1px 2px rgba(30,56,94,.04)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="color"]::-webkit-color-swatch{border:0;border-radius:4px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input[type="color"]::-moz-color-swatch{border:0;border-radius:4px}
@media(max-width:640px){html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control{min-height:42px}html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-option{min-height:40px;padding-top:10px;padding-bottom:10px}html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-search{font-size:16px;height:40px}html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="date"],[type="time"],[type="datetime-local"]){font-size:16px;min-height:42px}}
@media(prefers-reduced-motion:reduce){html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-caret,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup *,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input{transition:none!important}}
@media(forced-colors:active){html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool input:is([type="checkbox"],[type="radio"]):not(.nxt-switch input):not(.its-switch input):not(.wt-switch input){appearance:auto;-webkit-appearance:auto;background:none}html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-select-control{border-color:ButtonText;background:Canvas;color:CanvasText}html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-controls-popup .wt-select-option[aria-selected="true"]{outline:1px solid Highlight}}

/* Palette chips keep their native compact color swatch; selected color is never repainted. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-color-chip input[type="color"]{width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;padding:1px;border:1px solid var(--wt-border,#cfdced);border-radius:5px;box-shadow:none;vertical-align:middle}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-color-chip input[type="color"]::-webkit-color-swatch,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-color-chip input[type="color"]::-moz-color-swatch{border-radius:3px}
