.wt{position:fixed;inset:0;z-index:60;background:#f3f5f7;overflow:auto;color:#24333e;overscroll-behavior:contain}.wt *{box-sizing:border-box}.wt-head{background:#20262e;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;gap:12px}.wt-head .brand{font-size:20px}.wt-head .brand small{font-size:12px;color:#bec8d0}.wt button,.wt-dialog button{min-height:44px;border-radius:10px;padding:10px 15px;cursor:pointer;font:600 14px/1.3 inherit}.wt button:not(.btn-ghost),.wt-dialog button{border:1px solid #d5dfe4;background:white;color:#344650}.wt button.wt-primary,.wt-dialog button.wt-primary{background:#176957;border-color:#176957;color:white}.wt button:disabled,.wt-dialog button:disabled{opacity:.5;cursor:default}.wt button:focus-visible,.wt input:focus-visible,.wt select:focus-visible,.wt textarea:focus-visible,.wt-dialog :focus-visible{outline:3px solid #71b6a5;outline-offset:2px}.wt-toolbar{padding:12px 24px;display:flex;justify-content:space-between;gap:12px;position:sticky;top:0;background:#fff;z-index:2;border-bottom:1px solid #e0e7eb}.wt-date,.wt-tools{display:flex;gap:8px;align-items:center}.wt input,.wt select,.wt textarea,.wt-dialog input,.wt-dialog select{font:16px/1.5 system-ui;border:1px solid #ced9df;border-radius:10px;background:#fff;color:#24333e;min-height:46px;padding:10px;width:100%}.wt-date input{width:165px}.wt-tabs{display:flex;gap:5px;max-width:1100px;margin:18px auto 0;padding:0 24px}.wt-tabs button{flex:1;max-width:250px}.wt-tabs button[aria-selected=true]{background:#e1efe9;border-color:#176957;color:#135746}.wt-main{max-width:1100px;padding:16px 24px 90px;margin:auto}.wt-notice:empty{display:none}.wt-notice{padding:12px;background:#fff2d6;border-radius:12px;white-space:pre-wrap}.wt-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 18px}.wt h1{font-size:24px;margin:0}.wt-section-title p{color:#667a85;margin:5px 0 0}.wt-rows{display:grid;gap:14px}.wt-card{background:#fff;border:1px solid #dde5e8;border-radius:16px;padding:18px;box-shadow:0 3px 14px #1c384205}.wt-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.wt-card-top b{font-size:14px;color:#65808a}.wt-fields{display:grid;grid-template-columns:1fr 1fr 130px;gap:12px}.wt label,.wt-dialog label{display:block;font-size:13px;font-weight:600;color:#536975}.wt label select,.wt label input,.wt label textarea,.wt-dialog label select{display:block;margin-top:6px}.wt-description{margin-top:14px}.wt-description textarea{min-height:92px;resize:vertical}.wt-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.wt-status{font-size:12px;color:#657a85;white-space:pre-wrap}.wt-status[data-state=saved]{color:#176957}.wt-status[data-state=error]{color:#a33c2c}.wt-empty{padding:44px 18px;text-align:center;background:white;border:1px dashed #c4d4d9;border-radius:16px;color:#647a85}.wt-output-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.wt-output-tools label{flex:1;max-width:360px}.wt-subtle{color:#6c7c87;font-size:13px}.wt #wtOutput{width:100%;min-height:62vh;resize:vertical;padding:22px;line-height:1.8;border-radius:16px}.wt-dialog{width:min(580px,calc(100% - 24px));max-height:85dvh;border:0;border-radius:20px;padding:22px;color:#24333e}.wt-dialog::backdrop{background:#13252c99}.wt-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.wt-dialog h2{font-size:20px;margin:0}.wt-dialog p{font-size:13px;color:#647782}.wt-def-add{display:flex;gap:8px;margin:16px 0}.wt-def-row{display:flex;gap:8px;align-items:center;border-top:1px solid #e5ecee;padding:12px 0}.wt-def-row span{flex:1;overflow-wrap:anywhere}.wt-def-row button{padding:8px;font-size:12px}.wt-def-row[data-enabled="0"] span{color:#82919b}.wt .wt-delete{color:#a13b32!important}.wt-review{border-left:3px solid #c8882d;margin-top:12px;padding:10px;white-space:pre-wrap;font-size:13px}.wt-review button{margin:8px 6px 0 0}
@media(max-width:650px){.wt-head{padding:12px 14px}.wt-head .brand{font-size:17px;gap:9px}.wt-head .brand small{font-size:11px}.wt-head>button{font-size:12px;padding:9px}.wt-toolbar{padding:10px 12px;display:block}.wt-date{gap:5px}.wt-date input{flex:1;min-width:0;width:130px}.wt-date button{padding:9px 12px}.wt-tools{margin-top:8px;gap:6px}.wt-tools button{flex:1;font-size:12px;padding:9px 6px}.wt-tabs{padding:0 12px;margin-top:12px}.wt-tabs button{max-width:none}.wt-main{padding:12px 12px calc(34px + env(safe-area-inset-bottom))}.wt h1{font-size:21px}.wt-card{padding:14px;border-radius:14px}.wt-fields{grid-template-columns:minmax(0,1fr) 95px;gap:12px}.wt-field-block{grid-column:1/-1}.wt-card-top{margin-bottom:10px}.wt-description textarea{min-height:100px}.wt-output-tools{gap:10px}.wt-output-tools label{min-width:0}.wt-output-tools button{white-space:nowrap;padding:10px;font-size:12px}.wt #wtOutput{padding:14px;min-height:60dvh;font-size:16px}.wt-dialog{padding:16px}.wt-def-row{flex-wrap:wrap}.wt-def-row span{min-width:100px}.wt-card-bottom{align-items:flex-start}.wt-status{max-width:70%}}
.wt-quickbar{display:none}
.wt button,.wt-dialog button{font-family:inherit;font-weight:600;line-height:1.3}
@media(max-width:650px){.wt-quickbar{position:fixed;bottom:0;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:9px 14px calc(9px + env(safe-area-inset-bottom));background:#ffffffef;border-top:1px solid #dce5e8;box-shadow:0 -4px 20px #23394708;gap:12px}.wt-quickbar span{font-size:13px;color:#536975}.wt-main{padding-bottom:calc(104px + env(safe-area-inset-bottom))}}
.wt-head-actions{display:flex;align-items:center;gap:8px}.wt-home-icon{display:none}.wt .wt-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}.wt-scope{grid-column:1/-1;display:grid;grid-template-columns:minmax(140px,240px) minmax(180px,1fr);gap:10px;max-width:750px}.wt-scope label{font-size:11px}.wt-scope select{margin-top:3px;padding:8px 10px;min-height:42px}.wt-settings-dialog{width:min(680px,calc(100% - 24px))}.wt-settings-tabs{display:flex;gap:6px;margin:16px 0;flex-wrap:wrap}.wt-settings-tabs button[aria-pressed=true]{background:#e1efe9;color:#135746;border-color:#176957}.wt-settings-dialog section>label{margin:14px 0}.wt-settings-dialog section>label input,.wt-settings-dialog section>label select{margin-top:6px}.wt-settings-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f6f4;padding:14px;border-radius:10px;font:14px/1.6 system-ui}.wt-settings-dialog .wt-access-check{display:flex;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #e5ecee;font-size:14px}.wt-settings-dialog .wt-access-check input{width:20px;min-height:20px;height:20px;margin:0;flex:0 0 20px}.wt-settings-dialog section>button{margin-top:12px}
@media(max-width:650px){.wt-head{padding:10px 12px;gap:6px}.wt-head .brand{font-size:15px;gap:7px;min-width:0}.wt-head .brand small{display:none}.wt-head-actions{gap:5px;flex-shrink:0}.wt-head-actions button{padding:8px 10px;font-size:12px}.wt-home-label{display:none}.wt-home-icon{display:inline;font-size:22px}.wt .wt-toolbar{display:block;padding:8px 12px}.wt-scope{display:grid;grid-template-columns:minmax(85px,.65fr) minmax(0,1.35fr);gap:8px;margin-bottom:8px}.wt-scope select{font-size:16px;min-width:0;padding:7px}.wt .wt-date input{min-height:42px;padding:7px}.wt .wt-tools{margin-top:6px}.wt .wt-tools button{min-height:40px}.wt-settings-tabs button{flex:1;min-width:90px;padding:8px;font-size:12px}}
.wt-text-mode{margin-top:16px;padding:14px;background:#fff;border:1px solid #dce5e8;border-radius:12px}.wt-text-mode label{max-width:620px}.wt-text-mode p,.wt-format-help{font-size:12px;line-height:1.6;color:#617783;margin:8px 0 0}.wt-format-panel{margin-top:12px;background:#fff;border:1px solid #dce5e8;border-radius:12px}.wt-format-panel>summary{min-height:48px;padding:14px;cursor:pointer;font-weight:600;font-size:14px;color:#344e58}.wt-format-panel>summary span{margin-left:10px;font-size:11px;font-weight:500;color:#176957;background:#e5f1ec;border-radius:20px;padding:4px 8px}.wt-format-body{padding:0 14px 14px}.wt-format-presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.wt .wt-format-presets button{font-size:12px}.wt-format-presets button[aria-pressed=true]{background:#e1efe9;color:#135746;border-color:#176957}.wt-format-panel fieldset{border:1px solid #e0e7eb;border-radius:10px;margin:12px 0;padding:12px}.wt-format-panel legend{font-size:12px;font-weight:600;color:#647b85;padding:0 6px}.wt-format-checks{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.wt .wt-format-checks label{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer;font-size:13px;line-height:1.4;font-weight:500}.wt .wt-format-checks input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0;accent-color:#176957}.wt-format-selects{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}#wtFormatStatus:empty{display:none}#wtFormatStatus{font-size:12px;line-height:1.6;color:#9b5e1b}
@media(max-width:650px){.wt-text-mode{padding:12px}.wt-text-mode select{font-size:16px}.wt-format-panel>summary{padding:13px 12px;font-size:13px}.wt-format-panel>summary span{margin-left:6px}.wt-format-body{padding:0 10px 12px}.wt .wt-format-presets button{padding:9px 10px;flex:1;min-width:100px}.wt-format-panel fieldset{padding:10px}.wt-format-checks{grid-template-columns:1fr}.wt-format-selects{grid-template-columns:1fr}.wt .wt-format-checks label{min-height:44px}.wt #wtOutput{min-height:55dvh}}
