.sitemap-tree-container { margin-top: 24px; }
.sitemap-control-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); }
.sitemap-search-wrap { flex: 1; min-width: 280px; }
.sitemap-search-wrap input { width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); font-size: 14px; background: var(--paper); color: var(--ink); }
.sitemap-search-wrap input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,92,255,.14); }
.sitemap-actions { display: flex; align-items: center; gap: 12px; }
.sitemap-btn { min-height: 42px; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius-full); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.sitemap-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sitemap-counter { color: var(--muted); font-size: 13px; margin-left: 8px; }
.sitemap-counter strong { color: var(--ink); }
.tree-root { display: grid; gap: 16px; }
.tree-branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-subtle); }
.tree-branch-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: var(--paper); cursor: pointer; font-weight: 750; font-size: 18px; user-select: none; border-bottom: 1px solid var(--line); }
.tree-branch-header:hover { background: var(--surface-warm); }
.tree-branch-icon { font-size: 20px; }
.tree-branch-title { flex: 1; color: var(--ink); }
.tree-badge { padding: 3px 10px; background: var(--blue-pale); color: var(--blue-deep); border-radius: var(--radius-full); font-size: 12px; font-weight: 800; }
.tree-branch-body { display: grid; gap: 20px; padding: 20px 24px 24px; }
.tree-subfolder { position: relative; margin-left: 8px; padding-left: 20px; border-left: 2px dashed var(--line-dark); }
.tree-subfolder-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; cursor: pointer; font-size: 16px; font-weight: 750; user-select: none; }
.tree-folder-icon { font-size: 16px; }
.tree-folder-link { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.tree-folder-title { color: var(--ink); }
.tree-sub-badge { padding: 2px 8px; background: var(--surface-warm); color: var(--muted); border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }
.tree-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; margin: 0; padding-left: 20px; list-style: none; }
.tree-list--main { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 8px; padding-left: 0; }
.tree-item { position: relative; }
.tree-item::before { position: absolute; left: -12px; color: var(--blue); font-weight: 900; content: "•"; }
.tree-list--main .tree-item::before { display: none; }
.tree-link { display: inline-block; padding: 3px 0; color: var(--ink-soft); font-size: 14px; line-height: 1.4; text-decoration: none; transition: color var(--transition); }
.tree-link:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.tree-link--main { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); color: var(--blue-deep); font-size: 15px; font-weight: 700; }
.tree-link--main:hover { border-color: var(--blue); background: var(--blue-pale); text-decoration: none; }
@media (max-width: 640px) { .sitemap-search-wrap { min-width: 100%; } .sitemap-actions { width: 100%; flex-wrap: wrap; } .sitemap-counter { width: 100%; margin-left: 0; } .tree-branch-header, .tree-branch-body { padding-inline: 16px; } .tree-list, .tree-list--main { grid-template-columns: 1fr; } }
