:root {
  color-scheme: dark;
  --ink: #f5f1d6;
  --muted: #b9c6aa;
  --panel: rgba(10, 28, 16, .94);
  --line: #789568;
  --lime: #c8ff75;
  --amber: #ffc75c;
  --danger: #ff775f;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #07120a; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 "Trebuchet MS", Verdana, sans-serif;
  background:
    linear-gradient(rgba(7,18,10,.86), rgba(7,18,10,.93)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(170,126,70,.2) 46px 52px),
    radial-gradient(circle at 70% 10%, #34643b, #07120a 55%);
}
button, input, select { font: inherit; }
button, select, input[type="range"] { accent-color: var(--lime); }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.app-shell { width: min(1050px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 44px; }
.masthead {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 3px double var(--line);
  background: linear-gradient(135deg, rgba(22,61,30,.98), rgba(8,24,13,.96));
  box-shadow: 0 18px 45px #0009, inset 0 0 30px #8dff7530;
}
.masthead img { width: 96px; height: 96px; filter: drop-shadow(0 5px 4px #0008); }
.kicker { margin: 0 0 6px; color: var(--lime); font: 700 12px/1.3 monospace; letter-spacing: .12em; }
h1, h2 { font-family: Georgia, serif; }
h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3.35rem); line-height: 1.02; }
.masthead p:last-child { margin: 10px 0 0; color: var(--muted); }
.generator { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr); gap: 18px; margin-top: 18px; }
.panel, .field-report {
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 28px #0008;
}
.panel { padding: 22px; }
.panel h2, .field-report h2 { margin-top: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { margin-bottom: 9px; font-weight: 700; }
.radio-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #5c7653;
  background: #102718;
  cursor: pointer;
}
.radio-card:has(input:checked) { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.radio-card input { margin-top: 5px; }
.radio-card span { display: grid; }
.radio-card small, .strength-text, .status { color: var(--muted); }
.controls label[for] { display: block; margin-top: 14px; font-weight: 700; }
input[type="range"], select { width: 100%; }
select {
  padding: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #0b1d10;
}
.check { display: flex; gap: 8px; margin: 12px 0 18px; }
button {
  min-height: 44px;
  border: 2px outset #b9c8a7;
  color: #07120a;
  background: #d8e7c8;
  cursor: pointer;
  font-weight: 800;
}
button:active { border-style: inset; }
.primary { width: 100%; padding: 10px 16px; background: var(--lime); }
.result-panel { display: flex; flex-direction: column; justify-content: center; }
.result-label { color: var(--amber); font: 800 12px monospace; letter-spacing: .12em; }
.password-wrap { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.password-result {
  min-width: 0;
  min-height: 82px;
  padding: 15px;
  overflow-wrap: anywhere;
  border: 2px inset #b9c8a7;
  color: #102000;
  background: #efffd6;
  font: 700 clamp(1rem, 3vw, 1.35rem)/1.45 "Courier New", monospace;
  user-select: all;
}
#copyButton { padding: 0 18px; }
.status { min-height: 1.5em; margin: 8px 0; }
.meter { height: 13px; overflow: hidden; border: 1px solid #607355; background: #020803; }
.meter span { display: block; width: 0; height: 100%; background: var(--danger); transition: width .25s, background .25s; }
.strength-text { margin: 7px 0 14px; }
.verdict {
  padding: 14px;
  border-left: 5px solid var(--amber);
  background: #241d0d;
  font-weight: 700;
}
details { margin-top: 16px; }
summary { cursor: pointer; color: var(--lime); font-weight: 700; }
.field-report { margin-top: 18px; padding: 20px 24px; }
.field-report ul { margin-bottom: 0; padding-left: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
a { color: var(--lime); }
code { color: #fff4b0; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .app-shell { width: min(100% - 18px, 600px); padding-top: 10px; }
  .masthead { grid-template-columns: 64px 1fr; padding: 16px; }
  .masthead img { width: 64px; height: 64px; }
  .generator { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .password-wrap { grid-template-columns: 1fr; }
  #copyButton { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }