.wb-dialog{resize:both;overflow:auto}.wb-form{display:grid;gap:14px;min-width:260px}.wb-field{display:flex;flex-direction:column;gap:6px;min-width:0}.wb-label{font-size:12px;color:var(--muted,#5b6e85);font-weight:550}.wb-field input,.wb-field select,.wb-field textarea{width:100%;box-sizing:border-box}.wb-muted{color:var(--muted,#5b6e85);font-size:12px}.wb-error{color:var(--error,#ad383e);background:color-mix(in srgb,var(--error,#ad383e) 8%,transparent);border-radius:10px;padding:9px 12px;font-size:12px;white-space:pre-wrap}.wb-error[hidden]{display:none}.wb-invalid{border-color:var(--error,#ad383e)!important;box-shadow:inset 0 0 0 1px var(--error,#ad383e)!important}.wb-notice{background:var(--soft,#e6efff);padding:12px;border-radius:12px}.wb-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.wb-toolbar>.wb-field{min-width:110px;max-width:180px}.wb-toolbar>input{min-width:160px}.wb-button{white-space:nowrap}.wb-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:31px;font-size:13px}.wb-switch{appearance:none!important;-webkit-appearance:none!important;position:relative;width:36px!important;height:21px!important;min-width:36px!important;border:0!important;border-radius:20px!important;background:var(--switch-off,#c0cddd)!important;cursor:pointer;box-shadow:inset 0 1px 3px #0001;transition:background .16s!important;flex:none;padding:0!important}.wb-switch:before{content:"";position:absolute;width:17px;height:17px;top:2px;left:2px;background:white;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .16s}.wb-switch:checked{background:var(--accent,#2464d7)!important}.wb-switch:checked:before{transform:translateX(15px)}.wb-switch:disabled{opacity:.45;cursor:default}.wb-switch:focus-visible{outline:2px solid var(--accent,#2464d7);outline-offset:3px}.wb-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;background:var(--surface,#fff)}.wb-table th{position:sticky;top:0;z-index:1;background:var(--header,#edf3fc);font-weight:550;color:var(--muted,#5b6e85);text-align:left;padding:10px 8px;border-right:1px solid var(--border,#d4dfea);border-bottom:1px solid var(--border,#d4dfea);white-space:nowrap;resize:horizontal;overflow:auto;min-width:55px}.wb-table td{padding:6px 8px;border-right:1px solid var(--border,#d4dfea);border-bottom:1px solid var(--border,#d4dfea);height:30px}.wb-table tr:nth-child(even) td{background:var(--stripe,#f6f9fd)}.wb-table tr.selected td{background:var(--soft,#e6efff)}.wb-table tbody tr{cursor:default}.wb-table-scroll{overflow:auto;border:1px solid var(--border,#d4dfea);border-radius:11px;min-height:140px;max-height:520px}.wb-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:36px 20px;text-align:center;color:var(--muted,#5b6e85)}.wb-users{display:grid;gap:14px;min-height:480px;font-size:13px}.wb-users-dialog{width:min(1180px,94vw)!important;max-width:96vw!important;min-width:min(680px,94vw)}.wb-users-split{display:grid;grid-template-columns:minmax(280px,1fr) 7px minmax(310px,.9fr);min-height:420px;max-height:68vh;overflow:hidden}.wb-users-list{overflow:auto;border:1px solid var(--border,#d4dfea);border-radius:12px}.wb-users-list td{height:var(--wb-user-row,34px)}.wb-resizer{cursor:col-resize;background:linear-gradient(90deg,transparent 2px,var(--border,#d4dfea) 3px,transparent 5px);touch-action:none}.wb-user-form{overflow:auto;padding:0 12px;display:flex;flex-direction:column;gap:10px}.wb-user-form>.wb-field{width:min(100%,var(--wb-user-field,250px))}.wb-user-form h3{font-size:15px;margin:0 0 4px}.wb-rights h4{font-size:12px;margin:18px 0 8px;color:var(--muted,#5b6e85)}.wb-rights .wb-toggle-row{padding:5px 0;border-bottom:1px solid var(--border,#d4dfea)}.wb-template-page{height:100%;min-height:0}.wb-template-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;height:100%;min-height:0}.wb-template-list{display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--border,#d4dfea);padding:4px 14px 8px 0;min-height:0}.wb-template-list h3{font-size:16px;margin:7px 0}.wb-template-list-items{overflow:auto;flex:1;min-height:150px;display:flex;flex-direction:column;gap:6px}.wb-template-item{text-align:left;display:flex;flex-direction:column;gap:6px;padding:11px 12px!important;white-space:normal!important;border-radius:12px!important;background:transparent!important}.wb-template-item small{color:var(--muted,#5b6e85);font-size:11px}.wb-template-item.selected{background:var(--soft,#e6efff)!important;border-color:var(--accent,#2464d7)!important}.wb-template-main{display:flex;flex-direction:column;gap:12px;overflow:auto;padding:4px 8px 24px 0;min-height:0}.wb-template-meta{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:12px;align-items:end}.wb-template-materials{display:flex;gap:10px;flex-wrap:wrap}.wb-template-materials .wb-field{min-width:140px;max-width:210px;flex:1}.wb-tabs{display:flex;align-items:center;gap:4px;overflow:auto;flex:none;padding:4px;background:var(--read,#edf2f8);border-radius:15px}.wb-tabs>button{border-color:transparent!important;background:transparent!important}.wb-tabs>button.active{background:var(--surface,#fff)!important;color:var(--accent,#2464d7);box-shadow:0 1px 4px #0001}.wb-template-grid{min-height:210px;flex:1}.wb-template-grid .wb-table-scroll{height:100%;max-height:500px}.wb-edit-table{min-width:800px;table-layout:fixed}.wb-edit-table th,.wb-edit-table td{padding:3px 5px}.wb-edit-table th{height:36px}.wb-edit-table th:nth-child(2){min-width:130px;width:140px}.wb-edit-table th:nth-child(3){width:170px}.wb-edit-table th:nth-child(4){width:200px}.wb-edit-table .wb-row-number{width:32px;min-width:32px;text-align:center;color:var(--muted,#5b6e85);background:var(--read,#edf2f8)!important}.wb-edit-table input,.wb-edit-table select{min-height:30px;width:100%;border-radius:5px;padding:3px 6px;min-width:45px;box-sizing:border-box;background:var(--field,#f1f5fb);font-size:12px}.wb-edit-table select{padding-right:22px}.wb-result{font-variant-numeric:tabular-nums;color:var(--accent,#2464d7);cursor:help!important}.wb-name-combo{display:flex;min-width:100px;position:relative}.wb-name-combo>input{padding-right:23px}.wb-name-combo>button{position:absolute;right:0;top:0;bottom:0;width:23px;min-width:0;border:0!important;background:transparent!important;padding:0!important;border-radius:4px!important}.wb-name-popup{max-height:250px;overflow:auto;background:var(--surface,#fff);border:1px solid var(--border,#d4dfea);border-radius:12px;box-shadow:0 9px 30px #0002;padding:5px;z-index:10000;color:var(--text,#172638)}.wb-name-popup>button{border:0!important;background:transparent!important;display:flex;flex-direction:column;text-align:left;width:100%;gap:3px;white-space:normal;padding:7px 9px!important;border-radius:7px!important}.wb-name-popup>button:hover,.wb-name-popup>button:focus{background:var(--soft,#e6efff)!important}.wb-name-popup small{font-size:10px;color:var(--muted,#5b6e85)}.wb-template-preview{width:100%;min-height:180px;height:240px;border:1px solid var(--border,#d4dfea);border-radius:13px;background:var(--canvas,#fcfdff);overflow:hidden;flex:none}.wb-template-preview svg{display:block}.wb-reference{display:flex;flex-direction:column;gap:12px;min-height:440px}.wb-reference .wb-table-scroll{max-height:42vh;flex:1}.wb-reference-detail{min-height:100px;padding:10px;background:var(--read,#edf2f8);border-radius:12px}.wb-reference-detail p{font-size:13px;line-height:1.5}.wb-trace{font:12px/1.65 "Cascadia Code",Consolas,monospace;white-space:pre-wrap;overflow:auto;background:var(--read,#edf2f8);border-radius:12px;padding:14px;max-height:46vh;color:var(--text,#172638)}.wb-explanation{display:flex;flex-direction:column;gap:9px;min-width:300px}.wb-explanation h3{margin:0}.wb-explanation p{margin:4px 0}.wb-create{display:flex;flex-direction:column;gap:14px}.wb-create-meta,.wb-create-inputs{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:12px}.wb-create-results{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:7px;max-height:220px;overflow:auto}.wb-calc-result{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;padding:8px!important;border-radius:9px!important;font-size:12px;cursor:help!important}.wb-calc-result span{color:var(--muted,#5b6e85)}.wb-calc-result strong{font-variant-numeric:tabular-nums}.wb-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(170px,1fr));gap:15px}.wb-settings-list{display:grid;gap:8px;max-height:55vh;overflow:auto}.wb-settings-list>.wb-toggle-row{padding:8px;border-bottom:1px solid var(--border,#d4dfea)}.wb-range{display:flex;align-items:center;gap:12px}.wb-range input[type=range]{flex:1}.wb-range output{font-variant-numeric:tabular-nums;min-width:45px;text-align:right}.wb-print-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;min-height:500px}.wb-print-controls{display:flex;flex-direction:column;gap:12px;overflow:auto;max-height:66vh}.wb-print-paper{position:relative;background:#fff;aspect-ratio:1200/830;align-self:start;border:1px solid var(--border,#d4dfea);box-shadow:0 5px 20px #0001;overflow:hidden}.wb-print-paper>svg{position:absolute;inset:0;width:100%;height:100%}.wb-print-overlay rect{fill:transparent;stroke:#5181cf;stroke-width:1.5;stroke-dasharray:5 4;cursor:move}.wb-print-overlay rect.selected{fill:#5181cf15;stroke-width:2.5}.wb-print-overlay .wb-print-grip{fill:#5181cf;stroke:#fff;stroke-width:1;cursor:nwse-resize}.wb-print-overlay{touch-action:none}.wb-colour-row{display:flex;align-items:center;gap:12px}.wb-colour-row input[type=color]{width:65px!important;height:38px;padding:3px}.wb-layout-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wb-switch{min-height:21px!important;max-height:21px}.wb-table th{background:var(--read,#edf3fc)}.wb-geometry-preview svg>rect:first-child{fill:var(--canvas,#fcfdff)}:root[data-theme=dark] .wb-geometry-preview polyline[stroke="#58738a"]{stroke:#afc5d8}:root[data-theme=dark] .wb-geometry-preview polyline[stroke="#6f9485"]{stroke:#aac8b9}:root[data-theme=dark] .wb-geometry-preview polyline[stroke="#b29e76"]{stroke:#d0c19d}:root[data-theme=dark] .wb-geometry-preview polyline[stroke="#9588ad"]{stroke:#c2b4d6}
@media(max-width:1050px){.wb-template-layout{grid-template-columns:200px minmax(0,1fr)}.wb-template-meta{grid-template-columns:repeat(2,minmax(150px,1fr))}.wb-create-meta,.wb-create-inputs{grid-template-columns:repeat(2,minmax(140px,1fr))}}@media(max-width:720px){.wb-template-layout{grid-template-columns:1fr}.wb-template-list{max-height:210px;border-right:0;border-bottom:1px solid var(--border,#d4dfea);padding:0 0 12px}.wb-template-list-items{min-height:70px}.wb-users-split{grid-template-columns:1fr!important;overflow:auto;max-height:70vh}.wb-users-list{min-height:180px}.wb-resizer{display:none}.wb-user-form{overflow:visible;padding:10px 0}.wb-create-meta,.wb-create-inputs,.wb-create-results,.wb-settings-grid{grid-template-columns:1fr}.wb-print-layout{grid-template-columns:1fr}.wb-print-controls{max-height:none}.wb-print-paper{min-height:260px}.wb-dialog{resize:none}}
