/* ── EasyMDE ── */
      .EasyMDEContainer {
        display: flex;
        flex-direction: column;
        border: none !important;
        border-radius: 0;
      }
      .EasyMDEContainer .CodeMirror {
        font-family: var(--font-mono, 'Geist Mono', monospace);
        font-size: 0.9375rem;
        line-height: 1.8;
        border: none !important;
        border-radius: 0;
        background: transparent;
        color: var(--color-foreground, #111);
        min-height: 520px;
        padding: 0;
      }
      .editor-toolbar {
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--color-border, #e5e7eb) !important;
        border-radius: 0 !important;
        background: var(--color-background, #fff) !important;
        padding: 0.375rem 2.5rem !important;
        position: sticky;
        top: 0;
        z-index: 10;
      }
      .editor-toolbar button {
        color: var(--color-muted-foreground, #6b7280) !important;
        border-radius: 0.25rem !important;
      }
      .editor-toolbar button:hover,
      .editor-toolbar button.active {
        background: var(--color-muted, #f3f4f6) !important;
        border: none !important;
        color: var(--color-foreground, #111) !important;
      }
      .editor-toolbar i.separator {
        border-left: 1px solid var(--color-border, #e5e7eb) !important;
      }
      .editor-preview,
      .editor-preview-side {
        background: var(--color-background, #fff) !important;
        padding: 1.5rem 2.5rem !important;
      }

      /* ── Title / Slug inputs ── */
      #f-title {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.2;
        border: none;
        outline: none;
        background: transparent;
        width: 100%;
        color: var(--color-foreground, #111);
        font-family: var(--font-sans, sans-serif);
      }
      #f-title::placeholder {
        color: var(--color-border, #d1d5db);
      }
      #f-slug-inline {
        font-size: 0.8125rem;
        font-family: var(--font-mono, monospace);
        color: var(--color-muted-foreground, #9ca3af);
        border: none;
        outline: none;
        background: transparent;
        min-width: 8ch;
        max-width: 100%;
      }
      #f-slug-inline:focus {
        color: var(--color-foreground, #111);
      }

      /* ── Settings panel transition ── */
      #settings-panel {
        width: 380px;
        flex-shrink: 0;
        transition:
          width 0.2s ease,
          opacity 0.2s ease;
        opacity: 1;
      }
      #settings-panel.collapsed {
        width: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
      }

      /* ── Sidebar nav items ── */
      .nav-category {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.375rem 0.5rem;
        border-radius: 0.375rem;
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        background: transparent;
        border: none;
        color: var(--color-foreground, #111);
        transition: background 0.1s;
      }
      .nav-category:hover,
      .nav-category.active {
        background: var(--color-muted, #f3f4f6);
      }
      .sidebar-post-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.3rem 0.5rem 0.3rem 0.875rem;
        border-radius: 0.375rem;
        font-size: 0.75rem;
        cursor: pointer;
        background: transparent;
        border: none;
        color: var(--color-muted-foreground, #9ca3af);
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition:
          background 0.1s,
          color 0.1s;
      }
      .sidebar-post-item:hover {
        background: var(--color-muted, #f3f4f6);
        color: var(--color-foreground, #111);
      }
      .sidebar-post-item.active {
        color: var(--color-foreground, #111);
        font-weight: 500;
      }
      .sidebar-post-item .dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
        flex-shrink: 0;
      }

      /* ── Blog list rows ── */
      .blog-list-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0.875rem 1rem;
        border-radius: 0.625rem;
        cursor: pointer;
        border: none;
        background: transparent;
        text-align: left;
        transition: background 0.12s;
      }
      .blog-list-row:hover {
        background: var(--color-muted, #f5f5f5);
      }
      .blog-list-row + .blog-list-row {
        border-top: 1px solid var(--color-border, #f0f0f0);
      }

      /* ── Image upload drop zone ── */
      .upload-zone {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        border: 2px dashed var(--color-border, #e5e7eb);
        border-radius: 0.5rem;
        padding: 1.25rem 1rem;
        cursor: pointer;
        text-align: center;
        transition:
          background 0.1s,
          border-color 0.1s;
      }
      .upload-zone:hover {
        background: var(--color-muted, #f3f4f6);
        border-color: var(--color-muted-foreground, #9ca3af);
      }
      .upload-zone.drag-over {
        background: var(--color-muted, #f3f4f6);
        border-color: var(--color-foreground, #111);
      }

      /* ── Image tab switcher ── */
      .img-tabs {
        display: flex;
        gap: 2px;
        padding: 2px;
        background: var(--color-muted, #f3f4f6);
        border-radius: 0.375rem;
      }
      .img-tab {
        flex: 1;
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        font-weight: 500;
        border: none;
        border-radius: 0.25rem;
        cursor: pointer;
        background: transparent;
        color: var(--color-muted-foreground, #9ca3af);
        transition:
          background 0.1s,
          color 0.1s;
      }
      .img-tab.active {
        background: var(--color-background, #fff);
        color: var(--color-foreground, #111);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
      }

      /* ── Published pill toggle ── */
      #f-published-toggle {
        position: relative;
        display: inline-flex;
        align-items: center;
        width: 2.25rem;
        height: 1.25rem;
        border-radius: 999px;
        border: none;
        cursor: pointer;
        transition: background 0.2s;
        background: var(--color-input, #d1d5db);
        flex-shrink: 0;
      }
      #f-published-toggle span {
        position: absolute;
        left: 2px;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s;
      }

      /* ── Sidebar search ── */
      #sidebar-search {
        width: 100%;
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 0.375rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        background: var(--color-background, #fff);
        color: var(--color-foreground, #111);
        outline: none;
      }
      #sidebar-search:focus {
        border-color: var(--color-outline, #6366f1);
      }

      /* ── Textarea in settings ── */
      .settings-textarea {
        width: 100%;
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 0.375rem;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        background: var(--color-background, #fff);
        color: var(--color-foreground, #111);
        outline: none;
        resize: vertical;
        line-height: 1.5;
        font-family: var(--font-sans, sans-serif);
      }
      .settings-textarea:focus {
        border-color: var(--color-outline, #6366f1);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-outline, #6366f1) 20%, transparent);
      }

      /* hidden utility */
      .hidden {
        display: none !important;
      }