*{box-sizing:border-box;font-family:Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif}
body{margin:0;background:#f6f7fb;color:#111}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background:#fff;border-bottom:1px solid #e6e9ef}
.topbar-shell{align-items:flex-start;gap:24px;flex-wrap:wrap}
.brand-block{display:flex;flex-direction:column;gap:16px;min-width:280px;flex:1}
.brand-text h1{margin:0;font-size:32px;color:#0f172a}
.brand-text p{margin:6px 0 0 0;color:#6b7280}
.eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#2563eb;font-weight:700;margin-bottom:6px}
.search-row{display:flex;gap:12px;flex-wrap:wrap}
.search{padding:10px 12px;border:1px solid #d8dde8;border-radius:6px;width:320px;max-width:100%;background:#fff}
.category{padding:10px;border:1px solid #d8dde8;border-radius:6px;background:#fff}
.topbar-actions{display:flex;align-items:center;justify-content:flex-end}
.primary{background:#2563eb;color:#fff;border:none;padding:10px 14px;border-radius:6px;cursor:pointer;text-decoration:none}
.btn{text-decoration:none}
.hero-strip{padding:20px 0 0}
.hero-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hero-card{background:#fff;border:1px solid #e6e9ef;border-radius:10px;padding:16px;box-shadow:0 4px 12px rgba(15,23,42,0.04)}
.hero-card p{margin:8px 0 0 0;color:#6b7280;line-height:1.6;font-size:14px}
.hero-label{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#2563eb;font-weight:700;margin-bottom:8px}
.container{max-width:1100px;margin:20px auto;padding:0 16px}
.layout{display:flex;gap:16px;align-items:flex-start}
.sidebar-shell{position:sticky;top:16px}
.sidebar-item{display:block;padding:11px 12px;margin-bottom:8px;background:#fff;border:1px solid #e6e9ef;border-radius:8px;color:#0f172a;text-decoration:none;transition:background .2s,border .2s;}
.sidebar-item .title{font-size:14px;font-weight:600;line-height:1.3;}
.sidebar-item .subtext{font-size:12px;font-weight:400;color:#6b7280;margin-top:4px;line-height:1.4;}
.sidebar-item:hover{background:#eff6ff;border-color:#dbeafe;}
.sidebar-item.selected{background:#e7f0ff;border-color:#bfdbfe;position:relative;padding-left:14px;}
.sidebar-item.selected::before{content:'';position:absolute;left:0;top:0;width:3px;height:100%;background:#2563eb;border-radius:2px 0 0 2px;}
.template-detail{background:#fff;border:1px solid #e6e9ef;border-radius:8px;padding:16px;min-height:280px}
.detail-body{display:flex;flex-direction:column;gap:12px}
.detail-body h2{margin:0;font-size:24px;color:#111}
.detail-meta{color:#6b7280;font-size:14px;margin-top:8px}
.detail-actions{display:flex;gap:10px}
.detail-actions .btn{width:auto}.detail-content h3{margin:12px 0 4px 0;color:#1f2937}
.detail-content p, .detail-content pre{background:#f8fafc;border:1px solid #e8eef4;border-radius:6px;padding:10px;white-space:pre-wrap;word-break:break-word}
.detail-content pre{white-space:pre-wrap}
.quick-use-panel{margin-top:24px;padding-top:24px;border-top:1px solid #e6e9ef}
.quick-use-panel h3{margin:0 0 12px 0;font-size:16px;color:#1f2937}
.quick-use-note{margin:0 0 12px 0;color:#6b7280;font-size:14px;line-height:1.6}
.quick-use-panel .quick-input{border:1px solid #d8dde8;border-radius:6px}
.doc-list-quick input[type=checkbox]{cursor:pointer;margin:0}
.action-menu{min-width:150px}
.action-menu button{border:none;border-bottom:1px solid #e6e9ef;background:white;cursor:pointer}
.action-menu button:last-child{border-bottom:none}
.hidden{display:none}
.empty{display:flex;justify-content:center;align-items:center;padding:40px;background:#fff;border:1px dashed #e6e9ef;border-radius:8px}
.empty-inner{text-align:center;color:#374151}
.empty .primary{margin-top:12px;display:inline-block}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}.topbar-shell{flex-direction:column}.topbar-actions{justify-content:flex-start}.layout{flex-direction:column}.sidebar-shell{position:static;width:100%!important}.container{padding:0 12px}}

.quick-use-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px 0}
.quick-preview-card{background:#f8fafc;border:1px solid #e8eef4;border-radius:8px;padding:12px;margin-bottom:12px}
.quick-preview-card .preview-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:700;margin-bottom:8px}
.quick-empty-hint{color:#94a3b8;font-style:italic}
