:root{
  --yellow: #f3c400;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;

  --weak: #d63a3a;
  --medium: #f4c43a;
  --strong: #22a06b;
  --vstrong: #0b7a49;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f6f7fb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.wrap{
  width: min(980px, 100%);
}

.card{
  border: 2px solid #d1d5db;
  background: var(--bg);
  box-shadow: 0 10px 25px rgba(15,23,42,.08);
}

.card__header{
  background: var(--yellow);
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.hint{
  margin:0;
  font-weight: 700;
  font-size: 18px;
}

.length{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
}

.length__label{ color:#111; }
.length__box{
  min-width: 46px;
  text-align:center;
  padding: 6px 10px;
  background: #8c8c8c;
  color: #fff;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.card__body{
  padding: 18px;
}

.inputRow{
  position: relative;
  display:flex;
  align-items:center;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  overflow:hidden;
  background:#fff;
}

.pwdInput{
  width: 100%;
  border: 0;
  outline: none;
  padding: 14px 48px 14px 14px;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.eyeBtn{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border:0;
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#111827;
}
.eyeBtn:focus-visible{
  outline: 3px solid rgba(17,24,39,.25);
  outline-offset: 2px;
}
.eyeIcon, .eyeOffIcon{ width: 22px; height: 22px; }
.eyeOffIcon{ display:none; }

.meter{
  margin-top: 10px;
  border: 2px solid #d1d5db;
  border-top: 0;
  overflow:hidden;
}

.meter__fill{
  width: 100%;
  padding: 12px 14px;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight: 800;
  color:#fff;
  background: #9ca3af;
}

.meter__text{ font-size: 18px; }

.includeRow{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap:wrap;
}

.includeLabel{
  font-weight: 700;
  color:#111827;
  white-space:nowrap;
}

.chips{
  display:flex;
  gap: 22px;
  flex-wrap:wrap;
  align-items:center;
}

.chip{
  display:flex;
  align-items:center;
  gap: 8px;
  color:#111827;
  font-weight: 600;
}

.chip__dot{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  display:grid;
  place-items:center;
  background: #f8fafc;
}
.chip__check{
  font-size: 13px;
  line-height: 1;
  color: transparent; /* hidden until active */
}

.chip.isOn .chip__dot{
  border-color: #caa400;
  background: #fff3b0;
}
.chip.isOn .chip__check{
  color: #a07800;
}

.divider{
  border: 0;
  height: 2px;
  background: #111827;
  opacity: .25;
  margin: 18px 0 14px;
}

.crack{
  text-align:center;
  padding: 10px 0 4px;
}

.crack__top,
.crack__bottom{
  font-size: 18px;
  font-weight: 700;
}

.crack__mid{
  margin: 6px 0;
  font-size: 22px;
  font-weight: 900;
}

.crack__value{
  font-variant-numeric: tabular-nums;
}

.tinyNote{
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.foot{
  margin-top: 10px;
  color: #6b7280;
  font-size: 12px;
  text-align:center;
}

/* utility */
.srOnly{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

/* responsive tweaks */
@media (max-width: 560px){
  .hint{ font-size: 16px; }
  .pwdInput{ font-size: 16px; }
  .chips{ gap: 12px; }
}
