/* arcweb styles. Palette and type follow the arcadyo.com design system (site/src/styles/global.css): dark only, the same
   tokens. External web fonts are not loaded (no third-party requests); the same stacks fall back to system fonts. */
:root {
  --bg: #0e0f10;
  --surface: #15171a;
  --line: #2c2f36;
  --inactive: #3a3d44;
  --muted: #9aa0aa;
  --text-2: #b3b8c2;
  --ink: #e9e6df;
  --accent: #ffb020;
  --ok: #8fd18f;
  --problem: #ff6b5a;
  --warn: #ffb020;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 8px;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 700; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 20px; margin-top: 8px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
header.site .brand { font-weight: 700; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; font-size: 18px; }
header.site .brand span { color: var(--accent); }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; align-items: center; }
header.site nav a, header.site nav button.link { color: var(--text-2); text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
header.site nav a:hover, header.site nav button.link:hover { color: var(--accent); }
button.link { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
form.inline { display: inline; margin: 0; }
main { padding: 24px 0 48px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
footer.site a { color: var(--text-2); }
.banner { background: #2a2108; border-bottom: 1px solid var(--warn); color: var(--ink); padding: 10px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
.card.warn { border-color: var(--warn); }
.card.bad { border-color: var(--problem); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--inactive); font-weight: 700; font-size: 14px; }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.busy { color: var(--accent); border-color: var(--accent); }
.badge.warn { color: var(--warn); border-color: var(--warn); }
.badge.bad { color: var(--problem); border-color: var(--problem); }
.badge.sleep { color: var(--text-2); }
.flash { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); margin: 0 0 16px; background: var(--surface); }
.flash.ok { border-color: var(--ok); }
.flash.warn { border-color: var(--warn); }
.flash.error { border-color: var(--problem); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: #0e0f10; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffc24d; color: #0e0f10; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--inactive); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.danger { background: transparent; color: var(--problem); border-color: var(--problem); }
.btn.danger:hover { background: var(--problem); color: #0e0f10; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
label { display: block; font-weight: 700; margin: 0 0 4px; }
input[type=text], input[type=email], input[type=number], textarea, select { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--inactive); background: var(--bg); color: var(--ink); font: inherit; }
textarea { min-height: 96px; font-family: var(--font-mono); }
.field { margin: 0 0 16px; }
.field .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.field .err { color: var(--problem); font-size: 14px; margin-top: 4px; font-weight: 700; }
.connect { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.connect code { flex: 1 1 220px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--inactive); border-radius: var(--radius); word-break: break-all; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
th { color: var(--text-2); font-weight: 700; }
.tablewrap { overflow-x: auto; }
pre.log { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; white-space: pre-wrap; word-break: break-word; margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.draft { border: 2px dashed var(--warn); padding: 12px 16px; border-radius: var(--radius); color: var(--warn); font-weight: 700; margin-bottom: 20px; }
.wrapid { word-break: break-all; }
.sr-copy { position: fixed; left: -9999px; top: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .card { padding: 16px; }
  header.site nav { margin-left: 0; width: 100%; }
}
