:root {
  /* Xited tokens. Dark is the default; light follows the OS unless the person chose (data-theme on <html>). */
  --bg: #0a0a0a; --card: #1b1b1b; --high: #2a2a2a; --text: #e0e0e0; --strong: #ffffff; --muted: #b6b6b6; --line: #e0e0e01a;
  --brand: #00ff88; --brand-text: #00ff88; --on-brand: #000000;
  --accent: var(--brand-text); --accent-fill: var(--brand); --accent-text: var(--on-brand);
  --danger: #ff7a70; --ok: #4ad08a; --radius: 4px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafafa; --card: #ffffff; --high: #e8e8e6; --text: #262626; --strong: #0a0a0a; --muted: #5c5c5c; --line: #0a0a0a1f;
  --brand-text: #00703a; --danger: #c2271d; --ok: #1a7f4b; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fafafa; --card: #ffffff; --high: #e8e8e6; --text: #262626; --strong: #0a0a0a; --muted: #5c5c5c; --line: #0a0a0a1f;
    --brand-text: #00703a; --danger: #c2271d; --ok: #1a7f4b; color-scheme: light;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
h1, h2 { color: var(--strong); }
h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 17px; margin: 0 0 12px; } h3 { font-size: 14px; margin: 16px 0 8px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); } .err { color: var(--danger); min-height: 1.4em; } .ok { color: var(--ok); }

.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 380px; }
.card.wide { max-width: none; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input, select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--high); color: var(--text); font: inherit; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type=checkbox] { width: auto; }
button { font: inherit; cursor: pointer; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 8px 14px; }
button.primary { background: var(--accent-fill); color: var(--accent-text); border-color: var(--accent-fill); font-weight: 500; width: 100%; margin-top: 16px; }
button.small { padding: 4px 10px; font-size: 13px; } button.danger { color: var(--danger); }
button:disabled { opacity: .55; cursor: default; }

.shell { max-width: 980px; margin: 0 auto; padding: 16px; }
.top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.top .grow { flex: 1; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.tabs a.on { background: var(--card); border: 1px solid var(--line); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.tile:hover { border-color: var(--accent); }
.tile small { color: var(--muted); }
.badge { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
.badge svg { width: 24px; height: 24px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.scroll { overflow-x: auto; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; } .row > * { flex: 1; min-width: 140px; }
.row > button { flex: 0 0 auto; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.codes { font: 14px ui-monospace, monospace; background: var(--bg); padding: 12px; border-radius: 8px; columns: 2; }
.qr { background: #fff; padding: 8px; border-radius: 8px; display: inline-block; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.perm-grid label { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--text); font-size: 14px; }

/* Users table: role pickers as a compact grid, actions in one tidy block */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; min-width: 320px; }
.role-cell { display: flex; flex-direction: column; gap: 2px; }
.role-app { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.role-cell select { padding: 5px 8px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; min-width: 150px; }
table td { vertical-align: top; }
td .muted { white-space: nowrap; }

/* Users list + detail */
a.plain { color: inherit; text-decoration: none; } a.plain:hover strong { text-decoration: underline; }
a.btn { display: inline-block; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--text); text-decoration: none; white-space: nowrap; } a.btn:hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .pill.off { color: var(--danger); }
tr.off td { opacity: .55; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .card-head h2 { margin: 0; }

/* The app's own mark: Auth product icon + name, on the sign-in card and in the top bar. */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.brand-icon { display: inline-flex; color: #D946EF; }
.brand-icon svg { width: 22px; height: 22px; }
.brand.big { font-size: 18px; margin-bottom: 14px; }
.brand.big .brand-icon svg { width: 28px; height: 28px; }

/* Settings form for one tenant + app: tabs per group, rows with label left and control right, save bar. */
.cfg-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cfg-tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 16px; color: var(--muted); margin-bottom: -1px; }
.cfg-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.cfg-tab.edited::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.cfg-row { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cfg-row.stacked { flex-direction: column; align-items: stretch; gap: 12px; }
.cfg-label { flex: 1; min-width: 0; max-width: 560px; }
.cfg-control { flex: none; }
.cfg-row.stacked .cfg-control { flex: 1; }
.cfg-bar { display: flex; align-items: center; gap: 8px; padding-top: 16px; position: sticky; bottom: 0; background: var(--card); }
.cfg-bar .grow { flex: 1; }
button.primary.cfg-save { width: auto; margin-top: 0; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.multi .row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.multi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.opt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); }
@media (max-width: 640px) { .cfg-row { flex-direction: column; align-items: stretch; gap: 10px; } }
.row > .badge { flex: none; min-width: 44px; }

/* Profile photo (or initials). */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 600; line-height: 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* App cards in the launcher: colour + icon on the left half, name, description and role on the right. */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
/* Wider screens: room for three cards side by side (the other admin pages simply get a bit more width too). */
@media (min-width: 1280px) { .shell { max-width: 1180px; } }
.app-card { --c: var(--accent); display: grid; grid-template-columns: 1fr 1fr; min-height: 148px; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.app-card:hover { background: var(--high); }
.app-card:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.app-art { display: grid; place-items: center; color: var(--c); font-size: 40px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 18%, transparent); }
.app-art svg { width: 56px; height: 56px; }
.app-info { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 16px; min-width: 0; }
.app-info strong { font-size: 18px; color: var(--strong); overflow-wrap: anywhere; }
.app-desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.app-role { font-size: 12px; color: var(--c); letter-spacing: .02em; }
@media (max-width: 440px) { .apps { grid-template-columns: 1fr; } }

/* Light mode: tenant brand colours that are bright greens fail on white; text uses a darkened copy (set from JS). */

/* ── Appbar (logo, app switcher with coloured icons, language/tenant/theme/profile) ── */
.appbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 24px; min-height: 66px;
  background: var(--bg); color: var(--text); border-bottom: 2px solid var(--bar-c, var(--brand)); }
.appbar .logo { display: flex; align-items: center; height: 40px; flex: none; color: var(--strong); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.appbar .logo img { display: block; height: 30px; width: auto; }
.appbar .sep { flex: none; width: 1px; height: 24px; background: var(--line); }
.appnav { flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.appnav a { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0; border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.appnav a:hover { background: var(--high); }
.appnav a svg { width: 20px; height: 20px; color: var(--c); }
.appnav a[aria-current="page"] { padding: 0; background: var(--c); color: #000; font-weight: 700; }
.appnav a[aria-current="page"] svg { color: #000; }
.appnav a:focus-visible, .appbar button:focus-visible, .side a:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }
.appbar .end { display: flex; align-items: center; gap: 12px; flex: none; }
.appbar .end select, .appbar .end .ghost { height: 40px; padding: 0 12px; width: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: 14px; }
/* The single-tenant label is a <span>, not a button: it needs its own vertical centring (buttons centre their text themselves). */
.appbar .end span.ghost, .mfoot span.ghost { display: inline-flex; align-items: center; white-space: nowrap; }
.appbar .end .ghost.plain { background: transparent; border: 0; color: var(--muted); }
.appbar .end .ghost:hover { background: var(--high); }
.appbar .who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.themebtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; padding: 0 !important; }
.themebtn svg { width: 18px; height: 18px; }

/* ── Page with sidebar ── */
.layout { display: flex; flex-wrap: wrap; min-height: calc(100vh - 66px); }
.side { flex: 0 0 264px; padding: 24px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.side-head { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.side-head .mark { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: color-mix(in srgb, var(--auth-c) 12%, transparent); color: var(--auth-c); }
.side-head .mark svg { width: 20px; height: 20px; }
.side-head strong { display: block; font-size: 20px; line-height: 24px; color: var(--strong); }
.side-head span { font-size: 13px; color: var(--muted); }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--radius); font-size: 14px; color: var(--text); text-decoration: none; }
.side nav a svg { width: 18px; height: 18px; flex: none; }
.side nav a:hover { background: var(--card); color: var(--strong); }
.side nav a[aria-current="page"] { background: color-mix(in srgb, var(--auth-c) 12%, transparent); color: var(--auth-c); font-weight: 500; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px; }
.main > .inner { max-width: 1200px; margin: 0 auto; }
.main h1 { font-size: 32px; line-height: 36px; font-weight: 700; margin: 0; }
.main > .inner > p.muted:first-of-type { margin: 8px 0 0; font-size: 16px; }
@media (max-width: 860px) { .side { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; } .side nav { flex-direction: row; flex-wrap: wrap; } .side-head { display: none; } .main { padding: 20px 16px; } .appbar { padding: 12px 16px; } }

/* ── Sign-in page (design: Login) ── */
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.login-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 20px 32px; }
.login-top .themebtn { height: 40px; width: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.login-top .themebtn:hover { background: var(--high); }
.login-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 24px 16px 48px; }
.login-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--auth-c); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.login-mark { display: flex; align-items: center; gap: 10px; color: var(--auth-c); }
.login-mark svg { width: 24px; height: 24px; }
.login-mark span { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--strong); }
.login-card h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; color: var(--strong); }
.login-card p { margin: 6px 0 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.login-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); font-size: 14px; line-height: 20px; color: var(--strong); }
.login-alert[hidden] { display: none; }
.login-alert svg { flex: none; margin-top: 1px; color: var(--danger); }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.login-field input { height: 44px; padding: 0 14px; font-size: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.login-field input[aria-invalid="true"] { border-color: var(--danger); }
.login-primary { height: 44px; margin-top: 4px; border: 0; border-radius: var(--radius); background: var(--auth-c); color: #000; font-size: 15px; line-height: 20px; font-weight: 700; }
.login-primary:hover { filter: brightness(1.08); }
.login-or { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 16px; letter-spacing: 2.8px; text-transform: uppercase; color: var(--muted); }
.login-or div { flex: 1; height: 1px; background: var(--line); }
.login-ghost { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: 15px; line-height: 20px; }
.login-ghost:hover { background: var(--high); }
.login-apps { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login-apps:empty { display: none; }
.login-eyebrow { font-size: 12px; line-height: 16px; letter-spacing: 2.8px; text-transform: uppercase; color: var(--muted); }
.login-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.login-chip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); color: var(--c, var(--brand-text)); background: color-mix(in srgb, var(--c, var(--brand-text)) 12%, transparent); font-weight: 700; }
.login-chip svg { width: 18px; height: 18px; }
.login-foot { display: flex; justify-content: center; gap: 24px; padding: 16px 32px 24px; font-size: 13px; line-height: 18px; color: var(--muted); }
.login-page :focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }

/* Audit log: fixed column widths so the date never gets squeezed; target wraps. */
.audit-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.audit-tools input { max-width: 340px; }
.filters { margin-top: 12px; }
.chip { height: 32px; padding: 0 12px; border-radius: 9999px; font-size: 13px; background: transparent; color: var(--text); }
.chip:hover { background: var(--high); }
.chip.on { background: var(--accent-fill); color: var(--accent-text); border-color: var(--accent-fill); font-weight: 500; }
table.audit { table-layout: fixed; min-width: 760px; }
table.audit th, table.audit td { padding: 12px 16px; vertical-align: top; }
table.audit th:nth-child(1) { width: 150px; } table.audit th:nth-child(2) { width: 220px; } table.audit th:nth-child(3) { width: 190px; } table.audit th:nth-child(5) { width: 140px; }
table.audit td.when { white-space: nowrap; } table.audit td.when strong, table.audit td.when span { display: block; line-height: 20px; }
table.audit td.when strong { font-weight: 500; color: var(--strong); } table.audit td.when span { font-size: 12px; white-space: nowrap; }
table.audit td.who-col, table.audit td.target { overflow-wrap: anywhere; }
table.audit td.target { color: var(--muted); font: 13px/20px ui-monospace, monospace; }
table.audit td.ip { color: var(--muted); font-size: 13px; white-space: nowrap; }
.action { display: inline-block; padding: 2px 8px; border-radius: var(--radius); background: var(--high); color: var(--strong); font: 12px/18px ui-monospace, monospace; overflow-wrap: anywhere; }
table.audit tbody tr:hover { background: var(--high); }

/* Appbar hover card: app name in its colour, description, "Open …" (hidden until hover/focus). */
.appnav a .tip { display: none; position: absolute; top: calc(100% + 10px); left: 0; width: 280px; padding: 14px 16px; border-radius: var(--radius); background: var(--card);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); text-align: left; white-space: normal; pointer-events: none; z-index: 40; font-weight: 400; flex-direction: column; gap: 6px; }
.appnav a:hover .tip, .appnav a:focus-visible .tip { display: flex; }
.appnav .tip b { display: flex; align-items: center; gap: 8px; color: var(--c); font-weight: 700; font-size: 14px; }
.appnav .tip b svg { width: 16px; height: 16px; color: var(--c); }
.appnav .tip i { font-style: normal; font-size: 13px; line-height: 20px; color: var(--text); }
.appnav .tip u { text-decoration: none; font-size: 12px; line-height: 16px; color: var(--muted); }
.appnav a .lbl { display: none; }

/* The theme button is a 40px square (the generic ".end .ghost" rule above would shrink it to its icon). */
.appbar .end .themebtn { width: 40px; min-width: 40px; padding: 0; }

/* ── Phone layout of the appbar (design: Appbar mobile) ── */
.appbars { display: contents; }
.mbar, .mscrim, .mpanel { display: none; }
@media (max-width: 760px) {
  .appbar { display: none; }
  .mbar { display: flex; position: sticky; top: 0; z-index: 30; height: 64px; align-items: center; gap: 12px; padding: 0 16px; background: var(--bg); border-bottom: 2px solid var(--bar-c, var(--brand)); }
  .mbar .mlogo { height: 22px; width: auto; flex: none; }
  .msw { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius); background: var(--c); color: #000; font-size: 14px; font-weight: 700; }
  .msw .ic svg, .msw .chev svg { width: 20px; height: 20px; display: block; }
  .msw .name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .msw .chev svg { width: 18px; height: 18px; transition: transform .15s; }
  .msw[aria-expanded="true"] .chev svg { transform: rotate(180deg); }
  .mav { flex: none; width: 36px; height: 36px; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: var(--high); }
  .mav .avatar { width: 36px !important; height: 36px !important; border-radius: var(--radius); }
  .mscrim:not([hidden]) { display: block; position: fixed; z-index: 40; left: 0; right: 0; top: 64px; bottom: 0; background: #000000b3; }
  .mpanel:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 45; left: 0; right: 0; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); }
  .mpanel .eyebrow { padding: 14px 16px 6px; font-size: 11px; line-height: 16px; letter-spacing: 2.8px; text-transform: uppercase; color: var(--muted); }
  .mrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 16px; color: var(--text); text-decoration: none; }
  .mrow.on { background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 3px 0 0 var(--c); }
  .mrow .box { flex: 0 0 36px; width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
  .mrow.on .box { background: var(--c); color: #000; }
  .mrow .box svg { width: 20px; height: 20px; }
  .mrow .txt { flex: 1; min-width: 0; }
  .mrow .nm { display: block; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--strong); }
  .mrow.on .nm { color: var(--c); }
  .mrow .ds { display: block; font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mrow .ck { flex: none; color: var(--c); display: flex; }
  .mfoot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 16px; margin-top: 6px; border-top: 1px solid var(--line); }
  .mfoot select, .mfoot .ghost:not(.plain):not(.themebtn) { flex: 1; width: auto; height: 44px; padding: 0 12px; }
  .mfoot .themebtn { width: 44px; height: 44px; flex: none; }
  .mfoot .plain { height: 44px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; }
  .layout { min-height: calc(100vh - 64px); }
}
