/* Copyright (c) 2026 10001111. All rights reserved. Proprietary: see LICENSE. Do not copy. */
/* Plain CSS, no framework. Colours are CSS variables, so dark mode only swaps the variables
   (html[data-theme="dark"]). Green is for the main action, blue for links, red for anything that
   deletes. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --colbg: #eceef1;
  --border: #d9dde3;
  --text: #1c1f23;
  --muted: #5b636d;
  --primary: #1f7a45;
  --link: #1a5fd0;
  --focus: #1a5fd0;
  --hover: #e6e9ed;
  --drop: #e3ecfb;
  --shadow: rgba(16, 24, 40, 0.12);
  /* badges: background and text pairs, each at least 4.5:1 */
  --hi-bg: #fde8e7;  --hi-fg: #9b1c14;
  --no-bg: #e6eefc;  --no-fg: #1a4fa8;
  --lo-bg: #eceef1;  --lo-fg: #4a525c;
  --ok-bg: #e5f3ea;  --ok-fg: #17603a;
  --soon-bg: #fff1d6; --soon-fg: #7a4b00;
  --radius: 12px;
  --chat-width: 380px;
  --chat-folded: 44px;
  color-scheme: light;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

html[data-theme="dark"] {
  --bg: #121417;
  --surface: #1c1f24;
  --colbg: #171a1e;
  --border: #2f353d;
  --text: #e8eaed;
  --muted: #a3abb5;
  --link: #8ab4ff;
  --focus: #8ab4ff;
  --hover: #262b32;
  --drop: #1b2a44;
  --shadow: rgba(0, 0, 0, 0.45);
  --hi-bg: #3a1a19;  --hi-fg: #ffb4ab;
  --no-bg: #172640;  --no-fg: #a9c7ff;
  --lo-bg: #2a2f36;  --lo-fg: #c3c9d1;
  --ok-bg: #16301f;  --ok-fg: #9fdcb3;
  --soon-bg: #3a2c10; --soon-fg: #ffd27a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--link); }
code { background: var(--colbg); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.strong { font-weight: 600; }
.grow { flex: 1 1 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* --- controls ------------------------------------------------------------------------------- */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease; }
button:disabled { cursor: progress; opacity: .6; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn, .btn-primary, .btn-ghost, .btn-danger, .seg, .tab {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
}
.btn { border: 1px solid var(--border); background: var(--surface); }
.btn:hover { background: var(--hover); }
.btn-primary { border: none; background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 12px var(--shadow); }
.btn-primary:active { transform: none; }
.btn-ghost { border: 1px dashed var(--border); background: none; color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-danger { border: none; background: none; color: var(--hi-fg); padding-inline: 6px; }
.btn-danger:hover { text-decoration: underline; }
.btn-text { border: none; background: none; color: var(--link); font-weight: 600; min-height: 44px; padding: 0 6px; }
.btn-text:hover { text-decoration: underline; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.icon-btn:hover { background: var(--hover); }
.icon-btn .sun { display: none; }
html[data-theme="dark"] .icon-btn .sun { display: block; }
html[data-theme="dark"] .icon-btn .moon { display: none; }

.segmented { display: flex; gap: 4px; }
.seg { border: 1px solid var(--border); background: var(--surface); font-weight: 500; }
.seg:hover { background: var(--hover); }
.seg[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: none; background: none; color: var(--muted); }
.tab:hover { background: var(--hover); color: var(--text); }
.tab[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px var(--shadow); }

.input, .form input, textarea {
  min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); min-width: 0;
}
.input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { width: 100%; resize: vertical; min-height: 96px; line-height: 1.5; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.p-high, .d-overdue { background: var(--hi-bg); color: var(--hi-fg); }
.p-normal, .s-doing { background: var(--no-bg); color: var(--no-fg); }
.p-low, .d-done, .d-none, .s-todo { background: var(--lo-bg); color: var(--lo-fg); }
.d-ok, .s-done { background: var(--ok-bg); color: var(--ok-fg); }
.d-soon { background: var(--soon-bg); color: var(--soon-fg); }

/* --- top bar ---------------------------------------------------------------------------------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--no-bg); color: var(--no-fg); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.who-btn {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px 4px 4px;
  border: 1px solid transparent; border-radius: 999px; background: none; text-align: left;
}
.who-btn:hover, .who-btn[aria-expanded="true"] { background: var(--hover); border-color: var(--border); }
.who-text { display: flex; flex-direction: column; line-height: 1.2; }
.who-name { font-size: 0.875rem; font-weight: 600; }
.who-email { font-size: 0.75rem; color: var(--muted); }
.avatar { overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-xl { width: 96px; height: 96px; font-size: 2.2rem; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.preset { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; }
.preset img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.preset[aria-pressed="true"] { border-color: var(--primary); }
.preset:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
form[aria-disabled="true"] { opacity: .55; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The real file input is hidden; its label is the button, so the label shows the keyboard focus. */
label[for="avatar-file"]:has(+ #avatar-file:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
label.btn { cursor: pointer; }

/* profile card */
.profile { gap: 16px; animation: slidein .25s ease; }
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.profile-picture { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.profile .field { min-width: 0; }

/* --- page --------------------------------------------------------------------------------------- */
.page { flex: 1 1 auto; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 24px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 1.1rem; }

/* signed out */
.welcome { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 16px 0 8px; }
.welcome-text { flex: 999 1 420px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; }
html[data-theme="dark"] .eyebrow { color: #7fd1a0; }
.welcome h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; max-width: 18ch; }
.lead { font-size: 1.05rem; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.ticks { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.signin { flex: 1 1 320px; max-width: 420px; padding: 24px; box-shadow: 0 10px 30px var(--shadow); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 0.9rem; font-weight: 600; }

/* signed in */
.board-area { display: flex; flex-direction: column; gap: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--colbg); border-radius: var(--radius); padding: 6px; }
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.list-title { display: flex; flex-direction: column; gap: 8px; }
.list-title h1 { font-size: 2rem; letter-spacing: -0.02em; }
.list-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hint { max-width: 420px; }
.progress { width: 200px; height: 8px; border-radius: 999px; background: var(--colbg); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.message { min-height: 1.2em; font-weight: 600; }
.message:empty { display: none; }
.message.error { color: var(--hi-fg); }
.empty-state { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; display: grid; gap: 8px; }

.work { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.tasks-area { flex: 999 1 560px; min-width: 0; }

/* board view */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.column {
  background: var(--colbg); border: 1px dashed transparent; border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 420px;
  transition: background .15s ease, border-color .15s ease;
}
.column.over { background: var(--drop); border-color: var(--focus); }
.column-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.column-head h2 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.column-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.count { font-size: 0.75rem; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.column-empty { padding: 20px 12px; text-align: center; font-size: 0.85rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; }
.add-task { display: flex; gap: 6px; margin-top: auto; }
.add-task .input { flex: 1 1 auto; }

.task-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: grab;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, border-color .18s ease;
}
.task-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--shadow); }
.task-card.selected { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.task-card.dragging { opacity: .45; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card-title {
  background: none; border: none; padding: 0; text-align: left; font-weight: 600; font-size: 0.95rem; line-height: 1.35;
}
/* The title button covers the whole card, so a click anywhere on the card opens it. */
.card-title::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.card-title:focus-visible { outline: none; }
.card-title:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-title:hover, .row-title:hover { color: var(--link); }
.card-desc {
  font-size: 0.82rem; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.struck { text-decoration: line-through; color: var(--muted); }

/* list view */
.rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 16px; border-bottom: 1px solid var(--border); transition: background .15s ease; }
.task-row:hover { background: var(--hover); }
.task-row.selected { background: var(--drop); }
.task-row input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); flex: none; }
.row-title { flex: 1 1 220px; background: none; border: none; text-align: left; padding: 8px 0; min-height: 44px; font-weight: 600; font-size: 0.95rem; }
.rows .add-task { padding: 12px 16px; }
.rows-empty { padding: 24px 16px; color: var(--muted); }

/* details panel */
.panel {
  flex: 1 1 320px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 18px; animation: slidein .25s ease;
}
@keyframes slidein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-kicker { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.panel h2 { font-size: 1.35rem; margin-top: 4px; overflow-wrap: anywhere; }
.countdown { border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.countdown-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.countdown-time { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-date { font-size: 0.78rem; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.db-note { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; line-height: 1.5; color: var(--muted); background: var(--colbg); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.panel-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* always-there cards */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.news { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.chat-sidebar { position: fixed; top: 64px; right: 0; bottom: 0; z-index: 20; display: flex;
  width: var(--chat-width); background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -4px 0 16px var(--shadow); transition: width .2s ease; }
.chat-sidebar.folded { width: var(--chat-folded); }
.chat-toggle { flex: 0 0 var(--chat-folded); display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 0; border: none; border-right: 1px solid var(--border); background: var(--colbg); color: var(--text);
  font-weight: 700; cursor: pointer; }
.chat-toggle:hover { background: var(--hover); }
.chat-toggle-arrow { font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.chat-sidebar.folded .chat-toggle-arrow { transform: rotate(180deg); }
.chat-toggle-label { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }
.chat-unread { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 0.75rem; }
.chat-online-badge { min-width: 22px; text-align: center; padding: 2px 4px; border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 0.75rem; }
.chat-panel { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.chat-sidebar.folded .chat-panel { display: none; }
.chat-head { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border); }
.chat-head h2 { font-size: 1.05rem; }
.chat-tabs { display: flex; gap: 4px; padding: 3px; background: var(--colbg); border-radius: 10px; }
.chat-tab { flex: 1 1 0; min-height: 34px; border: none; border-radius: 8px; background: none; color: var(--muted);
  font-weight: 600; cursor: pointer; }
.chat-tab:hover { color: var(--text); }
.chat-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px var(--shadow); }
.chat-nick { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.chat-nick span { flex: 0 0 auto; }
.chat-nick .input { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 6px 10px; }
.chat-nick-help, .chat-refresh { margin: 0; color: var(--muted); font-size: 0.75rem; overflow-wrap: anywhere; }
.chat-refresh { padding: 6px 16px; }
/* Tab 1: the messages take every pixel the prompt bar doesn't need. */
.chat-room { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.chat-room[hidden] { display: none; }
.chat-presence { flex: 0 0 auto; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.chat-presence summary { cursor: pointer; font-weight: 700; }
.chat-presence p { margin: 6px 0; color: var(--muted); }
.chat-presence ul { max-height: 120px; overflow-y: auto; margin: 6px 0; padding-left: 20px; }
.chat-presence li { overflow-wrap: anywhere; }
.chat-presence .error { color: var(--hi-fg); }
.chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px; }
.chat-log:empty::before { content: "No messages yet. Say hello: someone else may be signed in right now.";
  color: var(--muted); margin: auto; text-align: center; padding: 0 12px; }
/* Every message on the left, one under the other, like a transcript. Yours has a green marker. */
.chat-msg { align-self: stretch; padding: 2px 0 2px 10px; border-left: 3px solid var(--border); overflow-wrap: anywhere; }
.chat-msg.mine { border-left-color: var(--primary); }
.chat-meta { display: flex; gap: 8px; align-items: baseline; font-size: 0.75rem; color: var(--muted); }
.chat-meta strong { color: var(--text); font-size: 0.82rem; }
.chat-text { margin-top: 2px; white-space: pre-wrap; line-height: 1.45; }
/* The prompt bar: one rounded box at the bottom, the text grows upwards as you type (up to a few lines). */
.prompt-bar { flex: 0 0 auto; margin: 0 12px 6px; padding: 10px 10px 8px 14px; border: 1px solid var(--border);
  border-radius: 18px; background: var(--surface); box-shadow: 0 2px 10px var(--shadow); }
.prompt-bar:focus-within { border-color: var(--primary); }
.chat-emoji { font-size: 0.8rem; color: var(--muted); }
.chat-emoji summary { cursor: pointer; }
.chat-emoji-options { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 0; }
.chat-emoji-options button { border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  font-size: 1.15rem; cursor: pointer; }
.prompt-bar textarea { display: block; width: 100%; min-height: 24px; max-height: 140px; padding: 2px 0; resize: none;
  border: none; outline: none; background: none; color: var(--text); font: inherit; line-height: 1.45; }
.prompt-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.prompt-count, .prompt-hint { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.prompt-count.near { color: var(--hi-fg); font-weight: 700; }
.prompt-hint { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prompt-send { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: none;
  border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; }
.prompt-send:disabled { background: var(--border); color: var(--muted); cursor: default; }
.chat-alert { margin: 0 16px 10px; font-size: 0.82rem; }
/* Tab 2: rules and information. */
.chat-info { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 20px; font-size: 0.88rem; line-height: 1.5; }
.chat-info[hidden] { display: none; }
.chat-info h3 { font-size: 0.95rem; margin: 14px 0 6px; }
.chat-info h3:first-child { margin-top: 0; }
.chat-info ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.chat-info p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Room for the sidebar, so it never covers the board. */
body.has-chat .page, body.has-chat .footer-inner { padding-right: calc(var(--chat-width) + 24px); }
body.has-chat.chat-folded .page, body.has-chat.chat-folded .footer-inner { padding-right: calc(var(--chat-folded) + 24px); }
@media (max-width: 900px) {
  /* On a narrow screen the open chat lies over the page instead of squeezing it. */
  .chat-sidebar { width: min(100vw, var(--chat-width)); }
  body.has-chat .page, body.has-chat .footer-inner { padding-right: calc(var(--chat-folded) + 16px); }
}

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.82rem; }
.health { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: #2e9e5b; }
.dot.bad { background: #d93025; }

/* forgot your password: the notice under the top bar, the sign-in card's link, and the two windows */
.notice { background: var(--no-bg); color: var(--no-fg); border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.notice-inner { max-width: 1240px; margin: 0 auto; padding: 2px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.notice-inner > svg { flex: none; }
.notice-text { flex: 1 1 240px; padding: 6px 0; line-height: 1.5; }
.notice .btn-text { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice .btn-text:hover { text-decoration-thickness: 2px; }
kbd { font: 600 0.78rem ui-monospace, Consolas, monospace; padding: 0 5px; border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 4px; white-space: nowrap; }
.forgot-link { justify-self: start; padding: 0; font-size: 0.9rem; }
.modal { width: min(440px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 20px 50px var(--shadow); }
.modal[open] { animation: pop .2s ease; }
.modal::backdrop { background: rgba(16, 24, 40, 0.45); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { font-size: 1.25rem; }
.modal .form { gap: 14px; }
.modal-actions { justify-content: flex-end; }
.step { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.code-input { font: 700 1.5rem/1 ui-monospace, Consolas, monospace; letter-spacing: .4em; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
