.modal {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.parent-sync {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafaff;
}

.parent-sync-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.parent-sync-head strong,
.parent-sync-head small {
  display: block;
}

.parent-sync-head small {
  color: var(--muted);
  margin-top: 3px;
}

.sync-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c9cbd8;
  box-shadow: 0 0 0 5px #c9cbd833;
}

.sync-dot.connected {
  background: var(--mint);
  box-shadow: 0 0 0 5px #49c59b22;
}

.parent-sync > p {
  font-size: .9rem;
  line-height: 1.45;
  color: var(--muted);
}

.pair-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.pair-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  outline: 0;
  font-size: 1rem;
}

.pair-row input:focus {
  border-color: var(--purple);
}

.pair-row button,
.disconnect-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 850;
}

.pair-row button {
  background: var(--purple);
  color: #fff;
}

.disconnect-button {
  background: #fff0f2;
  color: var(--danger);
  margin-top: 8px;
}

.parent-dashboard-link {
  display: inline-block;
  margin-top: 13px;
  color: var(--purple);
  font-weight: 850;
  text-decoration: none;
}

.czech-only-field {
  display: block;
  margin: 15px 0 10px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}

.czech-only-field input {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  font-size: 1rem;
  outline: 0;
}

.czech-only-field input:focus {
  border-color: var(--purple);
}

.word-suggestion {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d8d2ff;
  border-radius: 18px;
  background: var(--lavender);
}

.word-suggestion > span {
  grid-row: 1 / 3;
  font-size: 2.4rem;
}

.word-suggestion small,
.word-suggestion strong {
  display: block;
}

.word-suggestion small {
  color: var(--muted);
  margin-bottom: 3px;
}

.word-suggestion p,
.suggestion-actions {
  grid-column: 2 / -1;
}

.word-suggestion p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.suggestion-actions {
  display: flex;
  gap: 9px;
}

.suggestion-actions button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-weight: 850;
}

.suggestion-actions button:first-child {
  background: var(--purple);
  color: #fff;
}

.suggestion-actions button:last-child {
  background: #fff;
  color: var(--purple);
}

@media (max-width: 580px) {
  .pair-row { grid-template-columns: 1fr; }
  .parent-dashboard-link { font-size: .94rem; }
  .word-suggestion { grid-template-columns: auto 1fr; }
  .word-suggestion > span { grid-row: 1 / 4; }
  .word-suggestion p,
  .suggestion-actions { grid-column: 1 / -1; }
}
