* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6f8; color: #222; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.card { background: #fff; padding: 32px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.08); width: 320px; }
.card h2 { margin-top: 0; }
.card input { width: 100%; padding: 10px; margin: 12px 0; border: 1px solid #ccc; border-radius: 6px; }
.btn { background: #f0f0f0; border: 1px solid #ccc; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #e6e6e6; }
.btn.primary { background: #1976d2; color: #fff; border-color: #1976d2; }
.btn.primary:hover { background: #1565c0; }
.btn.warn { background: #ff9800; color: #fff; border-color: #ff9800; }
.err { color: #d32f2f; font-size: 13px; min-height: 16px; }
.app .top { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 12px 18px; border-bottom: 1px solid #e0e0e0; }
.brand { font-weight: 700; font-size: 17px; }
main { padding: 18px; max-width: 1100px; margin: 0 auto; }
h3 { margin: 18px 0 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid #e0e0e0; padding: 9px 10px; text-align: left; font-size: 14px; }
th { background: #fafafa; }
.fld { display: block; margin: 10px 0; font-size: 13px; color: #555; }
.inp { width: 100%; padding: 9px; margin-top: 4px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; }
.block { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; margin: 10px 0; }
.block .bt { font-size: 12px; color: #888; margin-bottom: 6px; display: flex; justify-content: space-between; }
.block textarea, .block input.cell { width: 100%; border: 1px solid #ccc; border-radius: 6px; padding: 8px; font-size: 14px; font-family: inherit; }
.block textarea { min-height: 64px; resize: vertical; }
table.etable { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.etable td { padding: 4px; }
.ed-actions { margin: 16px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.result { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 8px; padding: 14px; }
.result a { color: #1976d2; word-break: break-all; }
.result img { max-width: 220px; display: block; margin-top: 8px; border: 1px solid #ccc; }
.result .url-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.result .url-row .url-prefix { color: #555; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.result .slug-input { display: inline-block; width: auto; min-width: 220px; margin-top: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.result .toggle-row { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; cursor: pointer; user-select: none; }
.result .toggle-row input { width: 16px; height: 16px; }
.result .old-slugs { margin-top: 8px; font-size: 13px; color: #555; word-break: break-all; }
.result .old-slugs .old-inactive { color: #999; text-decoration: line-through; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag.draft { background: #fff3e0; color: #e65100; }
.tag.pub { background: #e8f5e9; color: #2e7d32; }
