/* TaskMule Accounts — the shared theme tokens (platform plan §5), light and dark. */
:root {
  --main: #f4f6f9; --surface: #ffffff; --inset: #f8fafc; --chip: #eef1f5;
  --border: #e2e6ec; --border-strong: #d3d9e2;
  --text: #0f172a; --muted: #4b5563; --subtle: #6b7280;
  --good: #15803d; --bad: #b91c1c; --bad-soft: #fef2f2;
  --accent: #0070f0; --accent-text: #0067dd;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --main: #0d1320; --surface: #141c2b; --inset: #111827; --chip: #1c2636;
    --border: #1f2a3b; --border-strong: #2b384c;
    --text: #e6eaf0; --muted: #a3adbd; --subtle: #8391a7;
    --good: #22c55e; --bad: #fca5a5; --bad-soft: #3b1418;
    --accent: #0070f0; --accent-text: #599fff;
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  background: var(--main); color: var(--text);
  font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4vh; }
a.brand { color: var(--text); font-weight: 600; }
a.brand:hover { text-decoration: none; }
.brand span.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); }
/* The account menu, top right on every signed-in page (PL-86). Opens with no script. */
details.account-menu { width: 100%; max-width: 760px; position: relative; display: flex; justify-content: flex-end; font-size: 14px; }
details.account-menu > summary {
  list-style: none; cursor: pointer; margin-left: auto; width: fit-content; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); font-weight: 500;
}
details.account-menu > summary::-webkit-details-marker { display: none; }
details.account-menu > summary::after { content: " ▾"; color: var(--subtle); }
details.account-menu .panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 280px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
details.account-menu .who { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; }
details.account-menu .who strong { color: var(--text); font-size: 14px; }
details.account-menu a[aria-current] { color: var(--text); }
details.account-menu .staff { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
details.account-menu form { padding-top: 10px; border-top: 1px solid var(--border); }
main {
  width: 100%; max-width: 420px; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
main.wide { max-width: 560px; }
h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h2 { margin: 8px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
p { margin: 0; color: var(--muted); }
p strong { color: var(--text); font-weight: 600; }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input {
  min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit;
}
select {
  min-height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit;
}
textarea {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; resize: vertical;
}
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
label.check input { min-height: 0; width: 18px; height: 18px; }
input[readonly] { background: var(--inset); color: var(--muted); }
button, a.button {
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
button.danger { background: #b91c1c; }
button.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
button.quiet { background: transparent; color: var(--muted); border: 1px solid var(--border-strong); font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
.error { padding: 10px 12px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.note { padding: 10px 12px; border-radius: 8px; background: var(--inset); border: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.hint { font-size: 13px; color: var(--subtle); }
.card { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.card .name { font-weight: 600; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 2px 8px; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: 11px; font-weight: 600; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--chip); word-break: break-all; }
ul.codes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
p.or { text-align: center; font-size: 13px; color: var(--subtle); }
ul.plain { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
ul.plain strong { color: var(--text); font-weight: 600; }
.card form { gap: 10px; }
.inline { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.ok { padding: 10px 12px; border-radius: 8px; background: var(--inset); border: 1px solid var(--good); font-size: 14px; }
nav.crumbs { font-size: 13px; }
main.wider { max-width: 760px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
footer { font-size: 12px; color: var(--subtle); text-align: center; max-width: 420px; }
/* Account cards on the home page (PL-105): one large button per thing the account can open. */
.account-card { gap: 10px; }
.account-card .open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-card a.button { min-height: 52px; padding: 0 24px; font-size: 16px; }
.account-card p.hint { margin: 0; }
