/* Gebruikersbeheer (App beheer → Gebruikers). */

.uad, .uad-layer, .uad-dialog-wrap {
    --u-surface: #ffffff; --u-surface-2: #f6f8fb; --u-line: #e3e8ef; --u-line-2: #cfd8e3;
    --u-text: #0f172a; --u-muted: #64748b; --u-brand: #011e41; --u-brand-2: #003c71; --u-accent: #0ea5e9;
    --u-ok: #10b981; --u-warn: #f59e0b; --u-danger: #ef4444; --u-violet: #8b5cf6;
    --u-wv: #0ea5e9; --u-vw: #10b981; --u-ws: #f59e0b;
    --u-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --u-shadow-lg: 0 24px 64px rgba(2, 12, 32, .28);
    --u-radius: 16px;
    color: var(--u-text);
}
[data-theme="dark"] .uad, [data-theme="dark"] .uad-layer, [data-theme="dark"] .uad-dialog-wrap {
    --u-surface: #111827; --u-surface-2: #0b1220; --u-line: #1f2937; --u-line-2: #334155;
    --u-text: #e5e7eb; --u-muted: #94a3b8; --u-brand: #38bdf8; --u-brand-2: #0ea5e9;
    --u-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}
.uad { display: flex; flex-direction: column; gap: 14px; }
.uad-ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Kop */
.uad-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uad-title { display: flex; align-items: center; gap: 12px; }
.uad-title-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff;
                background: linear-gradient(135deg, #011e41, #0369a1); box-shadow: 0 6px 18px rgba(3, 105, 161, .35); }
.uad-title-ic .uad-ic { width: 20px; height: 20px; }
.uad-title h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; }
.uad-title small { color: var(--u-muted); font-size: .8rem; }

/* Knoppen */
.uad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px;
           border: 1px solid var(--u-line-2); background: var(--u-surface); color: var(--u-text); font: inherit; font-size: .85rem; font-weight: 600;
           cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, opacity .15s; }
.uad-btn:hover { transform: translateY(-1px); border-color: var(--u-accent); box-shadow: 0 4px 14px rgba(14, 165, 233, .15); }
.uad-btn:active { transform: translateY(0) scale(.98); }
.uad-btn:focus-visible, .uad-kpi:focus-visible, .uad-seg button:focus-visible, .uad-rolechip:focus-visible, .uad-d-close:focus-visible {
    outline: 2px solid var(--u-accent); outline-offset: 2px; }
.uad-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.uad-btn.is-primary { background: var(--u-brand); border-color: var(--u-brand); color: #fff; }
[data-theme="dark"] .uad-btn.is-primary { color: #04111f; }
.uad-btn.is-primary:hover { background: var(--u-brand-2); border-color: var(--u-brand-2); }
.uad-btn.is-ghost { background: transparent; }
.uad-btn.is-danger { color: var(--u-danger); border-color: color-mix(in srgb, var(--u-danger) 40%, var(--u-line)); background: transparent; }
.uad-btn.is-danger:hover { background: color-mix(in srgb, var(--u-danger) 8%, transparent); border-color: var(--u-danger); box-shadow: 0 4px 14px rgba(239, 68, 68, .18); }
.uad-btn.is-danger-solid { background: var(--u-danger); border-color: var(--u-danger); color: #fff; }
.uad-btn.is-danger-solid:hover { background: #dc2626; box-shadow: 0 4px 14px rgba(239, 68, 68, .3); }
.uad-btn.is-spinning .uad-ic { animation: uad-spin .8s linear infinite; }
.uad-btn.is-loading { pointer-events: none; opacity: .7; }
.uad-btn.is-loading .uad-ic { animation: uad-spin .8s linear infinite; }

/* KPI-tegels */
.uad-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.uad-kpi { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--u-surface);
           border: 1px solid var(--u-line); box-shadow: var(--u-shadow); cursor: pointer; text-align: left; font: inherit; color: inherit; overflow: hidden;
           animation: uad-rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
           transition: transform .15s, box-shadow .15s, background .2s; }
.uad-kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--c); transform: scaleX(.0); transform-origin: left;
                  transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.uad-kpi:hover { transform: translateY(-2px); }
.uad-kpi:hover::after, .uad-kpi.is-active::after { transform: scaleX(1); }
.uad-kpi.is-active { background: color-mix(in srgb, var(--c) 9%, var(--u-surface)); box-shadow: 0 0 0 2px var(--c), var(--u-shadow); }
.uad-kpi-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--c); flex: 0 0 auto;
              background: color-mix(in srgb, var(--c) 14%, transparent); }
.uad-kpi-ic .uad-ic { width: 19px; height: 19px; }
.uad-kpi strong { display: block; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.uad-kpi small { display: block; margin-top: 4px; font-size: .74rem; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uad-kpi.is-zero strong { color: var(--u-muted); }
.uad-pulse { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--u-ok); animation: uad-ping 1.8s ease-out infinite; }

/* Inbox: aanmeldingen en verwijderverzoeken */
.uad-inbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.uad-inbox-card { --c: var(--u-warn); border-radius: var(--u-radius); background: var(--u-surface); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--u-line));
                  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 9%, transparent), var(--u-shadow); overflow: hidden; animation: uad-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.uad-inbox-card.is-danger { --c: var(--u-danger); }
.uad-inbox-card header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--c) 9%, var(--u-surface)); }
.uad-inbox-card header > .uad-ic { width: 22px; height: 22px; color: var(--c); animation: uad-wiggle 2.8s ease-in-out infinite; }
.uad-inbox-card header strong { display: block; font-size: .95rem; }
.uad-inbox-card header small { color: var(--u-muted); font-size: .78rem; }
.uad-inbox-card ul { list-style: none; margin: 0; padding: 6px 8px 8px; }
.uad-inbox-card li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; animation: uad-rise .4s both; animation-delay: calc(var(--i) * 60ms + 120ms); }
.uad-inbox-card li:hover { background: var(--u-surface-2); }
.uad-inbox-who { flex: 1; min-width: 0; }
.uad-inbox-who strong { display: block; font-size: .9rem; }
.uad-inbox-who small { display: block; color: var(--u-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uad-inbox-act { display: flex; gap: 6px; }
.uad-inbox-act .uad-btn { height: 32px; padding: 0 11px; }

/* Lijstpaneel */
.uad-panel { background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius); box-shadow: var(--u-shadow); overflow: hidden; }
.uad-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--u-line); }
.uad-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--u-line-2);
              background: var(--u-surface-2); color: var(--u-muted); transition: border-color .15s, box-shadow .15s; }
.uad-search:focus-within { border-color: var(--u-accent); box-shadow: 0 0 0 3px rgba(14, 165, 233, .18); }
.uad-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--u-text); font: inherit; font-size: .88rem; padding: 0; }
.uad-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--u-surface-2); border: 1px solid var(--u-line); }
.uad-seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
                  color: var(--u-muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.uad-seg button:hover { color: var(--u-text); }
.uad-seg button em { font-style: normal; font-size: .7rem; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--u-line); color: var(--u-muted);
                     font-variant-numeric: tabular-nums; text-align: center; }
.uad-seg button.is-active { background: var(--u-surface); color: var(--u-text); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.uad-seg button.is-active em { background: var(--u-brand); color: #fff; }
[data-theme="dark"] .uad-seg button.is-active em { color: #04111f; }
.uad-rolefilter { display: flex; gap: 4px; }
.uad-rolechip { --c: var(--u-wv); height: 30px; min-width: 38px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--u-line-2); background: transparent;
                color: var(--u-muted); font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .03em; cursor: pointer; transition: all .15s; }
.uad-rolechip.is-vw { --c: var(--u-vw); } .uad-rolechip.is-ws { --c: var(--u-ws); }
.uad-rolechip:hover { border-color: var(--c); color: var(--c); }
.uad-rolechip.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.uad-select { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--u-line-2); background: var(--u-surface); color: var(--u-text); font: inherit; font-size: .85rem; }

/* Rijen */
.uad-thead, .uad-row { display: grid; grid-template-columns: minmax(220px, 2.2fr) minmax(150px, 1.4fr) 110px 120px minmax(120px, 1fr) 128px 24px; align-items: center; gap: 12px; }
.uad-thead { padding: 9px 18px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); background: var(--u-surface-2);
             border-bottom: 1px solid var(--u-line); }
.uad-list { display: flex; flex-direction: column; }
.uad-row { position: relative; width: 100%; padding: 11px 18px; border: 0; border-bottom: 1px solid var(--u-line); background: transparent; color: inherit;
           font: inherit; text-align: left; cursor: pointer; animation: uad-rise .38s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms);
           transition: background .15s; }
.uad-row:last-child { border-bottom: 0; }
.uad-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--u-accent);
                   transform: scaleY(0); transition: transform .2s; }
.uad-row:hover { background: var(--u-surface-2); }
.uad-row:hover::before, .uad-row.is-open::before { transform: scaleY(1); }
.uad-row.is-open { background: color-mix(in srgb, var(--u-accent) 7%, var(--u-surface)); }
.uad-row:focus-visible { outline: 2px solid var(--u-accent); outline-offset: -2px; }
.uad-row.is-blocked .uad-cell-who { opacity: .55; }
.uad-row.is-pending { background: color-mix(in srgb, var(--u-warn) 5%, transparent); }
.uad-cell-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.uad-who { min-width: 0; }
.uad-who strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uad-who small { display: block; font-size: .76rem; color: var(--u-muted); }
.uad-you { font-style: normal; font-size: .65rem; font-weight: 700; padding: 1px 6px; margin-left: 4px; border-radius: 99px; background: var(--u-accent); color: #fff; vertical-align: 2px; }
.uad-cell-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.uad-cell-acc { display: flex; gap: 4px; }
.uad-cell-seen strong { display: block; font-size: .85rem; font-weight: 600; }
.uad-cell-seen small { display: block; font-size: .72rem; color: var(--u-muted); }
.uad-cell-chev { color: var(--u-muted); transition: transform .2s, color .2s; }
.uad-row:hover .uad-cell-chev, .uad-row.is-open .uad-cell-chev { transform: translateX(3px); color: var(--u-accent); }
.uad-muted { color: var(--u-muted); font-size: .78rem; }

/* Avatar met aanwezigheidsstip */
.uad-avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; color: #fff; font-weight: 700; font-size: .8rem;
              letter-spacing: .02em; background: linear-gradient(135deg, #1e3a5f, #0369a1); }
.uad-avatar.is-admin { background: linear-gradient(135deg, #011e41, #7c3aed); }
.uad-avatar.is-danger { background: color-mix(in srgb, var(--u-danger) 14%, transparent); color: var(--u-danger); }
.uad-avatar.sm { width: 34px; height: 34px; font-size: .74rem; }
.uad-avatar.lg { width: 64px; height: 64px; font-size: 1.25rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.uad-avatar > i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--u-surface); background: #cbd5e1; }
.uad-avatar.lg > i { width: 16px; height: 16px; border-width: 3px; }
.uad-avatar[data-presence="online"] > i { background: var(--u-ok); animation: uad-ping 2s ease-out infinite; }
.uad-avatar[data-presence="today"] > i { background: var(--u-accent); }
.uad-avatar[data-presence="week"] > i { background: #93c5fd; }

/* Pillen, statussen, toegang en versie */
.uad-pill { --c: var(--u-wv); display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: .7rem; font-weight: 700;
            letter-spacing: .02em; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.uad-pill .uad-ic { width: 12px; height: 12px; }
.uad-pill.is-vw { --c: var(--u-vw); } .uad-pill.is-ws { --c: var(--u-ws); } .uad-pill.is-admin { --c: var(--u-violet); }
.uad-status { --c: var(--u-ok); display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: .74rem; font-weight: 600;
              color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.uad-status .uad-ic { width: 13px; height: 13px; }
.uad-status.is-pending { --c: var(--u-warn); } .uad-status.is-blocked { --c: var(--u-danger); } .uad-status.is-temp { --c: var(--u-violet); }
.uad-acc { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--u-line-2); border: 1px dashed var(--u-line-2); }
.uad-acc .uad-ic { width: 14px; height: 14px; }
.uad-acc.is-on { color: var(--u-brand-2); border: 1px solid transparent; background: color-mix(in srgb, var(--u-accent) 14%, transparent); }
.uad-ver { display: inline-block; padding: 3px 8px; border-radius: 7px; font-size: .74rem; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.uad-ver.is-new { color: var(--u-ok); background: color-mix(in srgb, var(--u-ok) 12%, transparent); }
.uad-ver.is-old { color: var(--u-violet); background: color-mix(in srgb, var(--u-violet) 12%, transparent); }

/* Leeg / laden */
.uad-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; color: var(--u-muted); text-align: center; }
.uad-empty .uad-ic { width: 30px; height: 30px; margin-bottom: 4px; }
.uad-empty strong { color: var(--u-text); }
.uad-empty .uad-btn { margin-top: 8px; }
.uad-empty.is-error .uad-ic { color: var(--u-danger); }
.uad-row.is-skeleton { cursor: default; grid-template-columns: 38px 2fr 1fr 1fr; }
.uad-sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--u-line) 25%, var(--u-surface-2) 50%, var(--u-line) 75%);
          background-size: 200% 100%; animation: uad-shimmer 1.2s linear infinite; }
.uad-sk-av { width: 38px; height: 38px; border-radius: 50%; }

/* Detailpaneel */
.uad-scrim { position: fixed; inset: 0; z-index: 170; background: rgba(2, 12, 32, .38); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.uad-scrim.is-open { opacity: 1; }
.uad-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 180; width: min(480px, 100vw); display: flex; flex-direction: column; background: var(--u-surface-2);
              box-shadow: var(--u-shadow-lg); transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.uad-drawer.is-open { transform: translateX(0); }
.uad-drawer[hidden], .uad-scrim[hidden] { display: none; }
.uad-d-head { --c: #0369a1; position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 22px 22px; color: #fff;
              background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 70%, #011e41) 0%, #011e41 70%); }
.uad-d-head.is-pending { --c: #b45309; } .uad-d-head.is-blocked { --c: #b91c1c; }
.uad-d-head .uad-avatar > i { border-color: #011e41; }
.uad-d-title { min-width: 0; }
.uad-d-title h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; color: #fff; }
.uad-d-title small { display: block; margin-top: 2px; font-size: .8rem; color: rgba(255, 255, 255, .72); }
.uad-d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uad-d-head .uad-status, .uad-d-head .uad-pill { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; }
.uad-d-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer;
               color: #fff; background: rgba(255, 255, 255, .12); transition: background .15s, transform .15s; }
.uad-d-close:hover { background: rgba(255, 255, 255, .24); transform: rotate(90deg); }
.uad-d-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.uad-drawer.is-open .uad-d-body > * { animation: uad-rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.uad-drawer.is-open .uad-d-body > :nth-child(2) { animation-delay: .04s; } .uad-drawer.is-open .uad-d-body > :nth-child(3) { animation-delay: .08s; }
.uad-drawer.is-open .uad-d-body > :nth-child(4) { animation-delay: .12s; } .uad-drawer.is-open .uad-d-body > :nth-child(5) { animation-delay: .16s; }
.uad-drawer.is-open .uad-d-body > :nth-child(n+6) { animation-delay: .2s; }
.uad-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.uad-stat { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--u-surface); border: 1px solid var(--u-line); box-shadow: var(--u-shadow); }
.uad-stat > .uad-ic { width: 18px; height: 18px; color: var(--u-accent); }
.uad-stat small { display: block; font-size: .7rem; color: var(--u-muted); text-transform: uppercase; letter-spacing: .05em; }
.uad-stat strong { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; }
.uad-stat em { display: block; font-style: normal; font-size: .7rem; color: var(--u-muted); }
.uad-sec { padding: 14px 16px; border-radius: 14px; background: var(--u-surface); border: 1px solid var(--u-line); }
.uad-sec h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--u-muted); }
.uad-sec h4 .uad-ic { width: 14px; height: 14px; }

/* Schakelaars */
.uad-switch { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--u-line); cursor: pointer; }
.uad-switch:last-child { border-bottom: 0; padding-bottom: 2px; }
.uad-switch-txt { flex: 1; min-width: 0; }
.uad-switch-txt strong { display: block; font-size: .9rem; }
.uad-switch-txt small { display: block; font-size: .76rem; color: var(--u-muted); line-height: 1.35; }
.uad-switch-txt em { font-style: normal; color: var(--u-warn); font-weight: 600; }
.uad-switch input { position: absolute; opacity: 0; pointer-events: none; }
.uad-switch-ui { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 99px; background: var(--u-line-2); transition: background .25s; }
.uad-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
                        box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .28s cubic-bezier(.3, 1.5, .5, 1); }
.uad-switch input:checked + .uad-switch-ui { background: var(--u-ok); }
.uad-switch input:checked + .uad-switch-ui::after { transform: translateX(18px); }
.uad-switch input:focus-visible + .uad-switch-ui { box-shadow: 0 0 0 3px rgba(14, 165, 233, .35); }
.uad-switch.is-disabled { cursor: not-allowed; }
.uad-switch.is-disabled .uad-switch-ui { opacity: .45; }
.uad-switch.is-busy .uad-switch-ui::after { animation: uad-pulse-dot .7s ease-in-out infinite alternate; }

/* Acties */
.uad-actgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.uad-actgrid .uad-btn { justify-content: flex-start; height: 40px; }
.uad-dl { margin: 0; display: grid; gap: 7px; }
.uad-dl div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: .84rem; }
.uad-dl dt { color: var(--u-muted); }
.uad-dl dd { margin: 0; }
.uad-danger { border-color: color-mix(in srgb, var(--u-danger) 35%, var(--u-line)); }
.uad-danger h4 { color: var(--u-danger); }
.uad-danger-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--u-line); }
.uad-danger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.uad-danger-row > span { flex: 1; min-width: 0; }
.uad-danger-row strong { display: block; font-size: .88rem; }
.uad-danger-row small { display: block; font-size: .76rem; color: var(--u-muted); }

/* Historie */
.uad-audit ol { list-style: none; margin: 0; padding: 0; }
.uad-audit li { position: relative; display: flex; gap: 12px; padding: 0 0 12px; }
.uad-audit li:last-child { padding-bottom: 0; }
.uad-audit li > i { position: relative; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--u-accent);
                    box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-accent) 18%, transparent); }
.uad-audit li:not(:last-child) > i::after { content: ""; position: absolute; left: 4px; top: 13px; width: 2px; height: calc(100% + 14px); background: var(--u-line); }
.uad-audit strong { display: block; font-size: .85rem; }
.uad-audit small { display: block; font-size: .74rem; color: var(--u-muted); }
.uad-audit-det { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.uad-tag { font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--u-line); color: var(--u-muted); text-decoration: line-through; }
.uad-tag.is-on { background: color-mix(in srgb, var(--u-ok) 14%, transparent); color: var(--u-ok); text-decoration: none; }
.uad-audit-load { display: grid; gap: 8px; }
.uad-audit p { margin: 0; }

/* Dialoog */
.uad-dialog-wrap { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 20px; background: rgba(2, 12, 32, .5); backdrop-filter: blur(4px);
                   opacity: 0; transition: opacity .2s; }
.uad-dialog-wrap.is-open { opacity: 1; }
.uad-dialog { width: min(440px, 100%); padding: 24px; border-radius: 18px; background: var(--u-surface); color: var(--u-text); box-shadow: var(--u-shadow-lg); text-align: center;
              transform: translateY(14px) scale(.96); transition: transform .28s cubic-bezier(.2, 1.2, .3, 1); }
.uad-dialog-wrap.is-open .uad-dialog { transform: none; }
.uad-dialog h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.uad-dialog p { margin: 0 0 16px; color: var(--u-muted); font-size: .9rem; line-height: 1.5; }
.uad-dialog p strong { color: var(--u-text); }
.uad-dialog-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--u-accent);
                 background: color-mix(in srgb, var(--u-accent) 14%, transparent); }
.uad-dialog-ic.is-danger { color: var(--u-danger); background: color-mix(in srgb, var(--u-danger) 13%, transparent); }
.uad-dialog-ic .uad-ic { width: 24px; height: 24px; }
.uad-dialog-btns { display: flex; justify-content: center; gap: 8px; }
.uad-dialog-btns .uad-btn { min-width: 120px; height: 40px; }
.uad-typecheck { display: block; margin: -4px 0 16px; text-align: left; font-size: .8rem; color: var(--u-muted); }
.uad-typecheck code { font-weight: 700; color: var(--u-text); }
.uad-typecheck input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--u-line-2);
                       background: var(--u-surface-2); color: var(--u-text); font: inherit; }
.uad-typecheck input:focus { outline: 0; border-color: var(--u-danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.uad-pw { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--u-surface-2); border: 1px dashed var(--u-line-2); }
.uad-pw code { flex: 1; font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; text-align: left; user-select: all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Meldingen */
.uad-toasts { position: fixed; left: 50%; bottom: 24px; z-index: 9600; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.uad-toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: #0f172a; color: #fff; font-size: .86rem; font-weight: 500;
             box-shadow: 0 12px 32px rgba(2, 12, 32, .3); opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .25s, transform .3s cubic-bezier(.2, 1.2, .3, 1); }
.uad-toast.is-in { opacity: 1; transform: none; }
.uad-toast.is-ok .uad-ic { color: #34d399; }
.uad-toast.is-error { background: #7f1d1d; }
.uad-toast.is-error .uad-ic { color: #fecaca; }

/* Animaties */
@keyframes uad-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes uad-spin { to { transform: rotate(360deg); } }
@keyframes uad-shimmer { to { background-position: -200% 0; } }
@keyframes uad-ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }
@keyframes uad-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-12deg); } 94% { transform: rotate(10deg); } 97% { transform: rotate(-6deg); } }
@keyframes uad-pulse-dot { to { transform: translateX(9px) scale(.85); } }
@media (prefers-reduced-motion: reduce) {
    .uad *, .uad-layer *, .uad-dialog-wrap * { animation: none !important; transition: none !important; }
}

/* Responsief */
@media (max-width: 1280px) {
    .uad-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .uad-thead, .uad-row { grid-template-columns: minmax(200px, 2fr) minmax(130px, 1.3fr) 96px minmax(110px, 1fr) 120px 20px; }
    .uad-thead span:nth-child(4), .uad-cell-ver { display: none; }
}
@media (max-width: 900px) {
    .uad-thead { display: none; }
    .uad-row { grid-template-columns: 1fr auto; grid-template-areas: "who status" "roles seen"; row-gap: 8px; }
    .uad-cell-who { grid-area: who; } .uad-cell-status { grid-area: status; justify-self: end; }
    .uad-cell-roles { grid-area: roles; } .uad-cell-seen { grid-area: seen; text-align: right; }
    .uad-cell-acc, .uad-cell-chev { display: none; }
    .uad-inbox { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .uad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uad-top .uad-btn span { display: none; }
    .uad-inbox-card li { flex-wrap: wrap; }
    .uad-inbox-act { width: 100%; }
    .uad-inbox-act .uad-btn { flex: 1; }
    .uad-dl div { grid-template-columns: 1fr; gap: 0; }
}
