/* Colours: the page, the header and the View · Panel layout (shared/frame/frame.css). Colours come from the --sl-*
   tokens that shared/theme/theme.js sets on every page (with fallbacks). The cards and swatches: view.css. */
:root {
  --co-bg: var(--sl-background, #161616); --co-panel: var(--sl-surface, #1f1f1f); --co-line: var(--sl-border, #333);
  --co-fg: var(--sl-text, #ececec); --co-dim: var(--sl-muted, color-mix(in srgb, var(--co-fg) 72%, var(--co-bg)));
  --co-accent: var(--sl-accent, #e7efff); --co-radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--co-bg); color: var(--co-fg); font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  display: flex; flex-direction: column; overflow: hidden; }
h2, h3, p { margin: 0; }
.co-bar { position: sticky; top: 0; z-index: 5; background: var(--co-panel); border-bottom: 1px solid var(--co-line); padding: 0 16px;
  --tlbx-hbtn-h: 36px; --tlbx-hbtn-radius: 8px; --tlbx-hbtn-bg: var(--co-panel); --tlbx-hbtn-line: var(--co-line); --tlbx-hbtn-fs: 13px; }
.co-bar .brand { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: var(--co-accent); text-decoration: none; }
.co-main { flex: 1 1 auto; min-height: 0; }
.co-view { display: flex; flex-direction: column; gap: 14px; padding: 16px; overflow-y: auto; }
.co-view > * { width: 100%; max-width: 960px; margin-inline: auto; }
/* the panel's settings, the colour's values (js/values.js) and the contrast pair */
.co-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.co-native { width: 100%; height: 40px; padding: 2px; border: 1px solid var(--co-line); border-radius: 8px; background: var(--co-panel); cursor: pointer; }
.co-panel input[type=text], .co-panel input[type=number], .co-panel select, .co-con-pair input, .co-vv { font: inherit; width: 100%; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--co-line); background: var(--co-bg); color: var(--co-fg); min-height: 36px; }
.co-vv[aria-invalid=true], .co-con-pair input[aria-invalid=true] { border-color: #d92d20; }
.co-vv { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 13px; }
@media (pointer: coarse) { .co-panel input, .co-panel select, .co-con-pair input, .co-vv { min-height: 44px; } }
