/* Overwatch Monitors. Tokens are the shell's (cobalt CLAUDE_DESIGN.md §5): light by default,
   dark through data-theme from jslc:shell-context. Owner 2026-10-03 09:46: minimalist, maximum
   vertical space, semitransparent overlays; on the phone, detail comes out in a side drawer. */
:root {
  --paper: #f6f7fa; --card: #ffffff; --ink: #111a2d; --muted: #536078; --rule: #8193bc;
  --cobalt: #002eac; --good: #16803d; --bad: #b62d35; --warn: #ad5b00;
  --glass: rgba(246, 247, 250, 0.74); --glass-solid: rgba(246, 247, 250, 0.96);
  --scrim: rgba(4, 16, 46, 0.35);
  --font: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0b1324; --card: #0f1d37; --ink: #f3f6ff; --muted: #b3bfd8; --rule: #465c8f;
  --cobalt: #93b4ff; --good: #4ade80; --bad: #ff8189; --warn: #f0a24a;
  --glass: rgba(11, 19, 36, 0.74); --glass-solid: rgba(11, 19, 36, 0.96);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #0b1324; --card: #0f1d37; --ink: #f3f6ff; --muted: #b3bfd8; --rule: #465c8f;
  --cobalt: #93b4ff; --good: #4ade80; --bad: #ff8189; --warn: #f0a24a;
  --glass: rgba(11, 19, 36, 0.74); --glass-solid: rgba(11, 19, 36, 0.96);
  color-scheme: dark;
}
* { box-sizing: border-box; touch-action: manipulation; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 12.5px/1.5 var(--font);
  min-height: 100vh;
  min-height: 100dvh;
}
.page {
  padding: 8px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  max-width: 960px;
}
.head { margin: 0 0 6px; }
.eyebrow { margin: 0; color: var(--muted); font: 700 8.75px/1.3 var(--font); letter-spacing: 0.08em; text-transform: uppercase; }
.lede-line { margin: 2px 0 0; }
.lede { font-size: 13px; font-weight: 700; }
.sub { color: var(--muted); font-size: 11.5px; }

/* Domain chips: one row that scrolls inside itself on a phone; never wraps. */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 12px/1 var(--font);
  cursor: pointer;
}
.chip span {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 13px;
}
.chip[aria-pressed="true"] span { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }

/* Rows on 1px rules, not grey cards (cobalt cic_module_and_nodes.md §1-2). */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row { border-bottom: 1px solid var(--rule); }
.row button {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.value { font: 700 17px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.value small { display: block; color: var(--muted); font: 400 11px/1.2 var(--font); }
.text .lede { display: block; }
.text .sub { display: block; }
.status-word { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.status-word::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-word[data-status="fresh"]::before { background: var(--good); }
.status-word[data-status="stale"]::before { background: var(--warn); }
.status-word[data-status="error"]::before { background: var(--bad); }
/* Skeleton rows at first paint: the frame shows at once (cobalt CLAUDE_DESIGN.md §4, overwatch.md "Load states"). */
.row.skel { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; min-height: 56px; padding: 8px 2px; }
.row.skel .bar { display: block; height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--rule) 22%, transparent); }
.row.skel .w1 { width: 44px; height: 16px; }
.row.skel .w2 { width: 70%; }
.row.skel .w3 { width: 52%; }
@media (prefers-reduced-motion: no-preference) {
  .row.skel .bar { animation: skel 1.4s ease-in-out infinite alternate; }
  @keyframes skel { from { opacity: 0.55; } to { opacity: 1; } }
}
/* One quiet line for feeds that are not connected (cobalt overwatch.md "Unavailable feeds", events-drawer .unavail). */
.unavail { margin: 8px 0 0; padding: 7px 9px; border-left: 3px solid var(--warn); border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--warn) 8%, transparent); color: var(--muted); font-size: 11px; }
.unavail b { color: var(--ink); }
.limit { margin: 12px 2px 0; color: var(--muted); font-size: 11px; }

/* Detail: a glass side drawer over the content; it never takes layout width. */
.scrim { position: fixed; inset: 0; background: var(--scrim); }
.scrim[hidden], .drawer[hidden], .unavail[hidden] { display: none; }
/* overlayInsets (cobalt shell_jslc_and_shell_cic.md §H): the shell's ◨ panel never covers this drawer. */
:root { --overlay-left: 0px; --overlay-right: 0px; }
.drawer {
  position: fixed;
  top: 0;
  right: var(--overlay-right);
  bottom: 0;
  width: min(360px, 88vw);
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) 14px;
  overflow-y: auto;
  border-left: 1px solid var(--rule);
  border-radius: 12px 0 0 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
@media (prefers-reduced-transparency: reduce) {
  .drawer { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.drawer-title { margin: 2px 0 0; font: 700 15px/1.3 var(--font); }
.close {
  min-width: 44px; min-height: 44px; margin: -8px -8px 0 0;
  border: 0; background: none; color: var(--ink); font: 400 16px/1 var(--font); cursor: pointer;
}
.drawer-value { margin: 8px 0 10px; font: 700 20px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0 0 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.facts a { color: var(--cobalt); }
.mono { font-family: var(--mono); font-size: 11.5px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (min-width: 760px) {
  .scrim { background: transparent; }
}
@media (prefers-reduced-motion: no-preference) {
  .drawer { transition: transform 160ms ease; }
}
