.password-page {
  width: min(1180px, calc(100% - 36px));
  margin: 30px auto 0;
  --entry-surface: #ffffff;
  --entry-surface-muted: #ffffff;
  --entry-surface-soft: #f3f6fa;
  --entry-text: #17243a;
  --entry-muted: #607089;
  --entry-primary: #155eef;
  --entry-primary-deep: #1146b8;
  --entry-accent: #087f8c;
  --entry-warning: #b75b12;
  --entry-danger: #b42318;
  --entry-border: #dce4ec;
  --entry-shadow: 0 12px 28px rgba(23, 36, 58, 0.08);
}

.password-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 28px;
  align-items: end;
  margin: 0 0 24px;
}

.password-page__kicker {
  margin: 0 0 8px;
  color: #1146b8;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.password-page__hero h1 {
  max-width: 760px;
  margin: 0;
  color: #17243a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.password-page__lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: #607089;
  font-size: 18px;
  line-height: 1.6;
}

.password-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.password-page__chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf7f5;
  color: #087f8c;
  font-size: 12px;
  font-weight: 800;
}

.password-page__advice {
  padding: 20px;
  border: 1px solid #dce4ec;
  border-radius: 16px;
  background: #ffffff;
}

.password-page__advice strong { display: block; margin-bottom: 6px; color: #17243a; }
.password-page__advice p { margin: 0; color: #607089; line-height: 1.6; }

body.service-entry-body {
  padding: 0 0 52px;
  background: #f7f9fb;
  color: #17243a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.password-page .service-panel {
  padding: clamp(20px, 4vw, 36px);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.password-page .card {
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.password-page .card .card,
.password-page .advanced,
.password-page .info-box,
.password-page .analysis,
.password-page .tips {
  background: #f7f9fb;
}

.password-page .card-title {
  font-family: inherit;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.password-page .btn-primary {
  background: #155eef;
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.2);
}

.password-page .btn-secondary,
.password-page .toggle-btn,
.password-page .tips-toggle-inline {
  color: #1146b8;
}

.password-page .input,
.password-page textarea.input,
.password-page .pill {
  background: #ffffff;
}

#password-generator {
  width: 100%;
  padding: 0 0 24px;
}

#password-generator > .card + .grid-2 {
  margin-top: 18px;
}

#password-generator .card-body {
  display: grid;
  gap: 12px;
}

#password-generator .field label {
  font-weight: 700;
}

#password-generator .password-sentence-input {
  min-height: 84px;
  font-size: 1.08rem;
  line-height: 1.5;
}

#password-generator .password-result-input {
  min-height: 58px;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 800;
}

#password-generator .btn-suggest {
  border-color: color-mix(in srgb, #ef4444 38%, var(--entry-border));
  background: color-mix(in srgb, #fee2e2 78%, white 22%);
  color: #7f1d1d;
}

.light #password-generator .btn-suggest,
html[data-theme="light"] #password-generator .btn-suggest {
  background: #fee2e2;
  color: #7f1d1d;
}

.result-box {
  align-items: stretch;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.info-box strong,
.analysis strong,
.hint strong {
  color: var(--entry-text);
}

.analysis {
  min-height: 104px;
  line-height: 1.65;
}

.hint {
  color: var(--entry-muted);
}

.advanced {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--entry-border);
  background: color-mix(in srgb, var(--entry-surface-soft) 80%, white 20%);
}

.advanced summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.advanced summary::-webkit-details-marker {
  display: none;
}

.advanced summary::after {
  content: "Rozbalit";
  margin-left: 10px;
  color: var(--entry-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.advanced[open] summary::after {
  content: "Sbalit";
}

.result-box .btn {
  min-width: 140px;
}

.password-strength {
  display: grid;
  gap: 10px;
  color: var(--entry-text);
  --strength-color: #1d7bff;
  --strength-width: 20%;
}

.password-strength__heading {
  font-weight: 800;
}

.password-strength__track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--entry-surface-soft) 72%, white 28%);
}

.password-strength__fill {
  width: var(--strength-width);
  height: 100%;
  border-radius: inherit;
  background: var(--strength-color);
  transition: width 180ms ease;
}

.password-strength__title {
  color: var(--strength-color);
  font-weight: 800;
}

.password-strength__tip {
  color: var(--entry-muted);
}

@media (max-width: 760px) {
  .password-page {
    width: min(100% - 24px, 1180px);
    margin-top: 18px;
  }

  .password-page__hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .result-box .btn {
    width: 100%;
  }
}
