*{box-sizing:border-box}
body{
  margin:0;
  background:#f5f3f1;
  color:#191716;
  font-family:Inter,Arial,sans-serif;
}
.topbar{
  background:#171514;
  color:white;
  padding:20px 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand{font-weight:900;letter-spacing:3px;font-size:22px}
.subtitle{font-size:12px;opacity:.65;margin-top:3px}
.mode{
  border:1px solid #555;
  padding:8px 12px;
  border-radius:20px;
  font-size:11px;
  letter-spacing:1px;
}
main{max-width:1050px;margin:auto;padding:25px 18px 80px}
.hero{padding:12px 4px 22px}
.hero h1{font-size:32px;margin:0 0 7px}
.hero p{margin:0;color:#6d6865}
.card{
  background:white;
  border:1px solid #e2dedb;
  border-radius:14px;
  padding:20px;
  margin:13px 0;
  box-shadow:0 2px 8px rgba(0,0,0,.035)
}
.step{
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
  color:#746d68;
  margin-bottom:10px
}
.step-row{display:flex;justify-content:space-between;align-items:center}
select,textarea{
  width:100%;
  border:1px solid #d5d0cc;
  border-radius:9px;
  background:#fff;
  font:inherit;
}
select{padding:13px}
textarea{
  min-height:310px;
  padding:14px;
  resize:vertical;
  font-family:ui-monospace,Consolas,monospace;
  font-size:12px;
  line-height:1.5;
}
.hidden{display:none!important}
.info,.variation-info{
  margin-top:12px;
  padding:12px;
  background:#f7f5f3;
  border-radius:9px;
  font-size:13px;
  line-height:1.5
}
.hook-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:9px
}
.hook{
  border:1px solid #ddd7d3;
  border-radius:10px;
  padding:13px;
  cursor:pointer;
  background:white;
}
.hook:hover,.hook.selected{
  border-color:#171514;
  box-shadow:0 0 0 2px #171514
}
.hook-score{font-size:11px;font-weight:800;margin-bottom:5px}
.hook-type{font-size:10px;text-transform:uppercase;color:#777;margin-bottom:7px}
.hook-text{font-size:15px;font-weight:700;line-height:1.25}
.selected-hook{
  margin-top:12px;
  padding:15px;
  border-radius:10px;
  background:#171514;
  color:#fff;
  font-size:19px;
  font-weight:800
}
.prompt-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.prompt-title{font-size:11px;font-weight:900;margin:0 0 7px}
.before-title{color:#8b6255}
.after-title{color:#3e7358}
.copy-btn,.small-btn{
  border:1px solid #ccc5c0;
  background:#fff;
  border-radius:7px;
  padding:8px 12px;
  cursor:pointer;
  margin-top:7px;
  font-weight:700
}
.caption-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:16px
}
.caption-grid div{
  padding:14px;
  background:#f7f5f3;
  border-radius:9px
}
.caption-grid span{display:block;font-size:10px;color:#777;margin-bottom:6px}
.caption-grid strong{font-size:15px;line-height:1.3}
.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.upload-box{
  min-height:170px;
  border:2px dashed #cbc4bf;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  cursor:pointer;
  padding:20px
}
.upload-box:hover{border-color:#777}
.upload-box input{display:none}
.upload-label{font-weight:900;font-size:13px}
.upload-help{font-size:12px;color:#777;margin-top:7px}
.filename{font-size:11px;margin-top:14px;color:#555;word-break:break-all}
.generate-section{text-align:center;padding:22px 0}
.status{font-size:13px;color:#6f6965;margin-bottom:12px}
.generate{
  width:min(600px,100%);
  border:0;
  border-radius:11px;
  padding:17px;
  background:#171514;
  color:white;
  font-weight:900;
  font-size:15px;
  letter-spacing:.5px;
  cursor:pointer
}
.generate:disabled{opacity:.35;cursor:not-allowed}
.result{
  background:#eaf4ed;
  border:1px solid #bfd8c6;
  padding:18px;
  border-radius:12px
}
.result a{font-weight:800}
@media(max-width:700px){
  .prompt-grid,.caption-grid,.upload-grid{grid-template-columns:1fr}
  .hero h1{font-size:26px}
}
