.g-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.g-header {
  border-bottom: 1px solid var(--nz-border);
  background: var(--nz-surface);
}

.g-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.g-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: inherit;
  text-decoration: none;
}

.g-brand span {
  font-weight: 500;
  color: var(--nz-muted);
}

.g-brand img {
  width: 32px;
  height: 32px;
}

.g-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-account-mail {
  font-size: 14px;
  color: var(--nz-muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fef3c7;
  color: #78350f;
  max-width: 640px;
  font-size: 14px;
}

.g-banner[hidden] {
  display: none;
}

.g-owned-info {
  margin: -6px 0 12px;
  font-size: 14px;
  max-width: 720px;
}

.g-owned-item {
  border-color: #c7d2fe !important;
  background: #eef2ff !important;
  padding-right: 0 !important;
}

.g-hero {
  padding: 56px 0 40px;
}

.g-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.g-hero p {
  font-size: 18px;
  color: var(--nz-muted);
  margin: 0;
  max-width: 600px;
}

.g-h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 32px 0 14px;
}

.g-h2 small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.g-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 16px;
  background: var(--nz-surface);
  border: 1px solid var(--nz-border);
  overflow: hidden;
}

.g-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}

.g-card-icon {
  font-size: 34px;
}

.g-card h3 {
  margin: 0;
  font-size: 20px;
}

.g-card p {
  margin: 0;
  color: var(--nz-muted);
  flex: 1;
}

.g-card-actions {
  margin-top: 10px;
}

.g-recent {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.g-recent li {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--nz-surface);
  border: 1px solid var(--nz-border);
  border-radius: 12px;
  padding-right: 8px;
}

.g-recent a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}

.g-recent a:hover .g-recent-title {
  text-decoration: underline;
}

.g-recent-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-recent-meta {
  margin-left: auto;
  font-size: 13px;
  white-space: nowrap;
}

.g-footer {
  padding-top: 48px;
  padding-bottom: 32px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .g-account-mail {
    display: none;
  }

  .g-recent a {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .g-recent-meta {
    margin-left: 36px;
    width: 100%;
  }
}
