:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --panel2:#0c121b;
  --text:#e7eef9;
  --muted:#9fb0c6;
  --border:rgba(231,238,249,.14);
  --accent:#7aa2ff;
  --accent2:#9bffd1;
  --shadow: 0 16px 50px rgba(0,0,0,.55);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px; /* change to 50% if you want a circle */
}


*{box-sizing:border-box}
body{
  margin:0;
  min-height:100svh;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(122,162,255,.18), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(155,255,209,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), #070a0f 60%);
  color:var(--text);
  font-family:var(--sans);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}
.app{
  width:min(980px, 100%);
  display:grid;
  gap:16px;
}
.topbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:6px 2px;
}
h1{
  margin:0;
  font-size:22px;
  letter-spacing:.4px;
  font-weight:700;
}
.sub{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:0;
}
@media (max-width: 880px){
  .grid{grid-template-columns:1fr}
}
.pane{
  padding:16px;
  background:linear-gradient(180deg, var(--panel), var(--panel2));
  border-right:1px solid var(--border);
}
@media (max-width: 880px){
  .pane{border-right:none;border-bottom:1px solid var(--border)}
}
.pane:last-child{border-right:none}
label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:10px;
  letter-spacing:.35px;
  text-transform:uppercase;
}
textarea{
  width:100%;
  min-height:280px;
  resize:vertical;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
  font-family:var(--mono);
  font-size:13.5px;
  line-height:1.45;
}
textarea:focus{
  border-color:rgba(122,162,255,.45);
  box-shadow:0 0 0 3px rgba(122,162,255,.10);
}
.controls{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  margin-top:12px;
  flex-wrap:wrap;
}
button{
  appearance:none;
  border:1px solid rgba(122,162,255,.40);
  background:linear-gradient(180deg, rgba(122,162,255,.22), rgba(122,162,255,.12));
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  letter-spacing:.25px;
  cursor:pointer;
  transition:transform .05s ease, border-color .15s ease, filter .15s ease;
  user-select:none;
}
button:hover{filter:brightness(1.08);border-color:rgba(122,162,255,.62)}
button:active{transform:translateY(1px)}
.hint{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  font-family:var(--sans);
}
.out{
  width:100%;
  min-height:280px;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.18);
  font-family:var(--mono);
  font-size:13.5px;
  line-height:1.45;
  white-space:pre-wrap;
  word-break:break-word;
}
.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
  flex-wrap:wrap;
}
.pill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
  font-family:var(--mono);
}
.tinybtn{
  padding:8px 12px;
  font-weight:700;
  border-color:rgba(155,255,209,.35);
  background:linear-gradient(180deg, rgba(155,255,209,.18), rgba(155,255,209,.10));
}
