@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/plex-arabic-400.ttf') format('truetype')}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/plex-arabic-500.ttf') format('truetype')}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/plex-arabic-600.ttf') format('truetype')}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/plex-arabic-700.ttf') format('truetype')}
:root{--bg:#f4f6f8;--ink:#172d36;--muted:#697c84;--line:#e2e8eb;--green:#174c43;--lime:#d5edb2;--white:#fff;--blue:#4476a2;--red:#b64444;--amber:#94651e;font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #578cbd}button{border:1px solid var(--line);background:white;border-radius:9px;padding:9px 15px;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500;transition:background .15s,box-shadow .15s}button:hover{background:#eef3f2}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#236456}button.ghost{background:transparent;border-color:transparent}button.small{padding:5px 10px;font-size:.875rem}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:28px 18px;position:sticky;top:0;height:100vh;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 28px}.brand img{width:41px;height:41px}.brand strong{font-size:1.8rem;line-height:1}.brand small{display:block;color:var(--muted);font-size:.8rem;margin-top:5px}.workspace-switch{width:100%;justify-content:space-between;background:#f7f9fa;margin-bottom:28px;font-size:.875rem}.nav-label{font-size:.8rem;color:var(--muted);padding:0 12px;margin-bottom:10px}.nav{display:grid;gap:6px}.nav button{justify-content:flex-start;padding:11px 13px;border:0;color:#526974;background:none}.nav button.active{background:#eaf3ee;color:var(--green);font-weight:600}.nav .count{margin-right:auto;font-size:.8rem;background:#e8edef;padding:0 7px;border-radius:5px}.nav button.active .count{background:#d8e9df}.side-project{margin-top:30px}.project-dot{width:9px;height:9px;background:#4a7fbd;border-radius:3px;flex-shrink:0}.side-project button{font-size:.875rem;width:100%;justify-content:flex-start;overflow:hidden;text-align:right}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:18px;display:flex;gap:10px;align-items:center}.avatar{height:36px;width:36px;border-radius:50%;background:#e6ece8;color:#355348;display:grid;place-items:center;font-weight:600;flex-shrink:0}.side-bottom small{display:block;font-size:.75rem;color:var(--muted)}.main{min-width:0}.topbar{background:#ffffffdb;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);height:78px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:16px}.crumb{color:var(--muted);font-size:.875rem;display:flex;align-items:center;gap:14px}.crumb strong{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:8px}.save-label{font-size:.8rem;color:var(--muted);display:flex;gap:6px;align-items:center}.save-label .icon{width:16px;color:var(--green)}.content{max-width:1580px;margin:auto;padding:30px 38px 45px}.eyebrow{font-size:.8rem;color:var(--green);letter-spacing:.025em;font-weight:600;display:flex;align-items:center;gap:8px}h1{font-size:1.9rem;font-weight:600;line-height:1.5;margin:7px 0 8px;letter-spacing:-.5px}h2{font-size:1.12rem;margin:0;font-weight:600}h3{font-size:1rem;margin:0 0 8px}p{line-height:1.8}.muted{color:var(--muted)}.subtitle{margin:0;color:var(--muted);font-size:.94rem}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hero{border:1px solid #cedfd8;background:linear-gradient(115deg,#f4f9ed,#ecf4f1 65%);border-radius:14px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:30px;position:relative;overflow:hidden;margin-bottom:24px}.hero h2{font-size:1.35rem;margin:6px 0}.hero p{font-size:.875rem;color:#526c62;max-width:590px;margin:0}.hero-art{width:175px;height:112px;flex-shrink:0;position:relative;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(3,1fr);gap:7px;transform:rotate(-8deg);opacity:.8}.hero-art span{border-radius:5px;background:#d3e4d9;border:1px solid #bfd3c8}.hero-art span:nth-child(3n){background:#d7eab8}.hero-art span:nth-child(5n){background:#87afa1}.hero-art span:nth-child(7n){background:white}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:18px 20px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.875rem}.stat-top .icon{width:19px;color:#718d89}.stat strong{font-family:Arial,sans-serif;font-size:1.95rem;font-weight:500;display:block;margin:12px 0 8px;letter-spacing:-1px}.stat small{color:var(--muted);font-size:.8rem}.stat .good{color:var(--green)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.panel-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.panel-head p{margin:4px 0 0;font-size:.8rem;color:var(--muted)}.panel-body{padding:20px 22px}.badge{font-size:.75rem;display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:5px;white-space:nowrap;background:#edf1f4;color:#526b7b}.badge.green{background:#eaf5ed;color:#286449}.badge.amber{background:#fcf2df;color:#94651e}.badge.red{background:#fbecec;color:#ab4545}.badge.blue{background:#edf3fc;color:#4376a5}.project-card{padding:23px;border-bottom:1px solid var(--line);display:grid;gap:16px}.project-card:last-child{border-bottom:0}.project-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.project-card h3{font-size:1.1rem;margin:0 0 7px}.project-icon{width:44px;height:44px;border-radius:10px;background:#edf2fb;color:#527da4;display:grid;place-items:center;flex-shrink:0}.project-icon.green{background:#eaf4ed;color:#3e795d}.project-title{display:flex;gap:13px}.project-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);align-items:center}.project-meta span{display:flex;align-items:center;gap:5px}.project-meta .icon{width:15px;height:15px}.progress-line{height:5px;background:#edf1f3;border-radius:5px;overflow:hidden}.progress-line i{display:block;height:100%;background:#53816b;border-radius:5px;transition:width .3s}.project-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-footer small{color:var(--muted);font-size:.8rem}.quick-list{display:grid;gap:4px}.quick-list button{border:0;justify-content:flex-start;text-align:right;padding:13px 0;gap:12px}.quick-icon{width:37px;height:37px;display:grid;place-items:center;background:#f0f4f5;border-radius:9px;color:#587271}.quick-list strong{display:block;font-size:.875rem;font-weight:500}.quick-list small{color:var(--muted);font-weight:400;font-size:.75rem;display:block;margin-top:3px}.note{border-radius:10px;background:#f4f7f9;padding:15px;font-size:.8rem;color:#5c737c;line-height:1.9}.note.green{background:#eef6ef;color:#426b51}.activity{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #eff2f4}.activity:last-child{border:0}.activity .icon{width:17px;color:#738c86;margin-top:4px}.activity p{font-size:.875rem;margin:0}.activity small{font-size:.75rem;color:var(--muted)}.section-gap{margin-top:22px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.tabs button{border:0;background:none;border-radius:0;border-bottom:2px solid transparent;padding:12px 17px;white-space:nowrap;color:var(--muted)}.tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}.search{position:relative;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 12px}.search input{border:0;min-width:0;width:220px;background:none;outline:0;font-size:.875rem}.search .icon{color:var(--muted);width:17px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right;font-size:.875rem}th{color:var(--muted);background:#f8fafb;font-size:.8rem;font-weight:500}th,td{padding:13px 18px;border-bottom:1px solid var(--line)}td .secondary{display:block;color:var(--muted);font-size:.75rem;margin-top:3px}.table-wrap tr:last-child td{border:0}.calendar-wrap{overflow:auto}.calendar{display:grid;grid-template-columns:78px repeat(5,minmax(155px,1fr));min-width:900px;direction:rtl}.cal-head{padding:14px;text-align:center;border-bottom:1px solid var(--line);background:#fafbfc;font-size:.875rem;position:sticky;top:0}.cal-head small{display:block;color:var(--muted);font-size:.75rem}.cal-time{padding:18px 8px;color:var(--muted);font: .8rem Arial;text-align:center;border-bottom:1px solid var(--line)}.cal-cell{min-height:165px;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}.event{width:100%;border:1px solid #d9e8e1;border-right:3px solid #6d9c88;background:#f0f7f3;color:#315847;text-align:right;padding:9px 10px;border-radius:6px;display:block}.event.g2{background:#eef3fb;border-color:#d9e3f1;border-right-color:#6d91bd;color:#436180}.event.g3{background:#f6f0fb;border-color:#e9ddf3;border-right-color:#a487be;color:#755688}.event.g4{background:#fff6ea;border-color:#f2e4cd;border-right-color:#c39d62;color:#896a3b}.event strong{font-size:.8rem;font-weight:500;display:block;white-space:normal}.event small{font-size:.75rem;display:block;margin-top:3px;opacity:.8}.event .icon{height:12px;width:12px}.empty-cell{font-size:.75rem;color:#a3b1b7;align-self:center;margin:auto}.legend{display:flex;gap:20px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);padding:16px 22px}.legend span{display:flex;gap:7px;align-items:center}.legend i{width:9px;height:9px;border-radius:3px;background:#6d9c88}.legend span:nth-child(2) i{background:#6d91bd}.legend span:nth-child(3) i{background:#a487be}.legend span:nth-child(4) i{background:#c39d62}.dropzone{border:1.5px dashed #b9ccc4;border-radius:13px;background:#f8fbf9;padding:38px 25px;text-align:center;cursor:pointer;transition:background .2s}.dropzone:hover,.dropzone.dragover{background:#eaf4ed;border-color:var(--green)}.dropzone>.icon{height:38px;width:38px;color:#57826b;margin-bottom:12px}.dropzone h3{font-size:1.15rem}.dropzone p{color:var(--muted);font-size:.875rem;margin:6px 0 18px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:.875rem;font-weight:500}.field input,.field select,.field textarea{border:1px solid #d8e2e4;border-radius:8px;padding:10px 12px;background:white;color:var(--ink);width:100%;min-width:0}.field textarea{min-height:90px;resize:vertical}.field small{color:var(--muted);font-size:.75rem;line-height:1.8}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23697c84' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:left 10px center!important;padding-left:34px!important}.form-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:22px;margin-top:20px;border-top:1px solid var(--line)}.issue{border-bottom:1px solid var(--line);padding:18px 22px;display:flex;gap:12px;align-items:flex-start}.issue>.icon{color:#ad7b31;margin-top:3px}.issue strong{font-size:.875rem;font-weight:500}.issue p{font-size:.8rem;color:var(--muted);margin:4px 0 0}.empty{text-align:center;padding:50px 24px;color:var(--muted)}.empty>.icon{width:42px;height:42px;color:#91aaa1;margin-bottom:14px}.empty h3{color:var(--ink);margin:0 0 8px}.empty p{font-size:.875rem}.scenario-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.scenario{border:1px solid var(--line);background:white;border-radius:12px;padding:22px}.scenario.recommended{border:1px solid #7aab8d;box-shadow:0 0 0 3px #eff6ef}.scenario h3{margin-top:14px}.scenario dl{margin:20px 0}.scenario dl div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:.875rem}.scenario dt{color:var(--muted)}.scenario dd{margin:0;font-family:Arial,sans-serif}.scenario button{width:100%}.rule{display:flex;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);align-items:flex-start}.rule strong{font-size:.875rem}.rule p{font-size:.8rem;color:var(--muted);margin:4px 0}.rule .badge{margin-right:auto}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.resource{padding:20px}.resource strong{display:block;margin:13px 0 5px}.resource small{color:var(--muted);font-size:.8rem}.file-preview{direction:ltr;text-align:left;font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f8;padding:18px;border-radius:8px;max-height:350px;overflow:auto}dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 100px #152d3d30;width:min(650px,calc(100% - 32px));max-height:90vh;padding:0;color:var(--ink);background:white}dialog.wide{width:min(1000px,calc(100% - 32px))}dialog::backdrop{background:#132b3c66;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.modal-body{padding:24px}.modal-head h2{font-size:1.12rem}.modal-head button{padding:6px;border:0}.choice-cards{display:grid;grid-template-columns:1fr 1fr;gap:13px}.choice-card{padding:22px;display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:10px;min-height:160px}.choice-card>.icon{width:27px;height:27px;color:var(--green)}.choice-card small{font-weight:400;color:var(--muted);font-size:.8rem;line-height:1.8}.busy-state{text-align:center;padding:12px 0}.spinner{height:48px;width:48px;border:3px solid #e7efea;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin:10px auto 20px}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:25px;left:25px;max-width:420px;background:#173f36;color:white;padding:14px 20px;border-radius:10px;box-shadow:0 8px 25px #0002;z-index:100;display:none;font-size:.875rem;line-height:1.7}#toast.visible{display:block}.mobile-nav{display:none}.checkbox{display:flex;align-items:center;gap:10px;font-size:.875rem;margin:10px 0}.checkbox input{width:18px;height:18px;accent-color:var(--green)}.audit-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.875rem}.audit-row small{color:var(--muted)}.danger{color:var(--red)}.text-link{color:var(--green);text-decoration:underline;text-underline-offset:4px}.print-heading{display:none}.inline-warning{padding:12px 16px;background:#fff6e7;border:1px solid #f0dfc0;border-radius:8px;color:#805d28;font-size:.875rem;line-height:1.9;margin:14px 0}.bottom-note{font-size:.75rem;color:var(--muted);margin:20px 0 0;line-height:1.9}.metric-inline{font-size:.8rem;color:var(--muted);display:flex;gap:16px;flex-wrap:wrap}.spacer{height:18px}.file-name{max-width:300px;white-space:normal;overflow-wrap:anywhere}.status-mark{display:inline-block;height:7px;width:7px;background:#568870;border-radius:50%;margin-left:5px}.no-margin{margin:0}.dependency{font-family:Arial,sans-serif;font-size:.8rem;direction:ltr}.load-error{padding:30px;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.content{padding-top:38px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 360px}}@media(max-width:1150px){.shell{grid-template-columns:210px minmax(0,1fr)}.content{padding:25px}.topbar{padding:0 25px}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.dashboard-aside .section-gap{margin:0}.hero-art{width:140px}.scenario-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.shell{display:block}.sidebar{display:none;position:fixed;right:0;width:245px;box-shadow:-10px 0 50px #172d3633}.sidebar.open{display:flex}.mobile-nav{display:inline-flex}.topbar{height:66px;padding:0 16px}.crumb>span,.save-label{display:none}.content{padding:22px 16px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px}h1{font-size:1.6rem}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:15px}.hero{padding:22px;gap:15px}.hero-art{display:none}.hero{align-items:flex-start;flex-direction:column}.dashboard-aside,.two-col{grid-template-columns:1fr}.resource-grid{grid-template-columns:1fr 1fr}.scenario-grid{grid-template-columns:1fr}.panel-head{padding:16px;flex-wrap:wrap}.project-card{padding:18px}.project-footer{align-items:flex-start;gap:12px;flex-direction:column}.search input{width:170px}.top-actions .small .button-label{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.choice-cards{grid-template-columns:1fr}.brand{padding-bottom:22px}.legend{gap:12px}.modal-body{padding:18px}.stat strong{font-size:1.7rem}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media print{body{background:white;font-size:11px}.sidebar,.topbar,.page-heading .actions,.tabs,.toolbar,.bottom-note,#toast,dialog,.legend,.mobile-nav,.no-print{display:none!important}.shell{display:block}.content{padding:0;max-width:none}.panel{border:0}.calendar{min-width:0;grid-template-columns:55px repeat(5,1fr)!important}.calendar-wrap{overflow:visible}.cal-cell{min-height:100px}.event{break-inside:avoid;print-color-adjust:exact}.event strong,.event small{font-size:10px}.cal-head{position:static}.print-heading{display:block}button{border:0;padding:0}table{white-space:normal;font-size:10px}th,td{padding:7px}.panel-head{padding:10px}.stats{margin-bottom:15px}.stat{padding:10px}.stat strong{font-size:20px}.badge{font-size:10px}.page-heading h1{font-size:22px}a{color:inherit}}

.topbar .crumb{min-width:0;flex:1}.crumb strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{flex-shrink:0}.top-actions button{white-space:nowrap}.stat strong.textual{font-family:inherit;font-size:1.35rem;letter-spacing:0;margin:16px 0 12px}.dropzone[role="button"]:focus-visible{outline:3px solid #578cbd;outline-offset:4px}
@media(max-width:800px){.topbar{gap:8px}.top-actions{gap:4px}.top-actions button{padding:8px 10px}.top-actions button.ghost{padding:6px}.crumb{gap:5px}.crumb strong{font-size:.8rem}.stat strong.textual{font-size:1.2rem}}
select{border:1px solid var(--line);border-radius:8px;padding-top:9px;padding-bottom:9px;padding-right:12px;background-color:white;color:var(--ink);font-size:.875rem;max-width:100%}
