/* Source: resources/css/app.css */
:root {
  --font-ui: Inter, 'Segoe UI', Arial, sans-serif;
  --navy: #14322e;
  --nav: #0c302b;
  --green: #0c7c61;
  --green-dark: #075943;
  --mint: #e9f5ee;
  --lime: #d0edaa;
  --blue: #2f72bc;
  --red: #d04d42;
  --orange: #bd7931;
  --text: #203a34;
  --border: #e6ece8;
  --bg: #f5f7f5;
  --white: #fff;
  --shadow: 0 4px 22px #183d2b05;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #84bca9;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-ui);
}
h1 {
  font-size: 31px;
  line-height: 1.3;
  letter-spacing: -0.65px;
  font-weight: 700;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 700;
}
h4 {
  font-size: 15px;
}
small {
  font-size: 13px;
}
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button .icon {
  width: 18px;
  height: 18px;
}
.muted {
  color: var(--muted);
}
.subtext {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.positive {
  color: var(--green);
}
.danger {
  color: var(--red);
}
.strong {
  font-weight: 700;
}
.nowrap {
  white-space: nowrap;
}
.break {
  overflow-wrap: anywhere;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--nav);
  color: #d8e5df;
  padding: 28px 18px 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img {
  width: 43px;
  height: 43px;
  box-shadow: 0 3px 10px #0001;
  border-radius: 13px;
}
.brand-name {
  font-family: var(--font-ui);
  color: white;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-name span {
  font-weight: 500;
  color: #bdd6c9;
  font-size: 14px;
}
.workspace-switch {
  background: #ffffff08;
  border: 1px solid #ffffff13;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  width: 100%;
  text-align: left;
}
.workspace-icon {
  width: 32px;
  height: 32px;
  background: #d0edaa12;
  color: var(--lime);
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.workspace-switch .label {
  font-weight: 600;
}
.workspace-switch .subtext {
  font-size: 11px;
  color: #8faf9e;
}
.workspace-switch > .icon {
  margin-left: auto;
  width: 14px;
}
.nav-section-label {
  text-transform: uppercase;
  color: #88a79b;
  font-weight: 600;
  margin: 0 12px 10px;
}
.nav-list {
  display: grid;
  gap: 5px;
}
.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #b7cec3;
  border-radius: 9px;
  text-align: left;
  font-weight: 500;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-button:hover {
  background: #ffffff09;
  color: white;
}
.nav-button.active {
  background: #d0edaa;
  color: #173e2d;
  font-weight: 700;
  box-shadow: 0 3px 15px #0001;
}
.nav-button .icon {
  width: 19px;
  height: 19px;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #ffffff12;
  color: #d8e5df;
}
.nav-button.active .nav-count {
  background: #0c493f12;
  color: #173e2d;
}
.nav-dot {
  width: 6px;
  height: 6px;
  background: #e8a76d;
  border-radius: 50%;
  margin-left: auto;
}
.side-flex {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #45685b transparent;
}
.sidebar-footer {
  border-top: 1px solid #ffffff10;
  padding-top: 16px;
}
.sidebar-note {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(130deg, #214e3d, #184033);
  margin-bottom: 16px;
  overflow: hidden;
}
.sidebar-note .icon {
  color: #c6e8a6;
}
.sidebar-note h4 {
  color: #e4f2db;
  margin: 10px 0 5px;
}
.sidebar-note p {
  line-height: 1.7;
  color: #a3bfaf;
}
.sidebar-note:after {
  content: '';
  width: 80px;
  height: 80px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  position: absolute;
  right: -30px;
  top: 15px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 7px;
}
.profile .name {
  color: #edf5ef;
  font-size: 13px;
  font-weight: 600;
}
.profile .role {
  font-size: 11px;
  color: #8faf9e;
  margin-top: 3px;
}
.avatar {
  display: inline-flex;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e1eadd;
  color: #376448;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid white;
}
.avatar.large {
  width: 65px;
  height: 65px;
  font-size: 21px;
}
.avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 5px;
}
.avatar-stack .avatar {
  margin-left: -5px;
  width: 29px;
  height: 29px;
  font-size: 9px;
}
.avatar-stack .avatar:last-child {
  background: #edf3e9;
}
.sidebar .avatar {
  border-color: #37584b;
}
.main-shell {
  margin-left: var(--sidebar);
  min-width: 0;
}
.topbar {
  height: 75px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb .icon {
  width: 16px;
  height: 16px;
}
.breadcrumb strong {
  font-size: 13px;
  color: #3b5147;
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a9690;
  background: #f6f8f6;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  min-width: 210px;
}
.search-trigger .icon {
  width: 15px;
  height: 15px;
}
.key {
  margin-left: auto;
  color: #99a39b;
  padding: 1px 4px;
  font-size: 11px;
  border: 1px solid #e1e7e0;
  border-radius: 3px;
}
.date-pill {
  font-size: 12px;
  color: #738079;
  display: flex;
  gap: 7px;
  align-items: center;
}
.date-pill .icon {
  width: 15px;
  height: 15px;
}
.icon-button {
  width: 35px;
  height: 35px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #6a7c70;
  position: relative;
}
.icon-button:hover {
  background: #f0f5f0;
  border-color: var(--border);
}
.icon-button .icon {
  width: 19px;
  height: 19px;
}
.notification-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #de9561;
  border: 1px solid white;
  position: absolute;
  right: 7px;
  top: 5px;
}
.top-divider {
  height: 26px;
  width: 1px;
  background: var(--border);
}
.mobile-menu {
  display: none;
}
.mobile-brand {
  display: none;
}
.content {
  max-width: 1780px;
  margin: 0 auto;
  padding: 27px 32px 40px;
  animation: appear 0.3s ease-out;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.heading-actions {
  display: flex;
  flex-shrink: 0;
}
.btn {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.15s;
}
.btn:hover {
  background: #f5f8f4;
  box-shadow: 0 2px 6px #143b2410;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 3px 8px #08725814;
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.soft {
  background: var(--mint);
  border-color: #d9eadf;
  color: var(--green);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--green);
}
.btn.danger-btn {
  color: var(--red);
  background: #fff4f1;
  border-color: #f4dbd7;
}
.btn.small {
  border-radius: 7px;
}
.btn.small .icon {
  width: 15px;
  height: 15px;
}
.btn.full {
  width: 100%;
}
.text-button {
  color: var(--green);
  font-weight: 600;
  border: 0;
  padding: 5px 0;
  background: transparent;
}
.text-button:hover {
  text-decoration: underline;
}
.demo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  background: #edf3e9;
  color: #637356;
  border: 1px solid #e1eada;
  border-radius: 8px;
}
.demo-strip b {
  font-weight: 600;
  color: #466139;
}
.demo-strip > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.demo-strip .icon {
  width: 13px;
  height: 13px;
}
.demo-strip button {
  background: none;
  border: 0;
  color: #506b40;
  white-space: nowrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 19px 20px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-label {
  color: #6b7c70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eaf5ec;
  color: #478762;
}
.stat-icon .icon {
  width: 17px;
  height: 17px;
}
.stat-icon.blue {
  background: #edf3fb;
  color: #608bb1;
}
.stat-icon.orange {
  background: #fcf2e7;
  color: #ce945c;
}
.stat-icon.purple {
  background: #f0ecf9;
  color: #9984c0;
}
.stat-number {
  font-family: var(--font-ui);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  align-items: center;
  gap: 5px;
}
.stat-foot strong {
  font-weight: 550;
  color: var(--green);
}
.stat-foot .icon {
  width: 12px;
  height: 12px;
}
.stat-spark {
  position: absolute;
  right: 19px;
  bottom: 20px;
  width: 65px;
  height: 30px;
  color: #7aaf7b;
  opacity: 0.75;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.93fr) minmax(270px, 1fr);
  gap: 21px;
  align-items: start;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 21px 16px;
}
.card-header h2 {
  font-size: 16px;
}
.card-header .subtext {
  margin-top: 5px;
}
.card-body {
  padding: 20px 21px;
}
.card-footer {
  padding: 13px 21px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.25;
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 650;
  white-space: nowrap;
  background: #eff3ee;
  color: #70816e;
}
.badge.green {
  background: #eaf5ed;
  color: #2c885a;
}
.badge.red {
  background: #fceeea;
  color: #bc5b4c;
}
.badge.orange {
  background: #fcf2e3;
  color: #b27c37;
}
.badge.blue {
  background: #edf3fa;
  color: #5a84b1;
}
.badge.purple {
  background: #f3eefa;
  color: #8b72a8;
}
.badge.neutral {
  background: #f0f3f1;
  color: #7c8881;
}
.badge.outline {
  border: 1px solid var(--border);
  background: white;
  color: #6d7d71;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}
.pulse:after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: pulse 2.8s infinite;
  opacity: 0.6;
}
.map-toolbar {
  display: flex;
  gap: 8px;
  padding: 0 20px 15px;
  flex-wrap: wrap;
}
.map-filter {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 8px 28px 8px 10px;
  color: #5f7166;
  max-width: 100%;
  min-width: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23728677' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
}
.map-wrap {
  position: relative;
  margin: 0 12px;
  border: 1px solid #e6eae1;
  border-radius: 11px;
  overflow: hidden;
  background: #e1edea;
  isolation: isolate;
}
.map-wrap.full-map {
  height: 510px;
}
.map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #dfedea;
}
.map-floating {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 15px;
  pointer-events: none;
  background: #fffffff0;
  border: 1px solid white;
  box-shadow: 0 3px 18px #2c584117;
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(5px);
}
.map-floating .eyebrow {
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #8b978c;
}
.map-floating strong {
  font-family: var(--font-ui);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.map-floating p {
  color: #738572;
  margin-top: 3px;
}
.map-floating .leaflet-icon {
  color: var(--green);
}
.map-style-switch {
  position: absolute;
  bottom: 25px;
  right: 12px;
  z-index: 5;
  display: flex;
  padding: 3px;
  border: 1px solid #e4ebe0;
  background: #fffffff0;
  border-radius: 8px;
  box-shadow: 0 3px 10px #183d2b0d;
}
.map-style-switch button {
  border: 0;
  background: transparent;
  padding: 6px 9px;
  border-radius: 5px;
  color: #65725e;
}
.map-style-switch button.active {
  color: var(--green);
  background: #eaf2e6;
  font-weight: 650;
}
.map-legend {
  display: flex;
  gap: 16px;
  color: #7a897d;
  padding: 13px 20px 15px;
  flex-wrap: wrap;
  align-items: center;
}
.legend-item {
  display: flex;
  gap: 5px;
  align-items: center;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35916a;
}
.legend-dot.red {
  background: #d6785f;
}
.legend-dot.gray {
  background: #b0b8a6;
}
.map-legend .legend-privacy {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-privacy .icon {
  width: 11px;
  height: 11px;
}
.leaflet-container {
  font-family: var(--font-ui) !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: #ffffffc9 !important;
}
.leaflet-control-zoom {
  border: 1px solid #e0e6dc !important;
  box-shadow: 0 3px 12px #1a432713 !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  color: #496b54 !important;
  background: #fffffff5 !important;
  font-size: 18px !important;
}
.cluster-icon {
  background: transparent !important;
  border: 0 !important;
}
.cluster-circle {
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #087553;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border: 4px solid #e4efdc;
  box-shadow: 0 3px 10px #3a633531;
  position: relative;
  transition: transform 0.2s;
}
.cluster-circle:hover {
  transform: scale(1.17);
  z-index: 9;
}
.cluster-circle.medium {
  height: 41px;
  width: 41px;
  background: #28855a;
}
.cluster-circle.large {
  height: 48px;
  width: 48px;
  background: #096848;
}
.cluster-circle:before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid #31735033;
  border-radius: 50%;
}
.incident-map-icon {
  background: transparent !important;
  border: 0 !important;
}
.incident-pin {
  background: #d97855;
  color: white;
  border: 3px solid #fff2e9;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #d9785529;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: map-pulse 3s infinite;
}
.incident-pin .icon {
  width: 14px;
  height: 14px;
}
.leaflet-popup-content {
  font-size: 12px;
  line-height: 1.6;
}
.leaflet-popup-content strong {
  font-size: 14px;
}
.leaflet-popup-content .btn {
  margin-top: 9px;
  font-size: 11px;
}
.map-fallback-notice {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 4;
  font-size: 9px;
  padding: 3px 6px;
  background: #ffffffe0;
  color: #7b887a;
}
.side-column {
  display: grid;
  gap: 20px;
}
.responses-panel .card-header {
  padding-bottom: 14px;
}
.response-card {
  border-top: 1px solid var(--border);
}
.response-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}
.response-kicker {
  letter-spacing: 0.6px;
  color: #8b958a;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
.response-kicker .icon {
  width: 12px;
  height: 12px;
}
.response-card h3 {
  margin-bottom: 7px;
  line-height: 1.55;
}
.response-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.response-meta .icon {
  width: 12px;
  height: 12px;
}
.response-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 7px;
  color: #879084;
}
.response-progress-label strong {
  font-weight: 600;
  color: #52734e;
}
.progress {
  height: 5px;
  background: #edf1e9;
  border-radius: 5px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: #79a76b;
  border-radius: 5px;
  animation: grow 1.1s ease-out;
  transform-origin: left;
}
.progress.orange > span {
  background: #dfab75;
}
.response-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 10px;
}
.response-card:hover {
  background: #fafcf9;
}
.community-banner {
  background: #edf4e7;
  border: 1px solid #e2ecdb;
  padding: 20px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 146px;
}
.community-banner .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  color: #7a9363;
}
.community-banner h3 {
  font-size: 18px;
  line-height: 1.45;
  max-width: 215px;
  color: #35512d;
}
.community-banner p {
  margin: 7px 0 13px;
  max-width: 200px;
}
.community-banner .btn {
  padding: 6px 10px;
  min-height: 29px;
  background: #fff9;
  border-color: #d9e6cd;
  color: #55753d;
}
.banner-mark {
  position: absolute;
  right: 20px;
  bottom: 19px;
  color: #b7d59f;
  transform: rotate(-12deg);
}
.banner-mark .icon {
  width: 65px;
  height: 65px;
  stroke-width: 1.25;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.93fr) minmax(270px, 1fr);
  gap: 21px;
  margin-top: 23px;
}
.event-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.event-row:hover {
  background: #fafcf8;
}
.date-tile {
  width: 46px;
  flex-shrink: 0;
  padding: 8px 6px;
  background: #f2f6ed;
  border: 1px solid #e5ecdb;
  border-radius: 9px;
  text-align: center;
}
.date-tile span {
  display: block;
  color: #8d9c7f;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}
.date-tile strong {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-ui);
  display: block;
  color: #557345;
  margin-top: 1px;
}
.event-info {
  flex: 1;
  min-width: 0;
}
.event-info h3 {
  margin-bottom: 6px;
}
.event-info p {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.event-info p span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.event-info .icon {
  width: 11px;
  height: 11px;
}
.event-row-end {
  text-align: right;
  display: grid;
  gap: 8px;
  justify-items: end;
}
.activity-item {
  position: relative;
  display: flex;
  gap: 11px;
}
.activity-item:not(:last-child):after {
  content: '';
  position: absolute;
  left: 14px;
  top: 43px;
  bottom: -12px;
  width: 1px;
  background: var(--border);
}
.activity-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #eff5eb;
  color: #7c9c62;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.activity-icon .icon {
  width: 14px;
  height: 14px;
}
.activity-item h4 {
  line-height: 1.5;
  font-family: inherit;
  font-weight: 600;
}
.activity-item p {
  line-height: 1.7;
  margin-top: 3px;
}
.activity-item time {
  display: block;
  margin-top: 5px;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 27px;
  color: #97a08f;
}
.footer-line span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-line .icon {
  width: 12px;
  height: 12px;
}
.footer-line a {
  color: #76846d;
}
.mobile-scrim {
  display: none;
}
/* Shared workspaces */
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.input,
.select,
.textarea {
  background: white;
  border: 1px solid #dde5de;
  color: var(--text);
  width: 100%;
  transition: border 0.15s;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: #7aae8c;
  outline: 2px solid #e1f0e4;
  outline-offset: 0;
}
.input::placeholder,
.textarea::placeholder {
  color: #a1aba0;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' stroke='%23728677' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.toolbar .input {
  max-width: 320px;
}
.toolbar .select {
  width: auto;
  min-width: 130px;
  font-size: 13px;
}
.search-box {
  position: relative;
  flex: 1;
  max-width: 370px;
  min-width: 170px;
}
.search-box .icon {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 17px;
  height: 17px;
  color: #8b9b8c;
}
.search-box input {
  padding-left: 39px;
  max-width: 100% !important;
}
.toolbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-toggle {
  padding: 3px;
  background: #edf2ec;
  border-radius: 8px;
  display: flex;
  gap: 2px;
}
.view-toggle button {
  width: 33px;
  height: 31px;
  border: 0;
  color: #8e9a87;
  background: transparent;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.view-toggle .active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 4px #20362110;
}
.view-toggle .icon {
  width: 16px;
  height: 16px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
  white-space: nowrap;
}
.tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 1px;
  font-size: 13px;
  color: #7a8b7e;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 650;
}
.tab .count {
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 5px;
  background: #edf2e9;
  color: #7e9672;
}
.tab.active .count {
  background: #dfeede;
  color: #59814c;
}
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.volunteer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.volunteer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 25px #20402109;
}
.volunteer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.volunteer-card .avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
}
.volunteer-card h3 {
  margin-bottom: 5px;
  font-size: 16px;
}
.volunteer-card .location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #8b9889;
}
.location .icon {
  width: 13px;
  height: 13px;
}
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}
.skill-chip {
  padding: 4px 7px;
  background: #f1f5ee;
  border: 1px solid #e5eddf;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.skill-chip .icon {
  width: 11px;
  height: 11px;
}
.volunteer-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.volunteer-card-bottom .subtext {
  font-size: 11px;
}
.availability-label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7e8d75;
}
.availability-label .live-dot {
  background: #7fb16c;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 0;
  font-size: 12px;
  color: #8a9684;
}
.pagination-controls {
  display: flex;
  gap: 6px;
}
.pagination .btn {
  min-width: 34px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
.data-table th {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #81917a;
  background: #f4f7f1;
  font-weight: 600;
}
.data-table td {
  border-top: 1px solid var(--border);
  color: #667c5c;
}
.data-table td strong {
  color: var(--text);
  font-weight: 550;
}
.data-table .person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.data-table .person-cell small {
  color: #98a28e;
  display: block;
  margin-top: 3px;
}
.data-table tr:hover td {
  background: #fbfcf9;
}
.data-table .progress {
  min-width: 90px;
}
.empty {
  padding: 32px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed #dce5d5;
  border-radius: 14px;
}
.empty > .icon {
  width: 28px;
  height: 28px;
  color: #a3ba92;
  margin-bottom: 10px;
}
.empty h3 {
  margin-bottom: 6px;
  font-size: 15px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 390px;
  margin: auto;
}
.empty .btn {
  margin-top: 18px;
}
.result-count {
  font-size: 12px;
  color: #86937e;
  margin-bottom: 15px;
}
.alert-banner {
  border: 1px solid #e9e0cd;
  background: #fffaf0;
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.6;
  color: #927849;
  margin-bottom: 20px;
}
.alert-banner .icon {
  width: 20px;
  height: 20px;
  color: #bc9a5c;
  margin-top: 2px;
}
.alert-banner.green {
  border-color: #d9e8ce;
  background: #f2f7ed;
  color: #658451;
}
.alert-banner.blue {
  background: #f0f5fb;
  border-color: #dce7f2;
  color: #6684a2;
}
.response-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.incident-card .cover {
  height: 112px;
  background: linear-gradient(140deg, #d8eae4, #eff3df);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}
.incident-card .cover.orange {
  background: linear-gradient(135deg, #f2e4cf, #f7f2e6);
}
.incident-card .cover.blue {
  background: linear-gradient(135deg, #dce9f0, #ebf2ee);
}
.incident-card .cover > .icon {
  width: 62px;
  height: 62px;
  color: #79a18b;
  stroke-width: 1.15;
  transform: rotate(-6deg);
}
.incident-card .cover.orange > .icon {
  color: #c5a676;
}
.incident-card .cover.blue > .icon {
  color: #81a6ba;
}
.incident-card .cover:after {
  content: '';
  width: 150px;
  height: 150px;
  border: 1px solid #ffffff90;
  border-radius: 50%;
  position: absolute;
  right: -20px;
  top: -30px;
  pointer-events: none;
}
.incident-card .cover .badge {
  align-self: flex-start;
  background: #ffffffdc;
}
.incident-card .card-body {
  padding: 21px;
}
.incident-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 7px 0 8px;
}
.incident-card .subtext {
  font-size: 12px;
}
.incident-card .skills-row {
  min-height: 26px;
}
.incident-stats {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: 16px;
}
.incident-stats strong {
  display: block;
  font-size: 19px;
  font-family: var(--font-ui);
}
.incident-stats span {
  display: block;
  font-size: 10px;
  color: #87977c;
  margin-top: 4px;
}
.incident-card .btn {
  margin-top: 18px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.event-card {
  padding: 22px;
  position: relative;
}
.event-card .event-type {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.event-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9f2e4;
  color: #75a163;
}
.event-symbol.blue {
  background: #eaf1f8;
  color: #7097b9;
}
.event-symbol.orange {
  background: #fcf1de;
  color: #cbaa6e;
}
.event-symbol.purple {
  background: #f3edf8;
  color: #a38ab7;
}
.event-card h3 {
  font-size: 17px;
  line-height: 1.5;
  min-height: 51px;
  margin-bottom: 12px;
}
.event-card .event-detail-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.event-detail-line .icon {
  width: 14px;
  height: 14px;
}
.event-card .progress {
  margin: 17px 0 7px;
}
.event-card .card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 17px;
  gap: 6px;
}
.event-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.event-stat {
  background: #f5f8f1;
  padding: 14px;
  border: 1px solid #e8eee1;
  border-radius: 9px;
  text-align: center;
}
.event-stat strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 23px;
  margin-bottom: 4px;
}
.event-stat span {
  color: #87977c;
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 22px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 22px 0;
}
.detail-label {
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.detail-value {
  color: #516a45;
  line-height: 1.65;
}
.note-section {
  margin-top: 20px;
}
.note-section h4 {
  font-size: 13px;
  margin-bottom: 10px;
}
.mini-list {
  display: grid;
  gap: 0;
}
.mini-list-row {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.mini-list-row:last-child {
  border-bottom: 0;
}
.person-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.person-info strong {
  display: block;
  font-weight: 550;
}
.person-info small {
  display: block;
  margin-top: 4px;
}
.muted-box {
  background: #f5f8f1;
  border: 1px solid #e5eddd;
  border-radius: 10px;
  padding: 16px;
  line-height: 1.7;
  font-size: 13px;
  color: #7a8f69;
}
.stock-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stock-card {
  padding: 21px;
}
.stock-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.stock-card-top .icon {
  width: 26px;
  height: 26px;
  color: #8aab75;
}
.stock-card h3 {
  margin-bottom: 7px;
}
.stock-quantities {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 18px 0 9px;
  color: #89977f;
}
.stock-quantities strong {
  color: #4e7041;
}
.stock-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.stock-bottom span {
  font-size: 11px;
  color: #8b9c7d;
}
.stock-summary {
  display: flex;
  gap: 20px;
  margin-top: 13px;
  font-size: 11px;
  color: #8a9b7c;
}
.stock-summary strong {
  font-weight: 600;
  color: #617e50;
}
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.calendar-grid {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.calendar-weekday {
  text-align: center;
  padding: 12px 4px;
  font-size: 11px;
  color: #899980;
  background: #f3f7ed;
}
.calendar-cell {
  min-height: 106px;
  padding: 10px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
}
.calendar-cell:nth-child(7n) {
  border-right: 0;
}
.calendar-cell.blank {
  background: #fafbf8;
}
.calendar-cell.today > strong {
  background: var(--green);
  color: white;
  border-radius: 50%;
  padding: 5px 7px;
}
.calendar-event {
  margin-top: 9px;
  padding: 5px 6px;
  text-align: left;
  font-size: 10px;
  background: #e7f2df;
  color: #6f8d5d;
  border: 0;
  border-radius: 4px;
  line-height: 1.5;
}
.calendar-event.response {
  background: #fceee3;
  color: #b7895e;
}
.calendar-event.meeting {
  background: #eee9f5;
  color: #9281a6;
}
/* Forms, dialogs, meeting workspace */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0a261d69;
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade 0.18s;
}
.modal {
  background: white;
  box-shadow: 0 25px 100px #0002;
  display: flex;
  flex-direction: column;
  animation: modal-in 0.22s;
  min-width: 0;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header p {
  color: #899781;
}
.modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ccd9c2 transparent;
}
.modal-footer {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  background: #fcfdfb;
}
.modal-footer .footer-hint {
  margin-right: auto;
  color: #929c89;
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.form-field.full {
  grid-column: 1/-1;
}
.field-error {
  font-size: 11px;
  color: var(--red);
  line-height: 1.5;
}
.form-error {
  padding: 12px 15px;
  background: #fff0ec;
  border: 1px solid #f1d6ce;
  border-radius: 8px;
  color: #b45543;
  line-height: 1.6;
  margin-bottom: 17px;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid #e0e7d9;
  background: #fff;
  cursor: pointer;
  color: #7c9070;
  min-height: 36px;
}
.check-chip:has(input:checked) {
  background: #edf5e6;
  border-color: #b8d09f;
  color: #557c39;
}
.check-chip input {
  width: 13px;
  height: 13px;
  accent-color: var(--green);
  margin: 0;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.7;
  cursor: pointer;
}
.checkbox-line input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.checkbox-line strong {
  color: #587844;
  display: block;
  font-weight: 600;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 21px 0;
}
.form-section-title {
  font-weight: 650;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title .icon {
  width: 16px;
  height: 16px;
  color: #8bab71;
}
.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, 1fr);
  gap: 24px;
}
.recipient-panel {
  background: #f3f7ee;
  border: 1px solid #e3ecd8;
  border-radius: 11px;
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 0;
}
.recipient-count {
  font-family: var(--font-ui);
  font-size: 39px;
  font-weight: 700;
  color: #4d7838;
  letter-spacing: -1px;
}
.recipient-panel h3 {
  font-size: 13px;
  margin: 5px 0 8px;
}
.recipient-panel p {
  line-height: 1.7;
}
.recipient-panel .mini-list-row {
  border-color: #e1ead7;
  padding: 10px 0;
}
.recipient-panel .avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
}
.sms-preview {
  background: #e8f0df;
  border-radius: 10px 10px 10px 2px;
  padding: 14px;
  font-size: 12px;
  color: #65824f;
  line-height: 1.8;
  margin-top: 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-modal-header h2 {
  font-size: 22px;
  margin-bottom: 5px;
}
.profile-modal-header .subtext {
  font-size: 12px;
}
.profile-modal-header .badge {
  margin-top: 8px;
}
.availability-days {
  display: flex;
  gap: 6px;
}
.day-select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 42px;
  height: 39px;
  border-radius: 7px;
  background: #f6f8f2;
  border: 1px solid #e2e9d9;
  color: #92a082;
  font-size: 11px;
}
.day-select:has(input:checked) {
  background: #e3efd8;
  border-color: #aac88e;
  color: #547b39;
  font-weight: 650;
}
.day-select input {
  appearance: none;
  position: absolute;
  inset: 0;
  cursor: pointer;
  margin: 0;
  border-radius: 7px;
}
.day-select input:focus-visible {
  outline: 3px solid #aac88e;
}
.weekly-preview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 22px 0;
}
.weekly-day {
  background: #f6f8f2;
  border-radius: 9px;
  border: 1px solid #e5ecdc;
  min-height: 122px;
  padding: 12px 7px;
  text-align: center;
}
.weekly-day strong {
  display: block;
  font-size: 11px;
  color: #8d9c7d;
  margin-bottom: 15px;
}
.weekly-day.available {
  background: #edf5e5;
  border-color: #d6e6c5;
}
.weekly-day .icon {
  width: 19px;
  height: 19px;
  color: #94b879;
}
.weekly-day .slot {
  font-size: 9px;
  color: #789a5b;
  line-height: 1.8;
  display: block;
  margin-top: 8px;
}
.availability-toggle {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-radius: 12px;
  background: #fdf6eb;
  border: 1px solid #efdfc4;
  margin-top: 20px;
}
.availability-toggle h3 {
  font-size: 14px;
  color: #a48758;
}
.availability-toggle p {
  font-size: 11px;
  line-height: 1.7;
  color: #aa9879;
  margin-top: 5px;
}
.switch {
  position: relative;
  width: 40px;
  height: 23px;
  flex-shrink: 0;
  cursor: pointer;
}
.switch input {
  opacity: 0;
  position: absolute;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: #d6dfcd;
  transition: 0.2s;
}
.switch span:before {
  content: '';
  width: 17px;
  height: 17px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  transition: 0.2s;
  box-shadow: 0 1px 3px #0002;
}
.switch input:checked + span {
  background: #619b44;
}
.switch input:checked + span:before {
  transform: translateX(17px);
}
.switch input:focus-visible + span {
  outline: 3px solid #aac88e;
  outline-offset: 3px;
}
.minutes-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 20px;
}
.minutes-list {
  display: grid;
  align-content: start;
  gap: 10px;
}
.minute-item {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  transition: 0.2s;
}
.minute-item.active {
  background: #edf4e6;
  border-color: #c6dab4;
  box-shadow: inset 3px 0 0 #81a864;
}
.minute-item h3 {
  line-height: 1.6;
  margin-bottom: 11px;
}
.minute-item small {
  color: #8b9d79;
}
.minute-item .badge {
  margin-top: 11px;
}
.notes-editor {
  width: 100%;
  min-height: 255px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.9;
  color: #718564;
}
.editor-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 13px 20px;
  flex-wrap: wrap;
}
.editor-tools .subtext {
  font-size: 10px;
}
.voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #c47859;
}
.waveform {
  height: 19px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.waveform i {
  width: 3px;
  background: #c68666;
  border-radius: 2px;
  animation: wave 0.7s infinite alternate;
  height: 10px;
}
.waveform i:nth-child(2n) {
  animation-delay: 0.2s;
  height: 18px;
}
.waveform i:nth-child(3n) {
  animation-delay: 0.4s;
  height: 7px;
}
.ai-panel {
  background: linear-gradient(125deg, #f2f6eb, #fafcf8);
  border: 1px solid #e0e9d6;
  border-radius: 12px;
  margin-top: 20px;
}
.ai-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #67874c;
}
.ai-panel h3 .icon {
  width: 18px;
  height: 18px;
  color: #9bbd7a;
}
.ai-panel .summary {
  line-height: 1.9;
  white-space: pre-wrap;
  margin-top: 13px;
}
.action-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.action-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e3ebda;
  border-radius: 8px;
}
.action-item input {
  accent-color: #69974c;
  margin-top: 3px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.action-item strong {
  line-height: 1.6;
  font-weight: 550;
  display: block;
}
.action-item small {
  display: block;
  margin-top: 4px;
}
.action-item.done strong {
  text-decoration: line-through;
  color: #9aa78e;
}
.automation-list {
  display: grid;
  gap: 13px;
}
.automation-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px;
}
.automation-item h3 {
  margin-bottom: 5px;
}
.automation-item p {
  line-height: 1.65;
}
.automation-item .icon-wrap {
  height: 36px;
  width: 36px;
  border-radius: 9px;
  background: #f0f5e9;
  color: #9ab27f;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.automation-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.automation-item .icon {
  width: 18px;
  height: 18px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}
.settings-field {
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.settings-field:last-child {
  border-bottom: 0;
}
.settings-field span {
  color: #7f9470;
}
.settings-field strong {
  font-weight: 550;
}
.summary-banner {
  display: flex;
  align-items: center;
  background: linear-gradient(110deg, #e7f2df, #f5f8ec);
  border: 1px solid #dce9cf;
  border-radius: 14px;
  margin-bottom: 23px;
}
.summary-banner > .icon {
  width: 38px;
  height: 38px;
  color: #89ad6b;
}
.summary-banner h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.summary-banner p {
  font-size: 12px;
  color: #8b9f79;
  line-height: 1.7;
}
.summary-banner .btn {
  margin-left: auto;
  flex-shrink: 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 200;
  max-width: 400px;
  border: 1px solid #d8e7d0;
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 35px #2944211a;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  animation: modal-in 0.2s;
  font-size: 13px;
  line-height: 1.7;
  color: #688650;
}
.toast > .icon {
  color: #89ac6d;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.toast.error {
  border-color: #efcdbf;
  color: #b97760;
}
.toast.error > .icon {
  color: #c8866f;
}
.join-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  background: #fafcf7;
}
.join-story {
  background: #153c2e;
  color: white;
  padding: 50px 55px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.join-story .brand {
  padding: 0;
}
.join-story h1 {
  font-size: 47px;
  line-height: 1.3;
  letter-spacing: -1.8px;
  max-width: 440px;
  margin: 70px 0 22px;
}
.join-story h1 span {
  color: #c6e8a6;
}
.join-story p {
  font-size: 15px;
  line-height: 1.9;
  color: #a5c39b;
  max-width: 395px;
}
.join-benefits {
  display: grid;
  gap: 20px;
  margin: 40px 0;
}
.join-benefit {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: #b7cfa8;
}
.join-benefit .icon {
  color: #c6e8a6;
}
.join-story-footer {
  margin-top: auto;
  padding-top: 40px;
  color: #799870;
  font-size: 11px;
}
.join-form {
  padding: 50px 55px;
  max-width: 780px;
  width: 100%;
  margin: auto;
}
.join-form .eyebrow {
  margin-bottom: 12px;
}
.join-form h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.join-form .subtext {
  margin-bottom: 25px;
}
.join-form .btn.full {
  margin-top: 20px;
}
.join-success {
  text-align: center;
  padding: 60px 25px;
}
.join-success .icon {
  width: 65px;
  height: 65px;
  color: #87ad6b;
  margin-bottom: 25px;
}
.join-success h2 {
  font-size: 29px;
  margin-bottom: 16px;
}
.join-success p {
  color: #8c9f7c;
  font-size: 14px;
  line-height: 1.9;
}
.join-success .btn {
  margin-top: 25px;
}
@keyframes appear {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0.1);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}
@keyframes map-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px #d9785526;
  }
  50% {
    box-shadow: 0 0 0 10px #d9785510;
  }
}
@keyframes wave {
  from {
    transform: scaleY(0.5);
  }
  to {
    transform: scaleY(1.1);
  }
}
@media (min-width: 1500px) {
  .content {
    padding: 33px 38px 40px;
  }
  .map-wrap {
    height: 440px;
  }
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
  .stat-number {
    font-size: 35px;
  }
  .stat-card {
    padding: 22px 25px;
  }
  .topbar {
    padding: 0 38px;
  }
  .response-card {
    padding: 21px;
  }
  .response-card h3 {
    font-size: 15px;
  }
  .volunteer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1199px) {
  .sidebar {
    padding: 24px 13px 16px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .topbar {
    padding: 0 24px;
  }
  .content {
    padding: 24px;
  }
  .date-pill {
    display: none;
  }
  .search-trigger {
    min-width: 180px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    gap: 6px;
  }
  .heading-actions .btn {
    padding: 9px 12px;
    font-size: 12px;
  }
  h1 {
    font-size: 27px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-number {
    font-size: 29px;
  }
  .stat-spark {
    width: 48px;
    right: 12px;
  }
  .dashboard-grid,
  .bottom-grid {
    gap: 16px;
  }
  .card-header {
    padding: 18px;
  }
  .map-toolbar {
    padding: 0 17px 13px;
  }
  .response-card {
    padding: 15px;
  }
  .community-banner {
    padding: 17px;
  }
  .community-banner h3 {
    font-size: 16px;
  }
  .map-legend {
    gap: 10px;
    padding: 12px 17px;
  }
  .legend-privacy {
    display: none !important;
  }
  .response-grid,
  .event-grid,
  .stock-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .volunteer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .minutes-layout {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .join-story {
    padding: 40px;
  }
  .join-form {
    padding: 40px;
  }
}
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar .brand img {
    width: 42px;
    height: 42px;
  }
  .mobile-scrim.visible {
    display: block;
    position: fixed;
    inset: 0;
    background: #0a241960;
    backdrop-filter: blur(3px);
    z-index: 39;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 66px;
    gap: 13px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .topbar > .mobile-menu {
    margin-left: -6px;
  }
  .content {
    padding: 25px;
  }
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(255px, 1fr);
  }
  .heading-actions .btn {
    font-size: 12px;
  }
  .volunteer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-trigger {
    min-width: 150px;
  }
  .join-story h1 {
    font-size: 38px;
  }
  .join-story {
    padding: 35px;
  }
  .join-form {
    padding: 35px;
  }
}
@media (max-width: 800px) {
  .content {
    padding: 23px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .search-trigger {
    min-width: 35px;
    width: 35px;
    padding: 9px;
    background: transparent;
    border-color: transparent;
  }
  .search-trigger span,
  .search-trigger .key {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-column {
    gap: 16px;
  }
  .responses-panel .response-card:nth-of-type(3) {
    display: none;
  }
  .community-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 22px;
  }
  .community-banner h3 {
    font-size: 22px;
    max-width: 210px;
  }
  .community-banner .btn {
    align-self: flex-start;
    margin-top: 9px;
  }
  .banner-mark {
    right: 20px;
    bottom: 23px;
    opacity: 0.6;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .activity-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }
  .activity-item:after {
    display: none;
  }
  .volunteer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-icon {
    width: 27px;
    height: 27px;
  }
  .stat-icon .icon {
    width: 15px;
    height: 15px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .stat-spark {
    display: none;
  }
  .stats-grid {
    gap: 10px;
  }
  .page-heading {
    gap: 15px;
    margin-bottom: 21px;
  }
  .page-heading .subtext {
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .heading-actions {
    align-items: stretch;
  }
  .heading-actions .btn {
    min-height: 35px;
    padding: 7px 11px;
  }
  .demo-strip {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
  .minutes-layout {
    grid-template-columns: 1fr;
  }
  .minutes-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .minute-item {
    padding: 12px;
  }
  .minute-item h3 {
    line-height: 1.5;
  }
  .settings-grid {
    gap: 15px;
  }
  .join-page {
    grid-template-columns: 1fr;
  }
  .join-story {
    min-height: auto;
    padding: 30px 30px 35px;
  }
  .join-story h1 {
    font-size: 34px;
    margin: 35px 0 14px;
    max-width: 500px;
  }
  .join-story p {
    font-size: 13px;
    max-width: 500px;
  }
  .join-benefits {
    display: flex;
    flex-wrap: wrap;
    margin: 22px 0 0;
    gap: 15px;
  }
  .join-benefit {
    font-size: 11px;
  }
  .join-benefit .icon {
    width: 16px;
    height: 16px;
  }
  .join-story-footer {
    display: none;
  }
  .join-form {
    padding: 35px;
  }
  .toolbar .search-box {
    max-width: 100%;
    flex-basis: 100%;
  }
  .toolbar-end {
    margin-left: 0;
  }
  .calendar-cell {
    min-height: 95px;
    padding: 7px;
  }
  .calendar-event {
    font-size: 9px;
    padding: 4px;
  }
  .summary-banner {
    padding: 18px;
  }
  .summary-banner h3 {
    font-size: 15px;
  }
}
@media (max-width: 540px) {
  .topbar {
    height: 62px;
    padding: 0 17px;
    gap: 9px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.3px;
  }
  .mobile-brand img {
    width: 28px;
    height: 28px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-divider {
    display: none;
  }
  .top-actions > .avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
    margin-left: 5px;
  }
  .top-actions .search-trigger {
    display: none;
  }
  .content {
    padding: 21px 16px 30px;
  }
  .page-heading {
    display: block;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .subtext {
    line-height: 1.7;
    max-width: 310px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .heading-actions {
    flex-direction: row;
    margin-top: 17px;
    gap: 8px;
  }
  .heading-actions .btn {
    font-size: 12px;
    padding: 9px 12px;
    min-height: 38px;
  }
  .demo-strip {
    padding: 8px 11px;
    line-height: 1.6;
    gap: 8px;
    margin-bottom: 18px;
  }
  .demo-strip > span {
    align-items: flex-start;
  }
  .demo-strip > span > .icon {
    margin-top: 2px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat-card {
    border-radius: 13px;
  }
  .stat-number {
    margin: 5px 0 9px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
  }
  .stat-spark {
    display: block;
    width: 45px;
    bottom: 17px;
    right: 15px;
  }
  .dashboard-grid,
  .bottom-grid {
    gap: 18px;
  }
  .card {
    border-radius: 14px;
  }
  .card-header {
    padding: 18px 16px 15px;
  }
  .card-header .subtext {
    font-size: 11px;
    max-width: 230px;
  }
  .card-header .badge {
    padding: 4px 6px;
  }
  .map-toolbar {
    padding: 0 15px 13px;
    gap: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .map-filter {
    padding: 8px 23px 8px 9px;
    width: 100%;
  }
  .map-toolbar .map-filter:last-child {
    grid-column: 1/-1;
  }
  .map-wrap {
    margin: 0 9px;
    border-radius: 10px;
  }
  .map-wrap.full-map {
    height: 430px;
  }
  .map-floating {
    left: 11px;
    top: 11px;
    padding: 10px 12px;
  }
  .map-floating strong {
    font-size: 23px;
  }
  .map-legend {
    padding: 13px 15px 15px;
  }
  .responses-panel .response-card:nth-of-type(3) {
    display: block;
  }
  .community-banner {
    min-height: 160px;
    padding: 22px;
  }
  .community-banner h3 {
    font-size: 21px;
    max-width: 230px;
  }
  .community-banner p {
    margin: 8px 0 4px;
    max-width: 230px;
  }
  .banner-mark .icon {
    width: 80px;
    height: 80px;
  }
  .banner-mark {
    right: 25px;
    bottom: 30px;
    opacity: 0.65;
  }
  .event-row {
    padding: 16px;
    gap: 11px;
    align-items: flex-start;
  }
  .date-tile {
    width: 40px;
  }
  .date-tile strong {
    font-size: 21px;
  }
  .event-info h3 {
    line-height: 1.5;
  }
  .event-info p {
    gap: 5px;
  }
  .event-row-end .badge {
    padding: 4px 5px;
  }
  .event-row-end {
    gap: 10px;
  }
  .activity-list {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }
  .activity-item {
    padding: 11px 0;
  }
  .activity-item h4 {
    font-size: 12px;
  }
  .activity-item p {
    font-size: 11px;
  }
  .activity-item time {
    font-size: 10px;
  }
  .activity-item:not(:last-child):after {
    display: block;
    bottom: -8px;
  }
  .footer-line {
    font-size: 9px;
    flex-direction: column;
    gap: 8px;
    margin-top: 23px;
  }
  .volunteer-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .volunteer-card {
    padding: 19px;
  }
  .volunteer-card-top {
    margin-bottom: 12px;
  }
  .volunteer-card h3 {
    font-size: 17px;
  }
  .toolbar {
    gap: 8px;
    margin-bottom: 17px;
  }
  .toolbar .select {
    min-width: 0;
    flex: 1;
    width: 0;
    padding-left: 9px;
    padding-right: 25px;
    background-position: right 7px center;
  }
  .toolbar .search-box {
    min-width: 100%;
  }
  .toolbar-end {
    margin-left: auto;
  }
  .tabs {
    gap: 19px;
    margin-bottom: 18px;
  }
  .tab {
    font-size: 12px;
    padding: 11px 1px;
  }
  .response-grid,
  .event-grid,
  .stock-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .incident-card .cover {
    height: 110px;
  }
  .event-card h3 {
    min-height: 0;
  }
  .modal-backdrop {
    align-items: center;
  }
  .modal {
    border-radius: 15px;
  }
  .modal-footer {
    border-radius: 0 0 15px 15px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .modal-footer .btn {
    padding: 9px 12px;
    min-height: 39px;
  }
  .modal-footer .footer-hint {
    font-size: 10px;
    width: 100%;
  }
  .form-grid {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .input,
  .select,
  .textarea {
    font-size: 16px;
    padding: 10px 11px;
  }
  .toolbar .input {
    font-size: 14px;
  }
  .invite-layout {
    grid-template-columns: 1fr;
  }
  .recipient-panel {
    position: static;
  }
  .recipient-count {
    font-size: 31px;
  }
  .recipient-panel .mini-list {
    display: grid;
    gap: 0 8px;
  }
  .recipient-panel .mini-list-row {
    border: 0;
  }
  .profile-modal-header h2 {
    font-size: 20px;
  }
  .details-grid {
    gap: 15px;
  }
  .detail-label {
    font-size: 9px;
  }
  .detail-value {
    font-size: 12px;
  }
  .event-stats {
    gap: 8px;
  }
  .event-stat {
    padding: 13px 9px;
  }
  .event-stat strong {
    font-size: 21px;
  }
  .mini-list-row {
    gap: 8px;
  }
  .mini-list-row .btn {
    padding: 6px 8px;
  }
  .minutes-list {
    grid-template-columns: 1fr;
  }
  .minute-item {
    padding: 13px 16px;
  }
  .minute-item .badge {
    margin: 0 0 0 8px;
  }
  .minute-item h3 {
    margin-bottom: 6px;
  }
  .notes-editor {
    font-size: 15px;
    min-height: 240px;
  }
  .card-body {
    padding: 18px 16px;
  }
  .ai-panel {
    padding: 17px;
  }
  .ai-panel .summary {
    font-size: 12px;
  }
  .action-item strong {
    font-size: 11px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .weekly-day {
    padding: 10px 3px;
    min-height: 105px;
    border-radius: 6px;
  }
  .weekly-day .icon {
    width: 16px;
    height: 16px;
  }
  .summary-banner {
    padding: 17px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .summary-banner > .icon {
    width: 27px;
    height: 27px;
  }
  .summary-banner > div {
    flex: 1;
  }
  .summary-banner .btn {
    font-size: 11px;
  }
  .summary-banner h3 {
    font-size: 14px;
  }
  .summary-banner p {
    font-size: 11px;
  }
  .calendar-cell {
    padding: 4px;
  }
  .calendar-cell > strong {
    font-size: 10px;
  }
  .calendar-weekday {
    font-size: 9px;
    padding: 10px 3px;
  }
  .calendar-event {
    padding: 3px 2px;
  }
  .calendar-controls h2 {
    font-size: 15px;
  }
  .calendar-controls .btn {
    padding: 6px 8px;
    font-size: 10px;
  }
  .calendar-controls .subtext {
    font-size: 10px;
  }
  .join-story {
    padding: 26px 23px;
  }
  .join-story h1 {
    font-size: 33px;
    margin: 32px 0 16px;
  }
  .join-benefits {
    display: grid;
    gap: 13px;
    margin-top: 25px;
  }
  .join-form {
    padding: 31px 23px;
  }
  .join-form h2 {
    font-size: 25px;
  }
  .toast {
    left: 15px;
    right: 15px;
    max-width: none;
    font-size: 12px;
    padding: 14px 16px;
  }
  .alert-banner {
    font-size: 11px;
    padding: 13px;
  }
  .availability-toggle {
    padding: 15px;
  }
  .availability-toggle h3 {
    font-size: 13px;
  }
  .availability-toggle p {
    font-size: 10px;
  }
  .badge {
    font-size: 10px;
  }
  .data-table th {
    font-size: 10px;
  }
  .data-table td {
    font-size: 12px;
    padding: 14px;
  }
  .result-count {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Readable workspaces and a quieter, more useful map. */
:root {
  --muted: #697c70;
  --sidebar: 244px;
}
.sidebar {
  padding-left: 17px;
  padding-right: 17px;
  gap: 22px;
}
.brand {
  padding: 0 6px;
}
.brand-name {
  font-size: 16px;
}
.brand-name small {
  font-size: 8px !important;
  letter-spacing: 0.9px !important;
  white-space: nowrap;
}
.workspace-switch {
  padding: 10px;
}
.workspace-switch .label {
  font-size: 13px;
  white-space: nowrap;
}
.nav-button {
  gap: 10px;
  padding: 10px 11px;
  font-size: 13px;
  min-height: 42px;
}
.nav-button > span:not(.nav-count):not(.nav-dot) {
  white-space: nowrap;
}
.nav-count {
  flex-shrink: 0;
}
.sidebar-note {
  padding: 13px;
}
.sidebar-note p {
  font-size: 12px;
}
.sidebar-note h4 {
  font-size: 13px;
}
.nav-section-label {
  font-size: 11px;
  letter-spacing: 1px;
}
.stat-label {
  font-size: 13px;
}
.stat-foot {
  font-size: 12px;
  color: #758470;
}
.stat-foot strong {
  font-size: 12px;
}
.stat-number {
  margin: 8px 0 10px;
}
.stat-icon {
  width: 32px;
  height: 32px;
}
.stat-spark {
  display: none !important;
}
.badge {
  font-size: 11px;
}
.card-header .subtext {
  font-size: 13px;
  color: #778575;
}
.map-filter {
  font-size: 12px;
}
.map-floating .eyebrow {
  font-size: 10px;
}
.map-floating p {
  font-size: 12px;
}
.map-floating {
  max-width: 180px;
}
.map-legend {
  font-size: 12px;
}
.map-legend .legend-privacy {
  font-size: 11px;
}
.map-style-switch button {
  font-size: 12px;
}
.leaflet-tile-pane {
  filter: saturate(0.36) brightness(1.035) contrast(0.95);
}
.incident-pin {
  width: 25px;
  height: 25px;
}
.response-kicker {
  font-size: 11px;
}
.response-card h3 {
  font-size: 15px;
}
.response-meta {
  font-size: 12px;
  color: #7b8976;
  line-height: 1.6;
}
.response-progress-label {
  font-size: 12px;
}
.response-progress-label strong {
  font-size: 12px;
}
.response-bottom .text-button {
  font-size: 12px;
}
.community-banner p {
  font-size: 12px;
  color: #718361;
  line-height: 1.7;
}
.community-banner .btn {
  font-size: 12px;
}
.event-info h3 {
  font-size: 14px;
  line-height: 1.5;
}
.event-info p {
  font-size: 12px;
  color: #76876c;
}
.event-row-end .subtext {
  font-size: 12px;
  color: #7c8c71;
}
.activity-item h4 {
  font-size: 13px;
}
.activity-item p {
  font-size: 12px;
  color: #7b8973;
}
.activity-item time {
  font-size: 11px;
  color: #7b8973;
}
.form-field > label,
.form-label {
  color: #536b48;
}
.form-hint {
  color: #718565;
}
.checkbox-line {
  font-size: 14px;
  color: #647c58;
}
.check-chip {
  font-size: 13px;
}
.form-section-title {
  font-size: 14px;
}
.detail-label {
  font-size: 12px;
  color: #748768;
}
.detail-value {
  font-size: 14px;
}
.mini-list-row {
  font-size: 14px;
}
.person-info strong {
  font-size: 14px;
}
.person-info small {
  font-size: 12px;
  color: #76886b;
}
.skill-chip {
  font-size: 12px;
  color: #657b55;
}
.event-card .event-detail-line {
  font-size: 13px;
  color: #6f8360;
}
.event-card .subtext {
  font-size: 12px;
}
.form-error {
  font-size: 13px;
}
.event-stat span {
  font-size: 12px;
}
.stock-quantities,
.stock-summary,
.stock-bottom span {
  font-size: 12px;
  color: #758866;
}
.stock-card .location {
  font-size: 13px;
}
.volunteer-card .location,
.availability-label,
.volunteer-card-bottom .subtext {
  font-size: 13px;
}
.recipient-panel p {
  font-size: 12px;
  color: #728664;
}
.recipient-panel .person-info strong {
  font-size: 12px;
}
.recipient-panel .person-info small {
  font-size: 11px;
}
.automation-item h3 {
  font-size: 14px;
}
.automation-item p {
  font-size: 13px;
  color: #718666;
}
.minute-item h3 {
  font-size: 14px;
}
.minute-item small {
  font-size: 12px;
}
.minute-item .badge {
  font-size: 11px;
}
.ai-panel .summary {
  font-size: 14px;
  color: #627a53;
}
.action-item strong {
  font-size: 14px;
  color: #587448;
}
.action-item small {
  font-size: 12px;
  color: #788c6a;
}
.tabs .tab {
  font-size: 14px;
}
.result-count,
.pagination {
  font-size: 13px;
}
.data-table {
  font-size: 14px;
}
.data-table th {
  font-size: 12px;
}
.data-table .person-cell small {
  font-size: 12px;
}
.footer-line {
  font-size: 11px;
}
.demo-strip {
  font-size: 12px;
}
.demo-strip button {
  font-size: 12px;
}
.demo-strip > span {
  line-height: 1.6;
}
.page-heading .subtext {
  font-size: 14px;
}
.map-wrap {
  height: 410px;
}
@media (max-height: 980px) and (min-width: 1024px) {
  .sidebar-note {
    display: none;
  }
  .sidebar-footer {
    padding-top: 13px;
  }
  .sidebar .nav-section-label {
    margin-top: 0;
  }
  .side-flex {
    overflow-y: auto;
  }
  .sidebar {
    gap: 22px;
  }
}
@media (max-width: 1199px) {
  :root {
    --sidebar: 224px;
  }
  .nav-button {
    font-size: 12px;
    gap: 8px;
    padding: 10px 8px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand-name {
    font-size: 14px;
  }
  .brand-name small {
    font-size: 7px !important;
  }
  .workspace-switch .label {
    font-size: 12px;
  }
  .map-wrap {
    height: 390px;
  }
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-foot,
  .stat-foot strong {
    font-size: 11px;
  }
}
@media (max-width: 1023px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 255px;
  }
  .sidebar .nav-button {
    font-size: 14px;
  }
  .sidebar .brand-name {
    font-size: 16px;
  }
  .sidebar .workspace-switch .label {
    font-size: 13px;
  }
  .sidebar-note {
    display: none;
  }
  .sidebar {
    gap: 23px;
  }
  .brand-name small {
    font-size: 8px !important;
  }
}
@media (max-width: 800px) {
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    height: 440px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-foot,
  .stat-foot strong {
    font-size: 11px;
  }
  .map-floating p {
    font-size: 11px;
  }
  .map-filter {
    font-size: 12px;
  }
  .card-header .subtext {
    font-size: 12px;
  }
  .side-column {
    grid-template-columns: 1fr 1fr;
  }
  .card-header h2 {
    font-size: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card {
    padding: 18px;
  }
  .stat-number {
    font-size: 30px;
  }
  .minute-item h3 {
    font-size: 12px;
  }
  .minute-item small {
    font-size: 11px;
  }
  .btn {
    font-size: 13px;
  }
  .heading-actions .btn {
    font-size: 12px;
  }
}
@media (max-width: 540px) {
  .side-column {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    height: 390px;
  }
  .map-filter {
    font-size: 12px;
  }
  .map-legend {
    font-size: 11px;
    gap: 10px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-foot,
  .stat-foot strong {
    font-size: 11px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-number {
    font-size: 30px;
  }
  .demo-strip {
    font-size: 10px;
  }
  .demo-strip button {
    font-size: 10px;
  }
  .page-heading .subtext {
    font-size: 13px;
  }
  .card-header .badge {
    font-size: 10px;
  }
  .card-header .text-button {
    font-size: 12px;
  }
  .map-floating {
    max-width: 145px;
  }
  .map-floating .eyebrow {
    font-size: 9px;
  }
  .map-floating p {
    font-size: 10px;
  }
  .map-style-switch button {
    font-size: 11px;
  }
  .event-row {
    flex-wrap: wrap;
  }
  .event-info h3 {
    font-size: 14px;
  }
  .event-info p {
    font-size: 12px;
  }
  .event-row-end {
    min-width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 52px;
  }
  .event-row-end .subtext {
    font-size: 11px;
  }
  .event-row-end .badge {
    font-size: 10px;
  }
  .card-body .btn {
    font-size: 12px;
  }
  .tabs .tab {
    font-size: 12px;
  }
  .toolbar .select {
    font-size: 12px;
  }
  .minute-item h3 {
    font-size: 14px;
  }
  .minute-item small {
    font-size: 11px;
  }
  .modal-footer .btn {
    font-size: 12px;
  }
  .form-field > label,
  .form-label {
    font-size: 14px;
  }
  .form-hint {
    font-size: 12px;
  }
  .checkbox-line {
    font-size: 13px;
  }
  .person-info strong {
    font-size: 13px;
  }
  .person-info small {
    font-size: 11px;
  }
  .modal-header p {
    font-size: 12px;
  }
  .event-stat span {
    font-size: 11px;
  }
  .recipient-panel .person-info strong {
    font-size: 12px;
  }
  .recipient-panel .person-info small {
    font-size: 10px;
  }
  .event-card .event-detail-line {
    font-size: 13px;
  }
  .card-header h2 {
    font-size: 16px;
  }
}
.event-lifecycle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #f3f7ee;
  border: 1px solid #e2ebda;
  border-radius: 10px;
  padding: 13px 15px;
  margin: 0 0 22px;
}
.event-lifecycle .subtext {
  font-size: 12px;
}
.event-lifecycle .btn {
  flex-shrink: 0;
}
.banner-mark {
  animation: gentle-float 7s ease-in-out infinite;
}
@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-6px) rotate(-8deg);
  }
}
@media (max-width: 540px) {
  .event-lifecycle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .editor-tools > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .editor-tools > div .btn {
    margin-left: 0 !important;
  }
}
.stat-foot {
  display: block;
  line-height: 1.65;
}
.stat-foot strong {
  display: inline;
}
.stat-foot .icon {
  margin-right: 3px;
}
@media (max-width: 1023px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
}

/* Community workspace: a shared header and accessible horizontal navigation. */
.community-shell {
  --radius: 18px;
}
.community-header {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.community-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font: 800 20px/1.2 var(--font-ui);
  letter-spacing: -0.7px;
}
.community-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.community-brand em {
  font-style: normal;
  font-weight: 500;
  color: #6b8076;
}
.community-brand small {
  display: block;
  font: 650 9px/1.5 var(--font-ui);
  letter-spacing: 1.7px;
  color: #62786b;
  margin-top: 6px;
}
.community-workspace {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 4px 0 4px 28px;
  background: none;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}
.community-workspace > .icon:first-child {
  color: var(--green);
}
.community-workspace small,
.member-button small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.community-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.community-tools .icon-button {
  width: 44px;
  height: 44px;
}
.member-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  text-align: left;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
  border-radius: 10px;
}
.navigation-context {
  gap: 12px;
  margin-bottom: 12px;
}
.mode-label {
  display: inline-flex;
  align-items: center;
  color: #226348;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.mode-label .icon {
  width: 13px;
  height: 13px;
}
.navigation-caption {
  font-size: 11px;
  color: var(--muted);
}
.hub-navigation {
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-padding: 12px;
  padding-bottom: 8px;
}
.hub-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  background: none;
  font-weight: 550;
  color: #64796e;
}
.hub-link .icon {
  width: 17px;
  height: 17px;
}
.hub-link:hover {
  background: #f3f7f4;
  color: #205c44;
}
.hub-link.active {
  font-weight: 650;
}
.hub-count {
  background: #d7ebbb;
  color: #24452d;
  border-radius: 4px;
}
.community-shell .content {
  max-width: 1600px;
  padding: 32px 24px 48px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  z-index: 200;
  background: #143e32;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.content > * {
  min-width: 0;
}
.heading-actions,
.card-header,
.card-footer,
.editor-tools,
.calendar-controls,
.pagination {
  flex-wrap: wrap;
}
.heading-actions {
  max-width: 100%;
}
.card-footer > div {
  flex-wrap: wrap;
}
.form-field,
.person-info,
.mini-list-row > div,
.community-tools {
  min-width: 0;
}
.input,
.select,
.textarea {
  max-width: 100%;
  min-width: 0;
}
.card h2,
.card h3,
.mini-list-row strong,
.detail-value,
.summary,
.action-item {
  overflow-wrap: anywhere;
}
.table-wrap {
  overscroll-behavior-x: contain;
}
.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-cell {
  min-width: 0;
}
.calendar-event {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}
.tabs {
  scrollbar-width: thin;
}
.tab {
  min-height: 44px;
}
.btn,
.btn.small,
.text-button,
.icon-button {
  min-height: 44px;
}
.text-button {
  display: inline-flex;
  align-items: center;
}
.availability-days {
  flex-wrap: wrap;
}
.modal {
  overscroll-behavior: contain;
}
.modal-body {
  overflow-wrap: anywhere;
}
.modal-footer .btn {
  white-space: normal;
}
.community-shell .footer-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1500px) {
  .community-shell .content {
    padding-top: 36px;
  }
  .community-shell .dashboard-grid,
  .community-shell .bottom-grid {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  }
}
@media (max-width: 1100px) {
  .community-header {
    gap: 18px;
  }
  .member-button > span:last-child {
    display: none;
  }
  .hub-link {
    padding: 10px;
  }
  .community-shell .dashboard-grid,
  .community-shell .bottom-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  }
}
@media (max-width: 800px) {
  .community-brand {
    font-size: 18px;
  }
  .community-workspace {
    display: none;
  }
  .community-shell .dashboard-grid,
  .community-shell .bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .heading-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .card-header {
    align-items: flex-start;
  }
  .editor-tools {
    gap: 12px;
  }
  .weekly-preview {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .community-brand small {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  .community-tools {
    gap: 0;
  }
  .member-button {
    padding: 0 0 0 4px;
  }
  .member-button .avatar {
    width: 30px;
    height: 30px;
  }
  .community-tools .icon-button {
    width: 36px;
  }
  .navigation-caption {
    font-size: 10px;
  }
  .hub-navigation {
    margin-right: -16px;
    padding-right: 16px;
  }
  .hub-link {
    font-size: 12px;
  }
  .community-shell .side-column {
    grid-template-columns: 1fr;
  }
  .heading-actions .btn {
    flex: 1 1 auto;
    white-space: normal;
  }
  .demo-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .card-header > div {
    min-width: 0;
  }
  .summary-banner > div {
    min-width: 0;
    flex-basis: 100%;
  }
  .summary-banner .btn {
    margin-left: 0;
  }
  .recipient-panel .mini-list {
    grid-template-columns: 1fr;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .calendar-cell {
    min-height: 90px;
  }
  .calendar-event {
    white-space: normal;
    font-size: 9px;
    line-height: 1.3;
    max-height: 50px;
  }
  .calendar-controls {
    gap: 10px;
  }
  .calendar-controls .heading-actions {
    width: auto;
  }
  .pagination {
    align-items: flex-start;
  }
  .pagination-controls {
    flex-wrap: wrap;
  }
  .weekly-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .weekly-day strong {
    font-size: 11px;
  }
  .weekly-day .slot {
    font-size: 11px;
  }
  .mini-list-row {
    flex-wrap: wrap;
  }
  .mini-list-row .person-info {
    flex: 1 1 180px;
  }
  .mini-list-row .btn {
    font-size: 12px;
  }
  .modal {
    max-height: calc(100dvh - 20px);
  }
  .toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .join-form,
  .join-story {
    padding: 28px 20px;
  }
}
@media (max-width: 360px) {
  .navigation-caption {
    display: none;
  }
  .community-brand small {
    display: none;
  }
  .community-tools .icon-button {
    width: 32px;
  }
  .member-button {
    display: none;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-number {
    font-size: 27px;
  }
  .stats-grid {
    gap: 8px;
  }
  .calendar-cell {
    padding: 3px;
  }
  .calendar-event {
    font-size: 8px;
  }
}

.product-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  color: #6383a0;
}
.product-credit > span:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-credit strong {
  font-weight: 500;
}
.product-credit img {
  margin-left: 3px;
  object-fit: contain;
}
.join-form > .product-credit {
  margin-top: 24px;
}
/* Collapsed-first navigation rail; expansion follows the saved menu preference. */
.community-shell {
  --rail-width: 72px;
  --header-height: 84px;
  --expanded-width: 248px;
}
.community-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 24px;
  gap: 18px;
}
.community-shell .community-tools .icon-button,
.community-shell .navigation-toggle,
.community-shell .member-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  border: 1px solid #dce5e0;
  border-radius: 10px;
  background: #fff;
  color: #5c7468;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.community-shell .community-tools .icon-button .icon,
.community-shell .navigation-toggle .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.community-shell .community-tools {
  gap: 10px;
}
.community-shell .member-button {
  width: auto;
  flex-basis: auto;
  padding: 0 10px;
  gap: 9px;
}
.community-shell .member-button .avatar {
  width: 28px;
  height: 28px;
  border: 0;
  font-size: 10px;
}
.community-shell .member-button > span:last-child {
  display: block;
}
.community-navigation {
  position: fixed;
  inset: var(--header-height) auto 0 0;
  width: var(--rail-width);
  padding: 16px 10px;
  background: #fff;
  border-right: 1px solid var(--border);
  border-bottom: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: width 0.2s ease;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.navigation-context {
  height: 34px;
  min-height: 34px;
  margin: 0;
  display: flex;
  align-items: center;
}
.mode-label {
  border: 0;
  background: transparent;
  padding: 0 15px;
  height: 34px;
  white-space: nowrap;
  gap: 14px;
}
.mode-label > .icon {
  width: 20px;
  height: 20px;
}
.mode-label > span {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
}
.hub-navigation {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: visible;
  margin: 0;
  padding: 0;
  flex: 1;
}
.hub-link {
  position: relative;
  width: 100%;
  justify-content: flex-start;
  gap: 14px;
  padding: 11px 15px;
  min-height: 46px;
  border-radius: 11px;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
.hub-link > .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.hub-link > span:not(.hub-count) {
  opacity: 0;
  visibility: hidden;
}
.hub-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 16px;
  text-align: center;
  padding: 2px 3px;
  font-size: 9px;
  border: 2px solid white;
}
.hub-link.active {
  background: #e7f2eb;
  color: #166444;
  border-color: #d5e7dc;
  box-shadow: inset 3px 0 #168165;
}
.rail-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 40px;
  padding: 10px 15px;
  white-space: nowrap;
  font-size: 10px;
}
.rail-footer > .icon {
  width: 20px;
  height: 20px;
}
.rail-footer > span {
  visibility: hidden;
  opacity: 0;
}
.community-shell .main-shell {
  margin-left: var(--rail-width);
  transition: margin-left 0.2s ease;
}
.navigation-expanded .community-navigation {
  width: var(--expanded-width);
}
.navigation-expanded .main-shell {
  margin-left: var(--expanded-width);
}
.navigation-expanded .hub-link > span:not(.hub-count),
.navigation-expanded .mode-label > span,
.navigation-expanded .rail-footer > span {
  opacity: 1;
  visibility: visible;
}
.navigation-expanded .hub-count {
  position: static;
  margin-left: auto;
  border: 0;
}
.navigation-scrim {
  display: none;
}
@media (max-width: 1100px) {
  .community-shell .member-button > span:last-child {
    display: none;
  }
  .community-shell .member-button {
    padding: 0;
  }
  .community-workspace {
    font-size: 12px;
    gap: 8px;
    padding-left: 18px;
  }
}
@media (max-width: 800px) {
  .community-shell {
    --rail-width: 64px;
    --header-height: 74px;
  }
  .community-header {
    padding: 14px 16px;
    gap: 12px;
  }
  .community-navigation {
    padding: 14px 6px;
  }
  .navigation-expanded .main-shell {
    margin-left: var(--rail-width);
  }
  .navigation-expanded .navigation-scrim {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0 var(--rail-width);
    z-index: 44;
    background: #153c303d;
    backdrop-filter: blur(2px);
    border: 0;
  }
  .community-shell .content {
    padding: 24px 18px;
  }
  .community-shell .side-column {
    grid-template-columns: 1fr;
  }
  .community-shell .volunteer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .community-shell {
    --rail-width: 56px;
    --header-height: 72px;
    --expanded-width: 244px;
  }
  .community-header {
    padding: 12px 10px;
    gap: 8px;
  }
  .community-brand {
    font-size: 13px;
    gap: 7px;
    flex: 1;
    min-width: 0;
  }
  .community-brand img {
    width: 30px;
    height: 30px;
  }
  .community-brand small {
    display: none;
  }
  .community-tools {
    margin-left: 0;
  }
  .community-shell .community-tools {
    gap: 6px;
  }
  .community-shell .navigation-toggle {
    flex-shrink: 0;
  }
  .community-shell .member-button {
    display: inline-flex;
  }
  .community-brand > span {
    display: none;
  }
  .community-navigation {
    padding: 12px 6px;
  }
  .hub-link {
    padding: 11px;
    gap: 14px;
  }
  .mode-label {
    padding: 0 11px;
  }
  .rail-footer {
    padding: 10px 11px;
  }
  .hub-count {
    right: -3px;
  }
  .community-shell .content {
    padding: 22px 12px 32px;
  }
  .community-shell .volunteer-grid {
    grid-template-columns: 1fr;
  }
  .community-shell .stats-grid {
    grid-template-columns: 1fr;
  }
  .community-shell .stat-number {
    font-size: 30px;
  }
  .community-shell .map-floating {
    max-width: 130px;
  }
  .community-shell .map-style-switch {
    right: 6px;
    bottom: 22px;
  }
  .community-shell .map-style-switch button {
    font-size: 10px;
  }
  .community-shell .calendar-cell {
    padding: 2px;
  }
  .community-shell .calendar-event {
    font-size: 8px;
  }
  .community-shell .heading-actions {
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .community-header {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .community-brand img {
    width: 28px;
    height: 28px;
  }
}

/* RetailSync menu control: identical geometry in collapsed and expanded views. */
.community-shell .navigation-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex-basis: 44px;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #fff;
  color: #627e70;
  box-shadow: none;
}
.community-shell .navigation-toggle .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
/* Portal tooltips sit outside the rail's scroll container. */
.navigation-tooltip {
  position: fixed;
  z-index: 100;
  max-width: min(240px, calc(100vw - 88px));
  padding: 10px 14px;
  border: 1px solid #264e3f;
  border-radius: 10px;
  color: #fff;
  font: 550 13px/1.4 var(--font-ui);
  box-shadow: 0 6px 22px #163b3526;
  overflow-wrap: anywhere;
  animation: appear 0.12s ease-out;
}
.navigation-tooltip:before {
  content: '';
  position: absolute;
  left: -5px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-left: 1px solid #264e3f;
  border-bottom: 1px solid #264e3f;
  transform: rotate(45deg);
}
.rail-modes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e5ebf3;
  border-radius: 11px;
}
.rail-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
  min-width: 0;
  padding: 7px 1px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 9px;
  font-weight: 600;
}
.rail-mode .icon {
  width: 18px;
  height: 18px;
}
.rail-mode.active {
  background: #fff;
}
.rail-mode-full {
  display: none;
}
.rail-section-label {
  display: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 9px 15px 3px;
  white-space: nowrap;
}
.navigation-expanded .rail-modes {
  flex-direction: row;
}
.navigation-expanded .rail-mode {
  flex: 1;
  flex-direction: row;
  gap: 7px;
  min-height: 40px;
  font-size: 12px;
  padding: 8px;
}
.navigation-expanded .rail-mode-short {
  display: none;
}
.navigation-expanded .rail-mode-full {
  display: inline;
}
.navigation-expanded .rail-section-label {
  display: block;
}
.rail-footer {
  color: #7c91a7;
}
@media (max-width: 540px) {
  .rail-mode {
    font-size: 8px;
  }
  .rail-mode .icon {
    width: 17px;
    height: 17px;
  }
  .community-shell .community-brand img {
    padding: 3px;
  }
}
/* Preserve People for People's green-and-white identity. */
.community-shell {
  --text: #203a34;
  --navy: #14322e;
  --muted: #62756d;
  --border: #dfe8e3;
  background: #f4f7f5;
}
.community-shell .community-workspace small,
.community-shell .member-button small {
  color: #62756d;
}
.community-shell .navigation-toggle,
.community-shell .community-tools .icon-button,
.community-shell .member-button {
  background: #fff;
  color: #5c7468;
  border-color: #dce5e0;
}
.community-shell .navigation-toggle[aria-expanded='true'] {
  background: #edf5ef;
  border-color: #adc9b8;
  color: #226348;
}
.community-shell .member-button .avatar {
  background: #e7edde !important;
  color: #527447 !important;
}
.rail-modes {
  background: #f0f5f1;
  border-color: #e1e9e3;
}
.rail-mode {
  color: #73877b;
}
.rail-mode.active {
  color: #166444;
  border-color: #dce8df;
  box-shadow: 0 2px 5px #234b3110;
}
.rail-section-label {
  color: #7e9385;
}
.hub-link[hidden] {
  display: none;
}
.navigation-tooltip {
  background: #183f32;
  border-color: #264e3f;
}
.navigation-tooltip:before {
  background: #183f32;
  border-color: #264e3f;
}
/* Phones use an overlay drawer so content retains the full viewport width. */
@media (max-width: 600px) {
  .community-shell {
    --expanded-width: min(280px, calc(100vw - 48px));
  }
  .community-shell .community-brand {
    flex: 1;
    min-width: 0;
  }
  .community-shell .community-tools {
    margin-left: 0;
  }
  .community-shell .navigation-toggle,
  .community-shell .community-tools .icon-button,
  .community-shell .member-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    padding: 0;
  }
  .community-shell .member-button > span:last-child {
    display: none;
  }
  .community-shell .main-shell,
  .community-shell.navigation-expanded .main-shell {
    margin-left: 0;
  }
  .community-shell .community-navigation {
    width: var(--expanded-width);
    padding: 14px 12px;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.2s ease,
      visibility 0.2s;
    overscroll-behavior: contain;
    box-shadow: 12px 0 30px #183d2b14;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .community-shell.navigation-expanded .community-navigation {
    transform: translateX(0);
    visibility: visible;
  }
  .community-shell.navigation-expanded .navigation-scrim {
    inset: var(--header-height) 0 0 0;
    background: #153c3040;
  }
  .community-shell .content {
    padding: 22px 16px 32px;
    max-width: 100%;
  }
  .community-shell .page-heading {
    margin-bottom: 20px;
  }
  .community-shell .page-heading h1 {
    font-size: 26px;
    line-height: 1.3;
  }
  .community-shell .page-heading .subtext {
    font-size: 13px;
    max-width: none;
    line-height: 1.6;
  }
  .community-shell .eyebrow {
    font-size: 9px;
    line-height: 1.6;
    letter-spacing: 1.1px;
  }
  .community-shell .heading-actions {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 8px;
    margin-top: 15px;
  }
  .community-shell .heading-actions .btn {
    min-height: 44px;
    flex: 1;
    white-space: normal;
    font-size: 13px;
  }
  .community-shell .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .community-shell .stat-card {
    padding: 14px;
  }
  .community-shell .stat-label {
    font-size: 11px;
  }
  .community-shell .stat-number {
    font-size: 28px;
  }
  .community-shell .stat-foot {
    font-size: 11px;
  }
  .community-shell .minutes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .community-shell .minutes-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    scrollbar-width: thin;
    min-width: 0;
  }
  .community-shell .minute-item {
    flex: 0 0 min(260px, 80vw);
    scroll-snap-align: start;
    padding: 14px 16px;
    text-align: left;
  }
  .community-shell .minute-item h3 {
    font-size: 13px;
    line-height: 1.5;
  }
  .community-shell .minute-item small {
    font-size: 11px;
  }
  .community-shell .notes-editor {
    min-height: 260px;
    font-size: 16px;
    line-height: 1.7;
    resize: vertical;
  }
  .community-shell .editor-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 10px;
  }
  .community-shell .editor-tools > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .community-shell .editor-tools > div .btn {
    margin-left: 0 !important;
    flex: 1 1 140px;
  }
  .community-shell .editor-tools > .subtext {
    font-size: 11px;
    line-height: 1.6;
  }
  .community-shell .card-footer {
    padding: 14px 16px;
    align-items: stretch;
    gap: 10px;
  }
  .community-shell .card-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .community-shell .card-footer .btn {
    flex: 1 1 auto;
    white-space: normal;
    min-height: 44px;
  }
  .community-shell .demo-strip {
    font-size: 11px;
    gap: 6px;
    padding: 10px 12px;
  }
  .community-shell .demo-strip button {
    font-size: 11px;
    min-height: 32px;
  }
  .community-shell .card-header h2 {
    font-size: 15px;
  }
  .community-shell .card-header .subtext {
    font-size: 12px;
  }
  .community-shell .product-credit {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .community-shell .content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .community-shell .community-header {
    gap: 6px;
  }
  .community-shell .stat-card {
    padding: 12px;
  }
  .community-shell .stat-icon {
    width: 26px;
    height: 26px;
  }
}
/* Align the menu control with the navigation rail and centre every header icon. */
@media (min-width: 601px) {
  .community-shell .community-header {
    padding-left: calc((var(--rail-width) - 44px) / 2);
    align-items: center;
  }
  .community-shell .navigation-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    margin: 0;
  }
}
.community-shell .community-header .icon-button,
.community-shell .community-header .member-button {
  box-sizing: border-box;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
.community-shell .community-header .icon-button {
  padding: 0;
}
.community-shell .community-header .icon-button > .icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  vertical-align: initial;
}
.community-shell .community-tools {
  align-items: center;
}
.community-shell .community-brand {
  align-items: center;
}
.community-shell .community-brand img {
  display: block;
  flex-shrink: 0;
}
@media (min-width: 601px) {
  .community-shell .community-tools .icon-button,
  .community-shell .member-button {
    height: 44px;
    min-height: 44px;
  }
  .community-shell .community-tools .icon-button {
    width: 44px;
    flex: 0 0 44px;
  }
  .community-shell .member-button > span:last-child {
    line-height: 1.3;
  }
}
.profile-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 260px;
  max-width: calc(100vw - 24px);
  background: white;
  border: 1px solid #dce5e0;
  border-radius: 14px;
  box-shadow: 0 12px 40px #173e3826;
  padding: 8px;
  color: #203a34;
  z-index: 70;
}
.profile-dropdown[hidden] {
  display: none;
}
.profile-menu-heading {
  padding: 12px;
  border-bottom: 1px solid #e6ece8;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.profile-menu-heading strong {
  display: block;
  font-size: 14px;
}
.profile-menu-heading small {
  display: block;
  color: #697c70;
  margin-top: 5px;
  text-transform: capitalize;
}
.profile-dropdown > button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  font-size: 13px;
}
.profile-dropdown > button:hover,
.profile-dropdown > button:focus-visible {
  background: #edf5ef;
}
.profile-dropdown .profile-logout {
  color: #b64138;
  border-top: 1px solid #e6ece8;
  margin-top: 5px;
  border-radius: 0 0 8px 8px;
}
.profile-account {
  display: flex;
  align-items: center;
  gap: 15px;
}
.install-help {
  display: grid;
  gap: 14px;
  line-height: 1.7;
}
.install-help strong {
  color: #203a34;
}
@media (max-width: 1023px), (pointer: coarse) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body
    input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='submit']):not(
      [type='button']
    ),
  body select,
  body textarea,
  body [contenteditable='true'] {
    font-size: 16px !important;
  }
  .input,
  .select,
  .textarea {
    scroll-margin-block: 100px;
  }
}
@media (display-mode: standalone) {
  body {
    min-height: 100dvh;
    overscroll-behavior-y: none;
  }
  .community-shell .content {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
  .community-shell .community-header {
    padding-top: calc(10px + env(safe-area-inset-top));
    height: calc(var(--header-height) + env(safe-area-inset-top));
  }
  .community-shell .community-navigation {
    top: calc(var(--header-height) + env(safe-area-inset-top));
  }
}
.install-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #dfe8e3;
  border-radius: 18px;
  padding: 24px;
  color: #203a34;
  background: white;
  box-shadow: 0 15px 60px #173e3830;
}
.install-dialog::backdrop {
  background: #153c3066;
  backdrop-filter: blur(3px);
}
.install-dialog h2 {
  margin-bottom: 16px;
}
.install-dialog form {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
/* Active community overview, using actual workspace counts. */
.response-watch {
  border: 1px solid #dce8e0;
  border-radius: 16px;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.watch-summary p {
  color: #73877b;
}
.presence-dot {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #239d79;
  box-shadow: 0 0 0 5px #239d7912;
}
.presence-dot:after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  color: #239d79;
  border-radius: 50%;
  animation: presence 3s ease-out infinite;
}
.presence-dot.urgent {
  background: #d34c49;
  box-shadow: 0 0 0 5px #d34c4912;
}
.presence-dot.urgent:after {
  color: #d34c49;
}
.watch-totals {
  flex-wrap: wrap;
}
.watch-total {
  border: 1px solid #e5eae6;
  background: #f6f9f7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 11px;
}
.watch-total strong {
  margin-right: 3px;
  font-variant-numeric: tabular-nums;
}
.watch-total.urgent {
  background: #fff2f0;
  border-color: #f1d9d6;
  color: #b84440;
}
.watch-total.preparing {
  background: #fff8ea;
  border-color: #f1e1bd;
  color: #9e6c20;
}
.watch-total.ongoing {
  background: #edf7f1;
  border-color: #d6e9dd;
  color: #267452;
}
.dashboard-main-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.community-insights .card-header {
  padding-bottom: 14px;
}
.insights-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 8px 24px 22px;
}
.readiness-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.readiness-ring {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  padding: 13px;
  background: conic-gradient(#1d9a79 var(--readiness), #edf2ee 0);
  transform: rotate(-90deg);
}
.readiness-ring > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}
.readiness-ring strong {
  font: 800 30px/1.2 var(--font-ui);
  color: #205442;
}
.readiness-ring span {
  font-size: 10px;
  color: #76887c;
  margin-top: 5px;
}
.readiness-key {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #697e70;
}
.readiness-key span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.readiness-key i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d9a79;
}
.readiness-key i.quiet {
  background: #dce7df;
}
.district-chart h3 {
  font-size: 12px;
  margin: 4px 0 12px;
  color: #667c6e;
}
.district-bar {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: none;
  text-align: left;
}
.district-bar > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #5f7768;
  margin-bottom: 8px;
}
.district-bar strong {
  font-size: 12px;
  color: #254a37;
}
.district-track {
  display: block;
  height: 7px;
  border-radius: 5px;
  background: #f0f4f1;
  overflow: hidden;
}
.district-track i {
  display: block;
  height: 100%;
  width: var(--bar-width);
  background: #64ae95;
  border-radius: 5px;
  animation: district-grow 0.7s ease-out;
}
.district-bar:nth-of-type(2) i {
  background: #79a8cb;
}
.district-bar:nth-of-type(3) i {
  background: #b49bc9;
}
.district-bar:nth-of-type(4) i {
  background: #d9b473;
}
.district-bar:nth-of-type(5) i {
  background: #84b4a4;
}
.district-bar:hover .district-track {
  background: #dcece2;
}
.response-card.response-urgent {
  border-left: 3px solid #d75c55;
  background: linear-gradient(110deg, #fff7f5, #fff 65%);
}
.response-card.response-preparing {
  border-left: 3px solid #d9a04d;
  background: linear-gradient(110deg, #fffaf0, #fff 65%);
}
.response-urgent .progress > span {
  background: #d97569;
}
.response-preparing .progress > span {
  background: #d6aa62;
}
.response-card .badge .live-dot {
  animation: status-breathe 3s ease-in-out infinite;
}
.ongoing-activity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-top: 1px solid #e6ece8;
  background: #fff;
  text-align: left;
}
.ongoing-activity:hover {
  background: #f8fbf9;
}
.ongoing-icon {
  width: 36px;
  height: 36px;
  background: #e9f5ed;
  border-radius: 10px;
  color: #35956f;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ongoing-activity > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.ongoing-activity strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ongoing-activity small {
  display: block;
  font-size: 11px;
  color: #74877b;
  margin: 5px 0;
}
.ongoing-tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fff4df;
  color: #997022;
}
.ongoing-activity > .icon {
  width: 16px;
  color: #8b9c91;
}
.community-shell .responses-panel .response-card {
  display: block;
}
.community-shell .community-banner {
  min-height: 165px;
}
.community-shell .dashboard-grid {
  align-items: start;
}
@keyframes presence {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  90%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
@keyframes district-grow {
  from {
    width: 0;
  }
  to {
    width: var(--bar-width);
  }
}
@keyframes status-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@media (max-width: 1100px) {
  .response-watch {
    align-items: stretch;
  }
  .watch-totals {
    flex: 1 1 100%;
  }
  .watch-total {
    flex: 1;
  }
  .insights-grid {
    gap: 16px;
    padding: 8px 18px 20px;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 1.2fr);
  }
  .readiness-ring {
    width: 136px;
    height: 136px;
  }
}
@media (max-width: 800px) {
  .community-shell .dashboard-grid {
    gap: 20px;
  }
  .insights-grid {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1.4fr);
  }
}
@media (max-width: 540px) {
  .watch-totals {
    display: grid;
  }
  .watch-total > span {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 8px 18px 22px;
  }
  .readiness-chart {
    padding-bottom: 18px;
    border-bottom: 1px solid #e6ece8;
  }
  .readiness-key {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .readiness-ring {
    width: 150px;
    height: 150px;
  }
  .community-shell .responses-panel .response-card {
    display: block;
  }
  .ongoing-activity {
    padding: 15px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .presence-dot:after,
  .district-track i,
  .response-card .badge .live-dot {
    animation: none;
  }
}
/* Keep both overview columns balanced as response content grows. */
@media (min-width: 801px) {
  .community-shell .dashboard-grid {
    align-items: stretch;
  }
  .dashboard-main-column {
    grid-template-rows: minmax(420px, 1fr) auto;
    align-self: stretch;
  }
  .dashboard-main-column > .card:first-child {
    display: flex;
    flex-direction: column;
  }
  .dashboard-main-column > .card:first-child .map-wrap {
    flex: 1;
    min-height: 380px;
    height: auto;
  }
  .dashboard-main-column > .card:first-child .map-legend {
    margin-top: auto;
  }
  .community-shell .responses-panel {
    max-height: 720px;
    overflow-y: auto;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }
  .community-shell .responses-panel > .card-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }
  .community-shell .ongoing-panel {
    max-height: 330px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .community-shell .side-column {
    align-content: start;
  }
}
.product-credit {
  margin-top: 10px;
  padding-top: 10px;
  gap: 8px;
  font-size: 11px;
}
.keenpillar-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  color: #58776a;
}
.keenpillar-credit:hover {
  color: #075943;
}
.keenpillar-credit:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.keenpillar-credit img {
  width: 18px;
  height: 18px;
  margin: 0;
}
.keenpillar-credit strong {
  font-weight: 650;
}
.community-shell .member-button .profile-chevron {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-left: 4px;
  transition: transform 0.18s;
}
.member-button[aria-expanded='true'] .profile-chevron {
  transform: rotate(180deg);
}
/* Forest-green community header with a restrained helping-hands pixel accent. */
.community-shell .community-header {
  background: #123e34;
  color: #fff;
  border-bottom-color: #254e43;
  box-shadow: 0 3px 16px #173e3812;
}
.community-shell .community-brand {
  color: #fff;
}
.community-shell .community-brand em {
  color: #c3e9bd;
}
.community-shell .community-brand small {
  color: #afcdbd;
}
.community-shell .community-workspace {
  color: #f0f7f2;
  border-left-color: #3c6256;
}
.community-shell .community-workspace small {
  color: #adc8b9;
}
.community-shell .community-workspace > .icon:first-child {
  color: #c7eeb4;
}
.community-shell .navigation-toggle,
.community-shell .navigation-toggle[aria-expanded='true'],
.community-shell .community-tools .icon-button,
.community-shell .member-button {
  background: #1b483c;
  color: #ecf6ef;
  border-color: #496b5f;
}
.community-shell .member-button small {
  color: #bdd2c5;
}
.community-shell .community-tools button:hover,
.community-shell .navigation-toggle:hover {
  background: #285a49;
  border-color: #82aa94;
}
.community-shell .community-tools .profile-dropdown button:hover {
  background: #edf5ef;
  border-color: transparent;
}
.community-shell .community-tools .profile-dropdown button {
  color: #203a34;
}
.community-shell .community-tools .profile-dropdown .profile-logout {
  color: #b64138;
}
.brand-symbol {
  position: relative;
  display: block;
  flex-shrink: 0;
}
.brand-symbol img {
  position: relative;
  z-index: 1;
}
.brand-pixels {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #c9efaa;
  left: -5px;
  top: 4px;
  box-shadow:
    7px -6px #88d7b5,
    19px -4px #e0f3c2,
    40px 8px #85cbae,
    43px 24px #c9efaa,
    30px 41px #88d7b5;
  animation: helping-pixels 6s steps(4, end) infinite;
  pointer-events: none;
}
@keyframes helping-pixels {
  0%,
  100% {
    transform: translateY(2px);
    opacity: 0.25;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
  70% {
    transform: translateY(-6px);
    opacity: 0.35;
  }
}
@media (max-width: 1100px) {
  .community-shell .member-button {
    width: 58px;
    flex-basis: 58px;
    gap: 4px;
  }
  .community-shell .member-button > span:last-of-type {
    display: none;
  }
  .community-shell .member-button .profile-chevron {
    margin-left: 0;
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}
@media (max-width: 600px) {
  .community-shell .member-button {
    width: 54px;
    flex-basis: 54px;
  }
  .community-shell .community-brand > .brand-symbol {
    display: block;
  }
  .brand-pixels {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-pixels {
    animation: none;
    opacity: 0.5;
  }
  .community-shell .member-button .profile-chevron {
    transition: none;
  }
}
/* Keep the complete wordmark visible on phones instead of hiding the brand. */
@media (max-width: 600px) {
  .community-shell .community-brand {
    display: flex;
    white-space: nowrap;
  }
  .community-shell .community-brand > span {
    display: block;
  }
  .community-shell .community-brand .brand-symbol {
    display: block;
  }
  .community-shell .community-brand small {
    display: block;
  }
  .community-shell .community-workspace {
    display: none;
  }
  .community-shell .member-button > span:last-of-type {
    display: block;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
    line-height: 1.3;
  }
  .community-shell .member-button small {
    font-size: 10px;
    margin-top: 3px;
  }
}
.management-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid #d9e8df;
  border-radius: 14px;
  background: #edf5ef;
}
.management-summary > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.management-summary strong,
.management-summary small {
  display: block;
}
.management-summary strong {
  font-size: 14px;
}
.management-summary small {
  font-size: 12px;
  color: #678071;
  margin-top: 5px;
}
.managed-user {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) auto;
  align-items: center;
  border-top: 1px solid #e6ece8;
}
.managed-user-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.managed-user-person h3 {
  font-size: 14px;
}
.managed-user-person p,
.managed-user-access p {
  font-size: 12px;
  color: #718779;
  line-height: 1.6;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.managed-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.role-management {
  margin-top: 20px;
}
.role-detail {
  border-top: 1px solid #e6ece8;
  padding: 14px 0;
}
.role-detail:first-child {
  border-top: 0;
}
.role-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  min-height: 44px;
}
.role-detail small {
  display: block;
  font-size: 11px;
  color: #718779;
  font-weight: 400;
  margin-top: 5px;
}
.role-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}
.district-assignment {
  border: 1px solid #e0e9e2;
  padding: 16px;
  border-radius: 10px;
  min-width: 0;
}
.district-assignment legend {
  font-size: 13px;
  font-weight: 650;
  padding: 0 6px;
}
.district-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
  max-height: 220px;
  overflow: auto;
}
.permission-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.district-checkboxes .checkbox-line,
.permission-checkboxes .checkbox-line {
  align-items: flex-start;
  font-size: 12px;
}
.district-checkboxes input,
.permission-checkboxes input {
  flex-shrink: 0;
}
.response-watch {
  display: grid;
  grid-template-columns: 1fr;
  padding: 20px 22px;
  gap: 18px;
  background: linear-gradient(115deg, #fff, #f8fbf9);
  border-color: #d9e6de;
}
.watch-summary {
  padding: 0 2px;
}
.watch-summary h2 {
  font-size: 18px;
  line-height: 1.4;
}
.watch-summary p {
  font-size: 12px;
  margin-top: 4px;
}
.watch-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.watch-total {
  padding: 14px 16px;
  min-height: 64px;
  gap: 12px;
}
.watch-total .icon {
  width: 22px;
  height: 22px;
}
.watch-total strong {
  font-size: 24px;
  line-height: 1;
}
.watch-total > span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.6;
  font-size: 12px;
}
@media (max-width: 800px) {
  .managed-user {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .managed-user-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .watch-total {
    padding: 12px;
    font-size: 11px;
  }
  .watch-total > span {
    font-size: 11px;
  }
}
@media (max-width: 540px) {
  .management-summary {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }
  .managed-user {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .managed-user-actions {
    justify-content: space-between;
  }
  .district-checkboxes,
  .permission-checkboxes {
    grid-template-columns: 1fr 1fr;
  }
  .response-watch {
    padding: 18px 16px;
    gap: 15px;
  }
  .watch-summary h2 {
    font-size: 16px;
  }
  .watch-summary p {
    font-size: 11px;
  }
  .watch-totals {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .watch-total {
    min-height: 54px;
    padding: 12px 14px;
  }
  .watch-total > span {
    font-size: 12px;
  }
  .watch-total strong {
    font-size: 21px;
  }
}
.watch-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.presence-frame {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid #d8e9df;
  background: #eef7f1;
  border-radius: 12px;
}
.presence-frame.urgent {
  border-color: #f1d9d6;
  background: #fff2f0;
}
.watch-summary > div {
  min-width: 0;
}
.watch-summary h2 {
  margin: 0;
}
.watch-summary p {
  line-height: 1.6;
}
/* Small pieces gather into the helping-heart emblem, then rest. */
.brand-symbol {
  isolation: isolate;
}
.brand-gather {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: block;
}
.brand-gather i {
  position: absolute;
  background: #d2f8bb;
  animation-delay: var(--delay, 0s);
}
.brand-gather i:nth-child(1) {
  --x: -24px;
  --y: -18px;
}
.brand-gather i:nth-child(2) {
  --x: 0px;
  --y: -28px;
  --delay: 0.05s;
}
.brand-gather i:nth-child(3) {
  --x: 24px;
  --y: -18px;
  --delay: 0.1s;
}
.brand-gather i:nth-child(4) {
  --x: 29px;
  --y: 0px;
  --delay: 0.15s;
}
.brand-gather i:nth-child(5) {
  --x: 23px;
  --y: 22px;
  --delay: 0.2s;
}
.brand-gather i:nth-child(6) {
  --x: 0px;
  --y: 28px;
  --delay: 0.25s;
}
.brand-gather i:nth-child(7) {
  --x: -22px;
  --y: 22px;
  --delay: 0.2s;
}
.brand-gather i:nth-child(8) {
  --x: -29px;
  --y: 0px;
  --delay: 0.15s;
}
.brand-gather i:nth-child(9) {
  --x: -15px;
  --y: -27px;
  --delay: 0.1s;
}
.brand-gather i:nth-child(10) {
  --x: 14px;
  --y: -27px;
  --delay: 0.05s;
}
.brand-gather i:nth-child(11) {
  --x: 15px;
  --y: 27px;
  --delay: 0.15s;
}
.brand-gather i:nth-child(12) {
  --x: -15px;
  --y: 27px;
  --delay: 0.1s;
}
.brand-gather i:nth-child(3n) {
  background: #fff;
}
.brand-gather i:nth-child(3n + 1) {
  background: #86d6b1;
}
@keyframes gather-to-heart {
  0% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.6);
  }
  5% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) scale(1);
  }
  19% {
    opacity: 1;
    transform: translate(0, 0) scale(0.8);
  }
  24%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
}
@keyframes community-emblem {
  0%,
  7% {
    opacity: 0.4;
    transform: scale(0.92);
  }
  25%,
  94%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-symbol img {
    animation: none;
  }
}
.community-platform-grid {
  display: grid;
}
.platform-community-metrics {
  display: grid;
}
.platform-community-metrics small {
  display: block;
  color: #6d8175;
}
.platform-community-metrics strong {
  text-transform: capitalize;
}
.platform-community .card-footer {
  justify-content: flex-start;
}
.area-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px 0;
  max-height: 180px;
  overflow: auto;
}
.brand-gather i {
  width: 1.5px;
  height: 1.5px;
  left: calc(50% - 0.75px);
  top: calc(50% - 0.75px);
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 800px) {
  .community-platform-grid {
    grid-template-columns: 1fr;
  }
}
/* Play once after an irregular quiet interval, rather than looping. */
.brand-symbol img {
  animation: none;
}
.brand-gather i {
  opacity: 0;
  animation: none;
}
.brand-symbol.is-gathering img {
  animation: community-logo-reveal 2.8s ease-in-out 1;
}
.brand-symbol.is-gathering .brand-gather i {
  animation: community-pixel-gather 2.6s ease-in-out 1;
  animation-delay: var(--delay, 0s);
}
@keyframes community-pixel-gather {
  0% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.5);
  }
  12% {
    opacity: 0.9;
    transform: translate(var(--x), var(--y)) scale(1);
  }
  65% {
    opacity: 0.9;
    transform: translate(0, 0) scale(0.7);
  }
  82%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
}
@keyframes community-logo-reveal {
  0%,
  15% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  75%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 360px) {
  .community-shell .community-tools {
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
  }
  .community-shell .community-tools .member-button {
    max-width: 170px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .community-shell .member-button > span:last-of-type {
    max-width: 96px;
    font-size: 10px;
  }
  .community-shell .member-button .avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .community-shell .member-button .profile-chevron {
    flex-shrink: 0;
  }
  .community-shell .community-tools .icon-button {
    width: 40px;
    flex-basis: 40px;
  }
  .community-shell .minutes-list {
    scrollbar-width: none;
  }
  .community-shell .minutes-list::-webkit-scrollbar {
    display: none;
  }
  .community-shell .card-header > div {
    flex: 1;
  }
  .community-shell .card-header > .icon-button {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-symbol.is-gathering img,
  .brand-symbol.is-gathering .brand-gather i {
    animation: none;
  }
  .brand-gather {
    display: none;
  }
}
.card-header > .presence-frame {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
}
.presence-frame .presence-dot {
  margin: 0;
}
.presence-frame.amber {
  background: #fff8ea;
  border-color: #f1e1bd;
}
.presence-frame.amber .presence-dot {
  background: #c99337;
  box-shadow: 0 0 0 5px #c9933712;
}
.presence-frame.amber .presence-dot:after {
  color: #c99337;
}
/* Compact community workspace tiles. */
.community-platform-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  align-items: start;
}
.platform-community .card-header {
  padding: 17px 18px 12px;
  align-items: flex-start;
  gap: 12px;
}
.platform-community .card-header h2 {
  font-size: 16px;
  line-height: 1.4;
}
.platform-community .card-header .subtext {
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}
.platform-community .card-header > .badge {
  text-transform: capitalize;
  font-size: 10px;
  padding: 5px 8px;
  margin-top: 2px;
}
.platform-community .card-body {
  padding: 6px 18px 15px;
}
.platform-community-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 0;
  border-top: 1px solid #edf1ed;
  border-bottom: 1px solid #edf1ed;
}
.platform-community-metrics small {
  font-size: 10px;
  margin-bottom: 5px;
  line-height: 1.4;
}
.platform-community-metrics strong {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.platform-community .card-body > .subtext {
  font-size: 11px;
  line-height: 1.6;
}
.platform-community .card-footer {
  padding: 11px 18px;
  gap: 7px;
  background: #fafcfb;
}
.platform-community .card-footer .btn {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 38px;
  flex: 0 1 auto;
}
.platform-community .card-footer .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 400px) {
  .platform-community-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }
  .platform-community .card-footer .btn:first-child {
    flex-basis: 100%;
  }
  .platform-community .card-footer .btn {
    flex: 1;
  }
  .platform-community .card-header,
  .platform-community .card-body,
  .platform-community .card-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
}
/* Shared compact density across workspaces, forms and dialogs. */
:root {
  --radius: 14px;
}
.community-shell .content {
  padding-top: 23px;
  padding-bottom: 30px;
}
.community-shell .page-heading {
  margin-bottom: 18px;
  gap: 14px;
}
.community-shell .page-heading h1 {
  font-size: clamp(25px, 2vw, 30px);
}
.page-heading .subtext {
  margin-top: 5px;
  line-height: 1.55;
}
.community-shell .eyebrow {
  margin-bottom: 5px;
}
.community-shell .card-header {
  padding: 15px 17px 12px;
  gap: 10px;
}
.community-shell .card-header h2 {
  font-size: 15px;
}
.community-shell .card-header .subtext {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.55;
}
.community-shell .card-body {
  padding: 16px 17px;
}
.community-shell .card-footer {
  padding: 10px 17px;
  gap: 8px;
}
.community-shell .stats-grid {
  gap: 12px;
  margin-bottom: 18px;
}
.community-shell .stat-card {
  padding: 15px 17px;
}
.community-shell .stat-number {
  font-size: 29px;
  margin: 6px 0;
}
.community-shell .stat-foot {
  font-size: 11px;
  line-height: 1.5;
}
.community-shell .dashboard-grid,
.community-shell .bottom-grid {
  gap: 17px;
}
.dashboard-main-column,
.community-shell .side-column {
  gap: 17px;
}
.community-shell .bottom-grid {
  margin-top: 18px;
}
.form-grid {
  gap: 12px 16px;
}
.form-field {
  gap: 4px;
}
.form-field > label,
.form-label {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.form-hint {
  font-size: 11px;
  line-height: 1.5;
}
.input,
.select,
.textarea {
  font-size: 13px;
  padding: 8px 10px;
  min-height: 38px;
  border-radius: 8px;
  line-height: 1.45;
}
.select {
  padding-right: 30px;
}
.textarea {
  min-height: 90px;
}
.btn {
  font-size: 13px;
  padding: 8px 12px;
  min-height: 38px;
}
.btn.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.text-button {
  font-size: 12px;
  min-height: 34px;
}
.heading-actions {
  gap: 8px;
}
.toolbar {
  gap: 8px;
  margin-bottom: 16px;
}
.settings-grid,
.event-grid,
.response-grid,
.volunteer-grid,
.stock-card-grid {
  gap: 16px;
}
.settings-field {
  padding: 11px 0;
  font-size: 13px;
}
.mini-list-row {
  padding-top: 11px;
  padding-bottom: 11px;
}
.volunteer-card {
  padding: 17px;
}
.response-card {
  padding: 15px 17px;
}
.event-row {
  padding: 13px 17px;
  gap: 12px;
}
.activity-list {
  padding: 0 17px 13px;
}
.activity-item {
  padding: 10px 0;
}
.event-card .card-body,
.stock-card {
  padding: 17px;
}
.data-table th {
  padding: 11px 14px;
}
.data-table td {
  padding: 12px 14px;
  font-size: 13px;
}
.summary-banner {
  padding: 17px;
  gap: 12px;
}
.availability-toggle {
  padding: 15px;
}
.ai-panel {
  padding: 17px;
}
.minute-item {
  padding: 13px;
}
.demo-strip {
  margin-bottom: 18px;
}
.management-summary {
  padding: 14px 17px;
  margin-bottom: 17px;
}
.managed-user {
  padding: 14px 17px;
  gap: 14px;
}
.modal-backdrop {
  padding: 18px;
}
.modal {
  width: min(580px, 100%);
  max-height: calc(100dvh - 36px);
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.5;
}
.modal.wide {
  width: min(820px, 100%);
}
.modal-header {
  padding: 14px 18px 12px;
  gap: 12px;
  align-items: center;
}
.modal-header h2 {
  font-size: 17px;
  line-height: 1.35;
}
.modal-header p {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}
.modal-body {
  padding: 14px 18px;
}
.modal-body h3 {
  font-size: 14px;
  line-height: 1.4;
}
.modal-body h4 {
  font-size: 13px;
  line-height: 1.4;
}
.modal-body .check-line,
.modal-body .checkbox-line {
  font-size: 13px;
  line-height: 1.45;
}
.modal-body .check-line input,
.modal-body .checkbox-line input {
  flex-shrink: 0;
}
.modal-body .icon {
  width: 19px;
  height: 19px;
}
.modal-footer {
  padding: 10px 18px;
  gap: 8px;
  border-radius: 0 0 15px 15px;
}
.modal-footer .btn {
  min-height: 38px;
  font-size: 12px;
  padding: 8px 12px;
}
.modal .input,
.modal .select,
.modal .textarea {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
}
.modal .search-box .input {
  padding-left: 38px;
}
.modal .form-field > label {
  font-size: 12px;
}
.modal .form-hint {
  font-size: 11px;
}
.modal .form-grid {
  gap: 12px 16px;
}
.modal .district-assignment {
  padding: 12px;
}
.modal .district-checkboxes {
  gap: 8px;
  max-height: 170px;
}
.modal .community-config-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.modal .community-config-grid .form-field.full {
  grid-column: 1/-1;
}
@media (max-width: 800px) {
  .modal .community-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px), (pointer: coarse) {
  .btn,
  .btn.small,
  .text-button {
    min-height: 44px;
  }
  .input,
  .select,
  .textarea,
  .modal .input,
  .modal .select,
  .modal .textarea {
    min-height: 44px;
    font-size: 16px !important;
  }
  .modal-footer .btn {
    min-height: 44px;
  }
  .community-shell .card-header > .icon-button {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 540px) {
  .community-shell .content {
    padding-top: 19px;
  }
  .community-shell .page-heading h1 {
    font-size: 25px;
  }
  .community-shell .card-header {
    padding: 14px 15px 11px;
  }
  .community-shell .card-body {
    padding: 15px;
  }
  .community-shell .card-footer {
    padding: 11px 15px;
  }
  .community-shell .stat-card {
    padding: 13px;
  }
  .community-shell .stats-grid {
    gap: 10px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal,
  .modal.wide {
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }
  .modal-header {
    padding: 14px 16px 12px;
  }
  .modal-header h2 {
    font-size: 17px;
  }
  .modal-body {
    padding: 15px 16px;
  }
  .modal-footer {
    padding: 11px 16px;
  }
  .modal .form-grid,
  .modal .community-config-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .form-field > label,
  .modal .form-field > label {
    font-size: 12px;
  }
  .community-shell .minute-item {
    padding: 13px 15px;
  }
  .community-shell .managed-user {
    padding: 15px;
  }
  .community-shell .event-row {
    padding: 13px 15px;
  }
}
@media (max-width: 600px) {
  .community-shell .community-tools .member-button {
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .community-shell .member-button .avatar {
    display: inline-flex;
  }
}
.profile-search-mobile {
  display: none !important;
}
/* One aligned mobile header row; search remains available in the profile menu. */
@media (max-width: 600px) {
  .community-shell {
    --header-height: 68px;
  }
  .community-shell .community-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: 42px;
    gap: 8px;
    height: 68px;
    padding: 13px 12px;
  }
  .community-shell .navigation-toggle {
    grid-column: 1;
    grid-row: 1;
  }
  .community-shell .community-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    letter-spacing: -0.6px;
  }
  .community-shell .community-brand small {
    margin-top: 4px;
  }
  .community-shell .community-tools {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    justify-self: end;
    margin: 0;
  }
  .community-shell .community-tools .icon-button {
    width: 42px;
    flex: 0 0 42px;
  }
  .community-shell .community-tools .member-button {
    max-width: 42px;
    flex: 0 0 42px;
  }
  .community-shell .member-button > span:last-of-type,
  .community-shell .member-button .profile-chevron {
    display: none;
  }
}
@media (max-width: 360px) {
  .community-shell .community-header {
    padding-left: 8px;
    padding-right: 8px;
    column-gap: 6px;
  }
  .community-shell .community-brand {
    font-size: 13px;
    gap: 6px;
    letter-spacing: -0.5px;
  }
  .community-shell .community-brand img {
    width: 26px;
    height: 26px;
  }
  .community-shell .community-brand small {
    font-size: 5px;
    letter-spacing: 0.8px;
  }
  .community-shell .community-tools {
    gap: 4px;
  }
}
/* Equal space for community coordination and externally sourced awareness. */
.overview-headlines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 18px;
}
.overview-headlines .response-watch {
  margin: 0;
  padding: 18px;
  align-content: start;
  gap: 16px;
}
.overview-headlines .watch-total strong {
  font-size: 21px;
}
.overview-headlines .watch-summary p {
  font-size: 11px;
}
.news-snapshot {
  display: flex;
  flex-direction: column;
}
.news-snapshot .card-header {
  align-items: center;
}
.news-snapshot .card-header .text-button {
  flex-shrink: 0;
  gap: 3px;
}
.news-article {
  padding: 18px 20px;
  border-top: 1px solid #e6ece8;
  min-width: 0;
}
.news-article.compact {
  padding: 11px 17px;
}
.news-source-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: #668071;
  font-size: 11px;
  margin-bottom: 7px;
}
.news-source-mark {
  display: inline-flex;
  color: #47806a;
}
.news-source-mark .icon {
  width: 14px;
  height: 14px;
}
.news-source-line .badge {
  font-size: 9px;
  padding: 3px 6px;
}
.news-article h3 {
  font: 650 15px/1.5 var(--font-ui);
  letter-spacing: 0;
}
.news-article.compact h3 {
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-article h3 a:hover {
  color: #087258;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: #687e71;
  margin-top: 8px;
  max-width: 950px;
}
.news-article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #7a8d80;
  margin-top: 8px;
}
.news-urgent {
  border-left: 3px solid #cf5751;
  background: linear-gradient(110deg, #fff5f3, #fff 75%);
}
.news-priority {
  border-left: 3px solid #d5a04a;
  background: linear-gradient(110deg, #fffaf0, #fff 75%);
}
.news-snapshot-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 17px;
  border-top: 1px solid #e6ece8;
  background: #fafcfb;
}
.news-freshness,
.news-snapshot-footer small {
  font-size: 10px;
  color: #7a8d80;
  line-height: 1.5;
}
.news-freshness.stale {
  color: #a2752b;
}
.news-toolbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.news-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-category-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #6d8275;
}
.news-category-label .select {
  width: 150px;
}
.news-page-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7b8c81;
  padding-bottom: 12px;
}
.news-results .news-article:first-child {
  border-top: 0;
}
@media (max-width: 800px) {
  .overview-headlines {
    grid-template-columns: minmax(0, 1fr);
  }
  .news-article {
    padding: 16px;
  }
  .news-category-label {
    width: 100%;
    justify-content: space-between;
  }
  .news-category-label .select {
    width: 180px;
  }
  .news-snapshot .news-article.compact h3 {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .community-shell .community-tools .member-button {
    border: 1px solid #496b5f;
    border-radius: 11px;
    background: #1b483c;
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-basis: 42px;
  }
  .community-shell .member-button .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .community-shell .community-tools {
    gap: 5px;
  }
  .community-shell .community-header {
    column-gap: 7px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .community-shell .community-brand {
    font-size: 14px;
    gap: 6px;
  }
  .community-shell .community-brand img {
    width: 28px;
    height: 28px;
  }
  .community-shell .community-brand small {
    font-size: 5.5px;
    letter-spacing: 0.8px;
  }
}
@media (max-width: 380px) {
  .community-shell {
    --header-height: 64px;
  }
  .community-shell .community-header {
    height: 64px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: 38px;
    padding: 13px 8px;
    column-gap: 6px;
  }
  .community-shell .navigation-toggle,
  .community-shell .community-tools .icon-button,
  .community-shell .community-tools .member-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
  }
  .community-shell .community-tools {
    gap: 4px;
  }
  .community-shell .community-brand {
    font-size: 12px;
    gap: 5px;
    letter-spacing: -0.5px;
  }
  .community-shell .community-brand img {
    width: 24px;
    height: 24px;
  }
  .community-shell .community-brand small {
    font-size: 4.8px;
    letter-spacing: 0.5px;
  }
}
@media (max-width: 330px) {
  .community-shell .community-brand {
    font-size: 11px;
    gap: 4px;
  }
  .community-shell .community-brand img {
    width: 22px;
    height: 22px;
  }
  .community-shell .community-brand small {
    font-size: 4.3px;
    letter-spacing: 0.4px;
  }
}
.overview-news-tabs {
  display: flex;
  gap: 5px;
  padding: 0 17px 10px;
}
.overview-news-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid #e0e9e2;
  border-radius: 7px;
  background: white;
  color: #6d8376;
  min-height: 32px;
}
.overview-news-tabs button.active {
  background: #eaf4ee;
  color: #176147;
  border-color: #cce0d3;
  font-weight: 650;
}
.overview-news-tabs .icon {
  width: 13px;
  height: 13px;
}
.news-empty-local {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  flex: 1;
  align-content: center;
  min-height: 130px;
}
.news-empty-local .presence-frame {
  width: 38px;
  height: 38px;
  color: #6d9d83;
}
.news-empty-local .presence-frame .icon {
  width: 18px;
  height: 18px;
}
.news-empty-local small {
  grid-column: 2;
  font-size: 10px;
  color: #7b8e81;
}
/* Empty and single-report news panels follow the same top-aligned list rhythm. */
.news-snapshot {
  justify-content: flex-start;
}
.news-snapshot .news-empty-local {
  flex: 0;
  min-height: 0;
  align-content: start;
  align-items: start;
  padding: 14px 17px 18px;
  gap: 5px 12px;
}
.news-empty-local .presence-frame {
  grid-row: 1 / span 2;
}
.news-empty-local .subtext {
  margin: 0;
  line-height: 1.6;
}
.news-empty-local small {
  line-height: 1.5;
}
.news-snapshot-footer {
  margin-top: 0;
}
.news-snapshot .news-article.compact {
  flex: 0 0 auto;
}
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid #e6ece8;
  background: #fafcfb;
  font-size: 12px;
  color: #6b8173;
}
.news-pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-pagination .btn {
  font-size: 12px;
}
.news-pagination > div > span {
  white-space: nowrap;
  font-size: 11px;
}
@media (max-width: 540px) {
  .news-pagination {
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .news-pagination > div {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
}
/* Equal-sized overview panels with top-aligned content and balanced status rows. */
.overview-headlines {
  align-items: stretch;
}
.overview-headlines > .response-watch,
.overview-headlines > .news-snapshot {
  height: 100%;
  min-width: 0;
}
.overview-headlines > .response-watch {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 17px;
}
.overview-headlines .watch-summary {
  flex: 0 0 auto;
  min-height: 48px;
}
.overview-headlines .watch-totals {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(46px, 1fr));
  gap: 8px;
  flex: 1;
  width: 100%;
}
.overview-headlines .watch-total {
  height: 100%;
  min-height: 46px;
  padding: 10px 13px;
  align-items: center;
}
.overview-headlines .news-snapshot {
  display: flex;
  flex-direction: column;
}
.overview-headlines .news-snapshot .card-header {
  min-height: 65px;
  padding: 15px 17px 10px;
}
.overview-headlines .news-snapshot-footer {
  margin-top: auto;
  padding: 9px 17px;
}
.overview-headlines .news-article.compact {
  padding-top: 10px;
  padding-bottom: 10px;
}
.overview-headlines .news-empty-report {
  margin-bottom: 12px;
}
@media (max-width: 800px) {
  .overview-headlines > .response-watch,
  .overview-headlines > .news-snapshot {
    height: auto;
  }
  .overview-headlines .watch-totals {
    grid-template-rows: repeat(3, minmax(46px, auto));
  }
  .overview-headlines .news-snapshot-footer {
    margin-top: 0;
  }
}
/* Match panel alignment without centring the response heading. */
.overview-headlines > .response-watch {
  align-items: stretch;
}
.overview-headlines .watch-summary {
  width: 100%;
  justify-content: start;
  text-align: left;
  align-self: stretch;
  grid-template-columns: 44px minmax(0, 1fr);
}
.overview-headlines .watch-summary > div {
  justify-self: start;
  width: 100%;
}
.overview-headlines .watch-summary h2 {
  font-size: 16px;
  line-height: 1.4;
}
.overview-headlines .watch-summary p {
  line-height: 1.5;
}
.profile-theme-options {
  margin: 8px 4px 5px;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 5px;
}
.profile-theme-options legend {
  font-size: 10px;
  color: var(--muted);
  padding-right: 7px;
}
.profile-theme-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-height: 36px;
  font-size: 11px;
  background: #f8fbf9;
  border: 1px solid #e1e9e3;
  border-radius: 7px;
}
.profile-theme-options .icon {
  width: 13px;
  height: 13px;
}
.profile-theme-options button[aria-pressed='true'] {
  background: #e9f4ec;
  border-color: #bcd8c6;
  color: #176147;
  font-weight: 650;
}
/* Dark theme preserves green branding and semantic risk colours. */
:root[data-theme='dark'] {
  --bg: #0e1914;
  --white: #18281f;
  --text: #e0eee4;
  --muted: #a2b7a9;
  --border: #30463a;
  --mint: #213c2d;
  --green: #7bc6a4;
  color: #e0eee4;
  background: #0e1914;
}
[data-theme='dark'] body {
  background: #0e1914;
  color: #e0eee4;
}
[data-theme='dark'] .community-shell {
  --bg: #0e1914;
  --white: #18281f;
  --text: #e0eee4;
  --muted: #a2b7a9;
  --border: #30463a;
  --green: #7bc6a4;
  background: #0e1914;
  color: #e0eee4;
}
[data-theme='dark'] .community-shell .community-header {
  background: #092c21;
  border-color: #2e5240;
}
[data-theme='dark'] .card,
[data-theme='dark'] .stat-card,
[data-theme='dark'] .volunteer-card,
[data-theme='dark'] .stock-card,
[data-theme='dark'] .incident-card,
[data-theme='dark'] .event-card,
[data-theme='dark'] .community-navigation,
[data-theme='dark'] .profile-dropdown,
[data-theme='dark'] .modal,
[data-theme='dark'] .install-dialog,
[data-theme='dark'] .table-wrap,
[data-theme='dark'] .join-form {
  background: #18281f;
  color: #e0eee4;
  border-color: #30463a;
}
[data-theme='dark'] .community-shell h1,
[data-theme='dark'] .community-shell h2,
[data-theme='dark'] .community-shell h3,
[data-theme='dark'] .modal h2,
[data-theme='dark'] .profile-menu-heading strong,
[data-theme='dark'] .install-help strong {
  color: #e7f2e9;
}
[data-theme='dark'] .input,
[data-theme='dark'] .select,
[data-theme='dark'] .textarea,
[data-theme='dark'] .notes-editor,
[data-theme='dark'] .map-filter,
[data-theme='dark'] .data-table th {
  background: #122018;
  color: #dfede3;
  border-color: #3c5546;
}
[data-theme='dark'] .btn {
  background: #203429;
  color: #deece3;
  border-color: #3b5545;
}
[data-theme='dark'] .community-shell .btn.primary,
[data-theme='dark'] .btn.primary {
  background: #237b58;
  color: #fff;
  border-color: #348b67;
}
[data-theme='dark'] .btn.soft {
  background: #264334;
  color: #a8debf;
  border-color: #3a634b;
}
[data-theme='dark'] .btn:hover {
  background: #2c4737;
}
[data-theme='dark'] .btn.primary:hover {
  background: #2b8a64;
}
[data-theme='dark'] .modal-header,
[data-theme='dark'] .modal-footer,
[data-theme='dark'] .card-footer,
[data-theme='dark'] .news-snapshot-footer,
[data-theme='dark'] .news-pagination,
[data-theme='dark'] .platform-community .card-footer {
  background: #16251c;
  border-color: #30463a;
}
[data-theme='dark'] .response-watch {
  background: #192c21;
  border-color: #344d3c;
}
[data-theme='dark'] .watch-total.urgent,
[data-theme='dark'] .presence-frame.urgent,
[data-theme='dark'] .news-urgent,
[data-theme='dark'] .response-card.response-urgent {
  background: #38231f;
  border-color: #6d4038;
  color: #f4aaa0;
}
[data-theme='dark'] .watch-total.preparing,
[data-theme='dark'] .presence-frame.amber,
[data-theme='dark'] .news-priority,
[data-theme='dark'] .response-card.response-preparing {
  background: #342e1c;
  border-color: #665832;
  color: #e9c47a;
}
[data-theme='dark'] .watch-total.ongoing,
[data-theme='dark'] .presence-frame {
  background: #213b2b;
  border-color: #3c634c;
  color: #9bd2ae;
}
[data-theme='dark'] .rail-modes,
[data-theme='dark'] .hub-link:hover,
[data-theme='dark'] .profile-theme-options button,
[data-theme='dark'] .view-toggle,
[data-theme='dark'] .summary-banner,
[data-theme='dark'] .management-summary,
[data-theme='dark'] .community-banner,
[data-theme='dark'] .ai-panel,
[data-theme='dark'] .demo-strip,
[data-theme='dark'] .minute-item,
[data-theme='dark'] .muted-box,
[data-theme='dark'] .event-lifecycle {
  background: #20382a;
  color: #bfd6c6;
  border-color: #375541;
}
[data-theme='dark'] .hub-link,
[data-theme='dark'] .rail-mode {
  color: #a5bdad;
}
[data-theme='dark'] .hub-link.active,
[data-theme='dark'] .rail-mode.active,
[data-theme='dark'] .profile-theme-options button[aria-pressed='true'],
[data-theme='dark'] .minute-item.active {
  background: #2c4b37;
  color: #d2efdc;
  border-color: #41674d;
}
[data-theme='dark'] .community-shell .community-tools .profile-dropdown button {
  color: #d7e8dc;
}
[data-theme='dark'] .profile-dropdown > button:hover,
[data-theme='dark'] .community-shell .community-tools .profile-dropdown button:hover,
[data-theme='dark'] .ongoing-activity,
[data-theme='dark'] .response-card:hover,
[data-theme='dark'] .event-row:hover {
  background: #21382a;
}
[data-theme='dark'] .profile-dropdown .profile-logout {
  color: #f1a69a !important;
}
[data-theme='dark'] .badge.green {
  background: #244932;
  color: #a0d8ae;
}
[data-theme='dark'] .badge.red {
  background: #51302a;
  color: #ffc0b4;
}
[data-theme='dark'] .badge.orange {
  background: #4b3e23;
  color: #f1d292;
}
[data-theme='dark'] .badge.blue {
  background: #263d4e;
  color: #b4d3ed;
}
[data-theme='dark'] .badge.purple {
  background: #3d314c;
  color: #d2bfe7;
}
[data-theme='dark'] .badge.neutral,
[data-theme='dark'] .skill-chip,
[data-theme='dark'] .check-chip {
  background: #293e30;
  color: #b9d0c0;
  border-color: #3a5542;
}
[data-theme='dark'] .news-excerpt,
[data-theme='dark'] .news-source-line,
[data-theme='dark'] .subtext,
[data-theme='dark'] .form-hint,
[data-theme='dark'] .news-article-meta,
[data-theme='dark'] .news-freshness,
[data-theme='dark'] .watch-summary p,
[data-theme='dark'] .managed-user-person p,
[data-theme='dark'] .managed-user-access p,
[data-theme='dark'] .form-field > label,
[data-theme='dark'] .form-label {
  color: #a2b9a9;
}
[data-theme='dark'] .readiness-ring > div {
  background: #18281f;
}
[data-theme='dark'] .readiness-ring strong,
[data-theme='dark'] .district-bar strong {
  color: #d7eddd;
}
[data-theme='dark'] .district-bar > span:first-child,
[data-theme='dark'] .district-chart h3 {
  color: #b4caba;
}
[data-theme='dark'] .district-track,
[data-theme='dark'] .progress {
  background: #2d4435;
}
[data-theme='dark'] .news-article,
[data-theme='dark'] .managed-user,
[data-theme='dark'] .role-detail,
[data-theme='dark'] .card-header,
[data-theme='dark'] .profile-menu-heading,
[data-theme='dark'] .district-assignment,
[data-theme='dark'] .data-table td {
  border-color: #30463a;
}
[data-theme='dark'] .overview-news-tabs button {
  background: #1b3023;
  border-color: #3b5745;
  color: #acc8b5;
}
[data-theme='dark'] .overview-news-tabs button.active {
  background: #2c4b37;
  color: #d2efdc;
  border-color: #507359;
}
[data-theme='dark'] .map-floating,
[data-theme='dark'] .map-style-switch {
  background: #192a21ef;
  border-color: #3b5745;
  color: #d5e7dc;
}
[data-theme='dark'] .leaflet-tile-pane {
  filter: saturate(0.5) brightness(0.72) contrast(0.95);
}
[data-theme='dark'] body > main {
  background: #18281f;
  border-color: #30463a;
  color: #e0eee4;
}
[data-theme='dark'] body > main p {
  color: #a6bead;
}
[data-theme='dark'] body > main input {
  background: #122018;
  border-color: #3b5544;
  color: #e0eee4;
}
/* Keep secondary labels legible in dark mode across dense views. */
[data-theme='dark'] .stat-label,
[data-theme='dark'] .stat-foot,
[data-theme='dark'] .stat-foot strong,
[data-theme='dark'] .response-meta,
[data-theme='dark'] .response-kicker,
[data-theme='dark'] .response-progress-label,
[data-theme='dark'] .response-progress-label strong,
[data-theme='dark'] .event-info p,
[data-theme='dark'] .event-row-end .subtext,
[data-theme='dark'] .activity-item p,
[data-theme='dark'] .activity-item time,
[data-theme='dark'] .footer-line,
[data-theme='dark'] .demo-strip button,
[data-theme='dark'] .person-info small,
[data-theme='dark'] .data-table td,
[data-theme='dark'] .data-table th,
[data-theme='dark'] .calendar-weekday,
[data-theme='dark'] .result-count,
[data-theme='dark'] .pagination,
[data-theme='dark'] .detail-label,
[data-theme='dark'] .district-chart h3,
[data-theme='dark'] .readiness-key,
[data-theme='dark'] .readiness-ring span,
[data-theme='dark'] .news-snapshot-footer small,
[data-theme='dark'] .news-page-status,
[data-theme='dark'] .platform-community-metrics small {
  color: #abc4b3;
}
[data-theme='dark'] .date-tile,
[data-theme='dark'] .weekly-day,
[data-theme='dark'] .event-stat,
[data-theme='dark'] .calendar-cell,
[data-theme='dark'] .calendar-weekday,
[data-theme='dark'] .alert-banner,
[data-theme='dark'] .availability-toggle,
[data-theme='dark'] .recipient-panel {
  background: #20382a;
  border-color: #36533f;
  color: #d3e7da;
}
[data-theme='dark'] .date-tile strong,
[data-theme='dark'] .date-tile span,
[data-theme='dark'] .weekly-day strong,
[data-theme='dark'] .event-stat strong,
[data-theme='dark'] .detail-value,
[data-theme='dark'] .data-table td strong {
  color: #d8ecdf;
}
[data-theme='dark'] .weekly-day.available,
[data-theme='dark'] .calendar-cell.today {
  background: #2a4935;
  border-color: #507259;
}
[data-theme='dark'] .calendar-event {
  background: #294d38;
  color: #c8ead3;
}
[data-theme='dark'] .mini-list-row,
[data-theme='dark'] .event-row,
[data-theme='dark'] .response-card,
[data-theme='dark'] .settings-field,
[data-theme='dark'] .editor-tools {
  border-color: #30463a;
}
/* Mobile keeps three matching controls: appearance, notifications and profile. */
@media (max-width: 600px) {
  .community-shell .community-tools .theme-toggle {
    display: inline-flex;
  }
  .community-shell .community-tools > [data-action='search'] {
    display: none;
  }
  .profile-dropdown .profile-search-mobile {
    display: flex !important;
  }
}
/* Compact navigation density. */
@media (min-width: 601px) {
  .community-shell {
    --expanded-width: 228px;
  }
  .community-navigation {
    padding: 12px 9px;
    gap: 9px;
  }
  .hub-navigation {
    gap: 3px;
  }
  .hub-link {
    min-height: 40px;
    padding: 8px 15px;
    font-size: 12px;
    gap: 11px;
  }
  .hub-link > .icon {
    width: 18px;
    height: 18px;
  }
  .rail-section-label {
    font-size: 9px;
    letter-spacing: 1.2px;
    padding: 6px 13px 2px;
  }
  .navigation-expanded .rail-mode {
    min-height: 35px;
    padding: 6px;
    font-size: 11px;
    gap: 6px;
  }
  .rail-modes {
    padding: 3px;
    border-radius: 9px;
  }
  .rail-mode .icon {
    width: 16px;
    height: 16px;
  }
  .rail-footer {
    font-size: 9px;
    min-height: 32px;
    padding: 7px 14px;
    gap: 10px;
  }
  .rail-footer > .icon {
    width: 17px;
    height: 17px;
  }
}

/* RetailSync proportions for the collapsed rail; existing theme colours stay intact. */
@media (min-width: 601px) {
  .community-shell {
    --rail-width: 88px;
  }
  .community-shell:not(.navigation-expanded) .community-navigation {
    padding: 16px 8px 10px;
    gap: 18px;
    scrollbar-width: none;
  }
  .community-shell:not(.navigation-expanded) .community-navigation::-webkit-scrollbar {
    display: none;
  }
  .community-shell:not(.navigation-expanded) .rail-modes {
    width: 100%;
    padding: 4px;
    gap: 4px;
    border-radius: 10px;
  }
  .community-shell:not(.navigation-expanded) .rail-mode {
    min-height: 54px;
    padding: 7px 2px;
    border-radius: 7px;
    gap: 5px;
    font-size: 9px;
  }
  .community-shell:not(.navigation-expanded) .rail-mode .icon {
    width: 18px;
    height: 18px;
  }
  .community-shell:not(.navigation-expanded) .hub-navigation {
    gap: 8px;
  }
  .community-shell:not(.navigation-expanded) .hub-link {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
  }
  .community-shell:not(.navigation-expanded) .community-navigation .hub-link > .icon {
    width: 21px;
    height: 21px;
  }
  .community-shell:not(.navigation-expanded) .hub-link > span:not(.hub-count),
  .community-shell:not(.navigation-expanded) .rail-footer > span {
    display: none;
  }
  .community-shell:not(.navigation-expanded) .rail-footer {
    padding: 8px 0;
    justify-content: center;
  }
  .community-shell:not(.navigation-expanded) .hub-count {
    top: 3px;
    right: 5px;
  }
}

/* Source: resources/css/workflows.css */
/* Guided tasks and consent controls share the compact card spacing. */
.quick-start-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 16px;
  margin-bottom: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}
.quick-start-panel > div:first-child {
  display: grid;
  gap: 4px;
}
.quick-start-panel strong {
  font-size: 13px;
}
.quick-start-panel > div:first-child span {
  font-size: 10px;
  color: var(--muted);
}
.quick-start-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.quick-start-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 7px;
  min-height: 34px;
  font-size: 11px;
}
.quick-start-actions .icon {
  width: 15px;
  height: 15px;
}
.quick-start-panel > .text-button {
  gap: 6px;
}
.workflow-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.workflow-task {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  padding: 16px;
  text-align: left;
  min-height: 94px;
}
.workflow-task > span,
.workflow-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
  border-radius: 10px;
  flex-shrink: 0;
}
.workflow-task > div {
  flex: 1;
  min-width: 0;
}
.workflow-task strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.workflow-task small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 5px;
}
.workflow-task > .icon {
  width: 16px;
  color: var(--muted);
}
.quick-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quick-guide-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.quick-guide-list li > div {
  flex: 1;
  min-width: 0;
}
.quick-guide-list strong {
  font-size: 13px;
}
.quick-guide-list p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.quick-guide-list li > span {
  display: flex;
  color: var(--green, #137e66);
}
.quick-guide-list .btn {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .quick-guide-list {
    grid-template-columns: 1fr;
  }
  .quick-guide-list li {
    padding: 9px 10px;
  }
}
.approval-review-list {
  max-height: 50dvh;
  overflow: auto;
}
.approval-review-list article {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.approval-review-list label {
  align-items: flex-start;
}
.approval-review-list strong,
.attendance-checklist strong {
  display: block;
  font-size: 13px;
}
.approval-review-list small,
.attendance-checklist small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.approval-review-list details {
  margin: 9px 0 0 25px;
  font-size: 12px;
  line-height: 1.6;
}
.approval-review-list summary {
  cursor: pointer;
  color: var(--green);
  font-size: 11px;
}
.approval-acknowledgement {
  padding: 13px;
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-top: 15px;
  font-size: 12px;
  align-items: flex-start;
}
.workflow-template-summary,
.workflow-inline-preview {
  border: 1px solid var(--border);
  background: var(--mint);
  padding: 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
}
.workflow-template-summary strong,
.workflow-template-summary span {
  display: block;
}
.workflow-template-summary span {
  color: var(--muted);
  font-size: 11px;
}
.workflow-inline-preview {
  margin: 14px 0;
}
.workflow-review-summary {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
}
.workflow-review-summary h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.workflow-review-summary p {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 5px;
  color: var(--muted);
  white-space: pre-line;
}
.attendance-checklist {
  display: grid;
  gap: 9px;
  max-height: 40dvh;
  overflow: auto;
  margin: 14px 0;
}
.attendance-checklist label {
  min-height: 44px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.contact-consent-fields {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
  margin-top: 8px;
}
.contact-consent-fields legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 650;
}
.contact-consent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.contact-consent-option {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px;
  cursor: pointer;
}
.contact-consent-option input {
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--green);
}
.contact-consent-option strong {
  display: block;
  font-size: 12px;
}
.contact-consent-option small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.contact-actions small {
  font-size: 10px;
  color: var(--muted);
}
.whatsapp-button {
  color: #16714a;
  background: #edf8ef;
  border-color: #cde5d2;
}
.scenario-composer {
  margin-bottom: 17px;
  padding: 17px;
}
.scenario-composer-heading {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 13px;
}
.scenario-composer-heading > div {
  flex: 1;
  min-width: 0;
}
.scenario-composer-heading h2 {
  font-size: 16px;
}
.scenario-composer-heading p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.scenario-composer textarea {
  resize: vertical;
  min-height: 76px;
}
.scenario-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.scenario-composer-actions small {
  flex: 1;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.scenario-ai-consent {
  margin-top: 11px;
  font-size: 11px;
}
.scenario-voice-status {
  display: block;
  color: var(--green);
  font-size: 11px;
  margin-top: 7px;
}
.scenario-step-label {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.scenario-step-label span {
  font-size: 10px;
  padding: 6px 9px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.scenario-step-label .active {
  color: var(--green);
  background: var(--mint);
  font-weight: 650;
}
.scenario-plan-grid fieldset {
  border: 1px solid var(--border);
  padding: 11px;
  border-radius: 9px;
}
.scenario-plan-grid legend {
  font-size: 12px;
  font-weight: 650;
  padding: 0 5px;
}
.scenario-plan-grid details summary,
.form-field details summary,
details.form-field > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green);
  padding: 8px 0;
}
.scenario-review-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.scenario-audience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 10px;
}
.scenario-audience-heading h3,
.scenario-message-preview h3 {
  font-size: 13px;
}
.scenario-audience-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.scenario-recipient-list {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 4px 12px;
}
.scenario-recipient-list label {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.scenario-recipient-list label:last-child {
  border-bottom: 0;
}
.scenario-recipient-list strong {
  display: block;
  font-size: 12px;
}
.scenario-recipient-list small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 4px;
}
.scenario-message-preview {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin: 14px 0;
}
.scenario-message-preview p {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}
.scenario-message-preview small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
[data-theme='dark'] .quick-start-panel,
[data-theme='dark'] .workflow-task {
  background: #18281f;
}
[data-theme='dark'] .quick-start-actions button {
  background: #20382a;
}
[data-theme='dark'] .whatsapp-button {
  color: #b5e0bf;
  background: #244331;
  border-color: #42674b;
}
@media (max-width: 1000px) {
  .workflow-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-start-panel {
    gap: 10px;
  }
  .quick-start-actions {
    flex-basis: 100%;
    order: 2;
  }
}
@media (max-width: 600px) {
  .scenario-composer {
    padding: 14px;
  }
  .scenario-composer-heading {
    align-items: flex-start;
  }
  .scenario-composer-heading h2 {
    font-size: 14px;
  }
  .scenario-composer-heading > .text-button {
    font-size: 10px;
  }
  .scenario-composer-actions {
    flex-wrap: wrap;
  }
  .scenario-composer-actions small {
    flex-basis: calc(100% - 110px);
  }
  .scenario-composer-actions > .btn.primary {
    width: 100%;
  }
  .quick-start-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .quick-start-actions button {
    min-height: 44px;
    font-size: 11px;
    justify-content: center;
  }
  .workflow-task-grid {
    grid-template-columns: 1fr;
  }
  .contact-consent-grid {
    grid-template-columns: 1fr;
  }
  .quick-guide-list li {
    padding: 10px;
    gap: 9px;
  }
  .quick-guide-list li > .icon {
    width: 17px;
  }
  .scenario-recipient-list {
    max-height: 210px;
  }
}

.scenario-language-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.scenario-language-label select {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: inherit;
  padding: 4px 8px;
  font: inherit;
}
.scenario-voice-status {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}
/* The suggested route stays readable in both colour themes. */
.quick-start-panel,
[data-theme='dark'] .quick-start-panel {
  background: linear-gradient(110deg, #123e33, #174d3e);
  border: 1px solid #285d4b;
  color: #f3fbf5;
  padding: 16px 18px;
  gap: 20px;
}
.quick-start-panel > div:first-child span {
  color: #afd0bd;
}
.quick-start-panel > .text-button {
  color: #d0efdc;
  white-space: nowrap;
}
.quick-start-actions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.quick-start-actions li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.quick-start-actions button,
[data-theme='dark'] .quick-start-actions button {
  background: #ffffff0c;
  border: 1px solid #ffffff25;
  color: #edf9f1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  min-height: 44px;
  font-size: 12px;
  text-align: left;
}
.quick-start-actions button:hover {
  background: #ffffff19;
  border-color: #9dd3b5;
}
.quick-start-actions button:focus-visible {
  outline: 2px solid #c8edac;
  outline-offset: 3px;
}
.quick-step-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #c8edac;
  color: #194c36;
  font-size: 11px;
  font-weight: 750;
}
.quick-step-arrow {
  display: flex;
  flex-shrink: 0;
  color: #a2d8ba;
}
.quick-step-arrow .icon {
  width: 17px;
  height: 17px;
}
@media (max-width: 1400px) {
  .quick-start-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .quick-start-actions {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
  }
  .quick-start-panel > .text-button {
    grid-column: 2;
    grid-row: 1;
  }
  .quick-start-actions li {
    flex: 1;
  }
  .quick-start-actions button {
    flex: 1;
  }
}
@media (max-width: 700px) {
  .quick-start-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .quick-start-actions li {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .quick-start-actions button {
    width: 100%;
  }
  .quick-step-arrow {
    transform: rotate(90deg);
  }
  .quick-start-panel {
    gap: 12px;
  }
}
.scenario-ready-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #143e33;
  color: #f3faf5;
  border-radius: 12px;
  margin-bottom: 14px;
}
.scenario-ready-banner > .icon {
  width: 24px;
  height: 24px;
  color: #cbeaa9;
  flex-shrink: 0;
}
.scenario-ready-banner strong,
.scenario-ready-banner span {
  display: block;
}
.scenario-ready-banner strong {
  font-size: 13px;
}
.scenario-ready-banner span {
  font-size: 11px;
  line-height: 1.6;
  color: #c2d9ca;
  margin-top: 3px;
}
.scenario-review-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 12px 0;
  overflow: hidden;
  background: var(--white);
}
.scenario-review-section > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: #f5f9f6;
}
.scenario-review-section > summary::-webkit-details-marker {
  display: none;
}
.scenario-review-section > summary::after {
  content: '+';
  color: var(--green);
  font-size: 20px;
  font-weight: 400;
}
.scenario-review-section[open] > summary::after {
  content: '−';
}
.scenario-review-section > summary small {
  margin-left: auto;
  color: #668274;
  font-size: 11px;
  font-weight: 400;
}
.scenario-inline-fields {
  padding: 16px;
}
.scenario-review-section .scenario-recipient-list {
  margin: 0 14px 14px;
  max-height: 190px;
}
.scenario-review-section .scenario-audience-heading {
  padding: 12px 16px;
  margin: 0;
}
.scenario-review-section .scenario-message-preview {
  border: 0;
  margin: 0;
  padding: 14px 16px;
  background: transparent;
}
.scenario-message-preview textarea {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.7;
}
.scenario-review-title h3 {
  font-size: 17px;
  line-height: 1.4;
}
.workflow-review-summary > p {
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0;
}
[data-theme='dark'] .scenario-review-section {
  background: #1a2c22;
  border-color: #385140;
}
[data-theme='dark'] .scenario-review-section > summary {
  background: #213a2b;
  color: #e2eee6;
}
[data-theme='dark'] .scenario-review-section > summary small {
  color: #a8c5b2;
}
@media (max-width: 600px) {
  .scenario-review-section > summary {
    padding: 12px;
    font-size: 12px;
  }
  .scenario-inline-fields {
    padding: 12px;
  }
  .scenario-review-section > summary small {
    font-size: 10px;
  }
}
.scenario-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.scenario-examples > span {
  font-size: 11px;
  color: #718a7b;
  margin-right: 3px;
}
.scenario-examples button {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
}
.scenario-examples button:hover {
  border-color: var(--green);
  color: var(--green);
}
.scenario-plan-overview {
  display: block;
  padding: 16px;
}
.scenario-plan-overview .scenario-review-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.scenario-plan-overview > p {
  display: block;
  width: auto;
  max-width: none;
}
.scenario-plan-overview > p:last-child {
  margin-bottom: 0;
}
.sample-guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 16px;
}
.sample-guide-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: #e1f0e6;
  color: #146544;
}
.sample-guide-card strong {
  font-size: 14px;
}
.sample-guide-card p {
  font-size: 11px;
  color: #718a7a;
  margin: 4px 0 0;
}
.sample-draft-text {
  font-size: 14px;
  line-height: 1.8;
  padding: 14px;
}
.quick-start-panel > div:first-child > span {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-progress-key {
  display: block;
  font-size: 9px;
  color: #b2ceba;
  margin-top: 6px;
  white-space: nowrap;
}
.quick-step-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.quick-step-copy > small {
  font-size: 9px;
  line-height: 1.5;
  font-weight: 400;
  color: #b4c7ba;
}
.quick-start-actions .workflow-step.complete {
  background: #d8efdc;
  border-color: #a5d5ad;
  color: #205b35;
}
.quick-start-actions .workflow-step.complete .quick-step-number {
  background: #2b8750;
  color: #fff;
}
.quick-start-actions .workflow-step.complete .quick-step-copy > small {
  color: #40764d;
}
.quick-start-actions .workflow-step.current {
  background: #fff0c9;
  border-color: #e6bd65;
  color: #62491e;
  box-shadow: 0 0 0 2px #efcd7330;
}
.quick-start-actions .workflow-step.current .quick-step-number {
  background: #be861e;
  color: #fff;
}
.quick-start-actions .workflow-step.current .quick-step-copy > small {
  color: #8b6a32;
}
.quick-start-actions .workflow-step.pending {
  background: #ffffff08;
  border-color: #ffffff1c;
  color: #c5d7cd;
}
.quick-start-actions .workflow-step.pending .quick-step-number {
  background: #ffffff15;
  color: #b5cbbf;
}
.quick-step-arrow.complete {
  color: #c5e79c;
}
[data-theme='dark'] .quick-start-actions .workflow-step.complete {
  background: #c4e7c9;
  color: #194b2d;
}
[data-theme='dark'] .quick-start-actions .workflow-step.current {
  background: #eddaa8;
  color: #59431c;
}
@media (min-width: 701px) and (max-width: 1000px) {
  .quick-start-actions {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .quick-start-actions li {
    flex: 1 1 30%;
  }
}
.field-needs-attention :is(input, select, textarea):not([type='checkbox']):not([type='radio']),
[aria-invalid='true']:not([type='checkbox']):not([type='radio']) {
  border-color: #cf4b43 !important;
  background: #fff8f6;
  box-shadow: 0 0 0 1px #cf4b4320;
}
.field-needs-attention > label,
.field-needs-attention > legend {
  color: #b44237;
}
.field-error-message {
  display: block;
  width: 100%;
  font-size: 11px;
  line-height: 1.6;
  color: #b53f34;
  margin-top: 6px;
  font-weight: 500;
}
.checkbox-line.field-needs-attention {
  flex-wrap: wrap;
  border-color: #d76a60;
  background: #fff4ef;
}
input[aria-invalid='true'][type='checkbox'] {
  outline: 2px solid #cf4b43;
  outline-offset: 2px;
}
.form-feedback-summary {
  padding: 13px 15px;
  border: 1px solid #edc187;
  border-left: 4px solid #dc9a37;
  border-radius: 10px;
  background: #fff6e8;
  color: #784f1d;
  margin: 0 0 16px;
}
.form-feedback-summary strong {
  display: block;
  font-size: 13px;
}
.form-feedback-summary ul {
  margin: 7px 0 0;
  padding-left: 18px;
}
.form-feedback-summary li {
  font-size: 12px;
  line-height: 1.7;
}
.form-feedback-summary button {
  padding: 0;
  border: 0;
  background: none;
  color: #9d4b22;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.section-needs-attention {
  border-color: #e6b363 !important;
}
.section-needs-attention > summary {
  background: #fff2da !important;
  color: #8a571d !important;
}
.section-needs-attention > summary small {
  color: #ad6b1a !important;
  font-weight: 650;
}
.scenario-missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.scenario-missing-actions button {
  border: 1px solid #e8b66b;
  border-radius: 7px;
  background: #fff9ee;
  color: #8f4f1e;
  padding: 6px 9px;
  font-size: 11px;
  cursor: pointer;
}
.scenario-ready-banner.needs-attention {
  background: #fff3dd;
  border: 1px solid #ebc17c;
  color: #80511d;
}
.scenario-ready-banner.needs-attention span {
  color: #926b35;
}
.scenario-ready-banner.needs-attention > .icon {
  color: #b37b2d;
}
[data-theme='dark']
  .field-needs-attention
  :is(input, select, textarea):not([type='checkbox']):not([type='radio']) {
  background: #3b2925;
  color: #f2dcd6;
}
[data-theme='dark'] .field-error-message {
  color: #f3a198;
}
[data-theme='dark'] .form-feedback-summary,
[data-theme='dark'] .scenario-ready-banner.needs-attention,
[data-theme='dark'] .section-needs-attention > summary {
  background: #49371e !important;
  color: #f3d2a2 !important;
  border-color: #a37b3d;
}
[data-theme='dark'] .scenario-ready-banner.needs-attention span,
[data-theme='dark'] .section-needs-attention > summary small,
[data-theme='dark'] .form-feedback-summary button {
  color: #f1c282 !important;
}
/* Mobile controls stay at native input size so focusing them does not zoom the page. */
button,
a,
input,
select,
textarea,
summary,
[role='button'] {
  touch-action: manipulation;
}
@media (max-width: 1024px) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']),
  select,
  textarea,
  .input,
  .select,
  .textarea,
  .notes-editor,
  .map-filter {
    font-size: 16px !important;
  }
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']),
  select,
  .input,
  .select {
    min-height: 44px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
  }
  .modal-body {
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .community-shell .hub-link,
  .modal-footer .btn {
    min-height: 44px;
  }
}
.full-width-empty {
  position: relative;
  width: 100%;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  background: var(--white);
}
.full-width-empty .empty {
  padding: 20px 16px 14px;
  border: 0;
  background: transparent;
  min-height: 0;
}
.full-width-empty > .btn {
  margin: 0 auto 10px;
}
.minutes-layout:has(.minutes-list:empty) {
  grid-template-columns: minmax(0, 1fr);
}
.minutes-layout > .minutes-list:empty {
  display: none;
}
.community-shell .profile-dropdown {
  width: 238px;
  padding: 6px;
  border-radius: 12px;
  top: calc(100% + 8px);
}
.community-shell .profile-dropdown > button {
  min-height: 38px;
  padding: 8px 10px;
  gap: 9px;
  font-size: 12px;
}
.community-shell .profile-dropdown > button > .icon {
  width: 18px;
  height: 18px;
}
.community-shell .profile-dropdown .profile-logout {
  margin-top: 4px;
  padding-top: 10px;
}
@media (min-width: 761px) {
  .community-shell .profile-menu-heading {
    display: none;
  }
}
@media (max-width: 760px) {
  .community-shell .profile-menu-heading {
    padding: 8px 10px 10px;
    margin-bottom: 4px;
  }
  .community-shell .profile-menu-heading strong {
    font-size: 12px;
  }
  .community-shell .profile-menu-heading small {
    font-size: 10px;
    margin-top: 3px;
  }
  .community-shell .profile-dropdown > button {
    min-height: 44px;
  }
}

/* Mobile task home: prioritise the request, then reveal progress only when needed. */
.quick-start-toggle {
  display: none;
}
@media (max-width: 600px) {
  .community-shell .content:has(.workflow-task-grid) {
    padding: 16px 14px 24px;
  }
  .content:has(.workflow-task-grid) .page-heading {
    gap: 10px;
    margin-bottom: 14px;
  }
  .content:has(.workflow-task-grid) .page-heading .eyebrow {
    font-size: 9px;
  }
  .content:has(.workflow-task-grid) .page-heading .subtext {
    font-size: 12px;
    line-height: 1.5;
  }
  .scenario-composer {
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .scenario-composer-heading {
    gap: 9px;
  }
  .scenario-composer-heading .workflow-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .scenario-composer-heading h2 {
    font-size: 15px;
    line-height: 1.35;
  }
  .scenario-composer-heading p {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 4px;
  }
  .scenario-examples {
    gap: 6px;
    margin-block: 12px;
  }
  .scenario-examples > span {
    flex-basis: 100%;
    font-size: 10px;
  }
  .scenario-examples button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 10px;
  }
  .scenario-composer .textarea {
    min-height: 116px;
    line-height: 1.5;
  }
  .scenario-composer-actions {
    gap: 8px;
  }
  .scenario-composer-actions small {
    flex: 1;
    font-size: 10px;
    line-height: 1.4;
  }
  .scenario-composer-actions > .btn.primary {
    min-height: 44px;
    margin-top: 2px;
  }
  .scenario-composer-status {
    font-size: 10px;
    line-height: 1.5;
  }
  .quick-start-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 12px;
  }
  .quick-start-panel > div:first-child {
    min-width: 0;
  }
  .quick-start-panel > div:first-child > span {
    max-width: 100%;
    font-size: 10px;
  }
  .quick-start-panel .quick-start-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    align-self: center;
    padding: 7px 9px;
    min-height: 44px;
    border: 1px solid #ffffff30;
    border-radius: 8px;
    background: #ffffff0c;
    color: inherit;
    font: inherit;
    font-size: 11px;
  }
  .quick-start-toggle .icon {
    width: 14px;
    height: 14px;
  }
  .progress-expanded .quick-start-toggle .icon {
    transform: rotate(180deg);
  }
  .quick-start-panel:not(.progress-expanded) .quick-start-actions,
  .quick-start-panel:not(.progress-expanded) .quick-progress-key {
    display: none;
  }
  .quick-start-panel .quick-start-actions {
    grid-column: 1/-1;
    width: 100%;
    gap: 6px;
  }
  .quick-start-panel .quick-start-actions li {
    gap: 0;
  }
  .quick-start-panel .quick-start-actions button {
    min-height: 46px;
    padding: 8px 10px;
  }
  .quick-start-panel .quick-step-arrow {
    display: none;
  }
  .workflow-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .workflow-task {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    min-height: 116px;
    border-radius: 11px;
  }
  .workflow-task > span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .workflow-task > span .icon {
    width: 18px;
    height: 18px;
  }
  .workflow-task > .icon {
    display: none;
  }
  .workflow-task strong {
    font-size: 12px;
    line-height: 1.4;
  }
  .workflow-task small {
    font-size: 10px;
    line-height: 1.45;
    margin-top: 4px;
  }
}
@media (max-width: 600px) {
  .content:has(.workflow-task-grid) .page-heading {
    position: relative;
  }
  .content:has(.workflow-task-grid) .page-heading h1 {
    padding-right: 112px;
  }
  .content:has(.workflow-task-grid) .page-heading .heading-actions {
    position: absolute;
    top: 19px;
    right: 0;
    width: auto;
    margin: 0;
  }
  .content:has(.workflow-task-grid) .page-heading .heading-actions .btn {
    flex: none;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .scenario-voice-status {
    font-size: 10px;
    line-height: 1.5;
  }
}

/* Source: resources/css/impact.css */
.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cddfd0;
  padding: 7px 12px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 13px;
  background: #eef5ef;
  color: #53715e;
}
.achievement-badge .icon {
  width: 20px;
  height: 20px;
}
.achievement-badge.small {
  font-size: 11px;
  padding: 4px 9px;
}
.achievement-badge.small .icon {
  width: 15px;
  height: 15px;
}
.achievement-badge.bronze,
.impact-medallion.bronze {
  background: #fff0df;
  color: #8c5223;
  border-color: #e6c19d;
}
.achievement-badge.silver,
.impact-medallion.silver {
  background: #edf2f7;
  color: #536377;
  border-color: #cbd5e0;
}
.achievement-badge.gold,
.impact-medallion.gold {
  background: #fff4cb;
  color: #8c6816;
  border-color: #e6cd7b;
}
.achievement-badge.platinum,
.impact-medallion.platinum {
  background: #def4ee;
  color: #236e68;
  border-color: #9dd1c8;
}
.impact-overview {
  padding: 20px;
  background: linear-gradient(145deg, #fff, #f0f7ef);
}
.impact-overview-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.impact-medallion {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid #d1e3d2;
  background: #e9f2e6;
  border-radius: 15px;
  color: #4e7659;
}
.impact-medallion .icon {
  width: 28px;
  height: 28px;
}
.impact-overview-heading small {
  font-size: 9px;
  color: #708573;
  letter-spacing: 1.2px;
}
.impact-overview h2 {
  font-size: 18px;
  margin: 4px 0 0;
}
.impact-level-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
}
.impact-level-line strong {
  font-size: 20px;
}
.impact-level-line strong small {
  font-size: 11px;
  font-weight: 400;
}
.impact-level-line > span {
  font-size: 10px;
  color: #6f8876;
}
.impact-meter {
  height: 7px;
  background: #dfeadf;
  border-radius: 10px;
  overflow: hidden;
}
.impact-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #208568, #9fc982);
}
.impact-overview p {
  font-size: 11px;
  line-height: 1.7;
  color: #718778;
  margin: 12px 0;
}
.impact-totals {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.impact-totals > div {
  padding: 16px;
}
.impact-totals strong {
  display: block;
  font-size: 24px;
}
.impact-totals span {
  display: block;
  font-size: 11px;
  color: #718778;
  margin-top: 5px;
}
.impact-calculation {
  max-width: 900px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.impact-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.impact-report-card {
  padding: 15px;
}
.impact-report-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.impact-report-card small {
  font-size: 10px;
  color: #718778;
}
.impact-report-card h3 {
  font-size: 15px;
  margin: 12px 0 8px;
}
.impact-report-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #718778;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.impact-result-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.impact-result-pills span {
  padding: 5px 8px;
  background: #edf5ef;
  color: #466d53;
  font-size: 10px;
  border-radius: 6px;
}
.impact-report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px;
  border-radius: 12px;
  background: #f0f7f0;
}
.impact-report-hero strong {
  display: block;
  font-size: 30px;
}
.impact-report-hero span,
.impact-report-hero small {
  font-size: 12px;
}
.report-totals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-totals > div {
  background: #f6f9f6;
  border-radius: 10px;
}
.impact-report-section {
  margin: 20px 0;
}
.impact-report-section h3,
.impact-breakdowns h3 {
  font-size: 14px;
  margin: 14px 0 8px;
}
.impact-report-section p {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
}
.impact-breakdowns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 16px;
}
.impact-breakdowns > div > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.report-category-rows > div {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.achievement-policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.achievement-policy-grid fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.achievement-policy-grid legend {
  font-size: 12px;
  font-weight: 650;
  padding: 0 6px;
}
.event-results-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  margin: 16px 0;
  background: #eff7ee;
  border: 1px solid #d7e7d4;
  border-radius: 12px;
  font-size: 12px;
}
[data-theme='dark'] .impact-overview {
  background: linear-gradient(145deg, #203a2a, #182c20);
}
[data-theme='dark'] .impact-report-hero,
[data-theme='dark'] .report-totals > div,
[data-theme='dark'] .event-results-banner {
  background: #203a29;
  border-color: #3b5942;
}
[data-theme='dark'] .impact-totals span,
[data-theme='dark'] .impact-overview p,
[data-theme='dark'] .impact-report-card p,
[data-theme='dark'] .impact-level-line > span {
  color: #acc3ad;
}
@media (max-width: 1100px) {
  .impact-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .impact-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .impact-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .impact-report-grid,
  .impact-breakdowns,
  .achievement-policy-grid {
    grid-template-columns: 1fr;
  }
  .impact-overview {
    padding: 16px;
  }
}
.achievement-shield {
  --shield-light: #d7e4da;
  --shield-fill: #88a591;
  --shield-dark: #4d7159;
  --shield-edge: #4d7159;
  --shield-symbol: #f8fff7;
  display: block;
  width: 48px;
  height: 57px;
  flex: none;
  filter: drop-shadow(0 3px 3px #163c2a17);
}
.achievement-shield.bronze {
  --shield-light: #f8dbb5;
  --shield-fill: #bf8753;
  --shield-dark: #8c5730;
  --shield-edge: #9b673d;
  --shield-symbol: #fff4da;
}
.achievement-shield.silver {
  --shield-light: #f3f8ff;
  --shield-fill: #aebdce;
  --shield-dark: #667e96;
  --shield-edge: #879bb0;
  --shield-symbol: #f9fcff;
}
.achievement-shield.gold {
  --shield-light: #fff1ad;
  --shield-fill: #e2b747;
  --shield-dark: #ab7c22;
  --shield-edge: #bb8f2c;
  --shield-symbol: #fffbe2;
}
.achievement-shield.platinum {
  --shield-light: #f1ffff;
  --shield-fill: #9dd6d0;
  --shield-dark: #428880;
  --shield-edge: #5a9e98;
  --shield-symbol: #f8ffff;
}
.achievement-shield.large {
  width: 72px;
  height: 86px;
}
.achievement-badge,
.achievement-badge.small {
  padding: 0;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  gap: 10px;
  font-size: 14px;
}
.achievement-badge > span > small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #718778;
  margin-top: 4px;
}
.achievement-badge.small .achievement-shield {
  width: 44px;
  height: 53px;
}
.achievement-badge .achievement-shield {
  width: 54px;
  height: 64px;
}
.impact-overview-heading > .achievement-shield.large {
  width: 60px;
  height: 72px;
}
.impact-overview .impact-level-line > span {
  text-align: right;
}
.impact-level-line > span > small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
}
.impact-sample-note {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  line-height: 1.5;
  background: #fff2d0;
  color: #876224;
  margin: 0 0 12px;
}
.impact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: 24px;
  padding: 18px 20px;
  background: radial-gradient(ellipse at top right, #2f6950, transparent 70%), #123f32;
  color: #f2fbf3;
  border-color: #35614b;
}
.impact-hero .impact-overview-heading {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.impact-hero .impact-overview-heading h2 {
  color: #fff;
  font-size: 21px;
}
.impact-hero .impact-overview-heading small,
.impact-hero p {
  color: #c2dac6;
}
.impact-hero .impact-overview-heading p {
  margin: 7px 0;
  font-size: 12px;
}
.impact-hero .impact-level-line {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 10px;
}
.impact-hero .impact-level-line strong {
  font-size: 27px;
}
.impact-hero .impact-level-line strong small {
  font-size: 12px;
  color: #c2dac6;
}
.impact-hero .impact-level-line > span {
  color: #d6e6d5;
  font-size: 12px;
}
.impact-hero .impact-meter {
  grid-column: 2;
  grid-row: 2;
  background: #ffffff18;
}
.impact-tier-ladder {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.impact-tier-ladder > div {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  padding: 10px 12px;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: #ffffff05;
  opacity: 0.65;
}
.impact-tier-ladder .achievement-shield {
  width: 38px;
  height: 46px;
  grid-row: 1 / 4;
}
.impact-hero .impact-overview-heading > .achievement-shield.large {
  width: 46px;
  height: 56px;
}
.impact-tier-ladder > div.earned {
  opacity: 1;
  background: #ffffff0c;
}
.impact-tier-ladder > div.current {
  border-color: #c6dfa0;
  box-shadow: inset 0 0 0 1px #c6dfa033;
}
.impact-tier-ladder > div > span {
  font-size: 12px;
  font-weight: 650;
}
.impact-tier-ladder > div > small {
  font-size: 10px;
  color: #bed5c2;
}
.impact-tier-ladder > div > b {
  font-size: 8px;
  color: #dcebbb;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}
.impact-hero > p {
  grid-column: 1/-1;
  margin: 10px 0 0;
}
.impact-hero > .impact-sample-note {
  grid-column: 1/-1;
  justify-self: start;
  margin: 6px 0 0;
}
.impact-stat {
  position: relative;
  min-height: 88px;
}
.impact-stat-icon {
  position: absolute;
  top: 16px;
  right: 14px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf4ef;
  color: #4a8668 !important;
}
.impact-stat-icon .icon {
  width: 18px;
  height: 18px;
}
.impact-stat > strong {
  padding-top: 5px;
}
.impact-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
}
.impact-section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.impact-section-heading .btn {
  margin: 0;
  flex: none;
}
.impact-report-grid > .empty-state {
  grid-column: 1/-1;
}
.impact-report-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.impact-report-card > p {
  flex: 1;
}
.impact-report-card > .btn {
  align-self: flex-start;
  margin-top: auto;
}
.impact-report-card h3 {
  margin-top: 18px;
}
.impact-report-card > div:first-child {
  align-items: flex-start;
}
.impact-report-card > div:first-child > small {
  text-align: right;
  line-height: 1.6;
  padding-top: 6px;
}
.community-navigation .hub-link > .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
[data-theme='dark'] .achievement-badge > span > small {
  color: #b1c8b6;
}
[data-theme='dark'] .impact-hero {
  background: radial-gradient(ellipse at top right, #2f6950, transparent 70%), #123f32;
}
@media (max-width: 700px) {
  .impact-hero {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 10px;
  }
  .impact-hero .impact-overview-heading,
  .impact-hero .impact-level-line,
  .impact-hero .impact-meter {
    grid-column: 1;
    grid-row: auto;
  }
  .impact-tier-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
  }
  .impact-tier-ladder > div {
    padding: 9px;
  }
  .impact-tier-ladder .achievement-shield {
    width: 36px;
    height: 43px;
  }
  .impact-tier-ladder > div > span {
    font-size: 10px;
  }
  .impact-tier-ladder > div > small {
    font-size: 10px;
  }
  .impact-tier-ladder > div > b {
    font-size: 8px;
  }
  .impact-section-heading .btn {
    width: 100%;
    justify-content: center;
  }
}
.community-navigation .hub-link > .icon {
  width: 22px;
  height: 22px;
}

.graph-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}
.graph-tabs button {
  border: 1px solid var(--line, #d9e7e3);
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--surface, #fff);
  color: var(--text, #24473f);
  cursor: pointer;
  font: inherit;
}
.graph-tabs button[aria-selected='true'] {
  background: #137e66;
  color: #fff;
  border-color: #137e66;
}
.achievement-graph {
  border: 1px solid #d9e7e3;
  border-radius: 14px;
  overflow: hidden;
  background: #f5faf7;
}
.achievement-graph svg {
  display: block;
  width: 100%;
  height: auto;
}
#graph-feedback:not(:empty) {
  padding: 10px;
  background: #fff0d5;
  color: #8a4f08;
  border-radius: 8px;
}

/* Gallery controls stay compact; the exported image retains its full resolution. */
.graph-gallery-modal .graph-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--bg, #f5f8f6);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.graph-gallery-modal .graph-toolbar .form-grid {
  grid-template-columns: repeat(2, minmax(135px, 180px));
  gap: 12px;
}
.graph-gallery-modal .graph-toolbar .check-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-height: 38px;
  font-size: 12px;
  white-space: nowrap;
}
.graph-gallery-modal .graph-tabs {
  margin: 0 0 10px;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
  background: var(--bg, #f5f8f6);
}
.graph-gallery-modal .graph-tabs button {
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  min-height: 34px;
  padding: 7px 12px;
  background: transparent;
}
.graph-gallery-modal .graph-tabs button[aria-selected='true'] {
  background: #137e66;
  color: white;
}
.graph-gallery-modal #graph-feedback:empty {
  display: none;
}
.graph-gallery-modal .achievement-graph svg {
  max-height: calc(100dvh - 375px);
}
.graph-gallery-modal .modal-body > .form-hint:last-child {
  margin: 8px 0 0;
  font-size: 11px;
}
@media (max-width: 700px) {
  .graph-gallery-modal .graph-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .graph-gallery-modal .graph-toolbar .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .graph-gallery-modal .graph-toolbar .check-line {
    min-height: 32px;
  }
  .graph-gallery-modal .graph-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .graph-gallery-modal .graph-tabs button {
    min-height: 44px;
    padding: 8px;
    font-size: 12px;
  }
  .graph-gallery-modal .achievement-graph svg {
    max-height: none;
  }
}
