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

    :root {
      color-scheme: dark;
      --bg: #000000;
      --sidebar: #0a0a0d;
      --surface: rgba(255, 255, 255, 0.04);
      --surface2: rgba(255, 255, 255, 0.08);
      --border: rgba(255, 255, 255, 0.12);
      --border2: rgba(255, 255, 255, 0.22);
      --white: #ffffff;
      --ink-primary: #f9fafb;
      --ink-secondary: #d1d5db;
      --muted: rgba(255, 255, 255, 0.65);
      --muted2: rgba(255, 255, 255, 0.45);
      --emerald: #78ffa0;
      --accent: #78ffa0;
      --cyan: #50e3c2;
      --purple: #8093b4;
      --red: #ef4444;
      --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --space: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --mono: "Roboto Mono", monospace;
      --serif: "Fraunces", Georgia, serif;
      --sidebar-w: 380px;
    }

    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.14);
      border-radius: 10px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    html, body {
      height: 100%;
      overflow: hidden;
    }

    body {
      background: var(--bg);
      color: var(--ink-primary);
      font-family: var(--sans);
      font-size: 14px;
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label {
      font-family: var(--sans);
    }

    /* ── STUDIO CONTAINER ── */
    .app-container {
      display: flex;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
      position: relative;
    }

    /* ── SIDEBAR (Matching Widget Customizer Spec) ── */
    .sidebar {
      width: var(--sidebar-w);
      min-width: var(--sidebar-w);
      background: var(--sidebar);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
      position: relative;
      z-index: 10;
      flex-shrink: 0;
    }

    .sidebar-top {
      height: 48px;
      padding: 0 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      flex-shrink: 0;
      background: var(--sidebar);
    }

    .sidebar-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-family: var(--mono);
      text-decoration: none;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: color 0.15s;
    }

    .sidebar-back:hover {
      color: var(--emerald);
    }

    .sidebar-back svg {
      transition: transform 0.15s;
    }

    .sidebar-back:hover svg {
      transform: translateX(-2px);
    }

    .sidebar-scrollable {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 20px 20px 32px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .sidebar-section-title {
      font-family: var(--mono, "Roboto Mono", monospace);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.20em;
      text-transform: uppercase;
      color: var(--emerald, #78ffa0);
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      margin-bottom: 2px;
    }

    /* ── SIDEBAR TAB SWITCHER ── */
    .sidebar-tab-nav {
      display: flex;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 3px;
      gap: 4px;
      flex-shrink: 0;
    }

    .sidebar-tab-btn {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--muted);
      font-family: var(--sans);
      font-size: 0.82rem;
      font-weight: 600;
      padding: 8px 12px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      transition: all 0.15s ease;
    }

    .sidebar-tab-btn:hover {
      color: var(--white);
    }

    .sidebar-tab-btn.active {
      background: rgba(120, 255, 160, 0.12);
      color: var(--emerald);
      border: 1px solid rgba(120, 255, 160, 0.35);
      box-shadow: 0 0 12px rgba(120, 255, 160, 0.08);
    }

    .sidebar-tab-btn.active svg {
      stroke: var(--emerald);
    }

    .sidebar-pane {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .sidebar-section {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding-bottom: 22px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .sidebar-section:last-of-type {
      border-bottom: none;
      padding-bottom: 0;
    }

    .section-title {
      font-family: var(--mono, "Roboto Mono", monospace);
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--emerald, #78ffa0);
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 2px;
    }

    /* Visual Format Grid (No text clipping) */
    .archetype-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .archetype-btn {
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      padding: 9px 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      color: var(--muted);
      text-align: left;
      transition: all 0.15s ease;
      font-family: var(--sans);
      min-width: 0;
      overflow: hidden;
    }

    .archetype-btn:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.18);
      color: var(--white);
    }

    .archetype-btn.active {
      background: rgba(120, 255, 160, 0.1);
      border-color: rgba(120, 255, 160, 0.45);
      color: var(--emerald);
      box-shadow: 0 0 10px rgba(120, 255, 160, 0.15);
    }

    .archetype-svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      flex-shrink: 0;
      opacity: 0.95;
    }

    .archetype-name {
      font-size: 0.74rem;
      font-weight: 600;
      color: inherit;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
    }

    /* ── CHART PALETTES GRID ── */
    .palette-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .palette-card {
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      text-align: left;
      transition: all 0.15s ease;
      min-width: 0;
    }

    .palette-card:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.18);
    }

    .palette-card.active {
      background: rgba(120, 255, 160, 0.1);
      border-color: rgba(120, 255, 160, 0.45);
      box-shadow: 0 0 10px rgba(120, 255, 160, 0.15);
    }

    .palette-card-name {
      font-size: 0.70rem;
      font-weight: 700;
      font-family: var(--mono);
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .palette-card.active .palette-card-name {
      color: var(--emerald);
    }

    .palette-bars {
      display: flex;
      height: 6px;
      border-radius: 3px;
      overflow: hidden;
      gap: 1.5px;
      width: 100%;
    }

    .palette-bar-seg {
      flex: 1;
      height: 100%;
    }

    /* ── NOTION DATA SOURCE PROMINENT CARD ── */
    .notion-source-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 14px 15px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: border-color 0.15s;
    }

    .notion-source-card:hover {
      border-color: var(--border2);
    }

    .notion-source-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .notion-source-info {
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: var(--sans);
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--white);
    }

    .badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--emerald);
      box-shadow: 0 0 6px var(--emerald);
      flex-shrink: 0;
    }

    .db-title-pill {
      font-family: var(--sans);
      font-size: 0.74rem;
      font-weight: 600;
      color: var(--emerald);
      background: var(--surface2);
      border: 1px solid var(--border);
      padding: 3px 8px;
      border-radius: 4px;
      max-width: 160px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .notion-source-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-family: var(--sans);
      font-size: 0.74rem;
      color: var(--muted2);
    }

    .sync-rows-badge {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--muted2);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.07);
      padding: 3px 8px;
      border-radius: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 170px;
    }

    .notion-source-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      width: 100%;
    }

    .btn-connect-notion-primary {
      flex: 1 1 calc(50% - 4px);
      min-width: 0;
      height: 36px;
      background: rgba(120, 255, 160, 0.1);
      border: 1px solid rgba(120, 255, 160, 0.35);
      color: var(--emerald);
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0 10px;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
      box-sizing: border-box;
      white-space: nowrap;
    }

    .btn-connect-notion-primary:hover {
      background: var(--emerald);
      color: #0c1017;
      box-shadow: 0 0 14px rgba(120, 255, 160, 0.3);
    }

    .btn-sync-notion-secondary {
      flex: 1 1 calc(50% - 4px);
      min-width: 0;
      height: 36px;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--white);
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0 10px;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
      box-sizing: border-box;
      white-space: nowrap;
    }

    .btn-sync-notion-secondary:hover {
      border-color: var(--border2);
      background: var(--surface3);
      color: var(--white);
    }

    .btn-disconnect-notion {
      flex: 1 1 100%;
      width: 100%;
      height: 32px;
      background: rgba(255, 75, 75, 0.06);
      border: 1px solid rgba(255, 75, 75, 0.22);
      color: #ff6b6b;
      font-family: var(--sans);
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0 10px;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
      box-sizing: border-box;
    }

    .btn-disconnect-notion:hover {
      background: rgba(255, 75, 75, 0.16);
      border-color: rgba(255, 75, 75, 0.45);
      color: #ff8e8e;
    }

    .sidebar-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 0;
    }

    .btn-new-chart-studio {
      background: rgba(120, 255, 160, 0.08);
      border: 1px solid rgba(120, 255, 160, 0.25);
      color: var(--emerald);
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      padding: 5px 9px;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
      text-decoration: none;
    }

    .btn-new-chart-studio:hover {
      background: var(--emerald);
      color: #0c1017;
      border-color: var(--emerald);
    }

    /* ── FORM CONTROLS ── */
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 10px;
    }

    .form-label {
      font-family: var(--mono, "Roboto Mono", monospace);
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted, rgba(255, 255, 255, 0.65));
      margin-bottom: 2px;
      display: block;
      line-height: 1.45;
    }

    .form-label-hint {
      display: block;
      font-family: var(--sans);
      font-size: 0.70rem;
      font-weight: 400;
      letter-spacing: normal;
      text-transform: none;
      color: var(--muted2);
      margin-top: 2px;
      line-height: 1.35;
    }

    .form-input, .form-textarea {
      color-scheme: dark;
      width: 100%;
      box-sizing: border-box;
      background: rgba(0, 0, 0, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.10);
      color: var(--white);
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 0.82rem;
      font-family: var(--sans);
      outline: none;
      transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    }

    .form-select, select.form-select {
      color-scheme: dark !important;
      width: 100%;
      box-sizing: border-box;
      background-color: #12131a !important;
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #ffffff !important;
      padding: 9px 32px 9px 12px;
      border-radius: 6px;
      font-size: 0.82rem;
      font-family: var(--sans);
      outline: none;
      cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      background-size: 13px;
      transition: border-color 0.15s, box-shadow 0.15s;
    }

    .form-select:hover {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      border-color: var(--border2);
    }

    .form-select:focus {
      background-color: #161722 !important;
      border-color: var(--emerald);
      box-shadow: 0 0 0 2px rgba(120, 255, 160, 0.2);
    }

    .form-select option, .form-select optgroup {
      color-scheme: dark !important;
      background-color: #12131a !important;
      color: #ffffff !important;
    }

    /* ── CUSTOM OBSIDIAN SELECT (IMMUNE TO CHROMIUM OS WHITE POPUP BUG) ── */
    .custom-obsidian-select {
      position: relative;
      width: 100%;
    }

    .custom-select-trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: #12131a;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 6px;
      padding: 9px 12px;
      color: #ffffff;
      font-family: var(--sans);
      font-size: 0.82rem;
      font-weight: 500;
      cursor: pointer;
      box-sizing: border-box;
      transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
      user-select: none;
      outline: none;
    }

    .custom-select-trigger:hover {
      background: #161722;
      border-color: rgba(255, 255, 255, 0.22);
    }

    .custom-select-trigger.active {
      border-color: var(--emerald);
      box-shadow: 0 0 0 2px rgba(120, 255, 160, 0.18);
    }

    .custom-select-main {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }

    .custom-select-value {
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #ffffff;
    }

    .custom-select-type {
      font-size: 0.70rem;
      font-family: var(--mono);
      color: var(--muted2);
      padding: 1px 6px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 4px;
      flex-shrink: 0;
    }

    .custom-select-arrow {
      flex-shrink: 0;
      color: var(--muted);
      transition: transform 0.18s ease;
    }

    .custom-select-trigger.active .custom-select-arrow {
      transform: rotate(180deg);
      color: var(--white);
    }

    .custom-select-menu {
      position: absolute;
      top: calc(100% + 5px);
      left: 0;
      width: 100%;
      max-height: 240px;
      overflow-y: auto;
      background: #0d0e14;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
      z-index: 999;
      box-sizing: border-box;
      padding: 5px;
      display: none;
      animation: fadeInSelectMenu 0.12s ease;
    }

    @keyframes fadeInSelectMenu {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .custom-select-menu::-webkit-scrollbar {
      width: 5px;
    }

    .custom-select-menu::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.18);
      border-radius: 3px;
    }

    .custom-select-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 10px;
      border-radius: 5px;
      font-size: 0.80rem;
      font-family: var(--sans);
      color: #d1d5db;
      cursor: pointer;
      transition: all 0.12s ease;
      user-select: none;
    }

    .custom-select-item:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #ffffff;
    }

    .custom-select-item.selected {
      background: rgba(120, 255, 160, 0.12);
      color: var(--emerald);
      font-weight: 600;
    }

    .custom-select-item .item-type {
      font-size: 0.69rem;
      font-family: var(--mono);
      color: var(--muted2);
      padding: 1px 6px;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 3px;
    }

    .custom-select-item.selected .item-type {
      color: rgba(120, 255, 160, 0.8);
      background: rgba(120, 255, 160, 0.14);
    }

    .form-textarea {
      font-family: var(--mono);
      font-size: 0.78rem;
      resize: vertical;
      min-height: 52px;
      line-height: 1.45;
    }

    .form-input:focus, .form-textarea:focus {
      border-color: var(--emerald);
      background: rgba(0, 0, 0, 0.75);
      box-shadow: 0 0 0 2px rgba(120, 255, 160, 0.2);
    }

    .form-input::placeholder, .form-textarea::placeholder {
      color: rgba(255, 255, 255, 0.25);
    }

    /* ── SEGMENTED PILL PICKERS (Matching Widget Customizer) ── */
    .pill-group {
      display: flex;
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      padding: 3px;
      gap: 4px;
      width: 100%;
      box-sizing: border-box;
    }

    .pill-btn {
      flex: 1;
      min-width: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 8px;
      border-radius: 4px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted, rgba(255, 255, 255, 0.65));
      font-family: var(--mono, "Roboto Mono", monospace);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      cursor: pointer;
      transition: all 0.16s ease;
      user-select: none;
      text-align: center;
      outline: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .pill-btn:hover {
      background: rgba(255, 255, 255, 0.06);
      color: #ffffff;
    }

    .pill-btn.active {
      background: rgba(120, 255, 160, 0.1);
      border-color: rgba(120, 255, 160, 0.45);
      color: var(--emerald, #78ffa0);
      font-weight: 700;
      box-shadow: 0 0 10px rgba(120, 255, 160, 0.15);
    }

    .pill-btn.disabled-pill {
      opacity: 0.35;
      cursor: not-allowed;
      pointer-events: none;
    }

    /* Pill Toggles & Input Groups */
    .input-with-action {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .btn-icon-toggle {
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 6px;
      padding: 8px 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
      height: 38px;
      flex-shrink: 0;
    }

    .btn-icon-toggle:hover {
      border-color: var(--emerald);
      color: var(--white);
    }

    .btn-icon-toggle.is-hidden {
      background: rgba(239, 68, 68, 0.14);
      border-color: rgba(239, 68, 68, 0.5);
      color: #f87171;
    }

    .btn-icon-toggle.is-hidden:hover {
      background: rgba(239, 68, 68, 0.24);
      border-color: #ef4444;
      color: #ffffff;
    }

    .form-input.input-dimmed {
      opacity: 0.45;
      text-decoration: line-through;
      color: var(--muted);
      background: rgba(0, 0, 0, 0.45);
    }

    /* Segmented Theme Switch on Notion Window Header */
    .theme-mode-pill {
      display: inline-flex;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 2px;
      gap: 2px;
    }

    .theme-mode-btn {
      background: transparent;
      border: none;
      color: var(--muted);
      font-family: var(--sans);
      font-size: 0.72rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s ease;
      line-height: 1.2;
    }

    .theme-mode-btn:hover {
      color: var(--white);
    }

    .theme-mode-btn.active {
      background: rgba(255, 255, 255, 0.14);
      color: #ffffff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    }

    /* Light mode state for the Notion Preview Window */
    .notion-preview-window.canvas-light-mode {
      background: #ffffff;
      border-color: #e3e2de;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    }

    .notion-preview-window.canvas-light-mode .window-header {
      background: #f7f7f5;
      border-bottom: 1px solid #e3e2de;
    }

    .notion-preview-window.canvas-light-mode .window-title {
      color: #787774;
    }

    .notion-preview-window.canvas-light-mode .theme-mode-pill {
      background: #e9e9e6;
      border-color: #dcdbd7;
    }

    .notion-preview-window.canvas-light-mode .theme-mode-btn {
      color: #787774;
    }

    .notion-preview-window.canvas-light-mode .theme-mode-btn:hover {
      color: #111827;
    }

    .notion-preview-window.canvas-light-mode .theme-mode-btn.active {
      background: #ffffff;
      color: #111827;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    .pill-group {
      display: flex;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 3px;
      gap: 3px;
    }

    .pill-btn {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--muted);
      font-family: var(--sans);
      font-size: 0.75rem;
      font-weight: 600;
      padding: 6px 4px;
      border-radius: 4px;
      cursor: pointer;
      text-align: center;
      transition: all 0.15s ease;
    }

    .pill-btn:hover {
      color: var(--white);
    }

    .pill-btn.active {
      background: rgba(120, 255, 160, 0.12);
      color: var(--emerald);
      border: 1px solid rgba(120, 255, 160, 0.35);
    }

    .pill-btn.disabled-pill {
      opacity: 0.38;
      cursor: not-allowed;
    }

    .pill-btn.disabled-pill:hover {
      color: var(--muted);
      background: transparent;
    }

    /* ── BALANCED 3x2 SORT ORDER PILLS ── */
    #pill-group-sort-by {
      display: grid !important;
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 4px !important;
    }

    #pill-group-sort-by .pill-btn {
      flex: none !important;
      width: 100% !important;
      padding: 6px 3px !important;
      font-size: 0.70rem !important;
    }

    .mapping-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    /* Collapsible Manual Override */
    .btn-accordion-toggle {
      background: transparent;
      border: none;
      color: var(--muted2);
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 4px 0;
      transition: color 0.15s;
    }

    .btn-accordion-toggle:hover {
      color: var(--white);
    }

    /* ── BOTTOM DANGER ZONE ── */
    .sidebar-danger-zone {
      margin-top: 10px;
      padding-top: 18px;
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .btn-delete-bottom {
      background: rgba(239, 68, 68, 0.06);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #f87171;
      font-family: var(--mono);
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 10px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
      width: 100%;
    }

    .btn-delete-bottom:hover {
      background: rgba(239, 68, 68, 0.16);
      border-color: var(--red);
      color: #ffffff;
    }

    /* ── MAIN STAGE ── */
    .canvas-stage {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: var(--bg);
      height: 100%;
      overflow: hidden;
      min-height: 0;
    }

    /* ── TOPBAR (Matching Widget Customizer Spec) ── */
    .topbar {
      height: 48px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28px;
      background: #000000;
      flex-shrink: 0;
      z-index: 10;
    }

    /* Dev Mode Switcher (Localhost Testing Only) */
    .dev-switch-group {
      display: inline-flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 6px;
      padding: 2px 3px;
      gap: 2px;
      user-select: none;
    }
    .dev-switch-badge {
      font-family: var(--mono, monospace);
      font-size: 0.62rem;
      font-weight: 700;
      color: #ffd641;
      letter-spacing: 0.08em;
      padding: 0 6px 0 5px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .dev-switch-badge::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #ffd641;
      box-shadow: 0 0 6px rgba(255, 214, 65, 0.8);
    }
    .dev-switch-btn {
      background: transparent;
      border: 1px solid transparent;
      color: var(--muted, rgba(255, 255, 255, 0.65));
      font-family: var(--mono, monospace);
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      padding: 3px 7px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s ease;
      line-height: 1.2;
    }
    .dev-switch-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.08);
    }
    .dev-switch-btn.active[data-mode="off"] {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.28);
      color: #ffffff;
    }
    .dev-switch-btn.active[data-mode="free"] {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.35);
      color: #ffffff;
    }
    .dev-switch-btn.active[data-mode="paid"] {
      background: rgba(139, 92, 246, 0.22);
      border-color: rgba(139, 92, 246, 0.6);
      color: #c4b5fd;
      box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    }
    .dev-switch-btn.active[data-mode="creator"] {
      background: rgba(120, 255, 160, 0.2);
      border-color: rgba(120, 255, 160, 0.55);
      color: #78ffa0;
      box-shadow: 0 0 10px rgba(120, 255, 160, 0.25);
    }
    @media (max-width: 860px) {
      .dev-switch-badge { display: none; }
      .dev-switch-btn { padding: 3px 5px; font-size: 0.62rem; }
    }

    .topbar-title {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .proto-pip {
      display: block;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(120, 255, 160, 0.9);
      box-shadow: 0 0 8px rgba(120, 255, 160, 0.6);
      animation: pulse-dot 2s ease-in-out infinite;
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(120, 255, 160, 0.5); }
      50% { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 14px rgba(120, 255, 160, 0.9); }
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .topbar-tab-link {
      font-family: var(--mono);
      font-size: 0.70rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: color 0.15s;
    }

    .topbar-tab-link:hover {
      color: #ffffff;
    }

    .stage-scroll-area {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 32px 40px;
      gap: 16px;
      width: 100%;
    }

    .stage-header-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      max-width: 920px;
      margin: 0 auto;
      flex-shrink: 0;
    }

    .stage-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .stage-chart-name {
      font-family: var(--sans);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--white);
      letter-spacing: -0.01em;
      text-transform: uppercase;
    }

    .widget-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      background: rgba(120, 255, 160, 0.08);
      border: 1px solid rgba(120, 255, 160, 0.35);
      border-radius: 4px;
      font-family: var(--sans);
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--emerald);
    }

    /* Stage Navigation Tabs */
    .stage-nav-tabs {
      display: flex;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 3px;
      gap: 3px;
    }

    .stage-tab-btn {
      background: transparent;
      border: none;
      color: var(--muted);
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s ease;
    }

    .stage-tab-btn:hover {
      color: var(--white);
    }

    .stage-tab-btn.active {
      background: var(--surface);
      color: var(--emerald);
      border: 1px solid rgba(120, 255, 160, 0.3);
    }

    /* Stage Content Wrapper */
    .stage-content-wrapper {
      width: 100%;
      max-width: 920px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex: 1;
    }

    /* View: Preview Canvas */
    .view-preview-container {
      display: flex;
      flex-direction: column;
      gap: 14px;
      width: 100%;
    }

    .notion-preview-window {
      width: 100%;
      height: 480px;
      background: #191919;
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: background 0.2s ease;
    }

    .window-header {
      height: 38px;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
    }

    .window-controls {
      display: flex;
      gap: 6px;
    }

    .win-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }

    .win-red { background: #ff5f56; }
    .win-yellow { background: #ffbd2e; }
    .win-green { background: #27c93f; }

    .window-title {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--muted2);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .preview-iframe {
      flex: 1;
      width: 100%;
      border: none;
      background: transparent;
    }

    /* ── SEPARATE LINK COPIER CARD (Exact match to Widget Customizer) ── */
    .mockup-copier-card {
      width: 100%;
      margin-top: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      box-sizing: border-box;
    }

    .footer-copier-title {
      font-size: 0.65rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      white-space: nowrap;
      font-family: var(--mono, "Roboto Mono", monospace);
    }

    .mockup-copier-card .copier-row {
      flex: 1;
      max-width: 480px;
      background: #000000;
      border: 1px solid var(--border2);
      border-radius: 8px;
      padding: 4px;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
      box-sizing: border-box;
    }

    .notion-icon-badge {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.03);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .mockup-copier-card .url-input {
      flex: 1;
      background: none;
      border: none;
      color: #e5e7eb;
      font-size: 0.76rem;
      font-family: var(--mono, monospace);
      outline: none;
      padding: 0 8px;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mockup-copier-card .btn-copy {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.15);
      cursor: pointer;
      transition: all 0.15s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      padding: 0;
    }

    .mockup-copier-card .btn-copy:hover {
      background: rgba(255, 255, 255, 0.16);
      border-color: rgba(255, 255, 255, 0.25);
      color: #ffffff;
    }

    .mockup-copier-card .btn-rotate-action {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.04);
      color: rgba(255, 255, 255, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.12);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .mockup-copier-card .btn-rotate-action:hover {
      background: rgba(248, 113, 113, 0.14);
      border-color: rgba(248, 113, 113, 0.45);
      color: #f87171;
    }

    /* Demo Chart Copier Banner Styles */
    .demo-copier-notice {
      flex: 1;
      max-width: 480px;
      background: rgba(245, 158, 11, 0.05);
      border: 1px solid rgba(245, 158, 11, 0.22);
      border-radius: 8px;
      padding: 4px 8px 4px 12px;
      height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      box-sizing: border-box;
      transition: all 0.2s ease;
    }

    .demo-notice-left {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .demo-notice-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #f59e0b;
      box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
      flex-shrink: 0;
    }

    .demo-notice-text {
      font-size: 0.73rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.78);
      letter-spacing: 0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .demo-notice-text strong {
      color: #fbbf24;
      font-weight: 600;
    }

    .btn-demo-connect {
      padding: 5px 11px;
      height: 30px;
      background: rgba(245, 158, 11, 0.15);
      border: 1px solid rgba(245, 158, 11, 0.35);
      color: #fbbf24;
      border-radius: 6px;
      font-size: 0.70rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      transition: all 0.15s ease;
      flex-shrink: 0;
    }

    .btn-demo-connect:hover {
      background: rgba(245, 158, 11, 0.28);
      border-color: rgba(245, 158, 11, 0.65);
      color: #ffffff;
    }

    .stage-demo-badge {
      background: rgba(245, 158, 11, 0.12) !important;
      border: 1px solid rgba(245, 158, 11, 0.35) !important;
      color: #fbbf24 !important;
      font-weight: 700 !important;
      letter-spacing: 0.06em !important;
      font-size: 0.68rem !important;
      padding: 3px 8px !important;
    }

    .badge-dot-amber {
      background: #f59e0b !important;
      box-shadow: 0 0 6px rgba(245, 158, 11, 0.6) !important;
    }

    /* Rotate & Reset Modal Styles */
    .rotate-modal-card {
      max-width: 440px !important;
      background: #0d1117 !important;
      border: 1px solid rgba(248, 113, 113, 0.35) !important;
      box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85) !important;
    }
    .rotate-badge-pill {
      background: rgba(239, 68, 68, 0.12) !important;
      border-color: rgba(239, 68, 68, 0.35) !important;
      color: #f87171 !important;
    }
    .rotate-warning-box {
      background: rgba(0, 0, 0, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 14px;
      margin: 16px 0 6px;
      text-align: left;
    }
    .rotate-warning-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }
    .rotate-warning-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .warning-icon-danger {
      background: rgba(239, 68, 68, 0.12);
      border: 1px solid rgba(239, 68, 68, 0.3);
      color: #f87171;
    }
    .warning-icon-safe {
      background: rgba(120, 255, 160, 0.12);
      border: 1px solid rgba(120, 255, 160, 0.3);
      color: #78ffa0;
    }
    .rotate-warning-item strong {
      display: block;
      font-size: 0.8rem;
      font-weight: 700;
      color: #ffffff;
    }
    .btn-rotate-danger {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: #ef4444;
      border: 1px solid #f87171;
      color: #ffffff !important;
      text-decoration: none;
      font-family: var(--mono, "Roboto Mono", monospace);
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 12px 18px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 8px 24px -10px rgba(239, 68, 68, 0.6);
      width: 100%;
    }
    .btn-rotate-danger:hover {
      background: #dc2626;
      border-color: #ef4444;
      transform: translateY(-1px);
      box-shadow: 0 10px 28px -8px rgba(239, 68, 68, 0.8);
    }

    /* ── LOCKED COPIER LINK STATE (Exact Widget Customizer Match) ── */
    .mockup-copier-card.is-pro-locked .copier-row {
      border-color: rgba(120, 255, 160, 0.35);
      background: rgba(0, 0, 0, 0.85);
      cursor: pointer;
    }
    .mockup-copier-card.is-pro-locked .url-input {
      color: #78ffa0 !important;
      font-family: var(--mono, monospace) !important;
      font-weight: 600 !important;
      letter-spacing: 0.02em;
      cursor: pointer;
    }
    .mockup-copier-card.is-pro-locked .btn-copy {
      width: auto !important;
      min-width: 84px;
      padding: 0 12px !important;
      gap: 6px !important;
      font-size: 0.72rem !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      text-transform: uppercase !important;
      font-family: var(--mono, monospace) !important;
      background: rgba(120, 255, 160, 0.15) !important;
      border: 1px solid rgba(120, 255, 160, 0.5) !important;
      color: #78ffa0 !important;
      box-shadow: 0 0 14px rgba(120, 255, 160, 0.25) !important;
      cursor: pointer;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mockup-copier-card.is-pro-locked .btn-copy:hover {
      background: rgba(120, 255, 160, 0.28) !important;
      border-color: #78ffa0 !important;
      box-shadow: 0 0 20px rgba(120, 255, 160, 0.45) !important;
      transform: translateY(-1px);
    }

    @media (max-width: 900px) {
      .mockup-copier-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }
      .footer-copier-title {
        text-align: center;
      }
      .mockup-copier-card .copier-row {
        max-width: 100%;
      }
    }

    /* View: Notion Setup Guide */
    .view-guide-container {
      display: none;
      flex-direction: column;
      gap: 28px;
      width: 100%;
      background: var(--sidebar);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 32px 36px;
      box-sizing: border-box;
    }

    .guide-desc-header {
      font-size: 0.94rem;
      color: #d1d5db;
      line-height: 1.6;
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 16px 20px;
      margin: 0;
    }

    .guide-columns-layout {
      display: grid;
      grid-template-columns: 1fr 1.25fr;
      gap: 36px;
    }

    @media (max-width: 900px) {
      .guide-columns-layout {
        grid-template-columns: 1fr;
        gap: 24px;
      }
    }

    .guide-col {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .guide-section-label {
      font-family: var(--sans);
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .guide-prop-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 14px 16px;
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      transition: border-color 0.15s ease;
    }

    .guide-prop-item:hover {
      border-color: rgba(255, 255, 255, 0.14);
    }

    .guide-prop-title {
      font-family: var(--sans);
      font-size: 0.88rem;
      font-weight: 700;
      color: #ffffff;
    }

    .guide-prop-desc {
      font-size: 0.82rem;
      color: #9ca3af;
      line-height: 1.5;
    }

    .guide-prop-desc strong {
      color: var(--emerald);
      font-family: var(--sans);
      font-weight: 600;
    }

    .guide-table {
      width: 100%;
      border-collapse: collapse;
      font-family: var(--sans);
      font-size: 0.84rem;
    }

    .guide-table th {
      color: #9ca3af;
      text-align: left;
      padding: 11px 16px;
      background: rgba(255, 255, 255, 0.02);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.74rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-family: var(--sans);
    }

    .guide-table td {
      padding: 11px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      color: #d1d5db;
      font-family: var(--sans);
    }

    .guide-table tr:last-child td {
      border-bottom: none;
    }

    .guide-output-note {
      font-size: 0.80rem;
      color: #9ca3af;
      line-height: 1.5;
      margin-top: 6px;
    }

    /* Lower Section: Full Blueprint Section with Clean Divider */
    .guide-blueprint-section {
      display: flex;
      flex-direction: column;
      gap: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 26px;
      margin-top: 4px;
    }

    /* ── AXIS MAPPING CARDS (Divided Area for Y-Axis and X-Axis) ── */
    .axis-cards-container {
      display: flex;
      flex-direction: column;
      gap: 14px;
      width: 100%;
    }

    .axis-mapping-card {
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 14px 15px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: border-color 0.2s ease, background 0.2s ease;
      box-sizing: border-box;
      width: 100%;
    }

    .axis-mapping-card:hover {
      border-color: rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.038);
    }

    .axis-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .axis-card-title-group {
      display: flex;
      flex-direction: column;
      gap: 3px;
      flex: 1;
      min-width: 0;
    }

    .axis-badge-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .axis-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 2px 7px;
      border-radius: 4px;
      font-family: var(--sans);
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      line-height: 1.3;
      flex-shrink: 0;
    }

    .axis-badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
    }

    .axis-badge-y {
      background: rgba(168, 85, 247, 0.12);
      border: 1px solid rgba(168, 85, 247, 0.35);
      color: #c084fc;
    }

    .axis-badge-x {
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.35);
      color: #38bdf8;
    }

    .axis-card-title {
      font-family: var(--sans);
      font-size: 0.80rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--white);
      line-height: 1.2;
    }

    .axis-card-hint {
      font-family: var(--sans);
      font-size: 0.70rem;
      color: var(--muted2);
      line-height: 1.35;
    }

    /* ── QUICK ACTION LINKS (Select all · Reset) ── */
    .axis-actions-row {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      margin-top: 2px;
      margin-bottom: 4px;
    }

    .axis-action-link {
      background: transparent;
      border: none;
      color: var(--muted);
      font-family: var(--sans);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0;
      transition: color 0.15s ease;
      outline: none;
    }

    .axis-action-link:hover {
      color: var(--emerald);
    }

    .axis-action-dot {
      color: rgba(255, 255, 255, 0.22);
      font-size: 0.72rem;
      user-select: none;
    }

    /* ── ULTRA-PREMIUM COLUMN CHIPS ── */
    .column-chips-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 2px;
      width: 100%;
    }

    .column-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 13px;
      border-radius: 6px;
      font-family: var(--sans);
      font-size: 0.79rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(255, 255, 255, 0.03);
      color: var(--muted);
      transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
      outline: none;
    }

    .column-chip:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.22);
      color: var(--white);
      transform: translateY(-1px);
    }

    .column-chip:active {
      transform: scale(0.97);
    }

    .column-chip.active {
      background: rgba(120, 255, 160, 0.11);
      border-color: rgba(120, 255, 160, 0.45);
      color: var(--emerald);
      box-shadow: 0 0 12px rgba(120, 255, 160, 0.12);
    }

    .column-chip .chip-check {
      width: 13px;
      height: 13px;
      border-radius: 3px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.68rem;
      font-weight: 800;
      background: rgba(255, 255, 255, 0.08);
      color: var(--muted2);
      transition: all 0.15s ease;
      line-height: 1;
    }

    .column-chip.active .chip-check {
      background: var(--emerald);
      color: #0c1017;
    }

    .column-chip .chip-name {
      letter-spacing: 0.01em;
    }

    /* ── COMPATIBLE NOTION TABLE BLUEPRINT CARD (IMAGE 2 STYLE) ── */
    .notion-blueprint-wrapper {
      width: 100%;
      margin-top: 0;
      box-sizing: border-box;
    }

    .blueprint-table-card {
      background: #141519;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      overflow-x: auto;
      max-width: 100%;
      box-sizing: border-box;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    .blueprint-table {
      width: 100%;
      border-collapse: collapse;
      font-family: var(--sans);
      font-size: 0.86rem;
      white-space: nowrap;
    }

    .blueprint-table th {
      background: #1a1b20;
      padding: 13px 20px;
      text-align: left;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      border-right: 1px solid rgba(255, 255, 255, 0.08);
      color: #ffffff;
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: -0.01em;
    }

    .blueprint-table th:last-child {
      border-right: none;
    }

    .blueprint-th-type {
      font-style: normal;
      font-weight: 500;
      color: #a1a1aa;
      margin-left: 6px;
      font-size: 0.74rem;
      background: rgba(255, 255, 255, 0.08);
      padding: 2px 7px;
      border-radius: 4px;
      display: inline-block;
      vertical-align: middle;
    }

    .blueprint-table td {
      padding: 12px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      border-right: 1px solid rgba(255, 255, 255, 0.06);
      font-size: 0.85rem;
      color: #d1d5db;
    }

    .blueprint-table td:last-child {
      border-right: none;
    }

    .blueprint-table tr:last-child td {
      border-bottom: none;
    }

    .blueprint-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    .blueprint-table td.col-title {
      font-weight: 700;
      color: #ffffff;
    }

    /* ── NOTION SYNC MODAL ── */
    .modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .modal-box {
      background: #0f1015;
      border: 1px solid var(--border2);
      border-radius: 8px;
      width: 90%;
      max-width: 520px;
      max-height: 88vh;
      overflow-y: auto;
      padding: 28px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      box-shadow: 0 30px 75px rgba(0, 0, 0, 0.85);
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
      padding-bottom: 14px;
    }

    .modal-title {
      font-family: var(--font-sans);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--white);
    }

    .modal-close-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      color: var(--muted);
      width: 32px;
      height: 32px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .modal-close-btn:hover {
      background: rgba(244, 63, 94, 0.15) !important;
      border-color: rgba(244, 63, 94, 0.4) !important;
      color: #fb7185 !important;
    }
    .modal-close-btn:hover svg {
      stroke: #fb7185 !important;
    }
    .modal-close-btn:active {
      transform: scale(0.92);
    }

    .btn-notion-connect {
      width: 100%;
      background: #ffffff;
      color: #0d0e12;
      border: 1px solid #ffffff;
      border-radius: 6px;
      padding: 16px 24px;
      font-size: 1rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      cursor: pointer;
      transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      user-select: none;
    }
    .btn-notion-connect:hover {
      background: #f4f4f5;
      border-color: #ffffff;
      box-shadow: 0 6px 22px rgba(255, 255, 255, 0.25);
      transform: translateY(-1px);
    }
    .btn-notion-connect:active {
      background: #e4e4e7;
      border-color: #e4e4e7;
      transform: translateY(1px) scale(0.99);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }
    .btn-notion-connect:focus-visible {
      outline: 2px solid var(--emerald);
      outline-offset: 2px;
    }

    .form-group-modal {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .modal-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 8px;
    }

    /* Toast Notification */
    .toast-pill {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #111218;
      border: 1px solid var(--emerald);
      color: var(--white);
      font-family: var(--mono);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      padding: 10px 20px;
      border-radius: 6px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 1000;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .toast-pill.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ── PRO PAYWALL UPGRADE MODAL ── */
    .paywall-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999999;
      padding: 16px;
      animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: scale(0.96); }
      to { opacity: 1; transform: scale(1); }
    }

    .paywall-modal-card {
      background: #09090c;
      border: 1px solid rgba(255, 255, 255, 0.16);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(120, 255, 160, 0.08);
      border-radius: 8px;
      width: 100%;
      max-width: 480px;
      padding: 28px 24px 24px;
      position: relative;
      box-sizing: border-box;
      color: #ffffff;
      font-family: var(--sans, sans-serif);
    }

    .paywall-close-btn {
      position: absolute;
      top: 14px;
      right: 16px;
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.5);
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      transition: all 0.15s ease;
    }
    .paywall-close-btn:hover {
      color: #fb7185;
      background: rgba(244, 63, 94, 0.15);
    }

    .paywall-modal-header {
      text-align: center;
      margin-bottom: 18px;
    }

    .paywall-badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 4px;
      background: rgba(120, 255, 160, 0.1);
      border: 1px solid rgba(120, 255, 160, 0.4);
      color: #78ffa0;
      font-family: var(--mono, monospace);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .paywall-heading {
      font-family: var(--space, sans-serif);
      font-size: 1.35rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #ffffff;
      margin: 0 0 8px;
      line-height: 1.25;
    }

    .paywall-desc {
      font-size: 0.84rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.65);
      margin: 0;
    }

    .paywall-benefits-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 14px 16px;
      margin-bottom: 20px;
    }

    .paywall-benefit-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .paywall-benefit-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: rgba(120, 255, 160, 0.08);
      border: 1px solid rgba(120, 255, 160, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #78ffa0;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .paywall-benefit-icon svg {
      width: 14px;
      height: 14px;
    }

    .paywall-benefit-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .paywall-benefit-text strong {
      font-size: 0.82rem;
      font-weight: 700;
      color: #ffffff;
    }

    .paywall-benefit-text span {
      font-size: 0.74rem;
      color: rgba(255, 255, 255, 0.55);
      line-height: 1.35;
    }

    .paywall-modal-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .btn-paywall-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: rgba(120, 255, 160, 0.95);
      border: 1px solid rgba(120, 255, 160, 0.6);
      color: #04140a !important;
      text-decoration: none;
      font-family: var(--mono, monospace);
      font-size: 0.82rem;
      font-weight: 700;
      padding: 12px 18px;
      border-radius: 6px;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 8px 24px -10px rgba(120, 255, 160, 0.5);
      cursor: pointer;
    }
    .btn-paywall-primary:hover {
      background: rgba(120, 255, 160, 1.0);
      border-color: rgba(120, 255, 160, 0.9);
      transform: translateY(-1px);
      box-shadow: 0 10px 28px -8px rgba(120, 255, 160, 0.7);
    }

    .btn-paywall-secondary {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.65);
      font-family: var(--sans, sans-serif);
      font-size: 0.80rem;
      padding: 10px 16px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .btn-paywall-secondary:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.25);
      color: #ffffff;
    }

    /* ── INLINE CONFIRMATION MODAL ── */
    .inline-confirm-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.76);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
      animation: fadeIn 0.15s ease-out;
    }

    .inline-confirm-card {
      background: #0a0a0d;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      width: 100%;
      max-width: 400px;
      padding: 24px;
      box-sizing: border-box;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      gap: 14px;
      animation: scaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .inline-confirm-header {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .inline-confirm-icon-wrap {
      width: 38px;
      height: 38px;
      border-radius: 8px;
      background: rgba(255, 51, 75, 0.1);
      border: 1px solid rgba(255, 51, 75, 0.28);
      color: #ff494a;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .inline-confirm-icon-wrap.is-warning {
      background: rgba(245, 158, 11, 0.12);
      border-color: rgba(245, 158, 11, 0.3);
      color: #f59e0b;
    }

    .inline-confirm-title {
      font-family: var(--sans, sans-serif);
      font-size: 1.05rem;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.3;
    }

    .inline-confirm-message {
      font-family: var(--sans, sans-serif);
      font-size: 0.86rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.65);
    }

    .inline-confirm-actions {
      display: flex;
      gap: 10px;
      margin-top: 6px;
    }

    .btn-confirm-cancel {
      flex: 1;
      height: 38px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.16);
      color: rgba(255, 255, 255, 0.8);
      font-family: var(--mono, "Roboto Mono", monospace);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
    }

    .btn-confirm-cancel:hover {
      background: rgba(255, 255, 255, 0.09);
      border-color: rgba(255, 255, 255, 0.35);
      color: #ffffff;
    }

    .btn-confirm-action {
      flex: 1;
      height: 38px;
      background: rgba(255, 51, 75, 0.15);
      border: 1px solid rgba(255, 51, 75, 0.4);
      color: #ff6b6b;
      font-family: var(--mono, "Roboto Mono", monospace);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
    }

    .btn-confirm-action:hover {
      background: #ff334b;
      border-color: #ff334b;
      color: #ffffff;
    }

    .btn-confirm-action.is-warning {
      background: rgba(245, 158, 11, 0.14);
      border: 1px solid rgba(245, 158, 11, 0.4);
      color: #fbbf24;
    }
    .btn-confirm-action.is-warning:hover {
      background: #d97706;
      border-color: #d97706;
      color: #ffffff;
    }
