/* Shared private navigation: one collapse control and one set of destinations. */
.workspace-navigation.workspace-topbar{width:min(1440px,calc(100% - 1.5rem));padding:.5rem;top:.5rem;gap:.5rem;border:1px solid var(--surface-border);border-radius:16px;background:var(--bg-soft);box-shadow:0 6px 24px #00000012;align-items:flex-start}
.workspace-navigation.workspace-topbar .navbar-visibility-bar{margin:0;flex:0 0 40px;width:40px}
.workspace-navigation .navbar-visibility-toggle{width:40px;min-height:40px;border-color:transparent;background:transparent;border-radius:10px}
.workspace-navigation>.workspace-header.site-header{position:relative;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;min-width:0;flex:1}
.workspace-identity-row{display:flex;align-items:center;gap:.6rem;min-height:40px;min-width:0}
.workspace-header .header-business-name{display:block;order:initial;width:auto;min-width:0;max-width:20rem;padding:.35rem .25rem;border:0;background:transparent;border-radius:6px;color:var(--text);font-size:1.05rem;font-weight:750;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-account{position:relative;min-width:0}
.workspace-header .workspace-account>.header-username{display:flex;align-items:center;gap:.35rem;max-width:14rem;min-height:36px;padding:.3rem .5rem;cursor:pointer;color:var(--muted-strong);font-size:.85rem;list-style:none}
.workspace-account>summary::-webkit-details-marker,.workspace-management>summary::-webkit-details-marker{display:none}
.workspace-account>summary span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.workspace-account>summary svg{flex:none}
.workspace-utilities{display:flex;align-items:center;gap:.6rem;margin-left:auto;flex:none}
.workspace-header .lang-toggle{display:flex;flex:none;gap:0;border:1px solid var(--surface-border);padding:2px;border-radius:8px;margin:0;width:auto}
.workspace-header .lang-btn{display:grid;place-items:center;min-height:30px;min-width:30px;padding:.15rem .3rem;border:0;border-radius:5px;font-size:.75rem;flex:none}
.workspace-header .lang-btn.is-active{background:var(--brand-action-bg,var(--amber));color:var(--brand-action-fg,var(--primary-button-text,#171717));font-weight:700;box-shadow:none}
.workspace-header .header-user-actions{margin:0;order:initial;display:flex}
.workspace-header .notification-button{width:40px;height:40px;min-height:40px;padding:0;border-color:transparent;background:transparent;border-radius:10px}
.workspace-header .notification-shell{position:relative;width:auto}
.workspace-header .notification-panel{right:0;left:auto;top:calc(100% + .8rem);width:min(380px,calc(100vw - 2.5rem));max-height:70vh;overflow-y:auto}
.workspace-navigation-row{display:flex;align-items:center;gap:.5rem;min-width:0;border-top:1px solid var(--surface-border);margin-top:.4rem;padding-top:.4rem}
.workspace-primary-nav{display:flex;gap:.2rem;align-items:center;flex:1;overflow-x:auto;min-width:0;scrollbar-width:thin}
.workspace-primary-nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.35rem .8rem;border-radius:8px;white-space:nowrap;text-decoration:none;color:var(--muted-strong);font-size:.85rem;font-weight:600}
.workspace-primary-nav>a:hover,.workspace-primary-nav>a[aria-current]{background:var(--surface);color:var(--text)}
.workspace-primary-nav>a[aria-current]{box-shadow:inset 0 -2px var(--amber)}
.workspace-header .workspace-management{width:auto;position:relative;flex:none}
.workspace-header .workspace-management>summary{min-height:36px;padding:.35rem .65rem;border:0;border-radius:8px;background:transparent;font-size:.8rem}
.workspace-header .workspace-management>summary::after{font-size:.8rem}
.workspace-menu-panel{position:absolute;top:calc(100% + .7rem);left:0;z-index:80;display:grid;gap:.2rem;width:280px;max-width:calc(100vw - 2rem);max-height:70vh;overflow-y:auto;padding:.65rem;border:1px solid var(--surface-border);border-radius:12px;background:var(--bg-soft);box-shadow:var(--shadow);color:var(--text)}
.workspace-header .workspace-management>.workspace-menu-panel{left:auto;right:0;width:260px;background:var(--bg-soft)}
.workspace-account:not([open])>.workspace-menu-panel,.workspace-management:not([open])>.workspace-menu-panel{display:none}
.workspace-menu-panel>a,.workspace-menu-panel button.workspace-logout{display:flex;align-items:center;min-height:44px;padding:.6rem .75rem;border:0;border-radius:8px;text-align:left;color:var(--text);text-decoration:none;font:inherit;font-size:.85rem;background:transparent;width:100%;box-sizing:border-box;cursor:pointer}
.workspace-menu-panel>a:hover,.workspace-menu-panel button:hover{background:var(--surface)}
.workspace-menu-heading{margin:0;padding:.25rem .75rem .45rem;font-size:.75rem;font-weight:650;color:var(--muted)}
.workspace-menu-panel form{margin:0;border-top:1px solid var(--surface-border);padding-top:.25rem}
.workspace-menu-panel .dashboard-privacy-control{font-size:.85rem;justify-content:space-between}
.workspace-header .header-job-companies{margin:.4rem 0 0;padding:.5rem 0 0;border-top:1px solid var(--surface-border);gap:.4rem;align-items:center;box-sizing:border-box}
.workspace-header .header-job-companies legend{font-size:.72rem;margin-bottom:.3rem}
.workspace-header .header-company-switch{padding:.35rem .55rem;min-height:36px;font-size:.8rem;border-radius:8px}
.workspace-header .header-job-companies>button{min-height:36px;padding:.35rem .6rem;font-size:.75rem}
.workspace-header .business-support-banner{margin:0 0 .4rem;font-size:.8rem;padding:.4rem .6rem}
.workspace-header :is(a,summary,button):focus-visible{outline:2px solid var(--amber);outline-offset:2px}

/* The tool itself gets the width formerly occupied by the category sidebar. */
.workspace-tool-view .dashboard-shell{display:block}
.workspace-tool-view .dashboard-hero{padding:1.6rem 0 .5rem}
.workspace-tool-view .dashboard-hero .service-hero-title{font-size:clamp(1.7rem,3vw,2.5rem);max-width:none;margin:.35rem 0}
.workspace-tool-view .dashboard-hero .hero-body{font-size:.95rem;margin:.35rem 0;max-width:80ch}
.workspace-breadcrumb{display:flex;gap:.5rem;align-items:center;font-size:.8rem;color:var(--muted);margin:0}
.workspace-breadcrumb a{color:inherit;text-decoration:none}
.workspace-tool-view .dashboard-content{min-width:0;width:100%}

/* Tools are searchable, grouped consistently, and compact enough for tablets. */
.workspace-launcher{padding-top:2rem;padding-bottom:3rem;overflow-anchor:none}
.workspace-launcher-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.4rem}
.workspace-launcher-heading .eyebrow{margin:0 0 .35rem}
.workspace-launcher-heading h1{font-size:clamp(1.9rem,3.5vw,2.7rem);line-height:1.15;margin:0 0 .5rem;max-width:none}
.workspace-launcher-heading p:not(.eyebrow){margin:0;color:var(--muted-strong);font-size:.95rem}
.workspace-tool-total{font-size:.8rem;color:var(--muted);flex:none;padding-bottom:.2rem}
.workspace-tool-controls{display:grid;gap:.8rem;margin-bottom:1.5rem}
.workspace-tool-controls[hidden],.workspace-launcher [hidden]{display:none!important}
.workspace-tool-search>label{display:block;font-weight:650;font-size:.85rem;margin-bottom:.5rem}
.workspace-tool-search>div{display:flex;gap:.65rem;align-items:center;padding:.4rem .8rem;border:1px solid var(--surface-border);border-radius:12px;background:var(--surface)}
.workspace-tool-search input{width:100%;min-width:0;min-height:40px;border:0;outline:0;background:transparent;color:var(--text);font:inherit}
.workspace-tool-search>div:focus-within{outline:2px solid var(--amber);outline-offset:2px}
.workspace-tool-search button{border:0;padding:.5rem;background:transparent;color:var(--text);cursor:pointer;font:inherit;font-size:.8rem}
.workspace-tool-filters{display:flex;gap:.4rem;flex-wrap:wrap}
.workspace-tool-filters button{display:flex;align-items:center;gap:.5rem;min-height:36px;padding:.35rem .7rem;border:1px solid var(--surface-border);border-radius:8px;background:transparent;color:var(--muted-strong);font:inherit;font-size:.8rem;cursor:pointer}
.workspace-tool-filters button span{font-size:.7rem;opacity:.75}
.workspace-tool-filters button[aria-pressed=true]{background:var(--brand-action-bg,var(--amber));border-color:var(--brand-action-bg,var(--amber));color:var(--brand-action-fg,var(--primary-button-text,#171717))}
.workspace-tool-filters button:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
.workspace-tool-results{margin:0;color:var(--muted);font-size:.8rem;min-height:1.1em}
.workspace-launcher .tool-launcher-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:.7rem}
.workspace-launcher .tool-launcher-button{display:grid;grid-template-columns:40px minmax(0,1fr) 16px;gap:.8rem;align-items:start;min-height:120px;padding:1rem;box-shadow:none;border-radius:12px;transform:none;background:var(--surface);border:1px solid var(--surface-border)}
.workspace-launcher .tool-launcher-button:hover{border-color:var(--amber);background:var(--surface-strong);transform:none}
.workspace-tool-icon{display:grid;place-items:center;width:40px;height:40px;background:var(--surface-strong);border:1px solid var(--surface-border);border-radius:10px;color:var(--amber)}
.workspace-tool-icon[data-category=finance]{color:#3ba978}.workspace-tool-icon[data-category=sales]{color:#7898eb}.workspace-tool-icon[data-category=workshop]{color:#d29a43}.workspace-tool-icon[data-category=content]{color:#bd87ce}
.workspace-tool-card-copy{min-width:0}.workspace-tool-category{display:block;font-size:.68rem;color:var(--muted);margin:0 0 .35rem}
.workspace-launcher .tool-card-title{font-size:1rem;line-height:1.3;margin:0 0 .4rem;font-weight:700}
.workspace-launcher .tool-card-description{font-size:.8rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.workspace-launcher .tool-card-open{font-size:1rem;margin:0;color:var(--muted)}
.workspace-launcher .tool-category-heading{margin-bottom:.8rem;align-items:center;padding-bottom:.6rem}
.workspace-launcher .tool-category-heading h2{font-size:1.3rem;margin:0}.workspace-launcher .tool-category-heading h3{font-size:1.1rem;margin:0}
.workspace-launcher .tool-category-heading>span{font-size:.75rem}.workspace-section-kicker{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:0 0 .2rem}
.workspace-launcher .tool-launcher-frequent{margin-bottom:2rem}.workspace-launcher .tool-launcher-groups{gap:1.5rem}.workspace-catalog-title{font-size:1.4rem;margin:0 0 1.2rem}
.workspace-tool-empty{padding:2rem;text-align:center;border:1px dashed var(--surface-border);border-radius:12px}.workspace-tool-empty h3{margin-top:0}.workspace-tool-empty p{color:var(--muted)}
@media(max-width:680px){
 .workspace-navigation.workspace-topbar{width:calc(100% - 1rem);top:.25rem;padding:.35rem;gap:.3rem;border-radius:12px}
 .workspace-navigation.workspace-topbar .navbar-visibility-bar{margin:0;flex-basis:36px;width:36px}.workspace-navigation .navbar-visibility-toggle{width:36px;min-height:40px}
 .workspace-header .header-business-name{font-size:.95rem;max-width:7rem;padding-left:0}
 .workspace-identity-row{gap:.25rem}.workspace-header .workspace-account>.header-username{max-width:6rem;padding:.3rem .2rem;font-size:.75rem}
 .workspace-header .workspace-utilities{gap:.15rem}.workspace-header .lang-btn{min-width:26px;min-height:30px}
 .workspace-header .workspace-account,.workspace-header .workspace-management{position:static}
 .workspace-header .workspace-menu-panel,.workspace-header .workspace-management>.workspace-menu-panel{left:0;right:0;width:auto;max-width:100%;top:calc(100% + .6rem)}
 .workspace-primary-nav>a{padding:.35rem .55rem;font-size:.78rem}.workspace-header .workspace-management>summary{font-size:.75rem;padding:.35rem .45rem}
 .workspace-launcher{padding-top:1.4rem}.workspace-launcher-heading{align-items:flex-start;flex-direction:column;gap:.6rem}.workspace-tool-total{font-size:.75rem}
 .workspace-launcher .tool-launcher-button{min-height:100px}.workspace-launcher .tool-category-heading>span{display:none}.workspace-tool-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.3rem}.workspace-tool-filters button{flex:none}
}
@media print{.workspace-navigation{display:none!important}.workspace-tool-controls{display:none!important}}
/* Context tabs describe the current tool, without repeating global destinations. */
.workspace-section-nav.commerce-nav{display:flex;flex-wrap:nowrap;gap:.2rem;overflow-x:auto;border-bottom:1px solid var(--surface-border);padding:.3rem 0;margin:1rem 0;scrollbar-width:thin}
.workspace-section-nav.commerce-nav>a{flex:none;white-space:nowrap;border:0;border-radius:6px;padding:.55rem .75rem;font-size:.8rem;background:transparent;color:var(--muted-strong);text-decoration:none}
.workspace-section-nav.commerce-nav>a[aria-current]{background:var(--surface);color:var(--text);box-shadow:inset 0 -2px var(--amber)}
/* Operational screens use a quiet canvas instead of the public hero artwork. */
body:has(.workspace-launcher) .page-bg,body:has(.workspace-tool-view) .page-bg,body:has(.business-shell) .page-bg,body:has(.flow-workspace) .page-bg{background:var(--bg)}
body:has(.workspace-launcher) .page-bg::before,body:has(.workspace-launcher) .page-bg::after,body:has(.workspace-tool-view) .page-bg::before,body:has(.workspace-tool-view) .page-bg::after,body:has(.business-shell) .page-bg::before,body:has(.business-shell) .page-bg::after,body:has(.flow-workspace) .page-bg::before,body:has(.flow-workspace) .page-bg::after{display:none}

/* Completion keeps history and stays distinct from deletion. */
.completion-action { display: inline-flex; align-items: center; gap: .35rem; margin: 0; min-width: 0; }
.completion-action button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; }
.completion-icon { width: 44px; padding: .35rem; }
.job-finish { min-width: 0; max-width: 28rem; }
.job-finish > summary { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; list-style: none; }
.job-finish > summary::-webkit-details-marker { display: none; }
.job-finish[open] { flex-basis: 100%; }
.job-finish form { padding: .65rem; border: 1px solid var(--surface-border); border-radius: 8px; }
.job-finish p, .job-finish label { white-space: normal; overflow-wrap: anywhere; font-size: .85rem; }
.job-finish input[type=checkbox] { width: auto; min-width: 20px; min-height: 20px; }
.completion-action [data-agenda-schedule-status]:not(:empty) { display: block; font-size: .8rem; max-width: 24rem; }

.completion-action[hidden] { display: none; }
