/* Recoveer workspace: blue brand chrome, compact content, touch-first mobile. */
:root{--workspace-header:72px;--workspace-nav:228px;--brand:#0664f8;--line:#dfe6f0;--muted:#52627a}
.shell{grid-template-columns:var(--workspace-nav) minmax(0,1fr);padding-top:var(--workspace-header);background:#f5f7fb}
.shell .topbar{position:fixed;inset:0 0 auto;height:var(--workspace-header);z-index:30;background:var(--brand);color:#fff;border:0;padding:0 24px;gap:24px}
.workspace-logo{display:flex;align-items:center;flex:0 0 180px;min-height:44px;text-decoration:none}
.workspace-logo .brand-logo{width:158px;height:28px;background:#fff;aspect-ratio:1459/245}
.shell .breadcrumb{color:#e6efff;font-size:13px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .breadcrumb strong{color:#fff}
.shell .breadcrumb>span{color:#ffffff80}
.shell .top-actions{gap:16px;flex-shrink:0}
.shell .global-search{background:#ffffff18;border:1px solid #ffffff55;border-radius:7px;color:#fff;width:260px}
.shell .global-search input{color:#fff;width:100%;min-width:0;background:transparent}
.shell .global-search input::placeholder{color:#fff;opacity:1}
.shell .global-search .key{display:none}
.shell .topbar .icon-button{color:#fff;background:transparent;border-color:#ffffff66;box-shadow:none}
.shell .topbar .avatar{background:#fff;color:#0755d4;font-weight:700}
.shell .topbar :focus-visible{outline:2px solid #fff;outline-offset:3px}
.shell .sidebar{top:var(--workspace-header);width:var(--workspace-nav);padding:20px 14px 16px;border-right:1px solid var(--line);z-index:40;background:white}
.shell .sidebar>.brand{display:none}
.shell .org{padding:10px 8px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:18px}
.shell .org select{font-size:13px;min-width:0;max-width:100%;font-weight:650}
.shell .org-avatar{width:28px;height:28px;background:#edf4ff;color:var(--brand)}
.shell .nav{gap:3px}
.shell .nav button{min-height:44px;padding:10px 12px;border-radius:6px;gap:12px;font-size:14px;color:#46546a;border-left:3px solid transparent}
.shell .nav button.active{background:#eaf2ff;color:#0755d4;border-left-color:var(--brand)}
.shell .nav .nav-icon-3d,.shell .nav button.active .nav-icon-3d{background:none;border:0;box-shadow:none;color:inherit;width:20px;height:20px;flex-basis:20px;transform:none;border-radius:0}
.shell .nav .nav-icon-3d svg{stroke:currentColor;filter:none;width:20px;height:20px}
.shell .nav-label{font-size:10px;letter-spacing:.1em;padding:14px 12px 8px;color:#637188}
.shell .trial{background:#f4f7fc;border:1px solid var(--line);border-radius:8px;padding:14px;font-size:12px;line-height:1.5}
.shell .trial strong{font-size:12px}
.shell .user{gap:8px;flex-wrap:wrap}
.shell .user>div{min-width:0;flex:1;overflow-wrap:anywhere}
.shell .content{padding:28px 28px 40px}
.shell .content>.page-head{padding:0 0 22px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;margin-bottom:22px}
.shell .page-head h1{font-size:28px;letter-spacing:-.7px;line-height:1.25}
.shell .page-head .subtitle{font-size:14px;line-height:1.5;color:var(--muted)}
.shell .demo-bar{background:#edf3fe;color:#425979;border-bottom:1px solid #dce7f8;font-size:11px;padding:9px 28px}
.shell .btn,.shell .icon-button,.shell button.link,.shell button.badge,.shell .trial>button,.login .btn,.login button.link{box-shadow:none;background:#fff;border:1px solid #cdd8e6;border-radius:6px;transform:none;filter:none;min-height:40px;font-size:13px}
.shell .btn.primary,.login .btn.primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:none}
.shell .btn.primary:hover,.login .btn.primary:hover{background:#0755d4}
.shell button.link{background:transparent;border-color:transparent;color:#0755d4}
.shell button.link:hover{background:#edf4ff}
.shell .btn:active,.shell .icon-button:active,.shell button.link:active,.shell button.badge:active,.login .btn:active{transform:none;box-shadow:none}
.shell button:focus-visible,.shell select:focus-visible,.shell input:focus-visible{outline:2px solid #0755d4;outline-offset:3px}
.shell .topbar button:focus-visible,.shell .topbar input:focus-visible{outline-color:#fff}
.shell .panel,.shell .stat{box-shadow:none;border-radius:8px;border-color:var(--line)}
.shell .filterbar{gap:10px;background:transparent;border:0;padding:0;margin-bottom:20px}
.shell .filterbar input,.shell .filterbar select{background:white;min-height:40px;border-radius:6px}
.shell .kanban{gap:12px;min-height:280px;align-items:flex-start}
.shell .kanban-col{min-width:230px;background:#eef2f8;border:0;border-radius:8px;padding:12px}
.shell .kanban-head{font-size:13px;margin-bottom:12px;padding-bottom:12px;border-bottom:2px solid #b7d1fa}
.shell .kanban-head small{color:#52627a;background:transparent;font-size:12px}
.shell .deal{padding:14px;border-radius:6px;border:1px solid #dce4ef;box-shadow:none;margin-bottom:10px}
.shell .deal>button.link{padding:0;min-height:32px;margin:0 0 4px;border:0;text-align:left;color:#172b4d;max-width:100%}
.shell .deal h3{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.shell .deal p{font-size:12px;line-height:1.5;margin-bottom:8px;overflow-wrap:anywhere}
.shell .deal>strong{font-size:15px;font-weight:650;color:#172b4d}
.shell .deal-bottom{margin-top:10px;padding-top:10px}
.shell .deal select{font-size:12px;padding:8px;max-width:170px;min-height:36px;color:#425979}
.shell td{font-size:13px;line-height:1.5}
.shell td .sub{line-height:1.5}
.shell .person>div{overflow-wrap:anywhere}
.mobile-workspace-nav{display:none}
.login{background:#fff}
.login-form{max-width:660px;width:100%;margin:auto;padding:64px}
.login .login-form .link{border:0;background:none;color:#0755d4;min-height:44px}
.login .login-form input{min-height:48px;font-size:16px}
@media(max-width:1100px){.shell{--workspace-nav:210px}.shell .topbar{gap:16px;padding-inline:20px}.workspace-logo{flex-basis:170px}.shell .global-search{width:210px}.shell .breadcrumb{font-size:12px}.shell .content{padding:24px}.shell .sidebar{padding-inline:10px}}
@media(max-width:760px){
 :root{--workspace-header:60px}
 .shell{display:block;padding-bottom:calc(72px + env(safe-area-inset-bottom));min-height:100dvh}
 .shell .topbar{padding:0 16px;gap:10px;height:60px}
 .workspace-logo{flex:1;min-width:0}.workspace-logo .brand-logo{width:132px;height:24px}
 .shell .breadcrumb{flex:0 0 auto;order:-1;font-size:0;overflow:visible}.shell .breadcrumb>span,.shell .breadcrumb>strong{display:none}
 .shell .mobile-menu{display:flex;min-width:44px;min-height:44px;font-size:12px;align-items:center;justify-content:center}
 .shell .top-actions{gap:0}.shell .top-actions .global-search,.shell .top-actions>.avatar{display:none}
 .shell .topbar .icon-button{min-height:44px;padding:8px;font-size:12px}
 .shell .sidebar{top:60px;bottom:calc(70px + env(safe-area-inset-bottom));width:min(310px,90vw);box-shadow:12px 0 36px #172b4d22}
 .shell .content{padding:22px 16px 28px}.shell .demo-bar{padding:8px 16px;font-size:10px;line-height:1.5}
 .shell .page-head{gap:14px}.shell .page-head h1{font-size:25px}.shell .page-head .subtitle{font-size:13px}
 .shell .page-head .actions{display:flex;flex-wrap:wrap;gap:8px}.shell .page-head .actions .btn{flex:1;min-height:44px}
 .shell .btn,.shell .btn.small,.shell .icon-button,.shell button.link{min-height:44px}
 .shell input,.shell select,.shell textarea{font-size:16px}
 .mobile-workspace-nav{display:flex;position:fixed;inset:auto 0 0;z-index:35;background:#fff;border-top:1px solid #dce5f0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));justify-content:space-around;min-height:66px;box-shadow:0 -4px 16px #172b4d06}
 .mobile-workspace-nav button{display:flex;flex:1;min-width:0;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#52627a;font-size:10px;border-radius:6px}
 .mobile-workspace-nav svg{width:21px;height:21px}.mobile-workspace-nav [aria-current=page]{background:#edf4ff;color:#0755d4;font-weight:700}
 .shell .kanban{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;gap:20px;min-height:0}
 .shell .kanban-col{min-width:0;padding:0;background:transparent}.shell .kanban-head{padding:0 0 10px;margin-bottom:0}
 .shell .deal{margin:0;border:0;border-bottom:1px solid #dce4ef;border-radius:0;background:white;padding:14px 12px}
 .shell .deal select{min-height:44px;font-size:14px;max-width:calc(100% - 36px)}
 .records-panel .table-wrap{overflow:visible}.records-panel table,.records-panel tbody,.records-panel tr,.records-panel td{display:block;width:100%;min-width:0}
 .records-panel thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .records-panel tr{padding:16px;border-bottom:1px solid var(--line)}
 .records-panel td{border:0;padding:6px 0;white-space:normal;overflow-wrap:anywhere}
 .records-panel td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.05em;color:#52627a;margin-bottom:3px}
 .records-panel td:first-child{font-weight:650;font-size:15px;padding-bottom:10px}.records-panel td .person{align-items:flex-start}
 .records-panel td .actions{gap:12px}.records-panel td .actions button{min-width:64px}
 .login{display:block}.login .login-story{padding:22px 24px}.login .login-story .brand{margin:0;padding:0;min-height:32px}
 .login .brand-inverse .brand-logo{width:155px;height:28px}.login .login-story .eyebrow,.login .login-story h1,.login .login-story>p{display:none}
 .login-form{padding:32px 24px}.login-form h2{font-size:27px}.login-form form{margin-top:24px}
}
@media(prefers-reduced-motion:reduce){.shell *{scroll-behavior:auto;transition:none!important}}
/* Keep search and primary actions comfortable at actual working sizes. */
.shell .global-search{min-height:40px;padding:0 12px}
.shell .global-search input{padding:0;min-height:38px;border:0}
.shell .filterbar .search-field{min-height:44px;padding:0 12px}
.shell .filterbar .search-field input{padding:0;min-height:42px;border:0}
#toast:empty{display:none}
@media(max-width:760px){.shell .page-head>.actions{width:100%}.shell .page-head>.actions .btn{white-space:nowrap}}
.modal .btn,.modal .icon-button{box-shadow:none;background:#fff;border:1px solid #cdd8e6;border-radius:6px;transform:none;min-height:44px}
.modal .btn.primary{background:#0664f8;border-color:#0664f8;color:white}
.modal .modal-head{background:white}.modal input,.modal select,.modal textarea{border-radius:6px}
