:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --bg-raised: #ffffff;
  --bg-overlay: #eaeff5;
  --bg-shell: #eef3f8;
  --border: #cdd5de;
  --border-subtle: #d8e0e8;
  --text: #1c2128;
  --text-muted: #545d68;
  --text-dim: #8b95a1;
  --blue: #1a6fef;
  --blue-strong: #1559bf;
  --blue-bg: #e6f0fd;
  --blue-border: #a8c8f8;
  --green: #1c8c3e;
  --green-bg: #e2f5ea;
  --yellow: #c98000;
  --yellow-bg: #fdf0d0;
  --red: #d14f45;
  --red-bg: #f8e7e5;
  --shadow-soft: 0 14px 32px rgba(13, 28, 45, 0.08);
  --shadow-raised: 0 20px 48px rgba(15, 34, 56, 0.12);
  --radius: 10px;
  --sidebar-w: 268px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(230, 240, 253, 0.9) 0, rgba(230, 240, 253, 0) 26%),
    radial-gradient(circle at right 18% bottom 14%, rgba(226, 245, 234, 0.62) 0, rgba(226, 245, 234, 0) 24%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

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

.native-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-svg {
  --icon-size: 18px;
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
  color: currentColor;
}

.icon-spin {
  animation: page-loading-spin 0.78s linear infinite;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  height: 100%;
}

body[data-page-loading="1"] .app-shell {
  visibility: hidden;
}

.page-loading-shell {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(230, 240, 253, 0.88) 0, rgba(230, 240, 253, 0) 28%),
    radial-gradient(circle at right 16% bottom 18%, rgba(226, 245, 234, 0.72) 0, rgba(226, 245, 234, 0) 26%),
    color-mix(in srgb, var(--bg) 92%, white 8%);
}

body[data-page-loading="1"] .page-loading-shell {
  display: grid;
}

.page-loading-card {
  min-width: min(280px, calc(100vw - 48px));
  padding: 22px 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-raised) 94%, var(--bg-overlay) 6%);
  box-shadow: var(--shadow-raised);
}

.page-loading-card strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

.page-loading-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--blue-border) 44%, var(--border-subtle) 56%);
  border-top-color: var(--blue);
  animation: page-loading-spin 0.78s linear infinite;
}

@keyframes page-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#layout {
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: color-mix(in srgb, var(--bg-raised) 92%, var(--bg-overlay) 8%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#sidebar-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.sidebar-brand-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.sidebar-brand-copy {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-brand-source {
  color: var(--text);
}

.sidebar-brand-sense {
  color: var(--text-dim);
}

.sidebar-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.rail-nav {
  padding: 10px;
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.rail-link {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rail-link:hover {
  border-color: var(--border);
  background: var(--bg-overlay);
  color: var(--text);
}

.rail-link.active {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 76%, var(--bg-raised) 24%), color-mix(in srgb, var(--bg-overlay) 84%, var(--blue-bg) 16%));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rail-link.active .icon-svg {
  color: var(--blue);
}

.rail-copy {
  font-size: 13px;
  font-weight: 500;
}

.sidebar-block {
  padding: 14px 12px 12px;
  display: grid;
  gap: 10px;
}

.sidebar-block-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.sidebar-status-stack {
  display: grid;
  gap: 8px;
}

.sidebar-status-card {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 72%, var(--bg-raised) 28%);
}

.sidebar-status-card span {
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sidebar-status-card strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

#content.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.mode-workbench {
  min-height: 0;
  height: 100%;
}

.workbench-shell {
  min-height: 0;
  height: 100%;
  display: grid;
  gap: 16px;
}

.evaluate-shell {
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
}

.standards-shell {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
}

.sources-shell {
  grid-template-columns: minmax(0, 1fr);
}

.watchlist-shell {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.data-sources-shell {
  grid-template-columns: minmax(0, 1fr);
}

.search-shell {
  grid-template-columns: minmax(0, 1fr);
}

.history-panel.search-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.source-search-form {
  min-width: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(280px, 1fr) minmax(108px, 132px) auto;
  gap: 12px;
  align-items: end;
}

.source-search-form .primary-button {
  min-width: 0;
  min-height: 40px;
}

.source-search-scroll {
  min-height: 0;
  overflow: auto;
  display: block;
}

.source-search-results {
  display: grid;
  align-content: start;
  gap: 10px;
}

.source-search-empty.empty-state {
  min-height: 0;
  padding: 18px 0;
  align-content: start;
}

.source-search-history {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.source-search-history-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.source-search-history-head strong {
  font-size: 13px;
  font-weight: 700;
}

.source-search-history-head span {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-muted);
}

.source-search-history-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.source-search-history-item {
  min-width: 0;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-raised) 90%, var(--bg-overlay) 10%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.source-search-history-item:hover,
.source-search-history-item:focus-within {
  border-color: color-mix(in srgb, var(--blue-border) 56%, var(--border) 44%);
  background: color-mix(in srgb, var(--blue-bg) 18%, var(--bg-raised) 82%);
}

.source-search-history-main {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.source-search-history-main strong,
.source-search-history-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-search-history-main strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  color: var(--text);
}

.source-search-history-main span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.source-search-loading {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.source-search-loading-head {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 44%, var(--border-subtle) 56%);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 52%, var(--bg-raised) 48%), color-mix(in srgb, var(--bg-raised) 90%, var(--bg-overlay) 10%));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.source-search-loading-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-search-loading-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 64%, var(--border-subtle) 36%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-raised) 78%, var(--blue-bg) 22%);
  color: var(--blue-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.source-search-loading-mark .icon-svg {
  --icon-size: 17px;
}

.source-search-loading-status div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.source-search-loading-status strong,
.source-search-loading-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-search-loading-status strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.source-search-loading-status span {
  font-size: 12px;
  color: var(--text-muted);
}

.source-search-loading-pulse {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 58%, var(--border-subtle) 42%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-raised) 78%, var(--blue-bg) 22%);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.source-search-loading-list {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.source-search-skeleton {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-raised) 92%, var(--bg-overlay) 8%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
}

.source-search-skeleton-copy {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 9px;
}

.source-search-skeleton-line,
.source-search-skeleton-open {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-overlay) 72%, var(--bg-raised) 28%);
}

.source-search-skeleton-line::after,
.source-search-skeleton-open::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg-raised) 82%, transparent 18%), transparent);
  animation: source-search-skeleton-scan 1.35s ease-in-out infinite;
}

.source-search-skeleton-line.title {
  width: min(54ch, 72%);
  height: 17px;
}

.source-search-skeleton-line.meta {
  width: min(34ch, 48%);
  height: 12px;
}

.source-search-skeleton-line.summary {
  width: min(84ch, 92%);
  height: 13px;
}

.source-search-skeleton-open {
  flex: 0 0 auto;
  width: 54px;
  height: 32px;
  border-radius: 10px;
}

@keyframes source-search-skeleton-scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .source-search-skeleton-line::after,
  .source-search-skeleton-open::after {
    animation: none;
    transform: none;
  }
}

.source-search-result {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-raised) 92%, var(--bg-overlay) 8%);
}

.source-search-result-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.source-search-result-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.source-search-result-title {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  color: var(--text);
  overflow-wrap: anywhere;
}

.source-search-result-title:hover {
  color: var(--blue-strong);
}

.source-search-result-copy p {
  max-width: 96ch;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.source-search-open {
  flex: 0 0 auto;
}
.source-search-pager {
  min-width: 0;
  padding: 8px 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-search-pager .pager-actions {
  flex: 0 0 auto;
}

.data-sources-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.result-panel.data-sources-detail-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.panel-head.data-source-detail-nav {
  justify-content: flex-start;
  align-items: center;
}

.panel-head.data-source-detail-nav .ghost-button {
  flex: 0 0 auto;
}

.tracking-shell {
  grid-template-columns: minmax(0, 1fr);
}

.aside-stack {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.panel-frame,
.result-panel,
.input-panel,
.history-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-raised) 94%, var(--bg-overlay) 6%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.history-panel,
.input-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.sources-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.tracking-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.result-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.result-panel.panel-frame {
  padding-bottom: 18px;
}

.panel-head,
.panel-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.panel-head {
  border-bottom: 1px solid var(--border-subtle);
}

.panel-foot {
  align-items: center;
  border-top: 1px solid var(--border-subtle);
}

.panel-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.panel-copy h2 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.panel-meta {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.panel-actions,
.pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-scroll {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 18px;
}

.panel-scroll-result {
  padding: 0;
  display: grid;
  align-content: start;
}

.section-kicker {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-kicker strong {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-muted);
}

.sources-scroll {
  display: grid;
  align-content: start;
  gap: 14px;
}

.tracking-scroll {
  display: grid;
  align-content: start;
  gap: 16px;
}

.data-sources-scroll {
  display: grid;
  align-content: start;
  gap: 14px;
}

#data-sources-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}

.ghost-button,
.primary-button,
.icon-button,
.source-action-button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ghost-button,
.primary-button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ghost-button:hover,
.source-action-button:hover:not(:disabled),
.icon-button:hover {
  border-color: var(--border);
  background: var(--bg-overlay);
}

.primary-button {
  border-color: color-mix(in srgb, var(--blue-border) 88%, var(--blue) 12%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 88%, white 12%), color-mix(in srgb, var(--blue-strong) 86%, black 14%));
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 111, 239, 0.2);
}

.primary-button:hover {
  border-color: color-mix(in srgb, var(--blue) 76%, var(--blue-border) 24%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 82%, white 18%), color-mix(in srgb, var(--blue-strong) 82%, black 18%));
}

.primary-button span,
.primary-button .icon-svg {
  color: inherit;
}

.ghost-button .icon-svg,
.primary-button .icon-svg,
.icon-button .icon-svg,
.source-action-button .icon-svg {
  --icon-size: 18px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-button:active,
.primary-button:active,
.icon-button:active,
.source-action-button:active {
  transform: translateY(1px);
}

.ghost-button:disabled,
.primary-button:disabled,
.icon-button:disabled,
.choice-chip:disabled,
.source-action-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

body[data-busy="1"] .ghost-button:disabled,
body[data-busy="1"] .primary-button:disabled,
body[data-busy="1"] .icon-button:disabled,
body[data-busy="1"] .source-action-button:disabled {
  cursor: wait;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form-roomy {
  gap: 14px;
}

.stack-form label,
.stack-field {
  display: grid;
  gap: 7px;
}

.stack-form label > span,
.stack-field > span {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.stack-form textarea {
  min-height: 112px;
  resize: vertical;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  outline: none;
  border-color: var(--blue);
  background: color-mix(in srgb, var(--bg) 82%, var(--bg-overlay) 18%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 72%, transparent 28%);
}

.stack-form .custom-select-shell.is-open .custom-select-trigger,
.stack-form .custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: color-mix(in srgb, var(--bg) 82%, var(--bg-overlay) 18%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 72%, transparent 28%);
}

.stack-form input[readonly] {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-overlay) 58%, var(--bg-raised) 42%);
}

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

.choice-strip-stack {
  grid-template-columns: 1fr;
}

.choice-chip {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-overlay) 62%, var(--bg-raised) 38%);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.choice-chip:hover:not(:disabled) {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-overlay) 72%, var(--bg-raised) 28%);
  color: var(--text);
}

.choice-chip.active {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 82%, var(--bg-raised) 18%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
  color: var(--blue);
}

.empty-state,
.compact-copy {
  min-height: 100%;
  padding: 28px;
  display: grid;
  gap: 10px;
  place-items: start;
  align-content: center;
}

.empty-state .icon-svg {
  --icon-size: 22px;
  color: var(--blue);
}

.empty-state p,
.compact-copy p {
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}

.result-card {
  min-height: 100%;
  padding: 20px 22px 22px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.result-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.result-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-title h2 {
  min-width: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.inline-danger-action {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--red) 78%, var(--text) 22%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.inline-danger-action .icon-svg {
  --icon-size: 18px;
}

.result-title:hover .inline-danger-action,
.result-title:focus-within .inline-danger-action,
.inline-danger-action:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.inline-danger-action:hover,
.inline-danger-action:focus-visible {
  background: color-mix(in srgb, var(--red-bg) 70%, var(--bg-raised) 30%);
  color: var(--red);
  outline: none;
}

.inline-danger-action:disabled {
  opacity: 0.58;
  pointer-events: auto;
  transform: translateX(0);
  cursor: not-allowed;
}

.result-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.result-meta,
.history-meta,
.inline-list,
.result-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muted {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.muted-copy {
  color: var(--text-muted);
}

.pill,
.result-tab {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 64%, var(--bg-raised) 36%);
  color: color-mix(in srgb, var(--text) 72%, var(--text-muted) 28%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1;
}

.muted-pill {
  color: var(--text-dim);
}

.result-tab {
  min-height: 34px;
  cursor: pointer;
}

.result-tab:hover {
  border-color: var(--border);
  color: var(--text);
}

.result-tab.active {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 80%, var(--bg-raised) 20%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
  color: var(--blue);
}

.score-stack {
  display: grid;
  gap: 10px;
}

.score-block {
  min-width: 136px;
  padding: 13px 14px;
  display: grid;
  gap: 7px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-overlay) 62%, var(--bg-raised) 38%), color-mix(in srgb, var(--bg-raised) 88%, var(--blue-bg) 12%));
}

.score-block.compact {
  min-width: 124px;
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.score-retry-icon {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.score-block.has-retry:hover .score-retry-icon,
.score-block.has-retry:focus-within .score-retry-icon,
.score-retry-icon:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.score-retry-icon:hover,
.score-retry-icon:focus-visible {
  background: var(--bg-overlay);
  color: var(--blue);
  outline: none;
}

.score-value,
.history-score,
.source-score {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.score-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
}

.score-value.good,
.history-score.good,
.source-score.good {
  color: var(--green);
}

.score-value.warn,
.history-score.warn,
.source-score.warn {
  color: var(--yellow);
}

.score-value.bad,
.history-score.bad,
.source-score.bad {
  color: var(--red);
}

.summary-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
}

.result-pane,
.dimensions,
.bullet-list,
.evidence-list,
.page-list,
.history-list {
  display: grid;
  gap: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.summary-section {
  padding: 14px;
  display: grid;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 52%, var(--bg-raised) 48%);
}

.summary-section h3 {
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.summary-section p {
  line-height: 1.75;
}

.source-analysis-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-overlay) 58%, var(--bg-raised) 42%), color-mix(in srgb, var(--green-bg) 30%, var(--bg-raised) 70%));
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  color: var(--text);
}

.dimension-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.dimension-label,
.dimension-score {
  font-size: 12px;
  line-height: 1.4;
}

.dimension-label {
  color: var(--text-muted);
}

.dimension-score {
  text-align: right;
  color: var(--text);
}

.dimension-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--border-subtle) 78%, var(--bg-overlay) 22%);
}

.dimension-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--green) 34%, var(--blue) 66%));
}

.evidence-item,
.page-card,
.history-item {
  padding: 12px 13px;
  display: grid;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 52%, var(--bg-raised) 48%);
}

.evidence-item strong,
.page-card strong,
.source-primary strong {
  line-height: 1.55;
  color: var(--text);
}

.evidence-item a,
.page-card a,
.source-link-cell a {
  color: var(--blue-strong);
  word-break: break-all;
}

.history-record {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.history-record:hover,
.history-record:focus-visible {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-overlay) 66%, var(--bg-raised) 34%);
  box-shadow: 0 10px 24px rgba(13, 28, 45, 0.08);
}

.history-record.active {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 78%, var(--bg-raised) 22%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
}

.history-record:focus-visible {
  outline: none;
}

.history-title {
  color: var(--text);
  font-weight: 600;
}

.history-score {
  min-width: 58px;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
}

.history-score small {
  font-size: 11px;
  color: var(--text-muted);
}

.standard-card-arrow {
  color: var(--text-dim);
  align-self: center;
}

.history-item button {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--blue-strong);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.field-hint {
  margin-top: -4px;
  padding: 12px 13px;
  display: grid;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 54%, var(--bg-raised) 46%);
}

.field-hint strong {
  line-height: 1.55;
  color: var(--text);
}

.field-hint p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.evaluation-sync-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-overlay) 72%, var(--bg-raised) 28%);
}

.field-hint-kicker {
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-message {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 72%, var(--border-subtle) 28%);
  background: color-mix(in srgb, var(--blue-bg) 62%, var(--bg-raised) 38%);
  color: color-mix(in srgb, var(--text) 82%, var(--blue) 18%);
  line-height: 1.7;
}

.status-message-dismissible {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notice-close-button {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
}

.status-message.pending {
  border-color: color-mix(in srgb, var(--blue-border) 82%, var(--border-subtle) 18%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 72%, var(--bg-raised) 28%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
}

.status-message.error {
  border-color: color-mix(in srgb, var(--red) 34%, var(--border-subtle) 66%);
  background: color-mix(in srgb, var(--red-bg) 70%, var(--bg-raised) 30%);
  color: color-mix(in srgb, var(--red) 82%, black 18%);
}

.status-message.success {
  border-color: color-mix(in srgb, var(--green) 28%, var(--border-subtle) 72%);
  background: color-mix(in srgb, var(--green-bg) 66%, var(--bg-raised) 34%);
  color: color-mix(in srgb, var(--green) 78%, var(--text) 22%);
}

.source-table {
  min-width: 0;
  display: grid;
}

.source-filters {
  min-width: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
  gap: 10px;
}

.source-filter {
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-overlay) 58%, var(--bg-raised) 42%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-filter > span:not(.icon-svg) {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.source-filter .icon-svg {
  flex: 0 0 auto;
  --icon-size: 18px;
  color: var(--text-muted);
}

.source-filter input,
.source-filter select {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border: none;
  background-color: transparent;
  color: var(--text);
  outline: none;
}

.source-filter input::placeholder {
  color: var(--text-dim);
}

.source-filter:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 68%, transparent 32%);
}

.source-filter:has(.custom-select-shell.is-open) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 68%, transparent 32%);
}

.custom-select-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}

.custom-select-trigger {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.custom-select-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-caret {
  flex: 0 0 auto;
  color: var(--text-muted);
  transition: transform 0.16s ease;
}

.custom-select-caret .icon-svg {
  --icon-size: 14px;
}

.custom-select-shell.is-open .custom-select-trigger {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--bg) 82%, var(--bg-overlay) 18%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 72%, transparent 28%);
}

.custom-select-shell.is-open .custom-select-caret {
  transform: rotate(180deg);
}

.custom-select-shell.is-disabled .custom-select-trigger,
.custom-select-trigger:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(280px, 42vh);
  padding: 6px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-raised) 96%, var(--bg-overlay) 4%);
  box-shadow: 0 18px 36px rgba(15, 34, 56, 0.14);
  overflow: auto;
}

.custom-select-option {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.custom-select-option:hover:not(:disabled),
.custom-select-option:focus-visible {
  background: color-mix(in srgb, var(--bg-overlay) 68%, var(--bg-raised) 32%);
  outline: none;
}

.custom-select-option.is-selected {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 82%, var(--bg-raised) 18%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
  color: var(--blue-strong);
}

.custom-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-select-option-check {
  opacity: 0;
  color: inherit;
}

.custom-select-option.is-selected .custom-select-option-check {
  opacity: 1;
}

.custom-select-empty {
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}

.stack-form .custom-select-trigger {
  min-height: 40px;
}

.source-filter .custom-select-trigger {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.source-filter .custom-select-label {
  font-size: 14px;
}

.source-filter .custom-select-shell.is-open .custom-select-trigger {
  background: transparent;
  box-shadow: none;
}

.source-table-header,
.source-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(300px, 2.3fr) minmax(88px, 0.75fr) minmax(72px, 0.62fr) minmax(92px, 0.72fr) minmax(72px, 0.58fr) minmax(88px, 0.72fr) minmax(80px, 0.62fr) minmax(116px, 0.9fr) 52px;
  gap: 12px;
  align-items: center;
}

.source-table-header {
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.source-table-body {
  display: grid;
}

.source-table-row {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.source-table-row:last-child {
  border-bottom: none;
}

.source-table-row:hover,
.source-table-row:focus-visible {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-overlay) 62%, var(--bg-raised) 38%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent 45%);
  outline: none;
}

.source-table-row.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 74%, var(--bg-raised) 26%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
}

.source-primary,
.source-link-cell {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.source-primary strong,
.source-link-cell a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-cell {
  min-width: 0;
  line-height: 1.55;
  color: var(--text);
}

.reader-connector-badge {
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 62%, var(--bg-raised) 38%);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.reader-connector-badge.success {
  border-color: color-mix(in srgb, var(--green) 24%, var(--border-subtle) 76%);
  background: color-mix(in srgb, var(--green-bg) 68%, var(--bg-raised) 32%);
  color: color-mix(in srgb, var(--green) 82%, var(--text) 18%);
}

.reader-connector-badge.info {
  border-color: color-mix(in srgb, var(--blue) 24%, var(--border-subtle) 76%);
  background: color-mix(in srgb, var(--blue-bg) 70%, var(--bg-raised) 30%);
  color: color-mix(in srgb, var(--blue) 84%, var(--text) 16%);
}

.source-tag-pill {
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 52%, var(--border-subtle) 48%);
  background: color-mix(in srgb, var(--blue-bg) 72%, var(--bg-raised) 28%);
  color: color-mix(in srgb, var(--blue) 78%, var(--text) 22%);
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-cell.muted,
.source-score-placeholder {
  color: var(--text-muted);
}

.source-score {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
}

.source-sync-count {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: var(--green);
}

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

.source-action-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--blue-strong);
  background: color-mix(in srgb, var(--bg-overlay) 56%, var(--bg-raised) 44%);
}

.source-action-button.danger {
  color: color-mix(in srgb, var(--red) 86%, var(--text) 14%);
  border-color: color-mix(in srgb, var(--red) 18%, var(--border-subtle) 82%);
  background: color-mix(in srgb, var(--red-bg) 52%, var(--bg-raised) 48%);
}

.source-action-button.danger:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--red) 32%, var(--border) 68%);
  background: color-mix(in srgb, var(--red-bg) 60%, var(--bg-raised) 40%);
}

.source-detail-card {
  padding: 18px 18px 26px;
  display: grid;
  gap: 14px;
}

.source-detail-head {
  display: grid;
  gap: 6px;
}

.source-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.source-detail-head h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.source-detail-head p {
  margin-top: 6px;
  line-height: 1.6;
  color: var(--text-muted);
  word-break: break-all;
}

.source-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.source-detail-metrics article {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 58%, var(--bg-raised) 42%);
}

.source-detail-metrics span {
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted);
}

.source-detail-metrics strong {
  font-size: 18px;
  line-height: 1.1;
  color: var(--text);
}

.source-detail-meta,
.source-detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-detail-spacer {
  height: 10px;
}

.source-sync-list {
  display: grid;
  gap: 10px;
}

.source-detail-list-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

.source-sync-item {
  padding: 12px 13px;
  display: grid;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 52%, var(--bg-raised) 48%);
}

.source-sync-item strong {
  line-height: 1.5;
  color: var(--text);
}

.source-sync-item p {
  line-height: 1.7;
  color: var(--text-muted);
}

.source-sync-item .history-meta {
  gap: 6px;
}

.source-sync-item .history-meta span {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-raised) 70%, var(--bg-overlay) 30%);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
}

.source-sync-item a {
  color: var(--blue-strong);
  word-break: break-all;
}

.drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.drawer-backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 16, 24, 0.42);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(760px, 100vw);
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: color-mix(in srgb, var(--bg-raised) 96%, var(--bg-overlay) 4%);
  box-shadow: 0 24px 64px rgba(5, 15, 28, 0.26);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.drawer-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 18px 28px;
  display: grid;
  align-content: start;
}

.drawer-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-raised) 96%, var(--bg-overlay) 4%);
}

.drawer-record-nav {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 10px;
}

.drawer-record-nav .panel-meta {
  text-align: center;
}

.tracking-plan {
  display: grid;
  gap: 16px;
}

.tracking-hero {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 54%, var(--border-subtle) 46%);
  background:
    radial-gradient(circle at 10% 0, color-mix(in srgb, var(--blue-bg) 74%, transparent 26%) 0, transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg-overlay) 66%, var(--bg-raised) 34%), color-mix(in srgb, var(--bg-raised) 86%, var(--green-bg) 14%));
}

.tracking-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-hero h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tracking-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
}

.tracking-metrics article {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-raised) 72%, var(--bg-overlay) 28%);
}

.tracking-metrics span {
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted);
}

.tracking-metrics strong {
  font-size: 24px;
  line-height: 1;
  color: var(--blue);
}

.tracking-group {
  display: grid;
  gap: 12px;
}

.tracking-group-head {
  padding: 0 2px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.tracking-group-head h3 {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

.tracking-group-head p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.tracking-group-head strong {
  min-width: 32px;
  text-align: right;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
}

.tracking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.tracking-item {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 48%, var(--bg-raised) 52%);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tracking-item:hover {
  border-color: color-mix(in srgb, var(--blue-border) 42%, var(--border) 58%);
  background: color-mix(in srgb, var(--blue-bg) 18%, var(--bg-raised) 82%);
}

.tracking-item-modal-content {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.tracking-item-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.tracking-item-main,
.tracking-item-title,
.tracking-list-block {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.tracking-list-block,
.tracking-list-block > * {
  max-width: 100%;
}

.tracking-item-main strong {
  line-height: 1.45;
}

.tracking-item-main p,
.tracking-next p {
  color: var(--text-muted);
  line-height: 1.72;
}

.tracking-item-side {
  align-self: start;
}

.tracking-next,
.tracking-list-block {
  grid-column: 1 / -1;
}

.tracking-type-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text-muted) 14%, transparent 86%);
  color: var(--text-muted);
}

.tracking-type-pill.is-auto {
  background: color-mix(in srgb, var(--blue-bg) 62%, transparent 38%);
  color: var(--blue);
}

.watchlist-modal-info {
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.watchlist-modal-info .muted {
  margin-right: 6px;
}

.watchlist-modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.watchlist-modal-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.watchlist-modal-loading .material-symbols-outlined {
  animation: page-loading-spin 1s linear infinite;
}

.tracking-next {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--border-subtle) 82%);
  background: color-mix(in srgb, var(--green-bg) 44%, var(--bg-raised) 56%);
}

.tracking-next .icon-svg {
  --icon-size: 18px;
  color: var(--green);
}

.tracking-monitor-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tracking-monitor-status {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.tracking-monitor-status.is-changed {
  color: color-mix(in srgb, var(--green) 84%, var(--text) 16%);
}

.tracking-monitor-status.is-stable {
  color: color-mix(in srgb, var(--blue) 74%, var(--text) 26%);
}

.tracking-monitor-status.is-pending {
  color: var(--text-muted);
}

.tracking-group-report {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tracking-group-report span {
  min-height: 22px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 62%, var(--bg-raised) 38%);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
}

.tracking-group-report .tracking-group-report-label {
  color: var(--text);
  background: color-mix(in srgb, var(--blue-bg) 46%, var(--bg-raised) 54%);
}

.tracking-report-button {
  min-height: 22px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 42%, var(--border-subtle) 58%);
  background: color-mix(in srgb, var(--blue-bg) 34%, var(--bg-raised) 66%);
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  cursor: pointer;
}

.tracking-report-button:hover {
  border-color: var(--blue-border);
  background: color-mix(in srgb, var(--blue-bg) 58%, var(--bg-raised) 42%);
}

.tracking-report-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.tracking-report-toolbar strong {
  min-width: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tracking-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tracking-report-summary article {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 58%, var(--bg-raised) 42%);
}

.tracking-report-summary span {
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-muted);
}

.tracking-report-summary strong {
  font-size: 20px;
  line-height: 1.1;
}

.tracking-report-list {
  display: grid;
  gap: 8px;
}

.tracking-report-row {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 42%, var(--bg-raised) 58%);
  cursor: pointer;
}

.tracking-report-row:hover {
  border-color: color-mix(in srgb, var(--blue-border) 44%, var(--border-subtle) 56%);
  background: color-mix(in srgb, var(--blue-bg) 16%, var(--bg-raised) 84%);
}

.tracking-report-row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.tracking-report-row-main strong {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.watchlist-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.watchlist-composer {
  padding: 14px 18px 16px;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 92%, var(--blue-bg) 8%), color-mix(in srgb, var(--bg-overlay) 54%, var(--bg-raised) 46%));
}

.watchlist-form {
  gap: 12px;
}

.watchlist-url-field {
  grid-column: 1 / -1;
}

.watchlist-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
  gap: 10px;
}

.watchlist-form-actions {
  justify-content: flex-start;
  padding-top: 0;
}

.watchlist-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.watchlist-summary-strip article,
.watchlist-metrics article {
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-raised) 82%, var(--bg-overlay) 18%);
}

.watchlist-summary-strip span,
.watchlist-metrics span {
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.watchlist-summary-strip strong,
.watchlist-metrics strong {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.watchlist-scroll {
  display: grid;
  align-content: start;
  gap: 12px;
}

.watchlist-record {
  gap: 8px;
}

.watchlist-record-head,
.watchlist-version-head,
.watchlist-snapshot-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.watchlist-record strong,
.watchlist-version-head strong,
.watchlist-snapshot-head strong {
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.watchlist-record-url,
.watchlist-version-copy p,
.watchlist-compare-card p,
.watchlist-snapshot-card p {
  min-width: 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.watchlist-chip-row,
.watchlist-record-meta,
.watchlist-version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watchlist-status-pill {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 64%, var(--bg-raised) 36%);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 600;
}

.watchlist-status-pill.is-changed {
  border-color: color-mix(in srgb, var(--yellow) 30%, var(--border-subtle) 70%);
  background: color-mix(in srgb, var(--yellow-bg) 70%, var(--bg-raised) 30%);
  color: color-mix(in srgb, var(--yellow) 76%, var(--text) 24%);
}

.watchlist-status-pill.is-stable,
.watchlist-status-pill.is-baseline {
  border-color: color-mix(in srgb, var(--green) 26%, var(--border-subtle) 74%);
  background: color-mix(in srgb, var(--green-bg) 68%, var(--bg-raised) 32%);
  color: color-mix(in srgb, var(--green) 78%, var(--text) 22%);
}

.watchlist-status-pill.is-failed {
  border-color: color-mix(in srgb, var(--red) 34%, var(--border-subtle) 66%);
  background: color-mix(in srgb, var(--red-bg) 70%, var(--bg-raised) 30%);
  color: color-mix(in srgb, var(--red) 82%, var(--text) 18%);
}

.watchlist-status-pill.is-checking,
.watchlist-status-pill.is-never_checked {
  border-color: color-mix(in srgb, var(--blue) 22%, var(--border-subtle) 78%);
  background: color-mix(in srgb, var(--blue-bg) 64%, var(--bg-raised) 36%);
  color: color-mix(in srgb, var(--blue-strong) 78%, var(--text) 22%);
}

.data-source-status-pill {
  min-height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.data-source-status-pill.is-success {
  border-color: color-mix(in srgb, var(--green) 28%, var(--border-subtle) 72%);
  background: color-mix(in srgb, var(--green-bg) 72%, var(--bg-raised) 28%);
  color: color-mix(in srgb, var(--green) 82%, var(--text) 18%);
}

.data-source-status-pill.is-failed {
  border-color: color-mix(in srgb, var(--red) 28%, var(--border-subtle) 72%);
  background: color-mix(in srgb, var(--red-bg) 72%, var(--bg-raised) 28%);
  color: color-mix(in srgb, var(--red) 82%, var(--text) 18%);
}

.data-source-status-pill.is-pending {
  border-color: color-mix(in srgb, var(--blue) 22%, var(--border-subtle) 78%);
  background: color-mix(in srgb, var(--blue-bg) 70%, var(--bg-raised) 30%);
  color: color-mix(in srgb, var(--blue-strong) 82%, var(--text) 18%);
}

.data-source-status-pill.is-idle {
  background: color-mix(in srgb, var(--bg-overlay) 66%, var(--bg-raised) 34%);
  color: var(--text-muted);
}

.watchlist-detail-stack {
  display: grid;
  gap: 16px;
}

.watchlist-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.watchlist-mode-pill {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.watchlist-mode-pill.is-viewing {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-overlay) 62%, var(--bg-raised) 38%);
}

.watchlist-mode-pill.is-editing {
  color: var(--blue-strong);
  border-color: color-mix(in srgb, var(--blue-border) 72%, var(--border-subtle) 28%);
  background: color-mix(in srgb, var(--blue-bg) 72%, var(--bg-raised) 28%);
}

.watchlist-save-button {
  min-width: 102px;
}

.watchlist-editor {
  padding: 16px;
  display: grid;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 44%, var(--border-subtle) 56%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 88%, var(--blue-bg) 12%), color-mix(in srgb, var(--bg-overlay) 56%, var(--bg-raised) 44%));
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.watchlist-editor.is-dirty {
  border-color: color-mix(in srgb, var(--blue-border) 66%, var(--border-subtle) 34%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 82%, var(--blue-bg) 18%), color-mix(in srgb, var(--bg-overlay) 52%, var(--bg-raised) 48%));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-border) 24%, transparent 76%);
}

.watchlist-detail-overview {
  padding: 15px 16px;
  display: grid;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 54%, var(--bg-raised) 46%);
}

.watchlist-detail-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(150px, 0.8fr));
  gap: 12px;
}

.watchlist-overview-field {
  min-width: 0;
  padding: 12px 13px;
  display: grid;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-raised) 80%, var(--bg-overlay) 20%);
}

.watchlist-overview-field.is-url {
  grid-column: 1 / 2;
}

.watchlist-overview-field span {
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted);
}

.watchlist-overview-field strong,
.watchlist-overview-link {
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-all;
}

.watchlist-overview-link {
  color: var(--blue-strong);
}

.watchlist-editor-grid,
.watchlist-metrics,
.watchlist-compare-grid {
  display: grid;
  gap: 12px;
}

.watchlist-editor-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
}

.watchlist-editor-grid .watchlist-detail-url-field {
  grid-column: 1 / -1;
}

.watchlist-editor-grid label {
  display: grid;
  gap: 7px;
}

.watchlist-editor-grid label > span {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-muted);
}

.watchlist-editor-grid input,
.watchlist-editor-grid select,
.watchlist-editor-grid .custom-select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, white 14%);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg-overlay) 68%, var(--bg-raised) 32%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.watchlist-editor-grid .custom-select-trigger {
  justify-content: space-between;
}

.watchlist-editor-grid input:hover:not(:disabled),
.watchlist-editor-grid select:hover:not(:disabled),
.watchlist-editor-grid .custom-select-trigger:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--border) 68%, var(--blue-border) 32%);
  background: color-mix(in srgb, var(--bg-overlay) 60%, var(--bg-raised) 40%);
}

.watchlist-editor-grid input:focus,
.watchlist-editor-grid select:focus,
.watchlist-editor-grid .custom-select-shell.is-open .custom-select-trigger,
.watchlist-editor-grid .custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: color-mix(in srgb, var(--bg-raised) 84%, var(--blue-bg) 16%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 3px color-mix(in srgb, var(--blue-bg) 76%, transparent 24%);
}

.watchlist-editor-grid input:disabled,
.watchlist-editor-grid select:disabled,
.watchlist-editor-grid .custom-select-trigger:disabled {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-overlay) 74%, var(--bg-raised) 26%);
  cursor: not-allowed;
}

.watchlist-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.watchlist-version-banner {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 78%, var(--border-subtle) 22%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 74%, var(--bg-raised) 26%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
}

.watchlist-version-banner.changed {
  border-color: color-mix(in srgb, var(--yellow) 30%, var(--border-subtle) 70%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--yellow-bg) 76%, var(--bg-raised) 24%), color-mix(in srgb, var(--bg-overlay) 82%, var(--yellow-bg) 18%));
}

.watchlist-version-list {
  display: grid;
  gap: 10px;
}

.watchlist-version-card,
.watchlist-snapshot-card,
.watchlist-compare-card {
  min-width: 0;
  max-width: 100%;
  align-self: start;
  padding: 13px 14px;
  display: grid;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 54%, var(--bg-raised) 46%);
}

.watchlist-version-card {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.watchlist-version-card:hover,
.watchlist-version-card:focus-visible {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-overlay) 68%, var(--bg-raised) 32%);
  box-shadow: 0 10px 24px rgba(13, 28, 45, 0.08);
  outline: none;
}

.watchlist-version-card.active {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 78%, var(--bg-raised) 22%), color-mix(in srgb, var(--bg-overlay) 82%, var(--blue-bg) 18%));
}

.watchlist-version-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.watchlist-compare-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: start;
}

.watchlist-compare-card strong,
.watchlist-snapshot-card strong {
  min-width: 0;
  font-size: 12px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.watchlist-text-block {
  min-width: 0;
  max-width: 100%;
  max-height: 220px;
  overflow: auto;
  padding: 11px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-raised) 78%, var(--bg-overlay) 22%);
  color: var(--text);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.watchlist-snapshot-card ul,
.watchlist-compare-card ul {
  min-width: 0;
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  overflow-wrap: anywhere;
}

.watchlist-snapshot-card li,
.watchlist-compare-card li {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.watchlist-snapshot-link {
  color: var(--blue-strong);
  word-break: break-all;
}

.watchlist-empty-inline {
  color: var(--text-dim);
  line-height: 1.7;
}

.watchlist-empty-state {
  padding: 24px;
  gap: 18px;
  align-content: stretch;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--blue-bg) 84%, transparent 16%) 0, transparent 32%),
    radial-gradient(circle at right 18% bottom 12%, color-mix(in srgb, var(--green-bg) 82%, transparent 18%) 0, transparent 28%);
}

.data-sources-empty-state {
  min-height: 100%;
  padding: 24px 26px;
}

.data-source-record {
  padding: 14px 14px 15px;
}

.data-source-record-main {
  display: grid;
  gap: 8px;
}

.data-source-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.data-source-record-head strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}

.data-source-detail-stack {
  display: grid;
  gap: 16px;
  container-type: inline-size;
}

.data-source-hero-card {
  display: grid;
  gap: 18px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 34%, var(--border-subtle) 66%);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--blue-bg) 84%, white 16%) 0, transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 94%, white 6%), color-mix(in srgb, var(--bg-overlay) 60%, var(--bg-raised) 40%));
}

.data-source-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.data-source-hero-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.data-source-hero-actions {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.data-source-hero-actions .primary-button,
.data-source-hero-actions .ghost-button {
  max-width: 100%;
}

.data-source-hero-copy h2 {
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
}

.data-source-hero-copy p {
  max-width: 48ch;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--text-muted);
}

.data-source-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.data-source-overview-grid article {
  min-width: 0;
  padding: 12px 12px 13px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 78%, white 22%);
  background: color-mix(in srgb, var(--bg-raised) 84%, white 16%);
  display: grid;
  gap: 6px;
}

.data-source-overview-grid span {
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.data-source-overview-grid strong {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.data-overview-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-strong);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.data-overview-link:hover,
.data-overview-link:focus-visible {
  color: var(--blue);
  outline: none;
}

.data-overview-link:disabled {
  color: var(--text-dim);
  cursor: default;
}

.data-source-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.data-source-upstream-link {
  min-width: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--blue-strong);
  word-break: break-all;
}

.data-source-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  margin-bottom: 12px;
}

.data-source-section-head > * {
  min-width: 0;
}

.data-source-section-head h3 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

.data-source-section-head .panel-meta {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1080px) {
  .data-source-hero-top {
    flex-direction: column;
  }

  .data-source-hero-copy,
  .data-source-hero-actions {
    width: 100%;
  }

  .data-source-hero-actions .primary-button,
  .data-source-hero-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }
}

.data-source-run-list,
.data-record-list {
  display: grid;
  gap: 12px;
}

.data-source-run-card {
  padding: 14px 14px 15px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 80%, white 20%);
  background: color-mix(in srgb, var(--bg-overlay) 42%, var(--bg-raised) 58%);
  display: grid;
  gap: 10px;
}

.data-source-run-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.data-source-run-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.data-source-run-copy {
  font-size: 12px;
  line-height: 1.68;
  color: var(--text-muted);
  word-break: break-all;
}

.data-record-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  background: color-mix(in srgb, var(--bg-raised) 90%, white 10%);
}

.data-record-rank {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 44%, var(--border-subtle) 56%);
  background: color-mix(in srgb, var(--blue-bg) 72%, white 28%);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: var(--blue-strong);
}

.data-record-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.data-record-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.data-record-title-line strong,
.data-record-link {
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}

.data-record-link:hover {
  color: var(--blue-strong);
}

.data-inline-keyword-button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.data-inline-keyword-button:hover,
.data-inline-keyword-button:focus-visible {
  color: var(--blue-strong);
  outline: none;
}

.data-topic-link-pill {
  color: var(--blue-strong);
}

.data-browser-shell,
.data-workbench-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.82fr);
  gap: 16px;
}

.data-workbench-shell-weibo {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.82fr);
}

@container (max-width: 1320px) {
  .data-workbench-shell,
  .data-workbench-shell-weibo {
    grid-template-columns: minmax(0, 1fr);
  }
}

.data-browser-main,
.data-browser-side,
.data-table-shell,
.data-module-rail {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.data-module-rail,
.data-module-rail-weibo {
  min-width: 0;
}

.data-list-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(260px, 1.08fr) minmax(140px, 0.56fr) auto;
  gap: 10px;
  align-items: end;
}

.data-list-toolbar-weibo {
  grid-template-columns: minmax(420px, 1.35fr) 176px 176px;
}

.data-list-toolbar-xiaohongshu {
  grid-template-columns: minmax(420px, 2.2fr) minmax(140px, 0.6fr) minmax(140px, 0.6fr) auto;
}

.data-table-head,
.data-table-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.8fr) minmax(96px, 0.72fr) minmax(96px, 0.72fr);
  gap: 12px;
  align-items: start;
}

.data-table-head {
  padding: 0 14px 6px;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.data-table-list {
  display: grid;
  gap: 10px;
}

.data-list-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.data-table-list + .data-list-pager {
  margin-top: -8px;
}

.data-list-pager .pager-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.data-table-row {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  background: color-mix(in srgb, var(--bg-raised) 90%, white 10%);
}

.data-table-row-rich {
  grid-template-columns: 120px minmax(0, 1.8fr) minmax(120px, 0.9fr) 72px;
}

.data-table-head-rich {
  grid-template-columns: 120px minmax(0, 1.8fr) minmax(120px, 0.9fr) 72px;
}

.data-table-row-source-sync,
.data-table-head-source-sync {
  grid-template-columns: 120px minmax(0, 1.5fr) minmax(84px, 0.5fr) minmax(180px, 0.9fr);
}

.data-table-row[data-xiaohongshu-note-id],
.data-table-row[data-x-bookmark-id],
.data-table-row[data-video-comment-id] {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.data-table-row[data-xiaohongshu-note-id]:hover,
.data-table-row[data-x-bookmark-id]:hover,
.data-table-row[data-video-comment-id]:hover {
  border-color: color-mix(in srgb, var(--blue-border) 42%, var(--border) 58%);
  background: color-mix(in srgb, var(--blue-bg) 22%, var(--bg-raised) 78%);
}

.data-workbench-shell-weibo .data-table-head,
.data-workbench-shell-weibo .data-table-row {
  grid-template-columns: 128px minmax(0, 1.8fr) minmax(96px, 0.72fr) minmax(96px, 0.72fr);
}

.xhs-note-detail {
  display: grid;
  gap: 16px;
}

.xhs-note-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xhs-note-detail-content {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.xhs-note-detail-meta {
  display: grid;
  gap: 6px;
  color: var(--text-dim);
  font-size: 12px;
}

.xhs-note-detail-meta span strong {
  color: var(--text);
  margin-right: 6px;
}

.xhs-note-detail-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 8px;
}

.xhs-note-detail-section {
  display: grid;
  gap: 8px;
}

.xhs-note-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.xhs-note-detail-image-thumb {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.xhs-note-detail-image-thumb img,
.xhs-note-detail-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.xhs-note-detail-image-thumb:hover img {
  border-color: color-mix(in srgb, var(--blue-border) 50%, var(--border) 50%);
  transform: translateY(-1px);
}

.xhs-note-detail-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.xhs-note-detail-video-thumb {
  appearance: none;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.xhs-note-detail-video-thumb-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #000;
  opacity: 0.9;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.xhs-note-detail-video-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.xhs-note-detail-video-thumb:hover .xhs-note-detail-video-thumb-frame {
  opacity: 1;
}

.x-bookmark-detail {
  align-content: start;
}

.x-bookmark-author {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.x-bookmark-author img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
}

.x-bookmark-author div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.x-bookmark-author strong {
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.x-bookmark-author span {
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.x-bookmark-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.x-bookmark-image-thumb img {
  aspect-ratio: 4 / 3;
}

.x-bookmark-video-card {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.x-bookmark-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #000;
  object-fit: contain;
}

.x-bookmark-media-link {
  color: var(--blue);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.xhs-media-lightbox-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px;
}

.xhs-media-lightbox-backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.xhs-media-lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: min(1280px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.xhs-media-lightbox-image,
.xhs-media-lightbox-video {
  max-width: min(1280px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
  background: #000;
}

.xhs-media-lightbox-image {
  object-fit: contain;
}

.xhs-media-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
}

.xhs-media-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.xhs-note-detail-assets {
  display: grid;
  gap: 6px;
}

.xhs-note-detail-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
  font-size: 12px;
}

.xhs-note-detail-asset-row a {
  color: var(--blue);
  word-break: break-all;
}

.data-table-cell {
  min-width: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text);
}

.data-table-cell-source-item {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-table-copy {
  margin: 0;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.data-table-keyword {
  display: grid;
  gap: 8px;
}

.data-table-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-side-card {
  min-width: 0;
  gap: 12px;
}

.data-compare-controls,
.data-sql-panel {
  display: grid;
  gap: 10px;
}

.data-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.data-field-compact {
  gap: 6px;
}

.data-search-input-shell {
  position: relative;
}

.data-ant-date-picker-host {
  width: 100%;
  min-width: 0;
}

.data-search-input-shell input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  cursor: pointer;
}

.data-inline-input,
.data-sql-input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.data-inline-input-with-action {
  padding-right: 42px;
}

.data-inline-input:focus,
.data-sql-input:focus {
  outline: none;
  border-color: var(--blue);
  background: color-mix(in srgb, var(--bg) 82%, var(--bg-overlay) 18%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 72%, transparent 28%);
}

.data-search-clear-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.data-search-clear-button:active {
  transform: translateY(-50%);
}

.data-sql-input {
  min-height: 112px;
  resize: vertical;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

.data-sql-requirement-input {
  min-height: 84px;
}

.data-search-results,
.data-compare-list {
  display: grid;
  gap: 10px;
}

.data-search-result {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-overlay) 40%, var(--bg-raised) 60%);
  color: var(--text);
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.data-search-result:hover,
.data-search-result.active {
  border-color: color-mix(in srgb, var(--blue-border) 68%, var(--border-subtle) 32%);
  background: color-mix(in srgb, var(--blue-bg) 44%, var(--bg-raised) 56%);
}

.data-search-result-main,
.data-search-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.data-search-result-main strong {
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}

.data-search-result-main span {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.data-browser-summary-grid {
  display: none;
}

.data-keyword-hero {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 42%, var(--border-subtle) 58%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue-bg) 54%, white 46%), color-mix(in srgb, var(--bg-raised) 78%, var(--blue-bg) 22%));
  display: grid;
  gap: 10px;
}

.data-keyword-hero strong {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

.data-sparkline-shell {
  display: grid;
  gap: 8px;
}

.data-sparkline {
  width: 100%;
  height: 32px;
  display: block;
}

.data-sparkline-grid {
  stroke: color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  stroke-width: 1.2;
}

.data-sparkline-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-sparkline-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.data-sparkline-meta span,
.data-sparkline-empty {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.data-sparkline-meta strong {
  justify-self: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

.data-keyword-history-table-head {
  display: grid;
  grid-template-columns: 96px 72px minmax(90px, 0.8fr) minmax(0, 1.4fr);
  gap: 10px;
  padding: 0 8px 4px;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.data-keyword-history-list {
  display: grid;
  gap: 10px;
}

.data-keyword-history-row {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-overlay) 40%, var(--bg-raised) 60%);
  color: var(--text);
  display: grid;
  grid-template-columns: 96px 72px minmax(90px, 0.8fr) minmax(0, 1.4fr);
  gap: 10px;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.data-keyword-history-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: start;
}

.data-keyword-history-cell strong {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
}

.data-keyword-history-cell span {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.data-keyword-history-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-keyword-history-cell-deltas {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.data-compare-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.data-compare-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  background: color-mix(in srgb, var(--bg-raised) 90%, white 10%);
}

.data-compare-rank {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 44%, var(--border-subtle) 56%);
  background: color-mix(in srgb, var(--blue-bg) 72%, white 28%);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: var(--blue-strong);
}

.data-compare-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.data-tool-entry {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.data-tool-entry p {
  min-width: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@container (max-width: 980px) {
  .data-source-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-list-toolbar,
  .data-list-toolbar-weibo,
  .data-list-toolbar-xiaohongshu,
  .data-table-head,
  .data-table-row,
  .data-table-head-rich,
  .data-table-row-rich {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table-head {
    display: none;
  }
}

.data-sql-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-sql-example {
  cursor: pointer;
}

.data-sql-table-shell {
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-raised) 92%, white 8%);
}

.data-sql-table {
  width: fit-content;
  min-width: max(100%, 520px);
  border-collapse: collapse;
}

.data-sql-table th,
.data-sql-table td {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white 18%);
  text-align: left;
  vertical-align: top;
}

.data-sql-table th {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg-overlay) 70%, var(--bg-raised) 30%);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.data-sql-table td {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.watchlist-empty-hero {
  display: grid;
  gap: 12px;
}

.watchlist-empty-badge {
  min-height: 30px;
  width: fit-content;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 74%, var(--border-subtle) 26%);
  background: color-mix(in srgb, var(--bg-raised) 72%, var(--blue-bg) 28%);
  color: var(--blue-strong);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watchlist-empty-badge .icon-svg {
  --icon-size: 16px;
}

.watchlist-empty-copy {
  display: grid;
  gap: 6px;
}

.watchlist-empty-copy h3 {
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
}

.watchlist-empty-copy p {
  max-width: 38ch;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--text-muted);
}

.watchlist-empty-stage {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.92fr);
  gap: 16px;
}

.watchlist-empty-side {
  display: grid;
  gap: 16px;
}

.watchlist-empty-card {
  padding: 16px;
  display: grid;
  gap: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 72%, white 28%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 92%, white 8%), color-mix(in srgb, var(--bg-overlay) 54%, var(--bg-raised) 46%));
  box-shadow: 0 18px 40px rgba(13, 28, 45, 0.08);
}

.watchlist-empty-card-primary {
  min-height: 320px;
  align-content: start;
}

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

.watchlist-empty-card-head strong {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text);
}

.watchlist-empty-browser {
  min-height: 240px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--blue-border) 48%, var(--border-subtle) 52%);
  background: color-mix(in srgb, var(--bg-raised) 88%, var(--blue-bg) 12%);
  overflow: hidden;
}

.watchlist-empty-browser-bar {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 78%, white 22%);
  background: color-mix(in srgb, var(--bg-overlay) 48%, var(--bg-raised) 52%);
}

.watchlist-empty-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-dim) 28%, white 72%);
}

.watchlist-empty-browser-body {
  padding: 18px 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.watchlist-empty-line,
.watchlist-empty-timeline-item,
.watchlist-empty-pill {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-overlay) 72%, var(--bg-raised) 28%);
}

.watchlist-empty-line::after,
.watchlist-empty-timeline-item::after,
.watchlist-empty-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  animation: watchlist-empty-shimmer 2.6s ease-in-out infinite;
}

.watchlist-empty-line {
  height: 11px;
}

.watchlist-empty-line.w-52 {
  width: 52%;
}

.watchlist-empty-line.w-66 {
  width: 66%;
}

.watchlist-empty-line.w-78 {
  width: 78%;
}

.watchlist-empty-line.w-84 {
  width: 84%;
}

.watchlist-empty-line.w-90 {
  width: 90%;
}

.watchlist-empty-timeline {
  display: grid;
  gap: 10px;
}

.watchlist-empty-timeline-item {
  height: 52px;
  border-radius: 14px;
}

.watchlist-empty-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watchlist-empty-pill {
  width: 88px;
  height: 28px;
}

.watchlist-empty-pill.wide {
  width: 128px;
}

@keyframes watchlist-empty-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.tracking-list-block h3 {
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.standard-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.standard-weight-bars {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.standard-form-section {
  display: grid;
  gap: 8px;
}

.standard-form-section > span {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.standard-preference-grid,
.standard-weight-grid {
  display: grid;
  gap: 10px;
}

.standard-preference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.standard-weight-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(17, 27, 38, 0.32);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-raised) 96%, var(--bg-overlay) 4%);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}

.modal-panel-compact {
  width: min(520px, calc(100vw - 40px));
}

.modal-panel-wide {
  width: min(920px, calc(100vw - 40px));
}

.modal-shell[data-modal-kind="sql"] .modal-panel-wide {
  width: min(var(--sql-modal-width, 920px), calc(100vw - 40px));
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

#tracking-item-modal .modal-panel {
  width: min(960px, calc(100vw - 48px));
  max-height: min(820px, calc(100vh - 48px));
}

#tracking-item-modal .modal-body {
  min-width: 0;
  overflow-x: hidden;
}

#tracking-item-modal .summary-section {
  min-width: 0;
  max-width: 100%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.xiaohongshu-sync-panel {
  width: min(540px, calc(100vw - 40px));
}

.xiaohongshu-sync-panel .modal-head {
  align-items: center;
  padding: 22px 28px 18px;
}

.xiaohongshu-sync-panel .modal-body {
  padding: 20px 28px 28px;
}

.xiaohongshu-sync-panel .stack-form-roomy {
  gap: 20px;
}

.xiaohongshu-sync-panel .modal-actions {
  padding-top: 0;
}

.xiaohongshu-sync-panel .ghost-button,
.xiaohongshu-sync-panel .primary-button {
  min-width: 92px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 15px;
}

.xiaohongshu-sync-channel-list {
  display: grid;
  gap: 8px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 86%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-overlay) 42%, var(--bg-raised) 58%);
}

.stack-form .sync-channel-option {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.stack-form .sync-channel-option:hover {
  background: color-mix(in srgb, var(--bg-raised) 82%, var(--blue-bg) 18%);
}

.stack-form .sync-channel-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--blue-border) 78%, var(--border) 22%);
  background: color-mix(in srgb, var(--bg-raised) 68%, var(--blue-bg) 32%);
  box-shadow: 0 8px 22px rgba(26, 111, 239, 0.08);
}

.stack-form .sync-channel-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sync-channel-option-label {
  order: 1;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--text);
  overflow-wrap: normal;
}

.sync-channel-option-check {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--text-muted) 18%);
  color: transparent;
  font-size: 12px;
  line-height: 1;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--bg-raised) 82%, var(--bg-overlay) 18%);
}

.stack-form .sync-channel-option:has(input:checked) .sync-channel-option-check {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.xiaohongshu-sync-progress {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, transparent);
  background: color-mix(in srgb, var(--bg-raised) 76%, var(--bg-overlay) 24%);
}

.xiaohongshu-sync-progress-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.xiaohongshu-sync-progress-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.xiaohongshu-sync-progress-head strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}

.xiaohongshu-sync-progress-head span {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.xiaohongshu-sync-progress-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--text-muted);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--text-muted) 12%, transparent);
}

.xiaohongshu-sync-progress-dot.preparing,
.xiaohongshu-sync-progress-dot.fetching,
.xiaohongshu-sync-progress-dot.writing {
  background: var(--blue);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 14%, transparent);
}

.xiaohongshu-sync-progress-dot.success {
  background: var(--green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent);
}

.xiaohongshu-sync-progress-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 14%, transparent);
}

.xiaohongshu-sync-progress-bar {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--border-subtle) 56%, transparent);
}

.xiaohongshu-sync-progress-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: sync-progress-slide 1.1s ease-in-out infinite;
}

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

.xiaohongshu-sync-stats span {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-overlay) 52%, var(--bg-raised) 48%);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.xiaohongshu-sync-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 17px;
  line-height: 1;
}

.xiaohongshu-sync-progress-note,
.xiaohongshu-sync-progress-error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.xiaohongshu-sync-progress-note {
  color: var(--text-muted);
}

.xiaohongshu-sync-progress-error {
  color: var(--red);
}

@keyframes sync-progress-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

.file-field input[type="file"] {
  padding: 15px 14px;
  border-style: dashed;
  background: color-mix(in srgb, var(--bg-overlay) 64%, var(--bg-raised) 36%);
}

.file-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--blue-strong);
  cursor: pointer;
}

@media (max-width: 1180px) {
  html,
  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100%;
  }

  #layout {
    flex-direction: column;
    overflow: visible;
  }

  #sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  #content.workspace {
    overflow: visible;
  }

  .workbench-shell,
  .evaluate-shell,
  .standards-shell,
  .tracking-shell,
  .watchlist-shell,
  .data-sources-shell,
  .search-shell,
  .sources-shell,
  .aside-stack {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .data-sources-shell {
    overflow: visible;
  }

  .panel-scroll,
  .panel-scroll-result {
    overflow: visible;
  }

  .data-browser-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  #content.workspace {
    padding: 14px;
  }

  .choice-strip,
  .summary-grid,
  .standard-summary-grid,
  .form-grid-two,
  .standard-preference-grid,
  .standard-weight-grid,
  .tracking-list,
  .tracking-metrics,
  .result-tabbar,
  .watchlist-inline-fields,
  .watchlist-summary-strip,
  .watchlist-detail-overview-grid,
  .watchlist-metrics,
  .watchlist-compare-grid,
  .watchlist-empty-stage,
  .data-source-overview-grid,
  .data-browser-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-tabbar {
    display: grid;
  }

  .result-header,
  .panel-foot,
  .tracking-hero,
  .tracking-group-head {
    flex-direction: column;
  }

  .result-actions {
    width: 100%;
    justify-items: start;
  }

  .watchlist-detail-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .data-source-hero-top,
  .data-source-run-head {
    flex-direction: column;
  }

  .data-browser-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-workbench-shell,
  .source-search-form,
  .data-list-toolbar:not(.data-list-toolbar-weibo),
  .data-table-head,
  .data-table-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-list-toolbar-weibo {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 300px) 176px;
  }

  .source-search-result-main,
  .source-search-pager,
  .source-search-loading-head,
  .source-search-skeleton,
  .data-search-result-main,
  .data-search-result-meta,
  .data-keyword-history-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pager-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-row {
    grid-template-columns: 74px minmax(0, 1fr) 40px;
  }

  .source-table-header {
    display: none;
  }

  .source-filters {
    padding: 12px 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .source-table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .source-row-actions {
    justify-content: flex-start;
  }

  .source-detail-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-detail-head {
    flex-direction: column;
  }

  .source-detail-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .drawer-panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
  }

  .drawer-body {
    padding: 14px 14px 22px;
  }

  .modal-shell {
    padding: 12px;
  }

  .modal-panel,
  .modal-panel-compact,
  .modal-panel-wide {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  #tracking-item-modal .modal-panel {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  #tracking-item-modal .modal-body {
    padding: 14px;
  }

  #tracking-item-modal .tracking-item-modal-content {
    padding: 0 0 14px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}

.data-source-add-panel {
  width: min(760px, calc(100vw - 40px));
}

.data-source-add-candidates {
  max-height: min(460px, 52vh);
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.data-source-add-file-field {
  position: relative;
  cursor: pointer;
}

.data-source-file-native {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.data-source-file-drop {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 76%, var(--blue-border) 24%);
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-bg) 18%, transparent 82%), transparent 44%),
    color-mix(in srgb, var(--bg-raised) 94%, var(--bg-overlay) 6%);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.data-source-add-file-field:hover .data-source-file-drop,
.data-source-add-file-field:focus-within .data-source-file-drop {
  border-color: color-mix(in srgb, var(--blue-border) 64%, var(--border) 36%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 42%, transparent 58%);
}

.data-source-add-file-field.has-file .data-source-file-drop {
  border-color: color-mix(in srgb, var(--green) 58%, var(--border) 42%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green-bg) 24%, transparent 76%), transparent 48%),
    color-mix(in srgb, var(--bg-raised) 96%, var(--bg-overlay) 4%);
}

.data-source-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue-bg) 46%, var(--bg-raised) 54%);
}

.data-source-add-file-field.has-file .data-source-file-icon {
  color: var(--green);
  background: color-mix(in srgb, var(--green-bg) 54%, var(--bg-raised) 46%);
}

.data-source-file-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.data-source-file-copy strong,
.data-source-file-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.data-source-file-copy strong {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.data-source-file-copy span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.data-source-file-action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-raised) 86%, white 14%);
}

@media (max-width: 640px) {
  .data-source-file-drop {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .data-source-file-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.data-source-add-candidate {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-raised) 94%, var(--bg-overlay) 6%);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.data-source-add-candidate:hover,
.data-source-add-candidate.active {
  border-color: color-mix(in srgb, var(--blue-border) 58%, var(--border) 42%);
  background: color-mix(in srgb, var(--blue-bg) 22%, var(--bg-raised) 78%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-bg) 42%, transparent 58%);
}

.data-source-add-candidate strong,
.data-source-add-candidate span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.data-source-add-candidate strong {
  font-size: 13px;
  line-height: 1.45;
}

.data-source-add-candidate > span:last-child {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.data-table-row-video-comment,
.data-table-head-video-comments {
  grid-template-columns: 136px minmax(0, 1.8fr) minmax(92px, 0.45fr) minmax(92px, 0.45fr);
}

.data-list-toolbar-local-table {
  grid-template-columns: minmax(280px, 1fr);
}

.data-table-row-local-table,
.data-table-head-local-table {
  grid-template-columns: 72px minmax(0, 1.5fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
}

.video-comment-detail .xhs-note-detail-content {
  white-space: pre-wrap;
}

[data-source-runtime="online"] body:has(.duobit-online-activation-screen) {
  min-height: 100vh;
  background: #f6f7f8;
  color: #1f252d;
}

.duobit-online-activation-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.duobit-online-activation-panel {
  width: min(680px, 100%);
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(35, 44, 56, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(32, 40, 52, 0.10);
}

.duobit-online-activation-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.duobit-online-activation-brand strong {
  color: #202833;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}

.duobit-online-activation-copy {
  display: grid;
  gap: 10px;
}

.duobit-online-activation-copy h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 720;
  letter-spacing: 0;
}

.duobit-online-activation-copy p {
  max-width: 560px;
  margin: 0;
  color: #596273;
  font-size: 15px;
  line-height: 1.65;
}

.duobit-online-activation-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(35, 44, 56, 0.14);
}

.duobit-online-activation-status div {
  min-width: 0;
  padding: 16px 16px 16px 0;
  display: grid;
  gap: 8px;
}

.duobit-online-activation-status span {
  color: #7b8492;
  font-size: 12px;
}

.duobit-online-activation-status strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #202833;
  font-size: 14px;
  font-weight: 650;
}

.duobit-online-activation-primary {
  justify-self: start;
  height: 40px;
  border: 1px solid #202833;
  border-radius: 8px;
  padding: 0 16px;
  background: #202833;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 720px) {
  .duobit-online-activation-screen {
    place-items: stretch;
    align-content: center;
  }

  .duobit-online-activation-copy h1 {
    font-size: 26px;
  }

  .duobit-online-activation-status {
    grid-template-columns: 1fr;
  }

  .duobit-online-activation-status div {
    padding-right: 0;
    border-bottom: 1px solid rgba(35, 44, 56, 0.10);
  }

  .duobit-online-activation-status div:last-child {
    border-bottom: 0;
  }
}
