:host {
  display: block;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
}

header {
  margin: 18px 0 28px;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--mat-sys-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.status-card,
.danger-card,
.hint-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
}

.status-card > div:nth-child(2),
.danger-card > div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.status-card span,
.danger-card span,
.qr-card span,
.hint-card span {
  color: var(--mat-sys-on-surface-variant);
}

.status-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mat-sys-surface-container-high);
}

.status-card.active .status-icon {
  color: var(--mat-sys-primary);
  background: var(--mat-sys-primary-container);
}

.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin: 18px 0;
}

.share-card,
.qr-card {
  padding: 22px;
  border-radius: 18px;
}

.share-card mat-form-field {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qr-card {
  display: grid;
  place-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
}

.qr-card img {
  width: min(100%, 220px);
  border-radius: 12px;
}

.danger-card {
  margin-top: 18px;
  border: 1px solid var(--mat-sys-outline-variant);
}

.hint-card {
  margin-top: 18px;
}

@media (max-width: 700px) {
  :host {
    padding: 20px 16px;
  }

  .status-card,
  .danger-card {
    align-items: stretch;
    flex-direction: column;
  }

  .share-grid {
    grid-template-columns: 1fr;
  }
}
