    :root {
      --bg: #f6f7fb;
      --surface: rgba(255, 255, 255, 0.97);
      --surface-strong: #ffffff;
      --text: #16202b;
      --muted: #5c6474;
      --line: #d9dee7;
      --line-strong: #c2cad6;
      --accent: #3e1485;
      --accent-strong: #2c0f60;
      --accent-soft: #efe8fb;
      --ink: #233046;
      --map-bg: #edf1f9;
      --shadow: 0 18px 42px rgba(18, 31, 38, 0.08);
      --radius: 22px;
    }
    * { box-sizing: border-box; }
    html, body {
      height: 100%;
      overflow: hidden;
    }
    body {
      margin: 0;
      color: var(--text);
      font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(62, 20, 133, 0.08), transparent 32%),
        linear-gradient(180deg, #fbfbfd 0%, #f2f4f8 100%);
    }
    a { color: inherit; text-decoration: none; }
    button, input, select { font: inherit; }
    button, a, input, select { transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease; }
    .srOnly {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .page {
      width: min(100%, calc(100% - 20px));
      height: calc(100vh - 20px);
      margin: 0 auto;
      padding: 10px 0;
      display: flex;
      overflow: hidden;
    }
    html.dpsearch-splash-pending .page,
    html.dpsearch-auth-gate-pending .page {
      visibility: hidden;
      pointer-events: none;
      user-select: none;
    }
    .workspace {
      flex: 1 1 auto;
      height: 100%;
      display: flex;
      gap: 14px;
      align-items: stretch;
      min-height: 0;
    }
    .leftPane {
      flex: 1 1 auto;
      height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      align-self: stretch;
    }
    body.mapDetailCollapsed .detailPanel {
      display: none;
    }
    body.mapWideMode #mapFilterPanel {
      display: none !important;
    }
    #toggleMapLeftPane svg rect:last-of-type,
    #toggleMapLeftPane svg path {
      transition: opacity 0.15s;
    }
    body.mapWideMode #toggleMapLeftPane svg rect:last-of-type,
    body.mapWideMode #toggleMapLeftPane svg path {
      opacity: 0.4;
    }
    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .filterPanel {
      position: relative;
      z-index: 8;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 255, 0.98));
      flex-shrink: 0;
    }
    .mapStatusRow {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(238, 241, 246, 0.56);
      border: 1px solid var(--line);
    }
    .mapStatusRow > * {
      flex-shrink: 0;
    }
    .mapStatusRowTuning {
      flex-shrink: 0;
      margin-left: auto;
    }
    .filterPanelHeader {
      position: relative;
      z-index: 3;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
    }
    .filterPanelTitle {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .filterPanelActions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
    }
    .filterPanelMetaActions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
    }
    .filterPanelBody {
      display: grid;
      gap: 12px;
    }
    .filterPanel.isCollapsed .advancedFilters {
      display: none;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }
    h1, h2, h3, p { margin: 0; }
    h1 {
      font-size: clamp(22px, 3.4vw, 34px);
      line-height: 1;
      letter-spacing: -0.04em;
    }
    .mapPageTitle {
      display: inline-flex;
      align-items: center;
      gap: 0.36em;
    }
    .mapPageTitleIcon {
      height: 1.12em;
      width: auto;
      display: block;
      flex-shrink: 0;
    }
    h2 {
      font-size: clamp(22px, 3vw, 30px);
      letter-spacing: -0.03em;
    }
    .heroLead, .mutedText { color: var(--muted); line-height: 1.65; }
    .heroLead {
      max-width: 980px;
      font-size: 13px;
    }
    .heroSummary, .statsRow, .mapControls, .detailActions, .chipRow {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }
    .statusPill, .metaBadge, .filterChip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 34px;
      padding: 7px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
    }
    .statusPill {
      background: #eef2ff;
      color: var(--accent);
      border: 1px solid #d7cff5;
    }
    .metaBadge {
      background: #eef1f6;
      color: var(--ink);
      border: 1px solid var(--line-strong);
      max-width: 240px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
    }
    .cartBadgeButton {
      transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    }
    .cartBadgeButton[data-has-items="true"] {
      background: var(--accent);
      border-color: var(--accent-strong);
      color: #ffffff;
      box-shadow: 0 10px 24px rgba(62, 20, 133, 0.22);
    }
    .cartBadgeButton[data-has-items="false"] {
      background: #eef1f6;
      border-color: var(--line-strong);
      color: var(--muted);
    }
    .filterChip {
      max-width: 340px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .iconButton {
      width: 42px;
      min-width: 42px;
      min-height: 42px;
      padding: 0;
      border-radius: 14px;
      border: 1px solid var(--line-strong);
      background: rgba(255, 255, 255, 0.94);
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 10px 22px rgba(18, 31, 38, 0.08);
    }
    .iconButton svg {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .iconButton:hover {
      border-color: rgba(62, 20, 133, 0.42);
      color: var(--accent);
    }
    .iconButton .toggleIcon {
      display: none;
    }
    .filterToggleButton .toggleIconCollapsed {
      display: block;
    }
    .filterToggleButton .toggleIconExpanded {
      display: none;
    }
    .filterToggleButton.is-open .toggleIconExpanded {
      display: block;
    }
    .filterToggleButton.is-open .toggleIconCollapsed {
      display: none;
    }
    .infoTooltipWrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      z-index: 1;
    }
    .infoTooltipWrap:hover,
    .infoTooltipWrap:focus-within {
      z-index: 60;
    }
    .infoButton {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      border: 1px solid var(--line-strong);
      background: #ffffff;
      color: var(--accent);
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: default;
      box-shadow: 0 8px 18px rgba(18, 31, 38, 0.06);
    }
    .infoTooltip {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      width: min(340px, calc(100vw - 48px));
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(194, 202, 214, 0.92);
      background: rgba(255, 255, 255, 0.98);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
      box-shadow: 0 16px 28px rgba(18, 31, 38, 0.12);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-4px);
      transition: opacity 0.16s ease, transform 0.16s ease;
      z-index: 80;
    }
    .infoTooltipWrap.isAlignEnd .infoTooltip {
      left: auto;
      right: 0;
    }
    .infoTooltipWrap:hover .infoTooltip,
    .infoTooltipWrap:focus-within .infoTooltip {
      opacity: 1;
      transform: translateY(0);
    }
    .viewSwitch {
      display: inline-flex;
      gap: 6px;
      padding: 4px;
      border-radius: 14px;
      background: #eef1f6;
      border: 1px solid var(--line-strong);
      width: fit-content;
    }
    .viewButton {
      min-height: 36px;
      border: 1px solid transparent;
      border-radius: 10px;
      background: transparent;
      padding: 7px 12px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .viewButton.active {
      background: var(--accent);
      border-color: var(--accent-strong);
      color: #ffffff;
      box-shadow: 0 10px 24px rgba(62, 20, 133, 0.22);
    }
    .button, .buttonSoft, .buttonGhost {
      min-height: 44px;
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 11px 16px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .button { background: var(--accent); color: #ffffff; box-shadow: 0 14px 28px rgba(62, 20, 133, 0.18); }
    .buttonSoft { background: #f3f6f8; color: var(--muted); border-color: var(--line); }
    .buttonAccent {
      background: var(--accent, #3e1485);
      color: #ffffff;
      border-color: var(--accent-strong, #2c0f60);
      box-shadow: 0 4px 12px rgba(62, 20, 133, 0.16);
    }
    .buttonAccent:hover,
    .buttonAccent:focus-visible {
      background: var(--accent-strong, #2c0f60);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(62, 20, 133, 0.24);
    }
    .buttonIntelligence {
      background: #eef6ff;
      color: #075985;
      border-color: #bae6fd;
      box-shadow: 0 4px 12px rgba(14, 116, 144, 0.12);
    }
    .buttonIntelligence:hover,
    .buttonIntelligence:focus-visible {
      background: #dff2ff;
      border-color: #7dd3fc;
      transform: translateY(-1px);
    }
    .modal-ai-label-line {
      display: block;
      max-width: 100%;
      margin: 0;
      color: var(--ink);
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.35;
      letter-spacing: 0;
      white-space: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      text-overflow: clip;
    }
    .modal-ai-label-line strong {
      font-weight: 800;
    }
    .modal-ai-label-part {
      display: inline-block;
      margin-right: 15px;
    }
    .modal-ai-label-part:last-child {
      margin-right: 0;
    }
    .modal-ai-remarks {
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--ink);
    }
    .modal-ai-remarks-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: #5c6474;
        margin-top: 10px;
      margin-bottom: 10px;
      padding: 0;
      line-height: 1.25;
    }
    .modal-ai-remarks-body {
      font-size: 0.95rem;
      white-space: pre-wrap;
      line-height: 1.5;
      overflow-wrap: anywhere;
      margin: 0;
      padding: 0;
    }
    .modal-ai-remarks-body.isEmpty {
      color: #94a3b8;
    }
    #btn-refresh-portal.isLoading,
    #btn-refresh-dps-cache.isLoading,
    #detailRefreshButton.isLoading { opacity: 0.5; pointer-events: none; }
    .buttonGhost { background: #ffffff; border-color: var(--line-strong); color: var(--ink); }
    .buttonGhost.isDisabled {
      pointer-events: none;
      opacity: 0.45;
    }
    .aboutButtonSmall {
      min-height: 28px;
      height: 28px;
      width: 28px;
      padding: 0;
      border-radius: 999px;
      border: 1px solid var(--line-strong);
      background: #ffffff;
      color: var(--ink);
      font-weight: 800;
      font-size: 12px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .aboutButtonSmall:hover { transform: translateY(-1px); }
    .buttonCompact {
      min-height: 34px;
      padding: 7px 11px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
    }
    .buttonDark {
      background: var(--ink);
      color: #ffffff;
    }
    .buttonAccentSoft {
      background: var(--accent-soft);
      border-color: #d7cff5;
      color: var(--accent);
    }
    .buttonSpinner {
      width: 16px;
      height: 16px;
      border-radius: 999px;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: #ffffff;
      animation: spin 0.7s linear infinite;
    }
    .buttonSpinner.isDark {
      border-color: rgba(35, 48, 70, 0.22);
      border-top-color: var(--ink);
    }
    .button[disabled],
    .buttonSoft[disabled],
    .buttonGhost[disabled],
    .iconButton[disabled] {
      cursor: default;
      opacity: 0.7;
      box-shadow: none;
    }
    .hidden {
      display: none !important;
    }
    .mapFilterForm {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      align-items: end;
    }
    .mapFilterForm > * {
      min-width: 0;
    }
    .quickSearchRow {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(340px, 1fr) minmax(240px, 0.8fr) auto auto;
      gap: 8px;
      align-items: end;
    }
    .compactFilterRow {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(5, minmax(112px, max-content)) minmax(132px, max-content);
      gap: 8px;
      align-items: end;
    }
    .filterField {
      display: grid;
      gap: 6px;
      min-width: 0;
    }
    .fieldLabel {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .searchInputWrap {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 58px;
      padding: 0 18px 0 20px;
      border-radius: 22px;
      border: 1px solid var(--line-strong);
      background: #ffffff;
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .searchInputWrap svg {
      flex: 0 0 20px;
      width: 20px;
      height: 20px;
      color: var(--muted);
      pointer-events: none;
    }
    .searchInputWrap input {
      flex: 1 1 auto;
      min-width: 0;
      min-height: 56px;
      border: 0;
      background: transparent;
      appearance: none;
      -webkit-appearance: none;
      padding: 0;
      color: var(--text);
      font-size: clamp(17px, 2vw, 22px);
    }
    .searchInputWrap input::placeholder { color: #7c8aa3; opacity: 1; }
    .booleanFilterField {
      min-width: 0;
    }
    .constraintTimingField {
      min-width: 220px;
    }
    .booleanFilterField[hidden],
    .constraintTimingField[hidden] {
      display: none !important;
    }
    .field,
    .mapFilterForm select,
    .mapFilterForm input[type="text"],
    .mapFilterForm input[type="date"],
    .advancedFilters select,
    .advancedFilters input[type="date"],
    .advancedFilters input[type="number"] {
      min-height: 44px;
      border-radius: 16px;
      border: 1px solid var(--line-strong);
      background: #ffffff;
      color: var(--ink);
      appearance: none;
      -webkit-appearance: none;
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .mapFilterForm select,
    .mapFilterForm input[type="text"],
    .mapFilterForm input[type="date"],
    .advancedFilters select,
    .advancedFilters input[type="date"],
    .advancedFilters input[type="number"] {
      width: 100%;
      min-width: 0;
      padding: 0 14px;
    }
    .advancedFilters .filterField {
      min-width: 0;
    }
    .filterActionsRow {
      display: flex;
      gap: 6px;
      align-items: center;
      justify-content: flex-start;
      min-height: 44px;
      min-width: 0;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .filterActionsRow .button,
    .filterActionsRow .buttonGhost {
      min-width: 110px;
      flex: 0 0 auto;
    }
    .filterActionsRow .buttonSoft {
      min-width: 110px;
      flex: 0 0 auto;
    }
    .searchDebugProcessBody {
      display: grid;
      gap: 10px;
      color: #334155;
      font-size: 0.88rem;
    }
    .searchDebugProcessBlock {
      padding: 10px 12px;
      border-radius: 12px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      overflow-x: auto;
      white-space: pre-wrap;
      word-break: break-word;
      font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace);
      font-size: 0.82rem;
      line-height: 1.5;
    }
    .sortCompact select {
      max-width: 140px;
    }
    .mapFilterModalNote {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .mapTuningPanel {
      display: flex;
      align-items: center;
      flex: 0 0 auto;
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #f8f9fd;
      flex-shrink: 0;
      white-space: nowrap;
    }
    .mapTuningInlineRow {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
    }
    .mapTuningItem {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 0;
      flex-wrap: nowrap;
    }
    .mapTuningLabel {
      font-size: 11px;
      color: var(--muted);
      font-weight: 700;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    .mapTuningValue {
      color: var(--ink);
      font-weight: 800;
      min-width: 34px;
      text-align: right;
      font-size: 11px;
      white-space: nowrap;
    }
    .mapTuningSlider {
      width: 90px;
      min-width: 90px;
      flex: 0 0 90px;
      accent-color: var(--accent);
    }
    .displayLabel {
      font-size: 12px;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: 0.04em;
    }
    .displayHint {
      font-size: 12px;
      line-height: 1.55;
    }
    .rangeWrap {
      display: grid;
      gap: 8px;
    }
    .rangeWrap input[type="range"] {
      width: 100%;
      accent-color: var(--accent);
      cursor: pointer;
    }
    .mainLayout {
      flex: 1 0 480px;
      min-height: 480px;
    }
    .mapCard {
      position: relative;
      z-index: 1;
      height: 100%;
      min-height: 480px;
      overflow: hidden;
      display: grid;
    }
    .mapStage {
      isolation: isolate;
      position: relative;
      height: 100%;
      min-height: 480px;
      background: linear-gradient(180deg, #f8faff 0%, var(--map-bg) 100%);
      overflow: hidden;
    }
    .mapOverlayTopRight {
      position: absolute;
      top: 18px;
      right: 18px;
      z-index: 10;
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .mapStageIcon {
      backdrop-filter: blur(10px);
    }
    #semanticMapCanvas {
      width: 100%;
      height: 100%;
      display: block;
      cursor: grab;
      touch-action: none;
    }
    #semanticMapCanvas.isDragging { cursor: grabbing; }
    .mapHud {
      position: absolute;
      top: 14px;
      left: 18px;
      z-index: 8;
      display: grid;
      gap: 8px;
      pointer-events: none;
      width: min(280px, calc(100% - 92px));
    }
    .hudCard {
      pointer-events: auto;
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0;
      box-shadow: none;
      backdrop-filter: none;
    }
    .hudStack {
      display: grid;
      gap: 8px;
      justify-items: start;
      width: 100%;
    }
    .hudLegendCard {
      display: grid;
      gap: 6px;
      min-width: 0;
      width: 100%;
    }
    .legendSection {
      display: grid;
      gap: 6px;
      min-width: 0;
      padding: 0;
    }
    .legendTitle {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(35, 48, 70, 0.74);
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
    }
    .legendList {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: center;
    }
    .legendItem {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 28px;
      padding: 4px 9px;
      border-radius: 999px;
      border: 1px solid rgba(194, 202, 214, 0.62);
      background: rgba(255, 255, 255, 0.76);
      color: var(--ink);
      font-size: 11px;
      font-weight: 700;
      box-shadow: 0 6px 16px rgba(18, 31, 38, 0.06);
      backdrop-filter: blur(6px);
    }
    .legendSwatch {
      width: 12px;
      height: 12px;
      border-radius: 999px;
      flex: 0 0 12px;
      border: 1px solid rgba(22, 32, 43, 0.22);
    }
    .legendCount {
      color: var(--muted);
      font-weight: 800;
    }
    .numericLegend {
      width: min(260px, calc(100vw - 110px));
      min-width: 0;
      display: grid;
      gap: 6px;
      padding: 8px 10px;
      border-radius: 14px;
      border: 1px solid rgba(194, 202, 214, 0.62);
      background: rgba(255, 255, 255, 0.78);
      box-shadow: 0 8px 20px rgba(18, 31, 38, 0.06);
      backdrop-filter: blur(8px);
    }
    .numericLegendHeader {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }
    .numericLegendMeta {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .numericLegendLabel {
      color: var(--ink);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .numericLegendBarWrap {
      position: relative;
      padding: 4px 0 2px;
    }
    .numericLegendBar {
      width: 100%;
      height: 16px;
      border-radius: 999px;
      border: 1px solid rgba(22, 32, 43, 0.22);
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
    }
    .numericLegendScale {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      align-items: start;
    }
    .numericLegendTick {
      display: grid;
      gap: 2px;
      position: relative;
      padding-top: 10px;
      font-size: 10px;
      color: var(--muted);
    }
    .numericLegendTick::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 1px;
      height: 7px;
      background: rgba(22, 32, 43, 0.34);
    }
    .numericLegendTick.isCenter {
      justify-items: center;
      text-align: center;
    }
    .numericLegendTick.isCenter::before {
      left: 50%;
      transform: translateX(-50%);
    }
    .numericLegendTick.isEnd {
      justify-items: end;
      text-align: right;
    }
    .numericLegendTick.isEnd::before {
      left: auto;
      right: 0;
    }
    .numericLegendTick strong {
      color: var(--ink);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .mapControls {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 18px;
      z-index: 11;
      display: inline-flex;
      gap: 8px;
      align-items: center;
    }
    .mapControls button {
      width: 42px;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid var(--line-strong);
      background: rgba(255, 255, 255, 0.94);
      font-size: 20px;
      cursor: pointer;
      box-shadow: 0 10px 22px rgba(18, 31, 38, 0.08);
      backdrop-filter: blur(8px);
    }
    .mapControls button.active {
      background-color: #3e1485 !important;
      color: #ffffff !important;
    }
    #mapCanvasMenu {
      position: fixed;
      z-index: 40;
      min-width: 200px;
      border-radius: 12px;
      border: 1px solid var(--line-strong);
      background: #ffffff;
      box-shadow: 0 12px 34px rgba(16, 24, 40, 0.18);
      padding: 6px;
      display: grid;
      gap: 4px;
    }
    .mapSettingsDock {
      position: absolute;
      left: 18px;
      bottom: 18px;
      z-index: 10;
      display: grid;
      gap: 10px;
      width: min(420px, calc(100% - 112px));
      align-items: end;
      justify-items: start;
    }
    .mapSettingsPanel {
      display: grid;
      gap: 10px;
    }
    .mapSettingsPanel.isClosed {
      display: none;
    }
    .mapInlineControl {
      width: 100%;
      display: grid;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(194, 202, 214, 0.48);
      background: rgba(255, 255, 255, 0.28);
      box-shadow: 0 8px 20px rgba(18, 31, 38, 0.08);
      backdrop-filter: blur(8px);
    }
    .mapInlineControl.compactRow {
      gap: 10px;
      align-items: center;
    }
    .mapInlineControlLabel {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.05em;
      color: var(--ink);
    }
    .mapSliderControl {
      display: grid;
      gap: 6px;
    }
    .mapSliderTrack {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .mapSliderTrack input[type="range"] {
      flex: 1 1 auto;
      min-width: 0;
      width: auto;
    }
    .mapSliderRow {
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
    }
    .mapSliderValue {
      min-width: 58px;
      justify-content: center;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .mapInlineSwitchRow,
    .mapInlineSelectRow {
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }
    .mapToggleLabel {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--ink);
      cursor: pointer;
      user-select: none;
    }
    .mapToggleGroup {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .mapToggleLabel input[type="checkbox"] {
      accent-color: var(--accent);
      width: 14px;
      height: 14px;
      cursor: pointer;
    }
    .queryCircleSettings {
      padding: 6px 0 2px 12px;
      border-left: 2px solid rgba(87,130,240,0.22);
      margin-top: 4px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .queryCircleSettings.isHidden {
      display: none;
    }
    .queryCircleSettings .mapInlineControl { padding: 2px 0; }
    #circleColorPicker {
      width: 36px;
      height: 28px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 2px;
      cursor: pointer;
      background: none;
    }
    .mapInlineSelectRow select {
      width: 100%;
      min-height: 40px;
      border-radius: 14px;
      border: 1px solid rgba(194, 202, 214, 0.62);
      background: rgba(255, 255, 255, 0.78);
      padding: 0 12px;
      color: var(--ink);
    }
    .mapInlineControl .viewSwitch {
      background: rgba(238, 241, 246, 0.78);
    }
    .mapInlineControl input[type="range"] {
      width: 100%;
      accent-color: var(--accent);
      cursor: pointer;
    }
    .mapBusyOverlay {
      position: absolute;
      inset: 0;
      z-index: 7;
      display: grid;
      place-items: center;
      background: rgba(248, 250, 255, 0.52);
      backdrop-filter: blur(2px);
      pointer-events: none;
    }
    .mapBusyCard {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 52px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(194, 202, 214, 0.92);
      background: rgba(255, 255, 255, 0.94);
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 18px 36px rgba(18, 31, 38, 0.12);
    }
    .mapBusySpinner {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      border: 2px solid rgba(62, 20, 133, 0.2);
      border-top-color: var(--accent);
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
    .mapEmpty {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 24px;
      color: var(--muted);
      z-index: 1;
    }
    .mapEmpty.hidden { display: none; }
    .detailPanel {
      position: relative;
      z-index: 2;
      flex: 0 0 min(31vw, 460px);
      min-width: 300px;
      padding: 14px;
      height: 100%;
      min-height: 100%;
      display: grid;
      grid-template-rows: auto minmax(220px, 220px) auto minmax(0, 1fr);
      gap: 10px;
      background: rgba(255, 255, 255, 0.88);
      align-self: stretch;
      overflow: hidden;
    }
    .detailPanelHeader {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }
    .detailThumb {
      width: 100%;
      height: 220px;
      border-radius: 14px;
      overflow: hidden;
      background: linear-gradient(135deg, #e9edf5, #dbe4f1);
      display: grid;
      place-items: center;
      color: var(--muted);
      font-weight: 800;
      position: relative;
      z-index: 2;
    }
    .detailThumb img {
      position: absolute;
      inset: 0;
      margin: auto;
      width: 100%;
      height: 100%;
      object-fit: scale-down;
      display: block;
    }
    .detailPrimaryCard {
      min-height: 0;
    }
    .detailScrollArea {
      min-height: 0;
      overflow: auto;
      display: grid;
      gap: 8px;
      padding-right: 4px;
      align-content: start;
    }
    .detailCard {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--surface-strong);
      padding: 8px 10px;
      display: grid;
      gap: 6px;
    }
    .detailHeaderRow {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      align-items: flex-start;
    }
    .detailHeaderRow h2 {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .detailSummary {
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      font-size: 13px;
      line-height: 1.55;
    }
    .detailList {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      color: var(--muted);
      font-size: 13px;
    }
    .detailMetaItem {
      min-width: 0;
      padding: 6px 8px;
      border-radius: 10px;
      background: #f6f8fc;
    }
    .detailSectionTitle {
      font-size: 11px;      font-weight: 800;
      line-height: 1.5;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .detailMetaValue {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-top: 2px;
    }
    .detailList strong { color: var(--ink); }
    .reportList {
      display: grid;
      gap: 4px;
    }
    .reportList a {
      padding: 7px 9px;
      border-radius: 10px;
      border: 1px solid #e7ebf3;
      background: #f7f9fc;
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mapDetailReportsList {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 4px;
    }
    .mapDetailReportsList li {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 6px;
      align-items: center;
      padding: 6px 8px;
      border-radius: 8px;
      border: 1px solid #e7ebf3;
      background: #f7f9fc;
      font-size: 11px;
      line-height: 1.4;
    }
    .mapDetailReportsList li > span:nth-child(2) {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mapDetailReportsList .reportLinkCompact {
      font-weight: 800;
      white-space: nowrap;
    }
    .selectionEmpty {
      font-size: 13px;
    }
    .subtle {
      color: var(--muted);
      line-height: 1.65;
    }
    .reasonChip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 28px;
      padding: 5px 10px;
      border-radius: 999px;
      border: 1px solid rgba(62, 20, 133, 0.12);
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 11px;
      font-weight: 700;
    }
    .chipTerm {
      background: var(--accent-soft);
      color: var(--accent);
    }
    .heroActionRow,
    .modalActions,
    .detailActionBar,
    .detailActionGroup,
    .detailInlineLinkRow {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }
    .detailActionBar {
      justify-content: space-between;
    }
    .detailPrimaryLink {
      background: #1e3a8a;
      border-color: #1e3a8a;
      color: #ffffff;
    }
    .detailSecondaryLink {
      background: #ffffff;
      border-color: var(--line-strong);
      color: var(--ink);
    }
    .detailSecondaryLink.isDisabled,
    .detailPrimaryLink.isDisabled {
      pointer-events: none;
      opacity: 0.5;
    }
    .modal {
      position: fixed;
      inset: 0;
      z-index: 20;
      background: rgba(18, 31, 38, 0.42);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 14px;
    }
    .modalCard {
      width: min(1200px, 100%);
      max-height: calc(100vh - 28px);
      overflow: auto;
      background: #ffffff;
      border-radius: 24px;
      border: 1px solid var(--line);
      box-shadow: 0 24px 64px rgba(18, 31, 38, 0.24);
      padding: 18px;
      display: grid;
      gap: 16px;
    }
    .settingsModalCard { width: min(960px, 100%); }
    .settingsSection {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: linear-gradient(180deg, #fcfdff, #f7f9fe);
    }
    .settingsSectionHeader { display: grid; gap: 4px; }
    .settingsSectionEyebrow {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .settingsSectionTitle {
      color: var(--ink);
      font-size: 16px;
      font-weight: 800;
      line-height: 1.4;
    }
    .settingsSectionGrid { display: grid; gap: 12px; }
    .settingsSectionNote { color: var(--muted); line-height: 1.7; }
    .settingsActionRow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .fieldFull { grid-column: 1 / -1; }
    .searchOperatorHint {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #f8f9fc;
      color: var(--ink);
      font-size: 12px;
      line-height: 1.5;
    }
    .searchOperatorHint .hintIcon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
    }
    .mapNumericRangeInputs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 6px;
    }
    .mapNumericRangeInput {
      display: grid;
      gap: 6px;
    }
    .mapNumericRangeInput label {
      font-size: 12px;
      font-weight: 700;
      color: var(--ink);
    }
    .settingsOutput {
      min-height: 96px;
      max-height: 220px;
      margin: 0;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #ffffff;
      color: var(--text);
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 12px;
      line-height: 1.65;
    }
    .vectorProgress {
      height: 10px;
      border-radius: 999px;
      background: #dfe4ec;
      overflow: hidden;
    }
    .vectorProgress > span {
      display: block;
      width: 0;
      height: 100%;
      background: var(--accent);
      transition: width 0.18s ease;
    }
    .modalHead {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
    }
    /* Modal keyboard navigation bar */
    .detailModalNavBar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 0 0;
    }
    .detailModalNavBar.hidden { display: none; }
    .detailNavArrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      cursor: pointer;
      font-size: 15px;
      color: var(--ink);
      transition: background 0.15s;
    }
    .detailNavArrow:disabled { opacity: 0.3; cursor: default; }
    .detailNavArrow:not(:disabled):hover { background: var(--surface); }
    #detailNavCounter {
      font-size: 11px;
      font-weight: 700;
      color: var(--ink-muted);
      min-width: 48px;
      text-align: center;
    }
    /* Markdown rich rendering */
    .dpMarkdown { font-size: 14px; line-height: 1.65; }
    .dpMarkdown h1, .dpMarkdown h2, .dpMarkdown h3 { font-weight: 800; margin: 10px 0 4px; }
    .dpMarkdown h1 { font-size: 18px; }
    .dpMarkdown h2 { font-size: 15px; }
    .dpMarkdown h3 { font-size: 13px; }
    .dpMarkdown p { margin: 6px 0; }
    .dpMarkdown ul, .dpMarkdown ol { margin: 6px 0 6px 20px; }
    .dpMarkdown li { margin: 2px 0; }
    .dpMarkdown table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 8px 0; }
    .dpMarkdown th, .dpMarkdown td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
    .dpMarkdown th { background: var(--surface); font-weight: 800; }
    .dpMarkdown code { background: var(--surface); padding: 1px 4px; border-radius: 4px; font-size: 12px; }
    .dpMarkdown pre { background: var(--surface); padding: 10px; border-radius: 8px; overflow-x: auto; margin: 6px 0; }
    .dpMarkdown pre code { background: none; padding: 0; }
    .dpMarkdown blockquote { border-left: 3px solid var(--line); margin: 6px 0; padding: 4px 12px; color: var(--ink-muted); }
    /* Keyword chips */
    .dpAiKeywordsRow { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; }
    .dpAiKeywordChip {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 3px 8px; border-radius: 20px;
      background: rgba(87,130,240,0.10); border: 1px solid rgba(87,130,240,0.25);
      font-size: 11px; font-weight: 700; color: #3461c8; cursor: pointer;
      transition: background 0.12s;
    }
    .dpAiKeywordChip:hover { background: rgba(87,130,240,0.22); }
    .dpAiKeywordsLabel { font-size: 11px; font-weight: 800; color: var(--ink-muted); margin-bottom: 2px; }
    .modal .field,
    .modalCard .field {
      display: grid;
      gap: 7px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fbfcfe;
      min-height: 0;
    }
    .modal .fieldTitle,
    .modalCard .fieldTitle {
      font-size: 13px;
      font-weight: 800;
      color: var(--ink);
    }
    .modal .fieldTitleRow,
    .modalCard .fieldTitleRow {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .modal .fieldIcon,
    .modalCard .fieldIcon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
    }
    .modal .fieldIconCatalog,
    .modalCard .fieldIconCatalog {
      color: #1d4ed8;
      background: #dbeafe;
    }
    .modal .fieldIconReport,
    .modalCard .fieldIconReport {
      color: #0f766e;
      background: #ccfbf1;
    }
    .detailGrid {
      display: grid;
      gap: 12px;
    }
    .modal .choiceGrid,
    .modalCard .choiceGrid {
      display: grid;
      gap: 12px;
    }
    .modal .detailSectionCard,
    .modalCard .detailSectionCard {
      display: grid;
      gap: 12px;
      padding: 14px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: #ffffff;
    }
    .modal .detailSectionCardImageAi,
    .modalCard .detailSectionCardImageAi {
      gap: 2px;
      padding: 8px 10px;
      border-radius: 8px;
    }
    .modal .detailSectionCardImageAi .detailSectionHeader,
    .modalCard .detailSectionCardImageAi .detailSectionHeader {
      gap: 0;
      margin: 0;
      padding: 0;
    }
    .modal .detailSectionCardImageAi .detailSectionEyebrow,
    .modal .detailSectionCardImageAi .detailSectionTitle,
    .modalCard .detailSectionCardImageAi .detailSectionEyebrow,
    .modalCard .detailSectionCardImageAi .detailSectionTitle {
      margin: 0;
      padding: 0;
      line-height: 1.2;
    }
    .modal .detailSectionCardCatalog,
    .modalCard .detailSectionCardCatalog {
      border-color: #cdddfd;
      background: linear-gradient(180deg, #f8fbff, #ffffff);
    }
    .modal .detailSectionCardReport,
    .modalCard .detailSectionCardReport {
      border-color: #bfe8e1;
      background: linear-gradient(180deg, #f4fffd, #ffffff);
    }
    .modal .detailSectionCardEmpty,
    .modalCard .detailSectionCardEmpty {
      min-height: 160px;
      align-content: start;
    }
    .modal .detailSectionHeader,
    .modalCard .detailSectionHeader {
      display: grid;
      gap: 4px;
    }
    .modal .detailSectionEyebrow,
    .modalCard .detailSectionEyebrow {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: var(--muted);
      text-transform: uppercase;
    }
    .modal .detailSectionTitle,
    .modalCard .detailSectionTitle {
      font-size: 15px;
      font-weight: 800;
      line-height: 1.5;
      color: var(--ink);
      letter-spacing: 0;
      text-transform: none;
    }
    .modal .detailMetaList,
    .modalCard .detailMetaList {
      display: grid;
      gap: 8px;
      margin: 0;
    }
    .modal .detailMetaRow,
    .modalCard .detailMetaRow {
      display: grid;
      grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
      gap: 8px 12px;
      padding-top: 8px;
      border-top: 1px solid #edf1f6;
    }
    .modal .detailMetaRow:first-child,
    .modalCard .detailMetaRow:first-child {
      padding-top: 0;
      border-top: 0;
    }
    .modal .detailMetaRow dt,
    .modalCard .detailMetaRow dt {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }
    .modal .detailMetaRow dd,
    .modalCard .detailMetaRow dd {
      margin: 0;
      color: var(--ink);
      line-height: 1.7;
      min-width: 0;
      word-break: break-word;
    }
    .detailInlineLink {
      min-height: 34px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid var(--line-strong);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 800;
    }
    .detailInlineLinkPrimary {
      background: #eaf2ff;
      color: #1d4ed8;
      border-color: #c8dafd;
    }
    .detailInlineLinkSecondary {
      background: #f7fafc;
      color: var(--ink);
    }
    .modal .detailNarrativeBlock,
    .modalCard .detailNarrativeBlock {
      display: grid;
      gap: 8px;
      padding: 12px;
      border-radius: 14px;
      background: rgba(239, 244, 251, 0.72);
    }
    .modal .detailNarrativeTitle,
    .modalCard .detailNarrativeTitle {
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
    }
    .modal .detailNarrativeText,
    .modalCard .detailNarrativeText {
      color: var(--muted);
      line-height: 1.8;
      word-break: break-word;
    }
    .modalSummaryText {
      color: var(--muted);
      line-height: 1.7;
    }
    .aiVersionBadge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 22px;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 11px;
      font-weight: 800;
      line-height: 1.2;
      white-space: nowrap;
      letter-spacing: 0.01em;
    }
    .aiVersionBadge.isV21 {
      color: #5b21b6;
      background: #ede9fe;
      border-color: #d8c7fb;
    }
    .aiVersionBadge.isV2 {
      color: #1d4ed8;
      background: #dbeafe;
      border-color: #bfd5ff;
    }
    .aiVersionBadge.isV1 {
      color: #334155;
      background: #e2e8f0;
      border-color: #cbd5e1;
    }
    .aiVersionBadge.isNone {
      color: #64748b;
      background: #f1f5f9;
      border-color: #e2e8f0;
    }
    .detailNarrativeTextFull,
    .modalSummaryText.detailNarrativeTextFull {
      display: block;
      max-height: none;
      overflow: visible;
      white-space: normal;
      -webkit-line-clamp: unset;
    }
    .textClampContent {
      max-height: none;
    }
    .textClampContent.isClamped {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 4;
      overflow: hidden;
    }
    .textClampToggle {
      margin-top: 8px;
      min-height: 30px;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      padding: 5px 10px;
      background: #ffffff;
      color: var(--ink);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
    }
    .textClampToggle.hidden {
      display: none;
    }
    .modalThumbButton {
      width: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: zoom-in;
      text-align: left;
    }
    .modalThumbButton.isStatic {
      cursor: default;
    }
    .modalThumbButton.isDisabled {
      cursor: default;
      opacity: 0.5;
      pointer-events: none;
    }
    .detailVisual {
      min-height: 180px;
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
      background: linear-gradient(180deg, #eef2f6, #f8fafc);
    }
    .modalThumbImage {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .thumbPlaceholderLarge {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 160px;
      color: var(--muted);
      text-align: center;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }
    .detailVotingToggleRow {
      margin-top: 8px;
      display: flex;
      justify-content: flex-end;
    }
    /* スケルトンローディング（残像防止 v1.2.64） */
    @keyframes shimmer {
      0% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    .skeletonBlock {
      position: relative;
      overflow: hidden;
      border-radius: 18px;
      background: linear-gradient(90deg, #eef1f6 0%, #f7f9fc 50%, #eef1f6 100%);
      background-size: 240% 100%;
      animation: shimmer 1.3s ease-in-out infinite;
      min-height: 100%;
      width: 100%;
    }
    .skeletonLine {
      position: relative;
      overflow: hidden;
      border-radius: 999px;
      background: linear-gradient(90deg, #eef1f6 0%, #f7f9fc 50%, #eef1f6 100%);
      background-size: 240% 100%;
      animation: shimmer 1.3s ease-in-out infinite;
      height: 12px;
    }
    .skeletonThumb { min-height: 76px; }
    .skeletonLineWide { width: 100%; }
    .skeletonLineMedium { width: 72%; }
    #detailModal.isLoading #detailThumbnailButton { pointer-events: none; }
    #detailModal.isLoading #detailLink,
    #detailModal.isLoading #detailReportLink,
    #detailModal.isLoading #detailNanonetLink { pointer-events: none; }
    .detailStatus {
      color: var(--muted);
      font-weight: 700;
      font-size: 12px;
      padding: 6px 10px;
      border-radius: 999px;
      background: #eef1f6;
      border: 1px solid var(--line);
    }
    .detailStatus.isError {
      color: #991b1b;
      background: #fef2f2;
      border-color: #fecaca;
    }
    .mobilePanelClose {
      display: none;
    }
    .mapMobileTopNav {
      display: none;
    }
    .mapMobileNav {
      display: none;
    }
    .lightboxModal {
      z-index: 32;
      background: rgba(10, 18, 32, 0.82);
    }
    .lightboxCard {
      width: min(1040px, 100%);
      max-height: calc(100vh - 28px);
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      overflow: visible;
      display: grid;
      gap: 12px;
    }
    .lightboxHead {
      display: flex;
      justify-content: flex-end;
    }
    .lightboxStage {
      display: grid;
      gap: 12px;
      justify-items: center;
    }
    .lightboxFrame {
      width: 100%;
      max-height: calc(100vh - 140px);
      padding: 18px;
      border-radius: 26px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
    }
    .lightboxImage {
      display: block;
      max-width: 100%;
      max-height: calc(100vh - 176px);
      object-fit: contain;
      border-radius: 18px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
      background: #ffffff;
    }
    .lightboxCaption {
      color: #f6f7fb;
      font-size: 13px;
      font-weight: 700;
      text-align: center;
    }
    .tippy-box[data-theme='dpsearch'],
    .tippy-box[data-theme~='dpsearch'] {
      border-radius: 12px;
      background: rgba(22, 32, 43, 0.96);
      color: #ffffff;
      box-shadow: 0 18px 42px rgba(18, 31, 38, 0.2);
      font-size: 12px;
      line-height: 1.6;
    }
    .tippy-box[data-theme='dpsearch'] .tippy-content,
    .tippy-box[data-theme~='dpsearch'] .tippy-content {
      padding: 10px 12px;
      text-align: left;
    }
    .tippy-box[data-theme='dpsearch'][data-placement^='top'] > .tippy-arrow::before,
    .tippy-box[data-theme~='dpsearch'][data-placement^='top'] > .tippy-arrow::before {
      border-top-color: rgba(22, 32, 43, 0.96);
    }
    @media (min-width: 768px) {
      .modalCard {
        padding: 22px;
      }
      .modal .choiceGrid,
      .modalCard .choiceGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .detailGrid {
        grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
      }
    }
    @media (max-width: 1200px) {
      .mapFilterForm {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .quickSearchRow {
        grid-column: 1 / -1;
        grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.9fr) auto;
      }
      .compactFilterRow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .filterActionsRow {
        justify-content: flex-start;
      }
    }
    @media (max-width: 760px) {
      .page {
        height: calc(100vh - 16px);
        padding: 8px 0;
      }
      .workspace {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(420px, 48vh);
      }
      .detailPanel {
        flex: initial;
      }
      .mapStage { border-bottom: 1px solid var(--line); }
      .mapFilterForm,
      .quickSearchRow {
        grid-template-columns: 1fr;
      }
      .compactFilterRow {
        grid-template-columns: 1fr;
      }
      .filterActionsRow {
        justify-content: flex-start;
        display: flex;
        flex-wrap: nowrap;
      }
      .detailList { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 1024px) {
      .page {
        width: min(100%, calc(100% - 12px));
        height: calc(100vh - 12px);
        padding: 6px 0;
      }
      .filterPanelHeader { flex-direction: column; }
      .filterPanelTitle { align-items: center; }
      .filterPanelActions { justify-content: flex-start; }
      .mapFilterForm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .quickSearchRow {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
      }
      .compactFilterRow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .filterActionsRow {
        justify-content: flex-start;
      }
    }
    @media (max-width: 760px) {
      .mapHud { position: static; padding: 18px 18px 0; display: grid; }
      .hudLegendCard {
        min-width: 0;
      }
      .mapOverlayTopRight {
        top: 14px;
        right: 14px;
      }
      .mapSettingsDock {
        left: 14px;
        right: 66px;
        bottom: 14px;
        width: auto;
      }
      .mapInlineSwitchRow,
      .mapInlineSelectRow {
        grid-template-columns: 1fr;
      }
      .mapSliderControl {
        gap: 8px;
      }
      .mapSliderTrack {
        gap: 8px;
      }
      .mapSliderTrack > .mapSliderValue {
        justify-content: center;
      }
      .mapControls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 14px;
      }
      .detailPanel {
        grid-template-rows: auto minmax(220px, 220px) auto minmax(0, 1fr);
        min-width: 0;
      }
      .detailThumb {
        height: 220px;
      }
      .detailList { grid-template-columns: 1fr; }
      .detailGrid,
      .modal .choiceGrid,
      .modalCard .choiceGrid {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 760px) {
      html, body {
        width: 100vw;
        height: 100dvh;
        overflow: hidden;
      }
      .page {
        width: 100vw;
        height: 100dvh;
        padding: 0;
      }
      .workspace {
        position: relative;
        width: 100vw;
        height: 100dvh;
        display: block;
      }
      .leftPane,
      .mainLayout,
      .mapCard,
      .mapStage {
        width: 100vw;
        height: 100dvh;
        min-height: 100dvh;
      }
      .leftPane {
        display: block;
        position: relative;
      }
      .mapCard,
      .mapStage {
        border-radius: 0;
      }
      .filterPanel,
      .detailPanel {
        position: absolute;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.24s ease, opacity 0.2s ease;
      }
      .filterPanel {
        z-index: 44;
        overflow: auto;
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
      }
      .detailPanel {
        z-index: 45;
        min-width: 0;
        grid-template-rows: auto minmax(200px, 200px) auto minmax(0, 1fr);
        background: #ffffff;
        overflow: auto;
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
      }
      .filterPanel.isMobileOpen,
      .detailPanel.isMobileOpen {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }
      .mobilePanelClose {
        display: inline-flex;
      }
      .mapMobileNav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border-radius: 16px;
        border: 1px solid var(--line-strong);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 28px rgba(18, 31, 38, 0.18);
        backdrop-filter: blur(8px);
      }
      .mapMobileTopNav {
        position: fixed;
        top: 8px;
        left: 12px;
        right: 12px;
        z-index: 70;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border-radius: 14px;
        border: 1px solid var(--line-strong);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 24px rgba(18, 31, 38, 0.16);
        backdrop-filter: blur(8px);
      }
      .mapMobileTopNavLink {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border: 1px solid var(--line-strong);
        background: #ffffff;
        color: var(--ink);
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
      }
      .mapMobileTopNavLink.isActive {
        background: var(--accent);
        border-color: var(--accent-strong);
        color: #ffffff;
      }
      .mapMobileNavButton {
        min-height: 42px;
        border-radius: 12px;
        border: 1px solid var(--line-strong);
        background: #ffffff;
        color: var(--ink);
        font-size: 12px;
        font-weight: 800;
      }
      .mapMobileNavButton.isActive {
        background: var(--accent);
        border-color: var(--accent-strong);
        color: #ffffff;
      }
      .mapOverlayTopRight {
        top: 62px;
        right: 12px;
      }
      .mapHud {
        width: min(300px, calc(100% - 88px));
        margin-top: 52px;
      }
      .mapSettingsDock {
        left: 12px;
        right: 66px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: auto;
      }
      .mapSettingsPanel {
        max-height: 60dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 2px;
      }
      .mapControls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
      }
    }

    /* v1.17.77: 汎用レイアウトユーティリティ（ui/modals.js のインラインstyle整理で使用） */
    .u-flex { display:flex; }
    .u-flex-col { display:flex; flex-direction:column; }
    .u-grid { display:grid; }
    .u-items-center { align-items:center; }
    .u-items-start { align-items:flex-start; }
    .u-wrap { flex-wrap:wrap; }
    .u-gap-6 { gap:6px; }
    .u-gap-8 { gap:8px; }
    .u-mt-6 { margin-top:6px; }
    .u-mt-8 { margin-top:8px; }
    .u-mt-10 { margin-top:10px; }
    .u-mb-8 { margin-bottom:8px; }
    .u-mb-10 { margin-bottom:10px; }
    .u-fw-700 { font-weight:700; }
    .u-font-label { font-size:12px; font-weight:700; color:var(--muted); display:block; margin-bottom:3px; }
    .u-btn-sm { padding:6px 12px; font-size:0.85rem; }
    .u-btn-xs { padding:4px 10px; font-size:0.8rem; }
    .u-form-control { width:100%; padding:6px 10px; border:1px solid #d9dee7; border-radius:8px; font-size:13px; box-sizing:border-box; }
    .u-form-control-resize { width:100%; padding:6px 10px; border:1px solid #d9dee7; border-radius:8px; font-size:13px; box-sizing:border-box; resize:vertical; }
