@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;450;500;600;700&family=Inter:wght@400;500;600;700&display=swap');
:root{font-family:'Inter','IBM Plex Sans Arabic',system-ui,sans-serif;color:#18383e;background:#f3f6f7;font-size:16px;--ink:#173b40;--muted:#718287;--teal:#00796d;--line:#e0e8e9;--nav:#102c32;--gold:#d4ad65;--danger:#a13d3d}*{box-sizing:border-box}body{margin:0}html[lang=ar]{font-family:'IBM Plex Sans Arabic','Inter',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button{border:1px solid var(--line);background:white;border-radius:9px;padding:10px 16px;color:var(--ink);font-weight:500;transition:.16s}button:hover{border-color:#88aaa6;background:#f4f9f8}button:disabled{opacity:.5;cursor:wait}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#006256;color:#fff}.danger{color:var(--danger)}.quiet{background:transparent;border-color:transparent}.small{font-size:.85rem;padding:6px 10px}h1,h2,h3,p{margin-top:0}h1{font-size:1.8rem;letter-spacing:-.04em;font-weight:600;margin-bottom:8px}h2{font-size:1.16rem;letter-spacing:-.015em}h3{font-size:1rem}p{line-height:1.8}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.75rem;font-weight:600;color:#66958e}.shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#acbec1;padding:30px 18px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:#fff;padding:0 10px 26px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border:1px solid #5c8785;border-radius:12px;color:#88d8c4;font-weight:700;font-size:1.3rem;transform:rotate(-5deg)}.brand-name{font-family:Inter,sans-serif;font-size:.94rem;font-weight:600;line-height:1.45}.brand-name small{display:block;color:#88a5a8;font-size:.65rem;letter-spacing:.13em;font-weight:400}.tenant-card{border:1px solid #2f4b50;background:#1a383e;padding:14px;border-radius:10px;margin:0 4px 22px}.tenant-card select{width:100%;background:transparent;color:white;border:0;padding:0;font-size:.85rem}.tenant-card option{color:#173b40}.tenant-card span{display:block;font-size:.75rem;color:#86a6aa;margin-top:7px}.nav-scroll{overflow:auto;scrollbar-width:thin;flex:1}.nav-group{font-size:.67rem;letter-spacing:.09em;text-transform:uppercase;color:#66888e;margin:20px 14px 8px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#a9bec2;text-align:start;font-weight:400;padding:10px 14px;font-size:.87rem;margin:2px 0}.nav-item:hover{background:#1c3c43;border:0;color:#fff}.nav-item.active{background:#26474b;color:#b3e8d6;box-shadow:inset -3px 0 #9dd8c1}.nav-item svg{width:18px;height:18px;opacity:.9}.sidebar-foot{border-top:1px solid #2b464b;padding:18px 8px 0;display:flex;gap:10px;align-items:center;font-size:.85rem}.avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#d1e9e1;color:#246354;font-weight:600;flex:none}.sidebar-foot small{display:block;font-size:.7rem;color:#77969c}.main{min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;gap:16px}.breadcrumb{font-size:.83rem;color:var(--muted);display:flex;align-items:center;gap:10px}.top-actions{display:flex;gap:12px;align-items:center}.live-label{font-size:.75rem;padding:6px 10px;border-radius:6px;background:#f0f5f4;color:#62827d}.content{padding:34px 38px 50px;max-width:1700px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-head p{font-size:.9rem;color:var(--muted);margin-bottom:0}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hero{background:var(--nav);color:#e9f3ef;border-radius:14px;padding:30px;display:flex;justify-content:space-between;gap:24px;margin-bottom:26px;overflow:hidden;position:relative}.hero:after{content:'';width:220px;height:220px;border:1px solid #37575b;border-radius:50%;position:absolute;inset-inline-end:-60px;top:-65px;box-shadow:0 0 0 30px #23424966,0 0 0 60px #23424933;pointer-events:none}.hero h2{font-size:1.6rem;margin:10px 0}.hero p{max-width:580px;color:#a2bfc1;font-size:.89rem;margin:0}.hero .hero-stat{z-index:1;min-width:130px;border-inline-start:1px solid #3b565a;padding-inline-start:30px;align-self:center}.hero-stat strong{font-size:2.3rem;font-weight:500;display:block;color:#b3ddc8}.hero-stat span{font-size:.8rem;color:#adc7c9}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;position:relative}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.85rem;gap:10px}.stat-icon{color:#5b8c80;background:#eff7f3;border-radius:8px;padding:7px;line-height:0}.stat-icon svg{height:18px;width:18px}.stat strong{display:block;font-size:2rem;font-weight:600;letter-spacing:-.04em;margin:12px 0 4px}.stat small{color:var(--muted);font-size:.75rem}.grid2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px;margin-bottom:24px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.panel-head h2{margin:0}.panel-head p{font-size:.8rem;margin:5px 0 0;color:var(--muted)}.row{display:flex;gap:12px;align-items:center;justify-content:space-between}.cycle-row{padding:18px 0;border-top:1px solid #edf1f2}.cycle-row:first-of-type{border-top:0}.cycle-title{font-size:.91rem;font-weight:500;margin-bottom:5px}.cycle-sub{color:var(--muted);font-size:.75rem}.progress{height:6px;border-radius:6px;background:#edf2f2;overflow:hidden;margin:12px 0 0}.progress i{display:block;height:100%;background:#278b79;border-radius:6px}.badge{display:inline-flex;align-items:center;padding:4px 9px;white-space:nowrap;border-radius:5px;background:#f0f3f4;color:#61777c;font-size:.72rem;line-height:1.6}.badge.active,.badge.approved,.badge.completed,.badge.submitted{background:#e7f4ed;color:#357459}.badge.review,.badge.high,.badge.open,.badge.pending{background:#fff3dd;color:#a37931}.badge.critical,.badge.overdue{background:#fcebe9;color:#a14b45}.bar-chart{display:flex;align-items:end;gap:20px;height:180px;border-bottom:1px solid var(--line);margin:28px 4px 32px}.chart-column{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:6px;position:relative}.chart-column .bar{width:50%;max-width:60px;background:#3b8b7d;border-radius:5px 5px 0 0;min-height:2px}.chart-column strong{font-size:.8rem;color:#3c7067}.chart-column label{position:absolute;top:calc(100% + 8px);font-size:.7rem;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feed-item{padding:14px 0;display:flex;gap:12px;border-bottom:1px solid #eef2f2}.feed-item:last-child{border:0}.feed-icon{height:30px;width:30px;border-radius:8px;background:#eff5f4;display:grid;place-items:center;flex:none;font-size:.8rem;color:#5c8b81}.feed-item p{margin:0;font-size:.85rem;line-height:1.65}.feed-item small{font-size:.72rem;color:var(--muted)}.toolbar{display:flex;gap:12px;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.search{min-width:240px}.filters{display:flex;gap:10px;flex-wrap:wrap}input,select,textarea{border:1px solid #d9e3e4;background:#fff;color:var(--ink);padding:10px 12px;border-radius:8px;max-width:100%}select{padding-inline-end:30px}input:focus,select:focus,textarea:focus{border-color:var(--teal)}textarea{resize:vertical;min-height:100px;line-height:1.7}input[type=checkbox]{accent-color:var(--teal);width:18px;height:18px}.table-wrap{border:1px solid var(--line);border-radius:11px;background:white;overflow:auto}table{border-collapse:collapse;width:100%;font-size:.84rem;white-space:nowrap}th{text-align:start;background:#f8fafa;font-size:.75rem;font-weight:500;color:var(--muted);padding:14px 18px;border-bottom:1px solid var(--line)}td{padding:16px 18px;border-bottom:1px solid #edf1f2;max-width:340px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}tr:hover td{background:#fafdfc}.cell-title{font-weight:500}.cell-sub{color:var(--muted);font-size:.75rem;margin-top:4px}.table-actions{display:flex;gap:5px}.count-label{font-size:.8rem;color:var(--muted);padding:14px 4px}.empty{text-align:center;padding:64px 20px;color:var(--muted)}.empty h3{color:var(--ink);margin-top:18px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.model-card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:14px}.model-card h2{font-size:1.1rem;line-height:1.6;margin:0}.model-card p{font-size:.85rem;color:var(--muted);margin:0}.card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:16px;margin-top:auto}.tree-node{border-inline-start:2px solid #d9e8e3;margin-inline-start:18px;padding-inline-start:18px;margin-top:10px}.tree-card{background:white;border:1px solid var(--line);border-radius:8px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.tree-card h3{margin:0 0 5px;font-size:.95rem}.tree-card small{font-size:.75rem;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(720px,calc(100% - 32px));max-height:90vh;box-shadow:0 30px 100px #0b2b3540;background:#fff;color:var(--ink)}dialog::backdrop{background:#0d252c77;backdrop-filter:blur(3px)}.modal-head{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:2}.modal-head h2{margin:0}.modal-body{padding:24px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:8px;font-size:.85rem}.field.wide{grid-column:1/-1}.field label{color:#436169;font-weight:500}.field .help{font-size:.75rem;color:var(--muted)}.check-field{flex-direction:row;align-items:center;gap:10px}.modal-foot{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fafcfc;position:sticky;bottom:0}.error{padding:12px 16px;background:#fceeee;color:#9f3b3b;font-size:.85rem;border-radius:8px;margin-bottom:18px;white-space:pre-wrap}.notice{padding:14px 18px;background:#edf5f3;border:1px solid #d6e8e0;border-radius:9px;font-size:.85rem;line-height:1.8;margin-bottom:20px}.notice.warning{background:#fff6e6;border-color:#f0dfbc;color:#8d6c31}.levels{display:flex;flex-direction:column;gap:8px}.level-row{display:grid;grid-template-columns:1fr 100px 34px;gap:8px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:12px}.checks label{font-weight:400;display:flex;gap:8px;align-items:center;font-size:.8rem;line-height:1.5}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-row{padding:12px 0;border-bottom:1px solid var(--line);font-size:.86rem;line-height:1.8;overflow-wrap:anywhere}.detail-row strong{display:block;font-weight:500;font-size:.75rem;color:var(--muted)}.detail-text{white-space:pre-wrap}.source-link{color:var(--teal);background:#edf6f3;border:0;font-size:.8rem;padding:5px 9px;margin:3px;border-radius:5px;display:inline-block}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px}.work-list{background:white;border:1px solid var(--line);border-radius:12px;padding:10px;max-height:80vh;overflow:auto}.work-item{width:100%;padding:16px;text-align:start;border:0;border-radius:8px;background:white;display:block;line-height:1.7;margin-bottom:5px}.work-item.active{background:#eaf4ef;color:#176c57}.work-item small{display:block;color:var(--muted);font-weight:400;font-size:.75rem}.rubric{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));margin:20px 0}.rubric label{border:1px solid var(--line);border-radius:9px;padding:14px 12px;display:flex;gap:10px;flex-direction:column;font-size:.8rem;cursor:pointer}.rubric label:has(input:checked){border-color:var(--teal);background:#edf7f1}.rubric strong{font-size:1.3rem}.work-heading{display:flex;justify-content:space-between;gap:12px}.evidence-item{padding:14px;background:#f7faf9;border:1px solid var(--line);border-radius:8px;margin:10px 0;display:flex;justify-content:space-between;gap:12px}.evidence-item strong{font-size:.85rem;display:block}.evidence-item small{color:var(--muted);font-size:.75rem}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.tabs button{border:0;border-radius:0;background:transparent;white-space:nowrap;padding:14px 18px;color:var(--muted)}.tabs button.active{color:var(--teal);border-bottom:2px solid var(--teal)}.synthesis-card{border:1px solid var(--line);border-radius:12px;background:white;padding:24px;margin:20px 0}.synthesis-card p{font-size:.9rem;white-space:pre-wrap}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-story{background:var(--nav);padding:60px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;color:white}.login-story h1{font-size:3rem;line-height:1.4;margin:40px 0 20px;max-width:550px}.login-story p{color:#adc5c8;font-size:1rem;max-width:480px}.login-story .brand{padding:0}.login-story .orbit{height:360px;width:360px;border:1px solid #3b5c62;border-radius:50%;position:absolute;bottom:-210px;inset-inline-end:-50px;box-shadow:0 0 0 70px #25434a55,0 0 0 140px #25434a33}.login-form{display:flex;align-items:center;justify-content:center;padding:45px}.auth-box{width:100%;max-width:400px}.auth-box h2{font-size:1.7rem}.auth-box .field{margin-bottom:20px}.auth-box .primary{width:100%;padding:13px}.auth-switch{font-size:.85rem;text-align:center;margin-top:20px}.loading{height:100vh;display:grid;place-items:center;color:var(--teal)}#toast{position:fixed;bottom:26px;inset-inline-end:28px;background:var(--nav);color:white;padding:13px 22px;border-radius:10px;box-shadow:0 4px 25px #173b4030;z-index:100;display:none;font-size:.85rem;max-width:90vw}.menu-toggle{display:none}.mobile-title{display:none}.permission-box{border:1px solid var(--line);border-radius:9px;padding:14px;display:flex;flex-direction:column;gap:10px}.permission-box label{display:flex;gap:10px;font-size:.85rem}.pending{color:#a57e3f}.trend-table{white-space:normal}.subtle{font-size:.8rem;color:var(--muted)}.divider{border:0;border-top:1px solid var(--line);margin:24px 0}.full{grid-column:1/-1}.mono{font-family:ui-monospace,monospace;font-size:.75rem;direction:ltr}.review-strip{padding:16px;border:1px solid #ecd9ad;background:#fff8e9;border-radius:8px;line-height:1.8;font-size:.85rem;margin:18px 0}footer{font-size:.75rem;color:#8a9b9e;margin-top:34px;display:flex;justify-content:space-between;gap:20px}.hidden{display:none!important}
@media(min-width:1600px){.content{padding:42px 52px}.topbar{padding:0 52px}}
@media(max-width:1200px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:28px 24px}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:16px}.workspace{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:950px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:25px 10px}.brand{gap:9px}.brand-name{font-size:.78rem}.grid2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:1fr}.work-list{max-height:220px}.login-story{padding:36px}.login-story h1{font-size:2.4rem}.breadcrumb{display:none}}
@media(max-width:680px){.shell{display:block}.sidebar{display:none;position:fixed;inset-inline-start:0;top:0;bottom:0;width:270px;z-index:20;box-shadow:0 0 0 100vw #0d252c77}.shell.menu-open .sidebar{display:flex}.menu-toggle{display:block}.topbar{height:66px;padding:0 18px}.top-actions{gap:4px}.live-label{display:none}.mobile-title{display:block;font-size:.85rem}.content{padding:24px 18px}.page-head{align-items:flex-start;gap:14px}.page-head h1{font-size:1.5rem}.page-head p{font-size:.8rem}.page-head .actions button{padding:9px 11px;font-size:.8rem}.hero{padding:22px}.hero h2{font-size:1.2rem}.hero p{font-size:.8rem}.hero-stat{display:none}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:1.7rem}.stat-top{font-size:.75rem}.stat-icon{display:none}.panel{padding:20px}.cards{grid-template-columns:1fr}.form-grid,.detail-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}.modal-head{padding:18px}.modal-body{padding:20px}.modal-foot{padding:16px 20px}.checks{grid-template-columns:1fr}.login{display:block}.login-story{padding:28px}.login-story h1{font-size:1.5rem;margin:24px 0 10px}.login-story p{font-size:.85rem;margin-bottom:0}.login-form{padding:30px 24px}.search{width:100%;min-width:0}.toolbar .filters{width:100%}.toolbar select{flex:1;min-width:120px}th,td{padding:12px}.tree-node{padding-inline-start:10px;margin-inline-start:8px}.tree-card{padding:12px}.tree-card .actions{gap:0}.tree-card h3{font-size:.85rem}.rubric{grid-template-columns:repeat(2,1fr)}.work-heading{display:block}.detail-row{font-size:.8rem}footer{font-size:.65rem}.synthesis-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
