.pw-layout { margin-top: 16px; align-items: start; }
.pw-output, .pw-options { min-width: 0; }
.pw-output { display: grid; align-content: start; }
.pw-output .zt-next { margin-bottom: 0; }
#pw-result {
  min-height: 108px;
  max-height: 290px;
  padding: 12px;
  font-size: 1.25rem;
  line-height: 1.45;
  resize: vertical;
  background: var(--ws-2);
  overflow-wrap: anywhere;
}
#pw-result.pw-batch { min-height: 200px; font-size: 1rem; }
#pw-strength { margin: 12px 0 4px; font-size: .875rem; font-weight: 600; }
#pw-strength-hint { margin: 0; }
.pw-output .zt-explain { margin: 0 0 4px; }
.pw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pw-actions button { flex: 1; }
.pw-options { border-top: 1px solid var(--ws-line); padding-top: 14px; }
.pw-options .zt-field { max-width: 17rem; }
.pw-options fieldset { border: 0; min-width: 0; padding: 0; margin: 12px 0 0; }
.pw-options legend { padding: 0; font-size: .875rem; font-weight: 600; }
.pw-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.pw-option { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; }
.pw-option input { margin: 0; flex: 0 0 44px; }
#pw-length-range { display: block; width: min(100%, 17rem); min-height: 44px; padding: 0; }
.pw-more { margin-top: 8px; }
.pw-more summary { align-content: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.pw-options .zt-hint { margin: 0 0 6px; }
.pw-error { color: var(--err); margin: 4px 0; font-size: .875rem; }
.pw-options section .zt-field + .zt-field, #pw-phrase-options > .zt-field:nth-of-type(2), .pw-quantity { margin-top: 12px; }
.pw-actions .zt-button { background: transparent; color: var(--ws-ink); }
@media (min-width: 900px) {
  .pw-options { border-top: 0; border-left: 1px solid var(--ws-line); padding: 0 0 0 18px; }
}
@media (max-width: 560px) {
  #pw-tabs { display: flex; }
  #pw-tabs button { flex: 1; padding-inline: 8px; }
  .pw-actions button { padding-inline: 12px; }
}

.pw-output .zt-ux-presets { margin: 12px 0 0; }
@media (max-width: 560px) {
  #pw-result:not(.pw-batch) { height: 76px; min-height: 76px; }
}
