:root {
  color-scheme: light dark;
  --accent: #2456e6;
  --line: #8884;
  --danger: #c53030;
  --ring: #2456e6;
  --muted: color-mix(in srgb, CanvasText 72%, Canvas);
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --danger: #ff8a8a; --ring: #9bb4ff; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, sans-serif;
}
header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 16px 20px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.brand { font-weight: 700; text-decoration: none; color: inherit; }
header a { display: inline-block; min-height: 24px; min-width: 24px; padding: 4px 0; line-height: 1.5; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; margin: 12px 0; text-wrap: balance; }
h2 { margin-top: 2.2rem; }
h3 { margin-bottom: 0; font-size: 1rem; }
.lede { font-size: 1.1rem; }
.button {
  display: inline-block;
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
/* The ad slot keeps its height whatever fills it (or nothing), so the page never shifts. */
.ad-slot { height: 250px; overflow: hidden; contain: strict; margin: 36px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.ads-off .ad-slot { display: none; }
.ad-label { display: block; opacity: .65; font-size: .75rem; margin-bottom: 8px; }
.house-card { display: block; padding: 14px 16px; border-radius: 10px; background: #2456e612; color: inherit; text-decoration: none; }
.house-card strong { display: block; color: var(--accent); }
.house-card span { display: block; margin-top: 4px; font-size: .95rem; }
.consent { position: fixed; inset: auto 12px 12px 12px; max-width: 44rem; margin: 0 auto; padding: 14px 16px; border-radius: 12px; background: Canvas; color: CanvasText; border: 1px solid var(--line); box-shadow: 0 6px 24px #0004; z-index: 10; }
.consent div { display: flex; gap: 10px; flex-wrap: wrap; }
.consent button { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--accent); background: transparent; color: inherit; font: inherit; cursor: pointer; }
footer { margin-top: 40px; color: var(--muted); font-size: .9rem; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
/* The option 125 settings group */
#tool { margin-top: 20px; }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 6px; }
.field input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #767676;
  border-radius: 6px;
  background: Canvas;
  color: CanvasText;
  font: 15px/1.5 var(--mono);
}
.field .hint { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.field .error { margin: 4px 0 0; color: var(--danger); font-weight: 600; }
.field .error:empty {
  margin: 0;
}
#output { margin-top: 20px; }
#output:empty {
  margin: 0;
}
#output h2 { margin-top: 0; }
pre.value {
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid #767676;
  border-radius: 12px;
  font: 15px/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
code { font-family: var(--mono); }
.paste { margin-top: 16px; }
.paste h3 { margin: 0; }
.paste .reason { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.paste .status { margin: 4px 0 0; min-height: 1.6em; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; animation: none; }
}
