:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee8;
  --surface: #ffffff;
  --page: #f6f8fb;
  --accent: #146c63;
  --accent-strong: #0f514a;
  --gold: #b7791f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 20px;
  font-weight: 800;
  gap: 10px;
  white-space: nowrap;
}

.brand-icon { display: block; height: 32px; width: 32px; }

.nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.user-menu button,
.button,
.share-button,
.form button,
.list button,
.filters button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  margin-block: 4px;
  padding: 10px 14px;
  vertical-align: middle;
}

.button + .button,
button + button {
  margin-inline-start: 8px;
}

.user-menu button:hover,
.button:hover,
.share-button:hover,
.form button:hover,
.list button:hover,
.filters button:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.user-menu {
  position: relative;
}

.user-menu summary {
  align-items: center;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  gap: 6px;
  font-weight: 800;
  list-style: none;
}

.user-menu summary::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
  content: "";
  display: inline-block;
  margin-top: 2px;
}

.user-menu[open] summary::after {
  transform: rotate(180deg);
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.12);
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 10;
}

.user-menu-panel a {
  color: var(--ink);
  font-weight: 700;
  padding: 8px;
}

.user-menu-panel form {
  margin: 0;
}

.language-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 10px 8px 2px;
}

.language-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-form select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 8px;
}

.user-menu-panel button {
  width: 100%;
}

.share-button {
  background: #eef4f2;
  border: 1px solid #bed5cf;
  color: var(--accent-strong);
  margin-top: 8px;
}

.share-button:hover {
  background: #dcebe7;
}

.button.secondary {
  background: #344054;
}

.button.danger,
.form button.danger {
  background: #b42318;
  color: #fff;
}

.button.danger:hover,
.form button.danger:hover {
  background: #8f1c13;
}

.danger-link {
  color: #b42318;
  margin-left: 10px;
}

.actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions > .button,
.actions > button,
.quick-actions > .button,
.quick-actions > button,
.dashboard-actions > .button,
.dialog-actions > .button,
.dialog-actions > button,
.issue-section-header > .button {
  margin-inline-start: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  margin-top: 18px;
}

.tabs a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 10px 14px;
}

.tabs a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.quick-actions {
  margin-bottom: 24px;
}

.address-panel {
  margin-bottom: 24px;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.messages p {
  background: #eaf7f3;
  border: 1px solid #b9ddd2;
  border-radius: 8px;
  color: #0f514a;
  margin: 0;
  padding: 12px 14px;
}

.mt {
  margin-top: 18px;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading h1,
.auth-panel h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 8px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
}

.stats-grid,
.dashboard-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 24px;
}

.dashboard-grid,
.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid article,
.panel,
.auth-panel,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid article {
  padding: 18px;
}

.stats-grid strong {
  display: block;
  font-size: 30px;
}

.stats-grid span,
.list span,
small {
  color: var(--muted);
}

.finance-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amount-positive {
  color: #067647;
  font-weight: 800;
}

.amount-negative {
  color: #b42318;
  font-weight: 800;
}

.panel,
.auth-panel {
  padding: 20px;
}

.panel h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.detail h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.detail h2 {
  margin-top: 24px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.item-image,
.detail-image,
.table-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 14px 0;
  max-width: 100%;
}

.item-image {
  max-height: 160px;
  object-fit: cover;
}

.detail-image {
  max-height: 420px;
  object-fit: contain;
}

.table-image {
  height: 56px;
  margin: 0;
  object-fit: cover;
  width: 84px;
}

.meta-list {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: max-content 1fr;
}

.meta-list dt {
  color: var(--muted);
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
}

.profile-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 220px 1fr;
}

.side-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
  position: sticky;
  top: 16px;
}

.side-tabs a {
  color: var(--ink);
  font-weight: 800;
  padding: 10px;
}

.profile-panels {
  display: grid;
  gap: 16px;
}

.profile-hero { align-items: center; display: flex; gap: 20px; margin-bottom: 24px; }
.profile-hero h1 { margin: 2px 0 4px; }
.profile-hero p { color: var(--muted); margin: 0; }
.profile-avatar {
  align-items: center; background: linear-gradient(135deg, #2dd4bf, var(--accent)); border-radius: 50%; color: #fff; display: flex;
  flex: none; font-weight: 800; justify-content: center; overflow: hidden;
}
.profile-avatar img, .user-initial img { height: 100%; object-fit: cover; width: 100%; }
.profile-avatar-lg { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); font-size: 34px; height: 88px; width: 88px; }
.profile-avatar-md { font-size: 26px; height: 72px; width: 72px; }
.user-initial { overflow: hidden; }
.profile-form { display: grid; gap: 16px; }
.profile-form .panel { display: grid; gap: 12px; }
.profile-form h2, .profile-form h3 { margin: 0; }
.profile-form h3 { font-size: 15px; margin-top: 8px; }
.profile-form p { margin: 0; }
.profile-photo-field { align-items: center; display: flex; gap: 18px; }
.profile-photo-field > div:last-child { display: grid; gap: 6px; }
.profile-photo-field label { font-weight: 700; }
.profile-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.profile-grid-address { grid-template-columns: 2fr 1fr 1fr; }
.profile-grid .span-2 { grid-column: span 2; }
.checkbox-row { align-items: center; color: var(--muted); display: flex; font-size: 13px; font-weight: 600 !important; gap: 8px; }
.checkbox-row input { width: auto; }
.privacy-toggles { display: grid; gap: 8px; }
.privacy-toggle {
  align-items: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; gap: 12px; padding: 12px 14px;
  transition: border-color .2s, background .2s;
}
.privacy-toggle:hover { border-color: var(--accent); }
.privacy-toggle input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.privacy-switch { background: #d0d5dd; border-radius: 999px; flex: none; height: 22px; position: relative; transition: background .2s; width: 40px; }
.privacy-switch::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); content: ""; height: 18px; left: 2px; position: absolute; top: 2px; transition: transform .2s; width: 18px; }
.privacy-toggle input:checked + .privacy-switch { background: var(--accent); }
.privacy-toggle input:checked + .privacy-switch::after { transform: translateX(18px); }
.privacy-toggle input:focus-visible + .privacy-switch { box-shadow: 0 0 0 3px rgba(20, 108, 99, .3); }
.privacy-toggle:has(input:checked) { background: #f0f7f5; border-color: #b9dcd4; }
.profile-save { bottom: 16px; display: flex; justify-content: flex-end; position: sticky; z-index: 5; }
.profile-save button { box-shadow: 0 10px 24px -10px rgba(20, 108, 99, .8); }
.profile-ownership { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.profile-ownership > div { display: grid; gap: 2px; }
.contact-lines { display: grid; font-size: 12px; gap: 2px; }
.contact-lines a { word-break: break-all; }
.owner-cell { align-items: center; display: flex; gap: 10px; }
.owner-cell .profile-avatar { font-size: 13px; height: 30px; width: 30px; }
@media (max-width: 700px) {
  .profile-grid, .profile-grid-address { grid-template-columns: 1fr; }
  .profile-grid .span-2 { grid-column: auto; }
  .profile-hero { align-items: flex-start; flex-direction: column; }
}

.comments {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.comments li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.comments li:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment-meta {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-body,
.rich-content {
  line-height: 1.55;
}

.comment-body p,
.rich-content p {
  margin: 0 0 10px;
}

.comment-body ul,
.comment-body ol,
.rich-content ul,
.rich-content ol {
  margin: 8px 0 8px 22px;
  padding: 0;
}

.comment-body img,
.rich-content img {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 10px 0;
  max-height: 260px;
  max-width: 100%;
  object-fit: contain;
}

.source-link {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 20px;
  padding-top: 14px;
}

.comment-actions {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 12px;
  margin-top: 10px;
}

.comment-actions form {
  margin: 0;
}

.comment-like {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
  width: auto;
}

.comment-like:hover,
.comment-like.is-active {
  color: var(--accent);
}

.comment-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin: 10px 0 18px;
}

.comment-gallery a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  padding: 8px;
}

.comment-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.comment-gallery span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-comment-form {
  display: grid;
  gap: 12px;
}

.rich-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rich-editor-toolbar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.rich-editor-toolbar button,
.rich-editor-toolbar label,
.rich-editor-toolbar select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-width: 36px;
  padding: 7px 10px;
  text-align: center;
  width: auto;
}

.rich-editor-toolbar input[type="file"] {
  display: none;
}

.rich-editor-toolbar select {
  min-width: 92px;
}

.rich-editor-toolbar .color-picker {
  align-items: center;
  display: flex;
  min-width: 40px;
  padding: 5px;
}

.rich-editor-toolbar input[type="color"] {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 24px;
  padding: 0;
  width: 28px;
}

.rich-editor-status {
  align-self: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: auto;
}

.rich-editor-surface {
  background: var(--surface);
  min-height: 132px;
  outline: none;
  padding: 12px;
}

.rich-editor-surface:empty::before {
  color: var(--muted);
  content: attr(data-placeholder);
}

.rich-editor-surface img {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 10px 0;
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 0;
}

.list li:first-child {
  border-top: 0;
}

.row-between {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.badge {
  background: #fff7e6;
  border: 1px solid #f0d29a;
  border-radius: 999px;
  color: var(--gold);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}

.stack {
  display: grid;
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.section-heading { margin: 26px 0 12px; }
.section-heading h2,
.section-heading p { margin: 0; }
.section-heading p,
.table-subline { color: var(--muted); }
.table-subline { display: block; margin-top: 4px; }
.inline-select-form select { min-width: 220px; }
.button.compact { padding: 7px 10px; }
.block-code { display: block; margin-bottom: 12px; overflow-wrap: anywhere; }
.board-list { display: grid; gap: 10px; }
.board-member-row { align-items: center; display: grid; gap: 14px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 16px; }
.board-member-row > div { display: grid; gap: 3px; }
.board-member-row > div span,
.board-member-row > div a { color: var(--muted); font-size: 12px; }
.board-member-row > .actions,.integration-key-row > .actions { display: flex; flex-wrap: nowrap; gap: 8px; }
.board-member-row > .actions .button { font-size: inherit; }
.board-avatar { align-items: center; background: #e4f1ec; border-radius: 50%; color: var(--accent-strong); display: flex; font-weight: 850; height: 42px; justify-content: center; width: 42px; }
.detail-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

@media (max-width: 800px) {
  .detail-layout { grid-template-columns: 1fr; }
  .inline-select-form select { min-width: 190px; }
  .board-member-row { grid-template-columns: auto minmax(0, 1fr); }
  .board-member-row > .button,.board-member-row > .actions { grid-column: 1 / -1; text-align: center; }
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.filters input,
.filters select {
  max-width: 280px;
}

.auth-panel {
  margin: 48px auto;
  max-width: 560px;
}

.form p {
  display: grid;
  gap: 6px;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .shell {
    padding: 20px;
  }

  .stats-grid,
  .dashboard-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .row-between {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .side-tabs {
    position: static;
  }
}

/* Application shell */
.app-body {
  min-height: 100vh;
}

.app-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 20px 16px 16px;
  position: fixed;
  top: 0;
  width: 252px;
  z-index: 20;
}

.app-brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 16px;
  font-weight: 850;
  gap: 10px;
  padding: 0 8px 18px;
}

.app-brand:hover,
.sidebar-nav a:hover,
.activity-row:hover {
  text-decoration: none;
}

.app-brand-mark {
  display: block;
  flex: none;
  height: 32px;
  width: 32px;
}

.community-switcher {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin: 0 -16px 14px;
  padding: 16px 24px;
}

.community-switcher label,
.dashboard-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.community-switcher select {
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  max-width: 100%;
  padding: 9px;
}

.sidebar-address a { color: var(--accent); font-weight: 700; }
.sidebar-new-community { color: var(--accent); display: inline-block; font-size: 12px; font-weight: 750; margin-top: 8px; }
.sidebar-address {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  line-height: 1.35;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  overflow-y: auto;
}

.sidebar-nav a {
  align-items: center;
  border-radius: 6px;
  color: #475467;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 11px;
  padding: 9px 10px;
}

.sidebar-nav a:hover {
  background: #edf5f1;
  color: var(--accent-strong);
}

.nav-symbol {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
}

.sidebar-user {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 14px;
  position: relative;
}

.sidebar-user summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  list-style: none;
}

.sidebar-user summary::-webkit-details-marker { display: none; }
.sidebar-user summary > span:last-child { display: grid; min-width: 0; }
.sidebar-user summary strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user summary small { font-size: 11px; }
.user-initial { align-items: center; background: #dcebe5; border-radius: 50%; color: var(--accent-strong); display: flex; flex: 0 0 auto; font-size: 13px; font-weight: 850; height: 34px; justify-content: center; width: 34px; }

.sidebar-user-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 48px;
  box-shadow: 0 14px 34px rgba(23, 32, 42, .14);
  display: grid;
  left: 0;
  padding: 10px;
  position: absolute;
  width: 218px;
}

.sidebar-user-panel > a { color: var(--ink); font-size: 13px; font-weight: 700; padding: 8px; }
.sidebar-user-panel form:last-child { margin: 5px 0 0; }
.sidebar-user-panel button { background: var(--accent); border: 0; border-radius: 6px; color: #fff; cursor: pointer; font: inherit; font-weight: 750; padding: 9px; width: 100%; }

.app-main {
  margin-left: 252px;
  max-width: 1440px;
  min-height: 100vh;
  padding: 38px 42px;
}

.dashboard-header {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dashboard-header h1 { font-size: 32px; margin: 5px 0 7px; }
.dashboard-address { color: var(--muted); margin: 0; }
.dashboard-address span { color: #b0b8b4; margin: 0 8px; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }

.dashboard-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-summary a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  padding: 17px;
}

.dashboard-summary a:hover { border-color: #9dbbb0; text-decoration: none; }
.dashboard-summary span { color: var(--muted); font-size: 12px; font-weight: 750; }
.dashboard-summary strong { font-size: 29px; margin: 7px 0 2px; }
.dashboard-summary small { font-size: 11px; }

.dashboard-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
.dashboard-feed { padding: 0; overflow: hidden; }
.panel-heading { border-bottom: 1px solid var(--line); padding: 20px 22px; }
.panel-heading h2 { margin: 4px 0 0; }
.panel-heading-row { align-items: center; display: flex; justify-content: space-between; }
.panel-heading-row > a { font-size: 12px; font-weight: 750; }
.activity-group { padding: 20px 22px; }
.activity-group + .activity-group { border-top: 1px solid var(--line); }
.activity-title { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.activity-title h2,.activity-title h3 { font-size: 15px; margin: 0; }
.activity-title a { font-size: 12px; font-weight: 750; }
.activity-row { align-items: center; border-top: 1px solid #edf0ee; color: var(--ink); display: flex; gap: 12px; padding: 12px 0; }
.activity-row > span:last-child { display: grid; gap: 3px; }
.activity-row strong { font-size: 13px; }
.activity-row small { font-size: 11px; }
.activity-mark { align-items: center; border-radius: 5px; display: flex; flex: 0 0 auto; font-size: 11px; font-weight: 850; height: 34px; justify-content: center; width: 34px; }
.document-mark { background: #e4f1ec; color: var(--accent-strong); }
.meeting-mark { background: #f5ead7; color: #865d19; }
.article-mark { background: #e4f1ec; color: var(--accent-strong); font-size: 9px; }
.resolved-mark { background: #e9f4e5; color: #39712f; font-size: 9px; }
.upcoming-features { margin-top: 24px; }
.upcoming-feature-list { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.upcoming-feature-list > div { display: grid; gap: 5px; padding: 16px 18px; }
.upcoming-feature-list > div + div { border-left: 1px solid var(--line); }
.upcoming-feature-list span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.upcoming-feature-list small { color: var(--accent-strong); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.empty-state { color: var(--muted); font-size: 13px; margin: 15px 0 5px; }
.dashboard-side { display: grid; gap: 18px; }
.finance-overview .balance { background: #eff6f3; border-radius: 6px; display: grid; gap: 5px; margin: 15px 0; padding: 15px; }
.finance-overview .balance strong { color: var(--accent-strong); font-size: 25px; }
.finance-overview dl { display: grid; gap: 9px; margin: 0; }
.finance-overview dl div { display: flex; justify-content: space-between; }
.finance-overview dt { color: var(--muted); }
.finance-overview dd { font-weight: 750; margin: 0; }
.location-row { border-top: 1px solid #edf0ee; display: grid; gap: 3px; padding: 11px 0; }
.location-row strong { font-size: 13px; }
.location-row span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.compact-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.compact-actions a { background: #f2f5f4; border-radius: 5px; color: var(--accent-strong); font-size: 12px; font-weight: 750; padding: 9px; text-align: center; }

@media (max-width: 980px) {
  .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .upcoming-feature-list { grid-auto-flow: row; grid-template-columns: 1fr; }
  .upcoming-feature-list > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .app-sidebar { border-bottom: 1px solid var(--line); border-right: 0; bottom: auto; padding: 12px 14px 0; position: relative; width: 100%; }
  .app-brand { padding: 0 0 12px; }
  .community-switcher { margin: 0 -14px 10px; padding: 11px 14px; }
  .sidebar-address { display: none; }
  .sidebar-nav { display: flex; margin: 0 -14px; overflow-x: auto; padding: 0 14px 10px; }
  .sidebar-nav a { flex: 0 0 auto; padding: 8px 10px; }
  .nav-symbol { display: none; }
  .sidebar-user { position: absolute; right: 14px; top: 12px; }
  .sidebar-user summary > span:last-child { display: none; }
  .sidebar-user-panel { bottom: auto; left: auto; right: 0; top: 42px; }
  .app-main { margin-left: 0; padding: 24px 18px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { width: 100%; }
  .dashboard-actions .button { flex: 1; text-align: center; }
}

@media (max-width: 460px) {
  .dashboard-summary { grid-template-columns: 1fr 1fr; }
  .dashboard-summary a { padding: 13px; }
  .dashboard-summary strong { font-size: 24px; }
  .dashboard-summary small { display: none; }
}

/* Resident information guide */
.resident-hero {
  align-items: flex-end;
  background: var(--accent-strong);
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 220px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.resident-hero .dashboard-kicker { color: #b9ddd0; }
.resident-hero h1 { font-size: 42px; margin: 8px 0; position: relative; z-index: 1; }
.resident-hero p { margin: 0; position: relative; z-index: 1; }
.resident-hero p span { color: #87b2a3; margin: 0 8px; }
.resident-apartment-label { border-left: 3px solid #8fc4b0; margin-top: 14px !important; padding-left: 10px; }
.resident-manage { background: #fff; color: var(--accent-strong); position: relative; z-index: 1; }
.resident-hero-actions { display: flex; gap: 8px; position: relative; z-index: 1; }
.resident-hero-actions .secondary { background: transparent; border: 1px solid #7fa99a; color: #fff; }

.resident-jump {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 20px;
  margin: 16px 0;
  padding: 13px 16px;
  position: sticky;
  top: 12px;
  z-index: 8;
}

.resident-jump > strong { flex: 0 0 auto; font-size: 12px; }
.resident-filter-row { display: flex; flex: 1; gap: 7px; overflow-x: auto; }
.resident-filter { background: #f0f5f3; border: 1px solid transparent; border-radius: 5px; color: var(--accent-strong); cursor: pointer; flex: 0 0 auto; font: inherit; font-size: 12px; font-weight: 750; padding: 8px 10px; }
.resident-filter.is-active { background: var(--accent); color: #fff; }
.resident-search { flex: 0 1 250px; }
.resident-search input { background: #fff; border: 1px solid var(--line); border-radius: 6px; font: inherit; padding: 8px 10px; width: 100%; }
[data-resident-item][hidden], [data-resident-group][hidden] { display: none; }

.resident-featured {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 38px;
}

.resident-featured a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  min-height: 145px;
  overflow: hidden;
}

.resident-featured img { height: 110px; object-fit: cover; width: 100%; }
.resident-featured span { display: grid; gap: 5px; padding: 15px; }
.resident-featured small { color: var(--accent); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.resident-featured strong { font-size: 16px; }
.resident-featured em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }

.resident-content { margin: 36px auto; max-width: 960px; }
.resident-section { display: grid; gap: 28px; grid-template-columns: 220px minmax(0, 1fr); padding: 42px 0; scroll-margin-top: 80px; }
.resident-section + .resident-section { border-top: 1px solid var(--line); }
.resident-section > header { align-self: start; position: sticky; top: 84px; }
.resident-section h2 { font-size: 25px; margin: 6px 0 10px; }
.resident-section > header > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.55; }
.resident-articles { display: grid; gap: 14px; }
.resident-article { background: #fff; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; scroll-margin-top: 85px; }
.resident-article > img { aspect-ratio: 16 / 6; display: block; object-fit: cover; width: 100%; }
.resident-article > div { padding: 22px; }
.resident-article h3 { font-size: 20px; margin: 0 0 12px; }
.resident-article .lead { font-size: 15px; margin: 0 0 16px; }
.resident-article .rich-content { color: #3f4b46; }
.resident-attachment { display: inline-block; font-size: 13px; font-weight: 800; margin-top: 12px; }
.resident-meta { border-top: 1px solid var(--line); display: grid; gap: 9px; margin: 18px 0 0; padding-top: 16px; }
.resident-meta div { display: grid; gap: 3px; grid-template-columns: 110px 1fr; }
.resident-meta dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.resident-meta dd { font-size: 13px; margin: 0; }
.resident-empty { margin-top: 18px; text-align: center; }

.resident-contact {
  background: #e3eee9;
  border-radius: 8px;
  display: grid;
  gap: 50px;
  grid-template-columns: .75fr 1.25fr;
  margin-top: 40px;
  padding: 32px;
  scroll-margin-top: 80px;
}

.resident-contact h2 { font-size: 26px; margin: 6px 0 10px; }
.resident-contact > div:first-child > p:last-child { color: var(--muted); line-height: 1.55; }
.resident-contact-list { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resident-contact-list article { background: #fff; border: 1px solid #cadbd4; border-radius: 6px; display: grid; gap: 4px; padding: 14px; }
.resident-contact-list small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.resident-contact-list span,.resident-contact-list a { font-size: 12px; }

.resident-links { margin-bottom: 18px; padding: 0; }
.resident-links-heading { border-bottom: 1px solid var(--line); padding: 18px 20px; }
.resident-links-heading h2 { margin: 5px 0; }
.resident-links-heading p:last-child { color: var(--muted); margin: 0; }
.resident-link-row { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(180px,.7fr) minmax(240px,1.5fr) auto; padding: 14px 20px; }
.resident-link-row + .resident-link-row { border-top: 1px solid #edf0ee; }
.resident-link-row > div { display: grid; gap: 3px; }
.resident-link-row > div span,.missing-info-code { color: var(--muted); font-size: 12px; }
.resident-link-row code { background: #f3f6f5; border-radius: 5px; color: #3f4b46; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 11px; overflow: hidden; padding: 9px; text-overflow: ellipsis; white-space: nowrap; }
.copy-link-button { background: var(--accent); border: 0; border-radius: 6px; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; min-width: 105px; padding: 9px 11px; }

@media (max-width: 800px) {
  .resident-hero { align-items: flex-start; flex-direction: column; min-height: 200px; padding: 24px; }
  .resident-hero-actions { flex-wrap: wrap; }
  .resident-hero h1 { font-size: 34px; }
  .resident-jump { align-items: stretch; flex-direction: column; gap: 8px; position: static; }
  .resident-search { flex-basis: auto; }
  .resident-featured { grid-template-columns: 1fr; }
  .resident-section { grid-template-columns: 1fr; }
  .resident-section > header { position: static; }
  .resident-contact { gap: 24px; grid-template-columns: 1fr; padding: 24px; }
  .resident-link-row { align-items: stretch; grid-template-columns: 1fr; }
  .resident-link-row .button,.copy-link-button { text-align: center; width: 100%; }
}

@media (max-width: 480px) {
  .resident-contact-list { grid-template-columns: 1fr; }
}

/* Meldingen en taken */
.issue-filters { display: grid; gap: 10px; grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(130px, .45fr)) auto; margin-bottom: 18px; }
.issue-filters button { background: var(--accent); border: 0; border-radius: 6px; color: #fff; font-weight: 750; padding: 10px 15px; }
.apartment-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.apartment-filters select { min-width: 180px; width: auto; }
.issue-list { overflow: visible; padding: 0; }
.issue-row { align-items: center; color: var(--ink); display: grid; gap: 14px; grid-template-columns: 115px minmax(210px, 1fr) 85px 155px 72px 36px; padding: 14px 16px; position: relative; }
.issue-row:has(.row-actions[open]) { z-index: 30; }
.issue-row + .issue-row { border-top: 1px solid var(--line); }
.issue-row:hover { background: #f8faf9; }
.issue-main { display: grid; gap: 3px; }
.issue-main a { color: var(--ink); }
.issue-status-form { margin: 0; }
.issue-status-select { border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; font-weight: 750; max-width: 100%; padding: 7px 8px; width: 100%; }
.row-actions { position: relative; }
.row-actions[open] { z-index: 30; }
.row-actions summary { align-items: center; border-radius: 6px; cursor: pointer; display: flex; font-size: 22px; height: 34px; justify-content: center; list-style: none; width: 34px; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions summary:hover { background: #e9efed; }
.row-actions-menu { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 30px rgba(17, 38, 33, .14); display: grid; min-width: 210px; padding: 6px; position: absolute; right: 0; top: 38px; z-index: 20; }
.row-actions-menu a,.row-actions-menu button { background: transparent; border: 0; border-radius: 4px; color: var(--ink); cursor: pointer; display: block; font: inherit; font-size: 13px; padding: 9px 10px; text-align: left; width: 100%; }
.row-actions-menu a:hover,.row-actions-menu button:hover { background: #eef3f1; text-decoration: none; }
.row-actions-menu form { margin: 0; }
.row-actions-menu .danger-link { color: #a12626; }
.issue-main { display: grid; gap: 4px; min-width: 0; }
.issue-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-main small,.issue-row time { color: var(--muted); font-size: 12px; }
.issue-kind { color: var(--muted); font-size: 12px; font-weight: 750; }
.issue-status,.issue-priority { border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 800; padding: 5px 9px; text-align: center; width: fit-content; }
.status-new { background: #e8f0f8; color: #265b86; }
.status-in_progress { background: #e5f2ed; color: #176354; }
.status-waiting { background: #fff2d9; color: #805500; }
.status-resolved,.status-closed { background: #e9eceb; color: #52605a; }
.priority-low,.priority-normal { background: #eef1f0; color: #52605a; }
.priority-high { background: #fff0d9; color: #8a5600; }
.priority-urgent { background: #fce3e3; color: #a12626; }
.issue-badges { display: flex; gap: 8px; margin-top: 12px; }
.issue-detail-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; margin: 22px 0; overflow-x: auto; }
.issue-detail-tabs button { align-items: center; background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); display: flex; flex: 0 0 auto; gap: 8px; padding: 12px 16px; }
.issue-detail-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--ink); }
.tab-count { background: #e9efed; border-radius: 999px; font-size: 11px; line-height: 1; padding: 4px 7px; }
.issue-tab-panel[hidden] { display: none; }
.issue-detail-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); }
.issue-description,.issue-meta { padding: 22px; }
.issue-description img { border-radius: 6px; margin-top: 18px; max-height: 420px; object-fit: cover; width: 100%; }
.issue-meta dl,.issue-meta dl div { display: grid; gap: 6px; }
.issue-meta dl { margin: 0; }
.issue-meta dl div { border-top: 1px solid var(--line); grid-template-columns: 110px 1fr; padding: 11px 0; }
.issue-meta dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.issue-meta dd { font-size: 13px; margin: 0; }
.issue-duration-panel { align-items: center; display: grid; gap: 24px; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); margin-top: 18px; padding: 20px 22px; }
.issue-duration-panel h2 { margin: 4px 0 0; }
.issue-duration-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.issue-duration-list > div { align-items: center; border-left: 2px solid var(--line); display: grid; gap: 5px; min-height: 58px; padding: 5px 12px; }
.issue-duration-list > div.is-current { border-left-color: var(--accent); }
.issue-duration-list strong { font-size: 17px; }
.issue-duration-list small { font-size: 11px; }
.issue-timeline { max-width: 850px; }
.issue-timeline > header h2 { margin-top: 4px; }
.issue-section-header { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 18px; }
.issue-section-header h2 { margin-bottom: 0; }
.timeline-entry { display: grid; gap: 14px; grid-template-columns: 14px 1fr; padding: 0 0 22px; }
.timeline-dot { background: var(--accent); border: 4px solid #dcece8; border-radius: 50%; height: 14px; margin-top: 4px; width: 14px; }
.timeline-entry > div { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.timeline-entry header { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 8px; }
.timeline-entry time { color: var(--muted); font-size: 12px; }
.issue-update-form { margin: 0; }
.issue-update-form h3 { margin-top: 0; }
.issue-mark { background: #e5f2ed; color: var(--accent); }
.form-related-link { align-items: center; background: #eef5f2; border: 1px solid #d2e4dd; border-radius: 6px; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 20px; padding: 14px; }
.form-related-link p { color: var(--muted); margin: 0; }
.focus-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.focus-feed { margin-top: 20px; max-width: 900px; }
.focus-locations { margin-top: 20px; max-width: 900px; padding: 20px; }
.issue-quotes { max-width: 980px; }
.issue-quotes > header h2 { margin-top: 4px; }
.quote-list { display: grid; gap: 12px; }
.quote-card { padding: 20px; }
.quote-heading { align-items: start; display: flex; gap: 16px; justify-content: space-between; }
.quote-heading > div { display: grid; gap: 4px; }
.quote-heading strong { font-size: 17px; }
.quote-heading > div span { font-size: 22px; font-weight: 800; }
.quote-status { border-radius: 999px; font-size: 11px; font-weight: 800; padding: 6px 10px; }
.quote-pending { background: #fff2d9; color: #805500; }
.quote-approved { background: #e5f2ed; color: #176354; }
.quote-rejected { background: #fce3e3; color: #a12626; }
.quote-meta,.quote-decision { color: var(--muted); font-size: 12px; }
.approval-amount { font-size: 18px; font-weight: 800; margin: 10px 0; }
.quote-decision { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.quote-decision-form { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.quote-upload-form { margin: 0; }
.quote-upload-form h3 { margin-top: 0; }
.issue-dialog { border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(17, 38, 33, .24); max-height: min(84vh, 780px); max-width: 680px; overflow-y: auto; padding: 0; width: calc(100% - 32px); }
.issue-dialog::backdrop { background: rgba(17, 38, 33, .48); }
.dialog-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 18px 22px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dialog-heading h2 { font-size: 20px; margin: 0; }
.dialog-close { align-items: center; background: transparent; border: 0; color: var(--muted); display: flex; font-size: 28px; height: 36px; justify-content: center; padding: 0; width: 36px; }
.issue-dialog > form { padding: 22px; }
.dialog-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; }

@media (max-width: 650px) { .focus-summary { grid-template-columns: 1fr; } }
.language-hint { background: #e8f3f1; border-radius: 6px; color: var(--accent-strong); font-size: 13px; line-height: 1.45; margin: 4px 0 12px; padding: 9px 12px; }
.integration-key-row { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) auto auto; padding: 14px; }
.integration-key-row + .integration-key-row { border-top: 1px solid var(--line); }
.integration-key-row > div { display: grid; gap: 4px; }
.integration-key-row span { color: var(--muted); font-size: 12px; }
.administration-section-heading { margin-top: 36px; }
.api-key-result code { background: #eef2f1; display: block; margin: 20px 0 12px; overflow-wrap: anywhere; padding: 16px; }
.error-page { margin: 8vh auto 0; max-width: 680px; padding: 30px; }
.error-page h1 { margin-top: 6px; }
.error-reference { background: #f4f6f5; border-left: 3px solid var(--accent); margin: 22px 0; padding: 14px; }
.report-filter { align-items: end; display: grid; gap: 14px; grid-template-columns: 1.35fr .7fr .8fr 1fr auto; padding: 18px; }
.report-filter > div { display: grid; gap: 6px; }
.report-filter label { color: var(--muted); font-size: 12px; font-weight: 750; }
.report-heading { align-items: center; display: flex; justify-content: space-between; margin: 30px 0 16px; }
.report-heading h2 { margin: 4px 0 0; }
.report-kpis { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-kpis article { background: #edf4f1; border: 1px solid #c9dad4; padding: 18px; }
.report-kpis strong { display: block; font-size: 24px; }
.report-kpis span { color: var(--muted); font-size: 12px; }
.report-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.report-grid > article { padding: 20px; }
.report-grid h3,.report-open-items h3 { margin-top: 0; }
.report-grid dl,.report-grid dl div { display: grid; }
.report-grid dl { margin: 0; }
.report-grid dl div { border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; padding: 9px 0; }
.report-grid dt { color: var(--muted); }
.report-grid dd { font-weight: 800; margin: 0; }
.report-ranking { list-style: none; margin: 0; padding: 0; }
.report-ranking li { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 9px 0; }
.report-open-items { margin-top: 14px; padding: 20px; }
.location-intro { align-items: end; display: grid; gap: 24px; grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr); margin: 28px 0 16px; }
.location-intro h2 { margin: 4px 0 0; }
.location-intro > p { color: var(--muted); margin: 0; max-width: 700px; }
.location-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.location-card { padding: 20px; }
.location-labels { align-items: center; display: flex; gap: 10px; }
.location-card h2 { margin: 8px 0 12px; }
.location-links { margin: 16px 0 0; }
.location-links > div { border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 110px 1fr; padding: 9px 0; }
.location-links dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.location-links dd { font-size: 13px; margin: 0; }

@media (max-width: 900px) {
  .issue-filters { grid-template-columns: 1fr 1fr; }
  .issue-row { grid-template-columns: 100px minmax(0, 1fr) 140px 36px; }
  .issue-row .issue-priority,.issue-row time { display: none; }
}

@media (max-width: 650px) {
  .issue-filters,.issue-detail-layout { grid-template-columns: 1fr; }
  .issue-row { align-items: start; grid-template-columns: 1fr; gap: 7px; }
  .issue-main { order: -1; }
  .row-actions { position: absolute; right: 12px; }
  .issue-duration-panel { align-items: start; grid-template-columns: 1fr; }
  .issue-section-header { align-items: stretch; flex-direction: column; }
  .issue-section-header .button { width: 100%; }
  .report-filter,.report-kpis,.report-grid { grid-template-columns: 1fr; }
  .report-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .location-intro,.location-card-grid { grid-template-columns: 1fr; }
}

/* Verhuur */
.rental-intro { background: linear-gradient(135deg, #fff8ea, #ffffff 60%); border-color: #f1dfb8; margin-bottom: 8px; }
.rental-intro h2 { margin: 4px 0 6px; }
.rental-intro p:last-child { color: var(--muted); margin: 0; max-width: 720px; }
.rental-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 8px; }
.rental-card {
  align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: grid;
  gap: 12px 14px; grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.rental-card > .rental-report-button, .rental-card > .rental-chip { grid-column: 1 / -1; text-align: center; width: auto; }
.rental-card > .rental-chip { padding: 7px; }
.rental-card-own { grid-template-columns: auto minmax(0, 1fr) auto; }
.rental-card:hover { border-color: #cfd8e3; box-shadow: 0 8px 20px -14px rgba(17, 38, 33, .35); text-decoration: none; }
.rental-card > div { display: grid; gap: 4px; min-width: 0; }
.rental-card small { color: var(--muted); font-size: 12px; }
.rental-card-mine { border-color: #f1dfb8; }
.rental-card-upcoming { opacity: .9; }
.rental-card-own .rental-card-action { color: var(--accent); font-size: 13px; font-weight: 750; }
.rental-number {
  align-items: center; background: #0d2227; border-radius: 10px; color: #eaf6f3; display: flex; font-size: 15px; font-weight: 800;
  height: 46px; justify-content: center; min-width: 46px; padding: 0 8px;
}
.rental-chip { border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; width: fit-content; }
.rental-none { background: #eef2f6; color: #475467; }
.rental-long_term { background: #e8f0f8; color: #265b86; }
.rental-holiday { background: #fff2d9; color: #805500; }
.rental-mine { background: #fff2d9; color: #805500; }
.rental-visible { background: #e5f2ed; color: #176354; }
.rental-hidden { background: #eef2f6; color: #475467; }
.rental-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rental-intro-note { font-size: 13px; margin-top: 6px !important; }
.rental-warning { background: #fff8ea; border: 1px solid #f1dfb8; border-radius: 8px; color: #805500; font-size: 13px; margin: 0 0 12px; padding: 10px 12px; }
.rental-report-button { background: #b7791f; font-size: 13px; padding: 9px 12px; }
.rental-report-button:hover { background: #8a5a12; }
.rental-report-list { display: grid; gap: 6px; }
.rental-report-row {
  align-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); display: grid; gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 12px;
}
.rental-report-row:hover { border-color: var(--accent); text-decoration: none; }
.rental-report-row > div { display: grid; gap: 2px; min-width: 0; }
.rental-report-row small { color: var(--muted); font-size: 12px; }
.rental-report-status { border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px; width: fit-content; }
.rental-report-status.status-open { background: #fde8e8; color: #a12626; }
.rental-report-status.status-acknowledged { background: #fff2d9; color: #805500; }
.rental-report-status.status-resolved { background: #e5f2ed; color: #176354; }
.rental-status-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rental-status-option { align-items: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; gap: 8px; padding: 10px 12px; }
.rental-status-option input { width: auto; }
.rental-status-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(20, 108, 99, .15); }
.rental-periods li { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.rental-periods li > div { display: grid; gap: 2px; }
.rental-past summary { color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 700; margin-top: 10px; }
.rental-report-panel { max-width: 640px; }
.rental-report-context { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.rental-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.rental-categories-label { flex-basis: 100%; font-weight: 700; margin: 0; }
.rental-category { cursor: pointer; }
.rental-category input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.rental-category span { border: 1px solid var(--line); border-radius: 999px; display: inline-block; font-size: 13px; font-weight: 650; padding: 8px 14px; transition: all .15s; }
.rental-category input:checked + span { background: #0d2227; border-color: #0d2227; color: #fff; }
.rental-category input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20, 108, 99, .3); }
.rental-report-text { line-height: 1.6; }
.rental-response { background: #f0f7f5; border-left: 3px solid var(--accent); border-radius: 8px; margin-top: 16px; padding: 12px 14px; }
.rental-response p { margin: 0 0 4px; }
@media (max-width: 600px) {
  .rental-card-own { grid-template-columns: auto minmax(0, 1fr); }
  .rental-card-action { grid-column: 1 / -1; text-align: center; }
}

/* Inlog- en welkomstpagina's: fragment van het logo-icoon in de hoeken, het kader zweeft erboven. */
.auth-accent { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aa-tile { border-radius: 23%; position: absolute; }
.aa-tile-large { background: #d3e5da; bottom: -150px; height: 420px; right: -150px; width: 420px; }
.aa-tile-dark { background: #176b55; border-radius: 28px; bottom: 170px; box-shadow: 0 22px 44px -22px rgba(11, 70, 56, .6); height: 124px; right: 170px; width: 124px; }
.aa-dot { animation: aa-pulse 4s ease-in-out infinite; background: #d86f54; border-radius: 50%; bottom: 150px; box-shadow: 0 0 0 10px rgba(216, 111, 84, .14); height: 44px; position: absolute; right: 150px; width: 44px; }
.aa-tile-small { background: #e3ede6; height: 150px; left: -50px; top: 110px; width: 150px; }
@keyframes aa-pulse { 0%, 100% { box-shadow: 0 0 0 10px rgba(216, 111, 84, .14); } 50% { box-shadow: 0 0 0 18px rgba(216, 111, 84, .05); } }
.auth-panel-brand { border-radius: 16px; box-shadow: 0 24px 60px -30px rgba(17, 38, 33, .35); padding: 32px; position: relative; z-index: 1; }
.auth-icon { display: block; height: 44px; margin-bottom: 18px; width: 44px; }
@media (max-width: 700px) {
  .aa-tile-large { bottom: -110px; height: 260px; right: -110px; width: 260px; }
  .aa-tile-dark { bottom: 110px; height: 80px; right: 110px; width: 80px; }
  .aa-dot { bottom: 96px; height: 30px; right: 96px; width: 30px; }
  .aa-tile-small { display: none; }
  .auth-panel-brand { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .aa-dot { animation: none; } }

/* Link van de inlogpagina naar de productpagina */
.auth-product-link { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 13px; font-weight: 650; gap: 10px; margin: 24px -32px -32px; padding: 16px 32px; border-radius: 0 0 16px 16px; background: #f8faf9; }
.auth-product-link:hover, .auth-product-link:focus-visible { color: var(--accent); text-decoration: none; background: #f0f7f5; }
.auth-product-link .tile-glyph { background: #176b55; border-radius: 6px; display: inline-grid; flex: none; gap: 2px; grid-template-columns: 11fr 9fr; grid-template-rows: 11fr 9fr; height: 22px; padding: 4px; position: relative; width: 22px; }
.auth-product-link .tile-glyph i { background: #fff; border-radius: 2px; }
.auth-product-link .tile-glyph b { background: #d86f54; border-radius: 50%; height: 5px; left: 54%; position: absolute; top: 54%; transform: translate(-50%, -50%); width: 5px; }
@media (max-width: 700px) { .auth-product-link { margin: 20px -24px -24px; padding: 14px 24px; } }

/* Foutmelding bovenaan een formulier en verborgen formulierrijen */
.form-error-summary { background: #fde8e8; border: 1px solid #f5c2c2; border-radius: 8px; color: #a12626; font-size: 13px; font-weight: 650; margin: 0 0 12px; padding: 10px 12px; }
.form p[hidden] { display: none; }

.form p.has-error input, .form p.has-error select, .form p.has-error textarea { border-color: #d92d20; }
.form p .field-error { color: #a12626; display: block; font-size: 13px; font-weight: 650; margin-top: 6px; }

/* Juridische links onder publieke pagina's zoals de inlogpagina */
.legal-footer { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px 20px; justify-content: space-between; padding: 24px 32px; position: relative; z-index: 1; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-footer a { color: var(--muted); }
.legal-footer a:hover, .legal-footer a:focus-visible { color: var(--accent); }

/* Gegevens importeren */
.import-steps { counter-reset: step; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0 0 20px; padding: 0; }
.import-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; counter-increment: step; display: grid; gap: 2px; padding: 14px 16px 14px 52px; position: relative; }
.import-steps li::before { align-items: center; background: var(--accent); border-radius: 50%; color: #fff; content: counter(step); display: flex; font-weight: 800; height: 26px; justify-content: center; left: 16px; position: absolute; top: 16px; width: 26px; }
.import-steps span { color: var(--muted); font-size: 13px; }
.import-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.import-card { display: grid; gap: 14px; align-content: start; }
.import-card-head h2 { margin: 0 0 4px; }
.import-card-head p { color: var(--muted); font-size: 14px; margin: 0; }
.import-templates { align-items: center; display: flex; flex-wrap: wrap; font-size: 13px; gap: 8px 14px; }
.import-templates span { color: var(--muted); font-weight: 700; }
.import-templates a { font-weight: 750; }
.import-form { gap: 10px; }
.import-mode { border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 8px; margin: 0; padding: 10px 12px; }
.import-mode legend { color: var(--muted); font-size: 12px; font-weight: 800; padding: 0 4px; text-transform: uppercase; }
.import-mode label { align-items: flex-start; display: flex; font-size: 13px; font-weight: 500; gap: 8px; }
.import-mode input { margin-top: 3px; width: auto; }
.import-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.import-stat { color: var(--ink) !important; background: var(--surface) !important; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; display: grid; min-width: 120px; padding: 10px 16px; }
.import-stat strong { font-size: 24px; }
.import-stat span { color: var(--muted); font-size: 12px; font-weight: 700; }
.import-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.import-actions p { margin: 0; }
.import-actions form { margin: 0; }
.import-badge { border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; white-space: nowrap; }
.status-new.import-stat, .status-new.import-badge { border-left-color: #22a37a; }
.import-badge.status-new { background: #e5f2ed; color: #176354; }
.import-stat.status-link { border-left-color: #2f7de1; } .import-badge.status-link { background: #e8f0f8; color: #265b86; }
.import-stat.status-update { border-left-color: #b7791f; } .import-badge.status-update { background: #fff2d9; color: #805500; }
.import-stat.status-duplicate, .import-stat.status-file_duplicate { border-left-color: #98a2b3; }
.import-badge.status-duplicate, .import-badge.status-file_duplicate { background: #eef2f6; color: #475467; }
.import-stat.status-error { border-left-color: #d92d20; } .import-badge.status-error { background: #fde8e8; color: #a12626; }
.import-row-error td:last-child { color: #a12626; }
.import-row-duplicate, .import-row-file_duplicate { opacity: .7; }
@media (max-width: 800px) { .import-steps { grid-template-columns: 1fr; } }

/* Personen koppelen aan appartementen */
.owner-form-panel { max-width: 620px; }
.owner-choice { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; }
.owner-choice legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.owner-option { align-items: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; font-weight: 600; gap: 8px; padding: 10px 14px; }
.owner-option input { width: auto; }
.owner-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(20, 108, 99, .15); }
[data-owner-form] [hidden] { display: none !important; }
.no-login-badge { background: #eef2f6; border-radius: 999px; color: #475467; display: inline-block; font-size: 11px; font-weight: 800; margin-left: 6px; padding: 2px 8px; vertical-align: 1px; }
.owner-row { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; }
.owner-row form { margin: 0; }

/* Zoekveld boven lange personenlijsten */
.select-filter { margin-bottom: 6px; padding-left: 34px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center / 16px; }
select[data-filterable] { min-height: 160px; }
select[data-filterable] option { padding: 6px 8px; }

/* Iconen in knoppen */
.icon { display: inline-block; flex: none; height: 1.05em; stroke-width: 2.1; vertical-align: -.16em; width: 1.05em; }
.button, .share-button, .form button, .list button, .filters button, .filter-bar button, .copy-link-button, .actions button, .dashboard-actions button, .dialog-actions button, .row-actions-menu a, .row-actions-menu button { align-items: center; display: inline-flex; gap: .45em; justify-content: center; }
.button .icon, .share-button .icon, button .icon { opacity: .92; }
.row-actions-menu a, .row-actions-menu button { justify-content: flex-start; }

/* Compact actiemenu (bv. downloaden) */
.action-menu { display: inline-block; position: relative; }
.action-menu > summary { list-style: none; margin-block: 4px; user-select: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu .icon-chevron { height: .9em; margin-inline-start: -.1em; opacity: .75; transition: transform .15s ease; width: .9em; }
.action-menu[open] .icon-chevron { transform: rotate(180deg); }
.action-menu-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px rgba(17, 38, 33, .16); display: grid; gap: 2px; min-width: 240px; padding: 6px; position: absolute; right: 0; top: calc(100% + 2px); z-index: 40; }
.action-menu-panel a { align-items: center; border-radius: 6px; color: var(--ink); display: flex; font-size: 14px; font-weight: 650; gap: 10px; padding: 9px 10px; }
.action-menu-panel a:hover, .action-menu-panel a:focus-visible { background: #eef3f1; text-decoration: none; }
.action-menu-panel a .icon { color: #1d7044; height: 20px; width: 20px; }
.action-menu-panel a span { display: grid; line-height: 1.25; }
.action-menu-panel small { color: var(--muted); font-size: 12px; font-weight: 500; }
.action-menu-note { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 12px; gap: 6px; margin: 4px 0 0; padding: 8px 10px 4px; }
@media (max-width: 640px) { .action-menu-panel { left: 0; right: auto; } }

/* Archief van plattegronden (alleen superuser) */
.fp-archive { margin-top: 28px; }
.fp-archive-head h2 { align-items: center; display: flex; gap: 8px; margin: 0 0 4px; }
.fp-archive-list li { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.fp-archive-list li > div:first-child { display: grid; gap: 2px; }
.fp-archive-list li span { color: var(--muted); font-size: 13px; }
.fp-archive-list form { margin: 0; }

/* Icoonknoppen in tabellen en lijsten (tekst zit in title/aria-label) */
.icon-actions { align-items: center; display: inline-flex; flex-wrap: nowrap; gap: 6px; }
.icon-actions-cell { white-space: nowrap; width: 1%; }
:is(a, button).icon-btn { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--accent-strong); cursor: pointer; display: inline-flex; flex: none; height: 34px; justify-content: center; margin: 0; padding: 0; transition: background .15s ease, border-color .15s ease, color .15s ease; width: 34px; }
:is(a, button).icon-btn .icon { height: 17px; opacity: 1; width: 17px; }
:is(a, button).icon-btn:hover { background: #e9f3ef; border-color: #b9d6cc; color: var(--accent-strong); text-decoration: none; }
:is(a, button).icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:is(a, button).icon-btn.danger { color: #b42318; }
:is(a, button).icon-btn.danger:hover { background: #fdecea; border-color: #f3b8b1; color: #8f1c13; }
:is(a, button).icon-btn.is-done { background: #e6f4ea; border-color: #a7d7b5; color: #1d7044; }
.row-actions-menu .danger-link { color: #b42318; margin-left: 0; }
.row-actions-menu .icon { color: var(--muted); }
.row-actions-menu .danger-link .icon { color: currentColor; }

/* Wachtwoordvoorwaarden onder de wachtwoordvelden */
.password-rules { background: #f4f8f6; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; margin: 4px 0 14px; padding: 10px 12px; }
.password-rules strong { color: var(--ink); display: block; font-size: 13px; margin-bottom: 4px; }
.password-rules ul { margin: 0; padding-left: 18px; }
.password-rules li { margin: 2px 0; }

/* Inlogactiviteit */
th.num, td.num { text-align: right; white-space: nowrap; }
.login-kind { border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 750; padding: 3px 9px; white-space: nowrap; }
.login-kind-success { background: #e6f4ea; color: #1d7044; }
.login-kind-failed { background: #fdecea; color: #b42318; }
.login-kind-logout { background: #eef1f4; color: #475467; }
.login-failed-count { color: #b42318; font-weight: 750; }
.login-events code { font-size: 12px; }
.pagination { align-items: center; display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.muted { color: var(--muted); }
.login-filters { grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(150px, .5fr)) auto; }
@media (max-width: 900px) { .login-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .login-filters { grid-template-columns: 1fr; } }
.login-events td:first-child { white-space: nowrap; }

/* Documenten op het overzicht */
.dashboard-documents { margin-top: 22px; }
.dashboard-documents .panel-heading-row { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.document-list { display: grid; gap: 0; list-style: none; margin: 8px 0 0; padding: 0; }
.document-list li { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: auto 1fr auto; padding: 12px 0; }
.document-list li:first-child { border-top: 0; }
.document-list li.empty-state { display: block; }
.document-list-text { display: grid; gap: 2px; min-width: 0; }
.document-list-text strong { overflow-wrap: anywhere; }
.document-list-text small { color: var(--muted); font-size: 12px; }
.document-list-text span { color: var(--muted); font-size: 13px; }
.doc-type { align-items: center; background: #eef3f1; border-radius: 8px; color: var(--accent-strong); display: inline-flex; font-size: 11px; font-weight: 800; height: 40px; justify-content: center; letter-spacing: .03em; width: 40px; }
td .doc-type { font-size: 10px; height: 26px; margin-right: 6px; width: 34px; }
.doc-type-pdf { background: #fdecea; color: #b42318; }
.doc-type-doc, .doc-type-docx, .doc-type-odt { background: #e8f0fd; color: #1d4ed8; }
.doc-type-xls, .doc-type-xlsx, .doc-type-ods { background: #e6f4ea; color: #1d7044; }
.board-only-badge { align-items: center; background: #fff4e5; border: 1px solid #f5d3a3; border-radius: 999px; color: #9a5b00; display: inline-flex; font-size: 11px; font-weight: 750; gap: 4px; padding: 1px 8px; vertical-align: 1px; }
.board-only-badge .icon { height: 11px; width: 11px; }

/* Installeerbare app */
.install-card { align-items: flex-start; background: linear-gradient(135deg, #eef6f2, #ffffff); border: 1px solid #cfe3da; border-radius: 12px; display: flex; gap: 14px; margin: 0 0 20px; padding: 14px 16px; position: relative; }
.install-card[hidden] { display: none; }
.install-card-icon { border-radius: 12px; box-shadow: 0 4px 12px rgba(23, 107, 85, .25); flex: none; }
.install-card-text { display: grid; gap: 6px; min-width: 0; padding-right: 26px; }
.install-card-text strong { font-size: 15px; }
.install-card-text p { color: var(--muted); font-size: 13px; margin: 0; }
.install-card-text .button { justify-self: start; }
.install-steps { color: var(--ink); font-size: 13px; margin: 4px 0 0; padding-left: 18px; }
.install-steps li { margin: 3px 0; }
.ios-share { display: inline-block; height: 15px; vertical-align: -2px; width: 13px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28' fill='none' stroke='%23007aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v15M7 7l5-5 5 5M5 12H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V14a2 2 0 0 0-2-2h-1'/%3E%3C/svg%3E"); }
.install-card-close { align-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; display: inline-flex; height: 30px; justify-content: center; padding: 0; position: absolute; right: 8px; top: 8px; width: 30px; }
.install-card-close:hover { background: #e3eeea; color: var(--ink); }
.auth-panel .install-card { margin: 20px 0 0; }
.installed-note { align-items: center; color: #1d7044; display: flex; font-weight: 650; gap: 6px; }

/* Pushmeldingen in het profiel */
.push-panel { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.push-panel h3, .notification-preferences h3 { font-size: 15px; margin: 0 0 6px; }
.push-panel [hidden] { display: none !important; }
.push-status { align-items: center; border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 750; gap: 4px; padding: 2px 9px; }
.push-status-on { background: #e6f4ea; color: #1d7044; }
.push-message { border-radius: 8px; font-size: 13px; margin: 8px 0 0; padding: 8px 10px; }
.push-message[data-tone="success"] { background: #e6f4ea; color: #1d7044; }
.push-message[data-tone="error"] { background: #fdecea; color: #b42318; }
.push-message[data-tone=""] { background: #eef1f4; color: #475467; }
.notification-preferences { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }

/* Als app geopend: extra ruimte voor de notch/statusbalk */
.is-standalone-app { padding-top: env(safe-area-inset-top); }
.install-card [hidden] { display: none !important; }
.installed-note[hidden] { display: none; }

/* Aankondigingen */
.dashboard-announcements { margin-bottom: 20px; }
.dashboard-announcements .panel-heading-row { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.announcement-list { display: grid; gap: 12px; }
.announcement-list.compact-list { gap: 10px; margin-top: 10px; }
.announcement-list.is-expired { opacity: .7; }
.announcement-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #8fb9a8; border-radius: 10px; color: var(--ink); display: grid; gap: 6px; padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.announcement-card:hover { box-shadow: 0 6px 18px rgba(17, 38, 33, .08); text-decoration: none; }
.announcement-card.is-pinned { background: #fffaf0; border-left-color: #d86f54; }
.announcement-card strong { font-size: 16px; }
.announcement-card p { color: var(--muted); font-size: 14px; margin: 0; white-space: pre-line; }
.announcement-card-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px; }
.announcement-pin { align-items: center; color: #b4532f; display: inline-flex; font-weight: 750; gap: 4px; }
.announcement-audience { align-items: center; background: #eef3f1; border-radius: 999px; display: inline-flex; gap: 4px; padding: 2px 8px; }
.announcement-pin .icon, .announcement-audience .icon, .announcement-attachment .icon { height: 13px; width: 13px; }
.announcement-attachment { align-items: center; color: var(--accent-strong); display: inline-flex; font-size: 12px; font-weight: 700; gap: 4px; }
.announcement-detail h1 { margin: 10px 0 4px; }
.announcement-body { font-size: 16px; line-height: 1.6; margin: 16px 0; }
.announcement-body p { margin: 0 0 12px; }
.announcement-attachment-row { align-items: center; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 12px; margin: 8px 0 16px; padding: 10px 12px; }
.announcement-attachment-row .icon-actions { margin-left: auto; }
.whatsapp-button { background: #1fa855; }
.whatsapp-button:hover { background: #178a45; }
.announcement-delivery { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; }
.back-link { align-items: center; display: inline-flex; font-size: 14px; gap: 6px; }
.announcement-detail .back-link { margin-bottom: 12px; }
.install-card-help { font-size: 12px; font-weight: 700; justify-self: start; order: 9; }
.push-help-link { font-size: 12px; font-weight: 700; margin-left: 6px; }
.login-help { margin: 16px 0 0; text-align: center; }
.login-help a { align-items: center; display: inline-flex; font-size: 14px; font-weight: 700; gap: 6px; }
.push-report { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.push-report li { font-size: 12.5px; }
.push-report li[data-ok="1"] { color: #1d7044; }
.push-report li[data-ok="0"] { color: #b42318; }
.push-hint { color: #475467; font-size: 12px; margin: 8px 0 0; }
.form-intro { color: var(--muted); margin: -4px 0 16px; }
.viewer-row { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.viewer-row > div { display: grid; gap: 2px; }
.viewer-row span { color: var(--muted); font-size: 13px; }
.viewer-row form { margin: 0; }
.read-only-note { align-items: center; background: #eef3f1; border-radius: 10px; color: #0b4638; display: flex; font-size: 14px; gap: 8px; margin: 0 0 16px; padding: 10px 14px; }

/* Abonnementen */
.billing-banner { align-items: center; background: #eef6f2; border: 1px solid #cfe3da; border-radius: 10px; color: #0b4638; display: flex; flex-wrap: wrap; font-size: 14px; gap: 8px; margin: 0 0 16px; padding: 10px 14px; }
.billing-banner a { font-weight: 800; margin-left: auto; }
.billing-banner.is-warning { background: #fff4e5; border-color: #f5d3a3; color: #8a4b00; }
.billing-status { align-items: flex-start; display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; margin-bottom: 18px; }
.billing-status h2 { margin: 2px 0 6px; }
.billing-status-read_only, .billing-status-blocked { border-color: #f5d3a3; }
.billing-warning { background: #fff4e5; border-radius: 8px; color: #8a4b00; padding: 8px 12px; }
.billing-usage { display: grid; gap: 8px; margin: 0; }
.billing-usage div { background: #f4f8f6; border-radius: 8px; display: flex; justify-content: space-between; padding: 8px 12px; }
.billing-usage dt { color: var(--muted); font-size: 13px; }
.billing-usage dd { font-weight: 800; margin: 0; }
.billing-plans { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 10px 0 16px; }
.billing-plan { border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; gap: 10px; padding: 12px; }
.billing-plan:has(input:checked) { border-color: #176b55; box-shadow: 0 0 0 2px rgba(23, 107, 85, .15); }
.billing-plan.is-disabled { cursor: not-allowed; opacity: .5; }
.billing-plan span { display: grid; gap: 3px; }
.billing-plan small { color: var(--muted); }
.billing-options { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.billing-options fieldset { border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; padding: 10px 14px; }
.billing-grid { align-items: start; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.billing-pill { border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 750; padding: 2px 9px; white-space: nowrap; }
.billing-pill-active { background: #e6f4ea; color: #1d7044; }
.billing-pill-trialing { background: #e8f0fd; color: #1d4ed8; }
.billing-pill-past_due { background: #fdecea; color: #b42318; }
.billing-pill-canceled { background: #eef1f4; color: #475467; }
.billing-pill-complimentary { background: #f3e8ff; color: #6b21a8; }
.billing-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 4px; padding: 16px 18px; }
.billing-actions .actions form { margin: 0; }
.billing-events li { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.billing-events li > div { display: grid; gap: 2px; }
.billing-events span { color: var(--muted); font-size: 13px; }
.billing-plan-forms { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.signup-panel { max-width: 620px; }
.signup-form fieldset { border: 0; margin: 0 0 6px; padding: 0; }
.signup-form legend { font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 6px; text-transform: uppercase; color: var(--muted); }
.form-pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.signup-honeypot { height: 0; left: -9999px; overflow: hidden; position: absolute; }
@media (max-width: 760px) { .billing-status, .billing-grid, .billing-options, .form-pair { grid-template-columns: 1fr; } }
.billing-plan input[type="radio"], .billing-options input[type="radio"] { accent-color: #176b55; flex: none; height: 18px; margin: 2px 0 0; padding: 0; width: 18px; }
.billing-choose button:disabled { cursor: not-allowed; opacity: .5; }
.form-pair { align-items: start; }
.form-pair p { margin-top: 0; }
.billing-discount { margin: 18px 0; }
.billing-discount-fields { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.billing-discount-fields p { margin: 0; }
.billing-code { max-width: 320px; }
.billing-code input { text-transform: uppercase; }
@media (max-width: 760px) { .billing-discount-fields { grid-template-columns: 1fr 1fr; } }
.billing-external { margin: 18px 0; }
.billing-external.is-due { border-color: #f5d3a3; background: #fffaf0; }
.billing-external-form { align-items: end; display: flex; flex-wrap: wrap; gap: 10px; }
.billing-external-form label { flex-basis: 100%; font-size: 13px; font-weight: 700; }
.billing-external-form input { max-width: 220px; }
.billing-pill-invoice { background: #fff4e5; color: #9a5b00; margin-top: 4px; }

/* ---------------------------------------------------------------- Leads (superuser) */
.lead-pill-new { background: #eef1f4; color: #475467; }
.lead-pill-contacted { background: #e8f0fd; color: #1d4ed8; }
.lead-pill-interested { background: #fff4e5; color: #9a5b00; }
.lead-pill-demo { background: #f3e8ff; color: #6b21a8; }
.lead-pill-trial { background: #e0f2fe; color: #075985; }
.lead-pill-customer { background: #e6f4ea; color: #1d7044; }
.lead-pill-lost { background: #fdecea; color: #b42318; }
.lead-bulk { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 10px 14px; }
.lead-bulk span { color: var(--muted); flex: 1 1 160px; font-size: 14px; }
.lead-bulk select { width: auto; }
.check-col { width: 36px; }
.lead-fields { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.lead-fields .lead-field-notes, .lead-fields .lead-field-basis { grid-column: 1 / -1; }
.lead-campaigns { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-campaign { position: relative; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; display: grid; gap: 4px; padding: 14px; text-decoration: none; }
.lead-campaign:hover, .lead-campaign:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lead-campaign strong { align-items: center; display: flex; gap: 6px; }
.lead-campaign span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.lead-campaign input { position: absolute; opacity: 0; pointer-events: none; }
.lead-campaign-choice { border: 0; display: grid; gap: 8px; margin: 0 0 12px; padding: 0; }
.lead-campaign-choice legend { font-weight: 700; margin-bottom: 6px; }
.lead-compose { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lead-recipients { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-preview-subject { border-bottom: 1px solid var(--line); margin: 0 0 12px; padding-bottom: 10px; }
.lead-preview-subject span { color: var(--muted); font-size: 13px; }
.lead-preview-frame { background: #eef2f6; border: 1px solid var(--line); border-radius: 10px; height: 900px; width: 100%; }
.lead-activity-fields { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.lead-activity-fields p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.lead-timeline { margin-top: 16px; }
.lead-activity-demo_request strong, .lead-activity-signup strong { color: var(--accent); }
.lead-activity-unsubscribe strong { color: #b42318; }
.lead-delete { align-items: center; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 14px; }
.lead-demo-format { border: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; }
.lead-demo-format legend { font-weight: 700; margin-bottom: 6px; }
@media (max-width: 900px) { .lead-compose, .lead-campaigns { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lead-fields, .lead-activity-fields { grid-template-columns: 1fr; } .lead-activity-fields p:nth-child(2) { grid-row: auto; } }
.lead-fields .helptext, .lead-compose-form .helptext { color: var(--muted); display: block; font-size: 13px; line-height: 1.45; margin-top: 4px; }
.lead-fields { align-items: start; }
.lead-pill-cold { background: #e0f2fe; color: #075985; }
.lead-cold { display: grid; gap: 24px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-bottom: 18px; }
.lead-cold h2 { margin: 2px 0 8px; }
.lead-cold-intro p { color: var(--muted); line-height: 1.55; }
.lead-script { background: var(--page); border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; padding: 10px 14px; }
.lead-script summary { cursor: pointer; font-weight: 700; }
.lead-script ol { color: var(--ink); line-height: 1.55; margin: 10px 0 0; padding-left: 20px; }
.lead-script li + li { margin-top: 6px; }
.lead-consent-form { background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.lead-consent-form h3 { margin: 0 0 8px; }
@media (max-width: 900px) { .lead-cold { grid-template-columns: 1fr; } }
/* Toestemming voor statistieken */
.consent-banner { position:fixed; left:16px; right:16px; bottom:16px; z-index:50; max-width:620px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; padding:18px 20px; color:#17202a; background:#fff; border:1px solid #c7d4cd; border-radius:14px; box-shadow:0 24px 60px -24px rgba(11,70,56,.45); }
.consent-banner[hidden] { display:none; }
.consent-banner p { flex:1 1 300px; margin:0; font-size:14px; line-height:1.55; }
.consent-banner a { color:#176b55; font-weight:700; }
.consent-actions { display:flex; gap:10px; }
.consent-actions button { min-height:40px; padding:0 18px; border-radius:8px; font:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.consent-decline { color:#0f514a; background:transparent; border:1px solid #9db8ae; }
.consent-accept { color:#fff; background:#176b55; border:1px solid #176b55; }
.footer-link-button { padding:0; color:inherit; background:none; border:0; font:inherit; cursor:pointer; }
.footer-link-button:hover { text-decoration:underline; }

/* ---------------------------------------------------------------- Contactenlijst */
.contact-official { margin-bottom: 28px; }
.contact-official h2, .contact-directory h2 { font-size: 18px; margin: 0 0 12px; }
.contact-official-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.contact-official-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact-official-card.is-emergency { border-color: #f3b4ab; background: #fff8f6; }
.contact-official-card h3 { font-size: 16px; margin: 8px 0 2px; }
.contact-official-card .muted { margin: 0; }
.contact-quick { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.contact-quick span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.contact-filters { display: grid; gap: 10px; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.contact-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.contact-chips a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 650; padding: 5px 12px; text-decoration: none; }
.contact-chips a span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.contact-chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-chips a[aria-current] span { color: #d6eee8; }
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.contact-card:hover { border-color: #b9c9c2; box-shadow: 0 10px 26px -20px rgba(17, 38, 33, .45); }
.contact-card-head { align-items: flex-start; display: flex; gap: 12px; }
.contact-card h3 { font-size: 17px; margin: 2px 0 0; }
.contact-card h3 a, .contact-official-card h3 a { color: var(--ink); text-decoration: none; }
.contact-card .muted { font-size: 13px; margin: 2px 0 0; }
.contact-avatar { align-items: center; background: #e5f2ed; border-radius: 12px; color: var(--accent); display: inline-flex; flex: none; font-size: 18px; font-weight: 800; height: 44px; justify-content: center; object-fit: cover; width: 44px; }
.contact-avatar.large { border-radius: 16px; font-size: 28px; height: 72px; width: 72px; }
.contact-category { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.contact-rating { align-items: center; color: var(--ink); display: inline-flex; flex-wrap: wrap; font-size: 14px; gap: 6px; text-decoration: none; }
.contact-rating span { color: var(--muted); font-size: 13px; }
.stars { display: inline-block; font-size: 15px; letter-spacing: 1px; line-height: 1; position: relative; }
.stars > span { background: linear-gradient(90deg, #e5a50a calc(var(--rating) / 5 * 100%), #d5dbe1 calc(var(--rating) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-facts { color: var(--muted); display: grid; font-size: 13px; gap: 4px; list-style: none; margin: 0; padding: 0; }
.contact-facts li, .contact-details li { align-items: center; display: flex; gap: 8px; }
.contact-facts svg, .contact-details svg { color: var(--accent); flex: none; height: 15px; width: 15px; }
.contact-card .contact-quick { margin-top: auto; padding-top: 4px; }
.contact-more { font-size: 14px; font-weight: 700; margin-left: auto; }
.contact-shared-by { color: var(--muted); font-size: 12px; margin: 0; }
.contact-empty { grid-column: 1 / -1; text-align: center; }
.contact-empty p { font-size: 15px; }
.contact-profile-head { align-items: flex-start; display: flex; gap: 18px; }
.contact-profile-title { flex: 1; min-width: 0; }
.contact-profile-title h1 { margin: 4px 0 2px; }
.contact-profile-body { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin: 22px 0 8px; }
.contact-details { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.contact-notes h2 { font-size: 15px; margin: 0 0 6px; }
.contact-notes p { color: var(--ink); line-height: 1.6; margin: 0; }
.contact-reviews { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin-top: 18px; }
.contact-reviews-summary h2 { margin-top: 0; }
.contact-score { align-items: center; display: flex; gap: 10px; margin: 0 0 10px; }
.contact-score strong { font-size: 34px; }
.contact-score .stars { font-size: 20px; }
.contact-score > span:not(.stars) { color: var(--muted); }
.rating-bars { display: grid; gap: 4px; list-style: none; margin: 0 0 18px; padding: 0; }
.rating-bars li { align-items: center; display: grid; font-size: 13px; gap: 8px; grid-template-columns: 34px 1fr 24px; }
.rating-bars i { background: #edf0f2; border-radius: 99px; display: block; height: 8px; overflow: hidden; }
.rating-bars b { background: #e5a50a; display: block; height: 100%; }
.review-form { border-top: 1px solid var(--line); padding-top: 14px; }
.review-form h3 { margin: 0 0 8px; }
.star-input { border: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 0; }
.star-input legend { font-weight: 700; margin-bottom: 6px; }
.star-input label { cursor: pointer; }
.star-input input { opacity: 0; pointer-events: none; position: absolute; }
.star-input span { border: 1px solid var(--line); border-radius: 8px; color: #e5a50a; display: inline-block; letter-spacing: 1px; padding: 6px 9px; }
.star-input input:checked + span { background: #fff8e6; border-color: #e5a50a; box-shadow: 0 0 0 1px #e5a50a; }
.star-input input:focus-visible + span { outline: 2px solid var(--accent); }
.contact-review-list { display: grid; gap: 12px; }
.contact-review p { line-height: 1.55; margin: 8px 0; }
.contact-form-panel { max-width: 860px; }
.contact-form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.contact-form-grid .contact-field-notes, .contact-form-grid .contact-field-languages, .contact-form-grid .contact-field-image { grid-column: 1 / -1; }
.contact-form-grid .helptext, .review-form .helptext { color: var(--muted); display: block; font-size: 13px; margin-top: 4px; }
#id_languages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
#id_languages > div { display: block; margin: 0; }
#id_languages label { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; display: inline-flex; font-weight: 600; gap: 8px; margin: 0; padding: 7px 14px; }
#id_languages label:has(input:checked) { background: #e5f2ed; border-color: var(--accent); color: var(--accent-strong); }
#id_languages input { height: 16px; margin: 0; width: 16px; }
@media (max-width: 860px) {
  .contact-filters { grid-template-columns: 1fr 1fr; }
  .contact-filters input { grid-column: 1 / -1; }
  .contact-profile-body, .contact-reviews, .contact-form-grid { grid-template-columns: 1fr; }
  .contact-profile-head { flex-wrap: wrap; }
}
