.search-control {
  min-height: var(--s-32);
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding: 0 var(--s-10);
  border: var(--s-1) solid var(--color-border);
  border-radius: var(--control-radius);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  font-size: var(--font-11);
}

.search-control input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: var(--color-text);
  background: var(--c-transparent);
}

.search-control input::placeholder { color: var(--color-text-faint); }

.auction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--s-360);
  gap: var(--layout-gap);
  align-items: start;
}

.auction-main,
.popularity-table-card,
.theme-detail-card,
.dragon-operations {
  min-width: 0;
  overflow: hidden;
}

.auction-dataset-bar {
  min-height: var(--s-46);
  display: flex;
  align-items: stretch;
  border-bottom: var(--s-1) solid var(--color-divider);
}

.auction-datasets {
  align-self: center;
  margin-left: var(--s-10);
}

.auction-datasets b { margin-left: var(--s-4); font-variant-numeric: tabular-nums; }

.auction-inline-summary {
  min-width: var(--s-360);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 0 auto;
  border-left: var(--s-1) solid var(--color-divider);
}

.auction-inline-summary div {
  display: grid;
  align-content: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-8);
  border-right: var(--s-1) solid var(--color-divider);
  text-align: right;
}

.auction-inline-summary div:last-child { border-right: 0; }
.auction-inline-summary dt { color: var(--color-text-faint); font-size: var(--font-10-5); }
.auction-inline-summary dd { margin: 0; font-size: var(--font-12); font-weight: var(--weight-700); font-variant-numeric: tabular-nums; }

.auction-toolbar,
.popularity-toolbar,
.dragon-toolbar {
  min-height: var(--s-46);
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-7) var(--s-10);
  border-bottom: var(--s-1) solid var(--color-divider);
}

.auction-toolbar .seg-control,
.popularity-toolbar .seg-control,
.dragon-toolbar .seg-control { margin-left: 0; }
.auction-toolbar .search-control,
.popularity-toolbar .search-control,
.dragon-toolbar .search-control { width: var(--s-260); margin-left: auto; }

.auction-side { display: grid; gap: var(--layout-gap); }
.auction-evidence-list { display: grid; gap: var(--s-1); padding: var(--s-6) var(--s-14) var(--s-10); }
.auction-evidence-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-8); padding: var(--s-7) 0; border-bottom: var(--s-1) solid var(--color-divider); }
.auction-evidence-list > div:last-of-type { border-bottom: 0; }
.auction-evidence-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auction-evidence-list span { color: var(--color-primary); font-size: var(--font-11); }
.auction-evidence-list small { grid-column: 1 / -1; color: var(--color-text-secondary); font-size: var(--font-10-5); }
.auction-evidence-list > p { padding: var(--s-14) 0; text-align: center; }

.auction-bars { display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-14); }
.auction-bars > div { display: grid; grid-template-columns: var(--s-44) minmax(0, 1fr) var(--s-44); align-items: center; gap: var(--s-8); font-size: var(--font-10-5); }
.auction-bars i { height: var(--s-7); overflow: hidden; border-radius: var(--radius-round); background: var(--color-surface-muted); }
.auction-bars b { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); }
.auction-bars strong { text-align: right; font-variant-numeric: tabular-nums; }

.themes-layout {
  display: grid;
  grid-template-columns: var(--s-320) minmax(0, 1fr);
  gap: var(--layout-gap);
  align-items: start;
}

.theme-directory { position: relative; min-width: 0; }
.theme-search { margin: var(--s-10); }
.theme-rank-list { max-height: calc(100vh - var(--s-260)); overflow-y: auto; border-top: var(--s-1) solid var(--color-divider); }
.theme-rank-list > button { width: 100%; display: grid; grid-template-columns: var(--s-28) minmax(0, 1fr) var(--s-56); align-items: center; gap: var(--s-8); padding: var(--s-8) var(--s-10); border-bottom: var(--s-1) solid var(--color-divider); background: var(--color-surface); text-align: left; }
.theme-rank-list > button:hover,
.theme-rank-list > button.active { background: var(--color-primary-soft); }
.theme-rank-list > button > b { color: var(--color-text-faint); text-align: center; font-variant-numeric: tabular-nums; }
.theme-rank-list > button:nth-child(-n+3) > b { color: var(--color-warning); font-size: var(--font-14); }
.theme-rank-list > button > span { min-width: 0; display: grid; gap: var(--s-2); }
.theme-rank-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-rank-list small { color: var(--color-text-faint); font-size: var(--font-10-5); }
.theme-rank-list em { font-style: normal; text-align: right; font-size: var(--font-11); font-variant-numeric: tabular-nums; }
.theme-preview-popover { position: absolute; top: var(--s-64); left: calc(100% + var(--layout-gap)); z-index: var(--z-popover); width: var(--s-400); overflow: hidden; border: var(--s-1) solid var(--color-border); border-radius: var(--card-radius); background: var(--color-surface-raised); box-shadow: var(--shadow-float); }
.theme-summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: var(--s-1) solid var(--color-divider); }
.theme-summary-strip > div { display: grid; gap: var(--s-4); padding: var(--s-10) var(--s-14); border-right: var(--s-1) solid var(--color-divider); }
.theme-summary-strip > div:last-child { border-right: 0; }
.theme-summary-strip span { color: var(--color-text-secondary); font-size: var(--font-11); }
.theme-summary-strip strong { font-size: var(--font-15); font-variant-numeric: tabular-nums; }

.popularity-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: var(--s-1) solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-canvas);
}

.popularity-summary-strip article { min-width: 0; display: grid; gap: var(--s-8); padding: var(--s-12) var(--s-14); border-right: var(--s-1) solid var(--color-border); box-shadow: none; }
.popularity-summary-strip article:nth-child(1) { background: var(--color-primary-soft); }
.popularity-summary-strip article:nth-child(2) { background: var(--color-up-soft); }
.popularity-summary-strip article:nth-child(3) { border-right: 0; background: var(--color-warning-soft); }
.popularity-summary-strip header { display: flex; justify-content: space-between; gap: var(--s-8); }
.popularity-summary-strip header span { color: var(--color-text-secondary); }
.popularity-summary-strip header strong { font-variant-numeric: tabular-nums; }
.popularity-summary-strip p { overflow: hidden; color: var(--color-text); font-size: var(--font-12); text-overflow: ellipsis; white-space: nowrap; }

.dragon-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--layout-gap); }
.dragon-summary-grid article { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-8); padding: var(--s-12) var(--s-14); }
.dragon-summary-grid span { color: var(--color-text-secondary); font-size: var(--font-11); }
.dragon-summary-grid strong { font-size: var(--font-15); font-variant-numeric: tabular-nums; }
.dragon-daily-layout { display: grid; grid-template-columns: var(--s-320) minmax(0, 1fr); gap: var(--layout-gap); align-items: start; }
.dragon-traders { min-width: 0; overflow: hidden; }
.dragon-traders .card-header .btn { margin-left: auto; }
.dragon-trader-list { display: grid; }
.dragon-trader-list > button { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); padding: var(--s-9) var(--s-12); border-bottom: var(--s-1) solid var(--color-divider); background: var(--color-surface); text-align: left; }
.dragon-trader-list > button:hover,
.dragon-trader-list > button.active { background: var(--color-primary-soft); }
.dragon-trader-list > button span { min-width: 0; display: grid; gap: var(--s-2); }
.dragon-trader-list small { overflow: hidden; color: var(--color-text-secondary); font-size: var(--font-10-5); text-overflow: ellipsis; white-space: nowrap; }
.dragon-trader-list b { align-self: center; font-variant-numeric: tabular-nums; }
.dragon-trader-list > p { padding: var(--s-20); text-align: center; }
.dragon-pending { border-top: var(--s-1) solid var(--color-divider); }
.dragon-pending > header { display: flex; justify-content: space-between; padding: var(--s-10) var(--s-12); background: var(--color-warning-soft); }
.dragon-pending > div { display: grid; gap: var(--s-6); padding: var(--s-8) var(--s-12); border-top: var(--s-1) solid var(--color-divider); }
.dragon-pending p,
.dragon-pending form { display: flex; align-items: center; gap: var(--s-8); }
.dragon-pending p span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dragon-pending input { min-width: 0; flex: 1; min-height: var(--s-32); padding: 0 var(--s-8); border: var(--s-1) solid var(--color-border); border-radius: var(--control-radius); background: var(--color-surface); }
.dragon-table-scroll { height: var(--s-400); overflow: auto; }
.dragon-table-scroll .data-table-wrap { overflow: visible; }
.dragon-profiles { min-height: var(--s-400); display: grid; grid-template-columns: var(--s-320) minmax(0, 1fr); overflow: hidden; }
.dragon-profiles > aside { border-right: var(--s-1) solid var(--color-divider); }
.dragon-profiles > aside > div { max-height: var(--s-400); overflow-y: auto; }
.dragon-profiles > aside button { width: 100%; display: grid; gap: var(--s-2); padding: var(--s-9) var(--s-14); border-bottom: var(--s-1) solid var(--color-divider); background: var(--color-surface); text-align: left; }
.dragon-profiles > aside button.active,
.dragon-profiles > aside button:hover { background: var(--color-primary-soft); }
.dragon-profiles > aside small { color: var(--color-text-secondary); font-size: var(--font-10-5); }
.dragon-profiles > article { display: grid; align-content: start; gap: var(--s-20); padding: var(--s-20); }
.dragon-profiles > article > header { display: flex; justify-content: space-between; gap: var(--s-14); }
.dragon-profiles > article > header p { margin-top: var(--s-8); color: var(--color-text-secondary); line-height: var(--s-20); }
.dragon-profiles h3 { margin: 0 0 var(--s-8); font-size: var(--font-13); }
.dragon-profiles ul { display: flex; flex-wrap: wrap; gap: var(--s-8); margin: 0; padding: 0; list-style: none; }
.dragon-profiles li { padding: var(--s-6) var(--s-8); border: var(--s-1) solid var(--color-border); border-radius: var(--control-radius); background: var(--color-surface-muted); font-size: var(--font-11); }
