/* ===========================================================================
   Gießener OP Feedback — Admin (Clinical theme)
   Imported from the "OP Admin.dc.html" claude.ai design. Inline design styles
   are translated into semantic classes; never hardcode hex colors in markup —
   read these tokens instead.
   ========================================================================= */

:root {
  --acc: #1556d6;
  --accGlow: rgba(21, 86, 214, .28);
  --accSoft: rgba(21, 86, 214, .10);
  --bg: #eef1f7;
  --surface: #fff;
  --surface2: #f3f6fb;
  --text: #16233d;
  --muted: #6b7894;
  --border: #e4e8f0;
  --border-soft: #eef1f6;
  --success: #1f9d5b;
  --warn: #e0a32a;
  --danger: #d9534f;

  --sbBg: #0f1f3d;
  --sbText: #eaf0fb;
  --sbMuted: #8392b3;
  --sbBorder: rgba(255, 255, 255, .08);
  --sbPill: rgba(255, 255, 255, .10);

  --switchOff: #c9d2e0;
  --dashed: #d6dce6;

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ------------------------------ dark theme ---------------------------- */
/* Applied when the user chose "dark", or chose "system" and the OS is dark. */
:root[data-theme="dark"] {
  --acc: #4b82f0;
  --accGlow: rgba(75, 130, 240, .34);
  --accSoft: rgba(75, 130, 240, .16);
  --bg: #0d1420;
  --surface: #151d2c;
  --surface2: #1b2536;
  --text: #e6ecf5;
  --muted: #93a1bd;
  --border: #273244;
  --border-soft: #1e2836;
  --success: #35b06e;
  --warn: #e0a32a;
  --danger: #e0645f;

  --sbBg: #0a1120;
  --sbText: #eaf0fb;
  --sbMuted: #8392b3;
  --sbBorder: rgba(255, 255, 255, .07);
  --sbPill: rgba(255, 255, 255, .09);

  --switchOff: #33415a;
  --dashed: #303c52;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --acc: #4b82f0;
    --accGlow: rgba(75, 130, 240, .34);
    --accSoft: rgba(75, 130, 240, .16);
    --bg: #0d1420;
    --surface: #151d2c;
    --surface2: #1b2536;
    --text: #e6ecf5;
    --muted: #93a1bd;
    --border: #273244;
    --border-soft: #1e2836;
    --success: #35b06e;
    --warn: #e0a32a;
    --danger: #e0645f;

    --sbBg: #0a1120;
    --sbText: #eaf0fb;
    --sbMuted: #8392b3;
    --sbBorder: rgba(255, 255, 255, .07);
    --sbPill: rgba(255, 255, 255, .09);

    --switchOff: #33415a;
    --dashed: #303c52;
  }
}
/* dark-mode component fixes (badge uses fixed navy text that vanishes on dark) */
:root[data-theme="dark"] .badge-instructor { background: rgba(255, 255, 255, .09); color: #cbd5ea; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .badge-instructor { background: rgba(255, 255, 255, .09); color: #cbd5ea; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(20, 35, 61, .18); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

input, select, button, textarea { font-family: inherit; }
a { text-decoration: none; }

/* Lucide icon-font glyphs (see Components/Shared/Icon.razor). */
[class^="icon-"], [class*=" icon-"] { flex: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

@keyframes adfade { from { transform: translateY(7px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes adpop  { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes adovl  { from { opacity: 0; } to { opacity: 1; } }

.adsec { animation: adfade .26s ease both; }

/* ----------------------------- app shell ------------------------------ */
.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  grid-template-rows: 64px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ------------------------------ sidebar ------------------------------- */
.sidebar {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  background: var(--sbBg);
  border-right: 1px solid var(--sbBorder);
  min-height: 0;
}
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 18px; }
.sb-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--acc); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; letter-spacing: -.5px; flex: none;
}
.sb-brand-name { font-size: 14px; font-weight: 700; color: var(--sbText); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-brand-sub  { font-size: 11px; color: var(--sbMuted); font-weight: 500; }

.sb-nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; min-height: 0; overflow-y: auto; }
.sb-group { font-size: 10px; font-weight: 600; letter-spacing: .8px; color: var(--sbMuted); padding: 16px 12px 6px; text-transform: uppercase; }
.sb-group.first { padding-top: 10px; }

.sb-link {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 500;
  background: transparent; color: var(--sbMuted); text-align: left; transition: filter .12s, background .12s, color .12s;
}
.sb-link:hover { filter: brightness(1.12); color: var(--sbText); }
.sb-link.active { background: var(--acc); color: #fff; font-weight: 600; }
.sb-link svg { flex: none; }
.sb-link span.label { flex: 1; }
.sb-pill {
  margin-left: auto; font-size: 11px; font-weight: 700; font-family: var(--mono);
  padding: 1px 8px; border-radius: 20px; background: var(--sbPill); color: var(--sbMuted);
}
.sb-link.active .sb-pill { background: rgba(255, 255, 255, .22); color: #fff; }

.sb-foot { padding: 12px; border-top: 1px solid var(--sbBorder); display: flex; align-items: center; gap: 11px; }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none;
}
.sb-foot-name { font-size: 12.5px; font-weight: 600; color: var(--sbText); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-foot-role { font-size: 10.5px; color: var(--sbMuted); }
.sb-logout { background: transparent; border: none; cursor: pointer; color: var(--sbMuted); display: flex; padding: 4px; flex: none; }
.sb-logout:hover { color: var(--sbText); }

/* ------------------------------ topbar -------------------------------- */
.topbar {
  display: flex; align-items: center; gap: 18px; padding: 0 26px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.topbar-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.topbar-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }

.search {
  display: flex; align-items: center; gap: 9px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 9px; padding: 0 12px; height: 34px; width: 230px;
}
.search input { border: none; outline: none; background: transparent; font-size: 13px; color: var(--text); width: 100%; }
.search svg { color: var(--muted); flex: none; }

.lang { display: flex; background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.lang button { font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border: none; cursor: pointer; background: transparent; color: var(--muted); }
.lang button.active { background: var(--acc); color: #fff; }

/* ------------------------------- main --------------------------------- */
.main { min-height: 0; overflow-y: auto; background: var(--bg); }
/* Full-width content — fill the whole main column instead of a narrow, centered
   column. Only the outer gutter is fixed. */
.main-inner { max-width: none; margin: 0; padding: 22px 30px 48px; }

/* ------------------------------ buttons ------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 15px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: filter .12s, background .12s, border-color .12s; }
.btn:hover { background: var(--surface2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { border: none; background: var(--acc); color: #fff; box-shadow: 0 5px 14px var(--accGlow); }
.btn-primary:hover { filter: brightness(1.06); background: var(--acc); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-danger { color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: rgba(217, 83, 79, .08); border-color: var(--danger); }
.btn-success { border: none; background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.05); background: var(--success); }
.btn-icon { width: 30px; height: 30px; padding: 0; border-radius: 8px; color: var(--acc); }
.btn-icon:hover { color: var(--acc); border-color: var(--acc); background: var(--accSoft); }
.btn-icon.danger { color: var(--danger); }
.btn-icon.danger:hover { color: var(--danger); border-color: var(--danger); background: rgba(217, 83, 79, .10); }
.btn-icon.success { color: var(--success); }
.btn-icon.success:hover { color: var(--success); border-color: var(--success); background: rgba(31, 157, 91, .10); }
.btn-icon.warn { color: var(--warn); }
.btn-icon.warn:hover { color: var(--warn); border-color: var(--warn); background: rgba(224, 163, 42, .12); }

/* ------------------------------- cards -------------------------------- */
.card2 { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 3px rgba(20, 35, 61, .05); }
.card2-pad { padding: 15px 18px; }

/* Stat/procedure grids reflow to as many columns as fit (graceful desktop
   behaviour) instead of a hard 4→2→1 jump, so they stay multi-column at normal
   window widths and only collapse when genuinely narrow. */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .grid-overview { grid-template-columns: 1fr; } }

/* stat card */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(20, 35, 61, .05); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-delta { font-size: 11px; font-weight: 600; color: var(--success); background: rgba(31, 157, 91, .10); padding: 3px 8px; border-radius: 20px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text); margin-top: 10px; letter-spacing: -.6px; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.section-title { font-size: 14px; font-weight: 700; color: var(--text); }
.section-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* activity */
.activity-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.activity-row:last-child { border-bottom: none; }
.avatar-round { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.activity-text { font-size: 13px; color: var(--text); }
.activity-text b { font-weight: 600; }
.activity-when { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* top procedures bars */
.bar-row + .bar-row { margin-top: 15px; }
.bar-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.bar-head .name { color: var(--text); font-weight: 500; }
.bar-head .n { color: var(--muted); font-family: var(--mono); }
.bar-track { height: 7px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }

/* ------------------------------- table -------------------------------- */
/* No overflow clipping so a column's filter popover can escape the table; the
   header rounds its own top corners instead. */
.dtable { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 3px rgba(20, 35, 61, .05); }
.dt-head, .dt-row { display: grid; gap: 14px; align-items: center; }
.dt-head { padding: 11px 22px; background: var(--surface2); border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }

/* sortable / filterable column headers */
.th { display: flex; align-items: center; gap: 5px; min-width: 0; }
.th-label { flex: 1 1 auto; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; color: var(--muted); min-width: 0; }
.th-label:hover { color: var(--text); }
.th-sort { display: inline-flex; opacity: .45; }
.th.sorted .th-label { color: var(--acc); }
.th.sorted .th-sort { opacity: 1; }
/* trailing filter icon — sits at the end of the column header */
.th-filter { flex: none; margin-left: 4px; border: none; background: transparent; padding: 3px; border-radius: 6px; cursor: pointer; color: var(--muted); display: inline-flex; }
.th-filter:hover { color: var(--acc); background: var(--surface); }
.th-filter.active { color: #fff; background: var(--acc); }

/* filter modal body */
.filter-check { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; }
.filter-check + .filter-check { border-top: 1px solid var(--border-soft); }
.filter-check input { width: 15px; height: 15px; accent-color: var(--acc); cursor: pointer; }
.dt-row { padding: 15px 22px; border-bottom: 1px solid var(--border-soft); }
.dt-row:last-child { border-bottom: none; }
.cell { display: flex; align-items: center; min-width: 0; }
.cell-end { justify-content: flex-end; gap: 7px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: var(--mono); color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge2 { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.badge-instructor { background: rgba(15, 31, 61, .10); color: #0f1f3d; }
.badge-supervisor { background: rgba(124, 92, 240, .13); color: #6a4cd6; }
.badge-assistant  { background: var(--accSoft); color: var(--acc); }
.badge-neutral { background: var(--surface2); color: var(--muted); }

.status { display: flex; align-items: center; gap: 7px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status .txt { font-size: 12.5px; color: var(--text); }

/* ------------------------------- chips -------------------------------- */
.chip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; }
.chip span.text { flex: 1; font-size: 13px; color: var(--text); }
.chip-x { border: none; background: transparent; cursor: pointer; color: #9aa4b6; display: flex; padding: 2px; }
.chip-x:hover { color: var(--danger); }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }

/* procedure card */
.proc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(20, 35, 61, .05); }
.proc-head { display: flex; align-items: center; gap: 13px; }
.proc-ico { width: 46px; height: 46px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.proc-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.proc-cat { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.proc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.dashed-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 130px; border: 2px dashed var(--dashed); border-radius: 16px; background: transparent; cursor: pointer; color: var(--muted); }
.dashed-card:hover { border-color: var(--acc); color: var(--acc); }

/* ------------------------------- forms -------------------------------- */
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin: 2px 0 6px; }
.field { width: 100%; height: 38px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; outline: none; font-size: 13.5px; color: var(--text); background: var(--surface); margin-bottom: 13px; }
.field:focus { border-color: var(--acc); }
select.field { cursor: pointer; }

/* recolored icon image (uploaded procedure image, tinted to the chosen color via mask) */
.mask-img { display: inline-block; flex: none; }
.color-input { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }

/* Full-width form layout: fields flow into as many ~260px columns as fit, so a
   settings/features card fills the page instead of a lonely centered column. */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 22px; align-items: start; }
.form-grid > * { min-width: 0; }
.form-grid .field { margin-bottom: 0; }

/* Vertical list of option rows: title + description on the left, a control
   (usually a toggle switch) trailing at the right. Used on Features/Settings. */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.settings-stack { display: flex; flex-direction: column; gap: 16px; }
.optrow { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface2); }
.optrow.click { cursor: pointer; }
.optrow.click:hover { border-color: var(--acc); }
.opt-text { flex: 1; min-width: 0; }
.optrow .ot { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.optrow .os { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.opt-ctl { flex: none; }

/* iOS-style toggle switch (a styled checkbox). Markup: a .switch wrapping the
   <input type=checkbox> immediately followed by a .track span. */
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: var(--switchOff); border-radius: 999px; transition: background .16s ease; pointer-events: none; }
.switch .track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 25, 45, .28); transition: transform .16s ease; }
.switch input:checked + .track { background: var(--acc); }
.switch input:checked + .track::before { transform: translateX(18px); }
.seg-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.seg-btn { font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 10px 6px; border-radius: 10px; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.seg-btn.active { border-color: var(--acc); background: var(--acc); color: #fff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.swatch { width: 38px; height: 38px; border-radius: 11px; cursor: pointer; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.swatch.active { border-color: #fff; }
.row-2 { display: flex; gap: 12px; }

/* searchable lucide picker — responsive CSS grid, browser-lazy paint.
   NOTE: container classes are intentionally NOT prefixed "icon-": the lucide
   font rule [class^="icon-"] (CDN + app.css) would otherwise force them to
   inline-flex and collapse the grid to a single column. */
.lic-scroll { max-height: 256px; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--border); border-radius: 11px; padding: 10px; }
.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.lic-grid .ip { height: 44px; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; content-visibility: auto; contain-intrinsic-size: 44px 44px; }
.lic-grid .ip:hover { border-color: var(--acc); color: var(--acc); }
.lic-grid .ip.active { border-color: var(--acc); background: var(--accSoft); color: var(--acc); }
.lic-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* ------------------------------ drawer -------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay-bg { position: absolute; inset: 0; background: rgba(9, 14, 26, .55); animation: adovl .2s ease; }
.drawer { position: relative; width: 460px; max-width: 94vw; max-height: 88vh; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 26px 70px rgba(0, 0, 0, .45); display: flex; flex-direction: column; overflow: hidden; animation: adpop .24s cubic-bezier(.2, .9, .3, 1); }
.drawer-head { flex: none; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.drawer-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.drawer-x { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface2); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); flex: none; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px; }
.drawer-foot { flex: none; padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.drawer-foot .btn { flex: 1; height: 44px; }
.drawer-foot .btn-primary { flex: 1.4; }
.preview-avatar { display: flex; flex-direction: column; align-items: center; margin-bottom: 22px; }
.preview-avatar .big { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; }

/* ------------------------------ alerts -------------------------------- */
.alert2 { padding: 11px 14px; border-radius: 11px; font-size: 13px; margin-bottom: 16px; }
.alert-danger2 { background: rgba(217, 83, 79, .10); color: #b23b37; border: 1px solid rgba(217, 83, 79, .22); }
.alert-success2 { background: rgba(31, 157, 91, .10); color: #15784a; border: 1px solid rgba(31, 157, 91, .22); }

/* toast — transient status message, floats centered at the bottom of the screen */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300; display: flex; justify-content: center; pointer-events: none; }
.toast { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; max-width: 90vw; padding: 12px 18px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: #fff; box-shadow: 0 16px 42px rgba(15, 25, 45, .30); cursor: pointer;
  animation: toastIn .22s cubic-bezier(.2, .9, .3, 1) both; }
.toast [class^="icon-"] { flex: none; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--acc); }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* busy overlay — shown during long operations, with the current step's message */
.busy-overlay { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 25, 45, .38); animation: adovl .12s ease; }
.busy-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 34px; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 25, 45, .34); }
.busy-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--acc); animation: busySpin .7s linear infinite; }
.busy-text { font-size: 13.5px; font-weight: 600; color: var(--text); text-align: center; }
@keyframes busySpin { to { transform: rotate(360deg); } }

.muted { color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.spacer { flex: 1; }

/* ------------------------------- login -------------------------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--sbBg); padding: 24px; }
.login-card { width: 380px; max-width: 94vw; background: var(--surface); border-radius: 18px; box-shadow: 0 26px 70px rgba(15, 25, 45, .34); padding: 30px 28px; }
.login-logo { width: 46px; height: 46px; border-radius: 12px; background: var(--acc); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; margin-bottom: 16px; }

/* blazor error ui */
#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
