/* 密码工坊 — slate-violet vault. Shared shell: base.css */
:root {
  --paper: #f1eef8;
  --paper-deep: #e5dff0;
  --card: #fffcf8;
  --card-soft: #f7f3fb;
  --ink: #1b1726;
  --muted: #665d79;
  --line: #241f33;
  --soft-line: #d8d1e5;
  --accent: #6956c8;
  --accent-dark: #46369e;
  --accent-soft: #e9e4fc;
  --green: #2d7b69;
  --green-soft: #d9f0e7;
  --warning: #a8432c;
  --pw-slate: #242133;
  --pw-slate-deep: #15131f;
  --pw-slate-soft: #302b45;
  --pw-violet: #7c6be0;
  --pw-violet-bright: #b7aaff;
  --pw-violet-soft: #ede8ff;
  --pw-line: #d8d1e5;
  --pw-mint: #5bc7a3;
  --pw-amber: #e0ad5f;
  --pw-danger: #d97757;
  --pw-cream: #fdf9f2;
}

body {
  background-image:
    radial-gradient(circle at 94% -4%, rgba(124, 107, 224, .25), transparent 31rem),
    radial-gradient(circle at 1% 58%, rgba(105, 86, 200, .09), transparent 27rem),
    linear-gradient(rgba(36, 31, 51, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 31, 51, .035) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

::selection { color: #fff; background: var(--accent-dark); }

.brand-mark {
  position: relative;
  color: var(--pw-cream);
  background: var(--accent);
  font-size: 20px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  background: var(--pw-violet-bright);
  border-radius: 50%;
}
.eyebrow span { color: var(--pw-violet-soft); background: var(--pw-slate); }
.top-nav a::after { background: var(--accent); }
.site-footer { background: #16131f; }
.footer-mark { color: var(--pw-cream); background: var(--accent); }

/* Hero */
.pw-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(40px, 8vw, 96px);
  align-items: center;
  padding-block: clamp(54px, 7.6vw, 98px) 72px;
}
.pw-hero .hero-lead { max-width: 620px; color: #554b69; }
.pw-hero .hero h1 { font-size: clamp(56px, 8.7vw, 108px); }
.pw-hero .hero h1 em { color: var(--accent-dark); }
.pw-hero .hero h1 em::after { background: var(--pw-violet); opacity: .2; }
.pw-hero .hero-facts span {
  border-color: #c9c0dc;
  background: rgba(255, 252, 248, .7);
}

.specimen {
  position: relative;
  width: min(100%, 448px);
  justify-self: end;
  padding: 19px 19px 17px;
  color: #f8f4ff;
  background:
    radial-gradient(circle at 84% 13%, rgba(183, 170, 255, .18), transparent 11rem),
    linear-gradient(155deg, #2b2740, #171522 72%);
  border: 2px solid var(--ink);
  border-radius: 23px;
  box-shadow: 12px 12px 0 var(--accent);
  transform: rotate(1.25deg);
}
.specimen::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(183, 170, 255, .13);
  border-radius: 17px;
  pointer-events: none;
}
.specimen-top,
.specimen-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9e94bd;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
}
.specimen-top { padding: 2px 4px 15px; border-bottom: 1px dashed rgba(183, 170, 255, .18); }
.specimen-file { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .03em; }
.specimen-file i { width: 8px; height: 8px; border-radius: 50%; background: var(--pw-mint); box-shadow: 0 0 0 4px rgba(91, 199, 163, .13); }
.specimen-top b {
  padding: 4px 7px;
  color: #191422;
  background: var(--pw-violet-bright);
  border-radius: 3px;
  font-size: 8px;
  letter-spacing: .09em;
}
.specimen-body { position: relative; z-index: 1; padding: 22px 4px 16px; }
.specimen-label {
  margin: 0 0 10px;
  color: #8c81ad;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
}
.specimen-pass {
  min-height: 54px;
  padding: 8px 0 10px;
  color: #fff9ed;
  font-family: var(--font-mono);
  font-size: clamp(21px, 2.35vw, 27px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 22px rgba(183, 170, 255, .18);
}
.specimen-caption { margin: 0; color: #83789f; font-size: 10px; }
.specimen-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.specimen-tags span {
  padding: 4px 7px;
  color: #d8d0f0;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(183, 170, 255, .22);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
}
.specimen-meter {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: 4px 4px 16px;
}
.specimen-meter i { height: 5px; background: var(--pw-violet); border-radius: 20px; box-shadow: 0 0 10px rgba(124, 107, 224, .3); }
.specimen-meter i:nth-child(n+7) { background: #4a4366; box-shadow: none; }
.specimen-foot { padding: 13px 4px 2px; border-top: 1px dashed rgba(183, 170, 255, .18); font-size: 8px; }
.specimen-stamp {
  position: absolute;
  z-index: 2;
  right: -22px;
  bottom: 38px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #191422;
  background: var(--pw-violet-bright);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transform: rotate(8deg);
}

/* Tool layout */
.pw-tool {
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, .84fr);
  gap: 29px;
  scroll-margin-top: 26px;
}
.config-card {
  background: rgba(255, 252, 248, .97);
  border-radius: 21px;
}
.config-card .card-heading h2 { font-size: clamp(25px, 3vw, 34px); }
.config-card .status-pill { color: var(--accent-dark); background: var(--pw-violet-soft); border-color: #bcb0e4; }
.config-card .status-pill.is-ok { color: var(--card); background: var(--green); border-color: var(--green); }

/* Mode switch */
.pw-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 23px 0 13px;
  padding: 5px;
  border: 1px solid var(--pw-line);
  border-radius: 13px;
  background: var(--paper);
}
.pw-modes .mode-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 70px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 11px 10px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
}
.pw-modes .mode-tab:hover:not(.is-active) { background: rgba(255, 252, 248, .7); box-shadow: none; transform: none; }
.pw-modes .mode-tab.is-active {
  color: var(--pw-cream);
  background: var(--pw-slate);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
}
.mode-num { color: var(--accent-dark); font-family: var(--font-mono); font-size: 8px; line-height: 1; }
.is-active .mode-num { color: var(--pw-violet-bright); }
.mode-copy { display: grid; gap: 1px; min-width: 0; }
.mode-copy strong { font-size: 12.5px; line-height: 1.35; }
.mode-copy small { color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.is-active .mode-copy small { color: #a99fc7; }
.mode-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .06em;
}
.is-active .mode-tag { color: var(--pw-mint); }
.mode-tag .lock-dot { margin: 0; padding: 1px 4px; color: #f4efff; background: var(--accent-dark); font-size: 7.5px; }
body.is-premium .mode-tag .lock-dot { display: none; }
.mode-hint { margin: 0 0 18px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }

/* Rule blocks */
.rules-block {
  padding-top: 18px;
  border-top: 1px dashed var(--pw-line);
}
.rules-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.rules-heading h3,
.batch-extra-heading h3,
.phrase-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.rules-heading > span {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: right;
}
.length-field { margin-top: 2px; }
.length-field > span { margin-bottom: 2px; }
#lengthRange { margin-top: 2px; }
.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -7px;
  color: #9187a7;
  font-family: var(--font-mono);
  font-size: 8px;
}

.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.preset-button {
  min-height: 44px;
  padding: 6px 10px;
  color: var(--accent-dark);
  background: var(--pw-violet-soft);
  border: 1px solid #c7bceb;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.preset-button:hover { background: #e1d9fb; border-color: var(--accent); transform: translateY(-1px); }

.charset-fieldset { min-inline-size: 0; margin: 21px 0 0; padding: 0; border: 0; }
.charset-fieldset legend {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 650;
}
.charset-fieldset legend span { color: var(--muted); font-size: 9.5px; font-weight: 400; }
.charset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.charset-tile {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 66px;
  padding: 10px 11px;
  background: #fffdf8;
  border: 1.5px solid #b7adc8;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.charset-tile input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--accent);
}
.charset-tile:has(input:checked) {
  background: linear-gradient(150deg, #fbf9ff, var(--pw-violet-soft));
  border-color: var(--accent);
  box-shadow: 2px 2px 0 #c9bff0;
}
.charset-tile:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.charset-copy { display: grid; gap: 2px; min-width: 0; }
.charset-copy strong { font-size: 12px; line-height: 1.3; }
.charset-copy small { color: var(--muted); font-family: var(--font-mono); font-size: 8.5px; line-height: 1.4; }
.charset-glyph {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.08em;
  opacity: .8;
}

.pool-preview {
  margin-top: 11px;
  padding: 10px 12px;
  background: #f4f0fb;
  border: 1px solid #ded6ed;
  border-radius: 9px;
}
.pool-preview-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9.5px; }
.pool-preview-top span:last-child { color: var(--accent-dark); font-family: var(--font-mono); font-size: 8.5px; }
.pool-preview code {
  display: block;
  max-height: 54px;
  margin-top: 5px;
  overflow: auto;
  color: #4e4664;
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.readable-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin-top: 14px;
  padding: 10px 12px;
  background: #faf6ff;
  border: 1px dashed #cdc3e4;
  border-radius: 9px;
  cursor: pointer;
}
.readable-row input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--accent); }
.readable-row:has(input:disabled) { cursor: not-allowed; opacity: .77; }
.readable-copy { display: grid; gap: 2px; }
.readable-copy strong { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.readable-copy small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.readable-copy .premium-chip { min-height: 19px; padding: 1px 6px; font-size: 8px; }
.compact-lock { margin: 8px 0 0; padding: 7px 10px; font-size: 10.5px; }

/* Batch */
.batch-extra {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(145deg, #f5f1fc, #eee8fb);
  border: 1px solid #d4cae9;
  border-radius: 12px;
}
.batch-extra-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.batch-extra-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; }
.batch-extra .range-field { margin-top: 14px; }
.batch-extra .lock-note { margin-bottom: 0; }

/* Passphrase */
.phrase-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--pw-line);
}
.phrase-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.phrase-heading h3 { margin-top: 3px; }
.phrase-heading p:not(.section-index) { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.phrase-heading .premium-chip { min-height: 24px; }
.phrase-sample {
  margin: 16px 0 17px;
  padding: 12px 14px;
  color: #a99ecb;
  background: var(--pw-slate);
  border: 1px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--accent);
}
.phrase-sample > span { display: block; margin-bottom: 3px; color: #8f84ad; font-size: 8px; letter-spacing: .1em; }
.phrase-sample code { color: #f8f1ff; font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; }
.phrase-panel > .range-field { margin-top: 13px; }
.phrase-options { margin-top: 15px; }
.phrase-checks { display: grid; gap: 1px; align-content: center; }
.phrase-checks .check-row { min-height: 40px; font-size: 11.5px; }
.phrase-hint { margin: 9px 0 0; color: var(--accent-dark); font-size: 10.5px; line-height: 1.65; }
.phrase-panel .lock-note { margin-bottom: 0; }

/* Run */
.run-row { display: flex; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--pw-line); }
.run-main {
  flex: 1;
  min-height: 58px;
  color: #fffbff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 50%),
    var(--accent);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 15px;
  letter-spacing: .02em;
}
.run-main:hover:not(:disabled) { background-color: #5a47bb; }
.run-main .run-spark { color: var(--pw-violet-bright); font-size: 18px; line-height: 1; }
.run-main #runLabel { font-size: 15px; }
.config-foot { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.config-foot span { color: var(--green); }
.config-card .form-error { margin-top: 11px; }

/* Result panel */
.result-card {
  color: #f5f1ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 107, 224, .22), transparent 17rem),
    var(--pw-slate);
  border: 1.5px solid var(--ink);
  border-radius: 21px;
  box-shadow: 7px 7px 0 var(--accent);
}
.result-card .card-heading h2 { color: #fffaf3; }
.result-card .section-index { color: var(--pw-violet-bright); }
.result-card .card-heading p:not(.section-index) { color: #a79dbf; }
.result-card .status-pill { color: #d6cdf0; background: #302b45; border-color: #5b5379; }
.result-card .status-pill.is-ok { color: #10241d; background: var(--pw-mint); border-color: var(--pw-mint); }
.result-card .status-pill.is-error { color: #fff; background: var(--warning); border-color: var(--warning); }

.result-stage {
  margin-top: 19px;
  padding: 13px;
  background: rgba(13, 11, 21, .45);
  border: 1px solid #494261;
  border-radius: 14px;
}
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.result-mode-label { color: #a99fc7; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .13em; text-transform: uppercase; }
.visibility-button {
  min-height: 36px;
  padding: 4px 8px;
  color: #b7aaff;
  background: transparent;
  border: 1px solid #51496b;
  border-radius: 6px;
  font-size: 10px;
  cursor: pointer;
}
.visibility-button:hover:not(:disabled) { color: #fff; border-color: var(--pw-violet-bright); }
.visibility-button:disabled { opacity: .42; cursor: not-allowed; }
.password-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 146px;
  padding: 22px 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(183, 170, 255, .035) 1px, transparent 1px) 0 0 / 38px 100%,
    #11101a;
  border: 1px dashed #554d6f;
  border-radius: 9px;
}
.password-frame::before,
.password-frame::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: rgba(183, 170, 255, .4);
  border-style: solid;
}
.password-frame::before { top: 7px; left: 7px; border-width: 1px 0 0 1px; }
.password-frame::after { right: 7px; bottom: 7px; border-width: 0 1px 1px 0; }
.result-card #result {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #fffaf2;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3.1vw, 31px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.result-card #result.is-batch {
  max-height: 310px;
  overflow: auto;
  color: #eee9ff;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.95;
  text-align: left;
  word-break: break-all;
  scrollbar-color: #5c5378 #1b1727;
}
.result-card #result:empty::before { content: "点击生成，密码会出现在这里"; color: #786f96; font-family: var(--font-sans); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.password-frame.is-concealed #result { color: transparent; user-select: none; text-shadow: 0 0 13px rgba(183, 170, 255, .45); }
.result-veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9d92c0;
  background: #11101a;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.6vw, 25px);
  letter-spacing: .3em;
  text-align: center;
}
.result-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #7f759d;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .05em;
}

/* Strength */
.strength-block {
  margin-top: 14px;
  padding: 13px 14px 12px;
  background: #1e1a2a;
  border: 1px solid #403a55;
  border-radius: 11px;
}
.strength-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.strength-label { display: flex; align-items: baseline; gap: 8px; }
.strength-label span { color: #9b90b8; font-size: 9px; letter-spacing: .08em; }
.strength-label strong { color: #fffaf2; font-family: var(--font-display); font-size: 21px; line-height: 1; }
.entropy-value { color: var(--pw-violet-bright); font-family: var(--font-mono); font-size: 10.5px; }
.strength-track { height: 9px; margin-top: 10px; overflow: hidden; background: #332d47; border-radius: 100px; }
.strength-track i {
  display: block;
  width: 0;
  height: 100%;
  background: #7b7199;
  border-radius: inherit;
  transition: width .26s ease, background .26s ease;
}
.strength-block[data-level="weak"] .strength-track i { background: var(--pw-danger); }
.strength-block[data-level="mid"] .strength-track i { background: var(--pw-amber); }
.strength-block[data-level="strong"] .strength-track i { background: var(--pw-mint); }
.strength-note { margin: 8px 0 0; color: #8e84aa; font-size: 9px; line-height: 1.6; }

.result-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.result-chips span {
  padding: 4px 8px;
  color: #c9c0e3;
  background: #2b263b;
  border: 1px solid #453e5e;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result-card .button { background: #2d283e; color: #ede8fa; border-color: #5a5277; }
.result-card .button:hover:not(:disabled) { background: #37304d; box-shadow: 3px 3px 0 var(--accent); }
.result-card .copy-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 #0e0c15;
}
.result-card .copy-primary:hover:not(:disabled) { background: #5a47bb; }
.result-card .button:disabled { opacity: .42; }
.result-card #downloadTxtBtn.is-copied { color: #10241d; background: var(--pw-mint); border-color: var(--pw-mint); }
.output-meta { margin: 11px 0 0; color: #8d82a9; font-size: 9.5px; line-height: 1.6; }
.privacy-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid #3f3856;
  color: #a69bc4;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .04em;
}
.privacy-strip span { color: var(--pw-mint); }
.result-card .privacy-strip { margin-top: 15px; color: #a69bc4; border-top-color: #3f3856; }
.result-card .privacy-strip span { color: var(--pw-mint); }

/* Guide, FAQ and unlock accents */
.guide-heading { border-bottom-color: #c9c0dc; }
.guide-heading h2 { color: var(--ink); }
.how-to-grid li { background: rgba(255, 252, 248, .86); box-shadow: 3px 3px 0 var(--accent); border-color: var(--ink); }
.how-to-grid li > span { background: var(--accent); }
.faq-list details { background: rgba(255, 252, 248, .8); border-color: #cfc7df; }
.faq-list summary::after { color: var(--accent-dark); }
.unlock-section .premium-map { box-shadow: 5px 5px 0 var(--accent); }
.premium-map .section-index { color: var(--accent-dark); }
.premium-map li span { color: var(--accent-dark); }

/* Referral card, restyled for the slate vault */
.referral-card { background: #17141f; color: #f8f3ff; }
.referral-kicker,
.referral-label,
.referral-foot { color: #a397bd; }
.referral-heading p { color: #b6accb; }
.referral-badge { color: #c2b6db; border-color: #6e638c; }
.referral-progress { color: #d5ccea; }
.referral-steps i { background: #493f5f; }
.referral-link { color: #efe8ff !important; background: #2b263b !important; border-color: #514a6a !important; }
.referral-refresh { color: #c2b6db; border-bottom-color: #62577f; }
.referral-trial { color: #e8dcff; background: rgba(105, 86, 200, .17); border-color: rgba(183, 170, 255, .3); }
.referral-copy:not(.is-copied) { color: #fff; }
.share-prompt-action:not(.is-copied) { color: #fff; }

/* Mobile */
@media (max-width: 900px) {
  .pw-hero { grid-template-columns: 1fr; }
  .specimen { justify-self: start; width: min(100%, 460px); transform: rotate(.6deg); }
  .pw-tool { grid-template-columns: 1fr; }
  .result-card { position: relative; }
}

@media (max-width: 700px) {
  .pw-hero { gap: 36px; padding-block: 46px 54px; }
  .pw-hero .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .specimen { padding: 16px; box-shadow: 8px 8px 0 var(--accent); }
  .specimen-stamp { right: 10px; bottom: 25px; width: 58px; height: 58px; font-size: 8px; }
  .pw-tool { gap: 22px; }
  .pw-modes { gap: 4px; padding: 4px; }
  .pw-modes .mode-tab { min-height: 60px; align-items: center; padding: 9px 4px; text-align: center; }
  .mode-num { display: none; }
  .mode-copy strong { font-size: 11.5px; }
  .mode-copy small { display: none; }
  .mode-tag { top: 4px; right: 4px; font-size: 7px; }
  .mode-hint { margin-bottom: 15px; }
  .charset-tile { grid-template-columns: 19px minmax(0, 1fr); min-height: 62px; padding: 9px 10px; }
  .charset-glyph { display: none; }
  .result-card #result { font-size: clamp(18px, 5.6vw, 26px); }
  .result-card #result.is-batch { font-size: 11.5px; }
  .result-actions .button { flex: 1 1 120px; }
  .phrase-checks .check-row { min-height: 44px; }
}

@media (max-width: 400px) {
  .specimen-pass { font-size: 20px; }
  .specimen-tags span { font-size: 7.5px; }
  .charset-grid { grid-template-columns: 1fr; }
  .rules-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .rules-heading > span { text-align: left; }
  .preset-row { gap: 5px; }
  .preset-button { flex: 1 1 auto; font-size: 9.5px; }
  .result-actions { flex-direction: column; }
  .result-actions .button { width: 100%; }
  .strength-top { align-items: flex-start; flex-direction: column; gap: 4px; }
  .strength-label { gap: 7px; }
  .result-foot { font-size: 7.5px; }
}
