
    :root {
      --bg:        #080b0f;
      --surface:   #0d1117;
      --surface2:  #111820;
      --border:    rgba(80,180,255,0.08);
      --border-hi: rgba(80,180,255,0.28);
      --text:      #c8d4de;
      --muted:     #4e6070;
      --faint:     #1e2530;
      --accent:    #3b9eff;
      --accent-dim:rgba(59,158,255,0.1);
      --green:     #00e5a0;
      --green-dim: rgba(0,229,160,0.1);
      --yellow:    #f5c842;
      --orange:    #ff8c42;
      --red:       #ff4d4d;
      --font-d: 'Cabinet Grotesk', sans-serif;
      --font-b: 'Satoshi', sans-serif;
      --font-m: 'Courier New', monospace;
      --r: 0.5rem;
    }
    [data-theme="light"] {
      --bg:        #f2f4f7;
      --surface:   #ffffff;
      --surface2:  #edf0f4;
      --border:    rgba(59,158,255,0.13);
      --border-hi: rgba(59,158,255,0.38);
      --text:      #1a2433;
      --muted:     #6b7f96;
      --faint:     #dde3eb;
      --accent:    #1a7adb;
      --accent-dim:rgba(26,122,219,0.08);
      --green-dim: rgba(0,180,120,0.08);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }


    /* subtle grid */
    body::after {
      content: '';
      position: fixed; inset: 0;
      background-size: 52px 52px;
      pointer-events: none; z-index: 0;
    }
/* OLD NAV, page-localized */
    subnav {
      position: sticky; top: 0; z-index: 50;
      background: color-mix(in oklab, var(--bg) 85%, transparent);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
      padding: 0.7rem 1.5rem;
      display: flex; align-items: center; justify-content: space-between;
    }
    .sunnav-logo {
      font-family: var(--font-d); font-weight: 900; font-size: 1rem;
      color: var(--text); letter-spacing: -0.03em;
    }
    .subnav-logo span { color: var(--accent); }
    .subnav-right { display: flex; align-items: center; gap: 1.25rem; }
    .subnav-links { display: flex; gap: 1.25rem; list-style: none; }
    .subnav-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color 0.18s; }
    .subnav-links a:hover { color: var(--text); }


    main {
      position: relative; z-index: 1;
      max-width: 720px; margin-inline: auto;
      padding: 2.5rem 1.25rem 5rem;
      display: flex; flex-direction: column; gap: 2rem;
    }

    /* ── Page header ── */
    .page-header { text-align: center; padding-bottom: 0.25rem; }
    .page-header h1 {
      font-family: var(--font-d);
      font-size: clamp(1.8rem, 5vw, 2.8rem);
      font-weight: 900; letter-spacing: -0.04em;
      line-height: 1.1; margin-bottom: 0.4rem;
    }
    .page-header p { font-size: 0.9rem; color: var(--muted); }

    /* ── Privacy strip ── */
    .privacy-strip {
      display: flex; align-items: center; justify-content: center;
      gap: 0.5rem; flex-wrap: wrap;
      background: var(--green-dim);
      border: 1px solid rgba(0,229,160,0.18);
      border-radius: var(--r); padding: 0.6rem 1rem;
      font-size: 0.78rem; color: var(--green); font-weight: 500;
    }
    .privacy-strip span { color: var(--muted); font-weight: 400; }

    /* ── Card ── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 0.8rem; padding: 1.25rem;
    }
    .card-label {
      font-size: 0.65rem; font-weight: 700;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 1rem;
    }

    /* ── Options row ── */
    .opt-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.1rem 2rem;
      margin-bottom: 1.25rem;
    }
    @media (max-width: 480px) { .opt-row { grid-template-columns: 1fr; } }

    .opt-group { display: flex; flex-direction: column; gap: 0.35rem; }
    .opt-label {
      font-size: 0.7rem; font-weight: 600;
      letter-spacing: 0.07em; text-transform: uppercase;
      color: var(--muted);
    }

    .range-wrap { display: flex; align-items: center; gap: 0.6rem; }
    input[type="range"] {
      flex: 1; -webkit-appearance: none; appearance: none;
      height: 4px; border-radius: 999px;
      background: var(--faint); outline: none; cursor: pointer;
    }
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none; appearance: none;
      width: 15px; height: 15px; border-radius: 50%;
      background: var(--accent); cursor: pointer;
      box-shadow: 0 0 6px rgba(59,158,255,0.4);
    }
    .range-val {
      font-family: var(--font-m); font-size: 0.82rem;
      color: var(--accent); font-weight: 600; min-width: 2.2ch; text-align: right;
    }

    .checks { display: flex; flex-direction: column; gap: 0.4rem; }
    .check-row { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; user-select: none; }
    .check-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
    .check-row span { font-size: 0.82rem; color: var(--text); }
    .check-row small { font-size: 0.68rem; color: var(--muted); margin-left: auto; font-family: var(--font-m); }

    .custom-input {
      background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--r); padding: 0.45rem 0.7rem;
      color: var(--text); font-family: var(--font-m); font-size: 0.82rem;
      width: 100%; outline: none; transition: border-color 0.2s;
    }
    .custom-input:focus { border-color: var(--border-hi); }
    .custom-input::placeholder { color: var(--faint); }

    /* ── Divider ── */
    .divider { height: 1px; background: var(--border); margin: 1rem 0; }

    /* ── Generate button ── */
    .generate-btn {
      width: 100%;
      background: var(--accent-dim); border: 1px solid var(--border-hi);
      border-radius: var(--r); color: var(--accent);
      font-family: var(--font-d); font-size: 0.95rem; font-weight: 800;
      letter-spacing: 0.04em; padding: 0.75rem;
      cursor: pointer; transition: background 0.18s, box-shadow 0.18s;
      margin-bottom: 1rem;
    }
    .generate-btn:hover { background: rgba(59,158,255,0.18); box-shadow: 0 0 18px rgba(59,158,255,0.12); }
    .generate-btn:active { opacity: 0.8; }

    /* ── Password list ── */
    .pw-list { display: flex; flex-direction: column; gap: 0.5rem; }

    .pw-item {
      display: flex; align-items: center; gap: 0.5rem;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--r); padding: 0.65rem 0.85rem;
      cursor: pointer; transition: border-color 0.18s, background 0.15s;
      position: relative;
    }
    .pw-item:hover { border-color: var(--border-hi); }
    .pw-item.copied { background: var(--green-dim); border-color: rgba(0,229,160,0.3); }

    .pw-text {
      flex: 1; font-family: var(--font-m);
      font-size: clamp(0.78rem, 2.2vw, 0.92rem);
      color: var(--text); word-break: break-all; line-height: 1.4;
      user-select: all;
    }

    .pw-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

    .pw-strength-dot {
      width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    }

    .copy-badge {
      font-size: 0.62rem; font-family: var(--font-m);
      letter-spacing: 0.06em; color: var(--muted);
      opacity: 0; transition: opacity 0.2s;
    }
    .pw-item:hover .copy-badge { opacity: 1; }
    .pw-item.copied .copy-badge { opacity: 1; color: var(--green); }

    /* ── Strength bar (per-item inline) ── */
    .strength-mini {
      display: flex; align-items: center; gap: 0.4rem;
      font-size: 0.68rem; color: var(--muted);
      padding: 0 0.85rem 0.55rem;
      margin-top: -0.3rem;
    }
    .bar-mini-track {
      flex: 1; height: 3px; border-radius: 999px; background: var(--faint); overflow: hidden;
    }
    .bar-mini-fill { height: 100%; border-radius: 999px; transition: width 0.35s; }

    .list-hint {
      font-size: 0.72rem; color: var(--muted); text-align: center;
      font-family: var(--font-m); margin-top: 0.25rem;
    }

    /* ── Passphrase section ── */
    .phrase-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }

    .phrase-input-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
    .phrase-input {
      flex: 1; background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--r); padding: 0.6rem 0.85rem;
      color: var(--text); font-family: var(--font-b); font-size: 0.88rem;
      outline: none; transition: border-color 0.2s;
    }
    .phrase-input:focus { border-color: var(--border-hi); }
    .phrase-input::placeholder { color: var(--faint); }

    .btn-sm {
      background: var(--accent-dim); border: 1px solid var(--border-hi);
      border-radius: var(--r); color: var(--accent);
      font-family: var(--font-b); font-size: 0.8rem; font-weight: 600;
      padding: 0.6rem 0.9rem; cursor: pointer;
      transition: background 0.18s; white-space: nowrap;
    }
    .btn-sm:hover { background: rgba(59,158,255,0.2); }

    /* phrase variants */
    .phrase-variants { display: flex; flex-direction: column; gap: 0.4rem; }
    .variant-label {
      font-size: 0.65rem; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted); padding: 0.25rem 0 0.1rem;
    }

    /* ── Tips ── */
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
    @media (max-width: 480px) { .tips-grid { grid-template-columns: 1fr; } }

    .tip {
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--r); padding: 0.85rem;
    }
    .tip-icon { font-size: 1.1rem; margin-bottom: 0.3rem; display: block; }
    .tip-title { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
    .tip-body { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }

    h2 {
      font-family: var(--font-d); font-size: clamp(1.1rem, 3vw, 1.5rem);
      font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.2rem;
    }
    .sec-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }

    @media (prefers-reduced-motion: reduce) {
      .bar-mini-fill, .bar-fill { transition: none; }
    }
  