/* Extracted from recruiter-dashboard/company/edit/index.html. */
body { background: linear-gradient(180deg, #eef2f0 0%, var(--canvas) 320px); }

    /* ── Editor topbar ── */
    .editor-topbar {
      position: sticky; top: 0; z-index: 30;
      display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
      padding: 14px 20px; background: rgba(255,254,251,0.94);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
    }
    .editor-topbar__back {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.8125rem; font-weight: 600; color: var(--accent); text-decoration: none;
    }
    .editor-topbar__title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); flex-shrink: 0; }
    .editor-topbar__spacer { flex: 1; }
    .editor-topbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

    /* ── Completeness meter ── */
    .editor-completeness {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
      font-size: 0.75rem; font-weight: 600; color: var(--ink);
    }
    .editor-completeness__bar {
      width: 80px; height: 6px; border-radius: 999px; background: rgba(1,56,44,0.08); overflow: hidden;
      position: relative;
    }
    .editor-completeness__fill {
      position: absolute; top: 0; left: 0; height: 100%;
      background: linear-gradient(90deg, #10b981, #059669);
      transition: width 0.3s ease;
    }
    .editor-completeness__pct { color: var(--accent); font-weight: 700; }

    /* ── Autosave indicator ── */
    .editor-autosave {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 0.75rem; color: rgba(1,56,44,0.55); font-weight: 500;
    }
    .editor-autosave__dot {
      width: 7px; height: 7px; border-radius: 50%; background: #10b981;
      animation: pulse-dot 2s infinite;
    }
    .editor-autosave.is-saving .editor-autosave__dot { background: #f59e0b; animation: none; }
    @keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

    /* ── Top bar buttons ── */
    .topbar-btn {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 7px 14px; border-radius: 999px;
      border: 1px solid var(--line); background: #fff;
      font-size: 0.75rem; font-weight: 600; color: var(--ink);
      cursor: pointer; font-family: inherit; white-space: nowrap;
      text-decoration: none;
    }
    .topbar-btn:hover { border-color: rgba(5,150,105,0.3); background: rgba(5,150,105,0.04); }
    .topbar-btn svg { width: 13px; height: 13px; }
    .topbar-btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .topbar-btn.is-active:hover { background: #047857; }

    .topbar-menu { position: relative; }
    .topbar-menu__panel {
      display: none; position: absolute; top: calc(100% + 6px); right: 0;
      min-width: 220px; background: #fff; border: 1px solid var(--line);
      border-radius: 12px; box-shadow: 0 10px 30px rgba(1,56,44,0.12);
      z-index: 50; padding: 6px;
    }
    .topbar-menu.is-open .topbar-menu__panel { display: block; }
    .topbar-menu__item {
      display: flex; align-items: center; gap: 10px; padding: 8px 10px;
      width: 100%; text-align: left; background: none; border: none;
      font-size: 0.8125rem; color: var(--ink); cursor: pointer; font-family: inherit;
      border-radius: 8px;
    }
    .topbar-menu__item:hover { background: rgba(5,150,105,0.06); }
    .topbar-menu__item--danger { color: #dc2626; }
    .topbar-menu__item--danger:hover { background: rgba(220,38,38,0.06); }

    /* ── Tab nav ── */
    .editor-tabs {
      position: sticky; top: 56px; z-index: 25;
      display: flex; gap: 4px; padding: 8px 20px;
      background: rgba(255,254,251,0.94);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
      overflow-x: auto;
    }
    .editor-tabs::-webkit-scrollbar { display: none; }
    .editor-tab {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px; border-radius: 999px;
      border: 1px solid transparent; background: transparent;
      font-size: 0.8125rem; font-weight: 600; color: rgba(1,56,44,0.6);
      cursor: pointer; font-family: inherit; white-space: nowrap;
      transition: all 0.15s;
    }
    .editor-tab:hover { background: rgba(5,150,105,0.05); color: var(--ink); }
    .editor-tab.is-active { background: #ecfdf5; color: var(--accent); border-color: rgba(5,150,105,0.25); }
    .editor-tab__count {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
      background: rgba(1,56,44,0.08); color: rgba(1,56,44,0.6);
      font-size: 0.6875rem; font-weight: 700;
    }
    .editor-tab.is-active .editor-tab__count { background: rgba(5,150,105,0.12); color: var(--accent); }

    /* ── Editor body / two-column ── */
    .editor-body {
      display: grid; grid-template-columns: 240px minmax(0, 1fr);
      gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px 20px 80px;
    }

    /* TOC */
    .editor-toc {
      position: sticky; top: 124px; align-self: start;
      padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
      max-height: calc(100vh - 144px); overflow-y: auto;
    }
    .editor-toc__head { font-size: 0.7rem; color: rgba(1,56,44,0.55); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 10px; display: block; }
    .editor-toc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
    .editor-toc-link {
      display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px;
      font-size: 0.8125rem; color: var(--ink); text-decoration: none; cursor: pointer;
      background: none; border: none; font-family: inherit; text-align: left; width: 100%;
    }
    .editor-toc-link:hover { background: rgba(5,150,105,0.05); }
    .editor-toc-status {
      flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%;
      background: rgba(1,56,44,0.08); display: inline-flex; align-items: center; justify-content: center;
    }
    .editor-toc-status[data-status="complete"] { background: #ecfdf5; color: var(--accent); }
    .editor-toc-status[data-status="partial"] { background: #fef3c7; color: #b45309; }
    .editor-toc-status svg { width: 10px; height: 10px; }
    .editor-toc-status[data-status="partial"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

    .editor-toc-mobile {
      display: none; padding: 10px 14px; background: #fff; border: 1px solid var(--line);
      border-radius: 12px; margin-bottom: 14px;
    }
    .editor-toc-mobile select { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 0.875rem; background: #fff; color: var(--ink); }

    .editor-content { display: grid; gap: 20px; min-width: 0; }
    .editor-tab-panel { display: none; gap: 20px; }
    .editor-tab-panel.is-active { display: grid; animation: editor-fade 0.2s ease-out; }
    @keyframes editor-fade {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .editor-section {
      background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px;
    }
    .editor-section__head {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      margin-bottom: 4px;
    }
    .editor-section__title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
    .editor-section__desc { margin: 4px 0 16px; font-size: 0.8125rem; color: rgba(1,56,44,0.55); line-height: 1.5; }
    .editor-saved-tick {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.7rem; font-weight: 600; color: var(--accent);
      opacity: 0; transition: opacity 0.3s ease;
    }
    .editor-saved-tick.is-visible { opacity: 1; }
    .editor-saved-tick svg { width: 12px; height: 12px; }

    /* Form primitives */
    .form-grid { display: grid; gap: 14px; }
    .form-grid--2col { grid-template-columns: 1fr 1fr; }
    .form-grid--3col { grid-template-columns: 1fr 1fr 1fr; }
    @media (max-width: 720px) {
      .form-grid--2col, .form-grid--3col { grid-template-columns: 1fr; }
    }
    .form-field { display: grid; gap: 4px; }
    .form-label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
    .form-label--muted { font-weight: 500; color: rgba(1,56,44,0.55); }
    .form-input, .form-select, .form-textarea {
      width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
      font-family: inherit; font-size: 0.875rem; color: var(--ink); background: #fff; box-sizing: border-box;
    }
    .form-input:focus, .form-select:focus, .form-textarea:focus {
      border-color: rgba(5,150,105,0.4); outline: none; box-shadow: 0 0 0 3px rgba(5,150,105,0.06);
    }
    .form-textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
    .form-help { margin-top: 4px; font-size: 0.7rem; color: rgba(1,56,44,0.5); line-height: 1.4; }

    /* Chip primitives */
    .chip-input-row { display: flex; gap: 8px; }
    .chip-input-row input { flex: 1; }
    .chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 5px 12px; border-radius: 999px;
      background: rgba(5,150,105,0.06); border: 1px solid rgba(5,150,105,0.12);
      font-size: 0.8125rem; font-weight: 500; color: var(--ink);
    }
    .chip__remove {
      background: none; border: none; color: rgba(1,56,44,0.35);
      font-size: 0.875rem; cursor: pointer; line-height: 1; padding: 0; font-family: inherit;
    }
    .chip__remove:hover { color: #dc2626; }

    .chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip-btn {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 7px 14px; border-radius: 999px;
      border: 1px solid var(--line); background: #fff;
      font-size: 0.8125rem; font-weight: 600; color: var(--ink);
      cursor: pointer; font-family: inherit; user-select: none; position: relative;
    }
    .chip-btn:hover { border-color: rgba(5,150,105,0.25); background: rgba(5,150,105,0.04); }
    .chip-btn.is-active { background: #ecfdf5; border-color: rgba(5,150,105,0.3); color: var(--accent); }
    .chip-btn input { position: absolute; opacity: 0; pointer-events: none; }

    /* Toggle pills (radio) */
    .toggle-group { display: flex; flex-wrap: wrap; gap: 8px; }
    .toggle-btn {
      display: inline-flex; align-items: center; gap: 6px;
      min-height: 38px; padding: 0 16px; border-radius: 999px;
      border: 1px solid var(--line); background: #fff;
      font-size: 0.8125rem; font-weight: 600; color: var(--ink);
      cursor: pointer; font-family: inherit; user-select: none; position: relative;
    }
    .toggle-btn:hover { border-color: rgba(5,150,105,0.25); background: rgba(5,150,105,0.04); }
    .toggle-btn.is-active { background: #ecfdf5; border-color: rgba(5,150,105,0.3); color: var(--accent); }
    .toggle-btn input { position: absolute; opacity: 0; pointer-events: none; }

    /* Setup-style cards (work model) */
    .setup-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
    @media (max-width: 720px) { .setup-cards { grid-template-columns: 1fr 1fr; } }
    .setup-card {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; padding: 18px 10px; border: 1px solid var(--line);
      border-radius: 14px; background: #fff; cursor: pointer;
      text-align: center; user-select: none; position: relative;
    }
    .setup-card:hover { border-color: rgba(5,150,105,0.2); background: rgba(5,150,105,0.03); }
    .setup-card.is-active {
      border-color: var(--accent); background: #ecfdf5;
      box-shadow: 0 0 0 2px rgba(5,150,105,0.12);
    }
    .setup-card__icon { font-size: 1.4rem; line-height: 1; }
    .setup-card__label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
    .setup-card__desc { font-size: 0.6875rem; color: rgba(1,56,44,0.5); line-height: 1.3; }
    .setup-card input { position: absolute; opacity: 0; pointer-events: none; }

    /* Toggle switch */
    .toggle-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.8125rem; color: var(--ink); font-weight: 500; }
    .toggle-switch input { position: absolute; opacity: 0; pointer-events: none; }
    .toggle-switch__track { width: 36px; height: 20px; border-radius: 999px; background: rgba(1,56,44,0.15); transition: background 0.15s; position: relative; flex-shrink: 0; }
    .toggle-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
    .toggle-switch.is-on .toggle-switch__track { background: var(--accent); }
    .toggle-switch.is-on .toggle-switch__track::after { left: 18px; }

    .toggle-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(1,56,44,0.06); }
    .toggle-row:last-child { border-bottom: none; }
    .toggle-row__text { flex: 1; min-width: 0; }
    .toggle-row__label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin: 0; }
    .toggle-row__desc { font-size: 0.75rem; color: rgba(1,56,44,0.55); margin: 2px 0 0; line-height: 1.4; }

    /* Logo & cover */
    .cover-uploader {
      width: 100%; min-height: 140px; border-radius: 14px;
      background: linear-gradient(135deg, #ecfdf5, #d1fae5);
      border: 2px dashed rgba(5,150,105,0.3); cursor: pointer;
      display: flex; align-items: center; justify-content: center; flex-direction: column;
      color: var(--accent); font-size: 0.8125rem; font-weight: 600; gap: 6px;
    }
    .cover-uploader:hover { border-color: var(--accent); }
    .cover-uploader svg { width: 22px; height: 22px; }
    .cover-uploader__hint { font-size: 0.7rem; font-weight: 500; color: rgba(1,56,44,0.6); }
    .logo-cover-row {
      display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: stretch;
    }
    @media (max-width: 720px) { .logo-cover-row { grid-template-columns: 1fr; } }
    .logo-uploader {
      width: 100px; height: 100px; border-radius: 16px;
      background: linear-gradient(135deg, #059669, #047857);
      color: #fff; font-size: 1.5rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; border: 2px dashed transparent; position: relative;
      flex-shrink: 0;
    }
    .logo-uploader:hover { border-color: var(--accent); }
    .logo-uploader__edit {
      position: absolute; bottom: -6px; right: -6px;
      width: 26px; height: 26px; border-radius: 50%;
      background: #fff; border: 1px solid var(--line);
      display: flex; align-items: center; justify-content: center;
      color: var(--ink-soft);
    }
    .logo-uploader__edit svg { width: 12px; height: 12px; }

    /* Brand color */
    .color-picker-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .color-swatch {
      width: 32px; height: 32px; border-radius: 10px;
      border: 2px solid transparent; cursor: pointer; position: relative;
      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    }
    .color-swatch.is-active { border-color: var(--ink); }
    .color-swatch.is-active::after {
      content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px;
      border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
      box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
    }
    .color-custom {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line);
      background: #fff; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft);
    }
    .color-custom input[type="color"] {
      width: 22px; height: 22px; padding: 0; border: none; background: none; cursor: pointer;
    }

    /* Entry editor */
    .entry-list { display: grid; gap: 8px; }
    .entry-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    }
    .entry-item__icon {
      flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
      background: rgba(5,150,105,0.08); color: var(--accent);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem; font-weight: 700;
    }
    .entry-item__avatar {
      flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
      background: #ecfdf5; color: var(--accent);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.6875rem; font-weight: 700; border: 1px solid rgba(5,150,105,0.15);
    }
    .entry-item__body { flex: 1; min-width: 0; }
    .entry-item__title { font-size: 0.875rem; font-weight: 600; color: var(--ink); display: block; }
    .entry-item__meta { font-size: 0.75rem; color: rgba(1,56,44,0.55); display: block; margin-top: 2px; }
    .entry-item__actions { display: flex; gap: 6px; flex-shrink: 0; }
    .entry-item__btn {
      padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
      font-size: 0.6875rem; font-weight: 600; color: var(--ink-soft);
      cursor: pointer; font-family: inherit;
    }
    .entry-item__btn:hover { border-color: var(--accent); color: var(--accent); }
    .entry-item__btn--danger:hover { border-color: #dc2626; color: #dc2626; }

    .add-btn {
      display: inline-flex; align-items: center; gap: 6px; justify-content: center;
      padding: 10px 14px; border-radius: 10px; border: 1px dashed rgba(5,150,105,0.3);
      background: rgba(236,253,245,0.4); font-size: 0.8125rem; font-weight: 600;
      color: var(--accent); cursor: pointer; font-family: inherit; width: 100%;
      margin-top: 6px;
    }
    .add-btn:hover { background: #ecfdf5; }

    .entry-form {
      padding: 14px 16px; border-radius: 12px;
      background: rgba(5,150,105,0.04); border: 1px solid rgba(5,150,105,0.2);
      display: grid; gap: 10px; margin-top: 6px;
    }
    .entry-form__actions { display: flex; gap: 8px; justify-content: flex-end; }
    .entry-form__cancel, .entry-form__save {
      padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
      cursor: pointer; font-family: inherit; border: 1px solid var(--line);
    }
    .entry-form__cancel { background: #fff; color: var(--ink); }
    .entry-form__save { background: var(--accent); color: #fff; border-color: var(--accent); }
    .entry-form__save:hover { background: #047857; }

    /* Photo & logo grids */
    .photo-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px;
    }
    .photo-tile {
      position: relative; aspect-ratio: 4/3;
      border-radius: 10px; background: linear-gradient(135deg, #ecfdf5, #d1fae5);
      border: 1px solid rgba(5,150,105,0.15);
      display: flex; align-items: center; justify-content: center;
      color: rgba(5,150,105,0.5); font-size: 0.7rem; font-weight: 600;
      overflow: hidden;
    }
    .photo-tile--add {
      cursor: pointer; border-style: dashed; border-color: rgba(5,150,105,0.3);
    }
    .photo-tile--add:hover { background: #ecfdf5; }
    .photo-tile__remove {
      position: absolute; top: 6px; right: 6px;
      width: 22px; height: 22px; border-radius: 50%;
      background: rgba(0,0,0,0.5); color: #fff; border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 0.875rem; font-family: inherit; line-height: 1;
    }
    .photo-tile__remove:hover { background: #dc2626; }

    .logo-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 10px;
    }
    .logo-tile {
      aspect-ratio: 16/9; border-radius: 10px; border: 1px solid var(--line);
      background: #fafbfa; display: flex; align-items: center; justify-content: center;
      color: rgba(1,56,44,0.4); font-size: 0.7rem; font-weight: 600; padding: 6px;
      text-align: center; position: relative;
    }
    .logo-tile--add { background: rgba(5,150,105,0.04); border-style: dashed; border-color: rgba(5,150,105,0.3); cursor: pointer; color: var(--accent); }
    .logo-tile--add:hover { background: #ecfdf5; }

    /* Benefits & Tech grouped */
    .benefit-group, .tech-group { margin-bottom: 18px; }
    .benefit-group:last-child, .tech-group:last-child { margin-bottom: 0; }
    .group-title {
      display: block; font-size: 0.7rem; color: rgba(1,56,44,0.55);
      text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 8px;
    }
    .check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
    .check-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8125rem; color: var(--ink); padding: 4px 0; }
    .check-item input[type="checkbox"] { accent-color: #059669; margin-top: 2px; }

    /* Process steps */
    .process-list { display: grid; gap: 8px; }
    .process-step {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    }
    .process-step__num {
      flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
      background: var(--accent); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8125rem; font-weight: 700;
    }
    .process-step__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
    .process-step__row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
    @media (max-width: 720px) { .process-step__row { grid-template-columns: 1fr; } }
    .process-step__remove {
      flex-shrink: 0; align-self: center;
      width: 28px; height: 28px; border-radius: 8px;
      background: none; border: 1px solid var(--line);
      color: rgba(1,56,44,0.4); cursor: pointer; font-size: 0.875rem; font-family: inherit;
    }
    .process-step__remove:hover { color: #dc2626; border-color: rgba(220,38,38,0.3); }

    /* Position card */
    .position-card {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    }
    .position-card__title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin: 0; }
    .position-card__meta { font-size: 0.7rem; color: rgba(1,56,44,0.55); margin: 2px 0 0; }
    .position-card__stat { font-size: 0.875rem; font-weight: 700; color: var(--accent); }

    /* Preview drawer */
    .editor-preview-drawer {
      position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 90vw;
      background: #fff; border-left: 1px solid var(--line);
      box-shadow: -8px 0 30px rgba(1,56,44,0.08);
      transform: translateX(100%); transition: transform 0.25s ease;
      z-index: 40; display: flex; flex-direction: column;
    }
    .editor-preview-drawer.is-open { transform: translateX(0); }
    .editor-preview-drawer__head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0;
    }
    .editor-preview-drawer__title { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
    .editor-preview-drawer__title svg { width: 14px; height: 14px; color: var(--accent); }
    .editor-preview-drawer__close {
      width: 28px; height: 28px; border-radius: 50%; background: rgba(1,56,44,0.06);
      border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
      color: var(--ink); font-family: inherit;
    }
    .editor-preview-drawer__close:hover { background: rgba(1,56,44,0.12); }
    .editor-preview-drawer__body { flex: 1; overflow-y: auto; padding: 24px; }

    .pv-hero { display: flex; gap: 14px; margin-bottom: 18px; }
    .pv-logo { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.125rem; font-weight: 700; }
    .pv-cover { width: 100%; height: 100px; border-radius: 12px; margin-bottom: 14px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
    .pv-name { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
    .pv-tagline { margin: 4px 0 0; font-size: 0.8125rem; color: rgba(1,56,44,0.55); }
    .pv-meta { margin-top: 6px; font-size: 0.75rem; color: rgba(1,56,44,0.55); }
    .pv-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
    .pv-section__title { font-size: 0.75rem; font-weight: 700; color: rgba(1,56,44,0.6); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
    .pv-text { font-size: 0.8125rem; line-height: 1.6; color: var(--ink); margin: 0; }
    .pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .pv-chip { padding: 3px 10px; border-radius: 999px; background: rgba(5,150,105,0.06); border: 1px solid rgba(5,150,105,0.12); font-size: 0.6875rem; color: var(--ink); font-weight: 500; }

    /* ── Responsive ── */
    @media (max-width: 960px) {
      .editor-body { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 100px; }
      .editor-toc { display: none; }
      .editor-toc-mobile { display: block; }
    }
    @media (max-width: 639px) {
      .editor-topbar { padding: 10px 16px; gap: 10px; }
      .editor-topbar__title { font-size: 0.875rem; }
      .editor-completeness__bar { width: 60px; }
      .editor-section { padding: 20px 16px; }
      .setup-cards { grid-template-columns: 1fr 1fr; }
    }
