:root {
  --gv-bg: #101216;
  --gv-panel: #171a21;
  --gv-panel-alt: #1d222b;
  --gv-border: rgba(148, 163, 184, 0.18);
  --gv-text: #f1f5f9;
  --gv-muted: #94a3b8;
  --gv-gold: #fbbf24;
  --gv-orange: #f59e0b;
  --gv-cyan: #2dd4bf;
  --gv-blue: #60a5fa;
  --gv-green: #4ade80;
  --gv-red: #f87171;
  --gv-magenta: #e879f9;
  --gv-rose: #f472b6;
}

* {
  box-sizing: border-box;
}

body.gv-standalone-body {
  margin: 0;
  padding: 0;
  background: var(--gv-bg);
  color: var(--gv-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.gv-app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gv-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.75rem 1.25rem;
  background: #0c0e12;
  border-bottom: 1px solid var(--gv-border);
}

.gv-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gv-back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--gv-panel-alt);
  border: 1px solid var(--gv-border);
  color: var(--gv-gold);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.gv-back-link:hover {
  border-color: var(--gv-gold);
}

.gv-title {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #ffffff;
}

.gv-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--gv-muted);
}

.gv-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.gv-view-tabs {
  display: inline-flex;
  background: var(--gv-panel);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--gv-border);
}

.gv-tab-btn {
  background: transparent;
  border: none;
  color: var(--gv-muted);
  padding: 0.42rem 0.82rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gv-tab-btn:hover {
  color: var(--gv-text);
}

.gv-tab-btn.is-active {
  background: #28303d;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.gv-upright-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.32);
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.gv-action-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.gv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 6px;
  background: var(--gv-panel-alt);
  border: 1px solid var(--gv-border);
  color: var(--gv-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.gv-btn:hover {
  border-color: var(--gv-blue);
  background: #252c37;
}

.gv-btn-primary {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--gv-gold);
}

.gv-btn-primary:hover {
  background: rgba(251, 191, 36, 0.24);
  border-color: var(--gv-gold);
}

.gv-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(45, 212, 191, 0.12);
  border-bottom: 1px solid rgba(45, 212, 191, 0.28);
  color: #99f6e4;
  font-size: 0.83rem;
}

.gv-banner-close {
  background: transparent;
  border: none;
  color: #99f6e4;
  cursor: pointer;
  font-size: 0.95rem;
}

.gv-layer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  background: #13161c;
  border-bottom: 1px solid var(--gv-border);
}

.gv-layer-bar-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gv-muted);
  margin-right: 0.25rem;
}

.gv-layer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.6rem;
  border-radius: 5px;
  background: var(--gv-panel);
  border: 1px solid var(--gv-border);
  color: var(--gv-muted);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.gv-layer-chip.is-on {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.38);
  color: #e0f2fe;
}

.gv-sky-filter-select {
  background: var(--gv-panel-alt);
  border: 1px solid rgba(250, 204, 21, 0.38);
  color: #fef08a;
  border-radius: 5px;
  padding: 0.34rem 0.6rem;
  font-size: 0.78rem;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

.cc-question-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: #0f1218;
  border-bottom: 1px solid var(--gv-border);
}

.cc-question-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gv-gold);
}

.cc-question-input {
  flex: 1;
  min-width: min(240px, 100%);
  padding: 0.36rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--gv-border);
  background: #171b24;
  color: #ffffff;
  font-size: 0.82rem;
}

.cc-question-input:focus {
  outline: none;
  border-color: var(--gv-gold);
}

.gv-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 375px;
  flex: 1;
  min-height: 0;
}

@media (max-width: 1180px) {
  .gv-workspace {
    grid-template-columns: 1fr;
  }
}

.gv-main-stage {
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
}

.gv-stage-canvas {
  background: #14171c;
  border: 1px solid var(--gv-border);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.gv-stage-canvas svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.gv-sidebar {
  background: var(--gv-panel);
  border-left: 1px solid var(--gv-border);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: calc(100vh - 108px);
  position: sticky;
  top: 0;
  overflow-y: auto;
}

@media (max-width: 1180px) {
  .gv-sidebar {
    max-height: none;
    position: static;
    border-left: none;
    border-top: 1px solid var(--gv-border);
  }
}

.gv-strip-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gv-muted);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.gv-mini-cell-btn {
  padding: 0.28rem 0;
  border-radius: 4px;
  border: 1px solid var(--gv-border);
  background: #12151b;
  color: var(--gv-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}

.gv-mini-cell-btn.is-occupied {
  color: var(--gv-text);
  background: #1e242e;
}

.gv-mini-cell-btn.is-active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.gv-selected-card-panel {
  background: #12151b;
  border: 1px solid var(--gv-border);
  border-radius: 8px;
  padding: 0.75rem;
}

.gv-selected-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.gv-selected-thumb {
  width: 62px;
  height: 106px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.gv-selected-thumb.is-reversed {
  transform: rotate(180deg);
}

.gv-selected-meta {
  flex: 1;
  min-width: 0;
}

.gv-selected-cell-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.gv-cell-pill {
  display: inline-block;
  padding: 0.14rem 0.45rem;
  border-radius: 4px;
  background: #090b0e;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.gv-conf-badge {
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--gv-cyan);
  font-family: ui-monospace, monospace;
}

.gv-btn-mini {
  padding: 0.22rem 0.52rem;
  border-radius: 4px;
  border: 1px solid var(--gv-border);
  background: var(--gv-panel-alt);
  color: var(--gv-text);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}

.gv-btn-mini:hover {
  border-color: var(--gv-gold);
}

.gv-btn-mini.is-rev {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.gv-btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.gv-selected-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.gv-selected-sub {
  margin: 0.12rem 0;
  font-size: 0.76rem;
  color: var(--gv-muted);
}

.cc-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cc-ext-link,
.cc-table-link,
.cc-inline-link {
  font-size: 0.73rem;
  color: var(--gv-gold);
  text-decoration: none;
  font-weight: 600;
}

.cc-inline-link {
  font-size: inherit;
}

.cc-ext-link:hover,
.cc-table-link:hover,
.cc-inline-link:hover {
  text-decoration: underline;
}

.gv-standpoint-box {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.gv-standpoint-head {
  font-family: ui-monospace, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gv-cyan);
  margin-bottom: 0.25rem;
}

.gv-standpoint-box p {
  margin: 0.2rem 0;
}

/* Picker */
.gv-picker-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
  background: #12151b;
  border: 1px solid var(--gv-border);
  border-radius: 8px;
  overflow: hidden;
}

.gv-picker-header {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gv-border);
}

.gv-picker-search {
  width: 100%;
  padding: 0.42rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--gv-border);
  background: #1a1f28;
  color: #ffffff;
  font-size: 0.8rem;
}

.gv-picker-suit-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0.35rem;
  background: #161a22;
  border-bottom: 1px solid var(--gv-border);
}

.gv-suit-tab {
  padding: 0.28rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--gv-muted);
  cursor: pointer;
}

.gv-suit-tab.is-active {
  background: #283140;
  color: #ffffff;
}

.gv-picker-list {
  flex: 1;
  overflow-y: auto;
  max-height: 390px;
}

.gv-picker-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.gv-picker-item.is-current {
  background: rgba(56, 189, 248, 0.14);
}

.gv-picker-item.is-used {
  opacity: 0.62;
}

.gv-picker-pick-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  padding: 0.42rem 0.55rem;
  background: transparent;
  border: none;
  color: var(--gv-text);
  text-align: left;
  cursor: pointer;
  font-size: 0.77rem;
}

.gv-picker-pick-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.gv-picker-id {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--gv-muted);
  width: 26px;
  flex-shrink: 0;
}

.gv-picker-name {
  font-weight: 600;
  flex: 1 1 135px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.gv-picker-meta {
  font-size: 0.68rem;
  color: var(--gv-muted);
  font-family: ui-monospace, monospace;
  margin-left: auto;
  max-width: 100%;
  white-space: normal;
}

.gv-picker-used-badge {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  padding: 0.08rem 0.32rem;
  border-radius: 3px;
  background: #28303d;
  color: #cbd5e1;
}

.gv-picker-rev-btn {
  width: 32px;
  background: rgba(127, 29, 29, 0.22);
  border: none;
  border-left: 1px solid rgba(148, 163, 184, 0.1);
  color: #fca5a5;
  font-weight: 700;
  cursor: pointer;
}

.gv-picker-rev-btn:hover {
  background: rgba(185, 28, 28, 0.45);
  color: #ffffff;
}

/* Findings & Rule Breakdown */
.gv-findings-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gv-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0.75rem;
}

.gv-kpi-card {
  background: var(--gv-panel);
  border: 1px solid var(--gv-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gv-rule-badge {
  align-self: flex-start;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--gv-cyan);
  font-weight: 700;
}

.gv-kpi-title {
  font-size: 0.76rem;
  color: var(--gv-muted);
}

.gv-kpi-val {
  font-size: 0.9rem;
  color: #ffffff;
  font-family: ui-monospace, monospace;
}

/* Reading Dossier */
.gv-reading-dossier {
  background: linear-gradient(180deg, #181c24 0%, #13161d 100%);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-left: 3px solid var(--gv-cyan);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.gv-reading-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.cc-reading-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.gv-reading-eyebrow {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gv-gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.gv-reading-header h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.gv-reading-standpoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.32);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.gv-reading-standpoint-badge strong {
  color: #5eead4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gv-reading-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.gv-reading-para {
  background: rgba(15, 18, 24, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}

.gv-reading-para-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.gv-reading-roman {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--gv-gold);
}

.gv-reading-para-meta h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #f8fafc;
  font-weight: 700;
}

.gv-reading-rules {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--gv-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.gv-reading-prose {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.68;
  color: #e2e8f0;
}

.gv-reading-prose strong {
  color: #ffffff;
}

.gv-reading-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  padding: 0.06rem 0.32rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.13);
  color: #7dd3fc;
}

.gv-catalog-breakdown h3,
.gv-table-container h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #ffffff;
}

.gv-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 0.9rem;
}

.gv-rule-box {
  background: var(--gv-panel);
  border: 1px solid var(--gv-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.gv-rule-box h4 {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  color: var(--gv-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gv-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.gv-rule-num {
  display: inline-block;
  min-width: 34px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gv-gold);
}

.gv-table-container {
  background: var(--gv-panel);
  border: 1px solid var(--gv-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
}

.gv-findings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
}

.gv-findings-table th,
.gv-findings-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  white-space: nowrap;
}

.gv-findings-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gv-muted);
  background: #12151b;
}

.gv-findings-table tbody tr {
  cursor: pointer;
}

.gv-findings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.gv-findings-table tbody tr.is-selected {
  background: rgba(56, 189, 248, 0.15);
}

.gv-badge-rev {
  color: #fca5a5;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
}

.gv-badge-up {
  color: #86efac;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
}

.cc-saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cc-saved-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(15, 18, 24, 0.7);
  border: 1px solid var(--gv-border);
}

.cc-saved-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.cc-saved-meta strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.cc-saved-meta small {
  color: var(--gv-muted);
  font-size: 0.74rem;
}

.cc-saved-meta p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.cc-saved-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gv-support-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(251, 191, 36, 0.28);
  font-size: 0.84rem;
  color: #cbd5e1;
}

.gv-support-copy strong {
  color: var(--gv-gold);
  margin-right: 0.35rem;
}

.gv-support-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.gv-support-btns .gv-btn {
  text-decoration: none;
}

.gv-support-btns .gv-btn-btc {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.14);
  color: #fef3c7;
  font-weight: 600;
}

.gv-support-btns .gv-btn-btc:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.85);
}

.gv-support-btns .gv-btn-minor {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  opacity: 0.72;
}

.gv-support-btns .gv-btn-minor:hover {
  opacity: 1;
}

/* Server-Rendered SEO Reference & FAQ Guide */
.ls-seo-guide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
  border-top: 1px solid var(--gv-border);
  color: #cbd5e1;
}

.ls-seo-guide h2 {
  color: #ffffff;
  font-size: 1.35rem;
  margin: 1.75rem 0 0.65rem;
}

.ls-seo-guide h3 {
  color: var(--gv-gold);
  font-size: 1.02rem;
  margin: 1.25rem 0 0.45rem;
}

.ls-seo-guide p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0.55rem 0;
}

.ls-seo-guide a {
  color: var(--gv-gold);
  text-decoration: underline;
}

.ls-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.ls-seo-card {
  background: var(--gv-panel);
  border: 1px solid var(--gv-border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.ls-seo-card h3 {
  margin-top: 0;
}

.ls-seo-faq {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ls-seo-faq details {
  background: var(--gv-panel);
  border: 1px solid var(--gv-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.ls-seo-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.92rem;
}

.ls-seo-faq details p {
  margin: 0.6rem 0 0;
  color: #cbd5e1;
}

/* Shared / Mobile Matrix Extensions */
.ns-pos-nav-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.ns-svg-desktop {
  display: block;
}

.pc-mobile-matrix {
  display: none;
}

@media (max-width: 820px) {
  .ns-svg-desktop {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .pc-mobile-matrix {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.35rem;
  }
}

.pc-axis-group {
  border-radius: 9px;
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(12, 16, 22, 0.75);
}

.pc-axis-group.is-diagnostic {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.04);
}

.pc-axis-group.is-therapeutic {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.04);
}

.pc-axis-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pc-axis-group.is-diagnostic .pc-axis-group-head span {
  color: #fca5a5;
}

.pc-axis-group.is-therapeutic .pc-axis-group-head span {
  color: #5eead4;
}

.pc-axis-group-head small {
  color: var(--gv-muted);
  font-weight: 500;
}

.pc-axis-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 540px) {
  .pc-axis-row-grid {
    grid-template-columns: 1fr;
  }
}

.pc-mobile-dosage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.12), rgba(45, 212, 191, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.34);
  font-size: 0.78rem;
  color: #e2e8f0;
}

.pc-mobile-dosage-strip strong {
  color: var(--gv-gold);
  font-family: ui-monospace, monospace;
}

.ns-mobile-slot {
  background: #10141c;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.ns-mobile-slot.pc-role-1 {
  border-color: rgba(251, 191, 36, 0.4);
}
.ns-mobile-slot.pc-role-2 {
  border-color: rgba(248, 113, 113, 0.45);
}
.ns-mobile-slot.pc-role-3 {
  border-color: rgba(74, 222, 128, 0.4);
}
.ns-mobile-slot.pc-role-4 {
  border-color: rgba(45, 212, 191, 0.45);
}

.ns-mobile-slot.is-selected {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.ns-mobile-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--gv-gold);
  font-weight: 700;
}

.ns-mobile-slot-imgwrap {
  position: relative;
  aspect-ratio: 350 / 600;
  border-radius: 5px;
  overflow: hidden;
  background: #0b0d12;
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: grid;
  place-items: center;
}

.ns-mobile-slot-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.ns-mobile-slot-imgwrap img.is-reversed {
  transform: rotate(180deg);
}

.ns-cardback-box {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1d1712 0%, #0d0a08 100%);
  border: 2px solid rgba(251, 191, 36, 0.48);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem;
  text-align: center;
}

.ns-cardback-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.9;
}

.ns-cardback-label {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--gv-gold);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ns-cardback-cta {
  font-size: 0.69rem;
  color: var(--gv-muted);
}

.ns-mobile-slot-foot {
  font-size: 0.74rem;
  color: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes nsCardReveal {
  0% {
    opacity: 0.4;
    transform: rotateY(88deg) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

.ns-reveal-anim {
  animation: nsCardReveal 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Section A1: Apothecary Formula Plate */
.pc-formula-plate {
  background: radial-gradient(circle at top center, rgba(45, 212, 191, 0.08), rgba(11, 13, 18, 0.94));
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 9px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.15rem;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.45);
}

.pc-formula-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(45, 212, 191, 0.24);
}

.pc-formula-cite {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gv-gold);
}

.pc-formula-sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.71rem;
  color: var(--gv-muted);
}

.pc-formula-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-formula-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.9rem;
  padding: 0.32rem 0.5rem;
  border-radius: 5px;
  transition: background 0.15s ease;
}

.pc-formula-line:hover,
.pc-formula-line.is-selected {
  background: rgba(45, 212, 191, 0.09);
}

.pc-formula-line-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  flex: 1 1 260px;
  min-width: 0;
}

.pc-line-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 118px;
  flex-shrink: 0;
}

.pc-role-tag-1 { color: #fbbf24; }
.pc-role-tag-2 { color: #f87171; }
.pc-role-tag-3 { color: #4ade80; }
.pc-role-tag-4 { color: #2dd4bf; }

.pc-clause-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #f8fafc;
}

.pc-clause-text.is-sealed {
  color: var(--gv-muted);
  font-size: 0.9rem;
}

.ns-line-attr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--gv-muted);
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Section A2: Dosage Contrast Spotlight (Venenum vs. Arcanum) */
.pc-dosage-contrast-card {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.08) 0%, rgba(15, 19, 26, 0.96) 50%, rgba(45, 212, 191, 0.09) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 9px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.pc-dosage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.pc-dosage-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gv-gold);
}

.pc-dosage-mode-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.pc-dosage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 0.8rem;
}

@media (max-width: 720px) {
  .pc-dosage-grid {
    grid-template-columns: 1fr;
  }
}

.pc-dosage-col {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(11, 14, 19, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pc-dosage-col.is-poison {
  border-color: rgba(248, 113, 113, 0.48);
}

.pc-dosage-col.is-antidote {
  border-color: rgba(45, 212, 191, 0.48);
}

.pc-dosage-role {
  font-family: ui-monospace, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pc-dosage-col.is-poison .pc-dosage-role {
  color: #fca5a5;
}

.pc-dosage-col.is-antidote .pc-dosage-role {
  color: #5eead4;
}

.pc-dosage-card-title {
  font-size: 0.98rem;
  color: #ffffff;
}

.pc-dosage-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.pc-dosage-el {
  font-family: ui-monospace, monospace;
  font-size: 0.71rem;
  color: var(--gv-muted);
}

.pc-dosage-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  font-family: ui-monospace, monospace;
}

.pc-dosage-vs span {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gv-gold);
}

.pc-dosage-vs small {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--gv-muted);
}

.pc-dosage-summary {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.58;
  color: #cbd5e1;
}

/* Section B: Positional Dissections (Positions 1..4) */
.ns-positions-section {
  background: rgba(15, 18, 24, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1.15rem 0;
}

.ns-positions-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.95rem;
}

.ns-positions-section-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.ns-positions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

@media (max-width: 960px) {
  .ns-positions-grid {
    grid-template-columns: 1fr;
  }
}

.ns-pos-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease;
}

.pc-pos-card.pc-role-1 { border-top: 2px solid #fbbf24; }
.pc-pos-card.pc-role-2 { border-top: 2px solid #f87171; }
.pc-pos-card.pc-role-3 { border-top: 2px solid #4ade80; }
.pc-pos-card.pc-role-4 { border-top: 2px solid #2dd4bf; }

.ns-pos-card.is-selected {
  border-color: rgba(56, 189, 248, 0.75);
  background: #141922;
}

.ns-pos-card-top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.ns-pos-thumb {
  width: 76px;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  flex-shrink: 0;
  transition: transform 0.24s ease;
}

.ns-pos-thumb.is-reversed {
  transform: rotate(180deg);
}

.pc-guiding-q {
  margin: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.pc-guiding-q strong {
  color: var(--gv-gold);
}

.ns-pos-verse {
  background: rgba(45, 212, 191, 0.08);
  border-left: 2px solid var(--gv-cyan);
  padding: 0.45rem 0.7rem;
  border-radius: 0 5px 5px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  color: #f8fafc;
}

.ns-pos-analysis {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.62;
  color: #e2e8f0;
}

.pc-reading-rule {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.48;
}

.pc-reading-rule strong {
  color: #cbd5e1;
}

.ns-pos-meta-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
  font-size: 0.74rem;
  color: #94a3b8;
}

/* 1-Click Apothecary Social Share Bar */
.ns-social-share-bar {
  background: linear-gradient(145deg, rgba(24, 28, 36, 0.94), rgba(14, 16, 22, 0.98));
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 9px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ns-social-share-bar.is-locked {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.28);
  padding: 0.7rem 1rem;
}

.ns-share-hint {
  font-size: 0.81rem;
  color: var(--gv-muted);
}

@keyframes nsSharePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.65);
    border-color: #2dd4bf;
  }
  70% {
    box-shadow: 0 0 0 12px rgba(45, 212, 191, 0);
    border-color: #2dd4bf;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    border-color: rgba(45, 212, 191, 0.34);
  }
}

.ns-social-share-bar.is-pulsing {
  animation: nsSharePulse 1.4s ease-out;
}

.ns-share-bar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.ns-share-eyebrow {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gv-gold);
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.ns-share-title {
  font-size: 0.96rem;
  color: #ffffff;
}

.ns-share-sub {
  font-size: 0.76rem;
  color: var(--gv-muted);
}

.ns-share-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ns-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.78rem;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #1d222b;
  color: #f1f5f9;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ns-share-btn:hover,
.ns-share-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, 0.65);
  background: #262d39;
  outline: none;
}

.ns-share-x {
  background: #0f1419;
  border-color: rgba(226, 232, 240, 0.35);
  color: #ffffff;
}

.ns-share-fb {
  background: rgba(24, 119, 242, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}

.ns-share-reddit {
  background: rgba(255, 69, 0, 0.16);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fed7aa;
}

.ns-share-pin {
  background: rgba(230, 0, 35, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.ns-share-tiktok {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(244, 114, 182, 0.2));
  border-color: rgba(45, 212, 191, 0.55);
  color: #a7f3d0;
}

.ns-share-threads,
.ns-share-bsky {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.34);
  color: #dbeafe;
}

.ns-share-wa {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(74, 222, 128, 0.38);
  color: #bbf7d0;
}

.ns-share-tg {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.38);
  color: #bae6fd;
}

.ns-share-dl {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.38);
  color: #5eead4;
}

.ns-share-copy,
.ns-share-native {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fde68a;
}

@media print {
  body.gv-standalone-body {
    background: #ffffff;
    color: #111827;
  }
  .gv-topbar,
  .gv-layer-bar,
  .cc-question-bar,
  .gv-sidebar,
  .gv-support-bar,
  .ns-social-share-bar,
  .wb-share-codex-bar,
  [data-wb-inline-share],
  .cc-reading-header-actions button {
    display: none !important;
  }
  .gv-workspace {
    display: block;
  }
  .gv-reading-dossier,
  .pc-formula-plate,
  .pc-dosage-contrast-card,
  .ns-positions-section,
  .gv-selected-card-panel,
  .gv-reading-para,
  .gv-rule-box,
  .gv-table-container,
  .gv-kpi-card {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
  }
  .pc-clause-text,
  .pc-formula-cite,
  .ns-pos-verse,
  .gv-reading-prose,
  .ns-pos-analysis,
  .gv-reading-header h3,
  .gv-reading-para-meta h4,
  .pc-dosage-card-title,
  .pc-dosage-summary {
    color: #111827 !important;
  }
}
