/* «Install the app»: the /install page and the one-time banner on My schedule (src/installAppView.js). */

.install-app {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: var(--fresco-space-5);
  color: var(--fresco-ink);
  font-family: var(--fresco-font);
}

.install-app-head {
  display: grid;
  justify-items: center;
  gap: var(--fresco-space-3);
  text-align: center;
}

.install-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(18, 20, 43, 0.18);
}

.install-app-head h1 {
  margin: 0;
  font-family: var(--fresco-display);
  font-size: var(--fresco-text-2xl);
  font-weight: 600;
}

.install-app-head p {
  margin: 0;
  color: var(--fresco-muted);
  font-size: var(--fresco-text-base);
  line-height: 1.45;
}

.install-app-points {
  display: grid;
  gap: var(--fresco-space-3);
  margin: 0;
  padding: var(--fresco-space-4);
  border: 1px solid var(--fresco-line);
  border-radius: var(--fresco-radius-lg);
  background: var(--fresco-surface);
  list-style: none;
}

.install-app-points li,
.install-app-done {
  display: flex;
  align-items: center;
  gap: var(--fresco-space-3);
}

.install-app-points .ui-icon,
.install-app-done .ui-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--fresco-success);
}

.install-app-done {
  margin: 0;
  padding: var(--fresco-space-4);
  border-radius: var(--fresco-radius-lg);
  background: var(--fresco-success-soft);
  color: var(--fresco-success);
  font-weight: 600;
}

.install-app-section {
  display: grid;
  gap: var(--fresco-space-3);
  padding: var(--fresco-space-5) var(--fresco-space-4);
  border: 1px solid var(--fresco-line);
  border-radius: var(--fresco-radius-lg);
  background: var(--fresco-surface);
}

.install-app-section h2 {
  margin: 0;
  font-family: var(--fresco-display);
  font-size: var(--fresco-text-lg);
  font-weight: 600;
}

.install-app-button {
  justify-content: center;
  min-height: var(--fresco-control-lg);
  font-size: var(--fresco-text-lg);
}

.install-app-status:empty {
  display: none;
}

.install-app-status,
.install-app-lead,
.install-app-note,
.install-app-desktop {
  margin: 0;
  color: var(--fresco-muted);
  font-size: var(--fresco-text-sm);
  line-height: 1.45;
}

.install-app-status {
  color: var(--fresco-ink);
  font-weight: 600;
}

.install-app-desktop {
  padding: var(--fresco-space-4);
  border-radius: var(--fresco-radius);
  background: var(--fresco-primary-soft);
  color: var(--fresco-ink);
  font-size: var(--fresco-text-base);
}

.install-app-steps {
  display: grid;
  gap: var(--fresco-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-app-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--fresco-space-3);
  line-height: 1.45;
}

.install-app-step-n {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--fresco-primary-soft);
  color: var(--fresco-primary);
  font-weight: 600;
}

.install-app-step-text {
  padding-top: 2px;
}

.install-app-step-text b {
  font-weight: 600;
}

.install-app-glyph {
  display: inline-flex;
  vertical-align: -6px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border: 1px solid var(--fresco-line-strong);
  border-radius: var(--fresco-radius-sm);
  color: var(--fresco-primary);
}

.install-app-glyph .ui-icon {
  width: 18px;
  height: 18px;
}

/* The banner: one row at the top of My schedule, until Install or Not now. */
.install-banner {
  display: flex;
  align-items: center;
  gap: var(--fresco-space-3);
  margin: 0 0 var(--fresco-space-4);
  padding: var(--fresco-space-3) var(--fresco-space-3) var(--fresco-space-3) var(--fresco-space-4);
  border: 1px solid #d9d1ff;
  border-radius: var(--fresco-radius-lg);
  background: var(--fresco-primary-soft);
  color: var(--fresco-ink);
  font-family: var(--fresco-font);
}

.install-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.install-banner-text {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
  font-size: var(--fresco-text-sm);
}

.install-banner-text strong {
  font-weight: 600;
}

.install-banner-text small {
  color: #4a4f6a;
  font-size: 0.8125rem;
}

.install-banner-go {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--fresco-radius-sm);
  background: var(--fresco-primary);
  color: #fff;
  font-size: var(--fresco-text-sm);
  font-weight: 600;
  text-decoration: none;
}

.install-banner-go:hover {
  background: var(--fresco-primary-hover);
  color: #fff;
}

.install-banner-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--fresco-radius-sm);
  background: transparent;
  color: var(--fresco-muted);
  cursor: pointer;
}

.install-banner-close .ui-icon {
  width: 18px;
  height: 18px;
}

/* «Install the app» on More goes once the portal runs as the app. */
:root[data-installed-app="true"] .more-install {
  display: none;
}

@media (display-mode: standalone) {
  .more-install {
    display: none;
  }
}
