/* Chart engine styles (94–96), from the territory prototype. v44.3 removed the
   prototype's toolbar, panel and legend rules; the shell is 54-map-chart.css. */

/* Markers on the chart (96 draws them as .mp-feature; region names as .mp-region-name). */
.mp-map .map-pin{position:relative;left:0;top:0;transform:none;pointer-events:auto;white-space:nowrap}
.mp-map .map-pin-label{display:block;opacity:1!important}
.mp-map .map-pin-label{font-weight:400!important}
.mp-pin-icon{background:transparent;border:0}
.mp-pin-icon{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.mp-map .leaflet-control-zoom a{color:#292115;background:#faf5df}
.mp-map .leaflet-tooltip{background:#f5efd7;border-color:#b58d2c;color:#292115}
.mp-map .leaflet-tooltip{font-weight:400}
.mp-region-icon{background:none;border:0}
.mp-region-name{display:block;transform:translate(-40%,-50%);width:max-content;max-width:180px;white-space:normal;text-align:center;font-size:17px;font-weight:400;letter-spacing:.04em;color:#faf5df;text-shadow:0 1px 3px #201a10,1px 0 3px #201a10,-1px 0 3px #201a10;cursor:pointer;padding:8px;-webkit-user-select:none;user-select:none}
.mp-feature-icon{background:none;border:0}
.mp-map .mp-feature{position:absolute;inset:0;display:block;width:44px;height:44px;left:0;top:0;transform:none;cursor:pointer}
.mp-feature .map-pin-dot{position:absolute;left:14px;top:14px;width:16px;height:16px;box-sizing:border-box}
.mp-feature .map-pin-hold-ring{position:absolute;left:7px;top:7px;bottom:auto;width:30px;height:30px;transform:none;margin:0}
.mp-feature-label{position:absolute;left:34px;top:8px;display:block;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:22px;font-weight:400;padding:2px 7px;border:1px solid #b9a779;border-radius:5px;background:#f5efd7;color:#292115;box-shadow:0 1px 3px #0003;visibility:hidden}
.mp-island-feature .mp-feature-label{left:22px;top:22px;transform:translate(-50%,-50%);font-size:17px;letter-spacing:.06em;max-width:240px;border:0;border-radius:0;box-shadow:none;background:none;color:#fff6dc;text-shadow:0 1px 3px #201a10,1px 0 3px #201a10,-1px 0 3px #201a10;padding:6px 8px}
.mp-landmark-symbol{display:grid;place-items:center;position:absolute;inset:8px;width:28px;height:28px;color:#236b69;background:#f5efd7dd;border:1px solid #b9a779;border-radius:5px;box-sizing:border-box;box-shadow:0 1px 3px #0004}
.mp-landmark-symbol svg{width:22px;height:22px}
.mp-landmark-feature .mp-feature-label{background:#f5efd7;color:#236b69}
.mp-feature-icon:focus-visible{outline:2px solid #286463;outline-offset:2px;border-radius:50%}

/* The engine's panels inside the chart sheet: notes, the overlap review, the status line. */
.mp-note{font-size:13px;color:#5c5035}
.mp-review{border:1px solid #b58d2c;border-radius:12px;padding:12px;margin-top:14px;background:#efe4b6}
.mp-review p{margin:0 0 8px}
.mp-status[hidden]{display:none!important}
.mp-status{padding:9px 16px;background:#eee6bf;font-size:14px;min-height:24px}
.mp-status{position:absolute;bottom:12px;left:12px;right:12px;z-index:1200;border:1px solid #c2b78c;border-radius:10px;box-shadow:0 2px 10px #0003;min-height:0;pointer-events:none}

/* The territory directory (a modal, opened from a record sheet). */
.mp-directory-filters{display:flex;gap:10px}
.mp-directory-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.mp-directory-filters input{flex:1;min-width:0}
.mp-directory-filters select{width:auto;max-width:200px}
.mp-directory-filters select{max-width:none;width:100%}
.mp-directory-note,.mp-directory-count{font-size:14px;font-weight:400;color:#6e6042}
.mp-directory-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;font-size:14px}
.mp-directory-pages button{font-weight:400!important;min-height:44px}
.mp-directory-pages button:disabled{opacity:.45}
.mp-directory-filters #mpTerritorySearch{display:block;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box;min-height:48px;padding:12px 16px;flex:none;border-radius:12px}
.mp-directory-chart h3{font-size:15px;font-weight:400!important;letter-spacing:.02em;color:#6e6042;margin:20px 0 6px}
.mp-territory-link{display:block;width:100%;text-align:left;border:1px solid #c2b78c;background:#f5efd7;border-radius:12px;padding:10px 14px;margin:8px 0;font:inherit;font-weight:400!important;min-height:48px;color:#292115}
.mp-territory-link span{display:block;font-size:14px;color:#6e6042;font-weight:400}
.mp-territory-directory .mp-territory-link{margin:0;border-radius:0;border-width:0 0 1px;padding:10px 0;background:transparent}
.mp-territory-directory .mp-territory-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px}
.mp-territory-directory .mp-territory-link span{font-size:16px;color:#292115;font-weight:400}
.mp-territory-directory .mp-territory-link span:last-child{color:#8c7a4f;flex:none}

/* A Codex record peeked over the chart (95 openReference); the record-sheet Territories row; toasts above the chart. */
#modalBackdrop.mp-codex-overlay{z-index:7000!important;position:fixed;inset:0}
.mp-territory-row small{display:block;color:#6e5b40;font-weight:400}
body:has(#mpShell) #toast{z-index:6500}
@media(max-width:650px){.mp-feature-label{font-size:13px;max-width:165px}.mp-island-feature .mp-feature-label{font-size:16px;max-width:200px}}
@media(max-width:650px){.mp-directory-filters{flex-direction:column}.mp-directory-filters select{max-width:none;width:100%}}
