/* Assimilis account: the World's design language (slate panels, green accent, Inter), dark by default,
   light when the person chose it (shared "hermes-theme" setting) or their system prefers it. */
:root {
  color-scheme: dark;
  --bg: #121820; --panel: #181d29; --panel2: #1c2230; --line: #2a3140; --line2: #343c4f;
  --text: #e8eaee; --muted: #9aa3b2; --dim: #687183;
  --accent: #3d8c6e; --accent2: #5fb08f; --on-accent: #ffffff; --danger: #ff8a82; --ok: #8fd3b3;
  --focus: #5fb08f; --radius: 10px; --radius-sm: 8px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --glow: radial-gradient(1200px 600px at 85% 15%, rgba(61, 140, 110, 0.16), transparent 60%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f5f7; --panel: #ffffff; --panel2: #f7f8fa; --line: #e1e4ea; --line2: #cdd2db;
    --text: #1b1f27; --muted: #5d6573; --dim: #8c94a3; --accent: #2f7357; --accent2: #2f7357;
    --danger: #b3261e; --ok: #1f6b4a; --focus: #2f7357;
    --glow: radial-gradient(1200px 600px at 85% 15%, rgba(47, 115, 87, 0.10), transparent 60%);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7; --panel: #ffffff; --panel2: #f7f8fa; --line: #e1e4ea; --line2: #cdd2db;
  --text: #1b1f27; --muted: #5d6573; --dim: #8c94a3; --accent: #2f7357; --accent2: #2f7357;
  --danger: #b3261e; --ok: #1f6b4a; --focus: #2f7357;
  --glow: radial-gradient(1200px 600px at 85% 15%, rgba(47, 115, 87, 0.10), transparent 60%);
}
:root[data-skin="charcoal"] { --accent: #8ab4f8; --accent2: #a8c7fa; --on-accent: #1b1b1a; --focus: #a8c7fa; }
:root[data-theme="dark"][data-skin="charcoal"] { --bg: #1f1f1e; --panel: #262624; --panel2: #2d2d2b; --line: #383836; --line2: #45453f; --text: #f3f2ee; --muted: #b0aea6; --dim: #8a8880; --glow: none; }
:root[data-theme="light"][data-skin="charcoal"] { --glow: none; --bg: #f5f4ef; --panel: #ffffff; --panel2: #faf9f5; --line: #e3e1da; --line2: #d4d1c8; --text: #1f1f1e; --muted: #5f5d57; --accent: #2f6fdf; --accent2: #2f6fdf; --on-accent: #ffffff; --focus: #2f6fdf; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--glow), var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
main { width: 100%; max-width: 1000px; margin: auto; padding: 32px; }
header { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
header button { width: auto; margin: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.wordmark span { display: block; font: 500 11px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: 0.06em; color: var(--accent2); margin: 36px 0 0; text-transform: uppercase; }
h1 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.03em; margin: 10px 0 8px; }
h2 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 22px 0 6px; }
p, dd { overflow-wrap: anywhere; }
section { margin-top: 22px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); }
section section { margin-top: 18px; padding: 16px 18px; background: var(--panel2); box-shadow: none; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 6px 0 18px; }
dl > div { padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
dd { margin: 4px 0 0; font-weight: 600; }
.runtime { border-left: 3px solid var(--accent); }
.runtime p { color: var(--muted); margin: 0; }
button, .button {
  display: inline-block; text-align: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font: 600 14px/1.5 var(--font);
  cursor: pointer; text-decoration: none; overflow-wrap: anywhere; margin: 4px 6px 4px 0;
}
button:hover, .button:hover { filter: brightness(1.08); }
button.secondary { background: transparent; border-color: var(--line2); color: var(--text); }
button.secondary:hover { border-color: var(--accent); filter: none; }
button:disabled { opacity: 0.6; cursor: wait; }
input, select { width: 100%; min-width: 0; min-height: 44px; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 9px 12px; color: var(--text); font: inherit; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: var(--accent2); }
[role=alert] { color: var(--danger); font-size: 14px; min-height: 1.4em; overflow-wrap: anywhere; }
[role=status] { color: var(--muted); }
.note, footer { font-size: 12.5px; color: var(--muted); }
footer { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
form button { margin-top: 16px; }
ul { padding: 0; margin: 8px 0 0; list-style: none; }
li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
li:last-child { border-bottom: 0; }
li span { overflow-wrap: anywhere; min-width: 0; }
li button { margin: 0; }
dialog { width: min(500px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 14px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dialog-actions button { margin: 0; }
@media (max-width: 640px) {
  main { padding: 22px 16px; }
  header { gap: 10px; }
  dl, .form-grid { grid-template-columns: 1fr; }
  li { align-items: flex-start; flex-direction: column; }
  .eyebrow { margin-top: 26px; }
  section { padding: 16px; }
  #account-panel p .button { display: block; width: 100%; margin: 8px 0 0; }
}
/* Privacy, terms & licences page. */
.legal nav p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.legal section { scroll-margin-top: 16px; }
.legal .table-wrap { overflow-x: auto; margin: 10px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.legal code { font-family: var(--mono, monospace); font-size: 0.92em; }
