.gg-overview-focused,
.gg-model-matrix {
  width: 100%;
}

.gg-overview-focused > .gg-mm-models-button {
  margin-top: .75rem;
}

.gg-overview-compact {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1rem 1.05rem;
}

.gg-overview-compact-icon {
  align-items: center;
  background: rgba(32, 211, 190, .1);
  border: 1px solid rgba(32, 211, 190, .34);
  border-radius: 14px;
  color: #40e2ce;
  display: flex;
  font-size: .78rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.gg-overview-compact-copy h2,
.gg-mm-intro h2,
.gg-mm-group-head h3 {
  margin: 0;
}

.gg-overview-compact-copy h2 {
  font-size: 1.05rem;
  margin-top: .18rem;
}

.gg-overview-compact-copy p,
.gg-mm-intro p,
.gg-mm-group-head p {
  color: #89a7ba;
  line-height: 1.45;
  margin: .25rem 0 0;
}

.gg-overview-compact-copy p {
  font-size: .84rem;
}

.gg-overview-compact-actions,
.gg-mm-intro-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
}

.gg-mm-models-button,
.gg-mm-demo-toggle {
  align-items: center;
  background: rgba(32, 211, 190, .08);
  border: 1px solid rgba(32, 211, 190, .32);
  border-radius: 11px;
  color: #59e5d5;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  justify-content: center;
  min-height: 38px;
  padding: .58rem .8rem;
  text-decoration: none;
}

.gg-mm-models-button:hover,
.gg-mm-demo-toggle:hover {
  background: rgba(32, 211, 190, .15);
  border-color: rgba(32, 211, 190, .55);
}

.gg-model-matrix {
  display: grid;
  gap: .75rem;
}

.gg-mm-intro {
  align-items: center;
  background:
    radial-gradient(circle at 92% 10%, rgba(32, 211, 190, .1), transparent 36%),
    linear-gradient(145deg, rgba(12, 31, 43, .98), rgba(8, 24, 34, .98));
  border: 1px solid #234858;
  border-radius: 17px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.05rem;
}

.gg-mm-kicker {
  color: #42ddcb;
  display: block;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gg-mm-intro h2 {
  color: #f5f9fb;
  font-size: 1.16rem;
  margin-top: .2rem;
}

.gg-mm-intro p {
  font-size: .77rem;
}

.gg-mm-demo-badge {
  background: #7257e8;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  padding: .4rem .62rem;
}

.gg-model-matrix.is-demo .gg-mm-intro {
  border-color: rgba(129, 103, 246, .68);
  box-shadow: inset 0 0 0 1px rgba(129, 103, 246, .1);
}

.gg-mm-legend {
  align-items: center;
  color: #8eabba;
  display: flex;
  flex-wrap: wrap;
  font-size: .68rem;
  gap: .75rem;
  padding: 0 .2rem;
}

.gg-mm-legend span {
  align-items: center;
  display: inline-flex;
  gap: .3rem;
}

.gg-mm-legend i {
  background: #55717e;
  border-radius: 999px;
  display: inline-block;
  height: 7px;
  width: 7px;
}

.gg-mm-legend i.is-tip { background: #36d887; }
.gg-mm-legend i.is-estimate { background: #e6b94c; }
.gg-mm-legend i.is-empty { background: #526a76; }

.gg-mm-groups {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gg-mm-group {
  background: linear-gradient(155deg, rgba(14, 35, 47, .98), rgba(8, 25, 35, .98));
  border: 1px solid #214756;
  border-radius: 16px;
  min-width: 0;
  overflow: hidden;
}

.gg-mm-group.is-wide {
  grid-column: 1 / -1;
}

.gg-mm-group-head {
  align-items: center;
  border-bottom: 1px solid rgba(89, 139, 158, .2);
  display: flex;
  gap: .7rem;
  padding: .8rem .9rem;
}

.gg-mm-group-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.gg-mm-group-head h3 {
  color: #f3f7f9;
  font-size: .92rem;
}

.gg-mm-group-head p {
  font-size: .64rem;
}

.gg-mm-icon {
  align-items: center;
  background: rgba(32, 211, 190, .09);
  border: 1px solid rgba(32, 211, 190, .28);
  border-radius: 10px;
  color: #46dfce;
  display: flex;
  flex: 0 0 auto;
  font-size: .65rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.gg-mm-count {
  align-items: center;
  background: rgba(32, 211, 190, .1);
  border: 1px solid rgba(32, 211, 190, .24);
  border-radius: 999px;
  color: #54dfcf;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .64rem;
  font-weight: 850;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 .42rem;
}

.gg-mm-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #2c5b68 transparent;
}

.gg-mm-table {
  border-collapse: collapse;
  font-size: .71rem;
  min-width: 100%;
  table-layout: fixed;
  width: 100%;
}

.gg-mm-table th,
.gg-mm-table td {
  border-bottom: 1px solid rgba(89, 139, 158, .14);
  padding: .58rem .62rem;
  text-align: center;
  vertical-align: middle;
}

.gg-mm-table thead th {
  background: rgba(5, 21, 30, .64);
  color: #6f94a7;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gg-mm-table thead th:first-child,
.gg-mm-table tbody th {
  min-width: 210px;
  text-align: left;
  width: 52%;
}

.gg-mm-table tbody tr:last-child th,
.gg-mm-table tbody tr:last-child td {
  border-bottom: 0;
}

.gg-mm-table tbody th small,
.gg-mm-table tbody th strong {
  display: block;
}

.gg-mm-table tbody th small {
  color: #66899a;
  font-size: .57rem;
  margin-bottom: .12rem;
}

.gg-mm-table tbody th strong {
  color: #dbe8ed;
  font-size: .67rem;
  line-height: 1.25;
}

.gg-mm-empty {
  color: #4e6874;
  font-size: .86rem;
}

.gg-mm-value {
  border-radius: 8px;
  display: inline-grid;
  gap: .02rem;
  min-width: 57px;
  padding: .3rem .35rem;
}

.gg-mm-value strong {
  color: #dfe9ed;
  font-size: .72rem;
}

.gg-mm-value small {
  color: #7e9eac;
  font-size: .53rem;
}

.gg-mm-value.is-tip {
  background: rgba(54, 216, 135, .1);
  box-shadow: inset 0 0 0 1px rgba(54, 216, 135, .24);
}

.gg-mm-value.is-tip strong,
.gg-mm-value.is-tip small { color: #62e5a4; }

.gg-mm-value.is-estimate {
  background: rgba(230, 185, 76, .08);
}

.gg-mm-value.is-estimate small { color: #d6b15c; }

.gg-mm-value.is-demo {
  background: rgba(126, 99, 240, .1);
  box-shadow: inset 0 0 0 1px rgba(126, 99, 240, .2);
}

.gg-mm-value.is-demo small { color: #aa98f5; }

.gg-mm-odds {
  color: #d9e5e9;
  font-weight: 750;
  width: 62px;
}

.gg-mm-loading,
.gg-mm-empty-state {
  align-items: center;
  background: rgba(8, 25, 35, .76);
  border: 1px solid #214655;
  border-radius: 14px;
  color: #8eabba;
  display: flex;
  font-size: .76rem;
  gap: .65rem;
  min-height: 72px;
  padding: .85rem 1rem;
}

.gg-mm-loading > span {
  animation: gg-mm-pulse 1s ease-in-out infinite alternate;
  background: #37d5c3;
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.gg-mm-empty-state {
  align-items: flex-start;
  flex-direction: column;
  gap: .25rem;
}

.gg-mm-empty-state strong { color: #dce9ed; }
.gg-mm-empty-state span { line-height: 1.45; }
.gg-mm-empty-state.is-error { border-color: rgba(231, 108, 117, .38); }

@keyframes gg-mm-pulse {
  from { opacity: .35; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.1); }
}

.gg-mm-source-details {
  background: rgba(7, 24, 34, .74);
  border: 1px solid #214655;
  border-radius: 14px;
  padding: .75rem .85rem;
}

.gg-mm-source-details > summary {
  color: #8faebb;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 750;
}

.gg-mm-source-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: .75rem;
}

@media (max-width: 900px) {
  .gg-mm-groups,
  .gg-mm-source-grid {
    grid-template-columns: 1fr;
  }

  .gg-mm-group.is-wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .gg-overview-compact {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .gg-overview-compact-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .gg-overview-compact-actions > *,
  .gg-mm-models-button {
    flex: 1 1 auto;
  }

  .gg-mm-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .gg-mm-intro-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .gg-mm-demo-toggle {
    flex: 1 1 auto;
  }

  .gg-mm-table {
    min-width: 480px;
  }

  .gg-mm-table thead th:first-child,
  .gg-mm-table tbody th {
    background: #0c2633;
    left: 0;
    position: sticky;
    z-index: 2;
  }

  .gg-mm-table thead th:first-child {
    background: #0a202c;
    z-index: 3;
  }
}
