/* Shared handcrafted SVG controls. */
.ew-icon{display:block;flex:0 0 20px;width:20px;height:20px;vertical-align:middle;pointer-events:none}
.ew-icon-slot{
  display:inline-grid;
  grid-template:minmax(0,1fr)/minmax(0,1fr);
  place-items:center;
  flex:0 0 20px;
  width:20px;
  height:20px;
  line-height:0;
  vertical-align:middle;
}
:is(button,a,.button) > :is(.ew-icon,.ew-icon-slot){align-self:center}
.search-field>span,.search-field>.ew-icon,.benefit-symbol,.empty-mark,.nav-glyph,.nav-icon,.payment-symbol,.card-arrow{display:inline-grid;place-items:center;line-height:0}
.search-field>span{width:20px;height:20px;flex:0 0 20px}.search-field>.ew-icon{margin:0;flex:0 0 20px}
.dialog-close{display:grid;place-items:center;padding:0!important}.dialog-close .ew-icon{width:18px;height:18px}
.ew-search-shell{display:flex;align-items:center;gap:12px;min-width:0;flex:1;background:#161e20;border:1px solid #ffffff13;border-radius:10px;padding:0 14px}
.ew-search-shell>.ew-icon{color:#88e8c2;flex:0 0 20px}.ew-search-shell input{min-width:0!important;width:100%!important;border:0!important;background:transparent!important;margin:0!important;padding:13px 0!important;box-shadow:none!important}
.ew-search-shell:focus-within{outline:1px solid #88e8c2;outline-offset:3px}
.ew-select-control{position:relative;display:inline-flex;min-width:180px;max-width:100%;vertical-align:middle;isolation:isolate}
.ew-select-native{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;pointer-events:none!important;z-index:-1!important}
.ew-select-trigger{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:11px 14px;background:#161e20;border:1px solid #ffffff13;color:#acbdb4;border-radius:10px;font:inherit;font-size:11px;text-align:left;cursor:pointer;transition:background .16s,border-color .16s}
.ew-select-trigger:hover,.ew-select-control.is-open .ew-select-trigger{background:#1c2927;border-color:#88e8c24d}.ew-select-trigger:focus-visible{outline:2px solid #88e8c2;outline-offset:4px}.ew-select-trigger:disabled{cursor:not-allowed;opacity:.5}
.ew-select-leading{width:17px;height:17px;flex-basis:17px;color:#88e8c2}.ew-select-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ew-select-chevron{width:15px;height:15px;flex-basis:15px;color:#88e8c2;transition:transform .18s}.ew-select-control.is-open .ew-select-chevron{transform:rotate(180deg)}
.ew-select-panel{position:fixed;inset:auto;margin:0;display:none;flex-direction:column;gap:8px;padding:10px;border:1px solid #ffffff18;border-radius:12px;background:#171f21;color:#e5f4eb;box-shadow:0 20px 50px #0006;overflow:auto;overscroll-behavior:contain;z-index:10000;scrollbar-width:thin;scrollbar-color:#88e8c24a transparent;outline:none}
.ew-select-panel.is-open,.ew-select-panel:popover-open{display:flex}.ew-select-panel::backdrop{background:transparent;pointer-events:none}
.ew-select-option{display:flex;justify-content:space-between;align-items:center;gap:18px;flex:0 0 auto;min-height:42px;padding:11px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:#aec2b7;font:inherit;font-size:11px;text-align:left;cursor:pointer;transition:background .12s,color .12s,border-color .12s}
.ew-select-option>span{overflow-wrap:anywhere;min-width:0}.ew-select-option .ew-select-check{width:16px;height:16px;flex-basis:16px;opacity:0}
.ew-select-option[aria-selected=true]{color:#a4f2d1;background:#88e8c211;border-color:#88e8c23d}.ew-select-option[aria-selected=true] .ew-select-check{opacity:1}
.ew-select-option:hover,.ew-select-option.is-focused{background:#ffffff08;border-color:#88e8c23b;color:#edfff5}.ew-select-option[aria-selected=true]:hover,.ew-select-option[aria-selected=true].is-focused{background:#88e8c21c}.ew-select-option:disabled{opacity:.4;cursor:not-allowed}
.field>.ew-select-control,.form-grid .field>.ew-select-control{display:flex;width:100%}.workspace-filters>.ew-select-control{min-width:160px}.sort-field{display:flex;align-items:center}.sort-field>.ew-select-control{min-width:210px}
.workspace-nav{gap:8px}.workspace-nav button,.workspace-nav a{position:relative}.workspace-nav button:hover,.workspace-nav a:hover{outline:0}.workspace-nav button.active{margin:0}.picker-options{padding:8px;gap:8px}.picker-options:not(.hidden){display:grid}.picker-options>*{margin:0!important}
.button,.row-actions button,.hero-actions a,.hero-actions button{column-gap:12px}.row-actions{gap:8px!important}.category-filters{gap:8px!important}
.empty-mark .ew-icon{width:32px;height:32px}.benefit-symbol .ew-icon{width:28px;height:28px}.nav-glyph .ew-icon,.nav-icon .ew-icon{width:18px;height:18px}
.check-field input[type=checkbox],.check-label input[type=checkbox]{appearance:none;display:inline-block;width:20px;height:20px;flex:0 0 20px;margin:0;border:1px solid #88e8c24f;background:#15251f;border-radius:6px;vertical-align:middle;cursor:pointer;background-position:center;background-repeat:no-repeat;background-size:15px 15px}
.check-field input[type=checkbox]:checked,.check-label input[type=checkbox]:checked{background-color:#88e8c2;border-color:#88e8c2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312231b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")}
.picker-options{background:#171f21;border:1px solid #ffffff18;box-shadow:0 20px 50px #0006;border-radius:12px}.picker-option{border-radius:8px!important}.picker-option:focus-visible{outline-offset:-2px}.picker-check .ew-icon{width:16px;height:16px}
.model-library-icon{display:grid;place-items:center}.model-library-icon .ew-icon{width:26px;height:26px}
/* The native file input remains focusable over the custom upload surface. */
.workspace-dialog .upload-field{padding:0;border:0;background:none;border-radius:0}
.upload-picker{position:relative;display:flex;align-items:center;gap:16px;min-height:100px;padding:20px;border:1px solid #88e8c234;border-radius:12px 26px 12px 12px;background:linear-gradient(115deg,#88e8c20b,#111c1e 75%);cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.upload-picker:hover{border-color:#88e8c275;background:linear-gradient(115deg,#88e8c216,#162322 75%)}
.upload-picker:has(input:focus-visible){outline:2px solid var(--mint);outline-offset:4px}
.upload-picker .upload-input{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.upload-picker-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #88e8c234;border-radius:10px 16px 10px 4px;background:#88e8c20b;color:var(--mint)}
.upload-picker-icon :is(.ew-icon,.ew-icon-slot){width:24px;height:24px;flex-basis:24px}
.upload-picker-copy{display:grid;gap:5px;min-width:0;flex:1}
.upload-picker-copy strong{font-size:12px;line-height:1.6;font-weight:550;color:#deeee5;overflow-wrap:anywhere}
.upload-picker-copy>span{font-size:10px;line-height:1.6;color:#789b87}
.upload-picker-action{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;padding:9px 12px;border:1px solid #88e8c22b;border-radius:8px;background:#88e8c20c;color:var(--mint);font-size:10px;font-weight:550;white-space:nowrap}
.upload-picker-action .ew-icon,.upload-picker-action .ew-icon-slot{width:16px;height:16px;flex-basis:16px}
.upload-picker.has-file{border-color:#88e8c25c}.upload-picker.has-file .upload-picker-icon{background:#88e8c21a}
.upload-picker:has(input:disabled){opacity:.6;cursor:progress}.upload-picker .upload-input:disabled{cursor:progress}
.upload-field #uploadStatus:empty{display:none}
@media(max-width:520px){.upload-picker{gap:12px;flex-wrap:wrap;padding:16px}.upload-picker-icon{flex-basis:42px;width:42px;height:42px}.upload-picker-copy{flex-basis:calc(100% - 54px)}.upload-picker-action{margin-left:54px}.upload-picker-copy strong{font-size:11px}.upload-picker-copy>span{font-size:9px}}
@media(max-width:640px){.ew-select-control{min-width:0}.sort-field>.ew-select-control{min-width:168px}.ew-select-trigger{min-height:44px;font-size:10px;padding:11px 12px;gap:8px}.ew-select-panel{max-width:calc(100vw - 24px)}.workspace-filters>.ew-select-control{min-width:calc(50% - 5px);flex:1}.ew-select-option{min-height:44px}.ew-search-shell{flex-basis:100%}.session-controls .button{gap:8px}.session-controls .ew-icon{width:16px;height:16px;flex-basis:16px}}
@media(prefers-reduced-motion:reduce){.ew-select-trigger,.ew-select-chevron,.ew-select-option{transition:none}}
