:root {
  --tdxl-ux-primary: #2457d6;
  --tdxl-ux-primary-dark: #173fa6;
  --tdxl-ux-bg: #f5f7fb;
  --tdxl-ux-card: #ffffff;
  --tdxl-ux-text: #172033;
  --tdxl-ux-muted: #68748c;
  --tdxl-ux-border: #e2e7f0;
  --tdxl-ux-warning: #b7790b;
  --tdxl-ux-danger: #bb403a;
  --tdxl-ux-radius: 14px;
  --tdxl-ux-shadow: 0 12px 32px rgba(36, 59, 110, .12);
}

.tdxl-ux-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tdxl-ux-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--tdxl-ux-border);
  border-radius: 9px;
  cursor: pointer;
  color: var(--tdxl-ux-text);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tdxl-ux-action:hover {
  border-color: var(--tdxl-ux-primary);
  color: var(--tdxl-ux-primary);
}

.tdxl-ux-action.is-active {
  border-color: var(--tdxl-ux-primary);
  color: #fff;
  background: var(--tdxl-ux-primary);
}

.tdxl-ux-quick-panel {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 85;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.tdxl-ux-quick-panel a,
.tdxl-ux-quick-panel button {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  padding: 5px;
  border: 1px solid var(--tdxl-ux-border);
  border-radius: 13px;
  color: var(--tdxl-ux-text);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--tdxl-ux-shadow);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.tdxl-ux-quick-panel a:hover,
.tdxl-ux-quick-panel button:hover {
  color: #fff;
  background: var(--tdxl-ux-primary);
}

.tdxl-ux-compare-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 95;
  display: none;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: min(680px, calc(100% - 30px));
  padding: 13px 16px;
  border: 1px solid var(--tdxl-ux-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 50px rgba(25, 47, 100, .22);
  transform: translateX(-50%);
}

.tdxl-ux-compare-bar.is-visible {
  display: grid;
}

.tdxl-ux-compare-text {
  color: var(--tdxl-ux-muted);
  font-size: 14px;
}

.tdxl-ux-compare-text b {
  color: var(--tdxl-ux-primary);
}

.tdxl-ux-primary-button,
.tdxl-ux-secondary-button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
}

.tdxl-ux-primary-button {
  color: #fff;
  background: var(--tdxl-ux-primary);
}

.tdxl-ux-secondary-button {
  color: var(--tdxl-ux-text);
  background: #edf1f7;
}

.tdxl-ux-toast {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 110;
  display: none;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 11px;
  color: #fff;
  background: var(--tdxl-ux-primary);
  box-shadow: var(--tdxl-ux-shadow);
  line-height: 1.6;
}

.tdxl-ux-toast.is-visible {
  display: block;
}

.tdxl-ux-search-hint {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--tdxl-ux-border);
  border-radius: 10px;
  color: var(--tdxl-ux-muted);
  background: #fff;
  font-size: 13px;
  line-height: 1.7;
}

.tdxl-ux-search-hint.is-visible {
  display: block;
}

.tdxl-ux-freshness {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 5px 5px 5px 0;
  padding: 0 10px;
  border-radius: 999px;
  color: #76501b;
  background: #fff3d8;
  font-size: 12px;
  font-weight: 700;
}

.tdxl-ux-page {
  min-height: 65vh;
  padding: 40px 0 70px;
  color: var(--tdxl-ux-text);
  background: var(--tdxl-ux-bg);
}

.tdxl-ux-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.tdxl-ux-page-header {
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid var(--tdxl-ux-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--tdxl-ux-shadow);
}

.tdxl-ux-page-header h1 {
  margin: 0 0 9px;
  font-size: clamp(28px, 4vw, 42px);
}

.tdxl-ux-page-header p {
  margin: 0;
  color: var(--tdxl-ux-muted);
  line-height: 1.8;
}

.tdxl-ux-list {
  display: grid;
  gap: 14px;
}

.tdxl-ux-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--tdxl-ux-border);
  border-radius: var(--tdxl-ux-radius);
  background: #fff;
  box-shadow: var(--tdxl-ux-shadow);
}

.tdxl-ux-list-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.tdxl-ux-list-card p {
  margin: 5px 0;
  color: var(--tdxl-ux-muted);
  line-height: 1.7;
}

.tdxl-ux-empty {
  padding: 60px 20px;
  border: 1px dashed #cbd4e3;
  border-radius: 16px;
  color: var(--tdxl-ux-muted);
  background: #fff;
  text-align: center;
  line-height: 1.8;
}

.tdxl-ux-history-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--tdxl-ux-border);
  border-radius: 14px;
  background: #fff;
}

.tdxl-ux-history-box h3 {
  margin: 0 0 12px;
}

.tdxl-ux-history-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tdxl-ux-history-item {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--tdxl-ux-text);
  background: #edf2fa;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 800px) {
  .tdxl-ux-quick-panel {
    display: none;
  }

  .tdxl-ux-compare-bar {
    bottom: 67px;
    grid-template-columns: 1fr auto;
  }

  .tdxl-ux-compare-bar .tdxl-ux-secondary-button {
    display: none;
  }

  .tdxl-ux-list-card {
    grid-template-columns: 1fr;
  }
}