/* finesse · product · white app surfaces · workflow shell · compact navigation */
:root{--shell-header:65px;--shell-rail:214px;--shell-aside:300px}
.topbar{height:var(--shell-header);gap:18px}
.brand{color:var(--ink);text-decoration:none}
.workspace-search{display:flex;align-items:center;gap:9px;text-align:left;color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:0 12px;min-height:38px;max-width:340px;flex:1;margin-right:auto}
.workspace-search:hover{background:var(--softest);border-color:var(--control-line)}
.workspace-search .icon{width:16px;height:16px}
.workspace{grid-template-columns:var(--shell-rail) minmax(0,1fr) var(--shell-aside);grid-template-rows:auto minmax(0,1fr);min-height:calc(100dvh - var(--shell-header))}
.workspace>.sidebar{grid-row:1 / 3;grid-column:1;padding:19px 14px 15px}
.workspace>.main{grid-row:2;grid-column:2}
.workspace>.assistant{grid-row:2;grid-column:3}
#steps{grid-row:1;grid-column:2 / -1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:9px 15px;background:var(--sidebar);border-bottom:1px solid var(--line)}
#steps .step{display:flex;position:relative;flex-direction:column;justify-content:center;gap:4px;min-height:61px;margin:0;text-align:center;padding:6px 3px}
#steps .step b{font-size:12px;line-height:1.3}
#steps .step-state{position:absolute;right:7px;top:7px}
#steps .step-state:empty{display:none}
.workspace-links{display:grid;gap:4px;padding-top:16px}
.workspace-links a,.workspace-links button{display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:8px;background:transparent;text-decoration:none;color:var(--ink);text-align:left;font-weight:650;font-size:13px;min-height:41px;padding:7px 9px}
.workspace-links a:hover,.workspace-links button:hover{background:var(--softest)}
.workspace-links a[aria-current=page]{background:var(--soft);border-color:var(--accent-line);color:var(--ink)}
.workspace-links .icon,.local-profile .icon{width:16px;height:16px}
.local-profile{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding-top:13px}
.local-profile strong,.local-profile small{display:block;font-size:12px}
.local-avatar{width:30px;height:30px;display:grid;place-items:center;background:var(--soft);color:var(--accent);border-radius:50%;flex:none}
.project-shortcuts{margin:23px 0;scroll-margin-top:14px}
.project-shortcuts h2{font-size:18px;margin-bottom:10px}
.shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shortcut-card,.recent-project{min-width:0;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:10px;text-decoration:none;overflow:hidden;box-shadow:var(--shadow)}
.shortcut-card:hover,.recent-project:hover{border-color:var(--accent-line);background:var(--softest)}
.shortcut-card img{display:block;width:100%;height:auto;aspect-ratio:1.9;object-fit:cover;background:var(--soft)}
.shortcut-copy{display:grid;gap:4px;padding:10px 12px 12px}
.shortcut-copy small,.recent-project small{color:var(--muted)}
.recent-project{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:56px}
.recent-project span:first-of-type{display:grid;flex:1}
.recent-project>.icon:last-child{margin-left:auto}
.workspace-search-results{list-style:none;display:grid;gap:5px;margin:12px 0 0;padding:0}
.workspace-search-results a{display:flex;justify-content:space-between;gap:10px;text-decoration:none;color:var(--ink);padding:8px;border-radius:6px}
.workspace-search-results a:hover{background:var(--soft)}
.workspace-search-dialog input[type=search]{width:100%;padding:9px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}
[data-site-survey-panel] .plan-figure svg{display:block;width:100%;max-height:420px}
.site-disposition-form{margin-top:12px}
.site-disposition-row{border-top:1px solid var(--line);padding:10px 0 4px}
.site-disposition-row p{margin:5px 0}
.site-disposition-row small{color:var(--muted)}
[data-site-survey-panel] code,[data-survey-fit-source] code{overflow-wrap:anywhere}
body.design-board-open .workspace{grid-template-columns:var(--shell-rail) minmax(0,1fr)}
body.design-board-open .workspace>.sidebar{display:flex}
@media(min-width:901px){.workspace{height:calc(100dvh - var(--shell-header));min-height:0}.main,.sidebar{min-height:0}}
@media(min-width:1500px){:root{--shell-rail:230px;--shell-aside:326px}}
@media(min-width:901px) and (max-width:1150px){:root{--shell-rail:172px;--shell-aside:242px}#steps{padding-inline:8px}.shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .workspace,body.design-board-open .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto}
  .workspace>.sidebar{grid-column:1;grid-row:1;padding:5px 12px;background:var(--panel)}
  .workspace-links{display:flex;flex-wrap:wrap;padding:0;gap:2px}
  .workspace-links a,.workspace-links button{min-height:40px;padding-inline:8px}
  #steps{grid-column:1;grid-row:2;padding-inline:9px}
  .workspace>.main{grid-column:1;grid-row:3}
  .workspace>.assistant{grid-column:1;grid-row:4}
}
@media(max-width:590px){
  :root{--shell-header:55px}
  .topbar{gap:8px}
  .workspace-search{flex:0 0 auto;margin:0;padding:0;min-width:44px;min-height:44px;justify-content:center}
  .workspace-search span:nth-child(2){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  #steps .step{min-height:48px}
  .workspace-links a,.workspace-links button{font-size:12px;min-height:44px;padding-inline:5px;gap:5px}
  .shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .shortcut-copy{padding:8px}
}
