/* Repair the common link/button color collision, preserving each action and its handler. */
.document-surface .actions>a:not(.secondary){color:#fff}
.document-surface .actions>a.secondary{background:#eaf3f5;color:var(--brand,#165b78);border-color:#91b3c1}
.document-surface .actions>a :where(span,strong,small){color:inherit}
:where(.actions,.toolbar,.geo-toolbar,.portal-controls,dialog,.account-admin,.unit-surface) :is(button,a.secondary,a.primary){white-space:normal;overflow-wrap:break-word;line-height:1.5;height:auto;max-width:100%;text-indent:0}
.control-caption{display:block;font-size:18px;line-height:1.5;font-weight:700;text-align:center;white-space:normal;overflow-wrap:break-word;color:inherit;opacity:1;margin-top:5px}
.scan-thumb{color:var(--brand,#165b78)}.scan-thumb .control-caption{padding:6px}
.leaflet-control-zoom a{width:auto!important;min-width:78px;height:auto!important;min-height:40px;line-height:1.5!important;padding:7px 10px!important;font:700 16px 'Noto Naskh Arabic',sans-serif!important;text-indent:0!important;white-space:normal!important;color:#153e53!important;background:#fff!important}
.leaflet-popup-close-button{position:relative!important;display:flex!important;align-items:center;gap:5px;width:auto!important;height:auto!important;min-height:40px;max-width:100%;padding:6px 10px!important;color:#153e53!important;line-height:1.5!important;white-space:normal!important}
.leaflet-popup-close-button .control-caption{font-size:16px;margin:0}
.header-organized #unit-indicators-header{white-space:nowrap;overflow-wrap:normal;word-break:normal}
@media(max-width:950px){.header-organized #unit-indicators-header{grid-column:1/-1;justify-self:stretch;text-align:center;min-height:44px}}
#owner-cards>button.panel{background:#fff;color:var(--brand,#165b78);border:1px solid #bdd5db;white-space:normal;line-height:1.5}
