:root{--bg:#111614;--panel:#1a211d;--panel2:#202923;--stroke:#303a32;--text:#f2f2e9;--muted:#99a99d;--gold:#ddc68b;--green:#b4d4ac;--red:#e5a99a;--radius:22px;font-family:Inter,Segoe UI,Arial,sans-serif;color-scheme:dark;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.5}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{border:0;color:inherit}a{color:var(--gold)}svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:38px;line-height:1.15;letter-spacing:-1.4px;font-weight:600}h2{font-size:21px;letter-spacing:-.5px;font-weight:550}h3{font-size:17px;font-weight:550}small{font-size:12px}.muted{color:var(--muted)}.gold{color:var(--gold)}.shell{max-width:1120px;margin:auto;padding:0 44px 50px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:29px 0;border-bottom:1px solid var(--stroke);gap:14px}.brand{display:flex;align-items:center;gap:13px}.mark{width:43px;height:43px;border:1px solid var(--gold);color:var(--gold);display:grid;place-items:center;font-size:23px;font-weight:500;letter-spacing:-3px;padding-right:3px}.brand strong{font-size:15px;letter-spacing:2.3px;font-weight:550}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:2px;margin-top:2px}.profile{display:flex;align-items:center;gap:12px}.avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:#303a32;color:var(--gold);font-size:13px;font-weight:600;flex-shrink:0}.profile-copy{line-height:1.4;text-align:right}.profile-copy small{display:block;color:var(--muted)}.demo-bar{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:12px 0;color:var(--muted);font-size:12px}.demo-bar>span{display:flex;align-items:center;gap:8px}.dot{width:6px;height:6px;border-radius:50%;background:var(--gold);display:inline-block}.demo-controls{display:flex;align-items:center;gap:9px}.demo-controls select{background:transparent;color:var(--gold);border:1px solid var(--stroke);border-radius:7px;padding:5px 7px;font-size:12px}.link-btn{padding:4px;background:none;color:var(--muted);text-decoration:underline;text-underline-offset:3px;font-size:12px}.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:39px 0 29px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:600;color:var(--gold);margin-bottom:13px}.heading p{margin-top:12px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 19px;border-radius:11px;background:var(--gold);color:#20261f;font-weight:600;font-size:13px;min-height:45px;transition:background .15s,transform .15s;white-space:nowrap}.btn:hover{background:#e9d7a6;transform:translateY(-1px)}.btn.secondary{background:var(--panel2);color:var(--text);border:1px solid var(--stroke)}.btn.secondary:hover{background:#2b362d}.btn.danger{background:#3c2e29;color:#f1b4a4}.btn svg{width:17px;height:17px}.section-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}.section-line>span{font-size:12px;color:var(--muted)}.filter-input{position:relative;max-width:320px}.filter-input svg{position:absolute;left:12px;top:12px;color:var(--muted);width:17px}.filter-input input{padding:10px 12px 10px 38px;font-size:13px;min-width:0}.projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.project-card{text-align:left;background:var(--panel);border:1px solid var(--stroke);border-radius:var(--radius);padding:27px;position:relative;overflow:hidden;transition:border-color .2s,transform .2s;min-height:254px;width:100%}.project-card:hover{border-color:#75856c;transform:translateY(-3px)}.project-card .project-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.project-icon{width:45px;height:45px;background:#2b372c;color:var(--green);border-radius:12px;display:grid;place-items:center}.badge{padding:5px 9px;border:1px solid #445140;border-radius:7px;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:var(--green);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.badge.gold-badge{color:var(--gold);border-color:#685e3f}.badge.red-badge{color:var(--red);border-color:#704c40}.project-card h2{margin:26px 0 7px;font-size:25px;position:relative;z-index:1}.project-card .address{font-size:12px;color:var(--muted);position:relative;z-index:1;max-width:85%;min-height:19px}.project-bottom{display:flex;align-items:center;gap:18px;border-top:1px solid var(--stroke);margin-top:23px;padding-top:18px;font-size:12px;color:var(--muted);position:relative;z-index:1}.project-bottom strong{color:var(--text);font-weight:500;margin-right:4px}.arrow{margin-left:auto;color:var(--gold)}.line-art{position:absolute;right:-22px;bottom:66px;width:170px;height:110px;border:1px solid #3b4538;transform:skewY(-20deg);opacity:.38;pointer-events:none}.line-art:before,.line-art:after{content:'';position:absolute;inset:18px;border:1px solid #3b4538}.line-art:after{inset:36px}.home-footer{display:flex;justify-content:space-between;gap:20px;margin:31px 0 0;border-top:1px solid var(--stroke);padding-top:23px;color:var(--muted);font-size:12px}.home-footer p{max-width:460px}.home-footer span{white-space:nowrap}.breadcrumb{margin-top:24px;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.breadcrumb button{background:none;display:flex;gap:7px;align-items:center;color:var(--gold);padding:5px 0}.breadcrumb svg{width:16px;height:16px}.project-heading{margin-top:20px}.tabs{display:flex;gap:5px;padding:5px;background:#181e1a;border:1px solid var(--stroke);border-radius:14px;margin:0 0 26px;max-width:620px}.tab{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;background:transparent;border-radius:9px;font-size:12px;color:var(--muted)}.tab.active{background:#344031;color:var(--text)}.tab svg{width:17px;height:17px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 28px}.stat{border:1px solid var(--stroke);border-radius:17px;padding:22px;background:var(--panel)}.stat>span{font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:34px;font-weight:500;line-height:1.2;margin-top:10px;color:var(--gold);letter-spacing:-1px}.stat small{color:var(--muted);display:block;margin-top:8px}.columns{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;gap:15px}.section-title h2{font-size:17px}.section-title button{background:none;font-size:12px;color:var(--gold);padding:7px 0}.records{display:flex;flex-direction:column;gap:13px}.record{padding:23px;background:var(--panel);border:1px solid var(--stroke);border-radius:17px}.record-head{display:flex;justify-content:space-between;gap:13px;align-items:flex-start;margin-bottom:16px}.record-head small{color:var(--muted);font-size:11px;display:block;margin-top:5px}.record-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#dce2d7;font-size:14px}.record-foot{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin-top:18px;padding-top:13px;border-top:1px solid var(--stroke)}.record-foot svg{width:15px;height:15px}.record-foot span:last-child{margin-left:auto}.record-actions{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.record-actions .btn{padding:8px 11px;min-height:34px;font-size:11px}.photos{display:flex;gap:8px;margin-top:15px;overflow-x:auto}.photo-thumb{padding:0;background:#303a32;width:74px;height:74px;flex-shrink:0;border-radius:9px;overflow:hidden}.photo-thumb img{width:100%;height:100%;object-fit:cover}.member{display:flex;align-items:center;gap:13px;padding:20px;border:1px solid var(--stroke);border-radius:16px;background:var(--panel)}.member-copy{flex:1;min-width:0}.member-copy strong{font-weight:500;font-size:14px}.member-copy small{display:block;color:var(--muted);margin-top:3px}.member .icon-btn{padding:9px}.icon-btn{display:grid;place-items:center;background:transparent;color:var(--muted);border-radius:8px;padding:8px}.icon-btn:hover{background:var(--panel2);color:var(--text)}.hint{display:flex;gap:12px;padding:15px 17px;background:#222b22;border:1px solid #3b4936;border-radius:12px;color:#b8c9b2;font-size:12px;margin:18px 0}.hint svg{width:18px;height:18px}.empty{border:1px dashed #3e4c3e;border-radius:18px;padding:35px 24px;text-align:center;color:var(--muted)}.empty svg{color:var(--gold);margin-bottom:12px;width:30px;height:30px}.empty strong{display:block;color:var(--text);font-size:16px;font-weight:500;margin-bottom:8px}.empty p{font-size:13px;max-width:380px;margin:auto}.empty .btn{margin-top:18px}.loading{padding:80px;text-align:center;color:var(--muted)}.modal-shade{position:fixed;inset:0;background:#0009;backdrop-filter:blur(8px);z-index:100;display:flex;justify-content:center;align-items:center;padding:20px}.modal{width:100%;max-width:530px;background:#1a211d;border:1px solid #46533e;border-radius:23px;max-height:90dvh;overflow-y:auto;padding:28px;box-shadow:0 30px 100px #0008}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:25px}.modal-header p{color:var(--muted);font-size:12px;margin-top:7px}label.field{display:block;font-size:12px;color:#c2cdbd;margin-bottom:18px}input,textarea,select{width:100%;background:#111813;border:1px solid #3b473a;color:var(--text);border-radius:9px;padding:12px;margin-top:7px}input::placeholder,textarea::placeholder{color:#73846f}textarea{resize:vertical;min-height:135px;line-height:1.6}input[type=checkbox]{width:18px;height:18px;accent-color:var(--gold);margin:0}input[type=file]{font-size:12px;padding:14px;border-style:dashed}input[type=file]::file-selector-button{background:#344031;color:var(--text);border:0;padding:7px 10px;border-radius:5px;margin-right:9px}.fields-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.check-label{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.form-error{color:#f0b2a1;font-size:12px;white-space:pre-wrap}.caption{font-size:11px;color:var(--muted);margin-top:8px}.lightbox img{display:block;max-height:70dvh;max-width:100%;margin:auto}.lightbox{max-width:850px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:200;padding:14px 24px;background:var(--gold);color:#1b211a;font-size:13px;border-radius:11px;box-shadow:0 10px 50px #0008;max-width:90vw;text-align:center}.visually-hidden{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.toolbar select{width:auto;max-width:190px;margin:0;font-size:12px;padding:9px}.count-label{font-size:12px;color:var(--muted)}
@media(min-width:1300px){.shell{padding-top:18px}.heading{margin-top:49px}.project-card{min-height:275px}}
@media(max-width:700px){.shell{padding:0 20px 100px}.topbar{padding:22px 0 18px}.brand strong{font-size:12px;letter-spacing:1.8px}.brand small{font-size:8px;letter-spacing:1.5px}.mark{width:35px;height:35px;font-size:20px}.profile-copy{display:none}.avatar{width:34px;height:34px;font-size:11px}.demo-bar{align-items:flex-start;gap:8px;font-size:10px}.demo-bar>span{max-width:150px}.demo-controls{gap:5px}.demo-controls select{font-size:10px;max-width:100px}.demo-controls .link-btn{font-size:10px}.heading{margin:27px 0 23px;align-items:flex-start;gap:12px;flex-wrap:wrap}h1{font-size:32px}.eyebrow{font-size:9px;margin-bottom:9px}.heading p{font-size:13px;margin-top:9px}.heading>.btn{padding:9px 12px;min-height:40px;font-size:11px}.projects{grid-template-columns:1fr;gap:14px}.project-card{padding:22px;min-height:245px}.project-card h2{font-size:24px;margin-top:22px}.project-bottom{gap:14px;font-size:11px}.filter-input{max-width:230px}.section-line{align-items:center}.section-line>span{font-size:10px}.filter-input input{font-size:12px}.home-footer{display:block;font-size:11px;line-height:1.7;margin-top:24px}.home-footer span{display:block;margin-top:12px;color:#6f826f}.columns{grid-template-columns:1fr;gap:25px}.stats{gap:8px;margin-bottom:24px}.stat{padding:14px 10px;border-radius:12px}.stat>span{font-size:10px}.stat strong{font-size:28px;margin-top:7px}.stat small{font-size:9px}.tabs{position:fixed;bottom:0;left:0;right:0;margin:0;border-radius:15px 15px 0 0;z-index:20;max-width:none;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#1a211df5;backdrop-filter:blur(14px);border-bottom:0}.tab{flex-direction:column;gap:4px;font-size:10px;padding:8px 7px}.tab svg{width:20px;height:20px}.breadcrumb{margin-top:12px}.project-heading{margin-top:17px}.record{padding:19px}.record-text{font-size:13px}.modal-shade{padding:10px;align-items:flex-end}.modal{padding:23px 20px;max-height:92dvh;border-radius:22px 22px 13px 13px}.modal-header{margin-bottom:21px}.modal-actions .btn{flex:1}.member{padding:15px}.member-copy strong{font-size:13px}.member-copy small{font-size:10px}.toolbar{gap:10px}.toolbar .btn{font-size:11px;padding:10px 13px}.toolbar select{font-size:11px;max-width:150px}.toast{bottom:95px}.hint{font-size:11px}.loading{padding:70px 15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Fit one, two or three available role counters. */
.stats{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}
.shell{padding-top:max(0px,env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}

.stat>span{display:block;min-height:2.8em;line-height:1.4}

/* Full report viewer: one description and a swipeable photo sequence. */
.report-card{cursor:pointer}.report-card:hover{border-color:#64735e}
.report-open{display:flex;align-items:center;gap:9px;background:transparent;padding:0;text-align:left;font-size:17px;font-weight:550;color:var(--text)}
.report-open svg{width:17px;color:var(--gold)}
.report-shade{padding:0;align-items:stretch;background:var(--bg);backdrop-filter:none}
.modal.report-view{display:flex;flex-direction:column;max-width:none;width:100%;height:100%;max-height:none;border:0;border-radius:0;padding:0;box-shadow:none;overflow:hidden}
.report-view .modal-header{flex-shrink:0;margin:0;padding:18px 24px;border-bottom:1px solid var(--stroke);padding-top:calc(18px + max(env(safe-area-inset-top), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(24px + max(env(safe-area-inset-left),var(--tg-safe-area-inset-left,0px)));padding-right:calc(24px + max(env(safe-area-inset-right),var(--tg-safe-area-inset-right,0px)))}
.report-view .modal-header h2{font-size:21px}.report-view .modal-header .icon-btn{width:44px;height:44px;flex-shrink:0;border:1px solid var(--stroke);color:var(--text)}
.report-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);align-content:start;gap:28px;padding:24px;padding-bottom:calc(24px + max(env(safe-area-inset-bottom),var(--tg-safe-area-inset-bottom,0px)))}
.report-gallery{min-width:0}.gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;background:#0a0d0b;border:1px solid var(--stroke);border-radius:15px;height:clamp(230px,62dvh,900px);overflow:hidden;touch-action:pan-y pinch-zoom}
.gallery-stage img{display:block;width:100%;height:100%;object-fit:contain;padding-bottom:62px;user-select:none;-webkit-user-drag:none}
.gallery-stage [hidden]{display:none!important}
.gallery-controls{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:9px 12px;background:linear-gradient(transparent,#0a0d0bed);gap:15px}
.gallery-arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid #58614f;border-radius:50%;background:#1a211de6;color:var(--text)}
.gallery-arrow:disabled{opacity:.25;cursor:default}#photo-counter{background:#101810de;border-radius:18px;padding:5px 13px;font-size:13px;font-variant-numeric:tabular-nums}
.gallery-pages{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:13px}.gallery-pages button{width:36px;height:36px;border-radius:9px;background:var(--panel2);color:var(--muted);border:1px solid var(--stroke)}
.gallery-pages button[aria-current=true]{background:var(--gold);border-color:var(--gold);color:var(--bg)}
.gallery-hint{text-align:center;color:var(--muted);font-size:11px;margin-top:10px}
.gallery-feedback{position:absolute;inset:20px 15px 72px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center;color:var(--muted);font-size:13px}
.report-description{min-width:0}.report-description h3{margin:24px 0 14px}.report-description .record-text{font-size:15px;line-height:1.7}.report-description .caption{margin-top:24px}.report-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.report-no-photo{display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted);background:var(--bg);border:1px dashed var(--stroke);border-radius:15px;min-height:180px;padding:24px;font-size:13px}
.report-loading{padding:50px 24px;text-align:center;color:var(--muted)}.report-loading .btn{margin-top:20px}
@media(max-width:700px){.report-view .modal-header{padding-left:16px;padding-right:16px}.report-view .modal-header h2{font-size:19px}.report-body{display:flex;flex-direction:column;gap:22px;padding:16px;padding-bottom:calc(28px + max(env(safe-area-inset-bottom),var(--tg-safe-area-inset-bottom,0px)))}.gallery-stage{height:clamp(240px,49dvh,600px)}.report-description h3{margin-top:18px}.report-no-photo{min-height:120px}.gallery-pages{gap:4px}.gallery-pages button{width:30px;height:32px}.report-view .modal-header p{font-size:11px}}
/* Photo strips must scroll inside cards without widening the mobile viewport. */
.columns{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.columns>*,.records,.record{min-width:0}
@media(max-width:700px){.columns{grid-template-columns:minmax(0,1fr)}}
