:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --surface: #fff;
  --ink: #202824;
  --muted: #59645d;
  --line: #cbd2cb;
  --accent: #23543c;
  --accent-hover: #183e2b;
  --error: #9e2828;
  --success: #245b3c;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
::selection { color: var(--surface); background: var(--accent); }
body { margin: 0; background: var(--paper); color: var(--ink); }
.setup { max-width: 880px; padding: 40px 40px 24px; margin: auto; }
.wordmark { display: flex; align-items: baseline; gap: 18px; width: fit-content; font-size: 23px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-decoration: none; margin-bottom: 56px; }
.wordmark span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: 22px; margin-top: 32px; }
.lede { font-size: 18px; max-width: 620px; color: var(--muted); margin: 0 0 28px; }
.requirements { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 24px 0 32px; font-size: 12px; color: var(--muted); }
.missing { color: var(--error); font-weight: 600; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 24px 0 32px; margin: 0; min-width: 0; }
legend { padding: 0 16px 0 0; font-size: 18px; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full { grid-column: 1/-1; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; min-width: 0; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 10px 12px; caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:user-invalid { border-color: var(--error); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; margin: 18px 0; min-height: 44px; }
.check input { width: 20px; min-height: 20px; flex-shrink: 0; accent-color: var(--accent); }
details { margin-top: 20px; }
summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: 14px; color: var(--accent); }
details[open] summary { margin-bottom: 10px; }
.form-footer { display: flex; gap: 30px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.form-footer p { max-width: 330px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; background: var(--accent); border: 0; border-radius: 4px; color: var(--surface); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer; flex-shrink: 0; touch-action: manipulation; }
button:hover, .button:hover { background: var(--accent-hover); }
button:disabled { opacity: .55; cursor: wait; }
.notice { padding: 16px 20px; margin: 20px 0 28px; border: 1px solid currentColor; border-radius: 4px; background: var(--surface); overflow-wrap: anywhere; }
.error { color: var(--error); }
.success { color: var(--success); }
.secondary-link { color: var(--accent); display: inline-block; min-height: 44px; padding: 12px; text-underline-offset: 3px; }
.copy-value { display: block; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); padding: 14px; font-size: 13px; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; color: var(--muted); font-size: 12px; }
.settings-form { display: grid; gap: 20px; margin-bottom: 28px; }
.settings-form button { justify-self: start; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .setup { padding: 24px 20px; }
  .wordmark { margin-bottom: 40px; }
  .fields { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .form-footer p { max-width: none; }
  .form-footer button { width: 100%; }
  .requirements { gap: 6px 14px; }
  .accounts-tools button { width: 100%; }
}
textarea { resize: vertical; }
.accounts { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.accounts h3 { font-size: 18px; margin: 36px 0 16px; }
.status-line { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.accounts-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.accounts-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
.accounts-table th, .accounts-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.accounts-table th { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.accounts-table tbody tr:last-child td { border-bottom: 0; }
.cell-note { display: block; font-size: 12px; color: var(--muted); }
.badge { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
button.row-action { min-height: 36px; padding: 6px 10px; font-size: 13px; background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
button.row-action:hover { background: var(--paper); color: var(--accent-hover); }
button.row-action.remove, button.row-action.remove:hover { color: var(--error); border-color: var(--error); }
