﻿:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #111827;
  background: #f1f7fa;
  --brand: #0797df;
  --brand-dark: #0476b2;
  --brand-soft: #e6f5fd;
  --muted: #64748b;
  --line: #dfe8ee;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
main { min-height: 100svh; padding: 32px 20px; display: flex; align-items: center; justify-content: center; }
.app-card { width: min(100%, 1080px); padding: 28px 40px 26px; background: #fff; border: 1px solid #ffffffcc; border-radius: 18px; box-shadow: 0 8px 22px #2a424f1f; }
.brand { display: block; width: 116px; margin: 0 auto 17px; border-radius: 8px; }
.brand img { display: block; width: 116px; height: 116px; object-fit: contain; }
.eyebrow { color: var(--brand-dark); font-size: clamp(28px, 6vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: 2px; text-align: center; margin: 0 0 28px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-heading label { font-size: 10px; letter-spacing: 1px; font-weight: 650; color: #526779; }
.length { color: var(--brand-dark); background: var(--brand-soft); padding: 5px 8px; border-radius: 6px; font-size: 10px; }
.password-wrap { margin: 13px 0 18px; background: #f5fafd; border: 1px solid #d6e8f2; border-radius: 10px; padding: 15px 8px; }
.password { width: 100%; min-width: 0; border: 0; background: transparent; color: #17374d; font-family: Consolas, "Courier New", monospace; font-size: clamp(30px, 6vw, 40px); letter-spacing: 4px; text-align: center; line-height: 1.5; }
.password::selection { background: #c8e9fc; }
.actions { display: flex; gap: 10px; }
.button { min-height: 46px; border-radius: 9px; border: 1px solid transparent; font-size: 12px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.primary { flex: 1; background: var(--brand); color: #fff; }
.primary:hover { background: var(--brand-dark); }
.secondary { padding: 0 15px; border-color: var(--line); background: #fff; color: #41576a; }
.secondary:hover { background: var(--brand-soft); }
:focus-visible { outline: 3px solid #0476b2; outline-offset: 4px; }
.feedback { font-size: 11px; color: var(--brand-dark); text-align: center; margin: 0; }
.feedback:not(:empty) { margin-top: 12px; }
footer { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 10px; color: #718399; }
footer a { text-decoration: none; }
footer a:hover { color: var(--brand-dark); text-decoration: underline; }
.no-script { font-size: 13px; color: #a43333; }
.generators { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.generator { min-width: 0; }
.custom-generator { padding-left: 32px; border-left: 1px solid var(--line); }
.panel-title { font-size: 18px; font-weight: 650; margin: 0 0 22px; color: #17374d; }
.custom-password-wrap { padding: 11px 8px; }
.custom-password { display: block; resize: none; font-size: 21px; letter-spacing: 1px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.custom-options { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.length-control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.length-control label { font-weight: 600; margin-right: auto; }
.length-control input { width: 68px; border: 1px solid var(--line); border-radius: 7px; padding: 7px; color: #17374d; }
.length-control span { font-size: 10px; color: var(--muted); }
.length-range { width: 100%; margin: 14px 0 18px; accent-color: var(--brand-dark); }
.character-options { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.character-options legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.option { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; line-height: 1.6; }
.option input { flex-shrink: 0; width: 17px; height: 17px; margin: 0; accent-color: var(--brand-dark); }
.option small { color: var(--muted); font-size: 10px; margin-left: 3px; }
.symbols-control { display: grid; gap: 7px; margin: 17px 0; }
.symbols-control label { font-weight: 600; }
.symbols-control input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: Consolas, monospace; color: #17374d; background: #f5fafd; }
.symbols-control input:disabled { opacity: .5; }
.symbols-control small { color: var(--muted); font-size: 10px; }
.exclude-option { border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 880px) {
  .app-card { width: min(100%, 570px); }
  .generators { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .custom-generator { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  main { padding: 16px 12px; }
  .app-card { padding: 23px 20px; }
  .brand, .brand img { width: 100px; height: 100px; }
  .actions { flex-wrap: wrap; }
  .primary { flex-basis: 100%; }
  .secondary { width: 100%; }
  .password { letter-spacing: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
