/* Mobile personal center: identity and live counts form one compact overview. */
main.gb-page.gb-mine {
  --gb-mine-paper: #fffcf9;
  --gb-mine-ink: #332727;
  --gb-mine-muted: #695451;
  --gb-mine-edge: #ebdfd8;
  --gb-mine-red: #a4272d;
  background: #f7f3ef;
  color: var(--gb-mine-ink);
}

#root .gb-mine > .gb-header {
  height: auto;
  min-height: calc(52px + env(safe-area-inset-top, 0px));
  padding-block-start: env(safe-area-inset-top, 0px);
  background: var(--gb-mine-paper);
  box-shadow: inset 0 -1px 0 var(--gb-mine-edge);
}

#root .gb-mine > .gb-header h1 {
  color: var(--gb-mine-ink);
}

.gb-mine-overview,
.gb-mine-guest-brand {
  padding: 16px 14px 12px;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 100% 0%, #c25231, transparent 69%),
    linear-gradient(117deg, #86222b 8%, var(--gb-mine-red) 68%, #af3a39);
  color: #fff8f0;
  box-shadow: 0 4px 12px rgb(123 42 36 / 14%);
}

.gb-mine-overview {
  margin: 12px 14px 0;
}

.gb-mine-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

main.gb-page.gb-mine .gb-mine-identity .gb-avatar {
  border: 2px solid #fbdfce;
  background: #fbe5d5;
  color: #822731;
  font-weight: 700;
}

.gb-mine-identity h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(19px, 5.7vw, 23px);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.gb-mine-identity p {
  margin: 5px 0 0;
  color: #fff2e7;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gb-mine-identity .gb-chips {
  gap: 4px;
  margin-top: 5px;
}

.gb-mine-identity .gb-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f9e8cb;
  color: #613d20;
  font-weight: 650;
}

.gb-mine-edit {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgb(255 236 217 / 57%);
  border-radius: 9px;
  background: rgb(105 32 28 / 42%);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.gb-mine-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 13px;
  padding: 0;
  border: 1px solid rgb(255 236 217 / 34%);
  border-radius: 10px;
  background: rgb(101 30 36 / 29%);
}

.gb-mine-metrics button {
  display: grid;
  min-height: 52px;
  place-content: center;
  gap: 2px;
  padding: 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff1e8;
  font-size: 12px;
  line-height: 1.35;
}

.gb-mine-metrics button + button {
  border-inline-start: 1px solid rgb(255 236 217 / 22%);
  border-radius: 0 9px 9px 0;
}

.gb-mine-metrics strong {
  color: #fffbf6;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

.gb-mine-group {
  margin: 12px 14px 0;
  padding: 12px 13px 3px;
  border: 1px solid var(--gb-mine-edge);
  border-radius: 14px;
  background: var(--gb-mine-paper);
}

.gb-mine-group h2 {
  margin: 0 0 3px 2px;
  color: var(--gb-mine-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

main.gb-page.gb-mine .gb-mine-group .gb-link-row {
  min-height: 53px;
  padding: 6px 2px;
  border-bottom-color: var(--gb-mine-edge);
  color: var(--gb-mine-ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.gb-mine-group .gb-link-row > .gb-icon {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 9px;
  background: #f5e5e6;
  color: #923448;
}

.gb-mine-membership .gb-link-row + .gb-link-row > .gb-icon {
  background: #f8eadb;
  color: #8a4a26;
}

.gb-mine-group .gb-link-row .gb-muted {
  color: var(--gb-mine-muted);
  font-weight: 500;
}

.gb-mine-group .gb-link-row .gb-chevron {
  color: #857471;
}

.gb-mine-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding-block: 4px 8px;
}

.gb-mine-shortcuts button {
  --gb-mine-tile: #f6e6e6;
  --gb-mine-glyph: #953144;
  display: flex;
  min-width: 0;
  min-height: 69px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 5px 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--gb-mine-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gb-mine-shortcuts button:nth-child(4n + 2) {
  --gb-mine-tile: #f8e8dc;
  --gb-mine-glyph: #8e3e28;
}

.gb-mine-shortcuts button:nth-child(4n + 3) {
  --gb-mine-tile: #ece7f4;
  --gb-mine-glyph: #594386;
}

.gb-mine-shortcuts button:nth-child(4n) {
  --gb-mine-tile: #f8ead7;
  --gb-mine-glyph: #855015;
}

.gb-mine-shortcuts .gb-icon {
  box-sizing: border-box;
  width: 39px;
  height: 39px;
  padding: 9px;
  border-radius: 10px;
  background: var(--gb-mine-tile);
  color: var(--gb-mine-glyph);
  stroke-width: 1.8;
}

.gb-mine .gb-mine-shortcuts button:active,
.gb-mine .gb-mine-group .gb-link-row:active {
  background: #f5ece6;
}

.gb-mine .gb-mine-edit:active,
.gb-mine .gb-mine-metrics button:active {
  background: #73262c;
}

.gb-mine button:focus-visible {
  outline: 2px solid var(--gb-mine-red);
  outline-offset: 1px;
}

.gb-mine .gb-mine-overview button:focus-visible {
  outline: 2px solid #fff3e7;
  outline-offset: -3px;
}

.gb-mine-guest {
  margin: 12px 14px 0;
}

.gb-mine-guest-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 17px;
}

.gb-mine-guest-brand img {
  width: 47px;
  height: 47px;
  flex: none;
  border: 2px solid #ffdec2;
  border-radius: 50%;
  background: #fbe8d6;
  object-fit: cover;
}

.gb-mine-guest-brand h2 {
  color: inherit;
  font-size: 22px;
  font-weight: 750;
}

.gb-mine-guest .gb-card {
  margin: 12px 0 0;
  padding: 7px;
  border: 1px solid var(--gb-mine-edge);
  border-radius: 14px;
  background: var(--gb-mine-paper);
  box-shadow: none;
}

.gb-mine-guest .gb-empty p {
  color: var(--gb-mine-ink);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: balance;
}

.gb-mine .gb-mine-guest .gb-btn {
  width: min(100%, 250px);
  min-height: 44px;
  margin-top: 16px;
  border-radius: 9px;
  background: var(--gb-mine-red);
  color: #fff8f0;
  font-weight: 650;
}

.gb-mine .gb-mine-guest .gb-btn:active {
  background: #8e242b;
}
