:root{--ink:#18342b;--green:#1f6047;--green2:#2c7657;--cream:#f5f2e9;--paper:#fff;--muted:#6d7b75;--line:#dfe6e1;--orange:#d77b38;--shadow:0 18px 55px rgba(26,54,44,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;background:#fafbf8}a{color:var(--green);text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.site-header{height:82px;padding:0 max(4vw,24px);display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:800;font-size:18px}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:500;letter-spacing:.03em}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50% 50% 50% 12%;background:var(--green);color:#fff;font-family:Georgia;font-size:24px}.nav{display:flex;align-items:center;gap:26px}.nav a,.link-button{color:#30463f;font-size:14px;font-weight:650}.nav form{display:flex}.link-button{border:0;background:none;padding:0}.gate-link{color:var(--orange)!important}.nav-toggle{display:none;border:0;background:none;font-size:26px}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--green);border-radius:10px;background:var(--green);color:#fff!important;padding:12px 20px;font-weight:750;box-shadow:0 7px 20px rgba(31,96,71,.17)}.button:hover{background:#174d38}.button.secondary{background:#fff;color:var(--green)!important;box-shadow:none}.button.small{padding:8px 14px;border-radius:8px;font-size:14px}.button.full{width:100%}.hero{min-height:560px;padding:72px max(6vw,32px);display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:50px;background:linear-gradient(115deg,#f6f1e5 0%,#f8faf4 58%,#e8f0e7 100%);overflow:hidden}.hero-copy{max-width:700px}.eyebrow{text-transform:uppercase;letter-spacing:.15em;color:var(--green2);font-weight:800;font-size:12px}.hero h1,.page-title h1,.dashboard-head h1{font:700 clamp(40px,6vw,76px)/1.03 Georgia,serif;margin:13px 0 22px;letter-spacing:-.035em}.hero-copy>p{font-size:19px;color:#53675f;max-width:650px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.hero-art{height:390px;position:relative;border-radius:120px 16px 16px 16px;background:linear-gradient(#cfe7e8 0 54%,#83aa80 55%);overflow:hidden;box-shadow:var(--shadow)}.sun{position:absolute;width:85px;height:85px;border-radius:50%;background:#efc86e;right:60px;top:45px}.house{position:absolute;left:34%;top:34%;font:190px/1 Georgia;color:#f1eee2;text-shadow:0 10px 0 #b45535}.trees{position:absolute;bottom:65px;left:25px;font-size:100px;color:#2c6748;letter-spacing:-22px}.road{position:absolute;bottom:-30px;left:40%;width:110px;height:200px;background:#b9b9ad;transform:perspective(140px) rotateX(14deg);clip-path:polygon(38% 0,62% 0,100% 100%,0 100%)}.quick-strip{max-width:1160px;margin:-35px auto 0;position:relative;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.quick-strip div{padding:25px 30px;border-right:1px solid var(--line)}.quick-strip div:last-child{border:0}.quick-strip b,.quick-strip span{display:block}.quick-strip span{font-size:13px;color:var(--muted);margin-top:3px}.section{max-width:1160px;margin:0 auto;padding:76px 24px}.section.narrow{max-width:820px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:26px}.section h2,.section-head h2{font:700 34px/1.1 Georgia,serif;margin:8px 0}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.news-card,.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:27px;box-shadow:0 8px 25px rgba(26,54,44,.04)}.news-card time,.news-list time{color:var(--green2);font-size:12px;font-weight:700}.news-card h3{font:700 23px/1.2 Georgia;margin:12px 0}.news-card p{color:#65736e;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.page-title{padding:80px max(6vw,32px) 70px;text-align:center;background:var(--cream)}.page-title h1{font-size:58px}.page-title p{color:var(--muted);font-size:18px}.page-title.compact{padding:52px 24px}.page-title.compact h1{font-size:46px;margin:10px}.news-list{display:grid;gap:20px}.news-list article{padding:28px 0;border-bottom:1px solid var(--line)}.news-list h2{margin:8px 0 12px}.preline{white-space:pre-line}.empty{text-align:center;padding:35px;color:var(--muted)}.auth-shell{min-height:calc(100vh - 82px);padding:70px 20px;display:grid;place-items:center;background:linear-gradient(135deg,#e9f0e7,#f7f1e6)}.auth-card{width:min(450px,100%);background:#fff;border-radius:18px;padding:42px;box-shadow:var(--shadow)}.auth-card.wide{width:min(720px,100%)}.auth-card h1{font:700 42px/1.1 Georgia;margin:9px 0}.auth-card>p{color:var(--muted)}.form{display:grid;gap:18px;margin-top:25px}.form.two-col{grid-template-columns:1fr 1fr}.form label{font-size:13px;font-weight:750;color:#3f544c}.form input,.form textarea,.form select,.message-form textarea,.message-form select{display:block;width:100%;margin-top:7px;border:1px solid #cfd9d3;border-radius:9px;padding:12px 13px;background:#fbfcfa;color:var(--ink);outline:none}.form input:focus,.form textarea:focus,.message-form textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,96,71,.1)}.span-2{grid-column:span 2}.form-foot{text-align:center;font-size:14px}.flash-wrap{position:fixed;top:94px;right:20px;z-index:50;width:min(400px,calc(100% - 40px))}.flash{padding:13px 16px;margin-bottom:8px;border-radius:9px;background:#fff;border-left:4px solid var(--green);box-shadow:var(--shadow)}.flash.error{border-color:#bd3f3f}.flash.warning{border-color:#d79529}.dashboard-head{padding:65px max(6vw,32px);display:flex;justify-content:space-between;align-items:center;background:#edf3ec}.dashboard-head h1{font-size:54px}.dashboard-head p{color:var(--muted)}.profile-chip{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:50px;padding:8px 18px 8px 8px;font-weight:700}.profile-chip span,.avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff}.dashboard-grid{max-width:1160px;margin:0 auto;padding:50px 24px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.service-card{min-height:150px;padding:26px;border-radius:15px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;color:var(--ink);border:1px solid var(--line)}.service-card.green{background:#e4f1e9}.service-card.blue{background:#e8f1f4}.service-card.orange{background:#f9ebdd}.service-card.plain{background:#fff}.service-icon{display:grid;place-items:center;width:58px;height:58px;background:#fff;border-radius:50%;font-size:27px}.service-card h2{font:700 26px Georgia;margin:0}.service-card p{margin:6px 0;color:#63726d;font-size:14px}.service-card>b{font-size:26px}.admin-panel{max-width:1112px;margin:0 auto 70px;padding:28px;background:#183b2f;color:#fff;border-radius:15px;display:flex;justify-content:space-between;align-items:center}.admin-panel h2{margin:4px 0}.admin-panel .eyebrow{color:#a8d3bc}.chat-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;padding-top:40px}.chat-card{height:660px;background:#fff;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 8px 25px rgba(26,54,44,.05)}.chat-title{padding:20px 24px;border-bottom:1px solid var(--line)}.chat-title h2{font:700 25px Georgia;margin:0;display:inline-block}.chat-title small{display:block;color:var(--muted)}.online-dot,.live-dot{display:inline-block;width:8px;height:8px;background:#2cae65;border-radius:50%;margin:0 6px}.messages{flex:1;overflow:auto;padding:20px;background:#f6f8f5}.message{max-width:84%;margin:0 0 14px}.message>div{display:flex;gap:7px;align-items:baseline}.message b{font-size:12px}.message small{font-size:10px;color:var(--muted)}.message p{margin:4px 0 0;padding:10px 13px;background:#fff;border:1px solid var(--line);border-radius:3px 13px 13px;white-space:pre-wrap}.message.mine{margin-left:auto}.message.mine>div{justify-content:flex-end}.message.mine p{background:#dceddf;border-color:#c9dece;border-radius:13px 3px 13px 13px}.message-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:14px;border-top:1px solid var(--line)}.message-form textarea{resize:none;height:48px;margin:0;padding:11px}.send-button{width:48px;border:0;border-radius:10px;background:var(--green);color:#fff;font-size:20px}.private-form{grid-template-columns:1fr auto}.private-form select{grid-column:span 2;margin:0;padding:8px}.private-hint{padding:16px;color:var(--muted);font-size:13px}.gate-layout{display:grid;grid-template-columns:1.7fr .8fr;gap:24px;padding-top:40px}.camera-card,.gate-control{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.camera-head{display:flex;justify-content:space-between;margin-bottom:14px}.camera-head button{border:0;background:none;color:var(--green);font-weight:700}.camera-frame{aspect-ratio:16/9;background:#20312c;border-radius:11px;overflow:hidden;margin-bottom:10px}.camera-frame img{width:100%;height:100%;object-fit:cover}.gate-control{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px}.gate-icon{display:grid;place-items:center;width:74px;height:74px;border-radius:50%;background:#e8f1eb;color:var(--green);font-size:35px}.gate-control h2{margin-bottom:0}.status{font-size:13px;font-weight:750}.status.ready{color:#23965a}.status.waiting{color:#c47825}.open-gate{width:230px;height:230px;margin:20px 0;border:10px solid #e6efe9;border-radius:50%;background:var(--green);color:#fff;font-size:22px;font-weight:850;box-shadow:0 12px 30px rgba(31,96,71,.25)}.open-gate:hover{transform:scale(1.02)}.open-gate span{display:block;font-size:48px}.gate-control small{color:var(--muted)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line);font-size:13px}.pill{border-radius:20px;padding:4px 9px;font-weight:700}.pill.ok{background:#e0f2e7;color:#187342}.pill.no{background:#f7e4e4;color:#a13232}.admin-two{display:grid;grid-template-columns:.8fr 1.2fr;gap:22px;align-items:start}.admin-news-list article{display:flex;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.admin-news-list h3{margin:4px 0}.danger-link{border:0;background:none;color:#b33b3b}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto!important;margin:0!important}.info-box{padding:16px;background:#fff5d8;border:1px solid #efdc9d;border-radius:10px;margin-bottom:22px}.user-list{display:grid;gap:14px}.user-card{display:grid;grid-template-columns:1.2fr 1.5fr auto;gap:24px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}.user-card.pending{border-left:5px solid #d79529}.user-main{display:flex;align-items:center;gap:13px}.user-main h2{font:700 21px Georgia;margin:0}.user-main p,.user-main small{margin:3px 0;color:var(--muted);font-size:12px}.permissions{display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:12px}.permissions label{display:flex;gap:6px;align-items:center}footer{padding:38px max(5vw,30px);background:#152f27;color:#fff;display:flex;justify-content:space-between}footer p,.footer-note{color:#a9bbb4;font-size:13px;margin:3px 0}
@media(max-width:850px){.nav-toggle{display:block}.nav{display:none;position:absolute;top:81px;left:0;right:0;padding:20px;background:#fff;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}.nav.open{display:flex}.hero{grid-template-columns:1fr;padding-top:55px}.hero-art{height:300px}.quick-strip{margin:0;border-radius:0;grid-template-columns:1fr}.quick-strip div{border-right:0;border-bottom:1px solid var(--line)}.news-grid,.dashboard-grid,.chat-layout,.gate-layout,.admin-two{grid-template-columns:1fr}.chat-card{height:600px}.user-card{grid-template-columns:1fr}.permissions{grid-template-columns:1fr 1fr}.dashboard-head,.admin-panel{align-items:flex-start;flex-direction:column;gap:20px}.open-gate{width:190px;height:190px}.hero h1{font-size:50px}}
@media(max-width:540px){.site-header{height:70px;padding:0 16px}.brand{font-size:15px}.brand small{display:none}.nav{top:69px}.hero{padding:48px 20px}.hero h1{font-size:43px}.hero-art{height:240px}.trees{font-size:70px}.house{font-size:130px}.section{padding:50px 16px}.page-title,.dashboard-head{padding:45px 18px}.page-title h1,.dashboard-head h1{font-size:39px}.form.two-col{grid-template-columns:1fr}.span-2{grid-column:auto}.auth-card{padding:28px 22px}.dashboard-grid{padding:28px 16px;grid-template-columns:1fr}.service-card{min-height:130px;padding:19px;gap:14px}.service-icon{width:48px;height:48px}.service-card h2{font-size:22px}.chat-layout{padding-top:20px}.gate-layout{padding-top:20px}.camera-card{padding:10px}.permissions{grid-template-columns:1fr}.quick-strip div{padding:20px}.news-grid{grid-template-columns:1fr}footer{flex-direction:column;gap:15px}}

/* Wide heritage logo requested for the association header. */
.site-header{height:auto;min-height:0;padding:8px max(4vw,24px) 0;display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"logo logo logo" ". nav .";background:#fff}
.header-logo-wrap{grid-area:logo;display:block;width:min(1080px,100%);margin:0 auto;line-height:0}
.header-logo{display:block;width:100%;height:105px;object-fit:contain;object-position:center}
.nav{grid-area:nav;padding:4px 0 11px}
.nav-toggle{grid-area:nav;justify-self:end;align-self:center}
@media(max-width:850px){.site-header{display:grid;grid-template-columns:1fr auto;grid-template-areas:"logo toggle";padding:5px 12px}.header-logo-wrap{grid-area:logo;min-width:0}.header-logo{height:76px;object-position:left center}.nav-toggle{display:block;grid-area:toggle}.nav{top:87px}.nav.open{display:flex}}
@media(max-width:540px){.site-header{height:auto;padding:4px 8px}.header-logo{height:58px}.nav{top:66px}}
.role-select{display:block;margin-top:10px;font-size:11px;font-weight:750}.role-select select{display:block;width:100%;margin-top:4px;padding:7px;border:1px solid var(--line);border-radius:7px;background:#fbfcfa;color:var(--ink)}.inline-delete{display:inline}.inline-delete button{border:0;background:none;color:#a93e3e;font-size:17px;line-height:1;padding:0 3px}

/* Light/dark theme switch. */
.theme-toggle{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);padding:6px 11px;font-size:12px;font-weight:700}.theme-icon{font-size:17px}.theme-toggle:hover{border-color:var(--green)}
html[data-theme="dark"]{color-scheme:dark;--ink:#e7efe9;--green:#63ad83;--green2:#83c49d;--cream:#15231e;--paper:#162620;--muted:#a3b4ac;--line:#30443b;--orange:#e69a60;--shadow:0 18px 55px rgba(0,0,0,.28)}
html[data-theme="dark"] body{background:#0f1b17;color:var(--ink)}
html[data-theme="dark"] .site-header{background:#12211c;border-color:var(--line)}
html[data-theme="dark"] .header-logo{border-radius:8px;filter:brightness(.88) contrast(1.08)}
html[data-theme="dark"] .nav a,html[data-theme="dark"] .link-button{color:#dce9e1}
html[data-theme="dark"] .hero{background:linear-gradient(115deg,#18251f,#101c18 58%,#162820)}
html[data-theme="dark"] .hero-copy>p,html[data-theme="dark"] .page-title p,html[data-theme="dark"] .dashboard-head p{color:var(--muted)}
html[data-theme="dark"] .quick-strip,html[data-theme="dark"] .news-card,html[data-theme="dark"] .card,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .profile-chip,html[data-theme="dark"] .chat-card,html[data-theme="dark"] .camera-card,html[data-theme="dark"] .gate-control,html[data-theme="dark"] table,html[data-theme="dark"] .user-card{background:var(--paper)}
html[data-theme="dark"] .page-title,html[data-theme="dark"] .dashboard-head{background:#15251f}
html[data-theme="dark"] .auth-shell{background:linear-gradient(135deg,#102019,#1c241d)}
html[data-theme="dark"] .form input,html[data-theme="dark"] .form textarea,html[data-theme="dark"] .form select,html[data-theme="dark"] .message-form textarea,html[data-theme="dark"] .message-form select,html[data-theme="dark"] .role-select select{background:#0e1b16;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .messages{background:#101d18}
html[data-theme="dark"] .message p{background:#1b2d26;border-color:var(--line)}
html[data-theme="dark"] .message.mine p{background:#244b38;border-color:#356249}
html[data-theme="dark"] .service-card.green{background:#193529}html[data-theme="dark"] .service-card.blue{background:#193039}html[data-theme="dark"] .service-card.orange{background:#3b2a1e}html[data-theme="dark"] .service-card.plain{background:var(--paper)}
html[data-theme="dark"] .service-icon{background:#0f1d18}html[data-theme="dark"] .service-card{color:var(--ink)}
html[data-theme="dark"] .flash{background:#21342c}html[data-theme="dark"] .info-box{background:#342d18;border-color:#675a2a}
html[data-theme="dark"] .button.secondary{background:transparent;color:#b4dfc5!important;border-color:#73a98a}
@media(max-width:850px){html[data-theme="dark"] .nav{background:#12211c}}

/* Wide but compact association banner: visible without covering the page. */
.site-header{position:relative;padding:0;grid-template-columns:1fr;grid-template-areas:"logo" "nav"}
.header-logo-wrap{width:100%;max-width:none;height:clamp(105px,12vw,220px);margin:0;padding:6px 18px}
.header-logo{width:100%;height:100%;max-height:220px;object-fit:contain}
.nav{justify-self:center;padding:8px 18px 13px}
@media(max-width:850px){.site-header{padding:0;grid-template-columns:1fr auto;grid-template-areas:"logo logo" ". toggle"}.header-logo-wrap{height:clamp(82px,18vw,145px);padding:4px 10px}.header-logo{width:100%;height:100%}.nav-toggle{grid-area:toggle;margin:2px 12px 7px}.nav{top:auto;margin-top:0}.nav.open{top:100%}}
@media(max-width:540px){.site-header{padding:0}.header-logo-wrap{height:78px;padding:3px 6px}.header-logo{height:100%}}
.create-account{margin-bottom:22px}.create-account summary{cursor:pointer;font:700 22px Georgia;color:var(--green)}.account-actions{display:grid;gap:8px}.delete-account{border:0;background:none;color:#b53d3d;font-size:12px;font-weight:750}.delete-account:hover{text-decoration:underline}
.service-card.documents-card{background:#eee9f6}.document-upload{margin-bottom:24px}.document-upload summary{cursor:pointer;font:700 23px Georgia;color:var(--green)}.file-picker small{display:block;margin-top:5px;color:var(--muted);font-weight:400}.document-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.document-filters a{padding:8px 13px;border:1px solid var(--line);border-radius:20px;background:var(--paper);font-size:12px;font-weight:700}.document-filters a.active{background:var(--green);color:#fff;border-color:var(--green)}.document-list{display:grid;gap:13px}.document-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:13px}.document-type{display:grid;place-items:center;width:58px;height:68px;border-radius:6px 6px 12px 6px;background:#e3eee8;color:var(--green);font-size:12px;font-weight:850}.document-info>span{color:var(--green2);font-size:11px;font-weight:800;text-transform:uppercase}.document-info h2{font:700 22px Georgia;margin:3px 0}.document-info p{margin:4px 0;color:var(--muted)}.document-info small{color:var(--muted)}.document-actions{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:750}.document-actions form{display:inline-flex}html[data-theme="dark"] .service-card.documents-card{background:#29243a}html[data-theme="dark"] .document-type{background:#23392f}
@media(max-width:700px){.document-item{grid-template-columns:auto 1fr}.document-actions{grid-column:1/-1;justify-content:flex-end}.document-filters{overflow:auto;flex-wrap:nowrap;padding-bottom:5px}.document-filters a{white-space:nowrap}}
.service-card.polls-card{background:#e8f2df}.poll-create{margin-bottom:24px}.poll-create summary{cursor:pointer;font:700 23px Georgia;color:var(--green)}.poll-list{display:grid;gap:20px}.poll-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:26px}.poll-card>header{display:flex;justify-content:space-between;gap:20px}.poll-card h2{font:700 28px Georgia;margin:7px 0}.poll-card header p{color:var(--muted);margin:6px 0}.poll-status{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.poll-status.open{color:#23804d}.poll-status.closed{color:var(--muted)}.turnout{min-width:100px;text-align:center;padding:10px;border-left:1px solid var(--line)}.turnout b,.turnout span{display:block}.turnout b{font:700 30px Georgia}.turnout span{font-size:10px;color:var(--muted)}.vote-form{display:grid;gap:9px;margin-top:22px}.vote-form label{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:10px;padding:12px;cursor:pointer}.vote-form label:has(input:checked){border-color:var(--green);background:#eef6f0}.vote-form input{accent-color:var(--green)}.vote-form .button{justify-self:start;margin-top:6px}.vote-form small{color:var(--muted)}.poll-results{margin-top:22px}.voted-note{padding:9px 12px;margin-bottom:14px;border-radius:8px;background:#e3f3e8;color:#1f7044;font-weight:750;font-size:13px}.result-row{margin:12px 0}.result-row>div:first-child{display:flex;justify-content:space-between;gap:15px;font-size:13px}.result-row.chosen span{font-weight:800}.result-bar{height:9px;margin-top:5px;background:#e7ece9;border-radius:10px;overflow:hidden}.result-bar i{display:block;height:100%;background:var(--green2);border-radius:10px}.poll-card>footer{display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted)}.poll-card>footer>div{display:flex;align-items:center;gap:12px}.poll-card footer form{display:inline-flex}.results-hidden{padding:18px;text-align:center;color:var(--muted);background:var(--cream);border-radius:8px}html[data-theme="dark"] .service-card.polls-card{background:#213725}html[data-theme="dark"] .vote-form label:has(input:checked){background:#183125}html[data-theme="dark"] .voted-note{background:#183a28;color:#8dd3a8}html[data-theme="dark"] .result-bar{background:#283a32}
@media(max-width:600px){.poll-card>header{flex-direction:column}.turnout{text-align:left;border-left:0;border-top:1px solid var(--line)}.poll-card>footer{align-items:flex-start;flex-direction:column;gap:12px}}

/* Compact home intro without the decorative landscape. */
.hero{min-height:0;display:block;padding:52px max(8vw,32px) 68px;text-align:center}
.hero-copy{max-width:860px;margin:0 auto}
.hero h1{font-size:clamp(38px,4.5vw,62px);margin:10px 0 16px}
.hero-copy>p{max-width:760px;margin:0 auto;font-size:17px}
.hero .actions{justify-content:center;margin-top:22px}
@media(max-width:540px){.hero{padding:38px 18px 52px}.hero h1{font-size:38px}.hero-copy>p{font-size:15px}}

/* Compact gate control while keeping the live view readable. */
.gate-page-title{padding:26px 20px 24px}
.gate-page-title h1{font-size:38px;margin:6px 0}
.gate-page-title p{font-size:14px;margin:4px 0}
.gate-layout{max-width:1120px;grid-template-columns:2.15fr .72fr;align-items:start;gap:18px;padding-top:26px;padding-bottom:38px}
.camera-card,.gate-control{padding:14px}
.camera-head{margin-bottom:10px}
.camera-card small{font-size:11px}
.gate-control{padding:20px 16px}
.gate-icon{width:50px;height:50px;font-size:26px}
.gate-control h2{font-size:27px;margin:8px 0 0}
.gate-control p{margin:6px 0}
.open-gate{width:150px;height:150px;margin:10px 0 13px;border-width:7px;font-size:17px}
.open-gate{background:#c83f38;border-color:#f5d9d6;box-shadow:0 12px 28px rgba(174,42,35,.28)}
.open-gate:hover{background:#a92f2a;transform:scale(1.02)}
.open-gate span{font-size:34px}
.gate-control>small{font-size:10px;line-height:1.35}
.gate-history{padding-top:25px}
@media(max-width:850px){.gate-layout{grid-template-columns:1fr}.gate-control{display:grid;grid-template-columns:auto 1fr auto;gap:12px;text-align:left}.gate-control .gate-icon{grid-row:1/3}.gate-control form{grid-column:3;grid-row:1/4}.gate-control .open-gate{width:110px;height:110px;margin:0;font-size:14px}.gate-control>small{grid-column:2}}
@media(max-width:540px){.gate-page-title{padding:20px 15px}.gate-page-title h1{font-size:31px}.gate-layout{padding-top:16px}.gate-control{display:flex;text-align:center}.open-gate{width:135px!important;height:135px!important}}

/* Mobile app layout. */
.mobile-tabbar{display:none}
@media(max-width:700px){body{padding-bottom:72px}.mobile-tabbar{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:80;height:68px;padding:5px max(4px,env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -8px 25px rgba(22,47,39,.1);backdrop-filter:blur(12px)}.mobile-tabbar a{display:flex;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:1px;color:#52645d;font-size:9px;font-weight:750}.mobile-tabbar a span{font-size:22px;line-height:1.1;color:var(--green)}.mobile-tabbar .mobile-gate span{color:#c83f38}.mobile-tabbar:has(a:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}footer{padding-bottom:30px}.dashboard-head{padding:28px 18px}.dashboard-head h1{margin:7px 0 10px}.profile-chip{font-size:12px}.dashboard-grid{gap:10px}.service-card{min-height:105px}.chat-card{height:calc(100dvh - 165px);min-height:460px}.chat-layout{gap:14px}.documents-page,.polls-page{padding-top:28px}.document-item{padding:14px;gap:12px}.document-type{width:46px;height:55px}.document-info h2{font-size:19px}.poll-card{padding:18px}.poll-card h2{font-size:23px}.page-title.compact{padding:28px 16px}.page-title.compact h1{font-size:35px}.form input,.form textarea,.form select{font-size:16px}.button{min-height:44px}.open-gate{touch-action:manipulation}}
@media(max-width:700px){html[data-theme="dark"] .mobile-tabbar{background:rgba(18,33,28,.96)}html[data-theme="dark"] .mobile-tabbar a{color:#b9c8c0}}
.service-card.finance-card{background:#edf2e4}.service-card.finance-card.has-debt{background:#f8e5e2;border-color:#e9c2bc}.accounting-page{display:grid;gap:20px}.accounting-entry summary{cursor:pointer;font:700 23px Georgia;color:var(--green)}.accounting-form{grid-template-columns:repeat(2,1fr)}.balance-table h2,.ledger h2{font:700 26px Georgia;margin:0 0 15px}.money{font-weight:800;white-space:nowrap}.money.debt{color:#b43832}.money.credit{color:#21804c}.personal-balance{padding:30px;border:1px solid var(--line);border-radius:15px;background:var(--paper);display:grid;gap:4px;text-align:center}.personal-balance span,.personal-balance small{color:var(--muted)}.personal-balance b{font:700 38px Georgia}.personal-balance.debt{background:#fae9e6;border-color:#e9c3bd}.personal-balance.credit{background:#e5f3e9;border-color:#bdddc7}html[data-theme="dark"] .service-card.finance-card{background:#263224}html[data-theme="dark"] .service-card.finance-card.has-debt{background:#3b2422}html[data-theme="dark"] .personal-balance.debt{background:#382320}html[data-theme="dark"] .personal-balance.credit{background:#1c3827}
@media(max-width:650px){.accounting-form{grid-template-columns:1fr}.accounting-form .span-2{grid-column:auto}.personal-balance b{font-size:30px}.accounting-page{padding-top:25px}.balance-table,.ledger{padding:16px}}
.excel-tools{display:flex;justify-content:space-between;align-items:center;gap:20px}.excel-tools>div:first-child{display:flex;align-items:center;gap:14px}.excel-tools h2{font:700 24px Georgia;margin:0}.excel-tools p{margin:3px 0;color:var(--muted)}.excel-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:9px;background:#217346;color:#fff;font-weight:900;font-size:24px}.excel-actions{display:flex;align-items:center;gap:10px}.excel-actions form{display:flex}.excel-upload{display:inline-flex;align-items:center;min-height:44px;padding:10px 17px;border-radius:10px;background:#217346;color:#fff;font-weight:750;cursor:pointer}.excel-upload input{position:absolute;width:1px;height:1px;opacity:0}.excel-upload:hover{background:#185c37}@media(max-width:720px){.excel-tools{align-items:flex-start;flex-direction:column}.excel-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.excel-actions a,.excel-upload{width:100%;justify-content:center;text-align:center}}
.bulk-charge{border-left:5px solid #d77b38}.bulk-charge summary{cursor:pointer;font:700 22px Georgia;color:#a95720}.bulk-charge>p{color:var(--muted);margin:8px 0}.bulk-charge-form{grid-template-columns:1fr 1fr 1.5fr auto;align-items:end}.bulk-button{background:#d0612e;border-color:#d0612e;white-space:nowrap}.bulk-button:hover{background:#ad491f}@media(max-width:850px){.bulk-charge-form{grid-template-columns:1fr 1fr}.bulk-charge-form .bulk-button{width:100%}}@media(max-width:520px){.bulk-charge-form{grid-template-columns:1fr}}
.service-card.electricity-card{background:#fff3ce}.electricity-page{display:grid;gap:20px;max-width:1050px}.electricity-calculator{padding:30px}.calculator-head{display:flex;align-items:center;gap:14px}.calculator-head h2{font:700 29px Georgia;margin:0}.calculator-head p{margin:3px 0;color:var(--muted)}.bolt{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#f4c84f;color:#5a4612;font-size:35px;font-weight:900}.meter-form{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:14px;margin:25px 0}.meter-form label{font-size:13px;font-weight:750}.meter-form input{display:block;width:100%;margin-top:7px;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fbfcfa;color:var(--ink);font-size:19px}.meter-arrow{padding-bottom:14px;font-size:25px;color:var(--muted)}.calculation-result{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1px;border-radius:12px;overflow:hidden;background:var(--line)}.calculation-result>div{padding:18px;background:#f7f1d9;text-align:center}.calculation-result span,.calculation-result b{display:block}.calculation-result span{font-size:11px;color:var(--muted);text-transform:uppercase}.calculation-result b{font:700 28px Georgia;margin-top:3px}.save-reading{grid-column:1/-1}.tariff-card summary{cursor:pointer;font-weight:800}.tariff-card .form{grid-template-columns:1fr auto;align-items:end}.meter-history h2{font:700 26px Georgia;margin-top:0}html[data-theme="dark"] .service-card.electricity-card{background:#3a321d}html[data-theme="dark"] .meter-form input{background:#0e1b16}html[data-theme="dark"] .calculation-result>div{background:#322d1d}@media(max-width:650px){.electricity-calculator{padding:20px}.meter-form{grid-template-columns:1fr}.meter-arrow{display:none}.calculation-result{grid-template-columns:1fr}.calculator-head h2{font-size:24px}.calculation-result b{font-size:24px}.tariff-card .form{grid-template-columns:1fr}}
.chat-input-wrap{position:relative}.chat-input-wrap textarea{padding-right:46px}.emoji-toggle{position:absolute;right:7px;bottom:7px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;font-size:25px;color:#6a786f}.emoji-toggle:hover{background:#e7eee9}.emoji-picker{display:none;position:absolute;right:0;bottom:55px;z-index:30;width:245px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:var(--shadow);grid-template-columns:repeat(6,1fr);gap:3px}.emoji-picker.open{display:grid}.emoji-picker button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:7px;background:transparent;font-size:21px}.emoji-picker button:hover{background:#e8f0eb;transform:scale(1.1)}.message-form .chat-input-wrap{min-width:0}.private-form .chat-input-wrap{min-width:0}html[data-theme="dark"] .emoji-toggle:hover,html[data-theme="dark"] .emoji-picker button:hover{background:#283b33}@media(max-width:540px){.emoji-picker{position:fixed;left:12px;right:12px;bottom:78px;width:auto;grid-template-columns:repeat(8,1fr)}.emoji-picker button{width:100%}}
.gate-log-admin{display:grid;gap:20px}.gate-event-list{display:grid;gap:14px}.gate-event{display:grid;grid-template-columns:1fr 2fr auto;align-items:center;gap:22px}.event-identity{display:flex;align-items:center;gap:12px}.event-identity h2{font:700 21px Georgia;margin:0}.event-identity p,.event-identity small{margin:2px 0;color:var(--muted);font-size:11px}.event-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.event-fields label{font-size:11px;font-weight:750}.event-fields input,.event-fields select,.event-fields textarea{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fbfcfa;color:var(--ink)}.event-fields label:last-child{grid-column:1/-1}.gate-edit-history summary{cursor:pointer;font-weight:800}html[data-theme="dark"] .event-fields input,html[data-theme="dark"] .event-fields select,html[data-theme="dark"] .event-fields textarea{background:#0e1b16}@media(max-width:850px){.gate-event{grid-template-columns:1fr}.event-fields{grid-template-columns:1fr 1fr}}@media(max-width:520px){.event-fields{grid-template-columns:1fr}.event-fields label:last-child{grid-column:auto}}
.event-actions{display:grid;gap:8px}.deleted-history{border-left:5px solid #b33f3f}.deleted-history summary{color:#a33333}
.news-editor{margin-top:7px;border:1px solid #cfd9d3;border-radius:10px;overflow:hidden;background:#fbfcfa}.news-editor textarea{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:7px;background:#edf3ef;border-bottom:1px solid #cfd9d3}.editor-toolbar button,.editor-toolbar select{width:auto!important;min-height:34px;margin:0!important;padding:5px 9px!important;border:1px solid #c8d4cd;border-radius:6px;background:#fff;color:var(--ink);font-size:12px;font-weight:700}.editor-toolbar button:hover{border-color:var(--green);background:#e2eee7}.editor-help{color:var(--muted);margin-top:-11px}.rich-news{color:#53675f}.rich-news strong{font-weight:850;color:var(--ink)}.rich-news .news-heading{display:block;margin:15px 0 6px;font:700 1.45em/1.2 Georgia,serif;color:var(--ink)}.rich-news mark{padding:1px 4px;border-radius:3px;background:#ffe58a;color:#27352f}.news-size-small{font-size:.82em}.news-size-large{font-size:1.3em}.news-red{color:#b83232}.news-green{color:#157249}.news-blue{color:#2366a8}.news-card-body{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}html[data-theme="dark"] .news-editor,html[data-theme="dark"] .news-editor textarea{background:#0e1b16}html[data-theme="dark"] .editor-toolbar{background:#182b23}html[data-theme="dark"] .editor-toolbar button,html[data-theme="dark"] .editor-toolbar select{background:#102019;border-color:#385047}@media(max-width:600px){.editor-toolbar button,.editor-toolbar select{flex:1 1 auto}}
.service-card.board-service-card{background:#eee9f6}.board-page{padding-top:40px}.board-admin-link{margin-bottom:15px}.board-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.board-card{position:relative;padding:28px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 25px rgba(26,54,44,.05)}.board-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#e4eee8;color:var(--green);font:700 28px Georgia}.board-role{position:absolute;right:22px;top:22px;padding:5px 10px;border-radius:20px;background:#edf3ef;color:var(--green);font-size:11px;font-weight:800}.board-card h2{font:700 25px Georgia;margin:16px 0 2px}.board-card h3{margin:0;color:var(--green2);font-size:14px}.board-card p{color:var(--muted);white-space:pre-line}.board-contacts{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.board-contacts a{padding:7px 10px;border-radius:7px;background:#f0f5f1;font-size:13px;font-weight:700}.board-admin{display:grid;gap:20px;max-width:1000px}.create-board summary{cursor:pointer;font:700 22px Georgia}.board-edit-list{display:grid;gap:16px}.board-edit-head{display:flex;justify-content:space-between;align-items:center}.board-edit-head h2{margin:0}.board-edit-head span{color:var(--muted);font-size:12px}html[data-theme="dark"] .service-card.board-service-card{background:#292337}html[data-theme="dark"] .board-contacts a{background:#1b3027}@media(max-width:700px){.board-grid{grid-template-columns:1fr}.board-card{padding:22px}.board-edit-card .form.two-col{grid-template-columns:1fr}.board-edit-card .span-2{grid-column:auto}}
.chat-page-title{padding-bottom:34px}.telegram-chat{max-width:1400px;padding-top:28px;grid-template-columns:1.15fr .85fr}.telegram-chat .chat-card{height:720px;border-radius:18px;background:#fff}.telegram-chat .chat-title{display:flex;align-items:center;gap:12px;padding:14px 18px;background:#fff}.chat-title-avatar,.message-avatar{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:linear-gradient(135deg,#348a68,#1f6047);color:#fff;font-weight:800}.chat-title-avatar{width:45px;height:45px;font-size:12px}.chat-title-avatar.private{background:linear-gradient(135deg,#5b86c7,#3468a4)}.telegram-chat .chat-title h2{font:700 21px Georgia}.telegram-messages{padding:18px;background-color:#e8eee9;background-image:radial-gradient(rgba(50,100,77,.06) 1px,transparent 1px);background-size:18px 18px}.message-row{display:flex;align-items:flex-end;gap:7px;margin:0 0 10px}.message-row.mine{flex-direction:row-reverse}.message-avatar{width:32px;height:32px;font-size:13px}.message-row.mine .message-avatar{display:none}.telegram-chat .message{max-width:78%;margin:0}.message-author{display:flex;align-items:center;gap:6px;padding:0 4px 2px}.message-row.mine .message-author{justify-content:flex-end}.message-author b{font-size:11px;color:var(--green)}.message-author small{font-size:9px}.message-bubble{position:relative;min-width:90px;padding:8px 46px 6px 11px;border:1px solid #d6e0da;border-radius:5px 14px 14px 14px;background:#fff;box-shadow:0 1px 2px rgba(20,50,38,.07)}.message-row.mine .message-bubble{border-color:#bcd9c5;border-radius:14px 5px 14px 14px;background:#d9efdf}.message-bubble p{margin:0;white-space:pre-wrap;color:#20382f}.message-bubble time{position:absolute;right:8px;bottom:5px;color:#718078;font-size:9px;white-space:nowrap}.inline-delete{display:inline-flex}.inline-delete button{border:0;background:none;color:#af4343;padding:0 2px}.chat-image{display:block;margin:1px -38px 13px -3px}.chat-image img{display:block;width:min(320px,100%);max-height:270px;object-fit:cover;border-radius:8px}.chat-file{display:flex;align-items:center;gap:9px;min-width:230px;margin:2px -34px 13px -3px;color:var(--ink)}.chat-file>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--green);color:#fff;font-size:22px}.chat-file div{min-width:0}.chat-file b,.chat-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-file b{font-size:12px}.chat-file small{color:var(--muted);font-size:9px}.telegram-compose{grid-template-columns:auto 1fr auto;align-items:end;padding:10px;background:#fff}.telegram-compose.private-form{grid-template-columns:auto 1fr auto}.telegram-compose.private-form select{grid-column:1/-1}.attach-button{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:#60756b;font-size:27px;cursor:pointer;transform:rotate(-25deg)}.attach-button:hover{background:#edf3ef}.attach-button input{display:none}.telegram-compose .chat-input-wrap{border:1px solid var(--line);border-radius:19px;background:#f7faf8;overflow:visible}.telegram-compose textarea{height:42px;border:0;background:transparent;padding:9px 42px 7px 13px}.telegram-compose .emoji-toggle{bottom:4px}.selected-file{display:block;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 12px 5px;color:var(--green);font-size:9px}.selected-file:empty{display:none}.telegram-compose .send-button{width:42px;height:42px;border-radius:50%}.private-hint{background:#fff}html[data-theme="dark"] .telegram-chat .chat-card,html[data-theme="dark"] .telegram-chat .chat-title,html[data-theme="dark"] .telegram-compose{background:var(--paper)}html[data-theme="dark"] .telegram-messages{background-color:#101d18}html[data-theme="dark"] .message-bubble{background:#1b2b25;border-color:#33473e}html[data-theme="dark"] .message-row.mine .message-bubble{background:#234535}html[data-theme="dark"] .telegram-compose .chat-input-wrap{background:#0e1b16}@media(max-width:900px){.telegram-chat{grid-template-columns:1fr}.telegram-chat .chat-card{height:650px}}@media(max-width:600px){.chat-page-title{display:none}.telegram-chat{padding:8px 7px 85px}.telegram-chat .chat-card{height:calc(100dvh - 170px);min-height:520px;border-radius:12px}.telegram-chat .message{max-width:88%}.message-avatar{display:none}.telegram-messages{padding:12px 8px}.chat-file{min-width:190px}.telegram-compose{padding:7px}}
