/* YourTechTool — password generator styles. Loaded only by password-generator.php, after site.css and tool-page.css.
   Moved from the original inline <style>; page-wide and chrome rules were removed (now shared). */
:root {
  --warn: #f5a623;
}
.intro-hero {
  text-align: center;
  padding: 64px 0 22px;
}
.intro-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 18px 0 12px;
}
.subtitle {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0 20px;
}
.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 18px;
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.monitor {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid #222d39;
  flex-wrap: wrap;
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px var(--accent);
  animation: blink 1.6s infinite;
  flex: none;
}
.stream {
  min-width: 0;
  flex: 1;
  color: #cbd5e1;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.monitor small {
  color: #7f8b9b;
  white-space: nowrap;
}
.pwd-shell {
  padding: 26px 22px 8px;
}
.pwd-row {
  display: flex;
  gap: 10px;
}
.pwd-display {
  flex: 1;
  min-width: 0;
  font:
    22px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: var(--surface2);
  border: 1px solid #26313e;
  border-radius: 13px;
  padding: 16px 18px;
  word-break: break-all;
  letter-spacing: 0.02em;
  color: #eaf3ff;
  display: flex;
  align-items: center;
  user-select: all;
}
.pwd-display.empty {
  color: #7f8b9b;
  font-size: 14px;
  font-family: Inter, sans-serif;
}
.icon-btn {
  flex: none;
  width: 52px;
  border: 1px solid #2d3947;
  border-radius: 13px;
  background: #151e29;
  color: #e7edf5;
  cursor: pointer;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.icon-btn:hover {
  background: #1b2735;
  border-color: #4b5c70;
}
.icon-btn.copied {
  background: linear-gradient(145deg, #1c6b5f, #174f47);
  border-color: #2f7d6f;
}
.strength-wrap {
  margin: 18px 0 4px;
}
.strength-bar {
  height: 8px;
  border-radius: 99px;
  background: #121922;
  border: 1px solid #202a35;
  overflow: hidden;
  display: flex;
  gap: 3px;
  padding: 2px;
}
.strength-bar i {
  flex: 1;
  border-radius: 99px;
  background: #1b2530;
  transition: background 0.2s;
}
.strength-label {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.strength-label b {
  color: var(--text);
  font-weight: 800;
}
hr.div {
  border: none;
  border-top: 1px solid #1b2530;
  margin: 22px 0;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}
.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.option-row label.main {
  font-size: 13px;
  font-weight: 750;
}
.len-badge {
  background: #141c26;
  border: 1px solid #2d3947;
  border-radius: 8px;
  padding: 4px 10px;
  font:
    13px ui-monospace,
    monospace;
  font-weight: 800;
  color: var(--accent2);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: #121922;
  border: 1px solid #202a35;
  margin: 6px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  cursor: pointer;
  border: 2px solid #0d121a;
  box-shadow: 0 2px 8px rgba(35, 168, 255, 0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  cursor: pointer;
  border: 2px solid #0d121a;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: #121922;
  border: 1px solid #202a35;
}
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.toggle {
  border: 1px solid #2d3947;
  background: #141c26;
  border-radius: 11px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  color: #aab5c3;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.toggle:hover {
  border-color: #4b5c70;
}
.toggle small {
  display: block;
  font-size: 9px;
  color: #7f8b9b;
  margin-top: 3px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.toggle.active {
  background: linear-gradient(145deg, #1c6b5f, #174f47);
  border-color: #2f7d6f;
  color: #fff;
}
.toggle.active small {
  color: #bdeee0;
}
.adv-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #c6ceda;
  cursor: pointer;
}
.switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: #1c2530;
  border: 1px solid #2d3947;
  position: relative;
  cursor: pointer;
  flex: none;
  margin: 0;
}
.switch input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #8a97a8;
  transition:
    transform 0.15s,
    background 0.15s;
}
.switch input[type="checkbox"]:checked {
  background: linear-gradient(145deg, #1c6b5f, #174f47);
  border-color: #2f7d6f;
}
.switch input[type="checkbox"]:checked::before {
  transform: translateX(15px);
  background: #eafff6;
}
.field {
  flex: 1;
  min-width: 180px;
}
.field label {
  display: block;
  font-size: 11px;
  color: #7f8b9b;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.text-input {
  width: 100%;
  background: #0f151d;
  border: 1px solid #26313e;
  border-radius: 9px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
}
.text-input:focus {
  outline: none;
  border-color: #4b5c70;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 22px 0;
}
button.primary {
  border: 1px solid #286b60;
  border-radius: 10px;
  background: linear-gradient(145deg, #1c6b5f, #174f47);
  color: #e7edf5;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
button.primary:hover {
  border-color: #4de1c0;
}
.legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 15px 18px;
  color: #748093;
  font-size: 11px;
  border-top: 1px solid #1b2530;
  padding-top: 14px;
}
.bulk-shell {
  padding: 22px;
}
.bulk-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.bulk-row .field {
  max-width: 140px;
}
.bulk-row button {
  border: 1px solid #2d3947;
  border-radius: 10px;
  background: #151e29;
  color: #e7edf5;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.bulk-row button:hover {
  background: #1b2735;
  border-color: #4b5c70;
}
.bulk-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow: auto;
  margin-top: 16px;
}
.bulk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid #202b38;
  border-radius: 10px;
  padding: 9px 12px;
  font:
    12.5px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  word-break: break-all;
  color: #dbe4ee;
}
.bulk-item button {
  flex: none;
  border: 1px solid #2d3947;
  border-radius: 7px;
  background: #151e29;
  color: #cdd6e0;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.bulk-item button:hover {
  background: #1b2735;
}
.bulk-item button.copied {
  background: linear-gradient(145deg, #1c6b5f, #174f47);
  border-color: #2f7d6f;
  color: #fff;
}
.bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  margin: 16px 0 20px;
}
.card {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 15px;
  padding: 20px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7f8b9b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #1b2530;
  font-size: 13px;
}
.info-row:last-child {
  border-bottom: none;
}
.info-row span:first-child {
  color: #8a97a8;
}
.info-row span:last-child {
  font-weight: 700;
  text-align: right;
}
.card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.card ul {
  margin: 0;
  padding-left: 18px;
  color: #818d9d;
  font-size: 13px;
  line-height: 1.8;
}
table.ref {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.ref th,
table.ref td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #1b2530;
}
table.ref th {
  color: #7f8b9b;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
table.ref td {
  color: #c6ceda;
}
table.ref tr:last-child td {
  border-bottom: none;
}
.ref-note {
  color: #7f8b9b;
  font-size: 11.5px;
  margin-top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .toggle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .monitor small {
    display: none;
  }
}
@media (max-width: 560px) {
  .stat strong {
    font-size: 17px;
  }
  .pwd-display {
    font-size: 16px;
    padding: 14px;
  }
  .icon-btn {
    width: 44px;
    font-size: 16px;
  }
  .card {
    padding: 16px;
  }
}
.bulk-copy-all[hidden] {
  display: none;
}
.copy-fail {
  color: var(--danger);
}
