/* Trust Guard — Design System Tokens Only (../../public/styles.css) */
/* Strictly uses --good / --warn / --bad / --accent / --bg-* tokens with zero raw hex literals. */

/* Enforce >= 44x44px hit targets on ALL interactive controls */
button,
.model-loader button,
select,
input:not([type="hidden"]):not([type="range"]),
textarea,
summary,
.file-btn,
.studio-actions a,
.studio-back,
.studio-about-head a,
.crumbs a,
footer.byline a,
.byline a,
.model-loader a,
details.show-code .sc-meta a,
.tg-check-label {
  min-block-size: 44px;
  min-inline-size: 44px;
}

input[type="range"] {
  min-block-size: 44px;
  min-inline-size: 120px;
  cursor: pointer;
}

.studio-about-head a,
.crumbs a,
footer.byline a,
.byline a,
.model-loader a,
details.show-code .sc-meta a {
  display: inline-flex;
  align-items: center;
}

.studio-bar .crumbs {
  margin: 0;
}

/* Accessible >= 44x44px checkbox control */
.tg-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.72rem 0.2rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--color);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.tg-check-label:hover {
  border-color: var(--accent);
}
.tg-check-label:focus-within,
.tg-check-label:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.tg-check-input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 44px;
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  margin: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.tg-check-input::before {
  content: "";
  inline-size: 20px;
  block-size: 20px;
  border-radius: 5px;
  border: 2px solid var(--border-strong);
  background: var(--bg-raised);
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.tg-check-input:checked::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg-raised);
}

/* Full-hitbox multi-file upload control */
.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-raised));
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.file-btn:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-raised));
}
.file-btn:focus-within,
.file-btn:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  min-inline-size: 44px;
  min-block-size: 44px;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* Top Deck */
.tg-top-deck {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  margin-bottom: 0.72rem;
  min-inline-size: 0;
}

.tg-dataset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
}

.tg-preset-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.45rem;
  flex: 1 1 560px;
  min-inline-size: 0;
}

.tg-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.14rem;
  text-align: start;
  padding: 0.45rem 0.72rem;
  background: var(--bg-raised);
  color: var(--color);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.tg-preset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  inline-size: 100%;
}
.tg-preset-head strong {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color);
}
.tg-preset-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-secondary);
  white-space: nowrap;
}
.tg-preset-sub {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  line-height: 1.3;
  color: var(--muted);
}
.tg-preset-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-raised));
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-sm);
}
.tg-preset-btn[aria-pressed="true"] .tg-preset-head strong,
.tg-preset-btn[aria-pressed="true"] .tg-preset-badge {
  color: var(--accent);
}

/* 3-Stage Model Cards */
.tg-stage-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 0.55rem;
  margin: 0;
}
.tg-stage-cards .loader-slot {
  padding: 0.55rem 0.7rem;
}
.tg-stage-cards .loader-slot-title {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}
.tg-stage-sub {
  margin: 0.3rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--muted);
}

/* Action & Threshold Toolbar */
.tg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}
.tg-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-inline-size: 0;
}
.tg-dial-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 380px;
  min-inline-size: 0;
}
.tg-dial-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color);
}
.tg-dial-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-raised));
  color: var(--accent);
}
.tg-posture-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
}
.tg-posture-btn {
  padding: 0.32rem 0.62rem;
  font-size: 0.77rem;
  font-weight: 600;
}
.tg-posture-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
#redactToggleBtn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--good) 14%, var(--bg-raised));
  color: var(--good);
  border-color: var(--good);
}

/* Status Bar & Diagnostics */
.tg-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}
.tg-status-bar .status {
  margin: 0;
  flex: 1 1 320px;
  min-inline-size: 0;
}
.tg-meta-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted);
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-progress {
  inline-size: 160px;
  block-size: 0.55rem;
  accent-color: var(--accent);
}

.tg-diag-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 0.45rem;
}
.tg-diag-tile {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.45rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  min-inline-size: 0;
}
.tg-diag-tile span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.tg-diag-tile strong {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-diag-tile strong.good {
  color: var(--good);
}
.tg-diag-tile strong.warn {
  color: var(--warn);
}
.tg-diag-tile strong.bad {
  color: var(--bad);
}

/* Container-Aware Dual Pane Workspace */
.studio-workspace[data-drop-hover="true"] {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.tg-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}
@container studio (inline-size >= 860px) {
  .tg-panes {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.tg-pane {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  min-inline-size: 0;
}
.tg-pane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-inline-size: 0;
}
.tg-pane-head h2,
.tg-pane-head h3 {
  margin: 0;
  border: 0;
  padding: 0;
}

.tg-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  min-inline-size: 0;
}
.tg-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

/* Conic Risk Dial + Stage 1 Logits */
.tg-dial-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}
.tg-risk-dial-ring {
  --dial-pct: 0;
  --dial-color: var(--good);
  position: relative;
  flex: 0 0 116px;
  inline-size: 116px;
  block-size: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    from -90deg,
    var(--dial-color) calc(var(--dial-pct) * 1%),
    var(--bg-secondary) 0
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tg-risk-dial-ring[data-tier="elevated"] {
  --dial-color: var(--warn);
}
.tg-risk-dial-ring[data-tier="high"] {
  --dial-color: var(--bad);
}
.tg-risk-dial-core {
  inline-size: 86px;
  block-size: 86px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tg-dial-score {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color);
  font-variant-numeric: tabular-nums;
}
.tg-dial-unit {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.tg-dial-meta {
  flex: 1 1 220px;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.tg-dial-verdict {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tg-dial-verdict.good {
  color: var(--good);
}
.tg-dial-verdict.warn {
  color: var(--warn);
}
.tg-dial-verdict.bad {
  color: var(--bad);
}
.tg-dial-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* Probability Bars */
.tg-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}
.tg-bar-row {
  display: grid;
  grid-template-columns: minmax(115px, 155px) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.45rem;
}
.tg-bar-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-bar-label.bad {
  color: var(--bad);
  font-weight: 600;
}
.tg-bar-label.good {
  color: var(--good);
  font-weight: 600;
}
.tg-bar-track {
  block-size: 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
}
.tg-bar-fill {
  block-size: 100%;
  background: var(--muted);
  transition: inline-size 0.2s ease;
}
.tg-bar-fill.is-bad {
  background: var(--bad);
}
.tg-bar-fill.is-good {
  background: var(--good);
}
.tg-bar-fill.is-accent {
  background: var(--accent);
}
.tg-bar-val {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-align: end;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Clause Heatmap + CSS.highlights + <mark> Fallback */
.tg-clause-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tg-clause-chip {
  padding: 0.28rem 0.62rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.tg-clause-chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-raised));
  color: var(--accent);
  border-color: var(--accent);
}

.tg-highlight-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
}
.tg-swatch {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--color);
}
.tg-swatch-url {
  background: color-mix(in srgb, var(--warn) 22%, var(--bg-raised));
  border-color: var(--warn);
}
.tg-swatch-homoglyph {
  background: color-mix(in srgb, var(--bad) 24%, var(--bg-raised));
  border-color: var(--bad);
}
.tg-swatch-urgency {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-raised));
  border-color: var(--accent);
}
.tg-swatch-cred {
  background: color-mix(in srgb, var(--bad) 14%, var(--bg-raised));
  border-style: dashed;
  border-color: var(--bad);
}
.tg-swatch-redacted {
  background: color-mix(in srgb, var(--good) 18%, var(--bg-raised));
  border-color: var(--good);
}

.tg-heatmap-surface {
  padding: 0.78rem 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--color);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-block-size: 270px;
  overflow-y: auto;
}

::highlight(tg-url-risk) {
  background-color: color-mix(in srgb, var(--warn) 24%, transparent);
  text-decoration: underline wavy var(--warn);
}
::highlight(tg-homoglyph) {
  background-color: color-mix(in srgb, var(--bad) 26%, transparent);
  text-decoration: underline double var(--bad);
}
::highlight(tg-urgency) {
  background-color: color-mix(in srgb, var(--accent) 18%, transparent);
  text-decoration: underline solid var(--accent);
}
::highlight(tg-credential) {
  background-color: color-mix(in srgb, var(--bad) 16%, transparent);
  text-decoration: underline dashed var(--bad);
}
::highlight(tg-redacted) {
  background-color: color-mix(in srgb, var(--good) 20%, transparent);
  color: var(--good);
}

.tg-mark {
  padding: 0.05rem 0.22rem;
  border-radius: 4px;
  color: inherit;
}
.tg-mark-url-risk {
  background: color-mix(in srgb, var(--warn) 24%, transparent);
  text-decoration: underline wavy var(--warn);
}
.tg-mark-homoglyph {
  background: color-mix(in srgb, var(--bad) 26%, transparent);
  text-decoration: underline double var(--bad);
}
.tg-mark-urgency {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  text-decoration: underline solid var(--accent);
}
.tg-mark-credential {
  background: color-mix(in srgb, var(--bad) 16%, transparent);
  text-decoration: underline dashed var(--bad);
}
.tg-mark-redacted {
  background: color-mix(in srgb, var(--good) 20%, transparent);
  color: var(--good);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Word-Occlusion Saliency */
.tg-saliency-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem;
  line-height: 1.5;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
.tg-saliency-word {
  padding: 0.12rem 0.34rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-size: 0.81rem;
  overflow-wrap: anywhere;
}

/* Raw Source Drawer */
.tg-source-drawer {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  padding: 0.45rem 0.72rem;
}
.tg-source-drawer summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.tg-source-editor {
  inline-size: 100%;
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--color);
  resize: vertical;
}
.tg-source-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
}

/* Deterministic Forensics & Tables */
.tg-kv-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.52rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
.tg-kv-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.45rem;
  font-size: 0.78rem;
  align-items: baseline;
}
.tg-kv-row dt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--muted);
}
.tg-kv-row dd {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--color);
  overflow-wrap: anywhere;
}

.tg-indicator-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}
.tg-ind-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.48rem 0.62rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 0.8rem;
}
.tg-ind-item.is-high {
  border-inline-start: 3px solid var(--bad);
}
.tg-ind-item.is-elevated {
  border-inline-start: 3px solid var(--warn);
}
.tg-ind-item.is-clean {
  border-inline-start: 3px solid var(--good);
  color: var(--good);
}
.tg-ind-copy {
  min-inline-size: 0;
  flex: 1 1 auto;
}
.tg-ind-copy strong {
  display: block;
  font-size: 0.81rem;
  color: var(--color);
}
.tg-ind-copy p {
  margin: 0.14rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tg-sev-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.12rem 0.44rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.tg-sev-badge.is-high {
  color: var(--bad);
  border-color: var(--bad);
  background: color-mix(in srgb, var(--bad) 10%, var(--bg-raised));
}
.tg-sev-badge.is-elevated {
  color: var(--warn);
  border-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, var(--bg-raised));
}
.tg-sev-badge.is-clean {
  color: var(--good);
  border-color: var(--good);
  background: color-mix(in srgb, var(--good) 10%, var(--bg-raised));
}

.tg-table-wrap {
  overflow-x: auto;
  max-block-size: 230px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}
.tg-url-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
}
.tg-url-table th,
.tg-url-table td {
  padding: 0.42rem 0.52rem;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}
.tg-url-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.tg-mono-cell {
  font-family: var(--font-mono);
  white-space: nowrap;
}
.tg-wrap-cell {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

/* Locale & Tactics */
.tg-locale-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.tg-locale-pill {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 0.14rem 0.46rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--muted);
}
.tg-locale-pill.is-shift {
  border-color: var(--warn);
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, var(--bg-raised));
}

.tg-tactic-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.tg-tactic-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}
.tg-tactic-card.is-flagged {
  border-color: color-mix(in srgb, var(--bad) 45%, var(--border));
}
.tg-tactic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.82rem;
}
.tg-tactic-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Export Controls */
.tg-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 0.45rem;
}
.tg-disclaimer {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}
.tg-empty-msg {
  margin: 0;
  font-size: 0.81rem;
  color: var(--muted);
  padding: 0.35rem 0.2rem;
}

@media (max-width: 640px) {
  .tg-bar-row {
    grid-template-columns: minmax(90px, 118px) minmax(0, 1fr) 40px;
  }
  .tg-kv-row {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
}
