/* 2026-11-19: clean the old mine cards and promote the wallpaper card.
   Only the three cards visible in the old screenshot are hidden; other
   mine cards are untouched. */

#area .agh-mdlt-note,
#area .iph {
  display: none !important;
}

/* The growth card is hidden by default, but the LV badge opens a dialog
   (.lvp-popwrap) inside this same section. Keep the parent hidden until
   the dialog exists, then show only the dialog. */
#area .lvp {
  display: none !important;
}

#area .lvp.agh-lvp-open {
  display: block !important;
}

#area .lvp.agh-lvp-open > :not(.lvp-popwrap) {
  display: none !important;
}

/* The wallpaper card is moved to the first child of .mv-body by
   mine-wallpaper.js. Style it as a real expandable card. */
[data-view="mine"] .mv-body > .agh-wp-card {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, .97), rgba(246, 250, 255, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .9),
              0 1px 2px rgba(15, 23, 42, .04),
              0 10px 24px -18px rgba(15, 23, 42, .28);
}

[data-view="mine"] .agh-wp-card .agh-wp-card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #17233a;
  background: linear-gradient(100deg, rgba(239, 246, 255, .85), rgba(255, 247, 237, .62));
}

[data-view="mine"] .agh-wp-card .agh-wp-card-h::after {
  margin-left: auto;
  font-size: 14px;
  opacity: .62;
}

[data-view="mine"] .agh-wp-card .agh-wp-card-d {
  padding: 10px 16px 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.65;
}

[data-view="mine"] .agh-wp-card .agh-wp-entry {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 14px;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Keep the expanded state compact and readable on a 390px phone. */
[data-view="mine"] .agh-wp-card:not(.is-collapsed) .agh-wp-card-d {
  padding-top: 10px;
}

@media (max-width: 360px) {
  [data-view="mine"] .agh-wp-card .agh-wp-card-h {
    padding: 12px 13px;
    font-size: 14px;
  }
  [data-view="mine"] .agh-wp-card .agh-wp-card-d {
    padding-left: 13px;
    padding-right: 13px;
  }
  [data-view="mine"] .agh-wp-card .agh-wp-entry {
    width: calc(100% - 26px);
    margin-left: 13px;
    margin-right: 13px;
  }
}
