/*
 * Install-checklist modal styles. Loaded by install/index.html and
 * tour/index.html via a normal <link rel="stylesheet">. Lives in its
 * own file so the dialog markup + behaviour stay portable across
 * pages without copy-paste drift.
 *
 * Visual idiom matches the rest of the site: cream background, dark
 * brown borders + offset shadow, slight irregularity (intentionally
 * not pixel-perfect Aqua). Stays inside the existing CSS variables
 * defined in /styles.css so theme tweaks propagate here too.
 */

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.install-modal[hidden] {
  display: none;
}

.install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 29, 16, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.install-modal-card {
  position: relative;
  background: var(--bg, #faf2dd);
  border: 2.5px solid var(--line, #2a1d10);
  box-shadow: 6px 6px 0 rgba(42, 29, 16, 0.55);
  max-width: 540px;
  width: 100%;
  padding: 32px 32px 26px;
  max-height: 92vh;
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--fg, #2a1d10);
}

.install-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--fg-soft, #5a4530);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.install-modal-close:hover,
.install-modal-close:focus {
  background: rgba(42, 29, 16, 0.08);
  color: var(--fg, #2a1d10);
  outline: none;
}

.install-modal-steps {
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
  font-size: 14.5px;
}

.install-modal-steps li {
  margin-bottom: 10px;
}

.install-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.install-modal-actions .btn-primary {
  flex: 1 1 auto;
  min-width: 220px;
  text-align: center;
}

@media (max-width: 540px) {
  .install-modal-card {
    padding: 26px 22px 22px;
  }
  .install-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .install-modal-actions .btn,
  .install-modal-actions .btn-sm {
    width: 100%;
    text-align: center;
  }
}
