/* ─── Cards / panels ────────────────────────────────────────── */
#overview-mount > details[data-section] {
  scroll-margin-top: calc(var(--topbar-h, 56px) + 18px);
}
#overview-mount > details[data-section="headline"] {
  position: relative;
}
#overview-mount > details[data-section="headline"] > .v2-section-header {
  min-height: 42px;
  padding-right: min(42vw, 390px);
}
#overview-mount > details[data-section="headline"] .v2-section-title {
  font-size: clamp(1.12rem, 1.24vw, 1.32rem);
  font-weight: 720;
}
#overview-mount > details[data-section="headline"] > .v2-section-body {
  position: relative;
}
#overview-mount > details[data-section="headline"] > .v2-section-body > [data-pc-mount-headline] {
  position: absolute;
  top: -39px;
  right: 0;
  z-index: 2;
  width: min(370px, 42vw);
}
#overview-mount > details[data-section="headline"] > .v2-section-body > [data-pc-mount-headline] .v2-pc-bar {
  margin-bottom: 0;
}
#overview-mount > details[data-section="headline"] > .v2-section-body > [data-pc-mount-headline]:has(.v2-pc-body:not([hidden])) {
  position: static;
  width: 100%;
  margin-bottom: 8px;
}
@media (max-width: 899px) {
  #overview-mount > details[data-section="headline"] > .v2-section-header {
    padding-right: 3px;
  }
  #overview-mount > details[data-section="headline"] > .v2-section-body > [data-pc-mount-headline] {
    position: static;
    width: 100%;
    margin-bottom: 8px;
  }
}
@media (max-width: 899px) {
  #overview-mount > details[data-section] {
    scroll-margin-top: calc(var(--topbar-h, 56px) + 74px);
  }
}

.v2-reader-guide {
  margin: 0 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 201, 230, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.58), rgba(2, 4, 8, 0.52));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 14px 36px rgba(0,0,0,0.20);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
}
.v2-reader-guide__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.v2-reader-guide__copy {
  min-width: 0;
  max-width: 980px;
}
.v2-reader-guide__eyebrow {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}
.v2-reader-guide__title {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(1.12rem, 1.35vw, 1.38rem);
  font-weight: 780;
  line-height: 1.15;
}
.v2-reader-guide__dek {
  margin: 5px 0 0;
  max-width: 980px;
  color: #aeb8ca;
  font-size: 0.82rem;
  line-height: 1.38;
}
.v2-reader-guide__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.v2-reader-guide__button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(185, 201, 230, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}
.v2-reader-guide__button:hover {
  border-color: rgba(220, 230, 248, 0.30);
  color: #f8fafc;
}
.v2-reader-guide__button.is-primary {
  border-color: rgba(220, 230, 248, 0.22);
  background: linear-gradient(180deg, rgba(92, 104, 126, 0.48), rgba(35, 43, 57, 0.62));
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.v2-reader-guide__button:focus-visible {
  border-color: rgba(220, 230, 248, 0.38);
  outline: 2px solid rgba(220, 230, 248, 0.18);
  outline-offset: 2px;
}
.v2-reader-guide__button[data-public-share-toggle] {
  display: none;
}
body[data-share-mode="public"] .v2-reader-guide__actions .v2-reader-guide__button:not([data-public-share-toggle]) {
  display: none;
}
body[data-share-mode="public"] .v2-reader-guide__button[data-public-share-toggle] {
  display: inline-flex;
  align-items: center;
}
.v2-reader-guide__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.v2-reader-guide__term {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(185, 201, 230, 0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.028);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  line-height: 1.25;
  cursor: pointer;
}
.v2-reader-guide__term b {
  margin-right: 5px;
  color: #f8fafc;
  font-weight: 800;
}
.v2-reader-guide__term:hover,
.v2-reader-guide__term:focus-visible {
  border-color: rgba(220, 230, 248, 0.26);
  color: #f8fafc;
  outline: none;
}
.v2-reader-guide__term.is-anti {
  border-color: rgba(255, 59, 77, 0.52);
  background: rgba(255, 59, 31, 0.14);
  color: #fff0f1;
}
.v2-reader-guide__term.is-pro {
  border-color: rgba(93, 134, 255, 0.40);
  background: rgba(35, 86, 217, 0.12);
  color: #e7eeff;
}
.v2-reader-guide__disclosures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.v2-key-findings,
.v2-methods-note {
  margin: 0 0 8px;
  border: 1px solid rgba(185, 201, 230, 0.15);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 22, 34, 0.52), rgba(3, 6, 12, 0.36));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.052), 0 12px 30px rgba(0,0,0,0.14);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(185%);
  -webkit-backdrop-filter: blur(20px) saturate(185%);
}
.v2-reader-guide .v2-key-findings,
.v2-reader-guide .v2-methods-note {
  margin: 0;
  border-color: rgba(185, 201, 230, 0.08);
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.28), rgba(2, 4, 8, 0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.022);
}
.v2-reader-guide .v2-key-findings[open],
.v2-reader-guide .v2-methods-note[open] {
  grid-column: 1 / -1;
}
.v2-methods-note {
  margin-top: -2px;
}
.v2-reader-guide .v2-methods-note {
  margin-top: 0;
}
.v2-key-findings > summary,
.v2-methods-note > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 6px 10px;
  cursor: pointer;
  list-style: none;
}
.v2-key-findings > summary::-webkit-details-marker,
.v2-methods-note > summary::-webkit-details-marker {
  display: none;
}
.v2-key-findings > summary span,
.v2-methods-note > summary span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.v2-key-findings > summary b,
.v2-methods-note > summary b {
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 720;
}
.v2-key-findings > summary em,
.v2-methods-note > summary em {
  color: #8f9bad;
  font-size: 0.68rem;
  font-style: normal;
}
.v2-key-findings > summary i,
.v2-methods-note > summary i {
  color: #8f9bad;
  font-style: normal;
  font-size: 0.68rem;
  transition: transform 0.16s ease;
}
.v2-key-findings[open] > summary i,
.v2-methods-note[open] > summary i {
  transform: rotate(180deg);
}
.v2-key-findings__grid,
.v2-methods-note__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}
@media (max-width: 720px) {
  .v2-reader-guide__disclosures {
    grid-template-columns: 1fr;
  }
}
.v2-key-finding-card,
.v2-method-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 12, 19, 0.50), rgba(3, 6, 11, 0.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}
.v2-key-finding-card p,
.v2-method-card p {
  margin: 0 0 5px;
  color: #7da8ff;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}
.v2-method-card p {
  color: #7fd8bd;
}
.v2-key-finding-card h3,
.v2-method-card h3 {
  margin: 0;
  color: #f6f8fb;
  font-size: 0.82rem;
  line-height: 1.24;
}
.v2-key-finding-card span,
.v2-method-card span {
  display: block;
  margin-top: 6px;
  color: #a8b2c3;
  font-size: 0.72rem;
  line-height: 1.35;
}
@media (max-width: 920px) {
  .v2-reader-guide__header { flex-direction: column; }
  .v2-reader-guide__actions { justify-content: flex-start; }
  .v2-key-findings__grid,
  .v2-methods-note__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .v2-reader-guide { padding: 12px; }
  .v2-reader-guide__term {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    border-radius: 8px;
  }
  .v2-key-findings__grid { grid-template-columns: 1fr; }
  .v2-methods-note__grid { grid-template-columns: 1fr; }
}

.v2-overview-settings {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.92);
  box-shadow: var(--shadow-panel);
}
.v2-overview-settings[hidden] {
  display: none !important;
}
.v2-overview-settings__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.42);
}
.v2-overview-settings__header h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 1.05rem;
  line-height: 1.2;
}
.v2-overview-settings__header p:last-child {
  margin: 5px 0 0;
  max-width: 720px;
  color: #aeb8ca;
  font-size: 0.78rem;
  line-height: 1.45;
}
.v2-overview-settings__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
@media (max-width: 720px) {
  .v2-overview-settings__header {
    flex-direction: column;
  }
}

.v2-build-notes {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  border: 1px solid rgba(71, 85, 105, 0.46);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.78);
  overflow: hidden;
}
.v2-build-notes > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  color: #eef3fb;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 780;
  list-style: none;
}
.v2-build-notes > summary::-webkit-details-marker { display: none; }
.v2-build-notes > summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 2px;
}
.v2-build-notes[open] > summary::before { content: "▾"; }
.v2-build-notes > summary span { flex: 1; }
.v2-build-notes > summary em {
  color: #9da8ba;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 720;
  white-space: nowrap;
}
.v2-build-notes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.v2-build-notes__grid span {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(71, 85, 105, 0.42);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.68);
  color: #b7c2d3;
  font-size: 0.69rem;
  line-height: 1.35;
}
.v2-build-notes__grid b {
  display: block;
  margin-bottom: 3px;
  color: #f8fafc;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .v2-build-notes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .v2-build-notes__grid { grid-template-columns: 1fr; }
  .v2-build-notes > summary { align-items: flex-start; flex-direction: column; padding: 9px 12px; }
}

.v2-presentation-exit {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 999;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(93, 134, 255, 0.68);
  border-radius: 8px;
  background: rgba(5, 9, 15, 0.88);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 780;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
body[data-presentation="true"] .v2-presentation-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body[data-presentation="true"] .v2-topbar,
body[data-presentation="true"] .v2-sidenav,
body[data-presentation="true"] .v2-bottom-tabs,
body[data-presentation="true"] .v2-filter-drawer,
body[data-presentation="true"] .v2-search-palette,
body[data-presentation="true"] .v2-slice-summary,
body[data-presentation="true"] .v2-reader-guide,
body[data-presentation="true"] .v2-key-findings,
body[data-presentation="true"] .v2-methods-note,
body[data-presentation="true"] .v2-overview-settings,
body[data-presentation="true"] .v2-qfs,
body[data-presentation="true"] .v2-layout-editor,
body[data-presentation="true"] .v2-overview-nav,
body[data-presentation="true"] #v2-debug-hud,
body[data-presentation="true"] .v2-panel-export,
body[data-presentation="true"] .v2-widget-chrome,
body[data-presentation="true"] .v2-widget-restore {
  display: none !important;
}
body[data-presentation="true"] .v2-app {
  display: block;
}
body[data-presentation="true"] .v2-main {
  max-width: min(100%, 1500px);
  margin: 0 auto;
  padding: 28px clamp(14px, 3vw, 42px) !important;
}
body[data-presentation="true"] #overview-mount {
  display: block;
}
body[data-presentation="true"] #overview-mount > details[data-section] {
  margin-bottom: 18px;
}
body[data-presentation="true"] #overview-mount > details[data-section][hidden] {
  display: none !important;
}
body[data-presentation="true"] #overview-mount > details[data-section] > summary {
  cursor: default;
}
body[data-share-mode="public"] .v2-build-notes,
body[data-share-mode="public"] .v2-layout-editor,
body[data-share-mode="public"] .v2-overview-settings:not([data-open="true"]),
body[data-share-mode="public"] #v2-debug-hud,
body[data-share-mode="public"] .v2-widget-chrome,
body[data-share-mode="public"] .v2-widget-restore,
body[data-share-mode="public"] .v2-panel-export,
body[data-share-mode="public"] #overview-mount > details[data-section-group="audit"] {
  display: none !important;
}

.v2-layout-editor {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  border: 1px solid rgba(71, 85, 105, 0.52);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.82);
  overflow: hidden;
}
.v2-layout-editor > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  color: #eef3fb;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 760;
  list-style: none;
}
.v2-layout-editor > summary::-webkit-details-marker { display: none; }
.v2-layout-editor > summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 2px;
}
.v2-layout-editor[open] > summary::before { content: "▾"; }
.v2-layout-editor > summary span { flex: 1; }
.v2-layout-editor > summary em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.v2-layout-editor__body {
  border-top: 1px solid rgba(71, 85, 105, 0.42);
  padding: 12px;
}
.v2-layout-profile-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) repeat(9, max-content) minmax(110px, 1fr);
  align-items: end;
  gap: 8px;
  margin: 0 0 10px;
}
.v2-layout-profile-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.v2-layout-profile-field label,
.v2-layout-share label span {
  color: #9da8ba;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-layout-profile-panel input,
.v2-layout-profile-panel select,
.v2-layout-profile-panel button,
.v2-layout-share button,
.v2-layout-share textarea {
  min-height: 32px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  color: #d8dee8;
  font-size: 0.72rem;
  font-weight: 720;
}
.v2-layout-profile-panel input,
.v2-layout-profile-panel select {
  width: 100%;
  padding: 0 10px;
}
.v2-layout-profile-panel button,
.v2-layout-share button {
  padding: 0 10px;
  white-space: nowrap;
}
.v2-layout-profile-panel button:hover,
.v2-layout-profile-panel button:focus-visible,
.v2-layout-share button:hover,
.v2-layout-share button:focus-visible,
.v2-layout-share textarea:focus,
.v2-layout-profile-panel input:focus,
.v2-layout-profile-panel select:focus {
  border-color: rgba(93, 134, 255, 0.68);
  background: rgba(35, 86, 217, 0.20);
  color: #ffffff;
  outline: none;
}
.v2-layout-profile-panel button:disabled {
  opacity: 0.42;
  cursor: default;
}
.v2-layout-profile-panel > input[data-layout-profile-name] {
  min-width: 150px;
}
.v2-layout-profile-status {
  min-width: 0;
  color: #9da8ba;
  font-size: 0.7rem;
  line-height: 1.25;
}
.v2-widget-editor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.72);
}
.v2-widget-editor-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.v2-widget-editor-summary strong {
  color: #eef3fb;
  font-size: 0.78rem;
}
.v2-widget-editor-summary span {
  color: #9da8ba;
  font-size: 0.7rem;
}
.v2-widget-editor-summary button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  color: #d8dee8;
  font-size: 0.72rem;
  font-weight: 720;
}
.v2-widget-editor-summary button:hover,
.v2-widget-editor-summary button:focus-visible {
  border-color: rgba(93, 134, 255, 0.68);
  background: rgba(35, 86, 217, 0.20);
  color: #fff;
  outline: none;
}
.v2-widget-editor-summary button:disabled {
  opacity: 0.42;
  cursor: default;
}
.v2-layout-share {
  margin: 0 0 10px;
  border: 1px solid rgba(71, 85, 105, 0.38);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.56);
  overflow: hidden;
}
.v2-layout-share > summary {
  min-height: 34px;
  padding: 0 10px;
  color: #d8dee8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 760;
  list-style: none;
}
.v2-layout-share > summary::-webkit-details-marker { display: none; }
.v2-layout-share > summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 6px;
}
.v2-layout-share[open] > summary::before { content: "▾"; }
.v2-layout-share__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}
.v2-layout-share label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.v2-layout-share textarea {
  width: 100%;
  min-height: 112px;
  padding: 8px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.35;
}
.v2-layout-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}
.v2-layout-share__url {
  width: calc(100% - 20px);
  min-height: 34px;
  margin: 0 10px 10px;
  padding: 7px 9px;
  border: 1px solid rgba(71, 85, 105, 0.56);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.82);
  color: #dce4f2;
  font: 0.72rem var(--font-mono, monospace);
}
.v2-layout-import-preview {
  margin: 0 10px 10px;
  padding: 10px;
  border: 1px solid rgba(93, 134, 255, 0.42);
  border-radius: 8px;
  background: rgba(7, 13, 24, 0.78);
}
.v2-layout-import-preview[hidden] { display: none !important; }
.v2-layout-import-preview__title {
  margin: 0 0 8px;
  color: #dbeafe;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-layout-import-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.v2-layout-import-preview article {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(71, 85, 105, 0.46);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.74);
}
.v2-layout-import-preview strong,
.v2-layout-import-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-layout-import-preview strong {
  color: #f8fafc;
  font-size: 0.76rem;
}
.v2-layout-import-preview span {
  margin-top: 4px;
  color: #aeb8ca;
  font-size: 0.68rem;
}
.v2-layout-studio-modal .v2-modal-inner {
  max-width: min(1120px, calc(100vw - 32px));
}
.v2-layout-studio {
  display: grid;
  gap: 12px;
}
.v2-layout-studio__toolbar,
.v2-layout-studio__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v2-layout-studio__toolbar button,
.v2-layout-studio__row-actions button,
.v2-layout-studio__row-actions select,
.v2-layout-studio__widget-actions button,
.v2-layout-studio__widget-actions select,
.v2-layout-studio__widget-actions input {
  min-height: 32px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  color: #d8dee8;
  font-size: 0.72rem;
  font-weight: 740;
}
.v2-layout-studio__toolbar button {
  padding: 0 11px;
}
.v2-layout-studio__toolbar button:hover,
.v2-layout-studio__row-actions button:hover,
.v2-layout-studio__row-actions select:hover,
.v2-layout-studio__widget-actions button:hover,
.v2-layout-studio__widget-actions select:hover,
.v2-layout-studio__widget-actions input:hover {
  border-color: rgba(93, 134, 255, 0.68);
  background: rgba(35, 86, 217, 0.20);
  color: #ffffff;
}
.v2-layout-studio__toolbar button:disabled,
.v2-layout-studio__row-actions button:disabled,
.v2-layout-studio__widget-actions button:disabled {
  opacity: 0.38;
  cursor: default;
}
.v2-layout-studio__stats {
  padding: 10px;
  border: 1px solid rgba(71, 85, 105, 0.42);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.68);
}
.v2-layout-studio__stats span {
  padding: 5px 8px;
  border: 1px solid rgba(71, 85, 105, 0.46);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
  color: #b7c2d3;
  font-size: 0.68rem;
  font-weight: 720;
}
.v2-layout-studio__stats b {
  color: #f8fafc;
}
.v2-layout-studio__compare {
  padding: 10px;
  border: 1px solid rgba(71, 85, 105, 0.42);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.52);
}
.v2-layout-studio__compare-title {
  margin: 0 0 8px;
  color: #9da8ba;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-layout-studio__compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.v2-layout-studio__compare article {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(71, 85, 105, 0.42);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.50);
}
.v2-layout-studio__compare strong,
.v2-layout-studio__compare span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-layout-studio__compare strong {
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 780;
}
.v2-layout-studio__compare span {
  margin-top: 3px;
  color: #aeb8ca;
  font-size: 0.68rem;
}
.v2-layout-studio__widgets {
  min-width: 0;
}
.v2-layout-studio__widget-group {
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, 0.42);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.56);
  overflow: hidden;
}
.v2-layout-studio__widget-group h3 {
  margin: 0;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.36);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.v2-layout-studio__widget-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
.v2-layout-studio__widget-section {
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, 0.34);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.36);
  overflow: hidden;
}
.v2-layout-studio__widget-section h4 {
  margin: 0;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.30);
  color: #dbe7f7;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.v2-layout-studio__widget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.22);
}
.v2-layout-studio__widget-row:last-child { border-bottom: 0; }
.v2-layout-studio__widget-visible {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.25;
}
.v2-layout-studio__widget-visible input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.v2-layout-studio__widget-visible span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-layout-studio__widget-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.v2-layout-studio__widget-actions button {
  padding: 0 8px;
}
.v2-layout-studio__widget-actions select {
  width: 86px;
  padding: 0 7px;
}
.v2-layout-studio__widget-actions input {
  width: 78px;
  padding: 0 8px;
}
.v2-layout-studio__empty {
  margin: 0;
  padding: 12px;
  color: #9da8ba;
  font-size: 0.72rem;
  line-height: 1.4;
}
.v2-layout-studio__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.v2-layout-studio__group {
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, 0.42);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.56);
  overflow: hidden;
}
.v2-layout-studio__group h3 {
  margin: 0;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.36);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.v2-layout-studio__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.28);
}
.v2-layout-studio__row:last-child { border-bottom: 0; }
.v2-layout-studio__row label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.v2-layout-studio__row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.v2-layout-studio__row strong,
.v2-layout-studio__row em {
  display: block;
  min-width: 0;
}
.v2-layout-studio__row strong {
  color: #f1f5f9;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.2;
}
.v2-layout-studio__row em {
  margin-top: 3px;
  color: #9da8ba;
  font-size: 0.67rem;
  font-style: normal;
  line-height: 1.3;
}
.v2-layout-studio__row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.v2-layout-studio__row-actions button {
  padding: 0 8px;
}
.v2-layout-studio__row-actions select {
  width: 96px;
  padding: 0 7px;
}
.v2-layout-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.v2-layout-presets button,
.v2-layout-row__actions button,
.v2-layout-row__actions select {
  min-height: 32px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  color: #d8dee8;
  font-size: 0.72rem;
  font-weight: 720;
}
.v2-layout-presets button {
  padding: 0 11px;
}
.v2-layout-presets button:hover,
.v2-layout-presets button.is-active,
.v2-layout-row__actions button:hover,
.v2-layout-row__actions select:hover {
  border-color: rgba(93, 134, 255, 0.62);
  color: #ffffff;
  background: rgba(35, 86, 217, 0.20);
}
.v2-layout-presets button[aria-pressed="true"] {
  border-color: rgba(93, 134, 255, 0.82);
  background: rgba(35, 86, 217, 0.28);
}
.v2-layout-editor__hint {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.v2-layout-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.v2-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(71, 85, 105, 0.38);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.68);
}
.v2-layout-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #edf2fa;
  font-size: 0.74rem;
  font-weight: 690;
}
.v2-layout-row label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-layout-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.v2-layout-row__actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.v2-layout-row__actions button {
  width: 32px;
  padding: 0;
}
.v2-layout-row__actions button:disabled {
  opacity: 0.34;
  cursor: default;
}
.v2-layout-row__actions select {
  width: 94px;
  padding: 0 8px;
}
.v2-overview-nav { display: none; }
#overview-mount[data-overview-mode="executive"] details[data-section][hidden],
#overview-mount[data-overview-mode="custom"] details[data-section][hidden] {
  display: none !important;
}
details[data-section][data-overview-size="compact"] {
  max-width: 980px;
}
details[data-section][data-overview-size="compact"] .v2-panel {
  padding: 12px;
}
details[data-section][data-overview-size="compact"] .v2-section-body {
  max-width: 980px;
}
details[data-section][data-overview-size="wide"] {
  grid-column: 1 / -1;
}
@media (min-width: 1180px) {
  #overview-mount {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 860px) {
  .v2-layout-profile-panel {
    grid-template-columns: 1fr 1fr;
  }
  .v2-layout-profile-field,
  .v2-layout-profile-panel > input[data-layout-profile-name],
  .v2-layout-profile-status,
  .v2-widget-editor-summary {
    grid-column: 1 / -1;
  }
  .v2-widget-editor-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .v2-widget-editor-summary button { width: 100%; }
  .v2-layout-share__grid { grid-template-columns: 1fr; }
  .v2-layout-import-preview__grid { grid-template-columns: 1fr; }
  .v2-layout-studio__list { grid-template-columns: 1fr; }
  .v2-layout-studio__compare-grid { grid-template-columns: 1fr; }
  .v2-layout-studio__widget-list { grid-template-columns: 1fr; }
  .v2-layout-studio__row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .v2-layout-studio__widget-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .v2-layout-studio__row-actions,
  .v2-layout-studio__widget-actions {
    flex-wrap: wrap;
  }
  .v2-layout-list { grid-template-columns: 1fr; }
  .v2-layout-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .v2-layout-row__actions { width: 100%; }
  .v2-layout-row__actions select { flex: 1; width: auto; }
}

.v2-panel {
  background: linear-gradient(180deg, rgba(9, 13, 20, 0.68), rgba(3, 6, 11, 0.62));
  border: 1px solid rgba(185, 201, 230, 0.13);
  border-radius: 10px;
  padding: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.052), 0 16px 38px rgba(0,0,0,0.22);
  backdrop-filter: blur(20px) saturate(175%);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
}

.v2-topic-flow-range-inputs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.v2-topic-flow-range-inputs input {
  width: 74px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #11151d;
  color: var(--text);
  font-size: 0.72rem;
}
.v2-topic-flow-range-inputs input:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.v2-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.v2-panel-title {
  margin: 0; font-size: 1.0rem; font-weight: 740; color: #f8fafc;
  line-height: 1.2;
}
.v2-panel-sub {
  margin: 3px 0 0 0; font-size: 0.74rem; color: #94a0b3; line-height: 1.35;
}
.v2-panel-body { flex: 1; min-height: 0; position: relative; }
.v2-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  max-width: min(100%, 420px);
}
.v2-panel-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-muted); border-radius: var(--radius-sm);
  cursor: pointer;
}
.v2-panel-action:hover { color: var(--text); background: var(--bg-elev); border-color: var(--line-strong); }

.v2-widget-chrome {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
#overview-mount:not(.is-widget-customizing) .v2-widget-chrome,
#overview-mount:not(.is-widget-customizing) .v2-widget-restore {
  display: none !important;
}
.v2-widget-control,
.v2-widget-size,
.v2-widget-width {
  height: 28px;
  border: 1px solid rgba(71, 85, 105, 0.56);
  border-radius: 7px;
  background: rgba(5, 9, 15, 0.76);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 760;
}
.v2-widget-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  padding: 0;
  cursor: pointer;
}
.v2-widget-size,
.v2-widget-width {
  width: 86px;
  padding: 0 7px;
}
.v2-widget-width { width: 96px; }
.v2-widget-control:hover,
.v2-widget-size:hover,
.v2-widget-width:hover,
.v2-widget-control:focus-visible,
.v2-widget-size:focus-visible,
.v2-widget-width:focus-visible {
  border-color: rgba(93, 134, 255, 0.72);
  background: rgba(35, 86, 217, 0.22);
  color: #f8fafc;
  outline: none;
}
.v2-widget-control:disabled {
  opacity: 0.34;
  cursor: default;
}
.v2-widget-control--handle {
  cursor: grab;
  color: #8ea8ff;
}
.v2-widget-control--handle:active { cursor: grabbing; }
.v2-widget-control--resize {
  cursor: nwse-resize;
  color: #c7d2fe;
}
.v2-panel.is-widget-dragging {
  opacity: 0.58;
  outline: 1px solid rgba(93, 134, 255, 0.88);
  outline-offset: -2px;
}
.v2-panel.is-widget-resizing {
  outline: 1px solid rgba(255, 59, 31, 0.7);
  outline-offset: -2px;
  box-shadow: 0 0 0 1px rgba(255, 59, 31, 0.22), var(--shadow-panel);
}
.v2-panel.is-widget-drop-target {
  border-color: rgba(93, 134, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(93, 134, 255, 0.32), var(--shadow-panel);
}
.v2-widget-restore {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px dashed rgba(71, 85, 105, 0.58);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.64);
}
.v2-widget-restore[hidden] { display: none !important; }
.v2-widget-restore__label {
  flex: 0 0 auto;
  padding-top: 6px;
  color: #9da8ba;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-widget-restore__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.v2-widget-restore button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(71, 85, 105, 0.56);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  color: #d8dee8;
  font-size: 0.68rem;
  font-weight: 760;
}
.v2-widget-restore button:hover {
  border-color: rgba(93, 134, 255, 0.68);
  background: rgba(35, 86, 217, 0.22);
  color: #ffffff;
}
.v2-panel[data-overview-widget-size="wide"] {
  grid-column: 1 / -1;
}
.v2-panel[data-overview-widget-size="full"],
.v2-panel[data-overview-widget-size="hero"],
.v2-panel.is-overview-widget-wide-width,
.v2-panel.is-overview-widget-full-width {
  grid-column: 1 / -1;
}
.v2-panel.is-overview-widget-half-width,
.v2-panel.is-overview-widget-wide-width,
.v2-panel.is-overview-widget-full-width {
  grid-column: var(--overview-widget-grid-column, auto);
}
.v2-panel[data-overview-widget-size="compact"] {
  padding: 11px;
  gap: 8px;
}
.v2-panel[data-overview-widget-size="dense"] {
  padding: 10px;
  gap: 7px;
}
.v2-panel[data-overview-widget-size="compact"] .v2-panel-title {
  font-size: 0.92rem;
}
.v2-panel[data-overview-widget-size="compact"] .v2-panel-sub,
.v2-panel[data-overview-widget-size="dense"] .v2-panel-sub {
  font-size: 0.7rem;
}
.v2-panel[data-overview-widget-size="compact"] .v2-plot,
.v2-panel[data-overview-widget-size="short"] .v2-plot,
.v2-panel[data-overview-widget-size="dense"] .v2-plot {
  height: 300px;
  min-height: 300px;
}
.v2-panel[data-overview-widget-size="short"] .v2-plot--sm,
.v2-panel[data-overview-widget-size="compact"] .v2-plot--sm {
  height: 230px;
  min-height: 230px;
}
.v2-panel[data-overview-widget-size="short"] .v2-plot--md,
.v2-panel[data-overview-widget-size="compact"] .v2-plot--md {
  height: 300px;
  min-height: 300px;
}
.v2-panel[data-overview-widget-size="short"] .v2-plot--lg,
.v2-panel[data-overview-widget-size="compact"] .v2-plot--lg {
  height: 360px;
  min-height: 360px;
}
.v2-panel[data-overview-widget-size="tall"] .v2-plot {
  height: 560px;
  min-height: 560px;
}
.v2-panel[data-overview-widget-size="hero"] .v2-plot {
  height: min(76vh, 760px);
  min-height: 620px;
}
.v2-panel[data-overview-widget-size="tall"] .v2-plot--lg {
  height: 680px;
  min-height: 680px;
}
.v2-panel[data-overview-widget-size="hero"] .v2-plot--lg,
.v2-panel[data-overview-widget-size="hero"] .legacy2-plot {
  height: min(80vh, 840px) !important;
  min-height: 680px !important;
}
.v2-panel[data-overview-widget-size="tall"] .v2-plot--map {
  height: min(74vh, 720px);
  min-height: 560px;
}
.v2-panel[data-overview-widget-height] .v2-plot,
.v2-panel[data-overview-widget-height] .js-plotly-plot,
.v2-panel[data-overview-widget-height] .legacy2-plot {
  height: var(--overview-widget-plot-height) !important;
  min-height: min(var(--overview-widget-plot-height), 100%) !important;
}
.v2-panel[data-overview-widget-height] .wb2-table-wrap,
.v2-panel[data-overview-widget-height] .legacy2-table-wrap {
  max-height: var(--overview-widget-table-height) !important;
}
.v2-panel[data-overview-widget-size="short"] .wb2-table-wrap,
.v2-panel[data-overview-widget-size="compact"] .wb2-table-wrap,
.v2-panel[data-overview-widget-size="short"] .legacy2-table-wrap,
.v2-panel[data-overview-widget-size="compact"] .legacy2-table-wrap {
  max-height: 280px;
}
.v2-panel[data-overview-widget-size="tall"] .wb2-table-wrap,
.v2-panel[data-overview-widget-size="tall"] .legacy2-table-wrap,
.v2-panel[data-overview-widget-size="hero"] .wb2-table-wrap,
.v2-panel[data-overview-widget-size="hero"] .legacy2-table-wrap {
  max-height: 620px;
}
.v2-panel[data-overview-widget-size="short"] .legacy2-plot,
.v2-panel[data-overview-widget-size="compact"] .legacy2-plot {
  height: 300px !important;
  min-height: 300px !important;
}
.v2-panel[data-overview-widget-size="tall"] .legacy2-plot {
  height: 640px !important;
  min-height: 640px !important;
}
@media (max-width: 760px) {
  .v2-panel-header {
    flex-direction: column;
    align-items: stretch;
  }
  .v2-panel-actions {
    justify-content: flex-start;
    max-width: none;
  }
  .v2-widget-chrome {
    width: 100%;
    justify-content: flex-start;
  }
  .v2-widget-size {
    flex: 1 1 116px;
    width: auto;
  }
  .v2-widget-width {
    flex: 1 1 104px;
    width: auto;
  }
  .v2-widget-restore {
    flex-direction: column;
    gap: 7px;
  }
  .v2-panel[data-overview-widget-size] {
    grid-column: 1 / -1;
  }
  .v2-panel[data-overview-widget-size="tall"] .v2-plot,
  .v2-panel[data-overview-widget-size="hero"] .v2-plot,
  .v2-panel[data-overview-widget-size="tall"] .legacy2-plot {
    height: 520px !important;
    min-height: 420px !important;
  }
  .v2-panel[data-overview-widget-height] .v2-plot,
  .v2-panel[data-overview-widget-height] .legacy2-plot {
    height: min(var(--overview-widget-plot-height), 72vh) !important;
  }
}

/* Workbench reference tables on the v2 home tab */
.wb2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wb2-panel { min-width: 0; }
.wb2-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 8px;
  background: #000;
  max-height: 360px;
}
.wb2-table-details,
.legacy2-data-details {
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.72);
  overflow: hidden;
}
.wb2-table-details > summary,
.legacy2-data-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  color: #dbe7f7;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 750;
  list-style: none;
}
.wb2-table-details > summary::-webkit-details-marker,
.legacy2-data-details > summary::-webkit-details-marker {
  display: none;
}
.wb2-table-details > summary::before,
.legacy2-data-details > summary::before {
  content: "▸";
  color: var(--accent, #5d86ff);
  margin-right: 2px;
}
.wb2-table-details[open] > summary::before,
.legacy2-data-details[open] > summary::before {
  content: "▾";
}
.wb2-table-details > summary span:first-child,
.legacy2-data-details > summary span:first-child {
  flex: 1;
}
.wb2-table-count,
.legacy2-data-details > summary span:last-child {
  color: var(--text-muted, #9ca3af);
  font-weight: 650;
  white-space: nowrap;
}
.wb2-table-details .wb2-table-wrap,
.legacy2-data-details .legacy2-table-wrap {
  border-width: 1px 0 0;
  border-radius: 0;
}
.wb2-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.72rem;
  color: var(--text, #f5f5f7);
}
.wb2-table th,
.wb2-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  white-space: nowrap;
  vertical-align: top;
}
.wb2-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #05070b;
  color: var(--text-muted, #a7b0c0);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: right;
  text-transform: uppercase;
}
.wb2-table th:first-child,
.wb2-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  background: #05070b;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb2-table td {
  text-align: right;
  background: #020304;
}
.wb2-table tbody tr:hover td {
  background: rgba(79,158,255,.13);
}
.wb2-table tbody tr:hover td:first-child {
  background: #0b1019;
}
.wb2-cell.wb2-anti {
  color: #ff6674;
  background: rgba(255,59,31,.11);
  font-weight: 700;
}
.wb2-cell.wb2-pro {
  color: #7fa0ff;
  background: rgba(35,86,217,.12);
  font-weight: 700;
}
.wb2-cell.wb2-num { font-variant-numeric: tabular-nums; }
.wb2-cell.wb2-net-anti { color: #ff6674; font-weight: 800; }
.wb2-cell.wb2-net-pro { color: #8ea8ff; font-weight: 800; }
.wb2-cell--clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(79,158,255,.35);
  text-underline-offset: 2px;
}
.wb2-cell--clickable:hover {
  color: var(--accent);
}
.wb2-table tr[role="button"]:focus,
.wb2-table td[role="button"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.wb2-empty {
  color: var(--text-muted, #a7b0c0);
  text-align: left !important;
  padding: 16px !important;
}
@media (max-width: 899px) {
  .wb2-grid { grid-template-columns: 1fr; }
  .wb2-table { min-width: 720px; font-size: 0.68rem; }
  .wb2-table th,
  .wb2-table td { padding: 6px 7px; }
}

/* KPI cards */
.v2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) { .v2-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .v2-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.v2-kpi {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.v2-kpi-label {
  font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.6px; font-weight: 600;
}
.v2-kpi-value {
  font-size: 1.4rem; font-weight: 600; color: var(--text); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}
.v2-kpi-sub { font-size: 0.72rem; color: var(--text-muted); }
.v2-kpi.is-anti .v2-kpi-value { color: var(--anti-strong); }
.v2-kpi.is-pro .v2-kpi-value { color: var(--pro-strong); }
.v2-kpi.is-enacted .v2-kpi-value { color: var(--enacted); }

/* Chips */
.v2-chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.v2-chip-group--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.v2-chip-group--scroll::-webkit-scrollbar { height: 4px; }
.v2-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; min-height: 36px;
  background: rgba(255,255,255,0.04); color: var(--text-muted);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; user-select: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.v2-chip:hover { color: var(--text); background: rgba(255,255,255,0.07); border-color: rgba(220, 230, 248, 0.22); }
.v2-chip:active { transform: scale(0.97); }
.v2-chip[aria-pressed="true"], .v2-chip.is-active {
  background: rgba(110, 122, 144, 0.18);
  color: #e6ebf3;
  border-color: rgba(220, 230, 248, 0.26);
  outline: 1px solid rgba(220, 230, 248, 0.12);
  outline-offset: -1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(0,0,0,0.22);
}
.v2-chip.is-anti[aria-pressed="true"] { background: var(--anti-soft); color: var(--anti-strong); border-color: var(--anti); }
.v2-chip.is-pro[aria-pressed="true"] { background: var(--pro-soft); color: var(--pro-strong); border-color: var(--pro); }
.v2-chip.is-enacted[aria-pressed="true"] { background: var(--enacted-soft); color: var(--enacted); border-color: var(--enacted); }
.v2-chip.is-symbolic[aria-pressed="true"] { background: var(--symbolic-soft); color: var(--symbolic); border-color: var(--symbolic); }
.v2-chip.is-pending[aria-pressed="true"] { background: var(--pending-soft); color: var(--pending); border-color: var(--pending); }
.v2-chip.is-dead[aria-pressed="true"] { background: var(--dead-soft); color: var(--text-muted); border-color: var(--text-dim); }
.v2-chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: rgba(255, 255, 255, 0.1); border-radius: 999px;
  font-size: 0.66rem; font-weight: 600;
}

/* Dropdown / select */
.v2-field { display: flex; flex-direction: column; gap: 6px; }
.v2-field-label {
  font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.v2-select, .v2-input {
  background: var(--bg-input); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px;
  font-size: 0.92rem; outline: none;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.v2-select:focus, .v2-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35,86,217,0.18);
}
.v2-select { appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23 98a3b8' d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* Buttons */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 14px; min-height: 44px;
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.v2-btn:hover { background: rgba(255,255,255,0.07); border-color: var(--line-strong); }
.v2-btn:active { transform: scale(0.98); }
.v2-btn--primary { background: var(--accent); color: white; border-color: var(--accent); }
.v2-btn--primary:hover { background: var(--accent-hot); }
.v2-btn--ghost { background: transparent; }
.v2-btn--danger { background: transparent; border-color: var(--anti); color: var(--anti-strong); }
.v2-btn--sm { padding: 6px 10px; min-height: 32px; font-size: 0.78rem; }
.v2-btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* Preset buttons (universe presets) */
.v2-preset-row { display: flex; gap: 6px; flex-wrap: wrap; }
.v2-preset {
  padding: 8px 14px; min-height: 36px;
  background: rgba(255,255,255,0.04); color: var(--text-muted);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.v2-preset:hover { color: var(--text); background: rgba(255,255,255,0.07); border-color: var(--line-strong); }
.v2-preset.is-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 0 1px rgba(0,0,0,0.22);
}

/* Pills (status / stance) */
.v2-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; font-size: 0.7rem; font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--bg-elev); color: var(--text-muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.v2-pill--anti { background: var(--anti-soft); color: var(--anti-strong); border-color: rgba(227,90,77,0.4); }
.v2-pill--pro { background: var(--pro-soft); color: var(--pro-strong); border-color: rgba(79,158,255,0.4); }
.v2-pill--enacted { background: var(--enacted-soft); color: var(--enacted); border-color: rgba(239,68,68,0.4); }
.v2-pill--symbolic { background: var(--symbolic-soft); color: var(--symbolic); border-color: rgba(245,158,11,0.4); }
.v2-pill--pending { background: var(--pending-soft); color: var(--pending); border-color: rgba(234,179,8,0.4); }
.v2-pill--dead { background: var(--dead-soft); color: var(--text-muted); border-color: rgba(107,114,128,0.4); }
.v2-pill--info { background: var(--accent-soft); color: var(--accent); border-color: rgba(79,158,255,0.4); }

/* Checkboxes (toggle style) */
.v2-toggle-list { display: flex; flex-direction: column; gap: 6px; }
.v2-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; min-height: 44px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.86rem;
}
.v2-toggle input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.v2-toggle:hover { border-color: var(--line-strong); }
.v2-toggle.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Range slider */
.v2-range { display: flex; flex-direction: column; gap: 6px; }
.v2-range-track {
  position: relative; height: 6px; background: var(--bg-elev);
  border-radius: 3px; margin: 12px 8px;
}
.v2-range-value-row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }

/* Tabs (inside a panel) */
.v2-inner-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.v2-inner-tab {
  padding: 8px 12px; background: transparent; border: 0;
  color: var(--text-muted); font-weight: 500; font-size: 0.86rem;
  border-bottom: 2px solid transparent; cursor: pointer;
  white-space: nowrap; min-height: 38px;
}
.v2-inner-tab:hover { color: var(--text); }
.v2-inner-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* Modal */
.v2-modal {
  position: fixed; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5, 6, 8, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  padding: 0;
}
.v2-modal-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  width: 100%; max-width: 100vw;
  max-height: 90dvh;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.v2-modal-header {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}
.v2-modal-title { flex: 1; margin: 0; font-size: 1.1rem; font-weight: 600; }
.v2-modal-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.v2-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end;
}
@media (min-width: 700px) {
  .v2-modal { align-items: center; padding: 24px; }
  .v2-modal-inner {
    max-width: 720px; max-height: 86dvh;
    border-radius: var(--radius-lg);
    border-top: 1px solid var(--line);
  }
}
@media (min-width: 1100px) {
  .v2-modal-inner { max-width: 880px; }
}

/* Error / empty banners */
.v2-error, .v2-empty {
  text-align: center; padding: 22px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.86rem;
  background: var(--bg-soft);
}
.v2-error { border-color: rgba(239,68,68,0.5); color: var(--anti-strong); }

/* Skeleton loader */
.v2-skel {
  background: linear-gradient(90deg, #0d0f14 0%, #1a1d24 50%, #0d0f14 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes v2-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tags / mech tags */
.v2-tag {
  display: inline-flex; align-items: center;
  padding: 2px 7px; font-size: 0.7rem;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text-muted);
  white-space: nowrap;
}
.v2-tag--mech { color: var(--text); }

/* Panel export button (↗) */
.v2-panel-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 31, 45, 0.64), rgba(9, 12, 19, 0.46));
  color: #9fb0c8;
  font-size: 0.88rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 20px rgba(0,0,0,0.18);
  opacity: 0.9;
  flex-shrink: 0;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}
.v2-panel-export:hover,
.v2-panel-export:focus-visible {
  color: #f8fafc;
  border-color: rgba(220, 230, 248, 0.24);
  background: rgba(255,255,255,0.06);
  opacity: 1;
  outline: none;
}
.v2-panel-export svg {
  width: 15px;
  height: 15px;
}

/* Bill card location line */
.v2-bill-state { font-size: 0.76rem; color: var(--text-muted); }

/* Tabulator overrides — keep tables pitch-black and high contrast */
.tabulator,
.tabulator .tabulator-tableholder,
.tabulator .tabulator-table {
  background: #000 !important;
  color: var(--text) !important;
}
.tabulator {
  border-color: var(--line) !important;
}
.tabulator .tabulator-header,
.tabulator .tabulator-header .tabulator-col,
.tabulator .tabulator-footer,
.tabulator .tabulator-frozen {
  background: #05070b !important;
  color: var(--text-muted) !important;
  border-color: var(--line) !important;
}
.tabulator .tabulator-row {
  background: #020304 !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line-soft) !important;
}
.tabulator .tabulator-row.tabulator-row-even {
  background: #05070b !important;
}
.tabulator .tabulator-row.tabulator-selectable:hover {
  background: rgba(79,158,255,.13) !important;
}
.tabulator .tabulator-row.tabulator-selected {
  background: var(--accent-soft) !important;
}
.tabulator .tabulator-cell {
  color: var(--text) !important;
  border-right: 1px solid var(--line-soft) !important;
}
.tabulator input,
.tabulator select {
  background: var(--bg-input) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

/* ─── More tab active indicator ─────────────────────────────── */
/* Applied when route is mechanisms or topics */
.v2-bot-tab.is-more-active {
  color: var(--accent);
}
.v2-bot-tab.is-more-active svg { opacity: 1; }
/* Small dot above the More button */
.v2-bot-more { position: relative; }
.v2-bot-tab.is-more-active::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 28%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ─── More bottom sheet items ────────────────────────────────── */
.v2-more-sheet-list {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0;
}
.v2-more-sheet-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 64px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  width: 100%;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.v2-more-sheet-item:hover, .v2-more-sheet-item:focus-visible {
  background: var(--accent-soft); border-color: var(--accent);
  outline: none;
}
.v2-more-sheet-icon { flex-shrink: 0; color: var(--accent); opacity: 0.85; }
.v2-more-sheet-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.v2-more-sheet-label { font-size: 0.96rem; font-weight: 600; }
.v2-more-sheet-sub { font-size: 0.74rem; color: var(--text-muted); }
.v2-more-sheet-arrow { flex-shrink: 0; color: var(--text-muted); }

/* ─── Empty state ────────────────────────────────────────────── */
.v2-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}
.v2-empty-state svg { opacity: 0.4; }
.v2-empty-state-title { font-size: 0.96rem; font-weight: 600; color: var(--text-muted); margin: 0; }
.v2-empty-state-sub { font-size: 0.82rem; color: var(--text-dim); margin: 0; max-width: 32ch; line-height: 1.5; }

/* ─── Slice summary placeholder ──────────────────────────────── */
.v2-slice-summary:empty::before {
  content: "Showing all bills · click Filters to slice";
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ─── Boot error state ───────────────────────────────────────── */
.v2-boot-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
}
.v2-boot-error-icon {
  font-size: 2rem; color: var(--anti); line-height: 1;
}
.v2-boot-error-msg {
  font-size: 0.92rem; color: var(--text-muted);
  max-width: 40ch; line-height: 1.55;
}
.v2-boot-error .v2-btn {
  margin-top: 4px;
}

/* ─── Print styles ───────────────────────────────────────────── */
@media print {
  .v2-topbar,
  .v2-sidenav,
  .v2-bottom-tabs,
  .v2-filter-drawer,
  .v2-modal-root,
  .v2-search-palette { display: none !important; }

  .v2-app { display: block; }
  .v2-main { padding: 0 !important; max-width: none !important; }

  body { background: white !important; color: black !important; }

  .v2-panel {
    border: 1px solid #ccc !important;
    background: white !important;
    page-break-inside: avoid;
    margin-bottom: 16px;
  }
  .v2-panel-title { color: black !important; }
  .v2-text-muted, .v2-panel-sub { color: #555 !important; }

  .v2-slice-summary {
    border: 1px solid #ccc !important;
    background: #f9f9f9 !important;
    color: #333 !important;
  }
  .v2-slice-summary:empty { display: none; }
}

/* ─── Mechanism-arch section: stance / status mode toggle ──── */
.v2-mode-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill, 999px);
  margin-bottom: 8px;
}
.v2-mode-btn {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.74rem;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 28px;
  min-width: 44px;
  transition: background 140ms;
  white-space: nowrap;
}
.v2-mode-btn:hover { color: var(--text); }
.v2-mode-btn.is-active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.35));
}
.v2-mode-btn:active { transform: scale(0.97); }

/* ─── Panel-level toggle row ─────────────────────────────── */
.v2-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 4px 0 10px;
}
.v2-toggle-row + .v2-toggle-row {
  margin-top: -4px;
}
.v2-mode-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  min-height: 32px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  line-height: 1.15;
}
.v2-mode-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  border-color: rgba(220, 230, 248, 0.22);
}
.v2-mode-btn:active { transform: scale(0.97); }
.v2-mode-btn.is-active {
  background: rgba(110, 122, 144, 0.18);
  color: #e6ebf3;
  border-color: rgba(220, 230, 248, 0.28);
  font-weight: 600;
  outline: 1px solid rgba(220, 230, 248, 0.14);
  outline-offset: -1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(0,0,0,0.24);
}

@media (max-width: 599px) {
  .v2-mode-toggle {
    display: flex;
    max-width: 100%;
    min-width: 0;
    border-radius: 8px;
  }
  .v2-mode-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    white-space: normal;
  }
}

/* In-panel select used for Top-N etc. */
.v2-panel-select {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 6px);
  padding: 6px 8px;
  min-height: 32px;
  font-size: 0.78rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.v2-panel-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35,86,217,0.18);
  outline: none;
}

/* Panel sub-header label (e.g. "Stance:" before a toggle row) */
.v2-toggle-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim, #687283);
  margin-right: 6px;
  align-self: center;
}

/* ─── Loading skeleton blocks ────────────────────────────── */
.v2-skel-chart {
  display: block;
  width: 100%;
  height: 280px;
  background: linear-gradient(90deg, #0d0f14 0%, #1a1d24 50%, #0d0f14 100%);
  background-size: 200% 100%;
  animation: v2skelshimmer 1.5s linear infinite;
  border-radius: 10px;
}
@keyframes v2skelshimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty / error state styling ───────────────────────── */
.v2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.4;
  min-height: 120px;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(13, 15, 20, 0.6);
}
.v2-empty::before {
  content: "—";
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
  opacity: 0.6;
}
.v2-error {
  padding: 14px 18px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  color: #ff6674;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ─── Chip filter group for V11.6 tier filters etc. ─────── */
.v2-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.v2-chip-group .v2-chip {
  cursor: pointer;
  user-select: none;
}

/* ─── Focus visibility ──────────────────────────────────── */
.v2-mode-btn:focus-visible,
.v2-chip:focus-visible,
.v2-panel-select:focus-visible,
.v2-bot-tab:focus-visible,
.v2-tab:focus-visible,
.v2-bill-card:focus-visible {
  outline: 2px solid var(--accent, #88adff);
  outline-offset: 2px;
  border-radius: var(--radius-sm, 6px);
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .v2-skel-chart {
    animation: none !important;
    background: rgba(255,255,255,0.04);
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ─── Screen-reader-only utility ────────────────────────── */
.v2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Touch target minimum ──────────────────────────────── */
@media (pointer: coarse) {
  .v2-mode-btn, .v2-chip, .v2-panel-select, .v2-bot-tab {
    min-height: 36px;
  }
}

/* ─── Bottom-tab slice badge ─────────────────────────────── */
.v2-bot-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  margin-top: -2px;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dim, #687283);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line, #2b3447);
  border-radius: 999px;
  text-align: center;
}
.v2-bot-tab.is-active .v2-bot-badge {
  color: var(--accent, #88adff);
  border-color: var(--accent, #88adff);
  background: rgba(78, 140, 247, 0.14);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAPER MODE — V204 paper-safe number lock
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Top-bar toggle button ──────────────────────────────────────────────── */
.v2-paper-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 36px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted, #98a3b8);
  background: var(--bg-elev, #1f2737);
  border: 1px solid var(--line, #2b3447);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  flex-shrink: 0;
}
.v2-paper-mode-btn:hover {
  color: var(--text, #edf2f7);
  border-color: var(--accent, #88adff);
}
.v2-paper-mode-btn.is-active,
.v2-paper-mode-btn[aria-pressed="true"] {
  background: rgba(78, 140, 247, 0.15);
  color: var(--accent, #88adff);
  border-color: var(--accent, #88adff);
  box-shadow: 0 0 0 1px var(--accent, #88adff) inset;
}
.v2-paper-btn-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}
/* Hide the text label on very small screens — keep the icon */
@media (max-width: 360px) {
  .v2-paper-btn-label { display: none; }
}

/* ── Paper Mode info banner (thin stripe below topbar) ──────────────────── */
.v2-paper-banner {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-topbar, 100) - 1);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(78, 140, 247, 0.12);
  border-bottom: 1px solid rgba(78, 140, 247, 0.35);
  font-size: 0.78rem;
  color: var(--accent, #88adff);
  line-height: 1.4;
  flex-wrap: wrap;
}
.v2-paper-banner[hidden] { display: none !important; }
.v2-paper-banner-icon { font-size: 1rem; flex-shrink: 0; }
.v2-paper-banner-text { flex: 1; min-width: 0; }
.v2-paper-banner-text strong { color: var(--text, #edf2f7); }
.v2-paper-banner-counts {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted, #98a3b8);
  font-size: 0.73rem;
}
.v2-paper-banner-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(78, 140, 247, 0.4);
  border-radius: var(--radius-sm, 6px);
  color: var(--accent, #88adff);
  cursor: pointer;
  padding: 0;
  transition: background 0.1s;
}
.v2-paper-banner-close:hover {
  background: rgba(78, 140, 247, 0.2);
}

/* ── Locked-controls overlay (sits over filter-drawer body) ─────────────── */
.v2-paper-locked-overlay {
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius, 10px);
  pointer-events: all;
}
.v2-paper-locked-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid rgba(78, 140, 247, 0.4);
  border-radius: var(--radius, 10px);
  color: var(--text-muted, #98a3b8);
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 320px;
  text-align: center;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.5));
}
.v2-paper-locked-msg svg { color: var(--accent, #88adff); flex-shrink: 0; }

/* ── Per-panel caption tag row ──────────────────────────────────────────── */
.v2-paper-caption {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(78, 140, 247, 0.07);
  border: 1px solid rgba(78, 140, 247, 0.22);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.66rem;
  color: var(--text-dim, #687283);
  font-family: var(--font-mono, ui-monospace, monospace);
  line-height: 1.55;
  word-break: break-word;
  letter-spacing: 0.01em;
}

/* ── Body class: is-paper-mode ──────────────────────────────────────────── */
/* Dim the filter badge to signal "controlled externally" */
body.is-paper-mode #filterBadge {
  opacity: 0.45;
}
/* Add a subtle accent glow ring to the Paper Mode button */
body.is-paper-mode .v2-paper-mode-btn {
  box-shadow: 0 0 0 2px rgba(78, 140, 247, 0.3);
}

/* ─── Print: suppress Paper Mode chrome ─────────────────────────────────── */
@media print {
  .v2-paper-banner,
  .v2-paper-mode-btn,
  .v2-paper-locked-overlay { display: none !important; }
  .v2-paper-caption {
    background: #f0f4ff !important;
    border-color: #aab8e0 !important;
    color: #334 !important;
  }
}

/* ═══ Bill Drawer v2 — base overrides (detail styles injected by JS) ════════ */
/* Ensure drawer sits above all panels/modals */
.bd2-overlay { z-index: 9000 !important; }

/* Safe-area insets for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bd2-action-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .bd2-drawer { padding-bottom: env(safe-area-inset-bottom); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .bd2-drawer, .bd2-overlay { animation: none !important; }
  .bd2-gauge-fill { transition: none !important; }
}

/* Print: hide drawer */
@media print {
  .bd2-overlay { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ⌘K Command Palette — upgraded search center
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Overlay + sheet ──────────────────────────────────────────────────────── */
.v2-search-palette {
  /* Override base.css defaults — full fixed overlay */
  position: fixed; inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  z-index: var(--z-search-palette, 900);
}
.v2-search-palette[aria-hidden="false"],
.v2-search-palette.is-open {
  display: flex;
}

.sp-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
}

/* Desktop: centered card */
.sp-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 8vh auto 0;
  background: var(--bg-card, #18191f);
  border: 1px solid var(--line-strong, rgba(255,255,255,0.12));
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  overflow: hidden;
  animation: sp-slide-in 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sp-slide-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Input row ────────────────────────────────────────────────────────────── */
.sp-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.08));
  flex-shrink: 0;
}

.sp-search-icon {
  color: var(--text-dim, #666);
  flex-shrink: 0;
}

.sp-input {
  flex: 1;
  padding: 16px 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text, #e8eaf0);
  min-width: 0;
  /* Remove browser search decorations */
  -webkit-appearance: none;
  appearance: none;
}
.sp-input::placeholder { color: var(--text-dim, #555); }
.sp-input::-webkit-search-cancel-button { display: none; }

.sp-esc-key {
  font-size: 0.72rem;
  padding: 3px 7px;
  background: var(--bg-soft, #22242c);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 5px;
  color: var(--text-dim, #666);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  cursor: default;
}

/* ── Results list ─────────────────────────────────────────────────────────── */
.sp-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 8px;
}
.sp-list::-webkit-scrollbar { width: 4px; }
.sp-list::-webkit-scrollbar-track { background: transparent; }
.sp-list::-webkit-scrollbar-thumb { background: var(--line-strong, rgba(255,255,255,0.15)); border-radius: 4px; }

/* ── Section headers ──────────────────────────────────────────────────────── */
.sp-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #555);
  user-select: none;
}
.sp-sec-icon { font-size: 0.85rem; }
.sp-sec-label { flex: 1; }
.sp-sec-count {
  font-size: 0.68rem;
  padding: 1px 5px;
  background: var(--bg-soft, #22242c);
  border-radius: 20px;
  color: var(--text-muted, #888);
}
.sp-sec-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim, #555);
  font-size: 0.75rem;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
}
.sp-sec-clear:hover { background: var(--bg-elev, #28292e); color: var(--text, #e8eaf0); }

/* ── Result rows ──────────────────────────────────────────────────────────── */
.sp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.08s, border-color 0.08s;
  min-height: 44px; /* accessible tap target */
  user-select: none;
}
.sp-row:hover,
.sp-row.is-focus {
  background: var(--bg-elev, #26282f);
  border-left-color: var(--accent, #e55a4d);
}
.sp-row.is-focus { outline: none; }

.sp-row-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.sp-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sp-row-title {
  font-size: 0.9rem;
  color: var(--text, #e8eaf0);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-row-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-row-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Highlight marks ──────────────────────────────────────────────────────── */
.sp-mark {
  background: rgba(229, 90, 77, 0.25);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.sp-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sp-badge--enacted {
  background: rgba(74, 201, 126, 0.2);
  color: #4ac97e;
  border: 1px solid rgba(74, 201, 126, 0.3);
}
.sp-badge--pending {
  background: rgba(255, 195, 0, 0.18);
  color: #ffc300;
  border: 1px solid rgba(255, 195, 0, 0.3);
}
.sp-badge--count {
  background: var(--bg-soft, #22242c);
  color: var(--text-muted, #888);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
}

/* ── Stance pills ─────────────────────────────────────────────────────────── */
.sp-pill {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sp-pill--anti {
  background: rgba(229, 90, 77, 0.18);
  color: #e55a4d;
  border: 1px solid rgba(229, 90, 77, 0.3);
}
.sp-pill--pro {
  background: rgba(74, 140, 247, 0.18);
  color: #4a8cf7;
  border: 1px solid rgba(74, 140, 247, 0.3);
}

/* ── Pin button ───────────────────────────────────────────────────────────── */
.sp-pin-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim, #555);
  font-size: 0.85rem;
  padding: 3px;
  line-height: 1;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.12s, color 0.12s, background 0.12s;
}
.sp-row:hover .sp-pin-btn,
.sp-row.is-focus .sp-pin-btn {
  opacity: 1;
}
.sp-pin-btn:hover { background: var(--bg-soft, #22242c); color: var(--accent, #e55a4d); }
.sp-pin-btn.is-pinned { opacity: 1; color: #f5c518; }
.sp-pin-btn.is-pinned:hover { color: var(--text-dim, #555); }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.sp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px;
  gap: 10px;
  text-align: center;
  color: var(--text-muted, #888);
}
.sp-empty-icon {
  font-size: 2rem;
  opacity: 0.4;
  line-height: 1;
}
.sp-empty-text {
  font-size: 0.9rem;
  color: var(--text-muted, #888);
}
.sp-empty-sub {
  font-size: 0.78rem;
  color: var(--text-dim, #555);
  max-width: 300px;
}
.sp-empty-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}
.sp-hint-chip {
  background: var(--bg-soft, #22242c);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sp-hint-chip:hover {
  background: var(--bg-elev, #28292e);
  color: var(--text, #e8eaf0);
  border-color: var(--line-strong, rgba(255,255,255,0.18));
}

/* ── Footer keyboard hints ────────────────────────────────────────────────── */
.sp-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  font-size: 0.7rem;
  color: var(--text-dim, #555);
  flex-shrink: 0;
  background: var(--bg-soft, #1e1f26);
}
.sp-footer kbd {
  font-size: 0.65rem;
  padding: 1px 5px;
  background: var(--bg-elev, #28292e);
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  border-radius: 4px;
  letter-spacing: 0;
  margin-right: 2px;
  color: var(--text-muted, #888);
  font-family: inherit;
}
.sp-footer-count {
  margin-left: auto;
  color: var(--text-muted, #888);
  font-variant-numeric: tabular-nums;
}
.sp-footer-cat {
  color: var(--accent, #e55a4d);
  font-weight: 600;
}

/* ── Mobile: full-screen slide-up sheet ───────────────────────────────────── */
@media (max-width: 640px) {
  .v2-search-palette {
    align-items: flex-end;
    padding: 0;
  }
  .sp-backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .sp-sheet {
    margin: 0;
    max-width: 100%;
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    animation: sp-slide-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes sp-slide-up {
    from { transform: translateY(40px); opacity: 0.6; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .sp-row {
    min-height: 48px; /* larger tap targets on mobile */
    padding: 10px 16px;
  }
  .sp-input {
    font-size: 16px; /* prevent iOS zoom-on-focus */
    padding: 18px 0;
  }
  .sp-footer {
    /* hide verbose hints on mobile; keep count */
    gap: 10px;
    padding: 10px 16px;
  }
  .sp-footer span:not(.sp-footer-count):not(.sp-footer-cat) { display: none; }
  .sp-sec-clear { min-width: 28px; min-height: 28px; }
}

/* ── Suppress the legacy two-column inner wrapper if present ─────────────── */
.v2-search-palette .v2-search-palette-inner { display: none !important; }
/* (the new .sp-sheet replaces it) */

/* ── Dashboard Switcher ──────────────────────────────────────────────────── */

/* Pill button in topbar */
.v2-dash-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 74px;
  height: 38px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(24, 31, 45, 0.58), rgba(9, 12, 19, 0.42));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 11px;
  color: #dbe4f0;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.18);
}
.v2-dash-switch:hover {
  border-color: rgba(220, 230, 248, 0.30);
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}
.v2-dash-switch[aria-expanded="true"] {
  border-color: rgba(220, 230, 248, 0.34);
  color: #f8fafc;
}
.v2-dash-switch-label {
  font-size: 0.78rem;
  font-weight: 760;
}
.v2-dash-switch-icon {
  flex-shrink: 0;
  opacity: 0.9;
}
.v2-dash-switch-chevron {
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.v2-dash-switch[aria-expanded="true"] .v2-dash-switch-chevron {
  transform: rotate(180deg);
}

/* Floating dropdown menu (desktop) */
.v2-dash-menu {
  position: absolute;
  z-index: calc(var(--z-topbar, 100) + 10);
  width: 264px;
  background: linear-gradient(180deg, rgba(14, 19, 30, 0.76), rgba(5, 8, 14, 0.62));
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 7px;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.v2-dash-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Menu item rows */
.v2-dash-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  text-align: left;
  color: var(--text, #e8edf7);
  transition: background 0.12s;
}
.v2-dash-menu-item:hover:not(.is-current) {
  background: color-mix(in srgb, var(--accent, #3f7cff) 10%, transparent);
}
.v2-dash-menu-item.is-current {
  cursor: default;
  background: color-mix(in srgb, var(--accent, #3f7cff) 6%, transparent);
}
.v2-dash-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 850;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
}
.v2-dash-menu-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.v2-dash-menu-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #e8edf7);
  line-height: 1.3;
}
.v2-dash-menu-item.is-current .v2-dash-menu-label {
  color: var(--accent, #3f7cff);
}
.v2-dash-menu-desc {
  font-size: 0.72rem;
  color: var(--text-muted, #8a92a3);
  line-height: 1.3;
}
.v2-dash-menu-check {
  font-size: 0.85rem;
  color: var(--accent, #3f7cff);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* Return toast pill */
.v2-dash-return-toast {
  position: fixed;
  bottom: 80px; /* above bottom tab bar */
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: calc(var(--z-topbar, 100) + 5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: color-mix(in srgb, var(--bg-elev, #12141a) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--accent, #3f7cff);
  border-radius: 999px;
  color: var(--text, #e8edf7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(79,158,255,0.2);
}
.v2-dash-return-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (min-width: 641px) {
  .v2-dash-return-toast {
    bottom: 24px;
  }
}

/* ── V1 parity widgets on v2 overview ───────────────────────────────────── */
.legacy2-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legacy2-section-intro {
  padding: 10px 2px 2px;
}
.legacy2-section-intro h3 {
  margin: 0;
  color: var(--text, #eef2f7);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
}
.legacy2-section-intro p {
  margin: 4px 0 0;
  color: var(--text-muted, #94a3b8);
  font-size: 0.78rem;
  line-height: 1.45;
}
.legacy2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
  align-items: start;
}
.legacy2-panel {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.96), rgba(3, 6, 10, 0.98));
  border-color: rgba(71, 85, 105, 0.45);
}
.legacy2-panel .v2-panel-body {
  gap: 12px;
}
.legacy2-plot {
  min-height: 330px;
  height: 360px;
}
.legacy2-note {
  border: 1px solid rgba(71, 85, 105, 0.42);
  background: rgba(2, 6, 12, 0.72);
  color: var(--text-muted, #a8b3c7);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}
.legacy2-note strong {
  color: var(--text, #eef2f7);
}
.legacy2-table-wrap {
  max-height: 420px;
  overflow: auto;
  border-radius: 8px;
  background: #02050a;
}
.legacy2-data-details {
  margin-top: 2px;
}
.legacy2-table {
  min-width: 760px;
}
.legacy2-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #05080d;
  color: #e5edf9;
  border-bottom-color: rgba(71, 85, 105, 0.75);
}
.legacy2-table td {
  color: #d7deea;
  border-bottom-color: rgba(30, 41, 59, 0.72);
}
.legacy2-table .wb2-cell--clickable {
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.55);
  text-underline-offset: 2px;
}
.legacy2-table .wb2-cell--clickable:hover {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.12);
}
.legacy2-method {
  flex: 0 0 auto;
  max-width: min(320px, 44vw);
  margin-left: auto;
  color: #a8b0bf;
  font-size: 0.67rem;
  line-height: 1.35;
}
.legacy2-method > summary {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
  color: #dbe7f7;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  list-style: none;
  text-transform: uppercase;
}
.legacy2-method > summary::-webkit-details-marker {
  display: none;
}
.legacy2-method > summary:hover {
  border-color: rgba(93, 134, 255, 0.68);
  background: rgba(35, 86, 217, 0.20);
  color: #ffffff;
}
.legacy2-method p {
  margin: 6px 0 0;
  padding: 8px 9px;
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.88);
  color: #bac4d3;
}
.legacy2-panel .v2-kpi-grid {
  margin: 0;
}
.legacy2-custom {
  min-width: 0;
}
.legacy2-denominator-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.legacy2-denominator-block {
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 8px;
  background: rgba(2, 6, 12, 0.68);
  overflow: hidden;
}
.legacy2-denominator-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.42);
}
.legacy2-denominator-head h3 {
  margin: 0;
  color: #f2f6fb;
  font-size: 0.92rem;
  line-height: 1.2;
}
.legacy2-denominator-head p {
  margin: 4px 0 0;
  color: var(--text-muted, #a8b3c7);
  font-size: 0.72rem;
  line-height: 1.35;
}
.legacy2-denominator-table-wrap {
  max-height: 460px;
  border: 0;
  border-radius: 0;
}
.legacy2-denominator-table {
  min-width: 680px;
}
.legacy2-mirror-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
  color: #a8b3c7;
  font-size: 0.78rem;
}
.legacy2-mirror-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 8px;
  color: #eaf2ff;
  background: rgba(37, 99, 235, 0.2);
  text-decoration: none;
  font-weight: 750;
}
.legacy2-mirror-link:hover {
  background: rgba(37, 99, 235, 0.34);
  border-color: rgba(147, 197, 253, 0.8);
}
.legacy2-iframe {
  display: block;
  width: 100%;
  height: min(980px, 78vh);
  min-height: 660px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 8px;
  background: #000;
}

@media (min-width: 980px) {
  .legacy2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legacy2-panel--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .legacy2-method {
    max-width: 100%;
    margin-left: 0;
  }
  .legacy2-method p {
    max-width: 100%;
  }
  .legacy2-plot {
    min-height: 290px;
    height: 320px;
  }
  .legacy2-table {
    min-width: 680px;
  }
  .legacy2-table-wrap {
    max-height: 360px;
  }
  .legacy2-denominator-combo {
    grid-template-columns: 1fr;
  }
  .legacy2-denominator-table {
    min-width: 660px;
  }
  .legacy2-iframe {
    min-height: 560px;
    height: 72vh;
  }
}

/* ─── Explore consolidated workbench ──────────────────────────────────── */
.ov2-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 18, 26, 0.96), rgba(7, 8, 11, 0.96));
}

.ov2-hero h1 {
  margin: 2px 0 8px;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.2rem);
  letter-spacing: 0;
  color: var(--text);
}

.ov2-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.ov2-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ov2-grain-guide {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(420px, 100%);
}

.ov2-grain-guide span,
.ov2-method,
.ov2-mode-readout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(96, 125, 170, 0.35);
  border-radius: 999px;
  background: rgba(13, 18, 28, 0.88);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.ov2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ov2-panel {
  margin-bottom: 14px;
}

.ov2-panel--wide .v2-panel-body {
  min-height: 460px;
}

.ov2-control-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 12px;
}

.ov2-select-label,
.ov2-search-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ov2-select-label select,
.ov2-search-label input {
  min-height: 36px;
  border: 1px solid rgba(96, 125, 170, 0.35);
  border-radius: 8px;
  background: #10141d;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ov2-select-label select {
  padding: 0 32px 0 10px;
}

.ov2-search-label {
  width: min(680px, 100%);
  align-items: stretch;
  flex-direction: column;
}

.ov2-search-label input {
  width: 100%;
  padding: 0 12px;
}

.ov2-direction-plot {
  min-height: 470px;
}

.ov2-topic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  padding: 0 18px 18px;
}

.ov2-topic-plot {
  min-height: 390px;
  border: 1px solid rgba(96, 125, 170, 0.18);
  border-radius: 8px;
  background: rgba(2, 3, 5, 0.18);
}

.ov2-matrix-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.ov2-matrix-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.ov2-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(96, 125, 170, 0.35);
  background: #080a0f;
  color: var(--text-muted);
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ov2-matrix-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  max-width: 220px;
  border-right: 1px solid rgba(96, 125, 170, 0.18);
}

.ov2-matrix-table tbody th span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--ov2-dot, #94a3b8);
}

.ov2-matrix-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(96, 125, 170, 0.14);
  background: rgba(5, 6, 8, 0.76);
}

.ov2-matrix-cell {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(96, 125, 170, 0.24);
  border-radius: 8px;
  background: rgba(18, 23, 33, 0.9);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.ov2-matrix-cell b,
.ov2-matrix-cell span {
  display: block;
}

.ov2-matrix-cell b {
  margin-bottom: 3px;
  font-size: 0.98rem;
}

.ov2-matrix-cell span {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.ov2-matrix-cell.is-high {
  border-color: rgba(58, 185, 122, 0.58);
  background: rgba(28, 92, 61, 0.32);
}

.ov2-matrix-cell.is-mid {
  border-color: rgba(214, 162, 58, 0.5);
  background: rgba(94, 66, 18, 0.28);
}

.ov2-matrix-cell:hover,
.ov2-evidence-row:hover {
  border-color: var(--accent);
}

.ov2-matrix-empty {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  color: var(--text-dim);
}

.ov2-state-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.ov2-state-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.ov2-state-table th,
.ov2-state-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(96, 125, 170, 0.15);
  text-align: right;
  vertical-align: middle;
}

.ov2-state-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #080a0f;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ov2-state-table th:first-child,
.ov2-state-table td:first-child {
  text-align: left;
}

.ov2-state-table tbody tr {
  cursor: pointer;
  background: rgba(5, 6, 8, 0.74);
}

.ov2-state-table tbody tr:hover {
  background: rgba(23, 31, 45, 0.9);
}

.ov2-state-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(8, 10, 15, 0.98);
  border-right: 1px solid rgba(96, 125, 170, 0.18);
}

.ov2-state-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  margin-right: 8px;
  border: 1px solid rgba(110, 168, 255, 0.3);
  border-radius: 6px;
  color: #d8e6ff;
  background: rgba(18, 40, 88, 0.42);
  font-weight: 900;
}

.ov2-state-name {
  color: var(--text-muted);
  font-weight: 750;
}

.ov2-state-selected {
  min-width: 170px;
}

.ov2-state-selected b {
  display: inline-block;
  min-width: 54px;
  margin-left: 8px;
  color: var(--text);
}

.ov2-state-bar {
  display: inline-flex;
  width: 92px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(96, 125, 170, 0.18);
  vertical-align: middle;
}

.ov2-state-bar i {
  display: block;
  border-radius: inherit;
  background: var(--ov2-state-bar, #94a3b8);
}

.ov2-state-bar.is-anti {
  --ov2-state-bar: #ff3b1f;
}

.ov2-state-bar.is-pro {
  --ov2-state-bar: #2356d9;
}

.ov2-state-bar.is-enacted {
  --ov2-state-bar: #2fd087;
}

.ov2-state-bar.is-pending {
  --ov2-state-bar: #d6a23a;
}

.ov2-state-table .is-anti {
  color: #ff5b68;
}

.ov2-state-table .is-pro {
  color: #6ea8ff;
}

.ov3-pivot-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.ov3-pivot-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.ov3-pivot-table th,
.ov3-pivot-table td {
  padding: 7px;
  border-bottom: 1px solid rgba(96, 125, 170, 0.14);
}

.ov3-pivot-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #080a0f;
  color: var(--text-muted);
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ov3-pivot-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 220px;
  max-width: 220px;
  border-right: 1px solid rgba(96, 125, 170, 0.18);
  background: rgba(8, 10, 15, 0.98);
  color: var(--text);
  text-align: left;
  font-weight: 850;
}

.ov3-pivot-cell {
  position: relative;
  display: block;
  width: 100%;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(96, 125, 170, 0.26);
  border-radius: 8px;
  background: rgba(16, 20, 29, 0.88);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.ov3-pivot-cell b,
.ov3-pivot-cell span {
  position: relative;
  z-index: 1;
  display: block;
  padding-left: 10px;
  padding-right: 10px;
}

.ov3-pivot-cell b {
  padding-top: 9px;
  font-size: 0.98rem;
}

.ov3-pivot-cell span {
  padding-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.ov3-pivot-cell i {
  position: absolute;
  inset: auto auto 0 0;
  display: block;
  height: 4px;
  background: var(--ov3-pivot-accent, #6ea8ff);
}

.ov3-pivot-cell.is-high {
  --ov3-pivot-accent: #2fd087;
  border-color: rgba(47, 208, 135, 0.5);
  background: rgba(18, 78, 53, 0.28);
}

.ov3-pivot-cell.is-mid {
  --ov3-pivot-accent: #d6a23a;
  border-color: rgba(214, 162, 58, 0.46);
  background: rgba(86, 62, 19, 0.28);
}

.ov3-pivot-cell:hover {
  border-color: #6ea8ff;
}

.ov3-pivot-empty {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  color: var(--text-dim);
}

.ov2-evidence-list {
  display: grid;
  gap: 8px;
}

.ov2-evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(96, 125, 170, 0.24);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.96);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.ov2-evidence-main,
.ov2-evidence-tags {
  min-width: 0;
}

.ov2-evidence-title,
.ov2-evidence-quote {
  display: block;
}

.ov2-evidence-title {
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 800;
}

.ov2-evidence-quote {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.ov2-evidence-tags {
  display: flex;
  align-content: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.ov2-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(96, 125, 170, 0.28);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(16, 20, 29, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.ov2-pill.is-anti {
  border-color: rgba(255, 59, 31, 0.52);
  color: #ff6d79;
}

.ov2-pill.is-pro {
  border-color: rgba(35, 86, 217, 0.58);
  color: #6ea8ff;
}

@media (max-width: 1040px) {
  .ov2-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ov2-topic-grid,
  .ov2-evidence-row {
    grid-template-columns: 1fr;
  }

  .ov2-evidence-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .ov2-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .ov2-kpi-grid {
    grid-template-columns: 1fr;
  }

  .ov2-control-row {
    align-items: stretch;
    flex-direction: column;
    padding: 0 14px 12px;
  }

  .ov2-select-label {
    align-items: stretch;
    flex-direction: column;
  }

  .ov2-select-label select {
    width: 100%;
  }

  .ov2-direction-plot,
  .ov2-topic-plot {
    min-height: 360px;
  }
}
