/* Workspace-only type and dialog system. Process presentation pages stay separate. */
.workspace-shell{--ui-copy:16px;--ui-label:14px;--ui-small:14px;--glass:rgba(30,33,41,.9);--glass-edge:rgba(255,255,255,.18);font-size:var(--ui-copy);line-height:1.5}
:root[data-theme="light"] .workspace-shell{--glass:rgba(255,255,255,.9);--glass-edge:rgba(255,255,255,.85)}
/* One readable scale across lists, settings, team, authentication and forms. */
.workspace-shell :is(input,select,textarea){font-size:16px!important;line-height:1.5;min-height:46px}
.workspace-shell input[type="checkbox"]{min-height:0;width:18px;height:18px}
.workspace-shell :is(label,small,.hint,.connection-help,.connection-status,.team-count,.team-role,.team-list-heading,.settings-section-label>span,.ai-provider small,.pool-skills i,.process-row small,.pool-row small,.pool-paging,.empty p){font-size:14px!important;line-height:1.5}
.workspace-shell :is(.process-row,.pool-row,.team-email,.ai-provider strong,.settings-section-label h2){font-size:16px!important}
.workspace-shell :is(button,summary){font-size:15px!important;line-height:1.4}
.workspace-shell :is(.content header button,.settings-save button,.team-invite-controls button,.login-panel button,#workspace-form button,dialog button:not(.subtle)){font-size:16px!important;min-height:44px;padding:11px 18px!important}
.workspace-shell :is(.section-label,.sidebar-section-label,.sidebar-attribution,.logo-caption,.status){font-size:13px!important;line-height:1.5}
.workspace-shell .sidebar-preferences .process-language button{font-size:13px!important;min-height:32px;min-width:32px}
.workspace-shell .sidebar-preference{font-size:14px!important}.workspace-shell .sidebar-collapse{width:36px;height:36px;top:8px;right:10px}
.sidebar-collapsed .workspace-shell .sidebar-collapse{right:20px}
.workspace-shell .compact-settings input{padding:10px 12px}.workspace-shell .settings-section-label h2{font-weight:600}.workspace-shell .settings-block{grid-template-columns:160px minmax(0,1fr)}.workspace-shell .ai-provider{padding:16px;gap:12px}.workspace-shell .settings-block summary{padding:5px 0}.workspace-shell .saved-key button{min-height:40px}.workspace-shell #remove-ai{min-width:40px;font-size:26px!important}
.workspace-shell #view-processes .process-status-select{width:155px;height:44px}.workspace-shell #view-processes #status-menu-toggle{height:44px;font-size:14px!important}.workspace-shell #status-menu{width:210px}.workspace-shell #status-menu button{min-height:44px;font-size:15px!important}
.workspace-shell #view-pool .pool-ai-search{font-size:15px!important;padding:12px 0}.workspace-shell #view-pool .pool-row{grid-template-columns:38px minmax(180px,1.4fr) minmax(110px,.7fr) minmax(160px,1fr) 24px}.workspace-shell #view-pool .pool-avatar,.workspace-shell .team-avatar{width:38px;height:38px;font-size:13px}
.workspace-shell .pool-paging button,.workspace-shell .invite-row button{min-height:40px}.workspace-shell .pool-filters label{min-width:160px}.workspace-shell .empty h2{font-size:20px!important}
/* All four dialogs use the same glass surface, header and close control. */
.workspace-shell dialog{width:min(520px,calc(100vw - 40px));max-height:calc(100dvh - 48px);padding:30px;border:1px solid var(--glass-edge);border-radius:22px;background:var(--glass);color:var(--text);backdrop-filter:blur(24px) saturate(120%);-webkit-backdrop-filter:blur(24px) saturate(120%);box-shadow:0 28px 90px rgba(5,8,16,.35),inset 0 1px 0 rgba(255,255,255,.12);overflow:auto}
.workspace-shell dialog::backdrop{background:rgba(8,11,18,.52);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.workspace-shell dialog.candidate-dialog{width:min(800px,calc(100vw - 40px))}.workspace-shell dialog.import-dialog{width:min(900px,calc(100vw - 40px))}
.workspace-shell dialog .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 26px;padding:0;border:0}
.workspace-shell dialog .dialog-head h2{font-family:'Hanken Grotesk',sans-serif;font-size:26px;font-weight:500;letter-spacing:-.5px;line-height:1.3;margin:6px 0 0}
.workspace-shell dialog .dialog-head .section-label{margin:0 0 6px;color:var(--muted)}
.workspace-shell dialog .dialog-head button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;padding:0!important;margin:0;border:1px solid var(--border-m);border-radius:50%;background:rgba(128,128,128,.08);color:var(--text)}
.workspace-shell dialog .dialog-head button:hover{background:var(--card-hi);border-color:var(--border-hi)}
.workspace-shell dialog :is(input,select,textarea){background:var(--input-bg);border:1px solid var(--border-m);border-radius:10px;padding:12px 14px;margin-top:8px}
.workspace-shell dialog label{margin-bottom:20px}.workspace-shell dialog p{font-size:16px;line-height:1.6}.workspace-shell dialog h3{font-size:18px}.workspace-shell dialog button{border-radius:10px}.workspace-shell dialog .dialog-actions{gap:12px;padding-top:20px;margin-top:24px;align-items:center;flex-wrap:wrap}.workspace-shell dialog .form-grid{column-gap:20px}
.workspace-shell #process-form>button:last-child,.workspace-shell #assign-form>button:last-child{display:block;margin:26px 0 0 auto}
.workspace-shell #login :is(p,input,button),.workspace-shell #onboarding :is(p,input,button){font-size:16px;line-height:1.6}.workspace-shell .login-panel h2{font-size:28px;line-height:1.3}.workspace-shell .login-panel small{font-size:14px}.workspace-shell #login input,.workspace-shell #onboarding input{border-radius:10px;padding:12px 14px}.workspace-shell #login button,.workspace-shell #onboarding button{border-radius:10px}
@media(max-width:900px){.workspace-shell #view-pool .pool-row{grid-template-columns:38px minmax(150px,1fr) 110px 24px}.workspace-shell #view-pool .pool-skills{display:none}.workspace-shell .ai-provider-options{grid-template-columns:1fr}}
@media(max-width:620px){.workspace-shell .settings-block{grid-template-columns:1fr}.workspace-shell .profile-fields{grid-template-columns:1fr}.workspace-shell .profile-fields .profile-email{grid-column:1}.workspace-shell #view-processes .process-status-select{width:148px}.workspace-shell #view-pool .pool-row{grid-template-columns:38px minmax(0,1fr) 24px}.workspace-shell dialog{padding:22px;border-radius:18px}.workspace-shell dialog .dialog-head h2{font-size:23px}.workspace-shell dialog .form-grid{grid-template-columns:1fr}.workspace-shell dialog .dialog-actions button{flex:1 1 auto}.workspace-shell .sidebar-collapse{top:20px}.workspace-shell #login{padding:32px 24px;gap:32px}.workspace-shell #login .intro h1{font-size:42px}}
@media(prefers-reduced-transparency:reduce){.workspace-shell dialog{background:var(--surface);backdrop-filter:none}.workspace-shell dialog::backdrop{backdrop-filter:none;background:rgba(8,11,18,.8)}}
@media(min-width:761px){.workspace-shell .settings-profile{gap:50px}}
:root[data-theme="light"] .workspace-shell .intro img{filter:invert(1)}
.workspace-shell dialog input[type="file"]::file-selector-button{font:inherit;font-size:14px;padding:8px 12px;margin-right:12px;border:1px solid var(--border-m);border-radius:7px;background:var(--surface);color:var(--text);cursor:pointer}
/* Loading placeholders preserve the surrounding page instead of flashing text. */
.skeleton-host{position:relative!important;isolation:isolate}.skeleton-host>*:not(.loading-skeleton){visibility:hidden}.loading-skeleton{position:absolute;inset:0;z-index:1;background:var(--bg);padding:4px 0;pointer-events:none}.skeleton-row{display:flex;align-items:center;gap:18px;height:80px;border-bottom:1px solid var(--border)}.skeleton-row i,.skeleton-row span,.skeleton-row b,.skeleton-line{display:block;background:var(--border-m);border-radius:6px;animation:skeleton-breathe 1.8s ease-in-out infinite}.skeleton-row i{width:38px;height:38px;border-radius:50%;flex:none}.skeleton-row span{height:16px;width:34%;max-width:320px}.skeleton-row b{height:14px;width:17%;margin-left:auto;margin-right:8%}.skeleton-line{height:44px;width:100%;margin-bottom:18px}.skeleton-line.short{width:45%;height:14px}.skeleton-title{width:220px;height:34px;margin-bottom:36px}.loading-skeleton.compact{padding-top:8px}.pool-stable-status{min-height:24px;margin:0 0 8px!important}.pool-stable-status[hidden]{display:block!important;visibility:hidden}#pool-search-status{min-height:24px}.workspace-shell #session-loading{max-width:1100px;margin:0 auto;padding:64px 40px;min-height:70vh}.session-skeleton{margin-bottom:30px}#session-loading-text{font-size:14px;color:var(--muted)}#session-loading:has(#session-retry:not([hidden])) .session-skeleton{display:none}
@keyframes skeleton-breathe{0%,100%{opacity:.35}50%{opacity:.65}}
@media(prefers-reduced-motion:reduce){.skeleton-row i,.skeleton-row span,.skeleton-row b,.skeleton-line{animation:none;opacity:.45}}
.team-count:empty{visibility:hidden}
/* In-field information controls, with anchored explanatory popovers. */
.workspace-shell .field-help-wrap{position:relative;margin-top:6px;min-width:0}.workspace-shell .field-help-wrap>input{margin-top:0!important;padding-right:58px!important}.workspace-shell .field-help-button{position:absolute;right:1px;top:1px;bottom:1px;width:46px;display:grid;place-items:center;padding:0!important;color:var(--muted);border:0;border-radius:0 7px 7px 0;background:transparent}.field-help-button::before{content:'';position:absolute;left:0;top:10px;bottom:10px;border-left:1px solid var(--border-m)}.workspace-shell .field-help-button:hover,.workspace-shell .field-help-button[aria-expanded="true"]{color:var(--text);background:var(--card-hi)}.workspace-shell .field-help-button:focus-visible{outline:1px solid var(--text);outline-offset:2px}.field-help-popover{position:absolute;z-index:40;right:0;top:calc(100% + 10px);width:min(320px,100%);padding:16px 18px;border:1px solid var(--border-m);border-radius:12px;background:var(--surface);box-shadow:0 14px 36px rgba(5,8,16,.24);color:var(--text);cursor:default}.field-help-popover.above{top:auto;bottom:calc(100% + 10px)}.field-help-popover strong{font-size:14px;font-weight:600;display:block;margin-bottom:6px}.workspace-shell .field-help-popover p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}.workspace-shell .settings-block details .field-help-wrap{margin-top:6px}.workspace-shell .settings-block details>div:has(>.field-help-wrap){margin-top:14px}

/* Compact round actions on the process search row. */
.workspace-shell #view-processes .process-status-select{width:44px;height:44px;flex:0 0 44px}.workspace-shell #view-processes #status-menu-toggle{position:relative;width:44px;height:44px;padding:0;border-radius:50%;display:grid;place-items:center;gap:0}.workspace-shell #view-processes #status-menu-toggle.has-filter::after{content:'';position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:var(--text);border:2px solid var(--surface);box-sizing:content-box}.workspace-shell #view-processes #new-process.process-add-round{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0!important;border-radius:50%;border:1px solid #d8d9dc;background:#fff;color:#14161c}.workspace-shell #view-processes #new-process.process-add-round:hover{background:#eeeef1}
.workspace-shell #view-processes #status-menu-toggle{justify-content:center}
/* Consistent rounded actions across all workspace overview pages. */
.workspace-shell :is(#view-pool,#view-team,#view-settings) button:not(.pool-row):not(.field-help-button){border-radius:999px}
.workspace-shell :is(#view-pool,#view-team,#view-settings) .field-help-button{border-radius:0 7px 7px 0}
.workspace-shell #view-settings #remove-ai{width:40px;height:40px;padding:0;display:grid;place-items:center}

/* Upcoming workspace navigation: visible, deliberately unavailable. */
.workspace-shell #workspace-sidebar .nav-planned{opacity:.48;cursor:default;filter:none;background:transparent;border-color:transparent}.nav-planned-label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;min-width:0}.nav-planned-label small{font-size:10px;line-height:1.4;font-weight:400;border:1px solid var(--border-m);border-radius:999px;padding:2px 6px}

.workspace-shell button.ai-provider{text-align:left;width:100%;color:inherit;font:inherit;background:transparent;white-space:normal}.workspace-shell button.ai-provider:disabled{cursor:default;opacity:.6}.workspace-shell button.ai-provider.selected{opacity:1}
.workspace-shell .settings-block button.ai-provider{background:transparent!important;color:var(--text)!important;border:1px solid var(--border-m)!important;border-radius:8px!important;padding:16px!important}.workspace-shell .settings-block button.ai-provider.selected{background:var(--accent-bg)!important;border-color:var(--accent-bdr)!important}.workspace-shell .settings-block button.ai-provider small{color:var(--muted)!important}
