.customer-note-cell-preview.ql-editor p,
  .customer-note-cell-editor__surface .ql-editor p {
    margin: 0;
  }

  .customer-note-cell-preview.ql-editor p + p,
  .customer-note-cell-editor__surface .ql-editor p + p {
    margin-top: 6px;
  }

  .customer-note-cell-preview mark,
  .customer-note-cell-editor__surface mark,
  .customer-note-cell-editor__tool mark {
    background: #fff2a8;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
  }

  #customer-note-cell-editor-root[data-open="true"] .customer-note-cell-editor__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .customer-note-cell-editor__backdrop {
    transition: background 180ms ease;
  }

  .customer-note-cell-editor__dialog {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  }

  .customer-note-cell-editor__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 20px;
    border-bottom: 1px solid #eaecf0;
    background:
      radial-gradient(circle at top right, rgba(0, 94, 184, 0.12), transparent 42%),
      linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  }

  .customer-note-cell-editor__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .customer-note-cell-editor__badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #d9e6f6;
    border-radius: 999px;
    background: #eff6ff;
    color: #004b9a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .customer-note-cell-editor__badge--muted {
    border-color: #e4e7ec;
    background: #ffffff;
    color: #475467;
    font-weight: 600;
  }

  .customer-note-cell-editor__close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #344054;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  }

  .customer-note-cell-editor__close:hover,
  .customer-note-cell-editor__close:focus-visible {
    border-color: #d0d5dd;
    background: #ffffff;
    color: #101828;
    outline: none;
  }

  .customer-note-cell-editor__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding: 20px 24px 0;
  }

  .customer-note-cell-editor__toolbar-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .customer-note-cell-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 0;
    border: 0;
  }

  .customer-note-cell-editor__tool-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  }

  .customer-note-cell-editor__tool {
    display: inline-flex;
    min-width: 0;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  }

  .customer-note-cell-editor__tool:hover,
  .customer-note-cell-editor__tool:focus-visible {
    border-color: #b9d3ff;
    background: #f8fbff;
    color: #003459;
    transform: translateY(-1px);
    outline: none;
  }

  .customer-note-cell-editor__tool[data-active="true"] {
    background: #eef4ff;
    border-color: #84adff;
    color: #004b9a;
    box-shadow: inset 0 0 0 1px rgba(132, 173, 255, 0.12), 0 1px 2px rgba(16, 24, 40, 0.05);
  }

  .customer-note-cell-editor__tool-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f2f4f7;
    color: inherit;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
  }

  .customer-note-cell-editor__tool[data-active="true"] .customer-note-cell-editor__tool-icon {
    background: #dbeafe;
    color: #004b9a;
  }

  .customer-note-cell-editor__hint {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #d9e6f6;
    border-radius: 999px;
    background: #f8fbff;
    color: #526581;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }

  .customer-note-cell-editor__hint-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f9f4f 0%, #0a7e3f 100%);
    box-shadow: 0 0 0 4px rgba(15, 159, 79, 0.12);
    flex-shrink: 0;
  }

  .customer-note-cell-editor__canvas {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 42px rgba(15, 23, 42, 0.08);
  }

  .customer-note-cell-editor__canvas-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid #e4e7ec;
    background: rgba(248, 250, 252, 0.92);
  }

  .customer-note-cell-editor__canvas-label {
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .customer-note-cell-editor__canvas-subtitle {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
  }

  .customer-note-cell-editor__surface {
    min-height: 220px;
  }

  .customer-note-cell-editor__surface.ql-container.ql-snow {
    border: 0;
    background: transparent;
  }

  .customer-note-cell-editor__surface .ql-editor {
    min-height: 220px;
    padding: 18px 20px 20px;
    color: #101828;
    font-size: 15px;
    line-height: 1.65;
  }

  .customer-note-cell-editor__surface .ql-editor p {
    margin: 0;
  }

  .customer-note-cell-editor__surface .ql-editor p + p {
    margin-top: 8px;
  }

  .customer-note-cell-editor__surface .ql-editor:focus {
    background: transparent;
  }

  .customer-note-cell-editor__surface .ql-editor.ql-blank::before {
    left: 20px;
    right: 20px;
    color: #98a2b3;
    font-style: normal;
  }

  .customer-note-cell-editor__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 2px 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
  }

  .customer-note-cell-editor__status strong {
    color: #344054;
  }

  .customer-note-cell-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 24px;
    border-top: 1px solid #eaecf0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    flex-wrap: wrap;
  }

  .customer-note-cell-editor__footer-note {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
  }

  .customer-note-cell-editor__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
  }

  .customer-note-cell-editor__secondary,
  .customer-note-cell-editor__primary {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  }

  .customer-note-cell-editor__secondary {
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
  }

  .customer-note-cell-editor__primary {
    border: 0;
    background: linear-gradient(180deg, #004b9a 0%, #003459 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 52, 89, 0.18);
  }

  .customer-note-cell-editor__secondary:hover,
  .customer-note-cell-editor__secondary:focus-visible,
  .customer-note-cell-editor__primary:hover,
  .customer-note-cell-editor__primary:focus-visible {
    transform: translateY(-1px);
    outline: none;
  }

  .customer-note-cell-editor__secondary:hover,
  .customer-note-cell-editor__secondary:focus-visible {
    border-color: #98a2b3;
    background: #f9fafb;
  }

  .customer-note-cell-editor__primary:hover,
  .customer-note-cell-editor__primary:focus-visible {
    box-shadow: 0 14px 28px rgba(0, 52, 89, 0.24);
  }

  @media (max-width: 768px) {
    .customer-note-cell-editor__header,
    .customer-note-cell-editor__body,
    .customer-note-cell-editor__footer {
      padding-left: 18px;
      padding-right: 18px;
    }

    .customer-note-cell-editor__toolbar-row,
    .customer-note-cell-editor__status,
    .customer-note-cell-editor__footer {
      flex-direction: column;
      align-items: stretch;
    }

    .customer-note-cell-editor__hint,
    .customer-note-cell-editor__actions {
      width: 100%;
    }

    .customer-note-cell-editor__actions {
      justify-content: stretch;
    }

    .customer-note-cell-editor__secondary,
    .customer-note-cell-editor__primary {
      flex: 1 1 auto;
    }

    .customer-note-cell-editor__tool {
      flex: 1 1 calc(50% - 10px);
      justify-content: flex-start;
    }
  }