:root{--font-body:16px;--font-ui:14px;--font-heading:28px;--font-card:22px;--sidebar-width:260px;--sidebar-bg:#eaf1f7;--muted:#60768c;--amber:#d69a27;--red:#d1697a;--status-green-bg:#e7f4ec;--status-green:#2a7544;--status-amber-bg:#fff2da;--status-amber:#8c5b06;--status-red-bg:#fdecef;--status-red:#aa3f53;--status-blue-bg:#e7f3ff;--status-blue:#28648b;--status-purple-bg:#eee7fa;--status-purple:#7550a8;--status-orange-bg:#fff0e3;--status-orange:#9d551e}
:root[data-theme=dark]{--sidebar-bg:#192530;--muted:#a0b2c2;--status-green-bg:#213f35;--status-green:#8bd3aa;--status-amber-bg:#463a24;--status-amber:#edc16e;--status-red-bg:#4a2831;--status-red:#f09dab;--status-blue-bg:#203e52;--status-blue:#82c9ef;--status-purple-bg:#3b2c50;--status-purple:#c6a8ef;--status-orange-bg:#4a3323;--status-orange:#efba8b}
:root[data-text-size=small]{--font-body:15px;--font-ui:14px;--font-heading:26px;--font-card:21px}
:root[data-text-size=large]{--font-body:18px;--font-ui:16px;--font-heading:32px;--font-card:24px}
:root[data-text-size=extra-large]{--font-body:20px;--font-ui:18px;--font-heading:35px;--font-card:26px}
body{font-size:var(--font-body);line-height:1.5}button,input,select,textarea{font:inherit}button:disabled{cursor:not-allowed}.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}.preserve-lines{white-space:pre-wrap}.text-link{font-size:var(--font-ui)}
.btn{min-height:44px;height:auto;padding:10px 16px;font-size:var(--font-ui);line-height:1.35;white-space:normal;gap:8px}.btn.small{min-height:38px;padding:8px 12px;font-size:var(--font-ui)}.btn.danger{color:var(--status-red);border-color:var(--status-red);background:var(--status-red-bg)}.icon-btn{width:40px;height:40px}.field{font-size:var(--font-ui);gap:8px;margin:0}.field>span:first-child{font-size:var(--font-ui);font-weight:500}.form-grid{gap:22px;align-items:start}.field input,.field select,.field textarea{font-size:var(--font-body)}input,select{min-height:48px;height:auto;padding:11px 13px;line-height:1.4}textarea{font-size:var(--font-body);line-height:1.5;padding:12px 14px;min-height:90px}.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px}.setting-row{gap:20px;padding:24px 0}.setting-row b{font-size:var(--font-body)}.setting-row small{display:block;font-size:var(--font-ui);margin-top:5px}.setting-row select{width:auto;min-width:180px}.settings-content>form{margin-top:24px}.settings-content>p{margin:8px 0 22px}.field output{display:flex;align-items:center;min-height:48px;font-size:var(--font-body);color:var(--muted)}.switch-label{display:flex;align-items:center;gap:10px;font-size:var(--font-ui)}.switch-label input{width:20px;min-height:20px;margin:0}.type-preview{margin-top:24px;padding:20px;background:var(--surface2);border-radius:10px}.type-preview p{margin:7px 0 14px}
.brand-mark{letter-spacing:0;padding:0;gap:2px;flex-shrink:0;overflow:hidden}.brand-mark .static-k{font:700 18.9px Arial,sans-serif}.brand-mark .static-arrow{font:400 22.78px Arial,sans-serif;transform:scaleY(1.22);padding:0;line-height:1}.brand-mark>img{display:block;width:100%;height:100%}.brand b{white-space:nowrap}.logo-action{position:relative;padding:0;border:0;background:transparent;text-align:left;width:max-content;height:36px;overflow:visible;flex-shrink:0}.logo-action:after{content:"";position:absolute;inset:-4px 0}.logo-action b{position:relative}.logo-motion-name,.logo-motion-go{position:absolute;left:0;top:0;display:none;font-family:Arial,sans-serif;font-weight:700;line-height:1;white-space:nowrap;pointer-events:none;transform-origin:center}.logo-motion-name span,.logo-motion-go span{display:inline-block}.logo-motion-go{color:#89d8ed}.logo-motion-arrow{position:absolute;left:0;top:0;display:none;font-family:Arial,sans-serif;font-weight:400;line-height:1;pointer-events:none;transform-origin:center}
.sidebar{width:var(--sidebar-width);height:100dvh;padding:20px 16px 14px;background:var(--sidebar-bg);display:flex;flex-direction:column;gap:0;overflow:hidden}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;margin-bottom:18px}.sidebar .brand{margin:0;gap:8px}.sidebar .brand b{font-size:21px}.sidebar-brand>.icon-btn{width:32px;height:36px;flex-shrink:0}.workspace-switch{margin:0 0 16px;flex-shrink:0;padding:12px 10px;display:flex;gap:10px;min-width:0;background:color-mix(in srgb,var(--surface) 75%,transparent)}.workspace-copy{min-width:0}.workspace-copy b{font-size:var(--font-ui);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-copy small{font-size:var(--font-ui);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-icon{width:34px;height:34px;flex-shrink:0}.sidebar-section-label{font-size:var(--font-ui);letter-spacing:1px;color:var(--muted);padding:0 10px;margin-bottom:7px;flex:none}.sidebar nav{display:grid;grid-auto-rows:minmax(0,1fr);gap:3px;min-height:0;max-height:400px;flex:1}.sidebar nav button{min-height:0;height:100%;padding:7px 11px;gap:10px;font-size:var(--font-ui);line-height:1.2;white-space:nowrap;display:flex;align-items:center}.sidebar nav button>svg{width:20px;height:20px;flex:none}.sidebar nav button>small{font-size:var(--font-ui);margin-left:auto}.sidebar nav button.active:before{left:-16px}.sidebar .care-card{padding:14px 12px;margin:16px 0 10px;flex:none}.care-card b{font-size:var(--font-body);margin-top:9px}.care-card p{font-size:var(--font-ui);line-height:1.5;margin:7px 0 11px}.care-card .text-link{font-size:var(--font-ui)}.sidebar-settings{display:flex;align-items:center;gap:11px;min-height:44px;flex:none;border:0;background:transparent;color:var(--muted);font-size:var(--font-ui);padding:9px 11px;text-align:left;margin-top:10px;border-radius:8px}.sidebar-settings.active{background:var(--accent-soft);color:var(--accent)}.sidebar-account{display:flex;align-items:center;gap:5px;border-top:1px solid var(--border);padding-top:10px;margin-top:8px;flex:none}.account-link{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:0;border:0;background:none;text-align:left}.account-link>span:last-child{min-width:0;flex:1}.account-link b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-ui)}.account-link small{font-size:var(--font-ui);display:block;color:var(--muted)}.sidebar-account>.icon-btn{flex:none;width:38px;height:42px}.sidebar-scrim{display:none}.main-shell{margin-left:var(--sidebar-width)}.topbar{padding:0 30px;gap:16px;min-height:76px}.topbar>[data-action=mobile-sidebar]{display:none}.breadcrumbs{font-size:var(--font-ui);min-width:0;gap:10px}.breadcrumbs span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.global-search{font-size:var(--font-ui);margin-left:auto;max-width:260px}.global-search input{font-size:var(--font-ui);padding:0;min-height:40px}.topbar-actions{margin-left:0;gap:14px}#presence-slot{position:relative}.online-empty{font-size:var(--font-ui);color:var(--muted);white-space:nowrap}.online-admins{border:0;background:none;padding:4px;min-height:44px;display:flex;align-items:center}.online-stack{display:flex;padding-left:8px}.online-stack .avatar{position:relative;margin-left:-8px;border:2px solid var(--surface);width:36px;height:36px;font-size:var(--font-ui)}.online-dot{width:9px;height:9px;background:#43b889;border:2px solid var(--surface);border-radius:50%;position:absolute;right:-1px;bottom:-1px}.online-more{background:var(--surface2);color:var(--text)}.online-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:30;min-width:220px;max-width:300px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;box-shadow:var(--shadow);font-size:var(--font-ui)}.online-popover[hidden]{display:none}.online-popover b{display:block;margin-bottom:10px}.online-popover>span{display:flex;gap:8px;align-items:center;padding:6px 0}.online-popover svg{color:var(--teal)}
main{padding:28px 30px 20px}.page-heading{gap:20px;flex-wrap:wrap}.page-heading .eyebrow{font-size:var(--font-ui);letter-spacing:1.3px;margin-bottom:8px}.page-heading h1{font-size:var(--font-heading);line-height:1.2}.page-heading p{font-size:var(--font-ui);line-height:1.6;margin-top:10px}.heading-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.date-label{font-size:var(--font-ui);gap:8px}.card-heading{padding:23px 24px 20px;gap:16px;align-items:center}.card-heading h3{font-size:var(--font-card);line-height:1.25}.card-heading p{font-size:var(--font-ui);line-height:1.5;margin-top:7px}.card-heading>.text-link{white-space:nowrap}.app-footer{padding:20px 30px;font-size:var(--font-ui);gap:15px}.app-footer>span{display:flex;align-items:center;gap:8px}.app-footer>span:last-child{font-size:var(--font-ui)}
.avatar{width:42px;height:42px;flex:none;position:relative;font-size:var(--font-ui);overflow:hidden}.avatar.small{width:34px;height:34px;font-size:var(--font-ui)}.avatar.large{width:82px;height:82px;font-size:28px}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.avatar.has-photo .avatar-initials{visibility:hidden}.badge{font-size:var(--font-ui);line-height:1.3;padding:6px 10px;gap:6px;border-radius:6px;white-space:nowrap}.badge i{background:currentColor}.badge.green{color:var(--status-green);background:var(--status-green-bg)}.badge.amber{color:var(--status-amber);background:var(--status-amber-bg)}.badge.red{color:var(--status-red);background:var(--status-red-bg)}.badge.blue{color:var(--status-blue);background:var(--status-blue-bg)}.badge.purple{color:var(--status-purple);background:var(--status-purple-bg)}.badge.orange{color:var(--status-orange);background:var(--status-orange-bg)}.badge.neutral{background:var(--surface2);color:var(--muted)}.plain-group{font-size:var(--font-body);background:none;border:0;padding:0;border-radius:0;white-space:nowrap}.duty-list{display:flex;gap:6px;flex-wrap:wrap;min-width:150px}.duty-pill{font-size:var(--font-ui);line-height:1.4;padding:4px 7px;display:inline-flex;align-items:center;gap:5px}.special-duty{background:color-mix(in srgb,#cf9a31 15%,var(--surface));color:light-dark(#91601e,#efd28b);border:1px solid color-mix(in srgb,#cf9a31 38%,transparent);border-radius:6px}.district-tag{font-size:var(--font-ui);line-height:1.4;padding:4px 7px;background:var(--accent-soft);color:var(--accent);border-radius:5px}
.table-scroll table{white-space:normal;min-width:690px}.directory th,.directory td,th,td{font-size:var(--font-body);padding:18px 20px}.directory th,th{font-size:var(--font-ui);font-weight:600;white-space:nowrap}.directory .person b,.person b{font-size:var(--font-body);line-height:1.4}.directory .person small,.person small,td>small{display:block;font-size:var(--font-ui);line-height:1.5;margin-top:4px}.directory .duty-pill,.directory .badge{font-size:var(--font-ui)}.person{gap:12px}.person>span:last-child{text-align:left}.row-actions{display:flex;align-items:center;gap:3px}.sort-header{display:flex;align-items:center;gap:8px;font-size:var(--font-ui);font-weight:600;color:var(--muted);border:0;background:transparent;padding:0;min-height:30px}.sort-header>span{font-size:var(--font-ui);color:var(--accent)}.filter-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:20px 22px}.filter-bar .search-field{flex:1;min-width:230px}.search-field input{font-size:var(--font-body);min-width:0}.filter-bar select{font-size:var(--font-ui);min-width:155px;flex:1;max-width:230px}.filter-bar .field{min-width:180px}.active-filter{font-size:var(--font-ui);padding:10px 22px;color:var(--accent)}.month-picker{display:flex;gap:10px;align-items:center;font-size:var(--font-ui)}.month-picker input{width:180px;min-height:42px;font-size:var(--font-ui)}.dashboard-month,.visit-period{display:flex;gap:18px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:20px 0;font-size:var(--font-ui);color:var(--muted)}
.welcome-card{padding:30px 32px;min-height:285px;isolation:isolate}.welcome-kicker{font-size:var(--font-ui);letter-spacing:1.4px}.welcome-card h2{font-size:34px;line-height:1.18;margin:21px 0 13px;max-width:390px}.welcome-card h2 em{font-style:normal;color:#8bdded}.welcome-card p{font-size:var(--font-ui);line-height:1.6;max-width:390px}.welcome-copy>button{font-size:var(--font-ui);min-height:44px;padding:10px 15px;margin-top:22px;position:relative;z-index:4}.welcome-art{position:absolute;width:420px;height:290px;right:15px;top:0;transform:none;opacity:1}.dashboard-art .orbit{left:50%;top:50%;border:1px solid #8ed9ef13;border-radius:50%;position:absolute;transform:translate(-50%,-50%)}.dashboard-art .o1{width:160px;height:160px}.dashboard-art .o2{width:250px;height:250px}.dashboard-art .o3{width:340px;height:340px}.dashboard-art .art-center{position:absolute;left:calc(50% - 52px);top:calc(50% - 52px);width:104px;height:104px;border-radius:50%;border:1px solid #aee7f43b;background:#a3e4ff13;color:#a5deee;display:flex;align-items:center;justify-content:center;padding:0}.floating-label{position:absolute;display:flex;gap:11px;align-items:center;padding:14px 17px;border-radius:9px;background:#f8fdff;color:#3b7a98;font-size:13px;white-space:nowrap;box-shadow:0 7px 22px #002a4a0b}.label-care{top:42px;left:12px;transform:rotate(-6deg)}.label-care svg{color:#32a8ac}.label-service{right:13px;bottom:38px;transform:rotate(6deg)}.label-service svg{color:#4f8bd5}.art-avatar{width:42px;height:42px;border:3px solid #ffffff36;border-radius:50%;display:flex;align-items:center;justify-content:center;position:absolute;font-size:15px;font-weight:600}.art-avatar.a1{right:48px;top:49px;background:#e7cdb1;color:#9b744a}.art-avatar.a2{right:71px;top:146px;width:34px;height:34px;background:#c9bddf;color:#7d6a9b}.art-avatar.a3{left:69px;bottom:39px;background:#b8dce2;color:#5b8d98}.community-motion{isolation:isolate}.community-wave{position:absolute;border:1px solid #aee9f5;border-radius:50%;opacity:0;pointer-events:none;z-index:-1;background:radial-gradient(circle,transparent 65%,#a6ebff07)}.motion-hub{cursor:pointer}.dashboard-star{position:absolute;color:#a2e7f5}.dashboard-star.top{left:60%;top:29px}.dashboard-star.bottom{left:42%;bottom:15px}.motion-twinkle{position:absolute;color:#b5effb;opacity:0;pointer-events:none}.original-art .p1{padding:0;z-index:2}.original-art .p2,.original-art .p3{z-index:1}
.stat-grid{gap:18px}.stat-card{display:block;text-align:left;padding:24px;position:relative;min-width:0;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);color:var(--text)}.stat-card>.stat-icon{position:static;display:flex;margin-bottom:18px;width:44px;height:44px}.stat-card>span:not(.stat-icon){font-size:var(--font-ui);display:block;line-height:1.4;min-height:40px;padding-right:0}.stat-card strong{font-size:34px;margin-top:8px;line-height:1.2}.stat-card strong small{font-size:var(--font-body);color:var(--muted);font-weight:400}.stat-card p{font-size:var(--font-ui);line-height:1.5;gap:6px;margin-top:13px}.stat-arrow{position:absolute;right:20px;top:22px;color:var(--muted)}.dashboard-grid{gap:22px;margin-top:24px;grid-template-columns:1.65fr 1fr}.visits-chart{grid-column:auto}.community-card{grid-column:auto}.bar-chart{height:220px;padding:10px 24px 22px;gap:18px;align-items:end;display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.bar-chart:before{display:none}.bar-col{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;height:100%;justify-content:flex-end}.week-bar{height:170px;width:100%;min-width:34px;background:transparent;border:0;padding:0;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;color:var(--muted);position:relative}.bar-value{font-size:var(--font-ui);margin-bottom:8px}.bar-fill{height:var(--bar-height);min-height:3px;max-height:135px;width:clamp(28px,5vw,48px);display:block;border-radius:6px 6px 0 0;background:#b6dce7}.bar-fill.current{background:linear-gradient(#2cadd0,#0a729b)}.bar-col>span{font-size:var(--font-ui);white-space:nowrap}.chart-legend{font-size:var(--font-ui);display:flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--accent)}.chart-footer{padding:16px 22px;gap:16px;flex-wrap:wrap}.chart-footer>span,.chart-footer .text-link{font-size:var(--font-ui)}.chart-footer>span{display:flex;align-items:center;gap:7px}.chart-footer svg{flex:none}.donut{height:156px;width:156px;padding:14px}.donut strong{font-size:32px}.donut small{font-size:var(--font-ui)}.pulse-legend{padding:18px 24px 24px;gap:10px}.pulse-legend button{display:flex;justify-content:space-between;align-items:center;gap:20px;background:none;border:0;color:var(--text);font-size:var(--font-body);width:100%;padding:0}.birthday-members-row{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-top:24px}.birthday-card,.members-card{grid-column:auto;min-width:0}.birthday-list{padding:0 24px 20px;display:grid;gap:0}.birthday-row{display:flex;align-items:center;gap:14px;text-align:left;background:none;border:0;border-bottom:1px solid var(--border);padding:18px 0;color:var(--text);width:100%;min-width:0}.birthday-row:last-child{border-bottom:0;display:flex}.birthday-photo{width:62px;height:62px;font-size:20px}.birthday-row>span:nth-child(2){min-width:0;flex:1}.birthday-row b{font-size:var(--font-body);line-height:1.4;display:block}.birthday-row small{font-size:var(--font-ui);display:block;color:var(--muted);margin-top:4px}.birthday-row .days{font-size:var(--font-ui);color:var(--muted);white-space:nowrap}.dashboard-members{padding:0 24px 18px}.dashboard-member{display:flex;align-items:center;gap:11px;width:100%;padding:20px 0;text-align:left;background:none;color:var(--text);border:0;border-bottom:1px solid var(--border)}.dashboard-member:last-child{border-bottom:0}.dashboard-member>span:nth-child(2){min-width:0;flex:1}.dashboard-member b{font-size:var(--font-body);display:block}.dashboard-member small{font-size:var(--font-ui);display:block;color:var(--muted);margin-top:5px}.dashboard-member .plain-group{font-size:var(--font-ui)}
.visit-metrics{gap:18px;margin-bottom:24px}.mini-stat{padding:22px;gap:16px}.mini-stat strong{font-size:32px}.mini-stat span:not(.stat-icon){font-size:var(--font-ui);line-height:1.5}.visit-grid{gap:24px;grid-template-columns:1.6fr 1fr}.visit-list{padding:0 24px}.visit-entry{gap:16px;padding:24px 0;display:flex;align-items:flex-start;border-bottom:1px solid var(--border)}.visit-entry:last-child{border-bottom:0}.visit-entry>div{flex:1;min-width:0}.visit-entry .member-name{font-size:var(--font-body);font-weight:700}.visit-entry small{font-size:var(--font-ui);line-height:1.6;display:block;color:var(--muted);margin-top:4px}.visit-entry p{font-size:var(--font-body);line-height:1.6;margin:10px 0}.visit-check{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--status-green-bg);color:var(--status-green);flex:none}.directory-tabs{gap:20px;padding:0 24px;display:flex}.directory-tabs button{font-size:var(--font-ui);padding:14px 0}.not-visited-list{padding:0 24px 15px}.not-visited-row{display:flex;align-items:center;gap:10px;padding:18px 0;border-bottom:1px solid var(--border)}.not-visited-row:last-child{border-bottom:0}.not-visited-row .person{min-width:0;flex:1}.not-visited-row .person b{white-space:normal}.not-visited-row>.icon-btn{flex:none}
.activity-toolbar{margin-bottom:24px}.activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.activity-grid>.empty{grid-column:1/-1}.activity-card{padding:24px;min-width:0;display:flex;flex-direction:column}.activity-card-head{display:flex;align-items:flex-start;gap:15px}.activity-card-head>div{min-width:0;flex:1}.activity-card-head .activity-title{font-size:var(--font-card);line-height:1.35;display:block;text-align:left}.activity-card-head small{display:block;font-size:var(--font-ui);color:var(--muted);line-height:1.6;margin-top:4px}.activity-date{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:58px;min-height:70px;padding:9px;background:var(--accent-soft);border-radius:12px;color:var(--accent);flex:none}.activity-date small{font-size:var(--font-ui);text-transform:uppercase}.activity-date b{font-size:26px;line-height:1.2;margin-top:3px}.activity-card>p{font-size:var(--font-body);line-height:1.6;margin:20px 0;white-space:pre-wrap}.activity-card-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--border);padding-top:18px;margin-top:auto;font-size:var(--font-ui);color:var(--muted)}
.calendar-scroll{overflow-x:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0}.cal-weekday{font-size:var(--font-ui);padding:16px 5px;border-bottom:1px solid var(--border);text-align:center}.cal-day{padding:8px;min-height:150px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);position:relative;min-width:0}.cal-day:nth-child(7n){border-right:0}.cal-blank{background:color-mix(in srgb,var(--surface2) 45%,var(--surface))}.day-number{font-size:var(--font-body);width:36px;height:36px;min-height:36px;display:flex;align-items:center;justify-content:center;background:none;border:0;border-radius:50%;color:var(--text);padding:0;margin-bottom:7px}.cal-day.today .day-number{background:var(--accent);color:#fff}.day-number:disabled{opacity:1;cursor:default}.cal-event{font-size:var(--font-ui);line-height:1.35;white-space:normal;width:100%;text-align:left;display:flex;gap:5px;align-items:flex-start;padding:6px;border-radius:5px;margin-top:4px;border:0;background:var(--accent-soft);color:var(--accent)}.cal-event svg{flex:none;margin-top:2px}.birthday-event{background:#fff1dc;color:#a47c4c}:root[data-theme=dark] .birthday-event{background:#4b3d2c;color:#efc48c}.upcoming-card{margin-top:24px}.upcoming-list{padding:0 24px 22px}.upcoming-event{display:flex;align-items:center;gap:17px;width:100%;text-align:left;padding:18px 0;border:0;background:none;color:var(--text);border-bottom:1px solid var(--border)}.upcoming-event:last-child{border-bottom:0}.upcoming-event>span:last-child{flex:1;min-width:0}.upcoming-event b{font-size:var(--font-body);display:block}.upcoming-event small{font-size:var(--font-ui);display:block;color:var(--muted);margin-top:4px}
.settings-layout{gap:24px}.settings-menu button{font-size:var(--font-ui);padding:12px 15px;min-height:44px}.settings-content{padding:28px;min-width:0}.settings-content h3{font-size:var(--font-card)}.settings-content p{font-size:var(--font-ui);line-height:1.7}.my-profile{display:flex;align-items:center;gap:20px;margin-bottom:32px}.my-profile p{margin-top:7px;color:var(--muted)}.account-signout{border-top:1px solid var(--border);margin-top:28px;padding-top:24px}.accounts-list{margin-top:18px}.account-row{gap:14px;padding:20px 0}.account-row>span:nth-child(2){min-width:0;flex:1}.account-row b{font-size:var(--font-body)}.account-row small{display:block;font-size:var(--font-ui);margin-top:4px;overflow-wrap:anywhere}.account-row select{max-width:170px;font-size:var(--font-ui)}.account-row .btn.small{font-size:var(--font-ui);padding:8px 11px}.activity-row{gap:14px;font-size:var(--font-ui)}.activity-row b{font-size:var(--font-ui)}.activity-row p{font-size:var(--font-ui);margin-top:5px}.activity-row time{font-size:var(--font-ui);max-width:150px}.duties-summary{padding:22px 24px;margin-bottom:24px;gap:24px;display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.duties-summary>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.duties-summary strong{font-size:32px}.duties-summary p,.duties-summary>span{font-size:var(--font-ui);line-height:1.5}.org-canvas{overflow:auto;min-height:420px;padding:35px 24px}.org-tree{display:flex;justify-content:center;gap:24px;list-style:none;padding:0;margin:0}.org-tree ul{display:flex;justify-content:center;gap:20px;padding:32px 0 0;list-style:none}.org-tree li{text-align:center;position:relative}.org-tree li>ul:before{content:"";position:absolute;left:50%;height:32px;width:1px;background:var(--border);top:138px}.org-card{width:190px;min-height:138px;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface2);color:var(--text);display:flex;align-items:center;flex-direction:column;gap:8px}.org-card b{font-size:var(--font-body)}.org-card>span:last-child{font-size:var(--font-ui)}
.modal-is-open{overflow:hidden}.modal-backdrop{padding:20px}.modal{width:100%;max-width:740px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden}.modal.modal-wide{max-width:1080px}.modal-heading{padding:23px 26px 20px;flex:none;gap:16px}.modal-heading .eyebrow{font-size:var(--font-ui);letter-spacing:1.2px}.modal-heading h2{font-size:var(--font-heading);line-height:1.25;margin-top:9px}.modal>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.modal-body{padding:26px;overflow-y:auto;min-height:0}.modal-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex:none;padding:20px 26px;border-top:1px solid var(--border);background:var(--surface)}.modal-spacer{flex:1}.modal-body>p{font-size:var(--font-body);line-height:1.7;margin-bottom:15px}.modal-body .field{margin-top:0}.modal-body>.field{margin-top:22px}.modal-error{margin-top:20px;padding:12px 14px;background:var(--status-red-bg);color:var(--status-red);border-radius:8px;font-size:var(--font-ui);line-height:1.6}.modal-error[hidden]{display:none}.modal-body h3{font-size:var(--font-card);line-height:1.3}.member-photo-editor{display:flex;align-items:center;gap:20px;margin-bottom:26px}.member-photo-editor p{font-size:var(--font-ui);margin:5px 0 10px}.selected-photo{width:82px;height:82px;border-radius:50%;object-fit:cover}.member-photo-editor .btn{margin-right:6px}.status-fields[hidden],[data-transfer-fields][hidden],[data-expulsion-fields][hidden]{display:none}.status-fields .field+.field,.status-fields>div{margin-top:20px}.duties-fieldset{margin:0;padding:18px;border:1px solid var(--border);border-radius:9px}.duties-fieldset legend{font-size:var(--font-ui);padding:0 7px}.duty-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.check-label{font-size:var(--font-ui);display:flex;align-items:center;gap:8px;min-height:28px}.check-label input{width:18px;min-height:18px;height:18px;padding:0;flex:none;margin:0}.district-option{margin-top:20px;padding-top:15px;border-top:1px solid var(--border)}.member-profile{display:flex;align-items:center;gap:18px;margin-bottom:25px}.member-profile p{font-size:var(--font-ui);color:var(--muted);margin:5px 0 10px}.detail-grid{gap:22px;margin-bottom:25px}.detail-grid small{font-size:var(--font-ui);color:var(--muted);display:block;margin-bottom:6px}.detail-grid b{font-size:var(--font-body);overflow-wrap:anywhere}.detail-grid .wide{grid-column:1/-1}.profile-duties{margin-bottom:22px}.section-heading{margin-top:30px!important;margin-bottom:17px}.history-list{display:flex;flex-direction:column;gap:13px}.history-list>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:var(--font-ui);border-bottom:1px solid var(--border);padding-bottom:12px}.history-list small{font-size:var(--font-ui);color:var(--muted)}.history-list>.text-link{text-align:left;font-size:var(--font-ui)}.attendance-columns{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:26px}.attendance-columns p{font-size:var(--font-ui);line-height:1.5;color:var(--muted);margin:8px 0 15px}.attendance-columns .field{margin-top:18px}.people-picker .search-field{padding:10px 12px}.people-picker .search-field input{font-size:var(--font-ui);padding:0;min-height:24px}.checklist-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.checklist-actions>span{font-size:var(--font-ui);color:var(--muted);margin-left:auto}.people-checklist{max-height:290px;overflow:auto;border:1px solid var(--border);border-radius:9px}.check-person{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--border);min-height:65px}.check-person:last-child{border-bottom:0}.check-person[hidden]{display:none}.check-person>input{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex:none}.check-person .avatar{width:34px;height:34px}.check-person b{display:block;font-size:var(--font-ui);font-weight:600}.check-person small{font-size:var(--font-ui);color:var(--muted);display:block}.attendance-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.attendance-names>div{display:flex;align-items:center;gap:10px;font-size:var(--font-ui)}.activity-attendance-heading{margin-bottom:24px}.activity-attendance-heading p{font-size:var(--font-ui);color:var(--muted);margin-top:8px}.empty{padding:36px 24px}.empty h3{font-size:var(--font-card)}.empty p{font-size:var(--font-ui);line-height:1.6;max-width:420px}.toast{font-size:var(--font-ui);line-height:1.6;max-width:min(600px,calc(100vw - 32px));padding:14px 20px;white-space:normal}
.auth-shell{--surface:#fff;--surface2:#f9fafc;--text:#172a3d;--muted:#85919f;--border:#e9edf2;--accent:#087ec0;--accent-soft:#eaf6fd;color-scheme:light;color:var(--text);background:#fff;min-height:100dvh}.auth-story{color:#fff}.auth-story h1{font-weight:650}.auth-story .eyebrow.light{font-size:var(--font-ui);letter-spacing:2px}.auth-story>p{font-size:var(--font-ui);line-height:1.9}.auth-story footer{font-size:var(--font-ui);gap:12px}.auth-story footer small{font-size:var(--font-ui);line-height:1.6}.auth-panel{min-width:0}.auth-top{font-size:var(--font-ui);gap:14px}.auth-top>span:last-child{font-size:var(--font-ui);white-space:nowrap}.auth-form>.auth-kicker{font-size:var(--font-ui);letter-spacing:1px;border-radius:4px;padding:5px 8px}.auth-form h2{font-size:30px;font-weight:800}.auth-form>p{font-size:var(--font-ui);line-height:1.6}.auth-form .field{margin-bottom:20px}.auth-form .field>span{font-size:var(--font-ui)}.auth-form .input-icon{gap:9px;min-height:48px}.auth-form .input-icon input{font-size:var(--font-body);height:48px;padding:0;min-width:0}.auth-form .input-icon .icon-btn{width:32px;height:42px;flex:none}.auth-form .btn.full{font-size:var(--font-ui);min-height:46px;margin-top:8px}.auth-form .auth-note{font-size:var(--font-ui);line-height:1.6}.auth-form .auth-note svg{flex:none}.auth-panel>footer,.auth-panel>footer span{font-size:var(--font-ui);gap:16px}.segmented button{font-size:var(--font-ui);min-height:38px}.auth-message:empty{display:none}.auth-message{margin-bottom:18px;font-size:var(--font-ui);line-height:1.6}.mobile-brand{display:none}.login-entering .auth-form{animation:login-form-enter .8s both}@keyframes login-form-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.opening-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);padding:24px 16px 35px;position:relative;overflow:hidden}.opening-stage{position:relative;width:min(100%,900px);height:clamp(350px,58dvh,480px);color:var(--text);overflow:hidden}.opening-aura{position:absolute;left:50%;top:43%;width:340px;height:340px;transform:translate(-50%,-50%);background:radial-gradient(circle,#159ed91b,transparent 68%);pointer-events:none}.opening-name,.opening-go{position:absolute;left:0;top:0;display:flex;align-items:center;white-space:nowrap;font-family:Arial,sans-serif;font-weight:700;line-height:1;transform-origin:center;will-change:transform,opacity}.opening-name{color:var(--text)}.opening-go{color:var(--accent)}.opening-k{align-self:flex-start}.opening-arrow{position:absolute;left:0;top:0;font-family:Arial,sans-serif;font-weight:400;line-height:1;letter-spacing:0;transform-origin:center;will-change:transform,opacity}.opening-icon{position:absolute;width:128px;height:128px;border-radius:34.56px;background:linear-gradient(145deg,#17a1d7,#087eb9 48%,#02629d);box-shadow:0 12px 28px #0378b325}.opening-ring{position:absolute;width:128px;height:128px;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:50%;pointer-events:none}.opening-wordmark{position:absolute;left:0;width:100%;text-align:center;color:var(--text);font-size:26px;font-weight:750;line-height:1.2;letter-spacing:-1px}.opening-wordmark>span{color:var(--accent)}.opening-wordmark i{width:4px;height:4px;display:inline-block;border-radius:50%;background:#19b3d8;margin-left:3px}.opening-tagline{position:absolute;left:0;width:100%;padding:0 12px;color:var(--accent);text-align:center;font-size:var(--font-ui);font-weight:500;letter-spacing:1px}.opening-start{display:flex;justify-content:center;margin-top:-12px}.opening-start .btn{min-width:175px;justify-content:space-between;padding:13px 20px;box-shadow:0 7px 22px #0378b322}.opening-sound{display:flex;align-items:center;gap:8px;margin-top:26px;font-size:var(--font-ui);min-height:44px;padding:8px 12px;background:none;border:0;color:var(--muted)}.logo-flight{position:fixed;z-index:500;pointer-events:none;transform-origin:0 0;border-radius:26%;object-fit:contain}.success-overlay{position:fixed;inset:0;z-index:450;overflow:hidden;pointer-events:none}.success-cover{position:absolute;inset:0;background:var(--bg)}.success-badge{position:absolute;width:128px;height:128px;border-radius:34.56px;background:linear-gradient(145deg,#17a1d7,#087eb9 48%,#02629d)}.success-k,.success-arrow{position:absolute;color:#fff;font-family:Arial,sans-serif;line-height:1;transform-origin:center}.success-k{font-size:67.2px;font-weight:700}.success-arrow{font-size:81px;font-weight:400}.success-name{position:absolute;width:100%;text-align:center;font-size:26px;font-weight:750;color:var(--text)}
@media(min-width:761px){:root[data-sidebar=collapsed]{--sidebar-width:76px}:root[data-sidebar=collapsed] .sidebar{padding-left:12px;padding-right:12px}:root[data-sidebar=collapsed] .sidebar-brand{flex-direction:column;gap:8px}:root[data-sidebar=collapsed] .sidebar .brand b,:root[data-sidebar=collapsed] .workspace-copy,:root[data-sidebar=collapsed] .sidebar-section-label,:root[data-sidebar=collapsed] .sidebar nav button>span,:root[data-sidebar=collapsed] .sidebar nav button>small,:root[data-sidebar=collapsed] .sidebar-settings>span,:root[data-sidebar=collapsed] .account-link>span:last-child,:root[data-sidebar=collapsed] .care-card{display:none}:root[data-sidebar=collapsed] .workspace-switch{padding:8px;justify-content:center}:root[data-sidebar=collapsed] .sidebar nav button{justify-content:center;padding:7px}:root[data-sidebar=collapsed] .sidebar-settings{justify-content:center;padding:9px}:root[data-sidebar=collapsed] .sidebar-account{flex-direction:column}:root[data-sidebar=collapsed] .account-link{flex:none}:root[data-sidebar=collapsed] .sidebar nav button.active:before{left:-12px}}
@media(max-height:640px){.sidebar{padding-top:12px;padding-bottom:10px}.sidebar .workspace-switch,.sidebar-section-label{display:none}.sidebar-brand{margin-bottom:8px}.sidebar nav{gap:2px}.sidebar nav button{padding-top:5px;padding-bottom:5px}.sidebar-settings{margin-top:5px;min-height:38px}.sidebar-account{margin-top:5px;padding-top:6px}.sidebar-account>.icon-btn{height:38px}}
@media(max-width:1250px){:root:not([data-sidebar=collapsed]){--sidebar-width:230px}.sidebar .brand b{font-size:19px}.welcome-art{right:-20px;width:340px;opacity:.9}.welcome-card p{max-width:300px}.stat-grid{gap:14px}.stat-card{padding:20px}.stat-card strong{font-size:32px}.dashboard-grid,.birthday-members-row{grid-template-columns:1.4fr 1fr}}
@media(max-width:1050px){.global-search{display:none}.topbar{padding:0 22px}.dashboard-grid,.birthday-members-row,.visit-grid{grid-template-columns:1fr}.welcome-art{opacity:.65;right:-70px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card>span:not(.stat-icon){min-height:0}.birthday-photo{width:60px;height:60px}.activity-grid{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.settings-menu{display:flex;flex-wrap:wrap;gap:6px}.settings-menu button{padding:10px 13px}.accounts-list .account-row{flex-wrap:wrap}.account-row>span:nth-child(2){min-width:180px}}
@media(max-width:760px){:root{--sidebar-width:260px}.sidebar{width:min(285px,88vw);transform:translateX(-100%);transition:transform .2s;z-index:45;padding-left:16px;padding-right:16px}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:40;border:0;background:#102a4155;backdrop-filter:blur(2px)}.sidebar nav button{font-size:var(--font-ui)}.main-shell{margin-left:0}.topbar{height:auto;min-height:68px;padding:12px 17px;gap:10px}.topbar>[data-action=mobile-sidebar]{display:inline-flex;flex:none}.breadcrumbs{font-size:var(--font-ui);gap:7px;margin-right:auto}.breadcrumbs>span{max-width:100px}.breadcrumbs>b{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{gap:8px}.online-empty{font-size:12px;max-width:90px;white-space:normal}.online-stack .avatar{width:30px;height:30px;font-size:12px}.online-popover{right:0;min-width:200px}main{padding:24px 18px 16px}.page-heading{margin-bottom:22px;gap:18px}.page-heading .eyebrow{font-size:var(--font-ui);letter-spacing:.8px}.page-heading h1{font-size:var(--font-heading)}.page-heading p{font-size:var(--font-ui);max-width:none}.heading-actions{gap:10px}.heading-actions .btn{min-height:44px;font-size:var(--font-ui);padding:10px 13px}.date-label{display:none}.welcome-card{padding:25px;min-height:285px}.welcome-card h2{font-size:32px}.welcome-kicker{font-size:var(--font-ui);letter-spacing:1px;max-width:260px}.welcome-card p{font-size:var(--font-ui);max-width:250px}.welcome-copy>button{font-size:var(--font-ui)}.welcome-art{width:280px;right:-110px;opacity:.25}.card-heading{padding:20px 18px 17px;gap:12px;flex-wrap:wrap}.card-heading h3{font-size:var(--font-card)}.card-heading p,.chart-legend{font-size:var(--font-ui)}.bar-chart{gap:8px;padding:10px 16px 20px}.bar-fill{width:30px}.bar-col>span{font-size:12px}.bar-value{font-size:var(--font-ui)}.chart-footer{padding:15px 18px;gap:13px}.donut{height:150px;width:150px}.community-card .donut-wrap{float:none;width:auto}.community-card .pulse-legend{padding:15px 20px 22px;min-height:0}.birthday-list{display:grid;padding:0 18px 18px}.birthday-row:last-child{display:flex}.dashboard-members{padding:0 18px 15px}.dashboard-member{gap:10px}.dashboard-member b{font-size:var(--font-body)}.dashboard-member small{font-size:var(--font-ui)}.filter-bar{padding:17px;gap:10px}.filter-bar>.search-field{flex-basis:100%;min-width:100%}.filter-bar select{font-size:var(--font-ui);min-width:130px;max-width:none}.filter-bar .field{min-width:130px;flex:1}.visit-metrics{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.visit-metrics .mini-stat:last-child{grid-column:1/-1}.mini-stat{padding:18px 15px;gap:10px}.mini-stat strong{font-size:30px}.mini-stat span:not(.stat-icon){font-size:var(--font-ui)}.visit-list{padding:0 18px}.visit-entry{gap:11px;padding:21px 0}.visit-entry small,.visit-entry p{font-size:var(--font-ui)}.directory-tabs{padding:0 18px;gap:20px;flex-wrap:wrap}.directory-tabs button{font-size:var(--font-ui)}.not-visited-list{padding:0 18px 15px}.activity-card{padding:20px}.activity-card-head .activity-title{font-size:var(--font-card)}.activity-card-head>div{flex:1}.calendar-grid{min-width:720px}.cal-day{min-height:140px;padding:7px}.cal-weekday{font-size:var(--font-ui)}.calendar-card .card-heading .icon-btn{width:40px;height:40px}.day-number{font-size:var(--font-body);width:40px;height:40px}.cal-event{font-size:var(--font-ui);padding:6px}.cal-event svg{display:block}.settings-content{padding:22px}.setting-row{gap:14px;flex-wrap:wrap}.setting-row>div{min-width:0;flex:1 1 100%}.setting-row select{width:100%}.account-row select{margin-left:0}.account-row .btn.small{font-size:var(--font-ui)}.app-footer{padding:18px;font-size:var(--font-ui);flex-wrap:wrap}.app-footer>span:last-child{font-size:var(--font-ui)}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);border-radius:13px}.modal-heading{padding:20px}.modal-heading h2{font-size:var(--font-heading)}.modal-body{padding:20px}.modal-footer{padding:17px 20px;gap:10px}.modal-footer .btn{font-size:var(--font-ui);padding:10px 13px}.attendance-columns{grid-template-columns:1fr;gap:25px}.attendance-names{grid-template-columns:1fr}.member-photo-editor{gap:15px;align-items:flex-start}.member-photo-editor .btn{margin-top:7px}.detail-grid{gap:20px}.people-checklist{max-height:245px}.auth-shell{grid-template-columns:1fr;min-height:100dvh}.auth-story{display:none}.auth-panel{min-height:100dvh;padding:26px}.auth-form{padding:30px 0;max-width:360px}.auth-form:before{display:none}.auth-form .mobile-brand{display:flex;flex-direction:column;align-items:center;gap:12px;height:96px;margin:0 auto 36px;color:#172a3d}.mobile-brand .brand-mark{width:56px;height:56px;border-radius:16px}.mobile-brand .static-k{font-size:29.4px}.mobile-brand .static-arrow{font-size:35.44px}.mobile-brand b{font-size:20px}.auth-form h2{font-size:30px}.auth-top{gap:12px;font-size:12px;justify-content:space-between}.auth-top>span:first-child{display:block;font-size:11px}.auth-top>span:last-child{font-size:12px}.auth-form .input-icon input{font-size:var(--font-body)}.auth-panel>footer,.auth-panel>footer span{font-size:12px}.auth-panel>footer span{max-width:150px;text-align:right}.opening-stage{height:390px}.opening-start{margin-top:-5px}.opening-tagline{font-size:var(--font-ui)}.org-tree{justify-content:flex-start}.org-card{width:175px}.org-card b{font-size:var(--font-body)}}
@media(max-width:480px){.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.duty-options{grid-template-columns:1fr}.stat-grid{gap:12px}.stat-card{padding:17px}.stat-card>.stat-icon{width:38px;height:38px;margin-bottom:15px}.stat-card strong{font-size:30px}.stat-card>span:not(.stat-icon){font-size:var(--font-ui);padding-right:0}.stat-card p{font-size:var(--font-ui);align-items:flex-start}.stat-arrow{right:14px;top:16px}.activity-card-head{gap:12px}.activity-date{min-width:50px;min-height:65px}.activity-card-footer{flex-wrap:wrap}.birthday-row{gap:12px}.birthday-photo{width:54px;height:54px}.birthday-row .days{font-size:12px}.opening-page{padding-left:12px;padding-right:12px}.opening-stage{height:370px}.settings-content{padding:19px}.sidebar .brand b{font-size:20px}.section-heading{font-size:var(--font-card)}}
@media(prefers-reduced-motion:reduce){.sidebar,.logo-flight,.auth-form{transition:none!important;animation:none!important}}

.icon-rotate-180{transform:rotate(180deg)}
@media(min-width:761px) and (max-height:820px){.auth-story{padding-top:32px;padding-bottom:28px}.auth-story .brand{margin-bottom:38px}.auth-art{min-height:180px}.auth-story footer{margin-top:25px}}
.report-table td{font-size:var(--font-body)}
.report-table th{font-size:var(--font-ui)}
.sidebar .care-card b{font-size:var(--font-body)}
.sidebar .care-card p,.sidebar .care-card .text-link{font-size:var(--font-ui)}
.modal-footer .btn{font-size:var(--font-ui)}

/* Keep wide tables inside their own scroll region on touch screens. */
@media (max-width:760px) {
  .table-scroll {
    position:relative;
    min-width:0;
    max-width:100%;
    overflow-x:auto;
    overscroll-behavior-x:contain;
  }
  .filter-bar select {
    max-width:100%;
  }
  .activity-card-head > div {
    min-width:0;
  }
  .activity-card-head .activity-title {
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:left;
  }
}

@media (max-height:550px) {
  .opening-page {
    padding-block:12px;
  }
  .opening-stage {
    height:clamp(260px,67dvh,350px);
  }
  .opening-sound {
    margin-top:8px;
  }
}

.opening-skip {
  min-height:44px;
  margin-top:12px;
  padding:8px 16px;
}
.opening-page.static-intro .opening-stage {
  height:auto;
  padding:24px 0;
  text-align:center;
}
.static-intro-logo {
  display:block;
  width:112px;
  height:112px;
  margin:0 auto 16px;
}

/* Workspace layout, shared by the browser and both desktop shells. */
:root:not([data-theme=dark]){
  --bg:#edf3f7;
  --sidebar-bg:#dce8f0;
  --surface:#fbfdff;
  --surface2:#eaf1f7;
  --border:#cedce7;
  --muted:#4e657a;
}
:root{
  --worship-green:#288250;
  --worship-amber:#b87907;
  --worship-red:#c54253;
  --worship-blue:#227bad;
  --gold-row:#faf1d8;
  --gold-row-hover:#f6e8bc;
}
:root[data-theme=dark]{
  --worship-green:#61bb82;
  --worship-amber:#e9b64d;
  --worship-red:#e77585;
  --worship-blue:#62bce8;
  --gold-row:#393221;
  --gold-row-hover:#493b23;
}
:root:not([data-theme=dark]) .sidebar nav button:not(.active){color:#415a70}
.sidebar nav{max-height:370px}
.sidebar .care-card{margin:10px 0 2px;padding:10px 12px;border-color:var(--border)}
.sidebar .care-card>svg{color:var(--accent)}
.sidebar .care-card b{margin-top:3px}
.sidebar .care-card p{margin:3px 0 5px}
.sidebar-account .account-link{min-width:0;text-align:left}
.sidebar-account .account-link>span:last-child{overflow:hidden}
.sidebar-account b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-height:690px){
  .sidebar .care-card p{display:none}
  .sidebar .care-card>svg{display:none}
}
@media(max-height:590px){
  .sidebar .care-card{display:none}
}
@media(max-height:420px){
  .sidebar nav button{padding-block:2px}
  .sidebar nav button>svg{width:16px;height:16px}
}
.date-label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.date-label svg{flex:none}
.page-heading .eyebrow{color:var(--muted)}
.stat-icon.purple{color:var(--status-purple);background:var(--status-purple-bg)}
.welcome-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,420px);align-items:center;gap:20px;padding-block:24px}
.welcome-copy{min-width:0}
.welcome-copy>button{display:inline-flex;width:auto}
.welcome-card .welcome-art{position:relative;inset:auto;width:100%;height:270px;transform:none;opacity:1}
.welcome-card .art-center{margin:0}
.pulse-key{display:inline-flex;align-items:center;gap:8px}
.pulse-key i{width:10px;height:10px;border-radius:50%}
.badge.green i{background:var(--worship-green)}
.badge.amber i{background:var(--worship-amber)}
.badge.red i{background:var(--worship-red)}
.badge.blue i{background:var(--worship-blue)}
.visit-metrics .mini-stat{background:var(--surface);border:1px solid var(--border)}
.card-heading .visit-status-filter{font-size:var(--font-ui);min-width:min(145px,100%);max-width:100%}
.card-heading:has(.visit-status-filter){flex-wrap:wrap}
.directory-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:18px 22px}
.directory-filters .search-field{flex:1 1 180px;min-width:0;min-height:44px}
.directory-filters .search-field input{min-width:0}
.directory-filter-panel{display:flex;align-items:end;flex-wrap:wrap;gap:10px;max-width:100%}
.directory-filter-panel .field{font-size:var(--font-ui);min-width:94px;max-width:100%}
.directory-filter-panel .field select{max-width:100%;min-height:44px;font-size:var(--font-ui)}
.directory-filter-panel .field:first-child select{width:11ch}
.directory-filter-panel .field:nth-child(3) select{width:13ch}
.directory-filter-panel .field:nth-child(4) select{width:15ch}
.directory-filter-actions{display:flex;align-items:center;gap:8px}
.directory-filter-actions .btn{min-height:44px}
.directory-filters .directory-filter-toggle{display:none}
.membership-tabs{flex-wrap:wrap;overflow:visible;gap:16px}
.directory-card .directory{min-width:0}
.directory th,.directory td{padding:14px clamp(8px,1.2vw,20px)}
.directory th{background:var(--surface2);color:var(--muted);text-align:left}
.directory .person{text-align:left}
.directory .person b{overflow-wrap:anywhere}
.directory .directory-phone-meta{display:none}
.directory tr.manggagawa-row>td{background:var(--gold-row)}
.directory tr.manggagawa-row:hover>td{background:var(--gold-row-hover)}
.district-tag{display:inline-block;margin-inline-start:4px;padding:2px 6px 2px 8px;clip-path:polygon(0 50%,5px 0,100% 0,100% 100%,5px 100%);vertical-align:middle;font-size:.72em;color:var(--status-blue);background:var(--status-blue-bg)}
.duty-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:10px;margin:0 0 20px}
.duty-card{display:flex;align-items:center;gap:8px;padding:10px 13px;min-height:48px;text-align:left;color:var(--text)}
.duty-card>span{flex:1;font-size:var(--font-ui)}
.duty-card[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}
.duty-card.special-duty{background:var(--gold-row);color:var(--status-amber);border-color:var(--worship-amber)}
.duty-card.special-duty[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--worship-amber)}
.picker-filters{display:flex;align-items:stretch;gap:8px}
.picker-filters>.search-field{flex:1;min-width:0}
.picker-filters input{min-width:0}
.picker-filters select{font-size:var(--font-ui);width:auto;max-width:46%}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px}
.feature-card{min-width:0;padding:20px;overflow-wrap:anywhere}
.feature-card h3{margin:6px 0}
.feature-card p{margin:8px 0}
.feature-card small{color:var(--muted)}
.feature-card .btn{margin:6px 8px 0 0}
.announcement-preview{margin-top:14px}
.announcement-preview p{overflow-wrap:anywhere}
.account-member-name{overflow-wrap:anywhere}
.org-node{position:relative}
.org-node>[data-org-source]{position:absolute;z-index:3;top:-18px;left:calc(50% - 18px);width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:grab;color:var(--accent)}
.org-drop-target{outline:2px solid var(--accent);outline-offset:2px}
.org-instruction{padding:0 20px 14px;color:var(--muted)}
.avatar.org-photo{width:82px;height:82px;border-radius:9px;font-size:22px}
.org-photo-editor{display:flex;align-items:center;gap:12px}
.org-photo-editor [data-photo-preview]{flex:none}
.org-photo-editor .selected-photo{width:82px;height:82px;border-radius:9px;object-fit:cover}
.org-tree,.org-tree ul{gap:0}
.org-tree li>ul:before{top:0;height:20px;background:var(--border)}
.org-tree ul{padding:20px 0 0}
.org-tree li:before,.org-tree li:after{border-color:var(--border)}
.org-tree>li:before,.org-tree>li:after{display:none}
.org-tree>li{padding-top:0}
.org-tree ul>li:only-child{padding-top:20px}
.org-tree ul>li:only-child:after{display:block;height:20px;width:0;border:0;border-left:1px solid var(--border)}
.org-card>span:last-child,.org-card b{overflow-wrap:anywhere;max-width:100%}
@media(max-width:1150px){
  .welcome-card{grid-template-columns:minmax(0,1fr) minmax(230px,320px)}
  .welcome-card .welcome-art{transform:scale(.9);transform-origin:center}
  .directory-birthday{display:none}
}
@media(max-width:900px){
  .directory-last-visit{display:none}
}
@media(max-width:760px){
  .welcome-card{grid-template-columns:minmax(0,1fr);gap:4px}
  .welcome-card .welcome-art{width:min(100%,390px);height:205px;justify-self:center;transform:scale(.83)}
  .heading-actions .date-label{display:inline-flex}
  .directory-filters{padding:12px;gap:8px;align-items:center}
  .directory-filters .search-field{flex:1 1 0}
  .directory-filters .directory-filter-toggle{display:inline-flex}
  .directory-filter-panel{display:none;flex:1 0 100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .directory-filter-panel.filters-open{display:grid}
  .directory-filter-panel .field{min-width:0}
  .directory-filter-panel .field select{width:100%}
  .directory-filter-actions{grid-column:1/-1}
  .directory-filter-actions .btn{flex:1}
  .directory-tabs.membership-tabs{padding:0 10px;gap:3px 9px}
  .membership-tabs button{min-height:44px;padding:5px 0;font-size:var(--font-ui)}
  .membership-tabs button>span{display:none}
  .directory-purok,.directory-duty{display:none}
  .directory .directory-phone-meta{display:block;margin-top:3px;color:var(--muted);font-size:var(--font-ui)}
  .directory-card .directory{min-width:0;table-layout:fixed;width:100%}
  .directory th,.directory td{padding:8px 6px;white-space:normal}
  .directory th:first-child{width:44%}
  .directory .person{gap:6px;width:100%;min-width:0}
  .directory .person>.avatar{width:30px;height:30px;font-size:11px}
  .directory .row-actions{flex-wrap:wrap;justify-content:flex-start;gap:0}
  .directory .row-actions .icon-btn{width:29px;min-width:29px;height:34px}
  .directory .badge{white-space:normal;max-width:100%;font-size:var(--font-ui)}
  .visit-metrics{grid-template-columns:1fr}
  .visit-metrics .mini-stat:last-child>div{display:block}
}
@media(max-width:385px){
  .welcome-card .welcome-art{transform:scale(.74)}
}

/* Directory layout responds to available content width, including a docked sidebar. */
.directory-card{container-type:inline-size}
.directory-card .directory{width:100%}
.directory .person b{overflow-wrap:normal;word-break:normal}
.directory .directory-purok{text-align:center;white-space:nowrap;width:1%}
.directory-purok abbr{text-decoration:none}
.directory th:first-child{min-width:218px}
.directory .directory-compact-actions{display:none}
.directory .directory-actions{text-align:center}
.directory-filters .directory-filter-panel{min-width:0}
.directory-filter-actions{flex-wrap:wrap}
.directory .row-actions{justify-content:center}
.member-action-list{display:flex;flex-wrap:wrap;gap:10px}
.online-stack .avatar{overflow:visible}
.online-stack .online-dot{right:0;bottom:0;width:10px;height:10px}
:root{
 --worship-green:#238048;--worship-amber:#ac7100;--worship-red:#b92c42;--worship-blue:#147bbb;
 --status-green:#216c40;--status-red:#a9263d;--status-amber:#805800;--status-blue:#126790;
}
:root[data-theme=dark]{
 --worship-green:#81d6a4;--worship-amber:#f4c348;--worship-red:#d94452;--worship-blue:#53b8ef;
 --status-green:#9bddb4;--status-red:#ffadb5;--status-amber:#f6cf72;--status-blue:#91d3f6;
 --status-red-bg:#502833;
}
.activity-tabs{margin-bottom:15px;flex-wrap:wrap}
.activity-metrics{margin-bottom:15px}
.activity-metrics .stat-card{min-height:0;padding:16px}
.activity-tracker{min-width:980px!important}
.activity-tracker th,.activity-tracker td{padding:11px 13px}
.activity-tracker td:nth-child(3){min-width:165px}
.kapisanan-card{margin-top:12px}
.kapisanan-title{display:flex;align-items:center;gap:13px}
.kapisanan-logo{display:grid;place-items:center;width:48px;height:48px;border:1px dashed var(--border);border-radius:9px;color:var(--muted);background:var(--surface2)}
.kapisanan-table{min-width:0!important}
.kapisanan-table th,.kapisanan-table td{white-space:normal;padding:10px}
form:is([data-form=member-visit],[data-form=mission])[data-step="1"] :is([data-visit-back],button[type=submit]),
form:is([data-form=member-visit],[data-form=mission])[data-step="2"] [data-visit-next]{display:none}
form:is([data-form=member-visit],[data-form=mission]) [data-visit-step]{min-width:0}
form:is([data-form=member-visit],[data-form=mission]) [data-visit-step]>h3{margin:0 0 12px}
form:is([data-form=member-visit],[data-form=mission]) .people-picker{margin-top:12px}
@container (max-width:1060px){
 .directory .directory-last-visit{display:none}
}
@container (max-width:870px){
 .directory .directory-birthday{display:none}
 .directory .directory-compact-actions{display:flex;justify-content:center}
 .directory .row-actions{display:none}
}
@container (max-width:610px){
 .directory .directory-purok,.directory .directory-duty{display:none}
 .directory .directory-phone-meta{display:block;color:var(--muted);font-size:var(--font-ui)}
 .directory th:first-child{min-width:0;width:auto}
 .directory .person{gap:7px;min-width:0}
 .directory .person>.avatar{width:30px;height:30px;font-size:11px}
 .directory th,.directory td{padding:9px 6px;white-space:normal}
 .directory .directory-actions{width:52px}
 .directory .directory-actions .icon-btn{min-width:42px;height:44px}
}
@container (max-width:370px){
 .directory .person>.avatar{display:none}
 .directory .badge{max-width:100%;font-size:.82rem}
}
@media(max-width:760px){
 .welcome-card{gap:12px}
 .welcome-card .welcome-art{width:min(100%,390px);height:214px;transform:none}
 .welcome-card .art-center{width:68px;height:68px;left:calc(50% - 34px);top:calc(50% - 34px)}
 .welcome-card .art-center svg{width:31px;height:31px}
 .welcome-card .floating-label{gap:5px;padding:7px 8px;font-size:10px}
 .welcome-card .floating-label svg{width:15px;height:15px}
 .welcome-card .label-care{top:19px;left:4px}
 .welcome-card .label-service{right:4px;bottom:16px}
 .welcome-card .art-avatar{width:29px;height:29px;font-size:11px}
 .welcome-card .art-avatar.a1{top:35px;right:27px}
 .welcome-card .art-avatar.a2{top:104px;right:12px}
 .welcome-card .art-avatar.a3{left:19px;bottom:36px}
 .dashboard-art .o1{width:105px;height:105px}
 .dashboard-art .o2{width:166px;height:166px}
 .dashboard-art .o3{width:230px;height:230px}
}
@media(max-width:420px){
 .kapisanan-table th,.kapisanan-table td{font-size:12px;padding:7px 4px}
 .kapisanan-table .btn.small{padding-inline:7px}
}

.opening-go{font-family:Manrope,Arial,sans-serif;font-weight:800}
.opening-stage .opening-arrow{width:128px;height:128px;overflow:visible;pointer-events:none}
.opening-icon::after{content:"";position:absolute;inset:0;background:url('../public/assets/logo.svg') center/contain no-repeat;opacity:var(--opening-mark-opacity,0)}

.date-field{display:block;position:relative;min-width:0}
.date-field>[data-date-field]{width:100%;padding-inline-end:42px}
.date-field-picker{position:absolute;inset-block:0;inset-inline-end:0;width:40px;display:grid;place-items:center;color:var(--muted)}


.date-field-picker:focus-within{outline:2px solid var(--accent);outline-offset:-3px;border-radius:6px}

.temporary-password{max-width:480px;margin:8vh auto;padding:28px}
.temporary-password form{display:grid;gap:14px;margin-top:18px}
.purok-mini,.overview-tasks,.leader-visits{margin-bottom:18px}
.purok-counts{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 16px}
.purok-counts [aria-pressed=true]{border-color:currentColor;color:var(--accent)}
.directory th:has(select){vertical-align:top}
.directory thead select,.directory-header-search input{display:block;max-width:100%;min-width:0;min-height:30px;margin-top:5px;font:inherit;text-transform:none}
.directory-head-controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}
.directory-header-search summary,.directory-phone-filters summary,.more-duties summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;padding:4px 7px;border:1px solid var(--border);border-radius:6px}
.directory-header-search summary::-webkit-details-marker,.directory-phone-filters summary::-webkit-details-marker,.more-duties summary::-webkit-details-marker{display:none}
.directory-header-search input{width:14ch}
.directory-phone-filters{display:none}
.more-duties{display:inline-block}
.more-duties>span{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.duty-list{align-items:center}
.pull-refresh-indicator{position:fixed;z-index:24;top:70px;left:50%;transform:translateX(-50%);padding:7px 14px;background:var(--surface2);border:1px solid var(--border);border-radius:20px;pointer-events:none}
body:has(.app-shell){overscroll-behavior-y:contain}
@media(max-width:880px){.directory-phone-filters{display:block}.directory-phone-filters>div{display:grid;gap:6px}}
@media(max-width:760px){.temporary-password{margin:20px 12px}.directory .directory-phone-meta .duty-list{padding-left:4px}}

.structured-org,.legacy-org{padding:18px}
.structured-org-section{min-width:0}
.structured-org-section header{margin-bottom:10px}
.structured-org-section h4{margin:0}
.structured-org-section article{padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface2)}
.structured-org-section article>p{margin:4px 0 9px}
.structured-org-groups{display:grid;gap:10px}
.structured-org-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),132px));gap:8px;justify-content:center}
.structured-org-node{text-align:center}
.structured-org-card.org-card{width:132px;max-width:100%;height:145px;min-height:145px;padding:7px;display:grid;grid-template-rows:48px 37px 35px;place-items:center;gap:4px}
.structured-org-card .org-photo{width:46px;height:46px}
.structured-org-card b,.structured-org-card>span:last-child{line-height:1.18;font-size:var(--font-ui)}
.structured-org>.structured-org-section .structured-org-roles{grid-template-columns:repeat(2,minmax(0,132px))}
.structured-org>.structured-org-section .structured-org-node:nth-child(-n+2){grid-column:1/-1;justify-self:center}
.structured-org-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.structured-org-fork{width:50%;margin:12px auto 0;height:18px;border:1px solid var(--border);border-bottom:0;border-radius:7px 7px 0 0}
.missing-leader-list{list-style:none;padding:0}
.missing-leader-list li{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border);padding:8px 0}
#kg-org-print,#kg-r7-print{display:none}
@media(max-width:760px){.structured-org-branches{grid-template-columns:minmax(0,1fr)}.structured-org-fork{display:none}}
@media print{
 body[data-print-mode=org]>:not(#kg-org-print),body[data-print-mode=r7]>:not(#kg-r7-print){display:none!important}
 body[data-print-mode=org] #kg-org-print,body[data-print-mode=r7] #kg-r7-print{display:block!important;color:#142434;background:#fff}
 .org-print-page:not(:last-child){break-after:page}
 .org-print-page header{border-bottom:1px solid #9aabba;margin-bottom:4mm;padding-bottom:2mm}
 .org-print-page h1{font-size:22pt;margin:1mm 0}
 .org-print-page h2{font-size:13pt;margin:0}
 .org-print-page p{font-size:10pt;margin:0 0 2mm}
 .org-print-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm}
 .org-print-page:last-child .org-print-groups{grid-template-columns:repeat(3,minmax(0,1fr))}
 .org-print-groups article{break-inside:avoid;border:1px solid #a7b5bf;padding:2mm}
 .org-print-groups ul{list-style:none;padding:0;margin:0}
 .org-print-groups li{break-inside:avoid;padding:1mm 0;border-top:1px solid #d7dfe5;font-size:10.5pt;line-height:1.18}
 .org-print-groups li span{display:block}
}

.leader-visit-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 18px 18px}
.leader-visit-columns ul{list-style:none;padding:0}
.leader-visit-columns li{padding:8px 0;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px}
.leader-visit-columns small{display:block;color:var(--muted)}
@media(max-width:760px){.leader-visit-columns{grid-template-columns:minmax(0,1fr)}}

.history-list article{padding:9px 0;border-bottom:1px solid var(--border)}
.history-list small{display:block;color:var(--muted)}
.history-list dd{margin:0 0 8px;overflow-wrap:anywhere}

.filter-bar.report-filters-v12{align-items:end}
.report-filters-v12 .btn{align-self:end}
.r7-card{margin-top:14px}
.r7-form{padding:0 18px 18px}
.r7-section,.r7-audit{margin-top:16px}
.r7-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px;margin:8px 0}
.r7-metrics>div{border:1px solid var(--border);border-radius:8px;padding:7px 9px}
.r7-metrics dd{margin:0;font-weight:700}
.r7-caucus{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,122px),1fr));gap:7px}
.r7-form textarea{width:100%;resize:vertical}
.r7-form .row-actions{margin-top:14px}
@media print{
 #kg-r7-print{font-size:9pt}
 #kg-r7-print h1{font-size:17pt;margin:3mm 0}
 #kg-r7-print h3{font-size:10.5pt;margin:1.5mm 0}
 #kg-r7-print h4{font-size:9.5pt;margin:1mm 0}
 #kg-r7-print .r7-section{margin:2mm 0}
 #kg-r7-print .r7-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:1mm;margin:1mm 0}
 #kg-r7-print .r7-metrics>div{padding:1mm;border-color:#96a4af}
 #kg-r7-print table{width:100%;min-width:0;font-size:9pt;color:inherit}
 #kg-r7-print th,#kg-r7-print td{padding:1mm;color:inherit;background:none;border:1px solid #96a4af}
 #kg-r7-print tr,.r7-signers{break-inside:avoid}
 .r7-signers{margin-top:12mm;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4mm}
 .r7-signers>div{border-top:1px solid #657785;padding-top:2mm;text-align:center}
}
/* 1.3.0 System tab (Super Admin) */
.system-heading{font-size:var(--font-body);margin:30px 0 4px}
.usage-row{padding:14px 0}.usage-row progress{display:block;width:100%;height:10px;margin-top:10px;accent-color:var(--accent)}.usage-row progress.warn{accent-color:var(--status-red)}
.system-notice{border:1px solid var(--border);border-left:4px solid var(--status-blue);background:var(--status-blue-bg);border-radius:10px;padding:14px 16px;margin:12px 0}
.system-notice.success{border-left-color:var(--status-green);background:var(--status-green-bg)}.system-notice.error{border-left-color:var(--status-red);background:var(--status-red-bg)}
.system-notice p{margin:6px 0}.system-notice small{color:var(--muted);font-size:var(--font-ui)}
.archive-preview{padding:0;margin:12px 0;align-items:flex-end}.archive-preview-result{padding:14px 16px;border-radius:10px;background:var(--surface2);margin-bottom:8px}
/* 1.3.0 edit-conflict dialog (shown above an open form) */
.conflict-layer{z-index:200}.conflict-layer .modal{max-width:520px}
.conflict-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.conflict-choices>div{padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface2);min-width:0}.conflict-choices small{display:block;color:var(--muted);font-size:var(--font-ui);margin-bottom:6px}.conflict-choices b{overflow-wrap:anywhere}
@media(max-width:520px){.conflict-choices{grid-template-columns:1fr}}
.remember-me{margin:4px 0 18px}
/* 1.3.0 Mga Kaanib page */
.kaanib-filters{margin-bottom:16px}.kaanib-filters select{min-width:150px}
.kaanib-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-bottom:20px}
.kaanib-stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 14px}.kaanib-stat strong{display:block;font-size:22px}.kaanib-stat span{font-size:var(--font-ui);color:var(--muted)}
.kaanib-group{margin-bottom:18px}.kaanib-body{padding:0 20px 18px}
.household{list-style:none;margin:0 0 12px;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden}
.household.indibidwal{border-style:dashed}
.kaanib-row{display:flex;align-items:center;gap:12px;padding:9px 12px 9px 28px;border-top:1px solid var(--border)}.kaanib-row:first-child{border-top:0}
.kaanib-row.household-head{padding-left:12px;background:var(--surface2)}
.kaanib-name{flex:1;min-width:0;overflow-wrap:anywhere}.kaanib-name small{margin-left:8px;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.kaanib-marks{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.kaanib-subhead{font-size:var(--font-ui);margin:16px 0 8px}.kaanib-subhead small{color:var(--muted);font-weight:400;margin-left:6px}
@media(max-width:760px){.kaanib-row{flex-wrap:wrap;padding-left:20px}.kaanib-marks{justify-content:flex-start;width:100%}.kaanib-body{padding:0 14px 14px}}
.kaanib-reason{font-size:12px;margin-left:4px}.kaanib-name>small{margin-left:8px;color:var(--muted)}
/* ---- 1.3.0 shared table tools: Filter panel, sortable headers, popovers ---- */
.table-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.table-tools .search-field{flex:1 1 260px;min-width:0}
.filter-anchor{position:relative}
.filter-btn.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-dark)}
:root[data-theme=dark] .filter-btn.on{color:var(--status-blue)}
.filter-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:12px;font-weight:800}
.filter-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(360px,calc(100vw - 32px));display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 18px 44px #0b1a2a33}
.filter-panel .field{margin:0}.filter-panel select{width:100%}
.filter-panel-head{display:flex;align-items:center;justify-content:space-between;font-size:var(--font-card)}
.filter-panel-head b{font-size:17px}
.filter-panel-actions{display:flex;justify-content:space-between;gap:10px;margin-top:4px}
.filter-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:36px;margin:10px 0 2px;font-size:var(--font-ui)}
.filter-summary .text-link{color:var(--accent);font-weight:700}
@media (max-width:720px){.filter-anchor{position:static}.filter-panel{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;border-radius:20px 20px 0 0;padding:20px 16px 28px;max-height:80vh;overflow:auto}}
.sort-th{display:inline-flex;align-items:center;gap:6px;margin:-6px 0 -6px -8px;padding:6px 8px;min-height:36px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.sort-th svg{opacity:.35}.sort-th.on{color:var(--accent)}.sort-th.on svg{opacity:1}
.sort-th:hover{background:var(--accent-soft)}
:root[data-theme=dark] .sort-th.on{color:var(--status-blue)}
.sort-chips{display:none;flex-wrap:wrap;gap:6px;margin:8px 0}
.sort-chips .sort-th{margin:0;border:1px solid var(--border);font-size:13px;font-weight:700}
@media (max-width:760px){.sort-chips{display:flex}}
.pop-anchor{position:relative;display:inline-flex;vertical-align:middle}
.kg-pop{position:fixed;z-index:60;min-width:220px;max-width:min(320px,calc(100vw - 16px));padding:6px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 18px 44px #0b1a2a38;text-align:left;white-space:normal}
.kg-pop[hidden]{display:none}
.kg-pop.menu{display:flex;flex-direction:column}
.kg-pop.beside{padding:12px 14px}
.kg-pop.beside::before{content:"";position:absolute;left:-7px;top:50%;width:12px;height:12px;background:var(--surface);border-left:1px solid var(--border);border-bottom:1px solid var(--border);transform:translateY(-50%) rotate(45deg)}
.kg-pop.beside.flip-x::before{left:auto;right:-7px;transform:translateY(-50%) rotate(225deg)}
.kg-pop.beside.below::before,.kg-pop.beside.below.flip-x::before{left:calc(var(--arrow-x,24px) - 6px);right:auto;top:-7px;transform:rotate(135deg)}
.kg-pop.beside.below.flip-y::before{top:auto;bottom:-7px;transform:rotate(-45deg)}
.kg-pop h4{margin:0 0 8px;font-size:13px;color:var(--muted)}
.kg-pop .duty-list{flex-wrap:wrap;gap:6px}
.pop-item{display:block;width:100%;text-align:left;border:0;border-radius:10px;background:none;color:var(--text);font:inherit;font-size:var(--font-ui);font-weight:600;padding:11px 12px;cursor:pointer}
.pop-item:hover,.pop-item:focus-visible{background:var(--accent-soft)}
.pop-item.danger{color:var(--status-red)}
.pop-sep{height:1px;margin:4px 6px;background:var(--border)}
.more-duties-btn{min-width:44px;height:34px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface2);color:var(--text);font-weight:800;font-size:13px;cursor:pointer}
.more-duties-btn[aria-expanded=true],.more-duties-btn:hover{border-color:var(--accent)}
.more-btn{width:44px;height:44px}
.stat-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.stat-tile{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border:1px solid var(--border);border-radius:16px;background:var(--surface2);color:var(--text);text-align:left;cursor:pointer;font:inherit}
.stat-tile:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}
.stat-tile[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset;background:var(--accent-soft)}
.stat-tile .tile-name{font-size:14px;font-weight:700;color:var(--muted)}
.stat-tile .tile-num{font-size:30px;font-weight:800;line-height:1}
.stat-tile .tile-num small{margin-left:6px;font-size:13px;font-weight:600;color:var(--muted)}
.tile-line{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:var(--muted)}
.tile-line b{color:var(--text)}
/* 2.4.0: every Purok card in a row is the same height; the number, label, line and bar sit at the same place in each card. */
.stat-tiles{align-items:stretch}.stat-tile .tile-num{display:flex;align-items:baseline;gap:6px}.stat-tile .tile-num small{margin-left:0;white-space:nowrap}.stat-tile .tile-line{margin-top:auto;align-items:flex-start}.stat-tile .tile-line>span{min-width:0}
@media (max-width:760px){.stat-tile .tile-num{flex-direction:column;align-items:flex-start;gap:4px}.stat-tile .tile-line{min-height:36px}}
.tile-bar{height:6px;border-radius:999px;background:var(--border);overflow:hidden;margin-top:-4px}
.tile-bar span{display:block;height:100%;border-radius:999px;background:var(--accent)}
.tile-bar.purple span{background:var(--status-purple)}
.tile-marks{display:flex;flex-wrap:wrap;gap:6px}
.mini-badge{display:inline-flex;align-items:center;min-height:22px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:800;background:var(--status-blue-bg);color:var(--status-blue)}
.mini-badge.amber{background:var(--status-amber-bg);color:var(--status-amber)}.mini-badge.red{background:var(--status-red-bg);color:var(--status-red)}.mini-badge.purple{background:var(--status-purple-bg);color:var(--status-purple)}.mini-badge.green{background:var(--status-green-bg);color:var(--status-green)}.mini-badge.neutral{background:var(--surface2);color:var(--muted);border:1px solid var(--border)}
.card-summary{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:8px 16px;margin-bottom:16px}
.card-summary p{margin:4px 0 0;color:var(--muted)}.card-summary p b{color:var(--text)}
@media (max-width:600px){.stat-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-tile .tile-num{font-size:24px}}
/* ---- 1.3.0 pages: Masterlist, directory tools, Ulatan, Pagpapalaganap ---- */
.directory-tools{margin:4px 0 6px}
.ml-tabs{margin-bottom:14px}
.masterlist-card .card-summary h3{margin:0}
.move-badge{display:flex;width:max-content;max-width:100%;margin-top:6px;font-weight:700}
.directory td small.stage-date,.directory td .stage-date{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.duty-card-grid.compact{grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));margin:0}
.duty-card-grid.compact .duty-card b{margin-left:auto;font-size:18px;color:var(--status-purple)}
.duty-card[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset;background:var(--accent-soft)}
.prospect-note{display:flex;align-items:center;gap:8px;margin:6px 0 10px;font-size:var(--font-ui)}
.purok-card{margin-bottom:18px}
.duty-grid-card{margin-bottom:18px}
.r7-tabs{margin-bottom:14px}
.r7-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface2);font-size:var(--font-ui)}
.r7-status.done{border-color:color-mix(in srgb,var(--status-green) 40%,var(--border));background:var(--status-green-bg)}
.r7-name-lists{display:flex;flex-direction:column;gap:4px;margin:6px 0 10px}
.r7-names{margin:0;font-size:13px;color:var(--muted)}.r7-names b{color:var(--text)}
.r7-log{margin:8px 0 0;padding-left:18px;font-size:13px;color:var(--muted)}.r7-log b{color:var(--text)}
.r7-metrics.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.r7-history .table-tools{margin-top:4px}
.system-backup{display:flex;align-items:flex-start;gap:8px;margin:10px 0;padding:10px 14px;border-radius:12px;background:var(--surface2);border:1px solid var(--border);font-size:var(--font-ui)}
.system-backup.warn{background:var(--status-amber-bg);border-color:color-mix(in srgb,var(--status-amber) 35%,var(--border))}
.settings-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.settings-head h3{margin:0}.settings-head p{margin:6px 0 0}
.greeting-text{min-width:260px;max-width:620px;white-space:normal;line-height:1.45}
.greetings-table tr.is-off td{opacity:.6}
/* ---- 1.3.0 birthday ---- */
.cake-btn{display:inline-grid;place-items:center;width:52px;height:52px;border:1px solid var(--border);border-radius:14px;background:var(--surface2);cursor:pointer;color:var(--text)}
.cake-btn:hover{border-color:var(--accent)}
.kg-cake .candle{fill:#9ad1f5}.kg-cake .tier1{fill:#f6b6c8}.kg-cake .tier2{fill:#f08a9d}.kg-cake .icing{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round}.kg-cake .plate{fill:#c7d3dd}
.kg-cake .flame{fill:#ffb02e;opacity:0;transform-origin:center bottom;transform-box:fill-box}
.kg-cake .smoke path{fill:none;stroke:#b8c4ce;stroke-width:1.6;stroke-linecap:round;opacity:0}
.cake-greeting{display:none;margin:6px 0 0;font-weight:800;color:var(--accent);font-size:16px}
.birthday-card.cake-lit .cake-greeting{display:block;animation:kg-pop-in .35s ease-out}
.birthday-card.cake-lit .kg-cake .flame,.kg-greet-card:not(.blown) .kg-cake .flame{opacity:1;animation:kg-flicker .5s ease-in-out infinite alternate}
.kg-cake .f2{animation-delay:.15s!important}.kg-cake .f3{animation-delay:.3s!important}
.birthday-card.cake-blown .kg-cake .smoke path,.kg-greet-card.blown .kg-cake .smoke path{animation:kg-smoke 1.2s ease-out forwards}
@keyframes kg-flicker{from{transform:scale(1,1) rotate(-3deg)}to{transform:scale(.88,1.12) rotate(3deg)}}
@keyframes kg-smoke{0%{opacity:.9;transform:translateY(4px)}100%{opacity:0;transform:translateY(-10px)}}
@keyframes kg-pop-in{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:none}}
.kg-confetti{position:fixed;inset:0;pointer-events:none;z-index:120;overflow:hidden}
.kg-confetti i{position:absolute;top:-16px;animation:kg-fall linear forwards}
@keyframes kg-fall{to{transform:translate(var(--drift),105vh) rotate(var(--spin))}}
.kg-greet{position:fixed;inset:0;z-index:110;display:grid;place-items:center;padding:16px;background:rgba(6,14,22,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .25s}
.kg-greet.in{opacity:1}
.kg-greet-card{width:min(400px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:26px 22px 22px;border-radius:26px;background:var(--surface);color:var(--text);text-align:center;box-shadow:0 30px 70px #0006;transform:scale(.9);transition:transform .35s cubic-bezier(.2,1.4,.4,1)}
.kg-greet.in .kg-greet-card{transform:none}
.kg-greet-kicker{margin:0;font-size:12px;font-weight:800;letter-spacing:.16em;color:var(--muted)}
.kg-greet-card h2{margin:6px 0 4px;font-size:28px;line-height:1.15}.kg-greet-card h2 span{color:var(--accent)}
.kg-greet-stage{position:relative;height:250px;margin:6px 0}
.kg-blow{position:absolute;left:50%;bottom:0;transform:translateX(-50%);border:0;background:none;padding:0;cursor:pointer;touch-action:none;z-index:2}
.kg-letter{position:absolute;left:50%;bottom:40px;width:min(300px,92%);padding:16px 16px 14px;border-radius:12px;background:#fffaf0;color:#3a2a14;box-shadow:0 10px 28px #0003;transform:translate(-50%,40px) scale(.7);opacity:0;z-index:1;transition:transform .7s cubic-bezier(.2,1.2,.4,1),opacity .4s;text-align:left;font-size:15px;line-height:1.5}
.kg-letter p{margin:0 0 8px}.kg-letter b{display:block;text-align:right;color:#b0405e}
.kg-greet-card.letter .kg-greet-stage{height:auto;min-height:250px}
.kg-greet-card.letter .kg-letter{position:relative;left:auto;bottom:auto;margin:0 auto 10px;transform:none;opacity:1;z-index:3}
.kg-greet-card.letter .kg-blow{position:relative;left:auto;transform:none;margin:0 auto;display:block}
.kg-greet-card.letter .kg-blow svg{width:90px;height:90px}
.kg-greet-hint{margin:4px 0 14px;color:var(--muted);font-size:14px}
.kg-greet-close{width:100%}
.avatar.has-party-hat{overflow:visible}
.avatar.has-party-hat img,.avatar.has-party-hat .avatar-initials{border-radius:50%}
.party-hat{position:absolute;left:50%;top:-58%;width:62%;transform:translateX(-30%) rotate(14deg);pointer-events:none;z-index:2}
.party-hat svg{display:block;width:100%;height:auto}
html[data-birthday=true] .brand-mark{overflow:visible;position:relative}
@media (prefers-reduced-motion:reduce){.kg-cake .flame{animation:none!important}.kg-letter{transition:none}.kg-greet-card{transition:none}}
/* ---- 1.3.0 Kulang na datos, Pagpapalaganap, profile requests ---- */
.missing-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}
.missing-summary .stat-tile{text-decoration:none}
.missing-card{margin-bottom:16px}.missing-card h3{display:flex;align-items:center;gap:8px;margin:0}
.missing-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.missing-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border)}
.missing-list li:first-child{border-top:0}
.missing-list li>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.missing-list small{color:var(--muted)}
.missing-done{display:flex;align-items:center;gap:8px;margin:0;color:var(--status-green);font-weight:700}
.request-changes{display:flex;flex-direction:column;gap:2px;margin-top:4px;font-size:13px}
.request-changes s{color:var(--muted)}
.request-row{align-items:flex-start!important}
@media (max-width:600px){.missing-list li{flex-direction:column;align-items:flex-start}}
.mission-card .directory-tabs{margin-bottom:12px}
.pop-names{margin:0;line-height:1.6}
.mission-mine{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.mission-person{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface2)}
.mission-person .mini-badge{width:max-content}.mission-person small{color:var(--muted)}
.form-subhead{margin:16px 0 6px;font-size:15px}
.kg-pop[hidden]{display:none!important}
.purok-card,.duty-grid-card,.missing-card{padding:20px 22px}
.directory-card>.directory-tools{padding:16px 20px 2px}
.directory-card>.prospect-note,.directory-card>.sort-chips{margin-left:20px;margin-right:20px}
.masterlist-card>.card-summary{padding:18px 20px 0;margin-bottom:0}
.card>.table-tools{margin:14px 20px 0}.card>.filter-summary{margin-left:20px;margin-right:20px}
.mission-card>p.muted{margin:12px 20px 0}
.mission-card>.directory-tabs,.masterlist-card>.directory-tabs{margin-bottom:0}
.mission-mine{padding:16px 20px 20px}
.directory-card>.empty,.mission-card>.empty{margin:20px}
.duty-grid-card{padding:0}.duty-grid-card .duty-card-grid{padding:0 22px 22px}
.kg-blow:focus{outline:none}.kg-blow:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:18px}
/* 1.4.0 Sidebar in groups (KADIWA, LOKAL, ULAT), no care card. The list scrolls
   on short screens instead of squeezing the buttons. */
.sidebar nav{display:flex;flex-direction:column;gap:2px;max-height:none;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin:0 -6px;padding:0 6px}
.sidebar nav button{height:auto;min-height:40px;flex:none;padding-block:8px}
.sidebar nav .sidebar-section-label{display:block;margin:16px 0 5px;font-size:11px;font-weight:700;letter-spacing:1.2px}
.sidebar nav .sidebar-section-label:first-child{margin-top:0}
.sidebar nav button.active:before{left:-10px}
.sidebar .care-card{display:none}
@media(max-height:640px){.sidebar nav .sidebar-section-label{display:block;margin-top:10px}.sidebar nav button{min-height:36px;padding-block:6px}}
@media(min-width:761px){:root[data-sidebar=collapsed] .sidebar nav .sidebar-section-label{display:block;height:1px;font-size:0;padding:0;margin:9px 8px;background:var(--border)}:root[data-sidebar=collapsed] .sidebar nav .sidebar-section-label:first-child{display:none}}
/* 1.4.0 Masterlist: Table / Sambahayan switch and the household view */
.view-switch{display:inline-flex;border:1px solid var(--border);border-radius:10px;padding:3px;background:var(--surface2);gap:2px}
.view-switch button{border:0;background:transparent;color:var(--muted);font-size:var(--font-ui);font-weight:600;padding:7px 14px;border-radius:7px;min-height:34px}
.view-switch button.active{background:var(--surface);color:var(--accent);box-shadow:0 1px 3px #0000001a}
.view-switch button:disabled{opacity:.5}
.ml-households{padding:8px 20px 20px}
.ml-households .kaanib-group{margin:0 0 18px}
.kaanib-unit{font-size:var(--font-body);margin:14px 0 10px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.kaanib-unit small{font-size:var(--font-ui);font-weight:400;color:var(--muted)}
.kaanib-row .kaanib-name .move-badge{margin-left:8px}
.kaanib-row .kg-actions,.kaanib-row>.kg-pop-wrap{flex:none}
.ml-note{margin:12px 20px 0}
@media(max-width:760px){.ml-households{padding:6px 14px 14px}.masterlist-card .view-switch{width:100%}.masterlist-card .view-switch button{flex:1}}
@media(max-width:760px){.directory-tabs.ml-tabs{flex-wrap:nowrap;overflow-x:auto;gap:18px;scrollbar-width:none}.directory-tabs.ml-tabs button{flex:none;white-space:nowrap}}
/* 1.4.0 in-app updater */
.update-status{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding:12px 14px;border-radius:10px;background:var(--surface2);font-size:var(--font-ui)}
.update-status[hidden]{display:none}
.update-status progress{width:100%;height:8px;accent-color:var(--accent)}
/* 1.4.0 duplicate warning */
.duplicate-warning{border:1px solid var(--status-amber,#e9b64d);background:color-mix(in srgb,#e9b64d 14%,var(--surface));border-radius:10px;padding:12px 14px;margin:0 0 14px;font-size:var(--font-ui)}
.duplicate-warning ul{margin:6px 0;padding-left:18px}.duplicate-warning small{color:var(--muted);margin-left:6px}.duplicate-warning p{margin:4px 0 0}
.move-people{display:grid;gap:6px}.move-people small{color:var(--muted);margin-left:6px}
/* 1.4.0 Masterlist kada Purok (print / PDF) */
#kg-purok-print{display:none}
@media print{
 body[data-print-mode=purok]>:not(#kg-purok-print){display:none!important}
 body[data-print-mode=purok] #kg-purok-print{display:block!important;color:#142434;background:#fff;font-size:9.5pt}
 .pp-page:not(:last-child){break-after:page}
 .pp-page header{border-bottom:1px solid #9aabba;margin-bottom:3mm;padding-bottom:2mm}
 .pp-page header p{margin:0;font-size:9pt}.pp-page h1{font-size:20pt;margin:1mm 0}
 .pp-unit{margin:0 0 4mm;break-inside:auto}.pp-unit h2,.pp-soon h2{font-size:11.5pt;margin:2mm 0 1mm}.pp-unit h2 small{font-weight:400;font-size:9pt;color:#4a5b69}
 .pp-page table{width:100%;border-collapse:collapse;min-width:0}
 .pp-page th,.pp-page td{border:1px solid #b4c0c9;padding:1mm 1.5mm;text-align:left;color:inherit;background:none;font-size:9pt}
 .pp-page tr{break-inside:avoid}.pp-head td:first-child{font-weight:700}.pp-indent{display:inline-block;width:4mm}
 .pp-sub td{font-weight:700;background:#eef2f5!important}
 .pp-soon ul{margin:0;padding-left:5mm}
}
/* 1.4.0 top-bar search results */
.global-search{position:relative}
.global-results{position:absolute;top:calc(100% + 8px);left:0;width:min(420px,calc(100vw - 32px));max-height:min(70vh,520px);overflow:auto;z-index:60;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow),0 10px 30px #0b20331f;padding:6px}
.global-results[hidden]{display:none}
.search-section{padding:4px 0}.search-section+.search-section{border-top:1px solid var(--border)}
.search-label{display:block;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--muted);padding:6px 10px 2px}
.search-hit{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:8px;color:var(--text)}
.search-hit:hover,.search-hit:focus-visible{background:var(--accent-soft);outline:none}
.search-hit small,.search-more,.search-note{font-size:12px;color:var(--muted)}.search-more{display:block;padding:2px 10px 6px}.search-note{margin:8px 10px;display:flex;gap:6px;align-items:center}
@media(max-width:760px){.global-results{position:fixed;top:64px;left:12px;right:12px;width:auto}}
[data-search-toggle]{display:none}
@media(max-width:1050px){
 .topbar{position:relative}
 [data-search-toggle]{display:inline-flex}
 .topbar.search-open .global-search{display:flex;align-items:center;gap:8px;position:absolute;left:12px;right:12px;top:calc(100% + 6px);max-width:none;margin:0;z-index:61;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:4px 12px;box-shadow:var(--shadow)}
 .topbar.search-open .global-search input{flex:1;min-width:0}
 .topbar.search-open .global-results{position:absolute;top:calc(100% + 6px);left:0;right:0;width:auto}
}
/* 1.4.0 bottom bar on phones */
.bottom-bar{display:none}
@media(max-width:760px){
 .bottom-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:35;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(10px);border-top:1px solid var(--border);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
 .bottom-bar button{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;color:var(--muted);font-size:11px;font-weight:600;padding:6px 2px;min-height:52px;border-radius:10px}
 .bottom-bar button.active{color:var(--accent);background:var(--accent-soft)}
 .bottom-bar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .main-shell{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
 .sidebar-open .bottom-bar{display:none}
}
@media print{.bottom-bar{display:none!important}}
@media(max-width:760px){.toast{bottom:calc(78px + env(safe-area-inset-bottom))}}
/* 1.4.0 offline banner */
.offline-banner{display:flex;gap:10px;align-items:flex-start;margin:0 0 18px;padding:12px 16px;border-radius:12px;border:1px solid color-mix(in srgb,#e9b64d 60%,var(--border));background:color-mix(in srgb,#e9b64d 14%,var(--surface));font-size:var(--font-ui);line-height:1.5}
.offline-banner svg{flex:none;margin-top:2px;color:#b7811b}
@media(min-width:1051px){.global-results{left:auto;right:0}}
@media(max-width:1050px){.topbar.search-open .global-search{width:auto!important;min-width:0}}
/* 1.4.3 phones: secondary columns move into the line under the name */
@media(max-width:760px){.directory .col-wide{display:none}.directory td small.directory-phone-meta{display:block}}
@container (max-width:610px){.directory .col-wide{display:none}}
@media(max-width:760px){
 .kaanib-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:6px;align-items:center}
 .kaanib-row .kaanib-name{grid-column:1}
 .kaanib-row .kaanib-marks{grid-column:1;width:auto}
 .kaanib-row>.pop-anchor,.kaanib-row>.btn{grid-column:2;grid-row:1/span 2}
 .kaanib-name>small{margin-left:6px}
}
/* 1.4.3: keep screen-reader labels inside a scrolling table (they made the page scroll sideways) */
.table-scroll{position:relative}
.greetings-table th:first-child,.greetings-table td:first-child{min-width:0;width:56px}
@media(max-width:760px){
 /* Activity log: date under the text instead of a narrow column */
 .audit-list .activity-row{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:start}
 .audit-list .activity-row>time{grid-column:2;font-size:12px;color:var(--muted);margin-top:2px}
 .breadcrumbs>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
.topbar-actions [data-refresh-control]{white-space:nowrap}
.breadcrumbs .topbar-brand{display:none}
.people-picker p.muted{margin:0;padding:12px 14px}

/* 1.4.6 member detail: one footer, status actions small on the left */
.member-detail-footer .mdf-left,.member-detail-footer .mdf-right{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@media (max-width:760px){.member-detail-footer{flex-direction:column;align-items:stretch;gap:10px}.member-detail-footer .modal-spacer{display:none}.member-detail-footer .mdf-right .btn{flex:1 1 auto;justify-content:center;white-space:nowrap}}
/* 1.4.6: tab rows scroll sideways only, with no visible scroll bar (Windows showed a
   vertical one because the active underline sat 1px below the row). */
.directory-tabs{overflow-y:hidden;scrollbar-width:none}.directory-tabs::-webkit-scrollbar{display:none}
.directory-tabs button.active:after{bottom:0}
/* 1.4.6: the visit status filter uses the normal text size. */
.visit-grid .card-heading select.visit-status-filter{font-size:var(--font-ui);height:40px;max-width:none;min-width:150px;width:auto}

/* 1.4.6 Kadiwa Go calendar: days → months → years */
.date-field-picker{border:0;background:none;padding:0;cursor:pointer;border-radius:8px}.date-field-picker:hover{color:var(--accent)}.date-field-picker:disabled{cursor:default;opacity:.5}
.date-field-picker:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.date-pop{position:fixed;z-index:400;width:304px;max-width:calc(100vw - 16px);padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 18px 44px #0b1a2a45;font-size:var(--font-ui)}
.date-pop[hidden]{display:none}
.date-pop button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;border-radius:9px}
.date-pop button:disabled{opacity:.32;cursor:default}
.date-pop button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.dp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.dp-title{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;font-weight:700!important;font-size:calc(var(--font-ui) + 1px)!important}
.dp-title:not(:disabled):hover{background:var(--surface2)}.dp-title:disabled{opacity:1!important}
.dp-caret{color:var(--muted);font-size:11px}
.dp-nav{display:flex;gap:2px}.dp-nav button{width:34px;height:34px;font-size:20px!important;line-height:1;color:var(--muted)!important}.dp-nav button:hover{background:var(--surface2);color:var(--text)!important}
.dp-grid{display:grid;gap:2px}.dp-days{grid-template-columns:repeat(7,1fr)}.dp-months,.dp-years{grid-template-columns:repeat(4,1fr);gap:6px;padding:4px 0}
.dp-wd{text-align:center;color:var(--muted);font-size:12px;padding:4px 0}
.dp-day{height:36px;text-align:center}.dp-cell{height:48px;font-weight:600!important}
.dp-day:not(:disabled):hover,.dp-cell:not(:disabled):hover{background:var(--surface2)}
.dp-day.other,.dp-cell.other{color:var(--muted)!important}
.dp-day.today,.dp-cell.today{box-shadow:inset 0 0 0 1px var(--accent)}
.date-pop .selected{background:var(--accent)!important;color:#fff!important;font-weight:700!important}
:root[data-theme=dark] .date-pop .selected{color:#0b2233!important}
.dp-foot{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}
.dp-foot button{padding:6px 8px;color:var(--accent)!important;font-weight:700!important}

/* 1.4.6 party blower on the logo (drawn by birthday.js) */
.kg-blower{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}

/* 1.4.6 easter eggs */
.kg-egg,.kg-night{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:16px;opacity:0;transition:opacity .25s}
.kg-egg.in,.kg-night.in{opacity:1}
.kg-egg{background:rgba(6,14,22,.45);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.kg-egg-card{position:relative;width:min(340px,100%);padding:22px 20px 20px;border-radius:20px;border:1px solid var(--border);background:var(--surface);color:var(--text);text-align:center;box-shadow:0 24px 50px #0006}
.kg-egg-card h2{margin:4px 0 6px;font-size:22px}.kg-egg-card p{margin:0 0 14px;color:var(--muted)}
.kg-egg-stage{position:relative;height:130px}
.kg-egg-logo{position:absolute;left:50%;top:16px;width:84px;height:84px;margin-left:-42px;filter:drop-shadow(0 14px 16px rgba(23,161,215,.35));animation:kg-egg-hop 1.15s cubic-bezier(.3,.7,.4,1) .15s both}
.kg-egg-shadow{position:absolute;left:50%;bottom:6px;width:64px;height:10px;margin-left:-32px;border-radius:50%;background:#0005;animation:kg-egg-shadow 1.15s ease .15s both}
@keyframes kg-egg-hop{0%{transform:translateY(40px) scale(.6);opacity:0}25%{transform:translateY(-34px) rotate(-120deg) scale(1);opacity:1}55%{transform:translateY(-42px) rotate(-300deg)}80%{transform:translateY(4px) rotate(-360deg) scale(1.08,.92)}100%{transform:none}}
@keyframes kg-egg-shadow{0%,55%{transform:scale(.55);opacity:.4}80%{transform:scale(1.1)}100%{transform:none;opacity:1}}
.kg-egg-confetti{position:fixed;inset:0;overflow:hidden;pointer-events:none}
.kg-egg-confetti i{position:absolute;top:-20px;width:8px;height:14px;border-radius:2px;animation:kg-confetti 2.4s linear both}
@keyframes kg-confetti{0%{transform:translate(0,0) rotate(0)}100%{transform:translate(var(--drift),105vh) rotate(var(--rot));opacity:.9}}
.kg-night{background:linear-gradient(180deg,#081120 0%,#0e1b2b 65%,#121b24 100%);color:#e8eef4;place-items:end center;padding:16px 16px max(22px,env(safe-area-inset-bottom))}
.kg-night-sky{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.kg-night-sky i{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff;animation:kg-twinkle 3s ease-in-out infinite alternate}
@keyframes kg-twinkle{to{opacity:.15}}
.kg-night-moon{position:absolute;right:16%;top:14%;width:110px;height:110px;border-radius:50%;box-shadow:-24px 12px 0 0 #f5e6a8;transform:rotate(-20deg)}
.kg-night-glow{position:absolute;right:calc(16% - 30px);top:calc(14% - 20px);width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(245,230,168,.2),transparent 65%)}
.kg-night-clock{position:absolute;left:24px;top:max(28px,env(safe-area-inset-top));font-weight:800;font-size:46px;line-height:1.1}.kg-night-clock small{display:block;font-size:12px;letter-spacing:2px;color:#93a6b8}
.kg-night-sheet{position:relative;width:min(420px,100%);padding:22px 20px 20px;border-radius:22px;border:1px solid #2c3c4c;background:#1b2733;text-align:center;box-shadow:0 -10px 40px #0008;transform:translateY(20px);transition:transform .3s}
.kg-night.in .kg-night-sheet{transform:none}
.kg-night-z{color:#4bb4e8;font-weight:800;letter-spacing:4px;font-size:13px}
.kg-night-sheet h2{margin:6px 0;font-size:21px;color:#e8eef4}.kg-night-sheet p{margin:0 0 16px;color:#93a6b8}
.kg-night-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.kg-night-sheet .btn:not(.primary){background:transparent;color:#e8eef4;border-color:#2c3c4c}
@media (prefers-reduced-motion:reduce){.kg-egg-logo,.kg-egg-shadow,.kg-night-sky i{animation:none}.kg-egg-confetti{display:none}}

/* 1.4.6 Face to face / Online pagdadalaw */
.visit-filters{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.visit-mode{border:0;padding:0;margin:0}.visit-mode legend{padding:0;margin-bottom:6px;font-size:var(--font-ui);color:var(--muted)}
.segmented-choice{display:inline-flex;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface2)}
.segmented-choice label{position:relative;cursor:pointer}.segmented-choice input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.segmented-choice span{display:block;padding:9px 16px;font-weight:600;font-size:var(--font-ui)}
.segmented-choice input:checked+span{background:var(--accent);color:#fff}
:root[data-theme=dark] .segmented-choice input:checked+span{color:#0b2233}
.segmented-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:-3px}
.visit-badges{display:inline-flex;gap:6px;flex-wrap:wrap}
.online-reason{display:block;color:var(--muted)}

/* 1.4.6 R7-D-06 / D-06a from the pagdadalaw */
.r7w-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.r7w-note{margin:0 24px 14px}.r7w-sub{margin:20px 24px 6px}.r7-card>p:last-child{margin:0 24px 22px}
@media(max-width:760px){.r7w-note{margin:0 16px 12px}.r7w-sub{margin:16px 16px 6px}.r7-card>p:last-child{margin:0 16px 18px}}

/* 1.4.6 approve only some requested changes */
.approve-fields{display:grid;gap:8px;margin:8px 0 14px}
.approve-field{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer}
.approve-field input{margin-top:3px;width:18px;height:18px;accent-color:var(--accent)}
.approve-field span{display:grid;gap:2px}.approve-field small{color:var(--muted)}

/* 1.4.6 pagdadalaw waiting to be sent */
.pending-card{margin-bottom:18px;border-color:var(--status-amber,#d69a27)}
.pending-list{list-style:none;margin:0;padding:0 24px 18px;display:grid;gap:8px}
.pending-list li{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--border);border-radius:10px}
.pending-list span{display:grid;gap:2px}.pending-list small{color:var(--muted)}.pending-list .pending-error{color:var(--status-red,#d1697a)}
.pending-list .row-actions{display:flex;gap:6px}
@media(max-width:760px){.pending-list{padding:0 16px 14px}}

.kg-anniv-dove{font-size:56px;line-height:1;margin:6px 0 10px;animation:kg-dove 2.4s ease-in-out infinite alternate}
@keyframes kg-dove{to{transform:translateY(-8px) rotate(-6deg)}}
@media (prefers-reduced-motion:reduce){.kg-anniv-dove{animation:none}}

/* 1.4.6 app version and update button */
.app-version-row{display:grid;gap:2px;margin:18px 0 6px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface2)}
.app-version-row span{font-size:12px;color:var(--muted)}.app-version-row small{color:var(--muted)}
[data-update-pill]{white-space:nowrap}
@media(max-width:760px){.update-pill>span{display:none}.update-pill{padding-inline:10px;gap:5px}}
@media(max-width:760px){.topbar:has([data-update-pill]) .breadcrumbs{display:none}}

/* 1.4.7 announcement read receipts */
.reads-list{list-style:none;margin:6px 0 16px;padding:0;display:grid;gap:6px}
.reads-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border);border-radius:10px}
.reads-list span{display:grid}.reads-list small{color:var(--muted)}

/* 1.4.7 more accent colors (light, then dark with dark text on buttons) */
.btn.primary{color:var(--on-accent,#fff)}
[data-accent=green]{--accent:#1b8046;--accent-dark:#156a3a;--accent-soft:#e8f6ee}
:root[data-theme=dark][data-accent=green]{--accent:#4cc27f;--accent-dark:#2f9c5f;--accent-soft:#173d2a;--on-accent:#0b2233}
[data-accent=rose]{--accent:#c2416b;--accent-dark:#a33259;--accent-soft:#fcecf2}
:root[data-theme=dark][data-accent=rose]{--accent:#f283a6;--accent-dark:#d65f86;--accent-soft:#4a2333;--on-accent:#0b2233}
[data-accent=orange]{--accent:#b8560f;--accent-dark:#98450a;--accent-soft:#fdf0e6}
:root[data-theme=dark][data-accent=orange]{--accent:#f4a261;--accent-dark:#d9823e;--accent-soft:#4a3018;--on-accent:#0b2233}
[data-accent=red]{--accent:#c0392b;--accent-dark:#a02e22;--accent-soft:#fcebe9}
:root[data-theme=dark][data-accent=red]{--accent:#f27b6e;--accent-dark:#d65a4d;--accent-soft:#4a2522;--on-accent:#0b2233}
[data-accent=indigo]{--accent:#4f5bd5;--accent-dark:#3e49b8;--accent-soft:#eef0fd}
:root[data-theme=dark][data-accent=indigo]{--accent:#8f98f5;--accent-dark:#6e78e0;--accent-soft:#2c3060;--on-accent:#0b2233}
[data-accent=gold]{--accent:#946800;--accent-dark:#7a5600;--accent-soft:#fbf4e0}
:root[data-theme=dark][data-accent=gold]{--accent:#e8bf4f;--accent-dark:#c99d2c;--accent-soft:#463a17;--on-accent:#0b2233}
[data-accent=slate]{--accent:#4a6076;--accent-dark:#3b4e61;--accent-soft:#edf1f5}
:root[data-theme=dark][data-accent=slate]{--accent:#a3b6ca;--accent-dark:#8197ad;--accent-soft:#2c3a48;--on-accent:#0b2233}
/* accent picker */
.accent-swatches{display:flex;flex-wrap:wrap;gap:8px;max-width:400px;justify-content:flex-end}
.accent-swatches label{position:relative;cursor:pointer}
.accent-swatches input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.accent-swatches span{display:block;width:30px;height:30px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 2px #0001}
.accent-swatches input:checked+span{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--sw)}
.accent-swatches input:focus-visible+span{outline:2px solid var(--text);outline-offset:4px}
/* 1.4.7 member message of the day (hold the logo) */
.brand-mark{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.kg-hold-ring{position:absolute;inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px);pointer-events:none;z-index:3;overflow:visible}
.kg-hold-ring circle{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transform:rotate(-90deg);transform-origin:50% 50%}
.kg-hold-ring.go circle{stroke-dashoffset:0;transition:stroke-dashoffset .9s linear}
.kg-daily .kg-egg-card{padding-top:44px;margin-top:30px}
.kg-daily-logo{position:absolute;left:50%;top:-30px;width:60px;height:60px;margin-left:-30px;border-radius:16px;transform:rotate(-8deg);box-shadow:0 10px 22px rgba(8,126,192,.35)}
.kg-daily-kicker{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--accent)}
.kg-daily-msg{font-size:17px!important;font-weight:700;line-height:1.45;color:var(--text)!important;margin:14px 2px 10px!important}
.kg-daily-date{font-size:12px!important}

/* 1.4.8 Settings: accent dropdown, segmented choices; phone: grouped list + sub-pages */
.accent-select{display:inline-flex;align-items:center;gap:10px;min-width:170px;padding:9px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.accent-select svg{margin-left:auto;color:var(--muted)}
.accent-dot{width:18px;height:18px;border-radius:50%;background:var(--sw);flex:none;box-shadow:inset 0 0 0 1px #0002}
:root[data-theme=dark] .accent-dot{filter:brightness(1.35) saturate(.95)}
.accent-option{display:flex!important;align-items:center;gap:12px}.accent-option svg{margin-left:auto;color:var(--accent)}
.settings-seg span{padding:8px 14px}
.settings-home,.settings-back{display:none}
@media (max-width:760px){
 .settings-layout{display:block}
 .settings-layout:not(.settings-in-section) .settings-home{display:block}
 .settings-layout:not(.settings-in-section) .settings-menu,.settings-layout:not(.settings-in-section) .settings-content{display:none}
 .settings-in-section .settings-menu{display:none}
 .settings-in-section .settings-back{display:inline-flex;align-items:center;gap:2px;margin:0 0 12px -6px;padding:6px 8px;border:0;background:none;color:var(--accent);font:inherit;font-weight:600;cursor:pointer;border-radius:8px}
 .settings-me{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}
 .settings-me .settings-me-text{display:grid;flex:1;min-width:0}.settings-me small{color:var(--muted)}.settings-me>svg{color:var(--muted)}
 .settings-group{margin:20px 6px 8px;font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}
 .settings-list{border:1px solid var(--border);border-radius:16px;background:var(--surface);overflow:hidden}
 .settings-row{display:flex;align-items:center;gap:14px;width:100%;padding:13px 16px;border:0;border-top:1px solid var(--border);background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
 .settings-row:first-child{border-top:0}
 .settings-row-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent);flex:none}
 .settings-row-label{flex:1;font-weight:500}.settings-row small{color:var(--muted);max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-row>svg{color:var(--muted);flex:none}
 .settings-row-badge{min-width:22px;padding:2px 7px;border-radius:999px;background:var(--status-red,#d1697a);color:#fff;font-size:12px;font-weight:700;text-align:center}
 .settings-version{margin:18px 0 0;text-align:center;color:var(--muted);font-size:12px}
 .settings-content .setting-row{flex-direction:column;align-items:stretch;gap:10px}
 .settings-seg{display:flex}.settings-seg label{flex:1}.settings-seg span{text-align:center;padding:10px 4px}
 .accent-select{width:100%}
}

.settings-seg{flex:none}
.kg-pop:not([hidden]):has(.accent-option){display:grid;grid-template-columns:1fr 1fr;gap:2px;width:min(320px,calc(100vw - 16px))}
.accent-option{color:var(--text)!important;background:none}
.accent-option:hover,.accent-option:focus-visible{background:var(--surface2)!important;color:var(--text)!important}
.accent-option[aria-checked=true]{background:var(--accent-soft)!important}
.setting-row>.settings-seg{width:auto!important;min-width:0!important}
@media (max-width:760px){.setting-row>.settings-seg{width:100%!important}}
.settings-seg{display:flex}.settings-seg label{flex:1}.settings-seg span{text-align:center}
@media (min-width:761px){.setting-row>.settings-seg{width:340px!important}.setting-row .accent-select{width:340px}}
/* 1.4.9: the reason field shows only for Online; the choice fills the row */
[data-online-reason][hidden]{display:none!important}
.visit-mode .segmented-choice{display:flex;width:100%}.visit-mode .segmented-choice label{flex:1}.visit-mode .segmented-choice span{text-align:center}

/* 1.4.9 phone fixes */
@media (max-width:760px){.filter-btn .filter-label{display:none}.filter-btn{gap:4px;padding-inline:10px}}
select:not([multiple]){appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8fa0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;padding-right:42px!important}
.check-label.special-duty{background:none!important;border:0!important;font-weight:700;padding-left:0!important;padding-right:0!important}
/* 1.4.9 top bar stays on top; on phones it tucks away while scrolling down */
.main-shell>.topbar{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:transform .25s ease,box-shadow .2s ease}
html.bar-scrolled .main-shell>.topbar{box-shadow:0 6px 18px rgb(10 30 50/.08)}
html{scroll-padding-top:84px}
@media(max-width:760px){html.bar-tucked .main-shell>.topbar{transform:translateY(-100%);box-shadow:none}}
@media(prefers-reduced-motion:reduce){.main-shell>.topbar{transition:none}}
/* 2.0.0 position title and role tag */
.position-chip{display:inline-block;margin:3px 6px 2px 0;padding:2px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);font-size:12px;font-weight:700;line-height:1.5;width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.role-chip{display:inline-block;padding:1px 8px;border-radius:6px;border:1px solid var(--border);color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.3px;margin-left:4px;vertical-align:1px}
.settings-me .role-chip{margin:0 4px 0 0}
.account-link small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
/* 2.0.0 DO tag raised at the end of the name, like a price tag */
.name-end{white-space:nowrap}
.district-tag{position:relative;top:-.6em;margin-inline-start:3px;padding:1px 6px 1px 8px;font-size:.6em;line-height:1.35;vertical-align:baseline;letter-spacing:.3px;font-weight:800}
/* 2.0.0 reminders */
.remind-card{margin-bottom:16px}.remind-card .purok-counts{margin-top:12px}
.leader-reminder{display:flex;gap:12px;align-items:flex-start;margin:0 0 14px;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);color:var(--text)}
.leader-reminder svg{color:var(--accent);flex:none;margin-top:2px}.leader-reminder div{display:grid;gap:2px}.leader-reminder span{color:var(--muted);font-size:var(--font-ui)}
.r7m-table th small{display:block;font-weight:500;color:var(--muted);font-size:11px;margin-top:2px;white-space:nowrap}
.r7m-table td,.r7m-table th{text-align:center}.r7m-table td:first-child,.r7m-table th:first-child{text-align:left}
.r7m-table tfoot td{font-weight:800;border-top:2px solid var(--border)}
.r7m-actions{margin:10px 0 4px}
.toast{display:flex;align-items:center;gap:12px}.toast-action{flex:none;border:0;background:transparent;color:var(--accent);font:inherit;font-weight:800;padding:4px 6px;border-radius:8px;cursor:pointer}
.toast-action:hover{background:color-mix(in srgb,var(--accent) 12%,transparent)}
/* 2.0.0 new opening: the G drawn as a stroke, and the white copy of the K */
.opening-gstroke{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;opacity:0}
.opening-white{position:absolute;inset:0;pointer-events:none;clip-path:inset(50%)}
.r7m-actions{display:flex;justify-content:flex-end;gap:8px;padding-inline:24px}
/* 2.0.0 Skip intro on every device */
.opening-skip{position:fixed;top:calc(env(safe-area-inset-top,0px) + 16px);right:calc(env(safe-area-inset-right,0px) + 18px);z-index:5;padding:8px 12px;border-radius:999px;font-weight:700;font-size:var(--font-ui);color:var(--muted);background:color-mix(in srgb,var(--surface) 70%,transparent);backdrop-filter:blur(6px)}
.opening-skip:hover{color:var(--accent)}

/* 2.0.1: "Kadiwa Go by Octagram", small and quiet. */
.oc{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle}.oc img{width:14px;height:14px;display:block}.oc b{font-weight:800;color:var(--text)}
.opening-credit{position:absolute;left:0;right:0;bottom:calc(10px + env(safe-area-inset-bottom));display:flex;justify-content:center;font-size:12px;color:var(--muted);opacity:0;transition:opacity .9s ease .25s;pointer-events:none}.opening-page.credit-in .opening-credit{opacity:.85}
/* 2.0.1: long names stay on one line ("…"); the DO tag always shows; full name on hover/profile. */
.name-line{display:inline-flex;align-items:baseline;min-width:0;max-width:100%;vertical-align:bottom}.name-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.name-line .district-tag{flex:none}
.directory .person{min-width:0;max-width:100%}.directory .person>span{min-width:0;flex:1 1 auto}.directory .person b{display:flex;min-width:0;max-width:100%}
.directory th:first-child{width:36%}@media(max-width:760px){.directory th:first-child{width:auto}.directory td .status-badge{white-space:nowrap}}
.my-profile .name-text{white-space:normal}

/* 2.0.1: Aking Sakop (leaders). */
.sakop{padding:18px}
.sakop-hero{display:flex;align-items:center;gap:14px;margin-bottom:14px}.sakop-hero h3{margin:0;font-size:18px}.sakop-hero small{display:block;color:var(--muted);margin-top:2px}.sakop-count{margin:4px 0 0;color:var(--muted);font-size:var(--font-ui)}.sakop-count b{color:var(--text);font-size:16px}
.sakop-ring{width:64px;height:64px;flex:none}.sakop-ring .track{fill:none;stroke:var(--surface2);stroke-width:7}.sakop-ring .bar{fill:none;stroke:var(--accent);stroke-width:7;stroke-linecap:round;transition:stroke-dashoffset .6s ease}.sakop-ring text{fill:var(--text);font-size:14px;font-weight:800;text-anchor:middle}
.sakop-sect{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 2px 10px}.sakop-sect b{font-size:var(--font-ui)}
.sakop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}@media(min-width:761px){.sakop-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
.sakop-tile{background:var(--surface2);border:1px solid var(--border);border-radius:11px;padding:7px 6px 6px;text-align:center;color:var(--text);cursor:pointer;min-width:0}.sakop-tile b{display:block;font-size:13px}.sakop-tile small{display:block;font-size:11px;color:var(--muted);margin-top:1px}
.sakop-tile .mini{display:block;height:3px;border-radius:2px;background:var(--border);margin-top:6px;overflow:hidden}.sakop-tile .mini i{display:block;height:100%;background:var(--accent)}.sakop-tile.done .mini i{background:var(--status-green)}
.sakop-tile[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--surface2))}
.sakop-strip{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;gap:10px}.sakop-strip .t{flex:1;min-width:0}.sakop-strip b{display:block;font-size:14px}.sakop-strip small{color:var(--muted);font-size:12px}
.sakop-tabs{display:flex;gap:6px;margin:14px 0 4px}.sakop-tabs button{flex:1;padding:8px;border-radius:10px;font-weight:700;font-size:13px;color:var(--muted);background:var(--surface2);border:0;cursor:pointer}.sakop-tabs button[aria-selected=true]{color:var(--text);background:color-mix(in srgb,var(--accent) 14%,var(--surface2))}
.sakop-list{list-style:none;margin:0;padding:0}.sakop-row{display:flex;align-items:center;gap:11px;padding:10px 0;border-top:1px solid var(--border)}.sakop-row:first-child{border-top:0}.sakop-row .t{flex:1;min-width:0}.sakop-row b{display:block;font-size:15px;min-width:0}.sakop-row small{color:var(--muted);font-size:12px}.sakop-row .row-actions{flex:none;display:flex;gap:6px;align-items:center}
/* 2.0.1: pickers (Pagdadalaw and Misyon). */
.visit-scope{margin:0 0 12px;color:var(--muted);font-size:var(--font-ui)}.visit-scope b{color:var(--accent)}
.pick{margin-top:10px;min-width:0}.pick-search{display:flex;width:100%;min-width:0}
.pick-groups{display:flex;gap:7px;overflow-x:auto;margin:10px 0 2px;padding-bottom:2px;scrollbar-width:none}.pick-group{flex:none;padding:7px 13px;border-radius:999px;border:1px solid var(--border);background:var(--surface2);color:var(--text);font-weight:800;font-size:13px;cursor:pointer}.pick-group[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.pick-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12.5px;margin:8px 2px 6px}
.pick-list{border:1px solid var(--border);border-radius:14px;overflow:hidden;max-height:min(46dvh,420px);overflow-y:auto}.pick-list>.muted{padding:12px 14px;margin:0}
.pick-head{padding:6px 13px;background:var(--surface2);font-size:11.5px;font-weight:800;letter-spacing:.8px;color:var(--muted);text-transform:uppercase;border-top:1px solid var(--border)}.pick-list>.pick-head:first-child{border-top:0}
.pick-row{display:flex;align-items:center;gap:11px;padding:9px 13px;border-top:1px solid var(--border);cursor:pointer}.pick-list>.pick-row:first-child{border-top:0}.pick-row input{width:20px;height:20px;flex:none;accent-color:var(--accent)}.pick-row .avatar{width:34px;height:34px}
.pick-text{flex:1;min-width:0}.pick-text b{display:block;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pick-text small{color:var(--muted);font-size:12.5px}
.pick-tag{flex:none;font-size:11px;font-weight:700;color:var(--status-green);background:var(--status-green-bg);padding:3px 7px;border-radius:6px;white-space:nowrap}
.mt-label{font-weight:700;color:var(--amber)}.mt-label.mg{color:var(--status-purple)}
.pick-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.pick-chips:empty{display:none}
.name-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 4px 0 10px;border-radius:999px;background:var(--surface2);border:1px solid var(--border);font-weight:700;font-size:13px}.name-chip button{border:0;background:none;color:var(--muted);display:grid;place-items:center;padding:4px;cursor:pointer;border-radius:50%}
.name-chip.fixed{padding-right:10px;background:var(--status-green-bg);color:var(--status-green);border-color:transparent}
.name-adder{margin-top:12px}.adder-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px dashed var(--border);border-radius:14px;font-weight:700;cursor:pointer}.adder-switch input{width:20px;height:20px;accent-color:var(--accent)}
.adder-box{margin-top:8px;padding:12px 13px;border:1px dashed var(--accent);border-radius:14px}.name-adder:not(:has(.adder-switch)) .adder-box{border:0;padding:0}
.adder-row{display:flex;gap:8px}.adder-row input{flex:1;min-width:0}.adder-box small{display:block;margin-top:6px}
.follow-up{margin-top:12px}.follow-up summary{cursor:pointer;color:var(--accent);font-weight:700}
/* 2.0.1: seasonal openings (July, March, December). */
.season{position:absolute;inset:0;z-index:5;overflow:hidden;font-family:inherit;transition:opacity .4s ease}.season.leaving{opacity:0}
.season-july{background:linear-gradient(#0c2340,#08172b)}.season-december{background:linear-gradient(#071226,#0d1f3a)}.season-march{background:linear-gradient(#2b0f2c,#1a0a1d 60%,#0e0610)}
.season-stage{position:absolute;left:50%;top:50%;width:390px;height:844px;transform-origin:center}.season-stage canvas{position:absolute;inset:0;width:390px;height:844px}
.ss-layer{position:absolute;left:0;right:0;text-align:center}
.ss-tri{background:linear-gradient(90deg,#14a03c 0 33.3%,#fff 33.3% 66.6%,#ff2323 66.6%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 8px rgba(0,0,0,.45))}
.ss-big{display:inline-block;padding:0 2px .14em;font-size:40px;font-weight:800;letter-spacing:-.5px;line-height:1.05}.ss-line{display:block}
.ss-sub{color:#e9eef5;font-size:15px;font-weight:700;opacity:0}.ss-sub small{display:block;font-size:12.5px;font-weight:600;color:#aebbd0;margin-top:4px;letter-spacing:.3px}
.ss-year{display:flex;justify-content:center;gap:8px;perspective:600px}
.ss-d{width:64px;height:88px;border-radius:14px;background:linear-gradient(#22324a,#182437);border:1px solid #33465f;color:#fff;font-size:60px;font-weight:800;position:relative;transform-style:preserve-3d;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.ss-d b{position:absolute;inset:0;display:grid;place-items:center;backface-visibility:hidden}.ss-d b.back{transform:rotateX(180deg)}.ss-d.next{background:linear-gradient(#1f6b3a,#14502b);border-color:#2f9a55}
.ss-title{color:#fff;font-size:30px;font-weight:800;letter-spacing:-.4px}
.ss-bar{height:5px;width:150px;margin:14px auto 0;border-radius:3px;background:linear-gradient(90deg,#14a03c 0 33.3%,#fff 33.3% 66.6%,#ff2323 66.6%);transform:scaleX(0)}
.ss-gold{font-size:36px;font-weight:800;letter-spacing:.6px;background:linear-gradient(180deg,#fbe7b8,#d9a85a 70%,#b9843c);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 10px rgba(0,0,0,.5));padding-bottom:.12em}
.ss-orn{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:12px}.ss-orn i{display:block;height:1px;width:70px;background:linear-gradient(90deg,transparent,#d9a85a)}.ss-orn i:last-child{transform:scaleX(-1)}.ss-orn b{width:7px;height:7px;background:#e8bf74;transform:rotate(45deg)}
.ss-layer[data-t1],.ss-layer[data-yr],.ss-layer[data-tt]{opacity:0}
.opening-page .opening-skip{z-index:6}
/* 2.0.1: Settings for everyone, Mga report, Mga mungkahi. */
.settings-menu-group{margin:14px 14px 4px;font-size:11px;font-weight:800;letter-spacing:1.2px;color:var(--muted);text-transform:uppercase}.settings-menu-group:first-child{margin-top:0}
.settings-menu-signout{color:var(--status-red)!important;margin-top:10px}
.settings-signout{margin-top:14px}.settings-row.danger{color:var(--status-red)}.settings-row.danger .settings-row-icon{color:var(--status-red)}
.switch{appearance:none;-webkit-appearance:none;width:44px;height:26px;border-radius:13px;background:var(--border);position:relative;flex:none;cursor:pointer;transition:background .2s;margin:0}.switch::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}.switch:checked{background:var(--accent)}.switch:checked::after{transform:translateX(18px)}.switch:disabled{opacity:.5}
.switch-row{cursor:pointer;align-items:center}
.install-steps{padding-left:22px;line-height:1.6}.install-steps li{margin:6px 0}
.about-head{display:flex;flex-direction:column;align-items:center;gap:6px;margin:8px 0 14px;text-align:center}.about-head img{border-radius:16px}.about-head b{font-size:20px}.about-head span{color:var(--muted);font-size:13px}.about-ok{color:var(--status-green);display:inline-flex;gap:5px;align-items:center;font-weight:700}.about-new{color:var(--accent);font-weight:700}
.about-actions{justify-content:center}.about-list{border:1px solid var(--border);border-radius:14px;padding:2px 14px;margin:14px 0}.about-list div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--border)}.about-list div:first-child{border-top:0}.about-list dt{color:var(--muted)}.about-list dd{margin:0;font-weight:700;text-align:right}
.help-item{border:1px solid var(--border);border-radius:12px;padding:10px 14px;margin:8px 0}.help-item summary{cursor:pointer;font-weight:700}.help-item p,.help-item ul{margin:8px 0 2px;color:var(--muted);line-height:1.5}
.report-shot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 10px}.report-attach{display:flex;align-items:center;gap:10px;flex:1;min-width:220px;padding:12px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);font-weight:700;cursor:pointer}.report-shot img{max-height:120px;max-width:180px;border-radius:8px;border:1px solid var(--border)}
.report-device{background:var(--surface2);border-radius:10px;padding:9px 12px;color:var(--muted);font-size:12.5px;margin:6px 0 12px}.report-device b{color:var(--text)}
.my-reports{display:grid;gap:10px}.report-item{border:1px solid var(--border);border-radius:12px;padding:11px 13px}.report-item b{display:block;margin:6px 0 3px;font-size:14px;line-height:1.4}.report-item small{color:var(--muted);font-size:12px}
.report-answer{margin-top:9px;padding:9px 11px;border-radius:9px;background:var(--status-green-bg);border-left:3px solid var(--status-green);font-size:13.5px;line-height:1.45}.report-answer span{display:block;color:var(--status-green);font-weight:800;font-size:11.5px;margin-bottom:2px}
.rchip,.rstatus,.pstatus{display:inline-block;font-size:10.5px;font-weight:800;padding:3px 7px;border-radius:6px;margin-right:5px;white-space:nowrap}
.rchip.bug{background:var(--status-red-bg);color:var(--status-red)}.rchip.idea{background:var(--status-purple-bg);color:var(--status-purple)}.rchip.question{background:var(--status-blue-bg);color:var(--status-blue)}
.rstatus.new,.pstatus.new{background:var(--accent);color:#fff}.rstatus.wip,.pstatus.ask{background:var(--status-amber-bg);color:var(--status-amber)}.rstatus.done,.pstatus.done{background:var(--status-green-bg);color:var(--status-green)}.pstatus.no{background:var(--surface2);color:var(--muted)}
.fb-tabs{display:flex;gap:6px;margin-bottom:12px}.fb-tabs button{flex:1;padding:8px 4px;border-radius:10px;border:0;background:var(--surface2);color:var(--muted);font-weight:700;font-size:13px;cursor:pointer}.fb-tabs button[aria-selected=true]{color:var(--text);background:color-mix(in srgb,var(--accent) 14%,var(--surface2))}.fb-tabs em{font-style:normal;color:var(--accent)}
.fb-pane{display:grid;grid-template-columns:minmax(260px,330px) 1fr;gap:0;border:1px solid var(--border);border-radius:16px;overflow:hidden;min-height:420px}
.fb-list{padding:14px;border-right:1px solid var(--border);min-width:0}.fb-detail{padding:18px 20px;min-width:0}.fb-empty{display:grid;place-items:center}
.fb-item{position:relative;display:block;width:100%;text-align:left;border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-bottom:9px;background:var(--surface);color:var(--text);cursor:pointer}.fb-item.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.fb-item b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;line-height:1.35;margin-top:4px}.fb-item small{display:block;color:var(--muted);font-size:11.5px;margin-top:5px}.fb-shot{position:absolute;right:10px;top:10px;color:var(--muted)}
.fb-who b{font-size:16px}.fb-who small{display:block;color:var(--muted);font-size:12.5px;margin-bottom:8px}.fb-body{font-size:15px;line-height:1.55;white-space:pre-line}.fb-back{display:none;align-items:center;gap:4px;margin-bottom:8px}
.fb-screenshot{display:block;max-width:280px;margin:10px 0;border:1px solid var(--border);border-radius:12px;overflow:hidden;color:var(--muted);font-size:12px}.fb-screenshot span{display:block;padding:30px 12px;text-align:center}.fb-screenshot img{display:block;width:100%}
@media(max-width:900px){.fb-pane{grid-template-columns:1fr;border:0;min-height:0}.fb-list{border-right:0;padding:0}.fb-detail{padding:4px 0}.fb-pane:not(.has-selection) .fb-detail{display:none}.fb-pane.has-selection .fb-list{display:none}.fb-back{display:inline-flex}}
.propose-cta{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px 16px;border-radius:16px;border:1px dashed var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface));color:var(--text);cursor:pointer;margin-bottom:6px}.propose-cta>span:nth-child(2){flex:1}.propose-cta b{display:block;font-size:15px}.propose-cta small{color:var(--muted)}.propose-icon{width:40px;height:40px;border-radius:11px;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}
.proposal-mine h3{margin:8px 0 4px}.proposal-mine small{color:var(--muted)}.more-proposals{margin-top:10px}.more-proposals summary{cursor:pointer;color:var(--accent);font-weight:700}
.proposal-title{margin:8px 0 10px;font-size:20px}.proposal-facts{border:1px solid var(--border);border-radius:12px;padding:2px 12px;margin:0 0 10px}.proposal-facts div{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--border)}.proposal-facts div:first-child{border-top:0}.proposal-facts dt{color:var(--muted);display:flex;width:18px;justify-content:center;font-weight:800}.proposal-facts dd{margin:0}
.choice-pills{display:flex;flex-wrap:wrap;gap:6px}.choice-pills label{position:relative;cursor:pointer}.choice-pills input{position:absolute;opacity:0;inset:0;margin:0}.choice-pills span{display:inline-block;padding:7px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface2);font-weight:700;font-size:13px;color:var(--muted)}.choice-pills input:checked+span{background:var(--accent);border-color:var(--accent);color:#fff}.choice-pills input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.setting-row.switch-row{flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:14px}.setting-row.switch-row>div{flex:1;min-width:0}
input.switch{width:44px!important;height:26px!important;min-width:44px;padding:0!important;border:0!important;border-radius:13px!important}
.report-shot [hidden],.adder-box[hidden],.pick-row[hidden],.pick-head[hidden],.name-adder [hidden]{display:none!important}
fieldset.field{border:0;padding:0;margin:0;min-width:0}fieldset.field>legend{padding:0;margin-bottom:6px;font-size:var(--font-ui);color:var(--muted)}
input.switch{min-height:26px!important;max-height:26px!important;max-width:44px!important;box-sizing:border-box!important;flex:0 0 44px!important;background-image:none!important}

/* 2.0.2: Settings menu: the profile card is My account; group labels look different from the buttons. */
.settings-menu-me{display:flex!important;align-items:center;gap:10px;padding:10px 12px!important;border:1px solid var(--border)!important;border-radius:14px!important;margin-bottom:6px;text-align:left}.settings-menu-me span{display:flex;flex-direction:column;min-width:0}.settings-menu-me b{font-size:14px;color:var(--text)}.settings-menu-me small{color:var(--muted);font-size:12px;font-weight:600}.settings-menu-me.active{border-color:var(--accent)!important}
.settings-menu-group{display:flex;align-items:center;gap:8px;margin:16px 6px 6px!important;font-size:10.5px!important;letter-spacing:1.4px!important;color:var(--accent)!important;cursor:default;user-select:none}.settings-menu-group::after{content:"";flex:1;height:1px;background:var(--border)}
.settings-menu>button:not(.settings-menu-me){display:flex!important;align-items:center;gap:10px}.settings-menu>button svg{flex:none;opacity:.75}.settings-menu>button.active svg{opacity:1}
.settings-group{color:var(--accent)!important}
.settings-menu .settings-row-badge{margin-left:auto}

/* 2.0.2: report rows by status */
.report-table tr[class^=row-] td{background:color-mix(in srgb,var(--tone) 9%,transparent)}.report-table tr[class^=row-] td:first-child{box-shadow:inset 3px 0 0 var(--tone)}
.row-ms{--tone:var(--status-amber);--tone-bg:var(--status-amber-bg)}.row-ts{--tone:var(--status-red);--tone-bg:var(--status-red-bg)}.row-uwp{--tone:var(--status-blue);--tone-bg:var(--status-blue-bg)}.row-out{--tone:var(--muted);--tone-bg:color-mix(in srgb,var(--muted) 14%,transparent)}.row-natiwalag{--tone:var(--status-purple);--tone-bg:var(--status-purple-bg)}
.tone-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px}.tone-chip{font-size:12px;font-weight:700;padding:4px 9px;border-radius:999px;background:var(--tone-bg);color:var(--tone);border:1px solid color-mix(in srgb,var(--tone) 35%,transparent)}.tone-legend small{color:var(--muted);margin-left:4px}
/* 2.0.2: Ulatan filters — Report, Panahon, Purok; "Iba pang filter" and Export open as a panel (desktop) or a bottom sheet (phone). */
.report-filters-v202{position:relative;padding:22px 24px 4px}.report-card .tone-legend{padding:0 24px}
.rf-bar{display:grid;grid-template-columns:minmax(200px,1.3fr) minmax(160px,1fr) minmax(150px,1fr) auto;gap:12px;align-items:end}
.rf-bar.rf-r7{grid-template-columns:minmax(200px,340px)}
.rf-bar.rf-r7 .rf-buttons{display:none}
.rf-field{min-width:0}.rf-field select{width:100%;min-width:0;max-width:none}
.rf-buttons{display:flex;gap:8px;align-items:end;order:1}
.rf-more{position:relative;white-space:nowrap;min-height:48px}.rf-more b{background:var(--accent);color:#fff;border-radius:999px;padding:1px 7px;font-size:11px;line-height:1.5}
.rf-more[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}
.rf-export-btn{display:none}
.rf-dates{grid-column:1/-1;order:2;display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:440px}
.report-heading{flex-wrap:wrap;gap:12px;margin-top:18px}.report-heading p{margin-top:4px}
.rf-exports{display:flex;gap:8px;flex-wrap:wrap}.rf-exports .btn:last-child{background:var(--accent);border-color:var(--accent);color:#fff}
.rf-sheet-scrim{position:fixed;inset:0;z-index:40;background:transparent}
.rf-sheet{position:absolute;right:0;top:calc(100% + 8px);z-index:41;width:min(380px,100%);background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px 18px 18px;box-shadow:var(--shadow);display:grid;gap:14px}
.rf-sheet h3{font-size:var(--font-card);margin:0}.rf-grab{display:none}
.rf-seg{border:0;margin:0;padding:0;min-width:0}.rf-seg legend{font-size:var(--font-ui);font-weight:500;padding:0;margin-bottom:8px}
.rf-seg .segmented-choice{display:flex;width:100%}.rf-seg .segmented-choice label{flex:1;text-align:center}.rf-seg .segmented-choice span{padding:9px 8px}
.rf-sheet .field select{width:100%;max-width:none}
.rf-sheet-actions{display:flex;gap:8px}.rf-sheet-actions .btn{flex:1;justify-content:center}
.rf-export .btn{justify-content:center;min-height:48px}
@media(max-width:760px){
 .rf-bar{grid-template-columns:1fr 1fr;gap:10px}.rf-bar.rf-r7{grid-template-columns:1fr}
 .rf-bar .rf-report{grid-column:1/-1}.rf-bar>.rf-field:first-child{grid-column:1/-1}
 .report-filters-v202{padding:16px 16px 2px}.report-card .tone-legend{padding:0 16px}
 .rf-buttons{grid-column:1/-1;order:3}.rf-buttons .btn{flex:1;justify-content:center}
 .rf-export-btn{display:inline-flex}.rf-exports{display:none}
 .rf-dates{max-width:none}
 .rf-sheet-scrim{background:rgba(0,0,0,.45)}
 .rf-sheet{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;border-radius:20px 20px 0 0;border-width:1px 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom));max-height:80dvh;overflow:auto}
 .rf-grab{display:block;width:40px;height:4px;border-radius:2px;background:var(--border);margin:0 auto 2px}
}
.rf-dates .field{min-width:0}.rf-dates input{width:100%;min-width:0}

/* Touch phones use pull-to-refresh and show their add action above the bottom navigation. */
@media screen and (max-width:760px){
 .app-shell:not([data-platform=windows]) .topbar-actions [data-refresh-control],
 .app-shell:not([data-platform=windows]) .breadcrumbs .topbar-workspace{display:none}
 .app-shell:not([data-platform=windows]) .breadcrumbs .topbar-brand{display:inline}
 .app-shell:not([data-platform=windows]):has(.page-add-action) #page-content{padding-bottom:92px}
 .app-shell:not([data-platform=windows]) .btn.primary.page-add-action{
  --page-add-fill:#3baddc;--page-add-ink:#102f42;
  position:fixed;z-index:36;inset-inline-end:max(16px,env(safe-area-inset-right));
  bottom:calc(72px + env(safe-area-inset-bottom));display:grid;place-items:center;
  width:62px;height:62px;min-height:62px;padding:0;gap:0;isolation:isolate;
  border:0;border-radius:50%;background:var(--page-add-fill);color:var(--page-add-ink);box-shadow:0 6px 14px rgb(0 0 0/.22);
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
 }
 :root[data-theme=dark] .app-shell:not([data-platform=windows]) .btn.primary.page-add-action{
  --page-add-fill:#4bc0ee;--page-add-ink:#0b1721;
 }
 .app-shell:not([data-platform=windows]) .page-add-action>svg{width:28px;height:28px;stroke-width:2}
 .app-shell:not([data-platform=windows]) .page-add-label{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap
 }
 .app-shell:not([data-platform=windows]) .page-add-cue::after{
  content:"";position:absolute;inset:0;border:3px solid var(--page-add-fill);border-radius:inherit;
  pointer-events:none;opacity:0;animation:page-add-pulse .85s ease-out 3;
 }
 @keyframes page-add-pulse{0%{opacity:1;transform:scale(1)}45%{opacity:.85}100%{opacity:0;transform:scale(1.4)}}
 body:has(#ui-feedback:not([hidden]) .kg-feedback-toolbar:not(.kg-feedback-moved)) .app-shell:not([data-platform=windows]) .btn.primary.page-add-action{
  bottom:calc(136px + env(safe-area-inset-bottom));
 }
 .modal-is-open .app-shell:not([data-platform=windows]) .btn.primary.page-add-action,
 .sidebar-open.app-shell:not([data-platform=windows]) .btn.primary.page-add-action{visibility:hidden}
}
@media (prefers-reduced-motion:reduce){
 .app-shell:not([data-platform=windows]) .page-add-cue::after{animation:none}
}

/* 2.0.5 compact directory and activity controls. */
.directory .person>.avatar{flex:none}
.activity-tabs-mobile,.activity-mobile-title,.activity-period-mobile,.mobile-sort-trigger{display:none}
.activity-period-wide{display:flex;align-items:center;gap:10px}
.filter-panel.filter-panel-inline{position:relative;inset:auto;margin:10px 0 0 auto;max-width:100%;box-shadow:none;z-index:auto}
.mobile-sort-row .sort-th{width:100%;justify-content:space-between;margin:0}
@media(max-width:760px){
 .with-mobile-sort{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}
 .with-mobile-sort .search-field{width:100%;margin:0}
 .with-mobile-sort .filter-btn,.mobile-sort-trigger .icon-btn{position:relative;width:44px;min-width:44px;height:44px;padding:0;justify-content:center}
 .with-mobile-sort .filter-label{display:none}
 .with-mobile-sort .filter-count{position:absolute;top:-5px;right:-3px;min-width:17px;height:17px;padding:0 4px;font-size:10px}
 .mobile-sort-trigger{display:block}
 .filter-panel.filter-panel-inline{width:100%;padding:12px;border-radius:12px}
 .activity-tabs.activity-tabs-wide,.activity-period-wide{display:none}
 .activity-tabs.activity-tabs-mobile{display:flex;flex-wrap:nowrap;gap:4px}
 .activity-tabs-mobile>button,.activity-tabs-mobile>.pop-anchor{flex:1;min-width:0}
 .activity-tabs-mobile>button,.activity-tabs-mobile .activity-more-button{padding-inline:4px;white-space:nowrap}
 .activity-tabs-mobile .activity-more-button{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:4px}
 .activity-tabs-mobile>.pop-anchor{display:flex}
 .activity-mobile-title{display:block;margin:0 0 12px}
 .activity-toolbar .filter-bar{display:grid;grid-template-columns:minmax(0,1fr)}
 .activity-period-mobile{display:flex;gap:4px;padding:4px;border-radius:12px;border:1px solid var(--border);background:var(--surface2)}
 .activity-period-mobile>button{flex:1;min-width:0;min-height:42px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit}
 .activity-period-mobile>button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border);font-weight:750}
}

.household-directory{overflow:visible}
.household-directory>summary{padding:12px 14px;background:var(--surface2);border-radius:10px;cursor:pointer}
.household-directory[open]>summary{border-bottom:1px solid var(--border);border-radius:10px 10px 0 0}
.household-directory>summary small{margin-inline-start:8px;color:var(--muted)}
.household-directory>ul{list-style:none;padding:0;margin:0}
.kaanib-profile-link{text-align:start;overflow-wrap:anywhere}
.ml-tabs{flex-wrap:nowrap;overflow-x:auto}
.ml-tabs button{flex:none;white-space:nowrap}

/* Aktibidad · Kahilingan */
.activity-request-card{max-width:1120px}
.activity-request-form{padding:0 24px 24px;display:grid;gap:17px}
.request-group{min-width:0;margin:0;padding:14px 16px 16px;border:1px solid var(--border);border-radius:12px}
.request-group[hidden]{display:none}
.request-group legend{padding:0 7px;font-weight:700}
.request-group textarea{width:100%;resize:vertical}
.request-group .form-grid{margin:0}
.request-field-label{display:block;margin-bottom:7px;font-weight:600}
.request-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:7px 12px}
.request-check{display:flex;gap:8px;align-items:center;min-height:30px}
.request-check input{width:17px;height:17px;flex:none;margin:0}
.request-expenses{width:100%;min-width:590px}
.request-expenses td,.request-expenses th{padding:6px 8px;text-align:left}
.request-expenses input{width:100%}
.request-actions{display:flex;justify-content:flex-end}
@media(max-width:760px){
 .activity-request-form{padding:0 12px 14px}
 .request-group{padding:10px}
 .request-actions .btn{width:100%;justify-content:center}
}

.report-card .table-scroll{max-height:55vh;overflow:auto}
.report-table th,.report-table td{vertical-align:middle}
@media(max-width:760px){
 .masterlist-card .table-tools{display:flex;flex-wrap:nowrap}
 .masterlist-card .table-tools .search-field{flex:1;min-width:0}
 .masterlist-card .filter-panel-inline{position:fixed;inset:auto 0 0;z-index:60;max-height:75dvh;overflow:auto;margin:0;border-radius:16px 16px 0 0}
}

/* Gender Review */
.gender-review-dialog {
 width: min(32rem, calc(100% - 2rem));
 max-height: calc(100dvh - 2rem);
 margin: auto;
 padding: 0;
 overflow: hidden;
 border: 1px solid var(--border);
 border-radius: 20px;
 background: var(--surface);
 color: var(--text);
}
.gender-review-dialog[open] { display: flex; flex-direction: column; }
.gender-review-dialog::backdrop { background: #14222480; backdrop-filter: blur(5px); }
.gender-review-dialog > header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 flex: none;
 padding: 10px 20px;
 border-bottom: 1px solid var(--border);
}
.gender-review-dialog h2 { margin: 0; font-size: 1.25rem; }
.gender-review-dialog header button {
 flex: none;
 width: 44px;
 height: 44px;
 color: var(--text);
 background: var(--surface2);
 border: 1px solid var(--border);
 border-radius: 12px;
 font-size: 1.4rem;
 line-height: 1;
}
.gender-review-dialog .gender-error { margin: 8px 20px 0; color: var(--danger, #b42318); }
.gender-review-dialog .gender-error:empty { display: none; }
.gender-content {
 display: flex;
 flex: 1;
 flex-direction: column;
 min-block-size: 0;
 overflow: auto;
 overscroll-behavior: contain;
 padding: 16px 20px;
}
.gender-game { display: flex; flex: 1 0 auto; flex-direction: column; gap: 10px; }
.gender-progress {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto;
 align-items: center;
 gap: 4px 8px;
 font-size: var(--font-ui);
 font-variant-numeric: tabular-nums;
}
.gender-progress b { font-size: 1.1rem; }
.gender-progress button { min-height: 44px; text-align: end; }
.gender-progress progress {
 grid-column: 1 / -1;
 display: block;
 width: 100%;
 height: 6px;
 accent-color: var(--accent);
}
.gender-hint { margin: 0; color: var(--muted); font-size: var(--font-ui); }
.gender-save-note { text-align: center; }
.gender-stage {
 display: grid;
 flex: 1;
 min-height: clamp(140px, 28dvh, 230px);
 overflow: clip;
 padding: 3px 3px 8px;
}
.gender-swipe {
 display: grid;
 grid-template-rows: minmax(min-content, 1fr) auto;
 align-items: center;
 min-width: 0;
 padding: 16px 12px 8px;
 border: 1px solid var(--choice-color, var(--border));
 border-radius: 18px;
 background: linear-gradient(145deg, var(--accent-soft), var(--surface2));
 box-shadow: 0 4px 0 var(--border);
 text-align: center;
 touch-action: none;
 user-select: none;
 cursor: grab;
}
.gender-swipe:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.gender-person {
 display: grid;
 justify-items: center;
 gap: 8px;
 padding-block: 10px;
 overflow-wrap: anywhere;
}
.gender-person b { font-size: clamp(1.25rem, 4.5vw, 1.75rem); line-height: 1.2; }
.gender-person small {
 padding: 3px 10px;
 border: 1px solid var(--border);
 border-radius: 999px;
 background: var(--surface);
 color: var(--muted);
 font-size: var(--font-ui);
}
.gender-swipe-feedback {
 min-height: 1.4em;
 color: var(--text);
 font-size: .85rem;
 font-weight: 700;
}
.gender-swipe[data-direction="0"], .gender-choices [data-choice="0"] { --choice-color: #3679cb; }
.gender-swipe[data-direction="1"], .gender-choices [data-choice="1"] { --choice-color: #c6568c; }
.gender-swipe[data-direction="2"], .gender-choices [data-choice="2"] { --choice-color: #b07a23; }
.gender-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.gender-choices .btn {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 3px;
 min-width: 0;
 min-height: 56px;
 padding: 7px 4px;
 border-color: var(--choice-color);
 background: color-mix(in srgb,var(--choice-color) 10%,var(--surface));
 color: var(--text);
 font-size: var(--font-ui);
 line-height: 1.2;
 white-space: normal;
 text-align: center;
}
.gender-choices .btn span:first-child { font-size: 1.15rem; }
.gender-review-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.gender-review-intro { flex: none; padding-bottom: 12px; }
.gender-review-intro h3 { margin: 0 0 4px; }
.gender-review-list { flex: 1; min-height: 0; overflow: auto; }
.gender-answer {
 display: grid;
 grid-template-columns: minmax(0,1fr) minmax(7.5rem,38%);
 align-items: center;
 gap: 10px;
 padding: 12px 0;
 border-top: 1px solid var(--border);
}
.gender-answer b, .gender-answer small { display: block; overflow-wrap: anywhere; }
.gender-answer small { color: var(--muted); }
.gender-answer select { width: 100%; min-width: 0; min-height: 44px; padding-inline: 8px; }
.gender-review-submit {
 display: flex;
 flex: none;
 justify-content: flex-end;
 padding-top: 12px;
 border-top: 1px solid var(--border);
}
.gender-review-submit button { min-height: 44px; }
.gender-tutorial { padding-block: 8px; }
.gender-tutorial h3 { margin: 0 0 .75rem; }
.gender-tutorial p { margin: 0 0 1.25rem; max-width: 35ch; }
.overview-review-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.welcome-card .overview-review-actions button{font-size:1rem;font-weight:650;min-height:44px;padding:8px 12px;white-space:nowrap}
.overview-stat-grid .stat-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.overview-stat-grid .stat-card>.stat-arrow{display:block;position:absolute;inset-block-start:18px;inset-inline-end:18px;pointer-events:none}
.birthday-members-row{align-items:start}
.profile-transfer .check-label{margin-top:6px;flex-wrap:wrap}
@media(max-width:760px){
 .overview-stat-grid .stat-card>.stat-arrow{inset-block-start:15px;inset-inline-end:15px}
}
.gender-toggle { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1rem; min-height: 44px; }
.gender-toggle span { overflow-wrap: anywhere; }
.gender-settings { padding: clamp(.25rem,2vw,1rem); }
.gender-settings h2, .gender-settings h3 { margin: 0 0 .65rem; }
.gender-settings .gender-toggle { border-bottom: 1px solid var(--border); padding: .85rem .35rem; }
.gender-settings .gender-master-switch { margin: 1.25rem 0 1.5rem; padding: 0 .85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface2); font-weight: 700; }
.gender-settings .gender-master-switch .gender-toggle { border-bottom: 0; }
.gender-settings [role="alert"]:empty { display: none; }
@media (max-width:760px) {
 .gender-review-dialog {
  width: calc(100% - 16px);
  height: min(calc(100% - 16px), 40rem);
  height: min(calc(100dvh - 16px), 40rem);
  max-height: calc(100dvh - 16px);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border-radius: 16px;
 }
 .gender-review-dialog > header { padding: 6px 12px; }
 .gender-content { padding: 10px 12px 12px; }
 .gender-game { gap: 8px; }
 .gender-review-submit button { width: 100%; }
}
@media (max-height:500px) {
 .gender-stage { min-height: 120px; }
 .gender-game { gap: 6px; }
 .gender-person { padding-block: 4px; }
}
.resumen-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem}
.resumen-toolbar > .btn:last-child{margin-inline-start:auto}

/* Kalihim dashboard */
.kh-dashboard{--kh-color-0:#277968;--kh-color-1:#6e99a6;--kh-color-2:#d6aa62;--kh-color-3:#aba3b9}
.kh-filters{padding:24px}
.kh-filter-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);gap:16px;align-items:start}
.kh-filter-grid .field{margin:0;min-width:0}
.kh-filter-grid label>span,.kh-quick>label{display:block;font-size:var(--font-ui);color:var(--muted);line-height:1.5;margin:0 0 8px}
.kh-filter-grid select,.kh-quick input,.kh-quick .btn{height:46px;box-sizing:border-box;min-width:0;margin:0}
.kh-quick>div{display:flex;gap:8px}.kh-quick input{flex:1;width:0}.kh-quick .btn{flex:none;white-space:nowrap}
.kh-filter-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.kh-filter-footer>.btn:last-child{margin-inline-start:auto}
.kh-scope{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 16px}
.kh-scope h2{margin:0;font-size:20px}.kh-scope>span{font-size:var(--font-ui);color:var(--muted)}
.kh-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.kh-stat{padding:24px;text-align:left;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:14px;min-width:0}
.kh-stat>span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:var(--font-ui)}
.kh-stat strong{display:block;font-size:34px;line-height:1.2;margin:14px 0 8px;font-variant-numeric:tabular-nums}
.kh-stat small{display:block;color:var(--muted);font-size:var(--font-ui);line-height:1.6}
.kh-stat-primary{background:var(--accent);color:white;border-color:var(--accent)}
.kh-stat-primary>span,.kh-stat-primary small{color:white}
.kh-panels{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px}
.kh-card-head{padding:24px 24px 18px}.kh-card-head h3{margin:0 0 8px;font-size:16px}.kh-card-head p{margin:0;color:var(--muted);font-size:var(--font-ui)}
.kh-table-scroll{overflow:auto;max-height:400px}.kh-table-scroll table{width:100%;min-width:0;white-space:normal}
.kh-table-scroll th,.kh-table-scroll td{padding:16px 24px;vertical-align:middle}
.kh-table-scroll th:not(:first-child),.kh-table-scroll td:not(:first-child){text-align:right}
.kh-table-scroll td small{display:block;color:var(--muted);margin-top:6px}
.kh-table-scroll td button{white-space:normal;text-align:left;line-height:1.6}
.kh-bars{display:grid;gap:24px;padding:4px 24px 26px}
.kh-bars>button{padding:0;border:0;background:none;color:var(--text);text-align:left}
.kh-bars>button>span{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.kh-track{height:9px;background:var(--surface2);border-radius:5px;overflow:hidden}
.kh-track i{display:block;height:100%;background:var(--kh-color);border-radius:5px}
.kh-shortcuts{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.kh-empty{padding:16px 24px;color:var(--muted)}
.kaanib-loading{padding:28px}.kaanib-loading h3{margin:0 0 12px}.kaanib-loading p{margin:0 0 16px;color:var(--muted);line-height:1.7}
.kh-dialog{width:min(640px,calc(100% - 32px));max-height:85dvh;border:1px solid var(--border);border-radius:16px;padding:24px;background:var(--surface);color:var(--text);box-sizing:border-box;overflow:auto}
.kh-dialog::backdrop{background:#102d3b88;backdrop-filter:blur(4px)}
.kh-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.kh-dialog h2{font-size:20px;margin:0 0 8px}.kh-dialog header p{margin:0;color:var(--muted)}
.kh-detail-search{margin:0 0 20px}
.kh-person{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--border)}
.kh-person>div{min-width:0}.kh-person b{display:block;overflow-wrap:anywhere;line-height:1.6}.kh-person small{display:block;color:var(--muted);margin-top:6px;line-height:1.5}
.kh-family{border:1px solid var(--border);border-radius:10px;margin:12px 0}
.kh-family summary{cursor:pointer;padding:16px;font-weight:600;line-height:1.6}
.kh-family summary small{display:block;color:var(--muted);font-weight:400;margin-top:6px}
.kh-family>div{padding:0 16px 12px}
.kh-dialog footer,.kh-missing-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.kh-dialog footer>span:first-child,.kh-missing-pagination>span:first-child{margin-right:auto}
.kh-missing-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.kh-missing-tabs .btn{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px}
.kh-missing-tabs b{font-variant-numeric:tabular-nums}
@media(max-width:1000px){.kh-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kh-quick{grid-column:1/-1}.kh-panels{grid-template-columns:1fr}}
@media(max-width:760px){
 .kh-filters{padding:18px}.kh-filter-grid{gap:16px 12px}
 .kh-filter-footer{margin-top:18px;gap:10px}
 .kh-filter-footer>.btn:last-child{margin-inline-start:0}
 .kh-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .kh-stat{padding:18px}.kh-stat strong{font-size:30px}
 .kh-scope{align-items:flex-start;margin-top:24px}.kh-scope>span{max-width:140px;text-align:right;line-height:1.6}
 .kh-card-head{padding:20px}.kh-table-scroll td,.kh-table-scroll th{padding:16px 20px}
 .kh-bars{padding:4px 20px 24px}
 .kh-shortcuts{display:grid;grid-template-columns:1fr;gap:12px}
 .kh-shortcuts>.btn{min-height:46px;justify-content:flex-start}
 .kh-dialog{padding:20px}.kh-person{gap:12px;padding:18px 0}
 .kh-missing-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .missing-card{padding:20px!important}
 .missing-card .card-summary{padding:0 0 16px;margin:0}
 .missing-list li{padding:18px 0;line-height:1.7}
 .missing-list li>span:first-child{gap:7px;width:100%}
 .missing-list b{overflow-wrap:anywhere}
 .masterlist-card .table-scroll{padding-top:12px;overflow:visible}
 .masterlist-card table.masterlist{display:block;width:100%;min-width:0;border:0;table-layout:auto}
 .masterlist-card table.masterlist thead{display:none}
 .masterlist-card table.masterlist tbody{display:grid;gap:12px;padding:0 14px 16px}
 .masterlist-card table.masterlist tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
 .masterlist-card table.masterlist tbody td{display:block;padding:0!important;border:0;min-width:0;white-space:normal;line-height:1.7}
 .masterlist-card table.masterlist tbody td:first-child{grid-column:1/-1}
 .masterlist-card table.masterlist .directory-purok,.masterlist-card table.masterlist .col-wide{display:none!important}
 .masterlist-card table.masterlist .directory-status{grid-column:1}
 .masterlist-card table.masterlist .directory-birthday{grid-column:1;color:var(--muted)}
 .masterlist-card table.masterlist .directory-actions{grid-column:2;grid-row:2/span 2;align-self:center}
 .masterlist-card .directory-phone-meta{margin-top:8px!important;line-height:1.6}
 .ml-households .kaanib-row{padding:16px 12px!important;gap:12px;line-height:1.7}
}
.kh-filter-grid .field{gap:0}
.kh-filter-grid select,.kh-quick input{min-height:46px}

/* Shared list controls and phone layouts. */
.table-tools.with-mobile-sort{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:10px}
.table-tools.with-mobile-sort>.search-field{min-width:0;width:100%;margin:0}
.table-tools .mobile-sort-trigger{display:block}
.sort-menu-button{width:44px;height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface2)}
.sort-directions{display:grid;gap:4px}
.kg-pop .pop-item.on{background:var(--accent-soft);color:var(--accent);font-weight:700}
.kg-pop .pop-item.on>svg{margin-left:auto}
.directory-tabs{border-bottom:2px solid color-mix(in srgb,var(--muted) 48%,var(--border));scroll-behavior:auto;overflow-anchor:none}
.directory-tabs>button.active{border-bottom-color:var(--accent)}
.kh-scope{container-type:inline-size;align-items:center}
.kh-scope>span{white-space:nowrap;max-width:none;text-align:right;flex:none}
@container (max-width:540px){.kh-scope>span{display:none}}
.birthday-list .birthday-row{display:grid;grid-template-columns:minmax(0,1fr) 3ch 3.5rem;column-gap:14px;align-items:center}
.birthday-person{display:flex;align-items:center;gap:14px;min-width:0}
.birthday-person>.avatar{flex:none}
.birthday-person>span:last-child{min-width:0}
.birthday-person b{overflow-wrap:anywhere}
.birthday-row>.days{text-align:right;min-width:0;font-variant-numeric:tabular-nums}
.birthday-row>.mini-badge{justify-self:end;max-width:100%;margin:0}
.birthday-row>.birthday-mark-empty{display:block;width:100%}
.duty-collapse-toggle{display:none}
.calendar-controls{display:flex;align-items:center;justify-content:space-between;gap:20px}
.calendar-arrows{display:flex;gap:8px}
.calendar-controls .btn,.calendar-controls .icon-btn{min-height:44px;height:44px}
.calendar-card .calendar-controls .icon-btn{width:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface2)}
.calendar-mobile-date,.calendar-day-detail{display:none}
@media(max-width:760px){
 .masterlist-card .table-tools.with-mobile-sort,.table-tools.with-mobile-sort{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;flex-wrap:nowrap}
 .table-tools .search-field{min-width:0;max-width:100%}
 .with-mobile-sort .filter-anchor{min-width:0}
 .with-mobile-sort .filter-btn,.with-mobile-sort .sort-menu-button{width:44px;min-width:44px;height:44px;padding:0;justify-content:center}
 .filter-panel.filter-panel-inline{position:fixed;inset:auto 0 0;z-index:60;width:100%;margin:0;max-height:80dvh;overflow:auto;padding:20px 18px calc(24px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;box-shadow:0 -10px 40px #0005}
 .directory-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .directory-tabs>button{flex:none;white-space:nowrap}
 .activity-tabs.activity-tabs-mobile{gap:16px;justify-content:flex-start}
 .activity-tabs-mobile>button,.activity-tabs-mobile>.pop-anchor{flex:none}
 .activity-tabs-mobile>button,.activity-tabs-mobile .activity-more-button{min-height:48px;padding-inline:2px}
 .visit-filters{width:100%;display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:12px;margin-top:4px}
 .visit-filters>select{width:100%;max-width:100%;min-width:0;margin:0;min-height:46px}
 .remind-card .purok-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:8px 18px 20px}
 .remind-card .purok-counts>.btn{min-width:0;width:100%;display:grid;gap:6px;min-height:72px;padding:12px 4px;text-align:center;white-space:normal}
 .purok-counts>.btn>span{font-size:var(--font-ui);white-space:nowrap}
 .purok-counts>.btn>b{font-size:20px;font-variant-numeric:tabular-nums}
 .duty-grid-heading{display:none}
 .duty-collapse-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:64px;text-align:left;padding:20px 18px;background:none;border:0;border-radius:inherit;color:var(--text);font:inherit;font-size:var(--font-card);font-weight:700}
 .duty-grid-card:not(.duty-cards-open) .duty-card-grid{display:none}
 .duty-cards-open .duty-collapse-toggle>svg{transform:rotate(180deg)}
 .birthday-list .birthday-row{grid-template-columns:minmax(0,1fr) 2.5ch 2.9rem;column-gap:8px;padding:22px 0}
 .birthday-person{gap:10px}
 .birthday-person>.birthday-photo{width:42px;height:42px;font-size:15px}
 .birthday-row b{font-size:var(--font-ui)}
 .birthday-row small{font-size:12px;line-height:1.5}
 .birthday-row>.mini-badge{font-size:11px;padding:4px 6px}
 .kh-scope>span{display:none}
 .calendar-heading{display:grid;grid-template-columns:minmax(0,1fr);padding:20px 18px;gap:16px}
 .calendar-heading>div{min-width:0}
 .calendar-heading h3{font-size:clamp(20px,6vw,26px);margin:0 0 8px}
 .calendar-heading p{margin:0;line-height:1.5}
 .calendar-controls{width:100%;gap:12px}
 .calendar-arrows{gap:8px}
 .calendar-controls .btn{margin:0;padding:8px 16px}
 .calendar-card .calendar-scroll{overflow:visible}
 .calendar-card .calendar-grid{width:100%;min-width:0;grid-template-columns:repeat(7,minmax(0,1fr))}
 .calendar-card .cal-weekday{font-size:10px;letter-spacing:.3px;padding:12px 0}
 .calendar-card .cal-day{padding:0;min-height:60px;min-width:0}
 .calendar-card .cal-events,.calendar-card .calendar-desktop-date{display:none}
 .calendar-mobile-date{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:60px;width:100%;padding:6px 0;border:0;border-radius:0;background:none;color:var(--text);font:inherit;font-size:14px}
 .calendar-mobile-date>span:first-child{display:grid;place-items:center;width:28px;height:28px;border-radius:50%}
 .today .calendar-mobile-date>span:first-child{background:var(--accent);color:var(--surface)}
 .selected .calendar-mobile-date{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
 .calendar-markers{display:flex;align-items:center;justify-content:center;gap:3px;min-height:12px}
 .calendar-markers i{display:block;width:5px;height:5px;border-radius:50%;background:var(--accent)}
 .calendar-markers .birthday-dot{background:#d19845}
 .calendar-markers small{font-size:9px;line-height:1}
 .calendar-day-detail{display:block;padding:20px 18px;border-top:1px solid var(--border)}
 .calendar-day-detail h4{font-size:var(--font-body);margin:0 0 14px}
 .calendar-day-detail .cal-event{padding:12px;gap:10px;margin-top:8px;overflow-wrap:anywhere}
 .calendar-day-detail p{line-height:1.6;font-size:var(--font-ui);margin:0}

}

/* 2.3.0 Aktibidad: New Activity plan (steps on a phone), Kahilingan list, R7-10 photos */
.field-help{display:block;margin-top:6px;font-size:var(--font-ui);color:var(--muted);line-height:1.5}
.plan-step{min-width:0;margin:0 0 18px;padding:16px 18px 18px;border:1px solid var(--border);border-radius:12px}
.plan-step legend{display:flex;align-items:center;gap:8px;padding:0 7px;font-weight:700;font-size:var(--font-body)}
.plan-step-no{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:13px}
.plan-step textarea,.photo-report-form textarea{width:100%;resize:vertical}
.plan-step .form-grid{margin:12px 0 0}.plan-step>.field{margin-top:14px}
.plan-step [hidden]{display:none!important}
.plan-more{margin-top:14px;border-top:1px dashed var(--border);padding-top:12px}
.plan-more summary{cursor:pointer;font-weight:600;color:var(--accent);font-size:var(--font-ui);min-height:32px;display:flex;align-items:center}
.plan-more[open]>summary{margin-bottom:10px}
.plan-progress{display:none}
form[data-form=activity-plan] [data-plan-back],form[data-form=activity-plan] [data-plan-next]{display:none}
.request-list{display:flex;flex-direction:column}
.request-row{display:flex;align-items:center;gap:14px;padding:14px 20px;border-top:1px solid var(--border)}
.request-row>div:first-child{flex:1;min-width:0}.request-row b{display:block}
.request-row small{display:block;color:var(--muted);font-size:var(--font-ui);margin-top:3px}
.request-row .request-gap,.request-gap{color:var(--status-amber,#b7791f);display:flex;gap:6px;align-items:flex-start}
.request-row-actions{display:flex;gap:8px;flex-wrap:wrap}
.request-note{padding:0 20px 18px}
.request-choice{display:flex;flex-direction:column;gap:6px}.request-choice .btn{justify-content:flex-start;min-height:52px}.request-choice p{margin:0 0 14px}
.change-table th small{display:block;color:var(--muted);font-weight:400}
.calendar-bday-toggle{display:inline-flex;align-items:center;gap:8px;font-size:var(--font-ui);margin-right:6px;min-height:40px}
.photo-report-picker{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}.photo-report-picker .field{min-width:170px}
.photo-report-picker label.btn{cursor:pointer}
.photo-report-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.photo-report-thumbs figure{position:relative;margin:0;width:92px}
.photo-report-thumbs img{width:92px;height:92px;object-fit:cover;border-radius:8px;display:block}
.photo-report-thumbs figcaption{font-size:12px;color:var(--muted);text-align:center;margin-top:3px}
.photo-report-thumbs .icon-btn{position:absolute;top:-8px;right:-8px;width:28px;height:28px;border-radius:50%;background:var(--surface);border:1px solid var(--border)}
.photo-report-preview{border:1px solid var(--border);border-radius:10px;padding:8px;background:#fff;max-width:540px}
.photo-report-preview canvas{width:100%;height:auto;display:block}
@media (max-width:760px){
 .plan-modal.modal{position:fixed;inset:0;max-width:none;max-height:none;width:100%;height:100dvh;border-radius:0}
 .modal-backdrop:has(.plan-modal){padding:0}
 .plan-progress{display:flex;gap:4px;margin:0 0 16px}
 .plan-progress span{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:11px;text-align:center}
 .plan-progress b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--border);font-size:12px}
 .plan-progress span.current b{background:var(--accent);border-color:var(--accent);color:#fff}
 .plan-progress span.done b{background:var(--accent-soft);color:var(--accent);border-color:transparent}
 .plan-progress span:not(.current) small{display:none}
 form[data-form=activity-plan] .plan-step{display:none;border:0;padding:0}
 form[data-form=activity-plan] .plan-step.current{display:block}
 form[data-form=activity-plan] .plan-step legend{padding:0;margin-bottom:6px;font-size:var(--font-card)}
 form[data-form=activity-plan] [data-plan-next]{display:inline-flex}
 form[data-form=activity-plan]:not([data-plan-step="0"]) [data-plan-back]{display:inline-flex}
 form[data-form=activity-plan][data-plan-last=false] button[type=submit]{display:none}
 form[data-form=activity-plan][data-plan-last=true] [data-plan-next]{display:none}
 form[data-form=activity-plan] .modal-footer [data-action=close-modal]{display:none}
 form[data-form=activity-plan][data-plan-step="0"] .modal-footer [data-action=close-modal]{display:inline-flex}
 .request-row{flex-wrap:wrap;padding:14px 16px}.request-row-actions{width:100%}
 .calendar-bday-toggle span{font-size:12px}
}
.plan-step .request-check-grid,.photo-report-form .request-check-grid,form[data-form=photo-report] .request-check-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
@media (max-width:760px){.plan-step .request-expenses{min-width:0}.plan-step .request-expenses th[scope=row]{white-space:normal;font-size:13px;min-width:110px}.plan-step .request-expenses input{min-width:70px}}
.plan-step .request-expenses tbody th,.change-table tbody th{background:none;color:var(--text);font-weight:500}
/* 2.3.1 Kailangang Asikasuhin: a list with the count on the right */
.task-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;padding:0 22px 22px}
.task-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.task-row:hover{background:var(--surface2)}
.task-label{flex:1;font-weight:600;font-size:var(--font-ui)}
.task-count{font-weight:700;font-size:var(--font-body);min-width:28px;text-align:right}
.task-row>svg{color:var(--muted);flex:none}
.task-row.zero{opacity:.5}
.task-row.hot .task-count{color:var(--accent)}
.kapisanan-import{padding:clamp(16px,3vw,24px)}
.kapisanan-import h2{margin:0}
.kapisanan-import p{margin:8px 0 16px}
@media (min-width:761px){
 .overview-tasks{container-type:inline-size}
 @container (min-width:790px) and (max-width:1283px){
  .task-list:has(>.task-row:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
  .task-list:has(>.task-row:nth-child(5):last-child)>.task-row{grid-column:span 2}
  .task-list:has(>.task-row:nth-child(5):last-child)>.task-row:nth-last-child(-n+2){grid-column:span 3}
 }
 @container (min-width:534px) and (max-width:789px){
  .task-list>.task-row:nth-child(odd):last-child{grid-column:1/-1}
 }
}
@media (max-width:760px){
 .task-list{display:flex;flex-direction:column;gap:0;margin:0 18px 18px;padding:0;border:1px solid var(--border);border-radius:14px;overflow:hidden}
 .task-row{border:0;border-top:1px solid var(--border);border-radius:0;min-height:56px;padding:12px 16px}
 .task-row:first-child{border-top:0}
 .task-label{font-size:16px}.task-count{font-size:18px}
}
/* 2.3.1 activity details: buttons in an even grid on a phone */
@media (max-width:760px){
 .activity-detail-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .activity-detail-footer .modal-spacer,.activity-detail-footer [data-detail-close]{display:none}
 .activity-detail-footer .btn{width:100%;min-width:0;justify-content:center;min-height:48px;margin:0;padding-inline:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .activity-detail-footer .btn.primary{grid-column:1/-1}
 .activity-detail-footer .btn svg{flex:none}
 .activity-detail-footer .btn:nth-last-child(4):nth-child(odd),.activity-detail-footer .btn:nth-last-child(3):nth-child(odd){grid-column:1/-1}
}
/* 2.3.1 Ulatan → Resumen on a phone: controls full width, labels wrap so the numbers show */
@media (max-width:760px){
 .resumen-toolbar{flex-direction:column;align-items:stretch;gap:12px;padding:0 1rem 1rem}
 .resumen-toolbar>label{display:flex;flex-direction:column;gap:8px}
 .resumen-toolbar>label select{width:100%}
 .resumen-toolbar>.btn,.resumen-toolbar>.btn:last-child{width:100%;justify-content:center;margin:0;min-height:48px}
 .resumen-scroll .resumen-table{min-width:100%;width:max-content}
 .resumen-table th,.resumen-table td{padding:10px 12px}
 .resumen-table th:first-child{width:clamp(114px,36vw,166px);max-width:clamp(114px,36vw,166px);white-space:normal;letter-spacing:0;position:sticky;inset-inline-start:0;z-index:1;background:var(--surface)}
 .resumen-table td,.resumen-table thead th:not(:first-child){width:86px;max-width:94px;text-align:center;white-space:normal;letter-spacing:0}
 .resumen-table td>button{min-height:36px;padding-inline:8px;font-variant-numeric:tabular-nums}
 .resumen-table thead th:first-child{background:var(--surface2)}
}
@media (max-width:760px){
 .rf-bar.rf-resumen{grid-template-columns:1fr}
}
/* 2.4.0: "Saan ka kabilang?", the kapisanan switch and "Tingnan bilang…". */
.kapisanan-picker{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:40px 24px;text-align:center;background:radial-gradient(90% 70% at 50% 0%,#eef6ff,#fbfcfd 60%);color:#172a3d}
.kapisanan-picker h1{font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:30px;margin:16px 0 6px}.kapisanan-picker p{color:#6e7b89;margin:0 0 26px;line-height:1.5}
.kapisanan-dots{display:flex;gap:6px}.kapisanan-dots i{width:10px;height:10px;border-radius:50%;background:#1ea64b}.kapisanan-dots i:first-child{background:#087eb9}.kapisanan-dots i:last-child{background:#7b63d6}
.kapisanan-options{display:grid;gap:14px;width:min(100%,400px)}
.kapisanan-option{display:flex;align-items:center;gap:14px;padding:16px;border-radius:20px;border:2px solid #e6ebf0;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s}
.kapisanan-option:hover{transform:translateY(-2px);box-shadow:0 8px 20px #172a3d14}
.kapisanan-option img{width:54px;height:54px;border-radius:15px;flex:none}
.kapisanan-option b{display:block;font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:20px}.kapisanan-option small{color:#6e7b89}
.kapisanan-option small i{font-style:normal;font-size:11px;font-weight:700;color:#7b63d6;background:#efeafd;border-radius:999px;padding:2px 8px;margin-left:6px}
.kapisanan-option>svg{margin-left:auto;color:#9aa6b2}
.kapisanan-option.binhi{border-color:#cfeccf;background:#f6fcf3}.kapisanan-option.kadiwa{border-color:#cfe6f4}.kapisanan-option.buklod{border-color:#e3dcf8}
.kapisanan-option[data-in-progress],.kapisanan-option:disabled{opacity:.6;cursor:default}
.kapisanan-foot{margin-top:26px;color:#9aa6b2}
@media (min-width:900px){.kapisanan-options{grid-template-columns:repeat(3,220px);width:auto}.kapisanan-option{flex-direction:column;text-align:center;padding:26px 18px}.kapisanan-option img{width:84px;height:84px;border-radius:24px}.kapisanan-option>svg{display:none}.kapisanan-picker h1{font-size:38px}}
.kapisanan-change{display:block;margin:12px auto 0;font-size:13px}
.workspace-switch{font:inherit;color:inherit;text-align:left;width:100%}
button.workspace-switch{cursor:pointer}
.workspace-kapisanan{margin-left:auto;display:inline-flex;align-items:center;gap:2px;font-size:12px;font-weight:700;color:var(--accent);white-space:nowrap}
.kapisanan-menu h3{margin:4px 0 10px}.kapisanan-menu h3+p{margin-top:0}
.kapisanan-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}
.kapisanan-switch .kapisanan-option{flex-direction:column;text-align:center;padding:14px 8px;gap:8px}.kapisanan-switch .kapisanan-option img{width:44px;height:44px;border-radius:12px}.kapisanan-switch .kapisanan-option b{font-size:15px}
.kapisanan-option.current{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.va-roles{display:grid;gap:10px}.va-role{display:flex;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface2);font:inherit;color:inherit;text-align:left;cursor:pointer}
.va-role:hover{border-color:var(--accent)}.va-role i{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-style:normal;font-weight:800;flex:none}
.va-role b{display:block}.va-role small{color:var(--muted);font-size:13px}
.viewas-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:90;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 24px);padding:8px 8px 8px 16px;background:#fff4c2;color:#6b4e00;border:1px solid #f1d77a;border-radius:999px;box-shadow:0 10px 30px #6b4e0033;font-size:13.5px;font-weight:600}
.viewas-bar b{font-weight:800}.viewas-bar .va-tag{background:#ffe48a;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:700}
.viewas-bar button{margin-left:6px;border:1px solid #d9b84a;background:#fff;color:#6b4e00;border-radius:999px;padding:6px 14px;font:inherit;font-weight:700;cursor:pointer}
.viewas-bar .va-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:760px){.viewas-bar{bottom:84px;padding:6px 6px 6px 12px;font-size:12.5px}.viewas-bar .va-tag{display:none}.kapisanan-switch{grid-template-columns:1fr}}
div[data-keep-name]:not([class]){display:contents}

.table-footer {
 display:flex; align-items:center; justify-content:space-between; gap:12px;
 padding:12px 18px; border-top:1px solid var(--border);
 border-radius:0 0 var(--radius) var(--radius); background:var(--surface2);
 container-type:inline-size; white-space:nowrap; overflow-x:auto;
 font-size:.875rem; font-variant-numeric:tabular-nums;
}
.table-footer .table-range {margin-inline-end:auto;color:var(--muted);flex:none}
.table-page-controls,.table-page-size {display:flex;align-items:center;gap:6px;flex:none}
.table-page-size,.table-page-count {color:var(--muted)}
.table-footer .table-page-controls .icon-btn,.table-footer input[data-pagination-input] {
 box-sizing:border-box; width:44px; min-width:44px; height:44px; min-height:44px;
 padding:0; border:1px solid var(--border); border-radius:8px;
}
.table-footer input[data-pagination-input] {
 width:59px; min-width:0; background:var(--surface);
 text-align:center; color:var(--text); font:inherit; font-weight:600;
}
.table-footer input[data-pagination-input]:focus {outline:2px solid var(--accent);outline-offset:-2px}
.table-footer .icon-btn:disabled {opacity:.45}
@media(max-width:760px) {
 .table-footer {padding-inline:12px;gap:5px;font-size:.75rem}
}
@container (max-width:430px) {
 .table-page-controls,.table-page-size {gap:4px}
 .table-footer .table-page-controls .icon-btn {width:38px;min-width:38px}
 .table-footer input[data-pagination-input] {width:44px}
 .table-page-size-full {display:none}
}
@container (max-width:294px) {
 .table-range>span {display:none}
 .table-footer .table-page-controls .icon-btn {width:34px;min-width:34px}
}
@container (max-width:235px) {
 .table-page-size>span {display:none}
 .table-page-controls,.table-page-size {gap:3px}
 .table-footer input[data-pagination-input] {width:39px}
}

.account-management {container-type:inline-size;display:grid;gap:16px}
.account-management-title h2 {margin:0 0 4px}
.account-management-title p {margin:0}
.account-panel {border:1px solid var(--border);border-radius:14px}
.account-panel>header {
 display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;
}
.settings-content .account-panel h3 {display:flex;align-items:center;gap:6px;margin:0;font-size:var(--font-body)}
.account-panel>header>.muted {font-size:.75rem;text-align:right}
.managed-account-count,.managed-account-chip {
 display:inline-flex;align-items:center;border-radius:8px;
 background:var(--accent-soft);color:var(--accent);padding:3px 8px;font-weight:650;font-size:.75rem;
}
.managed-account-count {font-variant-numeric:tabular-nums}
.managed-account-chip.role-member,.managed-account-chip.workspace-binhi {
 color:var(--text);background:color-mix(in srgb,var(--surface) 83%,#2aaa63);
}
.managed-account-chip.role-kalihim,.managed-account-chip.workspace-buklod {
 color:var(--text);background:color-mix(in srgb,var(--surface) 83%,#d79743);
}
.managed-account-row,.managed-account-head {display:grid;align-items:center;gap:12px;padding:8px 16px}
.managed-account-row {border-top:1px solid var(--border);min-height:60px}
.approval-row {grid-template-columns:minmax(0,1fr) auto 84px}
.approval-row>.btn {min-height:44px;justify-content:center;font-size:.8125rem}
.workspace-account-row {grid-template-columns:minmax(0,1.45fr) minmax(82px,.68fr) minmax(0,1fr) 44px}
.managed-account-head {background:var(--surface2);color:var(--muted);font-size:.75rem;font-weight:650}
.managed-account-name {display:flex;align-items:center;gap:8px;min-width:0}
.managed-account-name>.avatar {flex:none;width:34px;height:34px;border-radius:10px}
.managed-account-name b,.managed-account-name small {display:block;overflow-wrap:anywhere}
.managed-account-name b,.managed-account-link {font-size:.875rem}
.managed-account-name small {color:var(--muted);font-size:.75rem}
.managed-account-link {overflow-wrap:anywhere}
.managed-account-menu .more-btn {width:44px;height:44px}
.settings-content .account-panel-empty {margin:0;padding:0 16px 14px}
@container (max-width:480px) {
 .account-panel>header,.managed-account-row {padding-inline:10px}
 .managed-account-row {gap:4px 7px}
 .approval-row {grid-template-columns:minmax(0,1fr) auto 60px}
 .approval-row>.btn {padding-inline:5px}
 .managed-account-head {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .workspace-account-row {
  grid-template-columns:minmax(0,1fr) auto 44px;
  grid-template-areas:"identity role menu" "member member menu";
 }
 .workspace-account-row>div:first-child {grid-area:identity;min-width:0}
 .managed-account-role {grid-area:role}
 .managed-account-link {grid-area:member;padding-inline-start:35px}
 .managed-account-menu {grid-area:menu}
 .managed-account-chip {text-align:center;padding-inline:5px}
 .managed-account-name>.avatar {width:28px;height:28px}
}

/* Account navigation and announcement read receipts. */
.auth-form .auth-mode-link{margin:16px 0 8px}
.auth-mode-link .text-link{padding:0;margin:0;text-decoration:underline;text-underline-offset:2px}
.auth-form .auth-note{display:flex;align-items:center;gap:6px;font-size:clamp(12px,3.6vw,var(--font-ui));margin-inline:0}
.announcement-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;margin-top:12px}
.announcement-actions{display:flex;flex-wrap:wrap;gap:8px}
.announcement-seen{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin-inline-start:auto;padding:4px 0;border:0;background:none;color:var(--muted);font:inherit;font-size:var(--font-ui);cursor:pointer}
.announcement-seen:hover,.announcement-seen:focus-visible{color:var(--accent);text-decoration:underline;text-underline-offset:3px}

/* R7 controls use the same card gutters throughout the report. */
.report-filters-v202.report-selector-only{padding-bottom:18px}
.r7-card{--r7-gutter:24px}
.r7-card .r7-scope{display:flex;align-items:end;flex-wrap:wrap;gap:10px 14px;padding:8px var(--r7-gutter) 12px}
.r7-card .r7-scope :is(.field,.month-picker){min-width:0}
.r7-card .r7-scope select{width:100%;max-width:none}
.r7-card .r7-status{margin-inline:var(--r7-gutter)}
.r7-card .r7-form{padding-inline:var(--r7-gutter)}
.r7-form-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin-top:16px}
.r7-form-actions .btn{justify-content:center;min-height:44px}
.r7-history .table-tools{margin:0;padding:8px var(--r7-gutter) 0}
.r7-history .table-tools :is(.search-field input,.filter-btn,.mobile-sort-trigger .icon-btn){min-height:44px}
.r7-history .filter-summary{padding-inline:var(--r7-gutter)}
.app-shell[data-platform=android] [data-desktop-print]{display:none}
@media (max-width:760px){
 .r7-card{--r7-gutter:16px}
 .r7-card .r7-scope .month-picker{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%}
 .r7-card .r7-scope .month-picker>input{min-width:0;width:100%}
 .r7-card .r7-scope [type=submit]{width:100%;min-height:44px;justify-content:center}
 .r7-card .r7-scope>.field{flex:1 0 100%}
 .r7-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .r7-form-actions .btn{min-width:0;padding:8px;text-align:center;white-space:normal;font-size:var(--font-ui)}
 .r7-form-actions .btn:only-child,.r7-form-actions .btn:nth-child(3){grid-column:1/-1}
 .app-shell:not([data-platform=windows]) .r7-form-actions [data-desktop-print]{display:none}
}
