/* Password Generator - tool-specific styles.
   Reuses tokens/classes from ../shared/tools.css. */

.pw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.pw-form { display: flex; flex-direction: column; gap: 20px; }
.pw-modes { align-self: flex-start; }
.pw-panel { display: flex; flex-direction: column; gap: 18px; }

.pw-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.pw-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.pw-check input { width: auto; accent-color: var(--accent); flex: none; }
.pw-check .meta { margin-left: 2px; }
.pw-check-wide { display: flex; }

.pw-inline-msg { margin-top: -4px; }

/* ---------- output ---------- */
.pw-output-wrap {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pw-output { display: flex; flex-direction: column; gap: 16px; }

.pw-value {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: var(--text);
}
.pw-value-empty { color: var(--text-3); font-style: normal; }

.pw-actions { display: flex; gap: 10px; }
.pw-actions .btn-primary { flex: 1; }

.pw-shortcut { margin-top: -6px; }
.pw-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

/* ---------- entropy ---------- */
.pw-entropy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.pw-entropy .spread { padding-top: 8px; }

/* ---------- history ---------- */
.pw-history { display: flex; flex-direction: column; gap: 12px; }
.pw-history-head { align-items: center; }
.pw-history-clear { padding: 4px 12px; font-size: 13px; }

.pw-history-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pw-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 8px 8px 8px 12px;
}
.pw-history-val {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.pw-history-copy { width: 30px; height: 30px; flex: none; }
.pw-history-copy svg { width: 15px; height: 15px; }

.pw-history-empty { padding: 20px 12px; margin: 0; }
.pw-history-note { margin: 0; }

@media (max-width: 820px) {
  .pw-layout { grid-template-columns: 1fr; }
  .pw-output-wrap { position: static; order: -1; }
}
@media (max-width: 480px) {
  .pw-checks { grid-template-columns: 1fr; }
}
