/* The client area, in the site's own look: overwatchcad.com's colours and type. */
:root {
  --bg: #0d1118; --surface: #151b25; --raised: #1c2431; --line: #2a3445;
  --fg: #e9eef6; --muted: #a3afc2; --faint: #6f7c91;
  --accent: #3fa7f0; --on-accent: #0a0d13; --p1: #e5484d; --ok: #1f9d55; --warn: #eab308; --blue: #2f5fe6;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef2f7; --surface: #ffffff; --raised: #e4eaf2; --line: #cfd8e4;
    --fg: #0f1621; --muted: #3f4b5c; --faint: #6b778a;
    --accent: #0a6bbf; --on-accent: #ffffff; --p1: #c42b26; --ok: #0f8a4c; --blue: #1d4ed8;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.top { display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); text-decoration: none; white-space: nowrap; }
.mark svg { width: 24px; height: 24px; color: var(--accent); }
.who { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; }
.lay { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: calc(100vh - 57px); }
.nav { border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--raised); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--raised); color: var(--fg); font-weight: 600; }
.main { padding: 24px clamp(16px, 3vw, 32px) 48px; display: flex; flex-direction: column; gap: 16px; max-width: 980px; width: 100%; }
.solo { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; gap: 24px; }
.solo .main { max-width: 420px; padding: 0; }
@media (max-width: 720px) {
  .lay { grid-template-columns: 1fr; }
  .nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .who { display: none; }
}

.h { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; margin: 0; }
.h2 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; margin: 0; }
.eb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.mu { color: var(--muted); }
.fa { color: var(--faint); font-size: 14px; }
.mono { font-family: var(--mono); font-size: 13px; }
.wrap { overflow-wrap: anywhere; }
.big { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.big-line { font-weight: 600; font-size: 17px; margin: 4px 0 8px; overflow-wrap: anywhere; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row .btn { margin-left: auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stack { gap: 14px; }
.top-gap { margin-top: 12px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1.3fr 140px; gap: 12px; }
@media (max-width: 720px) { .row3 { grid-template-columns: 1fr; } }

.chip { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.c-ok { background: var(--ok); color: #fff; }
.c-due { background: var(--warn); color: #111827; }
.c-od { background: #d92d2d; color: #fff; }
.c-ac { background: var(--blue); color: #fff; }
.c-n { background: var(--raised); color: var(--fg); border: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; color: var(--fg); background: var(--raised); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.p { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.danger { color: var(--p1); }
.link { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
.link.danger { color: var(--p1); }
.inline { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0; }
.field small { color: var(--faint); font-size: 13px; }
.radio { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-top: 4px; }
input:not([type="radio"]), select, textarea { font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; width: 100%; }
select { width: auto; min-width: 120px; }
.row3 select { width: 100%; }
.error { color: var(--p1); font-weight: 600; }
.notice { background: var(--raised); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 0 6px 6px 0; padding: 10px 14px; }
.qr { background: #fff; border-radius: 8px; padding: 10px; width: 200px; align-self: center; }
.qr svg { display: block; width: 100%; height: auto; }

.dl-head { display: flex; gap: 16px; align-items: flex-start; }
.dl-head .btn { margin-left: auto; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.cmd code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 6px 12px; margin: 4px 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.releases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.releases ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.rel-head { display: flex; gap: 10px; align-items: center; }

.tb { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tb td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) { .tb th:nth-child(3), .tb td:nth-child(3) { display: none; } .kv { grid-template-columns: 1fr; } }
.card > .btn, .stack > .btn, .card > form > .btn { align-self: flex-start; }
a.card.plain { color: inherit; text-decoration: none; }
a.card.plain:hover { border-color: var(--faint); }
.thread { gap: 0; padding: 0; }
.msg { padding: 14px 18px; border-top: 1px solid var(--line); border-left: 4px solid transparent; }
.msg:first-child { border-top: 0; }
.msg.us { border-left-color: var(--accent); background: var(--raised); }
.msg-head { margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { resize: vertical; }
.guide { gap: 12px; max-width: 760px; }
.guide h2 { margin-top: 10px; }
.guide ul, .steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.box.wide { max-width: 680px; }
.solo .main:has(.box.wide) { max-width: 680px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.box.wide .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .box.wide .row2 { grid-template-columns: minmax(0, 1fr); } }
