@charset "UTF-8";
/* Native links share the existing controls' typography and responsive layout. */
a.stat-card,a.filter-tab,a.case-link,a.open-case-btn,a.link-button,.mobile-dock a,.activity-item a {
  text-decoration: none;
}

a.stat-card {
  display: block;
  color: inherit;
}

.activity-item a {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--green);
}

.form-page {
  max-width: 960px;
  overflow: hidden;
}

.detail-page {
  overflow: hidden;
}

.detail-page .case-main,.detail-page .case-timeline {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-page .summary-item {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stat-unit {
  font-size: 15px;
  letter-spacing: 0;
}

.filter-row {
  flex-wrap: wrap;
}

[hidden] {
  display: none!important;
}

@media(max-width:767px) {
  .mobile-dock a {
    color: #788c93;
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    font-size: 10px;
    font-weight: 650;
  }

  .mobile-dock a .ico {
    width: 20px;
    height: 20px;
  }

  .mobile-dock a.active {
    color: var(--green);
  }

  .breadcrumb-label {
    min-width: 0;
  }

  .breadcrumb-label>strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .form-page .form-footer .btn {
    white-space: normal;
  }

}

:root {
  --font-ui: "Segoe UI", Arial, sans-serif;
  --font-mono: Consolas, "Courier New", monospace;
  --font-size-body: 14px;
  --font-size-small: 12px;
  --font-size-section: 16px;
  --font-size-page: 29px;
  --weight-label: 600;
  --weight-heading: 650;
  --text-secondary: #526b74;
  --surface: #fff;
  --surface-soft: #f3f8f5;
  --surface-border: #dce8e1;
  --radius-control: 7px;
  --radius-card: 11px;
  --ink: #172d35;
  --muted: #617780;
  --green: #16745d;
  --green-dark: #105440;
  --mint: #d9f4e8;
  --nav: #102b32;
  --bg: #f4f7f8;
  --line: #e6ecee;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --control-height: 44px;
  --transition-fast: .2s ease;
  --focus-ring: #74bdaa;
  --shadow-overlay: 0 8px 24px #102b321c;
  --shadow: none;
  --bs-body-font-family: var(--font-ui);
  --bs-body-font-size: var(--font-size-body);
  --bs-body-color: var(--ink);
  --bs-primary: #16745d;
  --bs-border-color: var(--line);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: var(--font-size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button,input,select,textarea {
  font-family: var(--font-ui);
}

.section-title {
  font-size: var(--font-size-section);
  font-weight: var(--weight-heading);
  line-height: 1.4;
  letter-spacing: -.3px;
  color: var(--ink);
  margin: 0 0 12px;
}

.form-label {
  font-size: var(--font-size-body);
  font-weight: var(--weight-label);
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

/* Labels wrap controls on older pages and precede controls on newer forms. */
.form-label:has(> .form-control),
.form-label:has(> .form-select) {
  display: block;
  width: 100%;
  margin-bottom: var(--space-5);
}

.form-label > .form-control,
.form-label > .form-select {
  margin-top: var(--space-2);
}

.form-control + .form-label,
.form-select + .form-label,
.row + .form-label {
  margin-top: var(--space-5);
}

form:not([role="search"]):not(.staff-message-search) > .btn[type="submit"] {
  margin-top: var(--space-4);
}

.form-control:disabled,.form-select:disabled {
  background: var(--bg);
  color: var(--muted);
  opacity: 1;
}

.form-control[readonly] {
  background: var(--surface-soft);
  color: var(--ink);
}

.form-check-input:checked {
  background-color: var(--green);
  border-color: var(--green);
}

.form-check-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #16745d13;
}

button {
  font: inherit;
}

a {
  color: var(--green);
}

h1,h2,h3,h4,p {
  margin-top: 0;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid #62bd9d;
  outline-offset: 4px;
}

svg.ico {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

button:disabled {
  cursor: not-allowed;
}

.text-muted {
  color: var(--muted)!important;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.shell {
  min-height: 100vh;
  padding-left: 244px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--nav);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 20px;
  z-index: 1040;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
  margin-bottom: 36px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-title {
  font-size: 19px;
  letter-spacing: -.8px;
  font-weight: 750;
  line-height: 1.3;
}

.brand-title span {
  color: #8ce2b9;
}

.brand small {
  display: block;
  color: #9fb7bb;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px;
}

.workspace-label {
  margin: 0 14px 13px;
  color: #729399;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  border: 0;
  background: none;
  color: #adc2c7;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: left;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  background: #ffffff0a;
}

.nav-link.active {
  background: #25474b;
  color: #bbf3d7;
}

.nav-count {
  margin-left: auto;
  color: #d2ebe1;
  background: #ffffff12;
  font-size: 12px;
  min-width: 24px;
  padding: 2px 6px;
  text-align: center;
  border-radius: 5px;
}

.sidebar-line {
  height: 1px;
  background: #29454c;
  margin: 25px 14px;
}

.sidebar-bottom {
  margin-top: auto;
}

.workspace-note {
  background: #19373e;
  border: 1px solid #29474c;
  border-radius: 10px;
  padding: 16px;
  margin: 26px 7px 16px;
}

.workspace-note .workspace-dot {
  display: inline-block;
  background: #93deb4;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}

.workspace-note strong {
  font-size: 13px;
  font-weight: 600;
}

.workspace-note p {
  font-size: 12px;
  line-height: 1.65;
  color: #a6bec2;
  margin: 8px 0 0;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 9px 0;
  border-top: 1px solid #29454c;
  color: #adc2c7;
  font-size: 12px;
}

.sidebar-footer .ico {
  width: 16px;
}

.sidebar-signout {
  width: 100%;
  margin-top: 12px;
}

body.navigation-open {
  overflow: hidden;
}

.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}

.breadcrumb-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb-label strong {
  color: var(--ink);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 19px;
}

.date-label {
  font-size: 13px;
  color: var(--muted);
}

.avatar {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  background: #e4ecee;
  color: #526d75;
  border-radius: 50%;
}

.avatar.me {
  background: #e4eee8;
  color: #2e6753;
}

img.avatar {
  display: block;
  object-fit: cover;
  border: 1px solid var(--surface-border);
}

.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 19px;
  border-left: 1px solid var(--line);
}

.profile-name {
  font-size: 13px;
  font-weight: 650;
}

.profile-role {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6c7d82;
}

.icon-btn:hover {
  background: #f3f6f7;
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  padding: 8px 38px;
  background: #ecf2f2;
  border-bottom: 1px solid #dfe8e8;
  font-size: 12px;
  color: #62777b;
}

.workspace-badge {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 750;
  background: #fff;
  color: #476367;
  padding: 4px 7px;
  border: 1px solid #d7e3e2;
  border-radius: 4px;
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.link-button:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.workspace-toolbar .link-button {
  font-size: 12px;
  white-space: nowrap;
}

.main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 35px 38px 28px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: var(--space-7);
}

.page-heading h1 {
  font-size: var(--font-size-page);
  font-weight: 700;
  letter-spacing: -.9px;
  margin: 0 0 7px;
}

.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  min-height: var(--control-height);
  font-size: var(--font-size-body);
  font-weight: var(--weight-label);
  border-radius: var(--radius-control);
  padding: var(--space-2) var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  font-family: var(--font-ui);
  line-height: 1.5;
}

.btn-primary {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-dark);
  --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-bg: var(--green-dark);
  --bs-btn-active-border-color: var(--green-dark);
  --bs-btn-disabled-bg: var(--green);
  --bs-btn-disabled-border-color: var(--green);
  --bs-btn-focus-shadow-rgb: 22,116,93;
}

.btn-light {
  background: var(--surface);
  border-color: var(--surface-border);
  color: var(--text-secondary);
}

.btn-light:hover {
  background: #f5f8f8;
  border-color: #bacdcf;
}

.btn-sm {
  min-height: 36px;
  padding: 6px var(--space-3);
  font-size: var(--font-size-small);
}

.btn .ico {
  width: 17px;
  height: 17px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 18px;
  margin-bottom: 24px;
}

@media(min-width:1001px) {
  .stats-grid:has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

button.stat-card {
  text-align: left;
  transition: transform .15s,border-color .15s;
  color: inherit;
}

button.stat-card:hover {
  transform: translateY(-2px);
  border-color: #adcac0;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  font-weight: 500;
}

.stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3f6;
  color: #6b8593;
}

.stat-card .number {
  font-size: 35px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -1.5px;
  margin: 15px 0 12px;
}

.stat-caption {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.5;
}

.stat-caption .ico {
  width: 13px;
  height: 13px;
}

.stat-card.green .stat-icon {
  color: #3d9170;
  background: #eaf7ef;
}

.stat-card.green .number {
  color: #226d54;
}

.stat-card.amber .stat-icon {
  background: #fff5e2;
  color: #b78327;
}

.stat-card.blue .stat-icon {
  background: #eaf2fe;
  color: #5d8cb8;
}

.stat-card.rose .stat-icon {
  background: #fff0ee;
  color: #c76b60;
}

.attention-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #e8f2ee;
  border: 1px solid #d1e5db;
  border-radius: 9px;
  padding: 16px 18px;
  margin-bottom: 26px;
}

.attention-icon {
  background: #d5e8df;
  color: #33735b;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.attention-copy {
  flex: 1;
}

.attention-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 3px;
  color: #275e4c;
}

.attention-copy p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: #698178;
}

.attention-banner .link-button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 298px;
  gap: 22px;
  align-items: start;
}

.overview-grid > *,
.side-stack > * {
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  gap: 10px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-section);
  font-weight: var(--weight-heading);
  letter-spacing: -.3px;
  margin: 0;
  line-height: 1.4;
}

.panel-subtitle {
  font-size: var(--font-size-small);
  color: var(--muted);
  margin: 5px 0 0;
}

.count-pill {
  font-size: 11px;
  background: #edf1f2;
  color: #77858d;
  padding: 3px 6px;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0;
}

.panel-toolbar {
  padding: 0 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-tab {
  border: 0;
  background: none;
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 7px 10px;
  font-size: var(--font-size-small);
  font-weight: 600;
}

.filter-tab:hover {
  background: #f3f6f5;
  color: var(--green);
}

.filter-tab.active {
  background: #eaf4ef;
  color: #287457;
}

.search-field {
  position: relative;
}

.search-field .ico {
  position: absolute;
  top: 14px;
  left: 11px;
  width: 16px;
  height: 16px;
  color: #90a0a5;
}

.search-field input {
  height: var(--control-height);
  border-radius: var(--radius-control);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  padding: 8px 10px 8px 34px;
  font-size: var(--font-size-body);
  width: 205px;
  outline: none;
}

.search-field input:focus {
  border-color: #73bba2;
  box-shadow: 0 0 0 3px #16745d0a;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 18px;
  border-bottom: 1px solid var(--line);
}

.filter-row .form-select {
  font-size: 13px;
  width: auto;
  max-width: 225px;
  border-radius: 6px;
}

.filter-row .search-field {
  margin-right: auto;
}

.table-responsive {
  margin: 0;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

/* Operational tables share readable cells; matrices retain native table layout. */
.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

.table > :not(caption) > * > * {
  padding: var(--space-3) var(--space-4);
  vertical-align: middle;
}

.table thead th {
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  font-weight: var(--weight-label);
  border-bottom-width: 1px;
}

.table td {
  overflow-wrap: anywhere;
}

@media(max-width:650px) {
  .record-table,
  .record-table tbody,
  .record-table tr,
  .record-table td {
    display: block;
    width: 100%;
  }

  .record-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .record-table tbody tr {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line);
  }

  .record-table tbody tr:last-child {
    border-bottom: 0;
  }

  .record-table.table td {
    padding: var(--space-2) var(--space-4);
    border: 0;
  }

  .record-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--font-size-small);
    color: var(--muted);
    font-weight: var(--weight-label);
  }

  .btn-sm,
  .open-case-btn,
  .filter-tab {
    min-height: var(--control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.complaint-table {
  width: 100%;
  margin: 0;
  vertical-align: middle;
  --bs-table-bg: transparent;
}

.complaint-table thead th {
  font-size: var(--font-size-small);
  font-weight: 650;
  letter-spacing: .85px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 0;
  background: #fafcfc;
  padding: 12px 16px;
  white-space: nowrap;
}

.complaint-table thead th:first-child,.complaint-table td:first-child {
  padding-left: 22px;
}

.complaint-table td {
  padding: 16px;
  border-bottom: 1px solid #edf1f2;
  font-size: 12px;
  color: #71838b;
}

.complaint-table tbody tr:last-child td {
  border-bottom: 0;
}

.complaint-table tbody tr:hover {
  background: #fbfdfc;
}

.case-link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.5;
  color: #344d57;
  display: block;
  text-decoration: none;
  min-width: 170px;
  max-width: 390px;
}

.case-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.case-meta {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-small);
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}

.case-meta .ico {
  width: 12px;
  height: 12px;
}

.case-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-right: 4px;
}

.category-cell {
  font-size: 12px!important;
  max-width: 130px;
  line-height: 1.55;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-small);
  font-weight: 600;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
  line-height: 1.3;
}

.status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-submitted {
  color: #35596a;
  background: #ecf2f9;
}

.status-under-review {
  color: #785714;
  background: #fbf4e5;
}

.status-assigned {
  color: #35596a;
  background: #edf3f6;
}

.status-in-progress {
  color: #35596a;
  background: #e8f3fa;
}

.status-resolved {
  color: var(--green-dark);
  background: #e7f4f0;
}

.status-verified {
  color: #2e7956;
  background: #e9f5ed;
}

.status-rejected {
  color: #9c352e;
  background: #fdf0ed;
}

.status-returned-for-information {
  color: #785714;
  background: #fff5e6;
}

.status-reopened,.status-blocked {
  color: #785714;
  background: #fff3d9;
}

.status-linked-to-primary,.status-planned,.status-cancelled,.status-ongoing {
  color: var(--text-secondary);
  background: #edf3f6;
}

.status-completed,.status-closed {
  color: var(--green-dark);
  background: var(--surface-soft);
}

.status-referred-to-another-office {
  color: #697382;
  background: #eff0f4;
}

.priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-small);
  white-space: nowrap;
}

.priority-dot {
  width: 6px;
  height: 6px;
  background: #9caeb4;
  border-radius: 50%;
}

.priority-high .priority-dot {
  background: #e8a859;
}

.priority-urgent {
  color: #9c352e;
}

.priority-urgent .priority-dot {
  background: #cf6f64;
}

.priority-medium .priority-dot {
  background: #91acc0;
}

.priority-low .priority-dot {
  background: #87b59a;
}

.table-foot {
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  color: #98a3a8;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.side-stack .panel-header {
  padding: 20px 20px 12px;
}

.side-stack .panel-title {
  font-size: var(--font-size-section);
}

.category-chart {
  padding: 10px 20px 18px;
}

.chart-row {
  margin-bottom: 16px;
}

.chart-row:last-child {
  margin-bottom: 0;
}

.chart-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-small);
  color: #73878d;
  margin-bottom: 7px;
}

.chart-label strong {
  font-size: 12px;
  font-weight: 600;
  color: #536a71;
}

.chart-track {
  height: 6px;
  background: #f0f4f4;
  border-radius: 4px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  border-radius: 4px;
  background: #5cae90;
}

.chart-row:nth-child(2) .chart-fill {
  background: #86b6b1;
}

.chart-row:nth-child(3) .chart-fill {
  background: #adccb3;
}

.chart-row:nth-child(4) .chart-fill {
  background: #c8d9ca;
}

.chart-row:nth-child(5) .chart-fill {
  background: #d6e3de;
}

.chart-note {
  font-size: 11px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: #93a0a5;
}

.activity-list {
  padding: 2px 20px 18px;
}

.activity-item {
  display: flex;
  gap: 11px;
  padding: 13px 0;
}

.activity-mark {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eaf5ef;
  color: #479270;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.activity-mark .ico {
  width: 13px;
  height: 13px;
}

.activity-item p {
  font-size: var(--font-size-body);
  line-height: 1.55;
  color: #5a717a;
  margin-bottom: 3px;
}

.activity-item small {
  font-size: 10px;
  color: #95a4aa;
}

.activity-item a {
  color: #396653;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}

.activity-item a:hover {
  text-decoration: underline;
}

.workflow-card {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  position: relative;
}

.workflow-card .ico {
  color: var(--green);
  width: 27px;
  height: 27px;
}

.workflow-card h3 {
  font-size: var(--font-size-section);
  font-weight: 600;
  letter-spacing: -.3px;
  margin: 14px 0 8px;
}

.workflow-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.workflow-card .link-button {
  margin-top: 17px;
  font-size: 12px;
  color: var(--green);
  display: flex;
  gap: 9px;
  align-items: center;
}

.bottom-panels {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.team-list {
  padding: 2px 22px 17px;
}

.team-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.team-row+.team-row {
  border-top: 1px solid #f1f4f5;
}

.team-icon {
  background: #f2f6f7;
  color: #82989b;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.team-icon .ico {
  width: 16px;
  height: 16px;
}

.team-name {
  font-size: var(--font-size-body);
  color: #56717a;
  flex: 1;
}

.team-badge {
  font-size: 11px;
  color: #638477;
  background: #edf5f0;
  border-radius: 5px;
  padding: 4px 8px;
}

.resolution-summary {
  display: flex;
  gap: 25px;
  padding: 12px 22px 20px;
  align-items: center;
}

.completion-ring {
  --pct: 0%;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: conic-gradient(#61ac8b var(--pct),#edf4f0 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.completion-ring:before {
  content: "";
  position: absolute;
  inset: 9px;
  background: #fff;
  border-radius: 50%;
}

.completion-ring span {
  position: relative;
  font-size: 22px;
  font-weight: 650;
  color: #3e715b;
}

.resolution-copy strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}

.resolution-copy p {
  font-size: 11px;
  color: #95a1a5;
  line-height: 1.7;
  margin-bottom: 9px;
}

.main-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #9aa7ac;
  font-size: 11px;
  margin-top: 25px;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 45px 20px;
  color: #7c9097;
}

.empty-state .ico {
  width: 34px;
  height: 34px;
  color: #a1b8b0;
  margin-bottom: 13px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  color: #48636d;
  margin-bottom: 7px;
}

.empty-state p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.report-grid .panel {
  margin-bottom: 0;
}

.report-body {
  padding: 0 var(--space-6) var(--space-6);
}

.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.insight-row:last-child {
  border-bottom: 0;
}

.insight-row span {
  color: #6e858c;
}

.insight-row strong {
  font-size: 14px;
}

/* Reports and insights use clear sections, ranked comparisons, and compact empty states. */
.report-section + .report-section {
  margin-top: 38px;
}

.report-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.report-section-heading .section-title {
  margin-bottom: 0;
}

.report-section-heading > p {
  max-width: 520px;
  margin: 0 0 1px;
  color: var(--muted);
  font-size: var(--font-size-small);
  text-align: right;
}

.report-section-kicker {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reports-stats-grid {
  margin-bottom: 0;
}

.weekly-overview-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.weekly-overview-grid .panel,
.report-followup-stack > .panel {
  margin-top: 0!important;
}

.weekly-overview-grid-active {
  grid-template-columns: minmax(0,1fr);
}

.weekly-overview-grid .panel-body {
  padding: 0 22px 22px;
}

.weekly-guidance {
  margin-bottom: 15px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.report-inline-label {
  margin-right: 7px;
  color: var(--text-secondary);
  font-weight: var(--weight-label);
}

.report-card {
  min-width: 0;
}

.report-grid-ranked > :last-child:nth-child(odd) {
  grid-column: 1/-1;
}

.report-ranking-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.report-ranking-row:last-child {
  border-bottom: 0;
}

.report-ranking-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 7px;
}

.report-ranking-label span {
  min-width: 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.report-ranking-label strong {
  flex-shrink: 0;
  color: var(--ink);
  font-size: var(--font-size-body);
}

.report-ranking-row progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #edf3f1;
  color: var(--green);
}

.report-ranking-row progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #edf3f1;
}

.report-ranking-row progress::-webkit-progress-value {
  border-radius: 999px;
  background: #6eaa96;
}

.report-ranking-row progress::-moz-progress-bar {
  border-radius: 999px;
  background: #6eaa96;
}

.report-empty-state {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 20px;
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--muted);
}

.report-empty-state .ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--green);
}

.report-empty-state strong {
  display: block;
  color: var(--ink);
  font-size: var(--font-size-body);
  font-weight: var(--weight-label);
}

.report-empty-state p {
  margin: 2px 0 0;
  font-size: var(--font-size-small);
  line-height: 1.5;
}

.report-empty-state-compact {
  min-height: 70px;
  padding: 14px;
}

.report-card-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.report-method-note {
  margin: 12px 2px 0;
}

.report-followup-stack {
  display: grid;
  gap: 22px;
}

.report-quality-grid {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(340px,.8fr);
  gap: 22px;
  align-items: start;
}

.satisfaction-summary {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.satisfaction-summary > div {
  padding: 14px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.satisfaction-summary strong,
.satisfaction-summary span {
  display: block;
}

.satisfaction-summary strong {
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.2;
}

.satisfaction-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--font-size-small);
}

.report-comments-title {
  margin-top: 22px;
}

.report-comment {
  padding: 12px 0;
}

.report-comment p {
  margin: 5px 0 0;
  color: var(--text-secondary);
}

@media(max-width:1000px) {
  .weekly-overview-grid,
  .report-quality-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .report-grid-ranked > :last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media(max-width:650px) {
  .report-section + .report-section {
    margin-top: 30px;
  }

  .report-section-heading {
    display: block;
    margin-bottom: 12px;
  }

  .report-section-heading > p {
    margin-top: 5px;
    text-align: left;
  }

  .weekly-overview-grid,
  .report-followup-stack,
  .report-quality-grid {
    gap: 16px;
  }

  .weekly-overview-grid .panel-body,
  .weekly-overview-grid .report-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .report-empty-state {
    justify-content: flex-start;
    padding: 16px;
  }

  .satisfaction-summary {
    grid-template-columns: minmax(0,1fr);
  }
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.knowledge-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px;
}

.knowledge-card h3 {
  font-size: 18px;
  margin: 13px 0 7px;
}

.knowledge-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #74888f;
}

.knowledge-card .small-meta {
  font-size: 12px;
  color: #9ca8ac;
}

.knowledge-card .link-button {
  margin-top: 14px;
}

.case-summary {
  padding: var(--space-5) var(--space-6);
  background: #f9fbfb;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.summary-item {
  min-width: 110px;
}

.summary-item span.label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}

.summary-item strong {
  font-size: var(--font-size-body);
  font-weight: 500;
  color: #526b76;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
}

.case-main {
  padding: var(--space-6);
  border-right: 1px solid var(--line);
}

.case-section {
  margin-bottom: 28px;
}

.record-note {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  line-height: 1.6;
}

.reported-record {
  padding-left: 14px;
  border-left: 1px solid var(--surface-border);
}

.case-section:last-child {
  margin-bottom: 0;
}

.case-section h3,.case-timeline h3 {
  font-size: var(--font-size-section);
  font-weight: var(--weight-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  letter-spacing: -.15px;
  line-height: 1.4;
}

.case-section h3 .ico {
  width: 17px;
  height: 17px;
  color: #73998b;
}

.case-section p {
  font-size: var(--font-size-body);
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-line;
  margin-bottom: 12px;
}

.case-description {
  font-size: var(--font-size-body);
}

.suggestion-box {
  border: 1px solid #e5e9ee;
  background: #f7f9fb;
  border-radius: 8px;
  padding: 16px 18px;
}

.suggestion-box .eyebrow {
  font-size: 10px;
  color: #81939e;
  letter-spacing: .7px;
  margin-bottom: 8px;
}

.suggestion-box p {
  font-size: 13px;
  margin: 0;
  color: #72858f;
}

.recommendation-box {
  border: 1px solid #d2e7db;
  background: #f1f8f4;
  border-radius: 8px;
  padding: 18px;
}

.recommendation-box h3 {
  color: #3f7c60;
  margin-bottom: 9px;
  font-size: 14px;
}

.recommendation-box p {
  color: #658474;
  margin: 0;
  font-size: 13px;
}

.recommendation-box .recommendation-author {
  font-size: 11px;
  margin-top: 12px;
  color: #8aa297;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  padding: var(--space-5) var(--space-6) var(--space-3);
  margin: 0;
  list-style: none;
  gap: var(--space-2);
}

.workflow-step {
  position: relative;
  min-width: 0;
  flex: 1;
  font-size: var(--font-size-small);
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 0;
}

.workflow-step:before {
  content: "";
  position: absolute;
  top: 11px;
  width: 100%;
  height: 2px;
  background: #e9eeee;
  z-index: -1;
  left: -50%;
}

.workflow-step:first-child:before {
  display: none;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #e9eeee;
  background: white;
  display: grid;
  place-items: center;
  font-size: var(--font-size-small);
}

.step-circle .ico {
  width: 13px;
  height: 13px;
}

.workflow-step.complete {
  color: var(--green-dark);
}

.workflow-step.complete .step-circle {
  border-color: #cce7d8;
  background: #e6f4ec;
  color: var(--green-dark);
}

.workflow-step.complete:before {
  background: #cce7d8;
}

.workflow-step.current {
  color: #2f6d53;
  font-weight: 650;
}

.workflow-step.current .step-circle {
  color: white;
  background: #378365;
  border-color: #378365;
}

.workflow-step.paused .step-circle {
  background: #fff3d9;
  border-color: #c4a162;
  color: #785714;
}

.workflow-explanation {
  margin: 0;
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  border-bottom: 1px solid var(--line);
}

@media(max-width:650px) {
  .workflow-steps {
    grid-template-columns: repeat(3,minmax(0,1fr));
    row-gap: var(--space-4);
    padding-inline: var(--space-4);
  }

  .workflow-step:nth-child(4)::before {
    display: none;
  }

  .workflow-explanation {
    padding-inline: var(--space-4);
  }
}

.case-timeline {
  padding: 26px 22px;
  background: #fcfdfd;
}

.timeline-entry {
  position: relative;
  padding: 0 0 24px 19px;
  border-left: 1px solid #e0e9e6;
  margin-left: 4px;
}

.timeline-entry:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-entry:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #afcdbd;
  border: 2px solid #fcfdfd;
  box-sizing: content-box;
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 3px;
}

.timeline-entry:first-child:before {
  background: #46906a;
}

.timeline-entry strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #55716b;
  line-height: 1.6;
  margin-bottom: 3px;
}

.timeline-entry .timeline-date {
  font-size: var(--font-size-small);
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  line-height: 1.7;
}

.timeline-entry p {
  font-size: var(--font-size-small);
  line-height: 1.65;
  white-space: pre-line;
  color: var(--text-secondary);
  margin: 0;
}

.case-photo {
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 8px 0 4px;
  display: block;
}

.photo-label {
  font-size: var(--font-size-small);
  color: var(--muted);
  margin: 7px 0;
  line-height: 1.7;
}

.action-panel {
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  background: var(--surface);
  scroll-margin-top: 24px;
}

.action-panel h3 {
  font-size: var(--font-size-section);
  margin-bottom: 6px;
  font-weight: var(--weight-heading);
  line-height: 1.4;
}

.action-panel>p {
  font-size: var(--font-size-body);
  line-height: 1.7;
  margin-bottom: 17px;
  color: var(--text-secondary);
}

.action-panel .form-label {
  display: block;
  width: 100%;
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  font-weight: var(--weight-label);
  margin-bottom: 7px;
  line-height: 1.5;
}

.action-panel form {
  display: grid;
  gap: 14px;
}

.action-panel > h3 + form {
  margin-top: 14px;
}

.action-panel form > .form-label,
.action-panel form > .form-text,
.action-panel form > fieldset {
  margin: 0;
}

.action-panel .form-label > .form-control,
.action-panel .form-label > .form-select {
  margin-top: 7px;
}

.action-panel form > .btn {
  justify-self: start;
}

.action-panel > details,
.action-panel details > form {
  margin-top: 16px;
}

.form-control,.form-select {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: var(--control-height);
  font-size: var(--font-size-body);
  border-color: var(--surface-border);
  color: var(--text-secondary);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.5;
}

.form-control:focus,.form-select:focus {
  border-color: #75b69b;
  box-shadow: 0 0 0 .2rem #16745d13;
}

.form-select {
  padding-right: 36px;
}

.form-control::placeholder {
  color: var(--muted);
}

.form-text,.case-section .form-text,.action-panel .form-text,.public-hero .form-text,.auth-card .form-text {
  font-size: var(--font-size-small);
  line-height: 1.7;
  color: var(--muted);
}

.action-panel textarea {
  font-size: var(--font-size-body);
  line-height: 1.75;
  min-height: 90px;
}

.action-panel .row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 14px;
}

.action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.new-form-body {
  padding: var(--space-6);
}

.new-form-body .form-label {
  font-size: var(--font-size-body);
  font-weight: var(--weight-label);
  color: var(--text-secondary);
  line-height: 1.5;
}

.new-form-body .row {
  --bs-gutter-y: 19px;
}

.upload-zone {
  border: 1px dashed #bdcfc9;
  background: #f8fbf9;
  border-radius: 8px;
  padding: 16px;
  color: #7b9587;
}

.upload-zone input {
  font-size: 12px;
}

.upload-zone .form-text {
  margin-bottom: 0;
}

.upload-preview {
  display: block;
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  margin-top: 12px;
}

.form-footer {
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
  gap: 15px;
}

.form-footer small {
  font-size: var(--font-size-small);
  color: var(--muted);
  line-height: 1.7;
}

.related-box {
  padding: 16px;
  border: 1px solid #e0e8e5;
  border-radius: 8px;
  margin-top: 20px;
}

.related-box h4 {
  font-size: 13px;
  color: #668576;
  margin-bottom: 9px;
}

.related-case {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.related-case p {
  font-size: 12px!important;
  line-height: 1.7;
  margin: 6px 0 0!important;
}

.related-case strong {
  font-size: 12px;
  font-weight: 600;
  color: #587568;
}

.info-callout {
  border: 1px solid #dce8ec;
  background: #f3f8fa;
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 22px;
  color: #6a8490;
  font-size: 13px;
  line-height: 1.75;
}

.status-note {
  padding: 14px 16px;
  background: #fcf4e8;
  border: 1px solid #f0e2c8;
  color: #977c46;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 20px;
}

.swal2-popup {
  font-family: var(--font-ui);
  border-radius: var(--radius-card)!important;
}

.swal2-title {
  font-size: 23px!important;
  font-weight: 650!important;
  color: var(--ink)!important;
}

.swal2-html-container {
  font-size: var(--font-size-body)!important;
  line-height: 1.7!important;
}

.swal2-styled.swal2-confirm {
  background: var(--green)!important;
  border-radius: 7px!important;
  font-size: 14px!important;
}

.swal2-styled.swal2-cancel {
  background: #edf1f2!important;
  color: #63777f!important;
  border-radius: 7px!important;
  font-size: 14px!important;
}

.swal2-container {
  z-index: 5000!important;
}

.swal2-popup.swal2-toast {
  font-size: 13px;
}

.swal2-toast .swal2-title {
  font-size: 14px!important;
}

.visually-hidden-focusable.skip-link {
  position: absolute;
  top: 8px;
  left: 260px;
  background: white;
  z-index: 3000;
  padding: 10px 15px;
}

@media(min-width:1600px) {
  .overview-grid {
    grid-template-columns: minmax(0,1fr) 335px;
  }
}

@media(max-width:1250px) {
  .shell {
    padding-left: 215px;
  }

  .sidebar {
    width: 215px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    gap: 7px;
  }

  .brand-title {
    font-size: 17px;
  }

  .main {
    padding: 28px 25px;
  }

  .topbar {
    padding: 0 25px;
  }

  .workspace-toolbar {
    padding: 8px 25px;
  }

  .overview-grid {
    grid-template-columns: minmax(0,1fr) 265px;
    gap: 17px;
  }

  .panel-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .panel-toolbar .search-field,.panel-toolbar .search-field input {
    width: 100%;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 17px;
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .complaint-table td {
    padding-left: 10px;
    padding-right: 10px;
  }

  .category-cell {
    display: none;
  }

  .bottom-panels {
    grid-template-columns: 1fr;
  }

  .date-label {
    display: none;
  }

  .resolution-summary {
    gap: 25px;
  }

}

@media(max-width:1000px) {
  .overview-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .side-stack {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .workflow-card {
    grid-column: 1/-1;
  }

  .bottom-panels {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-main {
    border-right: 0;
  }

  .case-timeline {
    border-top: 1px solid var(--line);
  }

  .topbar {
    height: 70px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .heading-actions {
    flex-direction: column;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .resolution-summary {
    gap: 15px;
    padding: 12px 17px 20px;
  }

  .completion-ring {
    width: 78px;
    height: 78px;
  }

  .resolution-copy p {
    font-size: 10px;
  }

  .case-main {
    padding: 24px;
  }

  .case-summary {
    gap: 18px;
  }

}

@media(max-width:767px) {
  .shell {
    padding-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 244px;
    box-shadow: var(--shadow-overlay);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    background: #132e3a55;
    z-index: 1035;
    border: 0;
    width: 100%;
    height: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    padding: 0 20px;
    height: 66px;
    gap: 10px;
  }

  .breadcrumb-label {
    gap: 10px;
    font-size: 12px;
  }

  .breadcrumb-label .workspace-crumb {
    display: none;
  }

  .topbar-right {
    gap: 10px;
  }

  .profile {
    padding-left: 0;
    border-left: 0;
    gap: 8px;
  }

  .profile-name {
    font-size: 11px;
  }

  .profile-role {
    font-size: 10px;
  }

  .profile .avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }

  .workspace-toolbar {
    padding: 9px 20px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .workspace-toolbar .link-button {
    margin-left: auto;
    font-size: 11px;
  }

  .workspace-badge {
    font-size: 9px;
  }

  .main {
    padding: 25px 20px;
  }

  .page-heading {
    margin-bottom: 23px;
    gap: 12px;
  }

  .page-heading h1 {
    font-size: 25px;
    line-height: 1.2;
  }

  .page-heading p {
    font-size: 12px;
  }

  .heading-actions .btn {
    font-size: 12px;
    padding: 8px 11px;
  }

  .heading-actions .btn .ico {
    width: 14px;
  }

  .stats-grid {
    gap: 12px;
    margin-bottom: 18px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-top {
    font-size: var(--font-size-body);
  }

  .stat-icon {
    width: 26px;
    height: 26px;
  }

  .stat-icon .ico {
    width: 16px;
    height: 16px;
  }

  .stat-card .number {
    font-size: 31px;
    margin: 14px 0 10px;
  }

  .stat-caption {
    font-size: var(--font-size-small);
  }

  .attention-banner {
    padding: 13px;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .attention-copy {
    flex: 1 1 calc(100% - 60px);
  }

  .attention-banner .link-button {
    margin-left: 47px;
  }

  .attention-copy strong {
    font-size: var(--font-size-body);
  }

  .attention-copy p {
    font-size: var(--font-size-small);
  }

  .attention-banner .link-button {
    margin-left: 47px;
    font-size: 12px;
  }

  .attention-icon {
    width: 32px;
    height: 32px;
  }

  .side-stack {
    gap: 17px;
  }

  .bottom-panels {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .panel-header {
    padding: 18px;
  }

  .panel-title {
    font-size: var(--font-size-section);
  }

  .panel-toolbar {
    padding: 0 18px 16px;
  }

  .filter-row {
    padding: 0 18px 16px;
  }

  .filter-row .search-field,.filter-row .search-field input {
    width: 100%;
  }

  .filter-row .form-select {
    max-width: none;
    flex: 1 1 130px;
    width: 100%;
  }

  .complaint-table thead th:first-child,.complaint-table td:first-child {
    padding-left: 18px;
  }

  .complaint-table td {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .case-link {
    font-size: var(--font-size-body);
    min-width: 180px;
  }

  .status {
    font-size: var(--font-size-small);
  }

  .priority {
    font-size: var(--font-size-small);
  }

  .case-meta {
    font-size: var(--font-size-small);
  }

  .table-foot {
    padding: 14px 18px;
  }

  .table-foot .link-button {
    font-size: 11px;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-main {
    padding: 22px 20px;
    border-right: 0;
  }

  .action-panel:not(details) {
    padding: 16px;
  }

  .case-timeline {
    padding: 22px 20px;
    border-top: 1px solid var(--line);
  }

  .timeline-entry p {
    font-size: 12px;
  }

  .case-summary {
    padding: 18px 20px;
    gap: 17px;
  }

  .summary-item {
    min-width: calc(50% - 12px);
  }

  .workflow-steps {
    padding: 18px 20px 2px;
  }

  .workflow-step {
    min-width: 80px;
  }

  .new-form-body {
    padding: 20px;
  }

  .form-footer {
    padding: 17px 20px;
  }

  .main-footer {
    font-size: 10px;
    flex-direction: column;
    gap: 4px;
  }

  .knowledge-card {
    padding: 20px;
  }

  .knowledge-card h3 {
    font-size: 17px;
  }

  .knowledge-card p {
    font-size: 13px;
  }

  .report-grid {
    gap: 17px;
  }

  .visually-hidden-focusable.skip-link {
    left: 20px;
  }

}

@media(max-width:430px) {
  .side-stack {
    grid-template-columns: 1fr;
  }

  .page-heading {
    flex-direction: column;
    gap: 16px;
  }

  .heading-actions {
    flex-direction: row;
    width: 100%;
  }

  .heading-actions .btn {
    padding: 9px 13px;
  }

  .workspace-toolbar .link-button {
    font-size: 10px;
  }

  .main {
    padding: 23px 16px;
  }

  .topbar {
    padding: 0 16px;
  }

  .workspace-toolbar {
    padding: 8px 16px;
  }

  .filter-tab {
    font-size: 11px;
    padding: 7px 9px;
  }

  .panel-toolbar {
    gap: 12px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .profile-name {
    max-width: 115px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .form-footer {
    flex-wrap: wrap;
  }

  .form-footer small {
    flex-basis: 100%;
  }

  .form-footer .btn {
    margin-left: auto;
  }

}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}

.auth-story {
  background: var(--nav);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 45px 64px;
  position: relative;
}

.auth-story .brand {
  padding: 0;
  margin: 0;
}

.auth-story .brand-title {
  font-size: 23px;
}

.auth-story .brand img {
  width: 47px;
  height: 47px;
}

.auth-story .brand small {
  font-size: 10px;
}

.auth-story-content {
  max-width: 475px;
  margin: auto 0;
  padding: 70px 0;
}

.auth-kicker {
  color: #8ddcb6;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 650;
}

.auth-story h1 {
  font-size: 45px;
  letter-spacing: -1.7px;
  line-height: 1.18;
  margin: 23px 0;
  font-weight: 650;
}

.auth-story-content>p {
  color: #aac1c5;
  font-size: 16px;
  line-height: 1.8;
  max-width: 400px;
}

.auth-journey {
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.auth-journey li {
  display: flex;
  gap: 17px;
}

.auth-journey li>span {
  width: 34px;
  height: 34px;
  background: #25474b;
  border: 1px solid #375960;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  font-size: 12px;
  color: #9ad5b6;
}

.auth-journey strong {
  font-size: 15px;
  font-weight: 550;
  display: block;
  margin: 0 0 6px;
}

.auth-journey p {
  font-size: 14px;
  color: #8facb3;
  line-height: 1.65;
  margin: 0;
  max-width: 360px;
}

.auth-story-footer {
  font-size: 12px;
  color: #86a7ad;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-status-dot {
  width: 6px;
  height: 6px;
  background: #85d2a9;
  border-radius: 50%;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: #fafcfb;
}

.auth-card {
  max-width: 430px;
  width: 100%;
}

.auth-card>.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
}

.auth-card h2 {
  font-size: var(--font-size-page);
  line-height: 1.25;
  letter-spacing: -.8px;
  font-weight: 700;
  margin: 12px 0;
}

.auth-description {
  font-size: var(--font-size-body);
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 27px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 0 0 28px;
}

.auth-tabs a {
  flex: 1;
  text-decoration: none;
  font-size: 14px;
  padding: 11px 4px;
  text-align: center;
  color: #84969d;
  border-bottom: 2px solid transparent;
}

.auth-tabs a.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 650;
}

.auth-card .form-label {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  font-weight: var(--weight-label);
  line-height: 1.5;
}

.auth-card .form-control {
  padding: 10px 12px;
  background: white;
  font-size: var(--font-size-body);
}

.auth-card .form-check-label {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

.auth-submit {
  padding: 13px;
  justify-content: space-between;
  margin-top: 9px;
}

.auth-footnote {
  text-align: center;
  color: var(--muted);
  font-size: var(--font-size-small);
  margin: 25px 0 0;
  line-height: 1.7;
}

.auth-support {
  margin-top: 22px;
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

.auth-support p {
  margin: 0;
}

.auth-support .auth-register-prompt {
  text-align: center;
  margin-bottom: 16px;
}

.auth-support .auth-account-note {
  padding: 14px 16px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.auth-support .auth-recovery-link {
  margin-top: 16px;
  text-align: center;
}

.auth-support a,.auth-card > .text-center a {
  color: var(--green);
  font-weight: var(--weight-label);
  text-decoration: none;
  text-underline-offset: 3px;
}

.auth-support a:hover,.auth-support a:focus-visible,
.auth-card > .text-center a:hover,.auth-card > .text-center a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
}

.saved-toolbar {
  background: #e9f2ed;
}

.saved-toolbar .workspace-badge {
  color: #3e7b60;
}

.saved-toolbar .account-toolbar-actions {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
}

.user-register .table td,.user-register .table th {
  font-size: 14px;
  padding: 17px 22px;
  vertical-align: middle;
}

.user-register .table th {
  font-size: 12px;
  background: #fafcfc;
  color: #82979f;
  font-weight: 600;
}

.user-register .table td small {
  display: block;
  color: #91a2a9;
  margin-top: 3px;
}

.profile-panel {
  max-width: 900px;
}

.profile-panel-header {
  border-bottom: 1px solid var(--line);
}

.profile-header-avatar {
  width: 46px;
  height: 46px;
  font-size: var(--font-size-body);
}

.profile-form-section {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}

.profile-form-section:first-child {
  padding-top: 0;
}

.profile-section-heading {
  margin-bottom: var(--space-4);
}

.profile-section-heading .section-title,
.profile-section-heading .form-text,
.profile-confirmation .section-title,
.profile-confirmation .form-text {
  margin-bottom: 0;
}

.profile-photo-picker {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.profile-photo-preview {
  width: 112px;
  height: 112px;
}

.profile-photo-avatar,
.profile-photo-preview .upload-preview {
  width: 112px;
  height: 112px;
  margin: 0;
  border: 3px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--surface-border);
}

.profile-photo-avatar {
  font-size: 28px;
}

.profile-photo-controls {
  min-width: 0;
}

.profile-photo-controls > .form-label {
  display: block;
  margin-bottom: var(--space-2);
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.profile-photo-remove-button {
  color: var(--text-secondary);
}

.profile-photo-controls .form-text {
  margin: var(--space-2) 0 0;
}

.profile-photo-status:not(:empty) {
  color: var(--green-dark);
  font-weight: var(--weight-label);
}

.profile-confirmation {
  padding: var(--space-6) 0 0;
}

.profile-confirmation > div {
  margin-bottom: var(--space-4);
}

.profile-confirmation .form-control {
  max-width: 500px;
}

.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-6);
}

.panel-body {
  padding: 0 var(--space-6) var(--space-6);
}

.panel-body:first-child {
  padding-top: var(--space-6);
}

@media(max-width:650px) {
  .panel-body {
    padding-inline: var(--space-4);
    padding-bottom: var(--space-5);
  }

  .profile-photo-picker {
    grid-template-columns: 1fr;
  }

  .profile-photo-preview {
    width: 92px;
    height: 92px;
  }

  .profile-photo-avatar,
  .profile-photo-preview .upload-preview {
    width: 92px;
    height: 92px;
  }

  .profile-photo-actions .btn {
    flex: 1 1 150px;
  }

  .profile-form-actions .btn {
    width: 100%;
  }
}

.submission-allowance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weekly-concern {
  padding: 20px 0;
  border-top: 1px solid var(--surface-border);
  overflow-wrap: anywhere;
}

.weekly-concern li + li {
  margin-top: 6px;
}

.panel-body .form-label {
  display: block;
  width: 100%;
}

.profile-panel .form-label {
  font-size: var(--font-size-body);
  font-weight: var(--weight-label);
  color: var(--text-secondary);
  line-height: 1.5;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce8e1;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
  color: #587b68;
  background: #f4f8f5;
}

.workspace-empty {
  padding: 50px 25px;
  text-align: center;
}

.workspace-empty p {
  max-width: 460px;
  margin: 12px auto 20px;
  color: #8a9da5;
  line-height: 1.8;
  font-size: 14px;
}

.workspace-empty h3 {
  font-size: 20px;
  font-weight: 600;
}

.workspace-empty .ico {
  width: 36px;
  height: 36px;
  margin-bottom: 15px;
  color: #7dba9f;
}

@media(max-width:1100px) {
  .auth-story {
    padding: 40px;
  }

  .auth-story h1 {
    font-size: 38px;
  }

  .auth-form-side {
    padding: 45px 35px;
  }

  .auth-story-content {
    padding: 50px 0;
  }

  .auth-story .brand-title {
    font-size: 21px;
  }

}

@media(max-width:767px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-story {
    padding: 26px 24px;
  }

  .auth-story-content,.auth-story-footer {
    display: none;
  }

  .auth-story .brand img {
    width: 38px;
    height: 38px;
  }

  .auth-story .brand-title {
    font-size: 21px;
  }

  .auth-form-side {
    padding: 35px 24px 40px;
    min-height: calc(100vh - 94px);
  }

  .auth-card h2 {
    font-size: 27px;
  }

  .auth-card>.eyebrow {
    font-size: 10px;
  }

  .saved-toolbar .account-toolbar-actions {
    gap: 12px;
  }

  .saved-toolbar .account-toolbar-actions .link-button {
    font-size: 12px;
  }

  .saved-toolbar .workspace-account-label {
    display: none;
  }

}

.next-step {
  display: block;
  margin-top: 7px;
  max-width: 190px;
  color: #74888f;
  font-size: 12px;
  line-height: 1.45;
}

.open-case-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  min-width: 76px;
  padding: 8px 11px;
  border: 1px solid #d4e3dd;
  border-radius: 7px;
  background: #f7fbf8;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.complaint-table .open-cell {
  width: 1%;
  white-space: nowrap;
}

.open-case-btn:hover {
  background: #eaf5ef;
  border-color: #b9d5c8;
}

.open-case-btn .ico {
  width: 14px;
  height: 14px;
}

.mobile-dock {
  display: none;
}

.app-busy:before {
  content: "";
  position: fixed;
  z-index: 4000;
  top: 0;
  left: 0;
  width: 34%;
  height: 3px;
  background: #69c69f;
  box-shadow: 0 0 10px #69c69f;
  animation: loading-bar 1s ease-in-out infinite;
}

.app-busy button,.app-busy select {
  cursor: wait;
}

@keyframes loading-bar {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(390%);
  }

}

@media(max-width:767px) {
  body:not(.auth-page) {
    padding-bottom: 76px;
  }

  .main {
    padding-bottom: 35px;
  }

  .main-footer {
    margin-bottom: 10px;
  }

  .mobile-dock {
    position: fixed;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    align-items: end;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 68px;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #dce6e7;
    box-shadow: 0 -8px 24px #17323b12;
  }

  .mobile-dock button {
    border: 0;
    background: none;
    color: #788c93;
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    font-size: 10px;
    font-weight: 650;
  }

  .mobile-dock button .ico {
    width: 20px;
    height: 20px;
  }

  .mobile-dock button.active {
    color: var(--green);
  }

  .mobile-dock .mobile-primary {
    width: 58px;
    height: 58px;
    min-height: 58px;
    justify-self: center;
    margin-top: -22px;
    border-radius: 16px;
    background: var(--green);
    color: #fff;
    box-shadow: none;
  }

  .mobile-dock .mobile-primary .ico {
    width: 22px;
    height: 22px;
  }

  .complaint-table {
    display: block;
    padding: 0 14px 14px;
  }

  .complaint-table thead {
    display: none;
  }

  .complaint-table tbody {
    display: grid;
    gap: 12px;
  }

  .complaint-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 1px solid #e2eaeb;
    border-radius: 11px;
    padding: 16px;
    background: #fff;
    box-shadow: none;
  }

  .complaint-table td,.complaint-table td:first-child {
    display: block;
    border: 0!important;
    padding: 5px 0!important;
  }

  .complaint-table td:first-child {
    grid-column: 1/-1;
    padding-bottom: 11px!important;
    border-bottom: 1px solid #edf1f2!important;
  }

  .complaint-table .category-cell {
    display: block!important;
    grid-column: 1/-1;
    color: #647b83;
    padding-top: 11px!important;
  }

  .complaint-table td[data-label="Priority"],.complaint-table td[data-label="Status"] {
    grid-column: 1;
  }

  .complaint-table td[data-label]:not(:first-child):before {
    content: attr(data-label);
    display: block;
    color: #8f9da3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 5px;
  }

  .complaint-table .open-cell {
    grid-column: 2;
    grid-row: 3/5;
    align-self: end;
  }

  .complaint-table .case-link {
    font-size: 15px;
    max-width: none;
    min-width: 0;
  }

  .complaint-table .case-meta {
    font-size: 12px;
    margin-top: 7px;
  }

  .complaint-table .next-step {
    font-size: 12px;
    max-width: none;
  }

  .complaint-table .open-case-btn {
    min-height: 42px;
  }

  .table-foot {
    font-size: 12px;
  }

  .panel-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-tabs {
    flex-wrap: nowrap;
  }

  .filter-tab {
    white-space: nowrap;
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }

}

.account-access-note {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  line-height: 1.7;
}

.account-access-note p {
  margin: 0;
}

.account-access-note p+p {
  margin-top: 8px;
}

.account-access-note a {
  color: var(--green);
  font-weight: 600;
}

.account-guide {
  margin: 0 0 24px;
}

.account-guide strong {
  display: block;
  margin-bottom: 5px;
}

.created-account-summary .summary-item {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Public reporting keeps the workspace palette and card treatment. */
.public-page { background: var(--bg); min-height: 100vh; font-family: var(--bs-body-font-family); }
.public-header { background: var(--nav); padding: 22px max(5vw, 20px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-header .brand { margin: 0; padding: 0; }
.public-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.public-header .public-nav-link {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(228, 238, 238, .3);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, .05);
  color: #eef7f4;
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.public-header .public-nav-link:hover {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.public-header .public-nav-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.public-header .public-nav-cta {
  border-color: var(--surface-border);
  background: var(--surface);
  color: var(--green-dark);
  font-weight: 700;
}
.public-header .public-nav-cta:hover {
  border-color: #a9cfc1;
  background: var(--surface-soft);
  color: var(--green-dark);
}
.public-main { max-width: 1180px; padding: 36px 24px 60px; margin: auto; }
.public-hero { display: grid; grid-template-columns: 1.7fr 1fr; align-items: center; gap: 40px; padding: 40px 0 55px; }
.public-hero h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.5px; line-height: 1.12; margin: 18px 0; }
.public-hero p { color: var(--text-secondary); line-height: 1.8; max-width: 660px; }
.hero-emblem { background: #e1efe8; color: #1c6550; border: 1px solid var(--surface-border); border-radius: var(--radius-card); padding: 40px 20px; display: grid; justify-items: center; text-align: center; gap: 24px; font-size: 23px; font-weight: 600; }
.hero-emblem .ico { width: 90px; height: 90px; }
.public-form-panel,
.public-main > .page-heading { max-width: 860px; margin-inline: auto; }
.public-footer { padding: 24px; text-align: center; font-size: var(--font-size-small); color: var(--muted); border-top: 1px solid #dce5e3;
  line-height: 1.7;
}
.public-main .form-label, .public-form-panel .form-label, form[data-action=save_rule] .form-label, form[data-action=reset_rule] .form-label { display: block; width: 100%; margin-bottom: 14px; }
.public-main .form-label { font-family: inherit; font-size: var(--font-size-body); font-weight: var(--weight-label); line-height: 1.5; color: var(--text-secondary); }
.public-main .form-label > .text-muted { font-weight: 400; }
.public-main .form-control,
.public-main .form-select { font-family: inherit; font-weight: 400; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { padding: 12px; border: 1px solid #d6e3df; border-radius: var(--radius-control); display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; background: #fff;
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--text-secondary);
}
.choice-card:has(input:checked) { border-color: var(--green); background: var(--surface-soft); }
.choice-card input { flex-shrink: 0; }
.resident-guidance { border-top: 1px solid var(--line); padding-top: 20px; }
.guidance-intro { font-size: var(--font-size-small); line-height: 1.7; color: var(--muted); }
.resident-guidance-list { margin: 0; padding-left: 28px; display: grid; gap: 12px; }
.resident-guidance-list li { padding: 12px; border: 1px solid var(--surface-border); border-radius: var(--radius-control); background: var(--surface-soft); color: var(--text-secondary); font-size: var(--font-size-body); line-height: 1.7; overflow-wrap: anywhere; }
.resident-guidance-list li::marker { color: var(--green); font-weight: var(--weight-label); }
.spam-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tracking-code,.public-main .tracking-code { font-family: var(--font-mono); font-size: var(--font-size-body); }
.case-timeline, .case-main, .insight-row > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .public-header { align-items: flex-start; flex-direction: column; }
  .public-header nav { width: 100%; }
}
@media (max-width: 650px) {
  .public-header { align-items: flex-start; flex-direction: column; padding: 20px; }
  .public-header nav { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .public-header .public-nav-link { width: 100%; padding-inline: 10px; white-space: normal; }
  .public-main { padding: 24px 16px 40px; }
  .public-hero { grid-template-columns: 1fr; padding: 10px 0 30px; gap: 24px; }
  .hero-emblem { padding: 24px; }
  .hero-emblem .ico { width: 55px; height: 55px; }
  .choice-grid { grid-template-columns: 1fr; }
}
/* Staff insights reuse the workspace font, borders and quiet accent colors. */
.notification-menu { position: relative; }
.notification-trigger { display: flex; align-items: center; justify-content: center; position: relative; width: 40px; height: 40px; border: 1px solid #dce5e8; border-radius: 10px; cursor: pointer; color: #244c53; list-style: none; background: #fff; }
.notification-trigger::-webkit-details-marker { display: none; }
.notification-trigger:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.notification-badge { position: absolute; top: -5px; right: -6px; min-width: 19px; padding: 2px 5px; border-radius: 12px; background: #ad3a41; color: #fff; font-size: 10px; font-weight: 700; text-align: center; }
.notification-badge[hidden] { display: none; }
.notification-dropdown { position: absolute; z-index: 1050; right: 0; top: 48px; width: 350px; max-width: calc(100vw - 28px); background: #fff; border: 1px solid #dce5e8; border-radius: 12px; box-shadow: var(--shadow-overlay); overflow: hidden; }
.notification-heading { padding: 13px 16px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e9eeee; }
[data-recent-notifications] { max-height: 420px; overflow-y: auto; }
.notification-item { display: block; padding: 13px 16px; color: #28434b; text-decoration: none; border-bottom: 1px solid #e9eeee; }
.notification-item strong, .notification-item span { display: block; }
.notification-item span { font-size: 12px; margin-top: 5px; line-height: 1.5; }
.notification-item:hover { background: #eaf5f0; }
.notification-item.unread, .notification-row.unread { background: #f0f8f4; border-left: 3px solid #2c8068; }
.notification-row { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 20px; border-bottom: 1px solid #e4ecee; }
.notification-row p { margin: 6px 0; }
.notification-row small { color: #617780; }
.notification-row button { flex-shrink: 0; }
.priority-advice { background: #f0f7f4; border: 1px solid #d1e6dc; border-radius: 10px; padding: 16px; color: #244b40; }
.priority-advice ul { margin-bottom: 12px; padding-left: 20px; font-size: 13px; }
.workload-badge { display: inline-block; border-radius: 12px; padding: 4px 9px; white-space: nowrap; font-size: 11px; font-weight: 600; }
.workload-available { background: #e8f5ee; color: #246548; }
.workload-moderate { background: #fff3d9; color: #785714; }
.workload-high { background: #fcebec; color: #9b3640; }
.evidence-comparison, .evidence-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.evidence-card { min-width: 0; border: 1px solid #dce5e8; border-radius: 10px; overflow: hidden; margin: 0; background: #fff; }
.evidence-card figcaption { padding: 12px; font-size: 13px; }
.evidence-card figcaption span { display: block; font-size: 12px; color: #617780; margin-top: 4px; }
.evidence-card img { width: 100%; height: 210px; object-fit: contain; background: #eff3f3; }
.evidence-gallery img { height: 140px; }
.evidence-card p { font-size: 12px; padding: 10px 12px; margin: 0; overflow-wrap: anywhere; }
.evidence-card .evidence-empty { min-height: 210px; display: grid; place-content: center; background: #f4f7f6; color: #617780; }
.evidence-note { white-space: pre-wrap; }
@media (max-width: 600px) {
  .notification-menu { position: static; }
  .notification-dropdown { position: fixed; top: 66px; right: 14px; }
  .notification-row { flex-direction: column; }
  .evidence-comparison, .evidence-gallery { grid-template-columns: 1fr; }
}

.message-thread { max-height: 520px; min-height: 130px; overflow-y: auto; border: 1px solid var(--surface-border); border-radius: var(--radius-control); background: var(--surface); }
.message-entry { padding: 15px 17px; border-bottom: 1px solid var(--surface-border); overflow-wrap: anywhere; }
.message-entry:last-child { border-bottom: 0; }
.message-entry p { margin: 8px 0 0; white-space: pre-wrap; color: var(--ink); }
.message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-secondary); font-size: var(--font-size-small); }
.message-meta strong { color: var(--ink); font-size: var(--font-size-body); }
.message-meta time { margin-left: auto; }
.message-internal { background: var(--surface-soft); border-left: 3px solid var(--green); }
.message-empty { padding: 15px 17px; margin: 0; }
.staff-message-inbox { max-height: 560px; overflow-y: auto; padding: 0; }
.staff-message-layout > .col-lg-4 { display: flex; flex-direction: column; }
.staff-conversation-link { display: block; padding: 13px 16px; border-bottom: 1px solid var(--surface-border); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.staff-conversation-link:last-child { border-bottom: 0; }
.staff-conversation-link:hover, .staff-conversation-link:focus-visible, .staff-conversation-link.active { background: var(--surface-soft); color: var(--green-dark); }
.staff-conversation-link strong { display: inline-block; margin-right: 8px; }
.staff-conversation-link small, .staff-conversation-link time { display: block; color: var(--text-secondary); margin-top: 5px; }
.staff-conversation-link time { font-size: var(--font-size-small); }
.staff-contact-result { width: 100%; border: 0; background: var(--surface-soft); text-align: left; }
.staff-contact-result:hover, .staff-contact-result:focus-visible { background: var(--mint); }
.staff-contact-result:disabled { cursor: wait; opacity: .65; }
.staff-search-group { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--surface-border); background: var(--surface-soft); color: var(--text-secondary); font-size: var(--font-size-small); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.chat-widget { position: fixed; z-index: 4050; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-widget-launcher { position: relative; width: 58px; height: 58px; border: 3px solid #ffffffd9; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: var(--shadow-overlay); cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.chat-widget-launcher:hover, .chat-widget-launcher:focus-visible { background: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-overlay); }
.chat-widget-launcher:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.chat-widget-badge { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 12px; display: grid; place-items: center; background: #a52d3b; color: #fff; font-size: var(--font-size-small); font-weight: 700; }
.chat-widget-panel { width: min(420px,calc(100vw - 28px)); height: min(500px,calc(100dvh - 110px)); display: flex; flex-direction: column; overflow: hidden; border-color: #d5e3df; border-radius: var(--radius-card); box-shadow: var(--shadow-overlay); }
.chat-widget-panel.has-active { height: min(570px,calc(100dvh - 110px)); }
.chat-widget-panel[hidden], .chat-widget-active[hidden], .chat-widget-list[hidden], .chat-toast[hidden] { display: none; }
.chat-widget-header { display: flex; min-height: 68px; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--surface-border); background: linear-gradient(135deg,var(--surface-soft),#f8fbfa); }
.chat-widget-heading { min-width: 0; flex: 1; }
.chat-widget-heading strong, .chat-widget-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-widget-heading strong { font-size: var(--font-size-section); line-height: 1.35; }
.chat-widget-heading small { margin-top: 2px; color: var(--text-secondary); font-size: var(--font-size-small); }
.chat-widget-window-actions { display: flex; gap: 6px; }
.chat-widget-icon-button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 1px solid var(--surface-border); border-radius: var(--radius-control); background: var(--surface); color: var(--text-secondary); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chat-widget-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-widget-icon-button:hover { border-color: #b9d4ca; background: var(--mint); color: var(--green-dark); }
.chat-widget-icon-button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.chat-widget-list, .chat-widget-messages { flex: 1; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #9eb1aa transparent; overscroll-behavior: contain; }
.chat-widget-list { padding: 5px 0; background: #fbfcfc; }
.chat-widget-search { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--surface-border); background: var(--surface); }
.chat-widget-search > svg { position: absolute; z-index: 1; top: 50%; left: 27px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.chat-widget-search .form-control { min-height: 42px; padding-left: 39px; background: #fbfcfc; }
.staff-message-search { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--surface-border); }
.staff-message-search .form-control { min-width: 0; }
.chat-widget-list-item { display: grid; width: 100%; min-height: 76px; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 14px; border: 0; border-bottom: 1px solid #e8efec; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .18s ease; }
.chat-widget-list-item:hover, .chat-widget-list-item:focus-visible { background: var(--surface-soft); }
.chat-widget-list-item:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.chat-widget-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e1f0e9; color: var(--green-dark); font-size: var(--font-size-small); font-weight: 700; }
.chat-widget-list-item[data-kind="concern"] .chat-widget-avatar { border-radius: var(--radius-control); background: #eaf1f3; color: #496d78; font-size: var(--font-size-section); }
.chat-widget-person { background: #f8fbfa; }
.chat-widget-person:hover, .chat-widget-person:focus-visible { background: var(--mint); }
.chat-widget-list-item:disabled { cursor: wait; opacity: .65; }
.chat-widget-row-content { display: block; min-width: 0; }
.chat-widget-row-heading { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.chat-widget-row-heading strong { min-width: 0; flex: 1; overflow: hidden; color: var(--ink); font-size: var(--font-size-body); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.chat-widget-row-heading time { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.chat-widget-row-context, .chat-widget-row-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-widget-row-context { margin-top: 2px; color: var(--text-secondary); font-size: 11px; }
.chat-widget-row-preview { margin-top: 4px; color: var(--muted); font-size: var(--font-size-small); }
.chat-widget-row-unread { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 12px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; }
.chat-widget-more { display: block; width: calc(100% - 20px); min-height: var(--control-height); padding: 9px 12px; margin: 8px 10px 5px; border: 1px solid var(--surface-border); border-radius: var(--radius-control); background: var(--surface-soft); color: var(--green-dark); font-weight: 600; text-align: center; }
.chat-widget-more:hover, .chat-widget-more:focus-visible { background: var(--mint); }
.chat-widget-active { min-height: 0; display: flex; flex: 1; flex-direction: column; }
.chat-widget-messages { padding: 8px 0; background: #f7faf9; }
.chat-widget-messages .message-entry { padding: 11px 12px; margin: 8px 12px; border: 1px solid var(--surface-border); border-radius: var(--radius-control); background: var(--surface); box-shadow: var(--shadow); }
.chat-widget-messages .message-entry:last-child { border-bottom: 1px solid var(--surface-border); }
.chat-widget-messages .message-internal { border-left: 3px solid var(--green); background: var(--surface-soft); }
.chat-widget-compose { padding: 12px 14px 14px; border-top: 1px solid var(--surface-border); display: flex; flex-direction: column; gap: 9px; background: var(--surface); }
.chat-widget-compose textarea { min-height: 68px; resize: vertical; }
.chat-widget-compose .btn { min-height: 39px; align-self: flex-end; }
.chat-widget-empty { margin: auto; padding: 34px 24px; color: var(--muted); font-size: var(--font-size-body); line-height: 1.7; text-align: center; }
.chat-widget-readonly, .chat-widget-error { margin: 10px; }
#chat-widget-older { margin: 8px 10px; align-self: flex-start; }
.chat-toast { position: fixed; z-index: 4060; top: 78px; right: 22px; width: min(340px,calc(100vw - 28px)); padding: 15px; box-shadow: var(--shadow-overlay); }
.chat-toast p { margin: 7px 0 12px; color: var(--text-secondary); }
.chat-toast > div { display: flex; gap: 8px; }
.guest-chat-launcher { position: fixed; z-index: 4050; right: 22px; bottom: 22px; }
.guest-chat-launcher[hidden] { display: none; }
.guest-chat-hint { position: fixed; z-index: 4050; right: 88px; bottom: 35px; padding: 8px 12px; border: 1px solid var(--surface-border); border-radius: var(--radius-control); background: var(--surface); box-shadow: var(--shadow); color: var(--green-dark); font-size: var(--font-size-small); font-weight: 600; }
.guest-chat-hint[hidden] { display: none; }
#guest-conversation:not([hidden]) { position: fixed; z-index: 4050; right: 22px; bottom: 88px; width: min(390px,calc(100vw - 28px)); height: min(530px,calc(100dvh - 110px)); display: flex; flex-direction: column; margin: 0 !important; box-shadow: var(--shadow-overlay); }
#guest-conversation .message-thread { flex: 1; min-height: 0; max-height: none; }
#guest-conversation .section-title { min-width: 0; }
@media (max-width: 600px) {
  .staff-message-layout.has-thread > .col-lg-8 { order: -1; }
  .chat-widget { right: 14px; bottom: 82px; }
  .chat-widget-panel { width: calc(100vw - 28px); height: min(56dvh,450px); }
  .chat-widget-panel.has-active { height: min(78dvh,650px); }
  .chat-toast { top: 70px; right: 14px; }
  .guest-chat-launcher { right: 14px; bottom: 14px; }
  .guest-chat-hint { right: 80px; bottom: 27px; }
  #guest-conversation:not([hidden]) { right: 14px; bottom: 80px; width: calc(100vw - 28px); height: min(78dvh,650px); }
  .message-thread { max-height: 390px; }
  .message-meta time { width: 100%; margin-left: 0; }
}

/* Focused concern workflow: daily actions stay prominent while advanced tools remain available. */
.sidebar-tools { margin-top: 6px; }
.sidebar-tools > summary { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 12px; border-radius: 9px; color: #b8cdcf; cursor: pointer; font-weight: 600; list-style: none; }
.sidebar-tools > summary::-webkit-details-marker { display: none; }
.sidebar-tools > summary:hover, .sidebar-tools > summary:focus-visible { background: #ffffff0d; color: #fff; }
.sidebar-tools > summary::after { content: '›'; margin-left: auto; transition: transform .18s ease; }
.sidebar-tools[open] > summary::after { transform: rotate(90deg); }
.sidebar-tools > div { padding: 4px 0 4px 14px; }
.sidebar-tools .nav-link { min-height: var(--control-height); font-size: var(--font-size-small); }
.landing-categories { margin: 0 0 46px; }
.section-heading { margin-bottom: 18px; }
.section-heading p { margin: 6px 0 0; color: var(--text-secondary); }
.category-card-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.category-card { display: flex; min-width: 0; min-height: 130px; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; border: 1px solid var(--surface-border); border-radius: var(--radius-card); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.category-card .ico { width: 26px; height: 26px; color: var(--green); }
.category-card span { font-weight: 700; line-height: 1.3; }
.category-card small { color: var(--text-secondary); font-size: var(--font-size-small); }
.category-card:hover, .category-card:focus-visible { border-color: var(--green); background: var(--surface-soft); color: var(--green-dark); transform: translateY(-1px); }
.report-step { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--surface-border); }
.report-step-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.report-step-heading > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.report-step-heading h2 { margin: 2px 0 3px; }
.report-step-heading p { margin: 0; color: var(--text-secondary); }
.more-filters > div { display: flex; gap: 8px; margin-top: 8px; }
.guide-jumps { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; margin-bottom: 20px; }
.guide-jumps a { padding: 8px 12px; border-radius: var(--radius-control); color: var(--green-dark); background: var(--surface-soft); font-weight: 600; text-decoration: none; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.guide-card { scroll-margin-top: 20px; }
.guide-card li + li { margin-top: 8px; }
.dashboard-focus .complaint-table .category-cell { display: table-cell; }
.action-panel.action-primary { border-color: var(--green); background: var(--surface); }
.action-panel:has(form[data-action="assign"]),
.action-panel:has(form[data-action="start"]),
.action-panel:has(form[data-action="note"]),
.action-panel:has(form[data-action="verification"]) { border-color: var(--green); background: var(--surface); }
/* Content disclosures share the same compact control treatment. Navigation
   disclosures keep their purpose-built sidebar and notification styles. */
.main details:not(.notification-menu):not(.sidebar-tools),
.public-main details {
  max-width: 100%;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-control);
  background: var(--surface);
}
.main details:not(.notification-menu):not(.sidebar-tools)[open],
.public-main details[open] {
  padding-bottom: 12px;
}
.main details:not(.notification-menu):not(.sidebar-tools) > summary,
.public-main details > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: calc(var(--radius-control) - 1px);
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: var(--font-size-body);
  font-weight: var(--weight-heading);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.main details:not(.notification-menu):not(.sidebar-tools) > summary::-webkit-details-marker,
.public-main details > summary::-webkit-details-marker {
  display: none;
}
.main details:not(.notification-menu):not(.sidebar-tools) > summary::before,
.public-main details > summary::before {
  content: '▶';
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  transition: transform .2s ease;
}
.main details:not(.notification-menu):not(.sidebar-tools)[open] > summary,
.public-main details[open] > summary {
  border-bottom: 1px solid var(--surface-border);
  border-radius: calc(var(--radius-control) - 1px) calc(var(--radius-control) - 1px) 0 0;
}
.main details:not(.notification-menu):not(.sidebar-tools)[open] > summary::before,
.public-main details[open] > summary::before {
  transform: rotate(90deg);
}
.main details:not(.notification-menu):not(.sidebar-tools) > summary:hover,
.public-main details > summary:hover {
  background: #e7f2ed;
  color: var(--green);
}
.main details:not(.notification-menu):not(.sidebar-tools) > summary:focus-visible,
.public-main details > summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.main details:not(.notification-menu):not(.sidebar-tools) > :not(summary),
.public-main details > :not(summary) {
  margin-right: 14px;
  margin-left: 14px;
}
@media (max-width: 1000px) { .category-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 650px) {
  .category-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-card { min-height: 112px; padding: 14px; }
  .guide-grid { grid-template-columns: 1fr; }
  .more-filters { width: 100%; }
  .more-filters > div { flex-direction: column; }
}
