    body {
      font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
      /* map_editor全体をアプリ画面として扱うため、bodyで抑止を集約する */
      touch-action: none;
      overscroll-behavior: contain;
    }
    /* ローディングオーバーレイ */
    #map-loading-overlay {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      background: #ffffff;
      z-index: 10000;
      opacity: 1;
      pointer-events: auto;
      transition: opacity 200ms ease, visibility 200ms ease;
    }
    #map-loading-overlay.nm-loading-overlay--hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    #editor-operation-guard {
      position: fixed;
      inset: 0;
      z-index: 11990;
      pointer-events: auto;
      touch-action: none;
      overscroll-behavior: contain;
      background: transparent;
    }
    #editor-operation-guard.hidden {
      display: none;
    }
    /* snap guide 用の viewport 固定オーバーレイ */
    #snap-guide-overlay {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: 9999;
    }
    #map-loading-text {
      color: #374151;
      font-size: 14px;
      font-weight: 500;
    }
    .map-loading-progress {
      width: min(320px, calc(100vw - 48px));
      height: 6px;
      overflow: hidden;
      border-radius: 9999px;
      background: #e5e7eb;
    }
    .map-loading-progress__bar {
      width: 100%;
      height: 100%;
      border-radius: inherit;
      background: #3b82f6;
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform var(--nm-motion-fast) var(--nm-motion-standard-easing);
    }
    html.dark #map-loading-text { color: #e2e8f0; }
    html.dark #map-loading-overlay {
      background: #0b1220;
    }
    html.dark .map-loading-progress {
      background: #1f2937;
    }
    html.dark .map-loading-progress__bar {
      background: #60a5fa;
    }
    @media (prefers-reduced-motion: reduce) {
      .map-loading-progress__bar {
        transition-duration: 1ms;
      }
    }
    .callings-touch-drag-lock {
      overscroll-behavior: contain;
      touch-action: none;
    }
    .subheader-toolbar-scroll {
      -ms-overflow-style: none;
      scrollbar-width: none;
      touch-action: pan-x;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
    }
    .subheader-toolbar-scroll::-webkit-scrollbar {
      display: none;
    }
    .subheader-toolbar-row {
      white-space: nowrap;
    }
    @media (min-width: 640px) {
      .subheader-toolbar-scroll {
        touch-action: auto;
        overscroll-behavior-x: auto;
      }
    }
    .memo-panel-grid {
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      row-gap: 10px;
      min-height: 0;
      background: #ffffff;
    }
    html.dark .memo-panel-grid {
      background: #0f172a;
    }
    .memo-header-row,
    .memo-toolbar-scroll,
    .memo-editor-area {
      background: inherit;
    }
    .memo-header-row {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      column-gap: 8px;
    }
    .memo-settings-btn {
      width: 32px;
      height: 32px;
      border: 1px solid #d1d5db;
      border-radius: 0.5rem;
      background: #ffffff;
      display: inline-grid;
      place-items: center;
    }
    .memo-settings-btn:hover {
      background: #f9fafb;
    }
    .memo-settings-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    html.dark .memo-settings-btn {
      border-color: #334155;
      background: #0f172a;
    }
    html.dark .memo-settings-btn:hover {
      background: #1e293b;
    }
    html.dark .memo-settings-btn img {
      filter: brightness(0) invert(1);
    }
    html.dark .memo-settings-btn:disabled {
      background: #111827;
      border-color: #1f2937;
    }
    .memo-editor-area {
      position: relative;
      min-height: 0;
      height: 100%;
    }
    .memo-textarea {
      width: 100%;
      height: 100%;
      min-height: 240px;
    }
    .memo-status-overlay {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 220ms ease;
      z-index: 2;
    }
    .memo-status-overlay.memo-status-overlay--visible {
      opacity: 1;
    }
    .memo-status-badge {
      max-width: 90%;
      padding: 10px 14px;
      border-radius: 10px;
      color: #ffffff;
      font-size: 12px;
      line-height: 1.45;
      text-align: center;
      white-space: pre-line;
      background: rgba(31, 41, 55, 0.92);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    }
    .memo-status-badge.memo-status-badge--success {
      background: rgba(15, 23, 42, 0.92);
    }
    .memo-status-badge.memo-status-badge--error {
      background: rgba(185, 28, 28, 0.9);
    }
    /* Phase 4-C-4: memo editor surface */
    .nm-editor-memo-panel {
      color: #334155;
    }
    .nm-editor-memo-header {
      min-height: 36px;
      padding-bottom: 4px;
      border-bottom: 1px solid #e2e8f0;
    }
    .nm-editor-memo-label {
      color: #475569;
      font-size: 13px;
      font-weight: 600;
    }
    .nm-editor-memo-settings {
      box-shadow: none;
      transition: border-color 150ms ease, background-color 150ms ease;
    }
    .nm-editor-memo-settings:focus-visible,
    .nm-editor-memo-tool:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 2px;
    }
    .nm-editor-memo-toolbar-scroll {
      border-bottom: 1px solid #e2e8f0;
      scrollbar-width: thin;
    }
    .nm-editor-memo-tool {
      min-height: 30px;
      border-color: #cbd5e1;
      border-radius: 6px;
      background: #ffffff;
      color: #334155;
      box-shadow: none;
      transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
    }
    .nm-editor-memo-tool:hover {
      border-color: #94a3b8;
      background: #f8fafc;
    }
    .nm-editor-memo-tool:disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }
    .nm-editor-memo-textarea {
      border-color: #cbd5e1;
      background: #ffffff;
      color: #1f2937;
    }
    .nm-editor-memo-status .memo-status-badge {
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    }
    html.dark .nm-editor-memo-panel {
      color: #e2e8f0;
    }
    html.dark .nm-editor-memo-header,
    html.dark .nm-editor-memo-toolbar-scroll {
      border-color: #334155;
    }
    html.dark .nm-editor-memo-label {
      color: #94a3b8;
    }
    html.dark .nm-editor-memo-tool {
      border-color: #475569;
      background: #0f172a;
      color: #cbd5e1;
    }
    html.dark .nm-editor-memo-tool:hover {
      border-color: #64748b;
      background: #1e293b;
      color: #f8fafc;
    }
    html.dark .nm-editor-memo-textarea {
      border-color: #475569;
      background: #0f172a;
      color: #e2e8f0;
    }
    .nm-editor-memo-preferences {
      color: #334155;
    }
    .nm-editor-memo-preference-row {
      min-height: 36px;
    }
    .nm-editor-memo-preference-control {
      width: 100%;
      border-color: #cbd5e1;
      border-radius: 6px;
      background: #ffffff;
      color: #1f2937;
    }
    .nm-editor-memo-preference-control:focus-visible {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    }
    html.dark .nm-editor-memo-preferences {
      color: #cbd5e1;
    }
    html.dark .nm-editor-memo-preference-control {
      border-color: #475569;
      background: #0f172a;
      color: #e2e8f0;
    }
    @media (prefers-reduced-motion: reduce) {
      .nm-editor-memo-settings,
      .nm-editor-memo-tool,
      .nm-editor-memo-status,
      .nm-editor-memo-preference-control {
        transition-duration: 1ms;
      }
    }
    .first-node-onboarding {
      position: fixed;
      left: 50%;
      bottom: calc(18px + env(safe-area-inset-bottom));
      transform: translateX(-50%);
      width: min(500px, calc(100vw - 24px));
      z-index: 850;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
      padding: 14px 18px 16px;
    }
    html.dark .first-node-onboarding {
      background: rgba(15, 23, 42, 0.96);
      border-color: #334155;
      color: #e2e8f0;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
    }
    .first-node-onboarding.is-hidden {
      display: none;
    }
    .first-node-onboarding__head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .first-node-onboarding__title {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.35;
      color: #111827;
    }
    html.dark .first-node-onboarding__title {
      color: #f8fafc;
    }
    .first-node-onboarding__body {
      margin-top: 3px;
      color: #475569;
      font-size: 12px;
      line-height: 1.5;
    }
    html.dark .first-node-onboarding__body {
      color: #cbd5e1;
    }
    .first-node-onboarding__close {
      width: 30px;
      height: 30px;
      display: inline-grid;
      place-items: center;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      background: #ffffff;
      flex: 0 0 auto;
    }
    html.dark .first-node-onboarding__close {
      background: #0f172a;
      border-color: #334155;
    }
    html.dark .first-node-onboarding__close img {
      filter: brightness(0) invert(1);
    }
    .first-node-onboarding__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }
    .first-node-onboarding__chip,
    .first-node-onboarding__custom {
      min-height: 34px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      padding: 7px 11px;
      border: 1px solid #cbd5e1;
      background: #f8fafc;
      color: #0f172a;
    }
    .first-node-onboarding__chip:hover,
    .first-node-onboarding__custom:hover {
      background: #eff6ff;
      border-color: #93c5fd;
    }
    html.dark .first-node-onboarding__chip,
    html.dark .first-node-onboarding__custom {
      background: #111827;
      border-color: #334155;
      color: #e2e8f0;
    }
    html.dark .first-node-onboarding__chip:hover,
    html.dark .first-node-onboarding__custom:hover {
      background: #1e293b;
      border-color: #60a5fa;
    }
    .first-node-onboarding__custom {
      background: #2563eb;
      color: #ffffff;
      border-color: #2563eb;
    }
    .first-node-onboarding__custom:hover {
      background: #1d4ed8;
      border-color: #1d4ed8;
    }
    .first-node-onboarding__preference {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-top: 0;
      margin-bottom: 12px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.4;
      cursor: pointer;
      user-select: none;
    }
    html.dark .first-node-onboarding__preference {
      color: #cbd5e1;
    }
    .first-node-onboarding__hide-toggle {
      width: 15px;
      height: 15px;
      flex: 0 0 auto;
      accent-color: #2563eb;
    }
    @media (max-width: 640px) {
      .first-node-onboarding {
        bottom: calc(76px + env(safe-area-inset-bottom));
        padding: 12px 16px 14px;
      }
      .first-node-onboarding__head {
        margin-bottom: 8px;
      }
      .first-node-onboarding__body {
        line-height: 1.42;
      }
      .first-node-onboarding__preference {
        margin-bottom: 9px;
      }
      .first-node-onboarding__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }
      .first-node-onboarding__chip,
      .first-node-onboarding__custom {
        min-height: 32px;
        padding: 6px 10px;
      }
      .first-node-onboarding__custom {
        grid-column: 1 / -1;
      }
    }
  
