/* R60: Presentation-only for AdsPilot Pro login and dashboard.
   Loaded AFTER existing /styles.css and R59 UI stylesheet.
   Keep Google's cross-origin iframe/document untouched. */
body.adp-login .card #adp-google-btn {
  width: min(340px,100%);
  max-width: 340px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  margin: 24px auto 0;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
}
/* Hide *every* unfinished Google wrapper even if older scripts set adp-gis-ready.
   Only the R60 visual controller may reveal it. */
body.adp-login .card #adp-google-btn:not(.adp-r60-ready) > * {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.adp-login .card #adp-google-btn:not(.adp-r60-ready)::after {
  content: none !important;
}
body.adp-login .card #adp-google-btn:not(.adp-r60-ready)::before {
  content: "Preparing secure Google Sign-In…";
  position: absolute;
  inset: 3px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e0e7ef;
  border-radius: 999px;
  background: #f2f5f9;
  color: #4b6075;
  font: 600 12px/1.3 Inter,Arial,sans-serif;
  pointer-events: none;
}
body.adp-login .card #adp-google-btn.adp-r60-ready::before,
body.adp-login .card #adp-google-btn.adp-r60-ready::after { content:none !important; }
body.adp-login .card #adp-google-btn.adp-r60-ready > * {
  visibility: visible !important;
  opacity: 1 !important;
}
/* No styling of elements inside Google's iframe. */
body.adp-login .card #adp-google-btn iframe { max-width: 100% !important; }

/* Preserve all email characters in one line at desktop widths. On exceptionally
   narrow viewports a user may horizontally scroll the single-line email. */
body.adp-app .adp-r59-dashboard .adp-r60-account-email {
  display:block;
  max-width:100%;
  font-size: clamp(12px, 1.03vw, 15px);
  line-height: 1.5;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  color:#102538;
}
@media (min-width:1240px) {
  body.adp-app .adp-r59-dashboard .adp-r59-summary.adp-r60-summary {
    grid-template-columns: minmax(290px, 1.55fr) repeat(3, minmax(0,1fr));
  }
}
@media (min-width:721px) and (max-width:1239px) {
  body.adp-app .adp-r59-dashboard .adp-r59-summary.adp-r60-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:720px) {
  body.adp-app .adp-r59-dashboard .adp-r59-summary.adp-r60-summary {
    grid-template-columns:minmax(0,1fr);
  }
  body.adp-app .adp-r59-dashboard .adp-r60-account-email { font-size:14px; }
}
body.adp-app .adp-r59-dashboard .adp-r60-advantages { gap:12px; }
body.adp-app .adp-r59-dashboard .adp-r60-advantage { align-items:flex-start; }
body.adp-app .adp-r59-dashboard .adp-r60-advantage .adp-r59-feature-mark {
  font-size:12px;
  font-weight:800;
}

/* ADSP_R29_PREMIUM_DASHBOARD_BEGIN */
/* Dashboard presentation only. R28 logic unchanged. */

/* Current Plan: warm ivory and cream. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(2) {
    background: linear-gradient(
        135deg,
        #FFFAF1 0%,
        #FFF6E4 100%
    ) !important;
    border-color: #EEE3D1 !important;
}

/* Extension License: soft warm sand. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(3) {
    background: linear-gradient(
        135deg,
        #FFF7E8 0%,
        #FFEDCD 100%
    ) !important;
    border-color: #EDDFC5 !important;
}

/* Current Period Ends: muted premium gold. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(4) {
    background: linear-gradient(
        135deg,
        #FFF4DC 0%,
        #FFE2AD 100%
    ) !important;
    border-color: #EBD6AC !important;
}

/* Preserve the existing card layout and dimensions. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(n+2) {
    box-shadow:
        0 2px 5px rgba(79, 57, 25, .035) !important;
}

/* Connected Google Account: cream icon badge. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:first-of-type
.adp-r59-card-icon {
    background: #FFF0CF !important;
    color: #92601C !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Main card icons: neutral gray, no background. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(n+2)
.adp-r59-card-icon {
    background: transparent !important;
    color: #6B7280 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 23px !important;
    line-height: 1 !important;
}

/* Consistent heading contrast. */
.adp-r59-dashboard .adp-r60-summary
.adp-r59-card-heading {
    color: #536071 !important;
}

/* Main card values stay dark and readable. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(n+2)
> strong {
    color: #142438 !important;
}

.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(n+2)
> small {
    color: #566374 !important;
}

/* Advantage numbers: coordinated warm cream. */
.adp-r59-dashboard .adp-r60-advantages
.adp-r59-feature-mark {
    background: #FFF0CF !important;
    color: #92601C !important;
    border: 1px solid #EEDDB7 !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

/* Extend status container only inside License card. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(3)
> div:not(.adp-r59-card-heading) {
    width: 100% !important;
    min-width: 0 !important;
}

/* Active: wide, soft green, centered.
   Only the existing server-issued active class. */
.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(3)
.adp-r59-status.adp-r59-status--active {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    background: #DDF3E7 !important;
    color: #16794B !important;
    border: 1px solid #C7E8D4 !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: normal !important;
}

.adp-r59-dashboard .adp-r60-summary
> article.adp-r59-card:nth-of-type(3)
.adp-r59-status.adp-r59-status--active::before {
    background: #16794B !important;
    box-shadow: none !important;
}

/* No changes to inactive, expired, pending or
   rejected status colors and visibility. */

/* Keep mobile cards readable without overflow. */
@media (max-width: 600px) {
    .adp-r59-dashboard .adp-r60-summary
    > article.adp-r59-card:nth-of-type(3)
    .adp-r59-status.adp-r59-status--active {
        min-height: 32px !important;
        padding: 6px 12px !important;
    }
}

/* ADSP_R29_PREMIUM_DASHBOARD_END */

