/* account-side.css — the base and components shared by the account-side pages: account, admin,
   privacy, app-login and app-return. Load it after site.css and before the page's own CSS, which
   overrides only where a page differs. Not linked by index, docs or style: they use some of the
   same class names (.card, .brand, .row) for different things. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font-ui); padding: 24px;
  -webkit-font-smoothing: antialiased;
}
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.brand .brand-mark { width: 11px; height: 11px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px;
}
h1 { font-size: 19px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
     color: var(--faint); margin: 0 0 12px; font-weight: 600; }
p  { color: var(--muted); margin: 0 0 12px; }
a { color: var(--link); }
.muted { color: var(--faint); font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--primary); color: #fff; border: 0; border-radius: 9px;
  padding: 10px 16px; font: 600 14px var(--font-ui); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--primary-hover); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--chip); }
.btn--tiny { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn--danger { background: transparent; color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, var(--red) 8%, transparent); }

.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray); flex: none; }
.dot--active { background: var(--green); }
.dot--warn   { background: var(--amber); }
.dot--off    { background: var(--gray); }

.err {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  border-radius: 9px; padding: 11px 13px; margin-bottom: 16px; font-size: 14px;
}
