:root{
  --bg:#f4f6f8;
  --card:#ffffff;
  --text:#1b1f24;
  --muted:#5d6775;
  --border:rgba(15,23,42,.10);
  --shadow:0 14px 45px rgba(15,23,42,.10);

  --blue:#0b6bd6;
  --orange:#ff7a00;

  --radius:22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.page{ padding:34px 18px 48px; }

.top{
  text-align:center;
  max-width: 980px;
  margin: 0 auto 18px;
}
.logo{
  width:120px;
  height:120px;
  object-fit:contain;
  display:block;
  margin: 0 auto 10px;
}
.title{
  margin:0;
  font-family:"Open Sans", system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight:800;
  letter-spacing:-.02em;
}
.t-blue{ color:var(--blue); }
.t-orange{ color:var(--orange); }
.subtitle{
  margin: 8px 0 0;
  font-family:"Open Sans", system-ui, sans-serif;
  font-weight:600;
  color:var(--muted);
}

.container{
  max-width: 1100px;
  margin: 0 auto;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card + .card{ margin-top:18px; }

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.small{
  font-size: 12.5px;
  color: var(--muted);
}

.grid{ margin-top: 10px; }

.step-title{
  font-family:"Open Sans", system-ui, sans-serif;
  font-weight:800;
  font-size: 18px;
  margin: 6px 0 10px;
}

.options{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.opt{
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight:700;
  cursor:pointer;
  color: var(--text);
  transition: transform .04s ease, border-color .15s ease, background .15s ease;
}
.opt:hover{ transform: translateY(-1px); border-color: rgba(15,23,42,.22); }
.opt[aria-pressed="true"]{
  border-color: rgba(255,122,0,.55);
  box-shadow: 0 10px 24px rgba(255,122,0,.16);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

.nav-left{
  display:flex;
  gap:10px;
  align-items:center;
}

.nav-right{
  display:flex;
  gap:12px;
  align-items:center;
}

.btn, .btn2{
  border-radius: 999px;
  padding: 10px 16px;
  font-weight:800;
  cursor:pointer;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  color: var(--text);
}

.btn{
  border-color: transparent;
  background: var(--orange);
  color:#fff;
}
.btn:disabled, .btn2:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.toggle{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  font-weight:800;
  color: var(--text);
}
.toggle input{ width:16px; height:16px; }

.two{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 920px){
  .two{ grid-template-columns:1fr; }
}

textarea, input{
  width:100%;
  font-family:Roboto, system-ui, sans-serif;
  font-size:14px;
  border:1px solid rgba(15,23,42,.14);
  border-radius: 14px;
  padding: 12px 12px;
  outline:none;
  background:#fff;
  color: var(--text);
}
textarea:focus, input:focus{
  border-color: rgba(11,107,214,.45);
  box-shadow: 0 0 0 4px rgba(11,107,214,.12);
}

#promptOut{
  min-height: 360px;
  resize: vertical;
}

.kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 620px){
  .kpi{ grid-template-columns:1fr; }
}

.box .k{
  font-size:12px;
  color: var(--muted);
  font-weight:800;
  margin: 0 0 6px;
  font-family:"Open Sans", system-ui, sans-serif;
}

.sep{
  border:0;
  border-top:1px solid rgba(15,23,42,.10);
  margin: 14px 0;
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 12px;
}

.tip{ line-height:1.4; }

.footer-links{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top: 18px;
  flex-wrap:wrap;
}
.linkbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  color: var(--text);
  text-decoration:none;
  font-weight:800;
}
.linkbtn.primary{
  background: var(--orange);
  border-color: transparent;
  color:#fff;
}

.version{
  text-align:center;
  font-size:12px;
  color: var(--muted);
  margin-top: 8px;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  font-weight:700;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}
