:root{
  --bg:#070612;
  --panel:#0e0a20;
  --panel2:#0b081a;
  --text:#f6f4ff;
  --muted:#bdb6e6;
  --border:rgba(255,255,255,.10);
  --ring:rgba(168,85,247,.35);
  --shadow:0 18px 45px rgba(0,0,0,.45);
  --radius:18px;
  --accent:#a855f7;
  --accent2:#22d3ee;
  --btn:#161030;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 10%, rgba(168,85,247,.20), transparent 55%),
              radial-gradient(1000px 650px at 80% 30%, rgba(34,211,238,.15), transparent 60%),
              linear-gradient(180deg, var(--bg), #05040b 70%);
  color:var(--text);
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:22px;
}

.head{
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:16px;
}

.title h1{
  margin:0;
  font-size:26px;
  letter-spacing:.2px;
}
.title p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}

.stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.stat{
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  min-width:110px;
  box-shadow: var(--shadow);
}
.stat .k{display:block;color:var(--muted);font-size:12px}
.stat .v{display:block;font-size:18px;margin-top:2px}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 960px){
  .grid{grid-template-columns:1fr}
  .head{flex-direction:column}
}

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 14px 10px;
  border-bottom:1px solid var(--border);
  background: rgba(0,0,0,.18);
}
.panel-head h2{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
}

.area{
  width:100%;
  height:360px;
  resize:vertical;
  padding:14px;
  background: rgba(0,0,0,.18);
  border:0;
  outline:none;
  color:var(--text);
  font-size:14px;
  line-height:1.4;
}

.options{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  padding:12px 14px 0;
}
@media (max-width: 520px){
  .options{grid-template-columns:1fr}
}

.chk{
  display:flex;
  gap:10px;
  align-items:center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding:10px 10px;
  color:var(--text);
  user-select:none;
}
.chk input{accent-color: var(--accent)}

.row{
  display:flex;
  gap:10px;
  align-items:center;
}
.split{
  padding:12px 14px 0;
  align-items:flex-end;
}
.field{flex:1; min-width:0}
.field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.field small{
  display:block;
  margin-top:6px;
  color:rgba(255,255,255,.55);
  font-size:11px;
}
.input{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.20);
  color:var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(168,85,247,.55);
  box-shadow: 0 0 0 6px rgba(168,85,247,.15);
}

.actions{
  padding:14px;
  border-top:1px solid var(--border);
  justify-content:flex-start;
  flex-wrap:wrap;
}

.btn{
  border:1px solid rgba(168,85,247,.35);
  background: linear-gradient(180deg, rgba(168,85,247,.24), rgba(168,85,247,.12));
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .08s ease, filter .08s ease, border-color .08s ease;
}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform: translateY(1px)}
.btn.ghost{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
}

.note{
  padding:10px 14px 14px;
  color:rgba(255,255,255,.70);
  font-size:12px;
  min-height:18px;
}

.foot{
  margin-top:12px;
  color:rgba(255,255,255,.55);
  font-size:12px;
}
