@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&display=swap');
:root{--red:#941b2b;--red2:#b8283b;--ink:#16181c;--muted:#727780;--line:#e9eaed;--soft:rgb(248,250,252);--paper:#fff;--green:#15805d;--amber:#b87410;--blue:#4266a6;--shadow:0 14px 35px rgba(18,22,30,.08);font-family:Tajawal,Cairo,'Noto Kufi Arabic','Noto Sans Arabic',ui-sans-serif,system-ui,sans-serif;font-size:16px;line-height:24px;color:var(--ink);background:var(--soft)}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.boot{margin:15vh auto;width:max-content;color:var(--muted)}
.shell{min-height:100vh;display:grid;grid-template-columns:264px minmax(0,1fr);direction:rtl}.sidebar{background:#17191d;color:#f4f4f5;height:100vh;position:sticky;top:0;overflow:auto;padding:18px 13px 15px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:3px 10px 20px;border-bottom:1px solid #ffffff17}.brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#bb2c3d,#671321);display:grid;place-items:center;color:white;font-size:21px;font-weight:700;box-shadow:0 8px 20px #991b2b55}.brand strong{display:block;font-size:15px}.brand small{display:block;color:#aeb0b5;font-size:11px;margin-top:2px}.nav-caption{font-size:10px;color:#858991;padding:18px 11px 7px;letter-spacing:.03em}.nav-group{margin:2px 0}.nav-group-title,.nav-link{border:0;background:transparent;color:#c8c9ce;width:100%;height:39px;border-radius:9px;display:flex;align-items:center;gap:11px;padding:0 11px;text-align:right;font-size:13px;text-decoration:none}.nav-group-title{cursor:pointer}.nav-group-title:hover,.nav-link:hover{background:#ffffff0c;color:white}.nav-link.active{background:#8e1a29;color:white;box-shadow:inset -3px 0 #e26772}.nav-icon{width:18px;display:inline-grid;place-items:center;color:#d0a4a8;font-size:15px}.nav-items{display:none;padding:1px 8px 4px 0}.nav-group.open .nav-items{display:block}.nav-link.sub{height:34px;padding-right:37px;font-size:12px;color:#bfc1c6}.nav-link.sub.active{color:white;background:#ffffff12}.sidebar-spacer{flex:1}.sidebar-foot{padding:14px 10px 0;border-top:1px solid #ffffff17;color:#aeb0b5;font-size:11px}.sidebar-foot strong{display:block;color:white;font-size:12px;margin-bottom:4px}
.main{min-width:0}.topbar{height:68px;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:15px;padding:0 28px;position:sticky;top:0;z-index:5}.top-title{font-size:13px;color:var(--muted);margin-left:auto}.search-shortcut{border:1px solid var(--line);background:#fafafa;border-radius:9px;padding:8px 12px;color:#60656e;display:flex;gap:22px;align-items:center;min-width:188px;text-align:right}.search-shortcut kbd{font-size:10px;background:white;border:1px solid #e5e5e5;border-radius:5px;padding:1px 5px;color:#91949b}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:white;color:#555;display:grid;place-items:center}.user-pill{display:flex;align-items:center;gap:8px;border:0;background:none;color:#222}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f3e3e5;color:var(--red);font-weight:700;font-size:12px}.content{padding:25px 28px 45px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:flex-start;gap:15px;margin-bottom:20px}.page-head h1{margin:0;font-size:24px;line-height:1.4}.page-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.actions{display:flex;gap:8px;margin-right:auto;flex-wrap:wrap}.btn{border:1px solid var(--line);border-radius:9px;background:white;padding:8px 13px;font-size:12px;color:#3e4148;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px}.btn:hover{border-color:#c9cbd0;background:#fafafa}.btn.primary{background:var(--red);border-color:var(--red);color:white}.btn.primary:hover{background:#7c1523}.btn.danger{color:#a52833;border-color:#f2cdd1;background:#fffafb}.btn.small{padding:5px 9px;min-height:29px;font-size:11px}.btn:disabled{opacity:.45;cursor:not-allowed}.muted{color:var(--muted)}.subtle{font-size:11px;color:var(--muted)}
.grid{display:grid;gap:14px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:17px}.stats.five{grid-template-columns:repeat(5,minmax(0,1fr))}.card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:17px;box-shadow:0 2px 8px rgba(20,24,30,.02)}.stat{min-height:106px;display:flex;flex-direction:column;justify-content:space-between}.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:24px;font-weight:700;letter-spacing:-.03em}.stat-foot{font-size:10px;color:#969aa1}.stat-icon{width:32px;height:32px;border-radius:10px;background:#f7e8ea;color:var(--red);display:grid;place-items:center;float:left;margin-top:-4px}.panel{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden;margin-bottom:16px}.panel-head{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.panel-head h2{font-size:14px;margin:0}.panel-head .subtle{margin-right:auto}.panel-body{padding:16px 17px}.two-col{display:grid;grid-template-columns:1.25fr .75fr;gap:15px}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.bar-row{display:grid;grid-template-columns:minmax(100px,1.4fr) minmax(90px,3fr) 45px;align-items:center;gap:10px;margin:13px 0;font-size:12px}.bar-track{height:8px;border-radius:99px;background:#f0f1f3;overflow:hidden}.bar-fill{height:100%;background:var(--red);border-radius:99px}.activity-row{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #f0f1f2;font-size:12px}.activity-row:last-child{border:0}.dot{width:8px;height:8px;border-radius:50%;background:#c95a67;margin-top:5px;flex:0 0 auto}.activity-row small{display:block;color:var(--muted);margin-top:4px}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:100px;font-size:10px;font-weight:600;background:#f0f1f3;color:#6a6d74;white-space:nowrap}.badge.green{background:#e6f4ed;color:#13774f}.badge.amber{background:#fbf0da;color:#98620e}.badge.red{background:#fae7e9;color:#a52835}.badge.blue{background:#e9effb;color:#3f61a0}.badge.gray{background:#f0f1f3;color:#696d75}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:right;border-bottom:1px solid #eff0f2;padding:12px 14px;font-size:12px;vertical-align:middle}th{font-weight:600;color:#747881;background:#fbfbfc;white-space:nowrap;font-size:11px}td strong{font-weight:600}tr:last-child td{border-bottom:0}.table-title{max-width:280px}.table-title small{display:block;color:#9a9da3;margin-top:3px;font-weight:400}.table-actions{display:flex;gap:5px;white-space:nowrap}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.input,.select,.textarea{border:1px solid #dddfe3;border-radius:8px;background:white;padding:9px 11px;font-size:12px;color:#24262b;min-height:37px;outline:none}.input:focus,.select:focus,.textarea:focus{border-color:#b64150;box-shadow:0 0 0 3px #991b2b12}.input.search{min-width:225px}.textarea{resize:vertical;min-height:84px;width:100%}.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filters .select,.filters .input{min-width:140px}.empty{padding:35px;color:#888;text-align:center;font-size:13px}.progress{height:8px;border-radius:100px;background:#eee;overflow:hidden}.progress>i{height:100%;display:block;background:var(--green);border-radius:100px}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-card h3{font-size:14px;margin:0 0 6px}.project-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:8px 0 12px}.project-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:13px}.task-list{display:grid;gap:9px}.task-row{border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;align-items:center;gap:10px}.task-row .grow{flex:1}.team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.team-card{min-height:150px}.team-card h3{margin:0 0 10px;font-size:15px}.member-line{font-size:11px;padding:7px 0;border-bottom:1px solid #f0f1f3}.member-line:last-child{border:0}.tabs{display:flex;gap:4px;padding:0 16px;border-bottom:1px solid var(--line);overflow:auto}.tab{padding:12px 14px;border:0;border-bottom:2px solid transparent;background:none;color:#757982;white-space:nowrap;font-size:12px}.tab.active{border-color:var(--red);color:var(--red);font-weight:600}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:grid;gap:5px}.field label{font-size:11px;color:#575b63}.field.full{grid-column:1/-1}.checkline{display:flex;align-items:center;gap:8px;font-size:12px}.checkline input{accent-color:var(--red)}
.modal-backdrop{position:fixed;inset:0;background:#12151bb3;z-index:30;display:grid;place-items:center;padding:20px}.modal{background:#fff;border-radius:15px;box-shadow:var(--shadow);width:min(680px,100%);max-height:90vh;overflow:auto}.modal-head{padding:16px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center}.modal-head h2{font-size:16px;margin:0}.modal-head button{margin-right:auto}.modal-body{padding:19px}.modal-foot{padding:13px 19px;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:flex-start}.toast{background:#202329;color:white;padding:11px 15px;border-radius:9px;box-shadow:var(--shadow);font-size:12px;animation:appear .2s ease}.toast.error{background:#9a2634}.toast.success{background:#176c50}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}#toast-root{position:fixed;bottom:20px;left:20px;z-index:50;display:grid;gap:8px}
.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-aside{background:linear-gradient(135deg,#17191d,#52101a);color:white;padding:8vw;display:flex;flex-direction:column;justify-content:center}.login-aside h1{font-size:36px;line-height:1.4;max-width:560px}.login-aside p{color:#d0c4c6;max-width:480px;line-height:1.9}.login-main{display:grid;place-items:center;padding:35px}.login-box{width:min(390px,100%)}.login-box h2{margin:0 0 6px;font-size:25px}.login-box>p{color:var(--muted);font-size:13px;margin-bottom:24px}.login-box .field{margin:13px 0}.login-box .btn{width:100%;margin-top:8px}.login-hint{margin-top:15px;padding:11px;border-radius:8px;background:#f7f4f4;color:#777;font-size:10px;line-height:1.6}.wizard-steps{display:flex;gap:0;margin:8px 0 18px}.wizard-step{flex:1;border-bottom:3px solid #eee;padding:9px 5px;color:#9699a0;font-size:11px}.wizard-step.active{border-color:var(--red);color:var(--red);font-weight:600}.large-amount{font-size:27px;font-weight:700}.split{display:flex;justify-content:space-between;gap:12px;align-items:center}.text-red{color:var(--red)}.ledger-item{border-right:2px solid #dba2aa;padding:2px 12px 12px;margin-right:4px;font-size:12px}.ledger-item small{display:block;color:var(--muted);margin-top:4px}.task-sub{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);font-size:11px}.task-sub:last-child{border:0}.task-sub .grow{flex:1}.role-matrix{overflow:auto}.role-matrix table{min-width:1050px}.role-matrix th:first-child,.role-matrix td:first-child{position:sticky;right:0;background:white;z-index:1;min-width:220px}.role-matrix th:first-child{background:#fbfbfc}.role-matrix td:not(:first-child),.role-matrix th:not(:first-child){text-align:center}.matrix-box{accent-color:var(--red)}.notification-item{padding:11px;border-bottom:1px solid var(--line);font-size:11px}.notification-item small{display:block;color:var(--muted);margin-top:4px}.chat-box{display:grid;gap:10px;max-height:360px;overflow:auto}.bubble{max-width:85%;padding:9px 12px;background:#f1f2f4;border-radius:11px;font-size:11px}.bubble.mine{background:#f7e6e9;margin-right:auto}.bubble small{display:block;color:#777;margin-top:4px}.dark{--ink:#eff0f3;--muted:#a7abb3;--line:#353941;--soft:#202329;--paper:#282c33;background:var(--soft)}.dark .topbar,.dark .card,.dark .panel,.dark .btn,.dark .input,.dark .select,.dark .textarea,.dark .modal{background:#282c33;color:var(--ink);border-color:#393d46}.dark th{background:#2d3138;color:#b9bdc5}.dark td{border-color:#383c44}.dark .table-title small,.dark .subtle{color:#a4a8b0}.dark .tab{color:#a4a8b0}.dark .search-shortcut{background:#23262c;border-color:#393d46;color:#ccc}.dark .icon-button{background:#282c33;color:#ddd;border-color:#393d46}.dark .filters .select,.dark .filters .input{background:#282c33;color:#eee}.dark .project-meta{color:#aaa}.dark .ledger-item{border-color:#b04b5a}
@media(max-width:1100px){.stats.five{grid-template-columns:repeat(3,minmax(0,1fr))}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:20px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:fixed;right:-275px;width:264px;transition:right .22s;height:100dvh}.sidebar.show{right:0}.mobile-mask{position:fixed;inset:0;background:#0008;z-index:9}.topbar{height:58px;padding:0 12px;gap:8px}.top-title{display:none}.search-shortcut{min-width:0;width:38px;overflow:hidden;white-space:nowrap;padding:8px}.search-shortcut span{display:none}.search-shortcut kbd{display:none}.user-pill span:last-child{display:none}.content{padding:17px 12px 35px}.page-head{display:block}.actions{margin:13px 0 0}.stats,.stats.five{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col,.three-col,.team-grid,.project-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.login-screen{grid-template-columns:1fr}.login-aside{display:none}.login-main{min-height:100vh}.panel-head,.panel-body{padding:13px}.table-wrap{margin:0 -13px}.toolbar .input.search{flex:1;min-width:140px}.bar-row{grid-template-columns:85px 1fr 38px}}
/* Computed values from ORIGINAL_STYLE_TOKENS.json; other component values await browser comparison. */
.topbar{padding:8px 24px;box-shadow:0 1px 0 rgba(255,255,255,.8),0 4px 18px rgba(33,45,69,.06)}
.content{padding:32px}
.btn{border-radius:12px;font-size:14px;font-weight:700;line-height:21px;padding:0 16px;color:rgb(242,82,33);background:rgba(255,255,255,.7);border-color:rgba(211,218,227,.95)}
@media(max-width:760px){.topbar{padding:8px 12px}.content{padding:17px 12px 35px}}

/* === ORIGINAL FRONTEND FORENSICS BASELINE — 2026-09-28 ===
   Values below are taken from the authenticated browser-visible original UI.
   They intentionally override the earlier approximation without changing app behavior. */
:root{
  --orig-primary:#f25221;
  --orig-body-bg:#f8fafc;
  --orig-text:#292927;
  --orig-header-border:rgba(211,218,227,.95);
  --orig-sidebar-border:rgba(218,224,231,.40);
  --orig-sidebar-text:#1a202e;
  --orig-sidebar-muted:#606e80;
  --orig-sidebar-active:rgba(242,82,33,.08);
  --orig-sidebar-hover:rgba(36,46,66,.05);
  --orig-card-border:rgba(225,232,239,.85);
  --orig-card-shadow:0 6px 18px rgba(3,4,7,.05);
  --orig-header-shadow:0 1px 0 rgba(255,255,255,.8),0 4px 18px rgba(33,45,69,.06);
  --orig-header-bg:linear-gradient(135deg,#f8fafc 0%,#edf2f7 55%,#e7eef3 100%);
  --orig-sidebar-width:14.5rem;
  --orig-header-height:4.75rem;
  --red:var(--orig-primary);
  --red2:#e74618;
  --ink:var(--orig-text);
  --soft:var(--orig-body-bg);
  --line:var(--orig-card-border);
  --shadow:var(--orig-card-shadow);
}
html,body{background:var(--orig-body-bg);color:var(--orig-text)}
.shell{grid-template-columns:var(--orig-sidebar-width) minmax(0,1fr)}
.sidebar{
  width:var(--orig-sidebar-width);
  background:transparent;
  color:var(--orig-sidebar-text);
  border-inline-end:1px solid var(--orig-sidebar-border);
  padding:0 .7rem 1.5rem;
}
.brand{
  min-height:var(--orig-header-height);
  border-bottom:0;
  border-inline-end:0;
  padding:.7rem .55rem;
  color:var(--orig-sidebar-text);
}
.brand-mark{
  background:linear-gradient(135deg,#f25221,#e74618);
  color:#fff;
  border-radius:.75rem;
  box-shadow:0 4px 14px rgba(242,82,33,.28);
}
.brand small,.sidebar-foot,.nav-caption{color:var(--orig-sidebar-muted)}
.nav-group-title,.nav-link{color:var(--orig-sidebar-text);border-radius:.65rem;font-weight:600}
.nav-group-title:hover,.nav-link:hover{background:var(--orig-sidebar-hover);color:var(--orig-sidebar-text)}
.nav-link.active,.nav-link.sub.active{
  background:var(--orig-sidebar-active);
  color:var(--orig-primary);
  box-shadow:none;
}
.nav-icon{color:var(--orig-primary)}
.sidebar-foot{border-top:1px solid var(--orig-sidebar-border)}
.sidebar-foot strong{color:var(--orig-sidebar-text)}
.topbar{
  height:var(--orig-header-height);
  min-height:var(--orig-header-height);
  padding:8px 24px;
  background:var(--orig-header-bg);
  border-bottom:1px solid var(--orig-header-border);
  box-shadow:var(--orig-header-shadow);
}
.content{padding:32px;max-width:none}
.search-shortcut{
  min-height:40px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--orig-header-border);
  border-radius:999px;
  box-shadow:0 2px 10px rgba(36,46,66,.05);
}
.icon-button{
  width:40px;height:40px;border-radius:999px;
  border-color:transparent;background:transparent;color:var(--orig-sidebar-text)
}
.icon-button:hover{border-color:var(--orig-header-border);background:transparent;box-shadow:0 2px 10px rgba(36,46,66,.06)}
.avatar{background:rgba(242,82,33,.10);color:var(--orig-primary)}
.card,.panel{
  border-color:var(--orig-card-border);
  border-radius:16px;
  box-shadow:var(--orig-card-shadow);
}
.card:hover{box-shadow:0 10px 24px rgba(3,4,7,.08)}
.btn{
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  line-height:21px;
  padding:0 16px;
  min-height:40px;
  color:var(--orig-primary);
  background:rgba(255,255,255,.70);
  border-color:var(--orig-header-border);
}
.btn:hover{border-color:rgba(242,82,33,.35);background:rgba(255,255,255,.92);color:var(--orig-primary)}
.btn.primary{background:var(--orig-primary);border-color:var(--orig-primary);color:#fff;box-shadow:0 4px 16px rgba(242,82,33,.24)}
.btn.primary:hover{background:#e74618;border-color:#e74618;box-shadow:0 6px 20px rgba(242,82,33,.30)}
.input,.select,.textarea{border-color:var(--orig-header-border);border-radius:12px;background:#fff;min-height:40px}
.input:focus,.select:focus,.textarea:focus{border-color:rgba(242,82,33,.55);box-shadow:0 0 0 3px rgba(242,82,33,.12)}
.badge{border-radius:999px;font-weight:700}
table{background:#fff}th{background:rgba(248,250,252,.85);color:#596273}th,td{border-bottom-color:rgba(225,232,239,.85)}
.tab.active{border-color:var(--orig-primary);color:var(--orig-primary)}
.checkline input,.matrix-box{accent-color:var(--orig-primary)}
@media(max-width:760px){
  .sidebar{right:calc(var(--orig-sidebar-width) * -1);width:var(--orig-sidebar-width)}
  .topbar{min-height:58px;height:58px;padding:8px 12px}
  .content{padding:17px 12px 35px}
}

/* Explicit apply filters observed in the original lists. */
.filter-area{position:relative;margin:12px 0}
.filter-drawer{position:relative;z-index:3;background:#fff;border:1px solid #e4e7eb;border-radius:12px;box-shadow:0 12px 30px rgba(22,35,52,.12);padding:20px;max-width:820px;margin-top:10px}
.filter-drawer h2{font-size:1.1rem;margin:0 0 12px}
.filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;align-items:center}
.filter-fields .toolbar{display:contents}
.filter-drawer .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.filter-fields .filter-date{display:flex;align-items:center;gap:6px}
@media(max-width:700px){.filter-drawer{max-width:100%}.filter-fields{grid-template-columns:1fr}}

/* Visual parity pass, 2026-09-28. Computed values observed in the live original. */
:root{
  --color-primary:oklch(45% .24 277.023);--color-primary-content:oklch(93% .034 272.788);
  --color-secondary:oklch(65% .241 354.308);--color-accent:oklch(77% .152 181.912);
  --color-info:oklch(74% .16 232.661);--color-success:oklch(76% .177 163.223);
  --color-warning:oklch(82% .189 84.429);--color-warning-content:oklch(41% .112 45.904);
  --color-error:oklch(71% .194 13.428);--color-base-100:oklch(100% 0 0);
  --color-base-200:oklch(98% 0 0);--color-base-300:oklch(95% 0 0);
  --color-base-content:oklch(21% .006 285.885);
  --font-ar:Tajawal,Cairo,'Noto Kufi Arabic','Noto Sans Arabic',ui-sans-serif,system-ui,sans-serif;
  --radius-box:.5rem;--radius-field:.25rem;--radius-selector:.5rem;
  --spacing:.25rem;--ws-sidebar-width:14.5rem;--ws-header-h:4.75rem;
  --ws-sidebar-border:#dae0e766;--ws-sidebar-hover-bg:#242e420d;
  --ws-sidebar-muted:#606e80;--ws-sidebar-text:#1a202e;
  --red:var(--color-primary);--ink:var(--color-base-content);
  color:var(--ink);font-family:var(--font-ar)
}
body{color:var(--ink)}
.sidebar{padding:0 10px 24px;border-inline-end:1px solid var(--ws-sidebar-border)}
.brand{height:76px;min-height:76px;padding:0 16px;margin:0 -10px;gap:7px}
.brand-mark{width:34px;height:34px;border-radius:9px;font-size:18px}
.brand strong{font-size:22px;line-height:28px}.brand small{display:none}
.sidebar-workshop{padding:16px 4px 12px;margin:0 0 8px;border-bottom:1px solid rgba(218,224,231,.4)}
.workshop-kicker{display:flex;align-items:center;justify-content:space-between;color:#596273;font-size:10px;font-weight:800;letter-spacing:.07em}
.workshop-kicker small{font-size:9px;letter-spacing:0;color:#15805d;background:#e8f6ee;border-radius:999px;padding:2px 7px}
.workshop-link{width:100%;display:flex;align-items:center;text-align:right;gap:8px;padding:10px 6px;margin-top:7px;background:linear-gradient(135deg,#f7f2ff,#f2f8fd);border:1px solid #e5e5f3;border-radius:12px;color:#273047}
.workshop-link strong{display:block;font-size:12px}.workshop-link small{display:block;font-size:9px;color:#68758a;line-height:1.5}
.workshop-orb{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#7455d8;color:#fff;flex:none}
.workshop-actions{display:flex;gap:4px;margin-top:8px}.workshop-actions button{flex:1;background:#fff;border:1px solid #e1e8ef;border-radius:7px;padding:4px 2px;font-size:9px;color:#596273}
.nav-caption{padding:3px 6px 10px;font-size:10px;font-weight:700}.sidebar-nav{display:grid;gap:16px}
.nav-group{margin:0;--tone:#f25221;--tone-soft:rgba(242,82,33,.08)}
.nav-tone-sky{--tone:rgb(13,162,231);--tone-soft:color(srgb .0528 .63664 .9072 / .12)}
.nav-tone-violet{--tone:rgb(124,59,237);--tone-soft:color(srgb .48704 .2314 .9286 / .1)}
.nav-tone-amber{--tone:rgb(245,159,10);--tone-soft:color(srgb .96 .622667 .04 / .1)}
.nav-tone-emerald{--tone:rgb(27,167,120);--tone-soft:color(srgb .1064 .6536 .4712 / .1)}
.nav-tone-orange{--tone:rgb(249,116,21);--tone-soft:color(srgb .9765 .455583 .0835 / .1)}
.nav-tone-teal{--tone:rgb(27,167,153);--tone-soft:color(srgb .1064 .6536 .59888 / .1)}
.nav-tone-rose{--tone:rgb(230,55,84);--tone-soft:color(srgb .9032 .2168 .3312 / .1)}
.nav-tone-cyan{--tone:rgb(19,160,195);--tone-soft:color(srgb .0756 .62664 .7644 / .1)}
.nav-tone-indigo{--tone:rgb(75,78,221);--tone-soft:color(srgb .2944 .30392 .8656 / .1)}
.nav-group-title{height:46px;padding:0 8px;background:color-mix(in srgb,var(--tone) 5%,transparent);color:#1a202e;font-size:12px;font-weight:700;border-radius:8px}
.nav-group.open .nav-group-title{background:var(--tone-soft);color:var(--tone)}
.nav-icon{color:var(--tone);width:18px}.nav-group-title:hover,.nav-link:hover{background:var(--tone-soft);color:var(--tone)}
.nav-items{padding:4px 4px 0 0}.nav-link.sub{height:35px;padding:4.48px 6.4px;margin:1px 0;font-size:10.88px;font-weight:600;line-height:16.32px;color:#606e80;border-radius:7.2px}
.nav-link.sub.active{background:var(--tone-soft);color:var(--tone);font-weight:700}
.top-title{display:none}.topbar{gap:12px}.search-shortcut{margin-inline-start:auto;background:rgba(255,255,255,.72)}
.page-head h1{font-size:30px;line-height:1.35;font-weight:700;background:linear-gradient(90deg,var(--color-primary),#f25221);background-clip:text;-webkit-background-clip:text;color:transparent}
.page-head p{font-size:14px;line-height:21px;color:#606e80}.page-head{margin-bottom:24px;align-items:center}
.dashboard-hero{min-height:110px;margin-bottom:24px;border:1px solid rgba(225,232,239,.85);border-radius:16px;background:linear-gradient(135deg,rgba(242,82,33,.15),transparent 45%),linear-gradient(#f8fafc,rgba(238,242,247,.75));box-shadow:0 6px 18px rgba(3,4,7,.05);padding:18px 22px}
.dashboard-hero .page-head{margin:0;height:100%;align-items:center}.dashboard-hero h1{font-size:30px;line-height:36px;font-weight:800;color:var(--color-base-content);background:none}
.btn.primary{background:var(--color-primary);border-color:oklab(.4275 .0278771 -.226289);color:var(--color-primary-content);box-shadow:0 8px 20px rgba(242,82,33,.25)}
.btn.primary:hover{background:oklch(40% .24 277.023);border-color:var(--color-primary);color:var(--color-primary-content)}
.btn:focus-visible,.icon-button:focus-visible,.nav-link:focus-visible,.nav-group-title:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}
.panel-head h2{font-size:18px;line-height:27px;font-weight:600}.panel-head{padding:16px 20px}.panel-body{padding:18px 20px}
.card,.panel{background:var(--color-base-100)}.stats{gap:16px;margin-bottom:24px}.stat{min-height:112px}.stat-label{font-size:14px}.stat-value{font-size:28px}
.input,.select,.textarea{font-size:12px;line-height:18px;background:#f8fafc;border:1px solid #e1e8ef;border-radius:12px;box-shadow:0 1px 0 rgba(29,39,62,.02) inset,0 -1px 0 rgba(255,255,255,.1) inset}
.toolbar .input,.toolbar .select{min-height:32px;height:32px;padding:0 12px}
.input:focus,.select:focus,.textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 16%,transparent)}
table{font-size:14px;line-height:21px;background:#f8fafc}th{background:#eef2f7;color:rgba(29,39,62,.75);font-size:12.8px;font-weight:800;line-height:19.2px}th,td{padding:12px 13.6px}td{font-size:14px;line-height:21px}.table-wrap{border-radius:16px}
.badge{font-size:12px;line-height:18px;font-weight:700;padding:2px 10px;min-height:20px;border:1px solid transparent}.badge.amber{background:var(--color-warning);border-color:var(--color-warning);color:var(--color-warning-content)}
.badge.green{background:var(--color-success);color:oklch(37% .077 168.94)}.badge.red{background:var(--color-error);color:oklch(27% .105 12.094)}.badge.blue{background:var(--color-info);color:oklch(29% .066 243.157)}
.tab.active{border-color:var(--color-primary);color:var(--color-primary)}.checkline input,.matrix-box{accent-color:var(--color-primary)}
.modal{border:1px solid rgba(225,232,239,.85);border-radius:16px;box-shadow:0 20px 60px rgba(5,7,11,.22)}
.financial-cancellation-backdrop{position:fixed;inset:0;z-index:70;display:flex;justify-content:center;align-items:center;padding:40px 16px;background:rgba(13,18,27,.72);overflow:auto}.financial-cancellation-box{width:min(896px,100%);max-height:calc(100vh - 80px);display:flex;flex-direction:column;border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 30px 80px rgba(0,0,0,.28)}.financial-cancellation-box>header{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 24px;border-bottom:1px solid var(--line)}.financial-cancellation-box h2{margin:0;font-size:24px}.financial-cancellation-box header p{margin:6px 0 0;color:var(--muted)}.financial-cancellation-box form{display:flex;flex-direction:column;min-height:0}.financial-cancellation-body{padding:22px 24px;overflow:auto}.financial-cancellation-summary{display:flex;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:18px}.financial-cancellation-summary span{background:var(--soft);border-radius:8px;padding:8px 12px}.financial-cancellation-preview{margin-top:18px;min-height:62px;color:var(--muted)}.financial-cancellation-preview .financial-cancellation-summary{margin:0}.financial-cancellation-box footer{display:flex;flex-wrap:wrap;gap:10px;padding:16px 24px;border-top:1px solid var(--line)}@media(max-width:760px){.financial-cancellation-backdrop{padding:0}.financial-cancellation-box{max-height:100vh;height:100vh;border-radius:0}.financial-cancellation-box .form-grid{grid-template-columns:1fr}}
.dark{--color-primary:oklch(58% .233 277.117);--color-primary-content:oklch(96% .018 272.314);--color-base-100:oklch(25.33% .016 252.42);--color-base-200:oklch(23.26% .014 253.1);--color-base-content:oklch(97.807% .029 256.847);--ink:var(--color-base-content);--soft:#0c0e13;--paper:var(--color-base-100);--line:rgba(164,177,203,.18);--ws-sidebar-text:#e1e6ea;color:var(--ink);background:#0c0e13}
body.dark{background:radial-gradient(75% 55% at 100% -15%,rgba(141,53,68,.07),transparent 58%),radial-gradient(65% 50% at -5% -10%,rgba(42,62,121,.08),transparent 55%),radial-gradient(50% 40% at 50% 110%,rgba(63,46,96,.05),transparent 60%),linear-gradient(#0c0e13,#10131a)}
.dark .topbar{background:linear-gradient(135deg,#171c26 0%,#12151c 55%,#101318 100%);box-shadow:0 1px 0 rgba(255,255,255,.04),0 8px 24px rgba(0,0,0,.35)}
.dark .dashboard-hero{background:linear-gradient(135deg,rgba(141,53,68,.12),transparent 45%),linear-gradient(#171c26,#10131a)}
.dark .sidebar,.dark .nav-group-title,.dark .brand,.dark .sidebar-foot strong{color:#e1e6ea}.dark .nav-group-title{background:color-mix(in srgb,var(--tone) 8%,transparent)}
.dark .workshop-link{background:#1b2130;border-color:#333c4d;color:#e1e6ea}.dark .workshop-actions button{background:#1b2130;color:#c5d0e2;border-color:#333c4d}
.dark .page-head h1{color:var(--ink);background:none}.dark .input,.dark .select,.dark .textarea{background:#1b2230;color:var(--ink);border-color:#3b4659}.dark .btn.primary{background:var(--color-primary);color:var(--color-primary-content)}
.dark table{background:#1c2430}.dark th{background:#252f3d;color:#e1e6ea}.dark .badge.amber{color:var(--color-warning-content)}
@media(max-width:760px){.sidebar{right:calc(-1 * var(--ws-sidebar-width))}.sidebar.show{right:0}.sidebar-nav{gap:10px}.dashboard-hero{padding:16px;min-height:0}.dashboard-hero .page-head{display:block}.page-head h1{font-size:28px}.stats{gap:10px}}

/* v4 shared parity adjustments measured against the live original. */
.sidebar-workshop{box-sizing:border-box;width:211px;height:169px;padding:10px 4px 8px;overflow:hidden}
.nav-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.nav-icon svg{width:16px;height:16px;display:block;stroke:currentColor}
th{font-size:14px;line-height:21px}
.content[data-route="projects"] th{font-size:12.8px;line-height:19.2px}
.content[data-route="projects"] .page-head h1{font-size:36px}
.content[data-route="treasuries"] .page-head h1,.content[data-route="settings"] .page-head h1,.content[data-route="distribution"] .page-head h1,.content[data-route="profile"] .page-head h1,.content[data-route="expenseTypes"] .page-head h1,.content[data-route="treasuryTypes"] .page-head h1{font-size:32px}
.content[data-route="khulasa"] .page-head h1{font-size:16.8px}
.input,.select{min-height:40px}
.content[data-route="settings"] .input,.content[data-route="settings"] .select,.content[data-route="profile"] .input,.content[data-route="profile"] .select{min-height:44px}
.content[data-route="wallet"] .toolbar .input,.content[data-route="remaining"] .toolbar .input{min-height:40px;height:40px}
.content[data-route="newProject"] #wizard-form .form-grid{grid-template-columns:minmax(0,1fr)}
.content[data-route="newProject"] #wizard-form .textarea{min-height:81px;height:81px}
.content[data-route="newProject"] .two-col{grid-template-columns:minmax(609px,1fr) minmax(280px,.8fr)}
.filter-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:19}
.project-filter-drawer{position:fixed;left:0;top:0;bottom:0;width:320px;max-width:100vw;margin:0;border-radius:0;z-index:20;display:flex;flex-direction:column;overflow:auto;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:20px}
.filter-drawer-head{display:flex;align-items:center;justify-content:space-between}
.filter-drawer-head h2{margin:0;font-size:18px}
.project-filter-drawer .filter-fields{display:grid;grid-template-columns:1fr;gap:12px;align-content:start;flex:1}
.project-filter-drawer .filter-fields>*{width:100%;min-width:0}
.project-filter-drawer .actions{margin-top:auto;display:flex;flex-direction:column}
.notification-anchor{position:relative}
.notification-popover{position:absolute;top:calc(100% + 10px);left:-12px;width:350px;max-width:calc(100vw - 20px);max-height:427px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 38px rgba(0,0,0,.18);z-index:25;overflow:hidden}
.notification-popover-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.notification-list{max-height:365px;overflow:auto}.notification-item{padding:12px 16px}
.dark .notification-popover{background:var(--paper);border-color:var(--line)}
@media(max-width:1000px){.content[data-route="newProject"] .two-col{grid-template-columns:1fr}}
@media(max-width:760px){.sidebar-workshop{max-width:100%}.content[data-route="projects"] .page-head h1{font-size:30px}.project-filter-drawer{width:min(320px,100vw)}}
.head-task-cards{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.head-task-card h3{font-size:17px;margin:0 0 14px}.head-task-card-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;font-size:13px;margin-bottom:16px}.head-task-card-stats strong{display:inline-block;margin-inline-start:8px}

.toolbar .input,.toolbar .select{min-height:40px;height:40px}
.content[data-route="settings"] .toolbar .input,.content[data-route="profile"] .toolbar .input{height:44px;min-height:44px}

/* v4.1 — original Header/Shell controls and measured hit areas. */
.topbar{gap:7.2px}
.mobile-menu{display:none}
.desktop-sidebar-toggle{display:inline-flex;border-radius:11.2px;color:rgba(29,39,62,.65)}
.header-svg{display:block;flex:none;width:20px;height:20px;pointer-events:none}
.header-svg--mobile{width:24px;height:24px;color:var(--color-primary)}
.header-svg--search{width:16px;height:16px;color:rgba(242,82,33,.75)}
.icon-button,.layout-toggle{flex:none;width:40px;height:40px;min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0}
.search-shortcut{flex:none;width:auto;min-width:134.25px;height:40px;min-height:40px;padding:0 12px;gap:8px;font-size:13.44px;justify-content:flex-start}
.search-shortcut kbd{margin-inline-start:auto}
.layout-toggle{border:1px solid rgba(211,218,227,.95);background:rgba(255,255,255,.55);border-radius:10.4px;color:rgba(29,39,62,.72);font-weight:700}
.layout-toggle:hover{background:rgba(255,255,255,.92)}
.layout-mark--ar{display:none;font-size:13.12px;font-weight:800}
.layout-mark--en{display:block;font-size:9.92px;font-weight:700}
html[dir="ltr"] .layout-mark--ar{display:block}
html[dir="ltr"] .layout-mark--en{display:none}
html[dir="ltr"] .shell{direction:ltr}
html[dir="ltr"] .nav-group-title,html[dir="ltr"] .nav-link{text-align:left}
.header-svg--moon{display:none}
.dark .header-svg--sun{display:none}
.dark .header-svg--moon{display:block}
.header-badge-anchor{position:relative}
.header-unread{position:absolute;top:2px;inset-inline-end:2px;min-width:16px;height:16px;border-radius:999px;padding:0 5px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;line-height:1;pointer-events:none}
.header-unread--chat{background:oklch(65% .241 354.308)}
.header-unread--notifications{background:var(--color-primary)}
.shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
.shell.sidebar-collapsed>.sidebar{display:none}
.archive-confirm-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.44);z-index:80}.archive-confirm-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:16px;background:transparent;z-index:81;display:grid;place-items:center;pointer-events:none}.archive-confirm-box{position:relative;width:min(512px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--paper);color:var(--ink);border-radius:24px;padding:26px;box-shadow:0 20px 60px rgba(0,0,0,.2);pointer-events:auto;direction:rtl}.archive-confirm-box>small{color:var(--color-primary);font-weight:700}.archive-confirm-box h3{font-size:20px;margin:10px 0}.archive-confirm-box p{margin:8px 0 16px}.archive-confirm-box ul{padding-inline-start:22px;line-height:1.8}.archive-confirm-box footer{display:flex;gap:8px;justify-content:flex-end;margin-top:22px}.archive-confirm-x{position:absolute;left:10px;top:10px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.project-assistant-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:80}.project-assistant-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:16px;background:transparent;z-index:81;display:grid;place-items:center;pointer-events:none}.project-assistant-box{position:relative;width:min(768px,100%);height:min(635px,calc(100vh - 32px));background:var(--paper);color:var(--ink);border-radius:24px;overflow:hidden;display:flex;flex-direction:column;pointer-events:auto;direction:rtl;box-shadow:0 20px 60px rgba(0,0,0,.22)}.project-assistant-box header{display:flex;gap:14px;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.project-assistant-box header h3{font-size:20px;margin:4px 0 0}.project-assistant-box header small{font-size:12px;color:var(--muted)}.project-assistant-avatar,.project-assistant-message span{display:grid;place-items:center;flex:none;border-radius:50%;width:42px;height:42px;background:#f97316;color:white;font-weight:800}.project-assistant-close{position:absolute;left:16px;top:16px;border:0;background:transparent;color:inherit;font-size:20px;cursor:pointer}.project-assistant-messages{overflow-y:auto;flex:1;padding:22px}.project-assistant-message{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px}.project-assistant-message span{width:30px;height:30px}.project-assistant-message p{margin:0;max-width:85%;padding:12px 16px;background:var(--soft,#f4f5f8);border-radius:18px;white-space:pre-line;line-height:1.7}
.settings-hero h1{font-size:32px;line-height:40px}.help-header h1{font-size:30px;line-height:36px;font-weight:900}.am-hero h1{line-height:40.5px;font-weight:700}
.settings-layout{grid-template-columns:232px minmax(0,1fr)}.settings-tabs{background:#f8fafc;border-radius:18.4px;padding:10.4px;gap:7.2px}.settings-tab{height:52.4px;justify-content:flex-start;gap:8.8px;padding:10.4px 13.6px;border-radius:14.4px;font-size:13.44px}.settings-tab i{flex:none;width:29.6px;height:29.6px;border-radius:8.8px}.settings-tab svg{width:16px;height:16px}.settings-tab.active i{background:rgba(255,255,255,.18)}
.khulasa-page__form .input{height:45.6px;border-radius:13.6px;padding:9.6px 16px;font-size:14.72px}.khulasa-send{width:45.6px;height:45.6px;flex:none;border-radius:13.6px;background:linear-gradient(135deg,#1388c3,rgba(19,136,195,.82));box-shadow:0 6px 16px rgba(19,136,195,.28);display:grid;place-items:center}.khulasa-user-line{display:flex;justify-content:flex-start;margin:12px 0}.khulasa-user-line p{margin:0;padding:9px 13px;border-radius:12px;background:#eef7fb;color:var(--ink);font-size:13px}.khulasa-results{display:grid;gap:7px}.khulasa-results button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:right;border:1px solid #dbe7ef;border-radius:12px;background:#fff;padding:10px 12px;color:var(--ink);cursor:pointer}.khulasa-results small{color:#788797}.khulasa-conversation-actions{display:flex;gap:8px;justify-content:flex-end;margin:8px 0}.khulasa-conversation-actions button{border:1px solid #d4e4ec;border-radius:10px;background:#fff;padding:6px 10px;color:#206f9b;cursor:pointer}.khulasa-page:has(.khulasa-workshop){display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);column-gap:16px;padding:0 20px}.khulasa-page:has(.khulasa-workshop)>.khulasa-page__top,.khulasa-page:has(.khulasa-workshop)>.khulasa-page__foot{grid-column:1/-1}.khulasa-page:has(.khulasa-workshop)>.khulasa-page__panel{grid-column:1;width:100%;max-width:none}.khulasa-workshop{grid-column:2;position:static;width:100%;min-width:0;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:16px}.khulasa-workshop h2{font-size:16px;margin:2px 0}.khulasa-workshop button{border:0;background:transparent;color:var(--ink);cursor:pointer}.khulasa-workshop article{padding:14px;margin-top:12px;border:1px solid var(--line);border-radius:14px}.khulasa-workshop article h3{font-size:15px;margin:8px 0}.khulasa-pinned-info{font-size:12px;color:var(--muted)}@media(max-width:760px){.khulasa-page:has(.khulasa-workshop){display:flex;padding:0 12px}.khulasa-workshop{width:100%}.khulasa-page__panel{margin-right:auto}}
.assistant-overlay__body [data-assistant-overlay-search] .input{width:100%;height:40px;border-color:#ff8c6a;box-shadow:0 0 0 3px #ffede7}.assistant-overlay__body>.btn{margin-bottom:12px}.assistant-overlay__messages>p{font-size:12px;line-height:1.6}.assistant-overlay__messages .khulasa-results{margin:10px 0}.assistant-overlay__messages .khulasa-results button{width:100%}
.my-tasks-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1040}
.my-tasks-dialog{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;z-index:1041;display:grid;place-items:center;pointer-events:none}
.my-tasks-box{position:relative;box-sizing:border-box;width:min(896px,calc(100vw - 32px));max-height:90vh;overflow:auto;padding:24px;border-radius:16px;background:var(--surface,#fff);color:var(--text,#20232b);pointer-events:auto;direction:rtl}
.my-tasks-box>header,.my-tasks-box>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--border,#ddd)}
.my-tasks-box>footer{justify-content:flex-end;padding-top:16px;padding-bottom:0;border-top:1px solid var(--border,#ddd);border-bottom:0}
.my-tasks-box h2{font-size:24px;line-height:32px;margin:0}.my-tasks-box h3{font-size:18px;margin:0}.my-tasks-x{position:absolute;right:8px;top:8px;border:0;background:transparent;cursor:pointer}
.my-tasks-list{display:grid;gap:16px;margin:24px 0}.my-task-card{padding:20px;border:2px solid var(--border,#ddd);border-radius:12px;box-shadow:0 4px 8px rgba(0,0,0,.09)}
.my-task-card>div:first-child{display:flex;gap:12px;align-items:flex-start}.my-task-card p{margin:4px 0;color:var(--muted,#667085)}.my-task-card .badge{margin-inline-start:auto}
.my-task-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;margin-top:16px;background:var(--soft,#f3f4f6);border-radius:8px}.my-task-meta span{text-align:center}.my-task-meta strong{display:block}
.smart-proposal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1050}
.smart-proposal-dialog[open]{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;z-index:1051;display:grid;place-items:center;pointer-events:none}
.smart-proposal-box{position:relative;box-sizing:border-box;width:min(664px,calc(100vw - 32px));max-height:90vh;overflow:auto;background:var(--color-base-100,#fff);color:var(--ink);padding:24px;border-radius:16px;direction:rtl;pointer-events:auto}
.smart-proposal-box header{padding-bottom:16px;border-bottom:1px solid var(--line)}.smart-proposal-box h2{font-size:24px;line-height:32px;margin:0}.smart-proposal-box header p{font-size:14px;line-height:21px;color:var(--muted);margin:8px 0 0}
.smart-proposal-x{position:absolute;right:8px;top:8px;border:0;background:none;color:inherit;font-size:20px;cursor:pointer}
.smart-proposal-items{display:grid;gap:16px;margin:24px 0}.smart-proposal-items article{display:flex;gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px}.smart-proposal-items article>div:last-child{flex:1}.smart-proposal-items small{display:block;color:var(--muted)}.smart-proposal-items p{margin:8px 0}.smart-proposal-items label{display:block;font-size:14px}.smart-proposal-items select{display:block;width:100%;margin-top:6px}.smart-proposal-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--color-primary);color:#fff}
.smart-proposal-box footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--line)}.smart-proposal-note{flex:1;min-width:200px;padding:10px;border:1px solid var(--line);border-radius:12px;font-size:12px}.smart-proposal-note strong{color:var(--color-primary)}
.my-detail-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1040}.my-detail-dialog[open]{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;z-index:1041;display:grid;place-items:center;pointer-events:none}.my-detail-box{position:relative;width:min(1024px,calc(100vw - 32px));max-height:95vh;overflow:hidden;border-radius:16px;background:var(--color-base-100,#fff);pointer-events:auto}.my-detail-box iframe{display:block;width:100%;height:90vh;border:0}.my-detail-x{position:absolute;right:8px;top:8px;z-index:2;border:0;border-radius:50%;width:32px;height:32px;background:var(--color-base-100,#fff);cursor:pointer}
.pipeline-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:90}
.pipeline-top-dialog[open]{display:block;position:fixed;inset:0 0 auto;width:100%;max-width:none;max-height:100vh;margin:0;padding:0;border:0;background:transparent;overflow:auto;z-index:91;color:var(--ink)}
.pipeline-top-sheet{position:relative;width:100%;min-height:312px;padding:24px 32px;background:var(--color-base-100,#f8fafc);border-radius:0 0 16px 16px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}
.pipeline-top-sheet h2{font-size:22px;line-height:28px;margin:0 0 6px}.pipeline-top-sheet>p{margin:0 0 18px;color:var(--muted)}
.pipeline-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.pipeline-step{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px}.pipeline-step__mark{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:50%;background:var(--color-base-200,#f1f5f9)}.pipeline-step strong,.pipeline-step small{display:block}.pipeline-step small{margin-top:5px}.pipeline-step p{font-size:12px;color:var(--muted);margin:7px 0 0}.pipeline-close{position:absolute;inset-inline-start:12px;top:12px;width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);cursor:pointer}
.dark .pipeline-top-sheet{background:var(--color-base-100,#151820)}
@media(max-width:760px){.pipeline-top-sheet{padding:20px 16px}.pipeline-steps{grid-template-columns:1fr}}
.project-history-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:88}
.project-history-drawer{position:fixed;left:0;top:0;bottom:0;width:min(672px,100vw);overflow:auto;background:var(--color-base-100,#f8fafc);box-shadow:0 25px 50px -12px rgba(0,0,0,.3);z-index:89;color:var(--ink)}
.project-history-head{display:flex;justify-content:space-between;gap:12px;padding:24px;border-bottom:1px solid var(--line)}.project-history-head small{display:block;color:var(--muted)}.project-history-head h2{font-size:22px;line-height:28px;margin:4px 0}.project-history-head p{font-size:14px;margin:6px 0 0;color:var(--muted)}.project-history-head button{border:0;background:none;color:var(--ink);font-size:24px;cursor:pointer;align-self:flex-start}.project-history-list{padding:24px}.project-history-list article{border-inline-start:2px solid var(--color-primary);padding:8px 16px;margin-bottom:16px}.project-history-list time{display:block;color:var(--muted);font-size:12px}.project-history-empty{text-align:center;margin:20vh auto;color:var(--muted)}.project-history-empty strong{color:var(--ink)}
.dark .layout-toggle{background:#282c33;border-color:#393d46;color:var(--ink)}
.dark .desktop-sidebar-toggle{color:var(--ink)}
/* v5: measurements from the current original desktop shell. */
.sidebar-workshop{height:169px;min-height:169px;flex:0 0 169px;margin-top:12px;border:1px solid #e7ddf1;border-radius:13px;background:linear-gradient(135deg,#f8f1ff,#edf7fc);padding:12px;overflow:visible}
.sidebar-workshop .workshop-link{min-height:76px;margin-top:8px}
.sidebar-workshop .workshop-actions{margin-top:9px}
.nav-caption{padding-top:15px}
.content[data-route="archive"] .page-head h1{font-size:32px}
.content[data-route="archive"] .page-head{margin-top:25px}
.page-breadcrumb{color:#68758a;font-size:13px;margin:12px 0 13px;display:flex;align-items:center;gap:8px}
.page-breadcrumb button{border:0;background:none;color:inherit;cursor:pointer;font:inherit;padding:0}
.content[data-route="archive"] .page-breadcrumb,.content[data-route="treasuries"] .page-breadcrumb,.content[data-route="expenseTypes"] .page-breadcrumb,.content[data-route="treasuryTypes"] .page-breadcrumb,.content[data-route="remaining"] .page-breadcrumb,.content[data-route="wallet"] .page-breadcrumb{margin-top:25px}
.dark .card,.dark .panel,.dark .modal{background:#151820;border-color:#30343d;color:var(--ink)}
.dark .stat{background:#151820}.dark .notification-popover{background:#151820}
.dashboard-progress-item{padding:14px 15px;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.dashboard-progress-item .progress{height:10px;background:#ded9f4;border-radius:999px;overflow:hidden}
.dashboard-progress-item .progress i{display:block;height:100%;background:#8268e8}
.dashboard-progress-item .progress-value{background:#fbbf24;border-radius:999px;padding:3px 8px;font-weight:700}
.dashboard-hero .dashboard-bolt{font-size:24px;color:#f25221;border-radius:12px;background:#fce8e0;padding:8px}
.stat-icon{font-size:16px}.content[data-route="dashboard"] .stat-value{color:var(--tone,#1a202e)}
.quick-search-dialog .modal{width:min(640px,calc(100vw - 32px));min-height:369px}
.quick-search-dialog .modal-foot{display:none}
.quick-search-dialog .modal-body{min-height:270px}
.quick-search-result.active{background:var(--color-base-200);outline:2px solid var(--color-primary)}
.notification-backdrop{position:fixed;inset:0;z-index:31;background:rgba(0,0,0,.27)}
.topbar:has(.notification-popover){z-index:33}
.notification-anchor{position:static}
.notification-popover{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:352px;height:min(480px,calc(100vh - 24px));max-height:none;z-index:32}
.notification-list{max-height:427px}
.searchable-select{position:relative}.searchable-select input{width:100%}
.searchable-select-list{position:absolute;z-index:30;top:100%;left:0;right:0;max-height:220px;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 25px #0002}
.searchable-select-list button{display:block;width:100%;text-align:right;background:none;border:0;padding:8px 12px;cursor:pointer;color:var(--ink)}
.searchable-select-list button:hover{background:var(--soft)}
.searchable-select-list[hidden]{display:none!important}
.resource-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.resource-detail dt{font-weight:700;color:var(--muted)}.resource-detail dd{margin:4px 0 0}
.visible-filter-panel{padding:18px 20px;margin:12px 0 20px;background:var(--paper);border:1px solid var(--line);border-radius:12px}.visible-filter-panel h2{margin:0;font-size:17px}.visible-filter-panel .toolbar{margin-top:14px}
.content[data-route="headTasks"] .input,.content[data-route="headTasks"] .select,.content[data-route="amProjects"] .input,.content[data-route="amProjects"] .select,.content[data-route="board"] .input,.content[data-route="board"] .select{height:32px;min-height:32px}
.content[data-route="help"] [data-help-search]{height:56px;min-height:56px}
.content[data-route="khulasa"] #zattar-form input{height:46px;min-height:46px}
.shell:has(.content[data-route="khulasa"]){display:block}
.shell:has(.content[data-route="khulasa"])>.sidebar,.shell:has(.content[data-route="khulasa"]) .topbar{display:none}
.shell:has(.content[data-route="khulasa"]) .main{margin:0;width:100%;min-height:100vh}
.shell:has(.content[data-route="khulasa"]) .content{max-width:100%;padding:24px}
.content[data-route="khulasa"] .page-head{max-width:760px;margin:0 auto 24px}
.content[data-route="settings"] textarea[name="address"]{height:81px;min-height:81px}
.content[data-route="remaining"] input[type="number"]{height:32px;min-height:32px}
.content[data-route="permissions"] .matrix-box{width:20px;height:20px}
.content[data-route="newProject"] .textarea[name="description"]{height:81px;min-height:81px}
.report-section{scroll-margin-top:90px}
@media print{
 .sidebar,.topbar,.report-controls,.page-breadcrumb{display:none!important}
 .shell{display:block!important}.main,.content{width:100%!important;margin:0!important;padding:0!important}
 body[data-report-scope="financial"] .report-section:not(.report-financial),
 body[data-report-scope="services"] .report-section:not(.report-services),
 body[data-report-scope="sources"] .report-section:not(.report-sources),
 body[data-report-scope="customers"] .report-section:not(.report-customers){display:none!important}
}
@media(max-width:760px){
 .mobile-menu{display:inline-flex}
 .desktop-sidebar-toggle{display:none}
 .search-shortcut{width:40px;min-width:40px;padding:0;justify-content:center;border-radius:999px}
 .search-shortcut span,.search-shortcut kbd{display:none}
 html[dir="ltr"] .sidebar{right:auto;left:calc(-1 * var(--ws-sidebar-width))}
 html[dir="ltr"] .sidebar.show{left:0}
}

/* v5.1 shared shell and measured component dimensions */
:root{--egb-heading-line:36px;--egb-page-gap:20px}
.content .page-head{margin-bottom:var(--egb-page-gap);align-items:flex-start}
.content .page-head h1{font-weight:700;line-height:var(--egb-heading-line)}
.content[data-route="khulasa"] .page-head h1{font-size:16.8px;line-height:20px}
.content[data-route="projects"] .page-head h1{line-height:48.6px}
.content[data-route="amProjects"] .page-head h1{line-height:40.5px}
.content[data-route="dashboard"] .page-head h1{font-weight:800}
.content[data-route="archive"] .page-head h1,.content[data-route="treasuries"] .page-head h1,.content[data-route="distribution"] .page-head h1,.content[data-route="profile"] .page-head h1,.content[data-route="expenseTypes"] .page-head h1,.content[data-route="treasuryTypes"] .page-head h1{line-height:40px}
.content[data-route="archive"] .page-head{margin-top:10px}
.content[data-route="archive"] .page-breadcrumb{margin-top:12px}
.content[data-route="dashboard"] .stats .stat{height:90px;min-height:90px;padding:12px 16px;gap:2px}
.content[data-route="dashboard"] .stats .stat-value{font-size:24px;line-height:26px}
.content[data-route="dashboard"] .stats .stat-foot{font-size:11px}
.dark .content[data-route="dashboard"] .stats .stat{background:rgb(26,30,40)}
.content[data-route="dashboard"] .stats .stat:nth-child(1){--tone:#2563eb;border-color:#b9d2ff}
.content[data-route="dashboard"] .stats .stat:nth-child(2){--tone:#d97706;border-color:#f7d7a2}
.content[data-route="dashboard"] .stats .stat:nth-child(3){--tone:#7c3aed;border-color:#d9c1ff}
.content[data-route="dashboard"] .stats .stat:nth-child(4){--tone:#16a34a;border-color:#b8e5c4}
.content[data-route="dashboard"] .dashboard-progress-item{padding:8px 0;border-bottom:1px solid var(--line)}
.nav-chevron{margin-right:auto;transition:transform .2s;flex:none}
.nav-group.open .nav-chevron{transform:rotate(180deg)}
.sidebar-help{width:100%;border:0;background:transparent;color:inherit;text-align:right;padding:12px 16px;cursor:pointer}
.sidebar-workshop .workshop-orb{background:#754bd3}
.khulasa-assistant-fab{position:fixed;left:20px;bottom:20px;z-index:20;width:82px;height:48px;border:0;border-radius:9999px;background:linear-gradient(135deg,rgba(242,82,33,.95),rgba(242,82,33,.78));box-shadow:0 9px 26px rgba(242,82,33,.35);color:#fff;display:flex;gap:6px;align-items:center;justify-content:center;font-weight:700;cursor:pointer}
.khulasa-assistant-fab svg{flex:none}
.notification-item{margin:8px 12px;border-radius:12px;border:1px solid var(--line);padding:12px;font-size:13px;line-height:1.5}
.notification-item.is-unread{background:color-mix(in srgb,var(--color-primary) 8%,var(--paper))}
.notification-item.is-read{background:transparent}
.notification-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.notification-item-head time{font-size:11px;color:var(--muted);white-space:nowrap}
.notification-item p{margin:6px 0}
.notification-recipient{color:var(--muted)}
.notification-detail{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:9px;padding:8px;color:var(--color-primary);text-decoration:none}
.notification-detail small{color:var(--muted)}
.notification-list{height:410px;max-height:410px;overflow-y:auto}
.notification-popover{height:480px}
.quick-search-group{margin-top:10px}
.quick-search-group h3{font-size:13px;color:var(--muted);margin:8px 0}
.quick-search-result{display:block;width:100%;padding:8px 12px;border-radius:8px;color:inherit;text-decoration:none}
.quick-search-result:hover,.quick-search-result.active{background:var(--color-base-200);outline:2px solid var(--color-primary)}
.chat-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.22);z-index:21}
.chose-chat{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(880px,calc(100vw - 32px));height:min(620px,calc(100dvh - 40px));background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.2);z-index:22;display:flex;flex-direction:column;overflow:hidden;color:var(--ink)}
.chose-chat__head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--line)}
.chose-chat__head h3{margin:0;font-size:17px}.chose-chat__head p{margin:0;color:var(--muted);font-size:12px}
.chose-chat__head-actions{display:flex;gap:6px}.chose-chat__shell{display:grid;grid-template-columns:32% 1fr;min-height:0;flex:1;direction:rtl}
.chose-chat__list{border-left:1px solid var(--line);overflow:auto}.chose-chat__search{padding:12px;border-bottom:1px solid var(--line)}.chose-chat__search .input{width:100%}.chose-chat__search small{color:var(--muted)}
.chose-chat__conversation{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:12px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:right;color:inherit;cursor:pointer}.chose-chat__conversation.active{background:color-mix(in srgb,var(--color-primary) 9%,var(--paper))}.chose-chat__conversation small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.chose-chat__active{display:flex;min-height:0;flex-direction:column}.chose-chat__active-head{padding:14px;border-bottom:1px solid var(--line)}.chose-chat__messages{flex:1;overflow-y:auto;padding:16px}.chose-chat__message{padding:10px 12px;border-radius:12px;background:var(--color-base-200);margin:8px 0;width:max-content;max-width:80%}.chose-chat__message.mine{margin-right:auto;background:color-mix(in srgb,var(--color-primary) 15%,var(--paper))}.chose-chat__message p{margin:5px 0}.chose-chat__message time{font-size:10px;color:var(--muted)}.chose-chat__form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.chose-chat__form .input{flex:1}.chose-chat__empty{color:var(--muted);padding:16px}
.distributed-section{margin:18px 0 26px}.distributed-section h2{font-size:17px;margin:0 0 10px}
.content[data-route="expenses"] .visible-filter-panel .input,.content[data-route="expenses"] .visible-filter-panel .select{height:32px;min-height:32px}
.content[data-route="profile"] input[type="file"][name="avatar"]{height:32px;min-height:32px;padding:3px 8px}
.content[data-route="permissions"] th{font-weight:700;text-align:center}
@media(max-width:760px){.chose-chat__shell{grid-template-columns:38% 1fr}.content .page-head{margin-bottom:16px}.khulasa-assistant-fab{left:12px;bottom:12px}}

/* v5.2 manual live-parity hotfix: shared shell + observed route structures */
:root{--v52-orange:#f25221;--v52-purple:#4b2bdc;--v52-soft:#f8fafc;--v52-blue:#2598c5}
.brand{height:68px;padding:0 13px 0 8px;justify-content:flex-start;border-bottom:1px solid var(--ws-sidebar-border);gap:10px}
.brand>strong{font-size:18px;font-weight:800;letter-spacing:.02em}.brand-mark{order:-1;width:40px;height:40px;border-radius:12px;background:#fff7f3;color:var(--v52-orange);border:1px solid #ffd9ca;box-shadow:none}
.sidebar{padding-top:0}.sidebar-workshop{margin-top:12px}.workshop-kicker{display:flex;align-items:center;justify-content:space-between;font-size:10px}.workshop-kicker small{display:flex;align-items:center;gap:5px;color:#32885e}.workshop-kicker small i{width:6px;height:6px;border-radius:50%;background:#30d77a}.workshop-kicker b{font-size:10px;color:#6f5f86}.workshop-link{position:relative}.workshop-arrow{margin-right:auto;font-size:25px;color:#7d6c92}.workshop-actions button{min-height:29px}
.topbar{height:68px;padding:0 22px;gap:10px;background:#f8fbfd;border-bottom-color:#dbe2ea}.icon-button{border-radius:13px;background:#fff}.account-anchor{position:relative;z-index:40}.account-trigger{border-color:#d6dde7;color:#4d2bdd;border-radius:50%}.account-backdrop{position:fixed;inset:0;z-index:4;background:transparent}.account-menu{position:absolute;left:0;top:calc(100% + 10px);width:248px;background:var(--paper);border:1px solid #dbe2ea;border-radius:14px;box-shadow:0 16px 36px rgba(29,39,62,.18);padding:10px;z-index:41;color:var(--ink)}.account-menu__identity{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;background:#f0efff;border-radius:11px}.account-menu__identity strong{display:block;font-size:15px}.account-menu__identity small{display:block;color:#8690a0;font-size:11px;margin-top:3px}.account-menu__avatar{width:42px;height:42px;border:1px solid #efc4c8;border-radius:50%;display:grid;place-items:center;color:#4b2bdc;background:white}.account-menu__sep{height:1px;background:#dfe4eb;margin:7px}.account-menu button{width:100%;height:43px;border:0;background:transparent;border-radius:9px;display:flex;gap:12px;align-items:center;text-align:right;padding:0 12px;color:var(--ink)}.account-menu button:hover{background:#f5f7fa}.account-menu button.danger{color:#ef3f3f}.account-menu .header-svg{width:19px;height:19px}
.layout-toggle{height:36px;min-width:40px;border:1px solid #d7dfe8;border-radius:12px;background:#fff;color:#526173}.layout-mark--ar{display:none}.search-shortcut{height:36px;border-radius:18px;min-width:136px;gap:8px;justify-content:flex-start;background:#fff}.search-shortcut kbd{order:-1;margin-left:auto}.desktop-sidebar-toggle{border:0;background:transparent}

/* Zaatar floating assistant should open a drawer, not navigate away */
.khulasa-assistant-fab{left:12px;bottom:16px;width:72px;height:44px;background:linear-gradient(135deg,#ff6636,#eb4f23);box-shadow:0 10px 24px rgba(242,82,33,.3)}
.assistant-overlay-backdrop{position:fixed;inset:0;background:rgba(22,29,38,.43);backdrop-filter:blur(3px);z-index:55}.assistant-overlay{position:fixed;left:0;top:0;bottom:0;width:min(374px,92vw);background:#fff;z-index:56;box-shadow:12px 0 40px rgba(0,0,0,.16);display:flex;flex-direction:column;color:#263247;direction:rtl}.assistant-overlay__head{min-height:62px;padding:12px 14px;border-bottom:1px solid #e1e7ed;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#fff4ef,#fff)}.assistant-overlay__head>div:first-child small{display:block;color:#ff6a3a;font-size:10px}.assistant-overlay__head strong{display:block;font-size:14px}.assistant-overlay__head>div:last-child{display:flex;gap:6px}.assistant-overlay__head .icon-button{width:30px;height:30px}.assistant-overlay__body{padding:14px;overflow:auto;flex:1}.assistant-overlay__body>[data-assistant-search]{width:100%;height:40px;border-color:#ff8c6a;box-shadow:0 0 0 3px #ffede7}.assistant-overlay__chips{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 18px}.zattar-chip{border:1px solid #f0b8a5;background:#fff;border-radius:999px;padding:6px 11px;font-size:11px;color:#475469}.assistant-overlay__messages{display:grid;gap:10px}.assistant-msg{display:grid;grid-template-columns:30px 1fr;gap:8px;align-items:start}.assistant-msg span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ff6636;color:white;font-weight:800}.assistant-msg p{margin:0;padding:10px 12px;border:1px solid #f2ddd5;border-radius:12px;background:#fffaf8;font-size:12px;line-height:1.55}.assistant-overlay__foot{height:38px;border-top:1px solid #e1e7ed;display:flex;align-items:center;justify-content:flex-start;padding:0 14px;color:#929cab}

/* Chat: original is a left-side full-height workspace drawer */
.chat-backdrop{z-index:46;background:rgba(25,31,39,.43);backdrop-filter:blur(1px)}.chose-chat{left:0;top:0;bottom:0;transform:none;width:min(516px,96vw);height:100dvh;border:0;border-radius:0;z-index:47;box-shadow:12px 0 44px rgba(0,0,0,.18)}.chose-chat__head{height:64px;padding:9px 14px;background:#fff;border-bottom:1px solid #dfe5ec}.chose-chat__title strong{font-size:15px}.chose-chat__title small{display:block;margin-top:2px;color:#8d96a5;font-size:10px}.chose-chat__head-actions{margin-right:auto}.chat-head-btn{border:0;background:transparent;width:32px;height:32px;font-size:20px;color:#6d7786}.chose-chat__shell{grid-template-columns:45% 55%;direction:rtl}.chose-chat__list{border-left:1px solid #dfe5ec;background:#fff}.chose-chat__list-title{padding:12px 14px;font-weight:800;font-size:14px;border-bottom:1px solid #e6ebf0}.chose-chat__search{padding:8px 10px}.chose-chat__search .input{height:36px;border-color:#9da7ff;background:#f8f8ff}.chose-chat__conversation{padding:10px 12px}.chose-chat__conversation.active{background:#f1efff}.chose-chat__active{background:#fff}.chose-chat__active-head{height:62px;display:flex;align-items:center}.chose-chat__messages{padding:14px}.chose-chat__form{height:52px;padding:7px;border-top:1px solid #dfe5ec;flex-direction:row}.chose-chat__form .btn{min-width:50px}.chose-chat__form .input{height:36px}

/* Notifications: same central geometry but denser original card treatment */
.notification-popover{border-radius:14px;width:352px;height:480px;border-color:#d7dce4;box-shadow:0 20px 46px rgba(0,0,0,.24)}.notification-popover-head{height:52px;padding:10px 14px}.notification-popover-head h3{margin:0;font-size:16px}.notification-read-all{border:0;background:none;color:#4b2bdc;font-weight:700;font-size:11px}.notification-list{height:427px;max-height:427px;padding:4px}.notification-item{background:#f7f5ff;border:0;border-radius:12px;margin:6px;padding:9px 10px}.notification-item p{font-size:12px}.notification-detail{background:#fff;border-color:#ece8fa}.notification-recipient{color:#4c3aaf!important;font-weight:600}

/* Standalone Zaatar page */
.shell:has(.content[data-route="khulasa"]) .content{padding:0!important;max-width:none!important}.khulasa-page{min-height:100vh;background:#fbfdff;display:flex;flex-direction:column}.khulasa-page__top{height:70px;border-bottom:1px solid #dce4eb;display:flex;align-items:center;gap:12px;padding:0 max(11vw,32px)}.khulasa-page__top>a{margin-left:auto;color:#111;text-decoration:none;font-size:12px;font-weight:700}.khulasa-page__top>div{margin-right:auto}.khulasa-page__top small{display:block;color:#2493bd;font-size:10px}.khulasa-page__top strong{display:block;font-size:14px}.khulasa-logo{width:40px;height:40px;border-radius:12px;background:#2799c7;color:#fff;display:grid;place-items:center;font-weight:800;box-shadow:0 7px 18px #2799c744}.khulasa-page__panel{width:min(750px,calc(100vw - 32px));height:min(575px,calc(100vh - 150px));margin:20px auto 0;border:1px solid #dce8ef;border-radius:18px;background:#fff;box-shadow:0 18px 46px rgba(37,79,104,.08);display:flex;flex-direction:column;padding:14px}.khulasa-page__messages{flex:1;overflow:auto}.khulasa-line{display:grid;grid-template-columns:34px 1fr;gap:10px;margin-bottom:10px}.khulasa-line span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#2799c7;color:#fff;font-weight:800}.khulasa-line p{margin:0;border:1px solid #dbeaf2;border-radius:9px;padding:10px;background:#fbfdff;font-size:12px}.khulasa-page__quick{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.khulasa-page__quick .zattar-chip{border-color:#a8cfe0;color:#334557}.khulasa-page__form{display:flex;gap:8px}.khulasa-page__form .input{flex:1;height:42px}.khulasa-send{width:42px;height:42px;border:0;border-radius:11px;background:#2799c7;color:white;font-size:19px}.khulasa-page__foot{text-align:center;margin-top:auto;padding:10px;color:#9aa6b2;font-size:10px}

/* Settings original hero + vertical tabs */
.settings-hero{min-height:136px;border:1px solid #e6e5e5;border-radius:18px;background:linear-gradient(105deg,#fff0ea 0%,#fff 50%,#eefaf8 100%);padding:26px 30px;display:flex;align-items:center;margin-bottom:20px}.settings-hero__copy>a{font-size:11px;color:#4934df;text-decoration:none}.settings-hero h1{font-size:28px;line-height:34px;margin:3px 0 6px;font-weight:800}.settings-hero p{margin:0;color:#788394;font-size:12px}.settings-hero__actions{margin-right:auto;display:flex;gap:10px}.settings-hero__actions .btn{border-color:#1e2633;font-weight:700}.settings-hero__actions .settings-permissions{color:#e73f84;border-color:#f48ab4}.settings-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:start}.settings-tabs{grid-column:1;background:#fff;border:1px solid #e3e8ed;border-radius:16px;padding:10px;display:grid;gap:5px;position:sticky;top:88px}.settings-tab{height:48px;border:0;border-radius:11px;background:transparent;color:#5d6878;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-weight:700}.settings-tab i{font-style:normal;width:28px;height:28px;border-radius:8px;background:#f0f2f4;display:grid;place-items:center}.settings-tab.active{background:#f25221;color:white;box-shadow:0 8px 18px rgba(242,82,33,.25)}.settings-tab.active i{background:#ffffff28}.settings-panel{grid-column:2;margin:0}.settings-section-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6ebf0;margin:-16px -17px 18px;padding:18px 20px}.settings-section-head strong{font-size:15px}.settings-section-head p{margin:3px 0 0;color:#7b8797;font-size:11px}.settings-company-grid .input,.settings-company-grid .textarea{background:#fbfdff}.settings-upload .input{border-style:dashed;height:58px}.settings-save{margin-top:15px}

/* Help: centered reference column and accordions */
.help-page{max-width:890px;margin:0 auto;padding:4px 0 40px}.help-header{text-align:center}.help-header h1{font-size:28px;margin:2px 0 5px}.help-header p{margin:0;color:#788394;font-size:13px}.help-header>[data-help-search]{width:100%;height:56px;margin:22px 0 16px;border-radius:11px;font-size:14px}.help-jump{display:flex;justify-content:center;gap:8px;margin-bottom:24px}.help-jump a{border:1px solid #202733;border-radius:9px;padding:7px 13px;color:#111;text-decoration:none;font-size:11px;font-weight:700}.help-section{margin:0 0 22px}.help-section>h2{text-align:right;font-size:16px;margin:0 0 12px}.help-accordion{background:#fff;border:1px solid #e1e7ed;border-radius:12px;margin:10px 0;box-shadow:0 4px 14px rgba(23,32,48,.04);overflow:hidden}.help-accordion summary{padding:14px 18px;cursor:pointer;font-weight:700;font-size:13px;list-style:none}.help-accordion summary::before{content:'◀';font-size:9px;margin-left:8px;color:#323a45}.help-accordion[open] summary::before{content:'▼';color:#f25221}.help-accordion p{margin:0;padding:0 18px 14px;color:#6f7b8c;font-size:12px}.help-section ol{background:#fff;border:1px solid #e1e7ed;border-radius:12px;padding:18px 42px 18px 18px;line-height:2}
.help-accordion>div{padding:0 18px 14px;color:#6f7b8c;font-size:13px;line-height:2}.help-page.searching .help-jump{display:none}.help-section[hidden],.help-accordion[hidden]{display:none!important}.assistant-overlay__detail{border-top:1px solid #e1e7ed;margin-top:14px;padding-top:12px;line-height:1.8}.assistant-overlay__detail p{margin:6px 0;font-size:12px}
.help-page{max-width:976px}.help-header h1{font-size:30px;font-weight:900;line-height:36px;margin:0 0 8px}.help-header p{font-size:16px;line-height:24px}.help-header>[data-help-search]{height:56px;border-radius:12px;font-size:16px;background:#f8fafc}.help-jump a{height:32px;display:inline-flex;align-items:center;padding:0 12px;border-radius:12px;font-size:12px}.help-section>h2{font-size:20px;font-weight:900;line-height:28px;margin:16px 0 12px}.help-accordion{margin:0 0 12px;border:1px solid rgba(225,232,239,.8);border-radius:16px}.help-accordion summary{font-size:16px;line-height:24px;padding:16px 16px 16px 40px}.help-accordion>div{font-size:16px;line-height:32px;padding:0 16px 16px}
.dark .help-accordion{background:rgb(21,24,32);border-color:rgba(255,255,255,.09);color:var(--color-base-content)}.dark .help-accordion>div{color:color-mix(in srgb,var(--color-base-content) 80%,transparent)}.dark .help-header p{color:color-mix(in srgb,var(--color-base-content) 70%,transparent)}.dark .help-header>[data-help-search]{background:rgb(18,21,28);border-color:rgb(225,232,239);color:var(--color-base-content)}.dark .help-jump a{border-color:rgba(255,255,255,.09);color:rgba(231,235,238,.85)}

/* My Projects observed layout */
.my-projects-hero{min-height:146px;background:#fff;border:1px solid #e4e9ee;border-radius:16px;padding:24px;display:grid;grid-template-columns:minmax(360px,1.4fr) minmax(260px,.8fr) auto;align-items:center;gap:24px;margin-bottom:14px}.my-projects-hero__copy{display:flex;gap:14px}.my-projects-hero__copy h1{font-size:30px;margin:0 0 5px}.my-projects-hero__copy p{margin:0;color:#627083;font-size:12px;line-height:1.65}.hero-icon{width:42px;height:42px;border-radius:11px;background:#eeeaff;color:#4b2bdc;display:grid;place-items:center;font-size:21px;flex:none}.my-projects-hero>.input{height:42px}.my-projects-mini{display:flex;gap:18px}.my-projects-mini>div{width:96px;height:74px;border:1px solid #f4d897;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center}.my-projects-mini>div:last-child{border-color:#abe9cf}.my-projects-mini b{font-size:24px;color:#f0a800}.my-projects-mini>div:last-child b{color:#00ad6c}.my-projects-mini span{font-size:11px;color:#6f7b8c}.my-projects-tabbar{height:48px;background:#eef3f7;border:1px solid #e1e7ed;border-radius:11px;display:flex;align-items:center;justify-content:flex-start;padding:5px;margin:0 0 20px}.my-projects-tabbar button{border:0;background:transparent;padding:9px 14px;border-radius:8px;color:#687585}.my-projects-tabbar button.active{background:#fff0eb;color:#f25221;font-weight:800}.my-projects-filter{border:1px solid #e1e7ed;background:#fff;border-radius:15px;padding:14px 18px;margin-bottom:20px}.my-projects-filter__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.my-projects-filter__head strong{display:block}.my-projects-filter__head small{color:#8893a2}.clear-link{border:0;background:transparent;color:#ff4560;font-size:11px}.my-projects-filter .toolbar{display:grid;grid-template-columns:1fr 1fr .75fr .75fr;margin:0}.my-projects-filter .input,.my-projects-filter .select{height:32px;min-height:32px}.assigned-hint{border:1px solid #99ead7;background:#ecfffb;color:#4d6870;border-radius:9px;padding:10px 14px;margin-bottom:16px;text-align:center;font-size:11px}.my-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.my-project-card{background:#fff;border:1px solid #e1e7ed;border-radius:15px;padding:16px;box-shadow:0 4px 14px rgba(25,33,48,.03)}.my-project-card__top{display:flex;gap:10px;align-items:flex-start}.my-project-avatar{width:38px;height:38px;border-radius:10px;background:#fff0c8;color:#c88e00;display:grid;place-items:center}.my-project-card h3{margin:0;font-size:14px}.my-project-card small{color:#8a94a2}.my-project-badges{margin-right:auto;display:flex;gap:6px}.my-project-money{display:flex;justify-content:space-between;margin:18px 0 10px;font-size:11px}.my-project-money b{color:#00b87a}.distribution-strip{width:100%;height:24px;border:1px solid #b7a8ff;border-radius:999px;background:#f8f5ff;color:#31225f;font-size:10px;font-weight:700}.my-project-actions{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:11px}.my-project-actions .primary{background:#4b2bdc;border-color:#4b2bdc}

/* AM projects */
.am-hero{min-height:136px;border-radius:16px;background:linear-gradient(100deg,#eeeaff,#fff);padding:24px;display:flex;align-items:center;gap:24px;margin-bottom:20px}.am-hero__copy{display:flex;gap:12px;align-items:flex-start}.am-hero h1{margin:0;color:#4b2bdc;font-size:30px}.am-hero p{margin:5px 0 0;color:#667386;font-size:12px}.am-hero>.input{margin-right:auto;width:410px;height:40px;background:white}.am-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.am-stats .card{height:100px}.am-stats span{display:block;color:#7b8795;font-size:11px}.am-stats b{font-size:28px;color:#4b2bdc}.am-stats .card:last-child b{color:#00ad67}.am-filter{border:1px solid #e1e7ed;border-radius:14px;background:#fff;padding:13px 18px;margin-bottom:20px}.am-filter__head{display:flex;justify-content:space-between;margin-bottom:10px}.am-filter .toolbar{display:grid;grid-template-columns:1fr 1fr .55fr;margin:0}.am-filter .input,.am-filter .select{height:32px!important}.am-project-grid .project-card{min-height:300px}.project-card-head{display:flex;justify-content:space-between;gap:8px}.distribution-strip{margin:8px 0}

/* Remaining payments */
.remaining-hero{max-width:1155px;margin:0 auto 28px;border:1px solid #f4d28b;border-radius:17px;background:linear-gradient(105deg,#fff5dc,#fff);padding:28px 32px;min-height:160px;display:flex;align-items:center}.remaining-hero small{color:#eaa500;font-weight:700}.remaining-hero h1{font-size:30px;margin:5px 0}.remaining-hero p{margin:0;color:#6e7988;font-size:12px;max-width:820px}.remaining-stats{max-width:1155px;margin:0 auto 28px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.remaining-stats .card{height:106px}.remaining-stats span,.remaining-stats small{display:block;color:#8791a0;font-size:11px}.remaining-stats b{display:block;font-size:26px;margin:6px 0}.remaining-stats .card:last-child b{color:#efaa00}.remaining-search{max-width:1155px;margin:0 auto 28px;border:1px solid #e2e7ec;border-radius:17px;background:#fff;padding:20px}.remaining-search__title{display:flex;gap:10px;justify-content:flex-start}.remaining-search__title>span{width:34px;height:34px;border-radius:9px;background:#fff2cb;color:#d89400;display:grid;place-items:center;font-size:20px}.remaining-search__title strong,.remaining-search__title small{display:block}.remaining-search__title small{color:#8a94a2}.remaining-sort{margin:18px 0}.remaining-sort>span{display:block;color:#7b8795;font-size:11px;margin-bottom:7px}.remaining-sort>div{display:flex;gap:7px;flex-wrap:wrap}.remaining-sort .btn.active{background:#f0aa00;border-color:#f0aa00;color:#fff}.remaining-query{display:grid;grid-template-columns:1fr auto auto;gap:9px}.remaining-query .input{height:40px}.collect-cell{display:flex;flex-direction:column;gap:8px;align-items:stretch;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.collect-cell label{display:block;flex:1;min-width:0}.collect-cell label span,.collect-cell small{display:block}.collect-cell label span{font-size:12px}.collect-cell .input{display:block;width:100%;height:32px;font-family:monospace}.collect-cell small{color:#949eaa;font-size:11px;line-height:1.375}.collect-cell .btn{height:32px;flex:none}@media(min-width:640px){.collect-cell{flex-direction:row;align-items:center}}.remaining-amount{background:#ffc000;border-radius:10px;padding:5px 9px}.table-project-link{color:#4934df;font-weight:700}

/* Project create */
.new-project-hero{min-height:112px;border-radius:17px;background:linear-gradient(100deg,#eae8ff,#fff);padding:25px 30px;margin-bottom:22px}.new-project-hero h1{margin:0;color:#4b2bdc;font-size:30px}.new-project-hero p{margin:7px 0 0;color:#788393}.original-steps{height:66px;border:1px solid #e7eaee;background:#fff;border-radius:16px;padding:0 26px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 5px 15px rgba(20,29,42,.05)}.original-steps .wizard-step{flex:1;display:flex;align-items:center;gap:9px;color:#777;border:0!important;background:none!important;position:relative}.original-steps .wizard-step:not(:last-child)::after{content:'';height:3px;background:#e8e8e8;flex:1;margin:0 14px;border-radius:99px}.original-steps .wizard-step span{width:36px;height:36px;border-radius:50%;background:#f0f0f0;display:grid;place-items:center;font-weight:800}.original-steps .wizard-step.active{color:#111;font-weight:800}.original-steps .wizard-step.active span{background:#4b2bdc;color:#fff;box-shadow:0 7px 18px #4b2bdc33}.project-create-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.7fr);gap:22px}.project-create-form,.project-preview{border-radius:17px}.project-create-form .panel-head h2 span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#4b2bdc;color:#fff;margin-left:6px}.customer-lookup-row .customer-lookup-wrap{display:grid;grid-template-columns:42px 1fr;gap:8px}.customer-view-icon{border:0;background:#4b2bdc;color:#fff;border-radius:10px}.project-wizard-actions{display:flex;gap:10px;align-items:center;margin-top:14px}.next-wide{flex:1;background:#4b2bdc!important;border-color:#4b2bdc!important}.cancel-link{border:0;background:transparent;margin-right:auto}.preview-project-name{font-size:24px;font-weight:800}.preview-money{background:#eafff8;border-radius:11px;padding:12px;margin:16px 0}.preview-money>div,.preview-meta>div{display:flex;justify-content:space-between;margin:7px 0}.preview-money>div:nth-child(2) strong{color:#00bb81}.preview-money>div:nth-child(3) strong{color:#f0ae00}

/* Project distribution */
.distribution-hero{min-height:166px;border:1px solid #e7e7e7;border-radius:18px;background:linear-gradient(100deg,#fff0e9,#fff 55%,#eefaf7);padding:28px 30px;display:flex;align-items:center;margin-bottom:22px}.distribution-hero__copy{display:flex;gap:15px;align-items:flex-start}.distribution-hero__copy .hero-icon{background:#ffeab3;color:#e8a100;width:52px;height:52px}.distribution-hero small{color:#e2a500}.distribution-hero h1{margin:2px 0 7px;font-size:30px}.distribution-hero p{margin:0;color:#6e7b8b;font-size:12px;max-width:760px}.distribution-hero a{display:block;margin-top:8px;color:#4934df;text-decoration:none;font-size:11px;font-weight:700}.distribution-mini{margin-right:auto;display:flex;gap:10px}.distribution-mini>div{width:92px;height:72px;border:1px solid #e4e8ec;border-radius:13px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.distribution-mini b{font-size:23px;color:#4b2bdc}.distribution-mini>div:nth-child(2) b{color:#ec3f83}.distribution-mini>div:first-child b{color:#e8a200}.distribution-mini span{font-size:10px;color:#737e8d}.distribution-tabbar{height:48px;border:1px solid #dde5eb;border-radius:10px;background:#eef3f7;display:flex;align-items:center;justify-content:flex-start;padding:5px;margin-bottom:20px}.distribution-tabbar button{border:0;background:transparent;padding:9px 14px;border-radius:8px;color:#697687}.distribution-tabbar .active{background:#fff1eb;color:#f25221;font-weight:800}.smart-distributor{border:1px solid #d8cdfd;border-radius:17px;background:#fff;padding:22px;margin-bottom:22px;position:relative}.smart-distributor h2{margin:0;font-size:18px}.smart-distributor p{color:#6c7787;font-size:11px}.smart-actions{position:absolute;left:22px;top:24px;display:flex;gap:8px}.btn.success{color:#00a96f;border-color:#00c98d}.bulk-row{border-top:1px solid #e5e9ee;margin-top:18px;padding-top:14px;display:flex;align-items:center;gap:12px}.bulk-row label{margin-left:auto}.bulk-row .select{min-width:280px}

@media(max-width:1000px){.my-projects-hero{grid-template-columns:1fr}.my-projects-mini{justify-content:flex-start}.my-projects-grid{grid-template-columns:1fr 1fr}.settings-layout{grid-template-columns:1fr}.settings-tabs,.settings-panel{grid-column:1}.settings-tabs{position:static;grid-template-columns:repeat(4,1fr)}.distribution-hero{display:block}.distribution-mini{margin-top:18px}.project-create-layout{grid-template-columns:1fr}.project-preview{order:2}.am-hero{display:block}.am-hero>.input{width:100%;margin-top:16px}.smart-actions{position:static;margin:12px 0}}
@media(max-width:760px){.assistant-overlay{width:92vw}.chose-chat{width:96vw}.chose-chat__shell{grid-template-columns:42% 58%}.my-projects-grid{grid-template-columns:1fr}.my-projects-filter .toolbar{grid-template-columns:1fr}.am-stats,.remaining-stats{grid-template-columns:1fr}.settings-tabs{grid-template-columns:1fr 1fr}.distribution-mini{flex-wrap:wrap}.smart-actions{display:grid}.remaining-query{grid-template-columns:1fr}.project-create-layout{display:block}.project-preview{margin-top:16px}}
.nav-link.sub{padding-right:11px;gap:9px}.sub-icon{width:24px;height:24px;border-radius:7px;background:color-mix(in srgb,var(--tone) 18%,white);color:var(--tone);display:grid;place-items:center;flex:none}.sub-icon svg{width:14px;height:14px}.nav-link.sub.active .sub-icon{background:color-mix(in srgb,var(--tone) 24%,white)}.sidebar-help{display:flex;align-items:center;justify-content:space-between}.sidebar-help::after{content:'?';width:20px;height:20px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:11px}
.content[data-route="dashboard"] .stats .stat-icon{display:none!important}.content[data-route="dashboard"] .stats .stat{justify-content:center}.content[data-route="dashboard"] .stats .stat-value{margin:4px 0}

/* v1.2.3: keep project customer autocomplete anchored under its input. */
.customer-lookup-row{position:relative;z-index:40;overflow:visible}
.customer-lookup-row .customer-lookup-wrap>div{position:relative;min-width:0}
.customer-lookup-row .searchable-select-list{top:calc(100% + 6px);z-index:90;text-align:right}
.customer-lookup-row .searchable-select-list button{display:flex;flex-direction:column;gap:2px}
.customer-lookup-row .searchable-select-list button strong{font-size:12px}
.customer-lookup-row .searchable-select-list button small{font-size:10px;color:var(--muted)}
.searchable-select-empty{padding:10px 12px;color:var(--muted);font-size:11px;background:var(--paper)}

/* =====================================================================
   EGB UX SYSTEM PASS 1.3 — bilingual, polished interactions, no logic changes
   ===================================================================== */
:root{
  --egb-bg:#f5f7fb;
  --egb-surface:#ffffff;
  --egb-surface-soft:#f8fafc;
  --egb-border:#e3e8ef;
  --egb-border-strong:#d4dce6;
  --egb-text:#1d2735;
  --egb-muted:#6f7c8f;
  --egb-primary:#f25221;
  --egb-primary-soft:rgba(242,82,33,.09);
  --egb-focus:0 0 0 3px rgba(242,82,33,.16);
  --egb-shadow-sm:0 3px 12px rgba(28,39,55,.05);
  --egb-shadow-md:0 14px 34px rgba(28,39,55,.10);
  --egb-shadow-lg:0 28px 70px rgba(18,27,40,.18);
  --egb-radius-sm:10px;
  --egb-radius:16px;
  --egb-radius-lg:22px;
}
html{scroll-behavior:smooth}
body{background:var(--egb-bg);color:var(--egb-text)}
body:not(.dark){--paper:var(--egb-surface);--soft:var(--egb-bg);--line:var(--egb-border);--ink:var(--egb-text);--muted:var(--egb-muted)}
.content{padding:30px clamp(18px,2.4vw,38px) 52px}
.content>*{animation:egb-section-in .18s ease both}
@keyframes egb-section-in{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:none}}

/* Header */
.topbar{background:color-mix(in srgb,var(--paper) 88%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid color-mix(in srgb,var(--line) 82%,transparent);box-shadow:0 4px 24px rgba(27,39,55,.045)}
.search-shortcut{min-width:210px;justify-content:space-between;transition:border-color .16s,box-shadow .16s,transform .16s}
.search-shortcut:hover{border-color:color-mix(in srgb,var(--egb-primary) 34%,var(--line));box-shadow:var(--egb-shadow-sm);transform:translateY(-1px)}
.icon-button,.layout-toggle{transition:background .16s,border-color .16s,transform .16s,box-shadow .16s}
.icon-button:hover,.layout-toggle:hover{transform:translateY(-1px)}
.layout-toggle{min-width:42px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--paper);font-weight:800;color:var(--egb-primary);display:grid;place-items:center}
.layout-mark{font-size:11px;letter-spacing:.06em}

/* Sidebar / submenu hierarchy */
.sidebar{scrollbar-width:thin;scrollbar-color:rgba(98,111,130,.28) transparent}
.brand{position:sticky;top:0;z-index:2;background:color-mix(in srgb,var(--soft) 94%,transparent);backdrop-filter:blur(14px)}
.nav-group{border-radius:13px;transition:background .18s ease}
.nav-group.open{background:color-mix(in srgb,var(--tone) 3.5%,transparent)}
.nav-group-title{min-height:44px;height:auto;padding-block:8px;font-size:12.5px;position:relative}
.nav-group-title .nav-chevron{margin-inline-start:auto;transition:transform .2s ease}
.nav-group.open .nav-chevron{transform:rotate(180deg)}
.nav-items{display:block!important;max-height:0;opacity:0;overflow:hidden;padding-block:0!important;transition:max-height .26s ease,opacity .18s ease,padding .22s ease}
.nav-group.open .nav-items{max-height:440px;opacity:1;padding-block:4px 7px!important}
.nav-link.sub{min-height:36px;height:auto;margin:2px 4px;border-radius:10px;position:relative;transition:background .15s,color .15s,transform .15s}
.nav-link.sub:hover{transform:translateX(-1px)}
.lang-en .nav-link.sub:hover{transform:translateX(1px)}
.nav-link.sub.active:before{content:"";position:absolute;inset-block:8px;inset-inline-start:0;width:3px;border-radius:99px;background:var(--tone)}
.sidebar-help{margin:12px 4px 0;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--muted);min-height:40px;font-weight:700}

/* Page hierarchy */
.page-head{padding:4px 0 2px;align-items:center}
.page-head h1{font-size:clamp(25px,2.2vw,32px);letter-spacing:-.02em}
.page-head p{max-width:780px;font-size:13px;line-height:1.75}
.actions{margin-inline-start:auto;margin-right:0}
.dashboard-hero,.new-project-hero,.settings-hero,.remaining-hero{border:1px solid var(--line);box-shadow:var(--egb-shadow-sm);overflow:hidden;position:relative}
.dashboard-hero:after,.new-project-hero:after,.settings-hero:after,.remaining-hero:after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;background:var(--egb-primary-soft);inset-inline-end:-55px;top:-80px;pointer-events:none}

/* Cards and detail presentation */
.card,.panel{border:1px solid var(--line);box-shadow:var(--egb-shadow-sm);transition:border-color .16s,box-shadow .16s,transform .16s}
.card:hover{border-color:color-mix(in srgb,var(--egb-primary) 16%,var(--line));box-shadow:0 10px 28px rgba(28,39,55,.08)}
.stat{position:relative;overflow:hidden}
.stat:after{content:"";position:absolute;inset-inline-end:-18px;bottom:-28px;width:72px;height:72px;border-radius:50%;background:var(--egb-primary-soft);opacity:.75}
.stat-value{position:relative;z-index:1}
.content[data-route^="customer:"] .three-col>div,
.content[data-route^="project:"] .three-col>div,
.content[data-route^="team:"] .three-col>div,
.content[data-route^="service:"] .three-col>div,
.content[data-route^="treasury:"] .three-col>div,
.content[data-route^="expense:"] .three-col>div{
  min-height:88px;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,var(--paper),color-mix(in srgb,var(--paper) 96%,var(--egb-bg)));box-shadow:0 2px 8px rgba(28,39,55,.03)
}
.content[data-route^="customer:"] .three-col>div p,
.content[data-route^="project:"] .three-col>div p,
.content[data-route^="team:"] .three-col>div p{margin:8px 0 0;font-size:14px;font-weight:700}

/* Tables */
.table-wrap{border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:var(--egb-shadow-sm);overflow:auto}
table{background:transparent}
th{position:sticky;top:0;z-index:1;background:color-mix(in srgb,var(--paper) 93%,#eaf0f6);font-size:12px;text-transform:none;letter-spacing:.01em}
tbody tr{transition:background .14s ease}
tbody tr:hover{background:color-mix(in srgb,var(--egb-primary) 3.5%,var(--paper))}
th,td{padding:13px 14px}
.table-actions{gap:6px;flex-wrap:wrap}
.table-actions .btn{min-height:32px}

/* Buttons and form controls */
.btn{border-color:var(--line);box-shadow:0 1px 1px rgba(28,39,55,.02);transition:transform .12s,box-shadow .16s,border-color .16s,background .16s}
.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 14px rgba(28,39,55,.07)}
.btn:active:not(:disabled){transform:translateY(0) scale(.985);box-shadow:none}
.btn.primary{background:linear-gradient(135deg,#f25221,#e9491a);border-color:#e9491a;box-shadow:0 7px 18px rgba(242,82,33,.22)}
.btn.danger{background:color-mix(in srgb,#dc3545 5%,var(--paper));border-color:color-mix(in srgb,#dc3545 28%,var(--line))}
.field{align-content:start}
.field label{font-size:12px;font-weight:700;color:color-mix(in srgb,var(--ink) 78%,var(--muted))}
.field small{font-size:10.5px;line-height:1.55;color:var(--muted)}
.input,.select,.textarea{border:1px solid var(--line);background:var(--paper);min-height:42px;border-radius:12px;padding-inline:12px;transition:border-color .16s,box-shadow .16s,background .16s}
.textarea{padding-block:11px}
.input:hover,.select:hover,.textarea:hover{border-color:var(--egb-border-strong)}
.input:focus,.select:focus,.textarea:focus{border-color:color-mix(in srgb,var(--egb-primary) 58%,var(--line));box-shadow:var(--egb-focus);background:var(--paper)}
.input[readonly],.input:disabled,.select:disabled,.textarea:disabled{background:color-mix(in srgb,var(--soft) 75%,var(--paper));color:var(--muted);cursor:not-allowed}
.checkline{padding:7px 0;line-height:1.55}.checkline input{width:17px;height:17px}
.form-grid{gap:15px 16px}

/* Tabs */
.tabs{gap:7px;padding:0 10px;scrollbar-width:none}
.tab{position:relative;border-bottom:0;border-radius:10px 10px 0 0;padding:11px 14px;transition:background .16s,color .16s}
.tab:hover{background:color-mix(in srgb,var(--egb-primary) 5%,transparent)}
.tab.active{background:var(--egb-primary-soft);color:var(--egb-primary);border-bottom:0}
.tab.active:after{content:"";position:absolute;height:2px;border-radius:99px;background:var(--egb-primary);inset-inline:12px;bottom:0}

/* Modals / drawers / popovers */
.modal-backdrop,.financial-cancellation-backdrop,.assistant-overlay-backdrop,.chat-backdrop,.project-history-backdrop,.pipeline-backdrop{backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.modal{width:min(760px,calc(100vw - 28px));max-height:min(90vh,850px);border-radius:20px;box-shadow:var(--egb-shadow-lg);border:1px solid color-mix(in srgb,var(--line) 82%,transparent);overflow:auto}
.modal-head{position:sticky;top:0;z-index:2;background:color-mix(in srgb,var(--paper) 95%,transparent);backdrop-filter:blur(12px);padding:17px 20px}
.modal-head h2{font-size:17px}.modal-head button{margin-inline-start:auto;margin-right:0}
.modal-body{padding:21px}.modal-foot{position:sticky;bottom:0;z-index:2;background:color-mix(in srgb,var(--paper) 96%,transparent);backdrop-filter:blur(12px);padding:13px 20px;justify-content:flex-end}
.notification-popover,.account-menu{border-color:var(--line);box-shadow:var(--egb-shadow-lg);overflow:hidden}
.notification-item{transition:background .15s,transform .15s}.notification-item:hover{transform:translateY(-1px)}
.project-history-drawer,.assistant-overlay,.chose-chat{box-shadow:var(--egb-shadow-lg)}
.project-history-head,.assistant-overlay__head,.chose-chat__head{position:sticky;top:0;z-index:2;backdrop-filter:blur(12px)}
.assistant-overlay{border-inline-end:1px solid var(--line)}
.chose-chat__conversation{transition:background .14s}.chose-chat__conversation:hover{background:color-mix(in srgb,var(--egb-primary) 5%,var(--paper))}
.chose-chat__message{box-shadow:0 2px 7px rgba(25,35,48,.04)}

/* Wizard */
.wizard-steps{gap:8px;margin:14px 0 22px}
.wizard-step{border:1px solid var(--line);border-bottom-width:1px;border-radius:13px;background:var(--paper);padding:10px 12px;display:flex;align-items:center;gap:8px;min-height:48px}
.wizard-step span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--soft);font-weight:800;flex:none}
.wizard-step.active{border-color:color-mix(in srgb,var(--egb-primary) 45%,var(--line));background:var(--egb-primary-soft);color:var(--egb-primary)}
.wizard-step.active span{background:var(--egb-primary);color:white}
.project-wizard-actions{border-top:1px solid var(--line);margin-top:22px;padding-top:16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.project-preview{position:sticky;top:96px;align-self:start}

/* Empty / toast */
.empty{border:1px dashed var(--egb-border-strong);border-radius:15px;background:color-mix(in srgb,var(--paper) 70%,var(--soft));margin:8px 0;min-height:90px;display:grid;place-items:center}
#toast-root{inset-inline-start:20px;left:auto;right:auto;bottom:20px;z-index:100}
.toast{min-width:250px;max-width:min(420px,calc(100vw - 32px));border-radius:13px;padding:12px 15px;font-size:12px;box-shadow:var(--egb-shadow-lg);border:1px solid rgba(255,255,255,.1)}

/* Login */
.login-screen{position:relative;background:var(--egb-bg)}
.login-language-toggle{position:fixed;top:20px;inset-inline-end:22px;z-index:5;width:48px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.34);background:rgba(255,255,255,.13);backdrop-filter:blur(10px);color:white;font-weight:800}
.login-main{background:radial-gradient(circle at 80% 10%,rgba(242,82,33,.06),transparent 34%),var(--paper)}
.login-box{width:min(430px,100%);padding:30px;border:1px solid var(--line);border-radius:24px;background:var(--paper);box-shadow:0 24px 70px rgba(24,35,49,.10)}
.login-eyebrow{font-size:11px;font-weight:800;color:var(--egb-primary);letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px}
.login-submit{min-height:44px}.login-hint{border:1px solid var(--line);background:var(--soft);border-radius:12px}
.lang-en .login-language-toggle{color:var(--egb-primary);background:rgba(255,255,255,.94);border-color:var(--line)}

/* Language direction */
.lang-en{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.lang-en .shell{direction:ltr}
.lang-en .sidebar,.lang-en .nav-group-title,.lang-en .nav-link,.lang-en .workshop-link,.lang-en .account-menu button,.lang-en .chose-chat__conversation,.lang-en th,.lang-en td{text-align:left}
.lang-en th,.lang-en td{direction:ltr}
.lang-en .nav-items{padding-left:4px!important;padding-right:0!important}
.lang-en .nav-link.sub{padding-left:34px;padding-right:8px}
.lang-en .topbar,.lang-en .page-head,.lang-en .toolbar,.lang-en .split,.lang-en .actions,.lang-en .modal-head,.lang-en .modal-foot{direction:ltr}
.lang-en .search-shortcut{direction:ltr;text-align:left}
.lang-en input,.lang-en select,.lang-en textarea{direction:ltr;text-align:left}
.lang-en input[type="tel"]{direction:ltr}
.lang-en .workshop-arrow{transform:rotate(180deg)}
.lang-en .chose-chat__shell{direction:ltr}
.lang-en .chose-chat__list{border-left:0;border-right:1px solid var(--line)}
.lang-en .chose-chat__message.mine{margin-left:auto;margin-right:0}
.lang-en .assistant-overlay{left:auto;right:0;direction:ltr;box-shadow:-12px 0 40px rgba(0,0,0,.16);border-right:0;border-left:1px solid var(--line)}
.lang-en .project-history-drawer{left:auto;right:0;box-shadow:-10px 0 42px rgba(0,0,0,.2)}
.lang-en .project-filter-drawer{left:auto;right:0}
.lang-en .role-matrix th:first-child,.lang-en .role-matrix td:first-child{right:auto;left:0}
.lang-en .ledger-item{border-right:0;border-left:2px solid #dba2aa;margin-right:0;margin-left:4px}
.lang-en .khulasa-page__top>a{margin-left:0;margin-right:auto}.lang-en .khulasa-page__top>div{margin-right:0;margin-left:auto}
.lang-en .khulasa-results button{text-align:left;align-items:flex-start}
.lang-en .khulasa-user-line{justify-content:flex-end}
.lang-en .account-menu{left:auto;right:0}

/* Dark consistency */
.dark{--egb-bg:#0f131a;--egb-surface:#171d27;--egb-surface-soft:#1d2531;--egb-border:#2b3543;--egb-border-strong:#3a4656;--egb-text:#edf2f7;--egb-muted:#9aa7b8;--paper:var(--egb-surface);--soft:var(--egb-bg);--line:var(--egb-border);--ink:var(--egb-text);--muted:var(--egb-muted)}
.dark .topbar{background:rgba(19,25,34,.88)}
.dark .brand{background:rgba(15,19,26,.94)}
.dark .card,.dark .panel,.dark .modal,.dark .table-wrap,.dark .login-box{background:var(--paper);border-color:var(--line)}
.dark th{background:#202936}.dark tbody tr:hover{background:rgba(242,82,33,.045)}
.dark .modal-head,.dark .modal-foot{background:rgba(23,29,39,.96)}
.dark .notification-item{background:#22293a}.dark .account-menu__identity{background:#25243b}
.dark .login-main{background:radial-gradient(circle at 80% 10%,rgba(242,82,33,.08),transparent 34%),var(--egb-bg)}

/* Responsive polish */
@media(max-width:980px){
  .page-head{align-items:flex-start}.stats,.stats.five{grid-template-columns:repeat(2,minmax(0,1fr))}.project-preview{position:static}
}
@media(max-width:760px){
  .content{padding:16px 12px 38px}.sidebar{right:calc(-1 * var(--ws-sidebar-width));left:auto}.lang-en .sidebar{right:auto;left:calc(-1 * var(--ws-sidebar-width))}.lang-en .sidebar.show{left:0;right:auto}.page-head h1{font-size:25px}.page-head p{font-size:12px}.page-head .actions{width:100%}.page-head .actions .btn{flex:1}.stats,.stats.five{grid-template-columns:1fr 1fr}.modal-backdrop{padding:8px}.modal{width:100%;max-height:94dvh;border-radius:17px}.modal-body{padding:16px}.form-grid{grid-template-columns:1fr}.wizard-steps{overflow:auto;padding-bottom:4px}.wizard-step{min-width:145px;flex:none}.project-wizard-actions .btn,.project-wizard-actions .next-wide{flex:1}.login-main{padding:18px}.login-box{padding:24px 18px}.login-language-toggle{top:14px;inset-inline-end:14px;color:var(--egb-primary);background:var(--paper);border-color:var(--line)}.chose-chat__shell{grid-template-columns:1fr}.chose-chat__list{max-height:37dvh;border-bottom:1px solid var(--line);border-inline-end:0!important}.chose-chat__active{min-height:52dvh}.notification-popover{width:min(94vw,390px)}
}
@media(max-width:480px){.stats,.stats.five{grid-template-columns:1fr}.topbar{gap:5px}.layout-toggle,.icon-button{width:36px;height:36px}.page-head .actions{display:grid;grid-template-columns:1fr 1fr}.table-actions{min-width:150px}.toast{min-width:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* EGB UX SYSTEM PASS 1.3 — section-level professional presentation */
.content[data-route^="customer:"] .panel-body>.three-col,
.content[data-route^="project:"] .panel-body>.three-col,
.content[data-route^="team:"] .panel-body>.three-col,
.resource-detail .three-col{gap:12px}
.content[data-route^="customer:"] .panel-body>.three-col>div,
.content[data-route^="project:"] .panel-body>.three-col>div,
.resource-detail .three-col>div:not(.field){border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,var(--paper),color-mix(in srgb,var(--soft) 52%,var(--paper)));padding:13px 14px;min-height:74px}
.content[data-route^="customer:"] .panel-body>.three-col>div p,
.content[data-route^="project:"] .panel-body>.three-col>div p,
.resource-detail .three-col>div p{margin:7px 0 0;font-size:13px;font-weight:650;line-height:1.7;overflow-wrap:anywhere}
.content[data-route^="customer:"] .page-head,
.content[data-route^="project:"] .page-head,
.content[data-route^="team:"] .page-head,
.content[data-route^="treasury:"] .page-head,
.content[data-route^="expense:"] .page-head,
.content[data-route^="service:"] .page-head{padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,var(--paper),color-mix(in srgb,var(--egb-primary) 4%,var(--paper)));box-shadow:var(--egb-shadow-sm)}
.content[data-route="customers"] tbody tr td:first-child strong,
.content[data-route="users"] tbody tr td:nth-child(2),
.content[data-route="teams"] tbody tr td:nth-child(2),
.content[data-route="projects"] tbody tr td:first-child{font-weight:750;color:var(--ink)}
.content[data-route="customers"] .table-actions,
.content[data-route="users"] .table-actions,
.content[data-route="teams"] .table-actions,
.content[data-route="projects"] .table-actions{flex-wrap:nowrap}
.content[data-route="customers"] .table-wrap,
.content[data-route="users"] .table-wrap,
.content[data-route="teams"] .table-wrap,
.content[data-route="projects"] .table-wrap{box-shadow:var(--egb-shadow-sm)}
.content[data-route="teams"] .team-grid,
.content[data-route="projects"] .project-grid,
.content[data-route="myProjects"] .my-projects-grid,
.content[data-route="amProjects"] .am-project-grid{gap:16px}
.team-grid>.card,.project-card,.my-project-card,.head-task-card{border-radius:17px;border:1px solid var(--line);box-shadow:var(--egb-shadow-sm);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.team-grid>.card:hover,.project-card:hover,.my-project-card:hover,.head-task-card:hover{transform:translateY(-2px);box-shadow:var(--egb-shadow-md);border-color:color-mix(in srgb,var(--egb-primary) 28%,var(--line))}
.content[data-route="permissions"] .panel{overflow:hidden}
.content[data-route="permissions"] .panel-head{background:linear-gradient(180deg,color-mix(in srgb,var(--egb-primary) 4%,var(--paper)),var(--paper));border-bottom:1px solid var(--line)}
.content[data-route="permissions"] .role-matrix{overflow:auto;max-height:560px}
.content[data-route="permissions"] .role-matrix thead th{position:sticky;top:0;z-index:2;background:var(--paper)}
.content[data-route="permissions"] .role-matrix td:first-child,.content[data-route="permissions"] .role-matrix th:first-child{position:sticky;inset-inline-start:0;z-index:3;background:var(--paper);min-width:230px;text-align:start}
.content[data-route="permissions"] .matrix-box{accent-color:var(--egb-primary);cursor:pointer}
.content[data-route="wallet"] .stats .stat,
.content[data-route="remaining"] .stats .stat,
.content[data-route="treasuries"] .stats .stat,
.content[data-route="expenses"] .stats .stat{background:linear-gradient(160deg,var(--paper),color-mix(in srgb,var(--egb-primary) 3%,var(--paper)))}
.content[data-route="reports"] .report-section{scroll-margin-top:96px}
.content[data-route="reports"] .report-controls{position:relative}
.content[data-route="settings"] .settings-layout{align-items:start}
.content[data-route="settings"] .settings-tabs{position:sticky;top:88px}
.content[data-route="profile"] .panel{max-width:980px;margin-inline:auto}
.notification-popover{width:min(430px,calc(100vw - 24px));max-height:min(72vh,680px)}
.notification-list{max-height:min(60vh,560px);overflow:auto}
.notification-item.is-unread{border-inline-start:3px solid var(--egb-primary);background:color-mix(in srgb,var(--egb-primary) 5%,var(--paper))}
.account-menu{min-width:230px;border-radius:15px}
.quick-search-dialog .modal{width:min(680px,calc(100vw - 24px))}
.quick-search-dialog .modal-body{padding-top:12px}
.searchable-select-list{border-radius:12px;box-shadow:var(--egb-shadow-lg);border:1px solid var(--line);padding:5px;background:var(--paper)}
.searchable-select-list button{border-radius:9px;padding:9px 10px}
.filter-drawer{border-inline-start:1px solid var(--line);box-shadow:var(--egb-shadow-lg)}
.filter-drawer-head{position:sticky;top:0;z-index:2;background:var(--paper);border-bottom:1px solid var(--line)}
.filter-drawer>.actions{position:sticky;bottom:0;background:var(--paper);border-top:1px solid var(--line);padding-top:12px}
.btn:focus-visible,.icon-button:focus-visible,.tab:focus-visible,.nav-link:focus-visible,.nav-group-title:focus-visible,.settings-tab:focus-visible{outline:0;box-shadow:var(--egb-focus)}
button,[role="button"],a.btn{touch-action:manipulation}

/* English shell orientation: sidebar genuinely moves to the left via grid direction. */
.lang-en .shell:not(.sidebar-collapsed){direction:ltr}
.lang-en .main{direction:ltr}
.lang-en .actions{margin-left:auto;margin-right:0}
.lang-en .top-title{margin-right:auto;margin-left:0}
.lang-en .nav-link.active{box-shadow:inset 3px 0 var(--egb-primary)}
.lang-en .page-breadcrumb,.lang-en .panel-head,.lang-en .panel-body,.lang-en .card,.lang-en .stat,.lang-en .filter-drawer{text-align:left}
.lang-en .notification-item.is-unread{border-left:3px solid var(--egb-primary);border-right:0}
.lang-ar .notification-item.is-unread{border-right:3px solid var(--egb-primary);border-left:0}

@media(max-width:760px){
 .content[data-route^="customer:"] .page-head,.content[data-route^="project:"] .page-head,.content[data-route^="team:"] .page-head,.content[data-route^="treasury:"] .page-head,.content[data-route^="expense:"] .page-head,.content[data-route^="service:"] .page-head{padding:15px;border-radius:15px}
 .content[data-route="permissions"] .role-matrix td:first-child,.content[data-route="permissions"] .role-matrix th:first-child{min-width:180px}
 .content[data-route="customers"] .table-actions,.content[data-route="users"] .table-actions,.content[data-route="teams"] .table-actions,.content[data-route="projects"] .table-actions{flex-wrap:wrap}
 .content[data-route="settings"] .settings-tabs{position:static}
}

/* Language switch sizing — v1.3.1 */
.layout-toggle{width:auto!important;min-width:72px!important;padding-inline:10px!important;white-space:nowrap!important}
@media(max-width:480px){.layout-toggle{min-width:64px!important;padding-inline:8px!important}}

/* ============================================================
   EGB v1.3.1 — interaction, navigation and theme refinement
   Keeps existing business behavior intact; presentation only.
   ============================================================ */
:root{
  --egb-radius-xs:8px;
  --egb-radius-sm:11px;
  --egb-radius-md:14px;
  --egb-radius-lg:18px;
  --egb-shadow-float:0 18px 48px rgba(31,42,58,.14);
  --egb-shadow-hover:0 10px 28px rgba(31,42,58,.10);
  --egb-control-h:42px;
}
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}

/* Always-visible language switch. It is deliberately isolated from the
   automatic translator so switching back never removes or rewrites it. */
.layout-toggle{
  width:auto!important;min-width:112px!important;height:40px!important;
  padding:0 12px!important;display:inline-flex!important;align-items:center;
  justify-content:center;gap:8px;border-radius:999px!important;
  background:color-mix(in srgb,var(--paper) 90%,transparent)!important;
  border:1px solid var(--line)!important;color:var(--ink)!important;
  box-shadow:0 3px 12px rgba(36,46,66,.055);white-space:nowrap;
}
.layout-toggle:hover{border-color:color-mix(in srgb,var(--egb-primary) 38%,var(--line))!important;background:var(--paper)!important;box-shadow:var(--egb-shadow-sm)}
.language-toggle__icon{display:grid;place-items:center;color:var(--egb-primary);flex:none}
.language-toggle__icon .header-svg{width:18px;height:18px}
.language-toggle__label{font-size:12px;font-weight:800;line-height:1;letter-spacing:0}
.layout-toggle:focus-visible,.desktop-sidebar-toggle:focus-visible{outline:0;box-shadow:var(--egb-focus)!important}

/* Sidebar show/hide: retain the control in the header and animate the panel
   instead of removing the control with the panel. */
.shell{transition:grid-template-columns .22s ease}
@media(min-width:761px){
  .shell.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)!important}
  .shell.sidebar-collapsed>.sidebar{display:flex!important;width:0!important;min-width:0!important;padding-inline:0!important;border-inline-end:0!important;overflow:hidden!important;opacity:0;pointer-events:none;transform:translateX(calc(var(--dir-factor,1) * 8px));transition:opacity .15s ease,transform .2s ease,width .22s ease}
  .shell:not(.sidebar-collapsed)>.sidebar{opacity:1;transform:none;transition:opacity .18s ease,transform .2s ease,width .22s ease}
  .desktop-sidebar-toggle{display:inline-flex!important;position:relative;z-index:3}
}
.lang-ar{--dir-factor:1}.lang-en{--dir-factor:-1}
.desktop-sidebar-toggle{background:color-mix(in srgb,var(--paper) 88%,transparent)!important;border:1px solid transparent!important}
.desktop-sidebar-toggle:hover{border-color:var(--line)!important;background:var(--paper)!important}
.desktop-sidebar-toggle[aria-pressed="true"]{color:var(--egb-primary)!important;border-color:color-mix(in srgb,var(--egb-primary) 24%,var(--line))!important;background:var(--egb-primary-soft)!important}

/* Main navigation: cleaner hierarchy, distinct item icons, durable submenu state. */
.sidebar{background:linear-gradient(180deg,color-mix(in srgb,var(--paper) 98%,#eef4f8),color-mix(in srgb,var(--paper) 95%,#f8fafc));box-shadow:inset -1px 0 0 color-mix(in srgb,var(--line) 82%,transparent)}
.lang-en .sidebar{box-shadow:inset 1px 0 0 color-mix(in srgb,var(--line) 82%,transparent)}
.nav-caption{margin-top:8px;padding-inline:10px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.nav-group{margin:4px 0;padding:3px;border:1px solid transparent}
.nav-group.open{border-color:color-mix(in srgb,var(--tone) 11%,transparent);background:linear-gradient(180deg,color-mix(in srgb,var(--tone) 4.5%,transparent),transparent)}
.nav-group-title{min-height:44px;padding-inline:10px;border-radius:11px;gap:10px}
.nav-group-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-group-title .nav-icon{width:30px;height:30px;border-radius:9px;background:color-mix(in srgb,var(--tone) 10%,var(--paper));display:grid;place-items:center;flex:none}
.nav-group-title .nav-icon svg{width:16px;height:16px}
.nav-group-title:hover .nav-icon,.nav-group.open .nav-group-title .nav-icon{background:color-mix(in srgb,var(--tone) 16%,var(--paper));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 14%,transparent)}
.nav-items{margin-inline-start:14px;border-inline-start:1px solid color-mix(in srgb,var(--tone) 17%,var(--line));padding-inline-start:7px!important}
.lang-en .nav-items{margin-left:14px;margin-right:0!important;padding-left:7px!important;border-left:1px solid color-mix(in srgb,var(--tone) 17%,var(--line));border-right:0}
.nav-link.sub{min-height:39px;padding-inline:8px!important;border-radius:10px;gap:9px;font-weight:650}
.nav-link.sub .sub-icon{width:27px;height:27px;border-radius:8px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 11%,transparent)}
.nav-link.sub .sub-icon svg{width:14px;height:14px}
.nav-link.sub:hover{background:color-mix(in srgb,var(--tone) 7%,var(--paper));box-shadow:0 4px 12px rgba(31,42,58,.035)}
.nav-link.sub.active{background:color-mix(in srgb,var(--tone) 10%,var(--paper));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 14%,transparent)}
.nav-link.sub.active .sub-icon{background:var(--tone);color:#fff;box-shadow:0 4px 10px color-mix(in srgb,var(--tone) 24%,transparent)}
.nav-link.sub.active:before{inset-block:9px;width:3px}
.sidebar-help{box-shadow:0 5px 16px rgba(31,42,58,.035)}
.sidebar-help:hover{border-color:color-mix(in srgb,var(--egb-primary) 24%,var(--line));color:var(--egb-primary);background:var(--egb-primary-soft)}

/* Header tools */
.topbar{gap:8px!important;padding-inline:20px!important}
.topbar>.top-title{flex:1;min-width:4px}
.icon-button{position:relative;overflow:visible;transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease}
.icon-button:hover{transform:translateY(-1px);background:var(--paper)!important;border-color:var(--line)!important;box-shadow:0 5px 14px rgba(31,42,58,.07)}
.icon-button:active{transform:scale(.96)}
.header-svg{transition:transform .16s ease,color .16s ease}
.icon-button:hover .header-svg{transform:scale(1.06)}
.header-unread{box-shadow:0 0 0 2px var(--paper)}
.search-shortcut{border-radius:999px!important;background:color-mix(in srgb,var(--paper) 92%,transparent)!important}

/* Buttons: consistent action affordance across every screen. */
.btn{position:relative;gap:8px!important;isolation:isolate;overflow:hidden;font-weight:750}
.btn:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 0 38%,rgba(255,255,255,.22) 50%,transparent 62%);transform:translateX(-130%);transition:transform .38s ease;pointer-events:none;z-index:-1}
.btn:hover:not(:disabled):before{transform:translateX(130%)}
.btn-action-icon{width:15px;height:15px;flex:none;pointer-events:none}
.btn.small .btn-action-icon{width:13px;height:13px}
.btn.primary .btn-action-icon{filter:none}
.btn.danger:hover:not(:disabled){border-color:color-mix(in srgb,#dc3545 42%,var(--line));background:color-mix(in srgb,#dc3545 8%,var(--paper));color:#c52e3d}

/* Forms and native dropdowns */
.input,.select,.textarea{min-height:var(--egb-control-h);border-radius:12px!important;background:color-mix(in srgb,var(--paper) 97%,var(--egb-bg));box-shadow:inset 0 1px 1px rgba(31,42,58,.018)}
.input:hover,.select:hover,.textarea:hover{background:var(--paper);border-color:var(--egb-border-strong)}
.select{cursor:pointer;padding-inline-end:34px;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;appearance:none;-webkit-appearance:none}
html[dir="rtl"] .select{background-position:18px 50%,13px 50%;padding-right:12px;padding-left:34px}
.field label{margin-bottom:1px;line-height:1.45}
.checkline{min-height:38px;padding:7px 9px;border-radius:10px;transition:background .14s ease}
.checkline:hover{background:color-mix(in srgb,var(--egb-primary) 4%,transparent)}
.checkline input{width:16px;height:16px}

/* Searchable dropdowns / popovers */
.searchable-select{position:relative}
.searchable-select-list{z-index:80;max-height:290px;overflow:auto;margin-top:6px;border-radius:14px!important;padding:6px!important;background:color-mix(in srgb,var(--paper) 98%,transparent)!important;backdrop-filter:blur(16px);box-shadow:var(--egb-shadow-float)!important}
.searchable-select-list button{width:100%;min-height:38px;border:0;background:transparent;color:var(--ink);display:flex;align-items:center;text-align:start;padding:8px 10px;border-radius:9px;transition:background .12s,color .12s}
.searchable-select-list button:hover,.searchable-select-list button.active,.searchable-select-list button[aria-selected="true"]{background:var(--egb-primary-soft);color:var(--egb-primary)}
.searchable-select-empty{padding:16px;text-align:center;color:var(--muted);font-size:12px}

/* Modals, drawers and popovers */
.modal-backdrop,.archive-confirm-backdrop,.project-assistant-backdrop,.my-tasks-backdrop,.smart-proposal-backdrop,.notification-backdrop,.assistant-overlay-backdrop{backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.modal{border:1px solid color-mix(in srgb,var(--line) 88%,transparent);border-radius:20px!important;box-shadow:0 28px 90px rgba(16,24,40,.24)!important;overflow:hidden!important}
.modal-head{position:sticky;top:0;z-index:3;padding:17px 20px!important;background:linear-gradient(180deg,color-mix(in srgb,var(--paper) 98%,var(--egb-primary-soft)),var(--paper));border-bottom:1px solid var(--line)}
.modal-head h2{font-size:17px!important;font-weight:850;letter-spacing:-.01em}
.modal-head .icon-button{margin-inline-start:auto!important;margin-right:0!important}
.modal-body{padding:20px!important;overflow:auto}
.modal-foot{position:sticky;bottom:0;z-index:3;padding:13px 20px!important;background:color-mix(in srgb,var(--paper) 96%,transparent);backdrop-filter:blur(12px);border-top:1px solid var(--line);justify-content:flex-end!important}
.lang-en .modal-foot{justify-content:flex-end!important}
.filter-drawer,.project-history-drawer,.assistant-overlay{background:var(--paper);border-color:var(--line);box-shadow:var(--egb-shadow-float)!important}
.notification-popover,.account-menu{border:1px solid var(--line)!important;box-shadow:var(--egb-shadow-float)!important;backdrop-filter:blur(16px)}
.notification-item{transition:background .13s ease,transform .13s ease}
.notification-item:hover{background:color-mix(in srgb,var(--egb-primary) 4%,var(--paper));transform:translateX(-1px)}
.lang-en .notification-item:hover{transform:translateX(1px)}

/* Tables / cards / sections */
.table-wrap{border-radius:18px!important;box-shadow:0 8px 26px rgba(31,42,58,.045)!important}
th{font-weight:800;color:color-mix(in srgb,var(--ink) 78%,var(--muted));backdrop-filter:blur(8px)}
tbody tr:hover{background:color-mix(in srgb,var(--egb-primary) 4.2%,var(--paper))!important}
.card,.panel{border-radius:18px!important}
.panel-head{background:linear-gradient(180deg,color-mix(in srgb,var(--paper) 98%,var(--egb-primary-soft)),var(--paper));border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent)}
.badge{border-radius:999px;font-weight:750}
.empty{border-radius:14px}

/* Tabs and wizard */
.tabs{gap:5px;padding:4px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--paper) 92%,var(--egb-bg));width:max-content;max-width:100%;overflow:auto}
.tab{border:0!important;border-radius:9px!important;min-height:36px;padding-inline:12px!important;white-space:nowrap}
.tab.active{box-shadow:0 3px 10px rgba(31,42,58,.06)}
.tab.active:after{display:none!important}
.wizard-steps{gap:8px!important}
.wizard-step{border:1px solid var(--line)!important;border-radius:12px!important;padding:10px 12px!important;background:var(--paper);transition:border-color .14s,background .14s,transform .14s}
.wizard-step.active{transform:translateY(-1px);box-shadow:0 5px 16px rgba(242,82,33,.08)}

/* Detail pages read as intentional workspaces, not plain data dumps. */
.content[data-route^="customer:"],.content[data-route^="project:"],.content[data-route^="team:"],.content[data-route^="treasury:"],.content[data-route^="expense:"],.content[data-route^="service:"]{--detail-accent:var(--egb-primary)}
.content[data-route^="customer:"] .page-head,.content[data-route^="project:"] .page-head,.content[data-route^="team:"] .page-head,.content[data-route^="treasury:"] .page-head,.content[data-route^="expense:"] .page-head,.content[data-route^="service:"] .page-head{padding:18px 20px;border:1px solid var(--line);border-radius:19px;background:linear-gradient(135deg,var(--paper),color-mix(in srgb,var(--detail-accent) 4%,var(--paper)));box-shadow:0 8px 28px rgba(31,42,58,.055)}
.content[data-route^="customer:"] .page-head:before,.content[data-route^="project:"] .page-head:before,.content[data-route^="team:"] .page-head:before{content:"";width:5px;align-self:stretch;border-radius:999px;background:linear-gradient(180deg,var(--egb-primary),color-mix(in srgb,var(--egb-primary) 48%,#ffb58f));flex:none}

/* Dark theme refinement */
.dark .sidebar{background:linear-gradient(180deg,#151b24,#121821)}
.dark .nav-group.open{background:color-mix(in srgb,var(--tone) 8%,transparent);border-color:color-mix(in srgb,var(--tone) 18%,transparent)}
.dark .nav-group-title .nav-icon,.dark .sub-icon{background:color-mix(in srgb,var(--tone) 13%,#171d27)}
.dark .layout-toggle,.dark .desktop-sidebar-toggle{background:color-mix(in srgb,var(--paper) 92%,transparent)!important}
.dark .input,.dark .select,.dark .textarea{background:color-mix(in srgb,var(--paper) 94%,#10151c)}
.dark .panel-head,.dark .modal-head{background:linear-gradient(180deg,color-mix(in srgb,var(--paper) 96%,var(--egb-primary-soft)),var(--paper))}
.dark .searchable-select-list{background:color-mix(in srgb,var(--paper) 98%,transparent)!important}

/* Responsive header keeps the globe and sidebar controls available. */
@media(max-width:980px){
  .layout-toggle{min-width:42px!important;width:42px!important;padding:0!important}
  .language-toggle__label{display:none}
  .search-shortcut{min-width:44px!important;width:44px!important;padding:0!important;justify-content:center!important}
  .search-shortcut span,.search-shortcut kbd{display:none!important}
}
@media(max-width:760px){
  .desktop-sidebar-toggle{display:none!important}
  .layout-toggle{display:inline-flex!important;min-width:40px!important;width:40px!important;height:40px!important}
  .topbar{padding-inline:10px!important;gap:5px!important}
  .modal-foot{display:grid!important;grid-template-columns:1fr 1fr}
  .modal-foot .btn{width:100%}
  .nav-items{margin-inline-start:10px}
}
@media(max-width:480px){
  .layout-toggle{min-width:38px!important;width:38px!important;height:38px!important;padding:0!important}
  .icon-button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  .content{padding-inline:10px!important}
  .page-head .actions{gap:6px}
  .page-head .actions .btn{min-width:0}
}
.login-language-toggle{width:auto!important;min-width:118px!important;padding:0 13px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:8px!important;white-space:nowrap}
.login-language-toggle .language-toggle__icon{color:currentColor}
.login-language-toggle__label{font-size:12px;font-weight:800}
@media(max-width:480px){.login-language-toggle{min-width:42px!important;width:42px!important;padding:0!important}.login-language-toggle__label{display:none}}

/* ============================================================
   EGB v1.3.2 — full theme system + header/notification overhaul
   ============================================================ */
body[data-theme-preset="aurora"]{--theme-primary:#5b5cf0;--theme-primary-2:#8b5cf6;--theme-accent:#ff6b6b;--theme-bg:#f6f7ff;--theme-surface:#ffffff;--theme-surface-soft:#f0f1ff;--theme-border:#e3e5f5;--theme-title-gradient:linear-gradient(100deg,#4f46e5 0%,#7c3aed 48%,#e85d75 100%);--theme-sidebar:linear-gradient(180deg,#171629 0%,#211b3e 55%,#151525 100%)}
body[data-theme-preset="ocean"]{--theme-primary:#0f6fff;--theme-primary-2:#06b6d4;--theme-accent:#14b8a6;--theme-bg:#f3f9ff;--theme-surface:#ffffff;--theme-surface-soft:#eaf7ff;--theme-border:#d8e9f6;--theme-title-gradient:linear-gradient(100deg,#0f6fff 0%,#0891b2 52%,#0f9f82 100%);--theme-sidebar:linear-gradient(180deg,#0c2337 0%,#0b3650 54%,#0a2536 100%)}
body[data-theme-preset="executive"]{--theme-primary:#16324f;--theme-primary-2:#355c7d;--theme-accent:#d39b37;--theme-bg:#f7f7f4;--theme-surface:#ffffff;--theme-surface-soft:#f4f0e7;--theme-border:#e7e1d5;--theme-title-gradient:linear-gradient(100deg,#142f4c 0%,#355c7d 55%,#b67c20 100%);--theme-sidebar:linear-gradient(180deg,#0e1d2c 0%,#172c40 55%,#0b1722 100%)}
body[data-theme-preset="emerald"]{--theme-primary:#087f5b;--theme-primary-2:#12a77c;--theme-accent:#38bfa0;--theme-bg:#f3faf7;--theme-surface:#ffffff;--theme-surface-soft:#e9f7f1;--theme-border:#d8ece3;--theme-title-gradient:linear-gradient(100deg,#087f5b 0%,#0f9b78 54%,#24a78c 100%);--theme-sidebar:linear-gradient(180deg,#0e2a25 0%,#0d3c31 55%,#0b241f 100%)}
body[data-theme-preset="rosewood"]{--theme-primary:#8b1e3f;--theme-primary-2:#b13555;--theme-accent:#e58f65;--theme-bg:#fbf6f5;--theme-surface:#ffffff;--theme-surface-soft:#f8ebed;--theme-border:#ecdfe2;--theme-title-gradient:linear-gradient(100deg,#7d1836 0%,#b13555 52%,#d97655 100%);--theme-sidebar:linear-gradient(180deg,#2b1720 0%,#44202d 55%,#25131a 100%)}
body[data-theme-preset]{
 --red:var(--theme-primary);--red2:var(--theme-primary-2);--orig-primary:var(--theme-primary);--color-primary:var(--theme-primary);--egb-primary:var(--theme-primary);--egb-primary-soft:color-mix(in srgb,var(--theme-primary) 10%,transparent);
 --egb-bg:var(--theme-bg);--egb-surface:var(--theme-surface);--egb-surface-soft:var(--theme-surface-soft);--egb-border:var(--theme-border);--egb-border-strong:color-mix(in srgb,var(--theme-primary) 18%,var(--theme-border));
 --paper:var(--theme-surface);--soft:var(--theme-bg);--line:var(--theme-border);--color-primary-content:#fff;--color-base-100:var(--theme-surface);--color-base-200:var(--theme-surface-soft);
 background:var(--theme-bg);color:var(--ink)
}
body[data-theme-preset].dark{--theme-bg:#0d1118;--theme-surface:#151b24;--theme-surface-soft:#1b2330;--theme-border:#2a3443;--egb-text:#eef3f8;--egb-muted:#9ba9bb;--paper:var(--theme-surface);--soft:var(--theme-bg);--line:var(--theme-border);--ink:#eef3f8;--muted:#9ba9bb;--color-base-100:var(--theme-surface);--color-base-200:var(--theme-surface-soft);background:var(--theme-bg)}
body.lang-ar{font-family:Tajawal,Cairo,'Noto Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif}
body.lang-en{font-family:Inter,'Segoe UI',Roboto,Arial,sans-serif;letter-spacing:.002em}

/* Entire shell identity follows the selected theme. */
body[data-theme-preset] .sidebar{background:var(--theme-sidebar)!important;border-inline-end:1px solid color-mix(in srgb,var(--theme-primary) 25%,transparent)!important;color:#f7f8fb!important;box-shadow:8px 0 28px rgba(15,23,42,.06)!important}
body[data-theme-preset] .brand{color:#fff!important;border-bottom-color:rgba(255,255,255,.08)!important}
body[data-theme-preset] .brand-mark{background:linear-gradient(135deg,var(--theme-primary),var(--theme-accent))!important;box-shadow:0 8px 22px color-mix(in srgb,var(--theme-primary) 35%,transparent)!important}
body[data-theme-preset] .nav-caption{color:rgba(255,255,255,.46)!important}
body[data-theme-preset] .nav-group{--tone:var(--theme-primary-2)!important}
body[data-theme-preset] .nav-group-title,body[data-theme-preset] .nav-link{color:rgba(255,255,255,.79)!important}
body[data-theme-preset] .nav-group-title:hover,body[data-theme-preset] .nav-link:hover{color:#fff!important;background:rgba(255,255,255,.065)!important}
body[data-theme-preset] .nav-group.open{background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018))!important;border-color:rgba(255,255,255,.07)!important}
body[data-theme-preset] .nav-group-title .nav-icon{background:rgba(255,255,255,.075)!important;color:color-mix(in srgb,var(--theme-accent) 74%,#fff)!important}
body[data-theme-preset] .nav-items{background:rgba(255,255,255,.025);border-inline-start-color:rgba(255,255,255,.10)!important;border-radius:0 0 12px 12px}
body[data-theme-preset] .nav-link.sub .sub-icon{background:rgba(255,255,255,.045)!important;color:rgba(255,255,255,.74)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)!important}
body[data-theme-preset] .nav-link.sub.active{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-primary) 44%,transparent),rgba(255,255,255,.055))!important;color:#fff!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--theme-primary) 36%,rgba(255,255,255,.08))!important}
body[data-theme-preset] .nav-link.sub.active .sub-icon{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;color:#fff!important}
body[data-theme-preset] .sidebar-workshop{background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.035))!important;border-color:rgba(255,255,255,.09)!important;box-shadow:inset 0 1px rgba(255,255,255,.05)!important}
body[data-theme-preset] .sidebar-help{background:rgba(255,255,255,.045)!important;color:rgba(255,255,255,.74)!important;border-color:rgba(255,255,255,.09)!important}

/* Header: stable layout, dedicated home and theme controls. */
body[data-theme-preset] .topbar{background:color-mix(in srgb,var(--paper) 88%,transparent)!important;border-bottom-color:color-mix(in srgb,var(--theme-primary) 10%,var(--line))!important;backdrop-filter:blur(18px);box-shadow:0 8px 30px rgba(31,42,58,.055)!important}
.header-home{color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 7%,var(--paper))!important;border-color:color-mix(in srgb,var(--theme-primary) 12%,var(--line))!important}
.header-home:hover{background:color-mix(in srgb,var(--theme-primary) 12%,var(--paper))!important}
.search-shortcut{min-width:104px!important;gap:7px!important;padding-inline:13px!important}
.search-shortcut kbd{display:none!important}
.search-shortcut .header-svg--search{color:var(--theme-primary)!important}
.theme-anchor,.notification-anchor,.account-anchor{position:relative!important}
.theme-trigger{color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 6%,var(--paper))!important}
.theme-backdrop{position:fixed;inset:0;z-index:42;background:transparent}
.theme-popover{position:absolute;top:calc(100% + 12px);inset-inline-end:0;width:min(420px,calc(100vw - 28px));z-index:48;background:color-mix(in srgb,var(--paper) 97%,transparent);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.20);padding:14px;backdrop-filter:blur(20px);color:var(--ink)}
.theme-popover__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 3px 12px;border-bottom:1px solid var(--line)}
.theme-popover__head strong{display:block;font-size:14px}.theme-popover__head small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.theme-close{width:30px;height:30px;border:0;border-radius:9px;background:var(--soft);color:var(--ink);font-size:18px}
.theme-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.theme-mode-switch button{height:42px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);display:flex;align-items:center;justify-content:center;gap:7px;font-weight:750}.theme-mode-switch button.active{color:var(--theme-primary);border-color:color-mix(in srgb,var(--theme-primary) 38%,var(--line));background:color-mix(in srgb,var(--theme-primary) 7%,var(--paper));box-shadow:0 5px 16px color-mix(in srgb,var(--theme-primary) 10%,transparent)}
.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.theme-card{min-height:94px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);padding:10px;text-align:start;display:flex;flex-direction:column;gap:4px;transition:transform .14s,border-color .14s,box-shadow .14s}.theme-card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--theme-primary) 32%,var(--line));box-shadow:0 8px 20px rgba(15,23,42,.07)}.theme-card.active{border-color:var(--theme-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-primary) 10%,transparent)}.theme-card strong{font-size:12px}.theme-card small{font-size:9px;color:var(--muted)}.theme-swatches{display:flex;height:22px;border-radius:8px;overflow:hidden;margin-bottom:3px}.theme-swatches i{flex:1;background:var(--swatch)}

/* Notifications stay a compact header popover; no full white overlay. */
.notification-backdrop{position:fixed!important;inset:0!important;z-index:40!important;background:transparent!important;backdrop-filter:none!important}
.topbar:has(.notification-popover){z-index:45!important}
.notification-anchor{position:relative!important}
.notification-popover{position:absolute!important;top:calc(100% + 12px)!important;left:auto!important;right:auto!important;inset-inline-end:0!important;transform:none!important;width:min(390px,calc(100vw - 28px))!important;height:auto!important;max-height:min(66vh,560px)!important;z-index:47!important;border-radius:18px!important;background:color-mix(in srgb,var(--paper) 98%,transparent)!important;box-shadow:0 24px 70px rgba(15,23,42,.20)!important;backdrop-filter:blur(20px)!important}
.notification-popover-head{background:linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 8%,var(--paper)),var(--paper));padding:13px 14px!important}.notification-popover-head h3{margin:0;font-size:14px;color:var(--ink)}.notification-read-all{border:0;border-radius:9px;background:color-mix(in srgb,var(--theme-primary) 9%,var(--paper));color:var(--theme-primary);padding:6px 9px;font-weight:750}
.notification-list{max-height:min(56vh,470px)!important;overflow:auto}.notification-item{padding:13px 14px!important}.notification-detail{background:color-mix(in srgb,var(--theme-primary) 4%,var(--paper));border-color:color-mix(in srgb,var(--theme-primary) 11%,var(--line))!important}.notification-detail:hover{background:color-mix(in srgb,var(--theme-primary) 8%,var(--paper))}

/* Main titles and section headings become deliberate, theme-aware focal points. */
.page-head h1,.dashboard-hero h1,.new-project-hero h1,.settings-hero h1,.remaining-hero h1,.help-header h1,.am-hero h1,.project-detail-hero h1{background:var(--theme-title-gradient)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;font-weight:900!important;letter-spacing:-.025em!important}
.dark .page-head h1,.dark .dashboard-hero h1,.dark .new-project-hero h1,.dark .settings-hero h1,.dark .remaining-hero h1,.dark .help-header h1,.dark .am-hero h1{background:linear-gradient(100deg,color-mix(in srgb,var(--theme-primary) 70%,#fff),color-mix(in srgb,var(--theme-accent) 74%,#fff))!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important}
.panel-head h2,.table-title strong,.card h3{color:color-mix(in srgb,var(--ink) 88%,var(--theme-primary));font-weight:850}

/* Popups, nested menus, dropdowns and drawers use the theme, not fixed legacy colors. */
.modal,.archive-confirm-box,.project-assistant-box,.my-tasks-box,.smart-proposal-box,.my-detail-box,.pipeline-top-sheet,.financial-cancellation-box,.account-menu,.notification-popover,.theme-popover,.searchable-select-list,.filter-drawer,.project-history-drawer,.assistant-overlay,.chose-chat{background:color-mix(in srgb,var(--paper) 98%,var(--theme-surface-soft))!important;border-color:color-mix(in srgb,var(--theme-primary) 10%,var(--line))!important;color:var(--ink)!important}
.modal-head,.project-history-head,.assistant-overlay__head,.chose-chat__head,.filter-drawer-head{background:linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 6%,var(--paper)),color-mix(in srgb,var(--theme-accent) 3%,var(--paper)))!important}
.searchable-select-list button:hover,.searchable-select-list button.active,.searchable-select-list button[aria-selected="true"],.account-menu button:hover,.chose-chat__conversation:hover{background:color-mix(in srgb,var(--theme-primary) 8%,var(--paper))!important;color:var(--theme-primary)!important}
.select option{background:var(--paper);color:var(--ink)}
.input,.select,.textarea{border-color:color-mix(in srgb,var(--theme-primary) 8%,var(--line))!important}.input:focus,.select:focus,.textarea:focus{border-color:color-mix(in srgb,var(--theme-primary) 58%,var(--line))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 11%,transparent)!important}
.btn.primary{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;border-color:transparent!important;box-shadow:0 8px 22px color-mix(in srgb,var(--theme-primary) 22%,transparent)!important}.btn.primary:hover{filter:brightness(1.04);box-shadow:0 11px 28px color-mix(in srgb,var(--theme-primary) 28%,transparent)!important}
.tab.active,.settings-tab.active{color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 9%,var(--paper))!important}.matrix-box,.checkline input{accent-color:var(--theme-primary)!important}
.stat-icon,.workshop-orb,.khulasa-logo,.project-assistant-avatar,.project-assistant-message span,.assistant-msg span,.khulasa-line span{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;color:#fff!important}
.header-svg--notifications,.header-svg--chat,.header-svg--profile{color:color-mix(in srgb,var(--theme-primary) 74%,var(--ink))}

/* NOVA assistant visual identity. */
.khulasa-assistant-fab{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;box-shadow:0 12px 30px color-mix(in srgb,var(--theme-primary) 30%,transparent)!important}
.assistant-overlay__head{border-bottom-color:color-mix(in srgb,var(--theme-primary) 10%,var(--line))!important}.assistant-overlay__head>div:first-child small{color:var(--theme-primary)!important}.zattar-chip{border-color:color-mix(in srgb,var(--theme-primary) 24%,var(--line))!important;color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 4%,var(--paper))!important}.assistant-msg p{background:color-mix(in srgb,var(--theme-primary) 4%,var(--paper))!important;border-color:color-mix(in srgb,var(--theme-primary) 10%,var(--line))!important}

@media(max-width:760px){
 .header-home{display:inline-flex}.theme-popover{position:fixed;top:68px;left:12px;right:12px;inset-inline-end:auto;width:auto;max-height:calc(100dvh - 86px);overflow:auto}.theme-grid{grid-template-columns:1fr 1fr}.notification-popover{position:fixed!important;top:66px!important;left:12px!important;right:12px!important;inset-inline-end:auto!important;width:auto!important;max-height:calc(100dvh - 82px)!important}.notification-list{max-height:calc(100dvh - 160px)!important}
}
@media(max-width:420px){.theme-grid{grid-template-columns:1fr}.theme-card{min-height:80px}.search-shortcut{width:40px!important;min-width:40px!important;padding:0!important}.search-shortcut span{display:none!important}}
@media(max-width:760px){.desktop-sidebar-toggle{display:inline-flex!important}.mobile-menu{display:none!important}}

/* ============================================================
   EGB v1.3.3 — stable theme runtime + expressive theme identities
   Theme switches only variables/icon paths in-place; no full page render.
   ============================================================ */
html[data-theme-preset],body[data-theme-preset]{color-scheme:light}
body[data-theme-preset].dark{color-scheme:dark}
.theme-popover{contain:layout paint;isolation:isolate;backdrop-filter:none!important;background:var(--paper)!important}
.theme-current{display:flex;align-items:center;gap:10px;margin:12px 0 4px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--theme-primary) 13%,var(--line));border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 7%,var(--paper)),color-mix(in srgb,var(--theme-accent) 4%,var(--paper)))}
.theme-current>span{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2));color:#fff;box-shadow:0 7px 16px color-mix(in srgb,var(--theme-primary) 18%,transparent)}
.theme-current small,.theme-current strong{display:block}.theme-current small{font-size:9px;color:var(--muted)}.theme-current strong{font-size:12px;margin-top:1px}
.theme-card{position:relative;min-height:132px!important;padding:10px!important;overflow:hidden;justify-content:flex-start!important;cursor:pointer}
.theme-card__copy{display:block;position:relative;z-index:2}.theme-card__copy strong,.theme-card__copy small{display:block}.theme-card__copy small{line-height:1.45;margin-top:2px}
.theme-swatches{position:absolute!important;inset-inline:10px;bottom:9px;height:5px!important;border-radius:999px!important;margin:0!important;z-index:3;gap:2px;background:transparent!important}.theme-swatches i{border-radius:999px}
.theme-mini{height:54px;display:grid;grid-template-columns:18px 1fr;gap:5px;border:1px solid color-mix(in srgb,var(--theme-primary) 11%,var(--line));border-radius:10px;padding:5px;margin-bottom:7px;background:color-mix(in srgb,var(--theme-primary) 3%,var(--paper));position:relative;overflow:hidden}
.theme-mini__rail{display:grid;align-content:start;gap:3px;padding:3px;border-radius:7px;background:linear-gradient(180deg,color-mix(in srgb,var(--theme-primary) 88%,#111827),color-mix(in srgb,var(--theme-primary-2) 75%,#111827))}.theme-mini__rail b{height:3px;border-radius:99px;background:#fff8}.theme-mini__rail b:nth-child(2){width:70%}.theme-mini__rail b:nth-child(3){width:45%}
.theme-mini__canvas{display:grid;grid-template-columns:1fr 1fr;gap:3px;align-content:center}.theme-mini__canvas b{height:14px;border-radius:5px;background:color-mix(in srgb,var(--theme-primary) 10%,var(--paper));border:1px solid color-mix(in srgb,var(--theme-primary) 10%,var(--line))}.theme-mini__canvas b:first-child{grid-column:1/-1;height:8px}.theme-mini__glyph{position:absolute;inset-inline-end:5px;top:5px;width:18px;height:18px;display:grid;place-items:center;border-radius:6px;background:var(--paper);color:var(--theme-primary);box-shadow:0 3px 10px #0001}.theme-mini__glyph svg{width:12px;height:12px}
.theme-card[data-theme-preset="executive"] .theme-mini,.theme-card[data-theme-preset="executive"] .theme-mini__rail,.theme-card[data-theme-preset="executive"] .theme-mini__canvas b{border-radius:3px!important}
.theme-card[data-theme-preset="ocean"] .theme-mini{border-radius:16px}.theme-card[data-theme-preset="ocean"] .theme-mini__canvas b{border-radius:999px}
.theme-card[data-theme-preset="emerald"] .theme-mini__canvas b:nth-child(2){transform:translateY(-2px)}
.theme-card[data-theme-preset="rosewood"] .theme-mini__glyph{transform:rotate(45deg);border-radius:4px}.theme-card[data-theme-preset="rosewood"] .theme-mini__glyph svg{transform:rotate(-45deg)}

/* Theme identities affect geometry, icon language and information density. */
body[data-theme-preset="aurora"]{--theme-radius:18px;--theme-radius-sm:11px;--theme-shadow:0 12px 36px rgba(76,68,168,.09);--theme-heading:#3e3f79}
body[data-theme-preset="ocean"]{--theme-radius:22px;--theme-radius-sm:999px;--theme-shadow:0 14px 38px rgba(13,112,172,.09);--theme-heading:#0b5879}
body[data-theme-preset="executive"]{--theme-radius:8px;--theme-radius-sm:5px;--theme-shadow:0 8px 22px rgba(20,47,76,.08);--theme-heading:#173550}
body[data-theme-preset="emerald"]{--theme-radius:16px;--theme-radius-sm:9px;--theme-shadow:0 12px 30px rgba(8,127,91,.08);--theme-heading:#09664d}
body[data-theme-preset="rosewood"]{--theme-radius:14px;--theme-radius-sm:8px;--theme-shadow:0 14px 36px rgba(125,24,54,.09);--theme-heading:#751b37}
body[data-theme-preset] .card,body[data-theme-preset] .panel,body[data-theme-preset] .table-wrap,body[data-theme-preset] .modal,body[data-theme-preset] .filter-drawer,body[data-theme-preset] .project-history-drawer{border-radius:var(--theme-radius)!important;box-shadow:var(--theme-shadow)}
body[data-theme-preset] .btn,body[data-theme-preset] .input,body[data-theme-preset] .select,body[data-theme-preset] .textarea,body[data-theme-preset] .icon-button{border-radius:var(--theme-radius-sm)!important}
body[data-theme-preset] .header-svg,body[data-theme-preset] .btn-action-icon,body[data-theme-preset] [data-nav-icon]{transition:none!important}
body[data-icon-pack="soft"] .header-svg,body[data-icon-pack="soft"] .btn-action-icon,body[data-icon-pack="soft"] [data-nav-icon]{stroke-width:1.8}
body[data-icon-pack="flow"] .header-svg,body[data-icon-pack="flow"] .btn-action-icon,body[data-icon-pack="flow"] [data-nav-icon]{stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
body[data-icon-pack="precision"] .header-svg,body[data-icon-pack="precision"] .btn-action-icon,body[data-icon-pack="precision"] [data-nav-icon]{stroke-width:1.75;stroke-linecap:square;stroke-linejoin:miter}
body[data-icon-pack="organic"] .header-svg,body[data-icon-pack="organic"] .btn-action-icon,body[data-icon-pack="organic"] [data-nav-icon]{stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
body[data-icon-pack="editorial"] .header-svg,body[data-icon-pack="editorial"] .btn-action-icon,body[data-icon-pack="editorial"] [data-nav-icon]{stroke-width:1.85;stroke-linecap:round;stroke-linejoin:bevel}

/* Aurora: layered, rounded, creative. */
body[data-theme-preset="aurora"] .panel-head{background:linear-gradient(120deg,color-mix(in srgb,var(--theme-primary) 7%,var(--paper)),color-mix(in srgb,var(--theme-accent) 3%,var(--paper)))}
body[data-theme-preset="aurora"] .stat-icon,body[data-theme-preset="aurora"] .sub-icon{border-radius:12px!important}
/* Ocean: flowing pills, airy surfaces. */
body[data-theme-preset="ocean"] .topbar{background:linear-gradient(90deg,color-mix(in srgb,#fff 92%,var(--theme-primary)),color-mix(in srgb,#fff 95%,var(--theme-accent)))!important}
body[data-theme-preset="ocean"] .nav-link.sub.active{border-radius:999px!important;margin-inline:5px}
body[data-theme-preset="ocean"] .tab{border-radius:999px!important;padding-inline:16px}
body[data-theme-preset="ocean"] .card{background:linear-gradient(155deg,var(--paper),color-mix(in srgb,var(--theme-primary) 2.5%,var(--paper)))!important}
/* Executive: crisp grid, restrained luxury. */
body[data-theme-preset="executive"] .topbar,body[data-theme-preset="executive"] .panel-head{backdrop-filter:none!important}
body[data-theme-preset="executive"] .panel,body[data-theme-preset="executive"] .card,body[data-theme-preset="executive"] .table-wrap{border-width:1px!important;box-shadow:0 1px 0 color-mix(in srgb,var(--theme-accent) 15%,transparent),0 8px 18px #1022350a!important}
body[data-theme-preset="executive"] .page-head h1,body[data-theme-preset="executive"] .dashboard-hero h1{letter-spacing:.01em!important;text-transform:none}
body[data-theme-preset="executive"] .nav-group-title .nav-icon,body[data-theme-preset="executive"] .nav-link.sub .sub-icon{border-radius:4px!important}
body[data-theme-preset="executive"] .btn.primary{background:linear-gradient(135deg,var(--theme-primary),#294a69)!important;box-shadow:inset 0 -2px color-mix(in srgb,var(--theme-accent) 32%,transparent)!important}
/* Emerald: structured cards with living accent rails. */
body[data-theme-preset="emerald"] .panel,body[data-theme-preset="emerald"] .card{position:relative;overflow:hidden}
body[data-theme-preset="emerald"] .panel:before,body[data-theme-preset="emerald"] .card:before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:linear-gradient(var(--theme-primary),var(--theme-accent));opacity:.6}
body[data-theme-preset="emerald"] .btn.primary{background:linear-gradient(135deg,#087f5b,#12a77c 62%,#23b892)!important}
/* Rosewood: editorial details and diamond icon containers. */
body[data-theme-preset="rosewood"] .page-head h1,body[data-theme-preset="rosewood"] .dashboard-hero h1,body[data-theme-preset="rosewood"] .new-project-hero h1{font-family:Georgia,'Times New Roman',Tajawal,sans-serif;font-weight:800!important;letter-spacing:-.015em!important}
body[data-theme-preset="rosewood"] .stat-icon,body[data-theme-preset="rosewood"] .nav-link.sub .sub-icon{border-radius:7px!important;transform:rotate(45deg)}
body[data-theme-preset="rosewood"] .stat-icon>*,body[data-theme-preset="rosewood"] .nav-link.sub .sub-icon svg{transform:rotate(-45deg)}
body[data-theme-preset="rosewood"] .panel-head{border-bottom:2px solid color-mix(in srgb,var(--theme-accent) 35%,var(--line))}

/* Nested navigation and popups fully inherit the active identity. */
body[data-theme-preset] .nav-items,body[data-theme-preset] .searchable-select-list,body[data-theme-preset] .account-menu,body[data-theme-preset] .notification-popover,body[data-theme-preset] .theme-popover,body[data-theme-preset] .modal,body[data-theme-preset] .filter-drawer,body[data-theme-preset] .project-history-drawer,body[data-theme-preset] .assistant-overlay,body[data-theme-preset] .chose-chat{border-radius:var(--theme-radius)!important}
body[data-theme-preset="executive"] .nav-items,body[data-theme-preset="executive"] .searchable-select-list,body[data-theme-preset="executive"] .account-menu{border-radius:4px!important}
body[data-theme-preset="ocean"] .searchable-select-list button,body[data-theme-preset="ocean"] .account-menu button{border-radius:999px!important;margin:3px 6px}

/* Login v1.3.3 — premium, theme-aware, responsive and lightweight. */
.login-v133{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(420px,.88fr);background:var(--theme-bg);overflow:hidden}
.login-v133 .login-visual{position:relative;min-height:100dvh;padding:clamp(34px,5vw,78px);display:flex;flex-direction:column;justify-content:center;color:#fff;background:var(--theme-sidebar);overflow:hidden;isolation:isolate}
.login-visual__mesh{position:absolute;inset:0;z-index:-2;background:radial-gradient(circle at 18% 15%,color-mix(in srgb,var(--theme-accent) 40%,transparent),transparent 27%),radial-gradient(circle at 82% 78%,color-mix(in srgb,var(--theme-primary) 48%,transparent),transparent 34%),linear-gradient(120deg,transparent 0 47%,rgba(255,255,255,.035) 47% 48%,transparent 48% 100%);background-size:auto,auto,38px 38px;opacity:.9}
.login-visual:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(255,255,255,.09);border-radius:50%;inset-inline-end:-170px;top:-160px;box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018);z-index:-1}
.login-top-controls{position:absolute;top:24px;inset-inline:28px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:5}
.login-v133 .login-language-toggle,.login-theme-cycle{position:static!important;min-width:auto!important;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.075);color:#fff;display:inline-flex;align-items:center;gap:8px;padding:0 12px;backdrop-filter:none;font-size:11px;font-weight:800}
.login-theme-cycle svg{width:17px;height:17px}.login-theme-cycle:hover,.login-v133 .login-language-toggle:hover{background:rgba(255,255,255,.13)}
.login-brand-lockup{display:flex;align-items:center;gap:12px;margin-bottom:clamp(40px,6vh,74px)}.login-brand-mark{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--theme-primary),var(--theme-accent));font-weight:950;font-size:23px;box-shadow:0 14px 32px #0003}.login-brand-lockup strong,.login-brand-lockup small{display:block}.login-brand-lockup strong{font-size:19px;letter-spacing:.12em}.login-brand-lockup small{font-size:10px;color:#ffffffa8;margin-top:2px}
.login-visual__copy{max-width:660px}.login-kicker{display:inline-flex;padding:7px 10px;border-radius:999px;border:1px solid #ffffff20;background:#ffffff0b;color:#ffffffbf;font-size:9px;font-weight:850;letter-spacing:.09em}.login-visual__copy h1{font-size:clamp(34px,4.6vw,66px);line-height:1.08;margin:17px 0 18px;max-width:760px;letter-spacing:-.045em}.lang-ar .login-visual__copy h1{letter-spacing:-.02em;line-height:1.3}.login-visual__copy p{font-size:clamp(12px,1.3vw,16px);line-height:1.9;color:#ffffffb5;max-width:590px;margin:0}
.login-workflow-preview{width:min(620px,92%);height:190px;margin-top:34px;border:1px solid #ffffff1f;border-radius:20px;background:#ffffff0c;box-shadow:0 25px 70px #0003;overflow:hidden;backdrop-filter:none}.login-preview__top{height:30px;display:flex;align-items:center;gap:5px;padding:0 10px;border-bottom:1px solid #ffffff14}.login-preview__top i{width:6px;height:6px;border-radius:50%;background:#ffffff50}.login-preview__top span{margin-inline-start:auto;width:70px;height:6px;border-radius:99px;background:#ffffff18}.login-preview__body{display:grid;grid-template-columns:110px 1fr;height:160px}.login-preview__body aside{padding:14px 10px;border-inline-end:1px solid #ffffff12;display:grid;align-content:start;gap:9px}.login-preview__body aside b{height:8px;border-radius:99px;background:#ffffff1c}.login-preview__body aside b:nth-child(2){width:78%}.login-preview__body aside b:nth-child(3){width:88%}.login-preview__body aside b:nth-child(4){width:60%}.login-preview__body main{padding:15px}.login-preview__metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.login-preview__metrics b{height:34px;border-radius:10px;background:#ffffff10;border:1px solid #ffffff10}.login-preview__chart{height:62px;margin-top:10px;border-radius:11px;background:#ffffff09;display:flex;align-items:end;gap:7px;padding:10px}.login-preview__chart i{flex:1;border-radius:4px 4px 1px 1px;background:linear-gradient(var(--theme-accent),var(--theme-primary));opacity:.75}.login-preview__chart i:nth-child(1){height:24%}.login-preview__chart i:nth-child(2){height:48%}.login-preview__chart i:nth-child(3){height:68%}.login-preview__chart i:nth-child(4){height:42%}.login-preview__chart i:nth-child(5){height:82%}.login-preview__rows{display:grid;gap:5px;margin-top:10px}.login-preview__rows b{height:5px;border-radius:99px;background:#ffffff13}.login-preview__rows b:nth-child(2){width:82%}.login-preview__rows b:nth-child(3){width:65%}
.login-pill-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.login-pill-row span{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;background:#ffffff0b;border:1px solid #ffffff14;color:#ffffffb9;font-size:9px}.login-pill-row svg{width:13px;height:13px}
.login-v133 .login-main{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(28px,5vw,72px);background:radial-gradient(circle at 85% 8%,color-mix(in srgb,var(--theme-primary) 7%,transparent),transparent 34%),var(--theme-bg)}
.login-v133 .login-box{width:min(470px,100%);padding:clamp(24px,3.2vw,38px);border:1px solid color-mix(in srgb,var(--theme-primary) 10%,var(--line));border-radius:26px;background:var(--paper);box-shadow:0 30px 80px rgba(15,23,42,.12);position:relative;overflow:hidden}.login-v133 .login-box:before{content:"";position:absolute;inset-inline:0;top:0;height:3px;background:linear-gradient(90deg,var(--theme-primary),var(--theme-primary-2),var(--theme-accent))}
.login-box__brand{display:flex;align-items:center;gap:12px}.login-box__icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 12%,var(--paper)),color-mix(in srgb,var(--theme-accent) 8%,var(--paper)));color:var(--theme-primary);border:1px solid color-mix(in srgb,var(--theme-primary) 13%,var(--line))}.login-box__brand small,.login-box__brand h2{display:block;margin:0}.login-box__brand small{font-size:9px;color:var(--theme-primary);font-weight:850}.login-box__brand h2{font-size:23px;margin-top:2px}.login-box__intro{font-size:11px;color:var(--muted);margin:12px 0 24px!important;line-height:1.8}
.login-field{margin:14px 0!important}.login-field label{font-size:10px;font-weight:800;margin-bottom:6px}.login-input-wrap{position:relative;display:flex;align-items:center}.login-input-wrap>.header-svg{position:absolute;inset-inline-start:13px;width:16px;height:16px;color:var(--muted);pointer-events:none}.login-input-wrap .input{height:48px;padding-inline-start:42px!important;padding-inline-end:44px!important;background:color-mix(in srgb,var(--paper) 94%,var(--theme-bg))!important}.login-password-toggle{position:absolute;inset-inline-end:8px;width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:var(--muted);display:grid;place-items:center}.login-password-toggle:hover,.login-password-toggle.active{background:color-mix(in srgb,var(--theme-primary) 7%,var(--paper));color:var(--theme-primary)}.login-password-toggle svg{width:16px;height:16px}
.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0 8px}.login-options .checkline{font-size:10px}.login-options>span{font-size:9px;color:var(--muted)}
.login-v133 .login-submit{height:48px;margin-top:12px!important;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px}.login-v133 .login-submit svg{width:16px;height:16px}.lang-ar .login-v133 .login-submit svg{transform:rotate(180deg)}
.login-trust{display:flex;align-items:flex-start;gap:8px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.login-trust>span{width:7px;height:7px;border-radius:50%;margin-top:5px;background:#12b886;box-shadow:0 0 0 4px #12b88615}.login-trust p{font-size:9px;line-height:1.7;color:var(--muted);margin:0!important;flex:1}.login-error-card{display:flex;align-items:center;gap:9px;margin:14px 0;padding:10px 12px;border-radius:12px;background:#ef444410;border:1px solid #ef444425;color:#c53030;font-size:10px}.login-error-card svg{width:16px;height:16px}
.login-footer{display:flex;gap:7px;margin-top:18px;color:var(--muted);font-size:9px}
body[data-theme-preset="executive"] .login-v133 .login-box{border-radius:10px}body[data-theme-preset="executive"] .login-brand-mark,body[data-theme-preset="executive"] .login-box__icon{border-radius:6px}body[data-theme-preset="ocean"] .login-v133 .login-box{border-radius:32px}body[data-theme-preset="rosewood"] .login-visual__copy h1{font-family:Georgia,'Times New Roman',Tajawal,sans-serif}
.dark .login-v133 .login-main{background:radial-gradient(circle at 85% 8%,color-mix(in srgb,var(--theme-primary) 12%,transparent),transparent 35%),var(--theme-bg)}.dark .login-v133 .login-box{box-shadow:0 30px 80px #0005}
@media(max-width:980px){.login-v133{grid-template-columns:1fr}.login-v133 .login-visual{min-height:360px;padding:80px 28px 32px}.login-workflow-preview{height:145px;margin-top:22px}.login-preview__body{height:115px}.login-preview__chart{height:42px}.login-v133 .login-main{min-height:auto;padding:34px 20px 46px}.login-brand-lockup{margin-bottom:22px}.login-visual__copy h1{font-size:36px}.login-pill-row{display:none}}
@media(max-width:600px){.login-v133 .login-visual{min-height:300px;padding:78px 18px 24px}.login-workflow-preview{display:none}.login-visual__copy h1{font-size:31px}.login-visual__copy p{font-size:11px}.login-top-controls{top:16px;inset-inline:16px}.login-theme-cycle span,.login-v133 .login-language-toggle__label{display:none}.login-theme-cycle,.login-v133 .login-language-toggle{width:40px!important;min-width:40px!important;padding:0!important;justify-content:center}.login-v133 .login-main{padding:24px 14px 34px}.login-v133 .login-box{padding:24px 18px;border-radius:20px}.login-options>span{display:none}}

/* Performance safety: theme changes never animate the entire tree. */
body.theme-switching *,body.theme-switching *:before,body.theme-switching *:after{transition:none!important;animation:none!important}

/* ============================================================
   EGB v1.3.4 — deterministic theme runtime + IE corporate identity
   Runtime tokens are written inline by app.js so a theme change is
   immediately visible even when legacy route CSS contains fixed colors.
   ============================================================ */
body[data-theme-preset="ie"]{--theme-primary:#E31E24;--theme-primary-2:#9F161B;--theme-accent:#171717;--theme-bg:#F5F5F5;--theme-surface:#FFFFFF;--theme-surface-soft:#FAFAFA;--theme-border:#E5E7EB;--theme-title-gradient:linear-gradient(100deg,#171717 0%,#171717 72%,#E31E24 100%);--theme-sidebar:linear-gradient(180deg,#111111 0%,#181818 58%,#0C0C0C 100%);--theme-radius:12px;--theme-radius-sm:9px;--theme-shadow:0 10px 28px rgba(23,23,23,.07);--theme-heading:#171717}
body[data-theme-preset="ie"].dark{--theme-primary:#E31E24;--theme-primary-2:#B7191F;--theme-accent:#FFFFFF;--theme-bg:#111111;--theme-surface:#181818;--theme-surface-soft:#242424;--theme-border:#343434;--theme-heading:#FFFFFF;--theme-sidebar:linear-gradient(180deg,#090909 0%,#111111 58%,#050505 100%)}
body[data-icon-pack="ie"] .header-svg,body[data-icon-pack="ie"] .btn-action-icon,body[data-icon-pack="ie"] [data-nav-icon]{stroke-width:1.9;stroke-linecap:square;stroke-linejoin:miter}

/* Theme picker previews show each identity independently from the active theme. */
.theme-card[data-theme-preset="ie"]{--preview-primary:#E31E24;--preview-primary-2:#9F161B;--preview-accent:#171717;--preview-bg:#F5F5F5}
.theme-card[data-theme-preset="aurora"]{--preview-primary:#5B5CF0;--preview-primary-2:#8B5CF6;--preview-accent:#FF6B6B;--preview-bg:#F6F7FF}
.theme-card[data-theme-preset="ocean"]{--preview-primary:#0F6FFF;--preview-primary-2:#06B6D4;--preview-accent:#14B8A6;--preview-bg:#F3F9FF}
.theme-card[data-theme-preset="executive"]{--preview-primary:#16324F;--preview-primary-2:#355C7D;--preview-accent:#D39B37;--preview-bg:#F7F7F4}
.theme-card[data-theme-preset="emerald"]{--preview-primary:#087F5B;--preview-primary-2:#12A77C;--preview-accent:#38BFA0;--preview-bg:#F3FAF7}
.theme-card[data-theme-preset="rosewood"]{--preview-primary:#8B1E3F;--preview-primary-2:#B13555;--preview-accent:#E58F65;--preview-bg:#FBF6F5}
.theme-card .theme-mini{background:var(--preview-bg)!important;border-color:color-mix(in srgb,var(--preview-primary) 18%,#E5E7EB)!important}
.theme-card .theme-mini__rail{background:linear-gradient(180deg,var(--preview-primary),var(--preview-primary-2))!important}
.theme-card .theme-mini__canvas b{background:color-mix(in srgb,var(--preview-primary) 9%,#fff)!important;border-color:color-mix(in srgb,var(--preview-primary) 14%,#E5E7EB)!important}
.theme-card .theme-mini__glyph{color:var(--preview-primary)!important}

/* Corporate logo is used only by the Innovative Experiences identity. */
.brand-mark-ie,.login-brand-ie{display:none;width:100%;height:100%;object-fit:contain}
.brand-mark-fallback,.login-brand-fallback{display:grid;place-items:center}
body[data-theme-preset="ie"] .brand-mark{background:#FFFFFF!important;border:1px solid #FFFFFF20!important;box-shadow:0 8px 24px #0005!important;padding:5px!important}
body[data-theme-preset="ie"] .brand-mark-ie{display:block}
body[data-theme-preset="ie"] .brand-mark-fallback{display:none}
body[data-theme-preset="ie"] .login-brand-mark{background:#FFFFFF!important;border:1px solid #FFFFFF22!important;padding:6px!important}
body[data-theme-preset="ie"] .login-brand-ie{display:block}
body[data-theme-preset="ie"] .login-brand-fallback{display:none}

/* Every theme reaches legacy route surfaces, not only the shell. */
body[data-theme-preset] .content{color:var(--ink)}
body[data-theme-preset] .dashboard-hero,
body[data-theme-preset] .settings-hero,
body[data-theme-preset] .distribution-hero,
body[data-theme-preset] .my-projects-hero,
body[data-theme-preset] .new-project-hero,
body[data-theme-preset] .remaining-hero,
body[data-theme-preset] .help-header,
body[data-theme-preset] .am-hero,
body[data-theme-preset] .project-detail-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 8%,var(--paper)),var(--paper) 54%,color-mix(in srgb,var(--theme-accent) 5%,var(--paper)))!important;border-color:color-mix(in srgb,var(--theme-primary) 12%,var(--line))!important}
body[data-theme-preset] .settings-tabs,
body[data-theme-preset] .my-projects-filter,
body[data-theme-preset] .my-project-card,
body[data-theme-preset] .smart-distributor,
body[data-theme-preset] .distribution-mini>div,
body[data-theme-preset] .my-projects-tabbar,
body[data-theme-preset] .distribution-tabbar,
body[data-theme-preset] .help-accordion,
body[data-theme-preset] .help-section ol{background:var(--paper)!important;border-color:var(--line)!important;color:var(--ink)!important}
body[data-theme-preset] .settings-tab.active,
body[data-theme-preset] .my-projects-tabbar button.active,
body[data-theme-preset] .distribution-tabbar .active{background:color-mix(in srgb,var(--theme-primary) 10%,var(--paper))!important;color:var(--theme-primary)!important;box-shadow:inset 3px 0 0 var(--theme-primary),0 6px 16px color-mix(in srgb,var(--theme-primary) 9%,transparent)!important}
body[data-theme-preset] .hero-icon,
body[data-theme-preset] .my-project-avatar,
body[data-theme-preset] .dashboard-hero .dashboard-bolt{background:color-mix(in srgb,var(--theme-primary) 10%,var(--paper))!important;color:var(--theme-primary)!important;border:1px solid color-mix(in srgb,var(--theme-primary) 13%,var(--line))!important}
body[data-theme-preset] .my-project-actions .primary,
body[data-theme-preset] .wizard-step.active,
body[data-theme-preset] .settings-save{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;border-color:transparent!important;color:#fff!important}
body[data-theme-preset] .wizard-step.active{color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 8%,var(--paper))!important}
body[data-theme-preset] th{background:color-mix(in srgb,var(--theme-primary) 5%,var(--theme-surface-soft))!important;color:color-mix(in srgb,var(--ink) 82%,var(--theme-primary))!important}
body[data-theme-preset] tbody tr:hover{background:color-mix(in srgb,var(--theme-primary) 4%,var(--paper))!important}
body[data-theme-preset] .btn:not(.primary):not(.danger){background:color-mix(in srgb,var(--paper) 97%,var(--theme-primary))!important;border-color:color-mix(in srgb,var(--theme-primary) 9%,var(--line))!important;color:color-mix(in srgb,var(--ink) 90%,var(--theme-primary))!important}
body[data-theme-preset] .btn:not(.primary):not(.danger):hover{border-color:color-mix(in srgb,var(--theme-primary) 32%,var(--line))!important;color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 6%,var(--paper))!important}
body[data-theme-preset] .header-unread{background:var(--theme-primary)!important;color:#fff!important}
body[data-theme-preset] .search-shortcut{background:color-mix(in srgb,var(--paper) 97%,var(--theme-primary))!important;border-color:color-mix(in srgb,var(--theme-primary) 10%,var(--line))!important;color:var(--muted)!important}
body[data-theme-preset] .layout-toggle,body[data-theme-preset] .icon-button{background:color-mix(in srgb,var(--paper) 97%,var(--theme-primary))!important;border-color:color-mix(in srgb,var(--theme-primary) 10%,var(--line))!important;color:color-mix(in srgb,var(--ink) 78%,var(--theme-primary))!important}
body[data-theme-preset] .layout-toggle:hover,body[data-theme-preset] .icon-button:hover{background:color-mix(in srgb,var(--theme-primary) 8%,var(--paper))!important;color:var(--theme-primary)!important}

/* Innovative Experiences — exact corporate visual language. */
body[data-theme-preset="ie"] .page-head h1,
body[data-theme-preset="ie"] .dashboard-hero h1,
body[data-theme-preset="ie"] .new-project-hero h1,
body[data-theme-preset="ie"] .settings-hero h1,
body[data-theme-preset="ie"] .remaining-hero h1,
body[data-theme-preset="ie"] .help-header h1,
body[data-theme-preset="ie"] .am-hero h1,
body[data-theme-preset="ie"] .project-detail-hero h1{background:none!important;-webkit-text-fill-color:currentColor!important;color:#171717!important;position:relative;padding-inline-start:14px;letter-spacing:-.015em!important}
body[data-theme-preset="ie"] .page-head h1:before,
body[data-theme-preset="ie"] .dashboard-hero h1:before,
body[data-theme-preset="ie"] .new-project-hero h1:before,
body[data-theme-preset="ie"] .settings-hero h1:before,
body[data-theme-preset="ie"] .remaining-hero h1:before,
body[data-theme-preset="ie"] .help-header h1:before,
body[data-theme-preset="ie"] .am-hero h1:before,
body[data-theme-preset="ie"] .project-detail-hero h1:before{content:"";position:absolute;inset-inline-start:0;top:.16em;bottom:.14em;width:4px;border-radius:99px;background:linear-gradient(#E31E24,#9F161B)}
body[data-theme-preset="ie"] .btn.primary{background:linear-gradient(135deg,#E31E24,#9F161B)!important;box-shadow:0 8px 22px rgba(227,30,36,.20)!important}
body[data-theme-preset="ie"] .btn.primary:hover{background:linear-gradient(135deg,#B7191F,#8C1218)!important;box-shadow:0 10px 26px rgba(183,25,31,.25)!important}
body[data-theme-preset="ie"] .nav-link.sub.active{background:linear-gradient(90deg,rgba(227,30,36,.32),rgba(227,30,36,.08))!important;box-shadow:inset 3px 0 #E31E24!important}
body[data-theme-preset="ie"] .nav-link.sub.active .sub-icon,body[data-theme-preset="ie"] .nav-group-title .nav-icon{border-radius:7px!important}
body[data-theme-preset="ie"] .panel-head{background:linear-gradient(90deg,#FFFFFF,color-mix(in srgb,#E31E24 3%,#FFFFFF))!important;border-bottom:1px solid #E5E7EB!important}
body[data-theme-preset="ie"] .card,body[data-theme-preset="ie"] .panel{box-shadow:0 8px 26px rgba(23,23,23,.055)!important}
body[data-theme-preset="ie"] .card:hover{border-color:color-mix(in srgb,#E31E24 22%,#E5E7EB)!important}
body[data-theme-preset="ie"] .tab.active,body[data-theme-preset="ie"] .settings-tab.active{color:#E31E24!important;border-color:#E31E24!important}
body[data-theme-preset="ie"] .theme-trigger{background:#E31E2412!important;color:#E31E24!important}
body[data-theme-preset="ie"] .khulasa-assistant-fab{background:linear-gradient(135deg,#E31E24,#9F161B)!important;box-shadow:0 12px 30px rgba(227,30,36,.28)!important}
body[data-theme-preset="ie"].dark .page-head h1,
body[data-theme-preset="ie"].dark .dashboard-hero h1,
body[data-theme-preset="ie"].dark .new-project-hero h1,
body[data-theme-preset="ie"].dark .settings-hero h1,
body[data-theme-preset="ie"].dark .remaining-hero h1,
body[data-theme-preset="ie"].dark .help-header h1,
body[data-theme-preset="ie"].dark .am-hero h1,
body[data-theme-preset="ie"].dark .project-detail-hero h1{color:#FFFFFF!important}
body[data-theme-preset="ie"].dark .panel-head{background:linear-gradient(90deg,#181818,color-mix(in srgb,#E31E24 7%,#181818))!important;border-bottom-color:#343434!important}

/* IE login: brand-led, calm, and professional. */
body[data-theme-preset="ie"] .login-v133 .login-visual{background:linear-gradient(145deg,#0B0B0B 0%,#171717 55%,#250D0E 100%)!important}
body[data-theme-preset="ie"] .login-visual__mesh{background:radial-gradient(circle at 18% 15%,rgba(227,30,36,.28),transparent 29%),radial-gradient(circle at 82% 78%,rgba(159,22,27,.30),transparent 35%),linear-gradient(120deg,transparent 0 47%,rgba(255,255,255,.03) 47% 48%,transparent 48% 100%)!important}
body[data-theme-preset="ie"] .login-kicker{border-color:#E31E2455;background:#E31E2412;color:#FFD9DA}
body[data-theme-preset="ie"] .login-v133 .login-box{border-color:#E5E7EB!important;border-radius:18px!important;box-shadow:0 28px 80px rgba(23,23,23,.12)!important}
body[data-theme-preset="ie"] .login-v133 .login-box:before{background:linear-gradient(90deg,#E31E24,#9F161B,#171717)!important}
body[data-theme-preset="ie"] .login-box__icon{color:#E31E24!important;background:#E31E2410!important;border-color:#E31E2420!important}
body[data-theme-preset="ie"] .login-submit{background:linear-gradient(135deg,#E31E24,#9F161B)!important}

/* Avoid any expensive global transition on theme change. */
body.theme-switching *,body.theme-switching *:before,body.theme-switching *:after{transition:none!important;animation:none!important}

/* ============================================================
   EGB v1.3.5 — loop-safe corporate theme surfaces + EBG identity
   Theme application is in-place. No DOM rebuild / mutation observer.
   ============================================================ */
body[data-theme-preset="ebg"]{
 --theme-primary:#1F4E9D;--theme-primary-2:#163B78;--theme-accent:#F5C518;
 --theme-bg:#F7F9FC;--theme-surface:#FFFFFF;--theme-surface-soft:#EEF3FA;--theme-border:#E5E7EB;
 --theme-heading:#172033;--theme-title-gradient:linear-gradient(100deg,#172033 0%,#1F4E9D 62%,#D9AA00 100%);
 --theme-sidebar:linear-gradient(180deg,#102D59 0%,#163B78 56%,#0D2343 100%);
 --theme-radius:14px;--theme-radius-sm:10px;--theme-shadow:0 12px 32px rgba(31,78,157,.10)
}
body[data-theme-preset="ebg"].dark{
 --theme-primary:#4E7FCE;--theme-primary-2:#2D5CA9;--theme-accent:#F5C518;
 --theme-bg:#0B1220;--theme-surface:#111C2E;--theme-surface-soft:#17263D;--theme-border:#2A3B56;
 --theme-heading:#FFFFFF;--theme-sidebar:linear-gradient(180deg,#081A33 0%,#102D59 58%,#071528 100%)
}
body[data-icon-pack="ebg"] .header-svg,body[data-icon-pack="ebg"] .btn-action-icon,body[data-icon-pack="ebg"] [data-nav-icon]{stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.theme-card[data-theme-preset="ebg"]{--preview-primary:#1F4E9D;--preview-primary-2:#163B78;--preview-accent:#F5C518;--preview-bg:#F7F9FC}
.theme-card[data-theme-preset="ebg"] .theme-mini{border-radius:12px;background:linear-gradient(135deg,#F7F9FC,#fff)!important}
.theme-card[data-theme-preset="ebg"] .theme-mini__rail{box-shadow:inset -3px 0 #F5C518}
.theme-card[data-theme-preset="ebg"] .theme-mini__glyph{color:#1F4E9D!important;border:1px solid #F5C51855}

/* Brand marks switch without rendering the app again. */
.brand-mark-ebg,.login-brand-ebg{display:none;width:100%;height:100%;align-items:center;justify-content:center;line-height:1;font-family:Inter,'Segoe UI',Arial,sans-serif;font-weight:950;letter-spacing:-.06em}
.brand-mark-ebg b:first-child,.login-brand-ebg b:first-child{color:#1F4E9D}.brand-mark-ebg b:last-child,.login-brand-ebg b:last-child{color:#D9AA00;font-size:.68em;margin-inline-start:1px}
body[data-theme-preset="ebg"] .brand-mark,body[data-theme-preset="ebg"] .login-brand-mark{background:#fff!important;border:1px solid rgba(245,197,24,.42)!important;box-shadow:0 10px 26px rgba(15,39,77,.22)!important;padding:5px!important}
body[data-theme-preset="ebg"] .brand-mark-ebg,body[data-theme-preset="ebg"] .login-brand-ebg{display:flex}
body[data-theme-preset="ebg"] .brand-mark-ie,body[data-theme-preset="ebg"] .login-brand-ie,body[data-theme-preset="ebg"] .brand-mark-fallback,body[data-theme-preset="ebg"] .login-brand-fallback{display:none!important}

/* Full-system theme surface contract. These selectors intentionally sit at the end
   so legacy route-specific hard-coded colors cannot mask a selected theme. */
body[data-theme-preset] :is(.card,.panel,.stat,.project-card,.team-card,.my-project-card,.settings-tabs,.settings-card,.permissions-card,.help-accordion,.smart-distributor,.distribution-mini>div,.my-projects-filter,.my-projects-tabbar,.distribution-tabbar,.form-card,.detail-card){
 background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--ink)!important;box-shadow:var(--theme-shadow,0 10px 28px color-mix(in srgb,var(--theme-primary) 8%,transparent))!important
}
body[data-theme-preset] :is(.modal,.financial-cancellation-box,.pipeline-top-sheet,.project-history-drawer,.archive-confirm-box,.project-assistant-box,.my-tasks-box,.my-detail-box,.smart-proposal-box,.assistant-overlay__panel,.chat-panel,.notification-popover,.account-menu,.theme-popover){
 background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--ink)!important
}
body[data-theme-preset] :is(.modal-head,.modal-foot,.panel-head,.financial-cancellation-box>header,.financial-cancellation-box footer,.project-history-head,.assistant-overlay__head,.chat-head,.notification-popover__head){border-color:var(--theme-border)!important}
body[data-theme-preset] :is(.input,.select,.textarea,input[type="text"],input[type="email"],input[type="tel"],input[type="number"],input[type="password"],input[type="url"]){background:var(--theme-surface-soft)!important;border-color:var(--theme-border)!important;color:var(--ink)!important}
body[data-theme-preset] :is(.input,.select,.textarea):focus{border-color:var(--theme-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 15%,transparent)!important}
body[data-theme-preset] :is(th,.table-head){background:color-mix(in srgb,var(--theme-primary) 6%,var(--theme-surface-soft))!important;color:color-mix(in srgb,var(--ink) 84%,var(--theme-primary))!important;border-color:var(--theme-border)!important}
body[data-theme-preset] td{border-color:color-mix(in srgb,var(--theme-border) 78%,transparent)!important}
body[data-theme-preset] tbody tr:hover{background:color-mix(in srgb,var(--theme-primary) 4%,var(--theme-surface))!important}
body[data-theme-preset] :is(.tab.active,.settings-tab.active,.my-projects-tabbar button.active,.distribution-tabbar .active){color:var(--theme-primary)!important;border-color:var(--theme-primary)!important}
body[data-theme-preset] :is(.btn.primary,.login-submit,.settings-save){background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;border-color:transparent!important;color:#fff!important;box-shadow:0 9px 24px color-mix(in srgb,var(--theme-primary) 24%,transparent)!important}
body[data-theme-preset] :is(.btn.primary,.login-submit,.settings-save):hover{filter:brightness(.94);transform:translateY(-1px)}
body[data-theme-preset] :is(.badge.blue,.header-unread,.wizard-step.active,.hero-icon,.stat-icon){background:color-mix(in srgb,var(--theme-primary) 11%,var(--theme-surface))!important;color:var(--theme-primary)!important;border-color:color-mix(in srgb,var(--theme-primary) 18%,var(--theme-border))!important}
body[data-theme-preset] :is(.search-shortcut,.icon-button,.layout-toggle,.theme-mode-switch button,.theme-card){background:color-mix(in srgb,var(--theme-surface) 97%,var(--theme-primary))!important;border-color:color-mix(in srgb,var(--theme-primary) 10%,var(--theme-border))!important;color:var(--ink)!important}
body[data-theme-preset] :is(.search-shortcut,.icon-button,.layout-toggle,.theme-mode-switch button,.theme-card):hover{border-color:color-mix(in srgb,var(--theme-primary) 32%,var(--theme-border))!important;background:color-mix(in srgb,var(--theme-primary) 7%,var(--theme-surface))!important;color:var(--theme-primary)!important}
body[data-theme-preset] :is(.page-head h1,.dashboard-hero h1,.new-project-hero h1,.settings-hero h1,.remaining-hero h1,.help-header h1,.am-hero h1,.project-detail-hero h1){background:var(--theme-title-gradient)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important}
body[data-theme-preset].dark :is(.page-head h1,.dashboard-hero h1,.new-project-hero h1,.settings-hero h1,.remaining-hero h1,.help-header h1,.am-hero h1,.project-detail-hero h1){background:var(--theme-title-gradient)!important;background-clip:text!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important}

/* Each identity also changes geometry / composition, not only color. */
body[data-theme-preset="aurora"] :is(.card,.panel,.modal,.theme-popover,.notification-popover,.account-menu){border-radius:20px!important}
body[data-theme-preset="ocean"] :is(.card,.panel,.modal,.theme-popover,.notification-popover,.account-menu,.btn,.input,.select){border-radius:22px!important}
body[data-theme-preset="executive"] :is(.card,.panel,.modal,.theme-popover,.notification-popover,.account-menu,.btn,.input,.select){border-radius:7px!important}
body[data-theme-preset="emerald"] :is(.card,.panel){border-radius:18px 18px 18px 8px!important}
body[data-theme-preset="rosewood"] :is(.card,.panel){border-radius:6px 18px 6px 18px!important}
body[data-theme-preset="ebg"] :is(.card,.panel,.modal,.theme-popover,.notification-popover,.account-menu){border-radius:14px!important}
body[data-theme-preset="ebg"] .topbar{background:linear-gradient(90deg,color-mix(in srgb,#fff 96%,#1F4E9D),#fff)!important;border-bottom:1px solid color-mix(in srgb,#1F4E9D 14%,#E5E7EB)!important;box-shadow:0 7px 28px rgba(23,32,51,.07)!important}
body[data-theme-preset="ebg"].dark .topbar{background:linear-gradient(90deg,#111C2E,#0E192A)!important;border-bottom-color:#2A3B56!important}
body[data-theme-preset="ebg"] .sidebar{box-shadow:inset -4px 0 #F5C518,8px 0 30px rgba(10,35,70,.12)!important}
body[data-theme-preset="ebg"] .nav-group-title .nav-icon{color:#F5C518!important;background:rgba(245,197,24,.10)!important}
body[data-theme-preset="ebg"] .nav-link.sub.active{background:linear-gradient(90deg,rgba(31,78,157,.65),rgba(245,197,24,.10))!important;box-shadow:inset 3px 0 #F5C518!important}
body[data-theme-preset="ebg"] .nav-link.sub.active .sub-icon{background:#F5C518!important;color:#172033!important;box-shadow:none!important}
body[data-theme-preset="ebg"] .theme-trigger,body[data-theme-preset="ebg"] .header-home{color:#1F4E9D!important;background:#1F4E9D0D!important;border-color:#1F4E9D20!important}
body[data-theme-preset="ebg"] :is(.page-head h1,.dashboard-hero h1,.new-project-hero h1,.settings-hero h1,.remaining-hero h1,.help-header h1,.am-hero h1,.project-detail-hero h1){position:relative;padding-block-end:8px!important}
body[data-theme-preset="ebg"] :is(.page-head h1,.dashboard-hero h1,.new-project-hero h1,.settings-hero h1,.remaining-hero h1,.help-header h1,.am-hero h1,.project-detail-hero h1):after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:54px;height:3px;border-radius:99px;background:linear-gradient(90deg,#1F4E9D 0 70%,#F5C518 70% 100%)}
body[data-theme-preset="ebg"] .btn.primary,body[data-theme-preset="ebg"] .login-submit{background:linear-gradient(135deg,#1F4E9D,#163B78)!important;box-shadow:0 9px 24px rgba(31,78,157,.23)!important}
body[data-theme-preset="ebg"] .btn.primary:hover,body[data-theme-preset="ebg"] .login-submit:hover{background:linear-gradient(135deg,#163B78,#102D59)!important;box-shadow:0 11px 28px rgba(22,59,120,.28)!important}
body[data-theme-preset="ebg"] .khulasa-assistant-fab{background:linear-gradient(135deg,#1F4E9D,#163B78)!important;box-shadow:0 12px 30px rgba(31,78,157,.28)!important;border:1px solid #F5C51855!important}

/* EBG login experience — blue gateway + gold signal. */
body[data-theme-preset="ebg"] .login-v133 .login-visual{background:linear-gradient(145deg,#0B1E3A 0%,#123B70 58%,#172033 100%)!important}
body[data-theme-preset="ebg"] .login-visual__mesh{background:radial-gradient(circle at 18% 15%,rgba(245,197,24,.22),transparent 28%),radial-gradient(circle at 82% 78%,rgba(31,78,157,.42),transparent 38%),linear-gradient(118deg,transparent 0 48%,rgba(245,197,24,.055) 48% 49%,transparent 49% 100%)!important}
body[data-theme-preset="ebg"] .login-kicker{border-color:#F5C51866;background:#F5C51812;color:#FFE98A!important}
body[data-theme-preset="ebg"] .login-v133 .login-box{border-color:#D9E3F2!important;border-radius:18px!important;box-shadow:0 30px 84px rgba(23,32,51,.14)!important}
body[data-theme-preset="ebg"] .login-v133 .login-box:before{height:4px!important;background:linear-gradient(90deg,#1F4E9D 0 68%,#F5C518 68% 100%)!important}
body[data-theme-preset="ebg"] .login-box__icon{color:#1F4E9D!important;background:#1F4E9D0E!important;border-color:#1F4E9D24!important}
body[data-theme-preset="ebg"] .login-preview__chart i{background:linear-gradient(#F5C518,#1F4E9D)!important}
body[data-theme-preset="ebg"] .login-pill-row span{border-color:#F5C51825!important;background:#1F4E9D22!important}
body[data-theme-preset="ebg"].dark .login-v133 .login-box{border-color:#2A3B56!important;box-shadow:0 30px 90px #0007!important}

/* Theme apply is deliberately animation-free for two frames; no global transition loop. */
body.theme-switching,body.theme-switching *{scroll-behavior:auto!important}

/* ============================================================
   EGB v1.3.6 — authenticated workspace theme bridge
   The login already used the new theme tokens; the authenticated
   workspace still had late legacy/parity rules bound to --orig-* and
   hard-coded white surfaces.  This final bridge deliberately comes
   last so every selected theme and dark mode visibly controls the app.
   ============================================================ */
html[data-theme-runtime="v136"],
body[data-theme-runtime="v136"]{
  background:var(--theme-bg)!important;
  color:var(--ink)!important;
  color-scheme:light;
}
body[data-theme-runtime="v136"][data-theme-mode="dark"]{color-scheme:dark}
body[data-theme-runtime="v136"] #app,
body[data-theme-runtime="v136"] .shell,
body[data-theme-runtime="v136"] .main,
body[data-theme-runtime="v136"] .content{
  background:var(--theme-bg)!important;
  color:var(--ink)!important;
}

/* Professional sidebar — one visual system across every route. */
body[data-theme-runtime="v136"] .shell{--workspace-sidebar:278px;grid-template-columns:var(--workspace-sidebar) minmax(0,1fr)!important}
body[data-theme-runtime="v136"] .sidebar{
  width:var(--workspace-sidebar)!important;
  background:var(--theme-sidebar)!important;
  border-inline-end:1px solid color-mix(in srgb,var(--theme-primary) 30%,transparent)!important;
  padding:0 12px 18px!important;
  color:#fff!important;
  box-shadow:12px 0 38px rgba(12,18,28,.10)!important;
  scrollbar-color:color-mix(in srgb,var(--theme-primary) 48%,#fff) transparent;
}
body[data-theme-runtime="v136"] .brand{
  min-height:82px!important;height:auto!important;margin:0 -12px!important;padding:13px 16px!important;
  color:#fff!important;border-bottom:1px solid rgba(255,255,255,.08)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.045),transparent)!important;
  position:sticky;top:0;z-index:3;backdrop-filter:blur(16px)
}
body[data-theme-runtime="v136"] .brand-mark{width:44px!important;height:44px!important;flex:none}
body[data-theme-runtime="v136"] .brand>strong{font-size:13px!important;line-height:1.35;max-width:178px;white-space:normal;color:#fff!important}
body[data-theme-runtime="v136"] .nav-caption{color:rgba(255,255,255,.44)!important;padding:17px 10px 8px!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.08em}
body[data-theme-runtime="v136"] .sidebar-nav{display:grid;gap:5px}
body[data-theme-runtime="v136"] .nav-group{
  border:1px solid transparent!important;border-radius:15px!important;margin:0!important;
  transition:background .18s ease,border-color .18s ease,transform .18s ease
}
body[data-theme-runtime="v136"] .nav-group.open{
  background:rgba(255,255,255,.055)!important;
  border-color:rgba(255,255,255,.075)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035)!important
}
body[data-theme-runtime="v136"] .nav-group-title{
  min-height:48px!important;padding:6px 9px!important;border-radius:13px!important;
  color:rgba(255,255,255,.82)!important;background:transparent!important;font-weight:760!important
}
body[data-theme-runtime="v136"] .nav-group-title:hover{background:rgba(255,255,255,.065)!important;color:#fff!important}
body[data-theme-runtime="v136"] .nav-group-title .nav-icon{
  width:32px!important;height:32px!important;border-radius:10px!important;
  color:color-mix(in srgb,var(--theme-accent) 75%,#fff)!important;
  background:rgba(255,255,255,.075)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.045)!important
}
body[data-theme-runtime="v136"] .nav-group.open .nav-group-title .nav-icon{
  color:#fff!important;background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;
  box-shadow:0 7px 18px color-mix(in srgb,var(--theme-primary) 30%,transparent)!important
}
body[data-theme-runtime="v136"] .nav-chevron{margin-inline-start:auto;opacity:.55}
body[data-theme-runtime="v136"] .nav-group.open .nav-chevron{opacity:.9}
body[data-theme-runtime="v136"] .nav-items{
  margin:1px 10px 8px!important;padding:4px 0 2px!important;border:0!important;background:transparent!important
}
body[data-theme-runtime="v136"] .nav-link.sub{
  min-height:38px!important;height:auto!important;padding:5px 8px!important;margin:2px 0!important;
  border-radius:11px!important;color:rgba(255,255,255,.66)!important;gap:9px!important
}
body[data-theme-runtime="v136"] .nav-link.sub:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
body[data-theme-runtime="v136"] .nav-link.sub .sub-icon{
  width:27px!important;height:27px!important;border-radius:8px!important;background:rgba(255,255,255,.05)!important;
  color:rgba(255,255,255,.72)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)!important
}
body[data-theme-runtime="v136"] .nav-link.sub.active{
  color:#fff!important;background:linear-gradient(90deg,color-mix(in srgb,var(--theme-primary) 78%,transparent),color-mix(in srgb,var(--theme-primary-2) 28%,transparent))!important;
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--theme-accent) 78%,#fff),0 7px 18px color-mix(in srgb,var(--theme-primary) 15%,transparent)!important
}
html[dir="rtl"] body[data-theme-runtime="v136"] .nav-link.sub.active{box-shadow:inset -3px 0 0 color-mix(in srgb,var(--theme-accent) 78%,#fff),0 7px 18px color-mix(in srgb,var(--theme-primary) 15%,transparent)!important}
body[data-theme-runtime="v136"] .nav-link.sub.active .sub-icon{background:#fff!important;color:var(--theme-primary)!important}
body[data-theme-runtime="v136"] .sidebar-workshop{
  width:auto!important;height:auto!important;min-height:0!important;margin:12px 0 10px!important;padding:12px!important;
  border-radius:16px!important;background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(255,255,255,.035))!important;
  border:1px solid rgba(255,255,255,.085)!important;color:#fff!important;overflow:hidden!important
}
body[data-theme-runtime="v136"] .workshop-kicker b{color:color-mix(in srgb,var(--theme-accent) 72%,#fff)!important}
body[data-theme-runtime="v136"] .workshop-link{color:#fff!important}.workshop-link small{color:rgba(255,255,255,.55)!important}
body[data-theme-runtime="v136"] .workshop-actions button{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.72)!important}
body[data-theme-runtime="v136"] .workshop-actions button:hover{background:rgba(255,255,255,.11)!important;color:#fff!important}
body[data-theme-runtime="v136"] .sidebar-help{margin-top:10px!important;border-radius:13px!important;background:rgba(255,255,255,.045)!important;border-color:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.72)!important}
body[data-theme-runtime="v136"] .sidebar-help:hover{background:rgba(255,255,255,.09)!important;color:#fff!important}

/* Collapsing remains a true hide/show operation, but is smooth and stable. */
body[data-theme-runtime="v136"] .shell.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)!important}
body[data-theme-runtime="v136"] .shell.sidebar-collapsed>.sidebar{width:0!important;min-width:0!important;padding-inline:0!important;opacity:0!important;pointer-events:none!important;border:0!important;overflow:hidden!important;transform:translateX(10px)!important}
html[dir="ltr"] body[data-theme-runtime="v136"] .shell.sidebar-collapsed>.sidebar{transform:translateX(-10px)!important}
body[data-theme-runtime="v136"] .sidebar{transition:width .2s ease,opacity .16s ease,transform .2s ease,padding .2s ease}

/* Header and workspace surfaces. */
body[data-theme-runtime="v136"] .topbar{
  background:color-mix(in srgb,var(--theme-surface) 92%,transparent)!important;
  color:var(--ink)!important;border-bottom:1px solid var(--theme-border)!important;
  box-shadow:0 8px 30px color-mix(in srgb,var(--theme-primary) 7%,transparent)!important;
  backdrop-filter:blur(18px)
}
body[data-theme-runtime="v136"] .icon-button,
body[data-theme-runtime="v136"] .search-shortcut,
body[data-theme-runtime="v136"] .layout-toggle{
  background:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important
}
body[data-theme-runtime="v136"] .icon-button:hover,
body[data-theme-runtime="v136"] .search-shortcut:hover,
body[data-theme-runtime="v136"] .layout-toggle:hover{
  color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 7%,var(--theme-surface))!important;
  border-color:color-mix(in srgb,var(--theme-primary) 24%,var(--theme-border))!important
}
body[data-theme-runtime="v136"] .theme-trigger{color:var(--theme-primary)!important}

/* All ordinary content surfaces now follow the selected theme. */
body[data-theme-runtime="v136"] :is(.card,.panel,.table-wrap,.stat-card,.project-card,.team-card,.customer-card,.settings-card,.report-card,.detail-card,.dashboard-card){
  background:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important;
  box-shadow:var(--theme-shadow,0 10px 28px rgba(15,23,42,.06))!important
}
body[data-theme-runtime="v136"] :is(.panel-head,.table-title,.card-head,.section-head){border-color:var(--theme-border)!important;background:color-mix(in srgb,var(--theme-surface-soft) 45%,var(--theme-surface))!important;color:var(--ink)!important}
body[data-theme-runtime="v136"] :is(.input,.select,.textarea,input[type="text"],input[type="email"],input[type="number"],input[type="search"],input[type="password"]){
  background:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important
}
body[data-theme-runtime="v136"] :is(.input,.select,.textarea,input):focus{border-color:color-mix(in srgb,var(--theme-primary) 58%,var(--theme-border))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 12%,transparent)!important}
body[data-theme-runtime="v136"] ::placeholder{color:var(--muted)!important;opacity:.72}
body[data-theme-runtime="v136"] label,body[data-theme-runtime="v136"] .subtle,body[data-theme-runtime="v136"] small{color:var(--muted)}
body[data-theme-runtime="v136"] .btn{background:var(--theme-surface)!important;color:var(--theme-primary)!important;border-color:var(--theme-border)!important}
body[data-theme-runtime="v136"] .btn:hover{background:color-mix(in srgb,var(--theme-primary) 7%,var(--theme-surface))!important;border-color:color-mix(in srgb,var(--theme-primary) 30%,var(--theme-border))!important}
body[data-theme-runtime="v136"] .btn.primary{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 8px 22px color-mix(in srgb,var(--theme-primary) 25%,transparent)!important}
body[data-theme-runtime="v136"] .btn.danger{background:color-mix(in srgb,#dc2626 9%,var(--theme-surface))!important;color:#dc2626!important;border-color:color-mix(in srgb,#dc2626 24%,var(--theme-border))!important}

/* Tables, tabs and matrix. */
body[data-theme-runtime="v136"] table{background:var(--theme-surface)!important;color:var(--ink)!important}
body[data-theme-runtime="v136"] th{background:var(--theme-surface-soft)!important;color:var(--muted)!important;border-color:var(--theme-border)!important}
body[data-theme-runtime="v136"] td{background:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important}
body[data-theme-runtime="v136"] tbody tr:hover td{background:color-mix(in srgb,var(--theme-primary) 3.5%,var(--theme-surface))!important}
body[data-theme-runtime="v136"] .role-matrix th:first-child,
body[data-theme-runtime="v136"] .role-matrix td:first-child{background:var(--theme-surface)!important}
body[data-theme-runtime="v136"] .tab{color:var(--muted)!important;border-color:transparent!important}
body[data-theme-runtime="v136"] .tab:hover{color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 5%,transparent)!important}
body[data-theme-runtime="v136"] .tab.active{color:var(--theme-primary)!important;border-color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 6%,transparent)!important}
body[data-theme-runtime="v136"] .badge{border-color:color-mix(in srgb,var(--theme-primary) 18%,var(--theme-border))!important}

/* Every popup/dropdown/drawer/overlay uses theme surfaces. */
body[data-theme-runtime="v136"] :is(.theme-popover,.notification-popover,.account-menu,.searchable-select-list,.filter-drawer,.project-filter-drawer,.modal,.drawer,.project-history-drawer,.financial-cancellation-box,.chose-chat,.assistant-overlay,.assistant-panel,.popover,.context-menu){
  background:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important;
  box-shadow:0 24px 70px rgba(10,18,30,.18)!important
}
body[data-theme-runtime="v136"] :is(.notification-item,.account-menu button,.searchable-select-list button,.context-menu button,.dropdown-item){color:var(--ink)!important;border-color:var(--theme-border)!important;background:transparent!important}
body[data-theme-runtime="v136"] :is(.notification-item,.account-menu button,.searchable-select-list button,.context-menu button,.dropdown-item):hover{background:color-mix(in srgb,var(--theme-primary) 7%,var(--theme-surface))!important;color:var(--theme-primary)!important}
body[data-theme-runtime="v136"] :is(.theme-backdrop,.notification-backdrop,.account-backdrop){background:transparent!important}
body[data-theme-runtime="v136"] :is(.modal-backdrop,.chat-backdrop,.assistant-backdrop,.financial-cancellation-backdrop){background:rgba(3,8,15,.45)!important;backdrop-filter:blur(4px)}

/* Titles and page identity visibly change with each theme. */
body[data-theme-runtime="v136"] :is(.page-head h1,.dashboard-hero h1,.new-project-hero h1,.detail-hero h1,.login-box h2){
  color:var(--theme-heading,var(--ink))!important;
  background:var(--theme-title-gradient)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important
}
body[data-theme-runtime="v136"] .page-head{border-color:color-mix(in srgb,var(--theme-primary) 8%,var(--theme-border))!important}

/* Dark mode must win over every older hard-coded white rule. */
body[data-theme-runtime="v136"][data-theme-mode="dark"],
body[data-theme-runtime="v136"].dark{
  --paper:var(--theme-surface);--soft:var(--theme-bg);--line:var(--theme-border);--ink:var(--egb-text);--muted:var(--egb-muted)
}
body[data-theme-runtime="v136"][data-theme-mode="dark"] :is(.topbar,.card,.panel,.table-wrap,.input,.select,.textarea,.btn,.icon-button,.layout-toggle,.search-shortcut,.modal,.theme-popover,.notification-popover,.account-menu,.searchable-select-list,.filter-drawer,.project-filter-drawer,.chose-chat,.assistant-overlay,.financial-cancellation-box){
  background-color:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important
}
body[data-theme-runtime="v136"][data-theme-mode="dark"] :is(th,.panel-head,.table-title,.card-head){background:var(--theme-surface-soft)!important;color:var(--muted)!important}
body[data-theme-runtime="v136"][data-theme-mode="dark"] td{background:var(--theme-surface)!important;color:var(--ink)!important}
body[data-theme-runtime="v136"][data-theme-mode="dark"] .role-matrix :is(th:first-child,td:first-child){background:var(--theme-surface)!important;color:var(--ink)!important}
body[data-theme-runtime="v136"][data-theme-mode="dark"] :is(.bubble,.ledger-item,.notification-item){background:var(--theme-surface-soft)!important;color:var(--ink)!important;border-color:var(--theme-border)!important}
body[data-theme-runtime="v136"][data-theme-mode="dark"] .bubble.mine{background:color-mix(in srgb,var(--theme-primary) 16%,var(--theme-surface))!important}

/* Theme-specific sidebar personality, without changing behavior. */
body[data-theme-runtime="v136"][data-theme-preset="ie"] .sidebar{box-shadow:inset -1px 0 #E31E2420,12px 0 38px #00000018!important}
body[data-theme-runtime="v136"][data-theme-preset="ebg"] .nav-link.sub.active{box-shadow:inset 3px 0 0 #F5C518,0 7px 20px #1F4E9D24!important}
html[dir="rtl"] body[data-theme-runtime="v136"][data-theme-preset="ebg"] .nav-link.sub.active{box-shadow:inset -3px 0 0 #F5C518,0 7px 20px #1F4E9D24!important}
body[data-theme-runtime="v136"][data-theme-preset="ebg"] .nav-group.open .nav-group-title .nav-icon{color:#172033!important;background:linear-gradient(135deg,#F5C518,#D9AA00)!important}
body[data-theme-runtime="v136"][data-theme-preset="ocean"] .nav-group-title,body[data-theme-runtime="v136"][data-theme-preset="ocean"] .nav-link.sub{border-radius:999px!important}
body[data-theme-runtime="v136"][data-theme-preset="executive"] .nav-group,body[data-theme-runtime="v136"][data-theme-preset="executive"] .nav-group-title,body[data-theme-runtime="v136"][data-theme-preset="executive"] .nav-link.sub{border-radius:6px!important}
body[data-theme-runtime="v136"][data-theme-preset="emerald"] .nav-link.sub.active{background:linear-gradient(90deg,#087F5B,#12A77C)!important}
body[data-theme-runtime="v136"][data-theme-preset="rosewood"] .nav-group.open{border-color:color-mix(in srgb,#E58F65 20%,transparent)!important}

@media(max-width:760px){
  body[data-theme-runtime="v136"] .shell{display:block!important}
  body[data-theme-runtime="v136"] .sidebar{position:fixed!important;width:min(286px,86vw)!important;right:-300px!important;opacity:1!important;transform:none!important;padding-inline:12px!important}
  html[dir="ltr"] body[data-theme-runtime="v136"] .sidebar{right:auto!important;left:-300px!important}
  body[data-theme-runtime="v136"] .sidebar.show{right:0!important}
  html[dir="ltr"] body[data-theme-runtime="v136"] .sidebar.show{left:0!important}
}

/* ============================================================
   EGB v1.3.7 — product polish: sidebar, navigation, controls,
   notifications, team chat and NOVA workspace.
   Theme-driven only; no DOM polling or animation loops.
   ============================================================ */
body[data-theme-runtime="v136"]{--control-h:42px;--control-radius:11px;--nav-font:15.5px;--nav-sub-font:14.5px;--motion-fast:140ms;--motion-normal:190ms}
body[data-theme-runtime="v136"] .shell{--workspace-sidebar:296px}
body[data-theme-runtime="v136"] .sidebar{padding:14px 12px 12px!important;gap:10px!important;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--theme-primary) 78%,var(--theme-accent)) transparent}
body[data-theme-runtime="v136"] .sidebar::-webkit-scrollbar{width:7px}
body[data-theme-runtime="v136"] .sidebar::-webkit-scrollbar-thumb{background:linear-gradient(var(--theme-primary),var(--theme-primary-2));border-radius:999px}
body[data-theme-runtime="v136"] .brand{min-height:54px!important;padding:8px 10px!important;border-radius:14px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.065)}
body[data-theme-runtime="v136"] .brand strong{font-size:16px!important;font-weight:800!important;letter-spacing:.01em}
body[data-theme-runtime="v136"] .brand-mark{width:36px!important;height:36px!important;border-radius:11px!important}
body[data-theme-runtime="v136"] .nav-caption{font-size:11px!important;font-weight:800!important;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.42)!important;padding:4px 10px 2px!important}
body[data-theme-runtime="v136"] .sidebar-nav{gap:6px!important}
body[data-theme-runtime="v136"] .nav-group{border-radius:14px!important;padding:3px!important;border:1px solid transparent!important;transition:background var(--motion-normal) ease,border-color var(--motion-normal) ease,transform var(--motion-normal) ease!important}
body[data-theme-runtime="v136"] .nav-group.open{background:linear-gradient(145deg,rgba(255,255,255,.082),rgba(255,255,255,.025))!important;border-color:rgba(255,255,255,.075)!important;box-shadow:inset 0 1px rgba(255,255,255,.04)}
body[data-theme-runtime="v136"] .nav-group-title{min-height:47px!important;padding:8px 9px!important;border-radius:11px!important;gap:10px!important;font-size:var(--nav-font)!important;font-weight:780!important;letter-spacing:0!important}
body[data-theme-runtime="v136"] .nav-group-title .nav-icon{width:31px!important;height:31px!important;min-width:31px!important;border-radius:9px!important;display:grid!important;place-items:center!important;transition:transform var(--motion-fast) ease,background var(--motion-fast) ease,color var(--motion-fast) ease!important}
body[data-theme-runtime="v136"] .nav-group-title .nav-icon svg{width:18px!important;height:18px!important}
body[data-theme-runtime="v136"] .nav-group-title:hover .nav-icon{transform:translateY(-1px) scale(1.035)}
body[data-theme-runtime="v136"] .nav-chevron{margin-inline-start:auto;color:color-mix(in srgb,var(--theme-accent) 74%,#fff)!important;opacity:.72!important;filter:drop-shadow(0 0 7px color-mix(in srgb,var(--theme-primary) 45%,transparent));transition:transform var(--motion-normal) ease,color var(--motion-normal) ease!important}
body[data-theme-runtime="v136"] .nav-group.open .nav-chevron{transform:rotate(180deg);color:var(--theme-accent)!important;opacity:1!important}
body[data-theme-runtime="v136"] .nav-items{padding:3px 5px 6px!important;gap:3px!important}
body[data-theme-runtime="v136"] .nav-link.sub{min-height:39px!important;padding:7px 9px!important;border-radius:10px!important;font-size:var(--nav-sub-font)!important;font-weight:650!important;gap:9px!important;color:rgba(255,255,255,.72)!important;transition:background var(--motion-fast) ease,color var(--motion-fast) ease,transform var(--motion-fast) ease!important}
body[data-theme-runtime="v136"] .nav-link.sub:hover{background:rgba(255,255,255,.075)!important;color:#fff!important;transform:translateX(-2px)}
html[dir="ltr"] body[data-theme-runtime="v136"] .nav-link.sub:hover{transform:translateX(2px)}
body[data-theme-runtime="v136"] .nav-link.sub.active{color:#fff!important;background:linear-gradient(100deg,color-mix(in srgb,var(--theme-primary) 82%,transparent),color-mix(in srgb,var(--theme-primary-2) 58%,transparent))!important;box-shadow:0 8px 18px color-mix(in srgb,var(--theme-primary) 18%,transparent)!important}
body[data-theme-runtime="v136"] .nav-link.sub .sub-icon{width:27px!important;height:27px!important;min-width:27px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:rgba(255,255,255,.055)!important}
body[data-theme-runtime="v136"] .nav-link.sub .sub-icon svg{width:16px!important;height:16px!important}

body[data-theme-runtime="v136"] .sidebar-workshop{padding:12px!important;border-radius:16px!important;position:relative;overflow:hidden}
body[data-theme-runtime="v136"] .sidebar-workshop:before{content:"";position:absolute;inset-inline-start:0;top:14px;bottom:14px;width:3px;border-radius:999px;background:linear-gradient(var(--theme-primary),var(--theme-accent));box-shadow:0 0 16px color-mix(in srgb,var(--theme-primary) 40%,transparent)}
body[data-theme-runtime="v136"] .workshop-kicker{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:7px!important}
body[data-theme-runtime="v136"] .workshop-kicker small{font-size:11.5px!important;font-weight:750!important;color:rgba(255,255,255,.58)!important}
body[data-theme-runtime="v136"] .workshop-kicker small i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#35d399;box-shadow:0 0 0 4px rgba(53,211,153,.11),0 0 12px rgba(53,211,153,.45);margin-inline-end:6px}
body[data-theme-runtime="v136"] .workshop-link{display:grid!important;grid-template-columns:38px 1fr 22px!important;align-items:center!important;gap:9px!important;width:100%!important;padding:7px 4px!important;text-align:start!important}
body[data-theme-runtime="v136"] .workshop-orb{width:36px!important;height:36px!important;border-radius:11px!important;box-shadow:0 8px 18px color-mix(in srgb,var(--theme-primary) 28%,transparent)!important}
body[data-theme-runtime="v136"] .workshop-link strong{font-size:15px!important;font-weight:820!important}
body[data-theme-runtime="v136"] .workshop-link small{font-size:11.5px!important;line-height:1.55!important}
body[data-theme-runtime="v136"] .workshop-arrow{font-size:23px!important;color:var(--theme-accent)!important;transition:transform var(--motion-fast) ease!important}
body[data-theme-runtime="v136"] .workshop-link:hover .workshop-arrow{transform:translateX(-2px)}
html[dir="ltr"] body[data-theme-runtime="v136"] .workshop-link:hover .workshop-arrow{transform:translateX(2px)}
body[data-theme-runtime="v136"] .workshop-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin-top:7px!important}
body[data-theme-runtime="v136"] .workshop-actions button{min-height:31px!important;font-size:11.5px!important;font-weight:720!important;border-radius:9px!important}

/* Common controls */
body[data-theme-runtime="v136"] :is(.btn,.icon-button,.layout-toggle,.search-shortcut,.chat-head-btn,.notification-read-all,.notification-tabs button,.chat-filter-row button){transition:background var(--motion-fast) ease,border-color var(--motion-fast) ease,color var(--motion-fast) ease,transform var(--motion-fast) ease,box-shadow var(--motion-fast) ease!important}
body[data-theme-runtime="v136"] .btn{min-height:var(--control-h)!important;border-radius:var(--control-radius)!important;font-weight:760!important;padding-inline:15px!important;box-shadow:0 3px 10px color-mix(in srgb,var(--theme-primary) 7%,transparent)}
body[data-theme-runtime="v136"] .btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 20px color-mix(in srgb,var(--theme-primary) 14%,transparent)}
body[data-theme-runtime="v136"] .btn.primary{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;color:#fff!important;border-color:transparent!important}
body[data-theme-runtime="v136"] .icon-button{border-radius:11px!important}
body[data-theme-runtime="v136"] .icon-button:hover{color:var(--theme-primary)!important;background:color-mix(in srgb,var(--theme-primary) 9%,var(--theme-surface))!important;transform:translateY(-1px)}
body[data-theme-runtime="v136"] :is(.input,.select,.textarea,input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:var(--control-h);border-radius:var(--control-radius)!important;border-color:var(--theme-border)!important;background:var(--theme-surface)!important;color:var(--ink)!important;transition:border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,background var(--motion-fast) ease!important}
body[data-theme-runtime="v136"] :is(.input,.select,.textarea,input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:color-mix(in srgb,var(--theme-primary) 72%,var(--theme-border))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 13%,transparent)!important;outline:none!important}
body[data-theme-runtime="v136"] .searchable-select-list{padding:6px!important;box-shadow:0 18px 44px rgba(15,23,42,.14)!important}
body[data-theme-runtime="v136"] .searchable-select-list button{border-radius:9px!important;min-height:38px!important;font-size:14px!important}

/* Notifications */
body[data-theme-runtime="v136"] .notification-popover{width:min(430px,calc(100vw - 24px))!important;max-height:min(640px,78vh)!important;padding:0!important;overflow:hidden!important;box-shadow:0 24px 70px rgba(8,20,40,.22)!important}
body[data-theme-runtime="v136"] .notification-popover-head{padding:15px 16px 10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border-bottom:0!important}
body[data-theme-runtime="v136"] .notification-popover-head small{display:block;color:var(--muted);font-size:11px;font-weight:700}
body[data-theme-runtime="v136"] .notification-popover-head h3{margin:2px 0 0!important;font-size:18px!important}.notification-popover-head h3 span{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:color-mix(in srgb,var(--theme-primary) 10%,var(--theme-surface));color:var(--theme-primary);font-size:11px}
body[data-theme-runtime="v136"] .notification-read-all{border:1px solid var(--theme-border)!important;background:var(--theme-surface-soft)!important;color:var(--theme-primary)!important;border-radius:9px!important;padding:7px 10px!important;font-weight:700!important}
body[data-theme-runtime="v136"] .notification-tabs{display:flex;gap:5px;padding:0 14px 10px;border-bottom:1px solid var(--theme-border)}
body[data-theme-runtime="v136"] .notification-tabs button{border:0;background:transparent;color:var(--muted);padding:7px 10px;border-radius:9px;font-weight:700;cursor:pointer}
body[data-theme-runtime="v136"] .notification-tabs button.active{background:color-mix(in srgb,var(--theme-primary) 10%,var(--theme-surface));color:var(--theme-primary)}
body[data-theme-runtime="v136"] .notification-list{padding:7px!important;overflow:auto!important;max-height:490px!important}
body[data-theme-runtime="v136"] .notification-item{display:grid!important;grid-template-columns:36px 1fr 28px!important;gap:10px!important;align-items:start!important;padding:11px!important;border:1px solid transparent!important;border-radius:12px!important;margin:2px 0!important;background:transparent!important}
body[data-theme-runtime="v136"] .notification-item.is-unread{background:color-mix(in srgb,var(--theme-primary) 5%,var(--theme-surface))!important;border-color:color-mix(in srgb,var(--theme-primary) 11%,var(--theme-border))!important}
body[data-theme-runtime="v136"] .notification-type-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--theme-primary) 10%,var(--theme-surface));color:var(--theme-primary)}
body[data-theme-runtime="v136"] .notification-type-icon svg{width:17px;height:17px}.notification-item-body{min-width:0}
body[data-theme-runtime="v136"] .notification-item-head{display:flex;justify-content:space-between;gap:8px;align-items:start}.notification-item-head strong{font-size:13.5px}.notification-item-head time{font-size:10.5px;color:var(--muted);white-space:nowrap}
body[data-theme-runtime="v136"] .notification-item p{font-size:12.5px;line-height:1.55;margin:4px 0;color:var(--ink)}
body[data-theme-runtime="v136"] .notification-mark-one{width:27px;height:27px;border-radius:8px;border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-primary);cursor:pointer}
body[data-theme-runtime="v136"] .notification-detail{display:grid;gap:2px;padding:7px 9px;margin-top:7px;border-radius:9px;background:var(--theme-surface-soft);color:var(--theme-primary);text-decoration:none}.notification-detail small{color:var(--muted)}
body[data-theme-runtime="v136"] .notification-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:var(--muted)}.notification-empty svg{width:28px;height:28px;color:var(--theme-primary)}

/* Team chat */
body[data-theme-runtime="v136"] .chose-chat{width:min(920px,calc(100vw - 28px))!important;height:min(700px,86vh)!important;border-radius:18px!important;box-shadow:0 28px 90px rgba(8,20,40,.26)!important;overflow:hidden!important}
body[data-theme-runtime="v136"] .chose-chat__head{min-height:64px!important;padding:10px 14px!important;border-bottom:1px solid var(--theme-border)!important}
body[data-theme-runtime="v136"] .chose-chat__title{display:flex!important;align-items:center!important;gap:10px!important}.chat-brand-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2));color:#fff;box-shadow:0 8px 20px color-mix(in srgb,var(--theme-primary) 22%,transparent)}.chat-brand-icon svg{width:19px;height:19px}.chose-chat__title strong{font-size:16px}.chose-chat__title small{display:block;color:var(--muted);font-size:11px}
body[data-theme-runtime="v136"] .chose-chat__shell{grid-template-columns:310px minmax(0,1fr)!important;min-height:0!important}
body[data-theme-runtime="v136"] .chose-chat__list{padding:10px!important;background:color-mix(in srgb,var(--theme-surface-soft) 62%,var(--theme-surface))!important;border-inline-end:1px solid var(--theme-border)!important;overflow:auto!important}
body[data-theme-runtime="v136"] .chat-filter-row{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:8px}.chat-filter-row button{border:1px solid transparent;background:transparent;color:var(--muted);border-radius:8px;padding:6px 4px;font-size:11px;font-weight:700;cursor:pointer}.chat-filter-row button.active{background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-primary);box-shadow:0 4px 12px rgba(15,23,42,.05)}
body[data-theme-runtime="v136"] .chose-chat__search{margin-bottom:7px}.chose-chat__search .input{width:100%!important;min-height:38px!important}
body[data-theme-runtime="v136"] .chose-chat__conversation{display:grid!important;grid-template-columns:34px 1fr auto!important;align-items:center!important;gap:8px!important;width:100%!important;text-align:start!important;padding:9px!important;margin:3px 0!important;border-radius:11px!important;border:1px solid transparent!important;background:transparent!important;color:var(--ink)!important;cursor:pointer!important}.chose-chat__conversation:hover{background:var(--theme-surface)!important;border-color:var(--theme-border)!important}.chose-chat__conversation.active{background:color-mix(in srgb,var(--theme-primary) 8%,var(--theme-surface))!important;border-color:color-mix(in srgb,var(--theme-primary) 20%,var(--theme-border))!important}.chat-conversation-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--theme-primary) 8%,var(--theme-surface));color:var(--theme-primary)}.chat-conversation-icon svg{width:16px;height:16px}.chose-chat__conversation strong{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chose-chat__conversation small{display:block;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
body[data-theme-runtime="v136"] .chose-chat__active{display:grid!important;grid-template-rows:auto 1fr auto!important;min-width:0!important;background:var(--theme-surface)!important}.chose-chat__active-head{min-height:58px;padding:10px 14px!important;border-bottom:1px solid var(--theme-border)!important;display:flex;align-items:center;justify-content:space-between}.chose-chat__active-head small{display:block;font-size:10.5px;color:var(--theme-primary);font-weight:750}.chose-chat__active-head strong{font-size:14.5px}
body[data-theme-runtime="v136"] .chose-chat__messages{padding:14px!important;overflow:auto!important;display:flex!important;flex-direction:column!important;gap:9px!important;background:linear-gradient(180deg,var(--theme-surface),color-mix(in srgb,var(--theme-surface-soft) 68%,var(--theme-surface)))!important}.chose-chat__message{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:8px!important;max-width:78%!important;align-self:flex-start!important;padding:0!important;background:transparent!important}.chose-chat__message.mine{align-self:flex-end!important;grid-template-columns:minmax(0,1fr) 32px!important}.chose-chat__message.mine .chat-avatar{grid-column:2}.chose-chat__message.mine>div:not(.chat-avatar){grid-row:1;grid-column:1}.chat-avatar{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--theme-primary) 11%,var(--theme-surface));color:var(--theme-primary);font-weight:800}.chose-chat__message>div:not(.chat-avatar){padding:9px 11px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);box-shadow:0 5px 15px rgba(15,23,42,.045)}.chose-chat__message.mine>div:not(.chat-avatar){background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2));border-color:transparent;color:#fff}.chose-chat__message p{margin:3px 0;font-size:13px;line-height:1.55}.chose-chat__message strong{font-size:11px}.chose-chat__message time{font-size:9.5px;color:var(--muted)}.chose-chat__message.mine time{color:rgba(255,255,255,.7)}
body[data-theme-runtime="v136"] .chose-chat__form{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;padding:10px 12px!important;border-top:1px solid var(--theme-border)!important;background:var(--theme-surface)!important}.chose-chat__form .input{width:100%!important}.chose-chat__form .btn{min-width:94px!important;display:flex!important;gap:6px!important;align-items:center!important;justify-content:center!important}
body[data-theme-runtime="v136"] .chose-chat__empty{display:grid;place-items:center;align-content:center;gap:7px;min-height:180px;text-align:center;color:var(--muted)}.chose-chat__empty svg{width:28px;height:28px;color:var(--theme-primary)}

/* NOVA */
body[data-theme-runtime="v136"] .assistant-overlay,body[data-theme-runtime="v136"] .khulasa-page__panel{box-shadow:0 22px 70px rgba(8,20,40,.18)!important}
body[data-theme-runtime="v136"] .khulasa-assistant-fab{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-2))!important;border:1px solid color-mix(in srgb,var(--theme-accent) 25%,transparent)!important;box-shadow:0 12px 34px color-mix(in srgb,var(--theme-primary) 30%,transparent)!important}
body[data-theme-runtime="v136"] .khulasa-assistant-fab:hover{transform:translateY(-2px) scale(1.02)!important}

/* Mobile */
@media(max-width:900px){body[data-theme-runtime="v136"] .shell{--workspace-sidebar:286px}body[data-theme-runtime="v136"] .chose-chat{width:min(96vw,760px)!important}.chose-chat__shell{grid-template-columns:260px minmax(0,1fr)!important}}
@media(max-width:660px){body[data-theme-runtime="v136"] .sidebar{font-size:15px!important}.chose-chat__shell{grid-template-columns:1fr!important}.chose-chat__list{max-height:245px;border-inline-end:0!important;border-bottom:1px solid var(--theme-border)!important}.chose-chat__message{max-width:90%!important}.notification-popover{position:fixed!important;inset-inline:10px!important;top:68px!important;width:auto!important}}
@media(prefers-reduced-motion:reduce){body[data-theme-runtime="v136"] *,body[data-theme-runtime="v136"] *:before,body[data-theme-runtime="v136"] *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* ============================================================
   EGB v1.3.8 — runtime theme coherence and interaction stability
   This final layer removes fixed white Nova/sidebar surfaces without
   changing legacy visual-parity selectors or the permission model.
   ============================================================ */
body[data-theme-runtime="v136"] {
  --workspace-on-sidebar:#f8fafc;
  --workspace-sidebar-muted:rgba(248,250,252,.78);
  --workspace-sidebar-card:rgba(255,255,255,.075);
  --workspace-sidebar-card-border:rgba(255,255,255,.16);
}
body[data-theme-runtime="v136"] .sidebar-workshop {
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  flex:0 0 auto!important;
  padding:12px!important;
  color:var(--workspace-on-sidebar)!important;
  background:var(--workspace-sidebar-card)!important;
  border:1px solid var(--workspace-sidebar-card-border)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.045)!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-link {
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  margin:9px 0 0!important;
  padding:10px!important;
  text-align:start!important;
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.095)!important;
  color:var(--workspace-on-sidebar)!important;
  box-shadow:none!important;
  transition:background-color 140ms ease,border-color 140ms ease!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-link:hover {
  transform:none!important;
  background:rgba(255,255,255,.11)!important;
  border-color:rgba(255,255,255,.22)!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-link > span:nth-child(2){min-width:0;flex:1}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-link strong{
  display:block!important;color:var(--workspace-on-sidebar)!important;
  font-size:13.5px!important;line-height:1.45!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-link small{
  display:block!important;color:var(--workspace-sidebar-muted)!important;
  font-size:11.5px!important;line-height:1.65!important;white-space:normal!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-kicker small{
  background:rgba(52,211,153,.13)!important;color:#b9fbe1!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-kicker i{background:#34d399!important}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-orb{
  flex:none;color:#fff!important;background:var(--theme-primary)!important;
  box-shadow:0 4px 14px color-mix(in srgb,var(--theme-primary) 28%,transparent)!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-arrow{
  flex:none;color:var(--workspace-sidebar-muted)!important;margin-inline-start:auto!important;
}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
body[data-theme-runtime="v136"] .sidebar-workshop .workshop-actions button{
  min-height:32px!important;border-radius:9px!important;font-size:11px!important;
  background:rgba(255,255,255,.065)!important;color:var(--workspace-on-sidebar)!important;
}
/* Assistant page, the drawer and its results all obey the selected theme. */
body[data-theme-runtime="v136"] .khulasa-page{
  background:var(--theme-bg)!important;color:var(--ink)!important;
}
body[data-theme-runtime="v136"] .khulasa-page__top,
body[data-theme-runtime="v136"] .khulasa-page__foot{
  background:var(--theme-bg)!important;border-color:var(--theme-border)!important;color:var(--muted)!important;
}
body[data-theme-runtime="v136"] .khulasa-page__top a,
body[data-theme-runtime="v136"] .khulasa-page__top strong{
  color:var(--ink)!important;
}
body[data-theme-runtime="v136"] .khulasa-page__top small{color:var(--theme-primary)!important}
body[data-theme-runtime="v136"] .khulasa-logo,
body[data-theme-runtime="v136"] .khulasa-line span,
body[data-theme-runtime="v136"] .khulasa-send,
body[data-theme-runtime="v136"] .assistant-msg span{
  background:var(--theme-primary)!important;color:#fff!important;box-shadow:none!important;
}
body[data-theme-runtime="v136"] .khulasa-page__panel,
body[data-theme-runtime="v136"] .khulasa-workshop,
body[data-theme-runtime="v136"] .assistant-overlay{
  background:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important;
}
body[data-theme-runtime="v136"] :is(.khulasa-line p,.khulasa-user-line p,.assistant-msg p,.assistant-overlay__detail,.khulasa-workshop article){
  color:var(--ink)!important;background:var(--theme-surface-soft)!important;border-color:var(--theme-border)!important;
}
body[data-theme-runtime="v136"] .khulasa-user-line p{
  background:color-mix(in srgb,var(--theme-primary) 12%,var(--theme-surface))!important;
}
body[data-theme-runtime="v136"] .assistant-overlay__head,
body[data-theme-runtime="v136"] .assistant-overlay__foot{
  background:var(--theme-surface)!important;color:var(--ink)!important;border-color:var(--theme-border)!important;
}
body[data-theme-runtime="v136"] .assistant-overlay__head small{color:var(--theme-primary)!important}
body[data-theme-runtime="v136"] .khulasa-results button,
body[data-theme-runtime="v136"] .khulasa-conversation-actions button,
body[data-theme-runtime="v136"] .zattar-chip{
  background:var(--theme-surface-soft)!important;color:var(--ink)!important;border-color:var(--theme-border)!important;
}
body[data-theme-runtime="v136"] .khulasa-results button:hover,
body[data-theme-runtime="v136"] .zattar-chip:hover{
  background:color-mix(in srgb,var(--theme-primary) 9%,var(--theme-surface))!important;
  border-color:var(--theme-primary)!important;
}
body[data-theme-runtime="v136"] [data-nova-busy]{
  padding:10px 12px;border:1px solid var(--theme-border);border-radius:12px;
  color:var(--muted);background:var(--theme-surface-soft);font-size:12px;
}
body[data-theme-runtime="v136"] .khulasa-assistant-fab,
body[data-theme-runtime="v136"] .assistant-overlay,
body[data-theme-runtime="v136"] .khulasa-page__panel,
body[data-theme-runtime="v136"] .workshop-orb{
  animation:none!important;
}
body[data-theme-runtime="v136"] .khulasa-assistant-fab:hover{transform:none!important}
body[data-theme-runtime="v136"] [hidden]{display:none!important}
body[data-theme-runtime="v136"] .chose-chat__active,
body[data-theme-runtime="v136"] .chose-chat__messages,
body[data-theme-runtime="v136"] .chose-chat__list{
  min-height:0;overscroll-behavior:contain;
}
body[data-theme-runtime="v136"] .chose-chat__conversation:focus-visible,
body[data-theme-runtime="v136"] .workshop-link:focus-visible,
body[data-theme-runtime="v136"] .theme-card:focus-visible{
  outline:2px solid var(--theme-primary)!important;outline-offset:2px!important;
}


/* ============================================================
   EGB v1.3.9 — interactive theme picker stacking/context fix.
   The picker lives INSIDE the sticky topbar. A z-index on the
   child is insufficient: the topbar itself must be above the
   separately mounted, fixed full-screen backdrop.
   ============================================================ */
body[data-theme-runtime="v136"] .topbar.theme-menu-open,
body[data-theme-runtime="v136"] .topbar:has(.theme-popover){
  z-index:64!important;
  overflow:visible!important;
}
body[data-theme-runtime="v136"] .topbar.theme-menu-open .theme-anchor,
body[data-theme-runtime="v136"] .topbar:has(.theme-popover) .theme-anchor{
  z-index:1!important;
}
body[data-theme-runtime="v136"] .theme-popover{
  z-index:65!important;
  max-height:min(86dvh,800px);
  overflow-y:auto;
  overscroll-behavior:contain;
  color:var(--ink)!important;
  background:var(--theme-surface)!important;
}
body[data-theme-runtime="v136"] .theme-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:42!important;
  background:transparent!important;
}
body[data-theme-runtime="v136"] .theme-popover button:focus-visible{
  outline:2px solid var(--theme-primary)!important;
  outline-offset:2px;
}
@media(max-width:760px){
  body[data-theme-runtime="v136"] .theme-popover{
    max-height:calc(100dvh - 88px)!important;
    top:68px!important;
    overscroll-behavior:contain;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme-runtime="v136"] .theme-popover *,
  body[data-theme-runtime="v136"] .theme-card{transition:none!important;}
}
