/* ============================================================
   FRSN / Glaucus — federation board (V3 Slice C).
   Palette mirrors the repo's tactical dark ops-console tokens
   (deepdive/static/demo.css :root). Kept deliberately small.
   ============================================================ */

:root {
  --bg:        #0a0b0d;
  --panel:     #12151c;
  --panel-2:   #181c25;
  --line:      #242a34;
  --line-2:    #353d4a;
  --text:      #ccd1d9;
  --text-dim:  #888f9c;
  --blue:      #5b8def;
  --green:     #35d6a4;
  --red:       #e5484d;
  --mono:      'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px); }

/* Topbar */
.topbar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { font-weight: 700; letter-spacing: 0.08em; color: var(--blue); }
.brand .dim { color: var(--text-dim); font-weight: 400; }
.tag { font-size: 11px; letter-spacing: 0.14em; color: var(--text-dim); }

/* Site tile grid */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.site-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
}
.site-tile.unreachable { border-style: dashed; opacity: 0.75; }
.tile-head { display: flex; justify-content: space-between; gap: 8px;
             margin-bottom: 10px; }
.tile-label { font-weight: 700; }
.tile-kind {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line-2);
  border-radius: 3px; padding: 1px 6px; align-self: center; white-space: nowrap;
}
.tile-stats div { display: flex; justify-content: space-between; gap: 8px; }
.tile-stats dt { color: var(--text-dim); font-size: 12px; }
.tile-stats dd { font-variant-numeric: tabular-nums; }
.tile-unreachable { color: var(--red); font-size: 12px; letter-spacing: 0.06em; }
.empty { color: var(--text-dim); }

/* FRAI ask box */
.frai h2 { font-size: 14px; letter-spacing: 0.12em; color: var(--blue);
           margin-bottom: 6px; }
.frai-hint { color: var(--text-dim); font-size: 12px; margin-bottom: 10px; }
.frai form { display: flex; gap: 8px; }
.frai input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 4px; color: var(--text); font: inherit; padding: 8px 10px;
}
.frai input:focus { outline: none; border-color: var(--blue); }
#frai-out {
  margin-top: 14px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  white-space: pre-wrap; word-break: break-word;
  font: inherit; font-size: 14px; color: var(--text);
}

/* Buttons */
button.primary {
  background: var(--blue); border: none; border-radius: 4px;
  color: #0a0b0d; font: inherit; font-weight: 700;
  padding: 8px 18px; cursor: pointer;
}
button.primary:hover { filter: brightness(1.1); }

/* Gate */
.gate-body { display: grid; place-items: center; min-height: 100vh; }
.gate-card {
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 32px 36px; min-width: 320px;
}
.brand-name { font-weight: 700; letter-spacing: 0.1em; color: var(--blue);
              margin-bottom: 4px; }
.brand-tag { font-size: 10px; letter-spacing: 0.14em; color: var(--text-dim);
             margin-bottom: 20px; }
.gate-card label { display: block; color: var(--text-dim); font-size: 13px;
                   margin-bottom: 12px; }
.gate-card input {
  display: block; width: 100%; margin-top: 6px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 4px; color: var(--text); font: inherit; padding: 8px 10px;
}
.gate-card .error { color: var(--red); font-size: 13px; margin-top: 12px; }
