.field-demo {
  --demo-paper: #fff;
  --demo-line: #d8e4da;
  --demo-canvas: #f6f8f3;
  --demo-ink: #182b22;
  --demo-mute: #4e6256;
  --demo-green: #24513c;
  color: var(--demo-ink);
  margin-block: clamp(24px, 4vw, 54px) 0;
  font-size: .94rem;
  line-height: 1.45;
}
.demo-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.demo-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.05em; margin: 4px 0 9px; }
#demo-context { font-size: .87rem; font-weight: 650; color: var(--demo-green); }
#demo-lead { color: var(--demo-mute); max-width: 64ch; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.demo-controls .demo-choice { display: grid; gap: 3px; color: var(--demo-mute); font-size: .78rem; font-weight: 650; }
.demo-controls select { min-height: 38px; font-weight: 650; }
.demo-tabs { display: flex; gap: 3px; border-bottom: 1px solid #ccdacc; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 2px 0; margin-inline: -2px; }
.demo-tabs[hidden] { display: none; }
.demo-tabs button { flex: 0 0 auto; min-height: 46px; padding: 7px clamp(9px, 1.6vw, 19px); background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; color: var(--demo-mute); font: inherit; font-weight: 700; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { color: #1d5235; background: #eaf1e8; border-bottom-color: #327344; }
.demo-tabs button:hover { background: #edf2eb; }
.demo-tabs button:focus-visible { outline-offset: -3px; }
.demo-panel { margin-top: 15px; }
.demo-panel:focus-visible { outline: 3px solid #2785a9; outline-offset: 4px; }
.demo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: start; }
.demo-grid > * { min-width: 0; }
.demo-grid + .demo-grid, .demo-grid + .demo-card, .demo-card + .demo-grid, .demo-console + .demo-grid { margin-top: 13px; }
.demo-card { padding: clamp(13px,2vw,22px); background: var(--demo-paper); border: 1px solid var(--demo-line); border-radius: 12px; }
.demo-card h2,.demo-card h3,.demo-console h2,.demo-console h3 { margin: 0; line-height: 1.2; letter-spacing: -.025em; }
.demo-card h2,.demo-card h3 { font-size: clamp(1.06rem,2.2vw,1.34rem); }
.demo-card .demo-intro { color: var(--demo-mute); margin-top: 7px; }
.demo-meta { color: var(--demo-mute); font-size: .82rem; }
.demo-card .demo-meta,.demo-console .demo-meta { margin-top: 9px; }
.demo-meta a { text-underline-offset: 2px; }
.demo-console { background: #14251f; color: #edf6ef; border-radius: 13px; border: 1px solid #384e43; padding: clamp(12px,1.9vw,22px); }
.demo-console .demo-meta { color: #c0d3c6; }
.demo-console .demo-meta a { color: #e4f2e8; }
.demo-console .demo-value { color: #a8e8ae; }
.demo-console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 13px; }
.demo-console-head h2 { font-size: 1.32rem; }
.demo-console-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: start; gap: 12px; }
.demo-visual { position: relative; margin: 0; }
.demo-visual img { width: 100%; height: clamp(245px,42vh,390px); object-fit: cover; object-position: 64% 23%; display: block; border-radius: 8px; border: 1px solid #42564a; background: #2c4236; }
.demo-overview-map img { object-position: 68% 23%; }
.demo-visual .demo-image-error { position: absolute; top: 45%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 93%; padding: 8px 10px; color: #172b20; background: #fff; border-radius: 6px; }
.demo-visual .demo-ramp { background: #12221bed; border: 1px solid #40594b; color: #f6fbf6; font-size: .75rem; padding: 5px 7px; position: absolute; right: 8px; bottom: 8px; border-radius: 5px; min-width: 92px; }
.demo-ramp-color { display: block; margin: 4px 0 3px; height: 5px; border-radius: 5px; }
.demo-ramp div { display: flex; justify-content: space-between; gap: 10px; }
.demo-sat-controls { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.demo-sat-controls button { min-height: 37px; padding: 5px 10px; background: #223b30; border: 1px solid #4b6657; border-radius: 6px; color: #f0f8f2; font: inherit; font-size: .85rem; font-weight: 680; cursor: pointer; }
.demo-sat-controls button:hover { background: #294638; }
.demo-sat-controls button[aria-pressed="true"] { border-color: #a8e8ae; background: #a8e8ae; color: #153122; }
.demo-index-info { background: #1d3329; padding: 13px; border-radius: 8px; border: 1px solid #3e5749; }
.demo-index-info h3 { font-size: 1.04rem; margin-bottom: 5px; }
.demo-index-info p + p { margin-top: 7px; }
.demo-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 110px),1fr)); gap: 8px; margin: 13px 0 0; }
.demo-metrics div { background: #f0f5ef; border: 1px solid #e3ebe2; border-radius: 7px; min-width: 0; padding: 9px 10px; }
.demo-console .demo-metrics div { background: #1e3329; border-color: #3c5649; }
.demo-metrics dt { color: var(--demo-mute); font-size: .81rem; overflow-wrap: anywhere; }
.demo-console .demo-metrics dt { color: #c5d7ca; }
.demo-metrics dd { margin: 3px 0 0; font-weight: 720; font-size: clamp(1.1rem,1.9vw,1.4rem); line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.demo-metrics dd small { display: block; font-weight: 530; color: var(--demo-mute); font-size: .72rem; margin-top: 3px; }
.demo-console .demo-metrics dd small { color: #c5d7ca; }
.demo-value { display: block; font-size: clamp(1.7rem,4.5vw,2.7rem); font-weight: 750; letter-spacing: -.05em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.demo-reading + .demo-reading { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--demo-line); }
.demo-reading { display: grid; gap: 3px; }
.demo-reading strong { font-size: 1rem; }
.demo-reading p { color: var(--demo-mute); }
.demo-pill { width: fit-content; padding: 3px 7px; border-radius: 4px; background: #edf0e9; color: #4e5f51; font-size: .75rem; font-weight: 650; }
.demo-pill--action { background: #f6ead6; color: #704d1d; }
.demo-tbl-wrap { overflow-x: auto; margin-top: 10px; overscroll-behavior-inline: contain; }
.demo-table { width: 100%; border-collapse: collapse; font-size: .87rem; font-variant-numeric: tabular-nums; }
.demo-table :is(th,td) { padding: 8px 7px; border-bottom: 1px solid #e5ebe4; text-align: start; vertical-align: top; white-space: nowrap; }
.demo-table thead th { color: var(--demo-mute); font-size: .78rem; font-weight: 680; }
.demo-table tbody tr:last-child > * { border-bottom: 0; }
.demo-table .demo-table-wide { white-space: normal; min-width: 120px; }
.demo-table tr[data-active] { background: #eafaed; }
.demo-console .demo-table thead th { color: #c5d7ca; }
.demo-console .demo-table tr[data-active] { background: #2a4939; }
.demo-console .demo-table :is(th,td) { border-color: #3a5547; }
.demo-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; min-width: 76px; }
.demo-bar i { height: 6px; border-radius: 3px; background: linear-gradient(90deg,#639b79 var(--fill),#e4eee4 var(--fill)); }
.demo-console .demo-bar i { background: linear-gradient(90deg,#a8e8ae var(--fill),#415d50 var(--fill)); }
.demo-climate { display: grid; gap: 6px; margin-top: 13px; }
.demo-climate-row { display: grid; grid-template-columns: 35px minmax(0,1fr) minmax(70px,auto); align-items: center; gap: 8px; font-size: .82rem; }
.demo-climate-bars { display: grid; gap: 3px; }
.demo-climate-bars i { height: 4px; border-radius: 3px; width: var(--size); background: #72a480; }
.demo-climate-bars i:first-child { background: #285c7a; }
.demo-climate-key { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 8px; color: var(--demo-mute); font-size: .79rem; }
.demo-climate-key span::before { content:""; display:inline-block; vertical-align:middle; width:8px; height:8px; border-radius: 3px; background:#72a480; margin-right:5px; }
.demo-climate-key span:first-child::before { background:#285c7a; }
.demo-disclosure { margin-top: 12px; border-top: 1px solid var(--demo-line); padding-top: 8px; }
.demo-disclosure summary { cursor: pointer; font-weight: 680; color: #24523d; }
.demo-disclosure summary:focus-visible { outline: 2px solid #3285b1; outline-offset: 3px; }
.demo-darknote { color: #c5d7ca; font-size: .84rem; }
.demo-card .demo-scout { margin: 8px 0 0; padding: 10px 12px; background: #f3f6f0; border-left: 3px solid #76a584; }
@media(max-width:850px){.demo-header{align-items:start;flex-direction:column}}
@media(max-width:680px){.demo-grid,.demo-console-grid{grid-template-columns:minmax(0,1fr)}.demo-visual img{height:clamp(210px,52vw,345px)}.demo-tabs button{min-height:42px}.demo-table :is(th,td){padding:7px 5px}}
.demo-profile-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.demo-profile-controls button { min-height: 36px; padding: 4px 10px; background: #fff; border: 1px solid #c4d8c8; color: #254936; border-radius: 6px; font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.demo-profile-controls button[aria-pressed="true"] { color: #fff; background: #24513c; border-color: #24513c; }
.demo-profile-controls button:hover { box-shadow: 0 0 0 1px #689075; }

.demo-subscribe { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:14px; }
.demo-subscribe a.world-button { color:white; }
.demo-subscribe p { color:var(--demo-mute); margin-top:4px; }
