:root { color-scheme: light dark; font: 16px/1.55 system-ui, sans-serif; --surface: #f3f7fc; --text: #13243b; --muted: #475c75; --panel: #fff; --line: #b3c4d8; --accent: #1556a4; }
@media (prefers-color-scheme: dark) {
  :root { --surface: #0a1220; --text: #ebf3ff; --muted: #bdcde1; --panel: #111e31; --line: #526984; --accent: #8adaff; }
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--surface); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:is(button,input,select,textarea) { min-height: 44px; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
button { cursor: pointer; font-weight: 650; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scout-integration :is(header, main, footer) { width: min(100% - 2rem, 56rem); margin-inline: auto; }
.scout-integration > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.scout-integration header > a { display: flex; gap: .5rem; align-items: center; font-weight: 750; text-decoration: none; }
.scout-integration nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.scout-integration nav a { padding-block: .5rem; }
.scout-integration main { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.scout-integration h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.12; letter-spacing: -.04em; }
.scout-integration h2 { font-size: 1.3rem; margin-block: 0 .5rem; }
.scout-integration h3 { font-size: 1rem; }
.scout-integration .lead { color: var(--muted); max-width: 58ch; margin-block: .6rem 1.4rem; }
.scout-integration section { margin-block: 1rem; padding: clamp(.85rem, 3vw, 1.4rem); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.scout-integration section.starter-panel { background: #0b182b; }
.scout-integration footer { border-top: 1px solid var(--line); padding-block: 1rem; }
.scout-integration pre, #widget-code { overflow: auto; padding: .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
#widget-customize { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
#widget-customize label { display: grid; gap: .25rem; max-width: 100%; }
#widget-customize input { width: 100%; }
#widget-preview { display: block; width: min(100%, 25rem); margin-block: 1rem; border: 1px solid var(--line); border-radius: 12px; }
#widget-code { display: block; width: 100%; margin-block: .35rem .55rem; font: .82rem/1.5 ui-monospace, monospace; }
.widget-page { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.widget-header { border-top: 4px solid var(--widget-accent, #36b9ad); padding: .55rem .75rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.widget-header h1 { font-size: 1.15rem; margin: 0; overflow-wrap: anywhere; }
.widget-header a { font-size: .8rem; }
.widget-content { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; padding: .65rem .75rem; }
.widget-content > p { margin: 0; font-size: .85rem; }
.widget-starters { display: flex; flex-wrap: wrap; gap: .35rem; }
.widget-starters button { font-size: .79rem; min-height: 44px; border-radius: 24px; }
.widget-starters button:hover { border-color: var(--accent); }
.widget-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: .5rem 0; }
.widget-range div { min-width: 0; padding: .45rem; background: var(--surface); border-radius: 7px; font-variant-numeric: tabular-nums; }
.widget-range dt { color: var(--muted); font-size: .75rem; }
.widget-range dd { margin: 0; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.widget-thread { display: grid; gap: .6rem; }
.widget-thread article { padding: .55rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow-wrap: anywhere; }
.widget-thread p { margin: .2rem 0; white-space: pre-wrap; font-size: .87rem; }
.widget-thread ul { font-size: .8rem; padding-inline-start: 1.2rem; }
.widget-footer { padding: .5rem .75rem; background: var(--panel); border-top: 1px solid var(--line); }
.widget-footer form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem; align-items: end; }
.widget-footer label, .widget-footer small { font-size: .75rem; color: var(--muted); }
.widget-footer label { grid-column: 1 / -1; }
.widget-footer textarea { resize: vertical; max-height: 108px; min-width: 0; }
