/* Shared look for the sign-in, account and admin pages (the homepage's colours). */
:root {
  --bg: #ffffff;
  --band: #f5f6fa;
  --hero: #f3f4fb;
  --panel: #ffffff;
  --text: #161a23;
  --muted: #4a5162;
  --faint: #5a6273;
  --accent: #4338ca;
  --accent-text: #4338ca;
  --accent-soft: #e4e5fb;
  --border: #e1e4ea;
  --border-strong: #d5d9e1;
  --input: #c4c9d3;
  --chip: #eef0f5;
  --button: #467fcf;
  --button-hover: #3a6db5;
  --good-bg: #e3f4ea; --good: #1d6b3d;
  --warn-bg: #fdf1de; --warn: #8a4b0b;
  --bad: #b42318;
  --bar-2: #b9c8ea;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #131519;
  --band: #16181c;
  --hero: #191b26;
  --panel: #1f2228;
  --text: #e9ebef;
  --muted: #b0b6c2;
  --faint: #a3a9b6;
  --accent: #5b52e8;
  --accent-text: #a9a4ff;
  --accent-soft: #272648;
  --border: #2e323a;
  --border-strong: #3a3f48;
  --input: #4a505b;
  --chip: #2a2e36;
  --good-bg: #173524; --good: #7fd6a2;
  --warn-bg: #3a2a12; --warn: #f2c07a;
  --bad: #ff8a80;
  --bar-2: #3d4c70;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--band); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

header.site { background: var(--bg); border-bottom: 1px solid var(--border); }
header.site .wrap { min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #3730a3); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--button); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--button); color: #fff; }
.btn.primary:hover { background: var(--button-hover); }
.btn.ghost { background: var(--panel); color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--button); }
.btn.wide { width: 100%; min-height: 50px; font-size: 16px; }
.btn.soon { background: var(--chip); color: var(--faint); border-color: var(--border); cursor: default; }
.btn.danger { background: none; color: var(--bad); padding-inline: 6px; }
.btn:disabled { opacity: .6; cursor: default; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 14px; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.notice.good { background: var(--good-bg); color: var(--good); }

label.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input[type="email"], input[type="search"], input[type="text"], select {
  min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--input);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 400;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, .theme-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--button) 55%, transparent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; width: 17px; height: 17px; flex: none; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; padding: 10px 12px; background: var(--band); }
td { padding: 10px 12px; border-top: 1px solid var(--border); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-box { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--faint); font-size: 14px; background: var(--bg); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer.site a { color: var(--faint); text-decoration: none; }
footer.site a:hover { color: var(--text); }

@media (max-width: 640px) { .wrap { padding: 0 16px; } .card { padding: 20px; } }
