:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Noto Sans JP", system-ui, sans-serif;
  color: #e8edf5;
  background: #10151d;
  font-synthesis: none;
  --panel: #19222d;
  --border: #344252;
  --muted: #a7b4c3;
  --accent: #67d6c0;
  --warn: #f0c674;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 1000; transform: translateY(-200%); border-radius: 6px; padding: 10px 14px; background: #fff2bd; color: #10151d; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
:focus, :focus-visible { outline: 3px solid #ffe08a !important; outline-offset: 3px !important; }
.masthead, main, footer { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0 24px; border-bottom: 1px solid var(--border); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 100%; margin-bottom: 10px; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: .08em; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 1.25rem; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: .73rem; font-weight: 700; letter-spacing: .14em; }
.provenance { display: inline-block; max-width: 100%; margin: 0; border: 1px solid #735f34; border-radius: 999px; padding: 6px 10px; color: var(--warn); font-size: .72rem; font-weight: 700; letter-spacing: .04em; white-space: normal; overflow-wrap: anywhere; }
.connection { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .9rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #a7b4c3; }
.connection[data-state="live-connected"] .status-dot { background: var(--accent); box-shadow: 0 0 12px #67d6c088; }
.connection[data-state="edge-fallback"] .status-dot,
.connection[data-state="live-lost"] .status-dot,
.connection[data-state="resync"] .status-dot { background: var(--warn); }
.connection[data-state="offline"] .status-dot,
.connection[data-state="no-current-data"] .status-dot { background: var(--muted); }
main { padding: 28px 0 42px; }
section { margin-bottom: 30px; }
.overview, .host-card, .plain-list li { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.overview { padding: 22px; }
.overview-heading, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.mode-pill, .badge { border-radius: 999px; padding: 5px 10px; background: #253c44; color: var(--accent); font-size: .75rem; font-weight: 700; }
.mode-pill[data-state="edge-fallback"], .badge[data-freshness="STALE"] { background: #3a321f; color: #ffdc97; }
.badge[data-freshness="UNKNOWN"] { background: #27303a; color: var(--muted); }
.fallback { margin: 12px 0; border-left: 3px solid var(--warn); padding: 10px 12px; background: #302a1d; color: #ffdc97; }
.notice { color: var(--muted); margin-bottom: 18px; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.time-grid div { min-width: 0; border-top: 1px solid var(--border); padding-top: 12px; }
dt { color: var(--muted); font-size: .72rem; }
dd { overflow-wrap: anywhere; margin: 5px 0 0; font-variant-numeric: tabular-nums; font-size: .84rem; }
.host-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.host-card { padding: 17px; min-width: 0; }
.host-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.host-name { margin: 0; font-size: 1rem; }
.host-id { color: var(--muted); font-size: .73rem; }
.host-state { margin: 15px 0 12px; font-size: 1.05rem; font-weight: 700; }
.host-state[data-freshness="STALE"] { color: var(--warn); }
.host-state[data-freshness="UNKNOWN"] { color: var(--muted); }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.metric-list dd { font-size: .95rem; font-weight: 600; }
.h003-runtime-health { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--border); }
.h003-runtime-health div { min-width: 0; }
.h003-runtime-health dd { font-size: .78rem; font-weight: 600; }
.h003-runtime-health[data-freshness="STALE"] dd { color: var(--warn); }
.h003-runtime-health[data-freshness="UNKNOWN"] dd { color: var(--muted); }
.host-times { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.subtle, .empty { color: var(--muted); font-size: .85rem; }
.plain-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; }
.plain-list .item-main { min-width: 0; }
.item-code { font-weight: 700; }
.item-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.window-picker { display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
select { max-width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; background: #111922; color: inherit; }
.plain-list .item-main { flex: 1 1 0; max-width: 100%; overflow-wrap: anywhere; }
.item-code, .item-meta { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--border); padding: 18px 0 28px; color: var(--muted); font-size: .78rem; }
@media (max-width: 720px) {
  .masthead { align-items: start; flex-direction: column; }
  .masthead > div { max-width: 100%; min-width: 0; }
  .connection { font-size: .78rem; }
  .overview { padding: 17px; }
  .time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-grid { grid-template-columns: 1fr; }
  .overview-heading, .section-heading { align-items: start; flex-wrap: wrap; }
  .plain-list li { flex-wrap: wrap; }
  .subtle { max-width: none; }
  .section-heading .window-picker { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.source-inspector { min-width: 0; padding: clamp(16px, 3vw, 24px); border: 1px solid #435140; border-radius: 14px; background: #141b17; }
.source-inspector-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.source-inspector-heading h2 { overflow-wrap: anywhere; }
.source-safety-label { max-width: 100%; border: 1px solid #8a5c35; border-radius: 7px; padding: 7px 9px; background: #291f17; color: #ffd090; font: 700 .68rem/1.45 ui-monospace, monospace; overflow-wrap: anywhere; }
.source-safety-copy { color: #d5c39e; font-size: .86rem; line-height: 1.55; }
.source-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 9px; margin: 16px 0; }
.source-facts div { min-width: 0; padding: 10px 12px; border: 1px solid #35443a; border-radius: 8px; background: #101713; }
.source-facts dt { color: #aebba9; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.source-facts dd { color: #e2e8dd; font: 600 .8rem/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.source-facts #source-quality-state { color: #d9e9ae; }
.source-facts #source-quality-state[data-quality="stale"],
.source-facts #source-quality-state[data-quality="edge-fallback"] { color: #ffd090; }
.source-details { margin-top: 10px; border: 1px solid #35443a; border-radius: 8px; background: #101713; }
.source-details summary { padding: 11px 13px; color: #d9e9ae; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.source-detail-copy, .source-details > p { padding: 0 14px 12px; color: #d5ddd1; font-size: .82rem; line-height: 1.6; }
.source-detail-copy ol { margin: 0; padding-left: 1.4rem; }
.source-detail-copy li + li { margin-top: 7px; }
.source-detail-copy code { color: #f0d27e; font: 600 .9em ui-monospace, monospace; overflow-wrap: anywhere; }
.source-history { display: grid; gap: 8px; margin: 0 12px 10px; padding-left: 1.55rem; }
.source-history-entry { min-width: 0; padding: 9px 10px; border: 1px solid #344239; border-radius: 7px; background: #141b17; overflow-wrap: anywhere; }
.source-history-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #d9e9ae; font: 600 .73rem/1.5 ui-monospace, monospace; }
.source-history-time { color: #c2cbbd; }
.source-history-reason { margin: 5px 0 0; color: #d5ddd1; font-size: .8rem; line-height: 1.5; }
.source-history-empty { color: #aebba9; font-size: .82rem; }
@media (max-width: 620px) {
  .source-inspector-heading { align-items: start; flex-direction: column; }
  .source-facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
  .source-history-entry { padding: 8px; }
}

#fixed-id-console{margin:26px 0 18px;padding:clamp(16px,3vw,28px);border:1px solid #435140;border-radius:16px;background:#101713;color:#e2e8dd}
#fixed-id-console .integration-warning{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:space-between;padding:12px 14px;border:1px solid #8a5c35;border-radius:8px;background:#291f17;color:#ffd090;font:600 12px/1.5 ui-monospace,monospace}
#fixed-id-console .integration-warning strong,#fixed-id-console .integration-warning span{min-width:0;overflow-wrap:anywhere}
#fixed-id-console .integration-warning span{color:#e7c29a;font-weight:400}
#fixed-id-console .integration-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:22px 0 12px}
#fixed-id-console .integration-heading h2{margin:2px 0;font-size:clamp(20px,3vw,28px)}
#fixed-id-console .integration-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:16px 0}
#fixed-id-console .integration-facts div{padding:10px 12px;border:1px solid #35443a;border-radius:7px;background:#141b17;min-width:0}
#fixed-id-console .integration-facts dt{font-size:10px;color:#aebba9;text-transform:uppercase;letter-spacing:.08em}
#fixed-id-console .integration-facts dd{margin:5px 0 0;overflow-wrap:anywhere;font:600 12px/1.4 ui-monospace,monospace;color:#d9e9ae}
#fixed-id-console .table-scroll{max-width:100%;overflow:auto;border:1px solid #344239;border-radius:8px;outline-offset:3px}
#fixed-id-console .registry-table{width:100%;min-width:1040px;table-layout:fixed;border-collapse:collapse;font:11px/1.4 ui-monospace,monospace}
#fixed-id-console .registry-table caption{caption-side:top;padding:8px 9px;color:#d9e9ae;text-align:left;font-size:12px;font-weight:600}
#fixed-id-console .registry-table th:nth-child(1){width:74px}
#fixed-id-console .registry-table th:nth-child(2){width:105px}
#fixed-id-console .registry-table th:nth-child(3){width:200px}
#fixed-id-console .registry-table th:nth-child(4){width:225px}
#fixed-id-console .registry-table th:nth-child(5){width:206px}
#fixed-id-console .registry-table th:nth-child(6){width:230px}
#fixed-id-console th{background:#263329;color:#d9e9ae;text-align:left}
#fixed-id-console th,#fixed-id-console td{padding:8px 9px;border-bottom:1px solid #28342d;vertical-align:top;overflow-wrap:anywhere}
#fixed-id-console td:first-child{color:#f0d27e;font-weight:700;white-space:nowrap}
#fixed-id-console td:nth-child(2){color:#9eb2a0}
#fixed-id-console .registry-table tr[data-status^="UNKNOWN"] td:nth-child(4){color:#aeb6b0}
#fixed-id-console .registry-table tr[data-status^="STALE"] td:nth-child(4){color:#ffc079}
#fixed-id-console .registry-table tr[data-status^="TEST_ONLY"] td:nth-child(4){color:#9ee6bf}
@media(max-width:700px){#fixed-id-console .integration-heading{align-items:start;flex-direction:column}#fixed-id-console .integration-facts{grid-template-columns:repeat(2,minmax(0,1fr))}#fixed-id-console{margin-left:-4px;margin-right:-4px;padding:14px 10px}}
#fixed-id-console .table-scroll:focus,#fixed-id-console .table-scroll:focus-visible{outline:3px solid #ffe08a!important;outline-offset:3px!important}
