/* Matches the agreed prototype (claude.ai/artifact/QzjUfjXLScSQ4hxDqci9Fi). */
:root {
  --bg: #0F1115; --bar: #12151B; --card: #171A21; --raised: #1D212A; --line: #2A2F3A; --line2: #3B4252;
  --text: #E8EAF0; --muted: #A0A8B8; --faint: #6B7385; --accent: #6EE7B7; --accent-ink: #0B1A14;
  --ok-bg: #12251F; --ok-line: #1F6B52; --ok-text: #A7F3D0;
  --warn-bg: #2A2113; --warn-line: #6B5316; --warn-text: #FCD34D;
  --bad-line: #7F2D2D; --bad-text: #F87171;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'IBM Plex Sans', system-ui, sans-serif;
       font-size: 15px; line-height: 1.5; }
a { color: var(--accent); } a:hover { color: var(--ok-text); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2 { font-family: 'Bricolage Grotesque', sans-serif; }
h1 { margin: 0 0 6px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { margin: 0; font-size: 22px; font-weight: 600; }
h3 { margin: 0; font-size: 17px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 13px; }
.mono { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.lead { color: var(--muted); max-width: 640px; }

/* top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
       padding: 14px 32px; border-bottom: 1px solid var(--line); background: var(--bar); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; letter-spacing: -0.01em; }
.pill { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--line2); display: inline-flex;
          align-items: center; justify-content: center; font-size: 13px; font-weight: 600; overflow: hidden; }
.avatar img, .gicon img { width: 100%; height: 100%; }
.gicon { width: 24px; height: 24px; border-radius: 7px; background: var(--line2); display: inline-flex;
         align-items: center; justify-content: center; font-size: 11px; font-weight: 600; overflow: hidden; flex: 0 0 auto; }
.gpick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--raised);
         border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }

/* layout */
.wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; padding: 28px 32px 48px; }
.side { flex: 0 0 220px; display: flex; flex-direction: column; gap: 6px; }
.side a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px;
          border: 1px solid transparent; border-radius: 10px; text-decoration: none; color: var(--muted); }
.side a[aria-current] { background: var(--raised); border-color: var(--accent); color: var(--text); font-weight: 600; }
.side a span { font-size: 12px; } .side a[aria-current] span { color: var(--accent); }
.side p { margin: 20px 4px 0; font-size: 13px; color: var(--muted); }
main { flex: 999 1 560px; min-width: 0; max-width: 900px; display: flex; flex-direction: column; gap: 24px; }
.narrow { max-width: 900px; margin: 0 auto; padding: 40px 32px; display: flex; flex-direction: column; gap: 24px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
        display: flex; flex-direction: column; gap: 16px; }
.card.big { padding: 28px; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.row { display: flex; flex-wrap: wrap; gap: 24px; } .row > * { flex: 1 1 320px; }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.panel { padding: 16px; background: var(--raised); border-radius: 12px; }
.ok { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--ok-bg);
      border: 1px solid var(--ok-line); border-radius: 12px; }
.warn { padding: 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px;
        font-size: 14px; color: var(--warn-text); }
.flash { padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.flash.good { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-text); }
.flash.bad { background: #2A1515; border: 1px solid var(--bad-line); color: #FCA5A5; }
ol.steps-help { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
ol.steps-help strong { color: var(--text); }

/* badges */
.badge { font-size: 13px; border-radius: 999px; padding: 2px 12px; border: 1px solid var(--line); color: var(--muted);
         white-space: nowrap; }
.badge.on { color: var(--accent); border-color: var(--ok-line); }
.badge.warnb { color: var(--warn-text); border-color: var(--warn-line); }

/* forms */
label.f { font-size: 14px; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px; }
input[type=password], input[type=text], select {
  min-height: 48px; width: 100%; padding: 0 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line2); border-radius: 10px; }
input.key, input.num { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.btn { min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); border: 0;
       border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex;
       align-items: center; justify-content: center; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); font-weight: 400; padding: 0 18px; }
.btn.danger { background: transparent; color: var(--bad-text); border: 1px solid var(--bad-line); font-weight: 400; padding: 0 16px; }
.btn.sm { min-height: 44px; padding: 0 16px; }
.btn[aria-pressed=true] { cursor: default; }
.btn.off { background: transparent; color: var(--faint); border: 1px dashed var(--line2); cursor: not-allowed; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
form.inline { display: inline; }

/* switch (a real checkbox, styled) */
.switch { position: relative; flex: 0 0 auto; width: 60px; height: 44px; display: flex; align-items: center; justify-content: center; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { width: 48px; height: 28px; border-radius: 999px; background: var(--line2); display: flex;
               align-items: center; padding: 0 3px; pointer-events: none; }
.switch span::after { content: ""; width: 22px; height: 22px; border-radius: 999px; background: var(--text); }
.switch input:checked + span { background: var(--accent); justify-content: flex-end; }
.switch input:checked + span::after { background: var(--accent-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; } .switch input:disabled + span { opacity: .5; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px;
              border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; background: var(--raised); }

/* stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stepper a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
             border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.stepper a.done { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.stepper a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* tables, lists */
.tablebox { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { color: var(--muted); font-weight: 500; } tbody th { font-weight: 400; }
td.no { color: var(--faint); }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; }
.event time { flex: 0 0 110px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); }
.event div { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
progress.meter { appearance: none; width: 100%; height: 10px; border: 0; background: var(--bg); border-radius: 999px; overflow: hidden; }
progress.meter::-webkit-progress-bar { background: var(--bg); }
progress.meter::-webkit-progress-value { background: var(--accent); }
progress.meter::-moz-progress-bar { background: var(--accent); }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.server { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line);
          border-radius: 14px; text-decoration: none; color: var(--text); min-height: 72px; }
.server .gicon { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
.server:hover { border-color: var(--accent); }
.howto { display: flex; flex-wrap: wrap; gap: 16px; } .howto > div { flex: 1 1 240px; padding: 18px; background: var(--raised);
         border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.transcript { padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
              display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 700px) {
  .top, .wrap { padding-left: 16px; padding-right: 16px; }
  .side { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; } .side a { flex: 1 1 auto; } .side p { display: none; }
  .narrow { padding: 24px 16px; }
  h1 { font-size: 28px; }
}
