:root{--ad-blue:var(--ui-accent,#155dfc);--ad-blue-soft:var(--ui-accent-soft,#eaf1ff);--ad-ink:var(--ui-text,#121d30);--ad-muted:var(--ui-muted,#5a6578);--ad-line:var(--ui-border,#e3e9f2);--ad-bg:var(--ui-bg,#f5f7fc);--ad-card:var(--ui-surface,#fff);--ad-red:var(--ui-danger,#d92d3a);--ad-green:var(--ui-success,#138a52);--ad-amber:var(--ui-warning,#b76e00)}.ui-table-scroll{min-width:0;overflow-x:auto}.ui-table-scroll:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}.ui-toast{z-index:20;border:1px solid var(--ui-border);background:var(--ui-surface);max-width:min(420px,100vw - 24px);color:var(--ui-text);box-shadow:var(--ui-shadow);border-radius:12px;align-items:center;gap:12px;padding:10px 12px;display:flex;position:fixed;inset-block-end:calc(16px + env(safe-area-inset-bottom));inset-inline-end:max(12px, env(safe-area-inset-right))}.ws-app[data-mobile-nav] .ui-toast{inset-block-end:calc(80px + env(safe-area-inset-bottom))}.ui-toast a{text-decoration:underline}.ad-page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:10px 16px;display:flex}.ad-page-header h1{letter-spacing:-.02em;font-size:clamp(20px,2.4vw,26px);font-weight:800}.ad-page-header p{color:var(--ad-muted);margin-top:4px}.ad-page-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ad-back{color:var(--ad-blue);width:fit-content;font-weight:600;text-decoration:none}.ad-card{background:var(--ad-card);border:1px solid var(--ad-line);border-radius:16px;flex-direction:column;gap:12px;min-width:0;padding:clamp(14px,2.4vw,20px);display:flex;box-shadow:0 4px 14px #1b2b4a0a}.ad-card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.ad-card-head h2,.ad-dialog-head h2{font-size:16px;font-weight:750}.ad-chips{flex-wrap:wrap;gap:6px;display:flex}.ad-chips a{background:var(--ad-blue-soft);color:var(--ad-blue);border-radius:999px;padding:4px 10px;font-weight:600;text-decoration:none;display:inline-block}.ad-form{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}@media (width>=768px){.ad-form{grid-template-columns:repeat(2,minmax(0,1fr))}}.ad-field{flex-direction:column;gap:5px;min-width:0;display:flex}.ad-field>span{font-size:13px;font-weight:650}.ad-field small{color:var(--ad-muted);font-size:12px}.ad-field-wide,.ad-form>.ad-alert,.ad-form-actions{grid-column:1/-1}.ad-field :is(input,select,textarea),.ad-search{border:1px solid var(--ui-border,#cfd8e6);background:var(--ui-field);border-radius:10px;width:100%;min-width:0;min-height:42px;padding:9px 12px}.ad-field textarea{resize:vertical;min-height:80px}.ad-field :is(input,select,textarea):focus{border-color:var(--ui-focus);outline:2px solid var(--ui-focus);outline-offset:1px}.ad-search{width:min(100%,280px)}.ad-check{align-items:flex-start;gap:8px;display:flex}.ad-check input{flex:none;width:18px;height:18px;margin-top:3px}.ad-form-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.ad-inline-form{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.ad-inline-form .ad-field{flex:220px}.ad-filters{grid-template-columns:minmax(0,1fr);gap:10px;display:grid}@media (width>=768px){.ad-filters{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}.ad-align-end{justify-content:flex-end}.ad-button{border:1px solid var(--ui-border,#cfd8e6);background:var(--ad-card);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;min-height:38px;padding:7px 14px;font-weight:650;text-decoration:none;display:inline-flex}.ad-button:hover:not(:disabled){border-color:var(--ad-blue);color:var(--ad-blue)}.ad-button:disabled{opacity:.5;cursor:not-allowed}.ad-primary{background:var(--ui-primary,#155dfc);border-color:var(--ui-primary,#155dfc);color:var(--ui-on-primary,#fff)}.ad-primary:hover:not(:disabled){color:#fff;filter:brightness(1.06)}.ad-danger{color:var(--ad-red);border-color:var(--ui-danger,#f1c2c6)}.ad-danger:hover:not(:disabled){color:var(--ad-red);border-color:var(--ad-red)}.ad-danger-solid{background:var(--ad-red);border-color:var(--ad-red);color:var(--ad-card)}.ad-danger-solid:hover:not(:disabled){color:var(--ad-card);filter:brightness(1.06)}.ad-icon-button{border:1px solid var(--ad-line);background:var(--ad-card);border-radius:10px;width:40px;height:40px;font-size:18px;line-height:1}.ad-link{color:var(--ad-blue);font-weight:650;text-decoration:none}.ad-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:2px 9px;font-size:12px;font-weight:700;display:inline-flex}.ad-badge-blue{background:var(--ad-blue-soft);color:var(--ad-blue)}.ad-badge-green{background:var(--ui-success-soft,#e6f6ee);color:var(--ad-green)}.ad-badge-gray{background:var(--ui-surface-muted,#eef1f5);color:var(--ui-muted,#5a6578)}.ad-badge-red{background:var(--ui-danger-soft,#fdecee);color:var(--ad-red)}.ad-badge-amber{background:var(--ui-warning-soft,#fff4e0);color:var(--ad-amber)}.ad-alert{border-radius:10px;padding:10px 12px;font-weight:600}.ad-alert-error{background:var(--ui-danger-soft,#fdecee);color:var(--ui-danger,#a51d2a)}.ad-alert-info{background:var(--ad-blue-soft);color:var(--ui-accent,#1245b8)}.ad-alert-success{background:var(--ui-success-soft,#e6f6ee);color:var(--ui-success,#0f6b40)}.ad-pager{color:var(--ad-muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;padding-top:6px;display:flex}.ad-dialog{background:var(--ad-card);width:min(100% - 24px,520px);max-height:min(100dvh - 32px,720px);color:var(--ad-ink);border:0;border-radius:18px;padding:0;overflow:auto;box-shadow:0 24px 60px #0b1a3540}.ad-dialog::backdrop{background:var(--ui-overlay,#0b1a3566)}.ad-dialog-head{justify-content:space-between;align-items:center;gap:10px;padding:16px 18px 0;display:flex}.ad-dialog-body{flex-direction:column;gap:12px;padding:14px 18px 18px;display:flex}.ad-dialog-body .ad-form{grid-template-columns:minmax(0,1fr)}.ad-dialog-foot{justify-content:flex-end;gap:8px;padding:0 18px 18px;display:flex}@media (prefers-reduced-motion:no-preference){.ad-button{transition:background-color .15s,color .15s,border-color .15s}}.ad-chips a.ad-chip-current{background:var(--ui-primary);color:var(--ui-on-primary)}.ad-empty{color:var(--ad-muted);padding:10px 2px}.st-switch{flex:none;width:46px;height:26px;display:inline-flex;position:relative}.st-switch input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.st-switch span{background:var(--ad-line);border-radius:999px;width:100%;height:100%;transition:background .15s;position:relative}.st-switch span:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #00000040}.st-switch input:checked+span{background:var(--ad-blue)}.st-switch input:checked+span:after{transform:translate(20px)}.st-switch input:disabled+span{opacity:.5}.st-switch input:focus-visible+span{outline:2px solid var(--ad-blue);outline-offset:2px}.ui-table-scroll thead th{background:var(--ui-table-head);color:var(--ui-text)}.ui-table-scroll tbody tr:hover{background:var(--ui-hover)}
