.ode-gcr-dialog {
  width: min(980px, calc(100vw - 24px));
  max-width: 980px;
  max-height: min(90vh, 900px);
  padding: 0;
  border: 1px solid rgba(211, 173, 94, .34);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0d12;
  color: #eef1f5;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .72);
}
.ode-gcr-dialog::backdrop {
  background: rgba(2, 4, 8, .78);
  backdrop-filter: blur(5px);
}
.ode-gcr-shell {
  display: flex;
  min-height: 0;
  max-height: min(90vh, 900px);
  flex-direction: column;
  background:
    radial-gradient(circle at 16% -10%, rgba(188, 133, 52, .16), transparent 35%),
    linear-gradient(180deg, #111720 0%, #090c11 100%);
}
.ode-gcr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ode-gcr-head h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}
.ode-gcr-eyebrow {
  margin: 0;
  color: #d9b469;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ode-gcr-subtitle {
  margin: 0;
  color: #9fa9b8;
  font-size: .9rem;
}
.ode-gcr-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #f6f7f9;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}
.ode-gcr-close:hover { background: rgba(255,255,255,.09); }
.ode-gcr-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 26px 10px;
}
.ode-gcr-metrics article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.ode-gcr-metrics span {
  display: block;
  margin-bottom: 4px;
  color: #8f9aac;
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ode-gcr-metrics strong {
  display: block;
  overflow: hidden;
  color: #f2f4f7;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ode-gcr-note {
  margin: 2px 26px 12px;
  padding: 10px 12px;
  border-left: 3px solid rgba(217, 180, 105, .72);
  border-radius: 4px 10px 10px 4px;
  background: rgba(217, 180, 105, .065);
  color: #b8c0cb;
  font-size: .82rem;
  line-height: 1.45;
}
.ode-gcr-table-wrap {
  min-height: 0;
  margin: 0 18px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.17);
}
.ode-gcr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ode-gcr-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 11px 14px;
  background: #141a22;
  color: #aab3c1;
  font-size: .71rem;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}
.ode-gcr-table th:nth-child(1) { width: 72px; }
.ode-gcr-table th:nth-child(3) { width: 120px; }
.ode-gcr-table th:nth-child(4) { width: 130px; text-align: right; }
.ode-gcr-table td {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #dbe0e7;
  font-size: .9rem;
  vertical-align: middle;
}
.ode-gcr-table td:nth-child(4) { text-align: right; }
.ode-gcr-table tbody tr:hover { background: rgba(255,255,255,.025); }
.ode-gcr-table tbody tr:nth-child(-n+3) td:first-child strong { color: #e0bc72; }
.ode-gcr-player {
  display: block;
  overflow: hidden;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ode-gcr-tie {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(218, 169, 72, .35);
  border-radius: 999px;
  color: #d9b469;
  font-size: .66rem;
}
.ode-gcr-empty {
  padding: 28px 16px !important;
  color: #8f9aac !important;
  text-align: center !important;
}
.ode-gcr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 16px;
}
.ode-gcr-status {
  margin: 0;
  color: #8f9aac;
  font-size: .78rem;
}
.ode-gcr-status.is-ok { color: #9fc5a7; }
.ode-gcr-status.is-error { color: #e0a1a1; }
.ode-gcr-status.is-loading { color: #d9b469; }
.ode-gcr-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.ode-gcr-entry {
  align-items: center;
  gap: 10px;
}
.ode-gcr-entry > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.ode-gcr-entry small {
  opacity: .68;
  font-size: .72em;
}
.ode-gcr-entry-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(217,180,105,.2);
  border-radius: 9px;
  background: rgba(217,180,105,.08);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .ode-gcr-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 14px;
  }
  .ode-gcr-shell { max-height: calc(100dvh - 12px); }
  .ode-gcr-head { padding: 18px 16px 14px; }
  .ode-gcr-subtitle { font-size: .82rem; }
  .ode-gcr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px 8px;
  }
  .ode-gcr-metrics article { padding: 10px 11px; }
  .ode-gcr-note {
    margin: 2px 14px 10px;
    font-size: .76rem;
  }
  .ode-gcr-table-wrap {
    margin: 0 10px;
    border: 0;
    background: transparent;
  }
  .ode-gcr-table,
  .ode-gcr-table tbody,
  .ode-gcr-table tr,
  .ode-gcr-table td {
    display: block;
    width: 100%;
  }
  .ode-gcr-table thead { display: none; }
  .ode-gcr-table tbody {
    display: grid;
    gap: 8px;
  }
  .ode-gcr-table tr {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
  }
  .ode-gcr-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 8px 11px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.055);
    font-size: .82rem;
    text-align: right !important;
  }
  .ode-gcr-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #7f8a9a;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .ode-gcr-table td:first-child {
    grid-row: 1 / span 3;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.06);
    font-size: 1rem;
  }
  .ode-gcr-table td:first-child::before { display: none; }
  .ode-gcr-table td:nth-child(2) { border-top: 0; }
  .ode-gcr-table td:nth-child(n+2) { grid-column: 2; }
  .ode-gcr-player {
    max-width: 62vw;
    text-align: right;
  }
  .ode-gcr-tie { margin: 0 0 0 6px; }
  .ode-gcr-foot {
    align-items: stretch;
    flex-direction: column;
    padding: 11px 10px 12px;
  }
  .ode-gcr-actions { width: 100%; }
  .ode-gcr-actions .btn { flex: 1 1 0; }
}

@media (max-width: 390px) {
  .ode-gcr-metrics { grid-template-columns: 1fr 1fr; }
  .ode-gcr-metrics strong { font-size: .8rem; }
  .ode-gcr-head h2 { font-size: 1.4rem; }
}
