/* SIL App Shell
 * Shared chrome for SIL products — matches ProNet Admin
 * (pronet.silkiwi.nz/admin): light canvas, white sidebar, blue wordmark,
 * stat cards, status pills, outlined quick-links, dark-mode toggle.
 *
 * Usage:
 *   <html data-theme="light">
 *   <body class="sil-body">
 *     <div class="sil-app">
 *       <header class="sil-topbar">…</header>
 *       <div class="sil-body-row">
 *         <aside class="sil-sidebar">…</aside>
 *         <main class="sil-main">…</main>
 *       </div>
 *     </div>
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root,
[data-theme="light"] {
  --sil-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sil-bg: #f3f4f6;
  --sil-surface: #ffffff;
  --sil-surface-2: #f9fafb;
  --sil-sidebar: #ffffff;
  --sil-topbar: #ffffff;
  --sil-border: #e5e7eb;
  --sil-border-strong: #d1d5db;
  --sil-text: #111827;
  --sil-text-2: #374151;
  --sil-muted: #6b7280;
  --sil-faint: #9ca3af;
  --sil-brand: #2563eb;
  --sil-brand-hover: #1d4ed8;
  --sil-brand-soft: #eff6ff;
  --sil-nav-active: #f3f4f6;
  --sil-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  --sil-shadow-md: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --sil-ok: #16a34a;
  --sil-ok-bg: #dcfce7;
  --sil-ok-text: #15803d;
  --sil-warn: #d97706;
  --sil-warn-bg: #fef3c7;
  --sil-warn-text: #b45309;
  --sil-danger: #dc2626;
  --sil-danger-bg: #fee2e2;
  --sil-danger-text: #b91c1c;
  --sil-icon-blue: #3b82f6;
  --sil-icon-blue-bg: #dbeafe;
  --sil-icon-green: #22c55e;
  --sil-icon-green-bg: #dcfce7;
  --sil-icon-purple: #8b5cf6;
  --sil-icon-purple-bg: #ede9fe;
  --sil-icon-cyan: #06b6d4;
  --sil-icon-cyan-bg: #cffafe;
  --sil-icon-amber: #f59e0b;
  --sil-icon-amber-bg: #fef3c7;
  --sil-overlay: rgba(17, 24, 39, 0.45);
  --sil-topbar-h: 56px;
  --sil-sidebar-w: 232px;
  --sil-radius: 12px;
  --sil-radius-sm: 8px;
  --sil-focus: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] {
  --sil-bg: #111318;
  --sil-surface: #1a1d24;
  --sil-surface-2: #22262f;
  --sil-sidebar: #16181e;
  --sil-topbar: #16181e;
  --sil-border: #2a2e37;
  --sil-border-strong: #3b404b;
  --sil-text: #f3f4f6;
  --sil-text-2: #e5e7eb;
  --sil-muted: #9ca3af;
  --sil-faint: #6b7280;
  --sil-brand: #60a5fa;
  --sil-brand-hover: #93c5fd;
  --sil-brand-soft: #1e3a5f;
  --sil-nav-active: #252830;
  --sil-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sil-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.4);
  --sil-ok: #4ade80;
  --sil-ok-bg: #14532d;
  --sil-ok-text: #86efac;
  --sil-warn: #fbbf24;
  --sil-warn-bg: #422006;
  --sil-warn-text: #fcd34d;
  --sil-danger: #f87171;
  --sil-danger-bg: #450a0a;
  --sil-danger-text: #fca5a5;
  --sil-icon-blue: #60a5fa;
  --sil-icon-blue-bg: #1e3a5f;
  --sil-icon-green: #4ade80;
  --sil-icon-green-bg: #14532d;
  --sil-icon-purple: #c4b5fd;
  --sil-icon-purple-bg: #3b0764;
  --sil-icon-cyan: #22d3ee;
  --sil-icon-cyan-bg: #164e63;
  --sil-icon-amber: #fbbf24;
  --sil-icon-amber-bg: #422006;
  --sil-overlay: rgba(0, 0, 0, 0.62);
  --sil-focus: 0 0 0 3px rgba(96, 165, 250, 0.28);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

.sil-body {
  font-family: var(--sil-font);
  background: var(--sil-bg);
  color: var(--sil-text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.sil-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ── Top bar ─────────────────────────────────────────────── */

.sil-topbar {
  flex: 0 0 var(--sil-topbar-h);
  height: var(--sil-topbar-h);
  background: var(--sil-topbar);
  border-bottom: 1px solid var(--sil-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 30;
}

.sil-icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--sil-text-2);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sil-icon-btn:hover { background: var(--sil-nav-active); }
.sil-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

.sil-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--sil-brand);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.sil-brand:hover { color: var(--sil-brand-hover); }

.sil-topbar-spacer { flex: 1; }

.sil-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sil-dark-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sil-text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* iOS-style switch — matches ProNet Dark Mode toggle */
.sil-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 40px;
}
.sil-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.sil-switch .track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.15s ease;
}
[data-theme="dark"] .sil-switch .track { background: #4b5563; }
.sil-switch input:checked + .track { background: var(--sil-brand); }
.sil-switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  transition: transform 0.15s ease;
}
.sil-switch input:checked + .track::after { transform: translateX(18px); }

.sil-bell { position: relative; }
.sil-bell .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid var(--sil-topbar);
  display: none;
}
.sil-bell .badge.on { display: block; }

.sil-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 4px;
  border-radius: 999px;
  color: var(--sil-text);
  font-size: 13.5px;
  font-weight: 500;
}
.sil-user .name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sil-user .chev { color: var(--sil-faint); display: inline-flex; }

.sil-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sil-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex: 0 0 32px;
}

/* ── Body row ────────────────────────────────────────────── */

.sil-body-row {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.sil-sidebar {
  flex: 0 0 var(--sil-sidebar-w);
  width: var(--sil-sidebar-w);
  background: var(--sil-sidebar);
  border-right: 1px solid var(--sil-border);
  overflow-y: auto;
  padding: 10px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sil-app.sidebar-collapsed .sil-sidebar {
  display: none;
}

.sil-nav-section {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sil-faint);
}

.sil-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  margin: 1px 8px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--sil-text-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.sil-nav-item:hover { background: var(--sil-nav-active); color: var(--sil-text); }
.sil-nav-item.active {
  background: var(--sil-nav-active);
  color: var(--sil-text);
  font-weight: 600;
}
.sil-nav-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sil-sidebar-foot {
  margin-top: auto;
  padding: 12px 16px 0;
  font-size: 11.5px;
  color: var(--sil-faint);
  line-height: 1.4;
}

/* ── Main ────────────────────────────────────────────────── */

.sil-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 32px;
  background: var(--sil-bg);
  display: flex;
  flex-direction: column;
}

.sil-page-head { margin-bottom: 18px; }
.sil-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sil-text);
}
.sil-page-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--sil-muted);
}

/* ── Cards ───────────────────────────────────────────────── */

.sil-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .sil-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sil-stat-grid { grid-template-columns: 1fr; }
}

.sil-card {
  background: var(--sil-surface);
  border: 1px solid var(--sil-border);
  border-radius: var(--sil-radius);
  box-shadow: var(--sil-shadow);
  padding: 16px 18px;
}

.sil-stat {
  position: relative;
  min-height: 108px;
}
.sil-stat .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sil-muted);
}
.sil-stat .value {
  margin: 8px 0 4px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--sil-text);
}
.sil-stat .hint {
  font-size: 12.5px;
  color: var(--sil-faint);
}
.sil-stat .ico {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sil-stat .ico svg { width: 16px; height: 16px; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sil-stat .ico.blue   { background: var(--sil-icon-blue-bg);   color: var(--sil-icon-blue); }
.sil-stat .ico.green  { background: var(--sil-icon-green-bg);  color: var(--sil-icon-green); }
.sil-stat .ico.purple { background: var(--sil-icon-purple-bg); color: var(--sil-icon-purple); }
.sil-stat .ico.cyan   { background: var(--sil-icon-cyan-bg);   color: var(--sil-icon-cyan); }
.sil-stat .ico.amber  { background: var(--sil-icon-amber-bg);  color: var(--sil-icon-amber); }
.sil-stat .ico svg { stroke: currentColor; }

.sil-card + .sil-card { margin-top: 14px; }

.sil-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--sil-text);
}
.sil-card-sub {
  margin: 3px 0 14px;
  font-size: 13px;
  color: var(--sil-muted);
}

.sil-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--sil-text-2);
}
.sil-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  background: var(--sil-ok);
}
.sil-dot.warn { background: var(--sil-warn); }
.sil-dot.bad  { background: var(--sil-danger); }
.sil-dot.off  { background: var(--sil-faint); }
.sil-status-row .grow { flex: 1; }

.sil-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--sil-ok-bg);
  color: var(--sil-ok-text);
}
.sil-pill.warn { background: var(--sil-warn-bg); color: var(--sil-warn-text); }
.sil-pill.bad  { background: var(--sil-danger-bg); color: var(--sil-danger-text); }
.sil-pill.mute { background: var(--sil-nav-active); color: var(--sil-muted); }

.sil-qlink {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--sil-surface);
  color: var(--sil-text);
  border: 1px solid var(--sil-border);
  border-radius: var(--sil-radius-sm);
  padding: 10px 14px;
  margin: 0 0 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.sil-qlink:last-child { margin-bottom: 0; }
.sil-qlink:hover { background: var(--sil-surface-2); }

.sil-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--sil-border);
  background: var(--sil-surface);
  color: var(--sil-text);
  border-radius: var(--sil-radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.sil-btn:hover { background: var(--sil-surface-2); }
.sil-btn.primary {
  background: var(--sil-brand);
  border-color: var(--sil-brand);
  color: #fff;
}
.sil-btn.primary:hover { background: var(--sil-brand-hover); border-color: var(--sil-brand-hover); }
.sil-btn.danger {
  background: var(--sil-danger);
  border-color: var(--sil-danger);
  color: #fff;
}
.sil-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sil-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.sil-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.sil-tab {
  appearance: none;
  border: 1px solid var(--sil-border);
  background: var(--sil-surface);
  color: var(--sil-text-2);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sil-tab:hover { background: var(--sil-nav-active); }
.sil-tab.on {
  background: var(--sil-brand);
  border-color: var(--sil-brand);
  color: #fff;
}
.sil-tab .n {
  font-weight: 500;
  opacity: 0.85;
  margin-left: 4px;
}

.sil-input,
.sil-select,
.sil-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--sil-radius-sm);
  border: 1px solid var(--sil-border);
  background: var(--sil-surface);
  color: var(--sil-text);
  font: inherit;
  font-size: 13.5px;
}
.sil-input:focus,
.sil-select:focus,
.sil-textarea:focus {
  outline: none;
  border-color: var(--sil-brand);
  box-shadow: var(--sil-focus);
}
.sil-secret-wrap {
  position: relative;
  display: block;
}
.sil-secret-wrap .sil-input {
  padding-right: 42px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.sil-eye-btn {
  appearance: none;
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--sil-muted);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sil-eye-btn:hover {
  background: var(--sil-nav-active);
  color: var(--sil-text);
}
.sil-eye-btn[aria-pressed="true"] {
  color: var(--sil-brand);
}
.sil-eye-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sil-field { margin: 0 0 8px; }
.sil-help { font-size: 12.5px; color: var(--sil-muted); line-height: 1.4; margin: 0 0 10px; }
.sil-err { color: var(--sil-danger); font-size: 13px; min-height: 1.2em; }
.sil-ok-msg { color: var(--sil-ok); font-size: 13px; }

.sil-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--sil-text-2);
  margin: 6px 0;
  cursor: pointer;
}

.sil-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sil-text-2);
  margin: 12px 0 4px;
}
.sil-label:first-child { margin-top: 0; }
.sil-hint {
  font-size: 12px;
  color: var(--sil-muted);
  margin: 4px 0 0;
}

/* Login */
.sil-login {
  position: fixed;
  inset: 0;
  background: var(--sil-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 16px;
}
.sil-login.hidden { display: none; }

/* Public front screen — no dashboard until signed in */
#app-shell { display: none; }
#app-shell.is-authed {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
.sil-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--sil-bg);
  overflow: auto;
  padding: 28px 16px 48px;
}
.sil-gate.hidden { display: none; }
.sil-gate-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}
.sil-gate-brand {
  margin-bottom: 18px;
}
.sil-gate-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .sil-gate-grid { grid-template-columns: 1fr; }
}
.sil-gate .sil-login-box {
  width: 100%;
  position: sticky;
  top: 16px;
}
.sil-legal-panel {
  background: var(--sil-surface);
  border: 1px solid var(--sil-border);
  border-radius: 16px;
  box-shadow: var(--sil-shadow);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sil-legal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--sil-border);
}
.sil-legal-tabs button {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--sil-muted);
  cursor: pointer;
}
.sil-legal-tabs button.on {
  color: var(--sil-brand);
  border-bottom-color: var(--sil-brand);
}
.sil-legal-scroll {
  padding: 16px 20px 24px;
  overflow: auto;
  max-height: min(70vh, 640px);
}
.sil-legal-scroll h2 { font-size: 16px; margin: 22px 0 8px; }
.sil-legal-scroll h3 { font-size: 14px; margin: 16px 0 6px; }
.sil-legal-scroll p, .sil-legal-scroll li {
  color: var(--sil-text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.sil-legal-scroll ul { padding-left: 1.2em; }
.sil-legal-scroll .legal-meta { color: var(--sil-muted); font-size: 12px; }
.sil-gate-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--sil-muted);
}
.sil-gate-foot a { margin-right: 14px; }

.sil-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--sil-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 20px;
  gap: 10px;
}
.sil-lightbox.hidden { display: none; }
.sil-lightbox-stage {
  max-width: 94vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sil-lightbox-stage img,
.sil-lightbox-stage video {
  max-width: 94vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
  box-shadow: var(--sil-shadow-md);
}
.sil-lightbox-cap {
  margin: 0;
  color: #fff;
  font-size: 13px;
  text-align: center;
  max-width: 90vw;
  word-break: break-all;
}
.sil-lightbox-close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sil-lightbox-close:hover { background: rgba(0, 0, 0, 0.7); }
.sil-login-box {
  width: min(400px, 92vw);
  background: var(--sil-surface);
  border: 1px solid var(--sil-border);
  border-radius: 16px;
  box-shadow: var(--sil-shadow-md);
  padding: 28px 26px 24px;
}
.sil-login-box h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--sil-text);
}
.sil-login-box p {
  margin: 0 0 18px;
  color: var(--sil-muted);
  font-size: 13.5px;
}
.sil-login-box .sil-btn { width: 100%; padding: 10px; margin-top: 4px; }

.sil-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.sil-table th, .sil-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sil-border);
  vertical-align: middle;
}
.sil-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--sil-muted);
  white-space: nowrap;
}
.sil-table td.center, .sil-table th.center { text-align: center; }
.sil-user-menu {
  position: relative;
}
.sil-user-menu .menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--sil-surface);
  border: 1px solid var(--sil-border);
  border-radius: 10px;
  box-shadow: var(--sil-shadow-md);
  padding: 8px;
  z-index: 40;
}
.sil-user-menu.open .menu { display: block; }
.sil-user-menu .menu .who {
  font-size: 12.5px;
  color: var(--sil-muted);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--sil-border);
  margin-bottom: 6px;
}
.sil-user { cursor: pointer; }

.sil-identity {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sil-identity .mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #1877f2;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  letter-spacing: -0.02em;
}
.sil-identity .mark.person { background: #6b7280; }
.sil-identity .who {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.sil-identity .as {
  font-size: 14px;
  color: var(--sil-text-2);
  margin: 0 0 8px;
}
.sil-identity .meta {
  font-size: 12.5px;
  color: var(--sil-muted);
  line-height: 1.45;
}
.sil-identity .meta a { color: var(--sil-brand); }

/* Mobile */
@media (max-width: 860px) {
  .sil-sidebar {
    position: fixed;
    top: var(--sil-topbar-h);
    left: 0;
    bottom: 0;
    z-index: 25;
    box-shadow: 8px 0 24px rgba(0,0,0,0.12);
  }
  .sil-app.sidebar-collapsed .sil-sidebar { display: none; }
  .sil-app:not(.sidebar-collapsed) .sil-sidebar { display: flex; }
  .sil-main { padding: 16px; }
  .sil-user .name { display: none; }
  .sil-dark-label span.label { display: none; }
}

@media (min-width: 861px) {
  .sil-app:not(.sidebar-collapsed) .sil-sidebar { display: flex; }
}
