    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      width: 1280px;
      height: 720px;
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

    body {
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 13px;
      font-weight: 400;
      background: #d4d4d4;
      color: #111;
    }

    /* ── Startup: flex viewport; stage 1280×720 scales from bottom-center ── */
    #startup-screen {
      position: fixed;
      inset: 0;
      z-index: 20000;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      width: 100%;
      height: 100%;
      margin: 0;
      background: #ffffff;
      overflow: hidden;
      isolation: isolate;
      color: #000000;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
    }
    .startup-scale-slot {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      flex: 0 0 auto;
      overflow: visible;
    }
    .startup-scale-root {
      position: relative;
      width: 1280px;
      height: 720px;
      flex-shrink: 0;
      zoom: var(--startup-scale, 1);
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
    }
    @supports not (zoom: 1) {
      .startup-scale-root {
        transform: scale(var(--startup-scale, 1));
        transform-origin: bottom center;
      }
    }
    .startup-focus-layer {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }
    .startup-focus {
      position: absolute;
      top: 0;
      height: 100%;
      width: 50%;
      opacity: 0;
      transition: opacity 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .startup-focus--left {
      left: 0;
      background: radial-gradient(ellipse 78% 70% at 22% 38%, rgba(255, 191, 222, 0.22) 0%, transparent 58%);
    }
    .startup-focus--right {
      left: 50%;
      background: radial-gradient(ellipse 78% 70% at 78% 38%, rgba(180, 200, 240, 0.2) 0%, transparent 58%);
    }
    #startup-screen[data-focus="left"] .startup-focus--left {
      opacity: 1;
    }
    #startup-screen[data-focus="right"] .startup-focus--right {
      opacity: 1;
    }
    #startup-card {
      position: absolute;
      left: 50%;
      margin-left: -408px;
      bottom: 0;
      top: auto;
      width: 816px;
      height: 688px;
      background: #f2f2f2;
      z-index: 2;
      color: #000000;
      overflow: hidden;
      isolation: isolate;
    }
    #startup-title {
      position: absolute;
      left: 0;
      right: 0;
      top: 54px;
      height: 83px;
      font-size: 72px;
      line-height: normal;
      font-weight: 400;
      color: #000000;
      text-align: center;
      letter-spacing: -0.02em;
      margin: 0;
      padding: 0;
    }
    .startup-tag-shell {
      position: absolute;
      left: 0;
      right: 0;
      top: 112px;
      text-align: center;
      margin: 0;
      padding: 0;
      perspective: 900px;
    }
    .startup-by-tag {
      display: inline-flex;
      padding: 18px 36px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      border-radius: 24px;
      font-size: 24px;
      font-weight: 400;
      letter-spacing: 0;
      color: #000000;
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid #ffffff;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      transform-style: preserve-3d;
      will-change: transform;
      pointer-events: none;
      user-select: none;
    }
    #startup-actions.startup-actions-row {
      position: absolute;
      left: 0;
      top: 0;
      width: 816px;
      height: 688px;
      pointer-events: none;
    }
    #startup-new-map.startup-choice--left {
      position: absolute;
      left: 261.5px;
      top: 239px;
      transform: translateX(-50%);
      pointer-events: auto;
      white-space: nowrap;
      text-align: center;
    }
    .startup-choice-arrow-wrap {
      position: absolute;
      left: 364px;
      top: 231px;
      width: 55px;
      height: 44px;
      overflow: hidden;
      pointer-events: none;
      line-height: 0;
    }
    #startup-screen[data-focus="left"] .startup-choice-arrow-wrap {
      transform: scaleX(-1);
    }
    .startup-choice-arrow {
      display: block;
      width: 55px;
      height: 44px;
      object-fit: contain;
      image-rendering: -webkit-optimize-contrast;
    }
    .startup-action-col--right {
      position: absolute;
      left: 0;
      top: 0;
      width: 816px;
      height: 688px;
      pointer-events: none;
    }
    #startup-load-config.startup-choice--right {
      position: absolute;
      left: 546px;
      top: 239px;
      transform: translateX(-50%);
      pointer-events: auto;
      white-space: nowrap;
      text-align: center;
    }
    .startup-load-column {
      position: absolute;
      left: 0;
      top: 0;
      width: 816px;
      height: 688px;
      pointer-events: none;
    }
    #startup-pr-slide {
      position: absolute;
      left: 531px;
      top: 275px;
      transform: translateX(-50%);
      width: max-content;
      max-width: 280px;
      overflow: hidden;
      pointer-events: none;
    }
    #startup-screen[data-focus="right"] #startup-pr-slide {
      pointer-events: auto;
    }
    .startup-choice {
      border: none;
      background: transparent;
      padding: 0;
      margin: 0;
      cursor: pointer;
      font-size: 24px;
      font-weight: 400;
      line-height: normal;
      text-align: inherit;
      color: #b2b2b2;
      transition: color 0.25s ease;
    }
    .startup-choice:hover {
      color: #000000;
    }
    .startup-choice:focus-visible {
      outline: 2px solid rgba(255, 191, 222, 0.9);
      outline-offset: 4px;
      border-radius: 4px;
    }
    #startup-screen[data-focus="left"] .startup-choice--left {
      color: #000000;
      font-weight: 400;
    }
    #startup-screen[data-focus="left"] .startup-choice--right {
      color: #b2b2b2;
      font-weight: 400;
    }
    #startup-screen[data-focus="right"] .startup-choice--right {
      color: #000000;
      font-weight: 400;
    }
    #startup-screen[data-focus="right"] .startup-choice--left {
      color: #b2b2b2;
      font-weight: 400;
    }
    .startup-pr-slide-inner {
      padding-top: 0;
      transform: translateY(-120%);
      opacity: 0;
      pointer-events: none;
      transition:
        transform 0.42s cubic-bezier(0, 0, 0.2, 1),
        opacity 0.32s cubic-bezier(0, 0, 0.2, 1);
    }
    #startup-screen[data-focus="right"] .startup-pr-slide-inner {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    #startup-card .startup-action.startup-action-pr {
      display: block;
      width: 100%;
      padding: 0;
      min-height: auto;
      font-size: 14px;
      font-weight: 400;
      line-height: normal;
      text-align: center;
      white-space: nowrap;
      color: #000000;
      font-family: inherit;
      background: transparent;
      border: none;
      border-radius: 0;
      text-decoration: none;
      transition: color 0.15s ease, opacity 0.15s ease;
      pointer-events: auto;
    }
    #startup-card .startup-action.startup-action-pr:hover {
      color: #444444;
      background: transparent;
    }
    #startup-card .startup-action.startup-action-pr:active {
      background: transparent;
      color: #222222;
      transform: none;
    }
    #startup-hero {
      position: absolute;
      left: -15px;
      top: 343px;
      width: 884px;
      height: 345px;
      overflow: hidden;
      background: transparent;
      pointer-events: none;
    }
    #startup-hero-image {
      position: absolute;
      left: 0;
      top: -0.05%;
      width: 100%;
      height: 140.68%;
      max-width: none;
      object-fit: cover;
      object-position: center top;
      -webkit-user-drag: none;
      user-select: none;
      pointer-events: none;
    }
    .startup-action {
      display: flex;
      padding: 16px 36px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      border: none;
      border-radius: 12px;
      background: #585858;
      color: #f0f0f0;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 110%;
      text-align: center;
      cursor: pointer;
      transition: filter 0.18s ease, transform 0.08s ease, box-shadow 0.35s ease, background 0.15s ease;
    }
    .startup-action:hover {
      background: #515151;
    }
    .startup-action:active {
      background: #ffffff;
      color: #1c1a1d;
      transform: translateY(1px);
    }
    .startup-action.primary {
      background: #ffbfde;
      color: #1c1a1d;
    }
    .startup-action.primary:hover {
      background: #dca7c4;
      box-shadow: none;
    }
    .startup-action.primary:active {
      background: #ffffff;
      color: #1c1a1d;
      box-shadow: 11px 19px 38.4px 0 rgba(253, 119, 198, 0.22);
    }
    .base-map-popup-overlay {
      position: fixed;
      inset: 0;
      z-index: 10020;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(23, 24, 29, 0.88);
      padding: 16px;
    }
    .base-map-popup-overlay.base-map-popup-overlay--open {
      display: flex;
    }
    .base-map-popup-card {
      width: 100%;
      max-width: 520px;
      border-radius: 22px;
      background: #17181d;
      color: #f0f0f0;
      padding: 24px 28px;
      position: relative;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    }
    .base-map-popup-close {
      position: absolute;
      right: 14px;
      top: 10px;
      border: none;
      background: transparent;
      color: #ffffff;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
      padding: 2px 6px;
    }
    .base-map-popup-title {
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 22px;
      line-height: 110%;
      font-weight: 400;
      color: #ffffff;
      margin-right: 28px;
    }
    .base-map-popup-body {
      margin-top: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      color: #e0e0e0;
      font-size: 14px;
      line-height: 130%;
    }
    #base-map-popup-download {
      margin-top: 18px;
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      box-sizing: border-box;
    }
    @media (prefers-reduced-motion: reduce) {
      .startup-focus,
      .startup-pr-slide-inner,
      .startup-choice {
        transition-duration: 0.01ms !important;
      }
    }
    .map-disclaimer-overlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(23, 24, 29, 0.88);
      box-sizing: border-box;
    }
    .map-disclaimer-overlay.map-disclaimer-overlay--open {
      display: flex;
    }
    .map-disclaimer-card {
      max-width: 520px;
      width: 100%;
      max-height: calc(100vh - 32px);
      overflow-y: auto;
      padding: 24px 28px;
      border-radius: 22px;
      background: #17181d;
      color: #f0f0f0;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .map-disclaimer-heading {
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 18px;
      font-weight: 400;
      color: #ffffff;
      line-height: 110%;
    }
    .map-disclaimer-body {
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 13px;
      font-weight: 400;
      line-height: 110%;
      color: #e0e0e0;
    }
    .map-disclaimer-body p + p {
      margin-top: 12px;
    }
    .map-disclaimer-card .startup-action.primary {
      align-self: flex-start;
      margin-top: 6px;
      line-height: 110%;
    }

    #app {
      display: none;
      position: relative;
      width: 1280px;
      height: 720px;
      margin: 0 auto;
      box-sizing: border-box;
      background: #ffffff;
      overflow: hidden;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
    }

    /* Map frame: 904×508 @ left 24, top 69px from app top */
    #canvas-wrap {
      position: absolute;
      left: 24px;
      top: 69px;
      width: 904px;
      height: 508px;
      box-sizing: border-box;
      border: 0.5px solid #d8d8d8;
      background: #d8d8d8;
      overflow: hidden;
    }

    #canvas-aspect {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: #ffffff;
      overflow: hidden;
    }

    #canvas-inner {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    #map-svg {
      width: 100%;
      height: 100%;
      display: block;
      cursor: default;
    }

    /* Figma 41:195 — caption over map lower area */
    #slide-zone-caption {
      position: absolute;
      left: 24px;
      top: 585px;
      width: 904px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: 90%;
      color: #8e8e8e;
      pointer-events: none;
      z-index: 3;
    }

    .panel-section {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .panel-label {
      font-size: 10px;
      font-weight: normal;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #888;
    }

    .country-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 4px 6px;
      cursor: pointer;
      background: transparent;
      border: none;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      text-align: left;
    }
    .country-item:hover { background: #f0f0f0; }
    .country-item.selected { background: #e4e4e4; }
    .country-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .country-item-remove {
      color: #bbb;
      font-size: 14px;
      line-height: 1;
      padding: 0 2px;
      cursor: pointer;
      background: none;
      border: none;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
    }
    .country-item-remove:hover { color: #555; }

    #no-countries {
      color: #bbb;
      font-size: 11px;
      padding: 4px 0;
    }

    /* Service palette */
    #service-search {
      width: 100%;
      border: 1px solid #d0d0d0;
      background: #fff;
      padding: 5px 8px;
      font-size: 12px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      outline: none;
    }
    #service-search:focus { border-color: #999; }
    #service-search:disabled { background: #f5f5f5; color: #bbb; cursor: not-allowed; }

    #service-palette {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 4px;
    }
    .svc-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding: 6px 4px 4px;
      border: 1px solid #ddd;
      background: #fff;
      cursor: pointer;
      font-size: 10px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      text-align: center;
      line-height: 1.2;
      transition: background 0.1s;
    }
    .svc-btn.svc-btn-custom {
      position: relative;
    }
    .svc-btn-remove {
      position: absolute;
      top: -6px;
      right: -6px;
      width: 14px;
      height: 14px;
      border: none;
      border-radius: 50%;
      background: #1f1f1f;
      color: #ffffff;
      font-size: 11px;
      line-height: 14px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .svc-btn:hover { background: #f5f5f5; }
    .svc-btn.active { background: #e8e8e8; border-color: #999; }
    .svc-btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .svc-btn img, .svc-btn svg { width: 20px; height: 20px; object-fit: contain; display: block; }
    .svc-btn span { max-width: 48px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Custom services block */
    #custom-services-block {
      display: none;
      flex-direction: column;
      gap: 4px;
    }
    .custom-services-label {
      font-size: 10px;
      color: #aaa;
      letter-spacing: 0.04em;
    }
    #custom-palette {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 4px;
    }

    /* Upload */
    #upload-btn {
      background: none;
      border: 1px solid #d0d0d0;
      padding: 5px 10px;
      font-size: 11px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      cursor: pointer;
      text-align: left;
      color: #444;
    }
    #upload-btn:hover { background: #f5f5f5; }
    #file-input { display: none; }

    /* Scale slider */
    #scale-slider {
      flex: 1;
      accent-color: #000000;
    }
    .scale-value {
      font-size: 11px;
      color: #888;
      text-align: right;
    }

    /* Colors */
    .color-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .color-row label { font-size: 11px; color: #555; flex: 1; }
    .color-row input[type=color] {
      width: 28px; height: 22px;
      border: 1px solid #ddd;
      background: none;
      cursor: pointer;
      padding: 0;
    }

    /* Export */
    .export-row {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .export-btn {
      flex: 1;
      min-width: 52px;
      padding: 6px 8px;
      font-size: 11px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      border: 1px solid #ccc;
      background: #fff;
      cursor: pointer;
      text-align: center;
    }
    .export-btn:hover { background: #f0f0f0; }
    .transp-row {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: #555;
    }

    /* SVG map styles */
    .country-path {
      fill: #F1F1F1;
      stroke: #FFFFFF;
      stroke-width: 0.5;
      cursor: pointer;
    }
    .country-path:hover { fill: #e0e0e0; }
    .country-path.active {
      fill: #D9D9D9;
      stroke: #fff;
    }
    .country-path.selected-highlight { fill: #d0d0d0; }

    /* Annotation styles */
    .annotation-group { cursor: grab; user-select: none; }
    .annotation-group:active { cursor: grabbing; }
    .annotation-country-name {
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      fill: #111;
      font-weight: normal;
      /* font-size is set dynamically via style attribute — do not set here */
    }
    .annotation-icon {
      overflow: visible;
    }

    /* Connector lines — stroke driven by --line-color CSS var updated in JS */
    :root { --line-color: #000000; }
    .connector-line {
      fill: none;
      stroke: var(--line-color);
      stroke-width: 0.5;
    }
    .connector-gap {
      fill: none;
      stroke-width: 5;
    }

    #connector-context-menu .connector-cm-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      cursor: pointer;
      white-space: nowrap;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: 1.2;
      color: #C2C2C2;
    }
    #connector-context-menu .connector-cm-row.connector-cm-active {
      color: #ffffff;
    }
    #connector-context-menu .connector-cm-row:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #ffffff;
    }
    #connector-context-menu .connector-cm-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: inherit;
    }
    #connector-context-menu .connector-cm-icon svg {
      width: 16px;
      height: 16px;
      display: block;
    }
    #connector-context-menu .connector-cm-sep {
      height: 1px;
      background: rgba(255, 255, 255, 0.15);
      margin: 6px 12px;
    }
    #connector-context-menu .connector-cm-meta {
      padding: 2px 14px 8px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 11px;
      font-weight: 400;
      line-height: 1.35;
      color: rgba(255, 255, 255, 0.72);
      white-space: nowrap;
    }

    /* Scrollbar */
    /* Tooltip */
    #country-tooltip {
      position: absolute;
      background: #111;
      color: #fff;
      font-size: 10px;
      padding: 2px 6px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.1s;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      white-space: nowrap;
      z-index: 10;
    }

    /* ── Main screen: right panel + stats (Figma 50:156 / 51:183) ── */
    #panel {
      position: absolute;
      left: 952px;
      top: 0;
      width: 328px;
      height: 720px;
      /* Figma 50:156: pb 32, шаг 16px, контент 280px; одинаковые inset слева/справа */
      padding: 0 24px 32px;
      box-sizing: border-box;
      display: grid;
      grid-auto-rows: min-content;
      align-content: start;
      justify-items: stretch;
      gap: 16px;
      background: #f2f2f2;
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    #panel.panel-mode-statistics {
      width: 328px;
    }
    #panel::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
    }
    /* Карусель страниц: на всю ширину панели — симметричные отрицательные margin, иначе overflow-x клипает только справа */
    /* Выше любых слоёв содержимого панели: .search-wrap 320, .country-search-dropdown 9000, .option-block.overlay-open 9500 */
    .panel-page-carousel-wrap {
      position: sticky;
      top: 0;
      z-index: 12000;
      width: calc(100% + 48px);
      max-width: none;
      margin-left: -24px;
      margin-right: -24px;
      margin-top: 0;
      margin-bottom: 0;
      padding-top: 0;
      box-sizing: border-box;
      background: #f2f2f2;
      align-self: stretch;
    }
    #panel-top-tabs.panel-page-carousel {
      width: 100%;
      max-width: none;
      height: 73px;
      box-sizing: border-box;
      padding: 16px 24px;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 35px;
    }
    .panel-page-arrow {
      width: 22px;
      height: 18px;
      padding: 0;
      border: none;
      background: transparent;
      color: #000000;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .panel-page-arrow:hover {
      opacity: 0.65;
    }
    .panel-page-arrow:focus-visible {
      outline: 2px solid #000000;
      outline-offset: 2px;
    }
    .panel-page-arrow-img {
      display: block;
      width: 22px;
      height: 18px;
      object-fit: contain;
      pointer-events: none;
    }
    .panel-page-arrow--prev .panel-page-arrow-img {
      transform: scaleX(-1);
    }
    .panel-page-title-row {
      width: 167px;
      flex: 0 0 167px;
      height: 41px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
    }
    .panel-page-title {
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 32px;
      font-weight: 400;
      line-height: 41px;
      height: 41px;
      text-align: center;
      color: #000000;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
    .panel-page-carousel-rule {
      width: 100%;
      max-width: none;
      height: 0;
      border: none;
      border-top: 0.5px solid #d8d8d8;
      margin: 0;
      padding: 0;
    }

    .panel-divider {
      width: calc(100% + 48px);
      max-width: none;
      height: 0;
      margin-left: -24px;
      margin-right: -24px;
      margin-top: 0;
      margin-bottom: 0;
      border: none;
      border-top: 0.5px solid #d8d8d8;
      padding: 0;
      flex-shrink: 0;
    }
    .panel-divider--inset {
      margin-top: 0;
      margin-bottom: 0;
    }
    .panel-divider.panel-divider--section-top {
      border-top: 1px solid #d8d8d8;
    }

    /* Секции макета 50:156: дубликаты заменены блоком Design / color pickers */
    #upload-section,
    #colors-section,
    #connector-section {
      display: none !important;
    }

    .panel-hidden-control {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    #stats-section {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 280px;
      max-width: 100%;
      align-self: center;
      box-sizing: border-box;
      gap: 16px;
    }
    .stats-block {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      box-sizing: border-box;
    }
    .stats-block-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .stats-table-wrap {
      overflow: visible;
    }
    .stats-table {
      width: 100%;
      border-collapse: collapse;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: 120%;
    }
    .stats-table thead th {
      padding: 8px;
      text-align: left;
      vertical-align: middle;
      border-bottom: 1px solid #000000;
    }
    .stats-table tbody td {
      padding: 8px;
      text-align: left;
      color: #8e8e8e;
      border-bottom: 0.5px solid #d8d8d8;
    }
    .stats-table td:last-child,
    .stats-table thead th:last-child {
      text-align: right;
      width: 90px;
    }
    .stats-table tbody tr.stats-row-filter-active {
      background: #ffffff;
    }
    .stats-table tbody tr.stats-row-dim td {
      color: #b8b8b8;
    }
    .stats-th-btn {
      border: none;
      background: transparent;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: 120%;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 0;
    }
    .stats-th-btn.stats-th-btn--active {
      color: #000000;
    }
    .stats-th-btn.stats-th-btn--inactive {
      color: #8e8e8e;
    }
    .stats-th-btn-right {
      margin-left: auto;
    }
    .stats-service-palette {
      display: inline-grid;
      row-gap: 8px;
      column-gap: 8px;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      width: 100%;
    }
    .stats-service-palette .svc-btn.active {
      outline: 2px solid #000000;
      outline-offset: -2px;
      background: #e8e8e8;
    }
    .stats-reset-btn {
      border: none;
      border-radius: 999px;
      background: #000000;
      color: #ffffff;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: 1;
      height: auto;
      min-height: 0;
      padding: 6px 12px;
      cursor: pointer;
      flex-shrink: 0;
    }
    .stats-checkbox-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: 120%;
      user-select: none;
      cursor: pointer;
    }
    .stats-checkbox-row span {
      color: #8e8e8e;
    }
    .stats-checkbox-row input:checked ~ span {
      color: #000000;
    }
    .stats-match-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
    }
    .stats-match-label {
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: 120%;
    }
    .stats-match-switch {
      display: flex;
      width: 100%;
      border-radius: 10px;
      background: #e8e8e8;
      padding: 2px;
      gap: 2px;
    }
    .stats-match-btn {
      flex: 1;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: #8e8e8e;
      height: 28px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      cursor: pointer;
    }
    .stats-match-btn.stats-match-btn-active {
      background: #ffffff;
      color: #1c1a1d;
    }
    .stats-checkbox-row input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      box-sizing: border-box;
      border: 1px solid #d8d8d8;
      border-radius: 4px;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      margin: 0;
      flex-shrink: 0;
      background-repeat: no-repeat;
      background-position: center;
      background-size: 11px 11px;
    }
    .stats-checkbox-row input[type="checkbox"]:checked {
      border-color: #ffbfde;
      background-color: #ffbfde;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13L9 17L19 7' stroke='%23000000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    #panel.panel-mode-statistics #stats-section {
      display: flex !important;
    }
    #panel.panel-mode-statistics .panel-section:not(#stats-section) {
      display: none !important;
    }
    .panel-h1 {
      align-self: stretch;
      color: #000000;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: 13px;
      min-height: 13px;
    }
    .panel-h2 {
      align-self: stretch;
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
    }
    .panel-design-heading {
      margin: 0;
    }
    #countries-section,
    #services-section {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      align-self: stretch;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }
    .search-wrap {
      position: relative;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      align-self: stretch;
      z-index: 320;
    }
    #countries-section {
      align-items: stretch;
    }
    #country-search,
    #service-search {
      display: flex;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      height: auto;
      min-height: 0;
      padding: 8px 16px;
      align-items: center;
      gap: 7px;
      align-self: stretch;
      border: 1px solid #ffffff;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.5);
      color: #000000;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: normal;
      outline: none;
      box-shadow: none;
    }
    #country-search::placeholder,
    #service-search::placeholder {
      color: #8e8e8e;
      font-size: 10px;
    }
    #active-countries-list {
      display: flex;
      width: 100%;
      max-width: 100%;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      max-height: none;
      overflow: visible;
    }
    .country-item {
      display: flex;
      width: 100%;
      align-items: flex-start;
      gap: 5px;
      padding: 0;
      background: transparent;
      border: none;
      cursor: default;
      overflow: hidden;
    }
    .country-item:hover { background: transparent; }
    .country-item-count {
      flex-shrink: 0;
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      min-width: 12px;
    }
    .country-item-name {
      flex: 1;
      min-width: 0;
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      cursor: pointer;
    }
    .country-item-name-wrap {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      max-width: 100%;
    }
    .country-item-flag-slot {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      border-radius: 50%;
      background: #e8e8e8;
      box-shadow: inset 0 0 0 0.5px #d8d8d8;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .country-item-flag-slot .country-item-flag {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      display: block;
      object-fit: cover;
      border-radius: 50%;
      background: transparent;
      box-shadow: none;
    }
    .country-item-name-wrap > .country-item-flag {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      display: inline-block;
      object-fit: cover;
      border-radius: 50%;
      background: #e8e8e8;
      box-shadow: inset 0 0 0 0.5px #d8d8d8;
    }
    .country-item-flag.country-item-flag--full {
      width: 18px;
      height: 12px;
      border-radius: 2px;
    }
    .country-item-name-text {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .country-item-actions {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .country-action-btn {
      width: 12px;
      height: 12px;
      border: none;
      background: transparent;
      padding: 0;
      cursor: pointer;
      color: #8e8e8e;
      opacity: 0.95;
    }
    .country-action-btn:hover { opacity: 1; }
    .country-action-btn svg {
      width: 12px;
      height: 12px;
      display: block;
    }
    .country-action-btn.accent-toggle.is-accent {
      color: #000000;
    }
    #no-countries {
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      padding: 0;
    }
    .service-group {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      align-self: stretch;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }
    #custom-services-block {
      margin-bottom: 13px;
      gap: 8px;
    }
    #service-palette,
    #custom-palette {
      display: grid;
      row-gap: 8px;
      column-gap: 8px;
      align-self: stretch;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      grid-template-rows: repeat(2, fit-content(100%));
      overflow: visible;
    }
    .svc-btn {
      display: flex;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      aspect-ratio: 1;
      height: auto;
      flex-direction: row;
      padding: 8px;
      align-items: center;
      justify-content: center;
      gap: 7px;
      border: none;
      border-radius: 0;
      background: #ffffff;
      box-shadow: none;
      box-sizing: border-box;
    }
    .svc-btn.svc-btn-custom {
      position: relative;
    }
    .svc-btn-remove {
      position: absolute;
      top: -5px;
      right: -5px;
      width: 14px;
      height: 14px;
      border: none;
      border-radius: 50%;
      background: #1f1f1f;
      color: #fff;
      font-size: 11px;
      line-height: 14px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .svc-btn span { display: none; }
    .svc-btn img, .svc-btn svg {
      width: 24px;
      height: 24px;
    }
    .svc-btn.active {
      box-shadow: inset 0 0 0 2px #000000;
      background: #ffffff;
    }
    .country-search-dropdown {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(37px + 5px);
      background: #ffffff;
      border-radius: 10px;
      padding: 5px 0;
      z-index: 9000;
      box-shadow: inset 0 0 0 0.5px #d8d8d8, 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    .country-search-option {
      padding: 7px 16px;
      color: #1c1a1d;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      line-height: 90%;
      cursor: pointer;
    }
    .country-search-option:hover {
      color: #000000;
      background: rgba(0, 0, 0, 0.04);
    }
    #custom-palette .svc-btn:first-child:hover {
      background: #f2f2f2;
    }
    #settings-section {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      align-self: stretch;
    }
    .settings-block {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 13px;
      align-self: stretch;
    }
    .settings-row-title {
      align-self: stretch;
    }
    .annotation-options-row {
      display: flex;
      width: 280px;
      max-width: 100%;
      height: auto;
      align-items: flex-start;
      gap: 8px;
      flex-wrap: nowrap;
    }
    .option-block {
      display: flex;
      width: 136px;
      flex: 0 0 136px;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    .option-block.overlay-open {
      z-index: 9500;
    }
    .option-block-wide {
      width: 280px;
    }
    .option-block.option-block-wide {
      flex: 0 0 280px;
      width: 280px;
      max-width: 100%;
    }
    .connector-size-row {
      display: flex;
      width: 280px;
      align-items: center;
      gap: 8px;
      margin-top: 3px;
    }
    .annotation-scale-label {
      flex: 0 0 118px;
      margin: 0;
      align-self: center;
    }
    #design-controls-block {
      display: flex;
      flex-direction: column;
      gap: 0;
      width: 280px;
      max-width: 100%;
      align-self: stretch;
    }
    #design-controls-block > .annotation-options-row + .design-slider-block {
      margin-top: 16px;
    }
    #design-controls-block > .design-slider-block + .design-slider-block {
      margin-top: 16px;
    }
    .design-slider-block {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 280px;
      max-width: 100%;
    }
    .design-slider-label-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      gap: 8px;
    }
    .design-slider-label,
    .design-slider-value {
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
    }
    .design-slider-value {
      flex-shrink: 0;
    }
    .design-slider-input {
      width: 100%;
      height: 18px;
      margin: 0;
      padding: 0;
      -webkit-appearance: none;
      appearance: none;
      background: transparent;
      cursor: pointer;
    }
    .design-slider-input:focus {
      outline: none;
    }
    .design-slider-input:focus-visible {
      outline: 2px solid #000000;
      outline-offset: 2px;
    }
    .design-slider-input::-webkit-slider-runnable-track {
      height: 2px;
      border-radius: 1px;
      background: #d9d9d9;
    }
    .design-slider-input::-moz-range-track {
      height: 2px;
      border-radius: 1px;
      background: #d9d9d9;
    }
    .design-slider-input::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 10px;
      height: 10px;
      margin-top: -4px;
      border-radius: 0;
      border: none;
      background: #ffbfde;
      box-shadow: none;
      cursor: pointer;
    }
    .design-slider-input::-moz-range-thumb {
      width: 10px;
      height: 10px;
      border-radius: 0;
      border: none;
      background: #ffbfde;
      box-shadow: none;
      cursor: pointer;
    }
    .connector-size-row input[type="range"] {
      flex: 1;
      -webkit-appearance: none;
      appearance: none;
      height: 4px;
      border-radius: 2px;
      background: #d9d9d9;
      accent-color: #ffbfde;
    }
    .connector-size-row input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      background: #ffbfde;
      border: none;
      border-radius: 0;
      margin-top: -6px;
      cursor: pointer;
    }
    .connector-size-row input[type="range"]::-moz-range-thumb {
      width: 16px;
      height: 16px;
      background: #ffbfde;
      border: none;
      border-radius: 0;
      cursor: pointer;
    }
    .connector-size-val {
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      min-width: 32px;
      text-align: right;
    }
    .option-control {
      display: flex;
      min-height: 32px;
      height: auto;
      padding: 6px 16px;
      justify-content: space-between;
      align-items: center;
      align-self: stretch;
      border: 1px solid #ffffff;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.5);
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      cursor: pointer;
      position: relative;
      z-index: 1;
      box-shadow: none;
    }
    .option-arrow {
      width: 16px;
      height: 16px;
      color: #000000;
      transition: transform 0.15s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .option-arrow svg {
      width: 16px;
      height: 16px;
      display: block;
    }
    .option-control[aria-expanded="true"] .option-arrow {
      transform: rotate(180deg);
    }
    .option-dropdown {
      position: absolute;
      top: calc(100% + 5px);
      left: 0;
      right: 0;
      border-radius: 10px;
      background: #ffffff;
      padding: 5px 0;
      display: none;
      z-index: 2;
      box-shadow: inset 0 0 0 0.5px #d8d8d8, 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    .option-dropdown.open {
      display: flex;
      flex-direction: column;
    }
    .option-dropdown button {
      border: none;
      background: transparent;
      text-align: left;
      padding: 7px 16px;
      color: #1c1a1d;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      line-height: 90%;
      cursor: pointer;
    }
    .option-dropdown button:hover {
      color: #000000;
      background: rgba(0, 0, 0, 0.04);
    }
    #floating-tools {
      position: absolute;
      left: 48px;
      bottom: 24px;
      z-index: 10020;
      display: none;
      flex-direction: column;
      gap: 10px;
      pointer-events: auto;
    }
    #floating-snap-grid {
      display: none !important;
    }
    .floating-tool-row {
      display: flex;
      width: 272px;
      min-height: 48px;
      padding: 12px;
      align-items: center;
      gap: 10px;
      border: none;
      border-radius: 20px;
      background: #ffffff;
      color: #8e8e8e;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: 90%;
      text-align: left;
      cursor: pointer;
      box-shadow: inset 0 0 0 0.5px #d8d8d8, 0 4px 16px rgba(0, 0, 0, 0.06);
    }
    .floating-tool-square {
      width: 24px;
      height: 24px;
      border-radius: 7px;
      background: #f2f2f2;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #000000;
    }
    .floating-tool-square svg {
      width: 14px;
      height: 14px;
      display: block;
    }
    .floating-tool-row[aria-pressed="false"] .floating-tool-square svg path,
    .floating-tool-row[aria-pressed="false"] .floating-tool-square svg rect {
      stroke: currentColor;
    }
    .floating-tool-row[aria-pressed="false"] .floating-tool-square svg path[fill],
    .floating-tool-row[aria-pressed="false"] .floating-tool-square svg rect[fill] {
      fill: currentColor;
    }
    .floating-tool-row[aria-pressed="true"] {
      color: #000000;
    }
    #guides-layer {
      pointer-events: none;
    }
    .smart-guide-line {
      stroke: rgba(0, 0, 0, 0.35);
      stroke-width: 1;
      stroke-dasharray: 4 4;
      vector-effect: non-scaling-stroke;
    }
    .color-picker-group {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      width: 100%;
      max-width: 280px;
    }
    .color-picker-row-wrap {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
      width: 280px;
      max-width: 100%;
    }
    .color-picker-row-wrap .color-picker-row {
      flex: 1 1 calc((100% - 16px) / 3);
      max-width: calc((100% - 16px) / 3);
      min-width: 0;
      box-sizing: border-box;
    }
    .color-picker-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-end;
      gap: 4px;
      height: 56px;
      min-height: 56px;
      padding: 8px;
      border: none;
      border-radius: 0;
      cursor: pointer;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      text-align: left;
      box-shadow: none;
      background: #ffffff;
      color: #000000;
    }
    .color-picker-row__name {
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      opacity: 0.5;
      color: currentColor;
    }
    .color-picker-row__hex {
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      opacity: 1;
      letter-spacing: 0.02em;
      color: currentColor;
    }
    #colors-settings {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      width: 100%;
      max-width: 280px;
    }
    #colors-settings .settings-row-title {
      width: 100%;
      margin: 0;
    }
    .panel-export-row {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
      width: 100%;
      max-width: 280px;
    }
    #panel .panel-export-btn {
      box-sizing: border-box;
      width: 136px;
      flex: 0 0 136px;
      height: auto;
      min-height: 0;
      padding: 8px 16px;
      border-radius: 24px;
      font-size: 10px;
      font-weight: 400;
      line-height: normal;
      justify-content: center;
    }
    #panel .panel-export-btn.panel-export-btn--secondary {
      background: #ffffff;
      color: #000000;
      box-shadow: none;
      border: none;
    }
    #panel .panel-export-btn.panel-export-btn--secondary:hover {
      background: #f7f7f7;
    }
    #panel .panel-export-btn.panel-export-btn--primary {
      background: #ffbfde;
      color: #000000;
      box-shadow: none;
      border: none;
    }
    #panel .panel-export-btn.panel-export-btn--primary:hover {
      background: #dca7c4;
    }
    #panel .startup-action:not(.panel-export-btn) {
      background: #e8e8e8;
      color: #000000;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      box-shadow: inset 0 0 0 0.5px #d8d8d8;
    }
    #panel .startup-action:not(.panel-export-btn):hover {
      background: #dedede;
    }
    #panel .startup-action.primary:not(.panel-export-btn) {
      background: #ffbfde;
      color: #1c1a1d;
      box-shadow: none;
    }
    #panel .startup-action.primary:not(.panel-export-btn):hover {
      background: #dca7c4;
    }
    #panel.panel-mode-statistics .panel-divider {
      display: none !important;
    }
    #save-as-section .export-matrix-button {
      width: 100%;
      margin-top: 8px;
      background: #e8e8e8;
      color: #000000;
      box-shadow: inset 0 0 0 0.5px #d8d8d8;
    }
    .resolution-custom-row {
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      height: 37px;
      padding: 0 10px;
      border-radius: 10px;
      background: #ffffff;
      box-shadow: inset 0 0 0 0.5px #d8d8d8;
    }
    .resolution-custom-row input {
      width: calc(50% - 3px);
      min-width: 0;
      height: 24px;
      border: 1px solid #d8d8d8;
      border-radius: 7px;
      background: #f2f2f2;
      color: #000000;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      line-height: 90%;
      padding: 0 8px;
      outline: none;
      -moz-appearance: textfield;
    }
    .resolution-custom-row input::-webkit-outer-spin-button,
    .resolution-custom-row input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .resolution-custom-row input::placeholder {
      color: #9a9a9a;
    }
    .resolution-custom-sep {
      color: #9a9a9a;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      line-height: 90%;
      user-select: none;
    }
    #export-matrix-btn {
      display: none !important;
    }
    #color-popover {
      position: fixed;
      display: none;
      z-index: 9001;
      width: 236px;
      padding: 10px;
      border-radius: 10px;
      background: #3d3d3d;
      gap: 10px;
      flex-direction: column;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
    #color-popover.open {
      display: flex;
    }
    .color-popover-sb-wrap {
      position: relative;
      width: 200px;
      height: 160px;
      border-radius: 8px;
      overflow: hidden;
      align-self: center;
      cursor: crosshair;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }
    #color-popover-sb {
      display: block;
      width: 200px;
      height: 160px;
    }
    .color-popover-sb-cursor {
      position: absolute;
      width: 14px;
      height: 14px;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
      pointer-events: none;
      transform: translate(-50%, -50%);
      left: 0;
      top: 0;
    }
    .color-popover-hue-wrap {
      position: relative;
      width: 200px;
      height: 14px;
      align-self: center;
      border-radius: 7px;
      overflow: hidden;
      cursor: pointer;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }
    #color-popover-hue {
      display: block;
      width: 200px;
      height: 14px;
    }
    .color-popover-hue-cursor {
      position: absolute;
      top: 50%;
      width: 12px;
      height: 12px;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
      pointer-events: none;
      transform: translate(-50%, -50%);
      left: 0;
    }
    .color-popover-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    #color-popover-eyedropper {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 8px;
      background: #525252;
      color: #eee;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    #color-popover-eyedropper:hover {
      background: #5e5e5e;
    }
    #color-popover-eyedropper:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }
    #color-popover-hex {
      flex: 1;
      min-width: 0;
      height: 32px;
      border: none;
      border-radius: 8px;
      background: #525252;
      color: #e8e8e8;
      padding: 0 10px;
      font-family: 'YS Text', Arial, Helvetica, sans-serif;
      font-size: 12px;
      font-weight: 400;
      outline: none;
      text-transform: uppercase;
    }
    #color-popover-native {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }
    #color-popover-swatches {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }
    .color-swatch-btn {
      width: 100%;
      aspect-ratio: 1;
      max-height: 36px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    }
