body { background: var(--surface); }
main { max-width: 720px; margin: 0 auto; padding: 40px 16px 60px; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
kbd, code {
  padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg);
  font: 12px/1.6 ui-monospace, Consolas, monospace; color: var(--text);
}
kbd { border-bottom-width: 2px; }
.head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.head h1 { margin: 0 0 2px; font-size: 22px; letter-spacing: -0.02em; }
.head p { margin: 0; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.card h2 { margin: 0 0 12px; font-size: 15px; }
.hero { background: var(--brand-soft); border-color: transparent; }
.hero p { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.count { color: var(--muted); font-weight: 500; font-size: 13px; }
input, textarea, select {
  box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit;
}
textarea { resize: vertical; }
.try { min-height: 70px; }
.search { margin-bottom: 10px; }
.editor { padding: 14px; margin-bottom: 12px; border: 1.5px solid var(--brand); border-radius: 12px; background: var(--brand-soft); }
.editor label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.editor label input, .editor label textarea { margin-top: 4px; font-weight: 400; }
.editor .grid { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
#fTrigger { font-family: ui-monospace, Consolas, monospace; }
.pro-tag {
  display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #fff; vertical-align: 1px;
  background: linear-gradient(95deg, var(--brand), var(--brand-2));
}
.msg { min-height: 1.2em; margin: 4px 0; }
.msg.err { color: var(--danger); }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-top: 1px solid var(--border); }
.item:first-child { border-top: 0; }
.item .trig {
  flex: none; min-width: 64px; padding: 3px 8px; border-radius: 7px; background: var(--brand-soft); color: var(--brand);
  font: 600 13px/1.5 ui-monospace, Consolas, monospace; text-align: center;
}
.item .body { flex: 1; min-width: 0; }
.item .name { font-weight: 600; font-size: 14px; }
.item .preview { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tags { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item.locked { opacity: .55; }
.item .acts { flex: none; display: flex; gap: 6px; }
.item .acts .btn { padding: 5px 10px; font-size: 13px; }
.empty { padding: 12px 4px; margin: 0; }
.tips { margin: 0; padding-left: 18px; }
.tips li { margin: 5px 0; }
.foot { text-align: center; margin-top: 24px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px);
  padding: 8px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; opacity: 0; pointer-events: none; transition: .15s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) { .editor .grid { grid-template-columns: 1fr; } .item { flex-wrap: wrap; } }
