/* Install control ---------------------------------------------------------
   Shared by the home page and the planner. The sheet only appears in browsers
   with no programmatic install prompt, where the alternative is a button that
   does nothing. */

.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(6, 8, 16, 0.62);
  backdrop-filter: blur(6px);
  animation: install-sheet-in 180ms ease;
}

.install-sheet-card {
  position: relative;
  width: min(420px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 22px 22px 20px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 18px;
  color: #e8ecff;
  background: linear-gradient(150deg, #1a1f33, #131726);
  box-shadow: 0 24px 60px rgba(4, 6, 14, 0.55);
}

[data-theme="light"] .install-sheet-card {
  color: #1c2233;
  border-color: rgba(79, 70, 229, 0.22);
  background: #fff;
  box-shadow: 0 24px 60px rgba(30, 41, 90, 0.22);
}

.install-sheet-card h3 {
  margin: 0 34px 12px 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.install-sheet-card ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.install-sheet-card strong {
  font-weight: 800;
}

.install-sheet-note {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(129, 140, 248, 0.2);
  opacity: 0.72;
  font-size: 0.79rem;
  line-height: 1.5;
}

.install-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  /* A comfortable touch target; the icon inside stays small. */
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(129, 140, 248, 0.24);
  border-radius: 11px;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.install-sheet-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.install-sheet-close:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.install-sheet-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

[data-theme="light"] .install-sheet-close {
  border-color: rgba(79, 70, 229, 0.18);
  background: rgba(99, 102, 241, 0.07);
}

.install-action {
  cursor: pointer;
  font: inherit;
}

@keyframes install-sheet-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .install-sheet {
    animation: none;
  }
}
