:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-muted: #f0f3f5;
  --line: #d9e0e5;
  --text: #172026;
  --muted: #62717b;
  --primary: #087f83;
  --primary-strong: #05666a;
  --accent: #b75e00;
  --danger: #b42318;
  --success: #287947;
  --shadow: 0 18px 50px rgba(20, 28, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

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

.login-panel {
  width: min(420px, 100%);
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

h1 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 24px;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
}

h3 {
  font-size: 15px;
}

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

.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.checkbox-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 127, 131, 0.14);
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-button {
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--primary-strong);
}

.secondary-button,
.icon-button {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

.danger-button {
  background: #fff4f2;
  color: var(--danger);
  border: 1px solid #ffd0ca;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.icon-button.tiny {
  width: 28px;
  min-height: 28px;
  border-radius: 8px;
}

.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.form-error,
.error-text {
  color: var(--danger);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
}

.sidebar-head .brand-mark {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.sidebar-title {
  font-weight: 800;
}

.sidebar-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  align-content: start;
  gap: 18px;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-section-title {
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav button.active {
  background: var(--panel-muted);
  color: var(--text);
  font-weight: 700;
}

.sidebar-foot {
  display: grid;
  gap: 10px;
}

.user-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-chip strong,
.user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip span {
  color: var(--muted);
  font-size: 12px;
}

.content {
  min-width: 0;
  padding: 28px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-head p {
  color: var(--muted);
  margin-top: 4px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric span {
  color: var(--muted);
}

.metric strong {
  font-size: 26px;
  line-height: 1.1;
}

.section {
  margin-top: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart {
  height: 184px;
  display: grid;
  grid-template-columns: repeat(14, minmax(16px, 1fr));
  align-items: end;
  gap: 8px;
  padding: 14px 4px 0;
  border-top: 1px solid var(--line);
}

.bar {
  min-height: 2px;
  border-radius: 6px 6px 0 0;
  background: var(--primary);
  position: relative;
}

.bar span {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
}

.analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-metric {
  min-height: 112px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 2px 10px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.analytics-metric > i {
  grid-row: 1 / span 3;
  color: var(--primary);
  margin-top: 2px;
}

.analytics-metric span,
.analytics-metric em {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.analytics-metric strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 25px;
  line-height: 1.15;
}

.analytics-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.analytics-panel-head p {
  color: var(--muted);
  margin-top: 3px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-muted);
}

.segmented button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segmented button.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(20, 28, 35, 0.08);
}

.secondary-button.active,
.quick-range-grid .secondary-button.active {
  border: 1px solid var(--primary);
  background: #e9f7f7;
  color: var(--primary-strong);
}

.analytics-stacked-chart {
  min-height: 230px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  align-items: end;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 0;
  border-top: 1px solid var(--line);
}

.stacked-column {
  min-width: 42px;
  display: grid;
  align-items: end;
  gap: 8px;
}

.stacked-bar {
  height: 190px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #eef2f6;
}

.stacked-bar span {
  display: block;
  min-height: 2px;
}

.stacked-column em {
  min-height: 30px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-align: center;
  writing-mode: vertical-rl;
  justify-self: center;
}

.analytics-area-chart {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.analytics-area-chart svg {
  width: 100%;
  min-width: 620px;
  height: auto;
}

.area-fill {
  fill: rgba(8, 127, 131, 0.14);
  stroke: none;
}

.area-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
}

.analytics-area-chart circle {
  fill: var(--primary);
}

.analytics-axis {
  min-width: 620px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.analytics-legend span,
.analytics-rank-list span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.analytics-legend i,
.analytics-rank-list i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.analytics-donut-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.analytics-donut {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.analytics-donut::after {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: var(--panel);
}

.analytics-donut strong,
.analytics-donut span {
  position: relative;
  z-index: 1;
}

.analytics-donut strong {
  align-self: end;
  font-size: 24px;
}

.analytics-donut span {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}

.analytics-rank-list {
  display: grid;
  gap: 9px;
}

.analytics-rank-list div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.analytics-rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-rank-bars {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 32px minmax(140px, 1fr) minmax(120px, 2fr) 70px;
  gap: 10px;
  align-items: center;
}

.rank-row > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.rank-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-muted);
}

.rank-row i {
  height: 100%;
  display: block;
  border-radius: inherit;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

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

.form-section-label {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.date-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.date-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(92px, 0.85fr) 38px;
  gap: 8px;
}

.date-time-row .icon-button {
  min-width: 38px;
  padding: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.compact-table table {
  min-width: 520px;
}

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

th {
  color: var(--muted);
  font-weight: 700;
  background: #fafbfc;
}

tr:last-child td {
  border-bottom: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.redemption-code-cell {
  max-width: 520px;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.ok {
  background: #eaf7ee;
  color: var(--success);
}

.status.warn {
  background: #fff5e6;
  color: var(--accent);
}

.status.err {
  background: #fff4f2;
  color: var(--danger);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 18px;
}

.notice {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #bee2e3;
  background: #eefafa;
  color: #0a5d61;
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.group-card {
  min-height: 96px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.group-card span {
  color: var(--muted);
}

.pool-card {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.pool-card div,
.pool-editor-head div {
  display: grid;
  gap: 4px;
}

.pool-card span,
.pool-editor-head span {
  color: var(--muted);
  font-size: 12px;
}

.market-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
}

.market-filter {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding-right: 2px;
}

.market-filter-head,
.market-toolbar,
.model-card-head,
.model-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-filter-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.market-pill {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #3f4b53;
  font-weight: 700;
  text-align: left;
}

.market-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-pill em {
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.market-pill.active {
  border-color: transparent;
  background: #f0eafe;
  color: #6d3ee4;
}

.market-pill.teal.active {
  background: #e8f8f3;
  color: #047464;
}

.market-pill.amber.active {
  background: #fff3df;
  color: #a65300;
}

.market-pill.rose.active {
  background: #fff0f5;
  color: #bd245e;
}

.market-pill.green.active {
  background: #eaf7ee;
  color: var(--success);
}

.market-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.market-hero {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #185ecc, #2558d4);
  color: white;
  overflow: hidden;
}

.market-hero h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.market-hero h2 span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2a36;
  font-size: 12px;
}

.market-hero p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
}

.market-hero-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  font-weight: 900;
  font-size: 22px;
}

.market-toolbar {
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.market-search {
  min-width: 240px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f2f4f6;
  color: var(--muted);
}

.market-search input {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.toggle-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #3f4b53;
  font-weight: 700;
}

.toggle-button.active {
  background: #f0f3f5;
  color: var(--text);
}

.model-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.model-card {
  min-height: 158px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.model-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #2f3a42;
  box-shadow: 0 8px 20px rgba(18, 24, 31, 0.08);
}

.model-card-icon.anthropic {
  color: #d45b2a;
}

.model-card-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.model-card-head h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.model-actions {
  flex: 0 0 auto;
}

.model-price-lines {
  display: grid;
  gap: 2px;
  color: #3f4b53;
  font-size: 12px;
}

.model-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eee9ff;
  color: #6d3ee4;
  font-size: 12px;
  font-weight: 800;
}

.model-badge.mint {
  background: #dff8f1;
  color: #047464;
}

.market-table table {
  min-width: 1080px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.profile-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.profile-item span {
  color: var(--muted);
  font-size: 12px;
}

.code-block {
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #142027;
  color: #e6f2f3;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 24, 0.42);
  z-index: 10;
}

.modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-description {
  margin: -6px 0 16px;
  color: var(--muted);
}

.new-key {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #bee2e3;
  background: #eefafa;
}

.pool-editor-list {
  display: grid;
  gap: 14px;
}

.pool-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.pool-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.pool-editor-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, 0.6fr);
  gap: 12px;
  align-items: end;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: none;
    gap: 14px;
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .content {
    padding: 20px;
  }

	  .metric-grid,
	  .analytics-metric-grid,
	  .filter-grid,
	  .group-grid,
	  .pool-grid,
	  .market-layout,
	  .model-card-grid,
	  .profile-grid,
	  .split {
	    grid-template-columns: 1fr;
	  }

	  .market-filter {
	    position: static;
	  }

	  .market-pill-grid {
	    grid-template-columns: repeat(2, minmax(160px, 1fr));
	  }

  .analytics-donut-wrap {
    grid-template-columns: 1fr;
  }

  .pool-editor-grid,
  .pool-editor-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  .login-panel {
    padding: 24px;
  }

  .page-head,
  .section-head {
    display: grid;
  }

  .metric {
    min-height: 92px;
  }

	  .metric strong {
	    font-size: 22px;
	  }

		  .market-pill-grid,
		  .market-toolbar,
		  .model-card,
		  .quick-range-grid,
		  .date-time-grid,
		  .date-time-row {
		    grid-template-columns: 1fr;
		  }

  .analytics-panel,
  .analytics-metric {
    padding: 14px;
  }

  .analytics-panel-head,
  .rank-row {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .rank-row div,
  .rank-row em {
    grid-column: 1 / -1;
  }

	  .market-search {
	    min-width: 100%;
	  }
	}
