<style>
:root {
  --bg: #0f172a;
  --card: #111827;
  --muted: #94a3b8;
  --fg: #e5e7eb;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --ring: #334155;
  --success: #34d399;
  --danger: #f87171;
  --radius: 12px;
}
html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  background: linear-gradient(120deg, #0f172a 0%, #111827 100%);
  color: var(--fg);
}
.wrap { max-width: 880px; margin: 24px auto; padding: 20px; }
h1 { margin: 0 0 16px; font-size: 22px; font-weight: 700; letter-spacing: .2px; }
p.hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.btn-panel-wrap { margin-bottom: 12px; position: relative; }
.main-btn {
  border: 1px solid var(--ring);
  background: radial-gradient(120px 60px at 10% 10%, #1f2937 20%, #0b1220 100%);
  color: var(--fg);
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: transform .05s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.03);
  text-align: left;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.main-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 10px rgba(0,0,0,0.4); border-color: #3b82f6; }
.main-btn:active { transform: translateY(1px); }
.main-btn.active { border-color: #3b82f6; box-shadow: 0 8px 20px rgba(59,130,246,0.3), inset 0 0 0 1px rgba(255,255,255,.05); }
.badge {
  display: inline-block;
  border: 1px solid #203150;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0b1d39;
  font-size: 11px;
  letter-spacing: .2px;
  color: var(--muted);
}
.panel {
  display: none;
  margin-top: 8px;
  border-color:#3b82f6;
  border: 1px solid #3b82f6;
  border-radius: var(--radius);
  background: #0b1220;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(59,130,246,0.3), inset 0 0 0 1px rgba(255,255,255,.05);
}
.snippet {
  border: 1px solid #1f2937;
  background: #0a1424;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
}
.snippet-title {
  padding: 6px 10px;
  font-weight: 600;
  font-size: 13px;
  background: #1f2937;
  border-bottom: 1px solid #334155;
  color: var(--accent-2);
}
textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px;
  color: var(--fg);
  resize: none;
  font-family: monospace;
  height: 100%;
  min-height: 100px;
  outline: none;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #334155;
  border-bottom: 1px solid var(--muted);
  font-size: 12px;
  color: var(--muted);
}
.copy-btn {
  background: #475569;
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}
.copy-btn.success { background: var(--success); }
.resize-handle {
  height: 8px;
  background: #2d5b9b;
  cursor: ns-resize;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
</style>