/* Shared alignment and typography for project components. */
.sog-project-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;color:var(--text-3,#9aa3a7)}
.sog-project-icon>.icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.sog-project-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:5px;text-align:left}
.sog-project-copy>strong{display:block;margin:0;color:inherit;font-size:16px;font-weight:700;line-height:1.45;overflow-wrap:anywhere;white-space:normal}
.sog-project-copy>small{display:block;margin:0;border:0;padding:0;color:var(--text-3,#9aa3a7);font-size:11px;font-weight:400;line-height:1.4;letter-spacing:.06em}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects){display:grid;gap:4px}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects)>button{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;column-gap:var(--sp-3,12px);width:100%;min-height:62px;height:auto;padding:10px 8px 10px 10px;margin:0;border:0;border-radius:var(--r-2,6px);background:transparent;color:var(--text-2,#ddd);font:inherit;text-align:left;cursor:pointer;box-sizing:border-box}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects) .sog-project-icon{width:28px;height:28px;display:grid;place-items:start center}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects) .sog-project-copy{display:flex;gap:4px;text-align:left;align-items:flex-start}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects) .sog-project-copy strong{font-size:14px;font-weight:650;line-height:1.45;color:var(--text-1,#eee);white-space:normal;overflow-wrap:anywhere}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects) .sog-project-copy small{font-size:10px;font-weight:400;color:var(--text-3,#aaa);letter-spacing:.06em}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects)>button:hover{background:var(--surface-2,#232323)}
#pd-sidebar-context :is(#pd-context-projects,#kr-sidebar-projects)>button[aria-current=page]{background:var(--surface-3,#292929);box-shadow:inset 2px 0 var(--gold,#64adba)}
#pd-sidebar-context[data-review-project] #pd-context-projects>button[aria-current=page]{background:transparent;box-shadow:none}
#pd-sidebar-context[data-review-project] #pd-back::before{display:none}
#kr-project-entries{margin:0 0 24px;border-bottom:1px solid var(--hairline,#333)}
#project-desk .pd-project-row{display:grid;grid-template-columns:40px minmax(150px,1fr) minmax(150px,1fr) auto;gap:18px;min-height:96px;padding:20px 10px;margin:0!important;text-align:left;align-items:center;border-radius:0}
#project-desk .pd-project-row .sog-project-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--hairline-strong,#444);border-radius:var(--r-2,6px);background:var(--surface-2,#222)}
#project-desk .pd-project-row .sog-project-copy strong{font-size:17px;font-weight:700;margin:0}
#project-desk .pd-project-row .sog-project-copy small{font-size:11px;font-weight:400;line-height:1.4;letter-spacing:.06em;color:var(--text-3,#aaa)}
#project-desk .pd-project-state{font-size:13px;color:var(--text-3,#aaa);text-align:left}
#pd-project-name,.kr-project-heading{display:flex;gap:15px;align-items:center;text-align:left}
#pd-project-name .sog-project-icon,.kr-project-heading .sog-project-icon{width:40px;height:40px;border:1px solid var(--hairline-strong,#444);border-radius:6px}
#pd-project-name .sog-project-copy strong,.kr-project-heading .sog-project-copy strong{font-size:26px;line-height:1.25;font-weight:700}
.kr-project-heading .sog-project-copy small{font-size:12px;color:#9cabb1;font-weight:400}
#project-tree .project-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;padding:10px 8px;text-align:left;align-items:center}
#project-tree .project-row>.sog-project-icon{width:28px;height:28px;display:grid;place-items:center}
#project-tree .project-row>.sog-project-copy{display:flex;gap:4px;white-space:normal}
#project-tree .project-row>.sog-project-copy strong{font-size:14px;font-weight:650;line-height:1.4}
#project-tree .project-row>.sog-project-copy small{border:0;padding:0;color:var(--text-3,#aaa);font-size:10px;letter-spacing:.06em;text-transform:none}
#project-tree .project-row>small{align-self:start;margin-top:2px;font-size:9px;font-weight:400}
#project-tree .canvas-list{padding-left:38px}#project-tree .new-canvas-inline{padding-left:46px}
/* Component text follows one left edge; center alignment is reserved for icon buttons. */
:is(.pd-record,.pd-current-direction,.pd-adopted-empty,.pd-empty,.pd-panel,.kr-panel,.kr-project-card){text-align:left}
#project-desk :is(.pd-empty,.pd-meeting-empty){text-align:left;padding:24px}
#project-desk :is(.pd-section-heading,.pd-record-top){align-items:center}
#project-desk :is(.pd-current-direction,.pd-record,.pd-adopted-empty) h3{font-size:18px;font-weight:700;line-height:1.4}
#project-desk :is(.pd-current-direction,.pd-record,.pd-adopted-empty) p{font-size:14px;line-height:1.7}
.kr-shell .kr-empty{text-align:left;font-size:14px}.kr-dialog .kr-tabs{margin-top:0}.kr-dialog .kr-tabs button{font-size:13px}.kr-review-layout .kr-section-heading{align-items:baseline}.kr-review-layout .kr-agent-reading{text-align:left}
html[data-theme=light] .sidebar .sog-project-copy>strong{color:#eee!important}html[data-theme=light] .sidebar .sog-project-copy>small,html[data-theme=light] .sidebar .sog-project-icon{color:#aaa!important}
.app-shell.sidebar-collapsed #pd-sidebar-context #kr-sidebar-projects{display:none}
@container main-pane (max-width:900px){#project-desk .pd-project-row{grid-template-columns:38px minmax(0,1fr) auto;gap:14px}#project-desk .pd-project-state{display:none}}
@media(max-width:1000px){#project-desk .pd-project-row{grid-template-columns:38px minmax(0,1fr) auto}#project-desk .pd-project-state{display:none}}
@media(max-width:600px){#project-desk .pd-project-row{gap:12px;padding:16px 0;min-height:88px}#project-desk .pd-project-row .sog-project-copy strong{font-size:16px}.kr-project-heading .sog-project-copy strong,#pd-project-name .sog-project-copy strong{font-size:22px}.kr-dialog-head{gap:12px}}

#project-desk .pd-secondary-details{margin-top:12px;font-size:13px;color:var(--text-3)}#project-desk .pd-secondary-details>summary{cursor:pointer;text-align:left;min-height:28px}#project-desk .pd-secondary-details[open]>summary{margin-bottom:12px}#project-desk .pd-secondary-details p{font-size:13px;line-height:1.7}#project-desk .pd-context-card-footer{justify-content:flex-start}

#project-desk .pd-section-heading h3{font-size:20px;font-weight:700;line-height:1.35}#project-desk .pd-next-work>h3{font-size:18px;font-weight:700}

/* Neutralize legacy form padding and full-width checkbox rules inside review components. */
.kr-shell form{padding:0}
.kr-shell .kr-check{flex-direction:row;align-items:flex-start;text-align:left}
.kr-shell .kr-check>input[type=checkbox]{width:16px;height:16px;min-width:16px;flex:0 0 16px;align-self:flex-start;margin:3px 0 0;padding:0}
.kr-shell .kr-check>span{margin:0;flex:1;min-width:0}

.kr-project-card footer>button{margin-left:auto}
.kr-shell .kr-project-card h3{min-height:2.6em}
.kr-project-card .kr-card-summary{-webkit-line-clamp:3;min-height:4.95em}

/* Project Hubs: one navigation level, three file categories and quiet metadata. */
.kr-hub-toolbar{display:flex;justify-content:flex-end;gap:16px;align-items:center;margin:18px 0}.kr-hub-toolbar:empty{display:none}.kr-hub-toolbar label{margin:0;max-width:480px;margin-right:auto;flex:1}.kr-hub-toolbar button{flex:none}
.kr-dialog .kr-tabs{gap:28px;padding:0;flex-wrap:nowrap;overflow:auto}.kr-dialog .kr-tabs button{flex:none;border:0;border-radius:0;border-bottom:2px solid transparent;background:transparent;padding:16px 0;font-size:15px;color:#a6afb4}.kr-dialog .kr-tabs button.active{color:#e9f5f7;border-bottom-color:#70adba;font-weight:650}
.kr-files-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 18px}.kr-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.kr-file-group{border:1px solid #363a3d;background:#181a1b;border-radius:8px;padding:22px;min-width:0}.kr-shell .kr-file-group h3{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:700;margin-bottom:20px}.kr-file-group h3 svg{height:20px;width:20px;flex:none;stroke:currentColor;fill:none}.kr-location{display:flex;align-items:flex-start;gap:10px;margin-bottom:22px}.kr-location>span{font-size:12px;color:#a6afb4;overflow-wrap:anywhere;flex:1;line-height:1.65}.kr-location button,.kr-file-row button{padding:3px;min-width:32px;min-height:32px;background:transparent;flex:none;font-size:20px}.kr-file-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-top:1px solid #343434}.kr-file-row>div{flex:1;min-width:0}.kr-file-row strong{display:block;font-size:14px;line-height:1.55;overflow-wrap:anywhere;font-weight:600}.kr-file-row time{display:block;font-size:12px;color:#a6afb4;margin-top:8px}.kr-file-check{margin-top:18px!important;display:flex;justify-content:space-between;gap:14px}
@media(max-width:900px){.kr-file-grid{grid-template-columns:1fr}.kr-dialog .kr-tabs{gap:20px}.kr-dialog .kr-tabs button{font-size:14px}.kr-hub-toolbar{flex-wrap:wrap}}

/* Pending review indicator stays visible until the queue is cleared. */
button[data-pending-reviews]>.sog-project-icon{position:relative;overflow:visible}
button[data-pending-reviews]>.sog-project-icon::after{content:"";position:absolute;top:-3px;right:-3px;width:9px;height:9px;box-sizing:content-box;border:2px solid var(--surface-0,#101010);border-radius:50%;background:#f05c63;pointer-events:none}

/* Keep the back arrow and label centered as one unit, independent of font glyphs. */
.kr-shell #kr-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 14px;line-height:1;margin:0}
.kr-shell #kr-back>.icon{display:block;flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.kr-shell #kr-back>span{display:block;line-height:1.2}
