.wt-modal-overlay{display:none;position:fixed;inset:0;z-index:10000;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);padding:20px}.wt-modal-overlay.wt-modal-confirm{z-index:10001}body.wt-tile-expanded:not(.wt-modal-invoker-scoped) .wt-modal-overlay:not(.wt-modal-confirm){top:var(--wt-tile-panel-top,0);left:var(--wt-tile-panel-left,0);right:auto;bottom:auto;width:var(--wt-tile-panel-w,100vw);height:var(--wt-tile-panel-h,100vh);box-sizing:border-box;border-radius:var(--wt-tile-radius,14px)}body.wt-tile-expanded:not(.wt-modal-invoker-scoped) .wt-modal-overlay:not(.wt-modal-confirm) .wt-modal,body.wt-tile-expanded:not(.wt-modal-invoker-scoped) .wt-modal-overlay:not(.wt-modal-confirm) .wt-modal-sm,body.wt-tile-expanded:not(.wt-modal-invoker-scoped) .wt-modal-overlay:not(.wt-modal-confirm) .wt-modal-md,body.wt-tile-expanded:not(.wt-modal-invoker-scoped) .wt-modal-overlay:not(.wt-modal-confirm) .wt-modal-lg{max-height:calc(var(--wt-tile-panel-h,100vh) - 40px)}body.wt-modal-invoker-scoped .wt-modal-overlay-invoker-scoped:not(.wt-modal-confirm){z-index:10002}.wt-modal{background:var(--tab-content-bg,#ffffff);border:1px solid var(--container-border-color,#e0e0e0);border-radius:10px;width:100%;max-width:520px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 8px 30px rgba(0,0,0,0.25);font-family:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,sans-serif;transform:scale(0.95) translateY(-10px);transition:transform 0.2s ease-out}.wt-modal-overlay.visible .wt-modal,.wt-modal-overlay.visible .wt-modal-sm,.wt-modal-overlay.visible .wt-modal-md,.wt-modal-overlay.visible .wt-modal-lg{transform:scale(1) translateY(0)}.wt-modal-sm{max-width:400px}.wt-modal-md{max-width:600px}.wt-modal-lg{max-width:800px}.wt-modal-sm,.wt-modal-md,.wt-modal-lg{background:var(--tab-content-bg,#ffffff);border:1px solid var(--container-border-color,#e0e0e0);border-radius:10px;width:100%;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 8px 30px rgba(0,0,0,0.25);font-family:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,sans-serif;transform:scale(0.95) translateY(-10px);transition:transform 0.2s ease-out}.wt-modal,.wt-modal-sm,.wt-modal-md,.wt-modal-lg{position:relative}.wt-modal-overlay .wt-resize-grip{width:16px;height:16px;border-bottom-right-radius:10px;--wt-resize-grip-ink:var(--text-color,#333333)}.wt-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--container-border-color,#e0e0e0);flex-shrink:0}.wt-modal-title-group{display:flex;align-items:center;gap:10px;min-width:0}.wt-modal-header h3,.wt-modal-header h2{margin:0;font-size:1.05rem;font-weight:600;color:var(--text-color,#333333)}.wt-modal-close{background:none;border:1px solid transparent;border-radius:6px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;line-height:1;color:var(--text-color,#333333);opacity:0.4;cursor:pointer;transition:all 0.15s ease;flex-shrink:0;padding:0}.wt-modal-close:hover{opacity:1;background:var(--header-bg,#f5f5f5);border-color:var(--container-border-color,#e0e0e0)}.wt-modal-close.wt-btn{width:auto;height:auto;opacity:1;font-size:0.85rem;padding:9px 16px}.wt-modal-body{padding:20px;overflow-y:auto;flex:1}.wt-modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid var(--container-border-color,#e0e0e0);flex-shrink:0}.wt-modal-body>label,.wt-modal-body .form-group>label,.wt-modal-body .wt-modal-form-group>label{display:block;font-size:0.78rem;font-weight:500;margin-bottom:5px;color:color-mix(in srgb,var(--text-color,#333333) 60%,transparent)}.wt-modal-body input[type="text"],.wt-modal-body input[type="number"],.wt-modal-body input[type="email"],.wt-modal-body input[type="url"],.wt-modal-body input[type="password"],.wt-modal-body select,.wt-modal-body textarea{width:100%;padding:9px 12px;border:1px solid var(--container-border-color,#e0e0e0);border-radius:6px;background:var(--background-color,#f0f0f0);color:var(--text-color,#333333);font-family:inherit;font-size:0.85rem;box-sizing:border-box;transition:border-color 0.15s,box-shadow 0.15s}.wt-modal-body input:focus,.wt-modal-body select:focus,.wt-modal-body textarea:focus{outline:none;border-color:var(--wt-btn-accent,#0ea5e9);box-shadow:0 0 0 2px rgba(14,165,233,0.15)}.wt-modal-body .form-group .wt-dd,.wt-modal-body .wt-modal-form-group .wt-dd{width:100%;display:block}.wt-modal-body .wt-loc-dd>input[type="text"]{padding-right:30px}.wt-modal-context{padding:10px 14px;background:var(--header-bg,#f5f5f5);border-radius:6px;margin-bottom:14px;font-size:0.85rem}.wt-modal-form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.wt-modal-body .form-group,.wt-modal-body .wt-modal-form-group{margin-bottom:14px}@media (max-width:768px){.wt-modal-overlay{padding:10px}.wt-modal,.wt-modal-sm,.wt-modal-md,.wt-modal-lg{max-width:100%;max-height:calc(100vh - 20px);border-radius:8px}.wt-modal-header{padding:14px 16px}.wt-modal-body{padding:16px}.wt-modal-footer{padding:12px 16px}.wt-modal-close{min-width:36px;min-height:36px}}@media (max-width:480px){.wt-modal-close{min-width:40px;min-height:40px}}@media (max-width:768px),(max-height:500px){.wt-modal-overlay{top:var(--wt-top-bar-h,0px)}.wt-modal,.wt-modal-sm,.wt-modal-md,.wt-modal-lg{max-height:calc(100vh - var(--wt-top-bar-h,0px) - 40px);max-height:calc(100dvh - var(--wt-top-bar-h,0px) - 40px)}}