    :root {
      --bg: #f4f6fb;
      --surface: #ffffff;
      --sidebar: #f8f9fd;
      --text: #1e293b;
      --muted: #64748b;
      --border: #e2e8f0;
      --accent: #6366f1;
      --accent-soft: rgba(99, 102, 241, 0.12);
      --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
      --get: #22c55e;
      --post: #f97316;
      --put: #3b82f6;
      --patch: #8b5cf6;
      --delete: #ef4444;
      --radius: 12px;
      --sidebar-w: 260px;
      --sidebar-w-collapsed: 68px;
      --sidebar-bg: #0f2238;
      --sidebar-fg: #e2e8f0;
      --sidebar-muted: #94a3b8;
      --sidebar-border: rgba(255, 255, 255, 0.08);
      --sidebar-hover: rgba(255, 255, 255, 0.08);
      --sidebar-active: rgba(99, 102, 241, 0.22);
      --brand-green: #22c55e;
      --topbar-h: 56px;
    }
    [data-theme="dark"] {
      --bg: #0b1120;
      --surface: #111827;
      --sidebar: #0f172a;
      --text: #e2e8f0;
      --muted: #94a3b8;
      --border: #1e293b;
      --accent: #818cf8;
      --accent-soft: rgba(129, 140, 248, 0.15);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html {
      height: 100%;
      overflow-x: hidden;
      overflow-y: scroll;
      scrollbar-gutter: stable;
    }
    body {
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      line-height: 1.5;
    }
    .app {
      display: flex;
      flex-direction: row;
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
    }
    .sidebar {
      flex: 0 0 var(--sidebar-w);
      width: var(--sidebar-w);
      min-width: 200px;
      max-width: 400px;
      height: 100%;
      min-height: 0;
      background: var(--sidebar-bg);
      color: var(--sidebar-fg);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: width 0.22s ease, flex-basis 0.22s ease, min-width 0.22s ease, max-width 0.22s ease;
    }
    .sidebar-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.5rem;
      flex-shrink: 0;
      padding: 1.25rem 0.85rem 0.85rem;
      border-bottom: 1px solid var(--sidebar-border);
    }
    .sidebar-head .brand {
      flex: 1;
      min-width: 0;
      padding: 0;
      border-bottom: none;
    }
    .sidebar-toggle {
      flex-shrink: 0;
      width: 2rem;
      height: 2rem;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--sidebar-border);
      border-radius: 0.5rem;
      background: rgba(255, 255, 255, 0.04);
      color: var(--sidebar-muted);
      cursor: pointer;
      transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    }
    .sidebar-toggle:hover {
      color: var(--sidebar-fg);
      background: var(--sidebar-hover);
      border-color: rgba(129, 140, 248, 0.45);
    }
    .sidebar-toggle-icon {
      width: 1.125rem;
      height: 1.125rem;
      display: block;
    }
    .sidebar-toggle-icon--expand { display: none; }
    .app.sidebar-collapsed .sidebar-toggle-icon--collapse { display: none; }
    .app.sidebar-collapsed .sidebar-toggle-icon--expand { display: block; }
    .app.sidebar-collapsed .sidebar {
      flex: 0 0 var(--sidebar-w-collapsed) !important;
      width: var(--sidebar-w-collapsed) !important;
      min-width: var(--sidebar-w-collapsed) !important;
      max-width: var(--sidebar-w-collapsed) !important;
    }
    .app.sidebar-collapsed .sidebar-scroll,
    .app.sidebar-collapsed .split-resizer.sidebar-split,
    .app.sidebar-collapsed .brand-text {
      display: none !important;
    }
    .app.sidebar-collapsed .sidebar-rail {
      display: flex;
    }
    .app.sidebar-collapsed .sidebar-head {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 0.35rem;
    }
    .app.sidebar-collapsed .brand-inner {
      justify-content: center;
    }
    .sidebar-rail {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 0.35rem;
      flex: 1;
      min-height: 0;
      padding: 0.65rem 0.35rem 1rem;
      overflow-y: auto;
    }
    .sidebar-rail-btn {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 0.65rem;
      border: 1px solid transparent;
      background: transparent;
      color: var(--sidebar-muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .sidebar-rail-btn svg {
      width: 1.15rem;
      height: 1.15rem;
    }
    .sidebar-rail-btn:hover,
    .sidebar-rail-btn:focus-visible {
      background: var(--sidebar-hover);
      color: var(--sidebar-fg);
      border-color: var(--sidebar-border);
      outline: none;
    }
    .sidebar-rail-btn--accent {
      background: var(--sidebar-active);
      color: #c7d2fe;
    }
    .sidebar-expand-top {
      display: none;
      flex-shrink: 0;
      width: 2.25rem;
      height: 2.25rem;
      margin-right: 0.35rem;
      border: 1px solid var(--border);
      border-radius: 0.5rem;
      background: var(--surface);
      color: var(--muted);
      cursor: pointer;
      align-items: center;
      justify-content: center;
    }
    .sidebar-expand-top svg {
      width: 1.1rem;
      height: 1.1rem;
    }
    .sidebar-expand-top:hover {
      background: var(--accent-soft);
      color: var(--accent);
      border-color: var(--accent);
    }
    .app.sidebar-collapsed .sidebar-expand-top {
      display: inline-flex;
    }
    .brand {
      flex-shrink: 0;
    }
    .brand-inner {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
    }
    .brand-avatar {
      width: 40px;
      height: 40px;
      border-radius: 999px;
      background: var(--brand-green);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
    }
    .brand-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, #8b5cf6, var(--accent));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      flex-shrink: 0;
    }
    .brand h1 {
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.01em;
      line-height: 1.35;
      color: var(--sidebar-fg);
    }
    .brand-sub {
      font-size: 0.68rem;
      color: var(--sidebar-muted);
      margin-top: 0.15rem;
      font-weight: 500;
    }
    .sidebar-scroll,
    .api-map-scroll,
    .detail-pane-scroll,
    .scroll-region {
      overflow-x: hidden;
      overflow-y: scroll;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      scrollbar-gutter: stable;
    }
    .sidebar-scroll {
      flex: 1;
      min-height: 0;
      padding: 0.75rem 0.75rem 1rem;
      text-align: left;
      /* Tokens dédiés — la sidebar reste sombre même en thème clair */
      --sb-fg: var(--sidebar-fg);
      --sb-muted: var(--sidebar-muted);
      --sb-hover: var(--sidebar-hover);
      --sb-active: var(--sidebar-active);
      --sb-border: var(--sidebar-border);
      --sb-input-bg: rgba(255, 255, 255, 0.07);
      --sb-chip-bg: rgba(255, 255, 255, 0.06);
      color: var(--sb-fg);
    }
    .sidebar-scroll .sidebar-label,
    .sidebar-scroll .sidebar-collapse-chevron {
      color: var(--sb-muted);
    }
    .sidebar-scroll .sidebar-collapse-trigger:hover {
      background: var(--sb-hover);
      color: var(--sb-fg);
    }
    .sidebar-scroll .sidebar-collapse-trigger:hover .sidebar-collapse-chevron {
      color: var(--sb-fg);
    }
    .sidebar-scroll .sidebar-collapse-meta {
      color: #a5b4fc;
    }
    .sidebar-scroll .filter-btn,
    .sidebar-scroll .group-item,
    .sidebar-scroll .recent-item,
    .sidebar-scroll .resources a.resource-link {
      color: var(--sb-fg);
    }
    .sidebar-scroll .filter-btn:hover,
    .sidebar-scroll .group-item:hover,
    .sidebar-scroll .recent-item:hover,
    .sidebar-scroll .recent-item:focus-visible {
      background: var(--sb-hover);
      color: var(--sb-fg);
      border-color: var(--sb-border);
    }
    .sidebar-scroll .filter-btn.active,
    .sidebar-scroll .group-item.active {
      background: var(--sb-active);
      color: #e0e7ff;
      border-color: rgba(129, 140, 248, 0.35);
    }
    .sidebar-scroll .group-search {
      background: var(--sb-input-bg);
      border-color: var(--sb-border);
      color: var(--sb-fg);
    }
    .sidebar-scroll .group-search::placeholder {
      color: var(--sb-muted);
      opacity: 0.85;
    }
    .sidebar-scroll .group-search:focus {
      border-color: rgba(129, 140, 248, 0.55);
      outline-color: rgba(99, 102, 241, 0.25);
    }
    .sidebar-scroll .group-count {
      background: var(--sb-chip-bg);
      border-color: var(--sb-border);
      color: var(--sb-muted);
    }
    .sidebar-scroll .group-active-hint,
    .sidebar-scroll .recent-empty {
      color: var(--sb-muted);
    }
    .sidebar-scroll .group-active-hint {
      background: var(--sb-active);
      color: #c7d2fe;
    }
    .sidebar-scroll .resource-icon,
    .sidebar-scroll .resource-external {
      color: var(--sb-muted);
      opacity: 0.9;
    }
    .sidebar-scroll .resources a.resource-link:hover,
    .sidebar-scroll .resources a.resource-link:focus-visible {
      background: var(--sb-hover);
      border-color: var(--sb-border);
    }
    .sidebar-scroll .resources a.resource-link:hover .resource-label,
    .sidebar-scroll .resources a.resource-link:focus-visible .resource-label {
      color: #e0e7ff;
    }
    .sidebar-scroll .resources a.resource-link:hover .resource-icon,
    .sidebar-scroll .resources a.resource-link:hover .resource-external,
    .sidebar-scroll .resources a.resource-link:focus-visible .resource-icon,
    .sidebar-scroll .resources a.resource-link:focus-visible .resource-external {
      color: #c7d2fe;
      opacity: 1;
    }
    .observability-list {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      padding-top: 0.1rem;
    }
    .observability-link {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.7rem;
      min-height: 3.15rem;
      padding: 0.55rem 0.45rem;
      border: 1px solid transparent;
      border-radius: 8px;
      color: var(--sb-fg);
      text-decoration: none;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .observability-link:hover,
    .observability-link:focus-visible {
      background: var(--sb-hover);
      border-color: var(--sb-border);
      outline: none;
    }
    .observability-copy {
      min-width: 0;
    }
    .observability-name {
      display: block;
      color: var(--sb-fg);
      font-size: 0.86rem;
      font-weight: 800;
      line-height: 1.15;
      overflow-wrap: anywhere;
    }
    .observability-desc {
      display: block;
      margin-top: 0.15rem;
      color: var(--sb-muted);
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1.2;
    }
    .observability-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 4.9rem;
      min-height: 1.8rem;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(20, 184, 166, 0.65);
      background: rgba(20, 184, 166, 0.28);
      color: #d1fae5;
      font-size: 0.66rem;
      font-weight: 900;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .observability-status.is-offline {
      border-color: rgba(248, 113, 113, 0.55);
      background: rgba(127, 29, 29, 0.5);
      color: #fee2e2;
    }
    .observability-status.is-unknown {
      border-color: rgba(148, 163, 184, 0.4);
      background: rgba(148, 163, 184, 0.14);
      color: #cbd5e1;
    }
    .sidebar-scroll .prefix-chip {
      background: var(--sb-chip-bg);
      border-color: var(--sb-border);
      color: var(--sb-muted);
    }
    .sidebar-scroll .prefix-chip:hover,
    .sidebar-scroll .prefix-chip.active {
      background: var(--sb-active);
      border-color: rgba(129, 140, 248, 0.45);
      color: #e0e7ff;
    }
    .sidebar-collapse-panel { text-align: left; }
    .sidebar-section {
      margin-bottom: 1.25rem;
    }
    .sidebar-label {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin-bottom: 0.5rem;
      padding: 0 0.25rem;
    }
    .sidebar-collapsible { margin-bottom: 1.25rem; }
    .sidebar-collapse-trigger {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      width: 100%;
      padding: 0.35rem 0.25rem;
      margin-bottom: 0.35rem;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: var(--sidebar-muted);
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      text-align: left;
      font-family: inherit;
    }
    .sidebar-collapse-trigger:hover {
      background: var(--accent-soft);
      color: var(--text);
    }
    .sidebar-collapse-chevron {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1rem;
      height: 1rem;
      flex-shrink: 0;
      color: var(--muted);
      transition: transform 0.15s ease, color 0.15s ease;
      line-height: 0;
    }
    .sidebar-collapse-trigger:hover .sidebar-collapse-chevron {
      color: var(--text);
    }
    .sidebar-chevron-icon {
      display: block;
      width: 0.875rem;
      height: 0.875rem;
    }
    /* Replié → chevron droite ; déplié → chevron bas */
    .sidebar-collapsible.is-collapsed .sidebar-collapse-chevron {
      transform: rotate(0deg);
    }
    .sidebar-collapsible:not(.is-collapsed) .sidebar-collapse-chevron {
      transform: rotate(90deg);
    }
    .sidebar-collapse-title { flex: 1; min-width: 0; }
    .sidebar-collapse-meta {
      font-size: 0.58rem;
      font-weight: 600;
      letter-spacing: 0;
      text-transform: none;
      color: var(--accent);
      max-width: 45%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .sidebar-refresh {
      width: 1.45rem;
      height: 1.45rem;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      color: var(--sb-muted, var(--sidebar-muted));
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }
    .sidebar-refresh:hover,
    .sidebar-refresh:focus-visible {
      background: rgba(255, 255, 255, 0.08);
      color: var(--sb-fg, var(--sidebar-fg));
      outline: none;
    }
    .sidebar-refresh svg {
      width: 1rem;
      height: 1rem;
    }
    .sidebar-refresh.is-loading {
      animation: sidebar-refresh-spin 0.75s linear infinite;
    }
    @keyframes sidebar-refresh-spin {
      to { transform: rotate(360deg); }
    }
    .sidebar-collapse-panel {
      overflow: hidden;
    }
    .sidebar-collapsible.is-collapsed .sidebar-collapse-panel {
      display: none;
    }
    .method-filters {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      align-items: stretch;
      text-align: left;
    }
    .filter-btn {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;
      width: 100%;
      padding: 0.45rem 0.6rem;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      font-size: 0.8rem;
      cursor: pointer;
      text-align: left;
    }
    .filter-btn .group-count { margin-left: auto; }
    .filter-btn-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      min-width: 0;
    }
    .filter-btn:hover { background: var(--accent-soft); }
    .filter-btn.active {
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 600;
    }
    .auth-filter-list {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      align-items: stretch;
    }
    .filter-btn .auth-badge-mini {
      font-size: 0.62rem;
      padding: 0.12rem 0.4rem;
      border-radius: 999px;
      font-weight: 700;
      letter-spacing: 0.02em;
      line-height: 1.2;
    }
    .filter-btn .auth-badge-mini.public { background: #dcfce7; color: #166534; }
    .filter-btn .auth-badge-mini.jwt { background: #fef3c7; color: #92400e; }
    .filter-btn .auth-badge-mini.oauth { background: #e0e7ff; color: #3730a3; }
    [data-theme="dark"] .filter-btn .auth-badge-mini.public { background: #14532d; color: #bbf7d0; }
    [data-theme="dark"] .filter-btn .auth-badge-mini.jwt { background: #78350f; color: #fde68a; }
    [data-theme="dark"] .filter-btn .auth-badge-mini.oauth { background: #312e81; color: #c7d2fe; }
    .filter-btn.active .auth-badge-mini.public { box-shadow: 0 0 0 2px #22c55e; }
    .filter-btn.active .auth-badge-mini.jwt { box-shadow: 0 0 0 2px #f59e0b; }
    .api-map-header-controls {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .auth-select { min-width: 8.5rem; }
    .method-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .method-dot.all { background: var(--muted); }
    .method-dot.get { background: var(--get); }
    .method-dot.post { background: var(--post); }
    .method-dot.put { background: var(--put); }
    .method-dot.patch { background: var(--patch); }
    .method-dot.delete { background: var(--delete); }
    .group-search {
      width: 100%;
      padding: 0.5rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text);
      font-size: 0.78rem;
      margin-bottom: 0.5rem;
    }
    .group-search:focus {
      outline: 2px solid var(--accent-soft);
      border-color: var(--accent);
    }
    .group-list {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      align-items: stretch;
    }
    .group-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;
      padding: 0.4rem 0.55rem;
      border-radius: 8px;
      font-size: 0.78rem;
      cursor: pointer;
      border: 1px solid transparent;
      color: var(--text);
      text-align: left;
      width: 100%;
    }
    .group-item-left {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.4rem;
      min-width: 0;
      flex: 1 1 auto;
      text-align: left;
    }
    .group-item-label {
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .group-item .group-color-dot {
      flex-shrink: 0;
      margin-right: 0;
    }
    .group-item:hover { background: var(--accent-soft); }
    .group-item.active {
      background: var(--accent-soft);
      border-color: rgba(16, 185, 129, 0.25);
      font-weight: 600;
    }
    .group-count {
      flex-shrink: 0;
      margin-left: auto;
      font-size: 0.7rem;
      color: var(--muted);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.1rem 0.45rem;
      min-width: 1.4rem;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }
    .recent-list { list-style: none; margin: 0; padding: 0; }
    .recent-list li { margin-bottom: 0.2rem; }
    .recent-empty {
      font-size: 0.72rem;
      color: var(--muted);
      padding: 0.35rem 0.5rem;
    }
    .recent-item {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      width: 100%;
      padding: 0.35rem 0.45rem;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      font-size: 0.72rem;
      cursor: pointer;
      text-align: left;
    }
    .recent-item:hover,
    .recent-item:focus-visible {
      background: var(--accent-soft);
      border-color: rgba(16, 185, 129, 0.2);
      outline: none;
    }
    .recent-path {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-family: var(--mono, ui-monospace, monospace);
    }
    .try-params-form {
      margin: 0.75rem 0 0.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }
    .try-param-field {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      font-size: 0.78rem;
    }
    .try-param-field span em {
      font-style: normal;
      color: var(--muted);
      font-size: 0.7rem;
    }
    .try-param-input {
      padding: 0.4rem 0.5rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-family: var(--mono, ui-monospace, monospace);
      font-size: 0.75rem;
    }
    .resources { list-style: none; }
    .resources li { margin-bottom: 0.15rem; }
    .resources a.resource-link {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.48rem 0.55rem;
      border-radius: 8px;
      font-size: 0.78rem;
      color: var(--text);
      text-decoration: none;
      border: 1px solid transparent;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }
    .resources a.resource-link:hover,
    .resources a.resource-link:focus-visible {
      background: var(--accent-soft);
      border-color: rgba(16, 185, 129, 0.2);
      outline: none;
    }
    .resources a.resource-link:hover .resource-label,
    .resources a.resource-link:focus-visible .resource-label {
      color: var(--accent);
    }
    .resources a.resource-link:hover .resource-icon,
    .resources a.resource-link:hover .resource-external,
    .resources a.resource-link:focus-visible .resource-icon,
    .resources a.resource-link:focus-visible .resource-external {
      color: var(--accent);
    }
    .resource-icon {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      color: var(--muted);
    }
    .resource-icon svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
    }
    .resource-label {
      flex: 1;
      min-width: 0;
      font-weight: 600;
      line-height: 1.3;
    }
    .resource-external {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      color: var(--muted);
      opacity: 0.55;
      transition: opacity 0.15s, color 0.15s;
    }
    .resource-external svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
      fill: none;
    }
    .resources a.resource-link:hover .resource-external,
    .resources a.resource-link:focus-visible .resource-external {
      opacity: 1;
    }
    .main-wrap {
      flex: 1 1 0;
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
      min-width: 0;
      overflow: hidden;
    }
    .split-resizer {
      flex: 0 0 8px;
      width: 8px;
      align-self: stretch;
      position: relative;
      z-index: 25;
      cursor: col-resize;
      touch-action: none;
      background: var(--border);
      transition: background 0.15s ease;
    }
    .split-resizer::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: -4px;
      right: -4px;
      cursor: col-resize;
    }
    .split-resizer::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 4px;
      height: 40px;
      border-radius: 4px;
      background: var(--muted);
      opacity: 0.45;
      pointer-events: none;
      transition: opacity 0.15s, background 0.15s, height 0.15s;
    }
    .split-resizer:hover,
    .split-resizer:focus-visible,
    .split-resizer.dragging {
      background: var(--accent-soft);
    }
    .split-resizer:hover::after,
    .split-resizer:focus-visible::after,
    .split-resizer.dragging::after {
      height: 56px;
      opacity: 1;
      background: var(--accent);
    }
    body.is-resizing-split {
      cursor: col-resize !important;
      user-select: none !important;
    }
    body.is-resizing-split .sidebar,
    body.is-resizing-split .main-wrap,
    body.is-resizing-split .api-map,
    body.is-resizing-split .detail-pane {
      pointer-events: none;
    }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 200;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.85rem 1.25rem;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }
    .view-toggle {
      display: flex;
      align-items: center;
      gap: 0.15rem;
      flex-shrink: 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.15rem;
      background: var(--bg);
    }
    .view-toggle button {
      padding: 0.3rem 0.5rem;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 0.7rem;
      font-weight: 600;
      cursor: pointer;
    }
    .view-toggle button.active {
      background: var(--accent-soft);
      color: var(--accent);
    }
    .filter-empty-hint {
      font-size: 0.82rem;
      color: var(--muted);
      text-align: center;
      padding: 1.5rem 1rem;
    }
    .filter-empty-hint button {
      margin-top: 0.5rem;
      border: none;
      background: none;
      color: var(--accent);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: underline;
    }
    .btn-sm.authorize.locked::before {
      content: "🔒 ";
    }
    [data-theme="dark"] .topbar {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }
    .search-wrap {
      flex: 1;
      min-width: 200px;
      position: relative;
    }
    .search-wrap input {
      width: 100%;
      padding: 0.55rem 0.75rem 0.55rem 2.2rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--bg);
      color: var(--text);
      font-size: 0.85rem;
    }
    .search-wrap input:-webkit-autofill,
    .search-wrap input:-webkit-autofill:hover,
    .search-wrap input:-webkit-autofill:focus,
    .group-search:-webkit-autofill,
    .group-search:-webkit-autofill:hover,
    .group-search:-webkit-autofill:focus {
      -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
      box-shadow: 0 0 0 1000px var(--bg) inset !important;
      -webkit-text-fill-color: var(--text) !important;
      caret-color: var(--text);
      transition: background-color 99999s ease-out 0s;
    }
    .search-clear {
      position: absolute;
      right: 2.4rem;
      top: 50%;
      transform: translateY(-50%);
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 1.1rem;
      line-height: 1;
      cursor: pointer;
      padding: 0.15rem 0.35rem;
      border-radius: 4px;
    }
    .search-clear:hover { color: var(--text); background: var(--accent-soft); }
    .search-clear[hidden] { display: none; }
    .search-wrap input:focus {
      outline: 2px solid var(--accent-soft);
      border-color: var(--accent);
    }
    .search-wrap input:-webkit-autofill,
    .search-wrap input:-webkit-autofill:hover,
    .search-wrap input:-webkit-autofill:focus,
    .group-search:-webkit-autofill,
    .group-search:-webkit-autofill:hover,
    .group-search:-webkit-autofill:focus {
      -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
      box-shadow: 0 0 0 1000px var(--bg) inset !important;
      -webkit-text-fill-color: var(--text) !important;
      caret-color: var(--text);
    }
    .search-icon {
      position: absolute;
      left: 0.7rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 0.9rem;
    }
    .search-kbd {
      position: absolute;
      right: 0.5rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.65rem;
      color: var(--muted);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.1rem 0.35rem;
    }
    .count-pill {
      font-size: 0.75rem;
      color: var(--muted);
      white-space: nowrap;
    }
    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .btn-sm {
      padding: 0.4rem 0.75rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-size: 0.75rem;
      cursor: pointer;
      text-decoration: none;
    }
    .btn-sm:hover { background: var(--accent-soft); border-color: var(--accent); }
    .btn-sm.primary {
      background: var(--accent) !important;
      color: #fff !important;
      border-color: var(--accent) !important;
      font-weight: 600;
    }
    .btn-sm.primary:hover {
      filter: brightness(1.05);
      background: var(--accent) !important;
    }
    .lang-toggle button {
      padding: 0.35rem 0.5rem;
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
    }
    .lang-toggle button.active { color: var(--accent); }
    .content {
      display: flex;
      flex-direction: row;
      flex: 1;
      min-height: 0;
      overflow: hidden;
      --split-left: 42%;
    }
    .api-map {
      display: flex;
      flex-direction: column;
      flex: 0 0 var(--split-left);
      width: var(--split-left);
      min-width: 260px;
      max-width: 72%;
      min-height: 0;
      height: 100%;
      background: var(--bg);
      overflow: hidden;
    }
    .api-map-header {
      flex-shrink: 0;
      padding: 1rem 1.25rem 0.75rem;
      margin-bottom: 0;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }
    .api-map-scroll {
      flex: 1;
      min-height: 0;
      padding: 0.75rem 1.25rem 1.5rem;
    }
    .api-map-header-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem 0.75rem;
      margin-bottom: 0.35rem;
    }
    .api-map-access-badge {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      border: 1px solid var(--border);
    }
    .api-map-access-badge.auth-public {
      background: #dcfce7;
      color: #166534;
      border-color: #86efac;
    }
    .api-map-access-badge.auth-jwt {
      background: #fef3c7;
      color: #92400e;
      border-color: #fcd34d;
    }
    .api-map-access-badge.auth-oauth {
      background: #e0e7ff;
      color: #3730a3;
      border-color: #a5b4fc;
    }
    .sort-label {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.68rem;
      color: var(--muted);
    }
    .sort-select {
      font-size: 0.68rem;
      padding: 0.15rem 0.35rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
    }
    .group-active-hint {
      font-size: 0.68rem;
      color: var(--muted);
      line-height: 1.35;
      margin-top: 0.35rem;
      padding: 0.35rem 0.5rem;
      border-radius: 8px;
      background: var(--accent-soft);
      display: none;
    }
    .group-active-hint.visible { display: block; }
    .api-map-header h2 {
      font-size: 1.1rem;
      font-weight: 700;
    }
    .api-map-header span {
      font-size: 0.72rem;
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .group-color-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .endpoint-row {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.5rem;
      align-items: start;
      padding: 0.45rem 0.6rem;
      border-radius: 10px;
      border: 1px solid transparent;
      cursor: pointer;
      margin-bottom: 0.28rem;
      background: var(--surface);
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .endpoint-row:hover { border-color: var(--border); }
    .endpoint-row.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent), var(--shadow);
    }
    .endpoint-lock {
      font-size: 0.7rem;
      opacity: 0.5;
      margin-left: 0.25rem;
    }
    .method-badge {
      font-size: 0.62rem;
      font-weight: 700;
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      color: #fff;
      letter-spacing: 0.03em;
    }
    .method-badge.get { background: var(--get); }
    .method-badge.post { background: var(--post); }
    .method-badge.put { background: var(--put); }
    .method-badge.patch { background: var(--patch); }
    .method-badge.delete { background: var(--delete); }
    .endpoint-path {
      font-family: ui-monospace, "JetBrains Mono", monospace;
      font-size: 0.78rem;
      word-break: break-all;
    }
    .endpoint-main { min-width: 0; }
    .endpoint-path-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.25rem;
    }
    .endpoint-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-top: 0.2rem;
    }
    .tag-pill {
      font-size: 0.58rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      padding: 0.12rem 0.45rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--muted);
      cursor: pointer;
      font-family: inherit;
      line-height: 1.2;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .tag-pill:hover,
    .tag-pill:focus-visible {
      border-color: var(--accent);
      color: var(--accent);
      outline: none;
      background: var(--accent-soft);
    }
    .tag-pill.primary {
      color: var(--text);
      border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
      background: var(--accent-soft);
    }
    .detail-share-url {
      font-size: 0.65rem;
      color: var(--muted);
      word-break: break-all;
      font-family: "JetBrains Mono", ui-monospace, monospace;
    }
    .active-group-chip {
      font-size: 0.68rem;
      font-weight: 600;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
      white-space: nowrap;
      cursor: pointer;
    }
    .prefix-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      justify-content: flex-start;
      align-items: flex-start;
    }
    .prefix-chip {
      font-size: 0.62rem;
      font-weight: 600;
      padding: 0.15rem 0.45rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--muted);
      cursor: pointer;
      font-family: ui-monospace, monospace;
    }
    .prefix-chip:hover,
    .prefix-chip.active {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-soft);
    }
    .auth-inline {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      flex-shrink: 0;
    }
    .auth-lock {
      font-size: 0.75rem;
      line-height: 1;
      flex-shrink: 0;
    }
    .auth-badge {
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 0.1rem 0.4rem;
      border-radius: 4px;
      flex-shrink: 0;
    }
    .auth-badge.public { background: #dcfce7; color: #166534; }
    .auth-badge.jwt { background: #fef3c7; color: #92400e; }
    .auth-badge.oauth { background: #e0e7ff; color: #3730a3; }
    [data-theme="dark"] .auth-badge.public { background: #14532d; color: #bbf7d0; }
    [data-theme="dark"] .auth-badge.jwt { background: #78350f; color: #fde68a; }
    [data-theme="dark"] .auth-badge.oauth { background: #312e81; color: #c7d2fe; }
    .detail-share-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin: 0.5rem 0 0.75rem;
    }
    .try-response {
      margin-top: 0.75rem;
      max-height: 240px;
      overflow: auto;
      font-size: 0.72rem;
    }
    .try-body-editor-wrap {
      margin-top: 0.5rem;
    }
    .try-body-editor {
      width: 100%;
      min-height: 140px;
      max-height: 280px;
      font-family: var(--font-mono, "JetBrains Mono", monospace);
      font-size: 0.72rem;
      line-height: 1.45;
      padding: 0.65rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface-2, var(--bg-elevated));
      color: var(--text);
      resize: vertical;
    }
    .source-open-repo {
      margin-left: 0.35rem;
    }
    .detail-groups {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin: 0.35rem 0 0.65rem;
    }
    .detail-group-label {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      width: 100%;
      margin: 0;
    }
    .endpoint-summary {
      font-size: 0.68rem;
      color: var(--muted);
      line-height: 1.3;
      margin-top: 0.15rem;
    }
    .detail-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 1rem;
    }
    .detail-tab {
      padding: 0.5rem 0.85rem;
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
    }
    .detail-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }
    .detail-tab-panel { display: none !important; }
    .detail-tab-panel.active { display: block !important; }
    .api-map-loading {
      padding: 1.25rem 1rem;
      font-size: 0.85rem;
      color: var(--muted);
      text-align: center;
    }
    .filter-empty-hint {
      padding: 1.25rem 1rem;
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.55;
      text-align: center;
    }
    .filter-empty-hint button {
      margin-top: 0.65rem;
      padding: 0.4rem 0.85rem;
      border-radius: 8px;
      border: 1px solid var(--accent);
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
    }
    .source-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.65rem;
      align-items: center;
      margin-bottom: 0.65rem;
      font-size: 0.72rem;
    }
    .source-meta span {
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      background: var(--accent-soft);
      color: var(--text);
      font-family: ui-monospace, monospace;
    }
    .source-meta .source-fn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--muted);
      font-family: inherit;
    }
    .dracula-panel {
      --dracula-bg: #282a36;
      --dracula-current: #44475a;
      --dracula-fg: #f8f8f2;
      --dracula-comment: #6272a4;
      --dracula-cyan: #8be9fd;
      --dracula-green: #50fa7b;
      --dracula-yellow: #f1fa8c;
      --dracula-orange: #ffb86c;
      --dracula-pink: #ff79c6;
      --dracula-purple: #bd93f9;
      --dracula-selection: rgba(68, 71, 90, 0.88);
    }
    .source-viewer.code-panel-body {
      display: flex;
      overflow: hidden;
      padding: 0;
    }
    .source-viewer.dracula-panel,
    .source-viewer.dracula-panel .source-lines-col,
    .source-viewer.dracula-panel .source-code-col,
    .source-viewer.dracula-panel .source-code-editor-wrap,
    .source-viewer.dracula-panel .source-highlight-layer {
      background: var(--dracula-bg);
      color: var(--dracula-fg);
    }
    .source-viewer {
      display: flex;
      font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.78rem;
      line-height: 1.55;
      position: relative;
    }
    .source-viewer .copy-btn {
      position: absolute;
      top: 0.45rem;
      right: 0.45rem;
      z-index: 4;
      background: var(--dracula-current);
      color: var(--dracula-fg);
      border: 1px solid var(--dracula-comment);
    }
    .source-viewer .copy-btn:hover {
      background: var(--dracula-comment);
      color: var(--dracula-bg);
    }
    .source-lines-col {
      flex: 0 0 auto;
      padding: 0.75rem 0.55rem 0.75rem 0.65rem;
      text-align: right;
      color: var(--dracula-comment);
      border-right: 1px solid var(--dracula-current);
      user-select: none;
      white-space: pre;
    }
    .source-code-col {
      flex: 1 1 auto;
      padding: 0.75rem 0.85rem;
      white-space: pre;
      min-width: 0;
      margin: 0;
    }
    .source-code-editor-wrap {
      flex: 1 1 auto;
      position: relative;
      min-width: 0;
      min-height: 220px;
      overflow: hidden;
    }
    .source-code-editor-wrap .source-highlight-layer,
    .source-code-editor-wrap .source-editor {
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
      tab-size: 4;
      padding: 0.75rem 0.85rem;
      margin: 0;
      border: none;
      white-space: pre;
      word-wrap: normal;
      overflow-wrap: normal;
      box-sizing: border-box;
    }
    .source-highlight-layer {
      position: absolute;
      inset: 0;
      overflow: auto;
      pointer-events: none;
      z-index: 0;
    }
    .source-highlight-layer code {
      display: block;
      white-space: pre;
      font-family: inherit;
    }
    .source-editor {
      position: absolute;
      inset: 0;
      z-index: 1;
      width: 100%;
      height: 100%;
      resize: none;
      overflow: auto;
      background: transparent;
      color: transparent;
      caret-color: var(--dracula-fg);
      outline: none;
    }
    .source-editor::selection {
      background: var(--dracula-selection);
      color: transparent;
    }
    .source-lines-col,
    .source-code-col,
    .source-highlight-layer {
      overflow: auto;
      max-height: 100%;
    }
    .source-code-col code { white-space: pre; display: block; }
    .dracula-panel .tok-kw { color: var(--dracula-pink); font-weight: 600; }
    .dracula-panel .tok-str { color: var(--dracula-yellow); }
    .dracula-panel .tok-com { color: var(--dracula-comment); font-style: italic; }
    .dracula-panel .tok-dec { color: var(--dracula-orange); }
    .dracula-panel .tok-fn { color: var(--dracula-green); }
    .dracula-panel .tok-builtin { color: var(--dracula-cyan); }
    .dracula-panel .tok-num { color: var(--dracula-purple); }
    .dracula-badge {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      background: var(--dracula-current);
      color: var(--dracula-purple);
      border: 1px solid var(--dracula-comment);
    }
    .source-readonly-note {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 0.65rem;
      line-height: 1.45;
    }
    .source-route-edit--readonly input[readonly],
    .source-route-edit--readonly textarea[readonly],
    .source-route-edit--readonly select:disabled {
      opacity: 0.92;
      cursor: default;
      background: var(--bg);
    }
    .source-loading {
      font-size: 0.78rem;
      color: var(--muted);
      padding: 1rem 0;
    }
    .source-split-hint {
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 0.5rem;
      line-height: 1.4;
    }
    .source-zone-stack {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .source-zone-block {
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      background: var(--surface);
      box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    }
    .source-zone-block-head {
      padding: 0.6rem 0.85rem;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }
    .source-zone-block-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--accent);
      margin: 0 0 0.25rem;
    }
    .source-zone-block-desc {
      font-size: 0.72rem;
      color: var(--muted);
      margin: 0;
      line-height: 1.4;
    }
    .source-zone-code {
      --dracula-bg: #282a36;
      --dracula-current: #44475a;
      --dracula-fg: #f8f8f2;
      --dracula-comment: #6272a4;
      --dracula-purple: #bd93f9;
    }
    .source-zone-code .source-zone-block-head {
      background: var(--dracula-bg);
      border-bottom-color: var(--dracula-current);
    }
    .source-zone-code.is-collapsed .source-zone-block-head {
      border-bottom: none;
    }
    .source-zone-code-head {
      cursor: pointer;
      user-select: none;
    }
    .source-zone-head-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.65rem;
    }
    .source-zone-head-text {
      flex: 1 1 auto;
      min-width: 0;
    }
    .source-zone-toggle {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.5rem;
      height: 1.5rem;
      padding: 0;
      border-radius: 4px;
      border: none;
      background: transparent;
      color: var(--dracula-comment);
      cursor: pointer;
    }
    .source-zone-toggle:hover {
      background: rgba(248, 248, 242, 0.08);
      color: var(--dracula-fg);
    }
    .source-zone-toggle:focus-visible {
      outline: 2px solid var(--dracula-purple);
      outline-offset: 2px;
    }
    .source-zone-chevron {
      display: block;
      width: 0.4rem;
      height: 0.4rem;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg);
      transition: transform 0.2s ease;
      margin-top: -0.12rem;
    }
    .source-zone-code.is-collapsed .source-zone-chevron {
      transform: rotate(-45deg);
      margin-top: 0;
      margin-left: 0.08rem;
    }
    .source-zone-code .source-zone-block-title {
      color: var(--dracula-purple);
    }
    .source-zone-code .source-zone-block-desc {
      color: var(--dracula-comment);
    }
    .source-zone-code.is-collapsed .source-zone-block-desc {
      display: none;
    }
    .source-zone-collapsed-summary {
      display: none;
      font-size: 0.7rem;
      color: var(--dracula-fg);
      margin: 0.4rem 0 0;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      line-height: 1.4;
      word-break: break-all;
    }
    .source-zone-code.is-collapsed .source-zone-collapsed-summary {
      display: block;
    }
    .source-zone-code-body {
      display: block;
    }
    .source-zone-code.is-collapsed .source-zone-code-body {
      display: none;
    }
    .source-zone-code .code-panel-resizable.dracula-panel {
      border: none;
      border-radius: 0;
      box-shadow: none;
    }
    .source-zone-params-head {
      cursor: pointer;
      user-select: none;
    }
    .source-zone-params-block .source-zone-toggle {
      color: var(--muted);
    }
    .source-zone-params-block .source-zone-toggle:hover {
      background: var(--accent-soft);
      color: var(--accent);
    }
    .source-zone-params-block.is-collapsed .source-zone-block-head {
      border-bottom: none;
    }
    .source-zone-params-block.is-collapsed .source-zone-block-desc {
      display: none;
    }
    .source-zone-params-body {
      display: block;
    }
    .source-zone-params-block.is-collapsed .source-zone-params-body {
      display: none;
    }
    .source-zone-params {
      padding: 0.75rem 0.85rem 0.85rem;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }
    .source-zone-params-block.is-collapsed .params-collapsed-summary {
      display: block;
      font-size: 0.72rem;
      color: var(--muted);
      margin: 0.35rem 0 0 1.85rem;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      line-height: 1.4;
    }
    .params-collapsed-summary {
      display: none;
    }
    .source-params-panel {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.65rem 0.75rem;
      background: var(--bg);
    }
    .source-params-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .source-zone-params .source-zone-section-title {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0;
    }
    .source-zone-params .source-meta {
      margin-bottom: 0;
      gap: 0.4rem 0.55rem;
    }
    .source-meta .source-fn {
      display: block;
      width: 100%;
      margin-top: 0.15rem;
      padding: 0.45rem 0.5rem;
      border-radius: 6px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 0.68rem;
      line-height: 1.45;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .btn-ghost-xs {
      font-size: 0.65rem;
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--muted);
      cursor: pointer;
    }
    .btn-ghost-xs:hover {
      color: var(--accent);
      border-color: var(--accent);
    }
    .endpoint-edit-form.source-route-edit {
      display: grid;
      grid-template-columns: minmax(6.5rem, 8rem) 1fr 1fr;
      gap: 0.55rem 0.65rem;
      max-width: none;
    }
    .endpoint-edit-form.source-route-edit .edit-hint,
    .endpoint-edit-form.source-route-edit .edit-badge {
      grid-column: 1 / -1;
      margin: 0;
    }
    .route-edit-field--path { grid-column: 2 / -1; }
    .route-edit-field--summary { grid-column: 1 / -1; }
    .route-edit-field--description { grid-column: 1 / -1; }
    .route-edit-field--tags { grid-column: 1 / 3; }
    .route-edit-field--auth { grid-column: 3 / -1; }
    .route-edit-field--hidden {
      grid-column: 1 / -1;
      flex-direction: row;
      align-items: center;
    }
    .route-edit-field--hidden span {
      flex-direction: row;
      align-items: center;
      gap: 0.35rem;
    }
    .route-edit-method-select {
      font-weight: 700;
      text-transform: uppercase;
    }
    .source-zone-code-actions,
    .source-zone-actions-group {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.45rem;
    }
    .source-zone-code-actions {
      padding: 0.55rem 0.85rem;
      border-top: 1px solid var(--dracula-current);
      background: var(--dracula-bg);
    }
    .source-zone-code-actions .btn-sm.primary {
      background: var(--dracula-purple);
      border-color: var(--dracula-purple);
      color: var(--dracula-bg);
    }
    .source-zone-actions-group {
      flex-direction: column;
      align-items: stretch;
      gap: 0.4rem;
      padding-top: 0.15rem;
      border-top: 1px solid var(--border);
      margin-top: 0.15rem;
    }
    .source-zone-actions-label {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0;
    }
    .source-zone-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.45rem;
      padding-top: 0;
      margin-top: 0;
      border-top: none;
    }
    .source-zone-params .edit-status {
      margin: 0.25rem 0 0;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border);
    }
    .endpoint-edit-form {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      max-width: 36rem;
    }
    .endpoint-edit-form label {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      font-size: 0.72rem;
      color: var(--muted);
    }
    .endpoint-edit-form input,
    .endpoint-edit-form select,
    .endpoint-edit-form textarea {
      padding: 0.45rem 0.55rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text);
      font-size: 0.82rem;
    }
    .endpoint-edit-form textarea { min-height: 4rem; resize: vertical; font-family: inherit; }
    .edit-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-top: 0.35rem;
    }
    .edit-hint, .edit-badge {
      font-size: 0.72rem;
      color: var(--muted);
      line-height: 1.45;
      margin: 0 0 0.35rem;
    }
    .edit-badge {
      color: var(--accent);
      font-weight: 600;
    }
    .edit-pill {
      font-size: 0.62rem;
      color: var(--accent);
      margin-left: 0.35rem;
    }
    .code-panel-resizable.dracula-panel {
      border: 1px solid var(--dracula-current);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    }
    .dracula-panel .code-panel-resizer {
      background: var(--dracula-bg);
      border-top: 1px solid var(--dracula-current);
    }
    .dracula-panel .code-panel-resizer::after {
      background: var(--dracula-comment);
    }
    .dracula-panel .code-panel-resizer:hover::after,
    .dracula-panel .code-panel-resizer:focus-visible::after,
    .dracula-panel .code-panel-resizer.dragging::after {
      background: var(--dracula-purple);
    }
    .edit-status {
      font-size: 0.72rem;
      color: var(--muted);
      min-height: 1.2em;
    }
    .edit-status.ok { color: #16a34a; }
    .edit-status.err { color: #dc2626; }
    .try-toolbar {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.35rem;
      flex-wrap: wrap;
    }
    .try-hint {
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 0.65rem;
      line-height: 1.4;
    }
    .try-send {
      padding: 0.4rem 0.85rem;
      border: none;
      border-radius: 8px;
      background: var(--accent);
      color: #fff;
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--accent);
    }
    .try-send:hover { filter: brightness(0.95); }
    .try-send:disabled { opacity: 0.55; cursor: wait; }
    .try-toolbar--primary {
      margin: 0.5rem 0 0.25rem;
    }
    .try-send--hero {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 12rem;
      padding: 0.55rem 1.15rem;
      font-size: 0.8rem;
      box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    }
    .try-sample-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0.75rem 0 0.4rem;
    }
    .content[data-view="list"] .detail-pane { display: none; }
    .content[data-view="list"] .split-resizer.content-split { display: none; }
    .content[data-view="list"] .api-map {
      flex: 1 1 auto;
      width: 100% !important;
      max-width: none;
    }
    .content[data-view="try"] { --split-left: 32%; }
    .auth-modal {
      position: fixed;
      inset: 0;
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.45);
      padding: 1rem;
    }
    .auth-modal[hidden] { display: none; }
    .auth-modal-box {
      width: 100%;
      max-width: 400px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem;
      box-shadow: var(--shadow);
    }
    .auth-modal-box h3 {
      font-size: 1rem;
      margin-bottom: 0.35rem;
    }
    .auth-modal-box p {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 0.75rem;
    }
    .auth-modal-field {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      margin-bottom: 0.75rem;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--muted);
    }
    .auth-modal-field input {
      width: 100%;
      padding: 0.55rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg);
      color: var(--text);
      font-family: ui-monospace, monospace;
      font-size: 0.78rem;
      margin-bottom: 0;
    }
    .auth-modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.5rem;
    }
    .openapi-snippet {
      font-size: 0.7rem;
      overflow: auto;
    }
    .detail-section .openapi-snippet,
    .detail-tab-panel[data-panel="try"] .openapi-snippet {
      max-height: 280px;
    }
    .code-panel-resizable {
      display: flex;
      flex-direction: column;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--border);
    }
    .code-panel-body {
      height: 280px;
      min-height: 120px;
      overflow: auto;
      border-radius: var(--radius) var(--radius) 0 0;
      border: none;
    }
    .code-panel-resizer {
      flex-shrink: 0;
      height: 12px;
      cursor: row-resize;
      background: var(--surface);
      border-top: 1px solid var(--border);
      position: relative;
      touch-action: none;
    }
    .code-panel-resizer::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 52px;
      height: 4px;
      border-radius: 2px;
      background: var(--muted);
      opacity: 0.4;
      transition: opacity 0.15s, background 0.15s;
    }
    .code-panel-resizer:hover::after,
    .code-panel-resizer:focus-visible::after,
    .code-panel-resizer.dragging::after {
      opacity: 0.9;
      background: var(--accent);
    }
    body.is-resizing-code-panel,
    body.is-resizing-code-panel * {
      cursor: row-resize !important;
      user-select: none !important;
    }
    .detail-pane {
      display: flex;
      flex-direction: column;
      flex: 1 1 0;
      min-width: 280px;
      min-height: 0;
      max-height: 100%;
      overflow: hidden;
      background: var(--surface);
      border-left: 1px solid transparent;
    }
    .detail-pane-scroll {
      flex: 1 1 auto;
      min-height: 0;
      height: 0;
      padding: 1.25rem 1rem 2rem 1.5rem;
    }
    .detail-pane-scroll::-webkit-scrollbar {
      width: 10px;
    }
    .detail-pane-scroll::-webkit-scrollbar-thumb {
      background: rgba(16, 185, 129, 0.5);
      border-radius: 5px;
      border: 2px solid var(--surface);
      background-clip: padding-box;
    }
    .detail-pane-scroll::-webkit-scrollbar-thumb:hover {
      background: rgba(16, 185, 129, 0.75);
      background-clip: padding-box;
    }
    .detail-empty {
      color: var(--muted);
      font-size: 0.9rem;
      padding: 2rem 0;
      text-align: center;
    }
    .detail-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.75rem;
    }
    .detail-header .path {
      font-family: ui-monospace, monospace;
      font-size: 0.85rem;
      color: var(--muted);
    }
    .detail-title {
      font-size: 1.35rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      width: 100%;
    }
    .detail-desc {
      font-size: 0.88rem;
      color: var(--muted);
      margin-bottom: 0.75rem;
      line-height: 1.65;
    }
    .swagger-inline-wrap {
      margin: 0 0 1.25rem;
    }
    .swagger-inline-link {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--accent);
      text-decoration: none;
    }
    .swagger-inline-link:hover {
      text-decoration: underline;
    }
    .detail-section h4 {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.5rem;
    }
    .detail-section { margin-bottom: 1.25rem; }
    .param-list, .response-list {
      list-style: none;
      font-size: 0.85rem;
    }
    .param-list li, .response-list li {
      padding: 0.45rem 0;
      border-bottom: 1px solid var(--border);
    }
    .code-block {
      position: relative;
      background: #0f172a;
      color: #e2e8f0;
      border-radius: var(--radius);
      padding: 1rem 1rem 1rem 1rem;
      font-family: ui-monospace, "JetBrains Mono", monospace;
      font-size: 0.75rem;
      line-height: 1.55;
      overflow-x: auto;
      white-space: pre;
    }
    .copy-btn {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      padding: 0.25rem 0.55rem;
      font-size: 0.68rem;
      border-radius: 6px;
      border: 1px solid #334155;
      background: #1e293b;
      color: #94a3b8;
      cursor: pointer;
    }
    .copy-btn:hover { color: #fff; }
    .dracula-panel .code-block,
    .dracula-panel .code-panel-body {
      background: var(--dracula-bg);
      color: var(--dracula-fg);
      border: 1px solid var(--dracula-current);
    }
    .dracula-panel .copy-btn {
      background: var(--dracula-current);
      color: var(--dracula-fg);
      border-color: var(--dracula-comment);
    }
    .dracula-panel .copy-btn:hover {
      background: var(--dracula-comment);
      color: var(--dracula-bg);
    }
    .page-footer {
      flex-shrink: 0;
      background: var(--surface);
      border-top: 1px solid var(--border);
    }
    .stats-footer {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      background: var(--surface);
    }
    .stat-card {
      padding: 0.5rem 0.75rem;
      border-right: 1px solid var(--border);
      text-align: center;
    }
    .stat-card:last-child { border-right: none; }
    .stat-label {
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--muted);
      text-transform: uppercase;
    }
    .stat-value {
      font-size: 1.05rem;
      font-weight: 700;
      margin-top: 0.12rem;
      color: var(--text);
      font-variant-numeric: tabular-nums;
    }
    .copyright {
      text-align: right;
      padding: 0.35rem 1rem 0.5rem;
      font-size: 0.65rem;
      color: var(--muted);
      border-top: 1px solid var(--border);
      background: var(--surface);
      border-top: 1px solid var(--border);
    }
    /* Scrollbars visibles (sidebar, liste, détail + page) */
    html::-webkit-scrollbar,
    .sidebar-scroll::-webkit-scrollbar,
    .api-map-scroll::-webkit-scrollbar,
    .detail-pane-scroll::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    html::-webkit-scrollbar-track,
    .sidebar-scroll::-webkit-scrollbar-track,
    .api-map-scroll::-webkit-scrollbar-track,
    .detail-pane-scroll::-webkit-scrollbar-track {
      background: rgba(100, 116, 139, 0.08);
      border-radius: 5px;
    }
    html::-webkit-scrollbar-thumb,
    .sidebar-scroll::-webkit-scrollbar-thumb,
    .api-map-scroll::-webkit-scrollbar-thumb,
    .detail-pane-scroll::-webkit-scrollbar-thumb {
      background: rgba(100, 116, 139, 0.45);
      border-radius: 5px;
      border: 2px solid transparent;
      background-clip: padding-box;
    }
    html::-webkit-scrollbar-thumb:hover,
    .sidebar-scroll::-webkit-scrollbar-thumb:hover,
    .api-map-scroll::-webkit-scrollbar-thumb:hover,
    .detail-pane-scroll::-webkit-scrollbar-thumb:hover {
      background: rgba(16, 185, 129, 0.65);
      background-clip: padding-box;
    }
    html,
    .sidebar-scroll,
    .api-map-scroll,
    .detail-pane-scroll {
      scrollbar-width: thin;
      scrollbar-color: rgba(100, 116, 139, 0.5) rgba(100, 116, 139, 0.1);
    }
    .detail-pane-scroll {
      scrollbar-color: rgba(16, 185, 129, 0.55) rgba(16, 185, 129, 0.12);
    }
    [data-theme="dark"] html::-webkit-scrollbar-track,
    [data-theme="dark"] .sidebar-scroll::-webkit-scrollbar-track,
    [data-theme="dark"] .api-map-scroll::-webkit-scrollbar-track,
    [data-theme="dark"] .detail-pane-scroll::-webkit-scrollbar-track {
      background: rgba(15, 23, 42, 0.6);
    }
    [data-theme="dark"] html::-webkit-scrollbar-thumb,
    [data-theme="dark"] .sidebar-scroll::-webkit-scrollbar-thumb,
    [data-theme="dark"] .api-map-scroll::-webkit-scrollbar-thumb,
    [data-theme="dark"] .detail-pane-scroll::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.45);
      background-clip: padding-box;
    }

    /* Fenêtre basse : scroll global en complément des panneaux */
    @media (max-height: 640px) {
      .app {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow: visible;
      }
      .main-wrap {
        height: auto;
        min-height: 70vh;
        overflow: visible;
      }
      .content {
        min-height: 50vh;
        overflow: visible;
      }
      .api-map,
      .detail-pane {
        max-height: 55vh;
      }
    }

    @media (max-width: 1024px) {
      html, body { overflow-y: auto; }
      .app {
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
      }
      .split-resizer.sidebar-split {
        display: none;
      }
      .sidebar {
        flex: none;
        width: 100% !important;
        max-width: none;
        height: auto;
        max-height: 38vh;
        border-bottom: 1px solid var(--border);
      }
      .main-wrap {
        height: auto;
        min-height: 60vh;
        overflow: visible;
      }
      .content {
        flex-direction: column;
        min-height: 50vh;
      }
      .split-resizer.content-split {
        display: none;
      }
      .api-map {
        flex: none;
        width: 100% !important;
        max-width: none;
        max-height: 42vh;
        border-bottom: 1px solid var(--border);
      }
      .detail-pane {
        flex: none;
        width: 100%;
        min-width: 0;
        max-height: 50vh;
        display: flex;
        flex-direction: column;
      }
      .detail-pane-scroll {
        flex: 1;
        min-height: 0;
        max-height: 50vh;
        height: auto;
      }
      .stats-footer { grid-template-columns: repeat(2, 1fr); }
    }

    .api-map-section {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 1.1rem 0 0.45rem;
      padding: 0 0.15rem;
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }
    .api-map-section:first-child { margin-top: 0.25rem; }
    .api-map-section-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    #toast-host {
      position: fixed;
      bottom: 4.5rem;
      right: 1rem;
      z-index: 600;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      pointer-events: none;
    }
    .toast {
      padding: 0.55rem 0.85rem;
      border-radius: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      font-size: 0.82rem;
      color: var(--text);
      animation: toast-in 0.2s ease;
    }
    @keyframes toast-in {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .brand-icon--img {
      padding: 0;
      overflow: hidden;
      font-size: 0;
    }
    .brand-icon--img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
