*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0f0f14;--bg2:#16161f;--bg3:#1e1e2e;--bg4:#26263a;
  --border:#2a2a3d;--border2:#3a3a55;
  --text:#e4e4ef;--text2:#a0a0b8;--text3:#6e6e8a;
  --accent:#7c5cfc;--accent2:#9b82ff;--accent-bg:rgba(124,92,252,.1);
  --green:#34d399;--yellow:#fbbf24;--red:#f87171;
  --radius:12px;--radius-sm:8px;
  --font:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --shadow:0 4px 24px rgba(0,0,0,.3);
}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}
.container{max-width:1160px;margin:0 auto;padding:0 1.5rem}
a{color:var(--accent2);text-decoration:none}
a:hover{text-decoration:underline}
img,svg{max-width:100%;height:auto}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(15,15,20,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:56px}
.logo{display:flex;align-items:center;gap:.5rem;color:var(--text);font-weight:700;font-size:1rem}
.logo:hover{text-decoration:none}
.logo span{letter-spacing:-.01em}
.site-nav{display:flex;gap:1.5rem;align-items:center}
.site-nav a{color:var(--text2);font-size:.875rem;font-weight:500}
.site-nav a:hover{color:var(--text);text-decoration:none}
.shortlist-badge{background:var(--accent);color:#fff;font-size:.7rem;padding:.1rem .4rem;border-radius:10px;font-weight:700;margin-left:.25rem}

/* Hero */
.hero{padding:4rem 0 2rem}
.hero-inner{max-width:640px}
.eyebrow{display:inline-block;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--accent2);background:var(--accent-bg);padding:.25rem .75rem;border-radius:20px;margin-bottom:1rem}
.hero h1{font-size:clamp(2rem,5vw,3rem);font-weight:800;line-height:1.15;letter-spacing:-.02em;margin-bottom:1rem}
.hero-sub{font-size:1.125rem;color:var(--text2);max-width:540px}

/* Studio workspace */
.studio-workspace{padding:1rem 0 3rem}
.workspace-grid{display:grid;grid-template-columns:340px 1fr;gap:1.5rem;align-items:start}
@media(max-width:860px){.workspace-grid{grid-template-columns:1fr}}

.panel{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem}
.panel h2{font-size:1.125rem;font-weight:700;margin-bottom:.25rem}
.panel-desc{font-size:.875rem;color:var(--text2);margin-bottom:1.25rem}

/* Setup form */
.setup-form{display:flex;flex-direction:column;gap:1rem}
.field{display:flex;flex-direction:column;gap:.35rem}
.field label{font-size:.8125rem;font-weight:600;color:var(--text)}
.field .hint{font-weight:400;color:var(--text3);font-size:.75rem}
.field input,.field select{
  background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);
  color:var(--text);padding:.6rem .85rem;font-size:.875rem;font-family:inherit;
  outline:none;transition:border-color .15s;width:100%
}
.field input:focus,.field select:focus{border-color:var(--accent)}
.field input::placeholder{color:var(--text3)}
.field select{appearance:none;cursor:pointer}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.6rem 1.25rem;border-radius:var(--radius-sm);font-size:.875rem;font-weight:600;
  font-family:inherit;cursor:pointer;border:1px solid transparent;transition:all .15s}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent2);text-decoration:none}
.btn-outline{background:transparent;border-color:var(--border2);color:var(--text2)}
.btn-outline:hover{border-color:var(--accent);color:var(--text)}
.btn-full{width:100%}
.btn:disabled{opacity:.45;cursor:not-allowed}

.presets{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem;align-items:center}
.presets-label{font-size:.75rem;color:var(--text3)}
.preset-btn{font-size:.75rem;padding:.25rem .65rem;border-radius:20px;border:1px solid var(--border2);
  background:transparent;color:var(--text2);cursor:pointer;font-family:inherit;transition:all .15s}
.preset-btn:hover{border-color:var(--accent);color:var(--text)}

/* Results panel */
.results-panel{min-height:400px;position:sticky;top:72px}
.results-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-bottom:.5rem}
.results-header h2{font-size:1.125rem;font-weight:700}
.round-tabs{display:flex;gap:.25rem;flex-wrap:wrap}
.round-tab{font-size:.75rem;padding:.35rem .75rem;border-radius:20px;border:1px solid var(--border2);
  background:transparent;color:var(--text2);cursor:pointer;font-family:inherit;transition:all .15s}
.round-tab:hover{border-color:var(--accent);color:var(--text)}
.round-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}
.round-description{font-size:.8125rem;color:var(--text3);margin-bottom:1rem;min-height:1.3em}

.candidates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.75rem}
.candidate-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:1rem;display:flex;flex-direction:column;gap:.5rem;transition:border-color .15s;position:relative}
.candidate-card:hover{border-color:var(--border2)}
.candidate-name{font-size:1rem;font-weight:700;line-height:1.3}
.candidate-scores{display:flex;gap:.5rem;flex-wrap:wrap}
.score-pill{font-size:.65rem;padding:.15rem .5rem;border-radius:10px;font-weight:600}
.score-phonetic{background:rgba(52,211,153,.12);color:var(--green)}
.score-unique{background:rgba(251,191,36,.12);color:var(--yellow)}
.score-memorable{background:rgba(155,130,255,.15);color:var(--accent2)}
.candidate-actions{display:flex;gap:.5rem;margin-top:auto}
.candidate-actions .btn{flex:1;padding:.4rem;font-size:.75rem}
.save-btn{color:var(--text2);border-color:var(--border)}
.save-btn:hover{border-color:var(--green);color:var(--green)}
.save-btn.saved{background:rgba(52,211,153,.1);border-color:var(--green);color:var(--green)}

.empty-state{grid-column:1/-1;text-align:center;padding:3rem 1rem;color:var(--text3)}
.empty-state svg{margin-bottom:.75rem;opacity:.5}

.clash-warning{background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.25);
  border-radius:var(--radius-sm);padding:.75rem 1rem;font-size:.8125rem;color:var(--red);margin-top:1rem}

/* Shortlist */
.shortlist-section{padding:3rem 0;background:var(--bg2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.shortlist-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}
.shortlist-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.shortlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.75rem}
.shortlist-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1rem;position:relative}
.shortlist-card .candidate-name{font-size:.95rem}
.shortlist-card .remove-btn{position:absolute;top:.5rem;right:.5rem;background:none;border:none;
  color:var(--text3);cursor:pointer;font-size:1.1rem;line-height:1;padding:.15rem .35rem;border-radius:4px}
.shortlist-card .remove-btn:hover{color:var(--red);background:rgba(248,113,113,.1)}
.shortlist-card .card-meta{font-size:.7rem;color:var(--text3);margin-top:.25rem}

/* Examples */
.examples-section{padding:3rem 0}
.examples-section h2{font-size:1.5rem;font-weight:800;margin-bottom:.25rem}
.examples-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem;margin-top:1.5rem}
.example-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;display:flex;flex-direction:column;gap:.5rem}
.example-card h3{font-size:.95rem;font-weight:700;color:var(--accent2)}
.example-card p{font-size:.85rem;color:var(--text2);line-height:1.55}
.example-tag{font-size:.7rem;font-weight:600;color:var(--text3);background:var(--bg3);padding:.2rem .5rem;border-radius:6px;align-self:flex-start;margin-top:auto}

/* Guide */
.guide-section{padding:3rem 0;background:var(--bg2);border-top:1px solid var(--border)}
.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2.5rem}
@media(max-width:720px){.guide-grid{grid-template-columns:1fr}}
.guide-block h2{font-size:1.125rem;font-weight:700;margin-bottom:1rem}
.guide-block ol,.guide-block ul{list-style:none;display:flex;flex-direction:column;gap:.75rem}
.guide-block li{font-size:.9rem;color:var(--text2);padding-left:1.25rem;position:relative}
.guide-block li::before{content:"→";position:absolute;left:0;color:var(--accent);font-weight:700;font-size:.8rem}
.guide-block strong{color:var(--text);font-weight:600}
.mistake-list li::before{content:"✕";color:var(--red)}

.guide-faq{border-top:1px solid var(--border);padding-top:1.5rem}
.guide-faq h2{font-size:1.125rem;font-weight:700;margin-bottom:1rem}
details{border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:.5rem;overflow:hidden}
summary{padding:.75rem 1rem;cursor:pointer;font-size:.9rem;font-weight:600;color:var(--text);list-style:none;display:flex;align-items:center;justify-content:space-between}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:1.1rem;color:var(--accent);transition:transform .2s}
details[open] summary::after{content:"−"}
details p{padding:0 1rem .75rem;font-size:.85rem;color:var(--text2);line-height:1.55}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:2rem 0}
.footer-grid{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}
.footer-brand p{font-size:.8rem;color:var(--text3);margin-top:.25rem}
.footer-brand a{color:var(--text2)}
.footer-links{display:flex;gap:1.25rem;flex-wrap:wrap}
.footer-links a{font-size:.8rem;color:var(--text3)}
.footer-links a:hover{color:var(--text)}
.footer-note{font-size:.75rem;color:var(--text3)}

/* Toast */
.toast{position:fixed;bottom:1.5rem;right:1.5rem;background:var(--bg3);border:1px solid var(--border2);
  color:var(--text);padding:.75rem 1.25rem;border-radius:var(--radius-sm);font-size:.85rem;
  box-shadow:var(--shadow);z-index:200;animation:fadeIn .2s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* Scrollbar */
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:var(--border2);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:var(--text3)}

/* Selection */
::selection{background:var(--accent);color:#fff}

/* Responsive */
@media(max-width:600px){
  .hero{padding:2.5rem 0 1.5rem}
  .site-nav{gap:.75rem}
  .site-nav a{font-size:.8rem}
  .results-panel{position:static}
  .candidates-grid{grid-template-columns:1fr 1fr}
  .shortlist-grid{grid-template-columns:1fr 1fr}
  .examples-grid{grid-template-columns:1fr}
}
@media(max-width:400px){
  .candidates-grid,.shortlist-grid{grid-template-columns:1fr}
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
