:root {
  --bg: #eef1f5;
  --card: #ffffff;
  --text: #14202e;
  --muted: #5b6878;
  --line: #e3e7ed;
  --brand: #0f2a44;
  --brand-text: #ffffff;
  --accent: #c8102e;
  --row-hover: #f5f7fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1118;
    --card: #141d27;
    --text: #e8edf3;
    --muted: #9aa7b6;
    --line: #243140;
    --brand: #1d4772;
    --row-hover: #1a2532;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 42, 68, .12);
  align-self: flex-start;
}
.brand {
  background: var(--brand);
  height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
}
.logo { height: 34px; max-width: 70%; }
.profile { padding: 0 24px 24px; text-align: center; }
.avatar {
  width: 112px; height: 112px;
  margin: -56px auto 12px;
  border-radius: 50%;
  border: 4px solid var(--card);
  background: var(--brand) center / cover no-repeat;
  color: var(--brand-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 600; letter-spacing: 1px;
}
h1 { font-size: 24px; margin: 0; line-height: 1.2; }
.role { color: var(--muted); margin: 4px 0 20px; }
.role:empty { display: none; }
button.primary {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px;
  padding: 14px 16px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600;
  cursor: pointer;
}
button.primary:active { transform: translateY(1px); }
button.primary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions { list-style: none; margin: 20px 0 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.actions li { border-bottom: 1px solid var(--line); }
.actions a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px;
  color: inherit; text-decoration: none;
  overflow-wrap: anywhere;
}
.actions a:hover { background: var(--row-hover); }
.actions .ic {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--row-hover); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
@media (prefers-color-scheme: dark) { .actions .ic { color: #9cc3ec; } }
.actions .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions small { display: block; color: var(--muted); font-size: 12px; }
.note { color: var(--muted); font-size: 14px; margin: 16px 0 0; white-space: pre-line; text-align: left; }
.message, .loading { padding: 32px 24px; text-align: center; color: var(--muted); }
