/* rospoincerto GUI v38 — full restyle (adult, restrained, consistent) */

:root{
  --bg0:#0b0c0f;
  --bg1:#0f1117;
  --panel:#141824;
  --panel2:#171c2a;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.14);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --faint:rgba(255,255,255,.50);

  --accent:;
  :#9ee7d3;
  --danger:#ff6b6b;
  --warn:#ffd166;

  --shadow:0 10px 30px rgba(0,0,0,.35);
  --shadow2:0 6px 16px rgba(0,0,0,.28);

  --r-sm:10px;
  --r:14px;
  --r-lg:18px;

  --topbar-h:76px;
  --sidebar-w:260px;

  --font-sans: "IBM Plex Sans", ui-sans-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-sans-serif: "IBM Plex Sans", ui-sans-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{
  background: #0a0a0a;
  color: rgba(255,255,255,.78);
}


/* Links */
a{ color:inherit; text-decoration:none; }
a:hover{ color:rgba(255,255,255,.96); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:3px solid ,.35);
  outline-offset:2px;
  border-radius:12px;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:80;
  height:var(--topbar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(13,15,21,.78);
  backdrop-filter: blur(14px);
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  min-width: 260px;
}
.brand-logo{
  width:38px; height:38px;
  border-radius:12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.35);
}
.brand-title{
  font-family: ui-sans-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-sans-serif;
  font-weight:650;
  letter-spacing:.2px;
  font-size:18px;
  line-height:1.1;
}
.brand-subtitle{
  margin-top:3px;
  font-size:12.5px;
  color:var(--muted);
  max-width: 56ch;
}
.status{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
  min-width: 280px;
}
.status-row{ display:flex; gap:10px; align-items:center; }
.status-text{ font-size:12.5px; color:var(--muted); }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.88);
  font-size:12.5px;
  white-space:nowrap;
}

/* Non-blocking progress bar (topbar) */
.topbar-progress{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:2px;
  background:transparent;
  overflow:hidden;
  pointer-events:none;
}
body.is-loading .topbar-progress::before{
  content:"";
  display:block;
  height:100%;
  width:42%;
    animation: loadbar 1.1s ease-in-out infinite;
}
@keyframes loadbar{
  0%{ transform:translateX(-120%); opacity:.2; }
  40%{ opacity:1; }
  100%{ transform:translateX(260%); opacity:.2; }
}

/* Shell layout */
.shell{
  display:grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap:16px;
  align-items:start;
  padding:16px;
  max-width: 1400px;
  margin: 0 auto;
}
.sidenav{
  position:sticky;
  top: calc(var(--topbar-h) + 16px);
  align-self:start;
  height: calc(100vh - var(--topbar-h) - 32px);
  overflow:auto;
  padding:14px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
}
.sidenav-title{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.62);
  margin: 4px 0 10px;
}
.navlink{
  display:block;
  padding:10px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.84);
  border:1px solid transparent;
}
.navlink:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.navlink:active{ transform: translateY(1px); }
.sidenav-foot{ margin-top:14px; }
.small{ font-size:12.5px; }
.muted{ color: var(--muted); }

.content{
  min-width:0;
}
.section{
  margin: 0 0 18px;
  padding: 0;
}
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin: 10px 4px 10px;
}
.section h2{
  margin:0;
  font-family: var(--font-sans);
  font-weight:650;
  font-size: 22px;
  letter-spacing:.2px;
}
.section-sub{
  margin-top:6px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 92ch;
}
.head-right{ display:flex; gap:10px; align-items:center; }

.panel{
  border-radius: var(--r-lg);
  border:1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
}
.panel-inner{
  padding: 16px;
}

/* Grids */
.info-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}
@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; }
  .sidenav{ position:relative; top:0; height:auto; }
  .info-grid{ grid-template-columns: 1fr; }
}

/* Manifesto callout */
.info-card{
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,24,36,.55);
  padding: 14px;
}
.info-card h3{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: rgba(255,255,255,.78);
}
.info-card p{ margin: 0 0 10px; color: rgba(255,255,255,.84); }
.info-card p:last-child{ margin-bottom: 0; }

.manifesto{
    border-left: 3px solid ,.55);
}
.manifesto p:first-child{
  font-size: 14.5px;
  color: rgba(255,255,255,.90);
}
.manifesto p{ line-height: 1.55; }

/* Controls */
.field{ margin: 0 0 12px; }
.lbl{
  display:block;
  font-size: 12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: rgba(255,255,255,.70);
  margin: 0 0 6px;
}
.input, input[type="text"], input[type="number"], select, textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,18,.55);
  color: rgba(255,255,255,.90);
  font-family: var(--font-sans);
}
textarea{ min-height: 90px; resize: vertical; }
.input::placeholder, input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.40); }

.label-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.hint{
  font-size: 12.5px;
  color: rgba(255,255,255,.58);
}

/* Buttons */
.btn, button{
  font-family: var(--font-sans);
}
.actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.btn:active{ transform: translateY(1px); }

.btn.primary, .primary{
  background: ,.18);
  border-color: ,.35);
}
.btn.primary:hover, .primary:hover{
  background: ,.24);
  border-color: ,.48);
}
.btn.ghost, .ghost{
  background: transparent;
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.84);
}
.icon-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

/* Release popover */
.popover{
  position: relative;
}
#releaseVarsPopover{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: min(640px, 92vw);
  max-height: 360px;
  overflow:auto;
  padding: 14px;
  border-radius: var(--r-lg);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,14,20,.96);
  box-shadow: var(--shadow);
}
.popover-title{
  font-family: var(--font-sans);
  font-size: 16px;
  margin: 0 0 8px;
}
.codebox{
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 10px;
}
.codebox code{
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.82);
  white-space: normal;
  word-break: break-word;
}

/* Explore layout */
.grid-two{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
}
@media (max-width: 980px){
  .grid-two{ grid-template-columns: 1fr; }
}

/* Filters area */
.filters{
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - 36px);
  overflow:auto;
  padding-right: 2px;
}
.filters-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom: 8px;
}

/* Results */
.results-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
}
.results-meta{ color: var(--muted); font-size: 13px; }

.results-topnav{
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  z-index: 60;
  display:flex;
  gap:10px;
  padding: 10px;
  margin: 10px 0 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,14,20,.72);
  backdrop-filter: blur(14px);
}
.results-topnav a{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.results-topnav a:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
}

/* Tables */
table{ width:100%; border-collapse: separate; border-spacing:0; }
th, td{ text-align:left; padding: 10px 10px; border-bottom:1px solid rgba(255,255,255,.08); vertical-align: top; }
th{
  position: sticky;
  top: calc(var(--topbar-h) + 64px);
  z-index: 5;
  background: rgba(12,14,20,.92);
  backdrop-filter: blur(12px);
  font-size: 12px;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
tbody tr:nth-child(2n){
  background: rgba(255,255,255,.02);
}
tbody tr:hover{
  background: ,.06);
}
.download-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){
  .download-grid{ grid-template-columns: 1fr; }
}

/* Charts */
.charts-h{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.charts-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .charts-grid{ grid-template-columns: 1fr; }
}
.chart-card{
  border-radius: var(--r-lg);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,24,36,.55);
  overflow:hidden;
}
.chart-title{
  padding: 12px 12px 0;
  font-family: var(--font-sans);
  font-size: 15px;
}
.chart-note{
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.plot{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}

/* Collapsible */
.collapsible summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.collapsible summary::-webkit-details-marker{ display:none; }
.collapsible[open] summary{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
}
.collapsible > div{ padding: 12px 4px 0; }

/* Map */
.map{
  border-radius: var(--r-lg);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(0,0,0,.12);
}

/* Utilities */
.inline{ display:inline-flex; gap:8px; align-items:center; }
.dot{
  width:8px; height:8px;
  border-radius:999px;
  background: ,.85);
  box-shadow: 0 0 0 4px ,.16);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}



/* ===== rospoincerto GUI v39 — refinement pass (denser, calmer, clearer) ===== */

:root{
  --ease:cubic-bezier(.2,.8,.2,1);
  --t-fast:120ms;
  --t:180ms;
  --t-slow:260ms;
  --focus: 0 0 0 3px ,.28);
}

/* Typography polish */
body{
  font-feature-settings:"ss01" 1,"ss02" 1,"cv01" 1;
  letter-spacing:.1px;
}
h1,h2,h3,h4{ font-family: var(--font-sans); }
.small, .muted, .hint{ line-height:1.35; }

/* Links */
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

/* Top progress bar (non-blocking) */
.top-progress{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:2px;
  background:,.18);
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity var(--t) var(--ease);
}
body.is-loading .top-progress{ opacity:1; }
.top-progress::before{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-55%);
    animation: topbarInd 1.1s linear infinite;
}
@keyframes topbarInd{ to{ transform:translateX(55%); } }

/* Controls: calmer and more consistent */
input[type="text"], input[type="search"], input[type="number"], select, textarea{
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
input[type="text"]:focus, input[type="search"]:focus, input[type="number"]:focus, select:focus, textarea:focus{
  outline:none;
  box-shadow: var(--focus);
  border-color: ,.55) !important;
}

/* Buttons: reduce "toy" feel, increase weight */
.btn{
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn.primary{background:#ff2d55;color:#0b0b0f;border:1px solid rgba(255,45,85,.55);font-weight:800;letter-spacing:.2px;}
.btn.primary:hover{
  box-shadow: 0 10px 22px ,.22);
}

/* Results topnav: REAL sticky + active section */
.results-topnav{
  position: sticky;
  top: var(--topbar-h);
  z-index: 60;
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 10px;
  margin: 10px 0 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(20,24,36,.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
}
.results-topnav a{
  padding:8px 10px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
  white-space:nowrap;
}
.results-topnav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.results-topnav a.active{
  background: ,.14);
  border-color: ,.32);
  color: var(--text);
}

/* Ensure anchor scrolling accounts for sticky chrome */
#sec-preview, #sec-charts, #sec-builder{
  scroll-margin-top: calc(var(--topbar-h) + 74px);
}

/* Tables: slightly more compact, clearer header */
.table-wrap{
  border-radius: var(--r);
}
table{
  font-variant-numeric: tabular-nums;
}
thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15,17,23,.96) !important;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line2) !important;
}
tbody tr:hover{
  background: rgba(255,255,255,.035) !important;
}

/* Panels: reduce visual noise, improve spacing */
.panel{
  border-color: rgba(255,255,255,.09) !important;
}
.panel-inner{ padding: 14px 14px !important; }
@media (min-width: 980px){
  .panel-inner{ padding: 16px 16px !important; }
}

/* Sticky side filters: keep them usable without feeling cramped */
@media (min-width: 980px){
  .filters-panel{
    position: sticky !important;
    top: calc(var(--topbar-h) + 14px) !important;
    max-height: calc(100vh - var(--topbar-h) - 30px) !important;
    overflow:auto !important;
  }
}

/* Reduce background "gamey" feel */
body{
  }


/* Subtle separators */
.hr{
  height:1px; background: var(--line); margin: 12px 0;
}


/* ===== Sociological charts v40 (Plotly container polish) ===== */
.plot-box{
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(20,24,36,.65);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  padding: 10px;
}
.plot-box .plotly, .plot-box .js-plotly-plot{
  border-radius: calc(var(--r) - 4px);
}

/* ===== v41 fixes: preview table sizing ===== */
.table-wrap{ overflow:auto; }
table{ font-size: 12px; }
td, th{ max-width: 260px; white-space: normal; word-break: break-word; }
thead th{ font-size: 11px; letter-spacing: .06em; }

/* ===== v41 fixes: plot sizing ===== */
.plot-box{ padding: 10px; }
.plot-box .js-plotly-plot, .plot-box .plotly{
  width: 100% !important;
  height: 100% !important;
}
.plot-box{ min-height: 320px; }
@media (max-width: 980px){
  .plot-box{ min-height: 300px; }
}

/* ===== v41 fixes: map height ===== */
.map{
  height: 420px !important;
  min-height: 420px !important;
  border-radius: var(--r);
}
@media (max-width: 980px){
  .map{ height: 360px !important; min-height: 360px !important; }
}

/* ===== v41 fixes: variables list ===== */
.var-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding: 8px 10px;
}
.var-item span{ line-height: 1.25; }
.var-badge-missing{
  margin-left:auto;
  color: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

/* ===== v41: spacing sanity ===== */
.section{ margin-top: 18px; }
.panel-inner{ padding: 14px 14px !important; }
.card{ padding: 14px 14px !important; }

/* ===== v42: layout refinement (adult, compact, clearer) ===== */
.container{ max-width: 1180px; }
.main{ gap: 16px; }
.sidebar{ width: 260px; }
@media (max-width: 980px){
  .sidebar{ width: 100%; }
}

.panel{ background: rgba(18,20,28,.78) !important; }
.panel-inner{ padding: 14px 16px !important; }

.results-topnav{
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(18,20,28,.78) !important;
}

/* Tabs/pills: less chunky */
.results-topnav a{ padding: 7px 10px; font-weight: 600; font-size: 12px; }

/* Preview table: tighter */
table{ font-size: 11.5px !important; }
td, th{ padding: 8px 10px !important; }
thead th{ font-size: 10.5px !important; }

/* Cards in charts area: consistent height and better internal breathing */
.plot-box{ padding: 12px !important; min-height: 340px; }
.plot-box .js-plotly-plot{ margin: 0 !important; }

/* Buttons: a bit more premium */
.btn{
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.04) !important;
}
.btn:hover{ background: rgba(255,255,255,.07) !important; }
.btn.primary{
  background: ,.22) !important;
  border-color: ,.38) !important;
  color: rgba(255,255,255,.92) !important;
}
.btn.primary:hover{ background: ,.28) !important; }

/* Inputs: cleaner */
select, input[type="text"], input[type="search"], input[type="number"], textarea{
  background: rgba(10,12,18,.55) !important;
  border-color: rgba(255,255,255,.10) !important;
}
select:hover, input:hover, textarea:hover{ border-color: rgba(255,255,255,.16) !important; }

/* Map: nicer frame */
.map{
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(10,12,18,.35) !important;
}


/* ===== v43: final polish pass ===== */
:root{
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --card-bg: rgba(16,18,26,.82);
  --card-bg2: rgba(12,14,20,.72);
  --card-line: rgba(255,255,255,.10);
  --card-line2: rgba(255,255,255,.14);
  --text-strong: rgba(255,255,255,.92);
  --text-mid: rgba(255,255,255,.78);
  --text-dim: rgba(255,255,255,.62);
}

/* Typography hierarchy */
body{ color: var(--text-mid); line-height: 1.45; }
h1{ font-size: 22px; line-height: 1.15; color: var(--text-strong); }
h2{ font-size: 16px; line-height: 1.2; color: var(--text-strong); }
h3{ font-size: 13px; line-height: 1.25; color: var(--text-strong); }
.small, .muted, .hint{ color: var(--text-dim) !important; }

/* Sidebar: more refined */
.sidebar{
  background: rgba(12,14,20,.58) !important;
  border: 1px solid var(--card-line) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.sidebar a{
  padding: 10px 12px !important;
  border-radius: 10px !important;
}
.sidebar a:hover{
  background: rgba(255,255,255,.06) !important;
}
.sidebar a.active{
  background: ,.16) !important;
  border: 1px solid ,.28) !important;
}

/* Panels/cards: consistent */
.panel, .card, .plot-box{
  background: var(--card-bg) !important;
  border: 1px solid var(--card-line) !important;
}
.panel-inner, .card{ padding: var(--space-3) var(--space-4) !important; }

/* Results topnav: tighter and clearer */
.results-topnav{
  gap: 8px !important;
  padding: 10px 10px !important;
}
.results-topnav a{
  font-size: 12px !important;
  padding: 7px 10px !important;
  color: var(--text-dim) !important;
}
.results-topnav a.active{
  color: var(--text-strong) !important;
}

/* Preview: enforce container and height */
#sec-preview .table-wrap{
  max-height: 440px;
  overflow: auto;
  border: 1px solid var(--card-line) !important;
  border-radius: 14px;
}
#sec-preview table{ font-size: 11px !important; }
#sec-preview td, #sec-preview th{ padding: 8px 10px !important; }

/* Variables list: more legible */
.vars-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.var-item{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.var-item:hover{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.var-item input{ margin-top: 2px; }

/* Forms: calm but crisp */
select, input[type="text"], input[type="search"], input[type="number"], textarea{
  border-radius: 12px !important;
  padding: 10px 12px !important;
}
select:focus, input:focus, textarea:focus{
  box-shadow: 0 0 0 3px ,.22) !important;
}

/* Buttons: consistent sizes */
.btn{ padding: 8px 12px !important; border-radius: 12px !important; font-weight: 650; }
.btn.small{ padding: 6px 10px !important; }

/* Charts grid: strict equal columns and spacing */
.charts-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.plot-box{
  padding: 12px !important;
  min-height: 360px !important;
}
@media (max-width: 980px){
  .charts-grid{ grid-template-columns: 1fr !important; }
  .plot-box{ min-height: 320px !important; }
}

/* Map: correct height + spacing */
.map{
  height: 440px !important;
  min-height: 440px !important;
  margin-top: 10px;
}
@media (max-width: 980px){
  .map{ height: 380px !important; min-height: 380px !important; }
}

/* Reduce excessive glow/vignette */
body::before, body::after{ display:none !important; }

/* ===== v44: punk palette (no gradients, no blue) ===== */
:root{
  --accent: ;          /* acid green */
  : ;         /* neon magenta */
  --accent-weak: ,.18);
  -weak: ,.16);
  --focus: ,.28);
  --line: rgba(255,255,255,.10);
  : 0 10px 26px rgba(0,0,0,.45);
}

/* Replace any residual blue-tinted surfaces with neutral charcoal */
.panel, .card, .plot-box, .sidebar, .results-topnav{
  box-shadow: var() !important;
}

/* Links + active states */
a{ color: rgba(255,255,255,.82); }
a:hover{ color: rgba(255,255,255,.92); }

.sidebar a.active{
  background: ,.10) !important;
  border: 1px solid ,.24) !important;
}

.results-topnav a.active{
  background: ,.10) !important;
  border: 1px solid ,.22) !important;
}

/* Buttons */
.btn.primary{
  background: ,.18) !important;
  border-color: ,.38) !important;
  color: rgba(255,255,255,.92) !important;
}
.btn.primary:hover{
  background: ,.24) !important;
  border-color: ,.48) !important;
}
.btn{
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.04) !important;
}
.btn:hover{ background: rgba(255,255,255,.07) !important; }

/* Inputs focus */
select:focus, input:focus, textarea:focus{
  box-shadow: 0 0 0 3px var(--focus) !important;
  border-color: ,.40) !important;
}

/* Punk highlight utilities */
.badge-accent{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid ,.30);
  background: ,.10);
  color: rgba(255,255,255,.90);
  font-weight: 650;
  font-size: 12px;
}
.badge-accent i{
  width: 8px; height: 8px; border-radius: 2px;
  background: var();
  box-shadow: 0 0 0 2px ,.20);
}

/* Footer */
.site-footer{
  margin-top: 22px;
  padding: 14px 0 26px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
.site-footer .footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.site-footer .counter{
  display:flex;
  align-items:center;
  gap: 8px;
}
.site-footer .counter .n{
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.84);
}

/* ===== v47: hard sans-only enforcement ===== */
html, body, *{
  font-family: "IBM Plex Sans", ui-sans-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji" !important;
}


/* ===== v47: sober palette (black + oxide red) ===== */
:root{
  --accent: #8c2f2f;          /* oxide red */
  --accent-weak: rgba(140,47,47,.16);
  --focus: rgba(140,47,47,.26);
  --card-bg: rgba(16,18,26,.82);
  --card-line: rgba(255,255,255,.10);
}

a{ color: rgba(255,255,255,.84); }
a:hover{ color: rgba(255,255,255,.94); }

.sidebar a.active{
  background: rgba(140,47,47,.10) !important;
  border: 1px solid rgba(140,47,47,.22) !important;
}

.results-topnav a.active{
  background: rgba(140,47,47,.10) !important;
  border: 1px solid rgba(140,47,47,.22) !important;
  color: rgba(255,255,255,.92) !important;
}

select:focus, input:focus, textarea:focus{
  box-shadow: 0 0 0 3px var(--focus) !important;
  border-color: rgba(140,47,47,.38) !important;
}

.btn.primary{
  background: rgba(140,47,47,.18) !important;
  border-color: rgba(140,47,47,.34) !important;
}
.btn.primary:hover{
  background: rgba(140,47,47,.22) !important;
  border-color: rgba(140,47,47,.42) !important;
}

/* remove any 'badge-accent' punk visuals */
.badge-accent{
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.04) !important;
  color: rgba(255,255,255,.84) !important;
}
.badge-accent i{ background: var(--accent) !important; box-shadow:none !important; }


.views-pill.is-hidden{ display:none !important; }

.actions .btn.primary{width:100%;padding:14px 16px;font-size:15px;border-radius:12px;}
.actions{margin-top:10px;}

.btn{box-shadow:none !important;filter:none !important;}
.btn:focus{outline:2px solid rgba(255,45,85,.35);outline-offset:2px;}


/* runtime diagnostics */
.plot-missing{padding:12px;color:var(--muted);font-size:13px;border:1px dashed var(--line2);border-radius:14px;background:rgba(0,0,0,.08);}
