/* Padlokr Tools — shared styles */
.plt-tool-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #18170f;
  max-width: 680px;
  margin: 0 auto;
}

/* Section label */
.plt-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9b9890;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plt-section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(0,0,0,0.1);
}

/* Cards */
.plt-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.85rem;
}

/* Range inputs */
.plt-ctrl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.plt-ctrl-row:last-child { margin-bottom: 0; }
.plt-ctrl-row label {
  font-size: 0.78rem;
  color: #6a6860;
  min-width: 120px;
  flex-shrink: 0;
}
.plt-ctrl-row input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #f0ede6;
  outline: none;
  cursor: pointer;
  min-width: 0;
}
.plt-ctrl-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--plt-brand, #1D9E75);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--plt-brand, #1D9E75);
}
.plt-ctrl-row input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--plt-brand, #1D9E75);
  cursor: pointer;
  border: 2px solid #fff;
}
.plt-ctrl-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: #18170f;
  min-width: 80px;
  text-align: right;
}

/* Toggle pills */
.plt-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 1rem;
}
@media (max-width: 420px) { .plt-toggle-grid { grid-template-columns: 1fr; } }
.plt-toggle-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f4f0;
  border-radius: 7px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  border: 0.5px solid transparent;
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
}
.plt-toggle-pill:hover { background: #e8e4db; }
.plt-toggle-pill.active { border-color: rgba(0,0,0,0.14); background: #fff; }
.plt-toggle-pill-label { font-size: 0.78rem; color: #6a6860; }
.plt-toggle-pill.active .plt-toggle-pill-label { color: #18170f; }
.plt-switch {
  width: 28px; height: 16px;
  border-radius: 8px;
  background: #e8e4db;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.plt-switch::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #9b9890;
  top: 2px; left: 2px;
  transition: left 0.2s, background 0.2s;
}
.plt-toggle-pill.active .plt-switch { background: rgba(29,158,117,0.2); }
.plt-toggle-pill.active .plt-switch::after { left: 14px; background: var(--plt-brand, #1D9E75); }

/* Metrics */
.plt-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 0.85rem;
}
@media (max-width: 400px) { .plt-metrics { grid-template-columns: 1fr 1fr; } }
.plt-metric {
  background: #f5f4f0;
  border-radius: 7px;
  padding: 0.75rem 0.9rem;
}
.plt-metric-label {
  font-size: 0.67rem;
  color: #9b9890;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}
.plt-metric-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #18170f;
  font-variant-numeric: tabular-nums;
}

/* Strength bar */
.plt-bar-track {
  height: 5px;
  background: #f0ede6;
  border-radius: 3px;
  margin-bottom: 0.45rem;
  overflow: hidden;
}
.plt-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.35s ease, background 0.35s ease;
  width: 0%;
}
.plt-score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.1rem;
}
.plt-score-row span:first-child { font-size: 0.72rem; color: #9b9890; }
.plt-score-value { font-size: 0.88rem; font-weight: 600; }

/* Password / phrase display */
.plt-display-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.plt-display-label { font-size: 0.68rem; color: #9b9890; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.plt-display-btns { display: flex; gap: 5px; }
.plt-btn-sm {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.14);
  border-radius: 6px;
  font-size: 0.72rem;
  color: #6a6860;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}
.plt-btn-sm:hover { background: #f5f4f0; color: #18170f; }
.plt-display-box {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  background: #f5f4f0;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 7px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  color: #18170f;
  word-break: break-all;
  line-height: 1.6;
  min-height: 3rem;
}
.plt-word { color: #18170f; }
.plt-sep  { color: #9b9890; }

/* Generate button */
.plt-gen-btn {
  width: 100%;
  padding: 0.65rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #18170f;
  color: #fff;
  font-family: inherit;
  transition: opacity 0.12s, transform 0.1s;
  letter-spacing: 0.02em;
}
.plt-gen-btn:hover { opacity: 0.85; }
.plt-gen-btn:active { transform: scale(0.99); }

/* Checks */
.plt-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 1rem;
}
@media (max-width: 380px) { .plt-checks { grid-template-columns: 1fr; } }
.plt-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #9b9890;
  padding: 3px 0;
  transition: color 0.2s;
}
.plt-check-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e8e4db;
  flex-shrink: 0;
  transition: background 0.2s;
}
.plt-check.pass { color: #6a6860; }
.plt-check.pass .plt-check-dot { background: var(--plt-brand, #1D9E75); }

/* Crack time */
.plt-crack-box {
  background: #f5f4f0;
  border-radius: 7px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}
.plt-crack-label { font-size: 0.67rem; color: #9b9890; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.25rem; }
.plt-crack-time { font-size: 1.05rem; font-weight: 600; color: #18170f; }
.plt-crack-sub { font-size: 0.72rem; color: #9b9890; margin-top: 2px; }

/* Compare cards */
.plt-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0.85rem;
}
@media (max-width: 440px) { .plt-compare-grid { grid-template-columns: 1fr; } }
.plt-compare-card {
  background: #f5f4f0;
  border-radius: 7px;
  padding: 0.85rem 1rem;
}
.plt-compare-title { font-size: 0.67rem; color: #9b9890; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.4rem; }
.plt-compare-example { font-family: monospace; font-size: 0.82rem; color: #18170f; margin-bottom: 0.4rem; word-break: break-all; line-height: 1.4; }
.plt-compare-stat { font-size: 0.78rem; color: #6a6860; margin-bottom: 2px; }
.plt-compare-stat strong { font-weight: 600; color: #18170f; }
.plt-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 4px;
}
.plt-tag-green { background: #E1F5EE; color: #085041; }
.plt-tag-red   { background: #FCEBEB; color: #A32D2D; }

/* Insight box */
.plt-insight {
  background: #E1F5EE;
  border-radius: 7px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: #085041;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.plt-insight strong { font-weight: 600; }

/* Cross-link */
.plt-crosslink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f4f0;
  border-radius: 7px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}
.plt-crosslink-text { font-size: 0.82rem; color: #6a6860; }
.plt-crosslink-text strong { color: #18170f; font-weight: 600; }
.plt-crosslink-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--plt-brand, #1D9E75);
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.plt-crosslink-btn:hover { opacity: 0.85; }

/* CTA */
.plt-cta {
  background: #18170f;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.plt-cta-text h3 { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 3px; }
.plt-cta-text p  { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.plt-cta-btn {
  background: #fff;
  color: #18170f;
  border: none;
  border-radius: 7px;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.plt-cta-btn:hover { background: #f5f4f0; }

/* Toast */
.plt-toast {
  font-size: 0.72rem;
  color: var(--plt-brand, #1D9E75);
  opacity: 0;
  transition: opacity 0.2s;
}

/* Chart */
.plt-chart-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: #6a6860;
  flex-wrap: wrap;
}
.plt-chart-legend span { display: flex; align-items: center; gap: 5px; }
.plt-chart-legend i {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.plt-chart-wrap { position: relative; width: 100%; height: 220px; }

/* Footer note */
.plt-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: #9b9890;
  margin-top: 0.5rem;
  line-height: 1.5;
}
