/* Resident Portal 2026 - theme preferences and premium dark mode */
.theme-selector{display:grid;gap:8px}
.theme-selector-copy{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.theme-selector-copy strong,.theme-selector-copy span{display:block}
.theme-selector-copy strong{font-size:12px;color:var(--jmb-text)}
.theme-selector-copy span{margin-top:2px;font-size:10px;color:var(--jmb-muted)}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;border:1px solid #dce6f0;border-radius:14px;background:#f3f7fb}
.theme-option{min-height:38px;padding:0 9px;border:0;border-radius:10px;background:transparent;color:#607089;font-size:11px;font-weight:850;cursor:pointer}
.theme-option.active{background:#fff;color:#176fd1;box-shadow:0 4px 12px rgba(22,61,98,.10)}
.theme-settings-card{margin-bottom:12px}
.theme-settings-card .theme-selector-copy strong{font-size:14px}
.theme-settings-card .theme-selector-copy span{font-size:11px}
html[data-theme="dark"]{color-scheme:dark;--jmb-bg:#071421;--jmb-surface:#102136;--jmb-text:#eef6ff;--jmb-muted:#9db0c5;--jmb-line:rgba(157,190,224,.17);--jmb-danger:#ff637d;--jmb-warning:#ffd069;--jmb-success:#41d3aa;--jmb-shadow:0 16px 38px rgba(0,0,0,.28)}
html[data-theme="dark"] body.resident-v3,html[data-theme="dark"] body.resident-auth{background:radial-gradient(circle at 80% -10%,rgba(29,112,209,.13),transparent 28rem),linear-gradient(180deg,#071421 0%,#081725 100%);color:var(--jmb-text)}
html[data-theme="dark"] .muted{color:var(--jmb-muted)}
html[data-theme="dark"] .eyebrow{color:#67adff}
html[data-theme="dark"] .theme-options{border-color:rgba(145,188,230,.18);background:rgba(255,255,255,.045)}
html[data-theme="dark"] .theme-option{color:#9fb3c8}
html[data-theme="dark"] .theme-option.active{background:linear-gradient(145deg,#eef7ff,#dcecff);color:#1268c4;box-shadow:0 5px 16px rgba(0,0,0,.24)}
html[data-theme="dark"] .resident-sidebar{background:linear-gradient(180deg,rgba(13,31,50,.98),rgba(8,23,38,.98));border-right-color:rgba(145,188,230,.13);box-shadow:10px 0 34px rgba(0,0,0,.20)}
html[data-theme="dark"] .sidebar-brand{border-bottom-color:rgba(145,188,230,.12)}
html[data-theme="dark"] .sidebar-brand strong{color:#edf6ff}
html[data-theme="dark"] .sidebar-brand span{color:#8fa4ba}
html[data-theme="dark"] .nav-link{color:#a8b9ca}
html[data-theme="dark"] .nav-link:hover{background:rgba(72,128,188,.10);color:#e8f4ff}
html[data-theme="dark"] .nav-link.active{background:linear-gradient(135deg,#0878e9,#2b8fee);color:#fff}
html[data-theme="dark"] .nav-icon{color:#8da6bf}
html[data-theme="dark"] .logout-link{border-color:rgba(255,110,130,.18);background:rgba(120,27,44,.10);color:#ff8ba0}
html[data-theme="dark"] .resident-topbar{background:rgba(7,20,33,.82);border-bottom-color:rgba(145,188,230,.15);box-shadow:0 8px 28px rgba(0,0,0,.14);-webkit-backdrop-filter:blur(20px) saturate(1.15);backdrop-filter:blur(20px) saturate(1.15)}
html[data-theme="dark"] .topbar-copy strong{color:#f3f8ff}
html[data-theme="dark"] .topbar-copy span{color:#91a6bb}
html[data-theme="dark"] .unit-pill{border-color:rgba(143,188,232,.20);background:rgba(18,39,62,.72);color:#f0f7ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html[data-theme="dark"] .bottom-nav{border-color:rgba(145,188,230,.16)!important;background:rgba(10,27,44,.92)!important;box-shadow:0 14px 38px rgba(0,0,0,.34)!important;-webkit-backdrop-filter:blur(22px) saturate(1.15);backdrop-filter:blur(22px) saturate(1.15)}
html[data-theme="dark"] .bottom-nav a,html[data-theme="dark"] .bottom-nav button{color:#8da6bf}
html[data-theme="dark"] .bottom-nav .active{color:#61adff}
html[data-theme="dark"] .bottom-nav-count{border-color:#0a1b2c}
html[data-theme="dark"] :is(.panel,.account-panel,.content-card,.form-card-v3,.complaint-card-v3,.directory-search,.directory-section,.directory-card){border-color:rgba(145,188,230,.16);background:linear-gradient(145deg,rgba(18,38,60,.88),rgba(10,27,45,.82));box-shadow:0 14px 34px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.03);-webkit-backdrop-filter:blur(18px) saturate(1.08);backdrop-filter:blur(18px) saturate(1.08)}
html[data-theme="dark"] .empty-state{border-color:rgba(145,188,230,.18);background:rgba(255,255,255,.025);color:#93a8bc}
html[data-theme="dark"] .info-banner{border-color:rgba(91,171,245,.24);background:rgba(24,101,174,.12);color:#9fd0ff}
html[data-theme="dark"] .content-card p,html[data-theme="dark"] .form-intro p,html[data-theme="dark"] .complaint-card-v3 p{color:#9cafc2}
html[data-theme="dark"] .content-meta span{background:rgba(255,255,255,.055);color:#a7bacd}
html[data-theme="dark"] :is(.form-card-v3,.pin-form) label{color:#b8c8d8}
html[data-theme="dark"] :is(.form-card-v3 input,.form-card-v3 select,.form-card-v3 textarea,.pin-form input){border-color:rgba(145,188,230,.20);background:rgba(4,16,28,.58);color:#f0f6fc;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
html[data-theme="dark"] :is(.form-card-v3 input,.form-card-v3 select,.form-card-v3 textarea,.pin-form input):focus{border-color:#4d9bf0;background:rgba(5,20,35,.78);box-shadow:0 0 0 4px rgba(52,139,234,.12)}
html[data-theme="dark"] .record-row{border-bottom-color:rgba(145,188,230,.12)}
html[data-theme="dark"] .status-chip{background:rgba(127,157,192,.12)!important;color:#aebfd0!important}
html[data-theme="dark"] .status-posted,html[data-theme="dark"] .status-approved{background:rgba(50,190,139,.13)!important;color:#76e2bc!important}
html[data-theme="dark"] .status-pending{background:rgba(216,160,43,.12)!important;color:#ffd477!important}
html[data-theme="dark"] .status-rejected,html[data-theme="dark"] .status-void{background:rgba(222,70,95,.12)!important;color:#ff8ba0!important}
html[data-theme="dark"] .online-payment-dialog{border-color:rgba(145,188,230,.18);background:linear-gradient(145deg,#10243a,#0a1b2d);color:#edf6ff;box-shadow:0 28px 76px rgba(0,0,0,.46)}
html[data-theme="dark"] .online-payment-dialog h2{color:#eef7ff}
html[data-theme="dark"] .online-payment-dialog p:not(.eyebrow){color:#a4b6c9}
html[data-theme="dark"] .online-payment-close{background:rgba(255,255,255,.06);color:#b5c7d8}
html[data-theme="dark"] .soa-hero{background:linear-gradient(145deg,#064e9f 0%,#087bea 56%,#1767d8 100%);border:1px solid rgba(105,179,255,.26);box-shadow:0 18px 42px rgba(0,78,168,.28)}
html[data-theme="dark"] .soa-download{background:linear-gradient(145deg,#f7fbff,#e8f3ff);color:#0b3f7a;box-shadow:0 8px 20px rgba(0,0,0,.16)}
html[data-theme="dark"] .soa-summary article{border-color:rgba(145,188,230,.17);background:linear-gradient(145deg,rgba(20,42,66,.90),rgba(11,29,48,.84));box-shadow:0 14px 34px rgba(0,0,0,.19)}
html[data-theme="dark"] .soa-summary strong{color:#f3f8ff}
html[data-theme="dark"] .soa-facts div{background:rgba(255,255,255,.04)}
html[data-theme="dark"] .soa-insurance-grid article{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.035)}
html[data-theme="dark"] .soa-table-wrap{border-color:rgba(145,188,230,.15)}
html[data-theme="dark"] .soa-table{background:#0d2034}
html[data-theme="dark"] .soa-table th{background:#10283f;color:#9eb2c6}
html[data-theme="dark"] .soa-table th,html[data-theme="dark"] .soa-table td{border-bottom-color:rgba(145,188,230,.11)}
html[data-theme="dark"] .soa-mobile-tabs{border-color:rgba(95,164,233,.20);background:rgba(31,96,163,.12);box-shadow:none}
html[data-theme="dark"] .soa-mobile-tab{color:#9fb4c9}
html[data-theme="dark"] .soa-mobile-tab.active{background:linear-gradient(135deg,#0878e9,#2b8fee);color:#fff}
html[data-theme="dark"] .water-app-visual{background:linear-gradient(155deg,#0759b4 0%,#176fd1 48%,#4c67da 100%);border:1px solid rgba(104,175,255,.24);box-shadow:0 16px 38px rgba(0,66,147,.30)}
html[data-theme="dark"] .water-app-bar-value{background:rgba(4,37,94,.58)}
html[data-theme="dark"] .water-app-due{border-color:rgba(145,188,230,.17);background:linear-gradient(145deg,rgba(20,42,65,.90),rgba(10,27,45,.86));box-shadow:0 16px 34px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);-webkit-backdrop-filter:blur(18px) saturate(1.08);backdrop-filter:blur(18px) saturate(1.08)}
html[data-theme="dark"] .water-app-due-main span{color:#9fb2c5}
html[data-theme="dark"] .water-app-due-main strong{color:#f5f9ff}
html[data-theme="dark"] .water-app-breakdown div{background:rgba(255,255,255,.045);border:1px solid rgba(145,188,230,.08)}
html[data-theme="dark"] .water-app-breakdown span{color:#91a7bd}
html[data-theme="dark"] .water-app-breakdown strong{color:#eef6ff}
html[data-theme="dark"] .water-app-actions a{border-color:rgba(145,188,230,.18);background:rgba(255,255,255,.045);color:#71b6ff}
html[data-theme="dark"] .water-app-actions a:last-child{border-color:#2383e8;background:linear-gradient(135deg,#0878e9,#2b8fee);color:#fff}
html[data-theme="dark"] .water-app-history-head strong{color:#eef6ff}
html[data-theme="dark"] .water-app-history-head small{background:rgba(45,130,220,.14);color:#77b9ff}
html[data-theme="dark"] .water-history-tap-hint{border-color:rgba(94,163,232,.18);background:rgba(28,91,151,.12);color:#8bc5ff}
html[data-theme="dark"] .water-history-tap-hint>span{background:rgba(43,133,225,.16);color:#79bcff}
html[data-theme="dark"] .water-row-open-cue{background:rgba(43,133,225,.14);color:#79bcff}
html[data-theme="dark"] .water-year-row td{background:transparent!important}
html[data-theme="dark"] .water-year-toggle{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.035);color:#e7f1fb}
html[data-theme="dark"] .water-year-meta{color:#91a6bb}
html[data-theme="dark"] .water-history-clickable:active td{background:rgba(53,130,211,.09)}
html[data-theme="dark"] .water-history-clickable td:first-child{color:#e5eef8}
html[data-theme="dark"] body.resident-home26{background:#071421}
html[data-theme="dark"] .home26{color:#eef6ff}
html[data-theme="dark"] body.resident-home26 .home26-brand{border-color:rgba(161,201,241,.20)!important;background:linear-gradient(145deg,rgba(13,31,49,.84),rgba(8,23,38,.74))!important;box-shadow:0 14px 36px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04)!important;-webkit-backdrop-filter:blur(22px) saturate(1.16)!important;backdrop-filter:blur(22px) saturate(1.16)!important}
html[data-theme="dark"] .home26-brand-copy strong{color:#f2f8ff!important}
html[data-theme="dark"] .home26-brand-copy span{color:#9fb1c4!important}
html[data-theme="dark"] .home26-brand-logo{border-color:rgba(255,255,255,.14)!important;background:rgba(255,255,255,.92)!important}
html[data-theme="dark"] .home26-unit-pill{border-color:rgba(151,195,238,.18)!important;background:rgba(14,36,57,.74)!important;color:#eef7ff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important}
html[data-theme="dark"] .home26-body{background:linear-gradient(180deg,rgba(8,23,38,.98),rgba(7,20,33,.985))!important;box-shadow:0 20px 48px rgba(0,0,0,.28)!important}
html[data-theme="dark"] :is(.home26-balance,.home26-shortcut,.home26-announcement,.home26-detail,.home26-transactions){border-color:rgba(145,188,230,.15)!important;background:linear-gradient(145deg,rgba(18,39,61,.86),rgba(10,28,46,.80))!important;box-shadow:0 10px 28px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.025)!important;-webkit-backdrop-filter:blur(16px) saturate(1.06);backdrop-filter:blur(16px) saturate(1.06)}
html[data-theme="dark"] :is(.home26-balance-copy strong,.home26-shortcut strong,.home26-section-title strong,.home26-announcement-copy strong,.home26-detail strong){color:#eef6ff!important}
html[data-theme="dark"] :is(.home26-balance-copy span,.home26-balance-copy small,.home26-announcement-copy span,.home26-announcement-copy small,.home26-detail span,.home26-detail small){color:#98adc1!important}
html[data-theme="dark"] .home26-balance-icon,html[data-theme="dark"] .home26-shortcut-icon,html[data-theme="dark"] .home26-section-icon{background:rgba(40,133,230,.13)!important;color:#67b1ff!important}
html[data-theme="dark"] .home26-section-head{border-bottom-color:rgba(145,188,230,.11)}
html[data-theme="dark"] .home26-announcement-thumb{border-color:rgba(77,164,245,.16);background:rgba(32,125,214,.10);color:#67b7ff}
html[data-theme="dark"] .home26-chat-label{background:rgba(9,26,43,.94);color:#dcecff;box-shadow:0 5px 16px rgba(0,0,0,.24)}
html[data-theme="dark"] .home26-pay.disabled,html[data-theme="dark"] .home26-balance.is-clear .home26-pay.disabled{background:rgba(255,255,255,.055);color:#90a4b9}
html[data-theme="dark"] .resident-more-sheet{border-color:rgba(145,188,230,.17);background:rgba(9,25,41,.96);box-shadow:0 28px 80px rgba(0,0,0,.48);-webkit-backdrop-filter:blur(24px) saturate(1.12);backdrop-filter:blur(24px) saturate(1.12)}
html[data-theme="dark"] .more-sheet-handle{background:#40566d}
html[data-theme="dark"] .more-sheet-head h2{color:#eef6ff}
html[data-theme="dark"] .more-sheet-head>div>span{color:#91a6bb}
html[data-theme="dark"] .more-sheet-close{border-color:rgba(145,188,230,.14);background:rgba(255,255,255,.045);color:#a9bfd4}
html[data-theme="dark"] .more-sheet-item{border-color:rgba(145,188,230,.13);background:linear-gradient(180deg,rgba(22,43,66,.72),rgba(13,31,50,.72));color:#c1d0df;box-shadow:0 6px 18px rgba(0,0,0,.14)}
html[data-theme="dark"] .more-sheet-icon{background:rgba(42,136,231,.13);color:#6cb5ff}
html[data-theme="dark"] .more-sheet-item.active{border-color:rgba(75,159,242,.28);background:linear-gradient(145deg,rgba(18,104,190,.20),rgba(24,82,145,.18));color:#79bcff}
html[data-theme="dark"] .more-sheet-item.active .more-sheet-icon{background:rgba(255,255,255,.06);box-shadow:none}
html[data-theme="dark"] .more-sheet-logout{border-color:rgba(255,106,126,.18);background:rgba(114,30,45,.12);color:#ff8ca0}
html[data-theme="dark"] .more-sheet-logout .more-sheet-icon{background:rgba(222,66,91,.13);color:#ff7d93}
html[data-theme="dark"] .agm-meta-grid article,html[data-theme="dark"] .agm-status-card,html[data-theme="dark"] .agm-debt-grid article{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.035);box-shadow:none}
html[data-theme="dark"] .agm-status-card.success{border-color:rgba(66,206,157,.22);background:rgba(29,132,94,.09)}
html[data-theme="dark"] .agm-status-card.warning{border-color:rgba(255,197,77,.22);background:rgba(151,105,18,.09)}
html[data-theme="dark"] .agm-status-card.danger{border-color:rgba(255,99,125,.22);background:rgba(153,38,57,.09)}
html[data-theme="dark"] .agm-debt-grid .due{border-color:rgba(255,99,125,.22);background:rgba(153,38,57,.08)}
html[data-theme="dark"] .agm-secondary-link,html[data-theme="dark"] .agm-qr-wrap{border-color:rgba(145,188,230,.16);background:rgba(255,255,255,.045);color:#ddecfb}
html[data-theme="dark"] .agm-pass-copy strong{color:#eef7ff}
html[data-theme="dark"] .directory-categories a{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.035);color:#a7bbce}
html[data-theme="dark"] .primary-action{background:linear-gradient(145deg,#f5faff,#e7f2ff);color:#0d447f}
html[data-theme="dark"] .offline-snapshot-notice{background:rgba(148,94,12,.13);border-color:rgba(255,191,77,.18);color:#ffd37b}
html[data-theme="dark"] .chat-push-card{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.04);box-shadow:none}
html[data-theme="dark"] .account-notice.error,html[data-theme="dark"] .notice-v3.error{border-color:rgba(255,99,125,.22);background:rgba(154,36,56,.10);color:#ff98aa}
html[data-theme="dark"] .account-notice.success,html[data-theme="dark"] .notice-v3.success{border-color:rgba(65,211,170,.20);background:rgba(31,132,98,.10);color:#7be3bf}
html[data-theme="dark"] .status-v3{background:rgba(127,157,192,.12);color:#b5c5d5}
html[data-theme="dark"] .status-v3.selesai,html[data-theme="dark"] .status-v3.ditutup{background:rgba(50,190,139,.13);color:#76e2bc}
html[data-theme="dark"] .status-v3.dalam_semakan,html[data-theme="dark"] .status-v3.dalam_tindakan{background:rgba(216,160,43,.12);color:#ffd477}
html[data-theme="dark"] .content-meta .priority.penting,html[data-theme="dark"] .content-meta .priority.segera{background:rgba(211,153,36,.13);color:#ffd16c}
html[data-theme="dark"] ::selection{background:rgba(71,154,240,.32);color:#fff}
@media(max-width:600px){
  .theme-options{border-radius:12px}
  .theme-option{min-height:36px;font-size:10px}
  html[data-theme="dark"] .record-row{border-color:rgba(145,188,230,.12);background:rgba(255,255,255,.03)}
  html[data-theme="dark"] .pin-form::before{background:rgba(47,137,230,.13);color:#73b9ff}
}
@media(prefers-reduced-motion:reduce){.theme-option{transition:none!important}}
.more-sheet-theme{margin:-2px 0 12px;padding:10px;border:1px solid #e4ebf2;border-radius:16px;background:#f8fbfe}
html[data-theme="dark"] .more-sheet-theme{border-color:rgba(145,188,230,.13);background:rgba(255,255,255,.03)}
html[data-theme="dark"] .auth-brand h1{color:#eef7ff}
html[data-theme="dark"] .auth-panel{border-color:rgba(145,188,230,.17);background:linear-gradient(145deg,rgba(18,39,61,.92),rgba(9,26,43,.90));box-shadow:0 24px 64px rgba(0,0,0,.34)}
html[data-theme="dark"] .auth-panel label{color:#b9c9d9}
html[data-theme="dark"] .auth-panel input{border-color:rgba(145,188,230,.20);background:rgba(4,16,28,.58);color:#f0f6fc}
html[data-theme="dark"] .auth-panel input:focus{border-color:#4d9bf0;box-shadow:0 0 0 4px rgba(52,139,234,.12)}
html[data-theme="dark"] .auth-secondary{border-color:rgba(145,188,230,.17);background:rgba(255,255,255,.04);color:#d9eaff}
html[data-theme="dark"] .auth-notice.error{border-color:rgba(255,99,125,.22);background:rgba(154,36,56,.10);color:#ff98aa}
html[data-theme="dark"] .auth-notice.success{border-color:rgba(65,211,170,.20);background:rgba(31,132,98,.10);color:#7be3bf}
@media(max-width:780px){
  html[data-theme="dark"] body.resident-auth{background:#071421}
  html[data-theme="dark"] .auth-panel{border-top:1px solid rgba(145,188,230,.12);background:linear-gradient(180deg,#0c2034,#071421);box-shadow:0 -14px 34px rgba(0,0,0,.24)}
}

/* Dark coverage: dashboard, chat, payments and resident detail screens */
html[data-theme="dark"] .dashboard-title-row h1,
html[data-theme="dark"] .dashboard-intro .owner-name,
html[data-theme="dark"] .dashboard-date-card strong,
html[data-theme="dark"] .dashboard-primary-actions strong,
html[data-theme="dark"] .account-card strong{color:#eef6ff}
html[data-theme="dark"] .dashboard-unit-badge{border-color:rgba(94,169,243,.20);background:rgba(35,124,217,.13);color:#76baff}
html[data-theme="dark"] .dashboard-date-card,
html[data-theme="dark"] .dashboard-primary-actions>a,
html[data-theme="dark"] .account-card{border-color:rgba(145,188,230,.15);background:linear-gradient(145deg,rgba(18,39,61,.86),rgba(10,28,46,.80));box-shadow:0 10px 28px rgba(0,0,0,.16)}
html[data-theme="dark"] .dashboard-primary-actions .action-icon,
html[data-theme="dark"] .account-card .card-icon,
html[data-theme="dark"] .activity-icon{background:rgba(40,133,230,.13);color:#6db6ff}
html[data-theme="dark"] .account-card.danger .card-icon{background:rgba(222,70,95,.12);color:#ff8297}
html[data-theme="dark"] .account-card.warning .card-icon{background:rgba(216,160,43,.12);color:#ffd477}
html[data-theme="dark"] .account-card.success .card-icon{background:rgba(50,190,139,.12);color:#73deb9}
html[data-theme="dark"] .activity-row,
html[data-theme="dark"] .announcement-row{border-bottom-color:rgba(145,188,230,.10)}
html[data-theme="dark"] .install-card{border-color:rgba(92,166,240,.18);background:rgba(28,105,184,.10)}
html[data-theme="dark"] .hero-status-chip{border-color:rgba(255,255,255,.18);background:rgba(7,26,46,.66);color:#fff}

html[data-theme="dark"] .chat-page-head h1,
html[data-theme="dark"] .chat-list-head h2,
html[data-theme="dark"] .chat-new-card summary strong,
html[data-theme="dark"] .chat-thread-title-row strong,
html[data-theme="dark"] .chat-empty-state strong,
html[data-theme="dark"] .chat-conversation-title strong{color:#eef6ff}
html[data-theme="dark"] .chat-page-head p,
html[data-theme="dark"] .chat-new-card summary small,
html[data-theme="dark"] .chat-thread-preview,
html[data-theme="dark"] .chat-conversation-title span{color:#96aabd}
html[data-theme="dark"] .chat-new-card,
html[data-theme="dark"] .chat-thread-card,
html[data-theme="dark"] .chat-empty-state,
html[data-theme="dark"] .chat-conversation-head,
html[data-theme="dark"] .chat-push-card{border-color:rgba(145,188,230,.15);background:linear-gradient(145deg,rgba(18,39,61,.88),rgba(10,28,46,.82));box-shadow:0 10px 28px rgba(0,0,0,.16)}
html[data-theme="dark"] .chat-new-icon,
html[data-theme="dark"] .chat-thread-icon,
html[data-theme="dark"] .chat-empty-icon,
html[data-theme="dark"] .chat-push-icon{background:rgba(40,133,230,.13);color:#6db6ff}
html[data-theme="dark"] .chat-new-form label>span{color:#b9c9d8}
html[data-theme="dark"] .chat-new-form input,
html[data-theme="dark"] .chat-new-form select,
html[data-theme="dark"] .chat-new-form textarea{border-color:rgba(145,188,230,.18);background:rgba(4,16,28,.54);color:#eef6ff}
html[data-theme="dark"] .chat-unread-summary{background:rgba(41,133,226,.13);color:#78bcff}
html[data-theme="dark"] .chat-status{background:rgba(255,255,255,.055);color:#a8bacb}
html[data-theme="dark"] .chat-status.is-baru{background:rgba(41,133,226,.13);color:#76baff}
html[data-theme="dark"] .chat-status.is-dalam-tindakan,
html[data-theme="dark"] .chat-status.is-selesai{background:rgba(50,190,139,.12);color:#73deb9}
html[data-theme="dark"] .chat-status.is-ditutup{background:rgba(151,169,190,.10);color:#9eafc0}
html[data-theme="dark"] .chat-back{background:rgba(255,255,255,.055);color:#d9e8f7}
html[data-theme="dark"] .chat-linked-complaint{background:rgba(40,133,230,.10);color:#9bc8f4}
html[data-theme="dark"] .chat-message-avatar{border-color:rgba(145,188,230,.15);background:#10243a;color:#ff889c}
html[data-theme="dark"] .chat-message-bubble{border-color:rgba(145,188,230,.14);background:#10243a;color:#eef6ff;box-shadow:0 5px 16px rgba(0,0,0,.15)}
html[data-theme="dark"] .chat-message-row.is-resident .chat-message-bubble{border-color:rgba(66,155,242,.25);background:linear-gradient(145deg,#0f4e83,#135f9e)}
html[data-theme="dark"] .chat-message-time{color:#8fa3b7}
html[data-theme="dark"] .chat-message-row.is-resident .chat-message-time span{color:#9fd1ff}
html[data-theme="dark"] .chat-reply-bar{border-color:rgba(145,188,230,.16);background:rgba(9,27,45,.92);box-shadow:0 12px 34px rgba(0,0,0,.28);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
html[data-theme="dark"] .chat-reply-bar textarea{color:#eef6ff}
html[data-theme="dark"] .chat-closed-note{background:rgba(255,255,255,.045);color:#9fb1c3}
html[data-theme="dark"] .chat-typing-indicator{background:rgba(40,133,230,.12);color:#9fc2e4}
html[data-theme="dark"] .chat-alert-error{border-color:rgba(255,99,125,.22);background:rgba(154,36,56,.10);color:#ff98aa}

html[data-theme="dark"] .resident-payment-v3 .card{border-color:rgba(145,188,230,.16)!important;background:linear-gradient(145deg,rgba(18,39,61,.90),rgba(10,28,46,.84))!important;box-shadow:0 14px 34px rgba(0,0,0,.20)!important}
html[data-theme="dark"] .resident-payment-v3 .unit-summary{border-color:rgba(88,163,238,.20)!important;border-left-color:#3c97ef!important;background:rgba(36,119,202,.10)!important;color:#eef6ff!important}
html[data-theme="dark"] .resident-payment-v3 label{color:#b8c8d8!important}
html[data-theme="dark"] .resident-payment-v3 input,
html[data-theme="dark"] .resident-payment-v3 select,
html[data-theme="dark"] .resident-payment-v3 textarea{border-color:rgba(145,188,230,.20)!important;background:rgba(4,16,28,.58)!important;color:#f0f6fc!important}
html[data-theme="dark"] .resident-payment-v3 input[readonly]{background:rgba(255,255,255,.035)!important}
html[data-theme="dark"] .resident-payment-v3 .test-mode-banner{border-color:rgba(255,99,125,.22)!important;border-left-color:#ff637d!important;background:rgba(154,36,56,.10)!important;color:#ff9aac!important}
html[data-theme="dark"] .resident-payment-v3 .success-box{border-color:rgba(65,211,170,.20)!important;background:rgba(31,132,98,.09)!important}
html[data-theme="dark"] .resident-payment-v3 .reference-no{color:#eef6ff!important}

html[data-theme="dark"] .water-bill-detail-card{border-color:rgba(145,188,230,.16);background:linear-gradient(145deg,rgba(18,39,61,.88),rgba(10,28,46,.82));box-shadow:0 12px 30px rgba(0,0,0,.18)}
html[data-theme="dark"] .water-bill-section-title strong,
html[data-theme="dark"] .water-bill-meter-grid strong,
html[data-theme="dark"] .water-bill-charge-list strong,
html[data-theme="dark"] .water-bill-total strong{color:#eef6ff}
html[data-theme="dark"] .water-bill-meter-grid article{background:rgba(255,255,255,.045);border:1px solid rgba(145,188,230,.07)}
html[data-theme="dark"] .water-bill-meter-grid span,
html[data-theme="dark"] .water-bill-charge-list span,
html[data-theme="dark"] .water-bill-formula{color:#94a8bc}
html[data-theme="dark"] .water-bill-charge-list>div{border-bottom-color:rgba(145,188,230,.10)}
html[data-theme="dark"] .water-bill-charge-list .payment strong{color:#6fddb7}
html[data-theme="dark"] .water-bill-total{border:1px solid rgba(92,166,240,.12);background:rgba(35,124,217,.10)}
html[data-theme="dark"] .water-bill-total span{color:#a9bbcc}
html[data-theme="dark"] .water-bill-detail-actions a{border-color:rgba(145,188,230,.18);background:rgba(255,255,255,.045);color:#76baff}
html[data-theme="dark"] .water-bill-detail-actions a.primary{border-color:#2383e8;background:linear-gradient(135deg,#0878e9,#2b8fee);color:#fff}

html[data-theme="dark"] .water-motion-panel{border-color:rgba(145,188,230,.16);background:linear-gradient(145deg,rgba(18,39,61,.90),rgba(10,28,46,.84));box-shadow:0 15px 36px rgba(0,0,0,.20)}
html[data-theme="dark"] .water-orb{border-color:#203c56;background:linear-gradient(180deg,#122a42,#0d2034);box-shadow:inset 0 0 0 1px rgba(93,172,236,.12),0 12px 30px rgba(0,0,0,.22)}
html[data-theme="dark"] .water-orb::after{border-color:rgba(255,255,255,.16)}
html[data-theme="dark"] .water-orb-reading{color:#edf7ff;text-shadow:none}
html[data-theme="dark"] .water-orb-icon{background:rgba(255,255,255,.10);color:#79c3ff}
html[data-theme="dark"] .water-orb-reading>span:last-child,
html[data-theme="dark"] .water-orb-caption span{color:#9aafc2}
html[data-theme="dark"] .water-orb-caption strong,
html[data-theme="dark"] .water-motion-heading h1,
html[data-theme="dark"] .water-motion-chip strong,
html[data-theme="dark"] .water-live-chart-head h2{color:#eef6ff}
html[data-theme="dark"] .water-motion-heading>a{border-color:rgba(145,188,230,.17);background:rgba(255,255,255,.045);color:#78bcff}
html[data-theme="dark"] .water-motion-chip{border-color:rgba(145,188,230,.13);background:rgba(255,255,255,.035)}
html[data-theme="dark"] .water-motion-chip span,
html[data-theme="dark"] .water-motion-chip small,
html[data-theme="dark"] .water-average-legend,
html[data-theme="dark"] .water-live-chart-labels span{color:#97abbe}
html[data-theme="dark"] .water-motion-highest{background:rgba(40,133,230,.11)}
html[data-theme="dark"] .water-motion-highest span,
html[data-theme="dark"] .water-motion-highest small{color:#9bb0c4}
html[data-theme="dark"] .water-motion-highest strong{color:#78bdff}
html[data-theme="dark"] .water-motion-divider{background:rgba(145,188,230,.10)}
html[data-theme="dark"] .water-trend-point circle{fill:#102a43;stroke:#55aaf0}
html[data-theme="dark"] .water-trend-point text{fill:#a8c6df;stroke:rgba(7,20,33,.94)}
html[data-theme="dark"] .water-trend-point.is-latest circle{fill:#268ed9;stroke:#dcefff}
html[data-theme="dark"] .water-trend-point.is-latest text{fill:#77c2ff}
html[data-theme="dark"] .water-year{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.025)}
html[data-theme="dark"] .water-year summary{background:rgba(255,255,255,.035)}
html[data-theme="dark"] .water-year summary strong{color:#e8f2fb}
html[data-theme="dark"] .water-history-table th,
html[data-theme="dark"] .water-history-table td{border-top-color:rgba(145,188,230,.10)}
html[data-theme="dark"] .water-history-table th{background:rgba(255,255,255,.03);color:#9fb2c4}
html[data-theme="dark"] .water-usage-count{background:rgba(40,133,230,.13);color:#78bcff}
html[data-theme="dark"] .water-history-mobile-row{border-top-color:rgba(145,188,230,.10);background:transparent}
html[data-theme="dark"] .water-history-mobile-main strong,
html[data-theme="dark"] .water-history-mobile-main>span{color:#e6f0fa}
html[data-theme="dark"] .water-history-mobile-meta{color:#8fa4b8}
html[data-theme="dark"] .water-history-mobile-meta b{color:#afc0d0}

html[data-theme="dark"] .notification-intro{background:rgba(1,10,20,.58)}
html[data-theme="dark"] .notification-intro-sheet{border-color:rgba(145,188,230,.17);background:linear-gradient(145deg,rgba(18,39,61,.98),rgba(9,26,43,.98));box-shadow:0 28px 80px rgba(0,0,0,.48)}
html[data-theme="dark"] .notification-intro-icon{background:rgba(40,133,230,.13);color:#6db6ff}
html[data-theme="dark"] .notification-intro-copy h2{color:#eef6ff}
html[data-theme="dark"] .notification-intro-copy p{color:#9eb1c4}
html[data-theme="dark"] .notification-intro-actions .is-secondary{background:rgba(255,255,255,.06);color:#b4c6d7}
html[data-theme="dark"] .resident-offline-status{border-color:rgba(255,191,77,.20);background:rgba(148,94,12,.12);color:#e0c18b}
html[data-theme="dark"] .resident-offline-status strong{color:#ffd17a}
html[data-theme="dark"] .chat-push-copy strong{color:#eaf4fd}
html[data-theme="dark"] .chat-push-copy span{color:#97aabd}
html[data-theme="dark"] .chat-push-card button:disabled{background:rgba(255,255,255,.06);color:#91a7bc}
html[data-theme="dark"] .chat-push-card[data-state="active"]{border-color:rgba(65,211,170,.18);background:rgba(31,132,98,.08)}
html[data-theme="dark"] .chat-push-card[data-state="active"] .chat-push-icon{background:rgba(50,190,139,.12);color:#76dfba}
html[data-theme="dark"] .directory-card h3,
html[data-theme="dark"] .directory-section h2{color:#eef6ff}
html[data-theme="dark"] .directory-card p{color:#9eb1c4}
html[data-theme="dark"] .record-row a{border-color:rgba(83,160,237,.18);background:rgba(38,127,218,.10);color:#78bcff}
html[data-theme="dark"] #resit .empty-state::before{background:rgba(40,133,230,.13);color:#76baff}
html[data-theme="dark"] .sidebar-footer{background:rgba(8,23,38,.98);border-top-color:rgba(145,188,230,.10)}
html[data-theme="dark"] .sidebar-brand{background:rgba(13,31,50,.98)}
@media(max-width:900px){
  html[data-theme="dark"] .resident-sidebar{background:linear-gradient(180deg,#0d2034,#081725)}
  html[data-theme="dark"] .nav-link{background:rgba(255,255,255,.025);color:#a9bbcc;box-shadow:none}
  html[data-theme="dark"] .nav-link.active{background:rgba(31,120,210,.16);color:#79bdff}
  html[data-theme="dark"] .nav-icon{background:rgba(255,255,255,.035);color:#91a9c0}
  html[data-theme="dark"] .nav-link.active .nav-icon{background:rgba(51,139,229,.15);color:#79bdff}
}
/* Dark mode coverage pass 2: dashboard + payment */
html[data-theme="dark"] .dashboard-primary-actions>a,
html[data-theme="dark"] .account-card{
  border-color:rgba(145,188,230,.15);
  background:linear-gradient(145deg,rgba(18,39,61,.86),rgba(10,28,46,.80));
  box-shadow:0 10px 28px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.025)
}
html[data-theme="dark"] .dashboard-primary-actions strong,
html[data-theme="dark"] .account-card strong{color:#eef6ff}
html[data-theme="dark"] .dashboard-primary-actions small,
html[data-theme="dark"] .account-card span,
html[data-theme="dark"] .account-card small{color:#98adc1}
html[data-theme="dark"] .dashboard-primary-actions .action-icon,
html[data-theme="dark"] .account-card .card-icon{background:rgba(40,133,230,.13);color:#67b1ff}
html[data-theme="dark"] .resident-payment-v3 .card{border-color:rgba(145,188,230,.16)!important;background:linear-gradient(145deg,rgba(18,38,60,.90),rgba(10,27,45,.84))!important;box-shadow:0 14px 34px rgba(0,0,0,.20)!important}
html[data-theme="dark"] .resident-payment-v3 .unit-summary{border-color:rgba(94,164,234,.22)!important;background:rgba(29,107,181,.10)!important;color:#dfefff!important}
html[data-theme="dark"] .resident-payment-v3 label{color:#b8c8d8!important}
html[data-theme="dark"] .resident-payment-v3 :is(input,select,textarea){border-color:rgba(145,188,230,.20)!important;background:rgba(4,16,28,.58)!important;color:#f0f6fc!important}
html[data-theme="dark"] .resident-payment-v3 input[readonly]{background:rgba(255,255,255,.045)!important}
html[data-theme="dark"] .resident-payment-v3 .reference-no{color:#8bc3ff!important}
html[data-theme="dark"] .resident-payment-v3 .test-mode-banner{border-color:rgba(255,99,125,.22)!important;background:rgba(154,36,56,.10)!important;color:#ff98aa!important}
html[data-theme="dark"] .resident-payment-v3 .success-box{border-color:rgba(65,211,170,.20)!important;background:rgba(31,132,98,.10)!important}
/* Dark mode coverage pass 2: chat */
html[data-theme="dark"] :is(.chat-new-card,.chat-thread-card,.chat-empty-state,.chat-conversation-head){
  border-color:rgba(145,188,230,.15);
  background:linear-gradient(145deg,rgba(18,39,61,.86),rgba(10,28,46,.80));
  box-shadow:0 9px 24px rgba(0,0,0,.16)
}
html[data-theme="dark"] :is(.chat-new-card summary strong,.chat-thread-card strong,.chat-empty-state strong,.chat-conversation-title strong){color:#eef6ff}
html[data-theme="dark"] :is(.chat-new-card summary small,.chat-thread-card small,.chat-empty-state p,.chat-conversation-title span){color:#98adc1}
html[data-theme="dark"] :is(.chat-new-icon,.chat-thread-icon,.chat-empty-icon){background:rgba(40,133,230,.13);color:#67b1ff}
html[data-theme="dark"] .chat-new-form label>span{color:#b8c8d8}
html[data-theme="dark"] .chat-new-form :is(input,select,textarea){border-color:rgba(145,188,230,.20);background:rgba(4,16,28,.58);color:#f0f6fc}
html[data-theme="dark"] .chat-unread-summary{background:rgba(42,136,231,.13);color:#78bdff}
html[data-theme="dark"] .chat-back{background:rgba(255,255,255,.05);color:#dcecff}
html[data-theme="dark"] .chat-linked-complaint{background:rgba(42,136,231,.10);color:#9bc8f4}
html[data-theme="dark"] .chat-message-avatar{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.045);color:#ff8c9d}
html[data-theme="dark"] .chat-message-bubble{border-color:rgba(145,188,230,.14);background:#10253a;color:#eaf4fe;box-shadow:0 4px 12px rgba(0,0,0,.12)}
html[data-theme="dark"] .chat-message-row.is-resident .chat-message-bubble{border-color:rgba(77,159,240,.24);background:#123d65;color:#eef8ff}
html[data-theme="dark"] .chat-alert-error{border-color:rgba(255,99,125,.22);background:rgba(154,36,56,.10);color:#ff98aa}
/* Dark mode coverage pass 2: water bill detail */
html[data-theme="dark"] .water-bill-detail-card{border-color:rgba(145,188,230,.15);background:linear-gradient(145deg,rgba(18,39,61,.86),rgba(10,28,46,.80));box-shadow:0 9px 24px rgba(0,0,0,.16)}
html[data-theme="dark"] .water-bill-section-title strong{color:#eef6ff}
html[data-theme="dark"] .water-bill-meter-grid article{background:rgba(255,255,255,.04);border:1px solid rgba(145,188,230,.08)}
html[data-theme="dark"] .water-bill-meter-grid span,
html[data-theme="dark"] .water-bill-charge-list span,
html[data-theme="dark"] .water-bill-formula{color:#98adc1}
html[data-theme="dark"] .water-bill-meter-grid strong,
html[data-theme="dark"] .water-bill-charge-list strong{color:#eef6ff}
html[data-theme="dark"] .water-bill-charge-list>div{border-bottom-color:rgba(145,188,230,.11)}
html[data-theme="dark"] .water-bill-total{background:rgba(32,117,204,.12);border:1px solid rgba(95,164,233,.15)}
html[data-theme="dark"] .water-bill-total span{color:#a8bdd1}
html[data-theme="dark"] .water-bill-total strong{color:#f3f8ff}
html[data-theme="dark"] .water-bill-detail-actions a{border-color:rgba(145,188,230,.18);background:rgba(255,255,255,.045);color:#77baff}
/* Dark mode coverage pass 2: directory */
html[data-theme="dark"] .directory-hero{border-color:rgba(145,188,230,.16);background:linear-gradient(145deg,rgba(18,39,61,.88),rgba(10,28,46,.82));box-shadow:0 14px 34px rgba(0,0,0,.20)}
html[data-theme="dark"] .directory-hero h1,
html[data-theme="dark"] .directory-section-head h2,
html[data-theme="dark"] .directory-card-title h3{color:#eef6ff}
html[data-theme="dark"] .directory-search-box input{border-color:rgba(145,188,230,.20);background:rgba(4,16,28,.58);color:#f0f6fc}
html[data-theme="dark"] .directory-categories a.active{border-color:rgba(75,159,242,.28);background:rgba(18,104,190,.20);color:#79bcff}
html[data-theme="dark"] .directory-sponsored{border-color:rgba(91,171,245,.18);background:linear-gradient(145deg,rgba(17,54,88,.78),rgba(10,30,49,.82))}
html[data-theme="dark"] .sponsor-note,
html[data-theme="dark"] .directory-count{background:rgba(42,136,231,.12);color:#9bc8f4}
html[data-theme="dark"] .directory-card-media{background:#10263c}
html[data-theme="dark"] .directory-placeholder{background:linear-gradient(135deg,#10283f,#0c2034)}
html[data-theme="dark"] .directory-card-title span{background:rgba(42,136,231,.13);color:#78bdff}
html[data-theme="dark"] .directory-description,
html[data-theme="dark"] .directory-meta{color:#98adc1}
html[data-theme="dark"] .directory-meta b,
html[data-theme="dark"] .directory-disclaimer strong{color:#dce9f6}
html[data-theme="dark"] .directory-phone{background:rgba(42,136,231,.13);color:#78bdff}
html[data-theme="dark"] .directory-disclaimer{border-color:rgba(145,188,230,.14);background:rgba(255,255,255,.03);color:#98adc1}
/* Dark mode coverage pass 2: AGM + water usage */
html[data-theme="dark"] .agm-rule-note{background:rgba(255,255,255,.035)}
html[data-theme="dark"] .agm-rule-note strong,
html[data-theme="dark"] .agm-policy-note strong{color:#dce9f6}
html[data-theme="dark"] .agm-policy-note{border-color:rgba(145,188,230,.15);background:rgba(32,117,204,.10)}
html[data-theme="dark"] .agm-status-card.neutral .agm-status-icon{background:rgba(127,157,192,.12);color:#b5c5d5}
html[data-theme="dark"] .water-motion-panel{border-color:rgba(145,188,230,.16);background:linear-gradient(145deg,rgba(18,39,61,.88),rgba(10,28,46,.82));box-shadow:0 14px 34px rgba(0,0,0,.20)}
html[data-theme="dark"] .water-year{border-color:rgba(145,188,230,.15);background:rgba(255,255,255,.025)}
html[data-theme="dark"] .water-year summary{background:rgba(255,255,255,.04)}
html[data-theme="dark"] .water-year summary strong{color:#e8f3fe}
html[data-theme="dark"] .water-history-mobile-row{border-top-color:rgba(145,188,230,.11);background:rgba(255,255,255,.025)}
html[data-theme="dark"] .water-history-mobile-main strong,
html[data-theme="dark"] .water-history-mobile-main>span{color:#e5eef8}
/* Dark mode coverage pass 2: notification + offline */
html[data-theme="dark"] .notification-intro{background:rgba(2,10,18,.58)}
html[data-theme="dark"] .notification-intro-sheet{border-color:rgba(145,188,230,.18);background:rgba(9,25,41,.97);box-shadow:0 28px 80px rgba(0,0,0,.48)}
html[data-theme="dark"] .notification-intro-icon{background:rgba(40,133,230,.13);color:#67b1ff}
html[data-theme="dark"] .notification-intro-copy>span{color:#78bdff}
html[data-theme="dark"] .notification-intro-copy h2{color:#eef6ff}
html[data-theme="dark"] .notification-intro-copy p{color:#98adc1}
html[data-theme="dark"] .notification-intro-actions .is-primary{background:linear-gradient(135deg,#0878e9,#2b8fee);color:#fff}
html[data-theme="dark"] .notification-intro-actions .is-secondary{background:rgba(255,255,255,.055);color:#b5c7d8}
html[data-theme="dark"] .resident-offline-status{border-color:rgba(255,191,77,.18);background:rgba(148,94,12,.13);color:#ffd37b}
html[data-theme="dark"] .resident-offline-status strong{color:#ffd37b}
html[data-theme="dark"] .resident-offline-toast{background:#10283f;color:#eef6ff;box-shadow:0 12px 30px rgba(0,0,0,.30)}
/* Dark mode coverage pass 3: non-home glass topbar specificity */
html[data-theme="dark"] body.resident-v3:not(.resident-home26) .resident-topbar{
  border-color:rgba(145,188,230,.17)!important;
  background:linear-gradient(145deg,rgba(13,31,49,.90),rgba(8,23,38,.82))!important;
  box-shadow:0 14px 36px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04)!important;
  -webkit-backdrop-filter:blur(22px) saturate(1.16)!important;
  backdrop-filter:blur(22px) saturate(1.16)!important
}
html[data-theme="dark"] body.resident-v3:not(.resident-home26) .unit-pill{
  border-color:rgba(151,195,238,.18)!important;
  background:rgba(14,36,57,.78)!important;
  color:#eef7ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
  -webkit-backdrop-filter:blur(14px) saturate(1.10)!important;
  backdrop-filter:blur(14px) saturate(1.10)!important
}

/* Dark shell must override the light global glass layer */
html[data-theme="dark"] body.resident-v3:not(.resident-home26) .resident-topbar{
  border-color:rgba(145,188,230,.18);
  background:linear-gradient(135deg,rgba(13,33,53,.92),rgba(7,22,37,.84));
  box-shadow:0 12px 30px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter:blur(24px) saturate(1.18);
  backdrop-filter:blur(24px) saturate(1.18)
}
html[data-theme="dark"] body.resident-v3:not(.resident-home26) .unit-pill{
  border-color:rgba(145,188,230,.18);
  background:rgba(15,38,60,.82);
  color:#eef7ff;
  box-shadow:0 5px 16px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter:blur(16px) saturate(1.1);
  backdrop-filter:blur(16px) saturate(1.1)
}
/* Dark mode final contrast pass */
html[data-theme="dark"] .agm-status-card.neutral .agm-status-copy h2{color:#dce9f6}
/* Dark mode water orb - Single Wave Glass */
html[data-theme="dark"] .water-orb-fluid-single{
  background:linear-gradient(180deg,rgba(51,169,225,.88) 0%,rgba(20,119,188,.94) 56%,#0f5f9f 100%);
  box-shadow:
    inset 0 1px 0 rgba(135,220,255,.16),
    inset 0 12px 24px rgba(104,200,246,.035)
}
html[data-theme="dark"] .water-orb-gloss{
  background:linear-gradient(135deg,rgba(123,197,238,.16),rgba(95,174,222,.035) 46%,rgba(95,174,222,0) 72%);
  opacity:.44
}
html[data-theme="dark"] .water-orb-icon{
  border:1px solid rgba(119,207,255,.28);
  background:linear-gradient(145deg,rgba(29,112,171,.44),rgba(10,48,78,.56));
  color:#7bd0ff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 5px 16px rgba(0,117,204,.18),
    0 0 18px rgba(74,177,240,.10);
  -webkit-backdrop-filter:blur(8px) saturate(1.12);
  backdrop-filter:blur(8px) saturate(1.12)
}

/* Dark mode announcement readability + topbar logo polish */
html[data-theme="dark"] .detail-card .announcement-body{
  color:#c8d8e8;
  font-weight:500;
  text-shadow:0 1px 0 rgba(0,0,0,.08)
}
html[data-theme="dark"] .detail-card .announcement-body a{
  color:#69b7ff
}
@media(max-width:900px){
  html[data-theme="dark"] body.resident-v3:not(.resident-home26) .topbar-copy::before{
    border:1px solid rgba(173,205,235,.16);
    border-radius:9px;
    background-color:rgba(243,248,252,.94);
    background-size:88% 88%;
    box-shadow:
      0 4px 12px rgba(0,0,0,.18),
      inset 0 1px 0 rgba(255,255,255,.72);
    overflow:hidden
  }
}

/* Canonical header dark-mode alignment with Home */
html[data-theme="dark"] .resident-topbar-logo{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.92);
  box-shadow:
    0 4px 12px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.72)
}
html[data-theme="dark"] .resident-topbar .unit-pill-arrow{
  color:#4fa8ff
}

/* Light mode header contrast refinement V1 */
html[data-theme="light"] body.resident-home26 .home26-brand{
  border-color:rgba(255,255,255,.88)!important;
  background:linear-gradient(135deg,rgba(246,250,255,.80),rgba(226,238,249,.70))!important;
  box-shadow:0 14px 34px rgba(13,42,74,.15),inset 0 1px 0 rgba(255,255,255,.90)!important
}
html[data-theme="light"] body.resident-home26 .home26-brand-copy strong{
  color:#102f54!important
}
html[data-theme="light"] body.resident-home26 .home26-brand-copy span{
  color:#4d637a!important
}
html[data-theme="light"] body.resident-home26 .home26-unit-pill{
  border-color:rgba(184,207,230,.88)!important;
  background:rgba(249,252,255,.91)!important;
  color:#173a5d!important;
  box-shadow:0 4px 14px rgba(20,55,90,.07),inset 0 1px 0 rgba(255,255,255,.88)!important
}
html[data-theme="light"] body.resident-v3:not(.resident-home26) .resident-topbar{
  border-color:rgba(255,255,255,.88)!important;
  background:linear-gradient(135deg,rgba(246,250,255,.82),rgba(228,239,249,.72))!important;
  box-shadow:0 12px 30px rgba(17,42,76,.12),inset 0 1px 0 rgba(255,255,255,.90)!important
}
html[data-theme="light"] body.resident-v3:not(.resident-home26) .resident-topbar-brand-copy strong{
  color:#102f54!important
}
html[data-theme="light"] body.resident-v3:not(.resident-home26) .resident-topbar-brand-copy span{
  color:#4d637a!important
}
html[data-theme="light"] body.resident-v3:not(.resident-home26) .unit-pill{
  border-color:rgba(184,207,230,.88)!important;
  background:rgba(249,252,255,.91)!important;
  color:#173a5d!important
}

/* Light mode header readability V2 */
html[data-theme="light"] body.resident-home26 .home26-brand,
html[data-theme="light"] body.resident-v3:not(.resident-home26) .resident-topbar{
  border-color:rgba(188,207,225,.94)!important;
  background:linear-gradient(135deg,rgba(247,251,255,.94),rgba(231,240,249,.91))!important;
  box-shadow:
    0 12px 30px rgba(15,42,70,.13),
    inset 0 1px 0 rgba(255,255,255,.98)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.08)!important;
  backdrop-filter:blur(20px) saturate(1.08)!important
}
html[data-theme="light"] body.resident-home26 .home26-brand-copy strong,
html[data-theme="light"] body.resident-v3:not(.resident-home26) .resident-topbar-brand-copy strong{
  color:#0b2948!important;
  text-shadow:0 1px 0 rgba(255,255,255,.48)
}
html[data-theme="light"] body.resident-home26 .home26-brand-copy span,
html[data-theme="light"] body.resident-v3:not(.resident-home26) .resident-topbar-brand-copy span{
  color:#50677f!important;
  opacity:1!important;
  text-shadow:0 1px 0 rgba(255,255,255,.40)
}
html[data-theme="light"] body.resident-home26 .home26-unit-pill,
html[data-theme="light"] body.resident-v3:not(.resident-home26) .unit-pill{
  border-color:rgba(174,198,222,.96)!important;
  background:rgba(250,253,255,.96)!important;
  color:#102f50!important;
  box-shadow:
    0 4px 14px rgba(18,51,83,.08),
    inset 0 1px 0 rgba(255,255,255,.98)!important
}

/* Dark mode chat attachments + share target */
html[data-theme="dark"] .chat-attach-button{
  border-color:rgba(145,188,230,.16);
  background:rgba(23,55,84,.78);
  color:#69b9ff
}
html[data-theme="dark"] .chat-attachment-selection{
  background:rgba(35,113,177,.18);
  color:#c5e4ff
}
html[data-theme="dark"] .chat-attachment-selection button{color:#9db4c9!important}
html[data-theme="dark"] .chat-attachment-image{
  border-color:rgba(118,180,230,.18);
  background:#0b2034
}
html[data-theme="dark"] .chat-attachment-file{
  border-color:rgba(118,180,230,.18);
  background:rgba(14,39,62,.78);
  color:#e8f4ff
}
html[data-theme="dark"] .chat-attachment-file small{color:#94a9bd}
html[data-theme="dark"] :is(.chat-share-preview,.chat-share-form){
  border-color:rgba(145,188,230,.16);
  background:linear-gradient(145deg,rgba(18,39,61,.90),rgba(10,28,46,.86));
  box-shadow:0 10px 28px rgba(0,0,0,.18)
}
html[data-theme="dark"] .chat-share-image-link{background:#091c2e}
html[data-theme="dark"] .chat-share-file-card{
  border-color:rgba(145,188,230,.15);
  background:rgba(11,31,50,.72);
  color:#e8f4ff
}
html[data-theme="dark"] .chat-share-file-card small,
html[data-theme="dark"] .chat-share-file-meta span,
html[data-theme="dark"] .chat-share-form label>small{color:#93a8bc}
html[data-theme="dark"] .chat-share-file-meta strong{color:#eaf5ff}
html[data-theme="dark"] .chat-share-form label>span{color:#bdd0e2}
html[data-theme="dark"] :is(.chat-share-form select,.chat-share-form input,.chat-share-form textarea){
  border-color:rgba(145,188,230,.17);
  background:rgba(8,25,42,.72);
  color:#eef7ff
}
html[data-theme="dark"] .chat-share-cancel button{color:#9fb2c5}

html[data-theme="dark"] .chat-new-form input[type="file"]{
  color:#a7bbcf
}
html[data-theme="dark"] .chat-new-form input[type="file"]::file-selector-button{
  background:rgba(42,136,231,.16);
  color:#79beff
}
html[data-theme="dark"] .chat-upload-hint{color:#91a6bb}


/* 2026-10-05: Bil Air pending / post-bill payment dark mode */
html[data-theme="dark"] .water-cycle-banner{
  border-color:rgba(105,179,255,.20);
  background:linear-gradient(145deg,rgba(21,48,76,.92),rgba(12,31,51,.90));
  box-shadow:0 12px 28px rgba(0,0,0,.15);
}
html[data-theme="dark"] .water-cycle-banner strong{
  color:#eef7ff;
}
html[data-theme="dark"] .water-cycle-banner span{
  color:#9fb2c5;
}

html[data-theme="dark"] .water-payment-after-bill{
  border-color:rgba(145,188,230,.16);
  background:linear-gradient(145deg,rgba(20,42,66,.92),rgba(11,29,48,.90));
  box-shadow:0 12px 28px rgba(0,0,0,.16);
}
html[data-theme="dark"] .water-payment-after-bill-head{
  background:rgba(255,255,255,.035);
}
html[data-theme="dark"] .water-payment-after-bill-head strong{
  color:#eef7ff;
}
html[data-theme="dark"] .water-payment-after-bill-head span{
  color:#9fb2c5;
}
html[data-theme="dark"] .water-payment-after-bill-head b{
  color:#67dfb1;
}
html[data-theme="dark"] .water-payment-after-bill-list>div{
  border-top-color:rgba(145,188,230,.10);
}
html[data-theme="dark"] .water-payment-after-bill-list span{
  color:#dce8f4;
}
html[data-theme="dark"] .water-payment-after-bill-list small{
  color:#8fa5ba;
}
html[data-theme="dark"] .water-payment-after-bill-list strong{
  color:#67dfb1;
}
