.cf-install-trigger[hidden] {
  display: none !important;
}

button.cf-install-trigger {
  width: auto;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #ad6b3e;
  border-radius: 8px;
  background: #1b2328;
  color: #fff2e5;
  font: 600 0.875rem/1.2 Arial, sans-serif;
  box-shadow: none;
}

#auth .cf-install-trigger,
#settings .cf-install-trigger {
  margin-block: 0.5rem;
}

.cf-install-guide {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 1.2rem;
  overflow: auto;
  border: 1px solid #ad6b3e;
  border-radius: 14px;
  background: #151d21;
  color: #f6f7f8;
  font: 400 1rem/1.4 Arial, sans-serif;
  box-shadow: 0 12px 46px #0007;
}

.cf-install-guide::backdrop {
  background: #080d11cc;
}

.cf-install-guide h2 {
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
  color: #fff2e5;
  font: 700 1.25rem/1.25 Arial, sans-serif;
}

.cf-install-guide p {
  margin: 0;
  color: #c6d1d7;
}

.cf-install-steps {
  display: grid;
  gap: 0.5rem;
  margin: 0.9rem 0;
  padding: 0;
  list-style: none;
}

.cf-install-steps li {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  align-items: start;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid #39464e;
  border-radius: 8px;
  background: #1b252a;
}

.cf-install-step {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #ffab6e;
  color: #251406;
  font-weight: 700;
}

.cf-install-step[data-symbol="share"]::before,
.cf-install-step[data-symbol="home"]::before {
  content: '';
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.cf-install-step[data-symbol="share"]::before {
  transform: translateY(3px);
}

.cf-install-step[data-symbol="share"]::after {
  content: '↑';
  position: absolute;
  top: 1px;
  padding-inline: 1px;
  background: #ffab6e;
  line-height: 1;
}

.cf-install-step[data-symbol="home"]::after {
  content: '+';
}

.cf-install-step[data-symbol="add"]::after {
  content: '✓';
}

.cf-install-steps strong,
.cf-install-steps li div span {
  display: block;
}

.cf-install-steps li div span {
  color: #c6d1d7;
  font-size: 0.875rem;
}

.cf-install-guide form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
}

.cf-install-guide button {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 0.8rem;
  border: 1px solid #596b75 !important;
  border-radius: 8px;
  background: #222e35 !important;
  color: #f6f7f8 !important;
  font: 600 0.875rem/1.2 Arial, sans-serif;
  box-shadow: none !important;
}

.cf-install-guide button[value="close"] {
  border-color: #ffab6e !important;
  background: #ffab6e !important;
  color: #251406 !important;
}

.cf-install-guide button:focus-visible,
.cf-install-trigger:focus-visible {
  outline: 2px solid #ffbe8d;
  outline-offset: 2px;
}
