/* All project rows share fixed columns, regardless of title length. */
.tree-heading{display:grid;grid-template-columns:22px minmax(0,1fr) 26px 26px;gap:0;align-items:center;min-height:38px;border-radius:7px}
.tree-heading>button{min-width:0;min-height:34px;padding:7px 4px;margin:0;gap:0;text-decoration:none}
.tree-heading>.tree-toggle{width:22px;justify-content:center}
.tree-heading>.tree-title{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:8px;width:100%;justify-content:start;text-align:left;padding:7px 4px}
.tree-title>svg{width:16px;height:16px;min-width:16px;margin:0}
.tree-title>.tree-project-name{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:20px;text-align:left}
.tree-heading>.project-more{width:26px;padding:6px 0;justify-content:center;font-size:18px;line-height:20px;opacity:.7}
.tree-heading>.project-quick-edit{width:26px;justify-content:center;opacity:.65}
.tree-heading>.project-quick-edit:hover,.tree-heading>.project-quick-edit:focus-visible{opacity:1}
.tree-heading:hover,.tree-heading:focus-within{background:var(--hover)}
.tree-heading>.project-more:hover,.tree-heading>.project-more:focus-visible{opacity:1}
.tree-children>button,.tree-children .research-row>button:first-child{justify-content:flex-start;text-align:left}
.tree-children .tree-files{justify-content:flex-start}
.project-detail-shade{position:fixed;inset:0;z-index:1010;display:grid;place-items:center;background:transparent}
.project-detail-panel{position:fixed;width:404px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;background:var(--surface,#fff);color:var(--text,#171717);border:1px solid var(--line,#e5e5e5);border-radius:12px;padding:18px;box-shadow:0 12px 40px #0003}
.project-detail-panel.is-edit{position:relative;width:480px;padding:24px}
.project-detail-panel.is-menu{width:272px;padding:7px;border-radius:14px}
.project-menu-caption{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 10px}
.project-menu-caption small{display:block;margin-top:5px;font-size:11px}
.project-detail-panel kbd{margin-left:auto;font-size:12px;color:var(--muted);font-family:inherit}
.project-card-tools{position:absolute;right:12px;top:12px;display:flex;gap:3px}
.project-card-tools button{padding:6px;width:30px;height:30px;justify-content:center;border-radius:6px;color:var(--muted)}
.project-card-tools button:hover,.project-card-tools button:focus-visible{background:var(--hover);color:var(--text)}
.project-card-tools .card-edit{position:static;font-size:18px;line-height:18px}
.project-detail-panel [role=menu] button{width:100%;min-height:40px;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:9px 11px;border-radius:8px;text-align:left;font-size:14px;color:var(--text)}
.project-detail-panel [role=menu] button:hover:not(:disabled),.project-detail-panel [role=menu] button:focus-visible{background:var(--hover)}
.project-detail-panel [role=menu] svg{flex-shrink:0}
.project-detail-panel [role=menu] hr{border:0;border-top:1px solid var(--line);margin:6px 7px}
.project-menu-value{margin-left:auto;max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}
.project-detail-panel fieldset{padding:0;margin:0;border:0;min-width:0}
.project-detail-panel fieldset>label{margin:16px 0;font-size:13px}
.project-section-choices{display:flex;flex-wrap:wrap;gap:7px;max-height:160px;overflow:auto;margin:12px 0}
.project-section-choices button{padding:6px 9px;border:1px solid var(--line);border-radius:6px;font-size:12px}
.project-group-label{font-size:11px;color:var(--muted);padding:14px 8px 6px;overflow-wrap:anywhere}
.tree-title>.tree-project-name>.project-pin{display:inline-block;vertical-align:-2px;margin-right:5px}
.project-detail-panel header,.project-detail-panel header>div{display:flex;gap:9px;align-items:flex-start;min-width:0}
.project-detail-panel header>div{flex:1;padding-top:4px}
.project-detail-panel header svg{flex-shrink:0;margin-top:3px}
.project-detail-panel header .icon-button{margin:0;padding:4px;min-width:26px;min-height:26px}
.project-detail-panel h2{font-size:16px;line-height:1.6;overflow-wrap:anywhere;margin:0}
.project-detail-panel h3{font-size:13px;display:flex;align-items:center;gap:8px;font-weight:500}
.project-detail-panel p{font-size:13px;line-height:1.7}
.project-detail-count,.project-detail-objective{color:var(--muted);margin:9px 0}
.project-storage{margin:14px 0;padding:14px 0;border-block:1px solid var(--line)}
.project-storage label{font-size:11px;color:var(--muted);margin:12px 0}
.project-storage input{font-size:12px;padding:7px 8px;margin-top:5px;font-family:inherit;color:var(--text);background:var(--bg);border-color:var(--line)}
.project-storage p{font-size:12px;color:var(--muted)}
.project-storage code{font-size:11px;overflow-wrap:anywhere}
.project-storage button{padding:7px 0;font-size:12px;margin-top:8px}
.project-detail-panel footer{display:flex;justify-content:space-between;gap:12px;margin-top:14px}
.project-detail-panel footer button{font-size:13px;padding:8px 10px;justify-content:flex-start}
.project-detail-panel form>label{margin:16px 0;font-size:13px}
.project-detail-panel form .check{display:flex;gap:8px;align-items:center}
.project-detail-panel form .check input{margin:0}
.project-detail-panel .notice button{display:block;padding-left:0;text-decoration:underline;font-size:12px}
.project-detail-panel .notice small{display:block}
@media(min-width:901px){.sidebar{width:272px}.app-main{margin-left:272px}}
@media(max-width:900px){.sidebar{width:min(280px,calc(100vw - 40px))}}
@media(max-width:640px){.project-detail-shade{background:#0004}.project-detail-panel{left:12px!important;right:12px;top:auto!important;bottom:12px;width:auto;max-height:85dvh}.project-detail-panel.is-menu{width:auto}.project-detail-panel.is-edit{position:fixed}.project-detail-panel footer button{min-height:42px}}
@media print{.project-detail-shade{display:none!important}}

.project-storage-paths{margin:12px 0}.project-storage-paths dt{font-size:11px;color:var(--muted);margin-top:12px}.project-storage-paths dd{margin:5px 0 0;padding:8px;background:var(--bg);border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere;word-break:break-word;line-height:1.7;user-select:text}.project-storage-paths code{font-family:inherit;font-size:12px;color:var(--text);white-space:normal}
