@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{--brand:#087a55;--brand-dark:#07563e;--brand-soft:#e8f5ef;--accent:#d4a64f;--ink:#172b24;--muted:#718078;--line:#e7ede9;--surface:#fff;--paper:#f6f8f6;--danger:#bd4d4d;--radius:16px;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-size:14px;line-height:1.55}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}.tiny{font-size:11px}.small-note{font-size:12px;color:var(--muted);line-height:1.6}.center{text-align:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--brand);margin:0 0 10px;text-transform:uppercase}.brand-mark{height:42px;width:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:var(--brand);color:#fff;font-size:25px;font-family:serif;box-shadow:0 8px 18px #087a5520}.brand-mark.small{width:37px;height:37px;border-radius:12px;font-size:22px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:11px 16px;font-weight:700;font-size:13px;transition:.2s}.btn.primary{background:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-dark);transform:translateY(-1px)}.btn.outline{border-color:#dbe5df;background:#fff;color:#344b40}.btn.outline:hover{border-color:var(--brand);color:var(--brand);background:#f5fbf7}.btn.full{width:100%}.btn.tiny{padding:6px 9px;font-size:11px}.text-button{background:none;border:0;color:var(--brand);font-weight:600;font-size:12px}.notice{border-radius:11px;padding:12px 15px;margin:0 0 18px;font-size:13px}.notice.success{background:#eaf8ef;color:#17603e;border:1px solid #cdebd7}.notice.error{background:#fff0ef;color:#9b3935;border:1px solid #f0d4d1}.notice.warning{background:#fff7e8;color:#805c21;border:1px solid #f1dfbd;margin-top:18px}.notice.warning p{margin:4px 0}.install-body{min-height:100vh;display:grid;place-items:center;padding:30px 16px;background:radial-gradient(circle at 10% 0%,#e7f4ec,transparent 35%),#f5f8f5}.install-card{width:min(100%,480px);background:#fff;border:1px solid #e5eee8;border-radius:22px;padding:34px;box-shadow:0 25px 75px #193d2d12}.install-card>.brand-mark{margin-bottom:17px}.install-card h1{font:600 30px 'Playfair Display',serif;margin:0 0 8px}.install-card h3{font-size:13px;margin:8px 0 0}.install-card .muted{margin:0 0 24px}.form-stack{display:flex;flex-direction:column;gap:13px}.form-stack label,.form-grid label,.settings-form label,.contact-form label{font-size:12px;font-weight:600;color:#43554c;display:flex;flex-direction:column;gap:6px}.form-stack input,.form-stack textarea,.form-grid input,.form-grid select,.form-grid textarea,.settings-form input,.settings-form select,.settings-form textarea,.contact-form input,.contact-form textarea{border:1px solid #dfe7e2;border-radius:9px;padding:10px 11px;background:#fff;color:#1b3027;outline:none;width:100%;min-width:0;transition:.2s}.form-stack input:focus,.form-stack textarea:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.settings-form input:focus,.settings-form select:focus,.settings-form textarea:focus,.contact-form input:focus,.contact-form textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #087a5513}.form-stack hr{border:0;border-top:1px solid var(--line);width:100%;margin:7px 0}.back-link{display:block;text-align:center;color:var(--muted);font-size:12px;margin-top:18px}.tiny.muted{margin-top:20px}
/* Admin app shell */
.admin-body{background:#f5f7f5;color:#1c3027}.app-shell{min-height:100vh}.sidebar{width:252px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid #e8eee9;display:flex;flex-direction:column;z-index:20}.side-brand{height:78px;display:flex;align-items:center;gap:11px;padding:0 20px;border-bottom:1px solid #edf1ee}.side-brand b{display:block;font-size:14px;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-brand small{display:block;color:#8a9890;font-size:10px;margin-top:2px}.side-nav{padding:17px 12px;overflow-y:auto;flex:1}.nav-label{color:#a2ada6;font-size:9px;font-weight:700;letter-spacing:.15em;padding:14px 10px 8px}.nav-link{height:39px;display:flex;align-items:center;gap:11px;padding:0 11px;border-radius:8px;color:#64746b;font-size:12px;font-weight:500;margin:2px 0;transition:.15s}.nav-link>span{width:18px;text-align:center;color:#84958b;font-size:16px}.nav-link:hover{background:#f3f8f4;color:var(--brand)}.nav-link.active{background:#e8f5ee;color:#08734f;font-weight:700}.nav-link.active>span{color:var(--brand)}.nav-count{margin-left:auto;font-style:normal;background:#d9574f;color:#fff;border-radius:10px;min-width:18px;height:18px;font-size:10px;text-align:center;line-height:18px}.sidebar-user{padding:14px 17px;border-top:1px solid #edf1ee;display:flex;align-items:center;gap:9px}.avatar{width:34px;height:34px;border-radius:11px;background:#e7f4ec;color:var(--brand);font-weight:700;display:grid;place-items:center}.sidebar-user b{font-size:11px;display:block}.sidebar-user small{display:block;color:#95a198;font-size:10px}.sidebar-user>a{margin-left:auto;color:#83948a;font-size:20px}.main-area{margin-left:252px;min-height:100vh}.topbar{height:68px;background:#fff;border-bottom:1px solid #e8eee9;display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:10}.breadcrumb{font-size:12px;color:#65746b}.breadcrumb span{padding:0 8px;color:#bdc8c0}.top-actions{display:flex;align-items:center;gap:20px}.icon-action{position:relative;color:#60736a;font-size:19px}.icon-action i{position:absolute;top:-5px;right:-9px;background:#d85851;color:white;border-radius:99px;font-style:normal;font-size:9px;min-width:16px;height:16px;text-align:center;line-height:16px}.public-link{font-size:11px;color:var(--brand);font-weight:700}.mobile-menu{display:none;background:none;border:0;color:#244536;font-size:22px}.content-wrap{max-width:1500px;padding:30px 34px 24px;margin:0 auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.page-head h1{font:600 29px 'Playfair Display',serif;letter-spacing:-.02em;margin:0 0 4px;color:#182f25}.page-head .muted{font-size:12px;margin:0}.head-buttons{display:flex;gap:9px;align-items:center}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:19px}.stat-card{background:#fff;border:1px solid #e8eee9;border-radius:14px;padding:17px 18px;min-width:0;position:relative}.stat-card small{color:#809087;display:block;font-size:11px;margin-bottom:7px}.stat-card>b{font-size:23px;font-weight:700;letter-spacing:-.04em;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-card em{display:block;font-style:normal;color:#a0aaa3;font-size:10px;margin-top:6px}.stat-icon{display:grid;place-items:center;width:30px;height:30px;float:right;border-radius:9px;font-size:17px}.stat-icon.green{background:#e8f6ee;color:#25885d}.stat-icon.amber{background:#fff5e4;color:#bd8836}.stat-icon.blue{background:#edf4ff;color:#5485c2}.stat-icon.violet{background:#f3efff;color:#866cc0}.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:17px}.panel{background:#fff;border:1px solid #e7ede9;border-radius:14px;padding:20px;margin-bottom:17px;min-width:0}.panel h2{font-size:14px;margin:0;font-weight:700}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:17px}.panel-head .muted{font-size:11px;margin:3px 0 0}.panel-head>a{font-size:11px;color:var(--brand);font-weight:700}.cash-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:135px}.cash-summary>div:first-child small{color:#86948c;display:block;font-size:11px}.cash-summary>div:first-child b{display:block;font-size:27px;letter-spacing:-.04em;margin-top:6px}.chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:22px;height:130px;width:180px;border-bottom:1px solid #e9efeb;padding:0 15px}.bar-col{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.bar{width:30px;border-radius:7px 7px 0 0;min-height:5px}.bar.income{background:linear-gradient(#45b984,#138357)}.bar.expense{background:linear-gradient(#f4c677,#d99a35)}.bar-col small{font-size:9px;color:#839187;white-space:nowrap}.legend{display:flex;gap:17px;font-size:10px;color:#8b9890;border-top:1px solid #f0f3f1;padding-top:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.green-dot{background:#1f9c67}.amber-dot{background:#e3aa4e}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid a{border:1px solid #edf1ee;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:3px;transition:.2s}.quick-grid a:hover{border-color:#bcdcc9;background:#f8fcf9}.quick-grid a>span{font-size:18px;color:var(--brand);margin-bottom:4px}.quick-grid b{font-size:11px}.quick-grid small{font-size:9px;color:#8b9991}.activity-list{display:flex;flex-direction:column}.activity-item{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid #f0f3f1}.activity-item:last-child{border:0}.activity-dot{width:8px;height:8px;border-radius:50%;background:#38a779;margin-top:5px;box-shadow:0 0 0 4px #eaf6ef}.activity-item b{font-size:11px;display:block}.activity-item small{font-size:10px;color:#9aa69e}.empty-state{text-align:center;padding:30px;color:#98a49c;font-size:12px}.empty-icon{font-size:28px;color:#b9c9bf;margin-bottom:5px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-stack.compact{margin-top:15px}.form-stack.compact label{font-size:11px}.form-stack.compact input{font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.form-grid label{min-width:0}.form-grid .span-2{grid-column:span 2}.form-actions{grid-column:1/-1;display:flex;align-items:center;gap:14px;margin-top:4px}.settings-form .form-grid{padding-bottom:15px}.entry-panel{border-color:#dcece2;background:linear-gradient(120deg,#fff,#fbfefb)}.entry-panel .form-grid{margin-top:12px}.entry-panel .panel-head{margin-bottom:7px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#84938a;background:#f8faf8;font-weight:700;padding:11px 12px;border-bottom:1px solid #e9efeb}td{font-size:11px;color:#43534b;padding:12px;border-bottom:1px solid #eef2ef;vertical-align:middle}tbody tr:hover{background:#fbfdfb}td b{font-size:11px;color:#273b31}.cell-sub{display:block;color:#93a097;font-size:9px;max-width:250px;overflow:hidden;text-overflow:ellipsis}.status-pill{border-radius:20px;padding:4px 8px;background:#eef5f0;color:#668071;font-size:9px;font-weight:700;display:inline-block}.status-active,.status-done,.status-published,.status-paid{background:#e8f6ed;color:#1a8255}.status-draft,.status-pending,.status-unread,.status-open{background:#fff6e8;color:#a17631}.status-inactive,.status-cancelled,.status-archived{background:#f1f3f2;color:#849089}.status-progress,.status-read{background:#edf4ff;color:#527caf}.table-actions{display:flex;align-items:center;gap:6px}.action-menu{position:relative}.action-menu summary{cursor:pointer;list-style:none;color:#87978d;font-weight:700;padding:4px 8px}.action-menu summary::-webkit-details-marker{display:none}.action-menu>div{position:absolute;right:0;top:25px;background:#fff;border:1px solid #e5ece7;border-radius:9px;padding:9px;box-shadow:0 12px 30px #10291c18;z-index:8;min-width:150px;display:flex;flex-direction:column;gap:7px}.action-menu select{border:1px solid #e3eae5;padding:6px;border-radius:6px;font-size:10px;width:100%}.danger-link{border:0;background:none;color:#b84a42;font-size:11px;padding:5px 0;text-align:left}.notification-list{padding:0}.notification-row{display:flex;align-items:center;gap:13px;padding:15px 18px;border-bottom:1px solid #edf1ee}.notification-row:last-child{border:0}.notification-row.unread{background:#fbfefc}.notification-icon{width:34px;height:34px;border-radius:10px;background:#edf7f0;color:var(--brand);display:grid;place-items:center;font-size:18px}.notification-content{flex:1;min-width:0}.notification-content b{font-size:12px}.notification-content p{font-size:11px;color:#6e7d74;margin:3px 0}.notification-content small{font-size:9px;color:#9aa69e}.feature-help{margin:10px 0 20px}.feature-help h2{font-size:13px;margin-bottom:10px}.help-chips{display:flex;flex-wrap:wrap;gap:8px}.help-chips span{background:#fff;border:1px solid #e6eee8;border-radius:30px;padding:7px 11px;color:#64756b;font-size:10px}.help-chips span:first-letter{color:var(--brand)}.guide-panel{overflow:hidden}.video-tag{font-size:9px;letter-spacing:.1em;color:var(--brand);background:#edf8f1;padding:6px 9px;border-radius:20px;font-weight:700}.guide-video{width:100%;max-height:480px;border-radius:10px;background:#0d1712;display:block}.admin-footer{display:flex;justify-content:space-between;gap:15px;padding:14px 2px;color:#9aa69e;font-size:9px}.admin-footer span:last-child{text-align:right}
/* Public website */
.public-body{background:#fff;color:#20352a}.wrap{width:min(1160px,calc(100% - 56px));margin:0 auto}.public-header{height:78px;border-bottom:1px solid #edf1ed;background:#fff;position:sticky;top:0;z-index:30}.public-nav{height:100%;display:flex;align-items:center;justify-content:space-between}.public-brand{display:flex;align-items:center;gap:10px}.public-brand b{display:block;font-size:13px;letter-spacing:-.02em}.public-brand small{display:block;color:#94a198;font-size:9px}.public-nav nav{display:flex;align-items:center;gap:27px;font-size:11px;color:#63736a}.public-nav nav a:hover{color:var(--brand)}.public-nav .nav-cta{background:var(--brand);color:#fff;border-radius:8px;padding:10px 14px;font-weight:700}.public-mobile{display:none}.hero-section{background:#0e392a;color:white;position:relative;overflow:hidden;min-height:570px}.hero-bg-pattern{position:absolute;inset:0;opacity:.12;background-image:linear-gradient(30deg,transparent 48%,#c6d8c6 49%,transparent 50%),linear-gradient(120deg,transparent 48%,#c6d8c6 49%,transparent 50%);background-size:76px 76px;mask-image:linear-gradient(90deg,#000,transparent 90%)}.hero-grid{min-height:510px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;position:relative;z-index:1;padding:56px 0 48px}.hero-copy{max-width:590px}.eyebrow.light{color:#b6d7c2}.eyebrow-line{display:inline-block;height:1px;width:25px;background:var(--accent);vertical-align:middle;margin-right:8px}.hero-copy h1{font:500 clamp(43px,5vw,66px)/1.09 'Playfair Display',serif;letter-spacing:-.035em;margin:22px 0 17px}.hero-copy h1 em,.intro-grid h2 em,.donation-section h2 em,.contact-section h2 em{font-weight:500;color:#d9c18f}.hero-copy>p{max-width:450px;font-size:14px;line-height:1.9;color:#c3d6cc;margin-bottom:27px}.hero-actions{display:flex;align-items:center;gap:23px}.hero-btn{background:#e4c98e;color:#234132;border-radius:8px;padding:13px 18px}.hero-btn:hover{background:#f0dba9}.hero-secondary{font-size:12px;color:#e8f0eb}.hero-secondary span{margin-left:7px}.hero-trust{margin-top:46px;color:#98b9a8;font-size:10px;letter-spacing:.05em}.hero-trust span{color:#d5b873;margin-right:7px}.hero-art{height:390px;display:flex;align-items:center;justify-content:center;position:relative}.hero-art-frame{width:320px;height:365px;border:1px solid #8eaa9a66;padding:12px;border-radius:170px 170px 16px 16px;transform:rotate(2deg);background:#ffffff08}.arch-shape{height:100%;width:100%;border-radius:160px 160px 10px 10px;background:linear-gradient(165deg,#d6c89f 0%,#7b987f 47%,#183f31 100%);padding:10px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.arch-inner{height:100%;width:100%;border:1px solid #ffffff55;border-radius:150px 150px 5px 5px;background:radial-gradient(ellipse at 50% 15%,#e4d7b3aa,transparent 42%),linear-gradient(180deg,#738d76aa,#173c2e);display:flex;flex-direction:column;align-items:center;justify-content:center}.crescent{font-size:65px;color:#f2e5bd;transform:rotate(-20deg);text-shadow:0 12px 30px #071d13}.arch-label{font:22px serif;color:#fff;margin-top:35px}.arch-sub{font-size:9px;letter-spacing:.15em;color:#d6e1d8;margin-top:9px;text-transform:uppercase}.floating-note{position:absolute;bottom:35px;right:5px;background:#fff;color:#294536;border-radius:11px;padding:12px 17px;display:flex;gap:10px;align-items:center;box-shadow:0 12px 35px #001a1026}.floating-note>span{color:#c39e57;font-size:21px}.floating-note b{font-size:10px;display:block}.floating-note small{font-size:9px;color:#8e9c93}.hero-bottom{border-top:1px solid #ffffff1e;background:#092c20a6}.hero-bottom-inner{height:52px;display:flex;align-items:center;justify-content:space-between;color:#a7c0b2;font-size:10px}.hero-bottom-inner span:first-child{font:18px serif;color:#d7c99f}.intro-strip{padding:78px 0;background:#f7f8f5}.intro-grid{display:grid;grid-template-columns:1fr 1.1fr .6fr;gap:55px;align-items:center}.intro-grid h2,.section-heading h2,.donation-section h2,.contact-section h2{font:500 38px/1.16 'Playfair Display',serif;letter-spacing:-.03em;margin:0;color:#1c382a}.intro-grid h2 em{color:#a88a4d}.intro-grid>div:nth-child(2)>p{font-size:12px;color:#718077;line-height:2;margin:0 0 16px}.arrow-link{color:var(--brand);font-size:11px;font-weight:700}.arrow-link span{margin-left:10px}.intro-stat{border-left:1px solid #dfe6df;padding-left:28px}.intro-stat b{display:block;font:500 35px 'Playfair Display',serif;color:var(--brand)}.intro-stat span{font-size:10px;color:#829087}.section-wrap{padding:82px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:32px}.section-heading h2{font-size:36px}.section-heading .muted{font-size:11px;margin:7px 0 0}.section-index{font-size:9px;letter-spacing:.12em;color:#a8b3aa}.card-grid{display:grid;gap:16px}.card-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.public-card{border:1px solid #e7eee8;border-radius:13px;padding:23px;background:#fff;min-width:0;transition:.2s}.public-card:hover{transform:translateY(-3px);box-shadow:0 13px 28px #1438260a;border-color:#cbded0}.program-card{min-height:240px}.card-symbol{width:38px;height:38px;border-radius:12px;background:#eaf4ec;color:var(--brand);display:grid;place-items:center;font-size:20px;margin-bottom:23px}.card-kicker{font-size:8px;font-weight:700;color:#a78a50;letter-spacing:.13em;margin:0 0 8px}.public-card h3{font:600 19px 'Playfair Display',serif;margin:0 0 9px;color:#254332}.public-card>p{font-size:11px;line-height:1.8;color:#7d8981}.card-meta{margin-top:23px;padding-top:14px;border-top:1px solid #eef2ee;display:flex;flex-direction:column;gap:6px;color:#89968d;font-size:9px}.donation-section{background:#103c2c;color:#fff;padding:78px 0;position:relative;overflow:hidden}.donation-section:before{content:'۞';position:absolute;right:-30px;top:-120px;font:500 420px serif;color:#ffffff08}.donation-grid{position:relative;z-index:1;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:65px}.donation-section h2{color:#fff;font-size:43px;margin:0 0 17px}.donation-section>div>div:first-child>p:not(.eyebrow){font-size:12px;line-height:1.9;color:#bdd0c4;max-width:400px;margin-bottom:25px}.donation-btn{background:#e2c688;color:#213e2f}.donation-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.donation-card{background:#fff;color:#233d2f;border-radius:12px;padding:20px;min-height:240px}.campaign-icon{font-size:22px;color:#b39454;margin-bottom:17px}.donation-card>small{font-size:8px;color:#a78b52;letter-spacing:.12em;font-weight:700}.donation-card h3{font:600 18px 'Playfair Display',serif;margin:7px 0}.donation-card p{font-size:10px;color:#7b8980;line-height:1.7;min-height:42px}.donation-card>a{display:block;font-size:10px;color:var(--brand);font-weight:700;margin-top:12px}.progress-label{display:flex;justify-content:space-between;font-size:10px;color:#6b7b71;margin-top:17px}.progress-track{height:5px;background:#edf1ed;border-radius:10px;margin:6px 0;overflow:hidden}.progress-track i{display:block;height:100%;background:#13885c;border-radius:10px}.event-list{border-top:1px solid #e7eee8}.event-row{display:flex;align-items:center;gap:22px;padding:19px 4px;border-bottom:1px solid #e7eee8}.event-date{width:55px;height:55px;background:#edf5ee;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}.event-date b{font:600 21px 'Playfair Display',serif;color:var(--brand)}.event-date small{font-size:8px;letter-spacing:.12em;color:#80958a}.event-info{flex:1}.event-info h3{font:600 18px 'Playfair Display',serif;margin:0 0 4px}.event-info p{font-size:10px;color:#8b9890;margin:0 0 5px}.event-info small{font-size:9px;color:#829188}.event-mark{width:30px;height:30px;border:1px solid #e2eae4;border-radius:50%;display:grid;place-items:center;color:var(--brand)}.article-section{background:#f8faf8}.article-card{min-height:210px}.article-date{font-size:8px;color:#a28a57;font-weight:700;letter-spacing:.08em;margin-bottom:19px}.article-card>p{font-size:10px}.article-byline{font-size:9px;color:#a0aaa3;display:block;margin-top:18px}.contact-section{background:#103b2b;color:white;padding:82px 0}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.contact-section h2{color:#fff;font-size:42px;margin:0 0 17px}.contact-section h2 em{color:#d7c08e}.contact-grid>div>p:not(.eyebrow){font-size:12px;line-height:1.9;color:#bed0c5;max-width:430px}.contact-details{display:flex;flex-direction:column;gap:9px;color:#d0ded5;font-size:10px;margin-top:25px}.social-links{display:flex;gap:16px;margin-top:18px}.social-links a{font-size:10px;color:#e4d19f}.contact-form{background:#fff;color:#263c30;border-radius:15px;padding:24px;box-shadow:0 25px 55px #0020122c}.form-top{display:flex;gap:12px;align-items:center;margin-bottom:20px}.form-top>span{width:36px;height:36px;border-radius:10px;background:#eaf5ee;display:grid;place-items:center;color:var(--brand);font-size:18px}.form-top b{display:block;font-size:12px}.form-top small{display:block;font-size:9px;color:#94a098}.contact-form label{margin-bottom:13px}.contact-form input,.contact-form textarea{font-size:11px;font-weight:400}.contact-form .form-grid{gap:12px}.privacy-note{display:block;text-align:center;font-size:8px;color:#9ca7a0;margin-top:12px}.public-footer{background:#092b20;color:#d0ded5;padding:34px 0}.footer-inner{display:grid;grid-template-columns:1fr auto;gap:25px;align-items:center}.footer-brand b{color:#fff}.footer-brand small{color:#a7bbaf}.footer-inner>div:first-child>p{font-size:9px;color:#8da99b;margin:11px 0 0}.footer-links{display:flex;gap:20px;font-size:10px;color:#bed0c5}.footer-inner>small{grid-column:1/-1;border-top:1px solid #ffffff19;padding-top:15px;font-size:9px;color:#829f90}.public-alert{margin-top:15px;background:#eaf8ef;border:1px solid #cdebd7;padding:12px 16px;border-radius:10px;color:#17603e;font-size:12px}.empty-public{padding:24px;background:#fff;border:1px dashed #dce7de;color:#94a198;border-radius:10px;font-size:11px;grid-column:1/-1}.custom-page{padding:80px 0;min-height:65vh}.custom-page h1{font:500 42px 'Playfair Display',serif}.rich-content{max-width:760px;line-height:2;color:#617168;white-space:normal;margin:25px 0 30px}
/* TV kiosk */
.tv-body{background:#081d16;color:#fff;min-height:100vh;overflow:hidden}.tv-screen{min-height:100vh;display:flex;flex-direction:column;padding:26px 42px 20px;background:radial-gradient(ellipse at 16% 6%,#1c5039 0%,transparent 40%),radial-gradient(ellipse at 88% 80%,#194a34 0%,transparent 36%),#081e16}.tv-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:19px;border-bottom:1px solid #ffffff1b}.tv-brand{display:flex;align-items:center;gap:13px}.tv-brand b{font:500 22px 'Playfair Display',serif;display:block}.tv-brand small{font-size:10px;color:#a4beb0}.tv-clock{text-align:right}.tv-clock b{font-size:31px;letter-spacing:.08em;display:block;font-variant-numeric:tabular-nums}.tv-clock span{font-size:10px;color:#a3b9ac}.tv-main{width:100%;max-width:1600px;margin:0 auto;flex:1;display:flex;flex-direction:column;justify-content:center;padding:20px 0;gap:20px}.tv-prayer{background:#ffffff0b;border:1px solid #ffffff1c;border-radius:17px;padding:22px 25px}.tv-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.tv-kicker{font-size:9px;font-weight:700;letter-spacing:.19em;color:#cfba80}.tv-section-head h1{font:500 29px 'Playfair Display',serif;margin:5px 0 0}.next-prayer{text-align:right}.next-prayer small{display:block;font-size:8px;color:#a5b9ad;letter-spacing:.12em}.next-prayer b{display:inline-block;font:600 17px 'Playfair Display',serif;color:#e2ca8e;margin:4px 10px 0 0}.next-prayer span{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}.prayer-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.prayer-cell{border:1px solid #ffffff1c;background:#ffffff08;padding:15px 10px;border-radius:10px;text-align:center}.prayer-cell small{display:block;font-size:10px;color:#b2c6b8;margin-bottom:5px}.prayer-cell b{font-size:25px;letter-spacing:.02em;font-variant-numeric:tabular-nums}.tv-footnote{font-size:9px;color:#839e8e;margin:13px 0 0}.tv-lower{display:grid;grid-template-columns:1fr 285px;gap:16px;min-height:235px}.tv-announcements{padding:20px 23px;background:#ffffff0b;border:1px solid #ffffff1c;border-radius:15px;display:flex;flex-direction:column}.tv-section-head.simple{margin-bottom:0}.tv-section-head.simple h2{font:500 20px 'Playfair Display',serif;margin:4px 0}.live-dot{font-size:8px;color:#80d2a2;letter-spacing:.08em}.tv-slides{position:relative;min-height:115px;display:flex;align-items:center}.tv-slide{display:none;animation:fadeUp .55s ease;max-width:800px}.tv-slide.active{display:block}.tv-slide>small{font-size:8px;color:#d7c18e;letter-spacing:.14em;font-weight:700}.tv-slide h3{font:500 26px 'Playfair Display',serif;margin:4px 0 6px}.tv-slide p{font-size:11px;color:#aec4b6;margin:0;line-height:1.7}.tv-slide-dots{display:flex;gap:5px;margin-top:auto}.tv-slide-dots i{height:3px;width:17px;background:#ffffff33;border-radius:10px}.tv-slide-dots i.active{background:#d8c18b;width:30px}.tv-donation{background:#e9e6d7;color:#284333;border-radius:15px;padding:17px;display:flex;flex-direction:column;align-items:center;text-align:center}.tv-donation .tv-kicker{color:#98763d}.tv-donation h2{font:500 19px 'Playfair Display',serif;margin:3px 0 9px}.tv-qr{width:125px;height:125px;object-fit:contain;background:#fff;padding:6px;border-radius:7px}.qr-placeholder{width:125px;height:125px;background:#d8d7c8;border:1px dashed #9da891;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#7c8a78}.qr-placeholder span{font-size:45px}.qr-placeholder small{font-size:8px}.tv-donation p{font-size:9px;line-height:1.5;color:#647466;margin:8px 0}.tv-donation-link{font-size:9px;color:#0c7851;font-weight:700}.tv-footer{display:flex;align-items:center;gap:20px;border-top:1px solid #ffffff1b;padding-top:13px;color:#9db7a7;font-size:9px}.tv-footer span:first-child{font:14px serif;color:#d5c391}.tv-footer div{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-footer span:last-child{color:#728f7e}@keyframes fadeUp{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
/* Print ticket */
.ticket-body{min-height:100vh;background:#f1f4f1;display:grid;place-items:center;padding:25px}.ticket-card{background:white;width:min(100%,540px);border:1px solid #dce6de;border-radius:16px;padding:30px;box-shadow:0 20px 60px #16372310}.ticket-top{display:flex;align-items:center;gap:13px;border-bottom:1px solid #e8eee9;padding-bottom:18px}.ticket-top small{font-size:8px;color:#9aab9e;letter-spacing:.16em}.ticket-top h1{font:600 20px 'Playfair Display',serif;margin:2px 0}.ticket-top p{font-size:9px;color:#8b9990;margin:0}.ticket-no{margin:20px 0 6px;font-size:10px;color:var(--brand);letter-spacing:.12em;font-weight:700}.ticket-card h2{font:600 25px 'Playfair Display',serif;margin:0 0 20px}.ticket-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#f6f9f6;border-radius:10px;padding:17px}.ticket-grid small{font-size:9px;color:#92a097;display:block}.ticket-grid b{font-size:13px}.ticket-note{font-size:10px;color:#849188;line-height:1.8;margin:20px 0}.ticket-card .btn{width:100%}
@media(max-width:1100px){.sidebar{width:220px}.main-area{margin-left:220px}.content-wrap{padding:25px 24px}.stat-grid{grid-template-columns:repeat(2,1fr)}.public-nav nav{gap:15px}.intro-grid{gap:30px}.tv-screen{padding:20px 26px}.prayer-cell b{font-size:21px}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:.25s;width:260px;box-shadow:12px 0 35px #0d241813}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.topbar{padding:0 18px;height:60px}.mobile-menu{display:block}.breadcrumb{margin-right:auto;margin-left:12px}.content-wrap{padding:22px 17px}.page-head{align-items:flex-start;flex-direction:column}.head-buttons{width:100%;flex-wrap:wrap}.dashboard-grid,.two-col{grid-template-columns:1fr}.stat-grid{gap:10px}.stat-card{padding:14px}.stat-card>b{font-size:19px}.admin-footer{flex-direction:column;gap:3px}.admin-footer span:last-child{text-align:left}.public-header{height:66px}.public-nav{position:relative}.public-mobile{display:block}.public-nav nav{display:none;position:absolute;top:65px;right:0;left:0;background:#fff;border:1px solid #e8eee9;box-shadow:0 14px 25px #183b2812;border-radius:12px;padding:15px;flex-direction:column;align-items:stretch;gap:0}.public-nav nav.open{display:flex}.public-nav nav a{padding:11px}.public-nav .nav-cta{text-align:center;margin-top:5px}.hero-grid{grid-template-columns:1fr;padding:58px 0 35px}.hero-copy{max-width:100%}.hero-copy h1{font-size:48px}.hero-art{height:300px;margin-top:20px}.hero-art-frame{height:285px;width:255px}.floating-note{right:0;bottom:12px}.hero-bottom-inner{height:auto;min-height:50px;gap:12px;font-size:8px}.intro-grid{grid-template-columns:1fr;gap:19px}.intro-stat{border-left:0;border-top:1px solid #dfe6df;padding:16px 0 0}.section-wrap,.intro-strip,.donation-section,.contact-section{padding:58px 0}.section-heading h2{font-size:31px}.card-grid.three{grid-template-columns:1fr 1fr}.donation-grid,.contact-grid{grid-template-columns:1fr;gap:30px}.donation-section h2,.contact-section h2{font-size:38px}.contact-form{padding:19px}.tv-body{overflow:auto}.tv-screen{min-height:100vh;padding:17px 15px}.tv-brand b{font-size:16px}.tv-brand small{font-size:8px}.tv-clock b{font-size:23px}.tv-prayer{padding:16px}.tv-section-head h1{font-size:22px}.next-prayer span{font-size:14px}.prayer-grid{grid-template-columns:repeat(3,1fr)}.tv-lower{grid-template-columns:1fr}.tv-donation{display:grid;grid-template-columns:1fr 115px;grid-template-rows:auto auto 1fr;gap:5px;text-align:left;align-items:center}.tv-donation .tv-kicker,.tv-donation h2,.tv-donation p,.tv-donation-link{grid-column:1}.tv-qr,.qr-placeholder{grid-column:2;grid-row:1/5;width:105px;height:105px}.tv-footer{flex-wrap:wrap}.tv-footer div{order:3;flex-basis:100%}.tv-footer span:last-child{margin-left:auto}}
@media(max-width:520px){.wrap{width:calc(100% - 34px)}.content-wrap{padding:19px 12px}.page-head h1{font-size:25px}.stat-grid{grid-template-columns:1fr 1fr}.stat-card>b{font-size:16px}.stat-card em{font-size:8px}.panel{padding:15px}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.form-actions{grid-column:1}.cash-summary{align-items:flex-start;flex-direction:column}.chart-bars{width:100%;height:105px}.quick-grid{grid-template-columns:1fr 1fr}.top-actions{gap:12px}.public-link{font-size:9px}.hero-copy h1{font-size:42px}.hero-copy>p{font-size:12px}.hero-actions{gap:14px}.hero-btn{padding:11px 13px;font-size:11px}.hero-secondary{font-size:10px}.hero-art-frame{width:230px;height:265px}.floating-note{right:-2px;bottom:3px}.intro-grid h2,.section-heading h2{font-size:30px}.card-grid.three{grid-template-columns:1fr}.program-card{min-height:0}.donation-cards{grid-template-columns:1fr}.donation-card{min-height:0}.section-heading{align-items:flex-start;gap:12px}.section-index{font-size:8px;white-space:nowrap;margin-top:3px}.event-row{gap:12px}.event-date{width:45px;height:48px}.event-info h3{font-size:15px}.event-info p{font-size:9px}.contact-form .form-grid{grid-template-columns:1fr}.footer-inner{grid-template-columns:1fr}.footer-links{flex-wrap:wrap}.ticket-card{padding:20px}.ticket-grid{padding:12px}.tv-screen{padding:13px 10px}.tv-header{align-items:flex-start}.tv-brand .brand-mark{width:34px;height:34px}.tv-brand b{font-size:13px;max-width:155px}.tv-clock b{font-size:19px}.tv-clock span{font-size:8px}.tv-section-head{align-items:flex-start;flex-direction:column}.next-prayer{text-align:left}.prayer-grid{gap:6px}.prayer-cell{padding:12px 5px}.prayer-cell b{font-size:19px}.tv-slide h3{font-size:21px}.tv-announcements{padding:15px}.tv-donation{grid-template-columns:1fr 90px;padding:13px}.tv-qr,.qr-placeholder{width:85px;height:85px}.qr-placeholder span{font-size:30px}}
@media print{body.ticket-body{background:white;padding:0}.ticket-card{box-shadow:none;border:1px solid #ccc;width:100%;max-width:none}.ticket-card .btn{display:none}}
/* Additional public content blocks and print-friendly reports */
.public-logo{width:42px;height:42px;object-fit:contain;border-radius:12px}.transparency-section{padding:75px 0;background:#f5f8f5}.transparency-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.transparency-grid>div{background:#fff;border:1px solid #e6eee8;border-radius:11px;padding:17px}.transparency-grid small{display:block;font-size:9px;color:#89978e;margin-bottom:6px}.transparency-grid b{display:block;font:600 21px 'Playfair Display',serif;color:#1d694b}.transparency-note{font-size:9px;color:#89968d;margin-top:13px}.official-card{min-height:160px}.official-avatar{width:40px;height:40px;border-radius:50%;background:#edf5ee;color:var(--brand);display:grid;place-items:center;font-size:20px;margin-bottom:12px}.official-card h3{margin-bottom:2px}.official-card>p{margin:0 0 6px}.official-card>small{font-size:9px;color:#9aa69e}.official-card .arrow-link{display:block;margin-top:12px;font-size:9px}
@media(max-width:800px){.transparency-grid{grid-template-columns:1fr 1fr}}
@media print{.sidebar,.topbar,.head-buttons,.entry-panel,.admin-footer,.guide-panel,.feature-help,.action-menu,.btn,.mobile-menu{display:none!important}.main-area{margin:0}.content-wrap{padding:0}.panel{border:0;box-shadow:none;padding:8px 0}.page-head{margin-bottom:8px}.admin-body{background:white}th,td{font-size:9px;padding:6px}.table-wrap{overflow:visible}table{white-space:normal}}
/* Starter template personalities */
.template-klasik-islami .hero-section{background:linear-gradient(135deg,#1d3326,#675438)}.template-klasik-islami .hero-art-frame{border-color:#d6c18b77}.template-klasik-islami .section-wrap{background:#fbf8f0}.template-modern-putih .hero-section{background:linear-gradient(120deg,#eef5ef,#dfeae2);color:#1b3c2b}.template-modern-putih .hero-copy h1{color:#153c2a}.template-modern-putih .hero-copy>p,.template-modern-putih .hero-trust{color:#587267}.template-modern-putih .hero-bottom{background:#dce9df;border-color:#ccdace}.template-modern-putih .hero-bottom-inner{color:#527060}.template-emerald .hero-section{background:linear-gradient(135deg,#052c27,#0c6651)}.template-ramadan .hero-section{background:radial-gradient(circle at 70% 15%,#684d74,#29203f 55%,#15172c)}.template-ramadan .hero-art-frame{border-color:#dbc48b88}.template-ramadan .hero-btn,.template-ramadan .donation-btn{background:#e2c47f}
.article-detail{max-width:900px}.article-detail h1{font-size:44px;line-height:1.15}.article-detail .article-byline{font-size:10px;margin:0 0 24px}.article-detail-image{width:100%;max-height:430px;object-fit:cover;border-radius:14px}.article-detail .rich-content{font-size:14px;max-width:780px}.article-card h3 a:hover{color:var(--brand)}.official-photo{width:48px;height:48px;object-fit:cover;border-radius:50%;margin-bottom:11px}
@media(max-width:520px){.article-detail h1{font-size:34px}}

/* Masjidku v1.1.0: appearance, navigation, responsive layout and TV display */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:var(--surface);color:var(--ink);font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .2s,border-color .2s}
.theme-toggle:hover{border-color:var(--brand);background:var(--brand-soft)}
.public-theme-toggle{align-self:center;margin:0 4px;padding:7px 10px}
.back-to-top{position:fixed;left:18px;bottom:18px;z-index:999;width:43px;height:43px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:23px;font-weight:700;box-shadow:0 8px 24px #0b352522;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s;cursor:pointer}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:var(--brand-dark);transform:translateY(-3px)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.permission-table{min-width:680px}.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center;width:82px}.permission-check{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:28px;margin:0}.permission-check input{width:17px;height:17px;accent-color:var(--brand)}
.permission-picker{max-width:480px}.backup-shortcut{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.backup-shortcut>div{flex:1;min-width:230px}.backup-shortcut h2{margin:0 0 5px}.backup-shortcut p{margin:0}.backup-page{max-width:1160px;margin:0 auto;padding:24px clamp(14px,3vw,36px) 60px}.backup-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.backup-header>a{color:var(--brand);font-weight:700;font-size:12px}.backup-page .page-head{margin-bottom:22px}.approval-panel{margin:0 0 20px}.approval-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:260px}.approval-actions input{max-width:170px;min-width:105px}.btn.danger{background:#b64343;color:#fff;border:1px solid #b64343}.approval-pending{color:#ad761d}.approval-approved{color:#17784e}.approval-rejected{color:#bd4545}.audit-diff{max-width:380px;max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:10px;font-size:10px}.campaign-report-note,.campaign-report-expense{font-size:11px;line-height:1.6;color:var(--muted);margin:9px 0}.campaign-proof{display:flex;flex-direction:column;gap:5px;margin:8px 0}.campaign-proof img{width:100%;height:130px;object-fit:cover;border-radius:9px}.campaign-proof small,.campaign-updated{font-size:9px;color:var(--muted)}.campaign-updated{display:block;margin:7px 0}
.tv-clock{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.tv-fullscreen-btn{border:1px solid #ffffff38;border-radius:999px;background:#ffffff12;color:#eef7ef;padding:7px 12px;font-size:10px;font-weight:700;margin-top:6px;white-space:nowrap}.tv-fullscreen-btn:hover{background:#ffffff25}.tv-hijri{font-size:10px;color:#d7c18e}.tv-ramadan-badge{display:inline-flex;align-items:center;padding:5px 10px;margin-top:8px;border:1px solid #d6c18b80;border-radius:99px;color:#e6d5a7;font-size:9px;letter-spacing:.13em;font-weight:700}.tv-iqamah{display:block;margin-top:4px;color:#afc9b7;font-style:normal;font-size:9px}.tv-fullscreen .tv-screen{width:100vw;min-height:100vh;height:100vh;max-width:none;margin:0;padding:clamp(18px,3vh,40px) clamp(22px,4vw,70px);display:flex;flex-direction:column;justify-content:space-between;gap:clamp(12px,2vh,24px);overflow:hidden}.tv-fullscreen .tv-main{flex:1;display:flex;flex-direction:column;justify-content:space-evenly;gap:clamp(14px,2vh,26px);min-height:0}.tv-fullscreen .tv-prayer{padding:clamp(18px,2.5vh,30px) clamp(22px,3vw,44px)}.tv-fullscreen .prayer-cell{padding:clamp(13px,2vh,23px) 10px}.tv-fullscreen .prayer-cell b{font-size:clamp(27px,3vw,48px)}.tv-fullscreen .tv-lower{grid-template-columns:minmax(0,1fr) clamp(230px,23vw,390px);min-height:0;flex:1}.tv-fullscreen .tv-announcements{padding:clamp(18px,2.4vh,32px)}.tv-fullscreen .tv-slide h3{font-size:clamp(26px,2.8vw,42px)}.tv-fullscreen .tv-slide p{font-size:clamp(12px,1.2vw,17px)}.tv-fullscreen .tv-qr,.tv-fullscreen .qr-placeholder{width:clamp(130px,13vw,205px);height:clamp(130px,13vw,205px)}.tv-fullscreen .tv-donation{padding:clamp(17px,2vw,30px)}.tv-fullscreen .tv-footer{font-size:clamp(10px,.8vw,13px)}.tv-cursor-hidden,.tv-cursor-hidden *{cursor:none!important}.tv-body:fullscreen{background:#071f17}

/* Dark mode: all user-facing content retains readable contrast. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e6eee9;--muted:#9aaba2;--line:#2b4036;--surface:#14241d;--paper:#0d1913;--brand-soft:#193a2b;--danger:#e07979}
html[data-theme="dark"] body.admin-body,html[data-theme="dark"] body.public-body,html[data-theme="dark"] body.install-body{background:#0d1913;color:#e6eee9}
html[data-theme="dark"] .sidebar{background:#10221a;border-right-color:#263b30}
html[data-theme="dark"] .side-brand,html[data-theme="dark"] .sidebar-user{border-color:#2a4035}
html[data-theme="dark"] .topbar{background:#12231c;border-color:#2a4035;color:#e6eee9}
html[data-theme="dark"] .panel,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .install-card,html[data-theme="dark"] .backup-page .panel{background:#14241d;border-color:#2b4036;color:#e6eee9}
html[data-theme="dark"] .panel-head,html[data-theme="dark"] .admin-footer{border-color:#2b4036}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0d1b14;color:#e6eee9;border-color:#385044}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#788b80}
html[data-theme="dark"] th{background:#1a3025;color:#cbd9d0;border-color:#344b3e}
html[data-theme="dark"] td{border-color:#2b4036;color:#dce7e0}
html[data-theme="dark"] tr:hover td{background:#192b22}
html[data-theme="dark"] .nav-link{color:#bdccc3}
html[data-theme="dark"] .nav-link:hover,html[data-theme="dark"] .nav-link.active{background:#1c3b2c;color:#fff}
html[data-theme="dark"] .notice.success{background:#173a2b;color:#c0e7cf;border-color:#2b6144}
html[data-theme="dark"] .notice.warning{background:#3b301a;color:#f0d89c;border-color:#665126}
html[data-theme="dark"] .notice.error{background:#421f20;color:#f4c1c1;border-color:#743536}
html[data-theme="dark"] .btn.outline,html[data-theme="dark"] .theme-toggle{background:#172a20;color:#e3eee7;border-color:#385044}
html[data-theme="dark"] .btn.outline:hover,html[data-theme="dark"] .theme-toggle:hover{background:#1f3d2d}
html[data-theme="dark"] .action-menu>div{background:#14241d;border-color:#31483a}
html[data-theme="dark"] .notification-row{border-color:#2b4036}
html[data-theme="dark"] .transparency-section,html[data-theme="dark"] .section-wrap,html[data-theme="dark"] .intro-strip{background:#101e17}
html[data-theme="dark"] .public-header{background:#10221a;border-color:#2b4036}
html[data-theme="dark"] .public-nav nav{background:#14241d;border-color:#2b4036}
html[data-theme="dark"] .public-nav nav a{color:#e1ebe4}
html[data-theme="dark"] .public-card,html[data-theme="dark"] .transparency-grid>div{background:#14241d;border-color:#2b4036;color:#e6eee9}
html[data-theme="dark"] .public-card p,html[data-theme="dark"] .transparency-note,html[data-theme="dark"] .intro-grid p{color:#a9b9b0}
html[data-theme="dark"] .contact-form{background:#14241d;border-color:#31483a;color:#e6eee9}
html[data-theme="dark"] .contact-form input,html[data-theme="dark"] .contact-form textarea{background:#0d1b14;color:#e6eee9}
html[data-theme="dark"] .public-footer{background:#09150f;border-color:#263b30}
html[data-theme="dark"] .backup-page .muted,html[data-theme="dark"] .backup-page .small-note{color:#9aaba2}
html[data-theme="dark"] .empty-state{color:#a6b6ad}

@media(max-width:1000px){.topbar{gap:10px}.breadcrumb{font-size:11px}.top-actions{gap:8px}.public-nav nav{gap:10px}.public-nav nav a{font-size:10px}.tv-fullscreen .tv-lower{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:800px){.theme-toggle{font-size:10px;padding:7px 9px}.top-actions .public-link{display:none}.topbar{position:sticky;top:0;z-index:60}.sidebar{z-index:90}.content-wrap{width:100%;min-width:0}.panel{min-width:0}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid label{min-width:0}.form-grid input,.form-grid select,.form-grid textarea{max-width:100%;min-width:0}.backup-shortcut{align-items:flex-start}.tv-fullscreen .tv-screen{padding:18px}.tv-fullscreen .tv-lower{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:560px){.back-to-top{left:12px;bottom:12px;width:39px;height:39px}.public-theme-toggle{width:100%;margin:4px 0;text-align:center}.public-nav nav.open .theme-toggle{display:flex;justify-content:center}.backup-page{padding:16px 12px 36px}.backup-page .two-col{grid-template-columns:1fr}.backup-header{margin-bottom:18px}.backup-shortcut{display:flex;flex-direction:column;align-items:stretch}.backup-shortcut .btn{width:100%;text-align:center}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.permission-table{min-width:620px}.approval-actions{min-width:220px}.approval-actions input{flex-basis:100%;max-width:none}.tv-fullscreen .tv-screen{overflow:auto;height:auto;min-height:100vh}.tv-fullscreen .tv-lower{grid-template-columns:1fr}.tv-fullscreen .tv-donation{display:grid;grid-template-columns:1fr 110px;text-align:left}.tv-fullscreen .tv-qr,.tv-fullscreen .qr-placeholder{grid-column:2;grid-row:1/5;width:100px;height:100px}.tv-fullscreen .tv-clock{align-items:flex-end}.tv-fullscreen .tv-fullscreen-btn{font-size:9px}.tv-fullscreen .tv-section-head{align-items:flex-start}}
@media print{.back-to-top,.theme-toggle,.tv-fullscreen-btn{display:none!important}}

.login-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.login-top .brand-mark{margin:0}.login-top .theme-toggle{flex-shrink:0}

/* Complete dark-surface treatment for secondary cards and form elements. */
html[data-theme="dark"] .entry-panel{background:#12231b;border-color:#2b4939}
html[data-theme="dark"] .quick-grid a,html[data-theme="dark"] .help-chips span{background:#14241d;border-color:#2b4036;color:#d5e2d9}
html[data-theme="dark"] .quick-grid a:hover{background:#1b3327;border-color:#426b53}
html[data-theme="dark"] .activity-item,html[data-theme="dark"] .chart-bars,html[data-theme="dark"] .legend{border-color:#2b4036}
html[data-theme="dark"] .activity-item small,html[data-theme="dark"] .notification-content p,html[data-theme="dark"] .notification-content small,html[data-theme="dark"] .cell-sub{color:#93a79a}
html[data-theme="dark"] .notification-row.unread{background:#172b21}
html[data-theme="dark"] .notification-icon,html[data-theme="dark"] .avatar,html[data-theme="dark"] .official-avatar{background:#1e3a2b;color:#b9e2c9}
html[data-theme="dark"] .status-pill{background:#26392f;color:#d0dfd5}
html[data-theme="dark"] .status-active,html[data-theme="dark"] .status-done,html[data-theme="dark"] .status-published,html[data-theme="dark"] .status-paid,html[data-theme="dark"] .approval-approved{background:#17412d;color:#bce8cb}
html[data-theme="dark"] .status-draft,html[data-theme="dark"] .status-pending,html[data-theme="dark"] .status-unread,html[data-theme="dark"] .status-open,html[data-theme="dark"] .approval-pending{background:#44371e;color:#f0d49a}
html[data-theme="dark"] .status-inactive,html[data-theme="dark"] .status-cancelled,html[data-theme="dark"] .status-archived{background:#29332e;color:#b4c1b8}
html[data-theme="dark"] .status-progress,html[data-theme="dark"] .status-read{background:#20364b;color:#bfd7ef}
html[data-theme="dark"] .approval-rejected{color:#ffaaaa}
html[data-theme="dark"] .video-tag{background:#1c3b2c;color:#b9e2c9}
html[data-theme="dark"] .entry-panel .panel-head,html[data-theme="dark"] .panel-head{border-color:#2b4036}
html[data-theme="dark"] .form-stack label,html[data-theme="dark"] .form-grid label,html[data-theme="dark"] .settings-form label,html[data-theme="dark"] .contact-form label{color:#c3d2c9}
html[data-theme="dark"] .template-modern-putih .hero-section{background:linear-gradient(135deg,#132b20,#1c3c2d);color:#e6eee9}
html[data-theme="dark"] .template-modern-putih .hero-copy h1{color:#edf5ef}
html[data-theme="dark"] .template-modern-putih .hero-copy>p,html[data-theme="dark"] .template-modern-putih .hero-trust{color:#b4c9bb}
html[data-theme="dark"] .template-modern-putih .hero-bottom{background:#102219;border-color:#2b4036}
html[data-theme="dark"] .template-modern-putih .hero-bottom-inner{color:#c0d3c6}
html[data-theme="dark"] .template-klasik-islami .section-wrap{background:#101e17}
@media(max-width:800px){.login-top .theme-toggle{font-size:10px;padding:7px 9px}}

/* v1.1.0 donation and status polish */
.transparency-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.public-donation-form{grid-column:1/-1;min-width:0}
.public-donation-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.public-donation-form .form-grid .span-2{grid-column:span 2}
.donation-anonymous{display:flex!important;flex-direction:row!important;align-items:center;gap:10px}
.donation-anonymous input{width:17px!important;height:17px;flex:0 0 auto;accent-color:var(--brand)}
.status-verified{background:#e7f6eb;color:#176b3b}
.status-rejected{background:#fff0ef;color:#a23b36}
html[data-theme="dark"] .status-verified{background:#17412d;color:#bce8cb}
html[data-theme="dark"] .status-rejected{background:#452323;color:#ffc1bd}
html[data-theme="dark"] .public-donation-form{background:#14241d;border-color:#2b4036;color:#e6eee9}
html[data-theme="dark"] .public-donation-form .panel-head .muted{color:#a9b9b0}
@media(max-width:800px){.transparency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.public-donation-form .form-grid{grid-template-columns:1fr}.public-donation-form .form-grid .span-2{grid-column:auto}.public-donation-form .form-actions{grid-column:1}}

/* TV kiosk can follow the device theme or be switched manually. */
.tv-theme-toggle{border:1px solid #ffffff38;border-radius:999px;background:#ffffff12;color:#eef7ef;padding:7px 11px;font-size:10px;font-weight:700;margin-top:6px;white-space:nowrap}
.tv-theme-toggle:hover{background:#ffffff25}
html[data-theme="light"] body.tv-body{background:#edf3ee;color:#17372a}
html[data-theme="light"] .tv-screen{background:radial-gradient(ellipse at 16% 6%,#dcefe2 0%,transparent 40%),radial-gradient(ellipse at 88% 80%,#d8eadf 0%,transparent 36%),#f4f8f4}
html[data-theme="light"] .tv-header,html[data-theme="light"] .tv-footer{border-color:#d5e2d8}
html[data-theme="light"] .tv-brand small,html[data-theme="light"] .tv-clock span,html[data-theme="light"] .tv-footer,html[data-theme="light"] .tv-footer span:last-child{color:#647d6d}
html[data-theme="light"] .tv-clock b,html[data-theme="light"] .tv-section-head h1,html[data-theme="light"] .tv-section-head h2,html[data-theme="light"] .tv-slide h3{color:#183b2a}
html[data-theme="light"] .tv-prayer,html[data-theme="light"] .tv-announcements{background:#ffffffd9;border-color:#dbe7de;color:#244332}
html[data-theme="light"] .next-prayer small,html[data-theme="light"] .tv-prayer .tv-footnote,html[data-theme="light"] .tv-slide p{color:#627b6b}
html[data-theme="light"] .next-prayer b{color:#8d6b2f}
html[data-theme="light"] .next-prayer span{color:#1b6847}
html[data-theme="light"] .prayer-cell{background:#f2f7f3;border-color:#dbe7de;color:#183b2a}
html[data-theme="light"] .prayer-cell small{color:#708778}
html[data-theme="light"] .tv-kicker,html[data-theme="light"] .tv-slide>small{color:#96743a}
html[data-theme="light"] .tv-theme-toggle,html[data-theme="light"] .tv-fullscreen-btn{background:#e8f1ea;color:#254b36;border-color:#ccdcd0}
html[data-theme="light"] .tv-theme-toggle:hover,html[data-theme="light"] .tv-fullscreen-btn:hover{background:#dcebe0}
html[data-theme="light"] .tv-footer span:first-child{color:#9b7d42}
html[data-theme="light"] .tv-slide-dots i{background:#b9c9bd}
html[data-theme="light"] .tv-slide-dots i.active{background:#b28c4a}
html[data-theme="light"] .live-dot{color:#238154}
html[data-theme="dark"] .tv-theme-toggle{background:#172a20;color:#e3eee7;border-color:#385044}
@media(max-width:560px){.tv-theme-toggle{font-size:9px;padding:6px 8px}.tv-clock{gap:2px}.tv-clock .tv-theme-toggle{margin-top:3px}}

/* Masjidku v1.1.1 — theme controls and visual refinements */
:root{
  --ui-bg:#f5f8f5;
  --ui-surface:#ffffff;
  --ui-surface-soft:#f8faf8;
  --ui-text:#20352a;
  --ui-muted:#75847b;
  --ui-border:#e4ebe6;
  --ui-shadow:0 10px 30px rgba(21,55,37,.09);
}
html[data-theme="light"]{color-scheme:light;--ui-bg:#f5f8f5;--ui-surface:#fff;--ui-surface-soft:#f8faf8;--ui-text:#20352a;--ui-muted:#75847b;--ui-border:#e4ebe6}
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e7efe9;--muted:#a1b2a8;--line:#2b4035;--surface:#15251d;--paper:#0e1913;--brand-soft:#1c3c2c;
  --ui-bg:#0d1913;--ui-surface:#14241c;--ui-surface-soft:#192c21;--ui-text:#e7efe9;--ui-muted:#a1b2a8;--ui-border:#2c4236;
}

/* Consistent, softly elevated display controls. */
.theme-toggle,.tv-control-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:36px;padding:8px 13px;border:1px solid var(--ui-border);
  border-radius:999px;background:var(--ui-surface);color:var(--ui-text);
  box-shadow:0 2px 8px rgba(24,55,38,.045);font-size:11px;font-weight:700;
  line-height:1;white-space:nowrap;cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.theme-toggle:hover,.tv-control-btn:hover{border-color:#9bbca6;background:var(--brand-soft);box-shadow:0 5px 15px rgba(18,71,44,.10);transform:translateY(-1px)}
.theme-toggle:focus-visible,.tv-control-btn:focus-visible,.back-to-top:focus-visible{outline:3px solid rgba(35,139,91,.28);outline-offset:3px}
.control-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:17px;height:17px}
.control-icon svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.control-label{display:inline-block}
.top-actions .theme-toggle{min-width:38px;padding:8px 11px}
.public-theme-toggle{align-self:center;width:auto;margin:0 3px;padding:8px 12px;background:rgba(8,122,85,.055);border-color:rgba(8,122,85,.14);color:var(--brand-dark)}
.public-theme-toggle:hover{background:var(--brand-soft);border-color:rgba(8,122,85,.35)}
.login-top .theme-toggle{flex-shrink:0}

/* Back-to-top — lower-right as requested. */
.back-to-top{
  position:fixed;right:22px;left:auto;bottom:22px;z-index:9999;
  width:46px;height:46px;padding:0;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.32);border-radius:50%;
  background:var(--brand);color:#fff;box-shadow:0 8px 24px rgba(10,48,30,.22);
  opacity:0;visibility:hidden;transform:translateY(9px) scale(.96);
  transition:opacity .22s ease,visibility .22s ease,transform .22s ease,box-shadow .22s ease,background .22s ease;
  cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.back-to-top svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.back-to-top:hover{background:var(--brand-dark);box-shadow:0 11px 28px rgba(10,48,30,.28);transform:translateY(-3px) scale(1.02)}

/* Fullscreen and appearance controls grouped neatly in the TV header. */
.tv-clock{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.tv-display-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
.tv-display-controls .tv-control-btn{min-height:35px;padding:7px 12px;font-size:10px;box-shadow:0 2px 10px rgba(0,0,0,.09)}
.tv-theme-toggle,.tv-fullscreen-btn{margin:0;border-radius:999px}
.tv-theme-toggle{background:rgba(255,255,255,.10);color:#f1f7f2;border-color:rgba(255,255,255,.22)}
.tv-fullscreen-btn{background:rgba(217,194,137,.15);color:#f4dfb1;border-color:rgba(217,194,137,.30)}
.tv-theme-toggle:hover,.tv-fullscreen-btn:hover{background:rgba(255,255,255,.19);border-color:rgba(255,255,255,.40);color:#fff}
.tv-fullscreen .tv-display-controls .tv-control-btn{min-height:39px;padding:8px 14px}

/* Light theme — public website. */
html[data-theme="light"] body.public-body{background:#fff;color:#20352a}
html[data-theme="light"] .public-header{background:rgba(255,255,255,.96);border-color:#e8eee9}
html[data-theme="light"] .public-nav nav a:not(.nav-cta){color:#63736a}
html[data-theme="light"] .intro-strip{background:#f7f8f5}
html[data-theme="light"] .section-wrap{background:#fff}
html[data-theme="light"] .transparency-section{background:#f5f8f5}
html[data-theme="light"] .public-card,html[data-theme="light"] .transparency-grid>div,html[data-theme="light"] .contact-form{background:#fff;color:#20352a}
html[data-theme="light"] .public-card h3,html[data-theme="light"] .intro-grid h2,html[data-theme="light"] .section-heading h2{color:#1c382a}
html[data-theme="light"] .custom-page{color:#263b30}
html[data-theme="light"] .custom-page h1{color:#1c382a}
html[data-theme="light"] .contact-section,html[data-theme="light"] .donation-section{color:#fff}

/* Dark theme — cover both fixed-color and variable-based sections. */
html[data-theme="dark"] body.admin-body,
html[data-theme="dark"] body.public-body,
html[data-theme="dark"] body.install-body,
html[data-theme="dark"] body.ticket-body{
  background:var(--ui-bg)!important;color:var(--ui-text)!important;
}
html[data-theme="dark"] .main-area,
html[data-theme="dark"] .content-wrap{background:var(--ui-bg);color:var(--ui-text)}
html[data-theme="dark"] .sidebar{background:#102119;border-color:#2b4035}
html[data-theme="dark"] .side-brand,
html[data-theme="dark"] .sidebar-user{border-color:#2b4035}
html[data-theme="dark"] .side-brand b,
html[data-theme="dark"] .sidebar-user b{color:#e4eee7}
html[data-theme="dark"] .sidebar-user small,
html[data-theme="dark"] .nav-label{color:#91a69a}
html[data-theme="dark"] .topbar{background:#12231b;border-color:#2c4236;color:#e7efe9}
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .icon-action,
html[data-theme="dark"] .mobile-menu{color:#c5d5cb}
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] .page-head h2,
html[data-theme="dark"] .panel h2,
html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .stat-card>b,
html[data-theme="dark"] .cash-summary b{color:#e7efe9}
html[data-theme="dark"] .page-head .muted,
html[data-theme="dark"] .panel .muted,
html[data-theme="dark"] .small-note,
html[data-theme="dark"] .tiny.muted,
html[data-theme="dark"] .stat-card small,
html[data-theme="dark"] .stat-card em,
html[data-theme="dark"] .cash-summary small{color:#9fb1a6}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .entry-panel,
html[data-theme="dark"] .install-card,
html[data-theme="dark"] .ticket-card,
html[data-theme="dark"] .backup-page .panel{background:#14241c;border-color:#2c4236;color:#e7efe9}
html[data-theme="dark"] .entry-panel{background:linear-gradient(120deg,#14271d,#172b21)}
html[data-theme="dark"] .panel-head,
html[data-theme="dark"] .admin-footer,
html[data-theme="dark"] .ticket-top{border-color:#2c4236}
html[data-theme="dark"] .admin-footer{color:#9fb1a6}
html[data-theme="dark"] .quick-grid a,
html[data-theme="dark"] .help-chips span,
html[data-theme="dark"] .activity-item,
html[data-theme="dark"] .notification-row,
html[data-theme="dark"] .cash-summary,
html[data-theme="dark"] .legend,
html[data-theme="dark"] .chart-bars{border-color:#2c4236;color:#dce8e0}
html[data-theme="dark"] .quick-grid a{background:#172a20}
html[data-theme="dark"] .quick-grid a:hover{background:#1c3828;border-color:#426b53}
html[data-theme="dark"] .activity-item small,
html[data-theme="dark"] .notification-content p,
html[data-theme="dark"] .notification-content small,
html[data-theme="dark"] .cell-sub{color:#9cafa4}
html[data-theme="dark"] .table-wrap{border-color:#2c4236}
html[data-theme="dark"] table{color:#e1ebe4}
html[data-theme="dark"] th{background:#1b3025;color:#dce8e0;border-color:#354d3f}
html[data-theme="dark"] td{background:transparent;color:#dce8e0;border-color:#2c4236}
html[data-theme="dark"] tr:hover td{background:#1a2e23}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#0f1d15;color:#e7efe9;border-color:#3a5445}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#84998d}
html[data-theme="dark"] .form-stack label,
html[data-theme="dark"] .form-grid label,
html[data-theme="dark"] .settings-form label,
html[data-theme="dark"] .contact-form label{color:#c5d5cb}
html[data-theme="dark"] .btn.outline,
html[data-theme="dark"] .theme-toggle{background:#1a3024;color:#e6efe9;border-color:#3a5445}
html[data-theme="dark"] .btn.outline:hover,
html[data-theme="dark"] .theme-toggle:hover{background:#234231;border-color:#5d866e}
html[data-theme="dark"] .notice.success{background:#173a2b;color:#c0e7cf;border-color:#2b6144}
html[data-theme="dark"] .notice.warning{background:#3b301a;color:#f0d89c;border-color:#665126}
html[data-theme="dark"] .notice.error{background:#421f20;color:#f4c1c1;border-color:#743536}
html[data-theme="dark"] .action-menu>div{background:#14241c;border-color:#31483a}
html[data-theme="dark"] .notification-row.unread{background:#172b21}
html[data-theme="dark"] .notification-icon,
html[data-theme="dark"] .avatar,
html[data-theme="dark"] .official-avatar{background:#1e3a2b;color:#b9e2c9}
html[data-theme="dark"] .empty-state{color:#a6b6ad}
html[data-theme="dark"] .status-pill{background:#26392f;color:#d0dfd5}
html[data-theme="dark"] .status-active,
html[data-theme="dark"] .status-done,
html[data-theme="dark"] .status-published,
html[data-theme="dark"] .status-paid,
html[data-theme="dark"] .approval-approved,
html[data-theme="dark"] .status-verified{background:#17412d;color:#bce8cb}
html[data-theme="dark"] .status-draft,
html[data-theme="dark"] .status-pending,
html[data-theme="dark"] .status-unread,
html[data-theme="dark"] .status-open,
html[data-theme="dark"] .approval-pending{background:#44371e;color:#f0d49a}
html[data-theme="dark"] .status-inactive,
html[data-theme="dark"] .status-cancelled,
html[data-theme="dark"] .status-archived{background:#29332e;color:#b4c1b8}
html[data-theme="dark"] .status-progress,
html[data-theme="dark"] .status-read{background:#20364b;color:#bfd7ef}
html[data-theme="dark"] .status-rejected{background:#452323;color:#ffc1bd}
html[data-theme="dark"] .audit-diff{background:#0e1c14;border-color:#344b3e;color:#dce8e0}

/* Public content surfaces and typography. */
html[data-theme="dark"] .public-header{background:rgba(15,33,24,.97);border-color:#2b4035}
html[data-theme="dark"] .public-brand b{color:#e5eee8}
html[data-theme="dark"] .public-brand small{color:#9baca2}
html[data-theme="dark"] .public-nav nav{background:#14241c;border-color:#2b4035}
html[data-theme="dark"] .public-nav nav a:not(.nav-cta){color:#d6e3db}
html[data-theme="dark"] .public-nav nav a:not(.nav-cta):hover{color:#a9d6ba}
html[data-theme="dark"] .public-theme-toggle{background:#1b3527;color:#dcebe1;border-color:#385743}
html[data-theme="dark"] .intro-strip,
html[data-theme="dark"] .section-wrap,
html[data-theme="dark"] .transparency-section{background:#101e17}
html[data-theme="dark"] .intro-grid h2,
html[data-theme="dark"] .section-heading h2{color:#e4eee7}
html[data-theme="dark"] .intro-grid h2 em{color:#d7bd83}
html[data-theme="dark"] .intro-grid>div:nth-child(2)>p,
html[data-theme="dark"] .section-heading .muted,
html[data-theme="dark"] .intro-stat span{color:#a5b7ac}
html[data-theme="dark"] .intro-stat{border-color:#30463a}
html[data-theme="dark"] .intro-stat b{color:#b8d9c3}
html[data-theme="dark"] .public-card,
html[data-theme="dark"] .transparency-grid>div,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .public-donation-form{background:#17291f;border-color:#30463a;color:#e5eee8}
html[data-theme="dark"] .public-card h3{color:#e4eee7}
html[data-theme="dark"] .public-card>p,
html[data-theme="dark"] .public-card .card-meta,
html[data-theme="dark"] .transparency-note,
html[data-theme="dark"] .campaign-report-note,
html[data-theme="dark"] .campaign-report-expense{color:#a9bbb0}
html[data-theme="dark"] .card-symbol{background:#203c2c;color:#b9e1c7}
html[data-theme="dark"] .card-meta{border-color:#2c4236}
html[data-theme="dark"] .contact-details,
html[data-theme="dark"] .contact-details a{color:#d4e1d8}
html[data-theme="dark"] .public-alert{background:#1c3a2a;border-color:#345d43;color:#c6e6ce}
html[data-theme="dark"] .custom-page{background:#101e17;color:#dce8e0}
html[data-theme="dark"] .custom-page h1,
html[data-theme="dark"] .custom-page h2,
html[data-theme="dark"] .article-detail h1{color:#e5eee8}
html[data-theme="dark"] .article-byline{color:#a2b4a9}
html[data-theme="dark"] .rich-content{color:#d4e1d8}
html[data-theme="dark"] .public-footer{background:#09150f;border-color:#263b30}
html[data-theme="dark"] .template-modern-putih .hero-section{background:linear-gradient(135deg,#132b20,#1c3c2d);color:#e6eee9}
html[data-theme="dark"] .template-modern-putih .hero-copy h1{color:#edf5ef}
html[data-theme="dark"] .template-modern-putih .hero-copy>p,
html[data-theme="dark"] .template-modern-putih .hero-trust{color:#b4c9bb}
html[data-theme="dark"] .template-modern-putih .hero-bottom{background:#102219;border-color:#2b4036}
html[data-theme="dark"] .template-modern-putih .hero-bottom-inner{color:#c0d3c6}
html[data-theme="dark"] .template-klasik-islami .section-wrap{background:#101e17}

/* Light theme for login and backup utility pages. */
html[data-theme="light"] .install-body{background:radial-gradient(circle at 10% 0%,#e7f4ec,transparent 35%),#f5f8f5}
html[data-theme="light"] .backup-page{color:#20352a}
html[data-theme="light"] .backup-page .panel{background:#fff;color:#20352a}

/* TV light theme and matching control treatment. */
html[data-theme="light"] body.tv-body{background:#edf3ee;color:#17372a}
html[data-theme="light"] .tv-screen{background:radial-gradient(ellipse at 16% 6%,#dcefe2 0%,transparent 40%),radial-gradient(ellipse at 88% 80%,#d8eadf 0%,transparent 36%),#f4f8f4}
html[data-theme="light"] .tv-header,html[data-theme="light"] .tv-footer{border-color:#d5e2d8}
html[data-theme="light"] .tv-brand small,html[data-theme="light"] .tv-clock span,html[data-theme="light"] .tv-footer,html[data-theme="light"] .tv-footer span:last-child{color:#647d6d}
html[data-theme="light"] .tv-clock b,html[data-theme="light"] .tv-section-head h1,html[data-theme="light"] .tv-section-head h2,html[data-theme="light"] .tv-slide h3{color:#183b2a}
html[data-theme="light"] .tv-prayer,html[data-theme="light"] .tv-announcements{background:#ffffffd9;border-color:#dbe7de;color:#244332}
html[data-theme="light"] .next-prayer small,html[data-theme="light"] .tv-prayer .tv-footnote,html[data-theme="light"] .tv-slide p{color:#627b6b}
html[data-theme="light"] .next-prayer b{color:#8d6b2f}
html[data-theme="light"] .next-prayer span{color:#1b6847}
html[data-theme="light"] .prayer-cell{background:#f2f7f3;border-color:#dbe7de;color:#183b2a}
html[data-theme="light"] .prayer-cell small{color:#708778}
html[data-theme="light"] .tv-kicker,html[data-theme="light"] .tv-slide>small{color:#96743a}
html[data-theme="light"] .tv-theme-toggle{background:#e8f1ea;color:#254b36;border-color:#ccdcd0}
html[data-theme="light"] .tv-fullscreen-btn{background:#f4ead1;color:#684f21;border-color:#dfc98d}
html[data-theme="light"] .tv-theme-toggle:hover,html[data-theme="light"] .tv-fullscreen-btn:hover{background:#dcebe0;color:#254b36}
html[data-theme="dark"] .tv-theme-toggle{background:#172a20;color:#e3eee7;border-color:#385044}
html[data-theme="dark"] .tv-fullscreen-btn{background:#3a3020;color:#f2dfb0;border-color:#6b5933}

@media(max-width:800px){
  .top-actions{gap:8px}
  .top-actions .theme-toggle{min-width:36px;padding:7px 9px}
  .public-nav nav{gap:9px}
  .tv-screen{padding:20px 18px}
  .tv-header{gap:12px;align-items:flex-start}
  .tv-display-controls{gap:6px}
}
@media(max-width:560px){
  .back-to-top{right:15px;left:auto;bottom:16px;width:42px;height:42px}
  .public-theme-toggle{width:auto;margin:5px 0;padding:8px 12px}
  .public-nav nav.open .theme-toggle{display:inline-flex;justify-content:center}
  .tv-header{flex-direction:column;align-items:stretch}
  .tv-clock{align-items:flex-start;text-align:left}
  .tv-display-controls{justify-content:flex-start;margin-top:6px}
  .tv-display-controls .tv-control-btn{min-height:34px;padding:7px 10px;font-size:9px}
  .tv-fullscreen .tv-screen{overflow:auto;height:auto;min-height:100vh}
}
@media(prefers-reduced-motion:reduce){
  .theme-toggle,.tv-control-btn,.back-to-top{transition:none}
  html{scroll-behavior:auto}
}
