/* Resident web/PWA parity: logical geometry from the native citizen app.
 * Explicit body opt-in excludes staff/walk-in pages. Screen presentation only.
 * The native palette block is generated from CitizenBrandTheme.kt source pins.
 */
@media screen {
html:root[data-bims-theme="violet"][data-citizen-theme="light"] body.public-service-body.citizen-native-app {
  --native-primary: #6D28D9;
  --native-on-primary: #FFFFFF;
  --native-primary-container: #EDE9FE;
  --native-on-primary-container: #2E1065;
  --native-secondary: #A16207;
  --native-on-secondary: #FFFFFF;
  --native-secondary-container: #FFEDC2;
  --native-on-secondary-container: #2D1B00;
  --native-tertiary: #4C1D95;
  --native-on-tertiary: #FFFFFF;
  --native-tertiary-container: #D6EEFF;
  --native-on-tertiary-container: #00344F;
  --native-background: #FCF9FF;
  --native-on-background: #1F1A24;
  --native-surface: #FFFBFF;
  --native-on-surface: #1F1A24;
  --native-surface-variant: #EAE4F0;
  --native-on-surface-variant: #4C4653;
  --native-outline: #7A7280;
  --native-error: #B3261E;
  --native-error-container: #FFDAD6;
  --native-on-error-container: #410002;
}
html:root[data-bims-theme="violet"][data-citizen-theme="dark"] body.public-service-body.citizen-native-app {
  --native-primary: #C4B5FD;
  --native-on-primary: #3B0764;
  --native-primary-container: #4C1D95;
  --native-on-primary-container: #EDE9FE;
  --native-secondary: #FCD34D;
  --native-on-secondary: #3B2600;
  --native-secondary-container: #5A4300;
  --native-on-secondary-container: #FFEDC2;
  --native-tertiary: #A78BFA;
  --native-on-tertiary: #2E1065;
  --native-tertiary-container: #5B21B6;
  --native-on-tertiary-container: #EDE9FE;
  --native-background: #15121B;
  --native-on-background: #E9E1EC;
  --native-surface: #1F1B24;
  --native-on-surface: #E9E1EC;
  --native-surface-variant: #34303A;
  --native-on-surface-variant: #D0C8D4;
  --native-outline: #968E9B;
  --native-error: #FFB4AB;
  --native-error-container: #93000A;
  --native-on-error-container: #FFDAD6;
}
html:root[data-bims-theme="emerald"][data-citizen-theme="light"] body.public-service-body.citizen-native-app {
  --native-primary: #047857;
  --native-on-primary: #FFFFFF;
  --native-primary-container: #D8F5E5;
  --native-on-primary-container: #002114;
  --native-secondary: #A16207;
  --native-on-secondary: #FFFFFF;
  --native-secondary-container: #FFEEC4;
  --native-on-secondary-container: #271900;
  --native-tertiary: #065F46;
  --native-on-tertiary: #FFFFFF;
  --native-tertiary-container: #BDF1F5;
  --native-on-tertiary-container: #002021;
  --native-background: #F3FAF6;
  --native-on-background: #102A20;
  --native-surface: #FFFFFF;
  --native-on-surface: #102A20;
  --native-surface-variant: #E5F2EB;
  --native-on-surface-variant: #415148;
  --native-outline: #718078;
  --native-error: #B3261E;
  --native-error-container: #FFDAD6;
  --native-on-error-container: #410002;
}
html:root[data-bims-theme="emerald"][data-citizen-theme="dark"] body.public-service-body.citizen-native-app {
  --native-primary: #6EE7B7;
  --native-on-primary: #003822;
  --native-primary-container: #005234;
  --native-on-primary-container: #8BFFC7;
  --native-secondary: #FCD34D;
  --native-on-secondary: #3F2E00;
  --native-secondary-container: #5B4300;
  --native-on-secondary-container: #FFEEC4;
  --native-tertiary: #34D399;
  --native-on-tertiary: #003829;
  --native-tertiary-container: #065F46;
  --native-on-tertiary-container: #D1FAE5;
  --native-background: #0D1510;
  --native-on-background: #DCE8DF;
  --native-surface: #121D16;
  --native-on-surface: #DCE8DF;
  --native-surface-variant: #29382F;
  --native-on-surface-variant: #BECCBF;
  --native-outline: #899A8E;
  --native-error: #FFB4AB;
  --native-error-container: #93000A;
  --native-on-error-container: #FFDAD6;
}
html:root[data-bims-theme="crimson"][data-citizen-theme="light"] body.public-service-body.citizen-native-app {
  --native-primary: #B4233D;
  --native-on-primary: #FFFFFF;
  --native-primary-container: #FFDAD6;
  --native-on-primary-container: #410002;
  --native-secondary: #9A6700;
  --native-on-secondary: #FFFFFF;
  --native-secondary-container: #FFDAD4;
  --native-on-secondary-container: #2C1512;
  --native-tertiary: #8F1D34;
  --native-on-tertiary: #FFFFFF;
  --native-tertiary-container: #FFE08B;
  --native-on-tertiary-container: #241A00;
  --native-background: #FFF8F7;
  --native-on-background: #211A19;
  --native-surface: #FFFBFF;
  --native-on-surface: #211A19;
  --native-surface-variant: #F5DDDA;
  --native-on-surface-variant: #534341;
  --native-outline: #857370;
  --native-error: #B3261E;
  --native-error-container: #FFDAD6;
  --native-on-error-container: #410002;
}
html:root[data-bims-theme="crimson"][data-citizen-theme="dark"] body.public-service-body.citizen-native-app {
  --native-primary: #FDA4AF;
  --native-on-primary: #690005;
  --native-primary-container: #93000A;
  --native-on-primary-container: #FFDAD6;
  --native-secondary: #FCD34D;
  --native-on-secondary: #442925;
  --native-secondary-container: #5D3F3A;
  --native-on-secondary-container: #FFDAD4;
  --native-tertiary: #FB7185;
  --native-on-tertiary: #4C0519;
  --native-tertiary-container: #8F1D34;
  --native-on-tertiary-container: #FFDDE3;
  --native-background: #191111;
  --native-on-background: #F0DFDC;
  --native-surface: #211A19;
  --native-on-surface: #F0DFDC;
  --native-surface-variant: #3A2D2B;
  --native-on-surface-variant: #D8C2BE;
  --native-outline: #A08C88;
  --native-error: #FFB4AB;
  --native-error-container: #93000A;
  --native-on-error-container: #FFDAD6;
}
html:root[data-bims-theme="ocean"][data-citizen-theme="light"] body.public-service-body.citizen-native-app {
  --native-primary: #0369A1;
  --native-on-primary: #FFFFFF;
  --native-primary-container: #CDE5FF;
  --native-on-primary-container: #001E31;
  --native-secondary: #B45309;
  --native-on-secondary: #FFFFFF;
  --native-secondary-container: #D8F5A0;
  --native-on-secondary-container: #151F00;
  --native-tertiary: #075985;
  --native-on-tertiary: #FFFFFF;
  --native-tertiary-container: #E8DEFF;
  --native-on-tertiary-container: #24134F;
  --native-background: #F8FAFF;
  --native-on-background: #191C20;
  --native-surface: #FBFCFF;
  --native-on-surface: #191C20;
  --native-surface-variant: #DEE6EE;
  --native-on-surface-variant: #42474E;
  --native-outline: #72777F;
  --native-error: #B3261E;
  --native-error-container: #FFDAD6;
  --native-on-error-container: #410002;
}
html:root[data-bims-theme="ocean"][data-citizen-theme="dark"] body.public-service-body.citizen-native-app {
  --native-primary: #7DD3FC;
  --native-on-primary: #003353;
  --native-primary-container: #004B75;
  --native-on-primary-container: #CDE5FF;
  --native-secondary: #FDBA74;
  --native-on-secondary: #263500;
  --native-secondary-container: #384B00;
  --native-on-secondary-container: #D8F5A0;
  --native-tertiary: #38BDF8;
  --native-on-tertiary: #00334A;
  --native-tertiary-container: #075985;
  --native-on-tertiary-container: #DDF4FF;
  --native-background: #101417;
  --native-on-background: #DFE3E8;
  --native-surface: #181C20;
  --native-on-surface: #DFE3E8;
  --native-surface-variant: #2D3339;
  --native-on-surface-variant: #C2C8CF;
  --native-outline: #8C9299;
  --native-error: #FFB4AB;
  --native-error-container: #93000A;
  --native-on-error-container: #FFDAD6;
}
html:root[data-bims-theme="midnight"][data-citizen-theme="light"] body.public-service-body.citizen-native-app {
  --native-primary: #1D4ED8;
  --native-on-primary: #FFFFFF;
  --native-primary-container: #DBEAFE;
  --native-on-primary-container: #172554;
  --native-secondary: #A16207;
  --native-on-secondary: #FFFFFF;
  --native-secondary-container: #FEF3C7;
  --native-on-secondary-container: #3B2300;
  --native-tertiary: #1E3A8A;
  --native-on-tertiary: #FFFFFF;
  --native-tertiary-container: #E0E7FF;
  --native-on-tertiary-container: #172554;
  --native-background: #F8FAFF;
  --native-on-background: #171B2C;
  --native-surface: #FBFCFF;
  --native-on-surface: #171B2C;
  --native-surface-variant: #E2E7F5;
  --native-on-surface-variant: #43475A;
  --native-outline: #73778B;
  --native-error: #B3261E;
  --native-error-container: #FFDAD6;
  --native-on-error-container: #410002;
}
html:root[data-bims-theme="midnight"][data-citizen-theme="dark"] body.public-service-body.citizen-native-app {
  --native-primary: #93C5FD;
  --native-on-primary: #172554;
  --native-primary-container: #1E3A8A;
  --native-on-primary-container: #DBEAFE;
  --native-secondary: #FCD34D;
  --native-on-secondary: #3B2500;
  --native-secondary-container: #5C4300;
  --native-on-secondary-container: #FEF3C7;
  --native-tertiary: #60A5FA;
  --native-on-tertiary: #082F6D;
  --native-tertiary-container: #1E3A8A;
  --native-on-tertiary-container: #DBEAFE;
  --native-background: #101522;
  --native-on-background: #DFE6F7;
  --native-surface: #171D2D;
  --native-on-surface: #DFE6F7;
  --native-surface-variant: #2C3447;
  --native-on-surface-variant: #C3CADC;
  --native-outline: #8D95A8;
  --native-error: #FFB4AB;
  --native-error-container: #93000A;
  --native-on-error-container: #FFDAD6;
}

html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app {
  --native-border: color-mix(in srgb, var(--native-outline) 28%, var(--native-surface));
  --native-shadow: color-mix(in srgb, var(--native-on-surface) 8%, transparent);
  --bims-primary: var(--native-primary); --bims-primary-strong: var(--native-primary);
  --bims-primary-soft: var(--native-primary-container); --bims-on-primary: var(--native-on-primary);
  --bims-accent: var(--native-secondary); --bims-accent-strong: var(--native-secondary); --bims-accent-soft: var(--native-secondary-container);
  --bims-surface: var(--native-surface); --bims-surface-soft: var(--native-surface-variant); --bims-surface-inset: var(--native-background);
  --bims-text: var(--native-on-surface); --bims-text-strong: var(--native-on-surface); --bims-muted: var(--native-on-surface-variant);
  --bims-border: var(--native-border); --bims-border-strong: var(--native-outline);
  --bims-canvas: var(--native-background); --bims-canvas-tint: var(--native-background); --bims-shadow: var(--native-shadow);
  --portal-surface: var(--native-surface); --portal-surface-soft: var(--native-surface-variant);
  --portal-text: var(--native-on-surface); --portal-text-strong: var(--native-on-surface); --portal-muted: var(--native-on-surface-variant);
  --portal-border: var(--native-border); --portal-primary: var(--native-primary); --portal-primary-strong: var(--native-primary); --portal-primary-soft: var(--native-primary-container);
  --citizen-ui-surface: var(--native-surface); --citizen-ui-surface-soft: var(--native-surface-variant); --citizen-ui-surface-inset: var(--native-background);
  --citizen-ui-text: var(--native-on-surface); --citizen-ui-text-strong: var(--native-on-surface); --citizen-ui-muted: var(--native-on-surface-variant);
  --citizen-ui-border: var(--native-border); --citizen-ui-border-strong: var(--native-outline);
  --citizen-ui-primary: var(--native-primary); --citizen-ui-primary-strong: var(--native-primary); --citizen-ui-primary-soft: var(--native-primary-container);
  --citizen-ui-accent: var(--native-secondary); --citizen-ui-accent-soft: var(--native-secondary-container);
  --ui-danger: var(--native-error); --ui-danger-soft: var(--native-error-container);
  --citizen-native-bottom: var(--citizen-native-nav-height,80px);
  min-width: 280px; min-height: 100svh; margin: 0; padding: 0;
  background: var(--native-background) !important; color: var(--native-on-background) !important;
  font-family: var(--citizen-app-font, Roboto, "Segoe UI", system-ui, sans-serif);
  font-size: 16px; font-weight: 400; line-height: 1.5; -webkit-text-size-adjust: 100%;
}
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main.public-service-shell {
  width: 100%; max-width: 1120px; min-width: 0; margin: 0 auto;
  padding: 0 20px calc(var(--citizen-native-bottom) + 28px);
}
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(h1,h2,h3,h4,p) { overflow-wrap: break-word; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(h1,h2,h3,h4,strong,b,dt,.field-title) { color: var(--native-on-surface) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app h1 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app h2 { margin: 0 0 8px; font-size: 1.375rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app p { margin: 0 0 12px; font-size: .875rem; line-height: 1.5; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(small,.muted,.form-help-text,.help-text) { color: var(--native-on-surface-variant) !important; font-size: .75rem; line-height: 1.5; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--native-primary); outline-offset: 3px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app a { color: var(--native-primary); text-underline-offset: 3px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .eyebrow { color: var(--native-primary) !important; font-size: .75rem; font-weight: 500; letter-spacing: .04em; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.panel-header,.dashboard-panel-header) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.panel-header,.dashboard-panel-header)::before { display: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-icon { display: inline-flex; flex: 0 0 24px; width: 24px; height: 24px; align-items: center; justify-content: center; color: inherit; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-icon svg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: none; }
/* Compact city identity and tools at every viewport width. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar,
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-shell .citizen-native-topbar,
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar[data-citizen-native-shell] {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 4px;
  width: calc(100% + 40px); min-height: 64px; margin: 0 -20px 20px;
  padding: calc(6px + env(safe-area-inset-top,0px)) 4px 6px 12px;
  border: 0 !important; border-radius: 0; background: var(--native-surface) !important;
  color: var(--native-on-surface) !important; box-shadow: 0 2px 5px var(--native-shadow) !important; backdrop-filter: none;
}
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; color: var(--native-on-surface); text-decoration: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand :is(img,.city-main-logo) { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; border: 0; border-radius: 50%; box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand > span { display: grid; min-width: 0; gap: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand :is(small,.citizen-native-brand-kicker) { display: block; color: var(--native-on-surface-variant) !important; font-size: .6875rem; line-height: 1.35; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand :is(b,strong) { color: var(--native-on-surface) !important; font-size: 1rem; line-height: 1.5; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools :is(button,.citizen-notification-toggle,.citizen-public-menu-toggle) {
  display: inline-grid; place-items: center; flex: 0 0 48px; width: 48px !important; min-width: 48px !important;
  height: 48px !important; min-height: 48px !important; margin: 0; padding: 12px;
  border: 0 !important; border-radius: 50%; background: transparent !important; color: var(--native-on-surface) !important; box-shadow: none !important;
}
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools :is(button,.citizen-notification-toggle):hover { background: var(--native-surface-variant) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools :is(button,.citizen-notification-toggle) .bpw-icon { width: 24px !important; min-width: 24px !important; height: 24px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: inherit !important; box-shadow: none !important; --icon-ink: currentColor; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools .citizen-notification-badge { position: absolute; top: 3px; right: 2px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border: 0; border-radius: 999px; background: var(--native-error); color: #fff; font-size: .5rem; line-height: 1; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-public-menu-shell,.citizen-notification-shell) { position: relative; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-public-menu,.citizen-notification-popover) { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; width: min(360px,calc(100vw - 24px)); max-height: min(70svh,640px); overflow: auto; padding: 8px; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: 0 8px 24px var(--native-shadow) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-public-menu:not([hidden]) { display: grid; gap: 2px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-public-menu :is(a,button) { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--native-on-surface); font-size: .875rem; text-decoration: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-public-menu :is(a,button):hover { background: var(--native-surface-variant); }
/* Fixed native destinations; safe area belongs to the bottom bar only. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav,
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs[data-citizen-native-shell],
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-shell > .citizen-website-mobile-tabs {
  position: fixed; inset: auto 0 0; z-index: 70; display: grid !important;
  grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; width: 100%; max-width: 1120px; min-height: 80px;
  margin: 0 auto; padding: 0 8px env(safe-area-inset-bottom,0px); border: 0 !important; border-radius: 0;
  background: var(--native-surface-variant) !important; color: var(--native-on-surface); box-shadow: 0 -2px 6px var(--native-shadow) !important;
}
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 80px; margin: 0; padding: 10px 4px; border: 0; border-radius: 0; background: transparent !important; color: var(--native-on-surface-variant) !important; text-decoration: none; font-size: .75rem; font-weight: 400; line-height: 1.35; text-align: center; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a :is(.bpw-icon,.citizen-native-icon) { display: inline-flex; align-items: center; justify-content: center; flex-basis: auto; box-sizing: content-box; width: 28px !important; min-width: 28px !important; height: 28px !important; padding: 3px 16px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; color: inherit !important; box-shadow: none !important; --icon-ink: currentColor; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a:is(.is-active,[aria-current="page"]) { color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a:is(.is-active,[aria-current="page"]) :is(.bpw-icon,.citizen-native-icon) { background: var(--native-primary-container) !important; color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a > span:not(.bpw-icon):not(.citizen-native-icon) { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
/* Existing resident content uses quiet native surfaces, without a second hero. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-hero-panel,.citizen-access-hero,.citizen-account-hero,.citizen-resident-hero,.citizen-ask-intro) { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 0; margin: 0 0 20px; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--native-on-surface) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-hero-panel,.citizen-access-hero,.citizen-account-hero,.citizen-resident-hero)::before,
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-hero-panel,.citizen-access-hero,.citizen-account-hero,.citizen-resident-hero)::after { display: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-hero-panel,.citizen-access-hero,.citizen-account-hero,.citizen-resident-hero) h1 { color: var(--native-on-surface) !important; font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-hero-panel,.citizen-access-hero,.citizen-account-hero,.citizen-resident-hero) p { max-width: 70ch; color: var(--native-on-surface-variant) !important; font-size: .875rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-service-card,.citizen-access-card,.citizen-account-panel,.citizen-resident-wizard,.citizen-resident-state-card,.citizen-resident-correction,.citizen-resident-help,.citizen-news-hub,.citizen-ask-assistant,.tracking-order-card) { min-width: 0; margin-bottom: 16px; padding: 16px; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .public-service-card .public-service-card { margin-top: 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-service-grid,.citizen-directory-sections,.citizen-news-stack) { gap: 16px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .public-service-grid { display: grid; grid-template-columns: minmax(0,1fr); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn,.citizen-access-form-actions .btn,.citizen-mobile-request-view,.citizen-mobile-request-toggle,.citizen-request-detail-modal-dismiss,.citizen-news-load-more) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; min-height: 48px !important; height: auto !important; max-width: 100%; padding: 6px 12px; border: 1px solid var(--native-outline) !important; border-radius: 12px; background: transparent !important; color: var(--native-primary) !important; box-shadow: none !important; font-family: inherit; font-size: .875rem; font-weight: 500; line-height: 1.45; text-decoration: none; white-space: normal; overflow-wrap: break-word; text-align: center; transform: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn.primary,.btn.btn-primary,.btn--primary,button[type="submit"].primary) { border-color: var(--native-primary) !important; background: var(--native-primary) !important; color: var(--native-on-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn-danger,.btn--danger) { border-color: var(--native-error) !important; background: var(--native-error) !important; color: #fff !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn,.citizen-mobile-request-view,.citizen-mobile-request-toggle) :is(.bpw-icon,.citizen-native-icon) { flex: 0 0 18px; width: 18px !important; min-width: 18px !important; height: 18px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: inherit !important; box-shadow: none !important; --icon-ink: currentColor; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn,button):disabled { opacity: .55; cursor: not-allowed; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.button-row,.form-actions,.dc-wizard-actions,.citizen-resident-wizard-actions,.citizen-access-form-actions) { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; align-items: stretch; margin-top: 16px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.button-row,.form-actions,.dc-wizard-actions,.citizen-resident-wizard-actions) > .btn { flex: 0 1 auto; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea) { min-width: 0; max-width: 100%; min-height: 56px !important; height: auto !important; padding: 12px 14px; border: 1px solid var(--native-outline) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: none !important; font: inherit; font-size: 1rem; line-height: 1.5; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app textarea { min-height: 112px; resize: vertical; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app input[type="file"] { padding: 10px; font-size: .875rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(input[type="checkbox"],input[type="radio"]) { width: 22px; height: 22px; min-height: 0; margin: 2px 0; accent-color: var(--native-primary); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(input,textarea)::placeholder { color: var(--native-on-surface-variant); opacity: 1; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.field-title,label > span:first-child) { font-size: .875rem; font-weight: 500; line-height: 1.5; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.form-grid,.citizen-access-field-grid,.citizen-account-preference-grid) { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.form-grid,.citizen-access-field-grid) > label { min-width: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.full-span,.span-two) { grid-column: 1 / -1; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .public-consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-location-panel,.public-combo-panel,.citizen-scope-results) { border-color: var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: 0 4px 14px var(--native-shadow); }
/* One resident homepage across installed PWA, browser, and desktop widths. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-welcome { display: block !important; margin: 0 0 12px; padding: 0; border: 0; background: transparent; box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-welcome h1 { margin: 0; font-size: 1.375rem; line-height: 1.4; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-kicker { color: var(--native-on-surface-variant); font-size: .75rem; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-modules { display: block !important; margin: 0 0 16px; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-modules-heading { margin: 0 0 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-modules-heading h2 { font-size: 1.375rem; font-weight: 600; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-grid > a { display: flex; align-items: center; min-width: 0; min-height: 80px; gap: 10px; padding: 12px; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: none !important; text-decoration: none; transform: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-grid > a:hover { border-color: var(--native-primary) !important; background: color-mix(in srgb,var(--native-primary-container) 25%,var(--native-surface)) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; margin: 0; padding: 8px; border: 0; border-radius: 12px; background: var(--native-primary-container) !important; color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-icon :is(.bpw-icon,.citizen-native-icon) { width: 20px !important; min-width: 20px !important; height: 20px !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: inherit !important; box-shadow: none !important; --icon-ink: currentColor; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-copy { display: block; min-width: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-copy b { display: block; font-size: .875rem; line-height: 1.45; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-copy small { display: block; margin-top: 3px; font-size: .75rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 8px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > label { flex: 1 1 auto; min-width: 0; margin: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search input { width: 100%; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > button { flex: 0 0 48px; width: 48px; height: 56px !important; padding: 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-home-secondary,.citizen-native-secondary) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 16px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-home-secondary,.citizen-native-secondary) > a { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--native-surface-variant) !important; color: var(--native-on-surface) !important; font-size: .75rem; font-weight: 500; line-height: 1.45; text-decoration: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-home-secondary,.citizen-native-secondary) :is(.bpw-icon,.citizen-native-icon) { flex: 0 0 18px; width: 18px !important; min-width: 18px !important; height: 18px !important; padding: 0 !important; background: transparent !important; color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-access-card,.citizen-portal-mobile-verification,.citizen-resident-onboarding-card) { display: flex !important; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px; padding: 16px; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-access-card h2 { flex-basis: 100%; margin-bottom: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-access-card .btn { flex: 1 1 156px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-onboarding-card > div { flex: 1 1 240px; min-width: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-onboarding-card h2 { font-size: 1rem; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-onboarding-card p { margin: 3px 0 8px; font-size: .75rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-onboarding-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--native-primary-container) !important; color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-onboarding-card.is-update_needed { border-color: var(--native-secondary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-public-content { display: grid !important; grid-template-columns: minmax(0,1fr); gap: 20px; margin: 20px 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-feed-card { display: block; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-card-heading h2 { margin: 0; font-size: 1.375rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-list { display: grid; gap: 10px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-item { display: flex; align-items: flex-start; gap: 10px; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-copy { flex: 1 1 auto; min-width: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-copy h3 { font-size: .875rem; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-copy :is(p,small) { margin: 3px 0; color: var(--native-on-surface-variant) !important; font-size: .75rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-news-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--native-primary-container); color: var(--native-primary); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-image { width: 100%; max-width: 360px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--native-surface-variant); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-image img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-portal-mobile-update-link,.citizen-portal-mobile-card-heading > a,.citizen-news-see-more,.citizen-portal-mobile-empty > a) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 999px; background: var(--native-primary-container); color: var(--native-primary) !important; font-size: .75rem; font-weight: 500; text-decoration: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-portal-mobile-empty,.citizen-news-empty,.citizen-portal-empty) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; padding: 16px; border: 1px solid var(--native-border); border-radius: 12px; background: var(--native-surface-variant) !important; color: var(--native-on-surface-variant) !important; font-size: .875rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlights { display: block; margin: 20px 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlights-track { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--native-border); border-radius: 12px; background: var(--native-surface); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card :is(figcaption,h3,p) { margin: 0; padding: 10px 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore { display: grid; gap: 8px; margin: 20px 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore :is(h2,header) { margin-bottom: 4px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore-link { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px; border: 1px solid var(--native-border); border-radius: 12px; background: var(--native-surface); color: var(--native-on-surface); font-size: .875rem; font-weight: 500; text-decoration: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore-link :is(.bpw-icon,.citizen-native-icon) { flex: 0 0 24px; width: 24px; height: 24px; color: var(--native-primary); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-details { margin: 16px 0; padding: 14px; border: 1px solid var(--native-border); border-radius: 12px; background: var(--native-surface); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-details > summary { min-height: 48px; font-size: .875rem; font-weight: 500; cursor: pointer; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-footer { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding: 16px 0; border: 0; color: var(--native-on-surface-variant); font-size: .75rem; text-align: left; }
/* Authentication and account panels share the same native form rhythm. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth { max-width: 480px; margin: 0 auto 24px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth > .btn { margin-bottom: 24px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-access-card { max-width: none; margin: 0; padding: 20px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-card-head h2 { font-size: 1.5rem; font-weight: 600; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-form { display: grid; gap: 18px; margin-top: 18px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-form-section { display: grid; gap: 12px; padding: 0; border: 0; background: transparent; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-form-actions { margin-top: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-form-actions > .btn { flex: 1 1 156px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-field-grid { grid-template-columns: minmax(0,1fr); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-password-control { position: relative; display: block; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-password-control > input { width: 100%; padding-right: 56px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-password-control > button { position: absolute; inset: 4px 4px auto auto; display: grid; place-items: center; width: 48px; height: 48px; min-height: 48px; padding: 12px; border: 0; border-radius: 8px; background: transparent; color: var(--native-on-surface-variant); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth-steps { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; padding: 0; list-style: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth-steps > li { flex: 1 1 85px; padding: 8px; border-radius: 12px; background: var(--native-surface-variant); font-size: .75rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth-steps > li.is-active { background: var(--native-primary-container); color: var(--native-on-primary-container); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-access-card-icon,.citizen-account-panel-icon,.citizen-access-hero-mark) { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 9px; border: 0; border-radius: 12px; background: var(--native-primary-container) !important; color: var(--native-primary) !important; box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 16px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-profile { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 14px; border: 0 !important; border-radius: 12px; background: var(--native-primary-container) !important; color: var(--native-on-primary-container) !important; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-profile :is(h2,b,p) { color: var(--native-on-primary-container) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-avatar { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; margin: 0; border: 0; border-radius: 50%; background: color-mix(in srgb,var(--native-primary) 14%,transparent); color: var(--native-primary) !important; box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-avatar img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-profile-kicker { margin: 0; color: var(--native-primary) !important; font-size: .75rem; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-profile-note { flex-basis: 100%; font-size: .75rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panels { display: grid; gap: 16px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panel { margin: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-account-form,.citizen-account-inline-form) { display: grid; gap: 14px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-account-panel-overline,.citizen-access-overline,.citizen-access-step) { color: var(--native-primary) !important; font-size: .75rem; font-weight: 500; }
/* Real server records retain their existing View/Show details contracts. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker { padding: 0; border: 0 !important; background: transparent !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker .citizen-action-card { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: start; gap: 10px 12px; min-width: 0; margin: 10px 0; padding: 20px 16px 16px; overflow: hidden; border: 1px solid var(--native-border) !important; border-top: 4px solid var(--native-primary) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: 0 1px 3px var(--native-shadow) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker .citizen-action-card > .citizen-action-icon { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 9px; border: 0; border-radius: 12px; background: var(--native-primary-container) !important; color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker .citizen-action-card > div:not(.citizen-mobile-request-actions):not(.citizen-mobile-request-expanded) { grid-column: 2; min-width: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker .citizen-action-card > .badge { grid-column: 3; grid-row: 1; max-width: 140px; white-space: normal; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-action-card h3 { font-size: 1rem; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-request-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 6px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-mobile-request-view,.citizen-mobile-request-toggle) { border: 0 !important; border-radius: 999px; background: var(--native-primary-container) !important; font-size: .75rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-request-expanded { grid-column: 1 / -1; min-width: 0; padding-top: 10px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-mobile-request-section,.citizen-request-detail-copy,.citizen-service-next-action,.dc-tracker-appointment) { margin: 12px 0; padding: 14px; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface-variant) !important; color: var(--native-on-surface) !important; box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-service-status-grid,.citizen-mobile-request-overview) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-request-detail-modal { width: min(640px,calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; overflow: auto; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface); box-shadow: 0 16px 48px var(--native-shadow); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-request-detail-modal::backdrop { background: color-mix(in srgb,var(--native-on-background) 45%,transparent); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-request-detail-modal-head,.citizen-request-detail-modal-body) { padding: 16px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-request-detail-modal-close,.citizen-notification-close) { display: grid; place-items: center; flex: 0 0 48px; min-width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--native-on-surface); font: inherit; font-size: 1.5rem; }
/* Published news, hotlines, and resident request wizards use native scale. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-news-tablist,.citizen-native-news-tabs,.citizen-native-service-tabs,.citizen-service-tabs) { display: flex; align-items: stretch; gap: 0; min-height: 48px; padding: 0; overflow-x: auto; border: 0 !important; border-bottom: 1px solid var(--native-border) !important; border-radius: 0; background: transparent !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-news-tab,.citizen-native-news-tabs > a,.citizen-native-service-tabs > a,.citizen-service-tabs > a) { display: flex; align-items: center; justify-content: center; flex: 1 0 90px; min-width: 0; min-height: 48px; padding: 8px 10px; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0; background: transparent !important; color: var(--native-on-surface-variant) !important; font-size: .875rem; font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-news-tab.is-selected,.citizen-native-news-tabs > a.is-active,.citizen-native-service-tabs > a.is-active,.citizen-native-service-tabs > a[aria-current="page"],.citizen-service-tabs > a.is-active) { border-bottom-color: var(--native-primary) !important; color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-news-card { padding: 14px; border: 1px solid var(--native-border) !important; border-radius: 12px; background: var(--native-surface) !important; color: var(--native-on-surface) !important; box-shadow: 0 1px 3px var(--native-shadow) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-news-card :is(h3,p) { color: var(--native-on-surface) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-news-card :is(.citizen-news-scope,.citizen-news-card-copy) { color: var(--native-on-surface-variant) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-news-heading-icon,.citizen-news-type) { color: var(--native-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-news-heading-icon { background: var(--native-primary-container) !important; border: 0 !important; border-radius: 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-directory-grid > article { min-width: 0; padding: 14px; border: 1px solid var(--native-border); border-radius: 12px; background: var(--native-surface); box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-directory-grid.emergency > article { border-top: 4px solid var(--native-error); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.dc-wizard-progress,.citizen-resident-timeline) { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.dc-wizard-progress,.citizen-resident-timeline) > li { min-width: 0; padding: 10px; border: 0; border-radius: 12px; background: var(--native-surface-variant); color: var(--native-on-surface-variant); box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.dc-wizard-progress,.citizen-resident-timeline) > li:is(.is-active,.is-done) { background: var(--native-primary-container); color: var(--native-on-primary-container); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.dc-wizard-progress,.citizen-resident-timeline) > li:is(.is-active,.is-done) > :is(small,span) { background: var(--native-primary); color: var(--native-on-primary) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.alert,.citizen-resident-live-message) { padding: 14px 16px; border-radius: 12px; font-size: .875rem; line-height: 1.5; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.alert-danger,.alert.bad) { border: 1px solid var(--native-error) !important; background: var(--native-error-container) !important; color: var(--native-on-error-container) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.alert-warning,.alert.warn) { border: 1px solid var(--native-secondary) !important; background: var(--native-secondary-container) !important; color: var(--native-on-secondary-container) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.alert-info,.citizen-resident-live-message) { border: 1px solid var(--native-primary) !important; background: var(--native-primary-container) !important; color: var(--native-on-primary-container) !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .alert :is(strong,b,p,small) { color: inherit !important; }
/* Do not allow visual layout overrides to reveal gated panels or honeypots. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app [hidden][hidden][hidden] { display: none !important; }
@media (min-width:800px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlights-track { gap: 16px; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panels { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panel--preferences { grid-column: 1 / -1; }
}
@media (max-width:600px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.form-grid,.citizen-access-field-grid,.citizen-account-preference-grid,.citizen-directory-grid) { grid-template-columns: minmax(0,1fr); }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlights-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card { flex: 0 0 88%; scroll-snap-align: start; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card img { max-height: 230px; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-onboarding-card > .btn { width: 100%; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker .citizen-action-card { grid-template-columns: 40px minmax(0,1fr); }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker .citizen-action-card > .badge { grid-column: 2; grid-row: 2; justify-self: start; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-service-status-grid,.citizen-mobile-request-overview) { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:429px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a :is(.bpw-icon,.citizen-native-icon) { width: 24px !important; min-width: 24px !important; height: 24px !important; padding-inline: 13px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.dc-wizard-progress,.citizen-resident-timeline) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:359px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app { --citizen-native-bottom: var(--citizen-native-nav-height,160px); }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs[data-citizen-native-shell],
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-shell > .citizen-website-mobile-tabs { grid-template-columns: repeat(6,minmax(0,1fr)); min-height: 160px; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a { grid-column: span 2; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-website-mobile-tabs > a:nth-child(n+4) { grid-column: span 3; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-grid { grid-template-columns: minmax(0,1fr); }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-home-secondary,.citizen-native-secondary) { grid-template-columns: minmax(0,1fr); }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand img { width: 36px; height: 36px; flex-basis: 36px; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand :is(b,strong) { font-size: .875rem; }
}
@media (prefers-reduced-motion:reduce) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn,.citizen-news-card-copy,.citizen-mobile-request-expanded) { transition: none; scroll-behavior: auto; }
}

/* Exact shared-header DOM and single-column resident form refinements. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-label-compact { display: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-notification-popover { position: fixed; top: calc(72px + env(safe-area-inset-top,0px)); right: 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-complaint-form,.record-form,.citizen-resident-wizard) { max-width: 960px; margin-inline: auto; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search { position: relative; min-height: 56px; gap: 0; border: 1px solid var(--native-outline); border-radius: 12px; background: var(--native-surface); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > input { min-height: 54px; padding: 12px 56px 12px 44px; border: 0 !important; background: transparent !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > span[aria-hidden] { position: absolute; left: 14px; top: 16px; display: flex; width: 24px; height: 24px; color: var(--native-primary); pointer-events: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > span .bpw-icon { width: 24px; height: 24px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > button { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 48px; height: 48px !important; min-height: 48px; border: 0; border-radius: 8px; background: transparent; color: var(--native-primary); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-access-card .citizen-native-secondary { flex-basis: 100%; width: 100%; margin-bottom: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card { display: block; text-decoration: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card > span { display: grid; gap: 4px; padding: 10px 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlight-card b { font-size: .875rem; font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth-steps > li[aria-current="step"] { background: var(--native-primary-container); color: var(--native-on-primary-container); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth-steps > li > span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--native-outline); color: var(--native-surface); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth-steps > li[aria-current="step"] > span { background: var(--native-primary); color: var(--native-on-primary); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore-link > span:not(.bpw-icon):not(.citizen-native-icon) { flex: 1 1 auto; min-width: 0; }
@media (max-width:429px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-label-wide { display: none; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-label-compact { display: inline; }
}
@media (max-width:359px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav { grid-template-columns: repeat(6,minmax(0,1fr)); min-height: 160px; }
}

/* Resident recovery/history pages render this same header directly in body. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > .citizen-native-topbar { width: 100%; max-width: 1120px; margin: 0 auto 20px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main:is(.recovery-shell,.notice-history,.container) { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px calc(var(--citizen-native-bottom) + 28px); }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.recovery-shell,.notice-history,.container) .panel { margin: 0 0 16px; padding: 16px; border: 1px solid var(--native-border); border-radius: 12px; background: var(--native-surface); color: var(--native-on-surface); box-shadow: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.recovery-grid,.stack-form) { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; max-width: 960px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .recovery-grid > .full { grid-column: 1 / -1; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.filter-form,.notice-history .button-row) { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 16px 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .filter-form > label { display: grid; flex: 1 1 220px; gap: 6px; min-width: 0; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .filter-form :is(input,select) { width: 100%; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .declaration { display: flex; align-items: flex-start; gap: 12px; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .table-responsive { max-width: 100%; margin-top: 16px; overflow-x: auto; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .table-responsive table { width: 100%; border-collapse: collapse; font-size: .875rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .table-responsive :is(td,th) { padding: 12px; border-bottom: 1px solid var(--native-border); color: var(--native-on-surface); text-align: left; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .table-responsive th { background: var(--native-surface-variant); font-weight: 500; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools .citizen-mobile-theme-icon { display: none; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools .citizen-mobile-theme-icon--moon { display: inline-flex; }
html:root[data-bims-theme][data-citizen-theme="dark"] body.public-service-body.citizen-native-app .citizen-native-tools .citizen-mobile-theme-icon--moon { display: none; }
html:root[data-bims-theme][data-citizen-theme="dark"] body.public-service-body.citizen-native-app .citizen-native-tools .citizen-mobile-theme-icon--sun { display: inline-flex; }

/* Reset the legacy column flex basis, which otherwise makes auth actions tall. */
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-form-actions { flex-direction: row; align-items: stretch; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-access-form-actions > .btn { flex: 1 1 156px; width: auto; min-height: 48px !important; height: auto !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth-recovery { display: inline-flex; align-items: center; justify-content: center; flex-basis: 100%; min-height: 48px; font-size: .875rem; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar .citizen-native-tools button.citizen-mobile-header-theme { background: transparent !important; background-image: none !important; border: 0 !important; border-radius: 50% !important; box-shadow: none !important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar .citizen-native-tools button.citizen-mobile-header-theme::before,
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar .citizen-native-tools button.citizen-mobile-header-theme::after { display: none; }

/* Match the host's named important layer for finite native geometry overrides.
 * Unlayered layout above stays ordinary CSS. No staff selectors are broadened.
 */
@layer gentri-refinement {
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app { --gt-surface:var(--native-surface); --gt-canvas:var(--native-background); --gt-line:var(--native-border); --gt-ink:var(--native-on-surface); --gt-muted:var(--native-on-surface-variant); --gt-soft:var(--native-surface-variant); background:var(--native-background)!important; color:var(--native-on-surface)!important; font-family:var(--citizen-app-font,Roboto,"Segoe UI",system-ui,sans-serif)!important; font-size:16px!important; font-weight:400!important; line-height:1.5!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn,a.btn,button.btn,.citizen-mobile-request-view,.citizen-mobile-request-toggle,.citizen-request-detail-modal-dismiss,.citizen-news-load-more) { min-height:48px!important; height:auto!important; padding:6px 12px!important; border-radius:12px!important; gap:6px!important; font-size:.875rem!important; font-weight:500!important; line-height:1.45!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea) { min-height:56px!important; height:auto!important; padding:12px 14px!important; border:1px solid var(--native-outline)!important; border-radius:12px!important; background:var(--native-surface)!important; color:var(--native-on-surface)!important; box-shadow:none!important; font-family:inherit!important; font-size:1rem!important; font-weight:400!important; line-height:1.5!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app textarea { min-height:112px!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-password-control > input { padding-right:56px!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > input { min-height:54px!important; padding:12px 56px 12px 44px!important; border:0!important; background:transparent!important; box-shadow:none!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(input[type="checkbox"],input[type="radio"]) { width:22px!important; height:22px!important; min-height:22px!important; flex-basis:22px!important; margin:2px 0!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.field-title,.form-label,.form-grid > label) { font-size:.875rem!important; font-weight:500!important; color:var(--native-on-surface)!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-service-card,.panel,.citizen-access-card,.citizen-account-panel,.citizen-resident-wizard,.citizen-resident-state-card,.citizen-resident-correction,.citizen-news-hub,.citizen-news-card,.citizen-action-card) { border-color:var(--native-border)!important; border-radius:12px!important; background:var(--native-surface)!important; box-shadow:none!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-topbar,.citizen-native-tools) button { min-height:48px!important; height:48px!important; padding:12px!important; border:0!important; border-radius:50%!important; background:transparent!important; color:var(--native-on-surface)!important; box-shadow:none!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-modules-heading h2 { font-size:1.375rem!important; font-weight:600!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-modules-heading > span { display:none!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .heading-auto-icon { display:none!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > span .bpw-icon,
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > span .bpw-icon > svg { width:24px!important; min-width:24px!important; height:24px!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-mobile-request-view,.citizen-mobile-request-toggle) { border-radius:999px!important; background:var(--native-primary-container)!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app [hidden] { display:none!important; }
}

@layer gentri-refinement {
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search #citizen-home-city-search { min-height:54px!important; padding:12px 56px 12px 44px!important; border:0!important; background:transparent!important; box-shadow:none!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(#citizen-auth-password,#citizen-auth-password-confirm) { padding-right:56px!important; }
html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-profile::after { display:none!important; }
}
}

/* Resident website presentation. The app layout owns widths through 1024px.
 * Reuse the existing navigation and server-rendered records on larger screens.
 */






/* Desktop account access uses the same server-rendered form and field order. */


/* Resident onboarding on phone/tablet. Number and radio columns retain their
 * space while the adjacent copy wraps and grows with the user's font size.
 */
@media screen and (max-width: 1024px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-page :is(.citizen-resident-step-tabs,.citizen-resident-choice-cards) {
    min-width: 0;
    min-inline-size: 0;
    max-width: 100%;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .5rem;
    padding: .75rem 0;
    border: 0;
    background: transparent;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs > button[data-wizard-tab] {
    display: grid;
    grid-template-columns: 2rem minmax(0,1fr);
    align-items: center;
    justify-content: start;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    min-height: 3.5rem;
    height: auto;
    padding: .75rem;
    border: 1px solid var(--native-border);
    border-radius: .75rem;
    background: var(--native-surface);
    color: var(--native-on-surface-variant);
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs > button[data-wizard-tab] > span:not(.bpw-icon) {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--native-surface-variant);
    color: var(--native-on-surface-variant);
    font-size: .875rem;
    font-weight: 650;
    line-height: 1;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs > button:is(.is-active,[aria-selected="true"],[aria-current="step"]) {
    border-color: var(--native-primary);
    background: var(--native-primary-container);
    color: var(--native-on-primary-container);
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs > button:is(.is-active,.is-complete,[aria-selected="true"],[aria-current="step"]) > span:not(.bpw-icon) {
    background: var(--native-primary);
    color: var(--native-on-primary);
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr));
    width: 100%;
    gap: .75rem;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards > label {
    display: grid;
    grid-template-columns: max-content minmax(0,1fr);
    align-items: start;
    gap: .75rem;
    min-width: 0;
    max-width: 100%;
    height: auto;
    padding: 1rem;
    border-color: var(--native-border);
    background: var(--native-surface);
    color: var(--native-on-surface);
    cursor: pointer;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards > label > span {
    display: grid;
    min-width: 0;
    gap: .375rem;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards :is(b,small,legend) {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.5;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards b {
    font-size: 1rem;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards small {
    font-size: .875rem;
  }

  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards > label:has(input:checked) {
    border-color: var(--native-primary);
    background: var(--native-primary-container);
    box-shadow: inset 0 0 0 1px var(--native-primary);
  }

  /* Host control styles use important declarations in this named layer. Keep
   * the radio size and keyboard focus above those shared control defaults.
   */
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs > button[data-wizard-tab] {
      display: grid !important;
      justify-content: start !important;
      gap: .75rem !important;
      min-height: 3.5rem !important;
      height: auto !important;
      padding: .75rem !important;
      font-family: var(--citizen-app-font,Roboto,"Segoe UI",system-ui,sans-serif) !important;
      font-size: 1rem !important;
      font-weight: 600 !important;
      line-height: 1.5 !important;
      text-shadow: none !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      word-break: normal !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards :is(b,small) {
      font-family: var(--citizen-app-font,Roboto,"Segoe UI",system-ui,sans-serif) !important;
      line-height: 1.5 !important;
      text-shadow: none !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards b {
      font-size: 1rem !important;
      font-weight: 600 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards small {
      font-size: .875rem !important;
      font-weight: 400 !important;
    }

    /* bims-ui can prepend a guessed action icon before the numbered circle.
     * The explicit step number already identifies this navigation control.
     */
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs > button[data-wizard-tab] > .action-auto-icon {
      display: none !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards > label > input[type="radio"] {
      flex: 0 0 1.375rem !important;
      width: 1.375rem !important;
      min-width: 1.375rem !important;
      height: 1.375rem !important;
      min-height: 1.375rem !important;
      margin: .2rem 0 0 !important;
      accent-color: var(--native-primary) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs > button[data-wizard-tab]:focus-visible,
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards > label:has(input:focus-visible) {
      outline: 3px solid var(--native-primary) !important;
      outline-offset: 3px !important;
    }
  }
}

@media screen and (max-width: 767px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs {
    grid-template-columns: minmax(0,1fr);
  }
}

@media screen and (max-width: 767px) {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-choice-cards {
    grid-template-columns: minmax(0,1fr);
  }
}

/* The same resident composition is retained in browser and installed PWA.
 * 20px page gutters, 12px content rhythm, 48px actions and 56px fields mirror
 * native128. Wide windows retain this composition without moving navigation.
 */
@layer gentri-refinement {
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app { width: 100% !important; max-width: none !important; margin: 0 auto !important; min-height: 100svh !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main:is(.public-service-shell,.recovery-shell,.notice-history,.container) { width: 100% !important; max-width: none !important; margin: 0 auto !important; padding: 0 20px calc(var(--citizen-native-bottom) + 28px) !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar { min-height: 64px !important; margin-bottom: 12px !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar.is-inner-header { min-height: 72px !important; padding: calc(8px + env(safe-area-inset-top,0px)) 10px 8px !important; gap: 6px !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-header-search { position: relative !important; flex: 1 1 auto !important; min-width: 0 !important; margin: 0 !important; border-radius: 12px !important; background: var(--native-surface) !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-header-search > span { position: absolute !important; left: 14px !important; top: 16px !important; color: var(--native-primary) !important; pointer-events: none !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app[data-citizen-route] .citizen-native-topbar .citizen-native-header-search input[type="search"][data-resident-route-search] { width: 100% !important; min-height: 56px !important; padding: 12px 8px 12px 44px !important; border-color: transparent !important; border-radius: 12px !important; font-size: 16px !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-inner-title { flex: 1 1 auto !important; min-width: 0 !important; padding-left: 8px !important; font-size: 22px !important; font-weight: 600 !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav { position: fixed !important; inset: auto 0 0 !important; max-width: none !important; margin: 0 auto !important; border-radius: 0 !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-workspace-title { margin: 0 0 8px !important; font-size: 24px !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-service-tabs { margin: 0 0 16px !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app[data-citizen-route="service_request.php"] > main > .public-hero-panel,
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app[data-citizen-route="request_history.php"] > main > .public-hero-panel,
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app[data-citizen-route="complaint.php"] > main > :is(.public-hero-panel,.public-flow-strip) { display: none !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-section { margin: 16px 0 10px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-section > h2,
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-service-guides > h2 { margin: 0 0 8px !important; font-size: 16px !important; font-weight: 500 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-list { display: grid !important; gap: 10px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-card { display: flex !important; align-items: center !important; gap: 12px !important; min-width: 0 !important; min-height: 76px !important; padding: 15px !important; border: 1px solid var(--native-outline) !important; border-radius: 12px !important; background: var(--native-surface) !important; color: var(--native-on-surface) !important; text-decoration: none !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-icon { display: grid !important; place-items: center !important; flex: 0 0 44px !important; width: 44px !important; height: 44px !important; border-radius: 12px !important; background: var(--native-primary-container) !important; color: var(--native-primary) !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-card > strong { flex: 1 1 auto !important; min-width: 0 !important; font-size: 16px !important; font-weight: 500 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-card > span:last-child:not(.citizen-native-category-icon) { font-size: 28px !important; color: var(--native-primary) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-card:is(:hover,:focus-visible) { border-color: var(--native-primary) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-service-guides { margin-top: 22px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-full-action { display: flex !important; width: 100% !important; margin-top: 8px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-card { padding: 14px !important; border: 0 !important; border-radius: 12px !important; background: var(--native-primary-container) !important; color: var(--native-on-primary-container) !important;
  }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-identity { display: flex !important; gap: 11px !important; align-items: center !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-identity > div { min-width: 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-identity h2 { margin: 0 !important; font-size: 16px !important; font-weight: 500 !important; overflow-wrap: anywhere !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-avatar { display: grid !important; place-items: center !important; flex: 0 0 56px !important; width: 56px !important; height: 56px !important; border-radius: 50% !important; background: color-mix(in srgb,var(--native-primary) 14%,transparent) !important; color: var(--native-primary) !important; overflow: hidden !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-avatar img { width: 56px !important; height: 56px !important; object-fit: cover !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-avatar .citizen-native-icon { width: 34px !important; height: 34px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-email { margin-top: 14px !important; padding: 11px 13px !important; border-radius: 12px !important; background: color-mix(in srgb,var(--native-surface) 46%,transparent) !important; overflow-wrap: anywhere !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-email p { margin-bottom: 7px !important; font-size: 14px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-email > span { display: flex !important; align-items: center !important; gap: 6px !important; font-size: 12px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-review { margin: 14px 0 12px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-review h2 { margin: 0 0 4px !important; font-size: 16px !important; font-weight: 500 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-review p { font-size: 12px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-barangay { margin: 12px 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-barangay label { display: grid !important; gap: 6px !important; font-size: 16px !important; font-weight: 500 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-security { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; align-items: stretch !important; gap: 8px !important; margin-top: 8px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-security form { display: flex !important; margin: 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-security .btn { width: 100% !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-card { background: var(--native-tertiary-container) !important; color: var(--native-on-tertiary-container) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-card .btn { margin-top: 8px !important; background: var(--native-surface) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-preferences { margin-top: 18px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-settings > :is(.citizen-resident-onboarding-card,.citizen-resident-recovery-guidance),
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-settings .citizen-account-profile { display: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-settings :is(.citizen-account-layout,.citizen-account-panels) { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 16px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-complaint-form,.record-form,.citizen-resident-wizard) { max-width: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard .form-grid { grid-template-columns: minmax(0,1fr) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-document-progress { margin: 0 0 8px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-document-progress h2 { margin-bottom: 2px !important; font-size: 22px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-document-progress p { margin-bottom: 8px !important; font-size: 14px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard:not(.citizen-native-generic-flow) .dc-wizard-progress { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: 5px !important; margin: 0 0 12px !important; padding: 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard:not(.citizen-native-generic-flow) .dc-wizard-progress > li { position: relative !important; min-width: 0 !important; min-height: 6px !important; height: 6px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 99px !important; background: var(--native-surface-variant) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard:not(.citizen-native-generic-flow) .dc-wizard-progress > li:is(.is-active,.is-complete) { background: var(--native-primary) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard:not(.citizen-native-generic-flow) .dc-wizard-progress > li > * { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 8px !important; margin: 0 0 12px !important; padding: 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li { display: flex !important; align-items: center !important; gap: 12px !important; min-height: 48px !important; margin: 0 !important; padding: 8px 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--native-surface) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li.is-active { background: var(--native-primary-container) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li > small { display: grid !important; place-items: center !important; flex: 0 0 32px !important; width: 32px !important; height: 32px !important; margin: 0 !important; padding: 0 !important; border-radius: 50% !important; font-size: 14px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li > strong { min-width: 0 !important; font-size: 14px !important; font-weight: 500 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-emergency-call { margin: 0 0 12px !important; padding: 14px !important; border-radius: 12px !important; background: var(--native-surface-variant) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-emergency-call > div { display: flex !important; align-items: center !important; gap: 12px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-emergency-call > div > span { color: var(--native-error) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-emergency-call h2 { margin: 0 !important; font-size: 22px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-emergency-call .citizen-native-call-action { width: 100% !important; margin: 12px 0 8px !important; background: var(--native-error) !important; color: #fff !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-directory-grid { grid-template-columns: minmax(0,1fr) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-directory-grid article { min-width: 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-help { display: inline-flex !important; align-items: center !important; min-height: 48px !important; margin-top: 8px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page { --citizen-native-bottom: 0px !important; background: linear-gradient(var(--native-background),var(--native-primary-container),var(--native-background)) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page > main.public-service-shell { padding: 18px 20px 28px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page .citizen-native-auth { width: 100% !important; max-width: none !important; margin: 0 !important; display: block !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page :is(.citizen-access-hero,.citizen-access-aside) { display: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page .citizen-access-card { margin: 0 !important; padding: 20px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page .citizen-native-auth-back { margin-bottom: 24px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-empty,[data-resident-search-empty]) { padding: 16px !important; border: 1px solid var(--native-outline) !important; border-radius: 12px !important; background: var(--native-surface) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app [hidden][hidden][hidden] { display: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-next-request { display: block !important; margin: 12px 0 !important; padding: 16px !important; border-radius: 12px !important; background: var(--native-primary-container) !important; color: var(--native-on-primary-container) !important; text-decoration: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-next-request h2 { margin: 5px 0 0 !important; font-size: 16px !important; font-weight: 500 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-next-request p { margin: 4px 0 0 !important; font-size: 14px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-next-request strong { display: block !important; margin-top: 8px !important; color: var(--native-primary) !important; font-size: 14px !important; font-weight: 500 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-next-request .is-overdue { color: var(--native-error) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-history-heading { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; margin: 12px 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-history-heading h1 { margin: 0 !important; font-size: 22px !important; font-weight: 600 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-history-heading .public-hero-actions { display: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-history-filters { margin: 12px 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-request-groups { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; border-bottom: 1px solid var(--native-outline) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-request-groups a { display: flex !important; justify-content: center !important; align-items: center !important; gap: 7px !important; min-width: 0 !important; min-height: 56px !important; padding: 10px 6px !important; border-bottom: 3px solid transparent !important; color: var(--native-on-surface-variant) !important; text-align: center !important; text-decoration: none !important; font-size: 14px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-request-groups a[aria-current] { border-bottom-color: var(--native-primary) !important; color: var(--native-primary) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-request-groups b { min-width: 24px !important; padding: 2px 5px !important; border-radius: 99px !important; background: var(--native-primary-container) !important; font-size: 12px !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-history-advanced { margin: 8px 0 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-history-advanced > summary { display: flex !important; align-items: center !important; min-height: 48px !important; color: var(--native-primary) !important; cursor: pointer !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-head { display: none !important; }
}

@media (min-width: 748px) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 12px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li { flex-direction: column !important; gap: 6px !important; background: transparent !important; text-align: center !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-step-tabs { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  }
}

@layer gentri-refinement {
  /* Legacy document rules are unlayered; scope these authoritative resident geometries explicitly. */
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li > strong { display: block !important; position: static !important; width: auto !important; height: auto !important; clip-path: none !important; margin: 0 !important; overflow: visible !important; text-align: left !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard-actions { position: static !important; inset: auto !important; display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; margin: 12px 0 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard-actions > .dc-save-state { grid-column: 1 / -1 !important; grid-row: 1 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard-actions > .btn { width: 100% !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard-actions:has([data-dc-back][hidden]) > [data-dc-next] { grid-column: 1 / -1 !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-step-heading { display: block !important; padding: 0 !important; margin: 0 0 12px !important; border: 0 !important; background: transparent !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .public-service-card:has(> .citizen-native-generic-flow) { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .public-service-card:has(> .citizen-native-generic-flow) > .panel-header { display: none !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow > .dc-wizard-panel { padding: 16px !important; border: 1px solid var(--native-outline) !important; border-radius: 12px !important; background: var(--native-surface) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app[data-citizen-route="request_history.php"] [data-citizen-request-dialog-open] { display: none !important; }
}

@layer gentri-refinement {
  /* CitizenFormStepNumber: future=surfaceVariant; current/completed=primary. */
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li > small { background: var(--native-surface-variant) !important; color: var(--native-on-surface-variant) !important; }
  html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li:is(.is-active,.is-complete,.is-done) > small { background: var(--native-primary) !important; color: var(--native-on-primary) !important; }
}
@media (min-width:748px) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li:is(.is-active,.is-complete,.is-done) { background: transparent !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-generic-flow .dc-wizard-progress > li > strong { text-align: center !important; }
  }
}


/* Desktop resident website: bounded composition and intrinsic controls.
 * The existing phone/tablet presentation through 1024px is unchanged.
 * This layer is deliberate: native and theme important rules share it.
 */
@media screen and (min-width: 1025px) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app {
      --citizen-native-bottom: 0px; --citizen-desktop-width: 1280px; --citizen-desktop-gutter: clamp(24px, 3vw, 48px); font-size: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main:is(.public-service-shell,.recovery-shell,.notice-history,.container) {
      box-sizing: border-box !important; width: calc(100% - var(--citizen-desktop-gutter) * 2) !important; max-width: var(--citizen-desktop-width) !important; min-width: 0 !important; margin: 24px auto 0 !important; padding: 0 0 48px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar {
      position: relative !important; inset: auto !important; width: 100% !important; max-width: none !important; min-height: 72px !important; margin: 0 !important; padding: 12px 20px !important; gap: 20px !important; border: 1px solid var(--native-border) !important; border-radius: 14px 14px 0 0 !important; box-shadow: none !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > .citizen-native-topbar {
      width: calc(100% - var(--citizen-desktop-gutter) * 2) !important; max-width: var(--citizen-desktop-width) !important; margin: 24px auto 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand {
      gap: 10px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand :is(img,.city-main-logo) {
      flex-basis: 44px !important; width: 44px !important; height: 44px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-brand b {
      font-size: 18px !important; font-weight: 650 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-inner-title {
      font-size: 20px !important; font-weight: 650 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools {
      gap: 4px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar .citizen-native-tools button {
      flex: 0 0 36px !important; width: 36px !important; min-width: 36px !important; height: 36px !important; min-height: 36px !important; padding: 8px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-tools :is(.bpw-icon,.citizen-native-icon) {
      width: 20px !important; min-width: 20px !important; height: 20px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav {
      position: relative !important; inset: auto !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; width: 100% !important; max-width: none !important; min-height: 50px !important; margin: 0 0 24px !important; padding: 5px 12px !important; gap: 4px !important; border: 1px solid var(--native-border) !important; border-top: 0 !important; border-radius: 0 0 14px 14px !important; background: var(--native-surface) !important; box-shadow: none !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > .citizen-native-bottom-nav {
      width: calc(100% - var(--citizen-desktop-gutter) * 2) !important; max-width: var(--citizen-desktop-width) !important; margin: 0 auto 24px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav > a {
      display: inline-flex !important; flex: 0 0 auto !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; width: auto !important; min-width: 0 !important; min-height: 38px !important; padding: 8px 14px !important; gap: 8px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 550 !important; text-align: left !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav > a :is(.bpw-icon,.citizen-native-icon) {
      box-sizing: border-box !important; flex: 0 0 19px !important; width: 19px !important; min-width: 19px !important; height: 19px !important; padding: 0 !important; border-radius: 0 !important; background: transparent !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav > a:is(.is-active,[aria-current="page"]) {
      background: var(--native-primary-container) !important; color: var(--native-primary) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav .citizen-native-label-wide {
      display: inline !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-bottom-nav .citizen-native-label-compact {
      display: none !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-topbar .citizen-native-header-search {
      flex: 0 1 460px !important; width: min(460px, 70%) !important; max-width: 460px !important; margin: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app[data-citizen-route] .citizen-native-topbar .citizen-native-header-search input[type="search"][data-resident-route-search] {
      min-height: 40px !important; height: 40px !important; padding: 8px 10px 8px 40px !important; font-size: 14px !important; background: var(--native-surface-variant) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn,a.btn,button.btn,.citizen-mobile-request-view,.citizen-mobile-request-toggle,.citizen-request-detail-modal-dismiss,.citizen-news-load-more) {
      display: inline-flex !important; flex: 0 1 auto !important; box-sizing: border-box !important; width: auto !important; min-width: 0 !important; max-width: 100% !important; min-height: 36px !important; height: auto !important; padding: 7px 12px !important; gap: 6px !important; border-radius: 8px !important; font-size: 13px !important; line-height: 1.35 !important; text-align: center !important; white-space: normal !important; overflow-wrap: anywhere !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-full-action {
      display: inline-flex !important; width: auto !important; margin: 6px 6px 0 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.form-actions,.button-row,.dc-wizard-actions,.citizen-resident-wizard-actions,.citizen-access-form-actions) {
      display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: flex-start !important; gap: 8px !important; margin-top: 16px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.form-actions,.button-row,.dc-wizard-actions,.citizen-resident-wizard-actions,.citizen-access-form-actions) > .btn {
      flex: 0 1 auto !important; width: auto !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard-actions > .dc-save-state {
      flex: 1 1 100% !important; width: 100% !important; margin-bottom: 2px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),select) {
      box-sizing: border-box !important; min-height: 40px !important; height: auto !important; padding: 8px 11px !important; font-size: 14px !important; line-height: 1.4 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app textarea {
      box-sizing: border-box !important; min-height: 110px !important; padding: 10px 12px !important; font-size: 14px !important; line-height: 1.5 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.form-grid,.recovery-grid,.citizen-account-preference-grid) {
      grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 18px 22px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.form-grid,.recovery-grid,.citizen-account-preference-grid) > :is(.full,.full-span,.span-two,.form-actions,.form-section-title,fieldset) {
      grid-column: 1 / -1 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-complaint-form,.record-form,.citizen-resident-wizard) {
      width: 100% !important; max-width: 1040px !important; margin-inline: auto !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .dc-wizard .form-grid {
      grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.public-service-card,.citizen-account-panel,.citizen-resident-wizard,.citizen-resident-state-card,.citizen-news-hub) {
      padding: 22px !important; border-radius: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-content {
      display: grid !important; grid-template-columns: repeat(12,minmax(0,1fr)) !important; align-items: start !important; gap: 20px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-content > * {
      grid-column: 1 / -1 !important; min-width: 0 !important; margin-block: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-content > .citizen-native-home-search {
      grid-column: span 7 !important; align-self: center !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-content > .citizen-native-home-secondary {
      grid-column: span 5 !important; align-self: center !important; gap: 10px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-grid {
      grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-grid > a {
      min-height: 100px !important; padding: 16px !important; gap: 12px !important; border-radius: 12px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-mobile-primary-module-copy b {
      font-size: 15px !important; line-height: 1.45 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > input[type="search"] {
      min-height: 42px !important; height: 42px !important; padding: 9px 44px 9px 42px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-search > button {
      top: 3px !important; right: 3px !important; width: 36px !important; height: 36px !important; min-height: 36px !important; padding: 8px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-home-secondary > a {
      justify-content: center !important; min-height: 42px !important; padding: 8px 12px !important; font-size: 13px !important; border-radius: 8px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-access-card {
      display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; gap: 5px 28px !important; align-items: center !important; padding: 22px 24px !important; border: 1px solid var(--native-border) !important; border-radius: 14px !important; background: color-mix(in srgb,var(--native-primary-container) 28%,var(--native-surface)) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-access-card > :is(.eyebrow,h2,p) {
      grid-column: 1 !important; margin: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-access-card > .citizen-native-secondary {
      display: flex !important; grid-column: 2 !important; grid-row: 1 / span 3 !important; flex-wrap: wrap !important; gap: 8px !important; width: auto !important; margin: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-access-card .btn {
      flex: 0 1 auto !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-portal-mobile-verification,.citizen-resident-onboarding-card) {
      align-items: center !important; padding: 18px 20px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-resident-onboarding-card > .btn {
      width: auto !important; margin-inline-start: auto !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-list {
      display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 16px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-mobile-update-item {
      min-width: 0 !important; padding: 18px !important; border-radius: 12px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-highlights-track {
      grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 16px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore {
      grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore > :is(h2,header) {
      grid-column: 1 / -1 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-explore-link {
      min-height: 52px !important; padding: 12px 16px !important; border-radius: 10px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-list {
      grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-card {
      min-height: 88px !important; padding: 16px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-category-card > strong {
      font-size: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-directory-grid {
      grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 16px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-service-tabs,.citizen-native-news-tabs,.citizen-news-tablist,.citizen-service-tabs) {
      min-height: 40px !important; margin-bottom: 20px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-native-service-tabs,.citizen-native-news-tabs,.citizen-news-tablist,.citizen-service-tabs) > a {
      flex: 0 1 auto !important; min-height: 40px !important; padding: 8px 16px !important; font-size: 13px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main:is(.citizen-native-guest-account,.citizen-native-account-overview) {
      display: grid !important; grid-template-columns: repeat(12,minmax(0,1fr)) !important; align-items: start !important; gap: 16px 22px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main:is(.citizen-native-guest-account,.citizen-native-account-overview) > * {
      grid-column: 1 / -1 !important; min-width: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main:is(.citizen-native-guest-account,.citizen-native-account-overview) > .citizen-native-bottom-nav {
      margin-bottom: 8px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-account > .citizen-native-account-card {
      grid-column: 1 / span 7 !important; margin: 0 !important; padding: 24px !important; border: 1px solid var(--native-border) !important; border-radius: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-account > .btn {
      grid-column: 8 / -1 !important; justify-self: start !important; align-self: center !important; margin: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-preferences {
      margin: 0 !important; padding: 22px !important; border: 1px solid var(--native-border) !important; border-radius: 14px !important; background: var(--native-surface) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-overview > .citizen-native-account-card {
      grid-column: 1 / span 5 !important; margin: 0 !important; padding: 24px !important; border: 1px solid var(--native-border) !important; border-radius: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-overview > .citizen-native-account-review {
      grid-column: 6 / -1 !important; margin: 0 !important; padding: 24px !important; border: 1px solid var(--native-border) !important; border-radius: 14px !important; background: var(--native-surface) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-overview > .citizen-native-account-barangay {
      grid-column: 1 / span 5 !important; margin: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-overview > a.btn {
      grid-column: 6 / -1 !important; justify-self: start !important; align-self: end !important; margin: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-security {
      display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 8px !important; padding-top: 14px !important; margin: 0 !important; border-top: 1px solid var(--native-border) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-security .btn {
      width: auto !important; margin: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-settings .citizen-account-layout {
      display: grid !important; grid-template-columns: 260px minmax(0,1fr) !important; gap: 22px !important; align-items: start !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-settings .citizen-account-profile {
      display: block !important; min-width: 0 !important; padding: 20px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-settings .citizen-account-panels {
      display: grid !important; grid-template-columns: minmax(0,1fr) !important; align-items: start !important; gap: 18px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panels :is(.form-grid,.citizen-account-preference-grid) {
      grid-template-columns: minmax(0,1fr) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-history-filters {
      display: flex !important; flex-wrap: wrap !important; gap: 10px !important; align-items: end !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-request-groups {
      display: flex !important; gap: 10px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-request-groups a {
      flex: 0 1 auto !important; min-height: 40px !important; padding: 8px 16px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker {
      display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 14px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .request-history-group-mobile-tracker .citizen-action-card {
      margin: 0 !important; min-width: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-portal-footer {
      display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: space-between !important; gap: 14px !important; margin-top: 30px !important; padding: 20px 0 !important; border-top: 1px solid var(--native-border) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth {
      max-width: 960px !important; margin: 32px auto 40px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-access-card {
      display: grid !important; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr) !important; gap: 28px 36px !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 28px !important; border: 1px solid var(--native-border) !important; border-radius: 16px !important; background: var(--native-surface) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-access-card > .citizen-access-card-head {
      grid-column: 1 !important; grid-row: 1 / span 8 !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 16px !important; min-width: 0 !important; padding: 24px !important; margin: 0 !important; border-radius: 12px !important; background: var(--native-primary-container) !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-access-card > :not(.citizen-access-card-head) {
      grid-column: 2 !important; min-width: 0 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-access-card-head h1 {
      font-size: 28px !important; line-height: 1.2 !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth :is(.citizen-access-form,.citizen-access-field-grid) {
      grid-template-columns: minmax(0,1fr) !important; gap: 16px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-access-form-actions > .btn {
      min-height: 40px !important; flex: 0 1 auto !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-native-password-control > button {
      top: 2px !important; right: 2px !important; width: 36px !important; height: 36px !important; min-height: 36px !important; padding: 8px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-native-password-control > input {
      padding-right: 44px !important;
    }

    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-auth .citizen-native-auth-back {
      margin-bottom: 18px !important;
    }
  }
}

@media screen and (min-width: 1440px) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-account-settings .citizen-account-panels { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  }
}
@media screen and (min-width: 1025px) and (pointer: coarse) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.btn,a.btn,button.btn,.citizen-mobile-request-view,.citizen-mobile-request-toggle,.citizen-request-detail-modal-dismiss,.citizen-news-load-more) { min-height: 44px !important; }
  }
}

/* Auth-specific native overrides have an extra body class; match it on PC. */
@media screen and (min-width: 1025px) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page .citizen-native-auth {
      width: 100% !important; max-width: 960px !important; margin: 32px auto 40px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page .citizen-native-auth .citizen-access-card {
      min-height: 0 !important; height: auto !important; row-gap: 0 !important; padding: 28px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app.citizen-native-auth-page .citizen-native-auth .citizen-access-card > .citizen-access-card-head {
      min-height: 0 !important; height: auto !important; align-self: stretch !important; justify-content: center !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app[data-citizen-route="portal.php"] .citizen-native-home-search input[type="search"] {
      min-height: 42px !important; height: 42px !important; padding: 9px 44px 9px 42px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app > main:is(.citizen-native-guest-account,.citizen-native-account-overview) > .citizen-native-bottom-nav {
      margin-top: -16px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-account > .citizen-native-account-card {
      grid-column: 1 / span 6 !important; grid-row: 4 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-account > .btn {
      grid-column: 1 / span 6 !important; grid-row: 5 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-guest-account > .citizen-native-guest-preferences {
      grid-column: 7 / -1 !important; grid-row: 4 / span 2 !important; align-self: start !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app #citizen-route-search {
      min-height: 40px !important; height: 40px !important; padding: 8px 11px 8px 40px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app #citizen-home-city-search {
      min-height: 42px !important; height: 42px !important; padding: 9px 44px 9px 42px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(#citizen-auth-password,#citizen-auth-password-confirm) {
      padding-right: 44px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panel--danger {
      display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panel--danger > div {
      flex: 1 1 100% !important; min-width: 0 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panel--danger > .btn,
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-signout-form {
      flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; margin: 0 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app :is(.citizen-account-form,.citizen-account-inline-form,.citizen-account-barangay-form) > .btn {
      justify-self: start !important; width: auto !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-panel--preferences .citizen-account-preference-grid {
      grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 16px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-choice-grid {
      display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 8px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-choice-grid > button {
      display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 6px !important; min-width: 0 !important; min-height: 40px !important; padding: 7px 9px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-account-choice-grid > button :is(b,span) {
      min-width: 0 !important; font-size: 12px !important; white-space: normal !important; overflow-wrap: anywhere !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-service-guides {
      display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 14px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app .citizen-native-service-guides > h2 {
      grid-column: 1 / -1 !important; margin-bottom: 0 !important;
    }
    html:root[data-bims-theme][data-citizen-theme][data-citizen-font="system"] body.public-service-body.citizen-native-app {
      font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
    }
  }
}


/* The PC citizen website shares the official city website's masthead and hero.
 * All new presentation nodes are absent from the phone/tablet layout tree.
 * Existing resident forms, account gates and JS-owned tools are rendered once.
 */
.citizen-city-govbar,
.citizen-city-desktop-brand,
.citizen-city-account-actions,
.citizen-city-navigation,
.citizen-city-hero-intro,
.citizen-city-hero-visual,
.citizen-city-hero-note { display: none; }
.citizen-city-home-hero,
.citizen-city-hero-grid,
.citizen-city-hero-copy { display: contents; }

@media screen and (min-width: 1025px) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) {
      --citizen-city-width: 1248px;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-container {
      width: min(calc(100% - 32px),var(--citizen-city-width)) !important; margin-inline: auto !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-govbar {
      display: block !important; width: 100% !important; border-bottom: 1px solid var(--native-border) !important; background: var(--native-surface) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-govbar > div {
      display: flex !important; align-items: center !important; justify-content: space-between !important; min-height: 42px !important; gap: 20px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-govbar p {
      display: flex !important; align-items: center !important; gap: 10px !important; margin: 0 !important; color: var(--native-on-surface) !important; font-size: 12px !important; line-height: 1.4 !important; letter-spacing: .015em !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-flag {
      position: relative !important; display: inline-block !important; width: 26px !important; height: 16px !important; overflow: hidden !important; border-radius: 2px !important; background: linear-gradient(to bottom,#1646a0 0 50%,#c91e32 50% 100%) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-flag::before {
      position: absolute !important; inset: 0 auto 0 0 !important; width: 13px !important; background: #fff !important; clip-path: polygon(0 0,100% 50%,0 100%) !important; content: "" !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-pst b {
      color: var(--native-primary) !important; font-size: 10px !important; letter-spacing: .09em !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-topbar {
      min-height: 82px !important; padding-block: 12px !important; border: 0 !important; border-radius: 0 !important; gap: 20px !important; background: var(--native-surface) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-desktop-brand {
      display: inline-flex !important; align-items: center !important; flex: 0 0 auto !important; gap: 12px !important; min-width: 0 !important; color: var(--native-on-surface) !important; text-decoration: none !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-brand-mark {
      display: grid !important; place-items: center !important; flex: 0 0 60px !important; width: 60px !important; height: 60px !important; padding: 2px !important; border: 1px solid var(--native-border) !important; border-radius: 50% !important; background: #fff !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-brand-mark img {
      display: block !important; width: 100% !important; height: 100% !important; object-fit: contain !important; border-radius: 50% !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-brand-copy {
      display: grid !important; gap: 2px !important; line-height: 1 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-brand-copy small {
      color: var(--native-on-surface-variant) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .08em !important; line-height: 1.2 !important; text-transform: uppercase !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-brand-copy strong {
      color: var(--native-primary) !important; font-size: 30px !important; font-weight: 750 !important; letter-spacing: -.045em !important; line-height: 1.05 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-brand-copy em {
      color: var(--native-secondary) !important; font-size: 10px !important; font-style: normal !important; font-weight: 600 !important; letter-spacing: .12em !important; line-height: 1.2 !important; text-transform: uppercase !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-topbar :is(.citizen-native-brand,.citizen-native-inner-title,.citizen-native-menu-shell) { display: none !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-account-actions {
      display: flex !important; align-items: center !important; flex-wrap: wrap !important; justify-content: flex-end !important; gap: 8px !important; margin-left: auto !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-account-actions a {
      display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 40px !important; padding: 8px 12px !important; gap: 7px !important; border: 1px solid var(--native-border) !important; border-radius: 10px !important; color: var(--native-primary) !important; background: var(--native-surface) !important; font-size: 13px !important; line-height: 1.35 !important; text-decoration: none !important; white-space: nowrap !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-account-actions .citizen-city-account-primary {
      border-color: var(--native-primary) !important; background: var(--native-primary) !important; color: var(--native-on-primary) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-account-actions :is(.bpw-icon,.citizen-native-icon) {
      flex: 0 0 18px !important; width: 18px !important; min-width: 18px !important; height: 18px !important; padding: 0 !important; color: inherit !important; background: transparent !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-bottom-nav { display: none !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-navigation {
      display: block !important; width: 100% !important; border-block: 1px solid var(--native-border) !important; background: var(--native-surface) !important; box-shadow: 0 5px 18px color-mix(in srgb,var(--native-shadow) 40%,transparent) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-navigation > div {
      display: flex !important; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important; min-height: 56px !important; flex-wrap: wrap !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-navigation a {
      position: relative !important; display: inline-flex !important; align-items: center !important; min-height: 56px !important; padding: 10px 14px !important; gap: 6px !important; border-radius: 0 !important; color: var(--native-on-surface) !important; background: transparent !important; font-size: 13px !important; font-weight: 550 !important; line-height: 1.4 !important; text-decoration: none !important; white-space: nowrap !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-navigation a:is(:hover,[aria-current="page"]) {
      color: var(--native-primary) !important; background: color-mix(in srgb,var(--native-primary-container) 45%,var(--native-surface)) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-navigation a[aria-current="page"]::after {
      position: absolute !important; right: 14px !important; bottom: 0 !important; left: 14px !important; height: 3px !important; border-radius: 3px 3px 0 0 !important; background: var(--native-primary) !important; content: "" !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-navigation .bpw-icon {
      flex: 0 0 15px !important; width: 15px !important; min-width: 15px !important; height: 15px !important; padding: 0 !important; color: inherit !important; background: transparent !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home > main.public-service-shell {
      width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 0 48px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-native-topbar {
      width: 100% !important; max-width: none !important; margin: 0 !important; padding-inline: max(16px,calc((100% - var(--citizen-city-width))/2)) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-native-home-content {
      display: grid !important; width: min(calc(100% - 32px),var(--citizen-city-width)) !important; max-width: var(--citizen-city-width) !important; margin: 0 auto !important; padding: 56px 0 24px !important; row-gap: 28px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-home-hero {
      display: block !important; width: 100% !important; padding: 0 0 28px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-grid {
      display: grid !important; grid-template-columns: minmax(0,1.12fr) minmax(340px,.88fr) !important; align-items: center !important; gap: clamp(24px,3vw,48px) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy { display: block !important; min-width: 0 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-intro { display: block !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-eyebrow {
      margin: 0 0 16px !important; color: var(--native-primary) !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.4 !important; letter-spacing: .1em !important; text-transform: uppercase !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-intro > h1 {
      max-width: 18ch !important; margin: 0 0 16px !important; color: var(--native-on-surface) !important; font-family: inherit !important; font-size: clamp(38px,4vw,59px) !important; font-weight: 700 !important; line-height: 1.04 !important; letter-spacing: -.052em !important; overflow-wrap: normal !important; word-break: normal !important; text-wrap: balance !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-lead {
      max-width: 43rem !important; margin: 0 0 22px !important; color: var(--native-on-surface-variant) !important; font-size: 18px !important; line-height: 1.65 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-mobile-primary-modules-heading { display: none !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-mobile-primary-module-grid {
      grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-mobile-primary-module-grid > a {
      min-height: 72px !important; padding: 14px !important; gap: 12px !important; border-color: color-mix(in srgb,var(--native-primary) 27%,var(--native-surface)) !important; border-radius: 14px !important; background: var(--native-surface) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-mobile-primary-module-icon {
      flex-basis: 40px !important; width: 40px !important; height: 40px !important; padding: 10px !important; border-radius: 12px !important; background: color-mix(in srgb,var(--native-primary-container) 55%,var(--native-surface)) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-mobile-primary-module-copy b { font-size: 14px !important; font-weight: 550 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-native-home-search {
      min-height: 54px !important; margin: 22px 0 10px !important; border-color: color-mix(in srgb,var(--native-primary) 30%,var(--native-surface)) !important; border-radius: 14px !important; background: var(--native-surface) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar)[data-citizen-route="portal.php"] .citizen-city-hero-copy .citizen-native-home-search #citizen-home-city-search {
      min-height: 52px !important; height: 52px !important; padding: 12px 54px 12px 44px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-native-home-search > button { top: 7px !important; right: 7px !important; width: 40px !important; height: 40px !important; min-height: 40px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-native-home-secondary {
      display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin: 0 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-native-home-secondary > a {
      flex: 0 1 auto !important; min-height: 36px !important; padding: 7px 10px !important; border: 1px solid var(--native-border) !important; border-radius: 9px !important; background: transparent !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-note {
      display: flex !important; align-items: flex-start !important; gap: 8px !important; margin: 14px 0 0 !important; color: var(--native-on-surface-variant) !important; font-size: 12px !important; line-height: 1.55 !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-note .bpw-icon { flex: 0 0 16px !important; width: 16px !important; height: 16px !important; margin-top: 2px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-visual {
      display: grid !important; min-width: 0 !important; gap: 14px !important; padding: 12px !important; border: 1px solid color-mix(in srgb,var(--native-primary) 27%,var(--native-surface)) !important; border-radius: 20px !important; background: var(--native-surface) !important; box-shadow: 0 8px 24px color-mix(in srgb,var(--native-shadow) 40%,transparent) !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-seal-frame {
      display: grid !important; place-items: center !important; min-height: 250px !important; padding: 20px !important; border: 1px solid var(--native-border) !important; border-radius: 14px !important; background: #fff !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-seal-frame img { display: block !important; width: min(100%,220px) !important; height: auto !important; max-height: 240px !important; object-fit: contain !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-name { display: flex !important; align-items: center !important; gap: 12px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-name img { width: 44px !important; height: 44px !important; border: 1px solid var(--native-border) !important; border-radius: 12px !important; object-fit: contain !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-name strong { font-size: 17px !important; font-weight: 600 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-options { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-options a {
      display: grid !important; grid-template-columns: minmax(0,1fr) 16px !important; grid-template-rows: 24px auto !important; align-content: start !important; align-items: center !important; min-height: 92px !important; padding: 14px !important; gap: 12px 6px !important; border: 1px solid var(--native-border) !important; border-radius: 14px !important; background: color-mix(in srgb,var(--native-primary-container) 50%,var(--native-surface)) !important; color: var(--native-primary) !important; font-size: 14px !important; line-height: 1.4 !important; text-decoration: none !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-options a > span:not(.bpw-icon) { grid-column: 1 / -1 !important; grid-row: 2 !important; font-weight: 600 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-options a > .bpw-icon { width: 20px !important; min-width: 20px !important; height: 20px !important; padding: 0 !important; color: inherit !important; background: transparent !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-options a > .bpw-icon:last-child { justify-self: end !important; width: 16px !important; height: 16px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-options a:last-child { border-color: var(--native-primary) !important; background: var(--native-primary) !important; color: var(--native-on-primary) !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-portal-footer {
      width: min(calc(100% - 32px),var(--citizen-city-width)) !important; margin-inline: auto !important;
    }
  }
}

@media screen and (min-width: 1025px) {
  @layer gentri-refinement {
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-native-access-card { display: none !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-signin { margin: 0 !important; color: var(--native-on-surface-variant) !important; font-size: 13px !important; line-height: 1.5 !important; text-align: center !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-signin a { color: var(--native-primary) !important; font-weight: 600 !important; text-underline-offset: 3px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-portal-mobile-public-content { padding-top: 28px !important; border-top: 1px solid var(--native-border) !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home :is(.citizen-portal-mobile-card-heading,.citizen-native-highlights) h2 { margin-bottom: 14px !important; font-size: 25px !important; font-weight: 650 !important; letter-spacing: -.025em !important; }
  }
}

@media screen and (min-width: 1025px) {
  @layer gentri-refinement {
    /* Account obligations stay ahead of the promotional hero on PC. */
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-native-home-content > .citizen-portal-mobile-welcome { order: -10 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-native-home-content > .citizen-native-next-request { order: -9 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-native-home-content > :is(.alert,.citizen-portal-mobile-verification) { order: -8 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar).citizen-native-home .citizen-native-home-content > .citizen-resident-onboarding-card { order: -7 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-home-hero.is-signed-in .citizen-city-hero-intro > h2 { max-width: 26ch !important; margin: 0 0 14px !important; font-size: clamp(30px,3vw,40px) !important; font-weight: 700 !important; line-height: 1.12 !important; letter-spacing: -.04em !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-home-hero.is-signed-in .citizen-city-hero-lead { font-size: 16px !important; line-height: 1.55 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-home-hero.is-signed-in .citizen-city-seal-frame { min-height: 180px !important; padding: 14px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-home-hero.is-signed-in .citizen-city-seal-frame img { max-width: 150px !important; max-height: 150px !important; }
  }
}

@media screen and (min-width: 1025px) {
  @layer gentri-refinement {
    /* The official masthead adds a utility row before the guest account title. */
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-guest-account > h1 { grid-row: 4 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-guest-account > .citizen-native-account-card { grid-row: 5 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-guest-account > .btn { grid-row: 6 !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-guest-account > .citizen-native-guest-preferences { grid-row: 5 / span 2 !important; }
  }
}

@media screen and (min-width: 1025px) and (pointer: coarse) {
  @layer gentri-refinement {
    /* Wide touch screens retain comfortable targets; mouse controls stay compact. */
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-native-topbar .citizen-native-tools button {
      flex-basis: 44px !important; width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 10px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) :is(.citizen-city-account-actions a,.citizen-city-hero-copy .citizen-native-home-secondary > a) {
      min-width: 44px !important; min-height: 44px !important; padding-block: 10px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) :is(.citizen-city-hero-copy .citizen-native-home-search > button,.citizen-native-topbar .citizen-native-header-search button) {
      width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 10px !important;
    }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-hero-copy .citizen-native-home-search > button { top: 4px !important; right: 4px !important; }
    html:root[data-bims-theme][data-citizen-theme] body.public-service-body.citizen-native-app:has(.citizen-city-govbar) .citizen-city-app-signin a { display: inline-flex !important; align-items: center !important; min-width: 44px !important; min-height: 44px !important; padding-inline: 6px !important; }
  }
}
