/* Koorooz Minimal Workspace 1.7 – independent of the Tailwind build. */
:root{--sidebar-w:242px;--ux-navy:#0d1b33;--ux-gold:#b99145;--ux-cream:#fff8ed;--ux-bg:#f7f7f5;--ux-text:#202a37;--ux-muted:#5c6773;--ux-border:#e8e9e7;--ux-radius:17px}
body.ux2{background:var(--ux-bg);color:var(--ux-text);font-size:clamp(14px,.18vw + 13.5px,16px);line-height:1.7}
body.ux2 .app-shell{min-height:100dvh}
body.ux2 .app-main{background:var(--ux-bg)}
body.ux2 .page-wrap{max-width:1360px;padding:clamp(20px,3vw,46px) clamp(17px,3.5vw,50px) 88px}
body.ux2 .page-wrap:has(.tree-page){max-width:1680px}
body.ux2 :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid rgba(185,145,69,.38);outline-offset:3px}
/* Navigation: deliberately calm, one task per destination. */
body.ux2 .ux-sidebar{--sidebar-w:242px;background:var(--ux-navy)!important;box-shadow:none!important;border:0!important;color:#eef3fa}
body.ux2 .ux-sidebar-scroll{padding:28px 14px 20px!important}
body.ux2 .ux-brand{display:flex;align-items:center;gap:12px;padding:0 7px 23px;color:#fff}
body.ux2 .ux-brand-symbol{width:39px;height:39px;border-radius:12px;background:#c8a45f;color:#10213a;display:grid;place-items:center;font-size:1.35rem;font-weight:900;flex-shrink:0}
body.ux2 .ux-brand>span:last-child{display:grid;gap:0;min-width:0}
body.ux2 .ux-brand strong{font-size:1.16rem;font-weight:900;line-height:1.4}
body.ux2 .ux-brand small{font-size:.75rem;color:#adb9c9}
body.ux2 .ux-organization{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;margin:0 0 27px;border-radius:12px;background:#192b45;border:1px solid #263b56;color:#edf0f7}
body.ux2 .ux-organization>span:first-child{display:grid;gap:2px;min-width:0}
body.ux2 .ux-organization small{font-size:.75rem;color:#a7b5ca}
body.ux2 .ux-organization strong{font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ux2 .ux-organization>span:last-child{color:#cfb17d}
body.ux2 .ux-nav{display:grid;gap:5px}
body.ux2 .ux-nav-item{min-height:47px;display:flex;align-items:center;gap:12px;border-radius:11px;padding:0 13px;color:#b8c5d4;font-size:.91rem;font-weight:580;transition:background .15s,color .15s}
body.ux2 .ux-nav-item:hover{color:#fff;background:#1d304b}
body.ux2 .ux-nav-item.is-active{background:#fbf8f1;color:#10213b;font-weight:800;box-shadow:none}
body.ux2 .ux-nav-icon{width:23px;flex:0 0 23px;font-size:1.33rem;font-weight:400;line-height:1;text-align:center}
body.ux2 .ux-extra{margin:32px 4px 0;padding-top:17px;border-top:1px solid #2a3b53}
body.ux2 .ux-extra>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:7px;padding:8px 12px;color:#a8b6c8;font-size:.82rem;font-weight:600;cursor:pointer}
body.ux2 .ux-extra>summary::-webkit-details-marker{display:none}
body.ux2 .ux-extra[open]>summary span{transform:rotate(180deg)}
body.ux2 .ux-extra-links{display:grid;gap:2px;padding:8px 4px}
body.ux2 .ux-extra-links a{padding:9px 12px;border-radius:8px;color:#bdc7d4;font-size:.83rem}
body.ux2 .ux-extra-links a:hover{background:#1d304b;color:#fff}
body.ux2 .ux-account{background:#101e32!important;border-color:#2a3b53!important;box-shadow:none!important}
body.ux2 .ux-profile{display:flex;align-items:center;gap:10px;padding:7px 0;color:#fff}
body.ux2 .ux-avatar,body.ux2 .ux-top-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:50%;background:#f1e4cc;color:#3c3326;font-weight:900}
body.ux2 .ux-profile>span:nth-child(2){display:grid;gap:1px;min-width:0;flex:1}
body.ux2 .ux-profile strong{font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ux2 .ux-profile small{font-size:.75rem;color:#aebccd}
body.ux2 .ux-profile-arrow{color:#9ca9ba}
body.ux2 .ux-exit{border:0;background:transparent;color:#bbc7d4;text-align:right;width:100%;padding:9px 1px;font-size:.78rem}
body.ux2 .ux-exit:hover{color:#fff}
/* Header is intentionally not the dashboard. */
body.ux2 .ux-topbar{height:70px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--ux-border);box-shadow:none;padding:0 clamp(18px,3vw,43px);display:flex;align-items:center;justify-content:space-between}
body.ux2 .ux-topbar-start,body.ux2 .ux-topbar-end{display:flex;align-items:center;gap:13px}
body.ux2 .ux-topbar-label{display:grid;gap:0}
body.ux2 .ux-topbar-label strong{font-size:.9rem;font-weight:800;color:var(--ux-navy)}
body.ux2 .ux-topbar-label small{font-size:.75rem;color:var(--ux-muted)}
body.ux2 .ux-bell{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--ux-border);border-radius:12px;color:#536272;position:relative;background:white}
body.ux2 .ux-bell-dot{position:absolute;right:-5px;top:-5px;border-radius:100%;background:var(--ux-gold);color:#fff;min-width:18px;height:18px;padding:0 3px;display:grid;place-items:center;font-size:.75rem}
body.ux2 .ux-top-avatar{width:37px;height:37px;flex-basis:37px;font-size:.88rem}
/* Shared workspace components */
body.ux2 .ux-home-head,body.ux2 .ux-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px;min-width:0}
body.ux2 .ux-overline{display:block;margin-bottom:7px;color:#947139;font-weight:750;font-size:.8rem}
body.ux2 .ux-home-head h1,body.ux2 .ux-page-head h1{font-size:clamp(1.52rem,1.1vw + 1.1rem,2.05rem);line-height:1.35;color:var(--ux-navy);font-weight:850;margin:0 0 8px;letter-spacing:-.02em}
body.ux2 .ux-home-head p,body.ux2 .ux-page-head p{margin:0;color:var(--ux-muted);font-size:.88rem;line-height:1.8}
body.ux2 .ux-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 17px;border-radius:11px;font-size:.84rem;font-weight:760;white-space:nowrap;border:1px solid transparent;transition:.16s ease}
body.ux2 .ux-button-main{background:var(--ux-navy);color:white}
body.ux2 .ux-button-main:hover{background:#243b5e;color:#fff;transform:translateY(-1px)}
body.ux2 .ux-button-secondary{background:white;border-color:var(--ux-border);color:#475568}
body.ux2 .ux-button-secondary:hover{border-color:#d1bc93}
body.ux2 .ux-overview{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,.72fr) minmax(0,.72fr);gap:14px;margin-bottom:23px}
body.ux2 .ux-progress-feature{min-height:172px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:25px 30px;background:var(--ux-navy);color:white;border-radius:var(--ux-radius);overflow:hidden}
body.ux2 .ux-progress-copy{display:grid;gap:4px}
body.ux2 .ux-progress-copy>span{font-size:.84rem;color:#ccd5df}
body.ux2 .ux-progress-copy>strong{font-size:clamp(2.15rem,2.2vw + 1.3rem,3.25rem);line-height:1.15;letter-spacing:-.03em;font-weight:850;direction:ltr;text-align:right}
body.ux2 .ux-progress-copy>strong small{font-size:1.1rem;margin-right:3px;color:#dfc18b}
body.ux2 .ux-progress-copy p{margin:2px 0 0;font-size:.79rem;color:#bac8d6}
body.ux2 .ux-circle{--value:0;width:112px;height:112px;flex:0 0 112px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#d9b672 var(--percent),#34455c 0);transform:scaleX(-1)}
body.ux2 .ux-circle:before{content:"";width:90px;height:90px;border-radius:50%;background:var(--ux-navy);grid-area:1/1}
body.ux2 .ux-circle span{grid-area:1/1;font-size:2.2rem;color:#d9b672;z-index:1;transform:scaleX(-1)}
body.ux2 .ux-mini-stat{background:white;min-height:172px;border-radius:var(--ux-radius);border:1px solid var(--ux-border);padding:24px;display:flex;align-items:flex-start;flex-direction:column;justify-content:space-between;gap:4px}
body.ux2 .ux-mini-stat .ux-stat-symbol{height:28px;width:28px;background:#f6f1e7;color:#92703a;display:grid;place-items:center;border-radius:9px;font-size:1.25rem}
body.ux2 .ux-mini-stat .ux-alert-symbol{background:#fff4e8;color:#ab6f26}
body.ux2 .ux-mini-stat>strong{font-size:2rem;line-height:1.1;font-weight:850;color:var(--ux-navy)}
body.ux2 .ux-mini-stat>span:last-child{font-size:.84rem;color:var(--ux-muted)}
body.ux2 .ux-home-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:17px;align-items:start}
body.ux2 .ux-panel{min-width:0;border:1px solid var(--ux-border);background:#fff;border-radius:var(--ux-radius);padding:clamp(19px,2.25vw,28px)}
body.ux2 .ux-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}
body.ux2 .ux-panel-head h2{font-size:1.05rem;font-weight:830;color:var(--ux-navy);margin:0 0 4px}
body.ux2 .ux-panel-head p{font-size:.8rem;color:var(--ux-muted);margin:0}
body.ux2 .ux-see-all{color:#896628;font-size:.8rem;white-space:nowrap;font-weight:760;padding:5px 0}
body.ux2 .ux-goals-compact,body.ux2 .ux-todo-list,body.ux2 .ux-attention-list,body.ux2 .ux-my-results{display:grid;gap:0}
body.ux2 .ux-goal-compact{display:flex;align-items:center;gap:13px;padding:17px 0;border-bottom:1px solid #f0f0ee;min-width:0}
body.ux2 .ux-goal-compact:first-child{padding-top:4px}
body.ux2 .ux-goal-compact:last-child{padding-bottom:3px;border-bottom:0}
body.ux2 .ux-goal-compact:hover .ux-goal-text strong{color:#946d2e}
body.ux2 .ux-goal-tile{width:42px;height:42px;border-radius:13px;background:#fff5e6;display:grid;place-items:center;color:#a17a3b;font-size:1.4rem;flex:0 0 42px}
body.ux2 .ux-goal-text{min-width:0;display:grid;gap:6px;flex:1}
body.ux2 .ux-goal-text>strong{font-weight:780;font-size:.92rem;color:#243244;overflow-wrap:anywhere}
body.ux2 .ux-goal-text>small{font-size:.75rem;color:var(--ux-muted)}
body.ux2 .ux-goal-value{font-size:1rem;font-weight:800;color:var(--ux-navy);white-space:nowrap}
body.ux2 .ux-meter{display:block;height:6px;background:#efefeb;border-radius:99px;overflow:hidden;width:100%}
body.ux2 .ux-meter>i{display:block;height:100%;background:#bb944e;border-radius:99px;transition:width .25s ease}
body.ux2 .ux-attention-item{display:flex;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid #f0f0ee;min-width:0}
body.ux2 .ux-attention-item:first-child{padding-top:4px}
body.ux2 .ux-attention-item>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}
body.ux2 .ux-attention-item strong{font-size:.84rem;font-weight:760;color:#273446;overflow-wrap:anywhere}
body.ux2 .ux-attention-item small{font-size:.75rem;color:var(--ux-muted);line-height:1.7}
body.ux2 .ux-attention-item>span:last-child{color:#ab9a7b}
body.ux2 .ux-attention-mark{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#b99145}
body.ux2 .ux-tone-danger{background:#cb6d62}
body.ux2 .ux-tone-good{background:#58a184}
body.ux2 .ux-calendar-link{margin-top:21px;border-radius:11px;background:#f8f7f4;color:#4b5a6a;padding:13px 15px;display:flex;justify-content:space-between;align-items:center;font-size:.82rem;font-weight:730}
body.ux2 .ux-calendar-link:hover{background:#f4ecda;color:#7e5c26}
body.ux2 .ux-todo{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #f0f0ee;min-width:0}
body.ux2 .ux-todo:first-child{padding-top:3px}
body.ux2 .ux-todo:last-child{border:0}
body.ux2 .ux-todo>span:last-child{flex:1;min-width:0;display:grid;gap:4px}
body.ux2 .ux-todo strong{color:#2a3542;font-size:.84rem;font-weight:770;overflow-wrap:anywhere}
body.ux2 .ux-todo small{color:var(--ux-muted);font-size:.75rem}
body.ux2 .ux-todo-check{width:24px;height:24px;border-radius:8px;border:1.5px solid #c9cfd2;background:#fff;flex:0 0 24px;display:grid;place-items:center;padding:0}
body.ux2 .ux-todo-action .ux-todo-check:hover{background:#e8f6ef;border-color:#58a184}
body.ux2 .ux-result{padding:14px 0;border-bottom:1px solid #f0f0ee;display:grid;gap:7px}
body.ux2 .ux-result:first-child{padding-top:2px}
body.ux2 .ux-result:last-child{border-bottom:0}
body.ux2 .ux-result>small{color:var(--ux-muted);font-size:.75rem}
body.ux2 .ux-result>strong{font-size:.9rem;color:#273446;font-weight:750}
body.ux2 .ux-result-values{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.77rem;color:var(--ux-muted)}
body.ux2 .ux-result-values b{color:var(--ux-navy);font-size:.9rem}
body.ux2 .ux-inline-action{justify-self:start;border:0;background:#fcf4e7;border-radius:8px;color:#845f21;font-size:.78rem;padding:7px 11px;font-weight:760}
body.ux2 .ux-inline-action:hover{background:#f3e2c4}
body.ux2 .ux-empty{display:grid;justify-items:start;gap:9px;padding:28px 5px;color:#586577}
body.ux2 .ux-empty>span{font-size:1.7rem;color:#b99145}
body.ux2 .ux-empty strong{color:#243244;font-size:.95rem}
body.ux2 .ux-empty p{font-size:.8rem;color:var(--ux-muted);margin:0;line-height:1.8}
body.ux2 .ux-more{margin-top:16px;background:#fff;border:1px solid var(--ux-border);border-radius:13px;color:#6a7480}
body.ux2 .ux-more>summary{list-style:none;padding:15px 20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:710;font-size:.82rem}
body.ux2 .ux-more>summary::-webkit-details-marker{display:none}
body.ux2 .ux-more[open]>summary>span{transform:rotate(180deg)}
body.ux2 .ux-more-content{display:flex;align-items:center;gap:26px;flex-wrap:wrap;padding:0 20px 20px}
body.ux2 .ux-more-content>div{display:grid;gap:3px}
body.ux2 .ux-more-content strong{color:var(--ux-navy);font-size:1.2rem}
body.ux2 .ux-more-content span,body.ux2 .ux-more-content a{color:var(--ux-muted);font-size:.8rem}
body.ux2 .ux-more-content a{color:#816126;font-weight:700}
/* Goal cards are a new destination, not the old list with a new background. */
body.ux2 .ux-goal-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:23px}
body.ux2 .ux-search{display:flex;align-items:center;gap:10px;flex:1 1 230px;max-width:490px;height:49px;border:1px solid #e3e5e4;border-radius:11px;background:#fff;padding:0 15px}
body.ux2 .ux-search>span{color:#97815e;font-size:1.2rem}
body.ux2 .ux-search input{width:100%;border:0;outline:0!important;box-shadow:none!important;min-width:0;background:transparent;color:var(--ux-navy);font-size:.86rem}
body.ux2 .ux-period-picker{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e3e5e4;border-radius:11px;padding:3px 10px;height:49px;color:#64707f;font-size:.78rem}
body.ux2 .ux-period-picker>.k-select{min-width:160px;width:auto}
body.ux2 .ux-period-picker select{width:auto;max-width:210px;min-width:145px;border:0;background:transparent;color:#223249;box-shadow:none;font-size:.82rem}
body.ux2 .ux-period-picker .k-select-trigger{border:0!important;box-shadow:none!important;min-height:41px!important;height:41px!important;background:transparent!important;padding-right:5px!important;padding-left:2px!important}
body.ux2 .ux-goal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
body.ux2 .ux-goal-card{min-width:0;display:flex;flex-direction:column;gap:0;background:#fff;border:1px solid var(--ux-border);border-radius:var(--ux-radius);padding:24px 25px 19px;transition:border-color .16s,transform .16s}
body.ux2 .ux-goal-card:hover{border-color:#d7c29e;transform:translateY(-2px)}
body.ux2 .ux-goal-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
body.ux2 .ux-goal-icon{width:38px;height:38px;display:grid;place-items:center;background:#fff6e8;color:#a67f40;border-radius:11px;font-size:1.45rem}
body.ux2 .ux-goal-status{font-size:.75rem;border-radius:99px;padding:4px 10px;background:#f2f4f3;color:#5e6a76}
body.ux2 .ux-status-on_track{background:#ebf6ef;color:#26704c}
body.ux2 .ux-status-at_risk{background:#fff5e5;color:#a16f20}
body.ux2 .ux-status-off_track{background:#fff1ef;color:#a64f45}
body.ux2 .ux-goal-card h2{font-size:1.05rem;color:var(--ux-navy);font-weight:830;line-height:1.55;margin:0 0 7px}
body.ux2 .ux-goal-card>p{margin:0 0 24px;color:var(--ux-muted);font-size:.78rem;line-height:1.7}
body.ux2 .ux-goal-card-progress{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:.78rem;color:var(--ux-muted)}
body.ux2 .ux-goal-card-progress strong{color:var(--ux-navy);font-size:1rem}
body.ux2 .ux-goal-card-foot{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;padding:15px 0 0;margin-top:17px;border-top:1px solid #f1f1ef;font-size:.75rem;color:#7b8691}
body.ux2 .ux-goal-open{margin-top:15px;color:#896627;font-size:.79rem;font-weight:760}
body.ux2 .ux-empty-large{grid-column:1/-1;padding:50px 27px;background:white;border:1px dashed #d5d8d4;border-radius:16px;justify-items:center;text-align:center}
body.ux2 .ux-filter-reset{display:flex;gap:15px;align-items:center;margin:-8px 0 17px;font-size:.8rem;color:var(--ux-muted)}
body.ux2 .ux-filter-reset a{color:#8b642a}
/* Advanced filter: a control in the search row; its panel drops below the whole row (doc §3.1).
   The form is the positioning context, so the panel spans the row at every width and is never
   clipped by the summary; it is a normal-flow sibling of the cards, no z-index race with them. Stack: page content (auto) < filter panel (20)
   < sticky .ux-topbar (30) < .ux-sidebar drawer (60) < command palette / modals (1000+). */
body.ux2 .ux-goal-tools{position:relative}
body.ux2 .ux-filter-more{position:static;margin:0}
body.ux2 .ux-filter-more>summary{list-style:none;display:flex;align-items:center;gap:8px;height:49px;padding:0 15px;border:1px solid #e3e5e4;border-radius:11px;background:#fff;color:#4b5866;font-size:.8rem;font-weight:700;cursor:pointer;white-space:nowrap}
body.ux2 .ux-filter-more>summary::-webkit-details-marker{display:none}
body.ux2 .ux-filter-more>summary>span{transition:transform .15s ease}
body.ux2 .ux-filter-more[open]>summary{border-color:#b99145}
body.ux2 .ux-filter-more[open]>summary>span{transform:rotate(180deg)}
body.ux2 .ux-filter-more>summary:focus-visible{outline:2px solid #b99145;outline-offset:2px}
body.ux2 .ux-filter-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--ux-navy);color:#fff;font-size:.7rem;line-height:1}
body.ux2 .ux-filter-panel{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:20;min-width:0;margin:0;padding:14px 16px 16px;border:0;border-radius:13px;background:#fff;box-shadow:0 0 0 1px var(--ux-border),0 14px 36px rgba(20,32,50,.12)}
body.ux2 .ux-filter-panel legend{float:right;width:100%;padding:0;margin:0 0 10px;color:var(--ux-muted);font-size:.78rem;font-weight:700}
body.ux2 .ux-filter-links{clear:both;display:flex;gap:8px;flex-wrap:wrap}
body.ux2 .ux-filter-chip{position:relative;cursor:pointer}
body.ux2 .ux-filter-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
body.ux2 .ux-filter-chip span{display:block;padding:8px 12px;border-radius:9px;background:#f6f6f4;color:#5d6770;font-size:.8rem}
body.ux2 .ux-filter-chip input:checked+span{background:var(--ux-navy);color:#fff}
body.ux2 .ux-filter-chip input:focus-visible+span{outline:2px solid #b99145;outline-offset:2px}
/* Live search (static/src/js/live-search.js): clear button, status line, loading state. */
body.ux2 input[data-live-input]::-webkit-search-cancel-button{display:none}
body.ux2 .ux-search-field{position:relative;display:block}
body.ux2 .ux-search-field>input{width:100%;padding-inline-end:42px}
body.ux2 .ux-search-field>.ux-search-clear{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%)}
body.ux2 .ux-search-clear{flex:0 0 auto;display:inline-grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:#f3f2ee;color:#64707f;font-size:1rem;line-height:1;cursor:pointer}
body.ux2 .ux-search-clear:hover{background:#ebe7dd;color:#223249}
body.ux2 .ux-search-clear:focus-visible{outline:2px solid #b99145;outline-offset:2px}
body.ux2 .ux-search-clear[hidden]{display:none}
body.ux2 .ux-live-status{flex-basis:100%;margin:0;min-height:0;color:var(--ux-muted);font-size:.76rem}
body.ux2 .ux-live-status:empty{display:none}
body.ux2 .ux-live-status.is-error{color:#a23b3b}
body.ux2 .ux-live-status:not(.is-error):not(.is-loading){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.ux2 .ux-goal-tools.is-searching{cursor:progress}
body.ux2 .ux-live-results{transition:opacity .15s ease}
body.ux2 .ux-live-results.is-loading{opacity:.55;cursor:progress}
/* Legacy but important: readable forms, calm tree, and original permissions preserved. */
body.ux2 :is(.page-intro,.page-head){margin-bottom:23px}
body.ux2 :is(.page-intro h1,.page-head h1){font-size:clamp(1.45rem,1vw + 1rem,2rem);letter-spacing:-.015em}
body.ux2 :is(.section-block,.panel,.simple-form-card,.context-card,.card,.management-list,.simple-list,.result-card,.simple-table){box-shadow:none;border-color:var(--ux-border)}
body.ux2 :is(.btn-primary,.top-create){background:var(--ux-navy);box-shadow:none;color:#fff;border-color:var(--ux-navy)}
body.ux2 .btn-primary:hover{background:#203856;box-shadow:none}
body.ux2 :is(.form-input,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea){font-size:clamp(.88rem,.13vw + .82rem,.96rem)}
body.ux2 :is(.form-stack,.simple-form-card,.form-page,.form-grid) label{font-size:.86rem}
body.ux2 .tree-root-node{background:#fff7e9!important;box-shadow:none!important;border:1px solid #ecdcc0!important;border-radius:18px!important}
body.ux2 .tree-root-node:before{display:none}
body.ux2 .tree-root-node h1{font-size:clamp(1.24rem,.8vw + 1rem,1.64rem)}
body.ux2 .tree-kr-node{box-shadow:none!important;background:var(--ux-navy)!important;border-radius:14px!important}
/* KR card opens the KR (doc §3.4): the title link is stretched over the whole card (no nested <a>);
   inner controls (edit, inline check-in, history) sit above the overlay and keep their own action.
   Only rendered for people who may edit the KR. */
body.ux2 .tree-kr-link{color:inherit;text-decoration:none}
body.ux2 .tree-kr-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:14px}
body.ux2 .tree-kr-node:has(.tree-kr-link) :is(a,button,summary,input,select,textarea,label,details,form,[tabindex]):not(.tree-kr-link){position:relative;z-index:2}
body.ux2 .tree-kr-node:has(.tree-kr-link:hover){outline:2px solid rgba(185,145,69,.65);outline-offset:2px}
@supports selector(:has(*)){body.ux2 .tree-kr-link:focus-visible{outline:none}body.ux2 .tree-kr-node:has(.tree-kr-link:focus-visible){outline:3px solid #d8b36a;outline-offset:3px}}
body.ux2 .tree-branch-grid{gap:22px}
body.ux2 .tree-task{box-shadow:none!important;border-color:var(--ux-border)}
body.ux2 .tree-cycle{box-shadow:none!important;border-color:var(--ux-border)}
body.ux2 .tree-bottom-note{background:#fff;border-color:var(--ux-border)}
body.ux2 .tree-extra-kr a{display:inline-block;padding:12px 16px;border:1px solid #e7dac4;border-radius:10px;background:#fff;color:#825f27}
/* Popup style retains the tested fixed-viewport interaction layer. */
body.ux2 .checkin-dialog{border-radius:18px!important;box-shadow:0 28px 85px rgba(13,27,51,.22)!important}
/* Adaptive layouts, minimum 44px interactive controls and no horizontal overflow. */
@media(max-width:1100px){body.ux2 .ux-home-grid{grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr)}body.ux2 .ux-overview{grid-template-columns:minmax(0,1.3fr) repeat(2,minmax(0,.7fr))}body.ux2 .ux-circle{width:86px;height:86px;flex-basis:86px}body.ux2 .ux-circle:before{width:67px;height:67px}}
@media(max-width:980px){body.ux2 .ux-sidebar{width:242px!important;--sidebar-w:242px}body.ux2 .ux-topbar .mobile-menu{display:grid;place-items:center}body.ux2 .ux-topbar{height:64px}}
@media(max-width:760px){body.ux2 .page-wrap{padding:23px 15px 68px}body.ux2 .ux-home-head,body.ux2 .ux-page-head{align-items:flex-start;flex-wrap:wrap;gap:15px}body.ux2 .ux-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.ux2 .ux-progress-feature{grid-column:1/-1;min-height:152px;padding:20px 23px}body.ux2 .ux-mini-stat{min-height:120px;padding:16px}body.ux2 .ux-mini-stat>strong{font-size:1.55rem}body.ux2 .ux-home-grid{grid-template-columns:minmax(0,1fr)}body.ux2 .ux-goal-grid{grid-template-columns:minmax(0,1fr)}body.ux2 .ux-panel{padding:20px 18px}body.ux2 .ux-goal-card{padding:20px 19px 17px}body.ux2 .ux-goal-tools{align-items:stretch}body.ux2 .ux-search{max-width:none;flex-basis:100%}body.ux2 .ux-period-picker{flex:1 1 170px}body.ux2 .ux-goal-tools>.ux-button{flex:0 0 auto}body.ux2 .ux-topbar-label strong{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:420px){body.ux2 .ux-home-head .ux-button,body.ux2 .ux-page-head .ux-button{width:100%}body.ux2 .ux-circle{width:82px;height:82px;flex-basis:82px}body.ux2 .ux-circle:before{width:64px;height:64px}body.ux2 .ux-topbar{padding-inline:12px}body.ux2 .ux-topbar-start{gap:8px}body.ux2 .ux-topbar-label strong{max-width:122px}body.ux2 .ux-goal-tools>.ux-button{flex:1}body.ux2 .ux-mini-stat>span:last-child{font-size:.77rem}body.ux2 .tree-top-actions{width:100%}body.ux2 .tree-top-actions>.btn{flex:1}}
@media(prefers-reduced-motion:reduce){body.ux2 .ux-goal-card,body.ux2 .ux-button,body.ux2 .ux-meter>i{transition:none}}
body.ux2 .ux-work-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:17px;align-items:start}
body.ux2 .ux-work-main{min-height:260px}
body.ux2 .ux-work-warning{font-size:.75rem;background:#fff4e8;color:#a46b25;padding:5px 9px;border-radius:8px;white-space:nowrap}
body.ux2 .ux-work-next{margin-top:17px;border-top:1px solid #efefec;padding-top:12px}
body.ux2 .ux-work-next summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;color:#26354a;font-size:.87rem;font-weight:800;list-style:none;padding:11px 0}
body.ux2 .ux-work-next summary::-webkit-details-marker{display:none}
body.ux2 .ux-work-next summary span{font-size:.75rem;color:var(--ux-muted);font-weight:500}
body.ux2 .ux-work-next[open] summary{margin-bottom:12px}
@media(max-width:760px){body.ux2 .ux-work-layout{grid-template-columns:minmax(0,1fr)}}
/* Calendar: the month is primary, event composer is secondary. */
body.ux2 .calendar-intro{margin-bottom:23px}
body.ux2 .calendar-shell{gap:16px}
body.ux2 :is(.calendar-main,.calendar-agenda){border-radius:17px;background:#fff;border:1px solid var(--ux-border);box-shadow:none}
body.ux2 .calendar-title strong{font-size:1.15rem;color:var(--ux-navy)}
body.ux2 .calendar-day{border-color:#f0f0ee}
body.ux2 .calendar-day.today,body.ux2 .calendar-day.selected{background:#fff7e9;border-color:#d9b574}
body.ux2 .calendar-nav{border-radius:10px}
body.ux2 .calendar-add-panel>summary{background:var(--ux-navy);border-radius:11px;box-shadow:none}
body.ux2 .calendar-add-panel[open]{position:relative;z-index:9}
body.ux2 .calendar-event-form{box-shadow:0 12px 36px rgba(13,27,51,.07)}

/* 1.8 / Field focus: border color only, no rings or focus shadows. */
body.ux2 :is(input,select,textarea,.form-input,.k-select-trigger):is(:focus,:focus-visible),
body.ux2 :is(.simple-form-card,.dialog-form,.form-stack,.login-form,.form-grid) :is(input,select,textarea):is(:focus,:focus-visible),
body.ux2 .k-select.is-open .k-select-trigger,
body.ux2 .k-select-trigger[aria-expanded="true"]{
  border-color:#b99145!important;
  outline:0!important;
  box-shadow:none!important;
}
body.ux2 :is(.ux-search,.ux-period-picker,.search-box):focus-within{border-color:#b99145!important;box-shadow:none!important}
body.ux2 .ux-search input:focus{border-color:transparent!important}
body.ux2 input[aria-invalid="true"]:focus,body.ux2 select[aria-invalid="true"]:focus{border-color:#cb6157!important}
body.ux2 .workspace-plan-label{display:block;margin:-20px 16px 19px;color:#dbc59c;font-size:.75rem}
body.ux2 .platform-sidebar-link{display:block;margin:16px 9px;padding:12px;color:#e4c994;border:1px solid #4b4e44;border-radius:11px;font-size:.83rem}
body.ux2 .platform-sidebar-link:hover{background:#213550;color:#fff}
body.ux2 .auth-register-link{display:block;text-align:center;padding:17px 0 4px;font-size:.86rem;color:#815e20;font-weight:740}
body.ux2 .registration-box{width:min(515px,100%)}
body.ux2 .register-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.ux2 .registration-box .login-form{gap:11px}
body.ux2 .registration-box .login-form label>small{font-size:.75rem;color:#727c86;line-height:1.7}
@media(max-width:500px){body.ux2 .register-names{grid-template-columns:1fr}}

/* Tenant owner admin – scoped, approachable, consistent with minimal UI. */
body.ux2 .tenant-admin-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff8ed;border:1px solid #ecddc3;border-radius:17px;padding:clamp(19px,2.5vw,30px);margin-bottom:17px}
body.ux2 .tenant-admin-banner h2{font-size:1.17rem;color:#0d1b33;margin:3px 0}
body.ux2 .tenant-admin-banner p{font-size:.82rem;color:#70654f;margin:0}
body.ux2 .tenant-status{background:#e8f4e9;color:#257c4c;border-radius:90px;padding:6px 15px;white-space:nowrap;font-size:.81rem}
body.ux2 .tenant-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:23px}
body.ux2 .tenant-admin-stats>div{background:#fff;border:1px solid #e8e9e7;border-radius:14px;padding:19px;display:grid;gap:7px}
body.ux2 .tenant-admin-stats small{color:#77818b;font-size:.8rem}
body.ux2 .tenant-admin-stats strong{font-size:clamp(1.5rem,2vw,2rem);color:#0d1b33}
body.ux2 .tenant-admin-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.ux2 .tenant-admin-links>a{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:4px 13px;padding:21px;background:#fff;border:1px solid #e8e9e7;border-radius:15px;color:#223046;transition:border-color .16s}
body.ux2 .tenant-admin-links>a:hover{border-color:#b99145}
body.ux2 .tenant-admin-links>a>span{grid-row:span 2;width:38px;height:38px;border-radius:11px;background:#f8f1e5;color:#9a7138;display:grid;place-items:center;font-size:1.2rem}
body.ux2 .tenant-admin-links>a>strong{font-size:.88rem}
body.ux2 .tenant-admin-links>a>small{grid-column:2;color:#77818b;font-size:.77rem}
body.ux2 .tenant-admin-links>a>b{grid-column:3;grid-row:1/span 2;color:#9f804b}
@media(max-width:800px){body.ux2 .tenant-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}body.ux2 .tenant-admin-links{grid-template-columns:1fr}}
@media(max-width:500px){body.ux2 .tenant-admin-banner{align-items:flex-start;flex-direction:column}}
body.ux2 .pending-invitations{margin-top:18px}.pending-invitations h2{font-size:1rem;color:#0d1b33}.pending-invitations>p{font-size:.82rem;color:#78818b}
body.ux2 .invite-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-top:1px solid #e8e9e7}
body.ux2 .invite-row>span{display:grid;gap:3px}.invite-row small{color:#7b8490;font-size:.78rem}
@media(max-width:540px){body.ux2 .invite-row{align-items:flex-start;flex-direction:column}}
body.ux2 .workspace-unavailable{font-size:.82rem;color:#8c6835;padding:12px 15px;background:#fff6e7;border:1px solid #e7d8bc;border-radius:12px}
/* Error state also uses border alone, never a shadow. */
body.ux2 .k-select.is-invalid .k-select-trigger{box-shadow:none!important}

/* Coherent vector icons: crisp across screen densities, no external font. */
.platform-icons{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
body.ux2 svg.ux-nav-icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
/* Organization admin navigation — consistent SVG icon geometry. */
body.ux2 .tenant-admin-links .tenant-admin-icon{width:42px;height:42px;flex:none;border-radius:12px;display:inline-grid;place-items:center;background:#fff2db;color:#96702b}
body.ux2 .tenant-admin-links .tenant-admin-icon svg{width:22px;height:22px;display:block}
body.ux2 .tenant-admin-links a:hover .tenant-admin-icon{background:#e9cf9e;color:#24364e}

/* My Work 2.0 — focused execution workspace across all active cycles. */
body.ux2 .mywork-page{min-width:0}
body.ux2 .mywork-tabs{display:flex;gap:7px;margin:-5px 0 15px;padding:5px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;background:#fff;border:1px solid var(--ux-border);border-radius:14px}
body.ux2 .mywork-tab{min-height:42px;flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border-radius:10px;color:#5e6976;font-size:.81rem;font-weight:740;white-space:nowrap}
body.ux2 .mywork-tab:hover{background:#f8f6f1;color:var(--ux-navy)}
body.ux2 .mywork-tab.is-active{background:var(--ux-navy);color:#fff}
body.ux2 .mywork-tab b{min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:99px;background:#f0eee8;color:#6e6658;font-size:.75rem;font-weight:800}
body.ux2 .mywork-tab.is-active b{background:#32445e;color:#f6e4c1}
body.ux2 .mywork-filter-panel{margin-bottom:17px;background:#fff;border:1px solid var(--ux-border);border-radius:14px;overflow:hidden}
body.ux2 .mywork-filter-panel>summary{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 17px;cursor:pointer;list-style:none;color:#26354a;font-size:.83rem}
body.ux2 .mywork-filter-panel>summary::-webkit-details-marker{display:none}
body.ux2 .mywork-filter-panel>summary>span{display:flex;align-items:center;gap:8px;font-weight:800}
body.ux2 .mywork-filter-panel>summary b{min-width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#f1e4cc;color:#755820;font-size:.75rem}
body.ux2 .mywork-filter-panel>summary small{color:var(--ux-muted);font-size:.75rem}
body.ux2 .mywork-filter-panel[open]>summary{border-bottom:1px solid #efefec}
body.ux2 .mywork-filter-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:17px}
body.ux2 .mywork-filter-form label{display:grid;gap:6px;min-width:0;color:#4f5a68;font-size:.76rem;font-weight:700}
body.ux2 .mywork-filter-form .form-input{width:100%;min-width:0;min-height:43px;border-radius:10px}
body.ux2 .mywork-filter-search{grid-column:span 2}
body.ux2 .mywork-filter-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:9px;padding-top:2px}
body.ux2 .mywork-filter-form .errorlist{margin:0;padding:0;list-style:none;color:#b64d43;font-size:.75rem;font-weight:500}
body.ux2 .mywork-layout{grid-template-columns:minmax(0,1.8fr) minmax(270px,.8fr)}
body.ux2 .mywork-main{padding-inline:clamp(16px,2vw,26px)}
body.ux2 .mywork-task-list{display:grid;gap:0}
body.ux2 .mywork-task{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:17px 0;border-bottom:1px solid #efefec}
body.ux2 .mywork-task:first-child{padding-top:3px}
body.ux2 .mywork-task:last-child{border-bottom:0;padding-bottom:3px}
body.ux2 .mywork-task.is-done{opacity:.72}
body.ux2 .mywork-task.is-overdue .mywork-task-state{background:#fff0eb;color:#b95c4f}
body.ux2 .mywork-task-main{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1}
body.ux2 .mywork-task-state{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;background:#f5f1e9;color:#8f6c32;font-size:1rem;font-weight:900}
body.ux2 .mywork-task.is-done .mywork-task-state{background:#edf6ef;color:#3a8051}
body.ux2 .mywork-task-copy{display:grid;gap:6px;min-width:0;flex:1}
body.ux2 .mywork-task-title-row{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
body.ux2 .mywork-task-title-row>strong{font-size:.9rem;color:#243244;font-weight:800;overflow-wrap:anywhere}
body.ux2 .mywork-task.is-done .mywork-task-title-row>strong{text-decoration:line-through;text-decoration-thickness:1px;color:#697481}
body.ux2 .mywork-status{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:99px;background:#f2f3f1;color:#66717e;font-size:.75rem;font-weight:750;white-space:nowrap}
body.ux2 .mywork-status.status-doing{background:#eef3fa;color:#42638b}
body.ux2 .mywork-status.status-blocked{background:#fff0eb;color:#aa5549}
body.ux2 .mywork-status.status-done{background:#edf6ef;color:#3c7d51}
body.ux2 .mywork-status.status-collab{background:#fff6e8;color:#916b2d}
body.ux2 .mywork-task-path{display:flex;align-items:center;gap:6px;min-width:0;color:#7c8691;font-size:.75rem}
body.ux2 .mywork-task-path span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
body.ux2 .mywork-task-path i{font-style:normal;color:#b2b8bf}
body.ux2 .mywork-task-meta{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;color:#7a8490;font-size:.75rem}
body.ux2 .mywork-task-meta span{display:inline-flex;align-items:center;gap:4px}
body.ux2 .mywork-task-meta .is-danger{color:#b54d43;font-weight:760}
body.ux2 .mywork-task-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto}
body.ux2 .mywork-task-actions form{margin:0}
body.ux2 .mywork-action{min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 11px;border:1px solid #e1e4e3;border-radius:9px;background:#fff;color:#526070;font-size:.75rem;font-weight:760;white-space:nowrap}
body.ux2 button.mywork-action{cursor:pointer}
body.ux2 .mywork-action:hover{border-color:#cdbb99;color:#805f28}
body.ux2 .mywork-action-primary{background:#f9f3e7;border-color:#ead9ba;color:#805f28}
body.ux2 .mywork-done-label{font-size:.75rem;color:#4f805c;font-weight:750;white-space:nowrap}
body.ux2 .mywork-empty{padding-block:40px}
body.ux2 .mywork-pagination{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:19px;padding-top:17px;border-top:1px solid #efefec;font-size:.76rem;color:var(--ux-muted)}
body.ux2 .mywork-pagination a{min-height:36px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid var(--ux-border);border-radius:9px;background:#fff;color:#3d4b5d;font-weight:750}
body.ux2 .mywork-pagination a:hover{border-color:#cdbb99;color:#805f28}
/* Shared list pagination (templates/partials/pagination.html), same look as My Work. */
body.ux2 .ux-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:13px;margin-top:19px;padding-top:17px;border-top:1px solid #efefec;font-size:.76rem;color:var(--ux-muted)}
body.ux2 .ux-pagination a{min-height:36px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid var(--ux-border);border-radius:9px;background:#fff;color:#3d4b5d;font-weight:750}
body.ux2 .ux-pagination a:hover{border-color:#cdbb99;color:#805f28}
body.ux2 .ux-pagination a:focus-visible{outline:2px solid #b99145;outline-offset:2px}
@media(max-width:1120px){body.ux2 .mywork-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}body.ux2 .mywork-filter-search{grid-column:span 2}}
@media(max-width:900px){body.ux2 .mywork-layout{grid-template-columns:minmax(0,1fr)}body.ux2 .mywork-side{order:2}}
@media(max-width:700px){body.ux2 .mywork-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}body.ux2 .mywork-filter-search{grid-column:1/-1}body.ux2 .mywork-task{align-items:flex-start;flex-direction:column;gap:12px}body.ux2 .mywork-task-actions{width:100%;padding-right:48px;justify-content:flex-start}body.ux2 .mywork-task-path span{max-width:190px}}
@media(max-width:470px){body.ux2 .mywork-filter-panel>summary small{display:none}body.ux2 .mywork-filter-form{grid-template-columns:minmax(0,1fr);padding:14px}body.ux2 .mywork-filter-search{grid-column:auto}body.ux2 .mywork-filter-actions{flex-direction:column;align-items:stretch}body.ux2 .mywork-filter-actions .ux-button{width:100%}body.ux2 .mywork-task-actions{padding-right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.ux2 .mywork-task-actions form,body.ux2 .mywork-task-actions .mywork-action{width:100%}body.ux2 .mywork-task-path{display:none}}

body.ux2 .goal-list-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
@media(max-width:430px){body.ux2 .goal-list-head-actions{width:100%}body.ux2 .goal-list-head-actions .ux-button{flex:1}}

/* Role-based dashboard 2.0 — decision-first, scoped and responsive. */
body.ux2 .role-dashboard-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
body.ux2 .role-dashboard .ux-home-grid{grid-template-columns:minmax(0,1.65fr) minmax(290px,.9fr)}
body.ux2 .dashboard-stack{display:grid;gap:16px;min-width:0}
body.ux2 .health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:17px}
body.ux2 .health-card{padding:21px 22px}
body.ux2 .health-card .ux-panel-head{margin-bottom:12px}
body.ux2 .health-row{min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:13px;border-bottom:1px solid #f0f0ed;color:#68737f;font-size:.79rem}
body.ux2 .health-row:last-child{border-bottom:0}
body.ux2 .health-row>span{display:flex;align-items:center;gap:8px;min-width:0}
body.ux2 .health-row strong{color:#243247;font-size:.91rem;font-weight:850}
body.ux2 .health-row .text-danger{color:#aa5048}
body.ux2 .health-dot{width:8px;height:8px;border-radius:50%;background:#aab2bc;flex:0 0 8px}
body.ux2 .health-dot.is-good{background:#4f8a69}
body.ux2 .health-dot.is-warning{background:#d09a43}
body.ux2 .health-dot.is-danger{background:#ba5b50}
body.ux2 .health-dot.is-done{background:#748596}
body.ux2 .dashboard-list{display:grid;gap:0}
body.ux2 .dashboard-list-row{display:flex;align-items:flex-start;gap:11px;padding:12px 0;border-bottom:1px solid #f0f0ed;color:inherit;text-decoration:none;min-width:0}
body.ux2 .dashboard-list-row:first-child{padding-top:2px}
body.ux2 .dashboard-list-row:last-child{border-bottom:0;padding-bottom:2px}
body.ux2 .dashboard-list-row>span:last-child{display:grid;gap:3px;min-width:0;flex:1}
body.ux2 .dashboard-list-row strong{font-size:.81rem;color:#2b3849;line-height:1.65;overflow-wrap:anywhere}
body.ux2 .dashboard-list-row small{font-size:.75rem;color:#818b96;line-height:1.65;overflow-wrap:anywhere}
body.ux2 .dashboard-list-icon{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;border-radius:9px;background:#fff0eb;color:#ad564b;font-size:.75rem;font-weight:900}
body.ux2 .dashboard-list-icon.is-soft{background:#f3eee4;color:#96702f}
body.ux2 .dashboard-list-icon.is-danger{background:#fff0eb;color:#ad564b}
body.ux2 .ux-empty.compact{padding:21px 8px;min-height:0}
body.ux2 .team-progress-list{display:grid;gap:13px}
body.ux2 .team-progress-row{display:grid;grid-template-columns:minmax(130px,.75fr) minmax(120px,1fr) 44px;align-items:center;gap:13px;min-width:0}
body.ux2 .team-progress-row>div{display:grid;gap:2px;min-width:0}
body.ux2 .team-progress-row strong{font-size:.8rem;color:#2d3a4c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ux2 .team-progress-row small{font-size:.75rem;color:#87919c}
body.ux2 .team-progress-row b{font-size:.77rem;color:#4c5967;text-align:left}
body.ux2 .employee-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
body.ux2 .employee-summary{display:grid;gap:6px;min-height:130px;padding:20px;border:1px solid var(--ux-border);border-radius:var(--ux-radius);background:#fff}
body.ux2 .employee-summary>span{font-size:.76rem;color:#5c6773;font-weight:720}
body.ux2 .employee-summary>strong{font-size:1.85rem;line-height:1.1;color:var(--ux-navy);font-weight:900}
body.ux2 .employee-summary>small{margin-top:auto;font-size:.75rem;line-height:1.65;color:#62707f}
body.ux2 .employee-summary.primary{background:#101f36;border-color:#101f36}
body.ux2 .employee-summary.primary>span,body.ux2 .employee-summary.primary>small{color:#b8c5d5}
body.ux2 .employee-summary.primary>strong{color:#fff1cf}
body.ux2 .employee-summary.danger{background:#fff8f6;border-color:#eed8d3}
body.ux2 .employee-summary.danger>strong{color:#a94f47}
body.ux2 .employee-overdue-panel{border-color:#edd8d4}
body.ux2 .employee-calendar-link{margin-top:16px}
@media(max-width:1100px){body.ux2 .health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.ux2 .health-card:last-child{grid-column:1/-1}body.ux2 .employee-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.ux2 .role-dashboard .ux-home-grid{grid-template-columns:minmax(0,1.35fr) minmax(260px,.9fr)}}
@media(max-width:820px){body.ux2 .role-dashboard .ux-home-grid{grid-template-columns:minmax(0,1fr)}body.ux2 .health-grid{grid-template-columns:minmax(0,1fr)}body.ux2 .health-card:last-child{grid-column:auto}}
@media(max-width:560px){body.ux2 .role-dashboard-actions{width:100%}body.ux2 .role-dashboard-actions .ux-button{flex:1}body.ux2 .employee-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.ux2 .employee-summary{min-height:116px;padding:15px}body.ux2 .employee-summary>strong{font-size:1.5rem}body.ux2 .team-progress-row{grid-template-columns:minmax(100px,.8fr) minmax(90px,1fr) 38px;gap:8px}}
@media(max-width:365px){body.ux2 .employee-summary-grid{grid-template-columns:minmax(0,1fr)}body.ux2 .role-dashboard-actions{display:grid;grid-template-columns:1fr}body.ux2 .team-progress-row{grid-template-columns:1fr 42px}body.ux2 .team-progress-row .ux-meter{grid-column:1/-1;grid-row:2}body.ux2 .team-progress-row b{grid-column:2;grid-row:1}}

/* Global search + command palette — chunk 15 */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html.command-palette-open{overflow:hidden}
body.ux2 .topbar-search-trigger{height:38px;min-width:210px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #e3e5e4;border-radius:10px;background:#f8f9f9;color:#5c6773;cursor:pointer;font:inherit}
body.ux2 .topbar-search-trigger:hover{background:#fff;border-color:#d6d9d8;color:#425064}
body.ux2 .topbar-search-trigger svg{width:17px;height:17px;flex:0 0 17px}
body.ux2 .topbar-search-trigger span{flex:1;text-align:right;font-size:.75rem}
body.ux2 kbd{font:700 .65rem/1.2 inherit;color:#5c6773;background:#fff;border:1px solid #dde0e1;border-bottom-color:#c9cdce;border-radius:6px;padding:3px 6px;box-shadow:0 1px 0 rgba(20,34,52,.05);white-space:nowrap}
body.ux2 .ux-nav-secondary{display:grid;gap:3px;padding-top:14px;margin-top:11px;border-top:1px solid rgba(255,255,255,.08)}
body.ux2 .ux-nav-caption{padding:4px 13px 7px;color:#8995a6;font-size:.75rem;font-weight:760}
body.ux2 .ux-nav-button{width:100%;border:0;font:inherit;text-align:right;cursor:pointer}
body.ux2 .ux-nav-item kbd{margin-right:auto;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.1);box-shadow:none;color:#8997a9;font-size:.75rem}
body.ux2 .ux-nav-icon.simple-icon{display:grid;place-items:center;font-size:1rem;font-weight:800}
body.ux2 .nav-count{margin-right:auto;min-width:20px;height:20px;padding:0 6px;display:grid;place-items:center;border-radius:999px;background:#f2dfb8;color:#694e1e;font-size:.75rem;font-weight:900}

.command-palette[hidden]{display:none!important}
.command-palette{position:fixed;inset:0;z-index:2400;display:grid;place-items:start center;padding:8vh 16px 20px;direction:rtl}
.command-palette-backdrop{position:absolute;inset:0;border:0;background:rgba(8,17,30,.47);backdrop-filter:blur(5px);cursor:default}
.command-palette-dialog{position:relative;width:min(680px,100%);max-height:min(680px,82vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.5);border-radius:18px;background:#fff;box-shadow:0 30px 80px rgba(8,18,33,.26)}
.command-palette-search{height:66px;display:flex;align-items:center;gap:12px;padding:0 17px;border-bottom:1px solid #eceeec;background:#fff}
.command-palette-search svg{width:20px;height:20px;color:#6a7582;flex:0 0 20px}
.command-palette-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#1c2a3e;font:700 .9rem/1.5 inherit}
.command-palette-search input::placeholder{color:#9ba3ad;font-weight:550}
.command-palette-body{overflow:auto;padding:10px;overscroll-behavior:contain}
.command-palette-section{display:grid;gap:3px;padding:5px 0 8px}
.command-palette-section+.command-palette-section{border-top:1px solid #f0f1ef;padding-top:11px}
.command-palette-label{padding:5px 10px;color:#8a939e;font-size:.75rem;font-weight:780}
.command-item{min-height:54px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 9px;border-radius:11px;color:inherit;text-decoration:none}
.command-item:hover,.command-item.is-active{background:#f4f6f5}
.command-icon{width:32px;height:32px;display:grid;place-items:center;border:1px solid #e4e7e5;border-radius:9px;background:#fff;color:#566373;font-size:.75rem;font-weight:850}
.command-item>span:nth-child(2){display:grid;gap:1px;min-width:0}
.command-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#29384b;font-size:.78rem;font-weight:820}
.command-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8a939e;font-size:.75rem}
.command-item em{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8c949c;font-size:.75rem;font-style:normal}
.command-palette-footer{min-height:40px;display:flex;align-items:center;gap:15px;padding:7px 15px;border-top:1px solid #eceeec;background:#fafafa;color:#8b949d;font-size:.75rem}
.command-palette-footer span{display:flex;align-items:center;gap:4px}
.command-loading,.command-empty{min-height:150px;display:grid;place-items:center;align-content:center;gap:10px;padding:24px;text-align:center;color:#8a939d}
.command-loading span{width:24px;height:24px;border:2px solid #e2e5e3;border-top-color:#40516a;border-radius:50%;animation:command-spin .8s linear infinite}
.command-empty strong{color:#506071;font-size:.8rem}
.command-empty small{max-width:330px;line-height:1.75;font-size:.75rem}
@keyframes command-spin{to{transform:rotate(360deg)}}

body.ux2 .global-search-page{display:grid;gap:20px;max-width:1120px;margin:0 auto}
body.ux2 .search-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
body.ux2 .search-page-heading .ux-button kbd{margin-right:7px}
body.ux2 .global-search-form{padding:18px;border:1px solid var(--ux-border);border-radius:var(--ux-radius);background:#fff;display:grid;gap:8px}
body.ux2 .global-search-form>label{font-size:.75rem;color:#586677;font-weight:800}
body.ux2 .global-search-form>small{color:#929aa4;font-size:.75rem}
body.ux2 .global-search-input-wrap{min-height:48px;display:flex;align-items:center;gap:10px;padding:5px 6px 5px 13px;border:1px solid #dfe3e1;border-radius:11px;background:#fbfcfb}
body.ux2 .global-search-input-wrap:focus-within{border-color:#bda777;box-shadow:0 0 0 3px rgba(189,167,119,.11);background:#fff}
body.ux2 .global-search-input-wrap svg{width:19px;height:19px;color:#74808d;flex:0 0 19px}
body.ux2 .global-search-input-wrap input{min-width:0;flex:1;border:0;outline:0;background:transparent;font:700 .82rem/1.5 inherit;color:#223146}
body.ux2 .search-results-summary{display:flex;align-items:baseline;gap:7px;color:#7d8792;font-size:.75rem}
body.ux2 .search-results-summary strong{font-size:1.25rem;color:#29384b}
body.ux2 .search-results-groups{display:grid;gap:15px}
body.ux2 .search-result-group{overflow:hidden;border:1px solid var(--ux-border);border-radius:var(--ux-radius);background:#fff}
body.ux2 .search-result-group-head{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #efefec;background:#fbfbfa}
body.ux2 .search-result-group-head h2{margin:0;font-size:.8rem;color:#334155}
body.ux2 .search-result-group-head span{min-width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:#eef1ef;color:#6e7882;font-size:.75rem;font-weight:850}
body.ux2 .search-result-list{display:grid}
body.ux2 .search-result-row{min-height:67px;display:grid;grid-template-columns:50px minmax(0,1fr) minmax(90px,auto) 20px;align-items:center;gap:11px;padding:8px 15px;border-bottom:1px solid #f1f2ef;color:inherit;text-decoration:none}
body.ux2 .search-result-row:last-child{border-bottom:0}
body.ux2 .search-result-row:hover{background:#fafbf9}
body.ux2 .search-result-kind{width:44px;height:30px;display:grid;place-items:center;border-radius:8px;background:#f1eee6;color:#84652f;font-size:.75rem;font-weight:850}
body.ux2 .search-result-copy{display:grid;gap:3px;min-width:0}
body.ux2 .search-result-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#29374a;font-size:.78rem}
body.ux2 .search-result-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8a949e;font-size:.75rem}
body.ux2 .search-result-meta{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#78838f;font-size:.75rem;text-align:left}
body.ux2 .search-result-arrow{color:#a0a8af}
body.ux2 .search-command-section{display:grid;gap:12px}
body.ux2 .search-command-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.ux2 .search-command-card{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--ux-border);border-radius:12px;background:#fff;color:inherit;text-decoration:none}
body.ux2 .search-command-card:hover{border-color:#cdbb99;background:#fffdf9}
body.ux2 .search-command-card>span{display:grid;gap:3px;color:#354356;font-size:.76rem;font-weight:800}
body.ux2 .search-command-card small{color:#9199a2;font-size:.75rem;font-weight:550}
body.ux2 .search-empty{border:1px solid var(--ux-border);border-radius:var(--ux-radius);background:#fff;min-height:220px}
@media(max-width:900px){body.ux2 .topbar-search-trigger{min-width:40px;width:40px;padding:0;justify-content:center}body.ux2 .topbar-search-trigger span,body.ux2 .topbar-search-trigger kbd{display:none}}
@media(max-width:640px){.command-palette{padding:0;place-items:end center}.command-palette-dialog{width:100%;max-height:86vh;border-radius:18px 18px 0 0}.command-palette-footer{display:none}.command-item em{display:none}body.ux2 .search-page-heading{align-items:flex-start;flex-direction:column}body.ux2 .global-search-input-wrap{display:grid;grid-template-columns:20px minmax(0,1fr)}body.ux2 .global-search-input-wrap .ux-button{grid-column:1/-1;width:100%}body.ux2 .search-result-row{grid-template-columns:44px minmax(0,1fr) 18px}body.ux2 .search-result-meta{display:none}body.ux2 .search-command-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){body.ux2 .search-page-heading .ux-button{width:100%}.command-palette-search{height:61px;padding-inline:13px}.command-palette-search>kbd{display:none}}
