/* CCTP V3 wallpaper switcher — isolated from the main-frame layout. */
.app-cctp-home-screen {
  background-image: var(--app-cctp-home-wallpaper, url("../../images/v3/app-cctp-wallpaper.jpg"));
}


/* Home trigger is a real Home app icon now: size, label and spacing come from
   the shared .app-cctp-home-age-* system in app-cctp-shell.css. */
.app-cctp-wallpaper-trigger {
  grid-column: 1;
  grid-row: 3;
}

.app-cctp-wallpaper-picker {
  width: 100%;
  min-height: 100%;
  padding: 24px 18px 120px;
  background: #fff;
  color: #1b2a3e;
}
.app-cctp-wallpaper-picker__head {
  margin: 0 0 18px;
}
.app-cctp-wallpaper-picker__head h2 {
  margin: 0;
  color: #4f7398;
  font-size: 28px;
  line-height: 1.15;
}
.app-cctp-wallpaper-picker__head p {
  margin: 7px 0 0;
  color: #71839a;
  font-size: 15px;
  line-height: 1.45;
}
.app-cctp-wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px 14px;
}
.app-cctp-wallpaper-option {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3366cc;
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.app-cctp-wallpaper-option__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid #d5dbe2;
  border-radius: 18px;
  background: #edf1f5;
  box-shadow: 3px 4px 4px rgba(153,153,153,.75), inset 0 1px 1px rgba(255,255,255,.85);
}
.app-cctp-wallpaper-option__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.app-cctp-wallpaper-option__label {
  display: block;
  margin-top: 8px;
  color: #3366cc;
  font-size: 15px;
  font-weight: 700;
}
.app-cctp-wallpaper-option__check {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #3366cc;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0,0,0,.28);
}
.app-cctp-wallpaper-option[aria-pressed="true"] .app-cctp-wallpaper-option__preview {
  outline: 3px solid rgba(51,102,204,.34);
  outline-offset: 2px;
}
.app-cctp-wallpaper-option[aria-pressed="true"] .app-cctp-wallpaper-option__check {
  display: grid;
}

@media (max-width: 390px) {
  .app-cctp-wallpaper-picker { padding-inline: 14px; }
  .app-cctp-wallpaper-grid { gap: 14px 12px; }
}

