
:root{--ink:#18384a;--navy:#17384c;--teal:#087d84;--gold:#c89c5d;--soft:#eff5f5;--line:#dce6e8;--muted:#71838b;--red:#bd4550;--bg:#f5f8f8;--shadow:0 6px 24px rgba(24,56,74,.07)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:"Vazirmatn",Tahoma,Arial,sans-serif;color:var(--ink);font-size:14px;line-height:1.7;padding-bottom:96px}button,input,select,textarea{font:inherit}button{cursor:pointer}header{background:var(--navy);color:#fff;padding:22px 18px 23px;border-radius:0 0 26px 26px;position:relative;overflow:hidden}header:before{content:"";position:absolute;left:-100px;top:-115px;border:1px solid #4c7685;border-radius:50%;width:320px;height:320px}header:after{content:"";position:absolute;left:18px;bottom:-80px;border:1px solid #4c7685;border-radius:50%;width:200px;height:200px}.headerInner{position:relative;max-width:1080px;margin:auto;z-index:1}.eyebrow{letter-spacing:.5px;font-size:11px;color:#b9d6dc}.headtitle{font-weight:800;font-size:22px;margin:4px 0 5px}header p{font-size:12px;color:#c9dee2;margin:0}.miniTag{display:inline-block;margin-top:13px;background:#2b5868;border-radius:30px;padding:4px 11px;font-size:11px;color:#e3f4f5}.container{max-width:1080px;margin:0 auto;padding:16px}.sectionHead{display:flex;align-items:center;justify-content:space-between;margin:6px 0 13px;gap:12px}.sectionHead h2{font-size:18px;margin:0;font-weight:800}.sectionHead small{color:var(--muted)}.card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:17px;margin-bottom:13px}.card.flat{box-shadow:none}.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin:8px 0 17px}.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px}.kpi strong{font-size:25px;display:block;line-height:1.5}.kpi span{font-size:11px;color:var(--muted)}.kpi.tinted{background:#eaf4f4;border-color:#c9e4e1}.small{font-size:12px}.muted{color:var(--muted)}.pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:30px;font-size:11px;background:#edf4f4;color:#206b72;white-space:nowrap}.pill.danger{background:#fceced;color:#b64853}.pill.warn{background:#fff2e1;color:#96703c}.pill.good{background:#e7f5eb;color:#2d7850}.btn{background:var(--teal);color:white;border:0;border-radius:12px;padding:11px 17px;font-weight:700;display:inline-flex;gap:7px;align-items:center;justify-content:center;text-decoration:none;min-height:42px}.btn.secondary{background:#eaf2f3;color:#145e68}.btn.outline{background:white;border:1px solid #9ac7c9;color:var(--teal)}.btn.danger{background:#bd4550}.btn.full{width:100%}.btn.tiny{padding:6px 10px;font-size:11px;min-height:30px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.gap8{display:flex;gap:8px;flex-wrap:wrap}.progress{height:9px;background:#e9eff0;border-radius:30px;overflow:hidden;margin:9px 0 5px}.progress>i{height:100%;display:block;background:linear-gradient(90deg,#0d858a,#65bcb5);border-radius:30px}.progress.gold>i{background:var(--gold)}.areaList{display:grid;gap:13px}.summaryRow{margin-bottom:11px}.summaryRow:last-child{margin:0}.summaryRow strong{font-size:13px}.empty{padding:30px 18px;text-align:center;color:#84949c;border:1px dashed #cbdade;border-radius:13px}.note{border-right:4px solid var(--gold);background:#fffaf1;border-radius:10px;padding:12px 15px;margin:10px 0;font-size:12px}.alert{border-right:4px solid #cf6873;background:#fff1f2;padding:12px;border-radius:10px;font-size:12px;margin:9px 0}.listLine{border-bottom:1px solid var(--line);padding:11px 0}.listLine:last-child{border:0}.listLine strong{font-size:13px}.listLine p{margin:3px 0;color:#6c7d84;font-size:12px}.bottomNav{position:fixed;bottom:0;left:0;right:0;padding:7px 12px max(9px, env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -8px 25px rgba(17,47,64,.07);display:grid;grid-template-columns:repeat(5,1fr);z-index:40}.bottomNav button{border:0;background:transparent;color:#86969d;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 2px;border-radius:10px}.bottomNav button span{font-size:21px}.bottomNav button.active{color:var(--teal);font-weight:800;background:#eaf5f5}label{font-size:12px;font-weight:700;display:block;margin:0 0 5px;color:#47636e}input,select,textarea{width:100%;border:1px solid #ccdadd;background:#fff;border-radius:11px;min-height:45px;padding:10px 12px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #a6d4d43d}textarea{min-height:75px;resize:vertical}.formGrid{display:grid;grid-template-columns:1fr;gap:12px}.inputWrap{min-width:0}.formActions{margin-top:17px;display:flex;gap:8px}.ganttScroll{overflow-x:auto;border:1px solid var(--line);border-radius:13px;background:#fff;direction:rtl}.ganttRow{display:grid;grid-template-columns:260px repeat(10,47px);min-width:730px;border-bottom:1px solid #edf1f1;align-items:stretch}.ganttRow:last-child{border-bottom:0}.ganttRow.head{background:#e8f2f3;position:sticky;top:0;z-index:2}.ganttTask{padding:9px 12px;font-size:11px;position:sticky;right:0;background:#fff;z-index:1;border-left:1px solid #e6eeee;min-height:51px}.ganttRow.head .ganttTask{background:#e8f2f3}.ganttTask b{display:block;font-size:12px}.ganttCell{border-left:1px solid #eef3f3;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;color:#75858d;position:relative}.ganttCell .bar{display:block;width:83%;height:18px;border-radius:4px;background:#12818a}.ganttCell .bar.done{background:#39a378}.ganttCell .bar.blocked{background:#c55c64}.ganttCell.current{background:#fff9e8}.ganttCell .weekBadge{background:#d9e7e8;padding:2px 4px;border-radius:4px}.selects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.detailLink{border:0;background:#eff5f5;color:var(--teal);padding:5px 8px;border-radius:7px;font-size:11px}.fab{position:fixed;bottom:86px;left:20px;z-index:20;border-radius:50px;width:54px;height:54px;font-size:30px;box-shadow:0 8px 20px #087d8440}.modalOverlay{position:fixed;inset:0;background:#0a2431a8;z-index:60;display:flex;align-items:flex-end;justify-content:center}.modal{width:100%;max-width:620px;max-height:93vh;overflow:auto;border-radius:24px 24px 0 0;background:#fff;padding:20px 18px 30px}.modalTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.modalTop h3{margin:0;font-size:17px}.close{border:0;background:#edf2f3;border-radius:50%;width:35px;height:35px}.pics{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.pics img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.tabRow{display:flex;gap:8px;overflow:auto;padding-bottom:8px;margin-bottom:5px}.tabRow button{background:#fff;border:1px solid #cadae0;padding:7px 13px;border-radius:24px;white-space:nowrap;color:var(--ink);font-size:12px}.tabRow button.active{background:var(--teal);color:white;border-color:var(--teal)}.tableSelect{min-width:130px}.statsLine{display:flex;justify-content:space-between;align-items:center}.statBox{padding:10px 12px;background:#f0f6f6;border-radius:12px;margin:7px 0;font-size:12px}.subhead{margin:4px 0 12px}.statusDot{width:8px;height:8px;border-radius:50%;background:var(--gold);display:inline-block;margin-left:6px}.statusDot.good{background:#2f9879}.statusDot.danger{background:#cc5962}.hide{display:none!important}@media(min-width:760px){header{padding-top:32px}.headtitle{font-size:28px}.kpis{grid-template-columns:repeat(4,1fr)}.formGrid{grid-template-columns:1fr 1fr}.wide{grid-column:1/-1}.areaList{grid-template-columns:repeat(3,1fr)}.bottomNav{max-width:750px;margin:auto;border-radius:18px 18px 0 0}.modalOverlay{align-items:center}.modal{border-radius:24px}.ganttRow{grid-template-columns:300px repeat(10,1fr);min-width:850px}}

/* Enhanced controls - compatible with the previous visual language */
.sessionbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:13px;position:relative;z-index:2}.sessionbar label{color:#dbeff1;margin:0}.sessionbar select{width:auto;min-width:120px;min-height:33px;max-width:46vw;padding:5px 9px;font-size:12px;border:0;background:#eaf4f5}.badgeDemo{font-size:10px;color:#ffdeb0;background:#4a5963;padding:5px 9px;border-radius:30px}
.bottomNav{grid-template-columns:repeat(8,minmax(67px,1fr));overflow-x:auto;scrollbar-width:none;justify-content:space-between}.bottomNav button{white-space:nowrap;min-width:67px}.bottomNav button span{font-size:19px}.toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 14px}.toolbar>*{flex:1}.caseId{font-size:10px;color:#78929c;letter-spacing:1px}.caseLine{border-top:1px solid var(--line);padding-top:11px;margin-top:11px}.statusBanner{background:#ecf3f5;border-radius:11px;padding:11px 14px;margin:10px 0}.stepTrack{display:flex;gap:6px;flex-wrap:wrap}.stepTrack span{border:1px solid #d4e0e4;border-radius:16px;padding:3px 8px;font-size:10px}.stepTrack span.done{background:#e0f2ea;border-color:#93cfba}.permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 11px}.permItem{display:flex;gap:7px;align-items:flex-start;border:1px solid #e1eaec;border-radius:9px;padding:8px;font-size:11px}.permItem input{min-height:18px;max-width:18px;margin:3px 0 0;accent-color:#087d84}.permItem span{line-height:1.5}.sep{border-top:1px solid var(--line);margin:18px 0}.help{font-size:12px;background:#edf6f5;border:1px solid #cde3e0;border-radius:12px;padding:12px}.smallBtnBar{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.tiny-muted{font-size:11px;color:var(--muted)}.memberRow{display:flex;align-items:center;justify-content:space-between;gap:10px}.readonlyNotice{background:#fff6e9;padding:8px;border-radius:9px;color:#815f2f;font-size:11px;margin:7px 0}.draftBox{background:#f1f8f8;border:1px dashed #a3c9ce;border-radius:12px;padding:12px}
@media(max-width:420px){.bottomNav{grid-template-columns:repeat(8,minmax(57px,1fr));padding-left:0;padding-right:0}.bottomNav button{min-width:57px;font-size:10px}.permissions{grid-template-columns:1fr}.sessionbar select{max-width:40vw}}

/* نسخه ۳: هماهنگ با زبان بصری شیت‌های معماری پروژه */
:root{--ink:#18384a;--navy:#153449;--teal:#076f7c;--gold:#b99353;--soft:#eef4f3;--line:#d9e4e4;--bg:#f4f7f7}
body{background-image:linear-gradient(rgba(15,92,102,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(15,92,102,.018) 1px,transparent 1px);background-size:26px 26px}
.bottomNav{display:flex;overflow-x:auto;gap:0;scrollbar-width:none;justify-content:space-between}.bottomNav::-webkit-scrollbar{display:none}.bottomNav button{flex:0 0 66px;font-size:10px;scroll-snap-align:start}.bottomNav button span{font-size:20px}
.archHero{position:relative;background:var(--navy);border-radius:24px;overflow:hidden;min-height:250px;margin-bottom:16px;color:#fff;box-shadow:0 20px 40px rgba(15,52,67,.18)}
.archHero img{display:block;width:100%;height:260px;object-fit:cover;opacity:.91}.archHero:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(12,34,50,.96) 0,rgba(12,34,50,.22) 76%)}
.archHero .heroText{position:absolute;inset:auto 17px 18px 17px;z-index:2}.archHero h2{font-size:24px;line-height:1.4;margin:0 0 5px;color:white}.archHero p{margin:0;font-size:12px;color:#e0eaec}.heroTags{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.heroTags span{font-size:10px;border:1px solid #ffffff66;background:#16394fa8;padding:4px 9px;border-radius:30px}
.sectionEyebrow{font-size:10px;letter-spacing:1px;color:var(--teal);font-weight:800}
.featureTiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:13px}
.featureTile{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:var(--shadow);text-align:right;padding:0;color:var(--ink)}.featureTile img{width:100%;height:115px;object-fit:cover;display:block}.featureTile .inner{padding:11px}.featureTile h3{font-size:13px;margin:0 0 5px}.featureTile .small{font-size:10px}
.spaceHero{width:100%;height:200px;object-fit:cover;border-radius:14px;border:1px solid var(--line)}.spacePics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.spacePics figure{margin:0}.spacePics img{width:100%;height:170px;object-fit:contain;border-radius:12px;background:#f7f9f8;border:1px solid var(--line)}.spacePics figcaption{font-size:11px;color:var(--muted);text-align:center;margin-top:5px}
.archRow{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.archChip{border-radius:22px;background:#e6f1f1;color:#146876;padding:4px 10px;font-size:11px}.archChip.gold{background:#fcf2de;color:#8d672f}.archChip.warn{background:#f9e5e3;color:#a13e42}
.spaceSummary{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.spaceSummary>div{background:#f3f7f7;border-radius:12px;padding:10px;font-size:11px}.spaceSummary b{display:block;font-size:17px;color:var(--navy)}
.timelineLine{display:flex;align-items:end;gap:5px;min-height:152px;border-bottom:2px solid #dce6e6;overflow-x:auto;padding:0 2px 7px}.timelineLine .weekBlock{min-width:39px;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:5px;height:145px}.timelineLine .barTrack{width:24px;height:110px;display:flex;align-items:end;background:#edf2f3;border-radius:6px 6px 0 0;overflow:hidden}.timelineLine .barFill{background:linear-gradient(180deg,#258e98,#0f6071);width:100%;border-radius:6px 6px 0 0;min-height:0}.timelineLine .wk{font-size:10px;color:#5e7a85}.timelineLine .wkNum{font-size:10px;font-weight:800}
.chartLine{width:100%;height:auto;display:block}.chartLegend{display:flex;gap:14px;font-size:11px;margin:8px 0;color:#637d86}.chartLegend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-left:5px;background:#0f7884}.chartLegend i.orange{background:#c29859}
.delayRow{border-bottom:1px solid var(--line);padding:10px 0;display:flex;justify-content:space-between;gap:12px}.delayRow:last-child{border:0}.delayRow p{margin:4px 0 0;color:#667d86;font-size:11px}
.photoPreview{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.photoPreview img{width:100%;height:160px;object-fit:cover;border-radius:11px}
.archNotice{padding:12px;border-radius:12px;background:#fff8eb;border:1px solid #ecd9b5;font-size:12px;color:#755d34;margin:12px 0}
.printSheet{display:none}
@media(min-width:820px){.featureTiles{grid-template-columns:repeat(4,1fr)}.featureTile img{height:150px}.spacePics img{height:270px}.archHero img{height:325px}.archHero h2{font-size:31px}}
@media print{body{padding:0!important;background:white!important;direction:rtl}body>*:not(.printSheet){display:none!important}.printSheet{display:block!important;color:#1a3343;font:13px Tahoma,Arial,sans-serif;padding:16px;line-height:1.65}.printSheet h1{font-size:25px;margin:0 0 6px}.printSheet img{max-height:210px;object-fit:contain}.printGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.printCard{border:1px solid #cddbdc;border-radius:8px;padding:12px;break-inside:avoid;margin:10px 0}.printSheet table{width:100%;border-collapse:collapse;font-size:11px}.printSheet td,.printSheet th{border:1px solid #ccd9dd;padding:7px;vertical-align:top}.printSheet th{background:#e5eff0}.printSheet .archChip{border:1px solid #d0dede}.printSheet .chartLine{max-height:185px}.printSheet .archHero{box-shadow:none;min-height:200px}.printSheet .archHero img{max-height:210px;height:210px;object-fit:cover}.printSheet .archHero .heroText h2{font-size:23px}}


/* V4 architectural atlas / clear weekly workflow */
.v4NavCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}.v4NavCard{padding:16px 12px;border:1px solid #cbdcde;border-radius:17px;background:linear-gradient(135deg,#fff,#eaf3f3);text-align:right;color:#1b4856;min-height:107px;display:flex;flex-direction:column;justify-content:center;gap:4px}.v4NavCard b{font-size:15px}.v4NavCard small{font-size:11px;color:#738d94}.v4NavCard em{font-style:normal;color:#b99158;font-weight:900}.v4GroupRow{display:flex;gap:7px;overflow-x:auto;padding:5px 0 14px;scrollbar-width:thin}.v4GroupRow button{white-space:nowrap;border-radius:24px;border:1px solid #bdd6d8;background:white;color:#315b66;padding:8px 12px;font-size:11px}.v4GroupRow button.active{background:#126d79;color:white;border-color:#126d79}.v4HelpSteps{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:13px}.v4HelpStep{border-radius:12px;border:1px solid #d4e1e1;background:#f8fbfb;padding:12px}.v4HelpStep b{display:block;font-size:12px}.v4HelpStep span{font-size:11px;color:#617983}.v4WkPanel{border:1px solid #d5e3e2;border-radius:17px;background:#fff;padding:16px;margin-bottom:14px}.v4WkTable{width:100%;border-collapse:collapse;font-size:12px}.v4WkTable td,.v4WkTable th{border-bottom:1px solid #e1ebeb;padding:9px 5px;text-align:right}.v4WkTable th{background:#edf4f4}.v4Flag{color:#ad4c42;font-weight:700}.v4Tag{display:inline-block;padding:3px 9px;border:1px solid #dce8e8;border-radius:24px;font-size:11px;color:#386874}.v4Draft{border-right:3px solid #bb9361;padding:12px;background:#fffcf5;border-radius:10px;margin:10px 0}.v4Divider{height:1px;background:#dce7e8;margin:14px 0}.v4FilterBar{display:flex;gap:12px;align-items:center;margin:5px 0 12px}.v4FilterBar input{flex:1}.v4FilterBar button{flex:0 0 auto}.v4Alert{border:1px solid #e9c6a0;background:#fff7e9;color:#81613d;border-radius:12px;padding:13px;font-size:12px;margin-bottom:13px}
@media(min-width:760px){.v4NavCards{grid-template-columns:repeat(4,1fr)}.v4HelpSteps{grid-template-columns:repeat(4,1fr)}}
@media print{@page{size:A4;margin:10mm}.printSheet{font-family:Tahoma,Arial,sans-serif;font-size:11px}.printSheet{padding:5px!important}.printSheet .v4WkPanel{padding:7px;margin:4px 0}.printSheet .kpis{margin:3px 0;gap:5px}.printSheet .kpi{padding:5px}.printSheet .kpi strong{font-size:17px}.printSheet .v4WkTable{font-size:9px}.printSheet .v4WkTable td,.printSheet .v4WkTable th{padding:4px}.printSheet .v4ReportSection{margin:5px 0}.printSheet .v4ReportSection h3{margin:5px 0 3px}.printSheet .v4ReportSection p{margin:2px 0}.printSheet h1{font-size:20px}.printSheet .v4ReportSection{margin:12px 0;break-inside:avoid}.printSheet .v4ReportSection h3{color:#174756;border-bottom:1px solid #d9e6e6;padding-bottom:5px}.printSheet .v4PrintHead{border-bottom:3px solid #176e79;padding-bottom:13px;margin-bottom:14px}}


/* V5 | Architectural drawing-board interface */
:root{--v5deep:#123446;--v5blue:#135d71;--v5copper:#b88b53}
body{background-image:linear-gradient(rgba(19,90,106,.023) 1px,transparent 1px),linear-gradient(90deg,rgba(19,90,106,.023) 1px,transparent 1px);background-size:22px 22px}
.v5Intro{position:relative;overflow:hidden;color:#eff9f9;background:radial-gradient(circle at 90% 15%,#2c7281 0%,#153d54 42%,#0e283b 100%);border-radius:20px;padding:18px;margin-bottom:15px;border:1px solid #4c7481}
.v5Intro:after{content:"";position:absolute;left:-20px;top:-30px;width:240px;height:240px;opacity:.22;background:repeating-radial-gradient(circle,transparent 0 31px,#90c5cf 32px,#90c5cf 33px,transparent 34px 46px);pointer-events:none}
.v5Intro b{font-size:20px;display:block;position:relative;z-index:1}.v5Intro p{font-size:12px;color:#c9e0e5;margin:6px 0;position:relative;z-index:1}.v5Intro .row{z-index:1;position:relative}.v5MiniCaps{font-size:10px;letter-spacing:1px;color:#dabf92}
.v5Controls{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.v5Controls button,.v5Controls select{font-size:12px;padding:8px 12px;border:1px solid #bed2d6;background:white;border-radius:11px;color:#28505c;min-height:39px}.v5Controls button.active{background:#153f55;color:white;border-color:#153f55}.v5Controls select{min-width:125px;flex:1}
.v5GanttFrame{position:relative;overflow-x:auto;scrollbar-width:thin;border:1px solid #c9dce0;border-radius:17px;background:#fff;box-shadow:0 14px 35px rgba(18,52,70,.08)}
.v5GanttTable{border-collapse:separate;border-spacing:0;min-width:max-content;font-size:12px}.v5GanttTable th,.v5GanttTable td{border-bottom:1px solid #dfebec;border-left:1px solid #e6eff0;padding:0;text-align:center;height:51px}.v5GanttTable th{background:#163e51;color:#f3f9fa;height:62px;font-weight:600;white-space:nowrap}.v5GanttTable th small{display:block;color:#bcd2d9;font-weight:400;font-size:10px}.v5GanttTable th.timeNow{background:#285e6b}.v5GanttTable td:nth-child(even){background-color:#f7fafa}.v5GanttTable tr:hover td{background-color:#eef7f8}
.v5GanttTable .v5Sticky{position:sticky;right:0;z-index:3;min-width:267px;width:267px;text-align:right!important;border-left:1px solid #adcbd2;padding:8px 12px;background:#fff;box-shadow:-5px 0 12px rgba(16,53,68,.05)}.v5GanttTable th.v5Sticky{background:#163e51;color:white;z-index:5}.v5GanttTable tr:hover td.v5Sticky{background:#f4fafa}.v5GanttTable .v5Sticky strong{display:block;max-width:270px;font-size:11px;line-height:1.4;color:#173747}.v5GanttTable .v5Sticky small{display:block;color:#68818c;font-size:10px}.v5GanttTable .v5Sticky button{border:0;background:none;color:#087480;font-size:10px;text-decoration:underline;margin-top:3px;padding:0}
.v5GanttTable .v5TimeCell{min-width:53px;width:53px;position:relative;background-image:linear-gradient(transparent 96%,rgba(13,85,100,.10) 96%)}.v5GanttTable td.v5Today{box-shadow:inset 0 0 0 2px #e8cda1}.v5Bar{height:14px;border-radius:3px;min-width:7px;margin:0 2px;box-shadow:0 2px 6px rgba(18,52,70,.17);position:relative;overflow:hidden}.v5Bar:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(120deg,transparent 0 11px,rgba(255,255,255,.19) 12px 13px)}.v5Bar i{position:absolute;right:0;top:0;bottom:0;background:rgba(255,255,255,.25);display:block;border-left:2px solid #fff}.v5Empty{font-size:11px;color:#89a5ae}
.v5Legend{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0;font-size:11px;color:#577582}.v5Legend span:before{content:"";display:inline-block;width:11px;height:11px;background:#1b8291;border-radius:3px;margin-left:4px;vertical-align:-2px}.v5Legend span:nth-child(2):before{background:#c39352}.v5Legend span:nth-child(3):before{background:#b45c56}.v5Legend span:nth-child(4):before{background:#a6b8bc}
.v5BudgetGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.v5Cashflow{background:#fff;border:1px solid #d8e5e5;border-radius:17px;padding:15px;margin:14px 0;overflow:hidden}.v5CashflowHead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}.v5CashflowHead h3{margin:0;font-size:14px}.v5CashflowScroll{overflow-x:auto}.v5CashflowChart{display:flex;align-items:end;gap:5px;min-width:690px;border-bottom:1px solid #bcd2d5;margin-top:10px;height:180px;padding-bottom:17px}.v5CashflowItem{flex:1;min-width:23px;height:160px;display:flex;flex-direction:column;justify-content:end;align-items:center;position:relative}.v5CashflowBars{height:120px;display:flex;align-items:end;gap:2px}.v5CashflowBars i{display:block;width:9px;border-radius:4px 4px 0 0;background:linear-gradient(#2d9baa,#0d5a6a);min-height:2px}.v5CashflowBars i.paid{background:linear-gradient(#e1b880,#a47b46)}.v5CashflowItem small{position:absolute;bottom:-21px;font-size:9px;color:#71868d;white-space:nowrap}.v5CashflowLegend{font-size:10px;color:#657e87;display:flex;gap:13px}.v5CashflowLegend span:before{content:"";display:inline-block;background:#157584;border-radius:2px;width:9px;height:9px;margin-left:4px}.v5CashflowLegend span+span:before{background:#c4975c}
.v5BudgetGrid .v5Metric{background:linear-gradient(140deg,#fff,#eff6f6);border:1px solid #d7e4e6;border-radius:15px;padding:13px}.v5Metric small{display:block;color:#647e87;font-size:11px}.v5Metric b{display:block;color:#143e51;font-size:19px;direction:ltr;text-align:right}.v5Metric em{font-size:10px;font-style:normal;color:#8ba1a7}
.v5Contract{border:1px solid #d9e6e8;border-radius:14px;padding:15px;background:#fff;margin:10px 0;box-shadow:0 4px 15px rgba(18,52,70,.04)}.v5Contract .v5Border{height:4px;border-radius:2px;background:linear-gradient(90deg,#b98c56,#167a83);margin-bottom:11px}.v5Contract h3{margin:0 0 3px;font-size:14px}.v5Contract .v5Line{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:9px;font-size:12px}.v5Contract .v5Actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.v5MoneyTable{width:100%;border-collapse:collapse;min-width:630px;font-size:11px}.v5MoneyTable th{background:#153b4b;color:white;padding:10px;text-align:right}.v5MoneyTable td{padding:9px 10px;border-bottom:1px solid #dce7e8;vertical-align:middle}.v5MoneyTable tr:nth-child(even) td{background:#f5f9f9}.v5MoneyScroll{overflow:auto;border:1px solid #d5e4e5;border-radius:12px}.v5MoneyTable button{font-size:11px;color:#116d7a;background:none;border:0;text-decoration:underline}
.v5FeePanel{background:linear-gradient(135deg,#173c50,#0e2736);color:white;padding:20px;border-radius:20px;border:1px solid #527987;box-shadow:0 12px 24px rgba(18,52,70,.14)}.v5FeePanel h3{font-size:20px;color:#fff;margin:0 0 7px}.v5FeePanel .v5FeeNumber{color:#f1c487;font-weight:900;font-size:28px}.v5FeePanel .v5BudgetGrid .v5Metric{background:#214c5f;border-color:#487281}.v5FeePanel .v5Metric b{color:#fff}.v5FeePanel .v5Metric small{color:#bfdae0}.v5FeePanel p{color:#dcecee;font-size:11px}.v5Caution{background:#fff7e8;border:1px solid #efd5ad;border-radius:13px;padding:12px;color:#6e532b;font-size:11px;margin:12px 0}
.v5Kind{font-size:10px;border-radius:30px;padding:4px 9px;background:#e6f2f2;color:#1c6572;display:inline-block}.v5Kind.gold{background:#fbefdc;color:#916b37}.v5Progress{height:6px;background:#d7e7e8;border-radius:8px;overflow:hidden;margin:8px 0}.v5Progress i{height:100%;display:block;background:linear-gradient(90deg,#c79c61,#147683)}.v5ReportHelp{background:#eaf4f4;border-right:3px solid #197785;padding:11px;border-radius:8px;font-size:11px;color:#426a76;margin:10px 0}.v5FormSection{margin:12px 0;font-weight:800;border-bottom:1px solid #dbe6e8;padding-bottom:6px}.v5MiniButton{padding:6px 10px;border-radius:10px;border:1px solid #cddfe1;background:#fff;font-size:11px;color:#246572}
@media (min-width:760px){.v5BudgetGrid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:540px){.v5GanttTable .v5Sticky{width:215px;min-width:215px}.v5GanttTable .v5Sticky strong{font-size:10px}.v5GanttTable .v5TimeCell{width:47px;min-width:47px}.v5Intro b{font-size:18px}}
@media print{.v5MoneyScroll{overflow:visible}.v5MoneyTable{min-width:0;font-size:10px}.v5MoneyTable td,.v5MoneyTable th{border:1px solid #d0dddf;padding:6px}.v5FeePanel{background:#edf4f5!important;color:#173d4b!important;box-shadow:none;border:1px solid #98b2b9}.v5FeePanel h3,.v5FeePanel .v5FeeNumber,.v5FeePanel .v5Metric b{color:#14394b!important}}


/* v6 - mobile Safari Gantt and review workflows */
.v5GanttFrame{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;isolation:isolate}
.v5GanttTable .v5Sticky{background:#fff!important;position:-webkit-sticky;position:sticky;right:0;z-index:4;-webkit-transform:translateZ(0);transform:translateZ(0);backface-visibility:hidden}
.v5GanttTable thead .v5Sticky,.v5GanttTable th.v5Sticky{background:#163e51!important;color:white;z-index:7}
.v6ItemActions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:10px}
.v6History{background:#f4f8f8;border-radius:12px;padding:10px;margin-top:10px}
.v6History summary{cursor:pointer;color:#285f6a}
.v6Reply{padding:10px 12px;border-right:3px solid #b88b53;background:#fbfdfd;border-radius:10px;margin-top:8px}
.v6Transfer{border:1px dashed #b4cbce;border-radius:12px;padding:12px;margin:10px 0}
@media(max-width:600px){.v5GanttTable .v5Sticky{min-width:210px;width:210px}}


.v7MediaBox{background:#f2f7f7;border:1px dashed #a5b9bf;border-radius:12px;padding:11px}
.v7RecordActions{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0}
.v7RecordActions button{flex:1}
.v7MediaGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.v7MediaItem{border-radius:12px;border:1px solid #cbd9dc;background:#f6faf9;padding:10px;overflow:hidden;min-width:0}
.v7MediaItem img,.v7MediaItem video{width:100%;height:auto;max-height:330px;object-fit:contain;border-radius:8px;background:#dce6e7}
.v7MediaItem audio{display:block;width:100%;margin:10px 0}
.v7DemoTag{font-size:12px;line-height:1.9;background:#fff8e7;border:1px solid #caa869;color:#5c4521;border-radius:8px;padding:7px 9px;margin:9px 0;font-weight:bold}
#v7RecordPreview audio{width:100%;margin:8px 0}
@media(max-width:540px){.v7MediaGrid{grid-template-columns:1fr}}

/* V8: Review workflow & reports analytics */
.v8Overview,.v8GanttReports{margin:15px 0 21px;background:#fff;border:1px solid #d4e2e6;border-radius:18px;padding:16px;box-shadow:0 4px 18px #19465c0a}
.v8Kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}
.v8Kpis button{display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;border:1px solid #cadfe3;background:#f8fbfc;border-radius:13px;padding:13px 6px;color:#244153;cursor:pointer;font-family:inherit}
.v8Kpis strong{font-size:27px;color:#124b5b;font-variant-numeric:tabular-nums}.v8Kpis small{font-size:12px;text-align:center}
.v8ChartRow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.v8Chart{border:1px solid #e4ecee;border-radius:12px;padding:15px}.v8Chart h3{font-size:15px;margin:0 0 13px}
.v8BarItem{margin:12px 0}.v8BarItem span{display:flex;align-items:center;justify-content:space-between;font-size:12px}.v8BarTrack{height:10px;background:#edf3f5;border-radius:18px;overflow:hidden;margin-top:7px}.v8BarTrack i{display:block;height:100%;background:#5d8c9b;border-radius:18px}.v8BarTrack i.ok{background:#568b77}.v8BarTrack i.wait{background:#bb9659}.v8BarTrack i.back{background:#b97878}
.v8StatusLine{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:12px 0}.v8StatusLine small{color:#627c85;font-size:12px}.v8Status{border-radius:40px;padding:6px 12px;display:inline-block;border:1px solid #d4dde0;font-size:12px;white-space:nowrap;font-weight:bold}.v8Status.wait{color:#7a5d25;background:#fbf5e9;border-color:#ead3aa}.v8Status.ok{color:#28694f;background:#eaf5ef;border-color:#c5e4d0}.v8Status.back{color:#994749;background:#fff0f0;border-color:#f0c8c8}
.v8ReportCard{border-right:4px solid #b8d3dc}.v8Note{background:#f2f6f8;border-radius:10px;padding:12px;margin:10px 0;font-size:13px}.v8ReviewLog{margin-top:12px;border:1px solid #e2ecee;border-radius:9px;padding:10px}.v8LogRow{padding:10px;border-bottom:1px solid #e8eff1}.v8LogRow:last-child{border:0}
.v8Reader{display:flex;gap:11px;align-items:center;cursor:pointer;padding:12px;margin:6px 0;background:#f5f9fa;border:1px solid #dce9eb;border-radius:9px}.v8Reader input{width:20px;height:20px}.v8Reader span{flex:1}.v8Reader small{color:#607782}
.v8FilterGrid{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:10px}.v8FilterGrid label{font-size:12px;font-weight:bold}.v8FilterGrid select,.v8FilterGrid input{width:100%;margin-top:7px}.v8Filters>button{margin-top:12px}.v8LinkFilter{padding:10px;color:#2c6b77}
.v8TaskReports{border-top:1px solid #e1eaed;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.v8TaskReports div{display:flex;flex-direction:column;gap:4px}.v8TaskReports small,.v8GanttSummary{color:#56757e;font-size:12px}
@media(max-width:650px){.v8Overview,.v8GanttReports{padding:12px}.v8Kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v8ChartRow{grid-template-columns:1fr}.v8FilterGrid{grid-template-columns:1fr}.v8StatusLine{flex-wrap:wrap}.v8TaskReports{flex-wrap:wrap}.v8Kpis strong{font-size:22px}}


/* V8.1 — accessible recording feedback for new and edited reports */
.v81FileLabel{font-size:12px;color:#4b6b75;margin:8px 0 4px}
.v81AudioGuide{font-size:12px;color:#5e7780;margin-top:10px;line-height:1.9}
.v81AudioReady{padding:12px;border:1px solid #b6d8d1;background:#f1faf7;border-radius:12px;margin-top:10px;display:flex;flex-direction:column;gap:8px}
.v81AudioReady audio{width:100%;min-width:0}
.v7RecordActions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.v7RecordActions button:disabled{opacity:.5;cursor:not-allowed}
#v7RecordStatus{line-height:1.9}

.v82Connection{display:inline-block;margin:9px 0 0;padding:4px 10px;border:1px solid #a4d5cb;border-radius:16px;color:#d8f1e8;background:#2f636c;font-size:11px}.v82Connection.offline{background:#76552d;border-color:#ddbc86;color:#fff3d9}

body:not(.signed-in)>header,body:not(.signed-in)>main,body:not(.signed-in)>nav,body:not(.signed-in)>#modalRoot{display:none!important}
#siahkalAuth[hidden]{display:none!important}
#siahkalAuth{min-height:100vh;display:grid;place-items:center;padding:18px;background:linear-gradient(155deg,#153c50 0%,#176d71 65%,#eee6d4 160%)}
#siahkalAuth .authPanel{width:min(100%,440px);background:#fff;border-radius:22px;padding:28px;box-shadow:0 18px 55px #102b3e60}
#siahkalAuth h1{margin:0 0 8px;font-size:24px;color:#174455}
#siahkalAuth p{color:#55727b}
#siahkalAuth label{display:block;margin-top:16px;font-weight:700}
#siahkalAuth input{width:100%;padding:13px;border:1px solid #b9ced0;border-radius:12px;margin-top:6px;direction:ltr;text-align:left}
#siahkalAuth button{width:100%;padding:13px;margin-top:18px;border:0;border-radius:12px;background:#087c82;color:#fff;font-weight:bold}
#siahkalAuth button:disabled{opacity:.5}
#onlineLoginError{min-height:25px;color:#ae3333;font-size:13px;margin-top:10px}
#siahkalCloudStatus{font-weight:bold;font-size:12px;margin:0 8px}
.sessionbar{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px}

/* MODIRSAZ — deliberate typography and architectural identity. Fonts are CDN-loaded,
   not embedded in the distribution; system fallback remains available. */

:root{--ink:#153443;--navy:#122f3c;--teal:#087f86;--gold:#c9a475;--bg:#f3f6f6;--shadow:0 10px 32px rgba(20,54,69,.065)}
body{font-family:'Vazirmatn','Segoe UI',Tahoma,sans-serif;font-size:14px;letter-spacing:0}
header{background:linear-gradient(130deg,#112e3e 0%,#174c55 75%,#207981 135%);border-radius:0 0 29px 29px}
header:before{border-radius:0;transform:rotate(27deg);left:10%;top:-140px;width:350px;height:350px;opacity:.16}
header:after{border-radius:0;transform:rotate(45deg);left:-40px;bottom:-140px;opacity:.15}
.headtitle,h1,h2,h3,.sectionHead h2,.card h3,.authPanel h1,.msHubBrand{font-family:'Estedad','Vazirmatn',Tahoma,sans-serif;font-weight:800;letter-spacing:-.3px}
.bottomNav button{font-family:'Estedad','Vazirmatn',Tahoma,sans-serif;font-weight:600;font-size:11px}
.btn,button,.tabButton,.pill{font-family:'Estedad','Vazirmatn',Tahoma,sans-serif;font-weight:600}
.kpi strong,.v8Kpis strong{font-family:'Vazirmatn',Tahoma,sans-serif;font-variant-numeric:tabular-nums}
#siahkalAuth .authPanel{box-shadow:0 25px 95px rgba(7,27,34,.25);border:1px solid #d4e2e2;position:relative;overflow:hidden}
#siahkalAuth .authPanel:before{content:'◈';position:absolute;left:-10px;top:-50px;font-size:180px;color:#157b8320;pointer-events:none}
#siahkalAuth .authPanel>h1{font-size:34px;color:#123544}
.msRecoveryToggle{color:#24767b!important;background:transparent!important;text-decoration:underline;width:auto!important;font-size:12px!important;padding:5px!important;margin-top:8px!important}
#msRecoveryForm[hidden],#projectHub[hidden],#newProjectArea[hidden]{display:none!important}
body.projects-open>header,body.projects-open>main,body.projects-open>nav{display:none!important}
#projectHub{min-height:100vh;background:linear-gradient(145deg,#102d3e 0%,#184450 44%,#edf1ed 44.1%,#f7faf8 100%);padding:22px 18px 115px;color:#183442}
.msHubInner{max-width:1120px;margin:auto}
.msHubBrand{color:#f5e5ca;font-size:31px;letter-spacing:-1px;padding:9px 0 20px}.msHubBrand span{font-size:12px;letter-spacing:3px;display:inline-block;color:#c3dce1;margin-right:12px}
#projectHub h1{font-size:27px;color:#fff;margin:0 0 4px}#projectHub>div>p{color:#e2eff1;font-size:13px;margin:0 0 31px}
.msProjectGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.msProjectCard{border:1px solid #dce7e7;box-shadow:0 8px 28px rgba(18,52,66,.1);border-radius:17px;background:#fff;padding:0;text-align:right;overflow:hidden;color:#203c4a}
.msProjectCard:hover{transform:translateY(-2px);box-shadow:0 12px 30px #163b4f30}
.msProjectArt{min-height:125px;background:linear-gradient(134deg,#1a6271,#123444);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:20px;position:relative;overflow:hidden}
.msProjectArt:before,.msProjectArt:after{content:'';position:absolute;border:1px solid #ffffff32;transform:rotate(35deg);width:200px;height:100px;left:-60px;top:-40px}.msProjectArt:after{top:25px;left:-95px}
.msProjectArt span{font-size:28px;color:#e6c89d;z-index:1}.msProjectArt b{font-family:Estedad,Vazirmatn,sans-serif;font-size:19px;z-index:1}
.msProjectMeta{padding:15px;font-size:12px;color:#59737b}
#newProjectArea{margin:34px 0;background:#fff;border-radius:18px;padding:20px;box-shadow:var(--shadow)}#newProjectArea h2{color:#164556;margin:0 0 16px}
.msHubCreate{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;align-items:end}
.msHubCreate label,.msStack label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}
.msHubCreate input,.msStack input,.msStack select,.msStack textarea{width:100%;min-height:43px;padding:10px 11px;border:1px solid #c7d9dc;border-radius:11px;background:#fff;color:#183748}
.msStack textarea{min-height:92px}.msStack{display:flex;flex-direction:column;gap:12px;margin:14px 0}
.msHubLogout{color:#235e65;background:#ecf5f4;border:1px solid #c0d6d8;border-radius:12px;padding:9px 17px;margin-top:15px}
.msMessageItem{display:flex;align-items:flex-start;flex-direction:column;gap:4px;border:1px solid #d8e7e8;background:#f5fbfa;border-radius:11px;padding:11px;width:100%;text-align:right;margin:7px 0}
.msMessageItem strong{font-size:14px;color:#163e49}.msMessageItem span{font-size:11px;color:#577681}
.msGuide{margin:9px 0;border:1px solid #d9e5e7;padding:11px 14px;border-radius:12px;background:#f6faf9}
.msGuide>summary{cursor:pointer;color:#255d69;font-weight:700}.msGuide>p{color:#4b646e;font-size:13px;line-height:2}
.msCheck{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-weight:500!important}.msCheck input{width:18px!important;height:18px!important;min-height:0!important;flex:none}
.msCodes{direction:ltr;text-align:left;white-space:pre-wrap;word-break:break-word;background:#eef3f4;padding:16px;border-radius:9px;font-size:14px;line-height:2.1}
@media(max-width:650px){.msProjectGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.msProjectArt{min-height:120px;padding:13px}.msProjectArt b{font-size:15px}.msProjectMeta{font-size:10px;padding:10px}.headtitle{font-size:20px}.sessionbar{gap:6px}.sessionbar .btn.tiny{font-size:10px;padding:5px 8px}}

.msBrandCredit{padding:14px 12px 90px;text-align:center;color:#70848b;font-size:11px;font-family:Vazirmatn,Tahoma,sans-serif}
body.projects-open .msBrandCredit{display:none}

/* Manager shortcuts + a one-row navigation that never clips Users/Finance on iPhone. */
.msMainNav{display:flex!important;align-items:stretch;overflow:visible!important;flex-wrap:nowrap;gap:2px;max-width:820px;margin:auto;z-index:48;padding:7px 4px max(10px,env(safe-area-inset-bottom))}
.msMainNav>button{min-width:0!important;flex:1 1 0!important;width:auto!important;font-size:10px!important;letter-spacing:-.25px;white-space:nowrap;padding:5px 0!important;touch-action:manipulation}
.msMainNav>button span{font-size:20px!important;line-height:1.2}
.msMainNav>button.active,#msMoreNav.active{background:#e3f2f1;color:#076e78;border-radius:11px}
@media(max-width:370px){.msMainNav>button{font-size:9px!important}.msMainNav>button span{font-size:18px!important}}
.msQuickAccess{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}
.msQuickAccess .btn{width:100%;font-size:12px;padding:11px 4px}
.msMoreMenu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.msMoreMenu button{min-height:68px;text-align:right;border-radius:13px;border:1px solid #d3e3e3;background:#f5faf9;padding:12px;color:#174353;font-weight:700}
.msMoreMenu button b{display:block;font-size:14px}.msMoreMenu button small{font-size:11px;color:#6b8288}
.msSpaceManage{margin-bottom:16px;border:1px solid #d3e4e2}
.msSpaceManage h3{margin:0 0 6px}.msSpaceManage .msStack{margin-top:7px}
.msSpaceGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:12px 0 22px}
.msSpaceCard{background:#fff;border:1px solid #d7e4e5;border-radius:15px;overflow:hidden;box-shadow:0 5px 14px rgba(17,57,65,.045)}
.msSpaceCover{height:135px;background:linear-gradient(137deg,#e7f2f2,#ccdedf);position:relative;display:flex;align-items:center;justify-content:center;color:#377783;font-size:35px;overflow:hidden}
.msSpaceCover img{width:100%;height:100%;object-fit:cover;display:block}
.msSpaceCover img[hidden]{display:none}
.msSpaceBody{padding:12px}.msSpaceBody h3{margin:0 0 4px;font-size:15px}.msSpaceBody p{font-size:12px;line-height:1.7;margin:4px 0;color:#637b83}
.msSpaceActions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.msSpaceActions .btn{padding:5px 9px}
.msFileRow{border:1px solid #dfebeb;background:#fafdfd;border-radius:10px;padding:11px;margin:8px 0}
.msFileRow img{width:100%;max-height:250px;object-fit:contain;border-radius:7px;margin-top:7px}
@media(max-width:500px){.msSpaceGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.msSpaceCover{height:120px}.msSpaceBody{padding:10px}.msSpaceActions{flex-direction:column}.msSpaceActions .btn{width:100%}}

/* v3.0.5: visibly removable attachments in iPhone form */
.v7SelectedFiles{display:grid;gap:8px;margin:8px 0}.v7FileCard{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border-radius:12px;border:1px solid #c7d7d9;background:#f4f9f9;color:#193a48;overflow-wrap:anywhere}.v7FileCard img{width:72px;height:58px;object-fit:cover;border-radius:7px}.v7FileCard>span{flex:1;font-size:13px;min-width:145px}.v7FileCard button{border:1px solid #c86d6a;border-radius:9px;background:#fff;color:#a02b2b;min-height:38px;padding:4px 10px}.v7FileCard audio,.v7FileCard video{max-width:100%;width:100%}.v7FileCard video{max-height:240px;object-fit:contain}.v7FileWarn{color:#9b2727;font-size:12px;display:block;width:100%}.v7MediaBox button[data-v7-clear],.inputWrap button[data-v7-clear]{margin-top:6px;font-size:13px;min-height:38px}

/* 3.2: responsive shell, automatically selected by viewport width. */
.msMobileMenu{display:none}.msMobileActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
#app,#modalRoot,.formGrid>*{min-width:0} .card{overflow-wrap:anywhere} audio,video{max-width:100%}
@media screen and (max-width:767px){
 html,body{width:100%;max-width:100%;overflow-x:hidden}
 body{padding-bottom:env(safe-area-inset-bottom,16px)}
 .container{width:100%;max-width:100%;padding:12px;box-sizing:border-box}
 header .headerInner{padding:16px 14px!important;max-width:100%;box-sizing:border-box}
 header .eyebrow{font-size:10px;letter-spacing:1px}header .headtitle{font-size:23px;line-height:1.5}header p{font-size:12px;line-height:1.8}
 .sessionbar{display:grid!important;grid-template-columns:1fr auto;gap:10px!important;align-items:center}
 .sessionbar>button{display:none!important}.sessionbar>#msMobileMenu{display:flex!important;align-items:center;justify-content:center;gap:8px;grid-column:2;grid-row:1 / span 2;min-height:46px;min-width:72px;border:1px solid #8dbfc3;background:white;color:#145d65;border-radius:12px;font:inherit;font-size:18px}
 .sessionbar>span{font-size:12px;line-height:1.8;min-width:0;overflow-wrap:anywhere}.sessionbar>#siahkalCloudStatus{grid-column:1;font-size:11px}
 .bottomNav{display:none!important}.miniTag{font-size:10px!important}
 .sectionHead{flex-wrap:wrap;gap:8px}.sectionHead h2{font-size:20px!important;line-height:1.6}
 .card{padding:14px!important;max-width:100%;box-sizing:border-box}.formGrid,.v8FilterGrid{grid-template-columns:minmax(0,1fr)!important}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;max-width:100%;width:100%;box-sizing:border-box;min-width:0}
 .btn,button{touch-action:manipulation}.btn{min-height:44px;white-space:normal}.v6ItemActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .modalOverlay{padding:10px!important;align-items:flex-start!important;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box}
 .modal{width:100%!important;max-width:100%!important;min-width:0!important;max-height:calc(100dvh - 24px)!important;overflow:auto;padding:16px!important;box-sizing:border-box;margin:0!important}
 .modalTop{position:sticky;top:-16px;background:white;z-index:2;padding:6px 0}.modalTop button{min-width:44px;min-height:44px}
 .msMoreMenu{display:grid;grid-template-columns:1fr!important;gap:9px}.msMoreMenu button{min-height:52px;text-align:right;font-size:15px}
 .v5GanttTable .v5Sticky{min-width:165px!important;width:165px!important;max-width:165px;white-space:normal}.v5GanttTable .v5Sticky strong{font-size:12px!important}
 .msProjectGrid{grid-template-columns:minmax(0,1fr)!important}.msMobileActions .btn{font-size:14px}
}

/* 3.3.7: stable mobile Gantt pinned column, no GPU layer promotion on sticky cells */
.v5GanttFrame{position:relative;overflow-x:auto;overflow-y:visible;isolation:auto;-webkit-overflow-scrolling:touch}
.v5GanttTable{border-collapse:separate;border-spacing:0}
.v5GanttTable .v5Sticky{position:sticky!important;right:0!important;transform:none!important;-webkit-transform:none!important;backface-visibility:visible!important;background:#fff!important;z-index:5;box-shadow:-1px 0 0 #dce6e8}
.v5GanttTable thead .v5Sticky{background:#163e51!important;z-index:8}
@media(max-width:600px){.v5GanttTable .v5Sticky{min-width:165px!important;width:165px!important;max-width:165px!important}}

/* Login screen redesign 3.3.20: isolated from the authenticated application */
#siahkalAuth{min-height:100dvh;padding:0 0 16px;background:#f5ecdf;display:flex;justify-content:center;align-items:flex-start}
#siahkalAuth .authPanel{width:min(100%,520px);max-width:520px;padding:0;border:0;border-radius:0;background:linear-gradient(180deg,#f9f4e9,#fffaf2);box-shadow:0 8px 50px #173a3a22;overflow:hidden}
#siahkalAuth .authPanel:before{display:none}
#siahkalAuth .msLoginHero{height:clamp(155px,31vw,220px);background:url('login-architecture.webp') center top/cover no-repeat;position:relative}
#siahkalAuth .msLoginHero:after{content:'';position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#f9f4e9)}
#siahkalAuth .msLoginContent{padding:0 24px 12px;text-align:center}
#siahkalAuth .msLoginLogo{height:49px;display:flex;align-items:flex-end;justify-content:center;gap:5px;margin-top:-8px;position:relative}
#siahkalAuth .msLoginLogo span{display:block;width:15px;border:3px solid #b8913b;border-bottom:0;border-radius:2px 2px 0 0;transform:skewY(-20deg)}
#siahkalAuth .msLoginLogo span:nth-child(1){height:23px}#siahkalAuth .msLoginLogo span:nth-child(2){height:37px}#siahkalAuth .msLoginLogo span:nth-child(3){height:29px}
#siahkalAuth h1{font-size:clamp(34px,8vw,48px);color:#07515b;margin:0;line-height:1.35}
#siahkalAuth .msLoginTag{background:#fff9eb;border:1px solid #d6b76b;border-radius:30px;color:#164d54;font-weight:800;font-size:clamp(12px,3.4vw,17px);padding:10px 7px;margin:8px 0 15px}
#siahkalAuth .msLoginFeatures{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap;color:#0e5861;font-size:11px;font-weight:700;padding-bottom:10px;border-bottom:1px solid #d9cba9}
#siahkalAuth form#onlineLogin{text-align:right}
#siahkalAuth label{color:#0d4652;margin-top:13px;font-size:13px}
#siahkalAuth input:not([type=checkbox]),#siahkalAuth select{background:#fff;border:1px solid #c4d0ce;border-radius:20px;min-height:51px;margin-top:5px;box-shadow:0 3px 8px #153c3c12}
#siahkalAuth select{direction:rtl;text-align:right}
#siahkalAuth .msPasswordWrap{position:relative}#siahkalAuth .msPasswordWrap input{padding-left:66px}
#siahkalAuth .msPasswordEye{position:absolute;left:7px;top:10px;width:auto!important;min-height:30px;margin:0!important;padding:5px 8px!important;background:transparent!important;color:#0a6470!important;font-size:11px}
#siahkalAuth label.msRemember{display:flex;align-items:center;gap:9px;margin:13px 0 3px;cursor:pointer}
#siahkalAuth .msRemember input{width:19px;height:19px;accent-color:#087d84;margin:0;min-height:0}
#siahkalAuth .msLoginSubmit{background:linear-gradient(100deg,#03535d,#058b8e)!important;border:1px solid #c7a354!important;border-radius:32px!important;box-shadow:0 6px 15px #0b5e6533;margin-top:13px!important;font-size:17px}
#siahkalAuth .msLoginFooterArt{height:125px;background:url('login-isfahan.webp') center center/cover no-repeat}
#siahkalAuth .msLoginCredit{padding:13px 10px 20px;text-align:center;background:#04535c;color:#fff8e9;font-size:12px}
#siahkalAuth .msLoginCredit strong{display:block;font-size:17px}
#siahkalAuth #onlineLoginError{font-size:12px;margin:8px 0;color:#a44343}
@media(min-width:600px){#siahkalAuth{padding:22px}#siahkalAuth .authPanel{border-radius:24px}}
/* 3.3.23: user management tabs and guest onboarding */
.msTeamTabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.msTeamTabs .btn{flex:1 1 130px;min-height:44px}.msUserCard .btn{margin:4px 2px}#msGuestForm:not([hidden]){display:grid;gap:12px;margin:12px auto;padding:18px;border:1px solid #c7dddd;border-radius:16px;background:#fffdf7}#msGuestForm[hidden]{display:none}

/* 3.3.24: technical issue form, mobile-first */
.issueDesign{font-family:inherit;color:#153d46;max-width:100%;box-sizing:border-box}
.issueHero{background:linear-gradient(125deg,#0b525b,#07858a);color:#fff;border-radius:20px;padding:20px 18px;margin:0 0 18px;text-align:right}
.issueHero h3{color:#fff;font-size:clamp(20px,5vw,27px);margin:9px 0}.issueHero p{font-size:14px;line-height:1.9;margin:0;color:#e5f8f5}.issueEyebrow{font-size:12px;letter-spacing:.4px;color:#f7dc9a}
.issueFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.issueFields .inputWrap{min-width:0}.issueFields .inputWrap.wide{grid-column:1/-1}
.issueFields input,.issueFields select,.issueFields textarea{width:100%;box-sizing:border-box;border:1px solid #cbdedc;border-radius:14px;background:#fff;min-height:48px;font-size:16px}.issueFields textarea{min-height:115px}
.issueReadonly{border:1px solid #cbdedc;border-radius:14px;background:#f1f7f6;padding:12px;min-height:48px;box-sizing:border-box}.issueInfo{margin:18px 0;padding:13px 15px;border-right:3px solid #caa64d;background:#fcf8ed;border-radius:12px;font-size:13px;line-height:2}
@media(max-width:650px){.issueFields{grid-template-columns:1fr}.issueHero{padding:17px 15px}.issueDesign .formActions .btn{min-height:52px}.modal:has(.issueDesign){width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:12px;box-sizing:border-box;max-height:calc(100dvh - 25px);overflow:auto}.modalOverlay:has(.issueDesign){padding:8px;box-sizing:border-box}}

/* 3.3.26 — mobile Gantt design; native device status bar is not recreated */
@media(max-width:767px){
.ms26Gantt{font-family:inherit;color:#163c46;padding-bottom:30px}.ms26Hero{background:linear-gradient(135deg,#113d4b,#087d7c 75%,#18a49a);color:white;padding:26px 18px;border-radius:23px;box-shadow:0 12px 25px #103d4630;position:relative;overflow:hidden}.ms26Hero:after{content:'◌';position:absolute;left:-20px;top:-100px;font-size:270px;color:#ffffff12;pointer-events:none}.ms26Overline{font-size:10px;letter-spacing:2px;color:#f1cf90}.ms26Hero h2{font-size:23px;color:white;margin:9px 0}.ms26Hero p{font-size:12px;color:#e0f2ee}.ms26Stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:20px}.ms26Stats>div{background:#ffffff1b;border:1px solid #ffffff2c;border-radius:14px;padding:12px 7px;text-align:center}.ms26Stats small,.ms26Stats strong{display:block;color:white}.ms26Stats small{font-size:10px}.ms26Stats strong{font-size:22px;margin-top:4px}.ms26Toolbar{display:flex;justify-content:space-between;align-items:center;margin:19px 0 12px;gap:8px}.ms26Toolbar small,.ms26TaskTitle small{display:block;color:#73878a;font-size:11px;margin-top:5px}.ms26IconBtn,.ms26TaskTitle button{background:#fff7e7;border:1px solid #e9cc96;border-radius:12px;padding:9px;color:#886121;font-size:12px}.ms26WeekNav{display:flex;align-items:center;justify-content:space-between;gap:5px;background:#fff;border:1px solid #dce9e7;padding:10px 6px;border-radius:15px}.ms26WeekNav button{border:0;background:#e9f7f3;color:#087c74;border-radius:10px;padding:10px 7px;font-size:11px}.ms26WeekNav b{font-size:12px}.ms26Range{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#62797b;margin:12px 0}.ms26Range select{width:auto;display:inline-block;padding:6px;border-radius:8px;background:#fff}.ms26Timeline{background:#f9fcfb;border:1px solid #dbe9e7;border-radius:18px;padding:10px;overflow:hidden}.ms26WeekHead,.ms26Bars{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.ms26WeekHead>div{text-align:center;background:#e5f3f0;padding:8px 2px;border-radius:8px;min-width:0}.ms26WeekHead b,.ms26WeekHead small{display:block}.ms26WeekHead small{font-size:8px;color:#65827d;overflow:hidden;text-overflow:ellipsis}.ms26Task{background:#fff;border:1px solid #e0eae8;border-radius:15px;padding:13px 10px;margin:10px 0;box-shadow:0 4px 12px #13433d0a}.ms26TaskTitle{display:flex;justify-content:space-between;align-items:flex-start;gap:7px}.ms26TaskTitle strong{display:block;font-size:13px;line-height:1.8}.ms26TaskId{display:inline-block;background:#f4e9d2;color:#876023;border-radius:7px;padding:1px 6px;font-size:10px;margin-left:6px}.ms26Progress{height:8px;background:#e5eeec;border-radius:10px;overflow:hidden;margin-top:11px}.ms26Progress>div{height:100%;background:linear-gradient(90deg,#12a588,#60c6a4);border-radius:10px}.ms26TaskMeta{display:flex;justify-content:space-between;font-size:10px;margin:5px 0 11px;color:#64807c}.ms26TaskMeta b{color:#0a8d7e}.ms26Bars>div{height:15px;background:#f0f3f3;border-radius:4px;overflow:hidden}.ms26Bars>div.active{background:#cbded8}.ms26Bars span{display:block;height:100%;width:100%;border-radius:4px}.ms26Add{display:block;width:100%;margin-top:15px;padding:15px;background:linear-gradient(110deg,#0b797a,#11a493);color:#fff;border:0;border-radius:14px;font-weight:700}.ms26Foot,.ms26Hint{font-size:11px;line-height:1.9;color:#637e7b}.ms26Settings{padding:15px;background:#fffaf0;border:1px solid #e9d7b5;border-radius:16px;margin:12px 0}.ms26Settings button{display:inline-block;margin:5px;padding:10px;background:white;border:1px solid #dfc99f;border-radius:10px;color:#755a2e}.ms26Empty{padding:20px;text-align:center;color:#607b79}
.ms26Gantt:has(.ms26Range select[value="10"]){} 
}

/* 3.3.26 — dedicated mobile gantt; desktop table retained */
.ms26MobileGantt{display:none}
@media(max-width:700px){
.ms26MobileGantt{display:block;direction:rtl;margin:16px 0 24px;font-family:inherit}
.v5GanttFrame{display:none!important}
.ms26Heading{background:linear-gradient(130deg,#103d47,#087c80);border-radius:24px;padding:22px 18px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px;box-shadow:0 12px 30px #0c66652e}
.ms26Heading small{color:#d8bc83;font-size:11px;letter-spacing:1px}.ms26Heading h2{margin:8px 0;font-size:22px;color:#fff}.ms26Heading p{margin:0;font-size:12px;color:#e0f4f1}.ms26Count{background:#ffffff22;border:1px solid #ffffff55;border-radius:16px;padding:10px;font-size:12px;white-space:nowrap}
.ms26Progress{background:#fffdf7;border:1px solid #eadfc7;border-radius:22px;padding:17px;margin:14px 0;box-shadow:0 7px 22px #153d3510}.ms26ProgressTop{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#164d53;font-size:13px}.ms26ProgressTop strong{font-size:25px;color:#087c80}.ms26Track{height:11px;background:#e8ece7;border-radius:20px;overflow:hidden;margin:13px 0 8px}.ms26Track i{display:block;background:linear-gradient(90deg,#c8a366,#008f89);height:100%;border-radius:20px}.ms26Progress small{font-size:10px;color:#6e7d7c}
.ms26List{display:grid;gap:12px}.ms26Task{background:#fff;border:1px solid #e4e9e4;border-radius:21px;padding:17px;box-shadow:0 6px 20px #0d474511;min-width:0}.ms26TaskTop,.ms26Meta,.ms26Foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.ms26Tag{background:#edf7f3;color:#087b77;border-radius:25px;padding:5px 11px;font-size:11px}.ms26Pct{color:#b08b4e;font-weight:800;font-size:12px}.ms26Task h3{font-size:15px;color:#163e46;margin:14px 0 10px;line-height:1.8}.ms26Meta{font-size:11px;color:#788889}.ms26Timeline{height:12px;background:repeating-linear-gradient(90deg,#edf1ee 0,#edf1ee calc(10% - 1px),#fff calc(10% - 1px),#fff 10%);border-radius:20px;position:relative;margin:17px 0}.ms26Timeline i{position:absolute;top:1px;bottom:1px;background:linear-gradient(90deg,#d5ad6d,#008e87);border-radius:15px;min-width:5px}.ms26Foot{border-top:1px solid #edf0ed;padding-top:11px;font-size:11px;color:#687c7b}.ms26Foot button,.ms26Add{border:0;border-radius:13px;background:#0a7979;color:#fff;padding:10px 14px;font-weight:700;font-size:12px}.ms26Add{width:100%;margin-top:14px;background:linear-gradient(110deg,#0b777b,#0b4c57);padding:15px;font-size:14px}
.v5Controls{gap:7px}.v5Controls button{min-height:40px}.v5Intro{border-radius:22px}
}

/* 3.3.28: portfolio visual refinement — does not change project authorization or data */
#projectHub{background:linear-gradient(180deg,#063f49 0,#086775 250px,#e9f1ee 251px,#faf6ee 100%);padding:0 18px 95px;min-height:100dvh;direction:rtl}
#projectHub .msHubInner{max-width:1240px}
#projectHub .msHubBrand{min-height:150px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:clamp(28px,5vw,48px);font-weight:900;text-shadow:0 2px 14px #042e385c;background:linear-gradient(110deg,transparent 0%,#ffffff10 50%,transparent 100%)}
#projectHub .msHubBrand span{display:block;font-size:10px;letter-spacing:3px;color:#e9c78b;margin:0}
#projectHub .msHubWelcome{padding:22px clamp(14px,3vw,32px);border-radius:26px;background:linear-gradient(110deg,#083d49,#077b81);border:1px solid #d8bd804f;box-shadow:0 16px 36px #113b4830;margin:0 0 25px;color:white}
#projectHub .msHubEyebrow{font-size:12px;color:#e4c994}
#projectHub .msHubWelcome h1{font-size:clamp(24px,4vw,35px);margin:9px 0;color:#fff}
#projectHub .msHubWelcome p{color:#e4f2f0;font-size:14px;margin:0;line-height:2}
#projectHub .msHubSection{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 4px 14px;flex-wrap:wrap}
#projectHub .msHubSection h2{font-size:24px;margin:0;color:#103f48}
#projectHub .msHubSection span{color:#607f82;font-size:12px}
#projectHub .msProjectGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}
#projectHub .msProjectCard{border-radius:24px;border:1px solid #dfd7c9;background:#fffdf9;box-shadow:0 10px 30px #17475219;transition:transform .15s ease,box-shadow .15s ease;cursor:pointer}
#projectHub .msProjectCard:focus-visible{outline:3px solid #b78935;outline-offset:3px}
#projectHub .msProjectArt{min-height:180px;background:linear-gradient(120deg,#064c5a,#0e9b9d 58%,#d3ad62);padding:18px;isolation:isolate}
#projectHub .msProjectArt:before{width:260px;height:260px;border:2px solid #ffffff25;border-radius:50%;transform:none;left:-90px;top:-95px}
#projectHub .msProjectArt:after{width:200px;height:200px;border:2px solid #ffffff20;border-radius:50%;transform:none;left:70px;top:10px}
#projectHub .msProjectStatus{font-size:11px!important;color:#f6e8c9!important;background:#063d47b8;border:1px solid #ffffff40;border-radius:50px;padding:5px 10px;width:max-content}
#projectHub .msProjectIllustration{font-size:54px!important;line-height:1;color:#f6d79c!important;align-self:center;opacity:.9}
#projectHub .msProjectArt b{font-size:20px;line-height:1.5;text-shadow:0 2px 10px #00252b75}
#projectHub .msProjectMeta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:1.8}
#projectHub .msProjectMeta strong{color:#096a6f;white-space:nowrap}
#projectHub .msProjectActions{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background:#f5eee1;border-top:1px solid #e9dcc7;color:#095c64;font-weight:800;font-size:13px}
#projectHub .msProjectActions span:last-child{font-size:20px;color:#b18436}
#projectHub #newProjectArea{border:1px solid #d9c49d;border-radius:23px}
#projectHub .msHubLogout{border-radius:30px;margin-top:26px}
@media(max-width:650px){#projectHub{padding-inline:12px}#projectHub .msHubBrand{min-height:115px}#projectHub .msProjectGrid{grid-template-columns:1fr!important}#projectHub .msProjectArt{min-height:165px}#projectHub .msHubWelcome{border-radius:20px}#projectHub .msHubSection h2{font-size:20px}}
