:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --panel-soft: #f0f4f1;
  --line: #d9ded8;
  --line-strong: #aeb8b0;
  --ink: #1d2420;
  --muted: #637069;
  --green: #2f6f5e;
  --green-deep: #225243;
  --amber: #b8842f;
  --red: #a8443b;
  --blue: #476b8f;
  --shadow: 0 18px 60px rgba(35, 45, 39, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 8px 12px;
}

button:hover {
  border-color: var(--green);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.primary:hover {
  background: var(--green-deep);
}

.danger {
  border-color: #d8b9b5;
  color: var(--red);
}

.ghost {
  background: transparent;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-stack {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.owner-login-stack {
  width: min(520px, 100%);
  grid-template-columns: 1fr;
}

.login-panel {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-secondary-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.login-secondary-link:hover {
  text-decoration: underline;
}

.owner-portal-panel h2,
.owner-portal-panel h3 {
  margin: 0;
}

.owner-portal-section {
  display: grid;
  gap: 12px;
}

.owner-portal-grid {
  display: grid;
  gap: 12px;
}

.owner-portal-divider {
  height: 1px;
  background: var(--line);
}

.owner-portal-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.owner-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.owner-portal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.login-panel h1,
.topbar h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.form-error,
.muted,
.empty {
  color: var(--muted);
  margin: 0;
}

.form-error {
  color: var(--red);
  min-height: 20px;
}

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle,
.mobile-breadcrumb {
  display: none;
}

.menu-icon {
  font-size: 16px;
  line-height: 1;
}

.brand-block span,
.account-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-weight: 700;
}

.main-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.main-nav button {
  justify-content: flex-start;
  width: 100%;
  border-color: transparent;
  background: transparent;
  text-align: left;
}

.main-nav button.active {
  border-color: #d3e2dc;
  background: var(--panel-soft);
  color: var(--green-deep);
  font-weight: 700;
}

.account-box {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #bfd6cc;
  border-radius: 6px;
  background: #edf8f3;
  color: var(--green-deep);
}

.notice.error {
  border-color: #e1beb8;
  background: #fff0ee;
  color: var(--red);
}

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

.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.4fr);
  gap: 16px;
  align-items: start;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.section-title {
  margin: 0;
  font-size: 18px;
}

.panel-body {
  padding: 14px;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  flex: 1;
}

.record-list {
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.record-button {
  display: block;
  width: 100%;
  min-height: 58px;
  border-width: 0 0 1px 0;
  border-radius: 0;
  border-color: var(--line);
  background: var(--panel);
  text-align: left;
}

.record-button.active {
  background: #eef5f1;
}

.record-button strong,
.table-title {
  display: block;
}

.record-button span,
.meta-line {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 22, 18, 0.55);
}

.map-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.map-scroll {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: #eef5f0;
}

.map-search {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0 auto 12px;
  max-width: 700px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.map-search label {
  min-width: 0;
}

.map-search-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
}

.map-search-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-editor {
  display: grid;
  grid-template-columns: minmax(90px, 140px) repeat(4, minmax(74px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 0 auto 12px;
  max-width: 700px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.map-editor input,
.map-editor select {
  min-width: 0;
}

.map-editor-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.map-editor-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.map-stage {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
}

.map-stage img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: white;
}

.map-hotspot {
  position: absolute;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(47, 111, 94, 0);
}

.map-hotspot:hover,
.map-hotspot:focus-visible {
  border-color: var(--green);
  background: rgba(47, 111, 94, 0.18);
  outline: 2px solid rgba(47, 111, 94, 0.28);
  outline-offset: 0;
}

.map-stage.editing .map-hotspot {
  display: grid;
  place-items: center;
  border-color: rgba(28, 88, 71, 0.75);
  background: rgba(255, 255, 255, 0.55);
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.map-stage.editing .map-hotspot.selected {
  z-index: 2;
  border-color: var(--red);
  background: rgba(255, 241, 239, 0.88);
  color: var(--red);
  outline: 2px solid rgba(154, 47, 47, 0.26);
}

.map-hotspot.highlighted {
  z-index: 4;
  display: grid;
  place-items: center;
  border-color: #b6281d;
  background: rgba(255, 231, 72, 0.68);
  color: #6f1f16;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  outline: 4px solid rgba(182, 40, 29, 0.34);
  box-shadow: 0 0 0 7px rgba(255, 231, 72, 0.45), 0 0 18px rgba(182, 40, 29, 0.42);
  animation: map-highlight-pulse 1.1s ease-in-out infinite alternate;
}

.map-hotspot.highlighted span,
.map-stage.editing .map-hotspot span {
  pointer-events: none;
}

@keyframes map-highlight-pulse {
  from {
    outline-color: rgba(182, 40, 29, 0.24);
    box-shadow: 0 0 0 5px rgba(255, 231, 72, 0.36), 0 0 12px rgba(182, 40, 29, 0.28);
  }

  to {
    outline-color: rgba(182, 40, 29, 0.46);
    box-shadow: 0 0 0 9px rgba(255, 231, 72, 0.54), 0 0 24px rgba(182, 40, 29, 0.48);
  }
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.bank-assist,
.postal-assist {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #f8fbf7;
}

.bank-assist-header,
.postal-assist-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.bank-assist-note,
.postal-assist-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.postal-assist-note.error {
  color: #9a2f2f;
}

.admin-tool-panel,
.bank-directory-panel {
  margin-top: 16px;
}

.admin-subnav-panel {
  margin-bottom: 16px;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-subnav button {
  background: var(--panel-soft);
  border-color: var(--line);
}

.admin-subnav button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}

.audit-log-panel {
  display: grid;
  gap: 12px;
}

.audit-log-table-wrap {
  max-height: 520px;
}

.audit-log-table {
  min-width: 900px;
}

.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.audit-change-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.audit-change-table th,
.audit-change-table td {
  padding: 5px 6px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.audit-change-table th {
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 700;
}

.board-members-table {
  min-width: 1080px;
}

.admin-tool-status,
.bank-directory-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-tool-status.error,
.bank-directory-status.error {
  color: var(--red);
}

.admin-tool-status.success {
  color: var(--green-deep);
}

.owner-import-panel {
  display: grid;
  gap: 12px;
}

.owner-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.owner-import-table-wrap {
  max-height: 460px;
}

.owner-import-table {
  min-width: 1120px;
}

.owner-import-row.error {
  background: #fff1f1;
}

.owner-import-row.conflict {
  background: #fff7dc;
}

.owner-import-row.warning {
  background: #f6fbef;
}

.owner-import-messages {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.postal-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.postal-suggestion {
  min-width: 124px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 2px;
  text-align: left;
}

.postal-suggestion strong {
  font-size: 13px;
}

.postal-suggestion span,
.postal-suggestion small {
  line-height: 1.2;
}

.postal-suggestion small {
  color: var(--muted);
}

.postal-suggestion:hover,
.postal-suggestion:focus-visible {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 2px rgba(52, 115, 64, 0.14);
  outline: none;
}

.checkbox-label {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

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

.detail-item {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-value {
  word-break: break-word;
}

.detail-value a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

.form-actions,
.inline-actions,
.attachment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-actions {
  justify-content: space-between;
  margin-top: 14px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-transform: inherit;
}

.sort-header:hover,
.sort-header.active {
  color: var(--green-deep);
}

.inline-link {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.inline-link:hover {
  border-color: transparent;
  color: var(--green);
}

.entity-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.entity-link {
  text-align: left;
}

.sort-indicator {
  display: inline-block;
  width: 14px;
  color: var(--green);
  text-align: center;
}

.supporting-row td {
  background: #fbf6ea;
}

.history-row td {
  background: #f7f7f4;
}

.multiline-cell {
  line-height: 1.55;
  white-space: pre-line;
}

.contribution-controls {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(160px, 220px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.contribution-table .compact-input {
  min-width: 120px;
}

.ownership-history-table .compact-input {
  min-width: 130px;
}

.contribution-table .open-row td {
  background: #fff8ec;
}

.compact-input[readonly] {
  background: #f5f6f4;
  color: var(--muted);
}

.print-value {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4f7;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.pill.warn {
  background: #fbf2e5;
  color: var(--amber);
}

.pill.neutral {
  background: #f1f2ef;
  color: var(--muted);
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.attachment-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.attachment-preview {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef5f1;
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 700;
}

.attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-preview.pdf {
  background: #fff0ee;
  color: var(--red);
}

.attachment-preview.doc {
  background: #eef4f7;
  color: var(--blue);
}

.attachment-preview.sheet {
  background: #edf8f3;
  color: var(--green-deep);
}

.attachment-open {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.attachment-open > div {
  min-width: 0;
}

.attachment-open:hover {
  border-color: transparent;
}

.attachment-open:hover strong,
.attachment-open:focus-visible strong {
  color: var(--green-deep);
  text-decoration: underline;
}

.icon-button {
  position: relative;
  width: 34px;
  height: 34px;
  min-height: 34px;
  cursor: pointer;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
}

.icon-button.sm {
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.topbar-icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: #b9d3c2;
  background: #eef5f1;
  color: var(--green-deep);
}

.icon-button.danger:hover,
.icon-button.danger:focus-visible {
  border-color: #e2beb7;
  background: #fff1ef;
  color: var(--red);
}

.compact-action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.compact-action-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compact-action-button:hover,
.compact-action-button:focus-visible {
  border-color: #b9d3c2;
  background: #eef5f1;
  color: var(--green-deep);
}

.compact-action-button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.compact-action-button.primary:hover,
.compact-action-button.primary:focus-visible {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}

.file-preview-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.file-preview-body {
  min-height: min(70vh, 680px);
  overflow: auto;
  padding: 14px;
  background: #f7f8f5;
}

.file-preview-image,
.file-preview-media {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
}

.file-preview-frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.file-preview-audio {
  width: min(560px, 100%);
}

.file-preview-text {
  margin: 0;
  min-height: 62vh;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  white-space: pre-wrap;
}

.file-preview-fallback {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 20px;
}

.office-preview {
  display: grid;
  gap: 12px;
}

.office-preview-section {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.office-preview-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.office-preview-text {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
}

.office-preview-table-wrap {
  overflow: auto;
}

.office-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.office-preview-table td {
  min-width: 90px;
  border: 1px solid var(--line);
  padding: 6px 8px;
  vertical-align: top;
}

.hidden-input {
  display: none;
}

.print-area {
  display: block;
}

.compact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.compact-label select {
  min-height: 34px;
}

.member-report {
  margin-top: 16px;
}

.member-report-title {
  display: none;
}

.member-report-entry {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.member-report-entry:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.member-report-entry-header h3,
.member-report-entry-header p,
.member-report h4 {
  margin: 0;
}

.member-report-entry-header p {
  color: var(--muted);
}

.member-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.member-report section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.member-report-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.member-report-details div {
  min-width: 0;
}

.member-report-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.member-report-details dd {
  margin: 0;
  word-break: break-word;
}

.member-report-subsection {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.member-report-list {
  margin: 0;
  padding-left: 18px;
}

.member-report-contributions {
  font-size: 13px;
}

.member-check-note {
  margin: 0 0 12px;
  color: var(--muted);
}

.member-check-confirmation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 16px;
  margin-top: 4px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.member-check-confirmation span {
  min-height: 42px;
  border-top: 1px solid var(--line-strong);
  padding-top: 6px;
}

@media (max-width: 1050px) {
  .grid-dashboard {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

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

  .record-list {
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 20;
    height: auto;
    grid-template-rows: auto auto;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    top: 0;
  }

  .brand-block {
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    margin-left: auto;
    padding: 6px 10px;
  }

  .mobile-breadcrumb {
    display: block;
    color: var(--muted);
    font-size: 13px;
  }

  .sidebar .main-nav,
  .sidebar .account-box {
    display: none;
  }

  .sidebar.menu-open .main-nav,
  .sidebar.menu-open .account-box {
    display: grid;
  }

  .sidebar.menu-open .main-nav {
    padding-top: 4px;
  }

  .sidebar.menu-open .account-box {
    padding-top: 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace {
    padding: 14px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .top-actions .compact-action-button {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .top-actions .compact-action-button span {
    display: none;
  }

  .top-actions .compact-action-button[data-short] {
    width: auto;
    min-width: 46px;
    gap: 4px;
    padding: 0 7px;
  }

  .top-actions .compact-action-button[data-short]::after {
    content: attr(data-short);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .form-grid,
  .grid-dashboard,
  .detail-grid,
  .contribution-controls,
  .map-search,
  .map-editor,
  .member-report-grid,
  .member-report-details,
  .member-check-confirmation {
    grid-template-columns: 1fr;
  }

  .map-editor-actions {
    flex-wrap: wrap;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .notice,
  .top-actions,
  .no-print,
  .content > :not(.print-area) {
    display: none !important;
  }

  .shell,
  .workspace {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .panel {
    border: 0;
  }

  th,
  td {
    border: 1px solid #888;
    color: #000;
  }

  .no-print-control {
    display: none !important;
  }

  .print-value {
    display: inline;
  }

  .member-report {
    font-size: 11px;
  }

  .member-report-title {
    display: block;
    margin-bottom: 14px;
  }

  .member-report-title h2,
  .member-report-title p {
    margin: 0;
  }

  .member-report-entry {
    break-inside: avoid;
    page-break-inside: avoid;
  }

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

  .member-report-subsection {
    border-color: #aaa;
    background: #fff;
  }

  .member-check-confirmation span {
    border-top-color: #888;
  }

}
