:root {
  --hc-forest: #3F5F45;
  --hc-moss: #7A8C63;
  --hc-sage: #A8B99A;
  --hc-oak: #7B5E45;
  --hc-beige: #EFE5D0;
  --hc-sand: #F8F3E7;
  --hc-mist: #F6F3EA;
  --hc-clay: #B8793A;
  --hc-amber: #D9A85C;
  --hc-danger: #A65E55;
  --hc-success: #5F7F5F;
  --hc-text: #2E332E;
  --hc-text-muted: #687060;
  --hc-border: #D8CCB8;
  --hc-border-strong: #BFAF95;
  --hc-card: rgba(255, 255, 255, 0.88);
  --hc-accent: var(--hc-forest);
  --hc-accent-hover: #314A36;
  --hc-accent-soft: rgba(63, 95, 69, 0.12);
  --hc-bg: var(--hc-mist);
  --hc-surface: #FFFFFF;
  --hc-surface-muted: var(--hc-sand);
  --hc-surface-raised: rgba(255, 255, 255, 0.9);
  --hc-editor-bg: #FFFFFF;
  --hc-muted: var(--hc-text-muted);
  --hc-shadow: 0 8px 24px rgba(46, 51, 46, 0.08);
  --hc-shadow-strong: 0 20px 50px rgba(46, 51, 46, 0.16);
  --bs-body-bg: var(--hc-bg);
  --bs-body-color: var(--hc-text);
  --bs-secondary-color: var(--hc-text-muted);
  --bs-border-color: var(--hc-border);
  --bs-link-color: var(--hc-accent);
  --bs-link-hover-color: var(--hc-accent-hover);
  --bs-tertiary-bg: var(--hc-surface-muted);
}

.hc-role-permissions-editor {
  display: grid;
  gap: 1rem;
}

.hc-role-permissions-master,
.hc-role-permission-module {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
}

.hc-role-permissions-master {
  padding: 0.85rem 1rem;
}

.hc-role-permission-module {
  overflow: hidden;
}

.hc-role-permission-module-head {
  align-items: center;
  border-bottom: 1px solid var(--hc-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.hc-role-permission-module .table-responsive {
  background: var(--hc-surface);
}

.hc-role-permissions-table {
  margin-bottom: 0;
}

.hc-role-permissions-table th,
.hc-role-permissions-table td {
  vertical-align: middle;
}

html[data-hc-theme="dark"] {
  --hc-forest: #54B689;
  --hc-moss: #78D39C;
  --hc-sage: #1F5B3B;
  --hc-oak: #C9A7FF;
  --hc-beige: #20242D;
  --hc-sand: #171A21;
  --hc-mist: #111318;
  --hc-clay: #C9A7FF;
  --hc-amber: #F4C04F;
  --hc-danger: #FF7B72;
  --hc-success: #54B689;
  --hc-text: #F3F6FA;
  --hc-text-muted: #AAB4C0;
  --hc-border: #343B48;
  --hc-border-strong: #4A5362;
  --hc-card: rgba(23, 26, 33, 0.96);
  --hc-accent: #54B689;
  --hc-accent-hover: #78D39C;
  --hc-accent-soft: rgba(84, 182, 137, 0.16);
  --hc-bg: var(--hc-mist);
  --hc-surface: #171A21;
  --hc-surface-muted: #20242D;
  --hc-surface-raised: rgba(23, 26, 33, 0.96);
  --hc-editor-bg: var(--hc-surface);
  --hc-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  --hc-shadow-strong: 0 22px 56px rgba(0, 0, 0, 0.5);
  --bs-body-bg: var(--hc-bg);
  --bs-body-color: var(--hc-text);
  --bs-secondary-color: var(--hc-text-muted);
  --bs-border-color: var(--hc-border);
  --bs-link-color: var(--hc-accent);
  --bs-link-hover-color: var(--hc-accent-hover);
  --bs-tertiary-bg: var(--hc-surface-muted);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html[data-hc-theme="dark"] {
  color-scheme: dark;
}

body {
  color: var(--hc-text);
  background: var(--hc-bg);
  color-scheme: inherit;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

html:has(.hc-sync-settings-backdrop),
html:has(.hc-sync-dialog-backdrop),
html:has(.hc-modal-layer),
html:has(.hc-modal-popup),
html:has(.hc-map-editor-modal),
html:has(.hc-chat-sheet-backdrop),
html:has(.hc-chat-image-viewer),
body:has(.hc-sync-settings-backdrop),
body:has(.hc-sync-dialog-backdrop),
body:has(.hc-modal-layer),
body:has(.hc-modal-popup),
body:has(.hc-map-editor-modal),
body:has(.hc-chat-sheet-backdrop),
body:has(.hc-chat-image-viewer) {
  overflow: hidden;
}

.btn,
.form-control,
.form-select,
.form-floating > label,
.dropdown-menu,
.dxbl-btn,
.dxbl-text-edit,
.dxbl-text-edit-input,
.dxbl-grid,
.dxbl-list-box,
.dxbl-popup,
.dxbl-toolbar {
  font-size: 1rem;
}

html:not([data-hc-theme="dark"]) .form-control:not(:disabled):not([readonly]),
html:not([data-hc-theme="dark"]) .form-select:not(:disabled) {
  background-color: var(--hc-editor-bg);
}

html:not([data-hc-theme="dark"]) :is(
  .dxbl-text-edit,
  .dxbl-memo-edit,
  .dxbl-spin-edit,
  .dxbl-combobox,
  .dxbl-date-edit,
  .dxbl-searchbox
):not(.dxbl-readonly):not(.dxbl-disabled) {
  --dxbl-text-edit-bg: var(--hc-editor-bg);
  --dxbl-text-edit-btn-bg: var(--hc-editor-bg);
  background-color: var(--hc-editor-bg);
}

.hc-page {
  min-height: 100vh;
}

.hc-card {
  background: var(--hc-card);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(46, 51, 46, 0.08);
  min-width: 0;
}

.hc-card-pad {
  padding: 1rem;
}

.hc-error-details {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.hc-error-details summary {
  color: var(--hc-text);
  cursor: pointer;
  font-weight: 700;
}

.hc-error-details pre {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  color: var(--hc-text);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.75rem 0 0;
  max-height: min(60vh, 34rem);
  overflow: auto;
  padding: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.hc-loading-scope {
  position: relative;
}

.hc-loading-overlay {
  align-items: center;
  background: rgba(248, 243, 231, 0.72);
  border-radius: inherit;
  color: var(--hc-text);
  display: flex;
  font-weight: 700;
  gap: 0.55rem;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 6;
}

.hc-loading-spinner {
  animation: hc-spin 0.8s linear infinite;
  border: 2px solid rgba(63, 95, 69, 0.22);
  border-top-color: var(--hc-forest);
  border-radius: 999px;
  height: 1.05rem;
  width: 1.05rem;
}

@keyframes hc-spin {
  to {
    transform: rotate(360deg);
  }
}

.hc-admin-action-splash {
  align-items: center;
  display: grid;
  inset: auto 1rem 1rem auto;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.16s ease;
  z-index: 2147482500;
}

.hc-admin-action-splash.is-visible {
  opacity: 1;
  pointer-events: none;
}

.hc-admin-action-splash-panel {
  align-items: center;
  background: var(--hc-card);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow-strong, 0 20px 50px rgba(31, 35, 40, 0.14));
  color: var(--hc-text);
  display: flex;
  font-weight: 760;
  gap: 0.85rem;
  max-width: calc(100vw - 2rem);
  min-width: min(320px, calc(100vw - 2rem));
  padding: 1rem 1.15rem;
}

.hc-admin-action-splash-spinner {
  animation: hc-spin 0.78s linear infinite;
  border: 3px solid color-mix(in srgb, var(--hc-accent, var(--hc-forest)), transparent 75%);
  border-radius: 999px;
  border-top-color: var(--hc-accent, var(--hc-forest));
  flex: 0 0 auto;
  height: 1.45rem;
  width: 1.45rem;
}

@media (prefers-reduced-motion: reduce) {
  .hc-admin-action-splash,
  .hc-admin-action-splash-spinner {
    animation: none;
    transition: none;
  }
}

.hc-theme-toggle {
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.hc-theme-toggle:hover,
.hc-theme-toggle:focus-visible {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border-strong);
  color: var(--hc-accent);
}

.hc-theme-icon,
.hc-nav-icon {
  background-color: currentColor;
  display: inline-block;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.hc-theme-icon {
  height: 18px;
  width: 18px;
}

.hc-theme-icon-sun {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 1.5L11.1 4H8.9L10 1.5ZM10 16L8.9 18.5H11.1L10 16ZM18.5 10L16 8.9V11.1L18.5 10ZM4 10L1.5 8.9V11.1L4 10ZM15.7 2.9L13.2 3.9L14.8 5.5L15.7 2.9ZM5.2 14.5L4.3 17.1L6.8 16.1L5.2 14.5ZM17.1 15.7L16.1 13.2L14.5 14.8L17.1 15.7ZM3.9 6.8L5.5 5.2L2.9 4.3L3.9 6.8ZM10 5.5A4.5 4.5 0 1 1 10 14.5A4.5 4.5 0 0 1 10 5.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 1.5L11.1 4H8.9L10 1.5ZM10 16L8.9 18.5H11.1L10 16ZM18.5 10L16 8.9V11.1L18.5 10ZM4 10L1.5 8.9V11.1L4 10ZM15.7 2.9L13.2 3.9L14.8 5.5L15.7 2.9ZM5.2 14.5L4.3 17.1L6.8 16.1L5.2 14.5ZM17.1 15.7L16.1 13.2L14.5 14.8L17.1 15.7ZM3.9 6.8L5.5 5.2L2.9 4.3L3.9 6.8ZM10 5.5A4.5 4.5 0 1 1 10 14.5A4.5 4.5 0 0 1 10 5.5Z'/%3E%3C/svg%3E");
}

.hc-theme-icon-moon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.8 12.6A6.9 6.9 0 0 1 7.4 4.2A7 7 0 1 0 15.8 12.6ZM10 18A8 8 0 0 1 10 2C10.7 2 11.4 2.1 12 2.3A5.6 5.6 0 0 0 17.7 8C17.9 8.6 18 9.3 18 10A8 8 0 0 1 10 18Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.8 12.6A6.9 6.9 0 0 1 7.4 4.2A7 7 0 1 0 15.8 12.6ZM10 18A8 8 0 0 1 10 2C10.7 2 11.4 2.1 12 2.3A5.6 5.6 0 0 0 17.7 8C17.9 8.6 18 9.3 18 10A8 8 0 0 1 10 18Z'/%3E%3C/svg%3E");
}

.hc-compact-metrics {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hc-compact-metrics span {
  align-items: center;
  background: rgba(248, 243, 231, 0.72);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: inline-flex;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.32rem 0.55rem;
}

.hc-compact-metrics small {
  color: #687060;
  font-weight: 700;
}

.hc-compact-metrics strong {
  font-size: 1.05rem;
}

.hc-primary-action {
  align-items: center;
  background: var(--hc-forest);
  border: 1px solid var(--hc-forest);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 650;
  gap: 0.5rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 0.95rem;
  touch-action: manipulation;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 110ms ease;
  -webkit-tap-highlight-color: transparent;
}

.hc-secondary-action {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: inline-flex;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  min-height: 40px;
  padding: 0.48rem 0.8rem;
  touch-action: manipulation;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 110ms ease;
  -webkit-tap-highlight-color: transparent;
}

.hc-pressable,
.hc-profile-trigger,
.hc-profile-action,
.hc-theme-toggle,
.hc-app-tabs a,
.hc-map-tool-button,
.hc-map-longtouch-action,
.hc-chat-icon-button,
.hc-chat-new-button,
.hc-chat-send-button,
.hc-primary-action,
.hc-secondary-action {
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hc-primary-action:not(:disabled):hover,
.hc-primary-action:not(:disabled):focus-visible {
  background: #314d38;
  border-color: #314d38;
  box-shadow: 0 10px 20px rgba(38, 47, 41, 0.16);
}

.hc-secondary-action:not(:disabled):hover,
.hc-secondary-action:not(:disabled):focus-visible,
.hc-app-ghost-action:not(:disabled):hover,
.hc-app-ghost-action:not(:disabled):focus-visible {
  background: rgba(63, 95, 69, 0.08);
  border-color: rgba(63, 95, 69, 0.34);
  box-shadow: 0 8px 18px rgba(38, 47, 41, 0.1);
}

.hc-primary-action:not(:disabled):active,
.hc-secondary-action:not(:disabled):active,
.hc-app-ghost-action:not(:disabled):active,
.hc-pressable.is-pressed:not(:disabled),
.hc-profile-trigger.is-pressed,
.hc-profile-action.is-pressed,
.hc-theme-toggle.is-pressed,
.hc-app-tabs a.is-pressed,
.hc-map-tool-button.is-pressed,
.hc-map-longtouch-action.is-pressed,
.hc-chat-icon-button.is-pressed,
.hc-chat-new-button.is-pressed,
.hc-chat-send-button.is-pressed {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.16), 0 2px 8px rgba(38, 47, 41, 0.14);
  transform: translateY(1px) scale(0.97);
}

.hc-app-ghost-action {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--hc-forest);
  display: inline-flex;
  font-weight: 650;
  gap: 0.5rem;
  justify-content: center;
  min-height: 40px;
  padding: 0.48rem 0.8rem;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 110ms ease;
}

.hc-app-action-spinner {
  animation: hc-spin 700ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: currentColor;
  border-radius: 999px;
  height: 1rem;
  width: 1rem;
}

.hc-primary-action:disabled,
.hc-secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.hc-danger-action {
  border-color: rgba(166, 94, 85, 0.45);
  color: var(--hc-danger);
}

.hc-danger-action-solid {
  background: var(--hc-danger);
  border-color: var(--hc-danger);
  color: #fff;
}

.hc-bank-process-action {
  background: var(--hc-success);
  border-color: var(--hc-success);
  min-width: 10rem;
}

.hc-bank-process-action-preview {
  background: #2563EB;
  border-color: #1D4ED8;
}

.hc-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.35rem;
  line-height: 1;
  min-height: 26px;
  padding: 0.35rem 0.62rem;
  white-space: nowrap;
}

.hc-status-success {
  background: rgba(95, 127, 95, 0.14);
  color: var(--hc-success);
}

.hc-status-warning {
  background: rgba(217, 168, 92, 0.18);
  color: #7A561F;
}

.hc-status-danger {
  background: rgba(166, 94, 85, 0.14);
  color: var(--hc-danger);
}

.hc-status-neutral {
  background: rgba(122, 140, 99, 0.16);
  color: #586848;
}

.hc-admin-shell {
  background: var(--hc-mist);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  min-width: 0;
}

.hc-admin-sidebar {
  background: linear-gradient(180deg, var(--hc-forest), #2f4434);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 1rem;
  position: sticky;
  top: 0;
}

.hc-admin-sidebar-head {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.hc-admin-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 1rem;
  padding: 0.35rem 0.35rem 1rem;
  min-width: 0;
}

.hc-admin-brand strong {
  display: block;
  font-size: 1.49rem;
  letter-spacing: 0;
}

.hc-admin-brand span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.97rem;
}

.hc-admin-nav {
  align-content: start;
  display: grid;
  flex: 1 1 auto;
  gap: 0.24rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.hc-admin-nav-group {
  border-radius: 8px;
}

.hc-admin-nav-group summary {
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  font-size: 0.94rem;
  font-weight: 760;
  list-style: none;
  padding: 0.56rem 0.75rem;
  text-transform: uppercase;
}

.hc-admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.hc-admin-nav-group summary::before {
  color: rgba(255, 255, 255, 0.9);
  content: "▣";
  font-size: 0.84rem;
}

.hc-admin-nav-group summary::after {
  background-color: currentColor;
  content: "";
  flex: 0 0 auto;
  height: 0.78rem;
  margin-left: auto;
  width: 0.78rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.2 5.6L8 9.4L11.8 5.6L13.2 7L8 12.2L2.8 7L4.2 5.6Z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.2 5.6L8 9.4L11.8 5.6L13.2 7L8 12.2L2.8 7L4.2 5.6Z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.hc-admin-nav-group:not([open]) summary::after {
  transform: rotate(-90deg);
}

.hc-admin-nav-group summary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.hc-admin-nav-group > div {
  display: grid;
  gap: 0.15rem;
  margin-left: 1.12rem;
  padding-left: 0.65rem;
  position: relative;
}

.hc-admin-nav-group > div::before {
  background: rgba(255, 255, 255, 0.18);
  bottom: 0.35rem;
  content: "";
  left: 0;
  position: absolute;
  top: 0.2rem;
  width: 1px;
}

.hc-admin-nav-group > div a {
  align-items: center;
  display: flex;
  font-size: 1.01rem;
  gap: 0.5rem;
  padding-left: 1rem;
}

.hc-admin-nav-group > div a::before {
  color: rgba(255, 255, 255, 0.62);
  content: "•";
  font-size: 1.1rem;
  line-height: 1;
}

.hc-admin-nav-section {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.79rem;
  font-weight: 760;
  letter-spacing: 0;
  padding: 0.8rem 0.75rem 0.15rem;
  text-transform: uppercase;
}

.hc-admin-nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
}

.hc-admin-nav a:hover,
.hc-admin-nav a.active {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.hc-admin-menu-button,
.hc-admin-drawer-close,
.hc-admin-drawer-backdrop {
  display: none;
}

.hc-lookup-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hc-lookup-tile {
  background: rgba(248, 243, 231, 0.68);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  text-decoration: none;
}

.hc-lookup-tile:hover {
  background: rgba(168, 185, 154, 0.18);
  color: var(--hc-text);
}

.hc-lookup-tile span {
  color: #687060;
  font-size: 0.99rem;
}

.hc-admin-main {
  min-width: 0;
}

.hc-admin-topbar-context {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.hc-admin-topbar-title {
  min-width: 0;
}

.hc-admin-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--hc-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.8rem 1.35rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.hc-admin-topbar-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  min-width: 0;
}

.hc-quick-actions-menu {
  flex: 0 0 auto;
  position: relative;
}

.hc-quick-actions-trigger {
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 720;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.85rem 0 0.55rem;
  white-space: nowrap;
}

.hc-quick-actions-trigger:hover,
.hc-quick-actions-trigger:focus-visible,
.hc-quick-actions-menu:focus-within .hc-quick-actions-trigger {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border-strong);
  color: var(--hc-text);
}

.hc-quick-actions-plus {
  align-items: center;
  background: var(--hc-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  height: 1.35rem;
  justify-content: center;
  line-height: 1;
  width: 1.35rem;
}

.hc-quick-actions-caret {
  background-color: currentColor;
  color: var(--hc-text-muted);
  display: inline-block;
  height: 0.78rem;
  width: 0.78rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.2 5.6L8 9.4L11.8 5.6L13.2 7L8 12.2L2.8 7L4.2 5.6Z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.2 5.6L8 9.4L11.8 5.6L13.2 7L8 12.2L2.8 7L4.2 5.6Z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.hc-quick-actions-panel {
  background: var(--hc-surface-raised);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow-strong);
  display: grid;
  max-width: min(320px, calc(100vw - 2rem));
  min-width: 250px;
  opacity: 0;
  overflow: hidden;
  padding: 0.35rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(-0.25rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  visibility: hidden;
  width: max-content;
  z-index: 80;
}

.hc-quick-actions-menu:hover .hc-quick-actions-panel,
.hc-quick-actions-menu:focus-within .hc-quick-actions-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.hc-quick-actions-menu.is-suppressed .hc-quick-actions-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
  visibility: hidden;
}

.hc-quick-actions-panel a,
.hc-quick-actions-panel button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--hc-text);
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  padding: 0.62rem 0.75rem;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.hc-quick-actions-panel a:hover,
.hc-quick-actions-panel a:focus-visible,
.hc-quick-actions-panel button:hover,
.hc-quick-actions-panel button:focus-visible {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
  outline: none;
}

.hc-app-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.hc-profile-menu {
  flex: 0 0 auto;
  position: relative;
}

.hc-profile-trigger {
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 40px;
}

.hc-profile-trigger:hover,
.hc-profile-trigger:focus-visible {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border-strong);
  color: var(--hc-accent);
  outline: none;
}

.hc-profile-trigger img,
.hc-profile-panel-head img,
.hc-profile-hero-avatar img,
.hc-avatar-choice img {
  border-radius: 999px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hc-profile-panel {
  background: var(--hc-surface-raised);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow-strong);
  display: grid;
  gap: 0.25rem;
  max-width: min(320px, calc(100vw - 1.5rem));
  min-width: 260px;
  padding: 0.45rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 90;
}

.hc-profile-panel-head {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 0.45rem 0.45rem 0.7rem;
}

.hc-profile-panel-head strong {
  color: var(--hc-text);
  display: block;
  font-size: 0.98rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-profile-panel-head span {
  color: var(--hc-text-muted);
  display: block;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-profile-panel form {
  margin: 0;
}

.hc-profile-action {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--hc-text);
  display: block;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.65rem 0.75rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.hc-profile-action:hover,
.hc-profile-action:focus-visible {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
  outline: none;
}

.hc-profile-action-danger {
  color: var(--hc-danger);
}

.hc-profile-page {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 960px;
}

.hc-app-profile-page {
  max-width: 680px;
}

.hc-profile-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(63, 95, 69, 0.12), rgba(217, 168, 92, 0.1)),
    var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 1rem;
}

.hc-profile-hero h1 {
  font-size: 1.45rem;
  font-weight: 760;
  line-height: 1.15;
  margin: 0;
}

.hc-profile-hero p {
  color: var(--hc-text-muted);
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.hc-profile-hero-avatar {
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(46, 51, 46, 0.16);
  height: 96px;
  overflow: hidden;
  width: 96px;
}

.hc-profile-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.hc-profile-section-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.hc-profile-refresh-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
}

.hc-profile-photo-tools {
  align-items: center;
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-bottom: 0.9rem;
  padding: 0.75rem;
}

.hc-profile-photo-preview {
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(46, 51, 46, 0.13);
  height: 72px;
  overflow: hidden;
  width: 72px;
}

.hc-profile-photo-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hc-profile-photo-controls {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.hc-avatar-picker {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
}

.hc-avatar-choice {
  align-items: center;
  aspect-ratio: 1;
  background: var(--hc-surface-muted);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.hc-avatar-choice:hover,
.hc-avatar-choice:focus-visible {
  border-color: rgba(63, 95, 69, 0.45);
  outline: none;
}

.hc-avatar-choice.is-selected {
  border-color: var(--hc-accent);
  box-shadow: 0 0 0 3px var(--hc-accent-soft);
}

.hc-profile-password-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.hc-profile-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.hc-profile-actions form {
  margin: 0;
}

.hc-profile-inline-message,
.hc-profile-inline-error {
  border-radius: 8px;
  font-weight: 650;
  padding: 0.75rem 0.9rem;
}

.hc-profile-inline-message {
  background: rgba(95, 127, 95, 0.14);
  border: 1px solid rgba(95, 127, 95, 0.32);
  color: var(--hc-success);
}

.hc-profile-inline-error {
  background: rgba(166, 94, 85, 0.12);
  border: 1px solid rgba(166, 94, 85, 0.32);
  color: var(--hc-danger);
}

@media (min-width: 920px) {
  .hc-profile-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hc-profile-form-grid > section:last-child {
    grid-column: 1 / -1;
  }
}

.hc-admin-content {
  padding: 1.25rem;
}

.hc-page-title {
  margin: 0;
}

.hc-page-title h1 {
  font-size: 1.71rem;
  font-weight: 760;
  margin: 0;
}

.hc-page-title p {
  color: #687060;
  margin: 0.15rem 0 0;
}

.hc-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hc-toolbar-actions-only {
  justify-content: flex-end;
}

.hc-members-workspace {
  min-height: calc(100vh - 120px);
}

.hc-members-splitter {
  border: 0;
  min-height: 620px;
}

.hc-split-pane {
  height: 100%;
  min-width: 0;
  overflow: auto;
  padding: 0.1rem;
}

.hc-detail-pane {
  background: rgba(248, 243, 231, 0.38);
  border-radius: 8px;
  padding: 0.75rem;
}

.hc-member-detail-tabs {
  min-width: 0;
}

.hc-grid-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.35rem 0.2rem;
  width: 100%;
}

.hc-grid-toolbar-actions-only {
  justify-content: flex-end;
}

.hc-grid-toolbar h2,
.hc-grid-toolbar h3 {
  font-size: 1.1rem;
  font-weight: 760;
  line-height: 1.2;
  margin: 0;
}

.hc-grid-toolbar span {
  color: #687060;
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.hc-grid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.hc-grid-actions .hc-primary-action,
.hc-grid-actions .hc-secondary-action {
  min-height: 36px;
  padding: 0.42rem 0.7rem;
}

.hc-grid-toolbar-integrated {
  align-items: center;
  min-height: 0;
  padding: 0.16rem 0.3rem !important;
  width: 100%;
}

.hc-grid-toolbar-integrated.dxbl-toolbar,
.hc-grid-toolbar-integrated .dxbl-toolbar {
  min-height: 34px !important;
}

.hc-grid-toolbar-integrated .dxbl-btn {
  font-size: 1.01rem;
  min-height: 32px !important;
  padding: 0.22rem 0.5rem !important;
}

.hc-grid-toolbar-integrated .hc-grid-toolbar-icon-action .dxbl-btn,
.hc-grid-toolbar-integrated .dxbl-btn.hc-grid-toolbar-icon-action {
  min-width: 32px !important;
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
}

.hc-grid-toolbar-integrated .dxbl-toolbar-item,
.hc-grid-toolbar-integrated .dxbl-toolbar-item-content {
  min-height: 0 !important;
}

.hc-grid-searchbox,
.hc-grid-searchbox input {
  font-size: 1.01rem;
}

.hc-grid-toolbar-integrated .hc-grid-searchbox,
.hc-grid-toolbar-integrated .dxbl-text-edit,
.hc-grid-toolbar-integrated input {
  min-height: 32px !important;
}

.hc-toolbar-filter-field {
  align-items: center;
  display: flex;
  gap: 0.4rem;
  min-height: 32px;
}

.hc-toolbar-filter-field span {
  color: #66705d;
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.hc-grid-toolbar-integrated .hc-toolbar-filter-field .form-control,
.hc-grid-toolbar-integrated .hc-toolbar-filter-field .form-select {
  font-size: 0.98rem;
  min-height: 32px !important;
  padding: 0.22rem 0.48rem;
  width: 145px;
}

.hc-grid-toolbar-integrated .hc-toolbar-filter-field .hc-date-edit {
  width: 145px;
}

.hc-grid-toolbar-integrated .hc-toolbar-status-filter .form-select {
  width: 155px;
}

.hc-toolbar-check {
  align-items: center;
  color: var(--hc-text);
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 650;
  gap: 0.4rem;
  min-height: 32px;
  white-space: nowrap;
}

.hc-toolbar-check input {
  accent-color: var(--hc-accent);
}

.hc-admin-content .dxbl-grid,
.hc-admin-grid,
.hc-admin-grid-compact {
  font-size: 1.1rem;
  max-width: 100%;
}

.hc-admin-grid {
  height: min(680px, calc(100vh - 230px));
  overscroll-behavior: contain;
}

.hc-split-pane .hc-admin-grid {
  height: 100%;
  min-height: 0;
}

.hc-admin-grid [class*="scroll" i],
.hc-admin-grid [class*="content" i] {
  overscroll-behavior: contain;
}

.hc-modal-body .hc-admin-grid,
.hc-patrol-member-picker-grid {
  height: min(440px, calc(100vh - 16rem));
}

.hc-admin-content .dxbl-grid .dxbl-grid-top-panel,
.hc-admin-content .dxbl-grid .dxbl-grid-toolbar-container,
.hc-admin-content .dxbl-grid .dxbl-grid-search-panel,
.hc-admin-grid-compact .dxbl-grid-top-panel,
.hc-admin-grid-compact .dxbl-grid-toolbar-container,
.hc-admin-grid-compact .dxbl-grid-search-panel {
  min-height: 0 !important;
  padding: 0.18rem 0.35rem !important;
}

.hc-admin-content .dxbl-grid [role="row"],
.hc-admin-grid [role="row"],
.hc-admin-grid-compact [role="row"] {
  white-space: nowrap;
}

.hc-admin-content .dxbl-grid :is([role="columnheader"], .dxbl-grid-header-cell),
.hc-admin-grid :is([role="columnheader"], .dxbl-grid-header-cell),
.hc-admin-grid-compact :is([role="columnheader"], .dxbl-grid-header-cell),
.hc-card [role="columnheader"] {
  font-size: 1.06rem;
  line-height: 1.15;
  padding: 0.34rem 0.5rem !important;
  white-space: nowrap;
}

.hc-admin-content .dxbl-grid [role="gridcell"],
.hc-admin-grid [role="gridcell"],
.hc-admin-grid-compact [role="gridcell"],
.hc-card [role="gridcell"] {
  font-size: 1.08rem;
  line-height: 1.25;
  padding: 0.34rem 0.5rem !important;
  white-space: nowrap;
}

.hc-grid-record-footer {
  color: var(--hc-text-muted);
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.hc-icon {
  background-color: currentColor;
  display: inline-block;
  height: 14px;
  width: 14px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.hc-icon-add {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1H5V5H1V7H5V11H7V7H11V5H7V1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1H5V5H1V7H5V11H7V7H11V5H7V1Z'/%3E%3C/svg%3E");
}

.hc-icon-edit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9.2V11H2.8L8.1 5.7L6.3 3.9L1 9.2ZM9.5 4.3L10.4 3.4C10.8 3 10.8 2.4 10.4 2L10 1.6C9.6 1.2 9 1.2 8.6 1.6L7.7 2.5L9.5 4.3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9.2V11H2.8L8.1 5.7L6.3 3.9L1 9.2ZM9.5 4.3L10.4 3.4C10.8 3 10.8 2.4 10.4 2L10 1.6C9.6 1.2 9 1.2 8.6 1.6L7.7 2.5L9.5 4.3Z'/%3E%3C/svg%3E");
}

.hc-icon-delete {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 1L4 2H1.5V3.5H10.5V2H8L7.5 1H4.5ZM2.5 4.5L3.1 11H8.9L9.5 4.5H2.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 1L4 2H1.5V3.5H10.5V2H8L7.5 1H4.5ZM2.5 4.5L3.1 11H8.9L9.5 4.5H2.5Z'/%3E%3C/svg%3E");
}

.hc-icon-void {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1.2A5.8 5.8 0 1 0 7 12.8A5.8 5.8 0 0 0 7 1.2ZM3.5 7C3.5 6.2 3.8 5.5 4.2 4.9L9.1 9.8C8.5 10.2 7.8 10.5 7 10.5A3.5 3.5 0 0 1 3.5 7ZM9.8 9.1L4.9 4.2C5.5 3.8 6.2 3.5 7 3.5A3.5 3.5 0 0 1 9.8 9.1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1.2A5.8 5.8 0 1 0 7 12.8A5.8 5.8 0 0 0 7 1.2ZM3.5 7C3.5 6.2 3.8 5.5 4.2 4.9L9.1 9.8C8.5 10.2 7.8 10.5 7 10.5A3.5 3.5 0 0 1 3.5 7ZM9.8 9.1L4.9 4.2C5.5 3.8 6.2 3.5 7 3.5A3.5 3.5 0 0 1 9.8 9.1Z'/%3E%3C/svg%3E");
}

.hc-icon-refresh {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4 2.6A5.5 5.5 0 0 0 1.7 5H3.3A4 4 0 0 1 10.2 3.8L8.5 5.5H13V1L11.4 2.6ZM2.6 11.4A5.5 5.5 0 0 0 12.3 9H10.7A4 4 0 0 1 3.8 10.2L5.5 8.5H1V13L2.6 11.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4 2.6A5.5 5.5 0 0 0 1.7 5H3.3A4 4 0 0 1 10.2 3.8L8.5 5.5H13V1L11.4 2.6ZM2.6 11.4A5.5 5.5 0 0 0 12.3 9H10.7A4 4 0 0 1 3.8 10.2L5.5 8.5H1V13L2.6 11.4Z'/%3E%3C/svg%3E");
}

.hc-icon-calendar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 1H5.5V2.2H8.5V1H10V2.2H12V13H2V2.2H4V1ZM3.5 5V11.5H10.5V5H3.5ZM5 6.2H6.4V7.6H5V6.2ZM7.6 6.2H9V7.6H7.6V6.2ZM5 8.4H6.4V9.8H5V8.4ZM7.6 8.4H9V9.8H7.6V8.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 1H5.5V2.2H8.5V1H10V2.2H12V13H2V2.2H4V1ZM3.5 5V11.5H10.5V5H3.5ZM5 6.2H6.4V7.6H5V6.2ZM7.6 6.2H9V7.6H7.6V6.2ZM5 8.4H6.4V9.8H5V8.4ZM7.6 8.4H9V9.8H7.6V8.4Z'/%3E%3C/svg%3E");
}

.hc-icon-block {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6V4.5C4 2.6 5.3 1.4 7 1.4C8.7 1.4 10 2.6 10 4.5V6H11.2V12.6H2.8V6H4ZM5.4 6H8.6V4.5C8.6 3.4 7.9 2.8 7 2.8C6.1 2.8 5.4 3.4 5.4 4.5V6ZM6.3 8.2V10.5H7.7V8.2H6.3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6V4.5C4 2.6 5.3 1.4 7 1.4C8.7 1.4 10 2.6 10 4.5V6H11.2V12.6H2.8V6H4ZM5.4 6H8.6V4.5C8.6 3.4 7.9 2.8 7 2.8C6.1 2.8 5.4 3.4 5.4 4.5V6ZM6.3 8.2V10.5H7.7V8.2H6.3Z'/%3E%3C/svg%3E");
}

.hc-icon-columns {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 2H13V12H1V2ZM3 4V10H5V4H3ZM7 4V10H11V4H7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 2H13V12H1V2ZM3 4V10H5V4H3ZM7 4V10H11V4H7Z'/%3E%3C/svg%3E");
}

.hc-icon-export {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 1H8L11 4V6H9V5H7V3H4V11H10V9H12V13H3V1ZM10 6.5V5L13 8L10 11V9.5H6V6.5H10Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 1H8L11 4V6H9V5H7V3H4V11H10V9H12V13H3V1ZM10 6.5V5L13 8L10 11V9.5H6V6.5H10Z'/%3E%3C/svg%3E");
}

.hc-icon-upload {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1L11 5H8.2V9H5.8V5H3L7 1ZM2 10H4V11.5H10V10H12V13H2V10Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1L11 5H8.2V9H5.8V5H3L7 1ZM2 10H4V11.5H10V10H12V13H2V10Z'/%3E%3C/svg%3E");
}

.hc-icon-send {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 2L13 7L1 12V8.2L8.2 7L1 5.8V2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 2L13 7L1 12V8.2L8.2 7L1 5.8V2Z'/%3E%3C/svg%3E");
}

.hc-icon-print {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 1H11V4H3V1ZM2 5H12C12.6 5 13 5.4 13 6V10H10.5V8.5H3.5V10H1V6C1 5.4 1.4 5 2 5ZM4.5 9.5H9.5V13H4.5V9.5ZM10.8 6.2C10.4 6.2 10.1 6.5 10.1 6.9C10.1 7.3 10.4 7.6 10.8 7.6C11.2 7.6 11.5 7.3 11.5 6.9C11.5 6.5 11.2 6.2 10.8 6.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 1H11V4H3V1ZM2 5H12C12.6 5 13 5.4 13 6V10H10.5V8.5H3.5V10H1V6C1 5.4 1.4 5 2 5ZM4.5 9.5H9.5V13H4.5V9.5ZM10.8 6.2C10.4 6.2 10.1 6.5 10.1 6.9C10.1 7.3 10.4 7.6 10.8 7.6C11.2 7.6 11.5 7.3 11.5 6.9C11.5 6.5 11.2 6.2 10.8 6.2Z'/%3E%3C/svg%3E");
}

.hc-icon-open-full {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H6V3.5H4.6L6.8 5.7L5.7 6.8L3.5 4.6V6H2V2ZM8 2H12V6H10.5V4.6L8.3 6.8L7.2 5.7L9.4 3.5H8V2ZM5.7 7.2L6.8 8.3L4.6 10.5H6V12H2V8H3.5V9.4L5.7 7.2ZM8.3 7.2L10.5 9.4V8H12V12H8V10.5H9.4L7.2 8.3L8.3 7.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H6V3.5H4.6L6.8 5.7L5.7 6.8L3.5 4.6V6H2V2ZM8 2H12V6H10.5V4.6L8.3 6.8L7.2 5.7L9.4 3.5H8V2ZM5.7 7.2L6.8 8.3L4.6 10.5H6V12H2V8H3.5V9.4L5.7 7.2ZM8.3 7.2L10.5 9.4V8H12V12H8V10.5H9.4L7.2 8.3L8.3 7.2Z'/%3E%3C/svg%3E");
}

.hc-icon-zoom-actual {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 1.5A4.7 4.7 0 0 1 10.9 6.2C10.9 7.2 10.6 8.2 10 9L12.7 11.7L11.7 12.7L9 10C8.2 10.6 7.2 10.9 6.2 10.9A4.7 4.7 0 1 1 6.2 1.5ZM6.2 3A3.2 3.2 0 1 0 6.2 9.4A3.2 3.2 0 0 0 6.2 3ZM5 4.8H7.3V6.1H6.5V7.8H5.2V6.1H5V4.8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 1.5A4.7 4.7 0 0 1 10.9 6.2C10.9 7.2 10.6 8.2 10 9L12.7 11.7L11.7 12.7L9 10C8.2 10.6 7.2 10.9 6.2 10.9A4.7 4.7 0 1 1 6.2 1.5ZM6.2 3A3.2 3.2 0 1 0 6.2 9.4A3.2 3.2 0 0 0 6.2 3ZM5 4.8H7.3V6.1H6.5V7.8H5.2V6.1H5V4.8Z'/%3E%3C/svg%3E");
}

.hc-icon-zoom-fit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H5.2V3.4H3.4V5.2H2V2ZM8.8 2H12V5.2H10.6V3.4H8.8V2ZM2 8.8H3.4V10.6H5.2V12H2V8.8ZM10.6 8.8H12V12H8.8V10.6H10.6V8.8ZM4.6 4.6H9.4V9.4H4.6V4.6ZM6 6V8H8V6H6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H5.2V3.4H3.4V5.2H2V2ZM8.8 2H12V5.2H10.6V3.4H8.8V2ZM2 8.8H3.4V10.6H5.2V12H2V8.8ZM10.6 8.8H12V12H8.8V10.6H10.6V8.8ZM4.6 4.6H9.4V9.4H4.6V4.6ZM6 6V8H8V6H6Z'/%3E%3C/svg%3E");
}

.hc-icon-compress {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H12V4.5H10.5V3.5H3.5V4.5H2V2ZM4.3 5.2L5.4 6.3L4.7 7H6.4V8.4H4.7L5.4 9.1L4.3 10.2L1.9 7.8L4.3 5.2ZM9.7 5.2L12.1 7.8L9.7 10.2L8.6 9.1L9.3 8.4H7.6V7H9.3L8.6 6.3L9.7 5.2ZM2 10.5H3.5V11.5H10.5V10.5H12V13H2V10.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H12V4.5H10.5V3.5H3.5V4.5H2V2ZM4.3 5.2L5.4 6.3L4.7 7H6.4V8.4H4.7L5.4 9.1L4.3 10.2L1.9 7.8L4.3 5.2ZM9.7 5.2L12.1 7.8L9.7 10.2L8.6 9.1L9.3 8.4H7.6V7H9.3L8.6 6.3L9.7 5.2ZM2 10.5H3.5V11.5H10.5V10.5H12V13H2V10.5Z'/%3E%3C/svg%3E");
}

.hc-icon-back {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 2L1.2 7L6.2 12L7.6 10.6L5 8H12.5V6H5L7.6 3.4L6.2 2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 2L1.2 7L6.2 12L7.6 10.6L5 8H12.5V6H5L7.6 3.4L6.2 2Z'/%3E%3C/svg%3E");
}

.hc-icon-panel-hide {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 2H12.5V12H1.5V2ZM3 3.5V10.5H8.4V3.5H3ZM9.8 3.5V10.5H11V3.5H9.8ZM4.1 6.25H7.2V7.75H4.1V6.25Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 2H12.5V12H1.5V2ZM3 3.5V10.5H8.4V3.5H3ZM9.8 3.5V10.5H11V3.5H9.8ZM4.1 6.25H7.2V7.75H4.1V6.25Z'/%3E%3C/svg%3E");
}

.hc-icon-panel-show {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 2H12.5V12H1.5V2ZM3 3.5V10.5H8.4V3.5H3ZM9.8 3.5V10.5H11V3.5H9.8ZM5.1 4.9H6.4V6.4H7.9V7.7H6.4V9.1H5.1V7.7H3.6V6.4H5.1V4.9Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 2H12.5V12H1.5V2ZM3 3.5V10.5H8.4V3.5H3ZM9.8 3.5V10.5H11V3.5H9.8ZM5.1 4.9H6.4V6.4H7.9V7.7H6.4V9.1H5.1V7.7H3.6V6.4H5.1V4.9Z'/%3E%3C/svg%3E");
}

.hc-icon-csv,
.hc-icon-xlsx,
.hc-icon-xls,
.hc-icon-pdf {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 1H8.5L11 3.5V13H3V1ZM8 2.5V4H9.5L8 2.5ZM4.5 6V7.2H9.5V6H4.5ZM4.5 8.2V9.4H9.5V8.2H4.5ZM4.5 10.4V11.6H8V10.4H4.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 1H8.5L11 3.5V13H3V1ZM8 2.5V4H9.5L8 2.5ZM4.5 6V7.2H9.5V6H4.5ZM4.5 8.2V9.4H9.5V8.2H4.5ZM4.5 10.4V11.6H8V10.4H4.5Z'/%3E%3C/svg%3E");
}

.hc-autocomplete-field {
  position: relative;
  z-index: 21;
}

.hc-autocomplete-field.hc-autocomplete-open {
  z-index: 40;
}

.hc-autocomplete-field:focus-within {
  z-index: 50;
}

.hc-autocomplete-dismiss {
  background: transparent;
  border: 0;
  inset: 0;
  padding: 0;
  position: fixed;
  z-index: 20;
}

.hc-autocomplete-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(46, 51, 46, 0.16);
  display: grid;
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 22;
}

.hc-lookup-menu-compact {
  max-height: 13rem;
}

.hc-autocomplete-menu button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--hc-text);
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.hc-autocomplete-menu button small {
  color: #7a846d;
  font-size: 0.78rem;
  font-weight: 650;
}

.hc-autocomplete-menu button:hover {
  background: rgba(168, 185, 154, 0.18);
}

.hc-autocomplete-menu button.hc-lookup-option-selected {
  background: rgba(95, 127, 95, 0.14);
}

.hc-autocomplete-menu button.hc-lookup-clear {
  color: var(--hc-text-muted);
}

.hc-autocomplete-menu span,
.hc-autocomplete-empty {
  color: #687060;
  font-size: 0.9rem;
}

.hc-autocomplete-empty {
  padding: 0.65rem;
}

.hc-clickable-grid {
  --hc-grid-selected-row-accent: #7FA06F;
  --hc-grid-selected-row-bg: #EEF7EA;
  --hc-grid-selected-row-border: rgba(63, 95, 69, 0.22);
  min-width: 0;
}

.hc-clickable-grid .hc-grid-row {
  cursor: pointer;
}

.hc-clickable-grid .hc-grid-row:hover > td {
  background: rgba(168, 185, 154, 0.18) !important;
}

.hc-clickable-grid .hc-grid-row-selected {
  --dxbl-grid-focused-row-bg: var(--hc-grid-selected-row-bg);
  --dxbl-grid-focused-row-color: var(--hc-text);
  --dxbl-grid-row-bg: var(--hc-grid-selected-row-bg);
  --dxbl-grid-row-color: var(--hc-text);
  --dxbl-grid-selected-row-bg: var(--hc-grid-selected-row-bg);
  --dxbl-grid-selected-row-color: var(--hc-text);
  --dxbl-grid-selection-bg: var(--hc-grid-selected-row-bg);
  cursor: pointer;
}

.hc-clickable-grid .hc-grid-row-selected,
.hc-clickable-grid .hc-grid-row-selected > td {
  background: var(--hc-grid-selected-row-bg) !important;
  color: var(--hc-text) !important;
}

.hc-clickable-grid .hc-grid-row-selected > td {
  box-shadow: inset 0 1px 0 var(--hc-grid-selected-row-border), inset 0 -1px 0 var(--hc-grid-selected-row-border);
}

.hc-clickable-grid .hc-grid-row-selected > td:first-child {
  box-shadow:
    inset 4px 0 0 var(--hc-grid-selected-row-accent),
    inset 0 1px 0 var(--hc-grid-selected-row-border),
    inset 0 -1px 0 var(--hc-grid-selected-row-border);
}

.hc-clickable-grid .hc-grid-row-selected .hc-status-success {
  background: rgba(95, 127, 95, 0.14) !important;
  color: var(--hc-success) !important;
}

.hc-clickable-grid .hc-grid-row-selected .hc-status-warning {
  background: rgba(217, 168, 92, 0.18) !important;
  color: #7A561F !important;
}

.hc-clickable-grid .hc-grid-row-selected .hc-status-danger {
  background: rgba(166, 94, 85, 0.14) !important;
  color: var(--hc-danger) !important;
}

.hc-clickable-grid .hc-grid-row-selected .hc-status-neutral {
  background: rgba(122, 140, 99, 0.16) !important;
  color: #586848 !important;
}

.hc-clickable-grid .hc-grid-row-missing-receipt > td {
  background: color-mix(in srgb, var(--hc-danger), transparent 90%) !important;
}

.hc-clickable-grid .hc-grid-row-missing-receipt:hover > td {
  background: color-mix(in srgb, var(--hc-danger), transparent 84%) !important;
}

.hc-clickable-grid .hc-grid-row-selected.hc-grid-row-missing-receipt > td {
  --dxbl-grid-row-bg: color-mix(in srgb, var(--hc-danger), transparent 84%);
  background: color-mix(in srgb, var(--hc-danger), transparent 84%) !important;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--hc-danger), transparent 70%),
    inset 0 -1px 0 color-mix(in srgb, var(--hc-danger), transparent 70%);
}

.hc-clickable-grid .hc-grid-row-selected.hc-grid-row-missing-receipt > td:first-child {
  box-shadow:
    inset 4px 0 0 var(--hc-danger),
    inset 0 1px 0 color-mix(in srgb, var(--hc-danger), transparent 70%),
    inset 0 -1px 0 color-mix(in srgb, var(--hc-danger), transparent 70%);
}

.hc-empty-state {
  align-items: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px dashed var(--hc-border);
  border-radius: 8px;
  color: #687060;
  display: grid;
  gap: 0.25rem;
  min-height: 220px;
  padding: 1.25rem;
  place-items: center;
  text-align: center;
}

.hc-empty-state strong {
  color: var(--hc-text);
  font-size: 1.16rem;
}

.hc-empty-state-inline {
  background: var(--hc-surface);
  border: 1px dashed var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text-muted);
  padding: 0.85rem;
  text-align: center;
}

.hc-modal-popup {
  color: var(--hc-text);
  max-height: calc(100dvh - 2rem);
}

.hc-modal-body {
  background: var(--hc-sand);
  max-height: calc(100dvh - 9rem);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hc-modal-footer {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.hc-map-details-popup {
  max-height: calc(100dvh - 2rem);
}

.hc-map-details-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hc-map-details-footer {
  background: var(--hc-surface);
  border-top: 1px solid var(--hc-border);
  box-shadow: 0 -8px 18px rgba(46, 51, 46, 0.08);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hc-map-details-footer-link {
  flex: 0 0 auto;
  margin-right: auto;
}

.hc-map-details-footer-actions {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.hc-cash-transaction-popup {
  max-height: calc(100dvh - 2rem);
}

.hc-cash-transaction-modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hc-cash-transaction-modal-body form {
  min-height: 0;
}

.hc-cash-transaction-modal-footer {
  background: var(--hc-surface);
  border-top: 1px solid var(--hc-border);
  box-shadow: 0 -8px 18px rgba(46, 51, 46, 0.08);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hc-metric-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hc-metric {
  background: var(--hc-sand);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  padding: 0.85rem;
}

.hc-metric span {
  color: #6c745f;
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.15;
}

.hc-metric strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.18;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.hc-money-value,
.hc-metric strong.hc-money-value {
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  white-space: nowrap;
}

.hc-metric small {
  color: #6c745f;
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.15;
  margin-top: 0.2rem;
}

.hc-dashboard-grid {
  display: grid;
  gap: 0.85rem;
}

.hc-dashboard-module {
  display: grid;
  gap: 0.85rem;
}

.hc-dashboard-module header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.hc-dashboard-module h2 {
  font-size: 1.08rem;
  font-weight: 720;
  margin: 0;
}

.hc-dashboard-module p {
  color: var(--hc-text-muted);
  margin: 0.12rem 0 0;
}

.hc-dashboard-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hc-dashboard-cash-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

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

.hc-app-dashboard-cash-grid .hc-dashboard-cash-grand-total {
  grid-column: 1 / -1;
}

.hc-dashboard-cash-total {
  background: rgba(168, 185, 154, 0.18);
}

.hc-dashboard-cash-grand-total {
  background: rgba(73, 93, 73, 0.12);
  border-color: rgba(73, 93, 73, 0.28);
}

.hc-membership-fees-summary {
  padding: 0.65rem;
}

.hc-membership-fees-summary .hc-metric-grid {
  gap: 0.55rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hc-membership-fees-summary .hc-metric {
  min-height: 72px;
  padding: 0.55rem 0.65rem;
}

.hc-membership-fees-summary .hc-metric span {
  font-size: 0.78rem;
}

.hc-membership-fees-summary .hc-metric strong {
  font-size: 1.15rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hc-points-summary {
  padding: 0.65rem 0.75rem;
}

.hc-points-summary-grid {
  gap: 0.5rem;
  grid-template-columns: minmax(140px, 1.25fr) repeat(5, minmax(78px, 0.8fr));
}

.hc-points-summary-grid .hc-metric {
  min-width: 0;
  padding: 0.48rem 0.58rem;
}

.hc-points-summary-grid .hc-metric span {
  font-size: 0.72rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-points-summary-grid .hc-metric strong {
  font-size: 1rem;
  line-height: 1.2;
  margin-top: 0.08rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.hc-trophy-utility-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 2fr 1fr;
  margin-bottom: 1rem;
}

.hc-trophy-detail-preview {
  background: rgba(248, 243, 231, 0.48);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  overflow: auto;
  padding: 0.75rem;
}

.hc-trophy-sheet {
  background: #fff;
  border: 1px solid #1f1f1f;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.86rem;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 1080px;
  min-width: 940px;
  padding: 1rem;
}

.hc-trophy-sheet-editor {
  box-shadow: 0 14px 32px rgba(30, 35, 25, 0.12);
}

.hc-trophy-sheet-readonly {
  min-width: 860px;
}

.hc-trophy-sheet-header {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 150px 1fr 210px;
  margin-bottom: 1rem;
}

.hc-trophy-form-number,
.hc-trophy-list-number span,
.hc-trophy-line-field span,
.hc-trophy-commission span,
.hc-trophy-score-box span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hc-trophy-title {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.hc-trophy-species {
  font-size: 1.65rem;
  font-weight: 900;
  text-align: center;
}

.hc-trophy-latin {
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

.hc-trophy-list-number,
.hc-trophy-line-field {
  display: grid;
  gap: 0.25rem;
}

.hc-trophy-common-grid {
  display: grid;
  gap: 0.5rem 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.hc-trophy-common-grid .wide,
.hc-trophy-footer .wide {
  grid-column: 1 / -1;
}

.hc-trophy-common-grid .wide-half {
  grid-column: span 2;
}

.hc-trophy-line-field strong,
.hc-trophy-line-field .form-control,
.hc-trophy-line-field .hc-date-edit,
.hc-trophy-list-number .form-control,
.hc-trophy-list-number strong {
  border-bottom: 1px dotted #111;
  min-height: 28px;
}

.hc-trophy-line-input,
.hc-trophy-inline-input,
.hc-trophy-cell-input {
  background: #fffef8 !important;
  border: 1px solid #222 !important;
  border-radius: 0 !important;
  color: #111 !important;
  font-family: "Times New Roman", Times, serif;
  min-height: 30px;
  padding: 0.2rem 0.35rem;
}

.hc-trophy-measure-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
}

.hc-trophy-measure-layout h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  text-align: center;
  text-transform: uppercase;
}

.hc-trophy-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.hc-trophy-table th,
.hc-trophy-table td {
  border: 1px solid #111;
  padding: 0.22rem;
  text-align: center;
  vertical-align: middle;
  word-break: normal;
}

.hc-trophy-table th {
  background: #ececec;
  font-size: 0.72rem;
  font-weight: 800;
}

.hc-trophy-table td:nth-child(2) {
  text-align: left;
}

.hc-trophy-cell-value {
  display: inline-block;
  font-weight: 700;
  min-height: 22px;
  min-width: 42px;
}

.hc-trophy-total-row td,
.hc-trophy-final-row td {
  background: #f3f3f3;
  font-weight: 800;
}

.hc-trophy-final-row td:last-child,
.hc-trophy-score-box strong {
  font-size: 1.15rem;
}

.hc-trophy-check-row {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.hc-trophy-footer {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 180px;
  margin-top: 1rem;
}

.hc-trophy-score-box {
  border: 2px solid #111;
  display: grid;
  min-height: 54px;
  padding: 0.35rem;
  place-items: center;
}

.hc-trophy-commission {
  display: grid;
  gap: 0.4rem;
  grid-column: 2;
}

.hc-trophy-commission div {
  border-bottom: 1px solid #111;
  min-height: 24px;
}

.hc-member-payment-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.hc-member-payment-row {
  align-items: center;
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) 145px auto;
  padding: 0.45rem;
}

.hc-member-payment-row > span {
  color: var(--hc-text);
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-compact-action {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
}

.hc-inline-check {
  align-items: center;
  color: var(--hc-muted);
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.4rem;
}

.hc-positive {
  color: var(--hc-success) !important;
}

.hc-negative {
  color: var(--hc-danger) !important;
}

.hc-date-edit {
  width: 100%;
}

.hc-date-edit .dxbl-text-edit-input {
  font-size: 1.1rem !important;
  line-height: 1.5 !important;
}

.hc-date-picker-popup {
  font-size: 1.15rem;
  min-width: 350px;
}

.hc-date-picker-popup .dxbl-calendar {
  min-width: 330px;
}

.hc-date-picker-popup .dxbl-calendar-day > a,
.hc-date-picker-popup .dxbl-calendar-month > a,
.hc-date-picker-popup .dxbl-calendar-year > a,
.hc-date-picker-popup .dxbl-calendar-decade > a {
  align-items: center;
  display: inline-flex;
  font-size: 1.08rem;
  justify-content: center;
  min-height: 2.45rem;
  min-width: 2.45rem;
}

.hc-date-picker-popup .dxbl-calendar-header,
.hc-date-picker-popup .dxbl-calendar-view-title {
  font-size: 1.12rem;
}

.hc-cash-commandbar {
  align-items: end;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.hc-cash-filter {
  align-items: end;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(110px, 150px) minmax(155px, 220px);
}

.hc-cash-pivot-filter {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hc-pivot-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.hc-pivot-actions .hc-secondary-action {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.hc-pivot-scroll {
  overflow-x: auto;
  width: 100%;
}

.hc-cash-pivot {
  min-width: 720px;
}

.hc-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hc-cash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.hc-cash-transaction-action {
  background: var(--hc-transaction-bg);
  border-color: var(--hc-transaction-border);
  color: var(--hc-transaction-color);
}

.hc-cash-transaction-action:hover,
.hc-cash-transaction-action:focus-visible {
  background: var(--hc-transaction-bg-hover);
  border-color: var(--hc-transaction-border);
  color: var(--hc-transaction-color);
}

.hc-cash-transaction-action-income {
  --hc-transaction-bg: rgba(95, 127, 95, 0.14);
  --hc-transaction-bg-hover: rgba(95, 127, 95, 0.22);
  --hc-transaction-border: color-mix(in srgb, var(--hc-success), transparent 48%);
  --hc-transaction-color: var(--hc-success);
}

.hc-cash-transaction-action-expense {
  --hc-transaction-bg: rgba(217, 168, 92, 0.18);
  --hc-transaction-bg-hover: rgba(217, 168, 92, 0.26);
  --hc-transaction-border: color-mix(in srgb, var(--hc-warning), transparent 42%);
  --hc-transaction-color: #7a561f;
}

.hc-cash-ipad-lock-banner {
  align-items: center;
  background: color-mix(in srgb, #fef3c7, var(--hc-surface) 36%);
  border: 1px solid color-mix(in srgb, #d97706, var(--hc-border) 45%);
  border-radius: 8px;
  color: #713f12;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  padding: 0.75rem 0.85rem;
}

.hc-cash-ipad-lock-banner div {
  display: grid;
  gap: 0.15rem;
}

.hc-cash-ipad-lock-banner span {
  font-size: 0.9rem;
}

.hc-form-stack {
  display: grid;
  gap: 0.85rem;
}

.hc-cash-commandbar .form-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.16rem;
}

.hc-cash-commandbar .form-select {
  min-height: 36px;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.hc-stand-reservation-filter {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(130px, 160px) minmax(130px, 160px) minmax(170px, 240px) auto;
}

.hc-cash-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hc-cash-workspace {
  overflow: hidden;
  padding: 0;
}

.hc-cash-workspace > p {
  padding: 0.85rem 1rem;
}

.hc-cash-tabs {
  align-items: stretch;
  border-bottom: 1px solid var(--hc-border);
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, minmax(145px, 0.72fr));
  padding: 0.55rem 0.55rem 0;
}

.hc-cash-account-picker {
  background: color-mix(in srgb, var(--hc-surface-muted), var(--hc-surface) 42%);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.45rem;
}

.hc-cash-transaction-tabs {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border-strong);
  border-radius: 8px;
  overflow: hidden;
}

.hc-cash-transaction-tabs [role="tablist"] {
  background: color-mix(in srgb, var(--hc-surface-muted), var(--hc-surface) 40%);
  border-bottom: 1px solid var(--hc-border-strong);
  gap: 0.25rem;
  padding: 0.45rem 0.45rem 0;
}

.hc-cash-transaction-tabs [role="tab"] {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-bottom-color: var(--hc-border-strong);
  border-radius: 8px 8px 0 0;
  color: var(--hc-text);
  font-weight: 750;
  min-height: 38px;
}

.hc-cash-transaction-tabs [role="tab"]:hover,
.hc-cash-transaction-tabs [role="tab"]:focus-visible {
  border-color: var(--hc-border-strong);
}

.hc-cash-transaction-tabs [role="tab"][aria-selected="true"],
.hc-cash-transaction-tabs [role="tab"].active,
.hc-cash-transaction-tabs [role="tab"].dxbl-active {
  background: var(--hc-surface);
  border-color: var(--hc-border-strong);
  border-bottom-color: var(--hc-surface);
  box-shadow: inset 0 3px 0 var(--hc-accent);
  color: var(--hc-accent);
  position: relative;
  z-index: 1;
}

.hc-cash-transaction-tab-panel {
  background: var(--hc-surface);
  padding: 0.95rem;
}

.hc-cash-advance-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
}

.hc-cash-advance-list,
.hc-cash-advance-detail,
.hc-cash-advance-line,
.hc-cash-advance-control,
.hc-cash-advance-cancel,
.hc-cash-advance-settled-lines > div {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  padding: 0.75rem;
}

.hc-cash-advance-list,
.hc-cash-advance-detail {
  align-content: start;
  display: grid;
  gap: 0.75rem;
}

.hc-cash-advance-list-header,
.hc-cash-advance-lines-header,
.hc-cash-advance-detail-header,
.hc-cash-advance-control {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.hc-cash-advance-list-header div:first-child,
.hc-cash-advance-detail-header div,
.hc-cash-advance-control {
  min-width: 0;
}

.hc-cash-advance-list-header span,
.hc-cash-advance-control span,
.hc-cash-advance-control small {
  color: var(--hc-muted);
  display: block;
  font-size: 0.86rem;
}

.hc-cash-advance-items,
.hc-cash-advance-lines,
.hc-cash-advance-settled-lines {
  display: grid;
  gap: 0.55rem;
}

.hc-cash-advance-item {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
  text-align: left;
  width: 100%;
}

.hc-cash-advance-item:hover,
.hc-cash-advance-item:focus-visible,
.hc-cash-advance-item.active {
  border-color: var(--hc-accent);
  box-shadow: inset 3px 0 0 var(--hc-accent);
}

.hc-cash-advance-item strong,
.hc-cash-advance-item span,
.hc-cash-advance-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-cash-advance-line {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(120px, 0.55fr) minmax(180px, 1fr) minmax(110px, 0.5fr);
}

.hc-cash-advance-line .wide,
.hc-cash-advance-line-actions {
  grid-column: 1 / -1;
}

.hc-cash-advance-line-actions {
  display: flex;
  justify-content: flex-end;
}

.hc-camt-import {
  display: grid;
  gap: 0.85rem;
}

.hc-loading-inline {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
  min-height: 32px;
}

.hc-camt-import-summary {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hc-camt-import-summary > div,
.hc-camt-import-list > div {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  min-width: 0;
  padding: 0.6rem 0.7rem;
}

.hc-camt-import-summary span,
.hc-camt-import-list small {
  color: var(--hc-text-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
}

.hc-camt-import-summary strong,
.hc-camt-import-list strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-camt-import-list {
  display: grid;
  gap: 0.45rem;
}

.hc-camt-import-list > div {
  display: grid;
  gap: 0.3rem;
}

.hc-cash-tab,
.hc-cash-total-pill {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px 8px 0 0;
  color: var(--hc-text);
  display: grid;
  gap: 0.12rem;
  min-height: 62px;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.hc-cash-tab {
  cursor: pointer;
}

.hc-cash-account-option {
  align-content: center;
  border-radius: 8px;
  justify-items: center;
  min-height: 58px;
  padding-bottom: 0.48rem;
  padding-top: 0.48rem;
  text-align: center;
}

.hc-cash-account-option strong {
  font-size: 1.18rem;
}

.hc-cash-tab:hover {
  border-color: var(--hc-border-strong);
}

.hc-cash-tab-white {
  background: #fff7d6;
  border-color: #ead58a;
  color: #332600;
}

.hc-cash-tab-black {
  background: #3d444d;
  border-color: #2f363e;
  color: #ffffff;
}

.hc-cash-tab-bank {
  background: color-mix(in srgb, var(--hc-success), var(--hc-surface) 88%);
  border-color: color-mix(in srgb, var(--hc-success), var(--hc-border) 72%);
  color: var(--hc-text);
}

.hc-cash-tab-active {
  border-color: var(--hc-accent);
  box-shadow: inset 0 3px 0 var(--hc-accent);
  transform: translateY(1px);
}

.hc-cash-tab-white.hc-cash-tab-active {
  background: #fff0b8;
  border-color: #d5ae3f;
  box-shadow: inset 0 3px 0 #d5a21f;
}

.hc-cash-tab-black.hc-cash-tab-active {
  border-color: #4b5563;
  box-shadow: inset 0 3px 0 #f2c94c;
}

.hc-cash-tab-bank.hc-cash-tab-active {
  background: color-mix(in srgb, var(--hc-success), var(--hc-surface) 74%);
  border-color: color-mix(in srgb, var(--hc-success), var(--hc-border) 46%);
  box-shadow: inset 0 3px 0 var(--hc-success);
}

.hc-cash-total-pill {
  background: linear-gradient(180deg, var(--hc-surface), var(--hc-surface-muted));
  border-color: var(--hc-border-strong);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff, transparent 28%);
  cursor: default;
  padding-left: 1.85rem;
  position: relative;
}

.hc-cash-total-pill::before {
  border-right: 2px solid var(--hc-text-muted);
  border-top: 2px solid var(--hc-text-muted);
  content: "";
  height: 0.62rem;
  left: 0.7rem;
  opacity: 0.48;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 0.62rem;
}

.hc-cash-tab span,
.hc-cash-total-pill span {
  color: var(--hc-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-cash-tab-black span,
.hc-cash-tab-black small {
  color: rgba(255, 255, 255, 0.78);
}

.hc-cash-tab strong,
.hc-cash-total-pill strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.hc-cash-tab small,
.hc-cash-total-pill small {
  color: var(--hc-text-muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-cash-grid-panel {
  --hc-cash-grid-available-height: calc(100dvh - 320px);
  --hc-cash-grid-min-height: 360px;
  border: 1px solid transparent;
  border-radius: 0 0 8px 8px;
  margin: 0 0.55rem 0.55rem;
  padding: 0.65rem;
}

.hc-cash-grid-panel .hc-admin-grid {
  height: max(var(--hc-cash-grid-min-height), var(--hc-cash-grid-available-height));
}

.hc-cash-grid-panel-white {
  background: #fff7d6;
  border-color: #ead58a;
  box-shadow: inset 0 0 0 1px #f4e4a9;
}

.hc-cash-grid-panel-black {
  background: #3d444d;
  border-color: #2f363e;
  box-shadow: inset 0 0 0 1px #4b5563;
}

.hc-cash-grid-panel-bank {
  background: color-mix(in srgb, var(--hc-success), var(--hc-surface) 90%);
  border-color: color-mix(in srgb, var(--hc-success), var(--hc-border) 58%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hc-success), transparent 76%);
}

.hc-cash-grid-panel-black .dxbl-grid {
  border-color: #2f363e;
}

.hc-metric small {
  color: #687060;
  display: block;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.hc-cash-report-workspace {
  align-items: start;
}

.hc-report-rules-modal-body {
  max-height: calc(100vh - 12rem);
  overflow: auto;
}

.hc-rule-definition-layout {
  display: grid;
  gap: 1rem;
}

.hc-report-line-detail {
  background: #fbfaf6;
}

.hc-attachment-panel {
  background: #fbfaf6;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.hc-attachment-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
}

.hc-attachment-summary span:first-child {
  font-weight: 700;
}

.hc-attachment-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hc-file-drop-zone {
  background: var(--hc-surface);
  border: 1px dashed color-mix(in srgb, var(--hc-accent) 55%, var(--hc-border));
  border-radius: 8px;
  cursor: pointer;
  min-height: 92px;
  overflow: hidden;
  position: relative;
}

.hc-file-drop-zone:hover,
.hc-file-drop-zone:focus-within {
  border-color: var(--hc-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-accent) 18%, transparent);
}

.hc-file-drop-input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.hc-file-drop-content {
  align-items: center;
  display: grid;
  gap: 0.25rem;
  height: 100%;
  justify-items: center;
  min-height: 92px;
  padding: 1rem;
  text-align: center;
}

.hc-file-drop-content span {
  color: var(--hc-text-muted);
  font-size: 0.92rem;
}

.hc-attachment-preview {
  align-items: start;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(120px, 180px) auto;
}

.hc-attachment-preview img {
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
}

.hc-attachment-viewer {
  display: grid;
  gap: 0.65rem;
}

.hc-attachment-viewer-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
}

.hc-attachment-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hc-attachment-tool {
  align-items: center;
  aspect-ratio: 1;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0;
}

.hc-attachment-tool.active {
  background: var(--hc-accent-soft);
  border-color: color-mix(in srgb, var(--hc-accent) 42%, var(--hc-border));
  color: var(--hc-accent);
}

.hc-attachment-compression-note {
  background: var(--hc-accent-soft);
  border: 1px solid color-mix(in srgb, var(--hc-accent) 34%, var(--hc-border));
  border-radius: 6px;
  color: var(--hc-text);
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
}

.hc-attachment-compression-preview {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-attachment-compression-preview div {
  background: #fbfaf6;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.hc-attachment-compression-preview span {
  color: var(--hc-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hc-attachment-compression-preview strong {
  font-size: 1.05rem;
}

.hc-attachment-compression-preview small {
  color: var(--hc-text-muted);
}

.hc-attachment-image-frame {
  background:
    linear-gradient(45deg, rgba(104, 112, 96, 0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(104, 112, 96, 0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(104, 112, 96, 0.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(104, 112, 96, 0.12) 75%);
  background-color: var(--hc-surface);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  min-height: min(52vh, 520px);
  overflow: auto;
  padding: 0.75rem;
}

.hc-attachment-image-frame img {
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(46, 51, 46, 0.16);
  display: block;
}

.hc-attachment-image-frame-fit {
  display: grid;
  overflow: hidden;
  place-items: center;
}

.hc-attachment-image-frame-fit img {
  max-height: min(48vh, 500px);
  max-width: 100%;
  object-fit: contain;
}

.hc-attachment-image-frame-actual {
  cursor: grab;
  max-height: min(62vh, 680px);
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  user-select: none;
}

.hc-attachment-image-frame-actual.is-panning {
  cursor: grabbing;
}

.hc-attachment-image-frame-actual img {
  height: auto;
  max-height: none;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  width: auto;
}

.hc-attachment-print-area {
  height: 0;
  left: -10000px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 0;
}

.hc-attachment-print-area img {
  display: block;
  max-height: 100vh;
  max-width: 100%;
  object-fit: contain;
}

.hc-pos-receipt {
  background: white;
  box-sizing: border-box;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 72mm;
  padding: 9px;
  width: 72mm;
}

.hc-pos-center {
  display: grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
}

.hc-pos-center strong {
  font-size: 13.6px;
  font-weight: 650;
}

.hc-pos-center span {
  font-size: 13px;
}

.hc-pos-title {
  font-size: 16.8px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
}

.hc-pos-separator {
  color: #111;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  white-space: pre;
}

.hc-pos-line,
.hc-pos-label-value {
  color: #111;
  overflow-wrap: anywhere;
}

.hc-pos-label-value span {
  font-weight: 400;
}

.hc-pos-label-value strong {
  font-size: 15.2px;
  font-weight: 800;
}

.hc-pos-counterparty-row span {
  font-size: 13.6px;
  font-weight: 800;
}

.hc-pos-counterparty-row strong {
  font-size: 16.2px;
  font-weight: 800;
}

.hc-pos-detail {
  display: grid;
  gap: 0;
  margin-top: 3px;
}

.hc-pos-purpose-block {
  margin-top: 8px;
}

.hc-pos-detail span {
  font-size: 13.6px;
  font-weight: 800;
}

.hc-pos-detail strong {
  font-size: 16.2px;
  font-weight: 800;
}

.hc-pos-amount {
  font-size: 16.8px;
  font-weight: 800;
}

.hc-pos-signatures {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  text-align: center;
}

.hc-pos-signatures-single {
  grid-template-columns: 1fr;
}

.hc-pos-signature-column {
  display: grid;
  gap: 2px;
  min-height: 94px;
}

.hc-pos-signatures img {
  align-self: end;
  height: 58px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.hc-pos-signatures span,
.hc-pos-signatures small {
  font: inherit;
}

.hc-signature-workflow,
.hc-signature-editor {
  display: grid;
  gap: 0.85rem;
}

.hc-signature-status-grid,
.hc-signature-preview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-signature-status-grid-single,
.hc-signature-preview-grid-single {
  grid-template-columns: 1fr;
}

.hc-signature-status-grid > div,
.hc-signature-preview-grid > div,
.hc-signature-current {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
}

.hc-signature-status-grid span,
.hc-signature-preview-grid span,
.hc-signature-current span,
.hc-signature-request-box span {
  color: var(--hc-muted);
  font-size: 0.88rem;
}

.hc-signature-preview-grid img,
.hc-signature-current img {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  height: 64px;
  object-fit: contain;
  width: 100%;
}

.hc-signature-request-box {
  align-items: center;
  border: 1px dashed var(--hc-border-strong);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 0.75rem;
}

.hc-signature-request-box a {
  overflow-wrap: anywhere;
}

.hc-signature-request-box small {
  color: var(--hc-muted);
  display: block;
  margin-top: 0.35rem;
}

.hc-signature-qr {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  padding: 0.35rem;
}

.hc-signature-qr svg {
  display: block;
  height: auto;
  width: 100%;
}

.hc-signature-canvas {
  background: #fff;
  border: 1px solid var(--hc-border-strong);
  border-radius: 8px;
  display: block;
  height: 210px;
  touch-action: none;
  width: 100%;
}

.hc-sign-page {
  display: grid;
  min-height: calc(100vh - 4rem);
  place-items: center;
}

.hc-sign-panel {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow);
  display: grid;
  gap: 1rem;
  max-width: 860px;
  padding: 1rem;
  width: min(100%, 860px);
}

.hc-sign-header {
  display: grid;
  gap: 0.15rem;
}

.hc-sign-header strong {
  font-size: 1.25rem;
}

.hc-sign-header span {
  color: var(--hc-muted);
}

.hc-sign-document {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-sign-document > div {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
}

.hc-sign-document .wide {
  grid-column: 1 / -1;
}

.hc-sign-document span,
.hc-sign-document small {
  color: var(--hc-muted);
}

.hc-sign-canvas-panel {
  display: grid;
  gap: 0.4rem;
}

.hc-sign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.hc-assembly-report-print {
  background: white;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: #1b1f18;
  padding: 1rem;
}

.hc-assembly-report-header {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.hc-assembly-report-header strong {
  font-size: 1.38rem;
}

.hc-assembly-report-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-assembly-report-grid h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.hc-assembly-report-grid table {
  border-collapse: collapse;
  width: 100%;
}

.hc-assembly-report-grid th,
.hc-assembly-report-grid td {
  border-bottom: 1px solid var(--hc-border);
  padding: 0.38rem 0.45rem;
  vertical-align: top;
}

.hc-assembly-report-grid th {
  background: #f6f1e5;
  font-size: 0.95rem;
  text-align: left;
}

.hc-assembly-report-grid .amount {
  text-align: right;
  white-space: nowrap;
}

.hc-assembly-report-grid tfoot td {
  font-weight: 800;
}

.hc-assembly-result {
  align-items: center;
  background: #f6f1e5;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
}

.hc-assembly-result strong {
  font-size: 1.27rem;
}

.hc-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.hc-settings-season-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.hc-check-row {
  align-items: center;
  display: inline-flex;
  font-weight: 600;
  gap: 0.5rem;
  min-height: 38px;
}

.hc-check-row input {
  accent-color: var(--hc-forest);
  height: 1rem;
  width: 1rem;
}

.hc-requirement-editor {
  display: grid;
  gap: 0.65rem;
}

.hc-requirement-row {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(160px, 1fr) 120px 120px auto;
}

.hc-row-action {
  align-items: end;
  display: flex;
}

.hc-report-viewer {
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  height: 760px;
  min-height: 560px;
  overflow: hidden;
}

.hc-report-workspace {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 320px;
  overflow: hidden;
}

.hc-report-workspace.is-params-collapsed {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.hc-report-main {
  min-width: 0;
  padding: 1rem;
}

.hc-report-main-topbar {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.hc-report-back-action,
.hc-report-print-action {
  min-height: 38px;
  padding: 0.42rem 0.72rem;
}

.hc-report-print-action {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.hc-report-viewer button:has(.dxd-icon-ReportViewer_Toolbar_Print),
.hc-report-viewer button:has(.dxd-icon-blazor-viewer-print),
.hc-report-viewer [role="button"]:has(.dxd-icon-ReportViewer_Toolbar_Print),
.hc-report-viewer [role="button"]:has(.dxd-icon-blazor-viewer-print),
.hc-report-viewer button[title="Print"],
.hc-report-viewer [role="button"][title="Print"] {
  display: none !important;
}

.hc-report-main-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hc-report-params {
  background: rgba(248, 243, 231, 0.55);
  border-left: 1px solid var(--hc-border);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: auto;
}

.hc-report-params.is-collapsed {
  overflow: hidden;
}

.hc-report-params-header {
  align-items: center;
  border-bottom: 1px solid var(--hc-border);
  color: var(--hc-text);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  min-height: 52px;
  padding: 0.42rem;
}

.hc-report-params-header strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hc-report-params.is-collapsed .hc-report-params-header {
  border-bottom: 0;
  flex-direction: column;
  justify-content: flex-start;
}

.hc-report-panel-icon {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--hc-text);
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 38px;
}

.hc-report-panel-icon:hover,
.hc-report-panel-icon:focus-visible {
  background: rgba(62, 95, 68, 0.1);
  border-color: var(--hc-border);
  color: var(--hc-forest);
  outline: 0;
}

.hc-report-params-body {
  align-content: start;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.hc-report-run-action {
  justify-content: center;
  width: 100%;
}

.hc-detail-section {
  display: grid;
  gap: 1rem;
}

.hc-two-column {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hc-one-column {
  display: grid;
  gap: 1rem;
  max-width: 860px;
}

.hc-selection-list {
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.65rem 0.75rem;
}

.hc-data-list {
  display: grid;
  gap: 0.55rem;
}

.hc-data-row {
  align-items: center;
  background: rgba(248, 243, 231, 0.65);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
}

.hc-data-row-stacked {
  align-items: flex-start;
  gap: 0.75rem;
}

.hc-data-row-stacked > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.hc-notification-list {
  display: grid;
  gap: 0.85rem;
}

.hc-app-feed {
  display: grid;
  gap: 0.85rem;
}

.hc-app-version {
  color: var(--hc-text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  margin-top: 0.25rem;
}

.hc-app-version strong {
  color: var(--hc-text);
  font-weight: 780;
}

.hc-app-tabs {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
}

.hc-app-tabs a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--hc-muted);
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.6rem;
  text-decoration: none;
}

.hc-app-tabs a.is-active {
  background: var(--hc-surface);
  border-color: rgba(63, 95, 69, 0.28);
  color: var(--hc-forest);
  box-shadow: 0 4px 14px rgba(46, 51, 46, 0.09);
}

.hc-app-tabs span {
  color: inherit;
  font-size: 0.78rem;
  margin-left: 0.35rem;
  opacity: 0.76;
}

.hc-offline-message {
  border-color: rgba(217, 168, 92, 0.55);
}

.hc-local-sync-card {
  position: relative;
}

.hc-sync-panel {
  align-items: flex-start;
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  padding-right: 3rem;
}

.hc-local-sync-content {
  display: grid;
  flex: 1 1 auto;
  gap: 0.65rem;
  min-width: 0;
}

.hc-sync-settings-trigger {
  align-items: center;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
}

.hc-sync-actions {
  align-items: stretch;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.45rem;
}

.hc-local-sync-list {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  max-width: 100%;
}

.hc-local-sync-chip {
  align-items: center;
  background: rgba(63, 95, 69, 0.08);
  border: 1px solid rgba(63, 95, 69, 0.2);
  border-radius: 8px;
  color: var(--hc-text);
  display: grid;
  gap: 0.15rem 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 50px;
  padding: 0.52rem 0.65rem;
}

.hc-local-sync-chip.has-error {
  background: rgba(166, 94, 85, 0.1);
  border-color: rgba(166, 94, 85, 0.28);
}

.hc-local-sync-chip span {
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hc-local-sync-chip strong {
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  justify-content: center;
  line-height: 1;
  min-width: 1.8rem;
  padding: 0.28rem 0.48rem;
}

.hc-local-sync-chip em {
  color: var(--hc-danger);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.1;
}

.hc-local-sync-empty {
  align-items: flex-start;
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 0.62rem 0.7rem;
}

.hc-offline-map-status-list {
  display: grid;
  gap: 0.45rem;
}

.hc-offline-map-status-row {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 0.58rem 0.65rem;
}

.hc-offline-map-status-row div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hc-offline-map-status-row strong {
  font-size: 0.9rem;
}

.hc-offline-map-status-row > span {
  color: var(--hc-text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hc-local-sync-errors {
  display: grid;
  gap: 0.45rem;
}

.hc-local-sync-error {
  background: rgba(166, 94, 85, 0.1);
  border: 1px solid rgba(166, 94, 85, 0.28);
  border-radius: 8px;
  color: var(--hc-text);
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.65rem;
}

.hc-local-sync-error span {
  color: var(--hc-danger);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hc-local-sync-error strong {
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.hc-offline-map-download {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem 2.35rem 0.65rem 0.75rem;
  position: relative;
}

.hc-offline-map-download-close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--hc-text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 650;
  height: 1.8rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 0.4rem;
  top: 0.35rem;
  width: 1.8rem;
}

.hc-offline-map-download-close:hover,
.hc-offline-map-download-close:focus-visible {
  background: var(--hc-surface);
  color: var(--hc-text);
}

.hc-offline-map-download div:first-child {
  display: grid;
  gap: 0.15rem;
}

.hc-offline-map-download strong {
  font-size: 0.86rem;
}

.hc-offline-map-download span {
  color: var(--hc-text-muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.hc-sync-settings-backdrop {
  align-items: center;
  background: rgba(25, 31, 27, 0.38);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 90;
}

.hc-sync-settings-dialog {
  display: grid;
  gap: 0.85rem;
  max-height: min(86dvh, 680px);
  max-width: 560px;
  overflow: auto;
  width: 100%;
}

.hc-sync-settings-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--hc-border);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding-bottom: 0.85rem;
}

.hc-sync-settings-body {
  display: grid;
  gap: 0.75rem;
}

.hc-sync-settings-footer {
  align-items: center;
  border-top: 1px solid var(--hc-border);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding-top: 0.85rem;
}

.hc-group-hunt-new-button {
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.hc-sync-dialog-backdrop {
  background: rgba(46, 51, 46, 0.32);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 88;
}

.hc-sync-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  left: max(0.75rem, env(safe-area-inset-left));
  margin: 0 auto;
  max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-width: 680px;
  overflow: hidden;
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  top: max(0.75rem, env(safe-area-inset-top));
  z-index: 89;
}

.hc-sync-dialog-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--hc-border);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding-bottom: 0.85rem;
}

.hc-sync-dialog-body {
  overflow: auto;
  padding: 0.85rem 0;
}

.hc-sync-dialog-footer {
  align-items: stretch;
  border-top: 1px solid var(--hc-border);
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  padding-top: 0.85rem;
}

.hc-sync-inline-message {
  background: rgba(95, 127, 95, 0.12);
  border: 1px solid rgba(95, 127, 95, 0.24);
  border-radius: 8px;
  color: var(--hc-text);
  font-weight: 650;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.7rem;
}

.hc-sync-operation-list {
  display: grid;
  gap: 0.75rem;
}

.hc-sync-operation {
  background: rgba(248, 243, 231, 0.48);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  padding: 0.75rem;
}

.hc-sync-operation-head {
  align-items: flex-start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.hc-sync-operation-head h3 {
  overflow-wrap: anywhere;
}

.hc-sync-operation-actions,
.hc-sync-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.hc-sync-edit-panel {
  display: grid;
  gap: 0.55rem;
}

.hc-sync-edit-panel textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  min-height: 180px;
  resize: vertical;
}

.hc-sync-edit-message {
  color: var(--hc-danger);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.hc-sync-confirmation {
  background: rgba(217, 168, 92, 0.12);
  border: 1px solid rgba(217, 168, 92, 0.35);
  border-radius: 8px;
  display: grid;
  flex: 1 1 auto;
  gap: 0.45rem;
  padding: 0.75rem;
}

.hc-sync-confirmation p {
  margin: 0;
}

.hc-sync-confirmation > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.hc-engagement-tools {
  align-items: end;
  display: grid;
  flex: 0 0 auto;
  gap: 0.45rem;
  justify-items: end;
}

.hc-engagement-tool-row {
  display: flex;
  gap: 0.4rem;
}

.hc-settings-icon {
  align-items: center;
  display: inline-flex;
  font-size: 1.15rem;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.hc-settings-icon::before {
  content: "⚙";
}

.hc-push-status-icon {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  line-height: 1;
  min-width: 36px;
  padding: 0;
}

button.hc-push-status-icon {
  cursor: pointer;
}

.hc-push-status-icon.is-active {
  background: var(--hc-success);
  border-color: rgba(47, 117, 81, 0.45);
}

.hc-push-status-icon.is-problem {
  background: var(--hc-danger);
  border-color: rgba(184, 74, 72, 0.45);
}

.hc-push-status-summary {
  align-items: center;
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
}

.hc-push-status-summary strong,
.hc-push-status-summary small {
  display: block;
}

.hc-push-status-summary small {
  color: var(--hc-muted);
  margin-top: 0.12rem;
}

.hc-modal-layer {
  position: relative;
  z-index: 90;
}

.hc-modal-backdrop,
.hc-map-editor-backdrop {
  background: rgba(20, 27, 22, 0.5);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

.hc-push-settings-modal {
  left: 50%;
  max-height: min(620px, calc(100dvh - 2rem));
  overflow: auto;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 1.5rem));
  z-index: 91;
}

.hc-notification-card {
  position: relative;
}

.hc-notification-card.is-unread {
  border-color: rgba(217, 168, 92, 0.7);
}

.hc-push-diagnostics {
  align-items: center;
  border-top: 1px solid var(--hc-border);
  color: var(--hc-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.45rem 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
}

.hc-push-diagnostics strong {
  color: var(--hc-text);
  font-weight: 700;
}

.hc-push-diagnostics-error {
  color: var(--hc-danger);
}

.hc-notification-detail {
  align-content: start;
  display: grid;
  gap: 1rem;
  min-height: calc(100dvh - 9rem);
}

.hc-notification-detail-body {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

.hc-work-card {
  display: grid;
}

.hc-stand-card {
  display: grid;
}

.hc-stand-filter {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.hc-admin-slot-actions {
  align-items: end;
  background: rgba(248, 243, 231, 0.68);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(220px, 360px) auto;
  padding: 0.75rem;
}

.hc-stands-map {
  aspect-ratio: 4 / 3;
  background: var(--hc-sand);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  min-height: 320px;
  overflow: hidden;
}

.hc-stand-thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  display: block;
  height: 46px;
  object-fit: cover;
  width: 64px;
}

.hc-stand-photo-preview {
  align-items: start;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(160px, 260px) auto;
}

.hc-stand-photo-preview img {
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  max-height: 220px;
  max-width: 100%;
  object-fit: cover;
}

.hc-stands-map.is-empty::before {
  align-items: center;
  color: #687060;
  content: "Nema koordinata za prikaz.";
  display: flex;
  font-weight: 650;
  height: 100%;
  justify-content: center;
}

.hc-portal-map {
  aspect-ratio: 3 / 4;
  background: var(--hc-sand);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  min-height: 440px;
  overflow: hidden;
  position: relative;
}

.hc-portal-map .ol-control,
.hc-portal-map .ol-attribution {
  display: none !important;
}

.hc-app-map-feed {
  margin-left: -1rem;
  margin-right: -1rem;
}

.hc-app-map-surface {
  background: var(--hc-sand);
  border-bottom: 1px solid var(--hc-border);
  border-top: 1px solid var(--hc-border);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.hc-app-map-surface .hc-portal-map {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  height: calc(100vh - 175px);
  height: calc(100dvh - 175px - env(safe-area-inset-bottom));
  min-height: 420px;
  max-width: 100%;
  width: 100%;
}

.hc-app-shell-no-header .hc-app-map-surface .hc-portal-map {
  height: calc(100vh - var(--hc-app-nav-height) - var(--hc-app-nav-bottom-gap) - 0.85rem);
  height: calc(100dvh - var(--hc-app-nav-height) - var(--hc-app-nav-bottom-gap) - 0.85rem);
  min-height: 420px;
}

.hc-portal-map-shell {
  isolation: isolate;
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.hc-map-attribution-badge {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(45, 61, 45, 0.18);
  border-radius: 4px;
  bottom: 0.45rem;
  color: #283328;
  font-size: 0.68rem;
  line-height: 1.2;
  max-width: min(78vw, 28rem);
  overflow: hidden;
  padding: 0.18rem 0.35rem;
  pointer-events: none;
  position: absolute;
  right: 0.45rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 6;
}

.hc-map-label-layer {
  filter:
    invert(1)
    grayscale(1)
    contrast(1.35)
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.9))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8));
}

.hc-map-loading-overlay {
  align-items: center;
  background: rgba(248, 243, 231, 0.88);
  border: 1px solid rgba(216, 204, 184, 0.86);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(46, 51, 46, 0.16);
  color: var(--hc-text);
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  left: 50%;
  max-width: min(300px, calc(100% - 2rem));
  padding: 0.8rem 0.9rem;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 28;
}

.hc-map-loading-overlay strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.hc-map-loading-overlay small {
  color: var(--hc-text-muted);
  font-weight: 650;
  line-height: 1.3;
}

.hc-portal-map-commandbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(46, 51, 46, 0.14);
  display: flex;
  gap: 0.32rem;
  left: 0.75rem;
  padding: 0.34rem;
  position: absolute;
  top: 0.75rem;
  z-index: 5;
}

.hc-app-shell-route-app-map .hc-portal-map-commandbar {
  top: max(0.75rem, calc(env(safe-area-inset-top) + 0.75rem));
}

.hc-map-touch-pin {
  background: var(--hc-forest);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  height: 28px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -100%);
  width: 28px;
  z-index: 20;
}

.hc-map-touch-pin::after {
  background: inherit;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  bottom: -9px;
  content: "";
  height: 14px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
}

.hc-map-touch-pin::before {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
}

.hc-map-move-pin {
  align-items: center;
  background: var(--hc-map-marker-color, var(--hc-forest));
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  color: #fff;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  left: 50%;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  z-index: 22;
}

.hc-map-move-pin::after {
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  content: "";
  height: 46px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
}

.hc-map-longtouch-picker {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 0.65rem;
  left: 0.75rem;
  max-height: min(42vh, 340px);
  overflow: auto;
  padding: 0.75rem;
  position: absolute;
  right: 0.75rem;
  z-index: 30;
}

.hc-map-longtouch-picker-head {
  align-items: start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.hc-map-longtouch-picker-head strong,
.hc-map-longtouch-picker-head small {
  display: block;
}

.hc-map-longtouch-picker-head small {
  color: var(--hc-text-muted);
  font-size: 0.88rem;
  margin-top: 0.1rem;
}

.hc-map-longtouch-actions {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}

.hc-map-longtouch-actions::-webkit-scrollbar {
  display: none;
}

.hc-map-longtouch-scroll {
  min-width: 0;
  position: relative;
}

.hc-map-longtouch-scroll::before,
.hc-map-longtouch-scroll::after {
  bottom: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 0.16s ease;
  width: 2rem;
  z-index: 2;
}

.hc-map-longtouch-scroll::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  left: 0;
}

.hc-map-longtouch-scroll::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  right: 0;
}

.hc-map-longtouch-scroll.can-scroll-left::before,
.hc-map-longtouch-scroll.can-scroll-right::after {
  opacity: 1;
}

.hc-map-longtouch-scroll-arrow {
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(46, 51, 46, 0.18);
  color: var(--hc-text);
  display: flex;
  height: 1.7rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.16s ease;
  width: 1.7rem;
  z-index: 3;
}

.hc-map-longtouch-scroll-arrow::before {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 0.46rem;
  width: 0.46rem;
}

.hc-map-longtouch-scroll-arrow.is-left {
  left: 0.15rem;
}

.hc-map-longtouch-scroll-arrow.is-left::before {
  transform: rotate(-135deg);
}

.hc-map-longtouch-scroll-arrow.is-right {
  right: 0.15rem;
}

.hc-map-longtouch-scroll-arrow.is-right::before {
  transform: rotate(45deg);
}

.hc-map-longtouch-scroll.can-scroll-left .hc-map-longtouch-scroll-arrow.is-left,
.hc-map-longtouch-scroll.can-scroll-right .hc-map-longtouch-scroll-arrow.is-right {
  opacity: 1;
}

.hc-map-longtouch-action {
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: flex;
  flex: 0 0 auto;
  font: inherit;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 136px;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.hc-map-longtouch-action:hover,
.hc-map-longtouch-action:focus {
  background: var(--hc-forest);
  border-color: var(--hc-forest);
  color: #fff;
}

.hc-app-shell .hc-map-longtouch-picker {
  bottom: calc(var(--hc-app-nav-height) + var(--hc-app-nav-bottom-gap) + 0.65rem);
  left: max(0.75rem, env(safe-area-inset-left));
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 60;
}

.hc-app-shell-route-app-map .hc-map-longtouch-picker {
  bottom: calc(var(--hc-app-nav-height) + var(--hc-app-nav-bottom-gap) + 0.85rem);
  position: fixed;
}

.hc-map-zoom-button {
  font-size: 1.38rem;
  font-weight: 780;
  line-height: 1;
}

.hc-map-editor-card {
  bottom: 78px;
  left: max(0.75rem, calc((100vw - 680px) / 2 + 0.75rem));
  max-height: min(58vh, 520px);
  overflow: auto;
  position: fixed;
  right: max(0.75rem, calc((100vw - 680px) / 2 + 0.75rem));
  z-index: 60;
}

.hc-map-editor-backdrop {
  z-index: 70;
}

.hc-map-editor-modal {
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(0.75rem, calc((100vw - 640px) / 2));
  max-height: calc(100dvh - 2rem);
  right: max(0.75rem, calc((100vw - 640px) / 2));
  top: max(1rem, env(safe-area-inset-top));
  z-index: 81;
}

.hc-map-form {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hc-map-popup-form {
  align-items: start;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hc-map-form-wide,
.hc-map-form-actions {
  grid-column: 1 / -1;
}

.hc-map-lto-type-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.hc-map-lto-type {
  align-items: center;
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: flex;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.hc-map-lto-type.is-active {
  background: var(--hc-forest);
  border-color: var(--hc-forest);
  color: #fff;
}

.hc-map-lto-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hc-map-lto-icon {
  align-items: center;
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: inline-flex;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 0.6rem;
}

.hc-map-lto-icon.is-active {
  background: var(--hc-forest);
  border-color: var(--hc-forest);
  color: #fff;
}

.hc-map-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hc-map-color-choice {
  background: var(--hc-map-choice-color);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hc-border);
  height: 34px;
  width: 34px;
}

.hc-map-color-choice.is-active {
  box-shadow: 0 0 0 3px var(--hc-forest);
}

.hc-map-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hc-map-offline-status {
  color: var(--hc-muted);
  font-size: 0.92rem;
  min-height: 1.35rem;
}

.hc-map-detail-card {
  gap: 0.75rem;
}

.hc-map-note-photo {
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  display: block;
  margin-top: 0.8rem;
  max-height: 360px;
  max-width: 100%;
  object-fit: cover;
}

.hc-map-marker {
  align-items: center;
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(46, 51, 46, 0.22);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.79rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-width: 34px;
  padding: 0 0.42rem;
}

.hc-map-marker-icon {
  height: 18px;
  width: 18px;
}

.hc-map-marker.is-free {
  background: var(--hc-success);
}

.hc-map-marker.is-busy {
  background: var(--hc-danger);
}

.hc-map-marker.is-mine {
  background: var(--hc-clay);
}

.hc-map-marker.is-stand {
  background: var(--hc-clay);
}

.hc-map-marker.is-feature {
  background: var(--hc-map-marker-color, var(--hc-forest));
}

.hc-map-marker.is-blind {
  background: #4B7D8A;
}

.hc-map-marker.is-feedingsite {
  background: var(--hc-success);
}

.hc-map-marker.is-saltlick {
  background: #7A6AA0;
}

.hc-map-marker.is-wateringplace {
  background: #4F7F8F;
}

.hc-map-marker.is-note {
  background: var(--hc-warning);
  color: #2E332E;
}

.hc-map-marker.is-current {
  background: #2F74A8;
  font-size: 0.68rem;
}

.hc-map-popup {
  color: var(--hc-text);
  display: grid;
  gap: 0.2rem;
  min-width: 190px;
}

.hc-map-popup strong,
.hc-map-popup span,
.hc-map-popup small {
  display: block;
}

.hc-offline-map-popup {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(46, 51, 46, 0.18);
  max-width: min(340px, calc(100vw - 1.5rem));
  padding: 0.82rem;
}

.hc-map-popup-head {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.42rem;
}

.hc-map-popup-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.hc-map-popup-action {
  align-items: center;
  background: var(--hc-forest);
  border: 1px solid var(--hc-forest);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  width: 30px;
}

.hc-map-popup-action:hover,
.hc-map-popup-action:focus-visible,
.hc-map-popup-action.is-active {
  background: #2F4D36;
  border-color: #2F4D36;
  color: #fff;
}

.hc-map-popup-close {
  background: transparent;
  border-color: var(--hc-border);
  color: var(--hc-muted);
}

.hc-map-popup-close:hover,
.hc-map-popup-close:focus-visible {
  background: rgba(166, 94, 85, 0.12);
  border-color: rgba(166, 94, 85, 0.42);
  color: #A65E55;
}

.hc-map-popup-action .hc-map-tool-icon {
  height: 16px;
  width: 16px;
}

.hc-map-shell {
  display: grid;
  gap: 0.75rem;
}

.hc-map-commandbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(46, 51, 46, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  left: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.34rem;
  position: absolute;
  top: 0.8rem;
  z-index: 500;
}

.hc-map-generation-status {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(46, 51, 46, 0.14);
  display: flex;
  gap: 0.65rem;
  left: 0.8rem;
  max-width: min(560px, calc(100% - 1.6rem));
  padding: 0.55rem 0.7rem;
  position: absolute;
  top: 4.25rem;
  z-index: 500;
}

.hc-map-generation-status div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.hc-map-generation-status strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.hc-map-generation-status span:last-child {
  color: var(--hc-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hc-file-action {
  cursor: pointer;
  position: relative;
}

.hc-file-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.hc-map-canvas-wrap {
  background: var(--hc-sand);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  min-height: calc(100vh - 165px);
  overflow: hidden;
  position: relative;
}

.hc-hunting-map {
  height: 100%;
  min-height: calc(100vh - 165px);
  width: 100%;
}

.hc-map-tool-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(216, 204, 184, 0.92);
  border-radius: 8px;
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: relative;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  width: 40px;
  -webkit-tap-highlight-color: transparent;
}

.hc-map-tool-button:hover,
.hc-map-tool-button.is-active {
  background: var(--hc-forest);
  border-color: var(--hc-forest);
  color: #fff;
}

.hc-map-locate-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 204, 184, 0.92);
  border-radius: 8px;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  box-shadow: 0 8px 22px rgba(46, 51, 46, 0.16);
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: max(0.75rem, env(safe-area-inset-right));
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  width: 44px;
  -webkit-tap-highlight-color: transparent;
  z-index: 25;
}

.hc-map-basemap-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 204, 184, 0.92);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(46, 51, 46, 0.16);
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: max(0.75rem, env(safe-area-inset-right));
  top: max(0.75rem, env(safe-area-inset-top));
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  width: 44px;
  -webkit-tap-highlight-color: transparent;
  z-index: 25;
}

.hc-map-basemap-button:hover,
.hc-map-basemap-button:focus-visible,
.hc-map-basemap-button.is-active {
  background: var(--hc-forest);
  border-color: var(--hc-forest);
  color: #fff;
}

.hc-map-locate-button:hover,
.hc-map-locate-button:focus-visible {
  background: var(--hc-forest);
  border-color: var(--hc-forest);
  color: #fff;
}

.hc-map-locate-button:disabled {
  cursor: progress;
}

.hc-map-locate-button.is-loading .hc-map-tool-icon {
  animation: hc-spin 0.8s linear infinite;
}

.hc-map-tool-file {
  margin: 0;
}

.hc-map-tool-menu {
  position: relative;
}

.hc-map-tool-menu-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(46, 51, 46, 0.16);
  display: flex;
  gap: 0.28rem;
  left: 0;
  padding: 0.34rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  z-index: 520;
}

.hc-map-tool-menu-panel-actions {
  align-items: stretch;
  flex-direction: column;
  min-width: 11rem;
}

.hc-map-tool-menu-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 720;
  gap: 0.5rem;
  justify-content: flex-start;
  line-height: 1.2;
  min-height: 36px;
  padding: 0.45rem 0.55rem;
  text-align: left;
  white-space: nowrap;
}

.hc-map-tool-menu-action:hover,
.hc-map-tool-menu-action:focus-visible {
  background: rgba(63, 95, 69, 0.1);
  color: var(--hc-forest);
}

.hc-map-tool-menu-action:disabled {
  cursor: progress;
  opacity: 0.58;
}

.hc-map-toolbar-separator {
  align-self: stretch;
  background: var(--hc-border);
  display: inline-block;
  margin: 0 0.16rem;
  width: 1px;
}

.hc-map-tool-icon {
  background-color: currentColor;
  display: inline-block;
  height: 20px;
  width: 20px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.hc-map-icon-boundary {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5L12 2L20 5V19L12 22L4 19V5ZM6 6.4V17.6L12 19.8L18 17.6V6.4L12 4.2L6 6.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5L12 2L20 5V19L12 22L4 19V5ZM6 6.4V17.6L12 19.8L18 17.6V6.4L12 4.2L6 6.4Z'/%3E%3C/svg%3E");
}

.hc-map-icon-region {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7L9 3L15 6L21 4V17L15 20L9 17L3 20V7ZM5 8.1V16.9L9 14.9V5.6L5 8.1ZM11 5.7V15.1L15 17.1V7.9L11 5.7ZM17 8V17.1L19 16.1V6.9L17 8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7L9 3L15 6L21 4V17L15 20L9 17L3 20V7ZM5 8.1V16.9L9 14.9V5.6L5 8.1ZM11 5.7V15.1L15 17.1V7.9L11 5.7ZM17 8V17.1L19 16.1V6.9L17 8Z'/%3E%3C/svg%3E");
}

.hc-map-icon-object {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2A7 7 0 0 0 5 9C5 14.2 12 22 12 22S19 14.2 19 9A7 7 0 0 0 12 2ZM12 6A3 3 0 1 1 12 12A3 3 0 0 1 12 6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2A7 7 0 0 0 5 9C5 14.2 12 22 12 22S19 14.2 19 9A7 7 0 0 0 12 2ZM12 6A3 3 0 1 1 12 12A3 3 0 0 1 12 6Z'/%3E%3C/svg%3E");
}

.hc-map-icon-stand,
.hc-map-icon-stand-high {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3H17L20 9V15H18V21H16V15H8V21H6V15H4V9L7 3ZM8.2 5L6.2 9H17.8L15.8 5H8.2ZM6 11V13H18V11H6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3H17L20 9V15H18V21H16V15H8V21H6V15H4V9L7 3ZM8.2 5L6.2 9H17.8L15.8 5H8.2ZM6 11V13H18V11H6Z'/%3E%3C/svg%3E");
}

.hc-map-icon-stand-low {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11L12 5L19 11V14H17V20H7V14H5V11ZM8 12V18H16V12L12 8.4L8 12ZM10 14H14V17H10V14Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11L12 5L19 11V14H17V20H7V14H5V11ZM8 12V18H16V12L12 8.4L8 12ZM10 14H14V17H10V14Z'/%3E%3C/svg%3E");
}

.hc-map-icon-perch {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 3H13V8H17V11H13V21H11V11H7V8H11V3ZM8 13H10V15H8V13ZM14 13H16V15H14V13ZM8 17H16V19H8V17ZM5 5H8V7H5V5ZM16 5H19V7H16V5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 3H13V8H17V11H13V21H11V11H7V8H11V3ZM8 13H10V15H8V13ZM14 13H16V15H14V13ZM8 17H16V19H8V17ZM5 5H8V7H5V5ZM16 5H19V7H16V5Z'/%3E%3C/svg%3E");
}

.hc-map-icon-blind {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12L7 7H17L20 12V20H4V12ZM8.1 9L6.3 12H17.7L15.9 9H8.1ZM7 14V18H17V14H7ZM9 15H11V17H9V15ZM13 15H15V17H13V15Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12L7 7H17L20 12V20H4V12ZM8.1 9L6.3 12H17.7L15.9 9H8.1ZM7 14V18H17V14H7ZM9 15H11V17H9V15ZM13 15H15V17H13V15Z'/%3E%3C/svg%3E");
}

.hc-map-icon-feeding {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4H19V7H17L15 20H9L7 7H5V4ZM9 7L10.7 18H13.3L15 7H9ZM3 9H6L7 20H4L3 9ZM18 9H21L20 20H17L18 9Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4H19V7H17L15 20H9L7 7H5V4ZM9 7L10.7 18H13.3L15 7H9ZM3 9H6L7 20H4L3 9ZM18 9H21L20 20H17L18 9Z'/%3E%3C/svg%3E");
}

.hc-map-icon-feeding-large {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6H20V9H18.8L16.6 20H7.4L5.2 9H4V6ZM7.3 9L9 18H15L16.7 9H7.3ZM2 11H5L6 20H3.5L2 11ZM19 11H22L20.5 20H18L19 11ZM7 3H9V6H7V3ZM15 3H17V6H15V3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6H20V9H18.8L16.6 20H7.4L5.2 9H4V6ZM7.3 9L9 18H15L16.7 9H7.3ZM2 11H5L6 20H3.5L2 11ZM19 11H22L20.5 20H18L19 11ZM7 3H9V6H7V3ZM15 3H17V6H15V3Z'/%3E%3C/svg%3E");
}

.hc-map-icon-feeding-small {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 5H18V8H16.5L14.8 18H9.2L7.5 8H6V5ZM9.5 8L10.8 16H13.2L14.5 8H9.5ZM5 19H19V21H5V19ZM8 3H10V5H8V3ZM14 3H16V5H14V3ZM4 10H7L8 18H5.2L4 10ZM17 10H20L18.8 18H16L17 10Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 5H18V8H16.5L14.8 18H9.2L7.5 8H6V5ZM9.5 8L10.8 16H13.2L14.5 8H9.5ZM5 19H19V21H5V19ZM8 3H10V5H8V3ZM14 3H16V5H14V3ZM4 10H7L8 18H5.2L4 10ZM17 10H20L18.8 18H16L17 10Z'/%3E%3C/svg%3E");
}

.hc-map-icon-salt {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 3H16V6H18V21H6V6H8V3ZM10 5V6H14V5H10ZM8 8V19H16V8H8ZM10 10H14V12H10V10ZM10 14H14V16H10V14Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 3H16V6H18V21H6V6H8V3ZM10 5V6H14V5H10ZM8 8V19H16V8H8ZM10 10H14V12H10V10ZM10 14H14V16H10V14Z'/%3E%3C/svg%3E");
}

.hc-map-icon-water {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2S5 9.6 5 15A7 7 0 0 0 19 15C19 9.6 12 2 12 2ZM12 20A5 5 0 0 1 7 15C7 11.9 10.2 7.2 12 4.8C13.8 7.2 17 11.9 17 15A5 5 0 0 1 12 20Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2S5 9.6 5 15A7 7 0 0 0 19 15C19 9.6 12 2 12 2ZM12 20A5 5 0 0 1 7 15C7 11.9 10.2 7.2 12 4.8C13.8 7.2 17 11.9 17 15A5 5 0 0 1 12 20Z'/%3E%3C/svg%3E");
}

.hc-map-icon-note {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3H19V15L14 21H5V3ZM7 5V19H12V13H17V5H7ZM14 15V18.1L16.6 15H14ZM9 8H15V10H9V8ZM9 11H14V13H9V11Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3H19V15L14 21H5V3ZM7 5V19H12V13H17V5H7ZM14 15V18.1L16.6 15H14ZM9 8H15V10H9V8ZM9 11H14V13H9V11Z'/%3E%3C/svg%3E");
}

.hc-map-icon-work {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.7 6.3L17.7 3.3L20.7 6.3L17.7 9.3L16.3 7.9L9.9 14.3L11.1 15.5L8.5 18.1L5.9 15.5L8.5 12.9L9.7 14.1L16.1 7.7L14.7 6.3ZM4 20H20V22H4V20Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.7 6.3L17.7 3.3L20.7 6.3L17.7 9.3L16.3 7.9L9.9 14.3L11.1 15.5L8.5 18.1L5.9 15.5L8.5 12.9L9.7 14.1L16.1 7.7L14.7 6.3ZM4 20H20V22H4V20Z'/%3E%3C/svg%3E");
}

.hc-map-icon-route {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3A3 3 0 1 0 6 9A3 3 0 0 0 6 3ZM6 5A1 1 0 1 1 6 7A1 1 0 0 1 6 5ZM18 15A3 3 0 1 0 18 21A3 3 0 0 0 18 15ZM18 17A1 1 0 1 1 18 19A1 1 0 0 1 18 17ZM8.5 6H14A4 4 0 0 1 14 14H10A2 2 0 0 0 10 18H15V16H10A4 4 0 0 1 10 12H14A2 2 0 0 0 14 8H8.5V6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3A3 3 0 1 0 6 9A3 3 0 0 0 6 3ZM6 5A1 1 0 1 1 6 7A1 1 0 0 1 6 5ZM18 15A3 3 0 1 0 18 21A3 3 0 0 0 18 15ZM18 17A1 1 0 1 1 18 19A1 1 0 0 1 18 17ZM8.5 6H14A4 4 0 0 1 14 14H10A2 2 0 0 0 10 18H15V16H10A4 4 0 0 1 10 12H14A2 2 0 0 0 14 8H8.5V6Z'/%3E%3C/svg%3E");
}

.hc-map-icon-regions-visible {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5C7 5 3.1 8.1 1.5 12C3.1 15.9 7 19 12 19C17 19 20.9 15.9 22.5 12C20.9 8.1 17 5 12 5ZM12 17C8.3 17 5.2 14.9 3.7 12C5.2 9.1 8.3 7 12 7C15.7 7 18.8 9.1 20.3 12C18.8 14.9 15.7 17 12 17ZM12 9A3 3 0 1 0 12 15A3 3 0 0 0 12 9Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5C7 5 3.1 8.1 1.5 12C3.1 15.9 7 19 12 19C17 19 20.9 15.9 22.5 12C20.9 8.1 17 5 12 5ZM12 17C8.3 17 5.2 14.9 3.7 12C5.2 9.1 8.3 7 12 7C15.7 7 18.8 9.1 20.3 12C18.8 14.9 15.7 17 12 17ZM12 9A3 3 0 1 0 12 15A3 3 0 0 0 12 9Z'/%3E%3C/svg%3E");
}

.hc-map-icon-refresh {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6A8 8 0 1 0 20 12H18A6 6 0 1 1 16.2 7.7L13 11H21V3L18 6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6A8 8 0 1 0 20 12H18A6 6 0 1 1 16.2 7.7L13 11H21V3L18 6Z'/%3E%3C/svg%3E");
}

.hc-map-icon-export {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20H19V18H5V20ZM13 4H11V12.2L8.4 9.6L7 11L12 16L17 11L15.6 9.6L13 12.2V4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20H19V18H5V20ZM13 4H11V12.2L8.4 9.6L7 11L12 16L17 11L15.6 9.6L13 12.2V4Z'/%3E%3C/svg%3E");
}

.hc-map-icon-import {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20H19V18H5V20ZM11 16H13V7.8L15.6 10.4L17 9L12 4L7 9L8.4 10.4L11 7.8V16Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20H19V18H5V20ZM11 16H13V7.8L15.6 10.4L17 9L12 4L7 9L8.4 10.4L11 7.8V16Z'/%3E%3C/svg%3E");
}

.hc-map-icon-locate {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2H13V5.1A7 7 0 0 1 18.9 11H22V13H18.9A7 7 0 0 1 13 18.9V22H11V18.9A7 7 0 0 1 5.1 13H2V11H5.1A7 7 0 0 1 11 5.1V2ZM12 7A5 5 0 1 0 12 17A5 5 0 0 0 12 7ZM12 9.5A2.5 2.5 0 1 1 12 14.5A2.5 2.5 0 0 1 12 9.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2H13V5.1A7 7 0 0 1 18.9 11H22V13H18.9A7 7 0 0 1 13 18.9V22H11V18.9A7 7 0 0 1 5.1 13H2V11H5.1A7 7 0 0 1 11 5.1V2ZM12 7A5 5 0 1 0 12 17A5 5 0 0 0 12 7ZM12 9.5A2.5 2.5 0 1 1 12 14.5A2.5 2.5 0 0 1 12 9.5Z'/%3E%3C/svg%3E");
}

.hc-map-icon-satellite {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L10 3L20 13L17 19L7 9L4 6ZM7.4 6.5L16.5 15.6L17.7 13.2L9.6 5.1L7.4 6.5ZM3 14L5 12L12 19L10 21L3 14ZM14.5 3.5L16.5 1.5L22.5 7.5L20.5 9.5L14.5 3.5ZM3 5H5V7H3V5ZM18 20H20V22H18V20ZM20 3H22V5H20V3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L10 3L20 13L17 19L7 9L4 6ZM7.4 6.5L16.5 15.6L17.7 13.2L9.6 5.1L7.4 6.5ZM3 14L5 12L12 19L10 21L3 14ZM14.5 3.5L16.5 1.5L22.5 7.5L20.5 9.5L14.5 3.5ZM3 5H5V7H3V5ZM18 20H20V22H18V20ZM20 3H22V5H20V3Z'/%3E%3C/svg%3E");
}

.hc-map-icon-labels {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4H20V7H18V6H13V18H15V20H9V18H11V6H6V7H4V4ZM16 10H21V12H19.5L18 20H16L17.5 12H16V10ZM4 12H9V14H7.5L6 20H4L5.5 14H4V12Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4H20V7H18V6H13V18H15V20H9V18H11V6H6V7H4V4ZM16 10H21V12H19.5L18 20H16L17.5 12H16V10ZM4 12H9V14H7.5L6 20H4L5.5 14H4V12Z'/%3E%3C/svg%3E");
}

.hc-map-icon-standard {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L9 3L15 5L21 3V19L15 21L9 19L3 21V5ZM5 6.4V18.2L8 17.2V5.8L5 6.4ZM10 5.8V17.2L14 18.5V6.8L10 5.8ZM16 6.8V18.5L19 17.6V5.8L16 6.8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L9 3L15 5L21 3V19L15 21L9 19L3 21V5ZM5 6.4V18.2L8 17.2V5.8L5 6.4ZM10 5.8V17.2L14 18.5V6.8L10 5.8ZM16 6.8V18.5L19 17.6V5.8L16 6.8Z'/%3E%3C/svg%3E");
}

.hc-map-icon-edit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.8 3.2L20.8 6.2L8.9 18.1L4 20L5.9 15.1L17.8 3.2ZM17.8 6L7.6 16.2L7 17.8L8.6 17.2L18.8 7L17.8 6ZM3 21H21V19H3V21Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.8 3.2L20.8 6.2L8.9 18.1L4 20L5.9 15.1L17.8 3.2ZM17.8 6L7.6 16.2L7 17.8L8.6 17.2L18.8 7L17.8 6ZM3 21H21V19H3V21Z'/%3E%3C/svg%3E");
}

.hc-map-icon-move {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2H13V6.2L14.6 4.6L16 6L12 10L8 6L9.4 4.6L11 6.2V2ZM12 14L16 18L14.6 19.4L13 17.8V22H11V17.8L9.4 19.4L8 18L12 14ZM2 11H6.2L4.6 9.4L6 8L10 12L6 16L4.6 14.6L6.2 13H2V11ZM17.8 11H22V13H17.8L19.4 14.6L18 16L14 12L18 8L19.4 9.4L17.8 11Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2H13V6.2L14.6 4.6L16 6L12 10L8 6L9.4 4.6L11 6.2V2ZM12 14L16 18L14.6 19.4L13 17.8V22H11V17.8L9.4 19.4L8 18L12 14ZM2 11H6.2L4.6 9.4L6 8L10 12L6 16L4.6 14.6L6.2 13H2V11ZM17.8 11H22V13H17.8L19.4 14.6L18 16L14 12L18 8L19.4 9.4L17.8 11Z'/%3E%3C/svg%3E");
}

.hc-map-icon-close {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19L5 17.6L10.6 12L5 6.4L6.4 5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19L5 17.6L10.6 12L5 6.4L6.4 5Z'/%3E%3C/svg%3E");
}

.hc-map-detail-form {
  display: grid;
  gap: 0.85rem;
}

.hc-map-popup-title {
  font-size: 1.22rem;
  font-weight: 760;
  line-height: 1.2;
  margin: 0.55rem 0 0.9rem;
}

.hc-icon-only {
  min-width: 42px;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.hc-leaflet-pin {
  align-items: center;
  background: var(--hc-forest);
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(46, 51, 46, 0.22);
  color: white;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 820;
  justify-content: center;
}

.hc-leaflet-pin span {
  line-height: 1;
  max-width: 34px;
  overflow: hidden;
  padding: 0 0.24rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-leaflet-pin.is-stand {
  background: var(--hc-clay);
}

.hc-leaflet-pin.is-work {
  background: var(--hc-danger);
}

.hc-leaflet-pin.is-blind {
  background: #4B7D8A;
}

.hc-leaflet-pin.is-feedingsite {
  background: var(--hc-success);
}

.hc-leaflet-pin.is-saltlick {
  background: #7A6AA0;
}

.hc-leaflet-pin.is-wateringplace {
  background: #4F7F8F;
}

.hc-hunting-map .ol-zoom {
  bottom: 0.8rem;
  left: auto;
  right: 0.8rem;
  top: auto;
}

.hc-hunting-map .ol-control button {
  background: rgba(255, 255, 255, 0.94);
  color: var(--hc-text);
}

.hc-hunting-map .ol-control button:hover,
.hc-hunting-map .ol-control button:focus {
  background: var(--hc-forest);
  color: #fff;
}

.hc-hunting-map .ol-attribution {
  bottom: 0.35rem;
  right: 3.8rem;
}

.hc-hunting-map .leaflet-draw-toolbar a,
.hc-hunting-map .leaflet-control-zoom a {
  color: #1f2a1f;
}

.hc-hunting-map .leaflet-popup-content {
  font-size: 0.95rem;
  margin: 0.7rem 0.85rem;
}

.hc-hunting-map .hc-leaflet-hover-popup {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(46, 51, 46, 0.16);
  color: var(--hc-text);
  font-size: 0.92rem;
  padding: 0.45rem 0.6rem;
}

.hc-hunting-map .hc-leaflet-hover-popup::before {
  border-top-color: rgba(255, 255, 255, 0.98);
}

.hc-map-hover-popup {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(46, 51, 46, 0.16);
  color: var(--hc-text);
  font-size: 0.92rem;
  max-width: min(280px, calc(100vw - 2rem));
  padding: 0.45rem 0.6rem;
  pointer-events: none;
  transform: translateY(-0.35rem);
}

.hc-map-vertex-delete-popup {
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  display: inline-flex;
  box-shadow: 0 8px 18px rgba(46, 51, 46, 0.18);
  padding: 0.18rem;
  pointer-events: auto;
  z-index: 20;
}

.hc-map-vertex-delete-button {
  align-items: center;
  appearance: none;
  background: var(--hc-danger);
  border: 1px solid color-mix(in srgb, var(--hc-danger), transparent 25%);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-width: 26px;
  padding: 0;
  width: 26px;
}

.hc-map-vertex-delete-button:disabled {
  background: color-mix(in srgb, var(--hc-text), transparent 84%);
  border-color: color-mix(in srgb, var(--hc-border), transparent 45%);
  cursor: not-allowed;
  opacity: 0.7;
}

.hc-map-vertex-delete-button .hc-icon {
  height: 12px;
  width: 12px;
}

.hc-role-chip-list,
.hc-segmented-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hc-segmented-actions > button {
  flex: 1 1 120px;
}

.hc-public-shell {
  background:
    linear-gradient(rgba(246, 243, 234, 0.83), rgba(246, 243, 234, 0.93)),
    radial-gradient(circle at top left, rgba(168, 185, 154, 0.42), transparent 36%),
    var(--hc-mist);
  min-height: 100vh;
  padding: 2rem;
}

.hc-public-home,
.hc-public-document {
  max-width: 1040px;
}

.hc-public-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-public-contact-list {
  display: grid;
  gap: 0.85rem;
}

.hc-public-contact-list div {
  border-bottom: 1px solid var(--hc-border);
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
}

.hc-public-contact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hc-public-contact-list dt,
.hc-public-document-note {
  color: var(--hc-text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hc-public-contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.hc-public-document {
  display: grid;
  gap: 1rem;
}

.hc-public-document section {
  scroll-margin-top: 1rem;
}

.hc-public-document-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.hc-app-shell {
  --hc-app-nav-bottom-gap: max(0.75rem, env(safe-area-inset-bottom));
  --hc-app-nav-height: 76px;
  background: var(--hc-mist);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(var(--hc-app-nav-height) + var(--hc-app-nav-bottom-gap) + 0.85rem);
}

.hc-app-header {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(63, 95, 69, 0.96), rgba(63, 95, 69, 0.84)),
    var(--hc-forest);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1rem 1.35rem;
}

.hc-app-header strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.1;
}

.hc-app-header span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.88rem;
}

.hc-app-header .hc-theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hc-app-header .hc-theme-toggle:hover,
.hc-app-header .hc-theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hc-app-header .hc-theme-toggle span {
  color: inherit;
}

.hc-app-header .hc-profile-trigger {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.hc-app-header .hc-profile-trigger:hover,
.hc-app-header .hc-profile-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.hc-app-header .hc-profile-panel strong {
  color: var(--hc-text);
  font-size: 0.98rem;
  line-height: 1.15;
}

.hc-app-header .hc-profile-panel span {
  color: var(--hc-text-muted);
  font-size: 0.84rem;
}

.hc-app-main {
  display: grid;
  gap: 0.9rem;
  margin: -0.7rem auto 0;
  max-width: 680px;
  padding: 0 1rem 1.5rem;
}

.hc-app-shell-no-header .hc-app-main {
  margin-top: 0;
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

.hc-app-shell-no-header.hc-app-shell-route-app-map .hc-app-main {
  padding-top: 0;
}

.hc-app-main .hc-metric-grid,
.hc-app-main .hc-dashboard-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.hc-bottom-nav {
  --hc-bottom-nav-active-index: 0;
  --hc-bottom-nav-gap: 0.2rem;
  --hc-bottom-nav-item-width: calc((100% - (var(--hc-bottom-nav-pad-x) * 2) - (var(--hc-bottom-nav-gap) * 4)) / 5);
  --hc-bottom-nav-pad-x: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hc-border);
  border-radius: 16px;
  bottom: var(--hc-app-nav-bottom-gap);
  box-shadow: 0 14px 32px rgba(38, 47, 41, 0.18);
  display: grid;
  gap: var(--hc-bottom-nav-gap);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  left: max(0.5rem, env(safe-area-inset-left));
  overflow: hidden;
  padding: 0.35rem var(--hc-bottom-nav-pad-x);
  position: fixed;
  right: max(0.5rem, env(safe-area-inset-right));
  z-index: 30;
}

.hc-bottom-nav::before {
  background: rgba(63, 95, 69, 0.1);
  border: 1px solid rgba(63, 95, 69, 0.28);
  border-radius: 0.85rem;
  bottom: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  content: "";
  left: var(--hc-bottom-nav-pad-x);
  pointer-events: none;
  position: absolute;
  top: 0.35rem;
  transform: translateX(calc(var(--hc-bottom-nav-active-index) * (100% + var(--hc-bottom-nav-gap))));
  transition: transform 260ms cubic-bezier(0.2, 0.85, 0.25, 1.08), opacity 160ms ease;
  width: var(--hc-bottom-nav-item-width);
  z-index: 0;
}

.hc-bottom-nav-active-1 {
  --hc-bottom-nav-active-index: 1;
}

.hc-bottom-nav-active-2 {
  --hc-bottom-nav-active-index: 2;
}

.hc-bottom-nav-active-3 {
  --hc-bottom-nav-active-index: 3;
}

.hc-bottom-nav-active-4 {
  --hc-bottom-nav-active-index: 4;
}

.hc-bottom-nav-active-none::before {
  opacity: 0;
}

.hc-bottom-nav a {
  align-content: center;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  color: #687060;
  display: grid;
  font-size: 0.81rem;
  font-weight: 700;
  gap: 0.15rem;
  justify-items: center;
  line-height: 1.1;
  min-height: 56px;
  min-width: 0;
  overflow: hidden;
  padding: 0.4rem 0.16rem 0.32rem;
  position: relative;
  touch-action: manipulation;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition: color 170ms ease, transform 130ms ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.hc-bottom-nav a::after {
  background: radial-gradient(circle at center, rgba(63, 95, 69, 0.18), rgba(63, 95, 69, 0.04) 58%, transparent 72%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(0.68);
  transition: opacity 130ms ease, transform 180ms ease;
  z-index: 0;
}

.hc-bottom-nav a > span {
  position: relative;
  z-index: 1;
}

.hc-bottom-nav a:active {
  color: var(--hc-forest);
  transform: translateY(2px) scale(0.93);
}

.hc-bottom-nav a:active::after,
.hc-bottom-nav a.is-pressed::after {
  opacity: 1;
  transform: scale(1);
  transition-duration: 70ms;
}

.hc-bottom-nav a.is-pressed {
  color: var(--hc-forest);
  transform: translateY(2px) scale(0.93);
}

.hc-bottom-nav a.active {
  color: var(--hc-forest);
}

@media (prefers-reduced-motion: reduce) {
  .hc-bottom-nav::before,
  .hc-bottom-nav a,
  .hc-bottom-nav a::after {
    transition-duration: 1ms;
  }
}

.hc-bottom-nav .nav-icon {
  font-size: 1.19rem;
}

.hc-bottom-nav a > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-app-splash {
  align-items: center;
  background: rgba(46, 51, 46, 0.24);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 1rem;
  pointer-events: auto;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 95;
}

.hc-app-splash-card {
  align-items: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow-strong);
  color: var(--hc-text);
  display: flex;
  gap: 0.75rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
}

.hc-app-splash-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.hc-app-splash-card p {
  color: var(--hc-text-muted);
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0.15rem 0 0;
}

.hc-app-update-card {
  align-items: flex-start;
  width: min(360px, calc(100vw - 2rem));
}

.hc-app-update-content {
  display: grid;
  flex: 1 1 auto;
  gap: 0.5rem;
  min-width: 0;
}

.hc-app-update-progress {
  background: rgba(63, 95, 69, 0.16);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  width: 100%;
}

.hc-app-update-progress span {
  background: var(--hc-forest);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.18s ease;
  width: 0;
}

.hc-app-update-progress.is-indeterminate span {
  animation: hc-app-update-progress 1.1s ease-in-out infinite;
  width: 42%;
}

@keyframes hc-app-update-progress {
  0% {
    transform: translateX(-110%);
  }

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

.hc-app-spinner {
  animation: hc-spinner-rotate 0.8s linear infinite;
  border: 3px solid rgba(63, 95, 69, 0.18);
  border-top-color: var(--hc-forest);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 28px;
  width: 28px;
}

@keyframes hc-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.hc-nav-icon {
  display: block;
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.hc-nav-icon-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.2L10 3L17 9.2V17H12V12H8V17H3V9.2ZM5 10.1V15H6V10H14V15H15V10.1L10 5.7L5 10.1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.2L10 3L17 9.2V17H12V12H8V17H3V9.2ZM5 10.1V15H6V10H14V15H15V10.1L10 5.7L5 10.1Z'/%3E%3C/svg%3E");
}

.hc-nav-icon-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.2 13.6L4.6 10L3.2 11.4L8.2 16.4L17.2 7.4L15.8 6L8.2 13.6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.2 13.6L4.6 10L3.2 11.4L8.2 16.4L17.2 7.4L15.8 6L8.2 13.6Z'/%3E%3C/svg%3E");
}

.hc-nav-icon-bell {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 18A2.5 2.5 0 0 0 12.4 16H7.6A2.5 2.5 0 0 0 10 18ZM4 14H16L14.5 12.2V8A4.5 4.5 0 0 0 11 3.6V2H9V3.6A4.5 4.5 0 0 0 5.5 8V12.2L4 14Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 18A2.5 2.5 0 0 0 12.4 16H7.6A2.5 2.5 0 0 0 10 18ZM4 14H16L14.5 12.2V8A4.5 4.5 0 0 0 11 3.6V2H9V3.6A4.5 4.5 0 0 0 5.5 8V12.2L4 14Z'/%3E%3C/svg%3E");
}

.hc-nav-icon-chat {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4H17V14H7.5L3 17.2V4ZM5 6V13.3L6.9 12H15V6H5ZM7 8H13V10H7V8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4H17V14H7.5L3 17.2V4ZM5 6V13.3L6.9 12H15V6H5ZM7 8H13V10H7V8Z'/%3E%3C/svg%3E");
}

.hc-nav-icon-stand {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3H14L16 7V11H14V18H12V11H8V18H6V11H4V7L6 3ZM7.2 5L6.2 7H13.8L12.8 5H7.2ZM6 9H14V8.8H6V9Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3H14L16 7V11H14V18H12V11H8V18H6V11H4V7L6 3ZM7.2 5L6.2 7H13.8L12.8 5H7.2ZM6 9H14V8.8H6V9Z'/%3E%3C/svg%3E");
}

.hc-nav-icon-map {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L7.8 2.5L12.2 4.5L17 2.5V15.5L12.2 17.5L7.8 15.5L3 17.5V4.5ZM5 5.8V14.5L6.8 13.8V5L5 5.8ZM8.8 5V13.8L11.2 15V6.2L8.8 5ZM13.2 6.2V15L15 14.2V5.5L13.2 6.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L7.8 2.5L12.2 4.5L17 2.5V15.5L12.2 17.5L7.8 15.5L3 17.5V4.5ZM5 5.8V14.5L6.8 13.8V5L5 5.8ZM8.8 5V13.8L11.2 15V6.2L8.8 5ZM13.2 6.2V15L15 14.2V5.5L13.2 6.2Z'/%3E%3C/svg%3E");
}

.hc-chat-banner {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow-soft);
  padding: 0.75rem 0.85rem;
}

.hc-chat-shell {
  --hc-chat-message-font-size: 0.96rem;
  --hc-chat-preview-font-size: 0.84rem;
  --hc-chat-meta-font-size: 0.7rem;
  display: grid;
  gap: 0.8rem;
}

.hc-chat-font-small {
  --hc-chat-message-font-size: 0.88rem;
  --hc-chat-preview-font-size: 0.78rem;
  --hc-chat-meta-font-size: 0.66rem;
}

.hc-chat-font-large {
  --hc-chat-message-font-size: 1.06rem;
  --hc-chat-preview-font-size: 0.93rem;
  --hc-chat-meta-font-size: 0.76rem;
}

.hc-chat-list-panel,
.hc-chat-detail-panel {
  min-width: 0;
}

.hc-chat-list-panel,
.hc-chat-thread,
.hc-chat-empty {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow-soft);
}

.hc-chat-list-panel {
  align-content: start;
  display: grid;
  gap: 0.7rem;
  overflow: hidden;
  padding: 0.7rem;
}

.hc-chat-shell.has-active-conversation .hc-chat-list-panel,
.hc-chat-shell:not(.has-active-conversation) .hc-chat-detail-panel {
  display: none;
}

.hc-chat-inbox-head,
.hc-chat-head-actions,
.hc-chat-thread-head,
.hc-chat-list-title,
.hc-chat-composer-row,
.hc-chat-sheet header,
.hc-chat-sheet-tabs,
.hc-chat-inbox-tabs {
  align-items: center;
  display: flex;
}

.hc-chat-inbox-head,
.hc-chat-thread-head,
.hc-chat-list-title,
.hc-chat-sheet header {
  justify-content: space-between;
}

.hc-chat-inbox-head {
  gap: 0.75rem;
  min-height: 48px;
}

.hc-chat-inbox-head h1,
.hc-chat-thread-head h2,
.hc-chat-sheet h2 {
  font-size: 1.08rem;
  line-height: 1.2;
  margin: 0;
}

.hc-chat-inbox-head span,
.hc-chat-thread-head span,
.hc-chat-list-preview,
.hc-chat-list-title time,
.hc-chat-message footer,
.hc-chat-typing {
  color: var(--hc-text-muted);
}

.hc-chat-head-actions {
  gap: 0.45rem;
  flex: 0 0 auto;
}

.hc-chat-icon-button,
.hc-chat-new-button,
.hc-chat-back-button,
.hc-chat-attach-button,
.hc-chat-send-button,
.hc-chat-load-more,
.hc-chat-sheet header button,
.hc-chat-sheet-tabs button,
.hc-chat-inbox-tabs button,
.hc-chat-member-option {
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  touch-action: manipulation;
}

.hc-chat-icon-button,
.hc-chat-back-button,
.hc-chat-load-more,
.hc-chat-sheet header button,
.hc-chat-sheet-tabs button,
.hc-chat-inbox-tabs button {
  background: var(--hc-surface-muted);
  color: var(--hc-text);
  padding: 0.45rem;
}

.hc-chat-new-button,
.hc-chat-send-button {
  background: var(--hc-forest);
  border-color: var(--hc-forest);
  color: #fff;
  padding: 0.45rem;
}

.hc-chat-new-button .hc-chat-action-icon,
.hc-chat-send-button .hc-chat-action-icon {
  background: #fff;
}

.hc-chat-icon-button,
.hc-chat-new-button,
.hc-chat-back-button,
.hc-chat-attach-button,
.hc-chat-send-button,
.hc-chat-sheet header button {
  display: inline-flex;
  height: 40px;
  width: 40px;
}

.hc-chat-action-icon {
  background: currentColor;
  display: block;
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.hc-chat-icon-search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 3A5.5 5.5 0 0 1 13 11.7L17.2 15.9L15.9 17.2L11.7 13A5.5 5.5 0 1 1 8.5 3ZM8.5 4.8A3.7 3.7 0 1 0 8.5 12.2A3.7 3.7 0 0 0 8.5 4.8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 3A5.5 5.5 0 0 1 13 11.7L17.2 15.9L15.9 17.2L11.7 13A5.5 5.5 0 1 1 8.5 3ZM8.5 4.8A3.7 3.7 0 1 0 8.5 12.2A3.7 3.7 0 0 0 8.5 4.8Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-refresh {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.4 6.6A6 6 0 0 0 5.2 5.2A6 6 0 0 0 4 7H2A8 8 0 0 1 16.8 4.8V2H18.8V8.2H12.6V6.2H15.1L15.4 6.6ZM4.6 13.4A6 6 0 0 0 14.8 14.8A6 6 0 0 0 16 13H18A8 8 0 0 1 3.2 15.2V18H1.2V11.8H7.4V13.8H4.9L4.6 13.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.4 6.6A6 6 0 0 0 5.2 5.2A6 6 0 0 0 4 7H2A8 8 0 0 1 16.8 4.8V2H18.8V8.2H12.6V6.2H15.1L15.4 6.6ZM4.6 13.4A6 6 0 0 0 14.8 14.8A6 6 0 0 0 16 13H18A8 8 0 0 1 3.2 15.2V18H1.2V11.8H7.4V13.8H4.9L4.6 13.4Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-plus {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4H11V9H16V11H11V16H9V11H4V9H9V4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4H11V9H16V11H11V16H9V11H4V9H9V4Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-back {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.4 4L9.8 5.4L6.2 9H17V11H6.2L9.8 14.6L8.4 16L2.4 10L8.4 4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.4 4L9.8 5.4L6.2 9H17V11H6.2L9.8 14.6L8.4 16L2.4 10L8.4 4Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-close {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.6 4.2L10 8.6L14.4 4.2L15.8 5.6L11.4 10L15.8 14.4L14.4 15.8L10 11.4L5.6 15.8L4.2 14.4L8.6 10L4.2 5.6L5.6 4.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.6 4.2L10 8.6L14.4 4.2L15.8 5.6L11.4 10L15.8 14.4L14.4 15.8L10 11.4L5.6 15.8L4.2 14.4L8.6 10L4.2 5.6L5.6 4.2Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-attach {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.1 15.8A4.3 4.3 0 0 1 7.1 9.7L12.2 4.6A2.6 2.6 0 1 1 15.9 8.3L10.5 13.7A1.2 1.2 0 0 1 8.8 12L13.6 7.2L12.2 5.8L7.4 10.6A3.2 3.2 0 0 0 11.9 15.1L17.3 9.7A4.6 4.6 0 1 0 10.8 3.2L5.7 8.3A6.3 6.3 0 1 0 14.6 17.2L19 12.8L17.6 11.4L13.2 15.8A4.3 4.3 0 0 1 7.1 15.8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.1 15.8A4.3 4.3 0 0 1 7.1 9.7L12.2 4.6A2.6 2.6 0 1 1 15.9 8.3L10.5 13.7A1.2 1.2 0 0 1 8.8 12L13.6 7.2L12.2 5.8L7.4 10.6A3.2 3.2 0 0 0 11.9 15.1L17.3 9.7A4.6 4.6 0 1 0 10.8 3.2L5.7 8.3A6.3 6.3 0 1 0 14.6 17.2L19 12.8L17.6 11.4L13.2 15.8A4.3 4.3 0 0 1 7.1 15.8Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-send {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 3.4L18 10L2.5 16.6L4.1 11L10.8 10L4.1 9L2.5 3.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 3.4L18 10L2.5 16.6L4.1 11L10.8 10L4.1 9L2.5 3.4Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-settings {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.7 1.5H11.3L11.8 3.6C12.3 3.8 12.8 4 13.2 4.3L15.2 3.3L17 5.1L16 7C16.3 7.5 16.5 8 16.7 8.5L18.8 9V11.5L16.7 12C16.5 12.5 16.3 13 16 13.4L17 15.4L15.2 17.2L13.2 16.2C12.8 16.5 12.3 16.7 11.8 16.9L11.3 19H8.7L8.2 16.9C7.7 16.7 7.2 16.5 6.8 16.2L4.8 17.2L3 15.4L4 13.4C3.7 13 3.5 12.5 3.3 12L1.2 11.5V9L3.3 8.5C3.5 8 3.7 7.5 4 7L3 5.1L4.8 3.3L6.8 4.3C7.2 4 7.7 3.8 8.2 3.6L8.7 1.5ZM10 7A3 3 0 1 0 10 13A3 3 0 0 0 10 7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.7 1.5H11.3L11.8 3.6C12.3 3.8 12.8 4 13.2 4.3L15.2 3.3L17 5.1L16 7C16.3 7.5 16.5 8 16.7 8.5L18.8 9V11.5L16.7 12C16.5 12.5 16.3 13 16 13.4L17 15.4L15.2 17.2L13.2 16.2C12.8 16.5 12.3 16.7 11.8 16.9L11.3 19H8.7L8.2 16.9C7.7 16.7 7.2 16.5 6.8 16.2L4.8 17.2L3 15.4L4 13.4C3.7 13 3.5 12.5 3.3 12L1.2 11.5V9L3.3 8.5C3.5 8 3.7 7.5 4 7L3 5.1L4.8 3.3L6.8 4.3C7.2 4 7.7 3.8 8.2 3.6L8.7 1.5ZM10 7A3 3 0 1 0 10 13A3 3 0 0 0 10 7Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-edit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.8 2.8L17.2 6.2L7.4 16H4V12.6L13.8 2.8ZM6 13.4V14H6.6L14.4 6.2L13.8 5.6L6 13.4ZM15.2 1.4C15.7 0.9 16.5 0.9 17 1.4L18.6 3C19.1 3.5 19.1 4.3 18.6 4.8L17.2 6.2L13.8 2.8L15.2 1.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.8 2.8L17.2 6.2L7.4 16H4V12.6L13.8 2.8ZM6 13.4V14H6.6L14.4 6.2L13.8 5.6L6 13.4ZM15.2 1.4C15.7 0.9 16.5 0.9 17 1.4L18.6 3C19.1 3.5 19.1 4.3 18.6 4.8L17.2 6.2L13.8 2.8L15.2 1.4Z'/%3E%3C/svg%3E");
}

.hc-chat-icon-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.1 14.2L3.8 9.9L5.2 8.5L8.1 11.4L15.8 3.7L17.2 5.1L8.1 14.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.1 14.2L3.8 9.9L5.2 8.5L8.1 11.4L15.8 3.7L17.2 5.1L8.1 14.2Z'/%3E%3C/svg%3E");
}

.hc-chat-search {
  display: block;
}

.hc-chat-head-search {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.hc-chat-search input,
.hc-chat-head-search input {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  width: 100%;
}

.hc-chat-inbox-tabs {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  gap: 0.2rem;
  overflow-x: auto;
  padding: 0.2rem;
}

.hc-chat-inbox-tabs button {
  background: transparent;
  border-color: transparent;
  display: inline-flex;
  flex: 1 1 0;
  gap: 0.35rem;
  min-width: 0;
}

.hc-chat-inbox-tabs button.active {
  background: var(--hc-surface);
  border-color: var(--hc-border);
  color: var(--hc-forest);
}

.hc-chat-inbox-tabs span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-chat-inbox-tabs em {
  align-items: center;
  background: var(--hc-forest);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 0.3rem;
}

.hc-chat-list {
  align-content: start;
  display: grid;
  gap: 0.18rem;
  max-height: calc(100dvh - var(--hc-app-nav-height) - var(--hc-app-nav-bottom-gap) - 12rem);
  overflow: auto;
  padding-right: 0.1rem;
}

.hc-chat-list button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--hc-text);
  display: grid;
  gap: 0.55rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 0.5rem;
  text-align: left;
}

.hc-chat-list button.active,
.hc-chat-list button:hover,
.hc-chat-member-option:hover {
  background: rgba(63, 95, 69, 0.1);
  border-color: rgba(63, 95, 69, 0.26);
}

.hc-chat-avatar {
  align-items: center;
  background: linear-gradient(135deg, rgba(63, 95, 69, 0.95), rgba(95, 124, 72, 0.9));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.hc-chat-avatar.large {
  height: 46px;
  width: 46px;
}

.hc-chat-avatar.small {
  font-size: 0.7rem;
  height: 30px;
  width: 30px;
}

.hc-chat-list-main,
.hc-chat-list-title strong,
.hc-chat-list-preview,
.hc-chat-pdf strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-chat-list-main {
  display: grid;
  gap: 0.16rem;
}

.hc-chat-list-title {
  gap: 0.6rem;
}

.hc-chat-list-title strong {
  flex: 1 1 auto;
}

.hc-chat-list-title time {
  flex: 0 0 auto;
  font-size: 0.76rem;
}

.hc-chat-list-preview {
  display: block;
  font-size: var(--hc-chat-preview-font-size);
}

.hc-chat-list em {
  align-items: center;
  background: var(--hc-forest);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 0.35rem;
}

.hc-chat-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: calc(100dvh - var(--hc-app-nav-height) - var(--hc-app-nav-bottom-gap) - 1rem);
  overflow: hidden;
}

.hc-chat-thread-head {
  border-bottom: 1px solid var(--hc-border);
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.hc-chat-thread-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.hc-chat-thread-head > .hc-chat-head-actions {
  flex: 0 0 auto;
}

.hc-chat-thread-title {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.hc-chat-thread-title h2 {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hc-chat-thread-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-chat-back-button {
  display: inline-flex;
}

.hc-chat-messages {
  align-content: end;
  background:
    linear-gradient(180deg, rgba(63, 95, 69, 0.045), rgba(63, 95, 69, 0.015)),
    var(--hc-mist);
  display: grid;
  gap: 0.2rem;
  overflow: auto;
  padding: 0.75rem;
}

.hc-chat-load-more {
  justify-self: center;
  margin-bottom: 0.45rem;
  min-height: 34px;
  padding: 0.28rem 0.65rem;
}

.hc-chat-date-separator {
  background: rgba(63, 95, 69, 0.12);
  border: 1px solid rgba(63, 95, 69, 0.16);
  border-radius: 999px;
  color: var(--hc-text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  justify-self: center;
  margin: 0.45rem 0;
  padding: 0.18rem 0.65rem;
}

.hc-chat-message {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: 30px minmax(0, auto);
  justify-self: start;
  max-width: min(88%, 560px);
}

.hc-chat-message.own {
  grid-template-columns: minmax(0, auto);
  justify-self: end;
}

.hc-chat-message.grouped {
  margin-top: -0.08rem;
}

.hc-chat-message.grouped:not(.own) {
  padding-left: 34px;
}

.hc-chat-bubble {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(63, 95, 69, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.5rem 0.62rem 0.38rem;
}

.hc-chat-message.own .hc-chat-bubble {
  background: rgba(63, 95, 69, 0.15);
  border-color: rgba(63, 95, 69, 0.22);
}

.hc-chat-sender {
  color: var(--hc-forest);
  font-size: 0.78rem;
}

.hc-chat-bubble p {
  font-size: var(--hc-chat-message-font-size);
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.hc-chat-message footer {
  align-items: center;
  display: flex;
  font-size: var(--hc-chat-meta-font-size);
  gap: 0.35rem;
  justify-content: flex-end;
}

.hc-chat-message-edit-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--hc-text-muted);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 22px;
}

.hc-chat-message-edit-button .hc-chat-action-icon {
  height: 15px;
  width: 15px;
}

.hc-chat-attachments,
.hc-chat-pending-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.hc-chat-photo {
  background: transparent;
  border: 0;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  padding: 0;
}

.hc-chat-photo img {
  aspect-ratio: 4 / 3;
  display: block;
  max-width: min(72vw, 260px);
  object-fit: cover;
  width: 100%;
}

.hc-chat-pdf,
.hc-chat-pending-attachments span {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  display: inline-flex;
  gap: 0.45rem;
  min-height: 36px;
  max-width: 100%;
  padding: 0.34rem 0.52rem;
  text-decoration: none;
}

.hc-chat-pdf span {
  background: #a33d2b;
  border-radius: 4px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.12rem 0.25rem;
}

.hc-chat-typing {
  background: var(--hc-surface);
  border-top: 1px solid var(--hc-border);
  font-size: 0.8rem;
  min-height: 32px;
  padding: 0.45rem 0.75rem;
}

.hc-chat-composer {
  background: var(--hc-surface);
  border-top: 1px solid var(--hc-border);
  display: grid;
  gap: 0.42rem;
  padding: 0.55rem 0.7rem 0.65rem;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.hc-chat-editing-bar {
  align-items: center;
  background: rgba(63, 95, 69, 0.1);
  border: 1px solid rgba(63, 95, 69, 0.22);
  border-radius: 8px;
  color: var(--hc-text);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: space-between;
  padding: 0.36rem 0.5rem;
}

.hc-chat-editing-bar button {
  background: transparent;
  border: 0;
  color: var(--hc-forest);
  font-weight: 900;
  padding: 0;
}

.hc-chat-composer-row {
  gap: 0.45rem;
}

.hc-chat-composer textarea {
  max-height: 96px;
  min-height: 42px;
  resize: none;
}

.hc-chat-file-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.hc-chat-attach-button {
  align-items: center;
  background: var(--hc-surface-muted);
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0.45rem;
}

.hc-chat-send-button {
  min-width: 40px;
}

.hc-chat-resolution-toggle {
  align-items: center;
  color: var(--hc-text-muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.38rem;
}

.hc-chat-empty {
  color: var(--hc-text-muted);
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 1.35rem;
  text-align: center;
}

.hc-chat-empty.compact {
  background: transparent;
  border: 0;
  box-shadow: none;
  justify-self: center;
  padding: 0.65rem;
}

.hc-chat-empty h2 {
  color: var(--hc-text);
  font-size: 1rem;
  margin: 0;
}

.desktop-only {
  display: none;
}

.hc-chat-sheet-backdrop {
  align-items: end;
  background: rgba(25, 31, 27, 0.38);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

.hc-chat-sheet {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow);
  display: grid;
  gap: 0.75rem;
  max-height: min(82dvh, 640px);
  max-width: 520px;
  overflow: auto;
  padding: 0.85rem;
  width: 100%;
}

.hc-chat-sheet header {
  gap: 0.75rem;
}

.hc-chat-sheet-tabs {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  gap: 0.2rem;
  padding: 0.2rem;
}

.hc-chat-sheet-tabs button {
  background: transparent;
  border-color: transparent;
  flex: 1 1 0;
}

.hc-chat-sheet-tabs button.active {
  background: var(--hc-surface);
  border-color: var(--hc-border);
  color: var(--hc-forest);
}

.hc-chat-member-picker {
  display: grid;
  gap: 0.3rem;
  max-height: 260px;
  overflow: auto;
}

.hc-chat-member-option {
  align-items: center;
  background: transparent;
  color: var(--hc-text);
  display: flex;
  gap: 0.55rem;
  justify-content: flex-start;
  padding: 0.45rem 0.5rem;
  text-align: left;
}

.hc-chat-settings-sheet {
  max-width: 420px;
}

.hc-chat-font-options {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hc-chat-font-options button {
  background: var(--hc-surface-muted);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  color: var(--hc-text);
  font-weight: 800;
  min-height: 44px;
}

.hc-chat-font-options button.active {
  background: rgba(63, 95, 69, 0.12);
  border-color: rgba(63, 95, 69, 0.32);
  color: var(--hc-forest);
}

.hc-chat-image-viewer {
  align-items: center;
  background: rgba(10, 14, 12, 0.86);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.hc-chat-image-viewer section {
  display: grid;
  gap: 0.75rem;
  max-height: 94dvh;
  max-width: min(960px, 100%);
  min-width: 0;
  width: 100%;
}

.hc-chat-image-viewer header {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.hc-chat-image-viewer header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-chat-image-viewer header button {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.hc-chat-image-viewer img {
  background: #111;
  border-radius: 8px;
  display: block;
  max-height: calc(94dvh - 7rem);
  max-width: 100%;
  object-fit: contain;
  place-self: center;
}

.hc-chat-image-viewer .hc-secondary-action {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  justify-self: start;
}

@media (min-width: 900px) {
  .hc-app-main:has(.hc-chat-shell) {
    max-width: 1120px;
  }

  .hc-chat-shell {
    grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  }

  .hc-chat-shell.has-active-conversation .hc-chat-list-panel,
  .hc-chat-shell:not(.has-active-conversation) .hc-chat-detail-panel {
    display: grid;
  }

  .hc-chat-back-button {
    display: none;
  }

  .hc-chat-thread {
    min-height: min(720px, calc(100dvh - var(--hc-app-nav-height) - var(--hc-app-nav-bottom-gap) - 5.5rem));
  }

  .desktop-only {
    display: grid;
  }

  .hc-chat-sheet-backdrop {
    align-items: center;
  }
}

html[data-hc-theme="dark"] body,
html[data-hc-theme="dark"] .hc-admin-shell,
html[data-hc-theme="dark"] .hc-app-shell,
html[data-hc-theme="dark"] .hc-admin-content {
  background: var(--hc-bg);
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-admin-sidebar {
  background: var(--hc-surface);
  border-right: 1px solid var(--hc-border);
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-admin-brand {
  border-bottom-color: var(--hc-border);
}

html[data-hc-theme="dark"] .hc-admin-brand strong,
html[data-hc-theme="dark"] .hc-admin-nav a,
html[data-hc-theme="dark"] .hc-page-title h1,
html[data-hc-theme="dark"] .hc-metric strong {
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-admin-brand span,
html[data-hc-theme="dark"] .hc-admin-nav-group summary,
html[data-hc-theme="dark"] .hc-admin-nav-group summary::before,
html[data-hc-theme="dark"] .hc-admin-nav-group summary::after,
html[data-hc-theme="dark"] .hc-page-title p,
html[data-hc-theme="dark"] .hc-metric span,
html[data-hc-theme="dark"] .hc-metric small,
html[data-hc-theme="dark"] .text-muted {
  color: var(--hc-text-muted) !important;
}

html[data-hc-theme="dark"] .hc-admin-nav-group summary:hover,
html[data-hc-theme="dark"] .hc-admin-nav a:hover,
html[data-hc-theme="dark"] .hc-admin-nav a.active {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

html[data-hc-theme="dark"] .hc-admin-nav-group > div::before {
  background: var(--hc-border);
}

html[data-hc-theme="dark"] .hc-admin-nav-group > div a::before {
  color: var(--hc-text-muted);
}

html[data-hc-theme="dark"] .hc-admin-topbar,
html[data-hc-theme="dark"] .hc-card,
html[data-hc-theme="dark"] .hc-bottom-nav,
html[data-hc-theme="dark"] .hc-autocomplete-menu,
html[data-hc-theme="dark"] .hc-empty-state,
html[data-hc-theme="dark"] .hc-push-status-summary,
html[data-hc-theme="dark"] .hc-portal-map-commandbar,
html[data-hc-theme="dark"] .hc-offline-map-popup,
html[data-hc-theme="dark"] .hc-map-commandbar,
html[data-hc-theme="dark"] .hc-map-tool-button,
html[data-hc-theme="dark"] .hc-map-locate-button,
html[data-hc-theme="dark"] .hc-map-basemap-button,
html[data-hc-theme="dark"] .hc-map-attribution-badge,
html[data-hc-theme="dark"] .hc-map-loading-overlay,
html[data-hc-theme="dark"] .hc-map-generation-status,
html[data-hc-theme="dark"] .hc-map-tool-menu-panel,
html[data-hc-theme="dark"] .hc-map-longtouch-picker,
html[data-hc-theme="dark"] .hc-map-longtouch-action,
html[data-hc-theme="dark"] .hc-map-hover-popup,
html[data-hc-theme="dark"] .hc-chat-banner,
html[data-hc-theme="dark"] .hc-chat-list-panel,
html[data-hc-theme="dark"] .hc-chat-list,
html[data-hc-theme="dark"] .hc-chat-thread,
html[data-hc-theme="dark"] .hc-chat-empty,
html[data-hc-theme="dark"] .hc-chat-sheet,
html[data-hc-theme="dark"] .hc-chat-sheet-tabs,
html[data-hc-theme="dark"] .hc-chat-inbox-tabs,
html[data-hc-theme="dark"] .hc-chat-icon-button,
html[data-hc-theme="dark"] .hc-chat-back-button,
html[data-hc-theme="dark"] .hc-chat-load-more,
html[data-hc-theme="dark"] .hc-chat-sheet header button,
html[data-hc-theme="dark"] .hc-chat-messages,
html[data-hc-theme="dark"] .hc-chat-typing,
html[data-hc-theme="dark"] .hc-chat-editing-bar,
html[data-hc-theme="dark"] .hc-chat-composer {
  background: var(--hc-surface);
  border-color: var(--hc-border);
  color: var(--hc-text);
  box-shadow: var(--hc-shadow);
}

html[data-hc-theme="dark"] .hc-map-longtouch-picker {
  background: rgba(22, 27, 31, 0.94);
}

html[data-hc-theme="dark"] .hc-map-longtouch-scroll::before {
  background: linear-gradient(90deg, rgba(22, 27, 31, 0.94), rgba(22, 27, 31, 0));
}

html[data-hc-theme="dark"] .hc-map-longtouch-scroll::after {
  background: linear-gradient(270deg, rgba(22, 27, 31, 0.94), rgba(22, 27, 31, 0));
}

html[data-hc-theme="dark"] .hc-app-map-surface,
html[data-hc-theme="dark"] .hc-portal-map {
  background: var(--hc-bg);
}

html[data-hc-theme="dark"] .hc-app-header {
  background: var(--hc-surface);
  border-bottom: 1px solid var(--hc-border);
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-app-header span,
html[data-hc-theme="dark"] .hc-bottom-nav a {
  color: var(--hc-text-muted);
}

html[data-hc-theme="dark"] .hc-app-header .hc-theme-toggle {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border);
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-app-header .hc-profile-trigger {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border);
}

html[data-hc-theme="dark"] .hc-bottom-nav::before {
  background: rgba(128, 169, 112, 0.14);
  border-color: rgba(128, 169, 112, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

html[data-hc-theme="dark"] .hc-bottom-nav a::after {
  background: radial-gradient(circle at center, rgba(128, 169, 112, 0.24), rgba(128, 169, 112, 0.07) 58%, transparent 72%);
}

html[data-hc-theme="dark"] .hc-bottom-nav a.active {
  color: var(--hc-accent);
}

html[data-hc-theme="dark"] .hc-metric,
html[data-hc-theme="dark"] .hc-compact-metrics span,
html[data-hc-theme="dark"] .hc-data-row,
html[data-hc-theme="dark"] .hc-admin-slot-actions,
html[data-hc-theme="dark"] .hc-attachment-panel,
html[data-hc-theme="dark"] .hc-attachment-image-frame,
html[data-hc-theme="dark"] .hc-attachment-compression-preview div,
html[data-hc-theme="dark"] .hc-report-line-detail,
html[data-hc-theme="dark"] .hc-assembly-result,
html[data-hc-theme="dark"] .hc-detail-pane,
html[data-hc-theme="dark"] .hc-member-payment-row,
html[data-hc-theme="dark"] .hc-chat-bubble,
html[data-hc-theme="dark"] .hc-chat-attach-button,
html[data-hc-theme="dark"] .hc-chat-pdf,
html[data-hc-theme="dark"] .hc-chat-pending-attachments span {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border);
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-chat-message.own .hc-chat-bubble,
html[data-hc-theme="dark"] .hc-chat-list button.active,
html[data-hc-theme="dark"] .hc-chat-sheet-tabs button.active,
html[data-hc-theme="dark"] .hc-chat-inbox-tabs button.active {
  background: var(--hc-accent-soft);
  border-color: rgba(84, 182, 137, 0.32);
}

html[data-hc-theme="dark"] .form-control,
html[data-hc-theme="dark"] .form-select,
html[data-hc-theme="dark"] .form-check-input,
html[data-hc-theme="dark"] .dxbl-text-edit,
html[data-hc-theme="dark"] .dxbl-memo-edit,
html[data-hc-theme="dark"] .dxbl-spin-edit,
html[data-hc-theme="dark"] .dxbl-combobox,
html[data-hc-theme="dark"] .dxbl-date-edit {
  background-color: var(--hc-surface) !important;
  border-color: var(--hc-border) !important;
  color: var(--hc-text) !important;
}

html[data-hc-theme="dark"] .hc-secondary-action {
  background: var(--hc-surface);
  border-color: var(--hc-border);
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-status-warning {
  color: var(--hc-amber);
}

html[data-hc-theme="dark"] .hc-clickable-grid .hc-grid-row-selected .hc-status-warning {
  color: var(--hc-amber) !important;
}

html[data-hc-theme="dark"] .hc-secondary-action:hover,
html[data-hc-theme="dark"] .hc-secondary-action:focus-visible,
html[data-hc-theme="dark"] .hc-report-panel-icon:hover,
html[data-hc-theme="dark"] .hc-report-panel-icon:focus-visible,
html[data-hc-theme="dark"] .hc-autocomplete-menu button:hover,
html[data-hc-theme="dark"] .hc-autocomplete-menu button.hc-lookup-option-selected {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

html[data-hc-theme="dark"] .hc-profile-panel,
html[data-hc-theme="dark"] .hc-profile-hero {
  background: var(--hc-surface-raised);
}

html[data-hc-theme="dark"] .hc-profile-hero-avatar {
  border-color: rgba(243, 246, 250, 0.18);
}

html[data-hc-theme="dark"] .hc-profile-photo-tools {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border);
}

html[data-hc-theme="dark"] .hc-profile-photo-preview {
  border-color: rgba(243, 246, 250, 0.18);
}

html[data-hc-theme="dark"] .hc-avatar-choice:hover,
html[data-hc-theme="dark"] .hc-avatar-choice:focus-visible {
  border-color: rgba(84, 182, 137, 0.5);
}

html[data-hc-theme="dark"] .hc-report-params {
  background: var(--hc-surface-muted);
  border-color: var(--hc-border);
}

html[data-hc-theme="dark"] .hc-admin-content .dxbl-grid,
html[data-hc-theme="dark"] .hc-admin-grid,
html[data-hc-theme="dark"] .hc-admin-grid-compact {
  background: var(--hc-surface);
  border-color: var(--hc-border);
  box-shadow: none;
}

html[data-hc-theme="dark"] .hc-clickable-grid {
  --hc-grid-selected-row-accent: var(--hc-accent);
  --hc-grid-selected-row-bg: rgba(84, 182, 137, 0.18);
  --hc-grid-selected-row-border: rgba(84, 182, 137, 0.32);
}

html[data-hc-theme="dark"] .hc-admin-content .dxbl-grid :is([role="columnheader"], .dxbl-grid-header-cell),
html[data-hc-theme="dark"] .hc-admin-grid :is([role="columnheader"], .dxbl-grid-header-cell),
html[data-hc-theme="dark"] .hc-admin-grid-compact :is([role="columnheader"], .dxbl-grid-header-cell) {
  background: var(--hc-surface-muted) !important;
  border-color: var(--hc-border) !important;
  color: var(--hc-text-muted) !important;
}

html[data-hc-theme="dark"] .hc-admin-content .dxbl-grid [role="gridcell"],
html[data-hc-theme="dark"] .hc-admin-grid [role="gridcell"],
html[data-hc-theme="dark"] .hc-admin-grid-compact [role="gridcell"] {
  border-color: var(--hc-border) !important;
  color: var(--hc-text);
}

html[data-hc-theme="dark"] .hc-pos-receipt,
html[data-hc-theme="dark"] .hc-assembly-report-print,
html[data-hc-theme="dark"] .hc-trophy-sheet {
  background: #fff;
  color: #111;
}

.hc-mobile-task-filters,
.hc-mobile-task-list,
.hc-mobile-admin-list {
  display: none;
}

@media (max-width: 900px) {
  .hc-cash-advance-layout,
  .hc-cash-advance-line {
    grid-template-columns: 1fr;
  }

  .hc-admin-shell {
    grid-template-columns: 1fr;
    overflow-x: clip;
  }

  .hc-admin-sidebar {
    bottom: 0;
    box-shadow: 18px 0 40px rgba(19, 32, 20, 0.28);
    height: 100dvh;
    left: 0;
    max-width: calc(100vw - 2.25rem);
    padding: max(0.85rem, env(safe-area-inset-top)) 0.9rem max(0.9rem, env(safe-area-inset-bottom));
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    width: min(340px, 88vw);
    z-index: 90;
  }

  .hc-admin-sidebar.is-open {
    transform: translateX(0);
  }

  .hc-admin-sidebar-head {
    align-items: start;
  }

  .hc-admin-brand {
    border-bottom: 0;
    margin-bottom: 0.75rem;
    padding: 0.1rem 0 0;
  }

  .hc-admin-brand strong {
    font-size: 1.24rem;
    line-height: 1.12;
  }

  .hc-admin-brand span {
    font-size: 0.86rem;
  }

  .hc-admin-menu-button,
  .hc-admin-drawer-close {
    align-items: center;
    appearance: none;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    color: var(--hc-text);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 40px;
    justify-content: center;
    width: 40px;
  }

  .hc-admin-menu-button span,
  .hc-admin-menu-button span::before,
  .hc-admin-menu-button span::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    width: 18px;
  }

  .hc-admin-menu-button span {
    position: relative;
  }

  .hc-admin-menu-button span::before,
  .hc-admin-menu-button span::after {
    left: 0;
    position: absolute;
  }

  .hc-admin-menu-button span::before {
    top: -6px;
  }

  .hc-admin-menu-button span::after {
    top: 6px;
  }

  .hc-admin-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    color: white;
  }

  .hc-admin-drawer-close span,
  .hc-admin-drawer-close span::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    width: 18px;
  }

  .hc-admin-drawer-close span {
    position: relative;
    transform: rotate(45deg);
  }

  .hc-admin-drawer-close span::after {
    left: 0;
    position: absolute;
    top: 0;
    transform: rotate(90deg);
  }

  .hc-admin-nav {
    grid-template-columns: 1fr;
    padding-bottom: 1rem;
  }

  .hc-admin-drawer-backdrop {
    background: rgba(18, 27, 19, 0.48);
    border: 0;
    bottom: 0;
    cursor: pointer;
    display: block;
    left: 0;
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 85;
  }

  .hc-admin-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.75rem 0.9rem;
  }

  .hc-admin-topbar-context {
    width: 100%;
  }

  .hc-admin-topbar-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .hc-admin-topbar-title .ms-2 {
    margin-left: 0 !important;
  }

  .hc-admin-topbar-tools {
    justify-content: flex-start;
    width: 100%;
  }

  .hc-profile-panel {
    max-width: min(320px, calc(100vw - 1rem));
  }

  .hc-profile-actions {
    justify-content: stretch;
  }

  .hc-profile-actions form,
  .hc-profile-actions .hc-primary-action,
  .hc-profile-actions .hc-secondary-action {
    flex: 1 1 140px;
  }

  .hc-profile-actions form .hc-secondary-action {
    width: 100%;
  }

  .hc-admin-content {
    overflow-x: clip;
    padding: 0.9rem;
  }

  .hc-toolbar,
  .hc-cash-commandbar {
    align-items: stretch;
    display: grid;
    gap: 0.75rem;
  }

  .hc-metric-grid,
  .hc-two-column,
  .hc-assembly-report-grid,
  .hc-form-grid,
  .hc-trophy-utility-grid,
  .hc-trophy-measure-layout,
  .hc-cash-filter,
  .hc-cash-tabs,
  .hc-cash-account-picker,
  .hc-camt-import-summary,
  .hc-stand-reservation-filter,
  .hc-stand-filter,
  .hc-stand-photo-preview,
  .hc-map-form,
  .hc-admin-slot-actions,
  .hc-signature-status-grid,
  .hc-signature-preview-grid,
  .hc-sign-document,
  .hc-report-workspace,
  .hc-requirement-row,
  .hc-member-payment-row {
    grid-template-columns: 1fr;
  }

  .hc-toolbar > .d-flex,
  .hc-cash-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-membership-fees-summary .hc-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hc-map-canvas-wrap,
  .hc-hunting-map {
    min-height: 520px;
  }

  .hc-row-action .hc-secondary-action {
    width: 100%;
  }

  .hc-attachment-preview {
    grid-template-columns: 1fr;
  }

  .hc-signature-request-box {
    grid-template-columns: 1fr;
  }

  .hc-report-params {
    border-left: 0;
    border-top: 1px solid var(--hc-border);
  }

  .hc-report-params.is-collapsed .hc-report-params-header {
    flex-direction: row;
    justify-content: flex-end;
  }

  .hc-trophy-sheet {
    min-width: 900px;
  }

  .hc-signature-qr {
    max-width: 170px;
  }

  .hc-members-splitter {
    min-height: 760px;
  }

  .hc-grid-toolbar {
    align-items: stretch;
  }

  .hc-grid-actions {
    justify-content: stretch;
    width: 100%;
  }

  .hc-grid-actions .hc-primary-action,
  .hc-grid-actions .hc-secondary-action {
    flex: 1 1 88px;
  }

  .hc-cash-filter,
  .hc-cash-account-picker,
  .hc-stand-reservation-filter,
  .hc-form-grid,
  .hc-admin-slot-actions {
    grid-template-columns: 1fr;
  }

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

  .hc-grid-toolbar-integrated {
    overflow: visible;
  }

  .hc-grid-toolbar-integrated .dxbl-toolbar {
    flex-wrap: wrap;
  }

  .hc-grid-toolbar-integrated .hc-grid-searchbox,
  .hc-grid-toolbar-integrated .dxbl-searchbox {
    max-width: 100%;
  }

  .hc-admin-content .dxbl-grid,
  .hc-admin-content .dxbl-tabs,
  .hc-admin-content .dxbl-splitter {
    max-width: 100%;
    min-width: 0;
  }
}

@media print {
  body.cervion-printing > :not(#cervion-print-root) {
    display: none !important;
  }

  #cervion-print-root {
    display: block !important;
  }

  #cervion-print-root .hc-pos-receipt {
    box-shadow: none;
    margin: 0;
    max-width: 72mm;
    padding: 2.4mm;
    width: 72mm;
  }

  #cervion-print-root .hc-attachment-print-area {
    height: auto;
    left: auto;
    opacity: 1;
    overflow: visible;
    position: static;
    width: auto;
  }

  #cervion-print-root .hc-attachment-print-area img {
    max-height: 98vh;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hc-profile-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 0.85rem;
  }

  .hc-profile-hero-avatar {
    height: 72px;
    width: 72px;
  }

  .hc-profile-hero h1 {
    font-size: 1.18rem;
  }

  .hc-admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hc-admin-content {
    padding: 0.75rem;
  }

  .hc-public-shell {
    padding: 1rem;
  }

  .hc-public-info-grid {
    grid-template-columns: 1fr;
  }

  .hc-membership-fees-summary .hc-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-admin-content .dxbl-grid,
  .hc-admin-grid,
  .hc-admin-grid-compact {
    font-size: 0.96rem;
  }

  .hc-admin-grid {
    height: min(520px, calc(100dvh - 12rem));
  }

  .hc-split-pane .hc-admin-grid {
    height: min(440px, calc(100dvh - 16rem));
  }

  .hc-admin-content .dxbl-grid :is([role="columnheader"], .dxbl-grid-header-cell),
  .hc-admin-grid :is([role="columnheader"], .dxbl-grid-header-cell),
  .hc-admin-grid-compact :is([role="columnheader"], .dxbl-grid-header-cell),
  .hc-card [role="columnheader"],
  .hc-admin-content .dxbl-grid [role="gridcell"],
  .hc-admin-grid [role="gridcell"],
  .hc-admin-grid-compact [role="gridcell"],
  .hc-card [role="gridcell"] {
    font-size: 0.95rem;
    padding: 0.28rem 0.42rem !important;
  }

  .hc-grid-toolbar-integrated .hc-grid-searchbox,
  .hc-grid-toolbar-integrated .dxbl-searchbox,
  .hc-grid-toolbar-integrated .dxbl-text-edit {
    width: 100% !important;
  }

  .hc-grid-toolbar-integrated .hc-toolbar-filter-field {
    align-items: stretch;
    flex-direction: column;
    gap: 0.2rem;
  }

  .hc-grid-toolbar-integrated .hc-toolbar-filter-field .form-control,
  .hc-grid-toolbar-integrated .hc-toolbar-filter-field .form-select,
  .hc-grid-toolbar-integrated .hc-toolbar-filter-field .hc-date-edit {
    width: min(100%, 220px);
  }

  .hc-sign-panel {
    padding: 0.85rem;
  }

  .hc-sign-actions .hc-primary-action,
  .hc-sign-actions .hc-secondary-action {
    flex: 1 1 130px;
  }

  .hc-stands-map {
    min-height: 260px;
  }

  .hc-portal-map {
    aspect-ratio: 4 / 5;
    min-height: 420px;
  }

  .hc-map-commandbar {
    align-items: center;
    left: 0.5rem;
    max-width: calc(100% - 1rem);
    top: 0.5rem;
  }

  .hc-map-tool-button {
    height: 36px;
    width: 36px;
  }

  .hc-map-locate-button {
    height: 42px;
    width: 42px;
  }

  .hc-map-basemap-button {
    height: 42px;
    width: 42px;
  }

  .hc-map-tool-icon {
    height: 18px;
    width: 18px;
  }

  .hc-sync-panel {
    flex-direction: column;
  }

  .hc-sync-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .hc-sync-actions .hc-primary-action,
  .hc-sync-actions .hc-secondary-action {
    flex: 1 1 140px;
  }

  .hc-sync-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hc-sync-dialog {
    left: max(0.5rem, env(safe-area-inset-left));
    max-height: calc(100dvh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    right: max(0.5rem, env(safe-area-inset-right));
    top: max(0.5rem, env(safe-area-inset-top));
  }

  .hc-sync-operation-head {
    grid-template-columns: 1fr;
  }

  .hc-sync-operation-actions,
  .hc-sync-edit-actions,
  .hc-sync-dialog-footer,
  .hc-sync-confirmation > div {
    justify-content: stretch;
  }

  .hc-sync-operation-actions .hc-secondary-action,
  .hc-sync-edit-actions .hc-primary-action,
  .hc-sync-edit-actions .hc-secondary-action,
  .hc-sync-dialog-footer .hc-primary-action,
  .hc-sync-dialog-footer .hc-secondary-action,
  .hc-sync-confirmation .hc-primary-action,
  .hc-sync-confirmation .hc-secondary-action {
    flex: 1 1 140px;
  }

  .hc-engagement-tools {
    gap: 0.35rem;
  }

  .hc-map-canvas-wrap,
  .hc-hunting-map {
    min-height: 430px;
  }

  .hc-app-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hc-app-map-feed {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  .hc-app-main .hc-card-pad {
    padding: 0.9rem;
  }

  .hc-app-main .hc-metric-grid,
  .hc-app-main .hc-dashboard-metric-grid {
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.375rem), 1fr));
  }

  .hc-app-main .hc-metric {
    padding: 0.75rem;
  }

  .hc-app-main .hc-metric span {
    font-size: 0.76rem;
  }

  .hc-app-main .hc-metric strong {
    font-size: 1.1rem;
  }

  .hc-app-main .hc-metric small {
    font-size: 0.72rem;
  }

  .hc-page-title h1 {
    font-size: 1.38rem;
  }

  .hc-page-title p {
    font-size: 0.95rem;
  }

  .hc-modal-footer {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem;
  }

  .hc-desktop-data-grid {
    display: none;
  }

  .hc-mobile-task-filters,
  .hc-mobile-task-list,
  .hc-mobile-admin-list {
    display: grid;
  }

  .hc-mobile-task-filters {
    gap: 0.7rem;
    margin-bottom: 0.85rem;
  }

  .hc-mobile-task-filter-grid,
  .hc-mobile-task-list,
  .hc-mobile-admin-list {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
  }

  .hc-mobile-admin-section {
    display: grid;
    gap: 0.65rem;
  }

  .hc-mobile-admin-section + .hc-mobile-admin-section {
    border-top: 1px solid var(--hc-border);
    margin-top: 0.35rem;
    padding-top: 0.9rem;
  }

  .hc-mobile-admin-section-head {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
  }

  .hc-mobile-admin-section-head h2 {
    font-size: 1.02rem;
    margin: 0;
  }

  .hc-mobile-admin-section-head span {
    color: var(--hc-text-muted);
    font-size: 0.86rem;
  }

  .hc-mobile-task-actions,
  .hc-mobile-admin-actions,
  .hc-mobile-reservation-actions {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-mobile-admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
  }

  .hc-mobile-admin-card,
  .hc-mobile-reservation-card {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    box-shadow: var(--hc-shadow);
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem;
  }

  .hc-mobile-admin-card header,
  .hc-mobile-reservation-card header {
    align-items: start;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
  }

  .hc-mobile-admin-card h3,
  .hc-mobile-reservation-card h3 {
    font-size: 1.02rem;
    margin: 0;
  }

  .hc-mobile-admin-meta,
  .hc-mobile-reservation-meta {
    color: var(--hc-text-muted);
    display: grid;
    font-size: 0.92rem;
    gap: 0.12rem;
  }

  .hc-mobile-admin-kpis {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-mobile-admin-kpis span {
    background: var(--hc-surface-muted);
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    color: var(--hc-text-muted);
    display: grid;
    font-size: 0.78rem;
    gap: 0.08rem;
    padding: 0.55rem;
  }

  .hc-mobile-admin-kpis strong {
    color: var(--hc-text);
    font-size: 0.98rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .hc-mobile-admin-card .hc-secondary-action,
  .hc-mobile-admin-card .hc-primary-action,
  .hc-mobile-reservation-actions .hc-secondary-action {
    width: 100%;
  }

  .hc-mobile-admin-detail {
    border-top: 1px solid var(--hc-border);
    margin-top: 0.2rem;
    min-width: 0;
    overflow-x: auto;
    padding-top: 0.75rem;
  }

  .hc-mobile-swipe-list {
    display: grid;
    gap: 0.5rem;
  }

  .hc-mobile-swipe-row {
    align-items: stretch;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(100%, 1fr) auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .hc-mobile-swipe-main,
  .hc-mobile-swipe-actions {
    background: var(--hc-surface-muted);
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .hc-mobile-swipe-main {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.7rem;
  }

  .hc-mobile-swipe-main span {
    color: var(--hc-text-muted);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .hc-mobile-swipe-actions {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    padding: 0.55rem;
  }
}
