/* TheaCRM v2.8.583 – Android mobile home */
.thea-android-home {
  --thea-android-surface: #fff;
  --thea-android-muted: #667169;
  --thea-android-border: rgba(31, 122, 58, .15);
  --thea-android-accent: var(--primary-color, #1f7a3a);
  width: min(100%, 860px);
  margin: 0 auto;
  padding: .85rem .75rem calc(7rem + env(safe-area-inset-bottom, 0px));
}

.thea-android-home__hero {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid var(--thea-android-border);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 100% 0, rgba(31, 122, 58, .18), transparent 48%),
    var(--thea-android-surface);
  box-shadow: 0 10px 28px rgba(18, 48, 27, .08);
}

.thea-android-home__eyebrow {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .4rem;
  color: var(--thea-android-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.thea-android-home__title {
  margin: 0;
  color: #173d24;
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  line-height: 1.08;
}

.thea-android-home__subtitle {
  max-width: 38rem;
  margin: .55rem 0 0;
  color: var(--thea-android-muted);
  font-size: .94rem;
}

.thea-android-home__status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1rem;
}

.thea-android-status {
  min-width: 0;
  padding: .7rem .65rem;
  border: 1px solid var(--thea-android-border);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .76);
}

.thea-android-status span,
.thea-android-status strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thea-android-status span {
  color: var(--thea-android-muted);
  font-size: .7rem;
}

.thea-android-status strong {
  margin-top: .15rem;
  color: #173d24;
  font-size: .82rem;
}

.thea-android-home__section {
  margin-top: 1.15rem;
}

.thea-android-home__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .65rem;
  padding: 0 .1rem;
}

.thea-android-home__section-head h2 {
  margin: 0;
  color: #173d24;
  font-size: 1.05rem;
}

.thea-android-home__section-head p {
  margin: 0;
  color: var(--thea-android-muted);
  font-size: .76rem;
}

.thea-android-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.thea-android-home__card {
  display: flex;
  min-width: 0;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem;
  border: 1px solid var(--thea-android-border);
  border-radius: 1.05rem;
  color: inherit;
  background: var(--thea-android-surface);
  box-shadow: 0 7px 20px rgba(18, 48, 27, .06);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.thea-android-home__card:active {
  transform: scale(.985);
}

.thea-android-home__card:focus-visible {
  outline: 3px solid rgba(31, 122, 58, .3);
  outline-offset: 2px;
}

.thea-android-home__card-icon {
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: .82rem;
  color: #fff;
  background: var(--thea-android-accent);
  font-size: 1.25rem;
}

.thea-android-home__card-copy strong,
.thea-android-home__card-copy span {
  display: block;
}

.thea-android-home__card-copy strong {
  color: #173d24;
  font-size: .95rem;
}

.thea-android-home__card-copy span {
  margin-top: .2rem;
  color: var(--thea-android-muted);
  font-size: .74rem;
  line-height: 1.3;
}

.thea-android-home__quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}

.thea-android-home__quick-link {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1px solid var(--thea-android-border);
  border-radius: .95rem;
  color: #173d24;
  background: var(--thea-android-surface);
  font-weight: 750;
  text-decoration: none;
}

.thea-android-home__quick-link i {
  color: var(--thea-android-accent);
  font-size: 1.1rem;
}

.thea-android-home__empty {
  padding: 1rem;
  border: 1px dashed var(--thea-android-border);
  border-radius: 1rem;
  color: var(--thea-android-muted);
  background: rgba(255,255,255,.64);
  font-size: .86rem;
}

html[data-thea-online="0"] .thea-android-home__card,
html[data-thea-online="0"] .thea-android-home__quick-link {
  opacity: .58;
}

@media (min-width: 640px) {
  .thea-android-home {
    padding-inline: 1rem;
  }
  .thea-android-home__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .thea-android-home__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .thea-android-home__status-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thea-android-home__card {
    transition: none;
  }
}


/* Mobile API session status – v2.8.580 */
.thea-android-session {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  margin-top: .75rem;
  padding: .7rem .75rem;
  border: 1px solid var(--thea-android-border);
  border-radius: .95rem;
  background: rgba(255, 255, 255, .82);
}

.thea-android-session__icon {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: .7rem;
  color: #fff;
  background: var(--thea-android-accent);
}

.thea-android-session__copy {
  min-width: 0;
}

.thea-android-session__copy strong,
.thea-android-session__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thea-android-session__copy strong {
  color: #173d24;
  font-size: .8rem;
  white-space: nowrap;
}

.thea-android-session__copy small {
  margin-top: .12rem;
  color: var(--thea-android-muted);
  font-size: .68rem;
  line-height: 1.3;
}

.thea-android-session__badge {
  max-width: 7.5rem;
  padding: .3rem .52rem;
  border-radius: 999px;
  color: #155724;
  background: rgba(31, 122, 58, .12);
  font-size: .66rem;
  font-weight: 800;
  text-align: center;
}

.thea-android-home[data-mobile-api-state="error"] .thea-android-session,
.thea-android-home[data-mobile-api-state="unauthenticated"] .thea-android-session {
  border-color: rgba(176, 42, 55, .24);
  background: rgba(255, 245, 246, .9);
}

.thea-android-home[data-mobile-api-state="error"] .thea-android-session__badge,
.thea-android-home[data-mobile-api-state="unauthenticated"] .thea-android-session__badge {
  color: #842029;
  background: rgba(176, 42, 55, .12);
}

@media (min-width: 640px) {
  .thea-android-home__status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .thea-android-session {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .thea-android-session__badge {
    grid-column: 2;
    justify-self: start;
  }
}
