:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: rgba(255, 255, 255, .92);
  --panel-strong: #ffffff;
  --soft: #f1f5f9;
  --line: rgba(15, 23, 42, .12);
  --text: #111827;
  --muted: #5b6472;
  --accent: #0078d4;
  --accent-soft: rgba(0, 120, 212, .11);
  --danger: #c42b1c;
  --success: #107c10;
  --warn: #f7630c;
  --radius: 8px;
  font-family: "Segoe UI", "Microsoft YaHei UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101114;
  --panel: rgba(31, 31, 35, .88);
  --panel-strong: #25262b;
  --soft: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .14);
  --text: #f7f7f8;
  --muted: #a7adb8;
  --accent-soft: rgba(96, 165, 250, .16);
}

* { box-sizing: border-box; }

.drag-light *,
.drag-light *::before,
.drag-light *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html {
  min-height: 100%;
  overflow: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}

button, input, textarea, select {
  font: inherit;
}

button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

button:hover, button:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 1px;
}

button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

button.ghost {
  background: transparent;
}

button:disabled {
  opacity: .56;
  cursor: default;
}

.page {
  display: grid;
  gap: 14px;
}

.tool-chrome,
.surface,
.result-surface,
.result-card,
.result-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tool-chrome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.tool-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tool-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  font-weight: 800;
  flex: 0 0 auto;
}

.tool-title,
.surface-head,
.result-toolbar {
  min-width: 0;
}

.tool-title h1,
.surface-head h2,
.result-toolbar h2 {
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.18;
  margin: 0;
}

.meta-row,
.action-row,
.result-actions,
.link-actions,
.segmented,
.toolbar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-actions,
.result-actions {
  justify-content: flex-end;
  align-items: center;
}

.quiet-badge,
.status,
.badge,
.toggle-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 90%, transparent);
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
}

.tool-chrome .status {
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-strong) 82%, var(--soft));
}

.workbench {
  display: grid;
  grid-template-columns: minmax(320px, .42fr) minmax(0, 1fr);
  gap: 14px;
}

.surface,
.result-surface,
.result-card,
.result-details {
  padding: 14px;
}

.surface,
.result-surface {
  display: grid;
  gap: 12px;
  align-content: start;
}

.surface-head,
.result-toolbar,
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.compact-copy,
.option-help,
.inline-note {
  line-height: 1.45;
}

.input-grid,
.field-grid,
.options-stack {
  display: grid;
  gap: 10px;
}

.field-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field.primary-field textarea.editor {
  min-height: 220px;
}

.options-drawer {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-strong) 84%, var(--soft));
  padding: 10px 12px;
}

.options-drawer > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.options-drawer > summary::-webkit-details-marker {
  display: none;
}

.options-inline {
  display: grid;
  gap: 10px;
}

.rule-field {
  display: grid;
  gap: 6px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button,
.toggle-chip {
  min-height: 30px;
  padding: 5px 10px;
  background: var(--panel-strong);
}

.segmented button.active,
.toggle-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.result-toolbar {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.result-details {
  padding: 0;
  overflow: hidden;
}

.result-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  font-weight: 700;
}

.result-details > summary::-webkit-details-marker {
  display: none;
}

.result-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.result-details .metrics,
.result-details .raw-card {
  margin: 0;
  padding: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.empty-state {
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.fatal {
  min-height: 50vh;
}

.error-card {
  border-color: color-mix(in srgb, var(--danger) 44%, var(--line));
}

textarea, input, select {
  width: 100%;
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.compact-copy,
.muted,
.result-toolbar p,
.surface-head p {
  color: var(--muted);
}

textarea,
input,
select,
button {
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
  font-family: "Cascadia Mono", Consolas, monospace;
  line-height: 1.5;
}

textarea.editor {
  min-height: 220px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

input[type="color"] {
  min-height: 46px;
  padding: 6px;
  cursor: pointer;
}

button.primary,
button.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

button.ghost {
  background: transparent;
}

button.compact {
  min-height: 30px;
  padding: 5px 10px;
}

.tool-actions button,
.action-row button,
.result-actions button {
  white-space: nowrap;
}

.shell {
  min-height: 100vh;
  padding: clamp(12px, 2vw, 24px);
}

.page {
  display: grid;
  gap: 14px;
}

.hero, .workspace, .panel, .result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: clamp(14px, 2vw, 20px);
  align-items: center;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  font-weight: 800;
}

.title {
  min-width: 0;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.12; }
h2 { font-size: 1rem; }
.muted, .eyebrow { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }

.hero-actions, .actions, .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-actions { justify-content: flex-end; }

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 72%, var(--soft));
}

.panel {
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.input-grid, .field-grid {
  display: grid;
  gap: 10px;
}

.field-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.field {
  display: grid;
  gap: 5px;
}

label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 700;
}

textarea, input, select {
  width: 100%;
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  outline: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
  font-family: "Cascadia Mono", Consolas, monospace;
  line-height: 1.5;
}

textarea.editor {
  min-height: 230px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

input[type="color"] {
  min-height: 48px;
  padding: 5px;
  cursor: pointer;
}

.option-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.option {
  min-height: 42px;
  text-align: left;
}

.option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
}

.dot.running { animation: pulse 1.1s ease-in-out infinite; }
.dot.error { background: var(--danger); }
.dot.success { background: var(--success); }
.dot.canceled { background: var(--muted); }

.result-area {
  display: grid;
  gap: 12px;
  align-content: start;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.runtime-metrics {
  opacity: .82;
}

.metric, .kv, .list-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
}

.metric {
  padding: 10px;
  min-height: 68px;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.result-card {
  padding: 12px;
  overflow: hidden;
}

.result-card.priority-high,
.result-card.kind-metric.priority-high {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 84%, var(--accent-soft)), var(--panel));
}

.result-card.mode-source,
.result-card.priority-low,
.raw-card {
  background: color-mix(in srgb, var(--panel) 84%, var(--soft));
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.block-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  background: var(--accent-soft);
  font-size: .74rem;
  font-weight: 700;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.kv {
  padding: 10px;
  min-width: 0;
}

.kv span, .list-item span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
}

.kv strong, .list-item strong {
  display: block;
  word-break: break-word;
}

.metric-grid .primary-kv {
  grid-column: 1 / -1;
  min-height: 104px;
  display: grid;
  align-content: center;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, var(--panel-strong)), var(--panel-strong));
}

.metric-grid .primary-kv span {
  font-size: .82rem;
}

.metric-grid .primary-kv strong {
  margin-top: 6px;
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.source-kv strong {
  color: var(--muted);
  font-weight: 600;
}

.table-wrap, .code-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

td, th {
  border-bottom: 1px solid var(--line);
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent);
  font-weight: 700;
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

.list {
  display: grid;
  gap: 8px;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(34px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
}

.ranked-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ranked-item,
.card-list .list-item {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 82px;
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: linear-gradient(180deg, var(--panel-strong), color-mix(in srgb, var(--panel-strong) 82%, var(--accent-soft)));
}

.list-item.clickable {
  cursor: pointer;
}

.list-item.clickable:hover,
.list-item.clickable:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 82%, var(--accent-soft));
  outline: 2px solid color-mix(in srgb, var(--accent) 20%, transparent);
  outline-offset: 1px;
}

.rank-badge {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
  font-size: .86rem;
}

.rank-badge::before {
  content: "";
  position: absolute;
  inset: -42%;
  opacity: 0;
  transform: translateX(-45%) rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
}

.rank-core {
  position: relative;
  z-index: 1;
}

.rank-1 {
  color: #4a3300;
  border-color: color-mix(in srgb, #d99b16 72%, #fff);
  background: linear-gradient(145deg, #fff2b8, #e1a21c 58%, #9f6611);
  box-shadow: 0 0 0 2px color-mix(in srgb, #d99b16 18%, transparent);
}

.rank-2 {
  color: #26303b;
  border-color: color-mix(in srgb, #8b95a3 72%, #fff);
  background: linear-gradient(145deg, #f9fbff, #b8c0cc 58%, #687386);
}

.rank-3 {
  color: #3e1f0d;
  border-color: color-mix(in srgb, #b7652d 72%, #fff);
  background: linear-gradient(145deg, #ffe0c2, #c87536 58%, #7e3c1c);
}

.rank-badge.plain {
  border-radius: 7px;
}

.item-body {
  min-width: 0;
}

.item-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

button.compact {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--muted);
}

.item-subtitle {
  margin-top: 4px;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-error {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}

.status-ok {
  border-color: color-mix(in srgb, var(--success) 45%, var(--line));
}

.raw-card summary {
  cursor: pointer;
  margin-bottom: 0;
}

.raw-card[open] summary {
  margin-bottom: 10px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .86rem;
  line-height: 1.55;
}

.media-frame {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--soft) 74%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--soft) 74%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--soft) 74%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--soft) 74%, transparent) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: auto;
  border-radius: 7px;
}

.media-frame img {
  width: min(360px, 86%);
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 14px;
}

.swatch {
  min-height: 150px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.empty {
  min-height: 50vh;
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.pulse {
  width: 14px;
  height: 14px;
  margin: auto;
  border-radius: 99px;
  background: var(--accent);
}

.page.editor-workbench .workspace {
  grid-template-columns: minmax(340px, .52fr) minmax(0, .48fr);
}

.page.editor-workbench textarea.editor,
.page.secret-entry input {
  background: color-mix(in srgb, var(--panel-strong) 86%, #0f172a);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.page.search-console .input-panel,
.page.preset-browser .input-panel {
  border-top: 3px solid var(--accent);
}

.page.numeric-calculator .field-grid,
.page.date-range-form .field-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.page.numeric-calculator .field input,
.page.date-range-form .field input {
  min-height: 44px;
  font-weight: 700;
}

.page.file-dropzone .input-panel {
  border-style: dashed;
  background: color-mix(in srgb, var(--panel) 78%, var(--accent-soft));
}

.page.file-dropzone .field input {
  min-height: 52px;
  border-style: dashed;
}

.page.color-studio .mark,
.page.color-studio .swatch {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 36%, transparent);
}

.page.auto-dashboard .input-panel {
  align-content: center;
  min-height: 220px;
}

.page.structured-json-tree .code-wrap,
.page.code-code-panel .code-wrap {
  background: #101827;
  color: #dbeafe;
  border-color: rgba(96, 165, 250, .28);
}

.page.structured-json-tree pre,
.page.code-code-panel pre {
  font-size: .82rem;
}

.page.calculation-data-table .metric,
.page.calculator-data-table .metric {
  border-left: 3px solid var(--accent);
}

.page.live-news-board .result-card:not(.mode-source):not(.raw-card),
.page.reference-ranked-lane .result-card:not(.mode-source):not(.raw-card),
.page.live-ranked-lane .result-card:not(.mode-source):not(.raw-card) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, var(--accent-soft)), var(--panel));
}

.page.reference-ranked-lane .list-item,
.page.live-ranked-lane .list-item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.page.reference-ranked-lane .list-item .badge,
.page.live-ranked-lane .list-item .badge {
  justify-content: center;
  min-height: 34px;
}

.page.fileflow-file-rail .list-item {
  border-style: dashed;
}

.page.security-status-timeline .list-item,
.page.system-status-timeline .list-item {
  border-left: 3px solid var(--accent);
}

.page.design-color-lab .swatch,
.page.image-media-stage img,
.page.image-media-wall img {
  min-height: 220px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.72); }
}

@keyframes rankGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes rankShimmer {
  0%, 45% { opacity: 0; transform: translateX(-45%) rotate(24deg); }
  60% { opacity: .75; }
  100% { opacity: 0; transform: translateX(45%) rotate(24deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .rank-1,
  .rank-2,
  .rank-3 {
    animation: rankGlow 2.8s ease-in-out infinite;
  }

  .rank-1::before,
  .rank-2::before,
  .rank-3::before {
    animation: rankShimmer 3.2s ease-in-out infinite;
  }
}

@media (max-width: 960px) {
  .workspace, .hero, .workbench, .tool-chrome { grid-template-columns: 1fr; }
  .hero-actions, .tool-actions, .result-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .shell { padding: 10px; }
  .workspace { padding: 10px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranked-list { grid-template-columns: 1fr; }
  .card-list { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 1fr; }
  .ranked-item { grid-template-columns: 38px minmax(0, 1fr); }
  .link-actions { justify-content: flex-start; }
  .tool-chrome, .surface, .result-surface, .result-card { padding: 12px; }
  .tool-identity { align-items: flex-start; }
  .action-row, .tool-actions, .result-actions { width: 100%; }
  .action-row button, .tool-actions button, .result-actions button { flex: 1 1 130px; }
}

@media (max-height: 760px) {
  .page {
    gap: 10px;
  }

  .tool-chrome,
  .surface,
  .result-surface,
  .result-card {
    padding: 12px;
  }

  .tool-title h1,
  .surface-head h2,
  .result-toolbar h2 {
    font-size: 1rem;
  }

  .field.primary-field textarea.editor {
    min-height: 160px;
  }

  .result-details .metrics,
  .result-details .raw-card {
    padding: 12px;
  }
}

.drag-strong .tool-chrome,
.drag-strong .surface,
.drag-strong .result-surface,
.drag-strong .result-card,
.drag-strong .result-details,
.drag-strong .list-item,
.drag-strong .kv,
.drag-strong .table-wrap,
.drag-strong .code-wrap {
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.drag-strong .rank-badge::before {
  display: none !important;
}

.drag-strong .list-item.clickable:hover {
  background: var(--panel-strong);
}

@media (prefers-reduced-motion: reduce) {
  *, .dot.running { animation: none !important; transition: none !important; }
}
