/* Shared look of the developer console and the API reference. */
:root {
  --bg: #f7f8fa; --surface: #ffffff; --text: #17202a; --muted: #5b6672; --line: #dfe3e8;
  --accent: #0b6bcb; --accent-ink: #ffffff; --ok: #1a7f4b; --warn: #a86400; --bad: #b3261e;
  --ok-bg: #e4f4ea; --warn-bg: #fdf0d8; --bad-bg: #fbe5e3; --info-bg: #e6f0fb; --code-bg: #eef1f4;
  --radius: 8px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b; --surface: #1a2027; --text: #e7ebef; --muted: #98a3af; --line: #2c343d;
    --accent: #5aa7ff; --accent-ink: #08131f; --ok: #5fcf93; --warn: #f0b255; --bad: #ff8a80;
    --ok-bg: #16301f; --warn-bg: #36290f; --bad-bg: #3a1a18; --info-bg: #14263a; --code-bg: #232b34;
  }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
code, pre, .mono { font-family: var(--mono); font-size: .875em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: .75rem 1rem; border-radius: var(--radius); overflow: auto; margin: .5rem 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: .5rem; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top nav { margin-left: auto; display: flex; gap: 1rem; flex-wrap: wrap; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .8rem; cursor: pointer; min-height: 36px; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem; min-height: 36px; max-width: 100%; }
textarea { width: 100%; min-height: 5rem; }
label { display: block; font-size: .85rem; color: var(--muted); margin: .5rem 0 .2rem; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--info-bg); }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.scroll { overflow-x: auto; }
