html { scrollbar-gutter: stable; }

    :root {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
      color: #111b30;
      background: var(--dimap-page-background);
      font-synthesis: none;
      --dimap-line: #dce5f0;
      --dimap-primary: #174a93;
      --dimap-map: #0d5274;
      --dimap-dark: #0d2741;
      --dimap-muted: #637895;
      --dimap-page-background: #ffffff;
      --dimap-header-background: #ffffff;
      --dimap-header-border: #e1e6ec;
      --dimap-header-text: #223046;
      --dimap-header-icon: #34495f;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; min-width: 0; background: var(--dimap-page-background); }
    body { -webkit-font-smoothing: antialiased; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    [hidden]{ display: none !important; }
    /* Keyboard focus stays visible without the browser-style blue frame. */
    :focus-visible { outline: none; }
    :focus:not(:focus-visible) { outline: none; }

    .dimap-shell { max-width: 1400px; margin: 0 auto; padding: 20px 20px 0; }
    /* Public-facing identity bar: full-width rule, content aligned with the widget. */
    .dimap-brand-header { width: 100%; border-bottom: 1px solid var(--dimap-header-border); background: var(--dimap-header-background); }
    .dimap-brand-inner { display: flex; align-items: center; gap: 18px; max-width: 1400px; min-height: 66px; margin: 0 auto; padding: 12px 20px; }
    .dimap-brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
    .dimap-brand-link[href] { cursor: pointer; }
    .dimap-brand-logo { display: block; width: auto; height: auto; max-width: 154px; max-height: 34px; object-fit: contain; object-position: left center; flex: 0 1 auto; }
    .dimap-brand-separator { align-self: center; flex: 0 0 1px; width: 1px; height: 29px; background: #d7e0ea; }
    .dimap-brand-title { margin: 0; color: var(--dimap-header-text); font-size: 17px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
    .dimap-toolbar {
      display: flex; flex-direction: column; gap: 14px;
      margin: -20px -20px 0; padding: 20px 20px 18px;
      border: 0; border-radius: 0; background: transparent; box-shadow: none;
    }
    .dimap-primary-row { display: flex; align-items: center; gap: 12px; }
    .dimap-primary-row { flex-wrap: wrap; }
    .dimap-search { position: relative; display: block; flex: 1 1 300px; min-width: 190px; }
    .dimap-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #657793; pointer-events: none; }
    .dimap-search input {
      display: block; width: 100%; height: 48px; border: 1px solid var(--dimap-line);
      border-radius: 12px; padding: 0 52px 0 46px; background: #fff;
      color: #15213b; outline: none; font-size: 15px;
    }
    .dimap-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
    .dimap-search input:focus { border-color: #789bc3; box-shadow: none; }
    .dimap-search input::placeholder { color: #8291a6; }
    .dimap-search-clear {
      position: absolute; z-index: 3; top: 50%; right: 8px; transform: translateY(-50%);
      display: inline-flex; align-items: center; justify-content: center;
      width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px;
      background: transparent; color: #4f6f9e; font-size: 18px; font-weight: 650; line-height: 1;
      cursor: pointer; user-select: none;
    }
    .dimap-search-clear:hover { background: #edf3f9; color: #234b7a; }
    .dimap-search-clear:focus-visible { outline: 2px solid var(--dimap-primary); outline-offset: 1px; }
    .dimap-search-clear[hidden] { display: none; }
    
    
    
    .dimap-count { min-width: 0; color: #48596c; font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .dimap-view-switch {
      display: inline-flex; gap: 2px; padding: 2px; flex: 0 0 auto;
      border: 1px solid var(--dimap-line); border-radius: 11px; background: #f5f8fb;
    }
    .dimap-view-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      min-height: 33px; padding: 0 11px; border: 0; border-radius: 8px;
      background: transparent; color: #607490; font-size: 12px; font-weight: 650;
    }
    .dimap-view-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
    .dimap-view-btn[aria-pressed="true"] { background: #082747; color: #fff; box-shadow: 0 1px 2px #122a4122; }
    .dimap-view-btn:not([aria-pressed="true"]):hover { background: #e9eff6; color: #203d5e; }
    .dimap-filters-head { display: flex; align-items: center; gap: 9px; color: #71849d; }
    .dimap-filters-head span { font-size: 11px; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
    .dimap-filters-head::after { content: ""; flex: 1; height: 1px; background: #e8edf3; }
    .dimap-dimensions { position: relative; z-index: 30; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 1.65fr) minmax(0, 1.25fr); gap: 0; align-items: stretch; }
    .dimap-dimension { position: relative; display: grid; grid-template-rows: 36px auto; min-width: 0; padding: 4px 16px 5px; }
    .dimap-dimension:first-child { padding-left: 0; }
    .dimap-dimension:last-child { padding-right: 0; }
    .dimap-dimension + .dimap-dimension { border-left: 1px solid #d9e0e7; }
    .dimap-dimension-question { display: flex; align-items: flex-start; min-height: 36px; margin: 0 0 8px; color: #27384d; font-size: 14px; font-weight: 700; line-height: 1.28; letter-spacing: -.008em; }
    .dimap-dimension-facets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
    .dimap-dimension--offer .dimap-dimension-facets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dimap-dimension .dimap-facet-trigger { height: 39px; box-shadow: 0 1px 2px #18294304; }
    .dimap-dimension--industry .dimap-facet-trigger { border-color: #b4c6d5; background: #f1f6fa; color: #31536d; }
    .dimap-dimension--industry .dimap-facet-total { background: #dfeaf2; color: #31536d; }
    .dimap-dimension--industry .dimap-facet-trigger:hover, .dimap-dimension--industry .dimap-facet-trigger[aria-expanded="true"], .dimap-dimension--industry .dimap-facet-trigger.is-selected { border-color: #8faabc; background: #e8f1f7; color: #244a67; }
    .dimap-dimension--knowhow .dimap-facet-trigger { border-color: #b9c9bd; background: #f2f7f3; color: #476650; }
    .dimap-dimension--knowhow .dimap-facet-total { background: #e2ece4; color: #476650; }
    .dimap-dimension--knowhow .dimap-facet-trigger:hover, .dimap-dimension--knowhow .dimap-facet-trigger[aria-expanded="true"], .dimap-dimension--knowhow .dimap-facet-trigger.is-selected { border-color: #9eb5a4; background: #eaf2ec; color: #385940; }
    .dimap-dimension--offer .dimap-facet-trigger { border-color: #cbbca8; background: #faf6ef; color: #6e5b43; }
    .dimap-dimension--offer .dimap-facet-total { background: #eee3d5; color: #6e5b43; }
    .dimap-dimension--offer .dimap-facet-trigger:hover, .dimap-dimension--offer .dimap-facet-trigger[aria-expanded="true"], .dimap-dimension--offer .dimap-facet-trigger.is-selected { border-color: #b8a489; background: #f4ede3; color: #604d37; }
    .dimap-dimension--markets .dimap-facet-trigger { border-color: #c2b8ca; background: #f7f3f8; color: #5d5368; }
    .dimap-dimension--markets .dimap-facet-total { background: #e9e1ec; color: #5d5368; }
    .dimap-dimension--markets .dimap-facet-trigger:hover, .dimap-dimension--markets .dimap-facet-trigger[aria-expanded="true"], .dimap-dimension--markets .dimap-facet-trigger.is-selected { border-color: #aa9db5; background: #f0eaf2; color: #51465c; }
    .dimap-facets { position: relative; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .dimap-facets:empty { display: none; }
    .dimap-facet { position: relative; min-width: 0; }
    .dimap-facet.is-open { z-index: 25; }
    .dimap-facet-trigger {
      position: relative; display: flex; width: 100%; height: 42px; align-items: center; gap: 7px;
      padding: 0 12px; border: 1px solid var(--dimap-line); border-radius: 10px;
      background: #fff; color: #34445d; font-size: 12px; font-weight: 650; text-align: left;
    }
    .dimap-facet-trigger-hit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; color: transparent; }
    .dimap-facet-trigger:hover, .dimap-facet-trigger[aria-expanded="true"] { border-color: #bbcee1; background: #f9fbfe; }
    .dimap-facet-trigger:has(.dimap-facet-trigger-hit:focus-visible) { outline: 2px solid var(--dimap-primary); outline-offset: 2px; }
    .dimap-facet-trigger.is-selected { border-color: #a9c4df; background: #f1f7fd; color: #143e6b; }
    .dimap-facet-title { position: relative; z-index: 2; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
    .dimap-facet-search-wrap.has-category-info .dimap-facet-search { padding-right: 72px; }
    .dimap-facet-category-info {
      position: absolute; z-index: 3; top: 17px; right: 17px; margin: 0;
    }
    .dimap-facet-trigger-spacer { flex: 1 1 auto; min-width: 0; pointer-events: none; }
    .dimap-facet-total {
      position: relative; z-index: 2; pointer-events: none; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
      min-width: 19px; padding: 2px 5px; border-radius: 5px;
      background: #e1edf8; color: #174a78; font-size: 11px;
    }
    .dimap-facet-chevron { position: relative; z-index: 2; pointer-events: none; width: 13px; height: 13px; flex-shrink: 0; color: #72869c; transition: transform .17s ease; }
    .dimap-facet-trigger[aria-expanded="true"] .dimap-facet-chevron { transform: rotate(180deg); }
    .dimap-facet-menu {
      position: absolute; top: calc(100% + 5px); left: 0; z-index: 20;
      width: min(330px, calc(100vw - 48px)); max-height: 350px;
      display: flex; flex-direction: column; overflow: hidden;
      border: 1px solid var(--dimap-line); border-radius: 12px; background: #fff;
      box-shadow: 0 9px 28px #18294319;
    }
    .dimap-facet-menu.flip { left: auto; right: 0; }
    .dimap-facet-search-wrap { position: relative; padding: 9px 9px 7px; border-bottom: 1px solid #ecf0f4; }
    .dimap-facet-search {
      width: 100%; height: 34px; padding: 0 40px 0 10px;
      border: 1px solid var(--dimap-line); border-radius: 8px;
      color: #24374f; background: #f9fbfd; font-size: 12px; outline: none;
    }
    .dimap-facet-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
    .dimap-facet-search:focus { border-color: #789bc3; }
    .dimap-facet-search-clear {
      position: absolute; z-index: 4; top: 12px; right: 10px;
      display: inline-flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 6px;
      background: transparent; color: #4f6f9e; font-size: 17px; font-weight: 650; line-height: 1;
      cursor: pointer; user-select: none;
    }
    .dimap-facet-search-clear:hover { background: #edf3f9; color: #234b7a; }
    .dimap-facet-search-clear:focus-visible { outline: 2px solid var(--dimap-primary); outline-offset: 1px; }
    .dimap-facet-search-clear[hidden] { display: none; }
    .dimap-facet-search-wrap.has-category-info .dimap-facet-search-clear { right: 42px; }
    .dimap-facet-options { min-height: 0; overflow-y: auto; padding: 5px; }
    .dimap-facet-option {
      display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 9px 7px;
      border-radius: 7px; color: #34445d; font-size: 12px; line-height: 1.35; cursor: pointer;
    }
    .dimap-facet-option:hover { background: #f5f8fb; }
    .dimap-facet-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #174a93; cursor: pointer; }
    .dimap-facet-option-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
    .dimap-facet-option-count { margin-left: auto; color: #8392a5; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .dimap-facet-empty { padding: 17px 11px; font-size: 12px; color: #71829a; }
    .dimap-active-filters { display: flex; flex-wrap: wrap; gap: 7px; }
    .dimap-filter-chip {
      display: inline-flex; align-items: center; gap: 7px; min-height: 29px;
      padding: 4px 7px 4px 10px; border: 1px solid #d7e3ee; border-radius: 8px;
      background: #f4f8fc; color: #344a63; font-size: 11px; font-weight: 550;
    }
    .dimap-filter-chip strong { font-weight: 700; }
    .dimap-filter-chip button {
      display: grid; place-items: center; width: 18px; height: 18px; padding: 0;
      border: 0; border-radius: 4px; background: transparent; color: #74869b;
      font-size: 16px; line-height: 1;
    }
    .dimap-filter-chip button:hover { background: #e3ecf6; color: #172b43; }
    .dimap-filter-chip--industry { border-color: #b7c8d6; background: #fff; color: #365a76; }
    .dimap-filter-chip--knowhow { border-color: #bdcbc1; background: #fff; color: #476650; }
    .dimap-filter-chip--offer { border-color: #d2c4b3; background: #fff; color: #6e5b43; }
    .dimap-filter-chip--markets { border-color: #c7bfce; background: #fff; color: #5d5368; }
    /* Editable Boolean links. Terms stay together when selections wrap on mobile. */
    .dimap-filter-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
    .dimap-filter-term { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
    .dimap-filter-connector {
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
      min-width: 36px; height: 27px; padding: 3px 7px;
      border: 1px solid #cbdbe4; border-radius: 6px; background: #fff;
      color: #0d2741; font-size: 10px; font-weight: 750; line-height: 1;
    }
    .dimap-filter-connector:hover { background: #edf4f8; border-color: #9db8ca; }
    .dimap-filter-connector:focus-visible { outline: 2px solid var(--dimap-primary); outline-offset: 2px; }
    .dimap-filter-connector--topic { border-color: #adc5d5; background: #f6f9fc; }

    /* Original widget 0152 mosaic cards. */
    /* Cards use the document's natural scroll, with progressive batches instead of an inner scrollbar. */
     .dimap-results-surface {
      background: transparent;
      margin: 0;
      padding: 28px 0 26px;
      border-radius: 0;
      box-shadow: none;
      clip-path: none;
    }
    .dimap-results-heading {
      display: flex; align-items: center; justify-content: space-between; gap: 18px;
      min-width: 0; margin: 0 0 20px;
    }
    .dimap-results-main {
      display: flex; align-items: center; gap: 12px; min-width: 0;
    }
    .dimap-results-heading .dimap-count {
      display: inline-flex; align-items: baseline; gap: 4px;
      color: #43556a; font-size: 13px; font-weight: 650; line-height: 1.2;
      letter-spacing: 0; white-space: nowrap;
    }
    .dimap-results-heading .dimap-count strong { color: #223046; font-weight: 760; }
    .dimap-results-heading .dimap-view-switch { margin-left: 0; }
    .dimap-results-heading .dimap-results-right { margin-left: auto; justify-content: flex-end; }
    .dimap-cards-viewport { --dimap-columns: 4; --dimap-row-gap: 28px; width: 100%; min-width: 0; }
    /* Consistent results toolbar: view and count left; context-specific control right. */
    
    .dimap-results-right {
      display: flex; align-items: center; gap: 12px; min-width: 0;
      flex: 0 0 auto; margin-left: auto; justify-content: flex-end;
    }
    .dimap-results-refine {
      display: flex; align-items: center; justify-content: flex-start; gap: 10px;
      min-width: 0; padding-top: 1px;
    }
    .dimap-refine-label {
      flex: 0 0 auto; color: #697b8f; font-size: 11px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap;
    }
    .dimap-refine-facets {
      display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; min-width: 0;
    }
    .dimap-refine-facets .dimap-facet { width: 138px; }
    .dimap-refine-facets .dimap-facet-trigger { height: 36px; padding: 0 10px; font-size: 11.5px; border-radius: 9px; }
    .dimap-refine-facets .dimap-facet-menu { width: min(300px, calc(100vw - 48px)); }
    
    
    
    
    
    
    
    

    .dimap-grid {
      display: grid; grid-template-columns: repeat(var(--dimap-columns), minmax(0, 1fr));
      gap: var(--dimap-row-gap); width: 100%;
    }
    .dimap-sort-wrap {
      display: inline-flex; align-items: center; gap: 10px; min-width: 0;
      color: #687b95; font-size: 12px; font-weight: 650;
    }
    .dimap-sort-control { position: relative; min-width: 174px; }
    .dimap-sort-trigger {
      display: flex; align-items: center; justify-content: space-between; gap: 9px;
      width: 100%; min-height: 36px; padding: 0 11px 0 13px;
      border: 1px solid #dce5f0; border-radius: 9px;
      background: #fff; color: #34445d; font-size: 12px; font-weight: 650;
      text-align: left; box-shadow: 0 1px 3px #16273c08;
      transition: border-color .16s ease, background .16s ease;
    }
    .dimap-sort-trigger:hover, .dimap-sort-trigger[aria-expanded="true"] { border-color: #b7c9dd; background: #f9fbfd; }
    .dimap-sort-trigger[aria-expanded="true"] { border-bottom-color: #b7c9dd; }
    .dimap-sort-trigger:focus-visible { outline: 2px solid #789bc3; outline-offset: 2px; }
    .dimap-sort-trigger svg { width: 14px; height: 14px; flex-shrink: 0; color: #71869f; transition: transform .16s ease; }
    .dimap-sort-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
    .dimap-sort-menu {
      position: absolute; z-index: 20; top: calc(100% + 5px); left: 0;
      width: max(100%, 196px); max-width: calc(100vw - 32px);
      padding: 5px; border: 1px solid #dce5f0; border-radius: 10px;
      background: #fff; box-shadow: 0 10px 27px #1829431b;
    }
    .dimap-sort-option {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      width: 100%; min-height: 36px; padding: 8px 10px;
      border: 0; border-radius: 6px; background: transparent;
      color: #42536b; font-size: 12px; font-weight: 550; text-align: left;
    }
    .dimap-sort-option:hover, .dimap-sort-option:focus-visible { background: #f1f6fb; color: #193c61; outline: none; }
    .dimap-sort-option[aria-checked="true"] { background: #edf4fb; color: #173e67; font-weight: 700; }
    .dimap-sort-option[aria-checked="true"]::after { content: "✓"; color: #174a93; font-size: 14px; }
    .dimap-load-more { display: flex; align-items: center; justify-content: center; padding: 22px 0 7px; }
    .dimap-load-more button {
      min-height: 36px; padding: 7px 14px; border: 1px solid var(--dimap-line); border-radius: 9px;
      background: #fff; color: #516981; font-size: 12px; font-weight: 650;
    }
    .dimap-load-more button:hover { background: #f5f8fb; border-color: #bacbdf; }
    .dimap-card {
      display: flex; flex-direction: column; align-items: center; width: 100%;
      height: 238px; min-height: 238px; overflow: hidden;
      padding: 20px 14px 16px; border: 1px solid #e7ebf0; border-radius: 18px;
      background: #fbfcfd; color: inherit; text-align: center;
      box-shadow: 0 1px 2px #18294304;
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    }
    .dimap-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px #1829430a; border-color: #d5dde6; }
    .dimap-logo {
      display: flex; align-items: center; justify-content: center;
      width: 82%; max-width: 190px; height: 60px; min-height: 60px; margin-bottom: 10px;
      padding: 6px 10px; border: 1px solid #f0f2f5; border-radius: 10px; background: #fff;
    }
    .dimap-logo img { display: block; max-width: 88%; max-height: 46px; object-fit: contain; }
    .dimap-fallback { display: flex; align-items: center; justify-content: center; width: 175px; max-width: 100%; height: 100%; color: #8c9fa6; }
    .dimap-fallback svg { display: block; width: 37px; height: 37px; flex-shrink: 0; }
    .dimap-place {
      flex: 0 0 23px; min-height: 23px; width: 100%; overflow: hidden;
      white-space: nowrap; text-overflow: ellipsis; color: #5f7291;
      font-size: 11px; font-weight: 750; letter-spacing: .19em;
      line-height: 1.3; text-transform: uppercase;
    }
    .dimap-name {
      display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
      flex: 0 1 auto; width: 100%; max-height: calc(1.28em * 3); min-height: 0;
      overflow: hidden; overflow-wrap: anywhere; font-size: 18px; font-weight: 700; line-height: 1.28;
    }
    .dimap-card-footer {
      display: flex; flex: 0 0 auto; flex-direction: column; align-items: center;
      justify-content: flex-end; gap: 1px; margin-top: auto; padding-top: 5px;
      width: 100%; min-width: 0;
    }
    .dimap-card-city {
      display: flex; align-items: center; justify-content: center; gap: 4px;
      max-width: 100%; min-width: 0; color: #354b63;
      font-size: 14px; font-weight: 650; line-height: 1.25;
    }
    .dimap-card-city svg { flex: 0 0 auto; width: 13px; height: 13px; color: #8292a6; }
    .dimap-card-city-name { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .dimap-card-year { color: #71839c; font-size: 11px; font-weight: 500; line-height: 1.25; }
    .dimap-close {
      display: grid; place-items: center; width: 42px; height: 38px;
      border: 1px solid var(--dimap-line); border-radius: 10px;
      background: #fff; color: #7285a0; box-shadow: 0 1px 3px #16273c0a;
    }
    .dimap-empty { padding: 38px; background: #fff; color: #63728b; text-align: center; }
    .dimap-empty button { border: 0; background: transparent; color: var(--dimap-primary); font-weight: 650; text-decoration: underline; }

    /* Geographic map, adapted from the supplied affiliation explorer. */
    .dimap-map-panel { margin: 0; }
    .dimap-map-frame { position: relative; width: 100%; height: min(72vw, 760px); min-height: 620px; overflow: hidden; border: 1px solid #dce5e9; border-radius: 15px; background: #f1f5f4; }
    .dimap-map-canvas { position: absolute; inset: 0; height: 100%; width: 100%; }
    .dimap-map-loading { position: absolute; z-index: 4; top: 58px; left: 13px; max-width: calc(100% - 26px); padding: 9px 12px; border: 1px solid #dfe6ea; border-radius: 7px; background: #fffc; color: #425565; font-size: 11.5px; line-height: 1.4; box-shadow: 0 2px 9px #0f25340a; }
    .dimap-map-canvas .maplibregl-control-container { font-family: inherit; }
    .dimap-map-recenter-control button {
      display: flex !important; align-items: center; justify-content: center;
      width: 29px; height: 29px; padding: 0 !important; border: 0;
      background: #fff; color: #34445d; cursor: pointer; line-height: 0;
    }
    .dimap-map-recenter-control button:hover { background: #f5f8fb; color: #173e67; }
    .dimap-map-recenter-control button:focus-visible { outline: 2px solid #789bc3; outline-offset: -2px; }
    .dimap-map-recenter-control svg { display: block; flex: 0 0 auto; width: 17px; height: 17px; margin: 0; }
    .dimap-map-mode-control {
      display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
      min-height: 36px; padding: 0 10px 0 12px; border: 1px solid #dfe5ec; border-radius: 11px;
      background: #fff; color: #34445d; font-size: 12px; font-weight: 650; cursor: pointer; user-select: none;
    }
    .dimap-map-mode-control:hover { background: #f9fbfe; border-color: #bbcee1; }
    .dimap-map-mode-switch-input {
      appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto;
      width: 33px; height: 19px; margin: 0; border: 1px solid #bbc9d7; border-radius: 99px;
      background: #dbe3ea; cursor: pointer; transition: background .16s ease, border-color .16s ease;
    }
    .dimap-map-mode-switch-input::before {
      content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
      border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #122a4133; transition: transform .16s ease;
    }
    .dimap-map-mode-switch-input:checked { background: #082747; border-color: #082747; }
    .dimap-map-mode-switch-input:checked::before { transform: translateX(14px); }
    .dimap-map-mode-switch-input:focus-visible { outline: 2px solid #789bc3; outline-offset: 2px; }

    /* Compact organization modal: identity and profile on the left, categories on the right. */
    .dimap-overlay { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; background: #091d38a6; }
    .dimap-overlay.is-open { display: flex; }
    body.dimap-modal-open { overflow: hidden; }
    .dimap-modal { position: relative; width: 100%; max-width: 1164px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 17px; background: #fff; box-shadow: 0 24px 75px #071c3630; }
    .dimap-modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid #e1e8f2; background: #fff; }
    .dimap-modal-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 112px; width: 112px; height: 52px; padding: 7px; border: 1px solid #dfe7ef; border-radius: 11px; }
    .dimap-modal-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .dimap-modal-logo .dimap-fallback svg { width: 29px; height: 29px; }
    .dimap-modal-heading { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; min-width: 0; }
    .dimap-modal h2 { min-width: 0; margin: 0; color: #202a3a; font-size: 21px; font-weight: 750; line-height: 1.26; overflow-wrap: anywhere; }
    .dimap-modal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 19px; margin-top: 5px; }
    .dimap-modal-status { display: inline-flex; align-items: center; min-height: 19px; padding: 2px 8px; border-radius: 999px; background: #e8f7ed; color: #21804b; font-size: 10px; font-weight: 750; line-height: 1.3; }
    
    .dimap-modal-uid { color: #8391a1; font-size: 11px; font-weight: 550; line-height: 1.35; letter-spacing: .005em; }
    
    .dimap-modal-pdf { min-width: 64px; height: 35px; padding: 0 9px; }
    .dimap-modal-share { min-width: 72px; height: 35px; padding: 0 9px; }
    .dimap-modal-share.is-copied { background: #eef6f2; border-color: #bfd9cb; color: #246b4a; }
    .dimap-modal-nav { min-width: 78px; height: 35px; padding: 0 9px; }
    .dimap-modal-nav svg { width: 14px; height: 14px; }
    .dimap-modal-nav:disabled { opacity: .38; cursor: default; }
    .dimap-modal-back { min-width: 68px; height: 35px; padding: 0 10px; }
    .dimap-modal-back svg { width: 15px; height: 15px; }
    @media(max-width: 620px) {
      .dimap-modal-previous, .dimap-modal-next, .dimap-modal-pdf { display: none !important; }
    }
    .dimap-close { flex: 0 0 35px; width: 35px; height: 35px; color: #17263d; font-size: 21px; font-weight: 500; }
    .dimap-modal-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 16px; padding: 18px 22px 22px; }
    .dimap-modal-main, .dimap-modal-side { min-width: 0; }
    .dimap-info-box { margin-bottom: 11px; padding: 14px; border: 1px solid var(--dimap-line); border-radius: 12px; box-shadow: 0 1px 2px #18294306; }
    .dimap-info-box:last-child { margin-bottom: 0; }
    .dimap-label { margin: 0 0 7px; color: #607492; font-size: 10px; font-weight: 750; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
    .dimap-bodycopy { margin: 0; color: #2f3846; font-size: 15px; line-height: 1.62; overflow-wrap: anywhere; white-space: pre-line; }
    #dimapAddress { user-select: text; -webkit-user-select: text; cursor: text; }
    .dimap-stat-section { padding: 10px; }
    .dimap-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .dimap-stat-cell { min-width: 0; padding: 10px; border: 1px solid #dce5ee; border-radius: 10px; background: #f7fafd; }
    .dimap-stat-value { margin-bottom: 0; color: #18243a; font-size: 12px; font-weight: 750; line-height: 1.34; overflow-wrap: anywhere; }
    .dimap-stat-cell .dimap-label { margin-bottom: 7px; color: #607492; font-size: 10px; }
    .dimap-modal-mini-map-wrap { position: relative; margin-top: 12px; }
    .dimap-modal-mini-map { position: relative; width: 100%; height: 205px; overflow: hidden; border: 1px solid #dce5e9; border-radius: 10px; background: #f1f5f4; }
    .dimap-modal-mini-map .maplibregl-control-container { font-family: inherit; }
    .dimap-modal-mini-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner { display: none; }
    .dimap-modal-nearby-control {
      position: absolute; z-index: 5; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 9px;
      min-height: 32px; padding: 5px 9px 5px 10px; border: 1px solid #d7e0e8; border-radius: 8px;
      background: #fffffff2; box-shadow: 0 1px 4px #13283b12; color: #35495f;
      font-size: 10.5px; font-weight: 650; line-height: 1.2; cursor: pointer; user-select: none;
      backdrop-filter: blur(3px);
    }
    .dimap-modal-nearby-control:hover { background: #fff; border-color: #bdcad6; }
    .dimap-modal-nearby-control.is-disabled { opacity: .55; cursor: default; }
    .dimap-modal-nearby-switch {
      appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto; width: 30px; height: 18px;
      margin: 0; border: 1px solid #bbc9d7; border-radius: 99px; background: #dbe3ea; cursor: pointer;
      transition: background .16s ease, border-color .16s ease;
    }
    .dimap-modal-nearby-switch::before {
      content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
      background: #fff; box-shadow: 0 1px 2px #122a4133; transition: transform .16s ease;
    }
    .dimap-modal-nearby-switch:checked { background: #082747; border-color: #082747; }
    .dimap-modal-nearby-switch:checked::before { transform: translateX(12px); }
    .dimap-modal-nearby-switch:focus-visible { outline: 2px solid var(--dimap-primary); outline-offset: 2px; }
    .dimap-modal-nearby-panel {
      position: absolute; z-index: 6; right: 8px; bottom: 8px; left: 8px;
      max-height: 132px; overflow: hidden; border: 1px solid #d7e0e8; border-radius: 9px;
      background: rgba(255,255,255,.98); box-shadow: 0 5px 18px #12263c1f; color: #2f465e;
    }
    .dimap-modal-nearby-panel[hidden] { display: none; }
    .dimap-modal-nearby-panel-head { display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 6px 9px; border-bottom: 1px solid #e5ebf0; }
    .dimap-modal-nearby-panel-heading { flex: 1 1 auto; min-width: 0; }
    .dimap-modal-nearby-panel-title { overflow: hidden; color: #263b50; font-size: 10.5px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
    .dimap-modal-nearby-panel-count { margin-top: 2px; color: #73869a; font-size: 9.5px; line-height: 1.2; }
    .dimap-modal-nearby-panel-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #61758a; font-size: 17px; line-height: 1; cursor: pointer; }
    .dimap-modal-nearby-panel-close:hover { background: #f3f6f8; color: #203747; }
    .dimap-modal-nearby-panel-list { display: grid; max-height: 84px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
    .dimap-modal-nearby-panel-item { width: 100%; padding: 6px 9px; border: 0; border-bottom: 1px solid #edf1f4; background: #fff; color: #2f465e; font-size: 10.5px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
    .dimap-modal-nearby-panel-item:last-child { border-bottom: 0; }
    .dimap-modal-nearby-panel-item:hover { background: #f7fafb; }
    .dimap-topic-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .dimap-topic-group { min-width: 0; padding: 13px 14px; border: 1px solid var(--dimap-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px #18294306; }
    .dimap-topic-group h3 { margin: 0 0 9px; color: #607492; font-size: 10px; font-weight: 750; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
    .dimap-topic-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .dimap-topic-tag { display: inline-flex; align-items: center; max-width: 100%; padding: 0; border: 1px solid #dce5ee; border-radius: 999px; background: #f7fafd; color: #34445d; font-size: 11px; font-weight: 650; line-height: 1.3; overflow: hidden; }
    .dimap-topic-tag-label { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; padding: 6px 7px 6px 9px; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
    .dimap-topic-tag-label:hover { background: #ffffff75; }
    span.dimap-topic-tag-label { cursor: default; }
    span.dimap-topic-tag-label:hover { background: transparent; }
    .dimap-topic-tag-add { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 25px; width: 25px; height: 25px; margin-right: 2px; padding: 0; border: 0; border-left: 1px solid #d6e0ea; background: transparent; color: #64788e; font-size: 16px; font-weight: 500; line-height: 1; }
    .dimap-topic-tag-add:hover:not(:disabled) { background: #fff9; color: #173e67; }
    .dimap-topic-tag-add:disabled { color: #8797a8; cursor: default; }
    .dimap-tag-popover { position: fixed; z-index: 100002; width: min(310px, calc(100vw - 24px)); padding: 12px 13px; border: 1px solid #dce5ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #10243a24; color: #34445d; }
    .dimap-tag-popover.is-modal-anchored { position: absolute; z-index: 6; }
    .dimap-tag-popover-title { margin: 0 0 5px; color: #24364c; font-size: 12px; font-weight: 750; line-height: 1.35; }
    .dimap-tag-popover-topic { margin: 0 0 8px; color: #7a8a9d; font-size: 9.5px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
    .dimap-tag-popover-text { margin: 0; color: #53677e; font-size: 11px; line-height: 1.52; }
    .dimap-topic-group--industry { border-top: 3px solid #5f7f9a; background: #fff; }
    .dimap-topic-group--industry .dimap-topic-tag { border-color: #b7c8d6; background: #f8fafc; color: #365a76; }
    .dimap-topic-group--knowhow { border-top: 3px solid #718c79; background: #fff; }
    .dimap-topic-group--knowhow .dimap-topic-tag { border-color: #bdcbc1; background: #f8faf9; color: #476650; }
    .dimap-topic-group--offer { border-top: 3px solid #9a8367; background: #fff; }
    .dimap-topic-group--offer .dimap-topic-tag { border-color: #d2c4b3; background: #fbf9f6; color: #6e5b43; }
    .dimap-topic-group--markets { border-top: 3px solid #7f738c; background: #fff; }
    .dimap-topic-group--markets .dimap-topic-tag { border-color: #c7bfce; background: #faf9fb; color: #5d5368; }
    .dimap-linkrow { display: flex; flex-wrap: wrap; gap: 7px; }
    .dimap-link { padding: 8px 10px; border: 1px solid var(--dimap-line); border-radius: 9px; background: #fff; color: #34445d; text-decoration: none; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
    .dimap-link:hover { background: #f5f8fb; }


    /* NOT stays attached to a criterion. AND / OR are always between criteria. */
    .dimap-filter-chip { padding: 4px 5px 4px 9px; }
    .dimap-filter-chip .dimap-chip-toggle { display: inline-flex; align-items: center; gap: 4px;
      width: auto; height: auto; min-height: 18px; padding: 0; border: 0; background: none;
      color: inherit; font: inherit; line-height: 1.35; text-align: left; cursor: pointer; }
    .dimap-filter-chip .dimap-chip-toggle:hover { background: transparent; color: #142b47; }
    .dimap-filter-chip .dimap-chip-remove { display: grid; place-items: center; flex: 0 0 18px;
      width: 18px; height: 18px; border: 0; border-radius: 4px; background: transparent;
      color: #74869b; font-size: 16px; line-height: 1; }
    .dimap-filter-chip.is-negated { border-color: #edb6b8; background: #fff1f1; color: #a32d38; }
    .dimap-filter-chip.is-negated .dimap-chip-toggle:hover { color: #84222c; }
    .dimap-not-label { margin-right: 3px; color: #b52c38; font-weight: 800; }

    /* List: same full-profile layout as the reference, minus the selection checkbox. */
    .dimap-list-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .dimap-list-card { width: 100%; min-width: 0; padding: 19px 21px 18px;
      border: 1px solid #d9e2ed; border-radius: 15px; background: #fff;
      box-shadow: 0 1px 3px #12263c04; color: #25344a;
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
    .dimap-list-card:not(.dimap-list-pdf):hover {
      transform: translateY(-3px); box-shadow: 0 4px 12px #1829430d; border-color: #bacbdf;
    }
    .dimap-list-head { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
    /* Centre the whole title/status block against the logo, even when the name wraps. */
    .dimap-list-card:not(.dimap-list-pdf) .dimap-list-head { align-items: center; }
    .dimap-list-card:not(.dimap-list-pdf) .dimap-list-head-side { align-self: flex-start; }
    .dimap-list-logo { display: flex; flex: 0 0 145px; justify-content: center; align-items: center;
      width: 145px; height: 65px; border: 1px solid #dce5ee; border-radius: 10px; padding: 8px; }
    .dimap-list-logo img { width: 100%; height: 100%; max-height: 52px; object-fit: contain; }
    .dimap-list-logo .dimap-fallback { width: 100%; }
    /* Align name + status as one vertical group, centred against the logo (not the PDF control). */
    .dimap-list-head-main { display: flex; flex-direction: column; align-items: flex-start;
      justify-content: center; flex: 1 1 auto; min-width: 0; min-height: 65px; }
    .dimap-list-card.dimap-list-pdf .dimap-list-head-main { min-height: 0; }
    .dimap-list-name { display: inline-block; max-width: 100%; padding: 0; border: 0; background: transparent;
      color: #202d3f; font-size: 19px; font-weight: 750; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
    .dimap-list-name:hover { color: #174a93; }
    .dimap-list-status { display: table; margin-top: 6px; border-radius: 999px;
      padding: 3px 9px; background: #e8f7ed; color: #21804b; font-size: 10px; font-weight: 750; }
    .dimap-list-head-side { display: flex; align-items: center; justify-content: flex-end;
      gap: 12px; max-width: 38%; margin-left: auto; flex: 0 0 auto; }
    .dimap-list-location { display: flex; align-items: center; gap: 5px; min-width: 0;
      color: #37475e; font-size: 12px; font-weight: 750; white-space: nowrap; }
    .dimap-list-location svg { display: block; width: 14px; height: 14px; color: #8394a9; }
    /* Clean, labelled document export; recognisable at desktop and mobile sizes. */
    .dimap-list-pdf-button { display: inline-flex; align-items: center; justify-content: center;
      gap: 6px; flex: 0 0 auto; min-width: 70px; height: 35px; padding: 0 10px;
      border: 1px solid #d6e0ea; border-radius: 9px; background: #fff;
      color: #415872; font-size: 11px; font-weight: 750; letter-spacing: .025em;
      transition: border-color .16s ease, background .16s ease; }
    .dimap-list-pdf-button:hover { background: #f3f7fc; color: #174a93; border-color: #b9cddd; }
    .dimap-list-pdf-button:disabled { opacity: .6; cursor: progress; }
    .dimap-list-pdf-button svg { width: 17px; height: 17px; flex: 0 0 auto; }
    
    
    .dimap-list-description { margin: 12px 0 0; color: #53677e; font-size: 13px;
      line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
    .dimap-list-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid #e5ebf1; }
    .dimap-list-section h4 { margin: 0 0 8px; color: #64768a; font-size: 10px;
      font-weight: 750; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; }
    .dimap-list-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .dimap-list-tag { display: inline-block; padding: 5px 10px; border: 1px solid #d4dce4;
      border-radius: 999px; background: #e9edf1; color: #33465b; font-size: 11px; font-weight: 600; line-height: 1.25; }
    
    
    
    
    
    
    
    .dimap-list-card.dimap-list-pdf { border: none; box-shadow: none; }

    @media(max-width: 760px) {
      .dimap-modal-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
      .dimap-list-card { padding: 17px; }
      .dimap-list-logo { flex-basis: 110px; width: 110px; height: 59px; }
      .dimap-list-head-main { min-height: 59px; }
      .dimap-list-head { gap: 12px; }
      .dimap-list-name { font-size: 17px; }
      .dimap-modal-side { margin-top: 11px; }
    }

    /* Charts: one large interactive horizontal-bar chart with six configurable tabs. */
    .dimap-chart-panel { width: 100%; min-width: 0; }
    .dimap-chart-card { overflow: hidden; border: 1px solid #dce5f0; border-radius: 16px; background: #fff; box-shadow: 0 1px 4px #18294308; }
    .dimap-chart-tabs { display: flex; align-items: center; gap: 5px; overflow-x: auto; padding: 12px 16px 0; border-bottom: 1px solid #e3eaf2; scrollbar-width: thin; }
    .dimap-chart-tab { flex: 0 0 auto; min-height: 41px; padding: 0 13px; border: 0; border-radius: 7px 7px 0 0; color: #60748c; background: #f7f9fb; font-size: 13px; font-weight: 650; white-space: nowrap; }
    .dimap-chart-tab:hover { background: #f5f8fc; color: #214569; }
    .dimap-chart-tab[aria-selected="true"] { color: #082747; background: #f7f9fb; font-weight: 650; box-shadow: inset 0 -2px 0 #082747; }
    .dimap-chart-content { padding: 22px 25px 22px; }
    .dimap-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
    .dimap-chart-heading h3 { margin: 0; color: #1a2b43; font-size: 19px; font-weight: 740; }
    .dimap-chart-heading p { margin: 5px 0 0; color: #73859b; font-size: 12px; }
    .dimap-chart-colhead { display: grid; grid-template-columns: minmax(0, 315px) minmax(70px, 1fr) 75px; gap: 13px; padding: 0 13px 9px; color: #8697aa; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
    .dimap-chart-colhead > span:first-child { position: relative; left: -13px; }
    .dimap-chart-scroll { --dimap-chart-row-height: 40px; width: 100%; max-height: calc(var(--dimap-chart-visible-rows, 10) * var(--dimap-chart-row-height)); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #c5d1df transparent; scrollbar-width: thin; }
    .dimap-chart-scroll:focus-visible { outline: 2px solid #a2bfdb; outline-offset: -2px; }
    .dimap-chart-rows { min-width: 0; display: grid; gap: 4px; padding: 2px 0; }
    .dimap-chart-row { display: grid; grid-template-columns: minmax(0, 315px) minmax(70px, 1fr) 75px; gap: 13px; align-items: center; width: 100%; height: calc(var(--dimap-chart-row-height) - 4px); margin: 0; padding: 1px 13px; border: none; border-radius: 5px; background: #f8fafc; color: #23354c; text-align: left; transition: background .14s ease; }
    .dimap-chart-row:hover, .dimap-chart-row:focus-visible { background: #edf4fb; }
    .dimap-chart-row[aria-pressed="true"] { background: #eaf2fb; }
    .dimap-chart-label { display: flex; align-items: center; min-width: 0; gap: 13px; }
    .dimap-chart-rank { flex: 0 0 20px; color: #91a1b2; font-size: 11px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
    .dimap-chart-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 550; line-height: 1.35; }
    .dimap-chart-row[aria-pressed="true"] .dimap-chart-name { color: #174a93; font-weight: 750; }
    .dimap-chart-not { margin-left: 4px; padding: 2px 4px; border-radius: 3px; color: #b52c38; background: #fff0f0; font-size: 9px; font-weight: 800; }
    .dimap-chart-track { position: relative; display: block; width: 100%; height: 14px; overflow: hidden; background: #edf2f8; border-radius: 0 4px 4px 0; }
    .dimap-chart-bar { display: block; width: var(--dimap-chart-width); height: 100%; min-width: 0; background: var(--dimap-chart-color, #0070c0); border-radius: 0 3px 3px 0; transition: width .23s ease; }
    /* Selected bars have no outline: the subtle row tint carries the selection state. */
    .dimap-chart-value { text-align: right; color: #1d3046; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .dimap-chart-caption { min-height: 17px; margin: 14px 1px 0; color: #7c8c9d; font-size: 11px; line-height: 1.55; }
    .dimap-chart-tooltip { position: fixed; z-index: 9998; visibility: hidden; opacity: 0; pointer-events: none; width: 310px; max-width: calc(100vw - 24px); padding: 14px 15px; border: 1px solid #ffffff12; border-radius: 10px; background: #082747; box-shadow: 0 9px 25px #071b2933; color: #fff; font-size: 11px; line-height: 1.5; transition: opacity .12s ease; }
    .dimap-chart-tooltip.is-visible { visibility: visible; opacity: 1; }
    .dimap-chart-tooltip strong { display: block; margin-bottom: 7px; font-size: 13px; }
    .dimap-chart-tooltip p { margin: 5px 0 0; color: #c5d5e6; }
    .dimap-chart-tooltip b { color: #fff; font-weight: 650; }
    @media(max-width: 760px) {
      /* Four view modes plus result count must not widen the mobile page. */
      .dimap-chart-tabs { padding: 9px 10px 0; gap: 1px; }
      .dimap-chart-tab { min-height: 38px; padding: 0 9px; font-size: 11.5px; }
      .dimap-chart-content { padding: 17px 13px 17px; }
      .dimap-chart-heading { flex-wrap: wrap; align-items: flex-start; gap: 7px; }
      .dimap-chart-heading h3 { font-size: 17px; }
      .dimap-chart-colhead, .dimap-chart-row { grid-template-columns: minmax(0, 47%) minmax(0, 1fr) 50px; gap: 7px; }
      .dimap-chart-colhead { padding: 0 5px 8px; font-size: 9px; letter-spacing: .06em; }
      .dimap-chart-colhead > span:first-child { left: -5px; }
      .dimap-chart-scroll { --dimap-chart-row-height: 40px; }
      .dimap-chart-rows { gap: 4px; }
      .dimap-chart-row { height: calc(var(--dimap-chart-row-height) - 4px); padding: 3px 5px; }
      .dimap-chart-label { gap: 5px; }
      .dimap-chart-rank { flex-basis: 17px; font-size: 10px; }
      .dimap-chart-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 11px; }
      .dimap-chart-value { font-size: 12px; }
      .dimap-chart-track { height: 14px; }
    }
    @media(max-width: 620px) {
      /* Six chart dimensions remain visible on phones, without a second horizontal scroller. */
      .dimap-chart-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px 2px; overflow: visible; padding: 8px 9px 0; }
      .dimap-chart-tab { width: 100%; min-width: 0; min-height: 35px; padding: 0 3px; font-size: 11px; }
    }
    @media(max-width: 1150px) {
      .dimap-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
      .dimap-dimension { padding: 4px 16px 5px; }
      .dimap-dimension:nth-child(odd) { padding-left: 0; border-left: 0; }
      .dimap-dimension:nth-child(even) { padding-right: 0; border-left: 1px solid #d9e0e7; }
      .dimap-dimension-question { min-height: 36px; }
      .dimap-facets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }
    @media(max-width: 1020px) {
      .dimap-results-heading { flex-wrap: wrap; }
      .dimap-results-right { flex: 0 0 auto; margin-left: auto; justify-content: flex-end; }
    }
    @media(max-width: 900px) {
      .dimap-cards-viewport { --dimap-columns: 3; --dimap-row-gap: 18px; }
      .dimap-facets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media(max-width: 620px) {
      .dimap-shell { padding: 15px 12px 0; }
      .dimap-brand-inner { min-height: 56px; padding: 10px 12px; gap: 11px; }
      .dimap-brand-logo { max-width: 115px; max-height: 28px; }
      .dimap-brand-separator { height: 23px; }
      .dimap-brand-title { font-size: 13.5px; }
      .dimap-toolbar { margin: -15px -12px 0; padding: 15px 12px 14px; gap: 12px; border-radius: 0; }
      .dimap-primary-row { gap: 8px; }
      .dimap-search { flex-basis: 100%; min-width: 0; }
      
      .dimap-results-surface { padding: 14px 0 25px; margin: 0; border-radius: 0; background: transparent; box-shadow: none; clip-path: none; }
      .dimap-results-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 12px; }
      .dimap-results-main { width: 100%; flex-wrap: wrap; gap: 9px; }
      .dimap-results-heading .dimap-view-switch { margin-left: 0; }
      .dimap-results-right { width: auto; margin-left: 0; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
      .dimap-results-refine { align-items: flex-start; flex-wrap: wrap; gap: 7px; }
      .dimap-refine-label { width: 100%; font-size: 10px; }
      .dimap-refine-facets { display: flex; flex: 1 1 auto; justify-content: flex-start; gap: 8px; min-width: 0; }
      .dimap-refine-facets .dimap-facet { width: min(132px, 31vw); min-width: 0; }
      .dimap-refine-facets .dimap-facet-trigger { height: 34px; font-size: 11px; }
      .dimap-count { font-size: 11.5px; }
      .dimap-results-heading .dimap-count { font-size: 12.5px; }
      .dimap-sort-wrap { gap: 7px; font-size: 11px; }
      .dimap-sort-control { min-width: 151px; }
      .dimap-sort-trigger { min-height: 34px; padding: 0 9px 0 11px; font-size: 11.5px; }
      .dimap-sort-option { font-size: 11.5px; }
      .dimap-results-heading .dimap-view-btn { min-height: 32px; padding: 0 8px; font-size: 11px; }
      .dimap-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
      .dimap-dimension { grid-template-rows: auto auto; min-height: 0; padding: 3px 10px 4px; }
      .dimap-dimension:nth-child(odd) { padding-left: 0; border-left: 0; }
      .dimap-dimension:nth-child(even) { padding-right: 0; border-left: 1px solid #d9e0e7; }
      .dimap-dimension-question { min-height: 34px; margin-bottom: 7px; font-size: 13px; line-height: 1.3; }
      .dimap-dimension--offer { grid-column: auto; }
      .dimap-dimension--offer .dimap-dimension-facets { grid-template-columns: minmax(0, 1fr); gap: 7px; }
      .dimap-facets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      .dimap-facet-trigger { height: 39px; padding: 0 9px; font-size: 11.5px; }
      .dimap-facet-menu { width: min(315px, calc(100vw - 36px)); }
      .dimap-facet:nth-child(2n) .dimap-facet-menu { right: 0; left: auto; }
      .dimap-cards-viewport { --dimap-columns: 2; --dimap-row-gap: 12px; }
      .dimap-card { height: 210px; min-height: 210px; padding: 16px 8px 13px; border-radius: 14px; }
      .dimap-card .dimap-logo { width: 86%; max-width: 160px; height: 53px; min-height: 53px; margin-bottom: 8px; padding: 5px 8px; border-radius: 8px; }
      .dimap-card .dimap-logo img { max-width: 90%; max-height: 39px; }
      .dimap-card .dimap-fallback svg { width: 30px; height: 30px; }
      .dimap-place { font-size: 9px; }
      .dimap-name { font-size: 15px; }
      .dimap-card-footer { padding-top: 3px; gap: 1px; }
      .dimap-card-city { font-size: 13px; gap: 3px; }
      .dimap-card-city svg { width: 12px; height: 12px; }
      .dimap-card-year { font-size: 10px; }
      .dimap-map-frame { height: 560px; min-height: 500px; border-radius: 10px; }
      .dimap-overlay { padding: 9px; }
      .dimap-modal { max-height: calc(100dvh - 18px); border-radius: 14px; }
      .dimap-modal-head { gap: 11px; padding: 13px 14px; }
      .dimap-modal-logo { width: 85px; height: 45px; flex-basis: 85px; }
      .dimap-modal h2 { font-size: 17px; }
      .dimap-modal-meta { gap: 6px; margin-top: 4px; }
      .dimap-modal-status { font-size: 9.5px; }
      .dimap-modal-uid { font-size: 10.5px; }
      .dimap-modal-body { padding: 13px 14px 16px; }
      .dimap-modal-mini-map { height: 185px; }
      .dimap-info-box { padding: 12px; }
      .dimap-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .dimap-list-card { padding: 14px 13px; border-radius: 12px; }
      .dimap-list-head { position: relative; gap: 10px; flex-wrap: wrap; }
      .dimap-list-head-main { flex: 1 1 0; min-width: 0; }
      .dimap-list-logo { flex: 0 0 87px; width: 87px; height: 48px; padding: 5px; }
      .dimap-list-head-main { min-height: 48px; }
      .dimap-list-name { font-size: 15px; }
      .dimap-list-head-side { flex: 1 1 100%; order: 3; justify-content: flex-start; max-width: none; margin-left: 0; }
      .dimap-list-pdf-button { margin-left: auto; }
      
      .dimap-list-description { font-size: 12.5px; margin-top: 10px; }
      .dimap-list-section { margin-top: 13px; padding-top: 12px; }
      .dimap-list-tag { font-size: 10.5px; }
      .dimap-filter-chip { max-width: 100%; }
      .dimap-filter-chip .dimap-chip-toggle { min-width: 0; overflow-wrap: anywhere; }
      .dimap-stat-value { font-size: 11px; }
      .dimap-stat-cell .dimap-label { font-size: 9.5px; letter-spacing: .075em; }
      .dimap-stat-cell { padding: 9px; }
      .dimap-topic-group { padding: 12px; }
    }
    @media(max-width: 430px) {
      .dimap-dimensions { gap: 8px 0; }
      .dimap-dimension { padding: 3px 8px 4px; }
      .dimap-dimension:nth-child(odd) { padding-left: 0; }
      .dimap-dimension:nth-child(even) { padding-right: 0; }
      .dimap-dimension-question { min-height: 32px; margin-bottom: 6px; font-size: 12.5px; }
      .dimap-refine-facets .dimap-facet { width: min(118px, 31vw); }
      .dimap-sort-wrap { margin-left: 0; }
    }
    @media(max-width: 350px) {
      .dimap-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .dimap-sort-wrap { gap: 5px; font-size: 10px; }
      .dimap-sort-control { min-width: 119px; width: 119px; }
      .dimap-sort-trigger { gap: 5px; padding: 0 7px; font-size: 10.5px; }
      .dimap-sort-trigger #dimapSortValue { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .dimap-results-heading .dimap-view-btn { padding: 0 5px; font-size: 10.5px; }
    }
  

    /* v27 — public cartography composition: filters on white, full-width result field. */
    html, body { background: var(--dimap-page-background); }
    .dimap-brand-header { background: var(--dimap-header-background); }
    .dimap-toolbar { background: var(--dimap-page-background); }

    /* The four business dimensions stay a single quiet grid: questions provide the hierarchy. */
    .dimap-dimension .dimap-facet-trigger,
    .dimap-dimension--industry .dimap-facet-trigger,
    .dimap-dimension--knowhow .dimap-facet-trigger,
    .dimap-dimension--offer .dimap-facet-trigger,
    .dimap-dimension--markets .dimap-facet-trigger {
      border-color: var(--dimap-line); background: #fff; color: #34445d;
    }
    .dimap-dimension .dimap-facet-trigger:hover,
    .dimap-dimension .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension .dimap-facet-trigger.is-selected,
    .dimap-dimension--industry .dimap-facet-trigger:hover,
    .dimap-dimension--industry .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--industry .dimap-facet-trigger.is-selected,
    .dimap-dimension--knowhow .dimap-facet-trigger:hover,
    .dimap-dimension--knowhow .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--knowhow .dimap-facet-trigger.is-selected,
    .dimap-dimension--offer .dimap-facet-trigger:hover,
    .dimap-dimension--offer .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--offer .dimap-facet-trigger.is-selected,
    .dimap-dimension--markets .dimap-facet-trigger:hover,
    .dimap-dimension--markets .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--markets .dimap-facet-trigger.is-selected {
      border-color: #b7c9dd; background: #f9fbfd; color: #203d5e;
    }
    .dimap-dimension .dimap-facet-total,
    .dimap-dimension--industry .dimap-facet-total,
    .dimap-dimension--knowhow .dimap-facet-total,
    .dimap-dimension--offer .dimap-facet-total,
    .dimap-dimension--markets .dimap-facet-total {
      background: #e7edf4; color: #4d6279;
    }

    /* Secondary filters are present but deliberately quiet. */
    .dimap-results-refine { padding-top: 2px; }
    .dimap-refine-label { display: none; }
    .dimap-refine-facets .dimap-facet-trigger { background: #fff; }

    /* Neutralise the old semantic colour treatment until a coherent colour system is approved. */
    .dimap-filter-chip--industry,
    .dimap-filter-chip--knowhow,
    .dimap-filter-chip--offer,
    .dimap-filter-chip--markets {
      border-color: #d7e3ee; background: #f4f8fc; color: #344a63;
    }
    .dimap-topic-group--industry,
    .dimap-topic-group--knowhow,
    .dimap-topic-group--offer,
    .dimap-topic-group--markets {
      border-top: 1px solid var(--dimap-line); background: #fff;
    }
    .dimap-topic-group--industry .dimap-topic-tag,
    .dimap-topic-group--knowhow .dimap-topic-tag,
    .dimap-topic-group--offer .dimap-topic-tag,
    .dimap-topic-group--markets .dimap-topic-tag {
      border-color: #dce5ee; background: #f7fafd; color: #34445d;
    }

    /* Results become one full-bleed visual field while content keeps the same 1400px alignment. */
    .dimap-results-surface {
      margin: 4px 0 0;
      padding: 30px 0 34px;
      background: #fff;
      box-shadow: 0 0 0 100vmax #fff;
      clip-path: inset(0 -100vmax);
    }
    .dimap-results-heading { align-items: center; margin-bottom: 20px; }
    .dimap-results-heading .dimap-count {
      display: inline-flex; align-items: baseline; gap: 4px;
      color: #43556a; font-size: 13px; font-weight: 650; line-height: 1.2;
      letter-spacing: 0; white-space: nowrap;
    }
    .dimap-results-heading .dimap-count strong { color: #223046; font-weight: 760; }

    /* White organization cards sit on the result field; no inner logo card is needed anymore. */
    .dimap-card {
      border-color: #e2e7ed; background: #fff; box-shadow: 0 1px 3px #18294306;
    }
    .dimap-card:hover { border-color: #cfd8e2; box-shadow: 0 5px 14px #1829430d; }
    .dimap-logo {
      width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent;
    }

    @media(max-width: 620px) {
      .dimap-results-surface { padding: 22px 0 28px; }
      .dimap-results-heading { align-items: flex-start; }
      .dimap-card .dimap-logo { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; }
      .dimap-card .dimap-logo img { max-width: 78%; max-height: 49px; }
    }


    /* v30 — Results toolbar as the visual transition between filters and content. */
    .dimap-results-surface {
      margin-top: 12px;
      padding-top: 0;
    }
    .dimap-results-heading {
      min-height: 48px;
      margin: 0 0 22px;
      padding: 7px 9px;
      border: 1px solid #e3e8ee;
      border-radius: 11px;
      background: #f6f8fa;
      box-shadow: none;
    }
    .dimap-results-main { gap: 11px; }
    .dimap-results-heading .dimap-view-switch {
      background: #fff;
      border-color: #dfe5ec;
    }
    .dimap-results-heading .dimap-count {
      color: #56687c;
      font-size: 12.5px;
      font-weight: 650;
    }
    .dimap-results-heading .dimap-results-right {
      min-height: 34px;
    }
    .dimap-results-heading .dimap-sort-trigger{
      background: #fff;
    }

    @media(max-width: 620px) {
      .dimap-results-surface { margin-top: 8px; padding-top: 0; }
      .dimap-results-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-height: 0;
        margin-bottom: 14px;
        padding: 8px;
        border-radius: 10px;
      }
      .dimap-results-main {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
      }
      .dimap-results-right {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
      }
    }

    /* v32 — one coherent panel for the entire search + filter area. */
    .dimap-toolbar {
      margin: 0 0 24px;
      padding: 18px 18px 17px;
      border: 1px solid #e3e8ee;
      border-radius: 14px;
      background: #f8fafc;
      box-shadow: none;
    }
    .dimap-toolbar .dimap-search input, .dimap-toolbar .dimap-facet-trigger{
      background: #fff;
    }
    @media(max-width: 620px) {
      .dimap-toolbar {
        margin: 0 0 18px;
        padding: 13px 12px 14px;
        border-radius: 12px;
      }
    }


    /* v33 — semantic dimension colour system: controls stay neutral; colour identifies the axis. */
    .dimap-dimension .dimap-facet-trigger,
    .dimap-dimension .dimap-facet-trigger:hover,
    .dimap-dimension .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension .dimap-facet-trigger.is-selected {
      border-color: #dce5f0;
      background: #fff;
      color: #34445d;
      box-shadow: 0 1px 2px #18294304;
    }
    .dimap-dimension .dimap-facet-trigger:hover,
    .dimap-dimension .dimap-facet-trigger[aria-expanded="true"] { border-color: #bdcbd9; background: #fbfcfe; }

    .dimap-dimension--industry .dimap-facet-title,
    .dimap-dimension--industry .dimap-facet-chevron { color: #4f718c; }
    .dimap-dimension--knowhow .dimap-facet-title,
    .dimap-dimension--knowhow .dimap-facet-chevron { color: #607d68; }
    .dimap-dimension--offer .dimap-facet-title,
    .dimap-dimension--offer .dimap-facet-chevron { color: #8a7358; }
    .dimap-dimension--markets .dimap-facet-title,
    .dimap-dimension--markets .dimap-facet-chevron { color: #74677f; }

    .dimap-dimension--industry .dimap-facet-total { background: #e8f1fb; color: #4f718c; }
    .dimap-dimension--knowhow .dimap-facet-total { background: #eef4ef; color: #607d68; }
    .dimap-dimension--offer .dimap-facet-total { background: #f6f1ea; color: #8a7358; }
    .dimap-dimension--markets .dimap-facet-total { background: #f1eaf6; color: #74677f; }

    .dimap-dimension--industry .dimap-facet-option input { accent-color: #5f7f9a; }
    .dimap-dimension--knowhow .dimap-facet-option input { accent-color: #718c79; }
    .dimap-dimension--offer .dimap-facet-option input { accent-color: #9a8367; }
    .dimap-dimension--markets .dimap-facet-option input { accent-color: #7f738c; }

    .dimap-dimension--industry .dimap-facet-option.is-checked { background: #e8f1fb; color: #365a76; }
    .dimap-dimension--knowhow .dimap-facet-option.is-checked { background: #f3f7f4; color: #476650; }
    .dimap-dimension--offer .dimap-facet-option.is-checked { background: #faf6f1; color: #6e5b43; }
    .dimap-dimension--markets .dimap-facet-option.is-checked { background: #f1eaf6; color: #5d5368; }

    /* Selected-filter chips carry the same semantic axis colour. */
    .dimap-filter-chip--industry { border-color: #bfd0dc; background: #eef5fc; color: #365a76; }
    .dimap-filter-chip--knowhow { border-color: #c5d2c8; background: #f5f8f6; color: #476650; }
    .dimap-filter-chip--offer { border-color: #dacdbc; background: #fbf8f4; color: #6e5b43; }
    .dimap-filter-chip--markets { border-color: #cec5d4; background: #f6f0f9; color: #5d5368; }
    .dimap-filter-chip.is-negated { border-color: #edb6b8; background: #fff1f1; color: #a32d38; }

    /* In organization profiles, colour belongs to the tags—not to the whole section. */
    .dimap-topic-group--industry,
    .dimap-topic-group--knowhow,
    .dimap-topic-group--offer,
    .dimap-topic-group--markets { border-top: 1px solid var(--dimap-line); background: #fff; }
    .dimap-topic-group--industry h3 { color: #4f718c; }
    .dimap-topic-group--knowhow h3 { color: #607d68; }
    .dimap-topic-group--offer h3 { color: #8a7358; }
    .dimap-topic-group--markets h3 { color: #74677f; }
    .dimap-topic-group--industry .dimap-topic-tag { border-color: #bfd0dc; background: #e8f1fb; color: #365a76; }
    .dimap-topic-group--knowhow .dimap-topic-tag { border-color: #c5d2c8; background: #eef4ef; color: #476650; }
    .dimap-topic-group--offer .dimap-topic-tag { border-color: #dacdbc; background: #f6f1ea; color: #6e5b43; }
    .dimap-topic-group--markets .dimap-topic-tag { border-color: #cec5d4; background: #f1eaf6; color: #5d5368; }

    /* Secondary filters are clearly labelled, but stay visually subordinate. */
    .dimap-refine-label { color: #687a8e; font-size: 10.5px; letter-spacing: .085em; }

    /* v34 — stronger readability: semantic colour lives in backgrounds, text stays neutral. */
    .dimap-dimension--industry .dimap-facet-trigger { background: #e8f1fb; }
    .dimap-dimension--knowhow .dimap-facet-trigger { background: #f3f7f4; }
    .dimap-dimension--offer .dimap-facet-trigger { background: #faf6f1; }
    .dimap-dimension--markets .dimap-facet-trigger { background: #f1eaf6; }

    .dimap-dimension--industry .dimap-facet-title,
    .dimap-dimension--industry .dimap-facet-chevron,
    .dimap-dimension--knowhow .dimap-facet-title,
    .dimap-dimension--knowhow .dimap-facet-chevron,
    .dimap-dimension--offer .dimap-facet-title,
    .dimap-dimension--offer .dimap-facet-chevron,
    .dimap-dimension--markets .dimap-facet-title,
    .dimap-dimension--markets .dimap-facet-chevron { color: #34445d; }

    .dimap-dimension--industry .dimap-facet-trigger:hover,
    .dimap-dimension--industry .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--industry .dimap-facet-trigger.is-selected { background: #dfeaf7; }
    .dimap-dimension--knowhow .dimap-facet-trigger:hover,
    .dimap-dimension--knowhow .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--knowhow .dimap-facet-trigger.is-selected { background: #ebf1ec; }
    .dimap-dimension--offer .dimap-facet-trigger:hover,
    .dimap-dimension--offer .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--offer .dimap-facet-trigger.is-selected { background: #f5eee5; }
    .dimap-dimension--markets .dimap-facet-trigger:hover,
    .dimap-dimension--markets .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--markets .dimap-facet-trigger.is-selected { background: #e8dff0; }

    .dimap-dimension--industry .dimap-facet-total,
    .dimap-dimension--knowhow .dimap-facet-total,
    .dimap-dimension--offer .dimap-facet-total,
    .dimap-dimension--markets .dimap-facet-total { color: #34445d; }

    .dimap-dimension--industry .dimap-facet-option.is-checked,
    .dimap-dimension--knowhow .dimap-facet-option.is-checked,
    .dimap-dimension--offer .dimap-facet-option.is-checked,
    .dimap-dimension--markets .dimap-facet-option.is-checked { color: #34445d; }

    /* Modal: only tag backgrounds carry the axis colour. */
    .dimap-topic-group--industry h3,
    .dimap-topic-group--knowhow h3,
    .dimap-topic-group--offer h3,
    .dimap-topic-group--markets h3 { color: #607492; }

    .dimap-topic-group--industry .dimap-topic-tag,
    .dimap-topic-group--knowhow .dimap-topic-tag,
    .dimap-topic-group--offer .dimap-topic-tag,
    .dimap-topic-group--markets .dimap-topic-tag { border-color: #dce5ee; color: #34445d; }

    .dimap-topic-group--industry .dimap-topic-tag { background: #e8f1fb; }
    .dimap-topic-group--knowhow .dimap-topic-tag { background: #eef4ef; }
    .dimap-topic-group--offer .dimap-topic-tag { background: #f6f1ea; }
    .dimap-topic-group--markets .dimap-topic-tag { background: #f1eaf6; }


    /* v37 — secondary filters precede the active-query chips; global clear is a standard secondary button. */
    .dimap-primary-row .dimap-search { flex: 1 1 100%; }
    
    
    
    
    


    /* v38 — polish: selected-chip close alignment + slightly stronger secondary-filter grey. */
    .dimap-refine-facets .dimap-facet-trigger {
      background: #f1f4f7;
      border-color: #c7d2de;
      color: #465a71;
      box-shadow: none;
    }
    .dimap-refine-facets .dimap-facet-trigger:hover,
    .dimap-refine-facets .dimap-facet-trigger[aria-expanded="true"],
    .dimap-refine-facets .dimap-facet-trigger.is-selected {
      background: #eaf0f5;
      border-color: #b8c6d5;
      color: #31475f;
    }
    .dimap-filter-chip { align-items: center; }
    .dimap-filter-chip .dimap-chip-remove {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      align-self: center;
      flex: 0 0 20px;
      width: 20px;
      height: 20px;
      font-size: 18px;
      line-height: 1;
      font-weight: 500;
      transform: translateY(-1px);
      padding: 0;
    }



    /* v39 — secondary filters back to white; global clear aligns on the same row. */
    .dimap-results-refine {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      min-width: 0;
      margin-top: 6px;
    }
    .dimap-refine-facets { flex: 1 1 auto; }
    .dimap-refine-facets .dimap-facet-trigger {
      background: #fff;
      border-color: #d2dde8;
      color: #4b5f75;
    }
    .dimap-refine-facets .dimap-facet-trigger:hover,
    .dimap-refine-facets .dimap-facet-trigger[aria-expanded="true"],
    .dimap-refine-facets .dimap-facet-trigger.is-selected {
      background: #fff;
      border-color: #b8c8d8;
      color: #32485f;
    }
    
    
    @media(max-width: 760px) {
      .dimap-results-refine { gap: 8px; }
      
    }



    /* v40 — stronger option contrast and a small white gap between adjacent selected rows. */
    .dimap-facet-option { color: #43566f; }
    .dimap-facet-option-count { color: #60748b; }
    .dimap-facet-option.is-checked + .dimap-facet-option.is-checked { margin-top: 3px; }



    /* v41 — no layout shift on selection; stronger filter text contrast. */
    .dimap-facet-option {
      color: #2f4259;
    }
    .dimap-facet-option-label {
      color: #2f4259;
    }
    .dimap-facet-option-count {
      color: #435971;
      font-weight: 550;
    }
    /* Replace the v40 dynamic margin with a painted separator that never changes layout. */
    .dimap-facet-option.is-checked + .dimap-facet-option.is-checked {
      margin-top: 0;
    }
    .dimap-facet-option.is-checked {
      box-shadow: inset 0 -3px 0 #fff;
    }



    /* v42 — calm default state; semantic colour appears only on active/open controls. */
    .dimap-dimension--industry .dimap-facet-trigger,
    .dimap-dimension--knowhow .dimap-facet-trigger,
    .dimap-dimension--offer .dimap-facet-trigger,
    .dimap-dimension--markets .dimap-facet-trigger {
      background: #fff;
      border-color: #d3dde8;
      color: #34445d;
    }
    .dimap-dimension--industry .dimap-facet-trigger:hover { background: #f8fbfe; border-color: #bdcddd; }
    .dimap-dimension--knowhow .dimap-facet-trigger:hover { background: #f8fbf9; border-color: #c1d0c4; }
    .dimap-dimension--offer .dimap-facet-trigger:hover { background: #fcfaf7; border-color: #d4c7b6; }
    .dimap-dimension--markets .dimap-facet-trigger:hover { background: #fbf9fc; border-color: #cec4d5; }

    .dimap-dimension--industry .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--industry .dimap-facet-trigger.is-selected { background: #e8f1fb; border-color: #b7c8d6; }
    .dimap-dimension--knowhow .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--knowhow .dimap-facet-trigger.is-selected { background: #eef4ef; border-color: #c5d2c8; }
    .dimap-dimension--offer .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--offer .dimap-facet-trigger.is-selected { background: #f6f1ea; border-color: #dacdbc; }
    .dimap-dimension--markets .dimap-facet-trigger[aria-expanded="true"],
    .dimap-dimension--markets .dimap-facet-trigger.is-selected { background: #f1eaf6; border-color: #cec5d4; }

    .dimap-facet-option-label {
      color: #34445d;
      font-weight: 560;
    }
    .dimap-facet-option-count {
      color: #5b6e84;
      font-weight: 600;
    }
    .dimap-facet-option[style*="opacity: 0.52"],
    .dimap-facet-option[style*="opacity:.52"] { color: #7b8b9e; }



    /* v43 — selected-but-closed primary filters stay visually neutral/white. */
    .dimap-dimension .dimap-facet-trigger.is-selected[aria-expanded="false"] {
      background: #fff;
      border-color: #d2dde8;
      color: #34445d;
    }
    .dimap-dimension .dimap-facet-trigger.is-selected[aria-expanded="false"] .dimap-facet-title,
    .dimap-dimension .dimap-facet-trigger.is-selected[aria-expanded="false"] .dimap-facet-chevron {
      color: #34445d;
    }


    /* v45 — Cards: stronger separation from the white page; Industry + Name act as one visual block. */
    .dimap-card {
      border-color: #d5dde6;
      box-shadow: 0 3px 10px #18294312;
    }
    .dimap-card:hover {
      border-color: #c5d0dc;
      box-shadow: 0 7px 18px #1829431a;
    }
    .dimap-card .dimap-logo {
      margin-bottom: 14px;
    }
    .dimap-card .dimap-place {
      flex: 0 0 18px;
      min-height: 18px;
      margin: 0 0 3px;
      color: #66788e;
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .15em;
      line-height: 1.2;
    }
    .dimap-card .dimap-name {
      margin: 0;
      -webkit-line-clamp: 3;
      line-clamp: 3;
    }
    @media(max-width: 620px) {
      .dimap-card .dimap-logo { margin-bottom: 10px; }
      .dimap-card .dimap-place {
        flex-basis: 16px;
        min-height: 16px;
        margin-bottom: 2px;
        font-size: 9px;
        letter-spacing: .13em;
      }
    }


    /* v46 — Cards: restore the same discreet logo frame used in List/Modal. */
    .dimap-card .dimap-logo {
      width: 82%;
      max-width: 190px;
      height: 60px;
      min-height: 60px;
      margin-bottom: 10px;
      padding: 6px 10px;
      border: 1px solid #dce5ee;
      border-radius: 10px;
      background: #fff;
      box-shadow: none;
    }
    .dimap-card .dimap-logo img {
      max-width: 88%;
      max-height: 46px;
    }
    @media(max-width: 620px) {
      .dimap-card .dimap-logo {
        width: 86%;
        max-width: 160px;
        height: 53px;
        min-height: 53px;
        margin-bottom: 8px;
        padding: 5px 8px;
        border: 1px solid #dce5ee;
        border-radius: 8px;
        background: #fff;
      }
      .dimap-card .dimap-logo img { max-width: 90%; max-height: 39px; }
    }


    /* v47 — Cards: restore Industry size and give the Industry + Name block more breathing room. */
    .dimap-card .dimap-logo { margin-bottom: 12px; }
    .dimap-card .dimap-place {
      margin-bottom: 7px;
      font-size: 11px;
    }
    @media(max-width: 620px) {
      .dimap-card .dimap-logo { margin-bottom: 10px; }
      .dimap-card .dimap-place {
        margin-bottom: 5px;
        font-size: 9px;
      }
    }


    /* v56 — public header navigation + language selector + editorial About layout. */
    .dimap-brand-inner { position: relative; }
    .dimap-brand-title { min-width: 0; }
    .dimap-header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; flex: 0 0 auto; }

    /* Desktop language selector: always visible, directly before the burger. */
    .dimap-language-wrap { position: relative; flex: 0 0 auto; }
    .dimap-language-segmented {
      display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 2px;
      border: 1px solid #d7e0ea; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px #16273c08;
    }
    .dimap-language-button {
      display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 9px;
      border: 0; border-radius: 7px; background: transparent; color: #60738b; font-size: 11px; font-weight: 760;
      transition: background .15s ease, color .15s ease;
    }
    .dimap-language-button:hover { background: #f3f6f9; color: #263c55; }
    .dimap-language-button[aria-pressed="true"] { background: #111e34; color: #fff; }
    .dimap-language-compact { display: none; position: relative; }
    .dimap-language-trigger {
      display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; min-width: 53px; padding: 0 8px 0 10px;
      border: 1px solid #d7e0ea; border-radius: 8px; background: #fff; color: #223046; box-shadow: 0 1px 3px #16273c08;
      font-size: 11px; font-weight: 780;
    }
    .dimap-language-trigger:hover, .dimap-language-trigger[aria-expanded="true"] { background: #f5f8fb; border-color: #bdcad8; }
    .dimap-language-trigger svg { width: 12px; height: 12px; transition: transform .15s ease; }
    .dimap-language-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
    .dimap-language-menu {
      position: absolute; z-index: 125; top: calc(100% + 7px); right: 0; width: 142px; padding: 5px;
      border: 1px solid #d9e3ed; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px #172a3f20;
    }
    .dimap-language-menu button {
      display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 36px; padding: 7px 9px;
      border: 0; border-radius: 6px; background: transparent; color: #40546b; font-size: 11.5px; font-weight: 650; text-align: left;
    }
    .dimap-language-menu button:hover, .dimap-language-menu button[aria-checked="true"] { background: #f2f6fa; color: #173e67; }
    .dimap-language-menu button[aria-checked="true"]::after { content: "✓"; color: #174a93; font-weight: 800; }

    /* More intentional project menu: icon, clear label and generous hit area. */
    .dimap-menu-wrap { position: relative; }
    .dimap-menu-trigger {
      display: inline-flex; align-items: center; justify-content: center;
      width: 36px; height: 36px; padding: 0; border: 1px solid #d7e0ea; border-radius: 10px;
      background: #fff; color: #34495f; box-shadow: 0 1px 3px #16273c08;
      transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    .dimap-menu-trigger:hover, .dimap-menu-trigger[aria-expanded="true"] { background: #f5f8fb; border-color: #bdcad8; color: #152f4d; }
    .dimap-menu-trigger svg { width: 18px; height: 18px; }
    .dimap-header-menu {
      position: absolute; z-index: 120; top: calc(100% + 8px); right: 0;
      width: 224px; padding: 7px; border: 1px solid #d9e3ed; border-radius: 13px;
      background: #fff; box-shadow: 0 16px 38px #172a3f24;
    }
    .dimap-header-menu-item {
      display: flex; align-items: center; justify-content: flex-start; gap: 10px;
      width: 100%; min-height: 48px; padding: 7px 9px; border: 0; border-radius: 9px;
      background: transparent; color: #31475e; font-size: 12.5px; font-weight: 690; text-align: left;
      text-decoration: none;
    }
    .dimap-header-menu-item:hover, .dimap-header-menu-item:focus-visible { background: #f2f6fa; color: #173e67; outline: none; }
    .dimap-menu-item-icon {
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px;
      border-radius: 8px; background: #f2f5f8; color: #4f647a;
    }
    .dimap-header-menu-item:hover .dimap-menu-item-icon { background: #e8f0f7; color: #234b70; }
    .dimap-menu-item-icon svg { width: 15px; height: 15px; }
    .dimap-menu-item-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
    .dimap-menu-item-copy strong { color: inherit; font-size: 12.5px; font-weight: 720; line-height: 1.2; }
    .dimap-menu-item-copy small { color: #8291a2; font-size: 10px; font-weight: 550; line-height: 1.25; }
    .dimap-menu-item-external { margin-left: auto; color: #8393a4; }
    .dimap-menu-item-external svg { width: 13px; height: 13px; }

    .dimap-about-overlay {
      position: fixed; inset: 0; z-index: 100020; display: none; align-items: center; justify-content: center;
      padding: 20px; background: #091d38a6;
    }
    .dimap-about-overlay.is-open { display: flex; }
    .dimap-about-modal {
      width: 100%; max-width: 1120px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
      border-radius: 17px; background: #fff; box-shadow: 0 24px 75px #071c3630;
    }
    .dimap-about-head {
      position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px;
      padding: 17px 22px; border-bottom: 1px solid #e1e8f2; background: #fff;
    }
    
    
    .dimap-about-head h2 { margin: 0; color: #202a3a; font-size: 20px; font-weight: 760; line-height: 1.25; }
    .dimap-about-close {
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 35px; width: 35px; height: 35px;
      padding: 0; border: 1px solid #dce5f0; border-radius: 9px; background: #fff; color: #17263d;
      font-size: 20px; line-height: 1; font-weight: 500;
    }
    .dimap-about-close:hover { background: #f5f8fb; border-color: #c4d1de; }
    .dimap-about-body { padding: 24px 28px 30px; }
    
    
    
    .dimap-about-grid { display: block; }
    .dimap-about-section {
      min-width: 0; margin: 0 0 30px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    }
    .dimap-about-section:last-child { margin-bottom: 0; }
    .dimap-about-section.is-wide { grid-column: auto; }
    .dimap-about-section h3 {
      display: flex; align-items: center; gap: 13px; margin: 0 0 13px;
      color: #657890; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
    }
    .dimap-about-section h3::before { content: ""; flex: 0 0 38px; height: 1px; background: #174a93; }
    .dimap-about-section h3::after { content: ""; flex: 1 1 auto; height: 1px; background: #e1e7ee; }
    .dimap-about-section-heading { margin: 0 0 10px; color: #17243a; font-size: 18px; font-weight: 740; line-height: 1.35; }
    .dimap-about-copy { max-width: 1040px; }
    .dimap-about-copy p { margin: 0 0 10px; color: #37404b; font-size: 13.5px; line-height: 1.68; }
    .dimap-about-copy p:last-child { margin-bottom: 0; }

    /* Structured block types remain supported by the shared renderer, but without card shells. */
    .dimap-about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 900px; }
    .dimap-about-stat { min-width: 0; padding: 0 12px 0 0; border-right: 1px solid #e1e7ee; background: transparent; }
    .dimap-about-stat:last-child { border-right: 0; }
    .dimap-about-stat-label { margin-bottom: 4px; color: #7b8b9d; font-size: 9.5px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
    .dimap-about-stat-value { color: #203248; font-size: 13px; font-weight: 720; line-height: 1.35; overflow-wrap: anywhere; }
    .dimap-about-section--highlight { background: transparent; }
    .dimap-about-links { display: flex; flex-wrap: wrap; gap: 8px; }
    .dimap-about-link {
      display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #d8e2ec; border-radius: 8px;
      background: #fff; color: #2d5579; font-size: 11.5px; font-weight: 700; text-decoration: none;
    }
    .dimap-about-link:hover { background: #f3f7fb; border-color: #bccedf; }
    .dimap-about-partners { display: flex; flex-wrap: wrap; gap: 7px; }
    .dimap-about-partner { padding: 6px 9px; border: 1px solid #dce5ee; border-radius: 999px; background: #f7f9fb; color: #45586e; font-size: 11px; font-weight: 650; }
    .dimap-about-image { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: 9px; }

    @media(max-width: 620px) {
      .dimap-brand-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .dimap-header-actions { gap: 6px; }
      .dimap-language-segmented { display: none; }
      .dimap-language-compact { display: block; }
      .dimap-menu-trigger { width: 34px; height: 34px; border-radius: 8px; }
      .dimap-header-menu { right: 0; width: 212px; }
      .dimap-about-overlay { padding: 9px; }
      .dimap-about-modal { max-height: calc(100dvh - 18px); border-radius: 14px; }
      .dimap-about-head { padding: 14px; }
      .dimap-about-head h2 { font-size: 17px; }
      .dimap-about-body { padding: 18px 14px 21px; }
      
      
      
      .dimap-about-section { margin-bottom: 25px; }
      .dimap-about-section h3 { gap: 9px; font-size: 9.5px; letter-spacing: .1em; }
      .dimap-about-section h3::before { flex-basis: 26px; }
      .dimap-about-section-heading { font-size: 16px; margin-bottom: 8px; }
      .dimap-about-copy p { font-size: 12.5px; line-height: 1.65; }
      .dimap-about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
      .dimap-about-stat:nth-child(2n) { border-right: 0; padding-left: 12px; }
    }


    /* v57 — simplified project menu, editorial About header, shared issue form and legal footer. */
    .dimap-header-menu { width: 258px; padding: 8px; }
    .dimap-header-menu-item { min-height: 43px; padding: 8px 10px; gap: 10px; border-radius: 8px; }
    .dimap-menu-item-icon {
      flex: 0 0 18px; width: 18px; height: 18px; border-radius: 0; background: transparent; color: #61758a;
    }
    .dimap-header-menu-item:hover .dimap-menu-item-icon { background: transparent; color: #234b70; }
    .dimap-menu-item-icon svg { width: 17px; height: 17px; }
    .dimap-menu-item-copy { display: block; flex: 1 1 auto; min-width: 0; }
    .dimap-menu-item-copy strong { display: block; font-size: 12.5px; font-weight: 690; line-height: 1.3; }
    .dimap-menu-item-copy small { display: none; }
    .dimap-menu-item-external { display: inline-flex; margin-left: auto; }
    .dimap-header-menu-item[aria-disabled="true"] { cursor: default; }
    /* v58 — text-only project menu; avoid ambiguous decorative icons. */
    .dimap-header-menu-item {
      display: flex; align-items: center; min-height: 41px; padding: 9px 12px; gap: 0;
      color: #31475e; font-size: 12.5px; font-weight: 690; line-height: 1.3;
    }
    .dimap-about-copyright {
      margin-top: 31px; padding-top: 17px; border-top: 1px solid #e1e7ee;
      color: #77889b; font-size: 11px; font-weight: 550; line-height: 1.45;
      text-transform: none; letter-spacing: 0;
    }

    .dimap-about-head { align-items: flex-start; padding: 21px 24px 18px; }
    
    
    .dimap-about-head h2 { font-size: 24px; letter-spacing: -.015em; }
    .dimap-about-body { padding-top: 24px; }
    .dimap-about-section:first-child { margin-top: 0; }

    .dimap-support-overlay {
      position: fixed; inset: 0; z-index: 100025; display: none; align-items: center; justify-content: center;
      padding: 20px; background: #091d38a6;
    }
    .dimap-support-overlay.is-open { display: flex; }
    .dimap-support-modal {
      width: 100%; max-width: 980px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
      border-radius: 17px; background: #fff; box-shadow: 0 24px 75px #071c3630;
    }
    .dimap-support-head {
      position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 17px 22px; border-bottom: 1px solid #e1e8f2; background: #fff;
    }
    .dimap-support-head h2 { margin: 0; color: #202a3a; font-size: 21px; font-weight: 760; line-height: 1.25; }
    .dimap-support-close {
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 35px; width: 35px; height: 35px; padding: 0;
      border: 1px solid #dce5f0; border-radius: 9px; background: #fff; color: #17263d; font-size: 20px; line-height: 1; font-weight: 500;
    }
    .dimap-support-close:hover { background: #f5f8fb; border-color: #c4d1de; }
    .dimap-support-form { display: grid; gap: 22px; padding: 24px 28px 26px; }
    .dimap-support-contact-grid { display: grid; grid-template-columns: .8fr .8fr 1.65fr; gap: 20px; }
    .dimap-support-form label { display: block; min-width: 0; }
    .dimap-support-form label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .dimap-support-form input, .dimap-support-form textarea {
      width: 100%; border: 1px solid #d8e3ed; border-radius: 11px; background: #f5f8fa; color: #25384e; outline: none;
      font-size: 13px; line-height: 1.5;
    }
    .dimap-support-form input { height: 44px; padding: 0 16px; }
    .dimap-support-form textarea { min-height: 215px; padding: 14px 16px; resize: vertical; }
    .dimap-support-form input:focus, .dimap-support-form textarea:focus { border-color: #88a8c8; box-shadow: none; background: #fff; }
    .dimap-support-form input::placeholder, .dimap-support-form textarea::placeholder { color: #6f7b88; }
    .dimap-support-type { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; border: 1px solid #d9e3ed; border-radius: 9px; background: #fff; }
    .dimap-support-type button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #667a91; font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
    .dimap-support-type button.is-active { background: #111e34; color: #fff; }
    .dimap-support-actions { display: flex; align-items: center; gap: 12px; padding-top: 2px; }
    .dimap-support-submit { min-height: 36px; padding: 0 14px; border: 1px solid #d7e1eb; border-radius: 9px; background: #fff; color: #17263d; font-size: 11.5px; font-weight: 720; }
    .dimap-support-submit:hover { background: #f5f8fb; border-color: #becddb; }
    .dimap-support-status { color: #718399; font-size: 11px; line-height: 1.4; }
    .dimap-support-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
    .dimap-support-status.is-success { color: #1f6f43; }
    .dimap-support-status.is-error { color: #a12a2a; }

    @media(max-width: 620px) {
      .dimap-header-menu { width: 245px; }
      .dimap-about-head { padding: 17px 14px 15px; }
      .dimap-about-head h2 { font-size: 20px; }
      .dimap-support-overlay { padding: 9px; }
      .dimap-support-modal { max-height: calc(100dvh - 18px); border-radius: 14px; }
      .dimap-support-head { padding: 14px; }
      .dimap-support-head h2 { font-size: 18px; }
      .dimap-support-form { gap: 16px; padding: 17px 14px 20px; }
      .dimap-support-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
      .dimap-support-form input { height: 44px; font-size: 16px; }
      .dimap-support-form textarea { min-height: 180px; font-size: 16px; }
      .dimap-support-type { width: 100%; }
      .dimap-support-type button { flex: 1 1 50%; min-width: 0; padding: 0 7px; font-size: 9.5px; }
      .dimap-support-actions { align-items: flex-start; flex-direction: column; }
    }


    /* v59 — coherent navigation, selectors, issue form and in-modal legal notice. */
    .dimap-header-menu { width: 310px; padding: 8px; }
    .dimap-header-menu-item {
      display: flex; align-items: center; gap: 11px; width: 100%; min-height: 56px;
      padding: 9px 10px; border: 0; border-radius: 10px; background: transparent;
      color: #31475e; text-align: left; text-decoration: none;
    }
    .dimap-header-menu-item:hover, .dimap-header-menu-item:focus-visible { background: #f3f6f9; color: #173e67; outline: none; }
    .dimap-menu-item-icon {
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px;
      width: 38px; height: 38px; border: 1px solid #dce5f0; border-radius: 9px;
      background: #fff; color: #314b64;
    }
    .dimap-header-menu-item:hover .dimap-menu-item-icon { background: #fff; border-color: #bdcddd; color: #173e67; }
    .dimap-menu-item-icon svg { width: 20px; height: 20px; }
    .dimap-menu-item-letter { display: block; font-size: 20px; font-weight: 760; line-height: 1; transform: translateY(-.5px); }
    .dimap-menu-item-copy { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 3px; }
    .dimap-menu-item-copy strong { display: block; color: inherit; font-size: 12.5px; font-weight: 730; line-height: 1.2; }
    .dimap-menu-item-copy small { display: block; color: #8291a2; font-size: 10.5px; font-weight: 550; line-height: 1.25; }
    .dimap-menu-item-external { display: inline-flex; flex: 0 0 auto; margin-left: auto; color: #8393a4; }
    .dimap-menu-item-external svg { width: 14px; height: 14px; }

    /* Language and issue-type selectors use the same visual grammar as the View selector. */
    .dimap-language-segmented,
    .dimap-support-type {
      gap: 2px; padding: 2px; border: 1px solid var(--dimap-line); border-radius: 11px;
      background: #f5f8fb; box-shadow: none;
    }
    .dimap-language-segmented { height: 36px; border-radius: 10px; }
    .dimap-language-button,
    .dimap-support-type button {
      display: inline-flex; align-items: center; justify-content: center; min-height: 33px;
      padding: 0 11px; border: 0; border-radius: 8px; background: transparent;
      color: #607490; font-size: 12px; font-weight: 650; text-transform: none;
    }
    .dimap-language-button { height: 30px; min-height: 30px; border-radius: 7px; }
    .dimap-language-button:hover,
    .dimap-support-type button:hover { background: #e9eff6; color: #203d5e; }
    .dimap-language-button[aria-pressed="true"],
    .dimap-support-type button.is-active { background: #082747; color: #fff; box-shadow: 0 1px 2px #122a4122; }
    .dimap-language-trigger {
      min-height: 34px; border-color: var(--dimap-line); border-radius: 9px;
      background: #f5f8fb; color: #223046; box-shadow: none;
    }
    .dimap-language-trigger:hover, .dimap-language-trigger[aria-expanded="true"] { background: #e9eff6; border-color: #c7d4e1; }

    /* Issue form fields use the same neutral surfaces as the cartography. */
    .dimap-support-form input,
    .dimap-support-form textarea {
      border-color: var(--dimap-line); background: #f8fafc; color: #25384e;
      font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.5;
    }
    .dimap-support-form input::placeholder,
    .dimap-support-form textarea::placeholder { color: #6f7b88; font-family: inherit; font-size: inherit; font-weight: 400; }
    .dimap-support-form input:focus,
    .dimap-support-form textarea:focus { border-color: #789bc3; background: #fff; box-shadow: 0 0 0 3px #dbe9f655; }

    /* Legal notice reuses the About modal shell and editorial hierarchy. */
    .dimap-legal-modal { display: flex; flex-direction: column; overflow: hidden; }
    .dimap-legal-modal .dimap-about-head { flex: 0 0 auto; position: relative; }
    .dimap-legal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 24px; }
    .dimap-legal-content { max-width: 1040px; }
    .dimap-legal-content h2 {
      display: flex; align-items: center; gap: 13px; margin: 0 0 18px; padding-top: 5px;
      color: #657890; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; line-height: 1.35; text-transform: uppercase;
    }
    .dimap-legal-content h2:not(:first-child) { margin-top: 32px; }
    .dimap-legal-content h2::before { content: ""; flex: 0 0 38px; height: 1px; background: #174a93; }
    .dimap-legal-content h2::after { content: ""; flex: 1 1 auto; height: 1px; background: #e1e7ee; }
    .dimap-legal-content h3 { margin: 20px 0 8px; color: #17243a; font-size: 16px; font-weight: 740; line-height: 1.4; }
    .dimap-legal-content p { margin: 0 0 10px; color: #37404b; font-size: 13.5px; line-height: 1.68; }
    .dimap-legal-content ul, .dimap-legal-content ol { margin: 0 0 14px 20px; padding: 0; color: #37404b; font-size: 13.5px; line-height: 1.65; }
    .dimap-legal-content li { margin: 0 0 5px; }
    .dimap-legal-loading { color: #718399 !important; }

    @media(max-width: 620px) {
      .dimap-header-menu { width: min(310px, calc(100vw - 24px)); }
      .dimap-header-menu-item { min-height: 54px; padding: 8px 9px; gap: 10px; }
      .dimap-menu-item-icon { flex-basis: 36px; width: 36px; height: 36px; }
      .dimap-menu-item-icon svg { width: 19px; height: 19px; }
      .dimap-menu-item-letter { font-size: 19px; }
      .dimap-menu-item-copy strong { font-size: 12px; }
      .dimap-menu-item-copy small { font-size: 10px; }
      .dimap-support-type button { font-size: 11px; }
      .dimap-support-form input, .dimap-support-form textarea { font-size: 16px; }
      .dimap-legal-content h2 { gap: 9px; font-size: 9.5px; letter-spacing: .1em; }
      .dimap-legal-content h2::before { flex-basis: 26px; }
      .dimap-legal-content h3 { font-size: 15px; }
      .dimap-legal-content p, .dimap-legal-content ul, .dimap-legal-content ol { font-size: 12.5px; }
    }


    /* v60 — single-title editorial modals, neutral fading rules and corrected card-modal close alignment. */
    .dimap-dialog-title-wrap {
      display: flex; align-items: center; gap: 12px; min-width: 0;
    }
    .dimap-dialog-title-icon {
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px;
      width: 36px; height: 36px; padding: 0;
      border: 1px solid #d7e0ea; border-radius: 9px; background: #fff;
      color: #34495f; box-shadow: 0 1px 3px #16273c08;
    }
    .dimap-dialog-title-icon svg { width: 20px; height: 20px; display: block; }
    .dimap-dialog-title-icon--letter {
      font-size: 20px; font-weight: 760; line-height: 1; transform: translateY(-.5px);
    }
    .dimap-about-head, .dimap-support-head { align-items: center; }
    .dimap-about-head h2, .dimap-support-head h2 { margin: 0; }
    

    /* Section rules: neutral leading rule, then a line fading naturally to transparent. */
    .dimap-about-section h3::before,
    .dimap-legal-content h2::before {
      background: #65717e;
    }
    .dimap-about-section h3::after,
    .dimap-legal-content h2::after {
      background: linear-gradient(90deg, #d8e0e8 0%, #e6ebf0 58%, rgba(230,235,240,0) 100%);
    }

    /* The organization modal × uses its own centred glyph rather than font baseline positioning. */
    
    



    /* v62 — modal title icons use the same soft surface as the language/view selectors. */
    .dimap-dialog-title-icon { background: #f5f8fb; }

    @media(max-width: 620px) {
      .dimap-dialog-title-wrap { gap: 9px; }
      .dimap-dialog-title-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 8px; }
      .dimap-dialog-title-icon svg { width: 19px; height: 19px; }
      .dimap-dialog-title-icon--letter { font-size: 19px; }
    }



    /* v63 — List becomes a compact reading/comparison view; logo frames are harmonised. */
    .dimap-card .dimap-logo,
    .dimap-list-logo,
    .dimap-modal-logo {
      border: 1px solid #dce5ee;
      border-radius: 10px;
      background: #fff;
      box-shadow: none;
    }

    .dimap-card .dimap-logo {
      width: 140px;
      max-width: 140px;
      height: 60px;
      min-height: 60px;
      padding: 7px 10px;
    }
    .dimap-card .dimap-logo img { max-width: 100%; max-height: 46px; }

    .dimap-list-logo {
      flex: 0 0 140px;
      width: 140px;
      height: 60px;
      padding: 7px 10px;
    }
    .dimap-list-logo img { width: 100%; height: 100%; max-height: 46px; object-fit: contain; }
    .dimap-list-head-main { min-height: 60px; }

    .dimap-modal-logo {
      flex: 0 0 120px;
      width: 120px;
      height: 52px;
      padding: 7px 9px;
    }

    .dimap-list-identity-meta {
      display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
      min-height: 19px; margin-top: 6px;
    }
    .dimap-list-identity-meta .dimap-list-status { margin-top: 0; }
    
    .dimap-list-uid { color: #8391a1; font-size: 11px; font-weight: 550; line-height: 1.35; letter-spacing: .005em; }

    .dimap-list-description {
      margin-top: 14px;
      color: #53677e;
      font-size: 13px;
      line-height: 1.65;
      white-space: pre-line;
    }
    
    .dimap-list-tag--industry {
      border-color: #b7c8d6;
      background: #e8f1fb;
      color: #34445d;
      font-weight: 650;
    }
    

    @media(max-width: 620px) {
      .dimap-card .dimap-logo,
      .dimap-list-logo {
        width: 112px;
        height: 50px;
        min-height: 50px;
        padding: 6px 8px;
        border-radius: 9px;
      }
      .dimap-card .dimap-logo { max-width: 112px; }
      .dimap-card .dimap-logo img,
      .dimap-list-logo img { max-width: 100%; max-height: 38px; }
      .dimap-list-logo { flex-basis: 112px; }
      .dimap-list-head-main { min-height: 50px; }
      .dimap-modal-logo {
        flex: 0 0 104px;
        width: 104px;
        height: 48px;
        padding: 6px 8px;
        border-radius: 9px;
      }
      .dimap-list-identity-meta { gap: 6px; margin-top: 5px; }
      .dimap-list-uid { font-size: 10.5px; }
      .dimap-list-description { margin-top: 12px; font-size: 12.5px; }
    }

    /* v64 — List: dedicated logo column, full-card profile action, focused secondary actions. */
    .dimap-list-card {
      padding: 19px 21px 18px;
      border-color: #d5dde6;
      background: #fff;
      box-shadow: 0 3px 10px #18294312;
      cursor: pointer;
    }
    .dimap-list-card:not(.dimap-list-pdf):hover {
      transform: translateY(-2px);
      border-color: #c5d0dc;
      box-shadow: 0 7px 18px #1829431a;
    }
    .dimap-list-card:focus-visible {
      outline: 2px solid var(--dimap-primary);
      outline-offset: 2px;
    }
    .dimap-list-layout {
      display: grid;
      grid-template-columns: 160px minmax(0, 1fr);
      gap: 22px;
      align-items: start;
      min-width: 0;
    }
    .dimap-list-logo-column {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      min-width: 0;
      padding-top: 1px;
    }
    
    .dimap-list-head { align-items: flex-start; gap: 14px; min-width: 0; }
    .dimap-list-head-main { min-height: 0; }
    .dimap-list-name {
      margin: 0;
      color: #202d3f;
      cursor: inherit;
    }
    .dimap-list-name:hover { color: #202d3f; }
    .dimap-list-head-side {
      align-self: flex-start;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 9px 12px;
      max-width: 46%;
    }
    .dimap-list-description { margin-top: 14px; }
    .dimap-list-section { margin-top: 16px; padding-top: 14px; }
    
    .dimap-list-website {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 32px;
      padding: 6px 9px;
      border: 1px solid #d8e2ec;
      border-radius: 8px;
      background: #fff;
      color: #415872;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
      text-decoration: none;
    }
    .dimap-list-website:hover {
      background: #f5f8fb;
      border-color: #bacbdf;
      color: #203d5e;
      text-decoration: none;
    }
    .dimap-list-pdf-button { margin-left: 0; }

    @media(max-width: 620px) {
      .dimap-list-card { padding: 14px 13px; }
      .dimap-list-layout { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
      .dimap-list-logo-column { justify-content: flex-start; }
      .dimap-list-logo {
        flex: 0 0 100px;
        width: 100px;
        height: 48px;
        min-height: 48px;
        padding: 6px 8px;
      }
      .dimap-list-logo img { max-height: 36px; }
      .dimap-list-head { gap: 8px; flex-wrap: wrap; }
      .dimap-list-head-main { flex: 1 1 100%; min-height: 0; }
      .dimap-list-head-side {
        order: 2;
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
        justify-content: flex-start;
      }
      .dimap-list-pdf-button { margin-left: 0; }
      .dimap-list-description { margin-top: 11px; }
      .dimap-list-section { margin-top: 13px; padding-top: 12px; }
      
    }


    /* v65 — List hierarchy + semantic matched criteria + immediate DIMAP tag hints. */
    .dimap-list-head {
      padding-bottom: 13px;
      border-bottom: 1px solid #e5ebf1;
    }
    .dimap-list-head-side {
      gap: 8px;
    }
    .dimap-list-website {
      min-height: 35px;
      height: 35px;
      padding: 0 10px;
      border: 1px solid #d6e0ea;
      border-radius: 9px;
      background: #fff;
      color: #415872;
      font-size: 11px;
      font-weight: 750;
      letter-spacing: .01em;
      box-shadow: none;
    }
    .dimap-list-website:hover {
      background: #f3f7fc;
      color: #174a93;
      border-color: #b9cddd;
    }
    
    .dimap-list-description { margin-top: 13px; }
    .dimap-list-section { margin-top: 15px; padding-top: 0; border-top: 0; }
    .dimap-list-section--matched { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5ebf1; }
    .dimap-list-section h4 { margin-bottom: 8px; }
    .dimap-list-tag--industry { border-color: #bfd0dc; background: #e8f1fb; color: #34445d; }
    .dimap-list-tag--knowhow { border-color: #c5d2c8; background: #eef4ef; color: #34445d; }
    .dimap-list-tag--offer { border-color: #dacdbc; background: #f6f1ea; color: #34445d; }
    .dimap-list-tag--markets { border-color: #cec5d4; background: #f1eaf6; color: #34445d; }

    .dimap-hover-tooltip {
      position: fixed;
      z-index: 100004;
      max-width: min(220px, calc(100vw - 24px));
      padding: 6px 8px;
      border: 1px solid #ffffff18;
      border-radius: 6px;
      background: #082747;
      box-shadow: 0 6px 18px #071b2930;
      color: #fff;
      font-size: 10.5px;
      font-weight: 650;
      line-height: 1.3;
      white-space: normal;
      overflow-wrap: anywhere;
      text-align: left;
      pointer-events: none;
      opacity: 0;
      transform: translateY(2px);
      transition: opacity .08s ease, transform .08s ease;
    }
    .dimap-hover-tooltip.is-visible { opacity: 1; transform: translateY(0); }

    @media(max-width: 620px) {
      .dimap-list-head { padding-bottom: 11px; }
      .dimap-list-head-side { gap: 7px; }
      .dimap-list-website { height: 34px; min-height: 34px; padding: 0 9px; font-size: 10.5px; }
      .dimap-list-description { margin-top: 11px; }
      .dimap-list-section { margin-top: 13px; }
    }


    /* v67 — List: identity row aligned to logo bottom; location starts the content area. */
    .dimap-list-layout {
      display: grid;
      grid-template-columns: 160px minmax(0, 1fr);
      grid-template-rows: auto auto;
      column-gap: 22px;
      row-gap: 0;
      align-items: start;
      min-width: 0;
    }
    .dimap-list-logo-column {
      grid-column: 1;
      grid-row: 1;
      align-self: stretch;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-width: 0;
      padding-top: 0;
    }
    .dimap-list-head {
      grid-column: 2;
      grid-row: 1;
      align-self: stretch;
      min-height: 60px;
      padding-bottom: 13px;
      border-bottom: 1px solid #e5ebf1;
    }
    .dimap-list-head-main { min-height: 0; }
    .dimap-list-body {
      grid-column: 2;
      grid-row: 2;
      min-width: 0;
    }
    .dimap-list-body .dimap-list-location {
      width: fit-content;
      margin-top: 11px;
      color: #45586d;
      font-size: 12px;
      font-weight: 650;
    }
    .dimap-list-body .dimap-list-description { margin-top: 8px; }

    @media(max-width: 620px) {
      .dimap-list-layout {
        grid-template-columns: 104px minmax(0, 1fr);
        column-gap: 12px;
      }
      .dimap-list-head { min-height: 50px; padding-bottom: 11px; }
      .dimap-list-logo-column { justify-content: flex-start; }
      .dimap-list-body .dimap-list-location { margin-top: 9px; font-size: 11.5px; }
      .dimap-list-body .dimap-list-description { margin-top: 7px; }
    }


    /* Filter tag information buttons. */
    .dimap-facet-option { flex-wrap: wrap; }
    .dimap-facet-option-label-group {
      display: inline-flex; align-items: baseline; flex: 1 1 auto; min-width: 0; gap: 5px;
    }
    .dimap-facet-option-label {
      flex: 0 1 auto; min-width: 0; color: inherit; overflow-wrap: anywhere;
    }
    .dimap-facet-info {
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
      width: 17px; height: 17px; padding: 0; border: 0; border-radius: 4px;
      color: #405a73; background: #e9eff5; font-size: 12px; font-weight: 800;
      font-family: inherit; font-style: normal; line-height: 1; cursor: pointer; user-select: none;
      transform: translateY(1px);
    }
    .dimap-facet-info:hover, .dimap-facet-info:focus-visible {
      color: #173b60; background: #dce7f1; outline: none;
    }
    .dimap-facet-info[aria-expanded="true"] { color: #fff; background: #274c70; }
    .dimap-facet-option-description {
      flex: 0 0 calc(100% - 25px); margin: 1px 0 0 25px; padding: 8px 10px;
      border-left: 2px solid #d3dbe5; border-radius: 0 6px 6px 0;
      background: #f8fafc; color: #5a6e84; font-size: 11px; font-weight: 450;
      line-height: 1.48; cursor: default;
    }


    /* v84 — filter panel rhythm: tighter question/control pairing, exact vertical dividers, uniform section spacing. */
    .dimap-toolbar { gap: 14px; }
    .dimap-dimension {
      grid-template-rows: 28px auto;
      row-gap: 5px;
      padding-top: 0;
      padding-bottom: 0;
    }
    .dimap-dimension-question {
      min-height: 0;
      margin: 0;
    }
    /* Dividers run exactly from the top of the question to the bottom of the filter control. */
    .dimap-dimension + .dimap-dimension { border-left: 0; }
    .dimap-dimension + .dimap-dimension::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 1px;
      background: #d9e0e7;
      pointer-events: none;
    }
    /* Let the toolbar gap alone define spacing between primary, additional and active filters. */
    .dimap-results-refine { margin-top: 0; padding-top: 0; }
    .dimap-active-filters { margin-top: 0; }

    @media(max-width: 1150px) {
      .dimap-dimension:nth-child(odd),
      .dimap-dimension:nth-child(even) { border-left: 0; }
      .dimap-dimension + .dimap-dimension::before { display: none; }
      .dimap-dimension:nth-child(even)::before { display: block; }
    }

    @media(max-width: 620px) {
      .dimap-toolbar { gap: 12px; }
      .dimap-dimension {
        grid-template-rows: 32px auto;
        row-gap: 5px;
        padding-top: 0;
        padding-bottom: 0;
      }
      .dimap-dimension-question { min-height: 0; margin: 0; }
      .dimap-results-refine { margin-top: 0; padding-top: 0; }
      .dimap-active-filters { margin-top: 0; }
    }

    @media(max-width: 430px) {
      .dimap-dimension { grid-template-rows: 30px auto; row-gap: 5px; }
      .dimap-dimension-question { min-height: 0; margin: 0; }
    }

    /* v85 — one neutral section-divider language for selected filters and editorial modals. */
    .dimap-selected-filters-head {
      margin: 0;
    }
    .dimap-selected-filters-head + .dimap-active-filters {
      margin-top: 0;
    }

    /* Modal section headings start flush-left: LABEL + one neutral rule, no leading rule or fade. */
    .dimap-about-section h3::before,
    .dimap-legal-content h2::before {
      content: none !important;
      display: none !important;
    }
    .dimap-about-section h3::after,
    .dimap-legal-content h2::after {
      background: #e1e7ee !important;
    }
    .dimap-about-section h3,
    .dimap-legal-content h2 {
      gap: 9px;
    }


    /* v88 — clean desktop filter grid.
       Five equal primary tracks keep every main filter the same width.
       The 18px primary gutter gives the vertical separators real breathing room;
       Offer spans two tracks and reuses the same gutter between Products / Services.
       Additional filters use ten equal tracks with an 8px gutter: each is exactly
       half the width of one primary track while remaining top-aligned. */
    @media(min-width: 1151px) {
      .dimap-dimensions {
        --dimap-primary-gap: 18px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: var(--dimap-primary-gap);
        row-gap: 0;
        align-items: stretch;
      }
      .dimap-dimension {
        grid-template-rows: 20px auto;
        row-gap: 7px;
        padding: 0;
      }
      .dimap-dimension--industry { grid-column: span 1; }
      .dimap-dimension--knowhow { grid-column: span 1; }
      .dimap-dimension--offer { grid-column: span 2; }
      .dimap-dimension--markets { grid-column: span 1; }
      .dimap-dimension--offer .dimap-dimension-facets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--dimap-primary-gap);
      }
      .dimap-dimension-question {
        min-height: 0;
        margin: 0;
        align-items: flex-start;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
      }
      .dimap-dimension + .dimap-dimension::before {
        display: block;
        left: calc(var(--dimap-primary-gap) / -2);
      }

      .dimap-results-refine {
        --dimap-secondary-gap: 8px;
        display: grid;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        column-gap: var(--dimap-secondary-gap);
        row-gap: 0;
        align-items: start;
        width: 100%;
      }
      .dimap-refine-label {
        display: none;
      }
      .dimap-refine-facets {
        display: contents;
      }
      .dimap-refine-facets .dimap-facet {
        grid-column: span 1;
        width: 100%;
        min-width: 0;
        align-self: start;
      }
      .dimap-refine-facets .dimap-facet-trigger {
        width: 100%;
      }
      
    }


    /* v89 — precise filter geometry.
       Main controls share one bottom line; Products / Services use a tighter internal gap.
       Secondary filters follow the same five-group geometry with alternating 8px internal
       half-filter gaps and 18px group gutters, so group boundaries align exactly. */
    @media(min-width: 1151px) {
      .dimap-dimensions {
        --dimap-group-gap: 18px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: var(--dimap-group-gap);
        align-items: stretch;
      }
      .dimap-dimension {
        grid-template-rows: 20px 39px;
        row-gap: 7px;
        align-items: stretch;
      }
      .dimap-dimension-facets {
        align-self: end;
        align-items: end;
        min-height: 39px;
      }
      .dimap-dimension .dimap-facet,
      .dimap-dimension .dimap-facet-trigger {
        min-height: 39px;
      }
      .dimap-dimension--offer .dimap-dimension-facets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      /* v90 — one regular 10-column secondary grid.
         Every additional-filter gap is identical (18px), which keeps Cantons / Types /
         Legal Form evenly spaced while column 3 still starts exactly with Know-How. */
      .dimap-results-refine {
        display: grid;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 0;
        align-items: start;
        width: 100%;
      }
      .dimap-refine-facets { display: contents; }
      .dimap-refine-facets .dimap-facet {
        width: 100%;
        min-width: 0;
        align-self: start;
      }
      .dimap-refine-facets .dimap-facet:nth-child(1) { grid-column: 1; }
      .dimap-refine-facets .dimap-facet:nth-child(2) { grid-column: 2; }
      .dimap-refine-facets .dimap-facet:nth-child(3) { grid-column: 3; }
      .dimap-refine-facets .dimap-facet:nth-child(4) { grid-column: 4; }
      .dimap-refine-facets .dimap-facet:nth-child(5) { grid-column: 5; }
      .dimap-refine-facets .dimap-facet:nth-child(6) { grid-column: 6; }
      .dimap-refine-facets .dimap-facet:nth-child(7) { grid-column: 7; }
      .dimap-refine-facets .dimap-facet:nth-child(8) { grid-column: 8; }
      .dimap-refine-facets .dimap-facet:nth-child(9) { grid-column: 9; }
      .dimap-refine-facets .dimap-facet:nth-child(10) { grid-column: 10; }

      
    }


    /* v91 — shared horizontal axes for result views.
       List uses the full result width with no view-specific inset.
       Charts use one identical left/right inset for tabs and body content. */
    .dimap-list-panel,
    .dimap-list-results {
      width: 100%;
      min-width: 0;
      margin-left: 0;
      margin-right: 0;
      padding-left: 0;
      padding-right: 0;
    }

    /* v97 — Charts use the same outer vertical padding as the filter panel,
       while preserving the v96 horizontal axes. */
    .dimap-chart-tabs {
      padding-top: 18px;
      padding-left: 18px;
      padding-right: 18px;
    }
    .dimap-chart-content {
      padding-left: 18px;
      padding-right: 18px;
      padding-bottom: 17px;
    }

    @media(max-width: 620px) {
      .dimap-chart-tabs {
        padding-top: 13px;
        padding-left: 9px;
        padding-right: 9px;
      }
      .dimap-chart-content {
        padding-left: 9px;
        padding-right: 9px;
        padding-bottom: 14px;
      }
    }

    /* v95 — Results control bar uses the exact same inner horizontal padding as the filter panel.
       View selector aligns with the primary filter controls; right-side control aligns with Markets. */
    .dimap-results-heading {
      padding-left: 18px;
      padding-right: 18px;
    }

    /* v94 — List uses the same two horizontal axes as the filter panel.
       1) Card border = outer panel / results-toolbar edge.
       2) Card content = filter-control inner edge (18px gutter). */
    .dimap-list-panel {
      width: 100%;
      margin-left: 0;
      margin-right: 0;
      padding: 0;
    }
    .dimap-list-results {
      width: 100%;
      margin: 0;
      padding-left: 0;
      padding-right: 0;
    }
    .dimap-list-card {
      padding-left: 18px;
      padding-right: 18px;
    }

    /* Selected filters: label + rule + compact clear action at the far right. */
    .dimap-selected-filters-clear {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      order: 2;
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      margin: 0;
      padding: 0;
      border: 1px solid #dce5f0;
      border-radius: 6px;
      background: #fff;
      color: #65798f;
      box-shadow: 0 1px 2px #16273c08;
      font-size: 17px;
      font-weight: 500;
      line-height: 1;
    }
    .dimap-selected-filters-head::after { order: 1; }
    .dimap-selected-filters-clear:hover,
    .dimap-selected-filters-clear:focus-visible {
      background: #f5f8fb;
      border-color: #c4d1de;
      color: #263b53;
    }
    .dimap-selected-filters-clear:disabled {
      opacity: .4;
      cursor: default;
      background: #fff;
    }

    @media(max-width: 620px) {
      .dimap-list-results {
        padding-left: 0;
        padding-right: 0;
      }
    }


    /* v99 — List logo starts on the exact same inner left axis as the filters above. */
    .dimap-list-logo-column {
      justify-content: flex-start;
    }

    /* v98 — List cards use the same vertical inner padding as the filter panel. */
    .dimap-list-card {
      padding-top: 18px;
      padding-bottom: 17px;
    }
    @media(max-width: 620px) {
      .dimap-list-card {
        padding-top: 13px;
        padding-bottom: 14px;
      }
    }



    /* v100 — mobile refinement: compact toolbar, one-line filter questions,
       safe dropdowns, stacked List identity, no mobile PDF / nearby control,
       and horizontally scrollable chart tabs. Desktop remains unchanged. */
    @media(max-width: 620px) {
      /* Results control bar: row 1 = views + count; row 2 = contextual control, left aligned. */
      .dimap-results-heading {
        gap: 8px;
      }
      .dimap-results-main {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
      }
      .dimap-results-right {
        width: 100%;
        min-height: 0;
        margin-left: 0;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
      }
      .dimap-results-right[hidden] {
        display: none !important;
      }

      /* Primary filter groups use the full mobile width so every question stays on one line. */
      .dimap-dimensions {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
      }
      .dimap-dimension,
      .dimap-dimension:nth-child(odd),
      .dimap-dimension:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
      }
      .dimap-dimension-question {
        min-height: 0;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
      }

      /* Filter menus must always stay within the phone viewport. */
      .dimap-facet-menu,
      .dimap-refine-facets .dimap-facet-menu {
        width: min(315px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
      }
      .dimap-facet:nth-child(2n) .dimap-facet-menu {
        left: 0;
        right: auto;
      }
      .dimap-facet:nth-child(2n) .dimap-facet-menu.flip {
        left: auto;
        right: 0;
      }

      /* PDF actions are desktop-only. Keep Back available in the modal. */
      .dimap-list-head-side .dimap-list-pdf-button,
      .dimap-modal-pdf {
        display: none !important;
      }

      /* Nearby organizations is removed from the mobile modal. */
      .dimap-modal-nearby-control {
        display: none !important;
      }

      /* List: logo above organization identity, then body content. */
      .dimap-list-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 0;
        row-gap: 0;
      }
      .dimap-list-logo-column {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        justify-content: flex-start;
        margin-bottom: 12px;
      }
      .dimap-list-head {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
      }
      .dimap-list-body {
        grid-column: 1;
        grid-row: 3;
      }

      /* Charts: a single horizontal tab row with touch scrolling. */
      .dimap-chart-tabs {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 13px 9px 0;
      }
      .dimap-chart-tabs::-webkit-scrollbar {
        display: none;
      }
      .dimap-chart-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        min-height: 35px;
        padding: 0 10px;
      }
    }


    /* v101 — mobile filter rhythm and contextual-control alignment.
       Keep contextual controls hard-left, remove residual dimension dividers,
       and use one consistent vertical rhythm across the primary filters. */
    @media(max-width: 620px) {
      /* Context-specific control row is always anchored to the left edge. */
      .dimap-results-heading .dimap-results-right {
        width: 100%;
        margin-left: 0 !important;
        justify-content: flex-start !important;
        align-items: center;
      }
      .dimap-results-heading .dimap-sort-wrap,
      .dimap-results-heading .dimap-map-mode-control {
        margin-left: 0 !important;
        margin-right: 0;
      }

      /* No vertical axis separators on mobile. */
      .dimap-dimension::before,
      .dimap-dimension + .dimap-dimension::before,
      .dimap-dimension:nth-child(even)::before {
        content: none !important;
        display: none !important;
      }

      /* One mobile rhythm: question → control = 8px; group → group = 14px. */
      .dimap-dimensions {
        gap: 14px;
      }
      .dimap-dimension,
      .dimap-dimension:nth-child(odd),
      .dimap-dimension:nth-child(even) {
        grid-template-rows: auto auto;
        row-gap: 8px;
        padding: 0;
        border-left: 0 !important;
      }
      .dimap-dimension-question {
        min-height: 0;
        margin: 0;
        line-height: 1.3;
      }
      .dimap-dimension-facets,
      .dimap-dimension--offer .dimap-dimension-facets {
        gap: 8px;
      }
    }

    @media(max-width: 430px) {
      .dimap-dimensions { gap: 14px; }
      .dimap-dimension,
      .dimap-dimension:nth-child(odd),
      .dimap-dimension:nth-child(even) {
        grid-template-rows: auto auto;
        row-gap: 8px;
        padding: 0;
      }
    }



    /* v102 — one shared mobile inner gutter.
       The filter panel is the reference: every result control/view uses the same
       12px left/right inner axis while outer frames remain unchanged. */
    @media(max-width: 620px) {
      .dimap-results-heading {
        padding-left: 12px !important;
        padding-right: 12px !important;
      }
      .dimap-list-card {
        padding-left: 12px !important;
        padding-right: 12px !important;
      }
      .dimap-chart-tabs {
        padding-left: 12px !important;
        padding-right: 12px !important;
      }
      .dimap-chart-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
      }
    }


    /* v103 — mobile results toolbar: views, count and contextual control each get their own row.
       This prevents the organization count from overflowing on narrow iPhones. */
    @media(max-width: 620px) {
      .dimap-results-main {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
      }
      .dimap-results-heading .dimap-view-switch {
        align-self: flex-start;
        margin-left: 0;
      }
      .dimap-results-heading .dimap-count {
        display: block;
        width: auto;
        max-width: 100%;
        align-self: flex-start;
        margin: 0;
        white-space: nowrap;
      }
      .dimap-results-heading .dimap-results-right {
        width: 100%;
        margin: 0;
        align-self: stretch;
      }
    }


    /* v105 — minimal data reveal: no artificial delay, spinner or skeleton.
       Static chrome renders immediately; data-dependent areas fade in once the JSON is ready. */
    .dimap-dimensions,
    #dimapRefineWrap,
    #dimapSelectedFiltersHead,
    #dimapActiveFilters,
    #dimapCardsViewport,
    #dimapListPanel,
    #dimapMapPanel,
    #dimapChartsPanel,
    #dimapLoadMore,
    #dimapEmpty {
      transition: opacity 150ms ease;
    }

    html.dimap-data-loading .dimap-dimensions,
    html.dimap-data-loading #dimapRefineWrap,
    html.dimap-data-loading #dimapSelectedFiltersHead,
    html.dimap-data-loading #dimapActiveFilters,
    html.dimap-data-loading #dimapCardsViewport,
    html.dimap-data-loading #dimapListPanel,
    html.dimap-data-loading #dimapMapPanel,
    html.dimap-data-loading #dimapChartsPanel,
    html.dimap-data-loading #dimapLoadMore,
    html.dimap-data-loading #dimapEmpty {
      opacity: 0;
      pointer-events: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .dimap-dimensions,
      #dimapRefineWrap,
      #dimapSelectedFiltersHead,
      #dimapActiveFilters,
      #dimapCardsViewport,
      #dimapListPanel,
      #dimapMapPanel,
      #dimapChartsPanel,
      #dimapLoadMore,
      #dimapEmpty { transition: none; }
    }


    /* v106 — discreet Back to top control for long Cards/List views only. */
    .dimap-back-top {
      position: fixed; z-index: 9000; right: 22px; bottom: 22px;
      display: inline-flex; align-items: center; justify-content: center;
      width: 42px; height: 42px; padding: 0;
      border: 1px solid #d6e0ea; border-radius: 11px;
      background: rgba(255,255,255,.96); color: #34495f;
      box-shadow: 0 5px 18px #12263c1a; backdrop-filter: blur(3px);
      opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px);
      transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s, background .15s ease, border-color .15s ease;
    }
    .dimap-back-top.is-visible {
      opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
      transition-delay: 0s;
    }
    .dimap-back-top:hover { background: #f5f8fb; border-color: #bdcad8; color: #173e67; }
    .dimap-back-top svg { display: block; width: 18px; height: 18px; }
    body.dimap-modal-open .dimap-back-top { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

    @media(max-width: 620px) {
      .dimap-back-top { right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 10px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .dimap-back-top { transition: none; transform: none; }
    }



    /* v107 — Selected filters clear action sits at the far right of the divider line
       and uses the same custom DIMAP tooltip as modal micro-actions. */

    /* v109 — profile-driven filter presentation. */
    .dimap-header-menu { width: 280px; }
    .dimap-facet-menu,
    .dimap-refine-facets .dimap-facet-menu {
      width: min(var(--dimap-facet-menu-width, 280px), calc(100vw - 24px));
      max-width: calc(100vw - 24px);
    }

    @media(min-width: 1151px) {
      .dimap-dimension-question { font-size: 13.5px; }
      .dimap-refine-facets .dimap-facet--half { grid-column: span 1 !important; }
      .dimap-refine-facets .dimap-facet--full { grid-column: span 2 !important; }
    }

    @media(max-width: 620px) {
      .dimap-header-menu { width: min(280px, calc(100vw - 24px)); }
    }


/* v110 — language-aware filter widths and click-only information popovers. */

/* Same-address organization popup on the public map. */
.dimap-map-canvas .maplibregl-popup-content {
  padding: 0;
  border: 1px solid #dce5e9;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(26, 46, 62, .16);
  overflow: hidden;
  font-family: inherit;
}
.dimap-map-canvas .maplibregl-popup-close-button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #61758a;
  font-size: 20px;
  line-height: 28px;
}
.dimap-map-canvas .maplibregl-popup-close-button:hover { background: #f3f6f8; color: #203747; }
.dimap-map-address-popup { min-width: 220px; max-width: 320px; padding: 16px 14px 12px; color: #263b50; }
.dimap-map-address-popup-title { padding-right: 22px; font-size: 13px; line-height: 1.35; font-weight: 700; color: #203747; }
.dimap-map-address-popup-count { margin-top: 4px; font-size: 11px; color: #73869a; }
.dimap-map-address-popup-list {
  display: grid; gap: 5px; max-height: min(280px, 44dvh); margin-top: 11px; padding-right: 3px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.dimap-map-address-popup-item {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  background: #fff;
  color: #2f465e;
  text-align: left;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 600;
}
.dimap-map-address-popup-item:hover { background: #f7fafb; border-color: #c9d7df; }
.dimap-map-address-popup-item:focus-visible { outline: 2px solid var(--dimap-primary); outline-offset: 1px; }


/* v36 — unified focus treatment: no external blue frame anywhere in the public UI.
   Keyboard focus is conveyed by the component's own hover/active styling instead. */
.dimap-overlay :focus-visible, .dimap-about-overlay :focus-visible, .dimap-support-overlay :focus-visible, .dimap-map-canvas :focus-visible, .dimap-modal-mini-map :focus-visible{
  outline: none !important;
  outline-offset: 0 !important;
}
.dimap-facet-trigger:has(.dimap-facet-trigger-hit:focus-visible) {
  outline: none !important;
  border-color: #bbcee1;
  background: #f9fbfe;
}
.dimap-filter-connector:focus-visible,
.dimap-sort-trigger:focus-visible,
.dimap-map-recenter-control button:focus-visible,
.dimap-modal-nearby-switch:focus-visible,
.dimap-map-address-popup-item:focus-visible,
.dimap-list-card:focus-visible {
  outline: none !important;
}
.dimap-filter-connector:focus-visible,
.dimap-sort-trigger:focus-visible,
.dimap-map-recenter-control button:focus-visible,
.dimap-map-address-popup-item:focus-visible {
  background: #f5f8fb;
  border-color: #c4d1de;
}

.dimap-map-mode-switch-input:focus-visible, .dimap-modal-nearby-switch:focus-visible{
  outline: none !important;
  border-color: #94a9bc;
}
.dimap-chart-scroll:focus-visible { outline: none !important; }
.dimap-list-card:focus-visible { border-color: #c4d1de; background: #fbfcfe; }
.dimap-search input:focus,
.dimap-support-form input:focus,
.dimap-support-form textarea:focus {
  box-shadow: none !important;
}

/* Final public focus guard: component-specific rules must never reintroduce
   the browser-style external focus frame. */
*:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}
/* Discreet keyboard-only cue without any frame. */
button:focus-visible,
[role="button"]:focus-visible {
  filter: brightness(.97);
}

/* Similar organizations — secondary organization discovery view. */

.dimap-modal-similar-control {
  display: inline-flex; align-items: center; gap: 7px; min-height: 35px;
  padding: 0 8px 0 10px; border: 1px solid #d7e0e8; border-radius: 9px;
  background: #fff; color: #35495f; font-size: 10.5px; font-weight: 700; line-height: 1.2;
  cursor: pointer; user-select: none;
}
.dimap-modal-similar-control:hover { background: #f9fbfd; border-color: #bdcad6; }
.dimap-modal-similar-switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto;
  width: 30px; height: 18px; margin: 0; border: 1px solid #bbc9d7; border-radius: 99px;
  background: #dbe3ea; cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.dimap-modal-similar-switch::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #122a4133; transition: transform .16s ease;
}
.dimap-modal-similar-switch:checked { background: #082747; border-color: #082747; }
.dimap-modal-similar-switch:checked::before { transform: translateX(12px); }
.dimap-modal-similar-switch:focus-visible { outline: none !important; }
.dimap-modal.is-secondary-mode { display: flex; flex-direction: column; overflow: hidden; }
.dimap-modal.is-secondary-mode .dimap-modal-head { position: relative; flex: 0 0 auto; }
.dimap-modal.is-secondary-mode .dimap-modal-body { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.dimap-modal-body.is-similar .dimap-modal-main,
.dimap-modal-body.is-similar .dimap-modal-side { display: none !important; }
.dimap-similar-view { width: 100%; min-width: 0; margin: 0; padding-top: 14px; }
.dimap-similar-toolbar {
  position: relative; z-index: 5; width: 100%;
  margin: 0; padding: 11px 12px 10px;
  border: 1px solid var(--dimap-line); border-radius: 11px; background: #f8fafc;
}
.dimap-similar-section-title { margin: 0 0 10px; }











.dimap-similar-list-frame {
  width: 100%; margin-top: 12px; border: 1px solid var(--dimap-line); border-radius: 11px;
  background: #fff; overflow: hidden;
}
.dimap-similar-empty { padding: 24px 16px; color: var(--dimap-muted); font-size: 11px; }
.dimap-similar-list { width: 100%; }
.dimap-similar-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px;
  padding: 15px 16px; border: 0; border-bottom: 1px solid #eef2f6; background: #fff; color: #223046; text-align: left;
}
.dimap-similar-row:last-child { border-bottom: 0; }
.dimap-similar-row:hover { background: #f8fafc; }
.dimap-similar-row-name {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; font-weight: 750; line-height: 1.3;
}
.dimap-similar-row-location {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px;
  min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #37475e; font-size: 12px; font-weight: 750; text-align: right;
}
.dimap-similar-row-location svg { display: none; }
.dimap-similar-row-score {
  min-width: 48px; color: #1d3046; font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: right;
}

@media (max-width: 760px) {
  .dimap-similar-view { padding-top: 10px; }
  .dimap-similar-toolbar { padding: 9px 10px; }
  .dimap-similar-section-title { margin-bottom: 9px; }
  
  
  
  
  
  
  .dimap-similar-list-frame { margin-top: 10px; }
  .dimap-similar-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 13px 12px; }
  .dimap-similar-row-location { grid-column: 1; grid-row: 2; max-width: none; text-align: left; font-size: 11px; }
  .dimap-similar-row-score { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 620px) { .dimap-modal-similar-control > span { display: none; } .dimap-modal-similar-control { padding: 0 7px; } }

/* v51 — organization modal identity and actions are split into two responsive rows. */
.dimap-modal-top {
  position: sticky;
  top: 0;
  z-index: 3;
  flex: 0 0 auto;
  background: #fff;
}
.dimap-modal-top .dimap-modal-head {
  position: relative;
  top: auto;
  z-index: auto;
  border-bottom: 0;
}
.dimap-modal-top .dimap-modal-head .dimap-close {
  margin-left: auto;
}
.dimap-modal-head .dimap-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  line-height: 1;
}
.dimap-modal-head .dimap-close::before {
  content: "×";
  display: block;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-1px);
}
.dimap-modal-actionbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 7px 22px;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #e1e8f2;
  background: #f7f9fb;
}
.dimap-modal-actionbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.dimap-modal.is-secondary-mode .dimap-modal-top {
  position: relative;
  flex: 0 0 auto;
}
.dimap-modal.is-secondary-mode .dimap-modal-head {
  position: relative;
}

@media (max-width: 760px) {
  .dimap-modal-actionbar {
    padding: 7px 14px;
    gap: 8px;
  }
  .dimap-modal-actionbar-actions { gap: 6px; }
}

@media (max-width: 620px) {
  .dimap-modal-actionbar {
    min-height: 44px;
    padding: 6px 14px;
  }
}

/* v52 — Similar organizations polish and modal action layout. */
.dimap-modal-actionbar-actions {
  margin-left: 0;
}
.dimap-modal-actionbar .dimap-modal-similar-control {
  margin-left: auto;
}

/* Same top rhythm as the first information block in the normal profile. */
.dimap-similar-view {
  padding-top: 0;
}

/* Match the main results counter exactly. */



/* Compact comparison list: name | location + pin | gauge | match %. */
.dimap-similar-row {
  grid-template-columns: minmax(0, 1fr) auto 74px 48px;
  gap: 18px;
}
.dimap-similar-row-location {
  gap: 5px;
  color: #637895;
  font-size: 12px;
  font-weight: 500;
}
.dimap-similar-row-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #637895;
}
.dimap-similar-row-pin svg {
  display: block;
  width: 13px;
  height: 13px;
}
.dimap-similar-row-meter {
  position: relative;
  display: block;
  width: 74px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf1;
}
.dimap-similar-row-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1d3046;
}
.dimap-similar-row-score {
  color: #1d3046;
}

@media (max-width: 760px) {
  .dimap-similar-view { padding-top: 0; }
  
  .dimap-similar-row {
    grid-template-columns: minmax(0, 1fr) auto 48px;
    gap: 7px 10px;
  }
  .dimap-similar-row-location {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    max-width: none;
    text-align: left;
    font-size: 11px;
  }
  .dimap-similar-row-meter {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 58px;
  }
  .dimap-similar-row-score {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}


/* v53 — collapsible filters and mobile modal refinements. */
.dimap-filters-toggle-head { min-width: 0; }
.dimap-filters-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.dimap-filters-toggle > span:first-child { font-size: 11px; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.dimap-filters-toggle-count { color: #607492; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.dimap-filters-toggle-chevron { width: 14px; height: 14px; color: #71849d; transition: transform .16s ease; }
.dimap-filters-toggle.is-open .dimap-filters-toggle-chevron { transform: rotate(180deg); }
.dimap-filters-panel { display: grid; gap: 14px; min-width: 0; }
.dimap-filters-panel[hidden] { display: none !important; }

@media (max-width: 620px) {
  /* The collapsed filter panel leaves Search permanently available. */
  .dimap-filters-panel { gap: 12px; }

  /* Full Similar label fits because Previous / Next / PDF are hidden on mobile. */
  .dimap-modal-similar-control > span { display: inline !important; }
  .dimap-modal-similar-control { padding-left: 9px; padding-right: 9px; }

  /* Nearby remains available on phones; map gestures are independent from profile swipe. */
  .dimap-modal-nearby-control { display: inline-flex !important; }

  /* Public facts read more cleanly as three full-width cards on mobile. */
  .dimap-stat-grid { grid-template-columns: minmax(0, 1fr) !important; }

  /* With only Back on the left, Similar can keep its full wording on the right. */
  .dimap-modal-actionbar { align-items: center; }
  .dimap-modal-actionbar .dimap-modal-similar-control { max-width: calc(100% - 78px); }
}

/* v64 — Share remains on the left on mobile; Similar stays on the far right. */
@media (max-width: 620px) {
  .dimap-modal-actionbar { gap: 8px; }
  .dimap-modal-actionbar .dimap-modal-similar-control {
    margin-left: auto;
    max-width: calc(100% - 88px);
  }
}


/* v55 — lighter profile facts and simplified Top 10 Similar introduction. */
.dimap-stat-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.dimap-similar-toolbar {
  padding: 10px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #f7fafd;
  box-shadow: none;
}
.dimap-similar-section-title {
  margin: 0 0 7px;
}
.dimap-similar-description {
  margin: 0;
  color: #37475e;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.42;
}
@media (max-width: 760px) {
  .dimap-similar-toolbar { padding: 10px; }
  .dimap-similar-section-title { margin-bottom: 7px; }
  .dimap-similar-description { font-size: 11.5px; }
}


/* v56 — keep the organization modal visually stationary when entering Similar. */
.dimap-overlay.is-secondary-locked {
  align-items: flex-start;
}
.dimap-modal,
.dimap-modal.is-secondary-mode .dimap-modal-body {
  scrollbar-gutter: stable;
}



/* v82 — unified Search / Smart Search experience. */
.dimap-search-mode {
  display: inline-flex; align-items: center; flex: 0 0 auto; gap: 2px; padding: 3px;
  border: 1px solid #dce5ee; border-radius: 11px; background: #eef3f7;
}
.dimap-search-mode[hidden] { display: none; }
.dimap-search-mode-button {
  min-height: 40px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent;
  color: #60728a; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.dimap-search-mode-button:hover { color: #244462; background: #f8fafc; }
.dimap-search-mode-button.is-active { background: #fff; color: #183b5d; box-shadow: 0 1px 2px #1a324914; }

.dimap-smart-search { position: relative; flex: 1 1 420px; min-width: 190px; }
.dimap-smart-search[hidden] { display: none; }
.dimap-smart-search-shell { position: relative; width: 100%; height: 48px; }
.dimap-smart-search-shell:focus-within input { border-color: #789bc3; }
.dimap-smart-search-icon {
  position: absolute; z-index: 2; left: 16px; top: 50%; width: 21px; height: 21px;
  transform: translateY(-50%); color: #5c7492; pointer-events: none;
}
.dimap-smart-search input {
  display: block; width: 100%; height: 48px; padding: 0 52px 0 46px;
  border: 1px solid var(--dimap-line); border-radius: 12px; outline: 0; background: #fff;
  color: #15213b; font: inherit; font-size: 15px;
}
.dimap-smart-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.dimap-smart-search input::placeholder { color: #8291a6; }
.dimap-smart-clear {
  position: absolute; z-index: 4; top: 50%; right: 8px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #4f6f9e; font-size: 18px; font-weight: 650; cursor: pointer;
}
.dimap-smart-clear:hover { background: #edf3f9; color: #234b7a; }
.dimap-smart-clear[hidden] { display: none; }

.dimap-smart-menu {
  position: absolute; z-index: 80; top: calc(100% + 7px); right: 0; left: 0;
  max-height: min(560px, 62vh); overflow-y: auto; padding: 7px;
  border: 1px solid #dbe4ed; border-radius: 12px; background: #fff;
  box-shadow: 0 14px 34px #122c481c; overscroll-behavior: contain;
}
.dimap-smart-menu[hidden] { display: none; }
.dimap-smart-group-title {
  padding: 8px 9px 5px; color: #71839a; font-size: 9.5px; font-weight: 800;
  letter-spacing: .095em; text-transform: uppercase;
}
.dimap-smart-group-title:not(:first-child) { margin-top: 5px; border-top: 1px solid #eef2f5; padding-top: 11px; }
.dimap-smart-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 7px 9px;
  border-radius: 9px; background: transparent; color: #26394d; text-align: left; cursor: pointer;
}
.dimap-smart-option:hover, .dimap-smart-option.is-active { background: #f3f7fa; }
.dimap-smart-option-main { display: flex; flex: 1 1 auto; align-items: center; gap: 9px; min-width: 0; }
.dimap-smart-option-main.is-tag { display: block; min-width: 0; }
.dimap-smart-option-copy { min-width: 0; }
.dimap-smart-option-topline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dimap-smart-option-label { overflow: hidden; color: #26394d; font-size: 12.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dimap-smart-option-meta { overflow: hidden; color: #5f7288; font-size: 10.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dimap-smart-option-context {
  max-width: 100%; margin-top: 4px; overflow: hidden; color: #677a90; font-size: 10.5px; line-height: 1.35;
  text-overflow: ellipsis; white-space: nowrap;
}
.dimap-smart-option-count {
  flex: 0 0 auto; min-width: 28px; color: #708399; font-size: 10.5px; font-weight: 750;
  font-variant-numeric: tabular-nums; text-align: right;
}
.dimap-smart-option-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 27px; width: 27px; height: 27px;
  border: 1px solid #dce5ee; border-radius: 8px; background: #f7fafd; color: #637a92;
}
.dimap-smart-option-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dimap-smart-neutral-badge {
  display: inline-flex; align-items: center; min-height: 27px; max-width: 100%; padding: 4px 9px;
  border: 1px solid #d7e1ea; border-radius: 8px; background: #f7f9fb; color: #40566e;
  font-size: 11.5px; font-weight: 700; line-height: 1.3;
}
.dimap-smart-tag {
  display: inline-flex; align-items: center; min-width: 0; max-width: 100%; overflow: hidden;
  border: 1px solid #dce5ee; border-radius: 999px; background: #f7fafd; color: #34445d;
  font-size: 11px; font-weight: 650; line-height: 1.3;
}
.dimap-smart-tag-label { min-width: 0; overflow: hidden; padding: 6px 7px 6px 9px; text-overflow: ellipsis; white-space: nowrap; }


.dimap-smart-tag--industry { border-color: #bfd0dc; background: #e8f1fb; color: #365a76; }
.dimap-smart-tag--knowhow { border-color: #c5d2c8; background: #eef4ef; color: #476650; }
.dimap-smart-tag--offer { border-color: #dacdbc; background: #f6f1ea; color: #6e5b43; }
.dimap-smart-tag--markets { border-color: #cec5d4; background: #f1eaf6; color: #5d5368; }
.dimap-smart-empty { padding: 12px 10px; color: #74869a; font-size: 11.5px; }
.dimap-filter-chip--smart-structured { border-color: #d7e3ee; background: #f4f8fc; color: #344a63; }

/* Smart changes only how criteria are added; selected criteria stay visible in both modes. */
.dimap-toolbar.is-smart-search .dimap-filters-toggle-head,
.dimap-toolbar.is-smart-search #dimapFiltersPanel { display: none !important; }

@media(max-width: 620px) {
  .dimap-primary-row { gap: 8px; flex-wrap: nowrap; }
  .dimap-search, .dimap-smart-search { flex: 1 1 auto; min-width: 0; }
  .dimap-search-mode { flex: 0 0 auto; }
  .dimap-search-mode-button { min-height: 34px; padding: 0 9px; font-size: 10.5px; }
  .dimap-smart-search-shell, .dimap-smart-search input { height: 44px; }
  .dimap-smart-search-icon { left: 14px; width: 18px; height: 18px; }
  .dimap-smart-search input { padding-right: 42px; padding-left: 41px; font-size: 13px; }
  .dimap-smart-clear { right: 6px; width: 30px; height: 30px; }
  .dimap-smart-menu { max-height: 54vh; }
  .dimap-smart-option { gap: 8px; padding: 7px; }
  .dimap-smart-option-context { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}


/* v83 — Smart Search interaction refinements. */
.dimap-primary-row { flex-wrap: nowrap !important; }
.dimap-primary-row .dimap-search,
.dimap-primary-row .dimap-smart-search { flex: 1 1 auto !important; min-width: 0 !important; }
.dimap-search-mode { flex: 0 0 auto; margin-left: auto; }

.dimap-smart-option-main.is-tag { display: flex; align-items: center; }
.dimap-smart-option-actions {
  display: inline-flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; gap: 6px;
}
.dimap-smart-option-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: #eaf0f6; color: #536b83; font-size: 10.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; text-align: center;
}
.dimap-smart-option-info { transform: none; }
.dimap-smart-option-add {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; padding: 0;
  border: 1px solid #d4e0eb; border-radius: 6px; background: #fff; color: #365878;
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1; cursor: pointer;
}
.dimap-smart-option-add:hover, .dimap-smart-option-add:focus-visible {
  border-color: #bfd0df; background: #edf4fa; color: #173e67; outline: none;
}
.dimap-smart-option-copy { flex: 1 1 auto; min-width: 0; }

@media(max-width: 620px) {
  .dimap-primary-row { flex-wrap: nowrap !important; }
  .dimap-primary-row .dimap-search,
  .dimap-primary-row .dimap-smart-search { flex: 1 1 auto !important; min-width: 0 !important; }
  .dimap-search-mode { flex: 0 0 auto; margin-left: auto; }
  .dimap-smart-option-actions { gap: 5px; }
}


/* v84 — Smart Search suggestion flow and compact tag rows. */
.dimap-smart-option-topline { flex: 1 1 auto; width: 100%; }
.dimap-smart-option-topline .dimap-smart-option-info { flex: 0 0 auto; }
.dimap-smart-option-topline .dimap-smart-option-context {
  flex: 1 1 auto; min-width: 34px; max-width: none; margin: 0 0 0 1px;
  overflow: hidden; color: #677a90; font-size: 10.5px; line-height: 1.35;
  text-overflow: ellipsis; white-space: nowrap;
}
@media(max-width: 620px) {
  .dimap-smart-option-topline .dimap-smart-option-context {
    display: block; -webkit-line-clamp: unset; -webkit-box-orient: initial; white-space: nowrap;
  }
}

/* v87 — Smart Search: full structured rows and shared Boolean controls. */
.dimap-smart-option-main,
.dimap-smart-option-copy,
.dimap-smart-option-topline { min-width: 0; }

/* Structured information must remain complete; only explanatory Summary text may truncate. */
.dimap-smart-option-label,
.dimap-smart-option-meta {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dimap-smart-tag {
  flex: 0 1 auto;
  max-width: none;
  overflow: visible;
}
.dimap-smart-tag-label {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dimap-smart-option-topline {
  flex-wrap: nowrap;
  gap: 7px;
}
.dimap-smart-option-topline .dimap-smart-tag,
.dimap-smart-option-topline .dimap-smart-option-meta,
.dimap-smart-option-topline .dimap-smart-option-info {
  flex-shrink: 0;
}
.dimap-smart-option-topline .dimap-smart-option-context {
  flex: 1 1 auto;
  min-width: 24px;
  max-width: none;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stable right-side columns: count is wide enough for at least four digits, + stays last. */
.dimap-smart-option-actions {
  display: grid;
  grid-template-columns: minmax(44px, auto) 28px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.dimap-smart-option-count {
  box-sizing: border-box;
  justify-content: flex-start;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  text-align: left;
}
.dimap-smart-option-add { justify-self: end; }

/* Smart-only active criteria use the exact same Boolean control geometry as normal filters. */
.dimap-filter-group--smart .dimap-filter-term { display: inline-flex; align-items: center; gap: 7px; }

@media(max-width: 620px) {
  .dimap-smart-option-topline { gap: 6px; }
  .dimap-smart-option-topline .dimap-smart-option-context {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dimap-smart-option-actions { grid-template-columns: minmax(42px, auto) 26px; gap: 5px; }
  .dimap-smart-option-count { min-width: 42px; padding: 0 7px; }
}

/* v88 — Smart Search responsive layout and richer desktop rows. */
/* Desktop: keep the mode selector to the right of the active search field. */
.dimap-primary-row { flex-wrap: nowrap !important; }
.dimap-primary-row .dimap-search,
.dimap-primary-row .dimap-smart-search { flex: 1 1 auto !important; min-width: 0 !important; }
.dimap-search-mode { flex: 0 0 auto; margin-left: auto; touch-action: manipulation; }
.dimap-search-mode-button { touch-action: manipulation; }

/* Tag line: content uses the left side; actions are three stable columns: i | count | +. */
.dimap-smart-option-main.is-tag { display: flex; align-items: center; min-width: 0; }
.dimap-smart-option-topline { display: flex; flex: 1 1 auto; align-items: center; flex-wrap: nowrap; gap: 7px; min-width: 0; width: 100%; }
.dimap-smart-option-topline .dimap-smart-tag,
.dimap-smart-option-topline .dimap-smart-option-meta { flex: 0 0 auto; }
.dimap-smart-option-topline .dimap-smart-option-context {
  flex: 1 1 auto; min-width: 24px; margin: 0; overflow: hidden;
  color: #677a90; font-size: 10.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap;
}
.dimap-smart-option-actions {
  display: grid; grid-template-columns: 28px 48px 28px; align-items: center; gap: 6px; flex: 0 0 auto;
}
.dimap-smart-option-info { grid-column: 1; justify-self: center; transform: none; }
.dimap-smart-option-count {
  grid-column: 2; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; min-width: 48px; height: 22px; padding: 0 7px; text-align: center;
}
.dimap-smart-option-add { grid-column: 3; justify-self: end; }

/* Organization suggestions: desktop may use a second line (city · industry · year). */
.dimap-smart-option-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.dimap-smart-option-copy .dimap-smart-option-meta { color: #5f7288; font-size: 10.5px; font-weight: 650; }

@media(max-width: 620px) {
  /* Mobile: selector sits above the search mask, leaving the field and dropdown full width. */
  .dimap-primary-row { display: flex; flex-wrap: wrap !important; align-items: center; gap: 8px; }
  .dimap-search-mode { order: 0; flex: 0 0 auto; margin: 0; }
  .dimap-primary-row .dimap-search,
  .dimap-primary-row .dimap-smart-search { order: 1; flex: 1 1 100% !important; width: 100%; min-width: 0 !important; }
  .dimap-search-mode-button { min-height: 34px; padding: 0 10px; font-size: 11px; }

  /* 16px prevents iOS/Safari from zooming the page when the switch focuses a search input. */
  .dimap-search input,
  .dimap-smart-search input { font-size: 16px !important; }

  /* Mobile Smart results are deliberately compact and touch-first. */
  .dimap-smart-menu {
    right: 0; left: 0; width: 100%; max-height: 56vh; padding: 6px; overflow-y: auto;
    border-radius: 11px; overscroll-behavior: contain;
  }
  .dimap-smart-group-title {
    position: sticky; top: -6px; z-index: 2; margin: 0; padding: 9px 8px 6px; background: #fff;
    font-size: 9px;
  }
  .dimap-smart-group-title:not(:first-child) { margin-top: 3px; padding-top: 10px; }
  .dimap-smart-option { min-height: 46px; gap: 8px; padding: 8px; }
  .dimap-smart-option-main,
  .dimap-smart-option-main.is-tag { display: flex; align-items: center; gap: 9px; min-width: 0; }
  .dimap-smart-option-copy { display: block; min-width: 0; }
  .dimap-smart-option-label,
  .dimap-smart-tag-label,
  .dimap-smart-neutral-badge { font-size: 12.5px; line-height: 1.3; }
  .dimap-smart-option-icon { flex-basis: 28px; width: 28px; height: 28px; }

  /* Mobile keeps only the essential identity and the result count. */
  .dimap-smart-option-meta,
  .dimap-smart-option-context,
  .dimap-smart-option-info,
  .dimap-smart-option-add { display: none !important; }
  .dimap-smart-option-topline { display: block; min-width: 0; }
  .dimap-smart-tag { max-width: 100%; }
  .dimap-smart-tag-label { white-space: normal; overflow-wrap: anywhere; }
  .dimap-smart-option-actions {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; min-width: 44px;
  }
  .dimap-smart-option-count {
    display: inline-flex; width: auto; min-width: 38px; height: 22px; padding: 0 7px;
    align-items: center; justify-content: center; text-align: center;
  }
}

/* v89 — search polish: switching modes must not add a focus frame; both mobile fields share the same height. */
.dimap-search input:focus,
.dimap-smart-search-shell:focus-within input,
.dimap-smart-search input:focus {
  border-color: var(--dimap-line) !important;
  box-shadow: none !important;
  outline: none !important;
}
@media(max-width: 620px) {
  .dimap-search input,
  .dimap-smart-search-shell,
  .dimap-smart-search input { height: 48px !important; }
}

    /* v100 — Legal & privacy: true edge-to-edge divider; label remains discreet and left aligned. */
    .dimap-header-menu-legal {
      position: relative; display: block; box-sizing: border-box; width: 100%; min-height: 0; margin: 3px 0 2px; padding: 9px 10px 5px;
      border: 0; border-radius: 0; background: transparent; color: #8291a2;
      font: inherit; font-size: 10.5px; font-weight: 550; line-height: 1.3; text-align: left;
      text-decoration: none; cursor: pointer;
    }
    .dimap-header-menu-legal::before {
      content: ""; position: absolute; top: 0; left: -7px; right: -7px; height: 1px; background: #dfe6ed;
    }
    .dimap-header-menu-legal:hover,
    .dimap-header-menu-legal:focus-visible {
      color: #52677d; background: transparent; outline: none;
    }
    .dimap-header-menu-legal:focus-visible .dimap-menu-legal-label {
      text-decoration: underline; text-underline-offset: 2px;
    }
    @media(max-width: 620px) {
      .dimap-header-menu-legal { font-size: 10px; }
    }


/* v104 — responsive sizing for additional filters.
   Keep the existing desktop geometry. Below desktop, a profile `full` additional filter
   spans the whole refine row, while `half` filters share a two-column row. */
@media (max-width: 1150px) {
  .dimap-results-refine {
    width: 100%;
    align-items: flex-start;
  }
  .dimap-refine-facets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }
  .dimap-refine-facets .dimap-facet {
    width: 100%;
    min-width: 0;
  }
  .dimap-refine-facets .dimap-facet--full {
    grid-column: 1 / -1;
  }
  .dimap-refine-facets .dimap-facet--half {
    grid-column: span 1;
  }
  .dimap-refine-facets .dimap-facet-trigger {
    width: 100%;
  }
}

/* On very narrow screens, avoid squeezing two half-width controls beyond usability. */
@media (max-width: 350px) {
  .dimap-refine-facets {
    grid-template-columns: minmax(0, 1fr);
  }
  .dimap-refine-facets .dimap-facet--full,
  .dimap-refine-facets .dimap-facet--half {
    grid-column: 1;
  }
}

/* v112 — About + Report: fixed headers, scrollable content below title (same behavior as Legal). */
.dimap-about-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dimap-about-modal .dimap-about-head {
  flex: 0 0 auto;
  position: relative;
}
.dimap-about-modal .dimap-about-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dimap-support-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dimap-support-head {
  flex: 0 0 auto;
  position: relative;
}
.dimap-support-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}



/* DIMAP backend v9 — only the organization profile content scrolls.
   Keep identity, Close and the action/navigation bar outside the scroll viewport.
   The same container is reused by the Similar organizations view. */
.dimap-overlay > .dimap-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scrollbar-gutter: auto;
}
.dimap-overlay > .dimap-modal > .dimap-modal-top {
  position: relative;
  flex: 0 0 auto;
}
.dimap-overlay > .dimap-modal > .dimap-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* v34 — Custom palettes colour filters only when open or selected.
   Resting filters are neutral; existing unconfigured cartographies are unchanged. */
.dimap-facet.dimap-custom-category-color .dimap-facet-trigger {
  background: #fff;
  border-color: var(--dimap-line);
  color: #34445d;
}
.dimap-facet.dimap-custom-category-color .dimap-facet-trigger:hover:not([aria-expanded="true"]):not(.is-selected) {
  background: #f8fafc;
  border-color: #c3d1df;
}
.dimap-facet.dimap-custom-category-color .dimap-facet-trigger[aria-expanded="true"],
.dimap-facet.dimap-custom-category-color .dimap-facet-trigger.is-selected {
  background: var(--dimap-category-selected);
  border-color: var(--dimap-category-border);
  color: var(--dimap-category-text);
}
.dimap-facet.dimap-custom-category-color .dimap-facet-title,
.dimap-facet.dimap-custom-category-color .dimap-facet-chevron {
  color: inherit;
}
/* A selected and closed filter still shows its configured palette. */
.dimap-facet.dimap-custom-category-color .dimap-facet-trigger.is-selected[aria-expanded="false"] .dimap-facet-title,
.dimap-facet.dimap-custom-category-color .dimap-facet-trigger.is-selected[aria-expanded="false"] .dimap-facet-chevron {
  color: var(--dimap-category-text);
}
.dimap-facet.dimap-custom-category-color .dimap-facet-total {
  background: var(--dimap-category-tint);
  color: var(--dimap-category-text);
}
.dimap-facet.dimap-custom-category-color .dimap-facet-option input {
  accent-color: var(--dimap-category-accent);
}
.dimap-facet.dimap-custom-category-color .dimap-facet-option.is-checked {
  background: var(--dimap-category-tint);
  color: var(--dimap-category-text);
}
.dimap-filter-chip.dimap-custom-category-color:not(.is-negated) {
  border-color: var(--dimap-category-border);
  background: var(--dimap-category-tint);
  color: var(--dimap-category-text);
}
.dimap-topic-group.dimap-custom-category-color h3 {
  color: var(--dimap-category-text);
}
.dimap-topic-group.dimap-custom-category-color .dimap-topic-tag {
  border-color: var(--dimap-category-border);
  background: var(--dimap-category-tint);
  color: var(--dimap-category-text);
}
.dimap-smart-tag.dimap-custom-category-color,
.dimap-list-tag.dimap-custom-category-color {
  border-color: var(--dimap-category-border);
  background: var(--dimap-category-tint);
  color: var(--dimap-category-text);
}
.dimap-chart-panel.dimap-custom-category-color .dimap-chart-tab[aria-selected="true"] {
  color: var(--dimap-category-text);
  box-shadow: inset 0 -2px 0 var(--dimap-category-accent);
}
.dimap-chart-panel.dimap-custom-category-color .dimap-chart-row[aria-pressed="true"] {
  background: var(--dimap-category-tint);
}
.dimap-chart-panel.dimap-custom-category-color .dimap-chart-row[aria-pressed="true"] .dimap-chart-name {
  color: var(--dimap-category-text);
}


/* v41 — Discreet Smart Search scrollbar, scoped to its suggestions menu only.
   WebKit/Blink: a narrow inset thumb and transparent top/bottom track;
   Firefox: thin native scrollbar with matching neutral colour.
   No changes to the menu's dimensions, overflow, hit targets or keyboard behaviour. */
.dimap-smart-menu {
  scrollbar-width: thin;
  scrollbar-color: #c6d2dd transparent;
}
@supports selector(::-webkit-scrollbar) {
  .dimap-smart-menu {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  .dimap-smart-menu::-webkit-scrollbar {
    width: 10px;
  }
  .dimap-smart-menu::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 8px;
  }
  .dimap-smart-menu::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #c6d2dd;
    background-clip: padding-box;
  }
  .dimap-smart-menu::-webkit-scrollbar-thumb:hover {
    background-color: #aebecb;
  }
  .dimap-smart-menu::-webkit-scrollbar-corner {
    background: transparent;
  }
}
@supports (-moz-appearance: none) {
  .dimap-smart-menu {
    scrollbar-width: thin;
    scrollbar-color: #c6d2dd transparent;
  }
}

/* v43 — Centre the filter option count vertically within its flex row.
   Keep checkbox, labels, info buttons, and font metrics untouched. */
.dimap-facet-option-count {
  align-self: center;
}
