body { min-height: 100dvh; display: flex; flex-direction: column; }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 0.5rem;
}
header .left { display: flex; align-items: center; gap: 0.6rem; }
header h1 { font-size: 1.1rem; font-weight: 600; }
header h1 a { color: var(--muted); text-decoration: none; }
header h1 .buf { color: var(--text); cursor: pointer; }
header h1 .buf:hover { text-decoration: underline; text-decoration-style: dotted; }
header h1 .buf-input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: inherit; font-weight: inherit; padding: 0.1rem 0.3rem; border-radius: 4px;
  outline: none;
}
header h1 .buf-input:focus { border-color: var(--accent); }
.status {
  font-size: 0.8rem; color: var(--muted); transition: color 0.2s;
}
.status.saved { color: var(--green); }
.status.saving { color: var(--accent); }
.status.error { color: #999; }
.actions { display: flex; gap: 0.5rem; align-items: center; }
button { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
button:active { transform: scale(0.97); }
.copy-ok { background: #444 !important; color: #fff !important; }
#del-btn { background: transparent; color: var(--muted); }
#del-btn:hover { background: #444; color: #fff; }
.editor-wrap { flex: 1; display: flex; padding: 0.5rem; }
textarea {
  flex: 1; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 1rem;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.95rem; line-height: 1.5; resize: none; outline: none;
}
textarea:focus { border-color: var(--accent); }
textarea::placeholder { color: var(--muted); }
