:root{
  --bg:#111217;
  --panel:#181b22;
  --panel-2:#202531;
  --discord:#313338;
  --discord-box:#2b2d31;
  --line:#2d3440;
  --text:#f2f3f5;
  --muted:#b5bac1;
  --accent:#5865f2;
  --danger:#ed4245;
  --button:#4e5058;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:radial-gradient(circle at top,#151925 0%,#111217 60%);
  color:var(--text);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.wrapper{
  width:min(1150px,100%);
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
}

.preview-box{
  background:linear-gradient(180deg,var(--panel) 0%,var(--panel-2) 100%);
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
}

.discord-window{
  background:var(--discord);
  border:none;
  min-height:430px;
}

.discord-top{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

.server-pill{
  width:48px;
  height:48px;
  border-radius:16px;
  background:var(--accent);
}

.discord-top h3{
  font-size:1.1rem;
  margin-bottom:4px;
}

.discord-top p{
  color:var(--muted);
}

.embed-box{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:var(--discord-box);
  padding:18px;
  border-radius:18px;
}

.embed-line{
  width:6px;
  align-self:stretch;
  background:var(--accent);
  border-radius:999px;
}

.embed-label{
  font-size:.8rem;
  letter-spacing:.12em;
  color:#9ea7b7;
  margin-bottom:8px;
}

.embed-content h4{
  font-size:1.9rem;
  margin-bottom:12px;
}

.embed-content p{
  color:#c4c9d3;
  line-height:1.7;
  margin-bottom:18px;
  font-size:1.05rem;
}

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

.discord-btn{
  border:none;
  border-radius:10px;
  padding:10px 16px;
  font-weight:700;
  color:#fff;
  background:var(--button);
  cursor:pointer;
}

.primary-btn{
  background:var(--accent);
}

.danger{
  background:var(--danger);
}

.editor-box{
  display:grid;
  gap:12px;
  min-height:430px;
}

.editor-box h3{
  font-size:2rem;
  margin-bottom:4px;
}

.editor-box label{
  font-size:.95rem;
  font-weight:700;
}

.editor-box input,
.editor-box textarea{
  width:100%;
  background:#0d1220;
  border:1px solid var(--line);
  border-radius:16px;
  color:var(--text);
  padding:16px 18px;
  font:inherit;
}

.editor-box input{
  font-size:1.05rem;
}

.editor-box textarea{
  min-height:160px;
  resize:vertical;
  font-size:1.05rem;
}

.update-btn{
  margin-top:auto;
  border:none;
  border-radius:16px;
  padding:16px 18px;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  font-size:1rem;
  cursor:pointer;
}

@media (max-width: 900px){
  .wrapper{
    grid-template-columns:1fr;
  }
}