@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{--ink:#213b41;--sub:#70818a;--green:#153d3d;--gold:#bc9b5e;--paper:#f5f6f4;--white:#fff;--line:#e8eae6;--light:#edf2ee}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Cairo,Tahoma,Arial,sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}.shell{min-height:100vh;display:grid;grid-template-columns:254px minmax(0,1fr)}aside{background:#102f33;color:white;padding:28px 18px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:3px 11px 25px;border-bottom:1px solid #ffffff23}.logo{width:43px;height:43px;border-radius:14px;background:linear-gradient(135deg,#bf9d62,#e2d2a8);display:grid;place-items:center;font-size:23px;color:#163237}.brand strong{display:block;font-size:24px;letter-spacing:1px;line-height:1.3}.brand small{color:#b3c6c4;font-size:10px}.navgroup{padding:25px 9px 10px;color:#96aeab;font-size:11px}.navbtn{width:100%;padding:12px 13px;border:0;background:transparent;color:#c6d7d4;border-radius:11px;text-align:right;display:flex;align-items:center;gap:12px;margin-bottom:6px}.navbtn.active{background:#ffffff18;color:#fff;border-inline-start:3px solid var(--gold)}.navbtn:hover{background:#ffffff12}.ico{font-size:18px;min-width:23px;text-align:center}aside footer{margin-top:auto;padding:14px 8px 0;border-top:1px solid #ffffff23;color:#afc6c0;font-size:10px;line-height:1.9}.content{min-width:0}.topbar{height:76px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 44px;border-bottom:1px solid var(--line)}.crumb{color:var(--sub);font-size:12px}.crumb b{color:var(--ink)}.topactions{display:flex;gap:8px;align-items:center}.iconbtn{width:37px;height:37px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink)}.page{max-width:1190px;margin:auto;padding:32px 44px 60px}.hero{border-radius:22px;background:linear-gradient(112deg,#173e40 0%,#1d5050 55%,#315e5c 100%);min-height:230px;color:#fff;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:37px 43px;margin-bottom:25px}.hero:before{content:"";position:absolute;width:360px;height:360px;border:1px solid #ffffff18;border-radius:50%;left:-85px;top:-90px;box-shadow:0 0 0 45px #ffffff07,0 0 0 100px #ffffff06}.kicker{color:#d8bd83;font-size:12px;letter-spacing:.2px}.hero h1{font-size:28px;margin:6px 0 6px}.hero p{color:#d1e0de;max-width:600px;margin:0 0 12px}.hero .crest{position:relative;font-size:84px;opacity:.78;color:#e7d1a2}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin:22px 0 14px;gap:15px}.sectionhead h2{font-size:18px;margin:0}.muted{color:var(--sub)}.small{font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{background:white;border:1px solid var(--line);border-radius:16px;padding:21px;box-shadow:0 4px 18px #16292506}.card.click{cursor:pointer;transition:.2s}.card.click:hover{transform:translateY(-3px);border-color:#b6c9c0;box-shadow:0 12px 24px #163d3d12}.cardicon{width:46px;height:46px;background:#eef2ed;border-radius:13px;display:grid;place-items:center;font-size:22px;margin-bottom:16px}.card h3{font-size:14px;margin:0 0 5px}.card p{font-size:11px;color:var(--sub);margin:0;line-height:1.9}.arrow{margin-top:15px;color:var(--gold);font-size:16px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.stat{background:white;border:1px solid var(--line);padding:18px 19px;border-radius:15px}.stat .value{display:block;font-size:24px;font-weight:800;margin-top:6px}.stat .label{font-size:11px;color:var(--sub)}.cols{display:grid;grid-template-columns:1.4fr 1fr;gap:17px}.block{background:#fff;border:1px solid var(--line);border-radius:16px;padding:21px}.block h3{margin:0 0 14px;font-size:15px}.activity{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.activity:last-child{border:0}.dot{width:9px;height:9px;border-radius:50%;background:var(--gold);flex:none}.activity b{display:block;font-size:12px}.activity small{display:block;color:var(--sub);font-size:10px}.tag{display:inline-block;background:#edf4ef;color:#496e60;border-radius:99px;padding:4px 10px;font-size:10px;font-weight:700}.tag.demo{background:#fcf4e5;color:#9c752f}.bartrack{height:7px;border-radius:10px;background:#e8eee9;overflow:hidden;margin:7px 0 16px}.barfill{background:linear-gradient(90deg,#bd9c60,#2d6c61);height:100%;border-radius:10px}.progressline{display:flex;justify-content:space-between;font-size:11px}.chaptergrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.chapter{display:flex;gap:15px;align-items:flex-start}.chapter .num{font-weight:800;font-size:23px;color:#c0a570}.chapter h3{margin:0 0 3px;font-size:15px}.chapter p{font-size:11px;color:var(--sub);margin:0}.btn{border:0;border-radius:10px;padding:9px 17px;background:var(--green);color:white;font-size:12px;font-weight:700}.btn.alt{background:#edf1ed;color:#234c49}.btn.outline{background:transparent;border:1px solid #cbd6d0;color:var(--green)}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.search{flex:1;min-width:175px;border:1px solid var(--line);padding:11px 14px;border-radius:11px;background:#fff;outline:none}.select{border:1px solid var(--line);padding:10px;border-radius:10px;background:white}.evidencegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.evidence .preview{height:120px;background:linear-gradient(135deg,#dbe8e1,#f8f4e8);border-radius:11px;display:grid;place-items:center;font-size:46px;margin-bottom:14px}.evidence h3{line-height:1.8}.evidence .meta{font-size:11px;color:var(--sub)}.detail{background:white;border:1px solid var(--line);padding:28px;border-radius:20px}.detail h2{font-size:23px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{background:#f7f9f7;padding:15px;border-radius:12px}.field label{display:block;font-size:10px;color:var(--sub)}.field p{margin:7px 0 0;font-size:13px}.notice{background:#fef8e9;border:1px solid #eddcb6;color:#8a6b35;padding:13px 16px;border-radius:10px;font-size:12px;line-height:1.9}.empty{text-align:center;color:var(--sub);padding:45px 15px}.back{display:inline-flex;margin-bottom:14px}.editlayout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.formrow{display:flex;flex-direction:column;margin-bottom:11px}.formrow label{font-size:12px;font-weight:700;margin-bottom:5px}.formrow input,.formrow select,.formrow textarea{width:100%;border:1px solid #d8e0da;border-radius:10px;padding:10px 12px;background:#fff;outline:none}.formrow textarea{min-height:87px;resize:vertical}.restricted{border:1px dashed #bfccbf;background:#f8faf7;padding:16px;border-radius:13px}.footnote{font-size:11px;color:var(--sub);text-align:center;margin-top:25px}.mobilebar{display:none}.hide{display:none!important}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.evidencegrid{grid-template-columns:repeat(2,1fr)}.topbar{padding:0 20px}.page{padding:25px 20px}}@media(max-width:700px){.shell{display:block}aside{position:fixed;right:0;top:0;z-index:50;width:265px;transform:translateX(100%);transition:.2s;height:100dvh}aside.open{transform:translateX(0)}.mobilebar{display:block}.topbar{height:63px}.hero{padding:26px 22px;min-height:200px}.hero h1{font-size:22px}.hero .crest{display:none}.stats,.cards,.chaptergrid,.evidencegrid,.cols,.editlayout{grid-template-columns:1fr 1fr}.cols,.editlayout{grid-template-columns:1fr}.card{padding:17px}.twocol{grid-template-columns:1fr}.sectionhead h2{font-size:16px}}@media(max-width:430px){.cards,.evidencegrid,.chaptergrid,.stats{grid-template-columns:1fr 1fr}.chapter{display:block}.chapter .num{font-size:16px}.stat .value{font-size:18px}.cardicon{margin-bottom:10px}.hero{min-height:180px}.topactions .hide-sm{display:none}}@media print{aside,.topbar,.toolbar,.btn,.iconbtn,.mobilebar{display:none!important}.shell{display:block}.page{max-width:none;padding:5mm}.card,.block,.detail{break-inside:avoid}body{background:white}}

/* INJAZ 1.1.0 mobile and editorial refinements */
:root{--ink:#1c3738;--paper:#f7f8f6;--gold:#b89c6e}
body{line-height:1.65}.page{max-width:1260px;margin:auto}.cards .card{min-height:180px}.cards .cardicon{font-family:Arial,sans-serif;font-size:22px}.card{transition:box-shadow .15s ease,transform .15s ease}.card.click:hover{transform:translateY(-2px);box-shadow:0 12px 30px #1436370e}.footnote{font-size:11px}.sidebottom{margin-top:auto}.sidehint{font-size:11px;color:#aabfbc;padding:10px}.studioentry{opacity:.65}.studioentry:hover{opacity:1}.overlay,.closemenu{display:none}.studiohead{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.studiohead h2{margin:9px 0}.studioTools{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.filepick{display:inline-flex;align-items:center}.draftrow{border-bottom:1px solid var(--line);padding:14px 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.draftrow small{display:block;color:var(--sub)}.draftactions{display:flex;flex-wrap:wrap;gap:5px}.minibtn{background:#edf1ee;border:1px solid #e2e8e3;border-radius:9px;padding:6px 10px;font-size:11px;color:var(--ink)}.minibtn.danger{color:#9c4646}.formActions{display:flex;gap:8px;flex-wrap:wrap}.closemenu{color:white;background:transparent;border:0;font-size:32px;position:absolute;top:10px;left:16px;z-index:3}.topright{display:flex;align-items:center;gap:10px}
@media(max-width:850px){.shell{display:block}.content{width:100%;min-width:0}.shell aside{position:fixed!important;top:0!important;right:0!important;left:auto!important;bottom:0!important;width:min(82vw,310px)!important;max-width:310px!important;height:100dvh!important;min-height:0!important;overflow-y:auto!important;transform:translateX(105%)!important;transition:transform .22s ease!important;z-index:1002!important;box-shadow:-8px 0 30px #0002}.shell aside.open{transform:translateX(0)!important}.overlay{display:none}.menu-open .overlay{display:block;position:fixed;inset:0;background:#0a1b1db0;z-index:1001}.closemenu{display:block}.brand{margin-top:28px}.navgroup{padding-top:16px}.navbtn{padding:12px 10px;margin-bottom:2px}.page{padding-bottom:34px}.cards .card{min-height:158px}.cardicon{margin-bottom:8px!important}.studiohead{align-items:flex-start;flex-direction:column}.hero{padding:24px!important}.hero h1{font-size:25px!important}.hero p{font-size:13px!important}.footnote{padding-bottom:25px}.topbar{z-index:2}}
@media(max-width:420px){.cards,.chaptergrid{gap:10px}.cards .card,.chaptergrid .card{padding:16px 12px!important}.cards h3{font-size:15px!important}.cards .card p{font-size:12px!important}.stats{gap:9px}.topactions{gap:4px}.topbar{padding-inline:15px!important}.crumb{font-size:12px}}
@media print{aside,.topbar,.overlay,.studioTools,.draftactions,.closemenu{display:none!important}.shell{display:block}.page{max-width:none}.content{margin:0;width:100%}}
/* V1.2.0 cloud connection section */
.cloudbar{background:#f1f6f3;border:1px solid #cfdcd4;border-radius:22px;padding:22px;margin-bottom:22px;color:#173a37}.cloudbuttons{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.cloudbar .activity{padding:12px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cloudbar .activity .btn{padding:9px 12px;font-size:.85rem}.cloudbar input[type=file]{width:100%;margin:9px 0}.cloudbar h3{margin:0 0 8px}
@media(max-width:600px){.cloudbar{padding:15px}.cloudbar .activity .btn{padding:8px 10px}}

/* V1.2.1 — mobile drawer usability hotfix */
@media(max-width:850px){
 .shell .overlay{display:none;position:fixed;inset:0;background:rgba(5,22,25,.55);z-index:1001;cursor:pointer}
 .shell .overlay.active{display:block}
 .shell aside .closemenu{display:flex;align-items:center;justify-content:center;position:absolute;top:14px;left:15px;width:40px;height:40px;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:28px;z-index:3}
 .shell aside .brand{padding-left:45px;margin-top:18px}
}

/* V1.2.3: independent desktop sidebar scrolling; mobile behavior retained. */
.shell aside {
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(205,224,217,.55) transparent;
  -webkit-overflow-scrolling:touch;
}
.shell aside::-webkit-scrollbar {width:7px}
.shell aside::-webkit-scrollbar-thumb {background:rgba(205,224,217,.45);border-radius:10px}
.shell aside .navbtn {flex-shrink:0}
.shell aside footer {flex-shrink:0}
@media(min-width:851px) {
  .shell aside {max-height:100dvh;height:100dvh;min-height:0}
}

/* V1.2.4 quick evidence studio */
.studio-simple{max-width:940px;margin:auto}.studio-welcome{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.studio-welcome h1{margin:4px 0;font-size:25px}.studio-welcome p{margin:0;color:var(--sub)}.eyebrow{font-weight:700;color:#a08250;font-size:12px}.sync-pill{white-space:nowrap;border-radius:30px;padding:8px 14px;background:#f2eee7;color:#7c6745;font-weight:700;font-size:12px}.sync-pill.ready{background:#e4f2eb;color:#27624b}.simple-panel{background:#fff;padding:25px;border-radius:18px;border:1px solid #e0e6e2;margin:16px 0;box-shadow:0 8px 22px #173f3510}.quick-panel{border-top:4px solid var(--gold)}.quick-panel .sectionhead{margin-top:0}.quick-panel h2{font-size:19px}.quick-panel .formrow input{font-size:15px}.required{color:#b56650}.quick-label{display:block;font-weight:700;font-size:12px;margin:12px 0 7px}.quick-kind{width:100%;border:1px solid #d8e0da;background:white;border-radius:10px;padding:11px}.optional-fields{border-top:1px solid var(--line);margin-top:18px;padding-top:12px}.optional-fields>summary,.cloud-settings>summary{cursor:pointer;font-weight:700;color:#2a514c;padding:8px 0}.optional-fields textarea{min-height:74px}.quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.primary-big{padding:13px 25px;font-size:14px}.quick-message{color:#27624b;font-weight:700}.quick-evidence{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.quick-evidence:last-child{border:0}.quick-evidence-main b{display:block}.quick-evidence-main small{display:block;color:var(--sub)}.quick-evidence-actions{display:flex;gap:7px;flex-wrap:wrap}.quick-evidence-actions .btn{padding:8px 12px}.compact-empty{padding:25px}.cloud-settings .formrow{margin-top:12px}.cloud-settings>summary{list-style-position:inside}@media(max-width:650px){.studio-welcome{align-items:flex-start;flex-direction:column}.studio-welcome h1{font-size:21px}.simple-panel{padding:16px}.quick-evidence{flex-direction:column;align-items:stretch}.quick-evidence-actions .btn{flex:1}.primary-big{width:100%}}

/* V1.3.0 attachment first */
.photo-first{background:linear-gradient(135deg,#edf5f0,#f7f3e9);border:1px dashed #9fbaaa;border-radius:17px;padding:19px;margin:15px 0 20px}.photo-first-title{display:flex;align-items:center;gap:12px}.photo-first-title strong{font-size:17px}.photo-first-title p{margin:4px 0;color:#637d76;font-size:13px}.photo-icon{font-size:27px;color:#1d5750}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:95px;border:2px dashed #88aaa0;background:#fff;border-radius:15px;margin:14px 0;cursor:pointer;font-weight:800;color:#1c514a;gap:5px}.upload-zone small{font-weight:400;color:#718781}.photo-first input[type=file]{display:none}.selected-files{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.photo-first-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:13px}.template-options{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:15px 0}.quick-message{margin-top:10px;line-height:1.7}@media(max-width:640px){.photo-first{padding:13px}.photo-first-title strong{font-size:15px}}

/* V1.3.4 attachment gallery */
.evidence-attachment-actions{margin-top:8px}.injaz-attachments-panel{border:1px solid #d7e2dc;border-radius:14px;padding:14px;margin-top:14px;background:#fff}.attachment-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #e5ede8}.attachment-name{flex:1;overflow-wrap:anywhere}.injaz-modal{position:fixed;inset:0;background:#091d20cc;z-index:9999;display:flex;justify-content:center;align-items:center;padding:16px}.injaz-modal-dialog{background:white;color:#163638;border-radius:18px;padding:20px;max-width:830px;width:100%;max-height:90vh;overflow:auto;direction:rtl}.injaz-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.injaz-preview-img{width:100%;max-height:58vh;object-fit:contain;margin:14px auto;display:block}.injaz-preview-pdf{width:100%;height:58vh;border:0;margin:14px 0}#injazPreviewBody{min-height:30px}

/* V1.4.0: focused studio with distinct sections */
.studio-tabs{display:flex;gap:10px;position:sticky;top:0;z-index:5;background:#f7f8f6;padding:12px 0;flex-wrap:wrap}
.studio-tab{padding:13px 19px;border:1px solid #d9e5dd;border-radius:13px;background:white;color:#214943;font-weight:800;flex:1;min-width:130px}
.studio-tab.selected{background:#153d3d;color:white;border-color:#153d3d;box-shadow:0 4px 14px #143a3922}
.studio-section[hidden]{display:none!important}.studio-simple .quick-panel{margin-top:8px}
.studio-simple .quick-evidence{border-radius:12px;padding:16px;background:#fafbf9;margin:10px 0;border:1px solid #e5eae6}
.injaz-modal-dialog .notice .btn{margin-inline:8px}.injaz-preview-img{background:#f7f8f6;border-radius:12px}
@media(max-width:650px){.studio-tabs{gap:5px}.studio-tab{font-size:12px;padding:10px 6px;min-width:0}.studio-welcome{margin-bottom:7px}}

/* V1.4.1 — professional report, isolated from app layout */
#injazReportOverlay{position:fixed;inset:0;z-index:99999;background:#173437cf;overflow:auto;padding:18px;direction:rtl;color:#16383a}
.ir-shell{max-width:920px;margin:0 auto}.ir-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;padding:12px 16px;border-radius:12px;margin-bottom:12px}.ir-paper{background:#fff;padding:34px 42px;border-radius:12px;font-family:Tahoma,Arial,sans-serif;line-height:1.8;box-shadow:0 10px 55px #001b2040}.ir-header{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #bb9a61;padding-bottom:17px;gap:20px}.ir-official{font-size:12px;line-height:1.9}.ir-brand{font-size:31px;color:#123d3b;font-weight:800}.ir-brand span{font-size:10px;color:#8f9a9a;display:block;direction:ltr}.ir-kicker{font-size:12px;color:#9a7545;margin-top:24px;font-weight:700}.ir-paper h1{font-size:24px;margin:8px 0 16px;color:#193e3e}.ir-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;padding:14px;background:#f2f6f4;border-radius:8px}.ir-cats{font-size:12px;margin:14px 0 24px;padding:9px 0;border-bottom:1px solid #ddd}.ir-cats span{color:#b9a06e;padding:0 12px}.ir-field{padding:12px 0;break-inside:avoid}.ir-field h3,.ir-gallery h3{font-size:15px;color:#144d48;margin:0 0 5px;border-right:3px solid #bea26b;padding-right:10px}.ir-field p{white-space:pre-wrap;font-size:13px;margin:0}.ir-gallery{margin:24px 0}.ir-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:15px}.ir-figure{margin:0;padding:7px;border:1px solid #dae2df;border-radius:8px;break-inside:avoid}.ir-figure img{display:block;width:100%;max-height:330px;object-fit:contain}.ir-figure figcaption{font-size:11px;text-align:center;overflow-wrap:anywhere}.ir-file-placeholder{min-height:100px;display:flex;align-items:center;justify-content:center;background:#f1f3f1;color:#506466;padding:12px;font-size:12px}.ir-warning{grid-column:1/-1;padding:12px;background:#fff1d9;color:#76520e;border:1px solid #d8be77;border-radius:8px}.ir-notice{font-size:11px;color:#657b7c;border-top:1px solid #eee;padding-top:10px}.ir-footer{margin-top:25px;border-top:1px solid #cfcfcf;padding-top:10px;font-size:10px;display:flex;justify-content:space-between;gap:5px;color:#566a68}
@media(max-width:600px){#injazReportOverlay{padding:5px}.ir-toolbar{flex-wrap:wrap}.ir-paper{padding:18px}.ir-header{gap:8px}.ir-brand{font-size:22px}.ir-meta,.ir-files{grid-template-columns:1fr}}
@media print{ @page{size:A4;margin:12mm} body.injaz-report-print>*:not(#injazReportOverlay){display:none!important}body.injaz-report-print #injazReportOverlay{position:static!important;inset:auto!important;overflow:visible!important;padding:0!important;background:white!important}body.injaz-report-print .ir-shell{max-width:none!important;margin:0!important}body.injaz-report-print .ir-toolbar{display:none!important}body.injaz-report-print .ir-paper{padding:0!important;box-shadow:none!important;border-radius:0!important}body.injaz-report-print .ir-figure img{max-height:85mm!important}body.injaz-report-print .ir-files{grid-template-columns:repeat(2,1fr)!important}}

/* V1.4.2 QR in print and PDF: a reliable scan target regardless of image count */
.ir-qr-section{margin:24px 0;padding:14px;border:1px solid #c7d6d1;border-radius:10px;break-inside:avoid}.ir-qr-section h3{font-size:15px;color:#144d48;margin:0 0 14px}.ir-qr-layout{display:flex;align-items:center;gap:22px;direction:rtl}.ir-qr-image{background:#fff;padding:6px;flex-shrink:0}.ir-qr-image svg{width:205px;height:205px;display:block}.ir-qr-layout p{font-size:12px;margin:6px 0}.ir-qr-layout a{font-size:11px;overflow-wrap:anywhere}@media(max-width:600px){.ir-qr-layout{flex-direction:column;text-align:center}}@media print{.ir-qr-section{page-break-inside:avoid}.ir-qr-image svg{width:42mm!important;height:42mm!important}.ir-qr-section button{display:none!important}}

/* V1.4.5 — compact navigation / independent studio entry */
.shell aside{padding:16px 12px!important;gap:0!important}
.shell aside .brand{padding:6px 8px 16px!important;margin-top:0!important;gap:10px}
.shell aside .brand strong{font-size:23px!important}
.shell aside .brand .logo{width:40px!important;height:40px!important;flex-shrink:0}
.shell aside .navgroup{margin:12px 0 5px!important;padding:6px 9px!important;font-size:11px!important;min-height:0!important}
.shell aside .navbtn{min-height:44px!important;padding:9px 12px!important;margin:2px 0!important;border-radius:10px!important;line-height:1.35!important;font-size:13px!important;display:flex!important;gap:10px!important;align-items:center!important}
.shell aside .navbtn .ico{width:22px!important;flex-shrink:0!important;font-size:17px!important}
.shell aside footer{font-size:10px!important;line-height:1.65!important;margin-top:auto!important;padding:15px 6px 4px!important}
.shell aside .closemenu{width:32px!important;height:32px!important;top:12px!important;left:11px!important;border-radius:9px!important;font-size:22px!important}
.studio-access{background:#e8f0eb;color:#17423d;border:1px solid #d7e5dc;border-radius:11px;padding:9px 12px;font-weight:700;cursor:pointer;white-space:nowrap;font-size:12px}
.studio-access:hover{background:#dbeae0}
@media(min-width:851px){.shell{grid-template-columns:224px minmax(0,1fr)!important}}
@media(max-width:850px){.shell aside{width:min(78vw,288px)!important;max-width:288px!important;padding:16px 12px!important}.shell aside .brand{padding-left:45px!important;margin-top:4px!important}.shell aside .navbtn{min-height:46px!important}.studio-access{font-size:11px;padding:8px 9px}.topactions{gap:5px!important}}
@media(max-width:380px){.studio-access{font-size:10px;padding:7px 6px}.topactions .iconbtn[title="طباعة"]{display:none}}
@media print{.studio-access{display:none!important}}

/* V1.4.7 — compact, professional, printable evidence report */
.ir-draft-note{font-size:11px;color:#916a29;background:#fff9ec;padding:8px 12px;border:1px solid #e8d6a7;border-radius:7px;margin:12px 0}
.ir-toolbar button:disabled{opacity:.55;cursor:wait}
.ir-paper .ir-field{padding:8px 0}
.ir-paper .ir-field h3{font-size:13px;margin-bottom:3px}
.ir-paper .ir-field p{font-size:12px;line-height:1.6}
.ir-paper .ir-gallery{margin:14px 0 10px}
.ir-paper .ir-qr-section{margin:12px 0;padding:12px}
.ir-paper .ir-qr-section h3{margin-bottom:6px}
.ir-paper .ir-qr-layout{gap:12px}
.ir-paper .ir-qr-layout p{margin:3px 0}
.ir-paper .ir-footer{margin-top:12px}
@media print{
 @page{size:A4;margin:9mm}
 html,body{height:auto!important;overflow:visible!important}
 body.injaz-report-print .ir-paper{font-size:11px!important;line-height:1.45!important}
 body.injaz-report-print .ir-header{padding-bottom:6px!important}
 body.injaz-report-print .ir-brand{font-size:22px!important}
 body.injaz-report-print .ir-kicker{margin-top:8px!important;font-size:10px!important}
 body.injaz-report-print .ir-paper h1{font-size:19px!important;margin:4px 0 7px!important}
 body.injaz-report-print .ir-meta{padding:8px!important;gap:4px!important;font-size:10px!important}
 body.injaz-report-print .ir-cats{margin:6px 0 9px!important;padding:5px 0!important;font-size:10px!important}
 body.injaz-report-print .ir-field{padding:4px 0!important;break-inside:avoid!important}
 body.injaz-report-print .ir-field h3{font-size:11px!important;margin-bottom:1px!important}
 body.injaz-report-print .ir-field p{font-size:10px!important;line-height:1.4!important}
 body.injaz-report-print .ir-draft-note{font-size:9px!important;margin:6px 0!important;padding:4px 8px!important}
 body.injaz-report-print .ir-gallery{margin:9px 0 5px!important}
 body.injaz-report-print .ir-gallery h3{font-size:12px!important;margin:0 0 4px!important}
 body.injaz-report-print .ir-files{gap:7px!important;margin-top:5px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.injaz-report-print .ir-figure{padding:3px!important}
 body.injaz-report-print .ir-figure img{max-height:35mm!important;object-fit:contain!important}
 body.injaz-report-print .ir-figure figcaption{font-size:8px!important;direction:rtl!important;unicode-bidi:plaintext!important}
 body.injaz-report-print .ir-qr-section{margin:7px 0!important;padding:7px!important;break-inside:avoid!important;page-break-inside:avoid!important}
 body.injaz-report-print .ir-qr-section h3{font-size:12px!important;margin:0 0 3px!important}
 body.injaz-report-print .ir-qr-layout{flex-direction:row!important;align-items:center!important;gap:12px!important;text-align:right!important}
 body.injaz-report-print .ir-qr-image svg{height:29mm!important;width:29mm!important}
 body.injaz-report-print .ir-qr-layout p,body.injaz-report-print .ir-qr-layout strong{font-size:10px!important;line-height:1.3!important;margin:2px 0!important}
 body.injaz-report-print .ir-qr-layout a{font-size:9px!important}
 body.injaz-report-print .ir-notice{font-size:8px!important;padding-top:5px!important}
 body.injaz-report-print .ir-footer{margin-top:6px!important;padding-top:5px!important;font-size:8px!important;break-inside:avoid!important}
}

/* INJAZ V1.4.7 — readable editorial hierarchy for evidence report */
.ir-paper{font-family:Tahoma,"Noto Naskh Arabic",Arial,sans-serif;color:#193c39;line-height:1.72}
.ir-paper .ir-header{border-bottom:2px solid #bfa26a;padding-bottom:13px}
.ir-paper .ir-official{font-size:12px;line-height:1.85;color:#425e59}
.ir-paper .ir-kicker{display:inline-block;padding:4px 10px;border-radius:5px;background:#f7f1e5;color:#856b3e;margin-top:13px;font-size:12px}
.ir-paper h1{font-size:30px;line-height:1.5;margin:10px 0 13px;color:#123e3b;font-weight:800}
.ir-paper .ir-meta{background:#f1f6f4;border-right:4px solid #bca06b;border-radius:8px;padding:13px 17px;gap:10px;font-size:13px}
.ir-paper .ir-cats{font-size:12px;color:#455d57;margin:10px 0 12px;padding:10px 0}
.ir-paper .ir-field{padding:7px 0 10px;border-bottom:1px solid #edf1ee}
.ir-paper .ir-field h3{font-size:15px;color:#164f48;border-right:4px solid #bda16a;padding-right:9px;margin-bottom:4px}
.ir-paper .ir-field p{font-size:14px;line-height:1.7;color:#243d3a}
.ir-paper .ir-gallery{margin:15px 0 10px}
.ir-paper .ir-gallery h3,.ir-paper .ir-qr-section h3{font-size:15px}
.ir-paper .ir-files{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px}
.ir-paper .ir-figure{background:#f8faf8;padding:7px;border-radius:8px}
.ir-paper .ir-figure img{max-height:290px}
.ir-paper .ir-figure figcaption{font-size:10px;direction:rtl;unicode-bidi:plaintext;color:#536864}
.ir-paper .ir-qr-section{background:#f8faf8;border-color:#d7e0dc;margin:12px 0;padding:12px}
.ir-paper .ir-qr-image svg{width:148px;height:148px}
.ir-paper .ir-draft-note{border:0;border-right:3px solid #cba96c;background:#fbf7ef;font-size:11px}
.ir-paper .ir-notice{font-size:10px}
.ir-paper .ir-footer{font-size:9px}
@media (max-width:600px){.ir-paper h1{font-size:24px}.ir-paper .ir-meta{grid-template-columns:1fr 1fr}.ir-paper .ir-qr-layout{flex-direction:row;text-align:right;gap:8px}.ir-paper .ir-qr-image svg{width:116px;height:116px}.ir-paper .ir-field p{font-size:13px}}
@media print{
 @page{size:A4;margin:11mm}
 body.injaz-report-print .ir-paper{font-family:Tahoma,Arial,sans-serif!important;font-size:12px!important;line-height:1.55!important;color:#163b37!important}
 body.injaz-report-print .ir-header{padding-bottom:9px!important}
 body.injaz-report-print .ir-brand{font-size:25px!important}
 body.injaz-report-print .ir-official{font-size:11px!important}
 body.injaz-report-print .ir-kicker{font-size:11px!important;margin-top:9px!important;padding:3px 8px!important}
 body.injaz-report-print .ir-paper h1{font-size:24px!important;margin:8px 0 10px!important}
 body.injaz-report-print .ir-meta{font-size:11px!important;padding:10px 12px!important;gap:7px!important}
 body.injaz-report-print .ir-cats{font-size:11px!important;padding:7px 0!important;margin:7px 0 9px!important}
 body.injaz-report-print .ir-field{padding:6px 0!important}
 body.injaz-report-print .ir-field h3{font-size:12px!important;margin-bottom:4px!important}
 body.injaz-report-print .ir-field p{font-size:11.5px!important;line-height:1.6!important}
 body.injaz-report-print .ir-draft-note{font-size:10px!important;padding:6px 10px!important}
 body.injaz-report-print .ir-gallery{margin:12px 0 8px!important}
 body.injaz-report-print .ir-gallery h3{font-size:13px!important;margin:0 0 7px!important}
 body.injaz-report-print .ir-files{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.injaz-report-print .ir-figure{padding:6px!important}
 body.injaz-report-print .ir-figure img{max-height:66mm!important;object-fit:contain!important}
 body.injaz-report-print .ir-figure figcaption{font-size:9px!important}
 body.injaz-report-print .ir-qr-section{margin:10px 0!important;padding:10px!important}
 body.injaz-report-print .ir-qr-section h3{font-size:13px!important;margin-bottom:6px!important}
 body.injaz-report-print .ir-qr-layout{flex-direction:row!important;gap:15px!important;align-items:center!important}
 body.injaz-report-print .ir-qr-image svg{height:32mm!important;width:32mm!important}
 body.injaz-report-print .ir-qr-layout p,body.injaz-report-print .ir-qr-layout strong{font-size:11px!important;line-height:1.4!important}
 body.injaz-report-print .ir-qr-layout a{font-size:10px!important}
 body.injaz-report-print .ir-notice{font-size:9px!important}
 body.injaz-report-print .ir-footer{font-size:9px!important;gap:8px!important}
 body.injaz-report-print .ir-gallery,body.injaz-report-print .ir-qr-section{break-inside:avoid!important}
}

/* INJAZ V1.5.0 AI */
.injaz-ai-box{margin:16px 0 24px;border:1px solid #c7d9d2;background:#f0f7f3;border-radius:20px;padding:20px;color:#183e3e}
.injaz-ai-box p{margin:10px 0;line-height:1.8}.injaz-ai-header{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.injaz-ai-header strong{font-size:1.15rem}.injaz-ai-header span{color:#54736b;font-size:.8rem}.injaz-ai-consent{display:flex;align-items:flex-start;gap:10px;margin:14px 0;line-height:1.8;font-weight:normal}.injaz-ai-consent input{width:19px;height:19px;flex-shrink:0;margin-top:6px}.injaz-ai-box button{background:#174643;color:#fff}

/* V1.5.1 ChatGPT assisted handoff */
.injaz-chatgpt-box{margin:18px 0;}.injaz-chatgpt-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.injaz-chatgpt-label{display:block;margin:14px 0 7px;font-weight:700}.injaz-chatgpt-box textarea{box-sizing:border-box;width:100%;min-height:130px;resize:vertical;padding:14px;border:1px solid #cbd8d3;border-radius:12px;background:#fff;color:#173e3c;direction:rtl;line-height:1.7}.injaz-chatgpt-box #injazImportChat{margin-top:10px}

/* V1.5.2: readable evidence-first reporting */
.injaz-chatgpt-box #injazTeacherNote{min-height:70px;}
.ir-more-files{font-size:11px;color:#40645a;text-align:right;margin:8px 0 0;font-weight:600;}
@media print{.ir-more-files{font-size:9pt!important}.ir-files{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.ir-files .ir-figure{break-inside:avoid!important;margin:0!important;padding:5px!important}.ir-files .ir-figure img{max-height:110mm!important;object-fit:contain!important}.ir-files .ir-more-files,.ir-files .ir-warning{grid-column:1/-1!important}.ir-qr-section{break-inside:avoid!important}.ir-field p{line-height:1.6!important}.ir-footer{overflow-wrap:anywhere!important}}

/* MIRQAH v1.5.3: balanced evidence print grid; enforce last rule after legacy overrides. */
.ir-brand{letter-spacing:0;font-weight:800}
.ir-files{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
.ir-figure img{height:195px;max-height:195px;object-fit:contain!important}
.ir-figure figcaption{direction:ltr;unicode-bidi:plaintext;font-size:10px}
.ir-more-files,.ir-warning{grid-column:1 / -1}
@media(max-width:600px){.ir-files{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px}.ir-figure img{height:150px;max-height:150px}}
@media print{
 .ir-files,body.injaz-report-print .ir-files{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5mm!important}
 .ir-files .ir-figure img,body.injaz-report-print .ir-files .ir-figure img{height:43mm!important;max-height:43mm!important;max-width:100%!important;object-fit:contain!important}
 .ir-figure{break-inside:avoid!important;page-break-inside:avoid!important;padding:3mm!important}
 .ir-more-files{grid-column:1/-1!important}
 .ir-gallery{break-inside:auto!important;page-break-inside:auto!important}
 .ir-qr-section{break-inside:avoid!important;page-break-inside:avoid!important}
 .ir-field p{font-size:10.5pt!important;line-height:1.5!important}
 .ir-paper h1{font-size:17pt!important}
 .ir-qr-image svg{width:29mm!important;height:29mm!important}
 .ir-qr-layout{gap:7mm!important}
}

/* V1.5.4: evidence selection controls are editing-only, never printed. */
.ir-selection{border:1px solid #d9e4df;border-radius:12px;background:#f8faf8;padding:12px;margin:12px 0;color:#173e3b}
.ir-selection-title{font-weight:750;margin-bottom:10px}.ir-selection-title small{display:block;font-weight:400;color:#647977;margin-top:3px}
.ir-selection-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ir-selection-fields label{display:block;font-size:12px;font-weight:700}
.ir-selection-fields select{display:block;width:100%;max-width:100%;min-width:0;padding:9px;border:1px solid #c9d8d2;border-radius:8px;background:white;color:#173e3b;font-size:13px;margin-top:4px}
.ir-selection-hint{font-size:11px;color:#6d7b77;margin:8px 0 0}
.ir-brand{font-size:22px;max-width:48%;line-height:1.35}
@media(max-width:600px){.ir-selection-fields{grid-template-columns:1fr}.ir-brand{font-size:16px}}
@media print{.ir-selection{display:none!important}}

/* V1.5.6: original V1.5.4 report design with an optional customizable ministry logo */
.ir-brand-wrap{display:flex;align-items:center;gap:13px;min-width:0}
.ir-custom-logo{width:100px;max-height:83px;object-fit:contain;flex:0 0 auto}
.ir-custom-logo[hidden]{display:none!important}
.ir-logo-upload{cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ir-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.ir-custom-logo{width:67px;max-height:62px}.ir-brand-wrap{gap:7px}.ir-toolbar>div{width:100%;flex-wrap:wrap}}
@media print{.ir-logo-upload,#ir-logo-reset,#ir-logo-file{display:none!important}.ir-custom-logo{max-height:24mm;width:auto;max-width:35mm}}

/* V1.5.8 owner-controlled official report header */
.ir-settings-backdrop{position:fixed;z-index:100003;inset:0;background:#102f33a8;display:grid;place-items:center;padding:16px}
.ir-settings-card{background:white;color:#173c39;direction:rtl;width:min(520px,95vw);max-height:85vh;overflow:auto;padding:22px;border-radius:17px;box-shadow:0 18px 50px #001a1a44;display:grid;gap:13px}
.ir-settings-card h2{margin:0;font-size:1.3rem}.ir-settings-card p{margin:0;color:#60746f;font-size:.9rem}
.ir-settings-card label{display:grid;gap:5px;font-weight:650}.ir-settings-card input{width:100%;padding:11px;border:1px solid #cad6d1;border-radius:10px;font:inherit;box-sizing:border-box}
.ir-settings-actions{display:flex;gap:9px;flex-wrap:wrap}
@media print{.ir-settings-backdrop{display:none!important}}
