/* Passcode application — uses DACAU's existing design tokens from style.css. */
.passcode-main { min-height: calc(100vh - 177px); padding-bottom: 100px; }
.passcode-hero { padding-top: 55px; padding-bottom: 34px; }
.back-link { display: inline-block; margin-bottom: 42px; color: var(--muted); font-size: .78rem; }
.back-link:hover { color: var(--accent); }
.passcode-hero .eyebrow { margin-bottom: 18px; }
.passcode-hero h1 { margin-bottom: 15px; font-size: clamp(3.2rem, 7vw, 5.3rem); }
.passcode-hero h1 span { color: var(--accent); }
.passcode-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.9; }
.generator { padding-top: 38px; border-top: 1px solid var(--line); }
.generator-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.generator-heading h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3.1rem); }
.generator-heading h2 span { color: var(--accent); }
.local-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid var(--line); color: var(--muted); font: .58rem var(--font-mono); letter-spacing: .08em; white-space: nowrap; }
.local-badge .status-dot { width: 6px; height: 6px; }
.mode-switch { display: inline-flex; gap: 5px; padding: 5px; margin-bottom: 14px; border: 1px solid var(--line); background: #090f19; }
.mode-button { min-height: 40px; padding: 0 20px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .78rem; font-weight: 700; }
.mode-button.is-active { background: var(--accent); color: #07140f; }
.result-panel, .options-panel { border: 1px solid var(--line); background: linear-gradient(145deg, #101927, #0b111c 70%); }
.result-panel { padding: clamp(20px, 4vw, 34px); }
.result-topline, .options-heading, .strength-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: .61rem var(--font-mono); letter-spacing: .09em; color: #8291a5; }
.result-topline span:last-child { color: var(--accent); }
.secret-output { display: block; min-height: 76px; overflow-wrap: anywhere; padding: 22px 0; color: var(--text); font: 500 clamp(1.05rem, 3vw, 1.65rem)/1.5 var(--font-mono); letter-spacing: -.035em; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-secondary { border: 1px solid #344354; background: transparent; color: var(--text); cursor: pointer; }
.button-secondary:hover:not(:disabled) { border-color: var(--accent); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.strength-row { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.strength-label { margin-bottom: 10px; }
.strength-label strong { color: var(--text); font: 600 .72rem var(--font-body); letter-spacing: 0; }
.strength-track { height: 5px; overflow: hidden; background: #202c3c; }
.strength-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .25s ease; }
.entropy-note, .options-footnote { margin: 10px 0 0; color: #8291a5; font-size: .7rem; }
.options-panel { margin-top: 16px; padding: clamp(20px, 4vw, 30px); }
.options-heading { margin-bottom: 24px; }
.options-heading span:last-child { color: var(--muted); font: .72rem var(--font-body); letter-spacing: 0; }
.options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.options-grid[hidden] { display: none; }
.option-field { display: grid; gap: 12px; color: var(--text); font-size: .78rem; }
.option-field > span { display: flex; justify-content: space-between; gap: 12px; }
.option-field strong { color: var(--accent); font-family: var(--font-mono); }
.option-field input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.option-field select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); background: #090f19; color: var(--text); font: .78rem var(--font-body); }
.check-option { display: flex; align-items: center; gap: 11px; min-height: 34px; color: #c3cedb; font-size: .76rem; cursor: pointer; }
.check-option input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--accent); }
.check-option code, .security-note code { color: var(--accent); font: .68rem var(--font-mono); }
.full-width { grid-column: 1 / -1; }
.security-note { margin: 22px 0 0; padding: 16px 18px; border-left: 2px solid var(--accent-dim); background: #0c151d; color: var(--muted); font-size: .72rem; line-height: 1.8; }
.security-note > span { margin-right: 8px; color: var(--accent); }
.security-note strong { color: var(--text); }
@media (max-width: 640px) {
  .passcode-main { padding-bottom: 70px; }
  .passcode-hero { padding-top: 32px; }
  .back-link { margin-bottom: 30px; }
  .generator-heading { align-items: flex-start; flex-direction: column; }
  .local-badge { align-self: flex-start; }
  .options-grid { grid-template-columns: 1fr; gap: 13px; }
  .full-width { grid-column: auto; }
  .options-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .secret-output { min-height: 65px; }
}

/* Custom-word passphrase input */
.option-field input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  outline: none;
  background: #090f19;
  color: var(--text);
  font: .85rem var(--font-mono);
}
.option-field input[type="text"]:focus { border-color: var(--accent); }
.option-field input[type="text"]::placeholder { color: #64748b; }
.phrase-help { margin: -5px 0 0; color: #8291a5; font-size: .7rem; line-height: 1.7; }
