/* Mintdesk dashboard. Same variables and typography as site/index.html
   (docs/DESIGN.md §9): no cards, no gradients, no shadows, light and dark,
   nothing here depends on JavaScript. */
:root {
  color-scheme: light dark;
  --paper: #fcfcfa;
  --ink: #202924;
  --muted: #58635d;
  --line: #cdd3ce;
  --accent: #0a7d6b;
  --accent-hover: #075b4e;
  --on-accent: #ffffff;
  --hover: #eff2ed;
  --danger: #a8331f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151917;
    --ink: #edf1ec;
    --muted: #acb7af;
    --line: #424b45;
    --accent: #3fd6bb;
    --accent-hover: #79e7d2;
    --on-accent: #10231d;
    --hover: #252d27;
    --danger: #f08c78;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; line-height: 1.3; letter-spacing: -.045em; }
h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.03em; }
strong, b { font-weight: 650; }
code, kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; }

.wrap { width: min(100% - 64px, 1040px); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 16px; padding: 10px 16px; background: var(--paper); z-index: 2; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 15px; text-decoration: none; }
nav a:hover { color: var(--ink); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
nav form { display: inline-flex; }

main { padding-block: 44px 56px; }
.lead { max-width: 680px; margin-top: 16px; color: var(--muted); }
.hint { margin-top: 20px; color: var(--muted); font-size: 15px; }
.empty { margin-top: 28px; padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.alert, .notice { margin-bottom: 28px; padding: 14px 0; border-top: 2px solid var(--line); border-bottom: 1px solid var(--line); }
.alert { border-top-color: var(--danger); color: var(--danger); }
.notice { border-top-color: var(--accent); }

.form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 28px; max-width: 420px; }
.form label { font-size: 15px; font-weight: 650; }
input[type="email"], input[type="text"] {
  width: 100%; padding: 11px 12px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 17px;
}
input:focus-visible { border-color: var(--accent); }
button {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px; padding: 12px 22px; min-height: 48px;
  border: 1px solid transparent; border-radius: 4px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 650; cursor: pointer;
}
button:hover { background: var(--accent-hover); }
button:active { transform: translateY(1px); }
button.danger-button { background: var(--danger); color: var(--paper); }
button.linklike {
  margin: 0; padding: 0 2px; min-height: 44px;
  background: none; color: var(--accent); font-weight: 400;
  text-decoration: underline; text-underline-offset: 4px;
}
button.linklike:hover { background: none; color: var(--accent-hover); }
button.linklike.danger { color: var(--danger); }

.grid { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 16px; }
.grid th, .grid td { padding: 14px 12px 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid thead th { border-top: none; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 650; }
.grid tbody tr:hover { background: var(--hover); }
.grid td { color: var(--muted); font-variant-numeric: tabular-nums; }
.grid th[scope="row"] { color: var(--ink); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 15px; }
.actions a { display: inline-flex; align-items: center; min-height: 44px; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; }
.inline-form input { width: 148px; min-height: 40px; padding: 6px 8px; font-size: 15px; }

.dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1px solid var(--line); border-radius: 50%; background: transparent; vertical-align: 1px; }
.dot-on { border-color: var(--accent); background: var(--accent); }

.facts { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin-top: 28px; }
.facts dt { padding: 14px 12px 14px 0; border-top: 1px solid var(--line); font-weight: 650; }
.facts dd { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }

.steps { list-style: none; padding: 0; margin-top: 16px; counter-reset: step; }
.steps li { position: relative; padding: 0 0 16px 44px; counter-increment: step; color: var(--muted); }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 0; color: var(--accent); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; }

.howto, .onetime, .danger-zone { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.onetime p, .danger-zone p { margin-top: 12px; color: var(--muted); max-width: 680px; }
.secret { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.secret code { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 21px; letter-spacing: .04em; user-select: all; }
.danger-zone h2 { color: var(--danger); }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .facts dd { padding-top: 0; border-top: none; }
  .grid, .grid thead, .grid tbody, .grid tr, .grid th, .grid td { display: block; }
  .grid thead { display: none; }
  .grid tr { padding-block: 8px; border-top: 1px solid var(--line); }
  .grid th, .grid td { padding: 2px 0; border-top: none; }
  .grid td[data-label]::before { content: attr(data-label) " "; display: inline-block; min-width: 104px; color: var(--muted); font-size: 14px; }
  .actions { margin-top: 8px; }
}
