.modal-card {
  display: flex;
  width: 100%;
  max-width: 28rem;
  max-height: 92vh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-2xl);
  background: var(--card-dark);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .65);
}

.modal-sm {
  max-width: 20rem;
  gap: 12px;
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dark);
}

.modal-head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1rem;
}

.modal-copy {
  color: var(--slate-400);
  font-size: 11px;
}

.modal-input {
  color: var(--accent-red);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.modal-input:focus {
  border-color: var(--accent-red);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.modal-actions .btn:first-child {
  flex: 1;
}

.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--slate-400);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25rem;
}

.close-btn:hover {
  color: var(--white);
}

.close-btn-plain {
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 14px;
}

.sheet-card .close-btn-plain {
  font-size: 18px;
}

.sheet-card {
  display: flex;
  max-height: 85vh;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border-dark);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  background: var(--card-dark);
}

.sheet-card .modal-head h3 {
  font-size: 14px;
}

.sheet-card .text-input {
  padding: 12px;
  font-size: 14px;
  line-height: 1.25rem;
}

#modalPreview {
  backdrop-filter: blur(12px);
}

.preview-card {
  max-width: 32rem;
}

.preview-head .close-btn {
  background: var(--slate-800);
}

.preview-head {
  padding: 12px;
  background: rgba(15, 23, 42, .5);
}

.preview-head h3 {
  min-width: 0;
  font-size: 12px;
}

.preview-body {
  display: flex;
  min-height: 280px;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 12px;
  background: var(--brand-dark);
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-top: 1px solid var(--border-dark);
  background: rgba(15, 23, 42, .8);
}

.preview-footer .btn-secondary {
  padding: 6px 14px;
}

.preview-footer .switch-label {
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
}

.preview-footer .switch-label > span:first-child {
  color: inherit;
}
