.cp-staff, .cp-map-panel { font: 14px/1.4 'PT Sans', Arial, sans-serif; color: #253143; background: #fff; box-sizing: border-box; }
.cp-staff *, .cp-map-panel * { box-sizing: border-box; }
.cp-staff [hidden], .cp-map-panel [hidden] { display: none !important; }
.cp-staff { display: flex; flex-direction: column; height: 100%; min-height: 0; width: 100%; overflow: hidden; }
.cp-staff-header { display: flex; align-items: center; gap: 28px; min-height: 65px; padding: 12px 24px; flex-shrink: 0; }
.cp-staff h1 { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 0; }
.cp-button { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #d5d8db; border-radius: 3px; background: #fff; color: #263143; font: 700 14px 'PT Sans', Arial, sans-serif; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.cp-button:hover { background: #f7f8f9; }
.cp-button:disabled { cursor: default; opacity: .5; }
.cp-primary { background: #45484d; border-color: #45484d; color: #fff; }
.cp-primary:hover:not(:disabled) { background: #363b44; border-color: #363b44; }
.cp-primary:disabled { color: #757b81; background: #e8eaeb; border-color: #d5d8db; opacity: 1; }
.cp-primary .cp-icon { filter: brightness(0) invert(1); }
.cp-icon { width: 18px; height: 18px; display: inline-block; object-fit: contain; flex-shrink: 0; }
.cp-icon-button { width: 32px; height: 32px; padding: 6px; border: 0; background: transparent; }
.cp-back { border: 0; padding: 0; font-weight: 400; }
.cp-tabs { display: flex; gap: 20px; border-bottom: 1px solid #d9dfe5; padding: 0 24px; flex-shrink: 0; }
.cp-tab { border: 0; border-radius: 0; height: 47px; padding: 0 12px; font-size: 16px; font-weight: 400; color: #697483; }
.cp-tab[aria-selected='true'] { font-weight: 700; color: #1e293b; }
.cp-staff-toolbar { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #d9dfe5; flex-shrink: 0; }
.cp-search { position: relative; min-width: 180px; max-width: 410px; flex: 1; }
.cp-search > .cp-icon { position: absolute; left: 11px; top: 9px; }
.cp-search .cp-input { padding-left: 36px; }
.cp-input { width: 100%; height: 36px; padding: 6px 10px; border: 1px solid #d4d9df; border-radius: 3px; background: #fff; color: #273142; font: 14px 'PT Sans', Arial, sans-serif; }
.cp-input::placeholder { color: #8c95a1; }
.cp-staff-toolbar > select { width: 190px; }
.cp-staff-toolbar > .cp-button { margin-left: auto; }
.cp-staff-body { min-height: 0; flex: 1; display: flex; }
.cp-directory { flex: 1; min-width: 0; overflow: auto; }
.cp-table { width: 100%; border-collapse: collapse; text-align: left; white-space: normal; }
.cp-table th { height: 54px; font-size: 15px; font-weight: 700; color: #243043; background: #fff; position: sticky; top: 0; z-index: 1; }
.cp-table th, .cp-table td { padding: 12px 20px; border-bottom: 1px solid #dbe0e5; vertical-align: middle; }
.cp-table td { height: 58px; }
.cp-table th:first-child { min-width: 170px; }
.cp-table .cp-row-actions { width: 42px; padding: 8px 10px; }
.cp-table tr.cp-selected td { background: #e4f0fb; }
.cp-table tbody tr:hover td { background: #f5f8fb; }
.cp-table tbody tr.cp-selected:hover td { background: #e4f0fb; }
.cp-row-name { height: auto; min-height: 24px; text-align: left; padding: 0; border: 0; justify-content: flex-start; background: transparent; white-space: normal; }
.cp-row-name:hover { background: transparent; color: #326dc3; }
.cp-archived { color: #8b95a3; }
.cp-archived .cp-row-name { color: #818b98; }
.cp-source { min-width: 160px; }
.cp-status { white-space: nowrap; }
.cp-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cp-tag { display: inline-block; border: 1px solid #d8dde3; background: #f0f2f4; color: #435061; border-radius: 3px; padding: 2px 8px; font-size: 12px; font-weight: 400; line-height: 18px; white-space: nowrap; }
.cp-color-palette { display: flex; flex-wrap: wrap; gap: 8px; padding: 3px; }
.cp-color-swatch { width: 25px; height: 25px; padding: 0; border: 1px solid #d1d5d9; border-radius: 3px; }
.cp-color-swatch:hover { filter: brightness(.95); }
.cp-color-swatch[aria-pressed='true']::after { content: '✓'; color: #fff; font-size: 16px; line-height: 1; }
.cp-color-custom { display: flex; align-items: center; gap: 8px; }
.cp-color-input { height: 32px; width: 42px; padding: 2px; border: 1px solid #d4d9df; background: #fff; border-radius: 3px; cursor: pointer; }
.cp-color-input:focus-visible  { outline: none; outline-offset: 0; box-shadow: none; }
.cp-color-hex { max-width: 115px; font-size: 13px; }
.cp-color-preview { min-height: 26px; display: flex; align-items: center; }
.cp-list-count { padding: 14px 24px; color: #84909c; font-size: 13px; }
.cp-editor { width: 360px; min-width: 300px; flex-shrink: 0; border-left: 1px solid #d7dde3; display: flex; flex-direction: column; background: #fff; }
.cal-side.kzm-drawer, .cp-editor.kzm-drawer { position: fixed; inset: 0 0 0 auto; width: min(480px, calc(100vw - var(--kzm-drawer-left, 0px))); min-width: 0; max-width: none; height: 100vh; height: 100dvh; max-height: 100dvh; flex: none; z-index: 102; overflow: hidden; box-shadow: -4px 0 0 rgba(0, 0, 0, .05); }
.cp-editor.kzm-drawer { width: min(360px, calc(100vw - var(--kzm-drawer-left, 0px))); }
.kzm-drawer:focus { outline: none; }
.kzm-drawer.is-open { animation: kzm-drawer-enter .2s ease both; }
.kzm-drawer-backdrop { position: fixed; inset: 0 0 0 var(--kzm-drawer-left, 0px); z-index: 101; background: rgba(0, 0, 0, .4); animation: kzm-drawer-dim .2s ease both; touch-action: none; }
@keyframes kzm-drawer-enter { from { transform: translateX(100%); } to { transform: none; } }
@keyframes kzm-drawer-dim { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kzm-drawer.is-open, .kzm-drawer-backdrop { animation: none; } }
.cp-editor-title { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 8px; flex-shrink: 0; }
.cp-editor h2, .cp-map-panel h2 { font-size: 18px; font-weight: 400; line-height: 1.3; margin: 0; }
.cp-editor-form { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.cp-editor-fields { padding: 4px 20px 20px; overflow-y: auto; flex: 1; }
.cp-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.cp-label { display: block; font-size: 14px; color: #354152; }
.cp-help { font-size: 12px; line-height: 1.5; color: #83909e; margin: 7px 0 0; }
.cp-source-options { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.cp-source-options legend { margin-bottom: 8px; }
.cp-choice { display: flex; gap: 9px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.cp-choice input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #4c8bf7; flex-shrink: 0; }
.cp-active-choice { margin: 24px 0; }
.cp-job-chooser { position: relative; }
.cp-job-chooser summary { min-height: 36px; height: auto; cursor: pointer; list-style-position: inside; }
.cp-job-options { border: 1px solid #d9dfe5; border-radius: 3px; padding: 8px 12px; margin-top: 5px; max-height: 190px; overflow: auto; }
.cp-job-options .cp-choice { margin: 8px 0; }
.cp-editor-footer { padding: 18px 20px; display: flex; gap: 10px; border-top: 1px solid #d9dfe5; flex-shrink: 0; }
.cp-editor-footer .cp-primary { min-width: 110px; }
.cp-archive { border-top: 1px solid #e0e4e8; margin-top: 24px; padding-top: 16px; }
.cp-text-button, .cp-link { color: #4c8bf7; font: 14px 'PT Sans', Arial, sans-serif; text-decoration: none; cursor: pointer; }
.cp-text-button { padding: 0; background: transparent; border: 0; height: auto; min-height: 24px; white-space: normal; text-align: left; justify-content: flex-start; }
.cp-text-button:hover { background: transparent; color: #356fcf; }
.cp-muted { color: #8893a0; }
.cp-info { padding: 10px 12px; background: #f1f5f9; border: 1px solid #e0e6ec; color: #657385; margin: 0 0 18px; font-size: 13px; }
.cp-message { padding: 10px 24px; background: #f0f7f1; color: #4d7559; border-bottom: 1px solid #e0e8e2; }
.cp-message.cp-error, .cp-error, .cp-form-error { color: #b04d43; background: #fff5f2; }
.cp-form-error { padding: 10px; border-radius: 3px; font-size: 13px; }
.cp-empty { padding: 40px 24px; color: #84909c; text-align: center; }
.cp-button:focus-visible { outline: 1px solid #707378; outline-offset: 2px; }
.cp-choice input:focus-visible, .cp-link:focus-visible { outline: none; outline-offset: 0; }
.cp-input:focus { outline: none; box-shadow: none; border-color: #868b91; }
.cp-map-panel { height: 100%; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-left: 1px solid #d5dce3; }
.cp-map-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 16px; gap: 10px; border-bottom: 1px solid #d9dfe5; flex: 0 0 auto; }
.cp-map-header p { margin: 6px 0 0; font-size: 13px; }
.cp-map-canvas { position: relative; min-height: 260px; flex: 1 1 60%; z-index: 0; background: #edf1f3; }
.cp-map-bottom { flex: 0 1 auto; min-height: 0; max-height: 40%; overflow-y: auto; border-top: 1px solid #d9dfe5; }
.cp-map-unavailable { display: grid; place-items: center; padding: 25px; color: #7f8b97; text-align: center; }
.cp-map-notice { padding: 10px 16px; color: #7f8b97; font-size: 12px; border-bottom: 1px solid #e2e7eb; }
.cp-map-notice.cp-error { color: #b04d43; }
.cp-map-tile-status { color: #8c784f; background: #fbf9f2; }
.cp-map-tools { padding: 12px 16px; border-bottom: 1px solid #e2e7eb; }
.cp-map-tools .cp-link { font-size: 12px; display: inline-block; margin-top: 4px; }
.cp-map-bottom > select { width: calc(100% - 32px); height: 30px; margin: 8px 16px 0; font-size: 12px; }
.cp-map-detail { padding: 10px 16px 12px; }
.cp-map-detail h3, .cp-map-missing h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.cp-map-detail p { font-size: 13px; margin: 4px 0; overflow-wrap: anywhere; }
.cp-map-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cp-map-actions .cp-button, .cp-map-actions .cp-link { font-size: 13px; }
.cp-map-address-link { display: inline-block; font-size: 12px; margin-top: 7px; }
.cp-map-placing, .cp-map-placing .ol-viewport { cursor: crosshair !important; }
.cp-coordinate-status { color: #7f8b97; padding: 5px 0 8px; }
.cp-point-instruction { color: #486b9c; padding: 6px 0; }
.cp-map-missing { padding: 9px 16px; border-top: 1px solid #e2e7eb; }
.cp-map-missing > summary { color: #7f8b97; font-size: 12px; cursor: pointer; }
.cp-map-missing:empty { display: none; }
.cp-missing-row { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px solid #edf0f3; }
.cp-missing-row:last-child { border-bottom: 0; }
.cp-missing-row .cp-text-button { font-size: 13px; }
.cp-marker { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #fff; border: 2px solid #4c8bf7; box-shadow: 0 2px 5px #172c4933; display: flex !important; align-items: center; justify-content: center; font: 700 14px 'PT Sans', Arial, sans-serif; color: #2b466e; cursor: pointer; }
.cp-marker-selected { color: #fff; background: #4c8bf7; }
.cp-marker-pending .cp-icon { filter: brightness(0) invert(1); }
.cp-map-panel .ol-attribution { font: 10px/1.4 'PT Sans', Arial, sans-serif; background: #ffffffdf; padding: 2px 5px; }
.cp-map-panel .ol-zoom { left: auto; top: auto; right: 10px; bottom: 35px; border: 1px solid #d5dce3; background: #fff; border-radius: 3px; padding: 0; overflow: hidden; }
.cp-map-panel .ol-zoom button { width: 32px; height: 32px; margin: 0; border-radius: 0; background: #fff; color: #354152; font: 700 20px 'PT Sans', Arial, sans-serif; }
.cp-map-panel .ol-zoom button:hover { background: #f3f5f7; }
.cp-map-panel .ol-zoom-in { border-bottom: 1px solid #d5dce3; }
@media (max-width: 1200px) { .cp-staff-toolbar { gap: 10px; } .cp-staff-toolbar > select { width: 150px; } .cp-editor { width: 320px; } .cp-table th, .cp-table td { padding-left: 12px; padding-right: 12px; } .cp-source { min-width: 120px; } }
@media (max-width: 900px) { .cp-staff-header { padding: 14px 16px; gap: 16px; } .cp-staff h1 { font-size: 20px; } .cp-staff-toolbar { padding: 14px 16px; flex-wrap: wrap; } .cp-search { max-width: none; } .cp-staff-toolbar > .cp-button { margin-left: 0; } .cp-staff-body { position: relative; } .cp-editor { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); z-index: 2; box-shadow: -5px 0 16px #203a5012; } .cp-table { min-width: 660px; } }
@media (max-width: 520px) { .cp-staff-header { align-items: flex-start; flex-direction: column; gap: 8px; } .cp-staff-toolbar { gap: 8px; } .cp-search { flex-basis: 100%; } .cp-staff-toolbar > select { width: calc(50% - 4px); } .cp-staff-toolbar > .cp-button { width: 100%; } .cp-editor { width: 100%; } .cp-tabs { padding-left: 12px; } }
/* Address markers remain anchored to their actual geographic point. */
.cp-marker.cp-marker-address { position: relative; width: auto; max-width: 230px; height: auto; min-height: 29px; padding: 5px 9px 5px 7px; gap: 6px; border: 1px solid #b9c6d5; border-radius: 5px; background: #fff; color: #253143; font-size: 12px; font-weight: 400; line-height: 17px; text-align: left; transform: translateY(-8px); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.cp-marker-address::after { content: ''; position: absolute; left: calc(50% - 4px); bottom: -5px; width: 8px; height: 8px; border-right: 1px solid #b9c6d5; border-bottom: 1px solid #b9c6d5; background: #fff; transform: rotate(45deg); }
.cp-marker-address:hover, .cp-marker-address:focus-visible, .cp-marker-address.cp-marker-selected { outline: none; border-color: #4c8bf7; background: #f4f8ff; box-shadow: 0 2px 7px #172c4926; }
.cp-marker-address.cp-marker-selected::after { border-color: #4c8bf7; background: #f4f8ff; }
.cp-marker-dot { min-width: 8px; height: 8px; flex: 0 0 auto; background: #4c8bf7; border-radius: 50%; }
.cp-marker-dot:not(:empty) { min-width: 19px; height: 19px; padding: 0 4px; border-radius: 4px; color: #fff; font-size: 11px; line-height: 19px; text-align: center; }
.cp-marker-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-map-overview { position: absolute; top: 10px; right: 10px; z-index: 2; height: 30px; padding: 0 10px; font-size: 12px; font-weight: 400; box-shadow: 0 1px 4px #172c491a; }
.cp-map-popup { width: min(300px, calc(100vw - 76px)); max-height: 330px; display: flex; flex-direction: column; border: 1px solid #d3dbe4; border-radius: 7px; background: #fff; box-shadow: 0 6px 24px #172c492b; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; overflow: hidden; }
.cp-map-popup.is-visible { opacity: 1; transform: none; }
.cp-map-popup-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 10px 8px 8px 12px; border-bottom: 1px solid #e2e7eb; font-size: 13px; line-height: 18px; }
.cp-map-popup-header strong { padding-top: 4px; overflow-wrap: anywhere; }
.cp-map-popup-header .cp-icon-button { width: 25px; height: 25px; padding: 3px; flex-shrink: 0; }
.cp-map-popup-records { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.cp-map-popup-record { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; height: auto; padding: 11px 12px; border: 0; border-bottom: 1px solid #e5e9ee; border-radius: 0; font-size: 13px; font-weight: 400; line-height: 18px; white-space: normal; text-align: left; }
.cp-map-popup-record:last-child { border-bottom: 0; }
.cp-map-popup-record > * { display: block; width: 100%; overflow-wrap: anywhere; }
.cp-map-popup-record:focus-visible { background: #f2f5f8; }
.cp-map-popup-meta, .cp-map-popup-status { color: #768393; font-size: 12px; }
.cp-map-popup-comment { color: #556273; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-map-popup-open { color: #3976c7; font-size: 12px; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .cp-map-popup { transition: none; transform: none; } }

.cp-map-has-popup .cp-map-overview { visibility: hidden; }
