/* Application workspaces only. The public presentation page keeps its own art direction. */
body:not(.presentation-view){
 --workspace-accent:var(--orange);
 --workspace-accent-soft:#fff7e8;
 --workspace-canvas:#f7f9f8;
 --workspace-surface:#fff;
 --workspace-line:#dce3df;
 --workspace-shadow:0 10px 28px rgba(28,45,37,.07);
 background:var(--workspace-canvas);
 color:#1d2522;
}
body.client-space:not(.presentation-view){--workspace-accent:var(--blue);--workspace-accent-soft:#edf4ff}

body:not(.presentation-view) .sidebar{background:#fff;border-color:var(--workspace-line)}
body:not(.presentation-view) #nav a{position:relative;transition:background-color .16s,color .16s}
body:not(.presentation-view) #nav a:hover{background:#f4f6f5;color:#24322b}
body:not(.presentation-view) #nav a.active{background:var(--workspace-accent-soft);color:#26342d}
body:not(.presentation-view) #nav a.active:before{content:"";position:absolute;inset:8px auto 8px -2px;width:3px;background:var(--workspace-accent);border-radius:2px}
body:not(.presentation-view) #nav a.active svg{color:var(--workspace-accent)}
body:not(.presentation-view) .topbar{position:sticky;top:0;z-index:24;background:rgba(255,255,255,.97);border-color:var(--workspace-line)}
body:not(.presentation-view) .topbar h1{font-weight:720;color:#17221d}
body:not(.presentation-view) .search input{background:#f4f6f5;border-color:transparent;transition:border-color .16s,background-color .16s,box-shadow .16s}
body:not(.presentation-view) .search input:focus{background:#fff;border-color:#aab8b1;box-shadow:0 0 0 3px rgba(1,73,180,.08)}
body:not(.presentation-view) .status-banner{background:#fff;border-color:var(--workspace-line);color:#647069}
body:not(.presentation-view) main{width:100%;max-width:1680px;margin-inline:auto;padding-top:30px}

body:not(.presentation-view) .workspace-tabs{position:sticky;top:76px;z-index:20;padding:5px;background:#eef2f0;border-color:var(--workspace-line);box-shadow:0 5px 16px rgba(28,45,37,.04)}
body:not(.presentation-view) .workspace-tabs a{border-left:0;border-bottom:3px solid transparent;border-radius:4px;color:#5b6962;transition:background-color .16s,color .16s,border-color .16s}
body:not(.presentation-view) .workspace-tabs a.active{border-left:0;border-bottom-color:var(--workspace-accent);color:#1d2923;box-shadow:none}
body:not(.presentation-view) .workspace-tabs a.active svg{color:var(--workspace-accent)}
body:not(.presentation-view) .workspace-guide{border-left-color:var(--workspace-accent);background:var(--workspace-accent-soft);padding:12px 16px;margin-bottom:20px}
body:not(.presentation-view) .workspace-guide>svg,body:not(.presentation-view) .workspace-guide span{color:var(--workspace-accent)}
body:not(.presentation-view) .workspace-guide b{font-size:13px;color:#34433b}

body:not(.presentation-view) .band{padding:0 0 34px;margin-bottom:30px;border-color:var(--workspace-line)}
body:not(.presentation-view) .section-head{margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid #edf0ee}
body:not(.presentation-view) .section-head h2{font-size:20px;font-weight:720;color:#1d2823}
body:not(.presentation-view) .section-head h2:after{content:"";display:block;width:32px;height:3px;margin-top:8px;background:var(--workspace-accent)}
body:not(.presentation-view) .work-queue-head{padding:4px 0 22px;border-bottom:1px solid var(--workspace-line)}
body:not(.presentation-view) .work-queue-head h2{font-size:30px;line-height:1.2}
body:not(.presentation-view) .eyebrow{color:var(--workspace-accent)}

body:not(.presentation-view) .primary{background:var(--blue);box-shadow:0 2px 5px rgba(1,73,180,.18);transition:transform .14s,background-color .14s,box-shadow .14s}
body:not(.presentation-view) .primary:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(1,73,180,.2)}
body:not(.presentation-view) .secondary{border-color:#c7d1cb;color:#29372f;transition:border-color .14s,background-color .14s}
body:not(.presentation-view) .secondary:hover{border-color:#93a39a;background:#f7f9f8}
body:not(.presentation-view) .text-button{font-weight:680;text-underline-offset:3px}
body:not(.presentation-view) button:disabled{cursor:wait;filter:saturate(.7)}
body:not(.presentation-view) button:disabled svg[data-lucide="loader-circle"]{animation:workspace-spin .8s linear infinite}

body:not(.presentation-view) .kpis{gap:14px;border:0;padding:0;margin:0 0 30px}
body:not(.presentation-view) .kpis article{min-height:118px;padding:18px 20px!important;border:1px solid var(--workspace-line)!important;background:#fff;border-radius:6px}
body:not(.presentation-view) .kpis article>svg{right:18px;top:18px;color:var(--workspace-accent)}
body:not(.presentation-view) .kpis article>strong{font-variant-numeric:tabular-nums;color:#17221d}
body:not(.presentation-view) .quick-links{gap:12px}
body:not(.presentation-view) .quick-links a{min-height:54px;padding:10px 14px;border:1px solid var(--workspace-line);background:#fff;border-radius:5px;transition:border-color .14s,transform .14s}
body:not(.presentation-view) .quick-links a:hover{border-color:#9daba4;transform:translateY(-1px)}
body:not(.presentation-view) .quick-links svg:first-child{color:var(--workspace-accent)}

body:not(.presentation-view) .table-scroll{border:1px solid var(--workspace-line);border-radius:6px;background:#fff}
body:not(.presentation-view) table{font-variant-numeric:tabular-nums}
body:not(.presentation-view) thead{background:#f3f6f4}
body:not(.presentation-view) th{position:sticky;top:0;z-index:1;color:#52615a;font-size:11px;text-transform:uppercase;font-weight:720}
body:not(.presentation-view) th,body:not(.presentation-view) td{padding:13px 14px;border-bottom-color:#e8ecea;vertical-align:top}
body:not(.presentation-view) tbody tr{transition:background-color .12s}
body:not(.presentation-view) tbody tr:hover{background:#fafbf9}
body:not(.presentation-view) tbody tr:last-child td{border-bottom:0}
body:not(.presentation-view) td small{display:block;margin-top:4px;line-height:1.45}
body:not(.presentation-view) .badge{border:1px solid transparent;font-weight:680}
body:not(.presentation-view) .badge.ok{border-color:#c9dfd1}
body:not(.presentation-view) .badge.bad{border-color:#efd0d6}
body:not(.presentation-view) .filters{gap:8px;padding:2px 0 10px}
body:not(.presentation-view) .filters button{min-height:36px;padding:8px 12px;border:1px solid transparent;border-radius:4px}
body:not(.presentation-view) .filters .active{border-color:#c6d5ec;background:#edf4ff}

body:not(.presentation-view) input,body:not(.presentation-view) select,body:not(.presentation-view) textarea{border-color:#cfd8d3;background:#fff;transition:border-color .14s,box-shadow .14s}
body:not(.presentation-view) input:hover,body:not(.presentation-view) select:hover,body:not(.presentation-view) textarea:hover{border-color:#aebcb4}
body:not(.presentation-view) input:focus,body:not(.presentation-view) select:focus,body:not(.presentation-view) textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(1,73,180,.08)}
body:not(.presentation-view) .field>span,body:not(.presentation-view) fieldset>legend{font-weight:680;color:#334139}
body:not(.presentation-view) .form-grid{gap:22px}
body:not(.presentation-view) .product-form-section{border-color:var(--workspace-line);background:#fff}
body:not(.presentation-view) .product-form-section>header>span{background:var(--workspace-accent);color:#fff}
body:not(.presentation-view) .product-editor-intro{border-left-color:var(--workspace-accent);background:var(--workspace-accent-soft)}

body:not(.presentation-view) dialog{border:0;border-radius:7px;box-shadow:0 24px 90px rgba(17,31,24,.28)}
body:not(.presentation-view) dialog::backdrop{background:rgba(18,32,25,.62);backdrop-filter:blur(2px)}
body:not(.presentation-view) .dialog-head{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--workspace-line);padding:20px 24px}
body:not(.presentation-view) #dialog-form{padding:24px}
body:not(.presentation-view) #dialog-form>footer{position:sticky;bottom:-1px;margin:24px -24px -24px;padding:16px 24px;background:#fff;border-top:1px solid var(--workspace-line);box-shadow:0 -8px 18px rgba(27,44,35,.05)}
body:not(.presentation-view) .form-error:not(:empty){display:flex;align-items:flex-start;gap:9px;margin:18px 0 0;padding:12px 14px;border-left:4px solid var(--red);background:#fff1f3;color:var(--red);font-weight:620}
body:not(.presentation-view) .form-error svg{width:19px;height:19px;flex:0 0 auto}

body:not(.presentation-view) .view-health{border-left:4px solid;padding:14px 16px;border-radius:4px}
body:not(.presentation-view) .view-health.blocked{border-left-color:var(--red)}
body:not(.presentation-view) .view-health.warning{border-left-color:var(--yellow)}
body:not(.presentation-view) .active-context{border-left:4px solid var(--blue);border-radius:4px}
body:not(.presentation-view) .empty{border:1px dashed #cbd5d0;background:#fbfcfb;border-radius:6px}

body:not(.presentation-view) .team-activity{list-style:none;margin:0;padding:0}
body:not(.presentation-view) .team-activity li{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 0;border-bottom:1px solid #e8ecea}
body:not(.presentation-view) .team-activity li:last-child{border-bottom:0}
body:not(.presentation-view) .activity-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--workspace-accent-soft);color:var(--workspace-accent);font-size:11px;font-weight:780;border:1px solid color-mix(in srgb,var(--workspace-accent) 26%,white)}
body:not(.presentation-view) .team-activity li>div{display:grid;gap:3px;min-width:0}
body:not(.presentation-view) .team-activity b{font-size:13px;color:#26332c}
body:not(.presentation-view) .team-activity span{font-size:12px;color:#44534b}
body:not(.presentation-view) .team-activity small{overflow-wrap:anywhere}
body:not(.presentation-view) .team-activity time{font-size:11px;color:var(--muted);white-space:nowrap}

body:not(.presentation-view) .toast{display:grid;grid-template-columns:38px minmax(0,1fr) 34px;align-items:start;gap:12px;left:auto;right:24px;bottom:24px;transform:translateY(18px);width:min(470px,calc(100% - 32px));max-width:none;padding:16px;border:1px solid #cfd8d3;border-left:5px solid var(--green);border-radius:7px;background:#fff;color:#24322b;box-shadow:0 18px 48px rgba(20,36,28,.2);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,transform .18s,visibility .18s}
body:not(.presentation-view) .toast.show{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
body:not(.presentation-view) .toast.error{background:#fff;border-left-color:var(--red);color:#51202a}
body:not(.presentation-view) .toast.warning{border-left-color:var(--yellow)}
body:not(.presentation-view) .toast.info{border-left-color:var(--blue)}
body:not(.presentation-view) .toast-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e8f3ed;color:var(--green)}
body:not(.presentation-view) .toast.error .toast-symbol{background:#fdecef;color:var(--red)}
body:not(.presentation-view) .toast.warning .toast-symbol{background:#fff4d9;color:#976500}
body:not(.presentation-view) .toast.info .toast-symbol{background:#edf4ff;color:var(--blue)}
body:not(.presentation-view) .toast.info .toast-symbol svg{animation:workspace-spin .9s linear infinite}
body:not(.presentation-view) .toast-copy{display:grid;gap:3px;padding-top:1px}
body:not(.presentation-view) .toast-copy b{font-size:13px}
body:not(.presentation-view) .toast-copy span{font-size:12px;line-height:1.5;color:#5d6963}
body:not(.presentation-view) .toast-close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;background:transparent;color:#65736b;border-radius:4px}
body:not(.presentation-view) .toast-close:hover{background:#f1f4f2}

@keyframes workspace-spin{to{transform:rotate(360deg)}}

body:not(.presentation-view) .supplier-task-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--workspace-line)}
body:not(.presentation-view) .supplier-task-list li{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 2px;border-bottom:1px solid var(--workspace-line)}
body:not(.presentation-view) .supplier-task-list li>div{display:grid;gap:3px;min-width:0}
body:not(.presentation-view) .supplier-task-list b{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
body:not(.presentation-view) .supplier-task-list li>div span{font-size:12px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
body:not(.presentation-view) .supplier-task-list small{font-size:11px;color:var(--muted)}
body:not(.presentation-view) .supplier-task-priority{font-size:10px;font-weight:700;color:var(--blue)}
body:not(.presentation-view) .supplier-task-priority.urgent{color:var(--red)}
body:not(.presentation-view) .supplier-task-list .text-button{white-space:nowrap}

@media(max-width:800px){
 body:not(.presentation-view) .topbar{position:relative}
 body:not(.presentation-view) .workspace-tabs{top:0;margin-inline:-18px;padding-inline:18px}
 body:not(.presentation-view) .work-queue-head h2{font-size:25px}
 body:not(.presentation-view) .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body:not(.presentation-view) .kpis article{min-height:105px}
 body:not(.presentation-view) .toast{right:16px;bottom:84px}
 body:not(.presentation-view) .workspace{padding-bottom:82px}
 body:not(.presentation-view) .mobile-nav{min-height:76px;padding-top:7px}
 body:not(.presentation-view) .mobile-nav>a,body:not(.presentation-view) .mobile-nav>button{min-height:64px;font-size:9px;line-height:1.2;padding-inline:4px;overflow:hidden}
 body:not(.presentation-view) .mobile-nav>a span,body:not(.presentation-view) .mobile-nav>button span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:76px}
 body:not(.presentation-view) .team-activity li{grid-template-columns:38px minmax(0,1fr)}
 body:not(.presentation-view) .team-activity time{grid-column:2;white-space:normal}
 body:not(.presentation-view) dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
 body:not(.presentation-view) .dialog-head{padding:16px 18px}
 body:not(.presentation-view) #dialog-form{padding:18px}
 body:not(.presentation-view) #dialog-form>footer{margin:20px -18px -18px;padding:14px 18px}
}

@media(max-width:520px){
 body:not(.presentation-view) .supplier-task-list li{grid-template-columns:62px minmax(0,1fr);gap:8px 10px;align-items:start}
 body:not(.presentation-view) .supplier-task-list .text-button{grid-column:2;justify-self:start;min-height:30px;padding:3px 0}
 body:not(.presentation-view) .section-head{align-items:flex-start}
 body:not(.presentation-view) .section-head>button,body:not(.presentation-view) .section-head>a{width:100%}
 body:not(.presentation-view) .quick-links{grid-template-columns:1fr}
 body:not(.presentation-view) .toast{grid-template-columns:34px minmax(0,1fr) 30px;padding:13px;gap:9px}
 body:not(.presentation-view) .toast-symbol{width:32px;height:32px}
}

@media(prefers-reduced-motion:reduce){
 body:not(.presentation-view) .toast,body:not(.presentation-view) .primary,body:not(.presentation-view) .quick-links a{transition:none}
}
