.home-screen-card {
  padding: 16px;
}

.home-screen-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-screen-card-heading img,
.home-screen-dialog-head img {
  flex: 0 0 auto;
  border-radius: 12px;
}

.home-screen-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.home-screen-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.home-screen-card-actions,
.home-screen-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.home-screen-card .small-button,
.home-screen-text-button {
  min-height: 44px;
  font-size: 14px;
}

.home-screen-text-button {
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.home-screen-text-button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.home-screen-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
}

.home-screen-dialog::backdrop {
  background: rgba(23, 33, 43, 0.42);
}

body.home-screen-dialog-open {
  overflow: hidden;
}

.home-screen-dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-screen-dialog-head > div {
  flex: 1;
  min-width: 0;
}

.home-screen-dialog-head p {
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 700;
}

.home-screen-dialog h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.home-screen-close {
  align-self: flex-start;
  flex: 0 0 36px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.home-screen-intro,
.home-screen-login-note,
.home-screen-browser-note,
.home-screen-result {
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.45;
}

.home-screen-intro,
.home-screen-login-note {
  color: var(--muted);
}

.home-screen-platforms {
  display: flex;
  gap: 8px;
}

.home-screen-platforms button {
  flex: 1;
  min-height: 44px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.home-screen-platforms button[aria-pressed="true"] {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  background: var(--surface-soft);
}

.home-screen-steps {
  display: grid;
  gap: 12px;
  padding-left: 24px;
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.45;
}

.home-screen-steps li::marker {
  color: var(--accent-strong);
  font-weight: 700;
}

.home-screen-steps li {
  padding-left: 4px;
}

.home-screen-dialog-actions > button {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 350px) {
  .home-screen-dialog { padding: 16px; }
  .home-screen-dialog-head img { width: 40px; height: 40px; }
  .home-screen-dialog h2 { font-size: 17px; }
}
