/* Dashboard extras — inherits --bg, --text, --panel2, --blue, etc. from shared/style.css */

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ── Nav tweaks ── */
.site-nav { flex-shrink: 0; }

/* ── Chart sections ── */
#charts-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
#resid-wrap {
  height: 100svh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
#resid-hist-wrap {
  flex: 1;
  min-height: 80px;
  position: relative;
}
#resid-ts-wrap {
  flex: 2;
  min-height: 0;
  position: relative;
}
#chart-wrap {
  height: 50svh;
  flex-shrink: 0;
  position: relative;
}


@media (min-width: 900px) {
  body {
    height: 100svh;
    overflow: hidden;
  }
  #charts-wrap {
    flex: 1;
    flex-direction: row;
    min-height: 0;
  }
  #resid-wrap {
    flex: 0 0 33.333%;
    height: auto;
  }
  #chart-wrap {
    flex: 1;
    height: auto;
  }
}
#resid-hist-wrap canvas,
#resid-ts-wrap   canvas,
#chart-wrap      canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ── Controls ── */
.controls {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.ctrl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; justify-content: flex-end; }
.ctrl-label { min-width: 48px; }
.ctrl-note  { font-size: 9px; color: var(--muted); font-style: italic; }
.vdiv { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

.date-in {
  padding: 4px 8px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 11px;
  font-family: var(--sans);
  width: 110px;
}
.date-in:focus { outline: none; border-color: var(--blue); }

.q-pills { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.q-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  font-size: 10.5px; font-family: var(--mono);
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s; user-select: none; white-space: nowrap;
}
.q-pill .swatch { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; transition: opacity 0.15s; }
.q-pill.on  { background: rgba(255,255,255,.05); color: var(--text); }
.q-pill.off { background: transparent; color: var(--muted); border-color: var(--border) !important; }
.q-pill.off .swatch { opacity: 0.25; }
.q-pill.modal-pill.on { font-weight: 600; }

/* ── Price overlay ── */
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; pointer-events: none; z-index: 2;
}
.overlay svg { opacity: 0.18; }
.overlay h2 { font-size: 15px; font-weight: 500; color: var(--muted); }
.overlay p  { font-size: 12px; color: var(--muted); max-width: 320px; text-align: center; line-height: 1.6; }
