/* ASCENSION portals. Existing form, access and complaint behavior stays in its modules. */
body.ascension-design.portal-page {
  --ink: #17232d;
  --muted: #5d666b;
  --line: #d9dcd4;
  --blue: #2454d8;
  --teal: #2454d8;
  --soft: #e9eefb;
  --surface: #fcfbf7;
  --radius: 16px;
  color: var(--ink);
  background: #f4f2eb;
  font-size: 16px;
  line-height: 1.5;
}
.portal-page *, .portal-page *::before, .portal-page *::after { box-sizing: border-box; }
.portal-page [hidden] { display: none !important; }
.portal-page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #2454d8; outline-offset: 4px; }
.portal-page :is(form, section[id], h2[id]) { scroll-margin-top: 26px; }
.portal-page h1, .portal-page h2, .portal-page h3 { color: var(--ink); }
.portal-page h1 { font-weight: 650; letter-spacing: -.055em; }
.portal-page h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.04em; font-weight: 650; }
.portal-page h3 { letter-spacing: -.025em; }
.portal-page .site-header { display: flex; min-height: 94px; gap: 28px; padding: 20px max(28px, calc((100vw - 1380px) / 2)); background: #f4f2eb; border-bottom: 1px solid var(--line); }
.portal-page .brand { font-size: 20px; letter-spacing: -.04em; gap: 11px; line-height: 1.1; flex-shrink: 0; }
.portal-page .portal-brand-mark { width: 36px; height: 36px; display: block; flex: 0 0 auto; }
.portal-page .brand small { margin-top: 6px; font-size: 10px; font-weight: 450; letter-spacing: .025em; }
.portal-page .site-header nav { gap: 3px; min-width: 0; }
.portal-page .site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 0; padding: 10px 12px; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.portal-page .site-header nav a:hover { color: var(--blue); background: transparent; border-bottom-color: #adbce6; }
.portal-page .site-header nav a[aria-current] { color: var(--blue); background: transparent; border-bottom-color: var(--blue); font-weight: 650; }
.portal-page .city-label { font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.portal-page .city-label span { color: var(--blue); margin-left: 8px; }
.portal-page .page-shell { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.portal-page .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .12em; font-weight: 650; }
.portal-page .hero { align-items: center; padding: 58px 0 44px; gap: 9%; }
.portal-page .hero p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.portal-page .resident-hero h1 { margin: 20px 0; font-size: clamp(46px, 5vw, 72px); line-height: 1.02; }
.portal-page h1 span { color: var(--blue); }
.portal-page .portal-hero-copy { flex: 1; min-width: 0; }
.portal-page .portal-hero-copy > p { max-width: 500px; }
.portal-page .portal-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.portal-page .portal-text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-underline-offset: 5px; color: var(--blue); }
.portal-page .portal-journey { width: 340px; padding: 25px 0 0 30px; border-left: 1px solid var(--line); flex-shrink: 0; }
.portal-page .portal-journey ol { padding: 0; margin: 22px 0 0; list-style: none; }
.portal-page .portal-journey li { display: flex; align-items: flex-start; gap: 17px; margin: 0 0 23px; }
.portal-page .portal-journey li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: #e7e9e0; font-size: 11px; font-weight: 650; flex-shrink: 0; }
.portal-page .portal-journey li:first-child > span { background: #dfff83; }
.portal-page .portal-journey strong { display: block; font-size: 14px; font-weight: 600; }
.portal-page .portal-journey li p { font-size: 12px; line-height: 1.55; margin-top: 4px; }
.portal-page .notice { color: #425574; background: #edf1fa; border-color: #d5deef; font-size: 14px; border-radius: 10px; }
.portal-page .notice.compact { font-size: 13px; line-height: 1.55; padding: 12px 16px; margin-bottom: 26px; }
.portal-page .notice.error { background: #f9ede7; border-color: #e2bba9; color: #8c3f25; }
.portal-page .notice.success { background: #eef4db; border-color: #cfdca4; color: #304822; }
.portal-page #mode-note { background: transparent; color: var(--muted); border-width: 1px 0; border-radius: 0; padding: 13px 0; }
.portal-page #mode-note + .button { margin: -10px 0 24px; }
.portal-page .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: none; min-width: 0; }
.portal-page .resident-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); align-items: start; gap: 24px; }
.portal-page .resident-aside { gap: 24px; }
.portal-page .section-top { align-items: flex-start; gap: 18px; }
.portal-page .outline-badge { color: var(--muted); border-color: var(--line); border-radius: 20px; font-size: 11px; padding: 6px 11px; white-space: normal; }
.portal-page .muted { color: var(--muted); font-size: 14px; line-height: 1.65; }
.portal-page .section-intro { margin: 15px 0 26px; }
.portal-page .portal-field-group { min-width: 0; border: 0; margin: 0; padding: 0 0 24px; }
.portal-page .portal-field-group + .portal-field-group { padding-top: 25px; border-top: 1px solid var(--line); }
.portal-page .portal-field-group legend { float: left; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin: 0 0 4px; color: var(--ink); font-size: 13px; font-weight: 650; }
.portal-page .portal-field-group legend + * { clear: both; }
.portal-page .portal-field-group legend > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--blue); background: #e9eefb; font-size: 11px; }
.portal-page .portal-consent-group { padding-bottom: 0; }
.portal-page label { color: var(--ink); font-size: 14px; font-weight: 550; margin: 18px 0 8px; }
.portal-page :is(input, select, textarea) { background: #fff; color: var(--ink); border: 1px solid #b9c0c3; border-radius: 9px; padding: 12px 13px; min-height: 48px; font: inherit; font-size: 16px; line-height: 1.45; }
.portal-page :is(input, textarea)::placeholder { color: #69767f; opacity: 1; }
.portal-page :is(input, select, textarea):hover { border-color: #74899e; }
.portal-page :is(input, select, textarea):focus-visible { border-color: var(--blue); outline-width: 2px; outline-offset: 2px; }
.portal-page textarea { line-height: 1.6; min-height: 150px; }
.portal-page input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; padding: 0; margin-top: 2px; accent-color: var(--blue); }
.portal-page .checkbox-label { font-size: 13px; line-height: 1.65; color: var(--muted); gap: 12px; font-weight: 400; margin: 19px 0 24px; }
.portal-page .required { color: #a4482a; }
.portal-page .field-hint { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 9px 0; }
.portal-page .field-hint.split { gap: 16px; font-size: 11px; }
.portal-page .two-fields { gap: 18px; }
.portal-page .location-details { border: 1px solid var(--line); background: #f4f3ed; padding: 0 16px; margin: 20px 0 0; border-radius: 9px; }
.portal-page .location-details summary { min-height: 48px; padding: 14px 0; font-size: 13px; }
.portal-page .location-details summary span { font-size: 11px; }
.portal-page .location-details[open] { padding-bottom: 14px; }
.portal-page .button { min-height: 46px; border-radius: 9px; padding: 11px 17px; font-size: 14px; font-weight: 600; gap: 16px; }
.portal-page .button.primary { background: #2454d8; color: #fff; border-color: #2454d8; }
.portal-page .button.primary:hover { background: #1d44b0; border-color: #1d44b0; }
.portal-page .button.secondary { background: #fcfbf7; border-color: #a2b1d7; color: #2454d8; }
.portal-page .button.secondary:hover { background: #eaf0ff; border-color: #2454d8; }
.portal-page .button.subtle { background: transparent; color: var(--muted); border-color: #bbc2c5; }
.portal-page .button.subtle:hover { background: #e9ebe4; border-color: #8f999e; color: var(--ink); }
.portal-page .button.small { min-height: 44px; font-size: 13px; padding: 9px 13px; }
.portal-page :is(button, input, select, textarea):disabled { opacity: .6; cursor: not-allowed; }
.portal-page .tracking-panel { border-top: 3px solid #2454d8; }
.portal-page .tracking-panel h2 { font-size: 27px; }
.portal-page .tracking-panel .section-intro { margin-bottom: 22px; }
.portal-page .info-card { background: #eceedf; border-color: #d7dcc5; padding: 27px 30px; border-radius: 16px; }
.portal-page .info-card h3 { font-size: 22px; margin-top: 10px; }
.portal-page .portal-info-copy { color: #4f5a4d; font-size: 14px; line-height: 1.65; margin: 14px 0 18px; }
.portal-page .portal-info-footnote { margin-top: 22px; padding-top: 18px; border-top: 1px solid #cbd2ba; color: #4f5a4d; }
.portal-page .portal-info-footnote strong { font-size: 12px; font-weight: 650; }
.portal-page .portal-info-footnote p { font-size: 12px; line-height: 1.65; margin-top: 6px; }
.portal-page .receipt { padding-top: 28px; }
.portal-page .success-icon { background: #dfff83; color: #17232d; width: 54px; height: 54px; font-size: 28px; }
.portal-page .receipt h3 { font-size: 29px; line-height: 1.15; }
.portal-page .receipt > p { font-size: 14px; line-height: 1.65; }
.portal-page .receipt dl { background: #f0f1e7; border: 1px solid var(--line); padding: 22px; border-radius: 12px; }
.portal-page .receipt dt { font-size: 12px; }
.portal-page .receipt dd { font-size: 16px; }
.portal-page .receipt #receipt-id { font-size: 21px; font-weight: 650; }
.portal-page .tracking-result h3 { font-size: 20px; }
.portal-page .badge { border-radius: 6px; font-size: 11px; padding: 5px 9px; line-height: 1.4; }
.portal-page .badge.status-new, .portal-page .badge.priority-normal { background: #e8eefc; color: #23489d; }
.portal-page .badge.status-in_progress { background: #f5edc8; color: #755514; }
.portal-page .badge.status-resolved { background: #e6efce; color: #3c5624; }
.portal-page .badge.status-rejected, .portal-page .badge.priority-low { background: #e9eaea; color: #535f68; }
.portal-page .badge.priority-high { background: #f8e6dd; color: #914326; }
.portal-page .timeline { margin-top: 24px; }
.portal-page .timeline li { border-color: #c9d0dd; padding-left: 24px; padding-bottom: 25px; }
.portal-page .timeline li::before { width: 10px; height: 10px; left: -5.5px; background: var(--blue); box-shadow: 0 0 0 4px var(--surface); }
.portal-page .timeline strong { font-size: 14px; }
.portal-page .timeline time { font-size: 11px; }
.portal-page .timeline p { font-size: 13px; color: var(--muted); }
.portal-page .resolution-box { background: #f0f4e3; border: 1px solid #d8dfc2; font-size: 14px; border-radius: 10px; }
.portal-page .resolution-box strong { color: #415929; font-size: 12px; }
.portal-page footer { padding: 30px 0; margin-top: 30px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; color: var(--muted); }
.portal-page .compact-hero { padding: 37px 0 26px; gap: 25px; }
.portal-page .compact-hero h1 { font-size: clamp(32px, 3.5vw, 49px); line-height: 1.08; margin: 14px 0 12px; }
.portal-page .compact-hero p { font-size: 14px; }
.portal-page .compact-hero > .button { flex-shrink: 0; }
.portal-page .portal-mobile-break { display: none; }
.portal-page .toolbar-notices { align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.portal-page .toolbar-notices .notice { margin: 0; }
.portal-page .access-details { background: var(--surface); border: 1px solid #a2b1d7; padding: 0 16px; border-radius: 9px; width: 310px; max-width: 360px; min-width: 270px; }
.portal-page .access-details summary { font-size: 13px; font-weight: 600; color: var(--blue); min-height: 46px; padding: 13px 0; }
.portal-page .access-details[open] { padding-bottom: 18px; }
.portal-page .access-details label { font-size: 13px; }
.portal-page .access-details .button-row { gap: 8px; }
.portal-page .access-details .button { flex: 1; }
.portal-page .stats-grid { gap: 0; margin: 25px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.portal-page .stats-grid article { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 27px; }
.portal-page .stats-grid article:first-child { border-left: 0; padding-left: 0; }
.portal-page .stats-grid article > span { font-size: 13px; }
.portal-page .stats-grid strong { font-size: 36px; line-height: 1; margin: 12px 0 7px; font-variant-numeric: tabular-nums; color: var(--ink); }
.portal-page .stats-grid small { font-size: 11px; color: var(--muted); }
.portal-page .stats-grid .stat-accent { background: transparent; }
.portal-page .stats-grid .stat-accent strong { color: #3c5624; }
.portal-page .queue-panel { padding: 26px 0 0; border-radius: 16px; overflow: hidden; }
.portal-page .queue-panel > .section-top { padding: 0 28px; }
.portal-page .filter-form { grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(110px, 1fr)); gap: 14px; padding: 8px 28px 23px; }
.portal-page .filter-form label { font-size: 12px; margin-top: 16px; }
.portal-page .filter-form input, .portal-page .filter-form select { min-height: 46px; font-size: 14px; padding: 10px 12px; }
.portal-page .filter-actions { margin-top: 1px; }
.portal-page .queue-workspace { grid-template-columns: minmax(290px, .82fr) minmax(0, 1.5fr); min-height: 440px; }
.portal-page .complaints-list { max-height: 1100px; }
.portal-page .complaint-card { background: var(--surface); padding: 24px; }
.portal-page .complaint-card:hover { background: #f0f2ed; }
.portal-page .complaint-card[aria-pressed="true"] { background: #eaf0ff; box-shadow: inset 3px 0 0 #2454d8; }
.portal-page .complaint-card .card-number { font-size: 11px; color: var(--muted); }
.portal-page .complaint-card h3 { font-size: 16px; font-weight: 650; line-height: 1.45; margin: 12px 0; }
.portal-page .card-meta { font-size: 12px; color: var(--muted); }
.portal-page .complaint-detail { background: #fcfbf7; padding: 30px; }
.portal-page .detail-header h3 { font-size: clamp(23px, 2.2vw, 31px); line-height: 1.2; margin: 12px 0 16px; }
.portal-page .detail-number { color: var(--muted); font-size: 12px; }
.portal-page .detail-meta { gap: 17px; margin: 24px 0; }
.portal-page .detail-meta > div { font-size: 14px; color: var(--ink); }
.portal-page .detail-meta strong { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.portal-page .original-text { background: #f0f1ec; border-color: #dde0d5; color: var(--ink); padding: 20px; font-size: 15px; line-height: 1.7; }
.portal-page .analysis-note { background: #f0f4e3; border-left: 3px solid #abc96a; border-radius: 0 9px 9px 0; color: #4c5846; padding: 15px 18px; font-size: 12px; }
.portal-page .analysis-note p { margin-top: 6px; }
.portal-page .edit-section { margin-top: 28px; padding-top: 24px; }
.portal-page .edit-section h4, .portal-page .history-heading { font-size: 16px; color: var(--ink); font-weight: 600; }
.portal-page .edit-section label { font-size: 13px; margin-top: 18px; }
.portal-page .edit-section input, .portal-page .edit-section select, .portal-page .edit-section textarea { font-size: 15px; min-height: 46px; padding: 11px 12px; }
.portal-page .edit-section textarea { min-height: 110px; }
.portal-page .analysis-edit { background: #f0f1ec; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.portal-page .analysis-edit[open] { padding-bottom: 16px; }
.portal-page .analysis-edit summary { min-height: 48px; padding: 13px 0; font-size: 13px; }
.portal-page .history-heading { margin-top: 32px; }
.portal-page .photo-grid { gap: 16px; margin: 20px 0; }
.portal-page .photo-grid img { height: auto; max-height: 360px; object-fit: contain; background: #eceee6; border-radius: 10px; }
.portal-page .photo-grid figcaption { font-size: 11px; margin-top: 5px; }
.portal-page .photo-grid .button { height: 125px; font-size: 13px; }
.portal-page .empty-state { padding: 45px 24px; font-size: 14px; color: var(--muted); }
.portal-page .empty-state h3 { color: var(--ink); font-size: 20px; line-height: 1.35; margin-bottom: 12px; }
.portal-page .empty-state p { font-size: 13px; line-height: 1.65; max-width: 340px; }
.portal-page .detail-placeholder > span { color: #2454d8; font-size: 45px; margin-bottom: 20px; }
.portal-page .map-panel, .portal-page .location-map-panel { margin-top: 25px; }
.portal-page .map-panel h2, .portal-page .location-map-panel h2 { font-size: 27px; }
.portal-page .map-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
.portal-page .coordinate-map { background-color: #eceee6; border-color: #cbd1c1; background-image: linear-gradient(#dce0d4 1px, transparent 1px), linear-gradient(90deg, #dce0d4 1px, transparent 1px); min-height: 315px; border-radius: 12px; }
.portal-page .map-point { width: 44px; height: 44px; margin-left: -22px; margin-top: -22px; font-size: 13px; box-shadow: none; border-width: 3px; }
.portal-page .map-point.normal, .portal-page .legend-dot.normal { background: #2454d8; }
.portal-page .map-point.high, .portal-page .legend-dot.high { background: #b85836; }
.portal-page .map-point.low, .portal-page .legend-dot.low { background: #647671; }
.portal-page .map-point[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.portal-page .map-axis, .portal-page .map-caption { color: #55624d; font-size: 10px; }
.portal-page .map-legend > div span { color: var(--muted); font-size: 13px; }
.portal-page .map-legend ul { color: var(--muted); font-size: 12px; }
.portal-page .map-legend .legend-dot { width: 9px; height: 9px; }
.portal-page .location-map-credit { color: var(--muted); font-size: 12px; line-height: 1.6; }
.portal-page .location-map-credit a { color: var(--blue); }

@media (max-width: 1150px) {
  .portal-page .site-header { padding: 18px 26px; gap: 20px; }
  .portal-page .city-label { display: none; }
  .portal-page .site-header nav a { padding: 10px; font-size: 12px; }
  .portal-page .page-shell { padding: 0 26px; }
  .portal-page .hero { gap: 6%; }
  .portal-page .portal-journey { width: 300px; padding-left: 25px; }
  .portal-page .resident-grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 20px; }
  .portal-page .panel { padding: 26px; }
  .portal-page .resident-grid .two-fields { grid-template-columns: 1fr; gap: 0; }
  .portal-page .filter-form { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-left: 25px; padding-right: 25px; }
  .portal-page .filter-search { grid-column: 1 / -1; }
  .portal-page .queue-panel { padding: 25px 0 0; }
  .portal-page .queue-panel > .section-top { padding: 0 25px; }
  .portal-page .complaint-detail { padding: 25px; }
  .portal-page .complaint-card { padding: 22px; }
}
@media (max-width: 850px) {
  .portal-page .site-header { flex-wrap: wrap; gap: 17px; }
  .portal-page .site-header nav { width: 100%; overflow-x: auto; margin: 0; padding-bottom: 1px; justify-content: space-between; }
  .portal-page .site-header nav a { flex-shrink: 0; font-size: 13px; }
  .portal-page .hero { padding: 37px 0 32px; gap: 25px; }
  .portal-page .resident-hero h1 { font-size: 52px; }
  .portal-page .portal-journey { width: 260px; padding-left: 22px; }
  .portal-page .portal-journey li { gap: 12px; }
  .portal-page .portal-journey strong { font-size: 13px; }
  .portal-page .resident-grid { grid-template-columns: 1fr; }
  .portal-page .resident-grid .two-fields { grid-template-columns: 1fr 1fr; gap: 18px; }
  .portal-page .resident-aside { grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
  .portal-page .resident-aside .panel, .portal-page .info-card { padding: 25px; }
  .portal-page .tracking-panel h2 { font-size: 25px; }
  .portal-page .queue-workspace { grid-template-columns: minmax(250px, .78fr) minmax(0, 1fr); }
  .portal-page .complaint-detail { padding: 22px; }
  .portal-page .detail-meta { grid-template-columns: 1fr; gap: 13px; }
  .portal-page .edit-section .two-fields { grid-template-columns: 1fr; gap: 0; }
  .portal-page .stats-grid article { padding: 0 18px; }
  .portal-page .stats-grid article > span { font-size: 12px; }
  .portal-page .stats-grid small { font-size: 10px; }
}
@media (max-width: 680px) {
  .portal-page .page-shell { padding: 0 20px; }
  .portal-page .site-header { padding: 18px 20px 0; }
  .portal-page .brand { font-size: 19px; }
  .portal-page .brand small { font-size: 9px; }
  .portal-page .portal-brand-mark { width: 34px; height: 34px; }
  .portal-page .site-header nav { gap: 6px; margin: 0; padding-bottom: 8px; justify-content: flex-start; }
  .portal-page .site-header nav a { padding: 10px 9px; flex: 0 0 auto; }
  .portal-page .hero { display: block; padding: 34px 0 28px; }
  .portal-page .hero p { font-size: 15px; }
  .portal-page .resident-hero h1 { font-size: clamp(42px, 9.5vw, 57px); margin: 16px 0; }
  .portal-page .portal-hero-actions { gap: 10px 18px; margin-top: 23px; }
  .portal-page .portal-hero-actions .button { width: 100%; }
  .portal-page .portal-journey { display: none; }
  .portal-page .panel, .portal-page .resident-aside .panel, .portal-page .info-card { padding: 24px; }
  .portal-page .resident-aside { grid-template-columns: 1fr; }
  .portal-page .resident-grid .two-fields, .portal-page .two-fields { grid-template-columns: 1fr; gap: 0; }
  .portal-page .section-intro { font-size: 14px; margin-bottom: 23px; }
  .portal-page .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .portal-page .field-hint.split { display: block; }
  .portal-page .field-hint.split > :last-child { display: block; margin-top: 3px; text-align: right; }
  .portal-page .location-details summary span { display: inline; margin-left: 5px; }
  .portal-page .location-details .button { width: 100%; font-size: 12px; }
  .portal-page .checkbox-label { font-size: 12px; }
  .portal-page .receipt h3 { font-size: 25px; }
  .portal-page .receipt dd { font-size: 14px; }
  .portal-page .compact-hero { display: flex; align-items: flex-start; gap: 15px; }
  .portal-page .compact-hero h1 { font-size: 32px; margin-top: 14px; }
  .portal-page .compact-hero p { font-size: 13px; }
  .portal-page .compact-hero > .button { font-size: 12px; min-height: 44px; padding: 10px 12px; margin-top: 0; }
  .portal-page .portal-mobile-break { display: initial; }
  .portal-page .toolbar-notices { flex-direction: column; gap: 12px; }
  .portal-page .toolbar-notices .notice { width: 100%; }
  .portal-page .access-details { width: 100%; min-width: 0; max-width: none; }
  .portal-page .stats-grid { grid-template-columns: 1fr 1fr; gap: 23px 0; padding: 22px 0; margin: 24px 0; }
  .portal-page .stats-grid article { padding: 0 20px; }
  .portal-page .stats-grid article:nth-child(odd) { border-left: 0; padding-left: 0; }
  .portal-page .stats-grid article > span { font-size: 13px; }
  .portal-page .stats-grid small { font-size: 11px; }
  .portal-page .queue-panel { padding: 23px 0 0; }
  .portal-page .queue-panel > .section-top { padding: 0 20px; align-items: center; }
  .portal-page .queue-panel h2 { font-size: 25px; }
  .portal-page .queue-panel .outline-badge { font-size: 10px; }
  .portal-page .filter-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 6px 20px 20px; gap: 11px; }
  .portal-page .filter-form input, .portal-page .filter-form select { min-height: 46px; font-size: 16px; }
  .portal-page .filter-form label { font-size: 12px; margin-top: 12px; }
  .portal-page .filter-actions { justify-content: stretch; margin-top: 8px; }
  .portal-page .filter-actions .button { flex: 1; }
  .portal-page .queue-workspace { grid-template-columns: 1fr; }
  .portal-page .complaints-list { max-height: 480px; }
  .portal-page .complaint-detail { border-left: 0; border-top: 1px solid var(--line); padding: 25px 20px; }
  .portal-page .complaint-card { padding: 22px 20px; }
  .portal-page .detail-meta { grid-template-columns: 1fr 1fr; gap: 15px; }
  .portal-page .edit-section :is(input, select, textarea) { font-size: 16px; }
  .portal-page .edit-section .two-fields { grid-template-columns: 1fr 1fr; gap: 13px; }
  .portal-page .analysis-edit .two-fields { grid-template-columns: 1fr; }
  .portal-page .map-layout { grid-template-columns: 1fr; gap: 22px; }
  .portal-page .coordinate-map { min-height: 290px; }
  .portal-page .map-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; }
  .portal-page .map-legend ul, .portal-page .map-legend p { grid-column: 1 / -1; }
  .portal-page .map-panel h2, .portal-page .location-map-panel h2 { font-size: 25px; }
  .portal-page footer { flex-direction: column; gap: 8px; font-size: 10px; margin-top: 24px; padding: 24px 0; }
}
@media (max-width: 380px) {
  .portal-page .page-shell { padding: 0 14px; }
  .portal-page .site-header { padding-left: 16px; padding-right: 16px; }
  .portal-page .panel, .portal-page .resident-aside .panel, .portal-page .info-card { padding: 20px; }
  .portal-page .compact-hero { display: block; }
  .portal-page .compact-hero > .button { margin-top: 18px; }
  .portal-page .queue-panel { padding: 22px 0 0; }
  .portal-page .queue-panel > .section-top { display: block; }
  .portal-page .queue-panel .outline-badge { display: inline-block; margin-top: 14px; }
  .portal-page .filter-form { grid-template-columns: 1fr; }
  .portal-page .detail-meta, .portal-page .edit-section .two-fields { grid-template-columns: 1fr; }
  .portal-page .photo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-page { scroll-behavior: auto; }
  .portal-page *, .portal-page *::before, .portal-page *::after { transition: none !important; animation: none !important; }
}
/* Keep focus visible inside the independently scrolling queue. */
body.ascension-design.portal-page .complaint-card:focus-visible{outline:3px solid var(--brand-blue);outline-offset:-3px;}
