:root {
  --bg: #1c1d20;
  --surface: #24262a;
  --surface-hover: #2c2f34;
  --border: #353940;
  --text-primary: #e6e7ea;
  --text-secondary: #aeb3bb;
  --text-muted: #7f858f;
  --accent: #7ea0e8;
  --accent-hover: #6f93de;
  --danger: #e55b5b;
  --danger-hover: #d44a4a;
  --success: #4caf7d;
  --warning: #e8a838;
  --sidebar-bg: #181a1d;
  --sidebar-width: 195px;
  --sidebar-collapsed: 0px;
  --sidebar-reopen-strip-width: 18px;
  --sidebar-reopen-strip-mobile-width: 40px;
  --erp-mobile-topbar-height: 56px;
  --erp-mobile-footer-height: 86px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Forms */
.form-control,
.form-select {
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(126, 160, 232, 0.16);
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

/* Buttons */
.btn {
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  transition: all 0.2s;
  border: none;
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.btn-outline-light {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline-light:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-danger {
  background-color: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background-color: var(--danger-hover);
  color: #fff;
}

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
}

/* Alerts */
.alert-danger {
  background-color: rgba(229, 91, 91, 0.12);
  border: 1px solid rgba(229, 91, 91, 0.25);
  color: #f09090;
  border-radius: 8px;
  font-size: 0.88rem;
}

.alert-success {
  background-color: rgba(76, 175, 125, 0.12);
  border: 1px solid rgba(76, 175, 125, 0.25);
  color: #74d4a0;
  border-radius: 8px;
  font-size: 0.88rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1040;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed {
  transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sidebar-header {
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-logo span { color: var(--accent); }

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s;
}

.sidebar-toggle:hover { color: var(--text-primary); }

.sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
}

.nav-section {
  margin-bottom: 0.25rem;
}

.nav-section-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.6rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  gap: 0.65rem;
}

.nav-section-btn:hover {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}

.nav-section-btn.active {
  color: var(--text-primary);
}

.nav-section-btn i.chevron {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.25s;
}

.nav-section-btn.active i.chevron {
  transform: rotate(90deg);
}

.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-submenu.open {
  max-height: 300px;
}

.nav-submenu a {
  display: block;
  padding: 0.45rem 1.25rem 0.45rem 3.1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.nav-submenu a:hover {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}

.nav-submenu a.active {
  color: var(--accent);
  background-color: rgba(126, 160, 232, 0.1);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sidebar-user i { font-size: 1rem; }

.sidebar-user span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
  padding: 0.2rem;
  font-size: 1rem;
  transition: color 0.2s;
}

.sidebar-logout:hover { color: var(--danger); }

/* Main content */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 1.5rem 2rem;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.main-content.expanded {
  margin-left: var(--sidebar-reopen-strip-width);
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1050;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.sidebar-reopen-strip {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-reopen-strip-width);
  height: 100vh;
  z-index: 1035;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-left: none;
  color: var(--text-secondary);
  border-radius: 0;
  padding: 0;
  font-size: 0.9rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-reopen-strip:hover {
  color: var(--text-primary);
  background: #1d2024;
}

.sidebar-reopen-strip.visible {
  display: inline-flex;
}

.erp-mobile-topbar,
.erp-mobile-footer,
.erp-mobile-sheet {
  display: none !important;
}

.erp-mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1070;
  border-bottom: 1px solid var(--border);
  background: rgba(24, 26, 29, 0.94);
  backdrop-filter: blur(8px);
}

.erp-mobile-topbar-inner {
  min-height: var(--erp-mobile-topbar-height);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-mobile-brand {
  font-size: 1.03rem;
  font-weight: 600;
}

.erp-mobile-brand span {
  color: var(--accent);
}

.erp-mobile-reference-chip {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.erp-mobile-reference-chip.active,
.erp-mobile-reference-chip:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.erp-mobile-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1068;
  background: rgba(24, 26, 29, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0));
}

.erp-mobile-chip {
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 0 4px;
}

.erp-mobile-chip i {
  font-size: 1.02rem;
}

.erp-mobile-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.erp-mobile-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.26);
  z-index: 1067;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.erp-mobile-sheet.open {
  opacity: 1;
  visibility: visible;
}

.erp-mobile-sheet-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--erp-mobile-footer-height) + env(safe-area-inset-bottom, 0));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.erp-mobile-sheet-card a {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.9rem;
}

.erp-mobile-sheet-card a.active,
.erp-mobile-sheet-card a:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Tables */
.table-container {
  background: var(--surface);
  border: none;
  border-radius: 0;
  overflow: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table {
  margin: 0;
  color: var(--text-primary);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border);
}

.table > :not(caption) > * > * {
  background-color: transparent;
}

.table thead th {
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.6325rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  position: sticky;
  top: 0;
  z-index: 3;
}

.attendance-popup .table thead th {
  position: static;
}

.attendance-popup .table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: none;
}

.attendance-popup .table-container > .table {
  display: table;
  width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .main-content .table-container {
    max-height: 86vh;
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
  }
}

.table-container::-webkit-scrollbar-corner {
  background: var(--surface);
}

.table thead th:hover { color: var(--text-primary); }

.table thead th.sorted { color: var(--accent); }

.table-search-input {
  height: 30px;
  min-width: 180px;
  max-width: 260px;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
  text-align: center;
}

.table-search-input::placeholder {
  text-align: center;
}

.table-search-input:focus {
  text-align: left;
}

.table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}

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

.table tbody tr:hover {
  background-color: var(--surface-hover);
}

.table a {
  color: var(--accent);
  text-decoration: none;
}

.table a:hover { text-decoration: underline; }

.inline-value-multiline {
  white-space: normal;
  line-height: 1.35;
}

.table-text-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: 2.6em;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Residents tables: product column -30%, sphere +same width */
.residents-list-table,
.former-residents-table {
  --res-col-join: 8.67%;
  --res-col-company: 14.45%;
  --res-col-product: 22.4%;
  --res-col-sphere: 17.67%;
}

.residents-list-table th:nth-child(2),
.residents-list-table td:nth-child(2),
.former-residents-table th:nth-child(2),
.former-residents-table td:nth-child(2) {
  width: var(--res-col-join);
}

.residents-list-table th:nth-child(3),
.residents-list-table td:nth-child(3),
.former-residents-table th:nth-child(4),
.former-residents-table td:nth-child(4) {
  width: var(--res-col-company);
}

.residents-list-table th:nth-child(4),
.residents-list-table td:nth-child(4),
.former-residents-table th:nth-child(5),
.former-residents-table td:nth-child(5) {
  width: var(--res-col-product);
}

.residents-list-table th:nth-child(5),
.residents-list-table td:nth-child(5),
.former-residents-table th:nth-child(6),
.former-residents-table td:nth-child(6) {
  width: var(--res-col-sphere);
}

/* Wide finance table */
.payments-table {
  min-width: 1960px;
}

.payments-main-table td,
.payments-main-table th {
  text-align: center;
}

.payments-main-table .form-control,
.payments-main-table .form-select {
  min-width: 90px;
}

.payments-main-table th.payment-fee-before-col,
.payments-main-table td.payment-fee-before-col {
  min-width: 124px;
}

.payments-main-table .fee-before-input {
  min-width: 104px;
}

.payment-next-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.payment-next-input {
  min-width: 132px;
}

.payment-period-select {
  min-width: 169px;
}

.payments-main-table th.payment-period-col,
.payments-main-table td.payment-period-col {
  min-width: 175px;
}

.payment-next-input::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.payment-reset-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.th-2line {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.referral-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.referral-indicator.ok {
  background: #4caf7d;
  box-shadow: 0 0 0 2px rgba(76, 175, 125, 0.2);
}

.referral-indicator.bad {
  background: #de6868;
  box-shadow: 0 0 0 2px rgba(222, 104, 104, 0.2);
}

.payment-date-overdue {
  background: rgba(222, 104, 104, 0.16);
}

.payment-date-overdue .payment-next-input {
  background: rgba(222, 104, 104, 0.16);
  border-color: rgba(222, 104, 104, 0.45);
}

/* Inline edit */
.inline-edit-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-value { min-width: 100px; }
.inline-value-preline { white-space: pre-line; }

.inline-input {
  display: none;
}

.inline-edit-group.editing .inline-value { display: none; }
.inline-edit-group.editing .inline-input { display: block; flex: 1; }
.inline-edit-group.editing .btn-edit { display: none; }
.inline-edit-group .btn-save { display: none; }
.inline-edit-group.editing .btn-save { display: inline-flex; }

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-icon:hover { color: var(--text-primary); }
.btn-icon.text-danger:hover { color: var(--danger); }
.btn-icon.text-success:hover { color: var(--success); }

.publication-feed {
  display: grid;
  gap: 12px;
}

.publication-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.post-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
}

/* Detail page */
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.detail-row {
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 180px;
  font-weight: 500;
}

.detail-value {
  flex: 1;
}

/* Resident photo */
.resident-photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.resident-photo {
  width: 480px;
  height: 480px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 4rem;
}

.resident-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.resident-detail-layout {
  display: block;
}

.resident-detail-photo-col {
  margin-bottom: 1rem;
}

/* Reference (spheres) list */
.sphere-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.sphere-item:last-child { border-bottom: none; }

.sphere-item-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sphere-name {
  font-size: 0.92rem;
}

.sphere-actions {
  display: flex;
  gap: 0.25rem;
}

.sphere-item-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Textarea in inline edit */
.inline-edit-group.editing textarea.inline-input {
  display: block;
}

/* Modal overrides */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 12px;
}

.modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Event type badges */
.badge-event-type {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge-всг { background: rgba(126, 160, 232, 0.18); color: #a7bced; }
.badge-нм  { background: rgba(126, 160, 232, 0.14); color: #9ab1e7; }
.badge-дод { background: rgba(126, 160, 232, 0.22); color: #b6c8f2; }

/* Event image */
.event-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.event-image {
  width: 320px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-image-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.event-image-thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

/* Attendance popup */
.attendance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attendance-popup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 400px;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.attendance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.attendance-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.attendance-body {
  overflow-y: auto;
  flex: 1;
  padding: 0.3rem 0;
}

.attendance-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.attendance-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.attendance-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.attendance-row a {
  color: var(--text-primary);
  text-decoration: none;
}

.attendance-row a:hover {
  color: var(--accent);
}

.attendance-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .main-content {
    margin-left: 0;
    min-height: auto;
    padding: calc(var(--erp-mobile-topbar-height) + 10px) 1rem calc(var(--erp-mobile-footer-height) + env(safe-area-inset-bottom, 0));
  }
  .main-content.expanded { margin-left: 0; }
  .mobile-toggle { display: none !important; }
  .sidebar-reopen-strip { display: none !important; }
  .erp-mobile-topbar,
  .erp-mobile-sheet { display: block !important; }
  .erp-mobile-footer { display: grid !important; }
  .detail-card {
    max-width: 100% !important;
    min-width: 0;
  }
  .detail-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .detail-label {
    min-width: 0;
  }
  .resident-photo {
    width: min(480px, 100%);
    height: min(480px, calc(100vw - 2rem));
    margin: 0 auto;
  }
  .table-container {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }
}

@media (min-width: 992px) {
  .resident-detail-layout {
    display: grid;
    grid-template-columns: 500px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .resident-detail-photo-col {
    margin-bottom: 0;
  }

  .resident-detail-photo-col .resident-photo-section {
    border-bottom: none;
    padding-bottom: 0;
  }

  .resident-detail-data-col .detail-card {
    max-width: none;
  }

  .publication-feed {
    max-width: 680px;
    margin: 0 auto;
  }
}
