/* Enterprise application shell for the signed-in portal (desktop). Tokens and classes only; mobile keeps the horizontal menu. */
:root{--shell-nav:#0F1F2A;--shell-nav-hover:#18323F;--shell-nav-on:#1E3F4F;--shell-nav-text:#C7D4DC;--shell-nav-muted:#7F94A2;--shell-radius:12px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.ni{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.user-chip{display:none;align-items:center;gap:8px;order:-1;font-size:13px;font-weight:600;color:var(--tk-text)}
#logout:not([hidden])+.user-chip{display:inline-flex}
.user-chip .av{width:32px;height:32px;border-radius:50%;background:var(--tk-flow-soft);color:var(--tk-flow-text);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.signed-in .work-card{border-radius:var(--shell-radius);border:1px solid var(--tk-line)}
.signed-in .work-panel{border-radius:var(--shell-radius)}
.signed-in .status-box{border-radius:var(--shell-radius);padding:12px 16px;margin:0 0 16px;border:1px solid var(--tk-flow-line);background:var(--tk-flow-soft)}
.signed-in .status-box p{margin:2px 0 0}
/* project tabs and admin tabs read as one tab bar */
.signed-in .project-tabs,.signed-in .admin-tabs{display:flex;gap:2px;border-bottom:1px solid var(--tk-line);margin:0 0 18px;flex-wrap:wrap}
.signed-in .project-tabs button,.signed-in .admin-tab{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;min-height:44px;padding:10px 14px;color:var(--tk-text-muted);font-weight:600;margin-bottom:-1px}
.signed-in .project-tabs button[aria-current="page"],.signed-in .project-tabs button.on,.signed-in .admin-tab[aria-selected="true"],.signed-in .admin-tab.on{color:var(--tk-flow-text);border-bottom-color:var(--tk-flow)}
/* conversation as a work thread */
.signed-in .conversation-messages{display:flex;flex-direction:column;gap:10px}
.signed-in .conversation-message{margin:0;padding:12px 16px;border-radius:12px;border:1px solid var(--tk-line)}
.signed-in .conversation-message .small{color:var(--tk-text-muted)}
/* files as a compact list */
.signed-in .attachment-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.signed-in .attachment-list>*{border:1px solid var(--tk-line);border-radius:12px;padding:10px 14px;background:var(--tk-surface)}
@media(max-width:700px){.user-chip .who{display:none}}
.signed-in .project-tabs *,.signed-in .admin-tabs *,.signed-in .project-tabs a,.signed-in .admin-tab{text-decoration:none}
body:has(#portal-layout.signed-in) .site-footer .footer-grid{display:none}
body:has(#portal-layout.signed-in) .site-footer{padding-top:22px!important}
body:has(#portal-layout.signed-in) .site-footer .footer-bottom{margin-top:0;border-top:0;padding-top:0}

/* Polish for the signed-in application: cards keep their content off the border, the active tab is marked, quiet actions read as ghost buttons. */
.signed-in .work-card{padding:20px 22px}
.signed-in .admin-tab[aria-current="page"]{color:var(--tk-flow-text);border-bottom-color:var(--tk-flow)}
.signed-in .quiet,#logout.quiet{text-decoration:none;font-weight:600;padding:10px 14px;border-radius:12px;min-height:44px}
.signed-in .quiet:hover,#logout.quiet:hover{background:var(--tk-flow-soft)}
.signed-in .quiet:focus-visible,#logout.quiet:focus-visible{outline:2px solid var(--tk-flow);outline-offset:2px}
@media(max-width:480px){.signed-in .work-card{padding:16px}}
.signed-in .work-card{margin:0 0 12px}
.signed-in form+.work-card,.signed-in .small+.work-card{margin-top:16px}
/* The list of companies never leaves a narrow screen. */
