.note-editor .dropdown-toggle::after {
  display: none;
}

.note-editor .solid-style-toggle::after,
.note-editor .solid-font-toggle::after,
.note-editor .solid-size-toggle::after,
.note-editor .solid-color-toggle::after,
.note-editor .solid-list-toggle::after {
  border-left: .34em solid transparent;
  border-right: .34em solid transparent;
  border-top: .42em solid currentColor;
  content: "";
  display: inline-block !important;
  margin-left: .48em;
  vertical-align: .16em;
}

.note-editor .dropdown-toggle-split::after {
  margin-left: 0;
}

.note-editor .note-dropdown-menu.dropdown-menu {
  max-height: 320px;
  overflow-y: auto;
}

.note-editor .note-dropdown-menu,
.note-editor .note-dropdown-menu *,
.note-popover .popover-content,
.note-popover .popover-content * {
  color: #212529 !important;
}

.note-editor .note-dropdown-menu,
.note-editor .dropdown-menu,
.note-popover .popover-content {
  background: #fff !important;
  z-index: 3000 !important;
}

.note-editable,
.qnitech-editor-preview {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.note-editable img {
  height: auto !important;
  max-width: 100% !important;
}

.note-editable figure,
.qnitech-editor-preview figure {
  margin: 1rem 0;
}

.note-editable figure.content-image,
.qnitech-editor-preview figure.content-image {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
}

.note-editable figure.content-image img,
.qnitech-editor-preview figure.content-image img {
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}


.note-editable section,
.qnitech-editor-preview section {
  border: 1px solid #dbe4ee;
  border-left-width: 5px;
  border-radius: 12px;
  margin: 1rem 0;
  padding: 16px 18px;
}

.note-editable section h3,
.qnitech-editor-preview section h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.note-editable section p:last-child,
.qnitech-editor-preview section p:last-child,
.note-editable section ul:last-child,
.qnitech-editor-preview section ul:last-child,
.note-editable section ol:last-child,
.qnitech-editor-preview section ol:last-child {
  margin-bottom: 0;
}

.note-editable table,
.qnitech-editor-preview table {
  border-collapse: collapse;
  margin: 1rem 0;
  width: 100%;
}

.note-editable th,
.note-editable td,
.qnitech-editor-preview th,
.qnitech-editor-preview td {
  border: 1px solid #dbe4ee;
  padding: 10px;
  vertical-align: top;
}

.note-editable figcaption,
.qnitech-editor-preview figcaption {
  color: #64748b;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
  margin-top: 8px;
  text-align: center;
}

.note-editable .qnitech-content-block,
.qnitech-editor-preview .qnitech-content-block {
  border: 1px solid #dbe4ee;
  border-left-width: 5px;
  border-radius: 12px;
  margin: 1rem 0;
  padding: 16px 18px;
}

.note-editable .qnitech-content-block h3,
.qnitech-editor-preview .qnitech-content-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.note-editable .qnitech-content-block p:last-child,
.qnitech-editor-preview .qnitech-content-block p:last-child,
.note-editable .qnitech-content-block ul:last-child,
.qnitech-editor-preview .qnitech-content-block ul:last-child,
.note-editable .qnitech-content-block ol:last-child,
.qnitech-editor-preview .qnitech-content-block ol:last-child {
  margin-bottom: 0;
}

.note-editable .qnitech-content-block--note,
.qnitech-editor-preview .qnitech-content-block--note {
  background: #f8fafc;
  border-left-color: #64748b;
}

.note-editable .qnitech-content-block--warning,
.qnitech-editor-preview .qnitech-content-block--warning {
  background: #fff7ed;
  border-left-color: #f97316;
}

.note-editable .qnitech-content-block--success,
.qnitech-editor-preview .qnitech-content-block--success {
  background: #f0fdf4;
  border-left-color: #22c55e;
}

.note-editable .qnitech-content-block--info,
.qnitech-editor-preview .qnitech-content-block--info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.note-editable .qnitech-content-grid,
.qnitech-editor-preview .qnitech-content-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.note-editable .qnitech-content-grid > div,
.qnitech-editor-preview .qnitech-content-grid > div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
}

.qnitech-editor-tools {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-top: 0;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}

.qnitech-editor-tools__status {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.qnitech-editor-tools__status::before {
  background: #94a3b8;
  border-radius: 999px;
  content: '';
  display: inline-block;
  height: 7px;
  width: 7px;
}

.qnitech-editor-tools__status.is-saved::before {
  background: #22c55e;
}

.qnitech-editor-tools__status.is-dirty::before {
  background: #f59e0b;
}

.qnitech-editor-outline {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  display: none;
  padding: 12px;
}

.qnitech-editor-outline.is-visible {
  display: block;
}

.qnitech-editor-outline__title {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.qnitech-editor-outline__list {
  list-style: none;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 0;
}

.qnitech-editor-outline__item {
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  padding: 5px 8px;
}

.qnitech-editor-outline__item:hover {
  background: #f1f5f9;
  color: #111827;
}

.qnitech-editor-outline__item--h3 {
  padding-left: 20px;
}

.qnitech-editor-outline__item--h4,
.qnitech-editor-outline__item--h5,
.qnitech-editor-outline__item--h6 {
  padding-left: 32px;
}

.qnitech-editor-draft-notice {
  align-items: center;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 9px 10px;
}

.qnitech-editor-draft-notice .btn {
  font-size: 12px;
  padding: 3px 8px;
}

.qnitech-editor-choice-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.qnitech-editor-choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.qnitech-editor-choice {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition: .16s ease;
  width: 100%;
}

.qnitech-editor-choice:hover {
  border-color: #0d6efd;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.qnitech-editor-choice strong {
  color: #111827;
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.qnitech-editor-choice span {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .note-toolbar {
    overflow-x: auto;
    white-space: nowrap;
  }

  .note-editable .qnitech-content-grid,
  .qnitech-editor-preview .qnitech-content-grid {
    grid-template-columns: 1fr;
  }
}

/* QniTech semantic SEO editor enhancements */
.note-editable mark,
.qnitech-editor-preview mark {
  background: #fff3a3;
  border-radius: 2px;
  color: inherit;
  padding: 0 2px;
}

.note-editable blockquote,
.qnitech-editor-preview blockquote {
  border-left: 4px solid #cbd5e1;
  color: #475569;
  margin: 1rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
}

.note-editable table[data-responsive="true"],
.qnitech-editor-preview table[data-responsive="true"] {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.note-editable table caption,
.qnitech-editor-preview table caption {
  caption-side: top;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  text-align: left;
}

.solid-editor-modal {
  z-index: 5000;
}

.solid-editor-modal .modal-dialog {
  max-width: 820px;
}

.solid-editor-modal .modal-content {
  border: 0;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.solid-editor-modal .modal-header,
.solid-editor-modal .modal-footer {
  border-color: #e2e8f0;
}

.solid-editor-modal label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.solid-editor-image-modal .solid-image-properties-dialog {
  max-width: 960px;
}

.solid-editor-image-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.65fr);
}

.solid-editor-image-preview-card {
  align-self: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  position: sticky;
  top: 0;
}

.solid-editor-image-preview-title {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.solid-editor-image-preview {
  align-items: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  padding: 10px;
}

.solid-editor-image-preview img {
  display: block;
  height: auto;
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
}

.solid-editor-image-fields .form-group {
  margin-bottom: 14px;
}

.solid-editor-image-options {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 2px;
  padding: 11px 12px;
}

.solid-editor-image-options .form-check,
.solid-editor-image-options .custom-control {
  margin: 0;
}

.solid-image-properties {
  display: grid;
  gap: 14px;
}

.solid-image-settings-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px 2px;
}

.solid-image-section-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.solid-image-section-header > div {
  min-width: 0;
}

.solid-image-section-header strong {
  color: #1f2937;
  display: block;
  font-size: 14px;
}

.solid-image-link-options {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.solid-image-link-options .custom-control,
.solid-image-link-options .form-check {
  margin: 0;
}

@media (max-width: 991.98px) {
  .solid-image-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .solid-editor-image-layout {
    grid-template-columns: 1fr;
  }

  .solid-editor-image-preview-card {
    position: static;
  }

  .solid-editor-image-preview {
    min-height: 180px;
  }
}

.solid-editor-seo-stats {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px 14px;
  padding: 8px 10px;
}

.solid-editor-seo-stats span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.solid-editor-seo-stats span::before {
  background: #94a3b8;
  border-radius: 50%;
  content: '';
  height: 6px;
  width: 6px;
}

.solid-editor-seo-stats .is-good {
  color: #15803d;
}

.solid-editor-seo-stats .is-good::before {
  background: #22c55e;
}

.solid-editor-seo-stats .is-warning {
  color: #b45309;
}

.solid-editor-seo-stats .is-warning::before {
  background: #f59e0b;
}

.solid-editor-audit-summary {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding: 12px;
}

.solid-editor-audit-summary span {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.solid-editor-audit-list {
  list-style: none;
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 0;
}

.solid-editor-audit-list li {
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 9px 12px;
}

.solid-editor-audit-list .is-error {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

.solid-editor-audit-list .is-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

.solid-editor-audit-list .is-notice {
  background: #eff6ff;
  border-left-color: #3b82f6;
  color: #1e40af;
}

.note-popover .popover-content .note-btn-group .note-btn,
.note-editor .note-toolbar .note-btn {
  min-height: 31px;
}

@media (max-width: 767.98px) {
  .solid-editor-modal .modal-dialog {
    margin: 10px;
  }

  .solid-editor-seo-stats {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* QniTech article editor semantic preview */
.note-editable .article-align-left {
  text-align: left;
}

.note-editable .article-align-center {
  text-align: center;
}

.note-editable .article-align-right {
  text-align: right;
}

.note-editable .article-align-justify {
  text-align: justify;
}

.note-editable .article-text-primary {
  color: #3984c6;
}

.note-editable .article-text-muted {
  color: #6c757d;
}

.note-editable .article-text-danger {
  color: #dc3545;
}

.note-editable .article-text-success {
  color: #198754;
}

.note-editable .article-text-warning {
  color: #9a6700;
}

.note-editable .article-text-dark {
  color: #212529;
}

.note-editable .article-text-small {
  font-size: .875em;
}

.note-editable .article-text-large {
  font-size: 1.25em;
}

.note-editable .article-image {
  margin: 1.25rem auto;
  max-width: 100%;
}

.note-editable .article-image img {
  height: auto;
  max-width: 100%;
}

.note-editable .article-image-size-25 {
  width: 25%;
}

.note-editable .article-image-size-50 {
  width: 50%;
}

.note-editable .article-image-size-75 {
  width: 75%;
}

.note-editable .article-image-size-full {
  width: 100%;
}

.note-editable .article-image-align-left {
  margin-left: 0;
  margin-right: auto;
}

.note-editable .article-image-align-center {
  margin-left: auto;
  margin-right: auto;
}

.note-editable .article-image-align-right {
  margin-left: auto;
  margin-right: 0;
}

.note-editable .article-image figcaption {
  color: #64748b;
  font-size: .875rem;
  margin-top: .5rem;
  text-align: center;
}

.note-editable .article-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.note-editable .article-table {
  border-collapse: collapse;
  width: 100%;
}

.note-editable .article-table caption {
  caption-side: top;
  color: #475569;
  font-weight: 600;
  padding: .5rem 0;
  text-align: left;
}

.note-editable .article-table th,
.note-editable .article-table td {
  border: 1px solid #cbd5e1;
  padding: .625rem;
  vertical-align: top;
}

.note-editable .article-table th {
  background: #f1f5f9;
}

.note-editable .article-video {
  aspect-ratio: 16 / 9;
  margin: 1.25rem 0;
  width: 100%;
}

.note-editable .article-video iframe,
.note-editable .article-video video,
.note-editable .article-video-native {
  border: 0;
  height: 100%;
  width: 100%;
}

.note-editable .article-cta {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  margin: 1.5rem 0;
  padding: 1.25rem;
}

.note-editable .article-cta.article-cta-plain {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.note-editable .article-cta-description {
  margin-bottom: .75rem;
}

.note-editable .article-cta > a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.note-editable .article-cta > a.article-btn-size-xs {
  font-size: 12px;
  font-weight: 500;
  min-height: 30px;
  padding: .3rem .6rem;
}

.note-editable .article-cta > a.article-btn-size-sm {
  font-size: 14px;
  font-weight: 500;
  min-height: 34px;
  padding: .45rem .8rem;
}

.note-editable .article-cta > a.article-btn-size-md {
  font-size: 16px;
  font-weight: 600;
  min-height: 40px;
  padding: .625rem 1.1rem;
}

.note-editable .article-cta > a.article-btn-size-lg {
  font-size: 18px;
  font-weight: 600;
  min-height: 46px;
  padding: .75rem 1.35rem;
}

.note-editable .article-cta > a.article-btn-size-xl {
  font-size: 20px;
  font-weight: 700;
  min-height: 52px;
  padding: .9rem 1.6rem;
}

.note-editable .article-cta > a.article-btn-width-compact {
  min-width: 0;
  padding-left: .7em;
  padding-right: .7em;
}

.note-editable .article-cta > a.article-btn-width-wide {
  min-width: 220px;
}

.note-editable .article-cta > a.article-btn-width-xwide {
  min-width: 320px;
}

.note-editable .article-cta > a.article-btn-width-full {
  width: 100%;
}

.note-editable .article-cta > a.btn-primary,
.note-editable .article-cta > a.btn-secondary,
.note-editable .article-cta > a.btn-success,
.note-editable .article-cta > a.btn-danger,
.note-editable .article-cta > a.btn-info,
.note-editable .article-cta > a.btn-dark {
  color: #fff !important;
}

.note-editable .article-cta > a.btn-warning,
.note-editable .article-cta > a.btn-light {
  color: #212529 !important;
}

.note-editable .article-cta > a.btn-outline-primary {
  color: #007bff !important;
}

.note-editable .article-cta > a.btn-outline-secondary {
  color: #6c757d !important;
}

.note-editable .article-cta > a.btn-outline-success {
  color: #28a745 !important;
}

.note-editable .article-cta > a.btn-outline-danger {
  color: #dc3545 !important;
}

.note-editable .article-cta > a.btn-outline-warning {
  color: #9a7200 !important;
}

.note-editable .article-cta > a.btn-outline-info {
  color: #117a8b !important;
}

.note-editable .article-cta > a.btn-outline-dark {
  color: #343a40 !important;
}

.note-editable .article-cta > a.btn-outline-primary:hover,
.note-editable .article-cta > a.btn-outline-secondary:hover,
.note-editable .article-cta > a.btn-outline-success:hover,
.note-editable .article-cta > a.btn-outline-danger:hover,
.note-editable .article-cta > a.btn-outline-info:hover,
.note-editable .article-cta > a.btn-outline-dark:hover {
  color: #fff !important;
}

.note-editable .article-cta > a.btn-outline-warning:hover {
  color: #212529 !important;
}

.solid-editor-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solid-editor-table-preview {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
}

.solid-editor-table-preview table {
  border-collapse: collapse;
  margin: 0;
  width: 100%;
}

.solid-editor-table-preview th,
.solid-editor-table-preview td {
  border: 1px solid #cfd6de;
  cursor: pointer;
  min-width: 72px;
  padding: 8px;
}

.solid-editor-table-preview [data-editor-active-cell] {
  box-shadow: inset 0 0 0 2px #3984c6;
}

.solid-editor-modal .modal-body {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

@media (max-width: 767.98px) {
  .note-editable .article-image-size-25,
  .note-editable .article-image-size-50,
  .note-editable .article-image-size-75 {
    width: 100%;
  }
}

.solid-editor-block-description:not(.d-none) {
  display: block;
}

.note-editable .article-note,
.note-editable .article-warning,
.note-editable .article-quote,
.note-editable .article-steps,
.note-editable .article-faq,
.note-editable .article-pros-cons {
  margin: 1.25rem 0;
}

.note-editable .article-note,
.note-editable .article-warning {
  border-left: 4px solid #3984c6;
  border-radius: 6px;
  padding: 1rem 1.125rem;
}

.note-editable .article-note {
  background: #eff6ff;
}

.note-editable .article-warning {
  background: #fff7ed;
  border-left-color: #f59e0b;
}

.note-editable .article-quote {
  border-left: 4px solid #94a3b8;
  color: #334155;
  padding: .75rem 1rem;
}

.note-editable .article-pros-cons {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-editable .article-pros,
.note-editable .article-cons,
.note-editable .article-faq-item {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 1rem;
}

.note-editable .article-pros {
  background: #f0fdf4;
}

.note-editable .article-cons {
  background: #fff7f7;
}

.note-editable .article-faq-item + .article-faq-item {
  margin-top: .75rem;
}

@media (max-width: 767.98px) {
  .note-editable .article-pros-cons {
    grid-template-columns: 1fr;
  }
}

/* QniTech professional editor V4 */
.note-editor.note-frame {
  --solid-editor-primary: #3984c6;
  --solid-editor-primary-dark: #276a9f;
  --solid-editor-border: #d8e0e8;
  --solid-editor-toolbar-bg: #f8fafc;
  overflow: visible;
}

.note-editor .note-toolbar {
  align-items: center;
  background: var(--solid-editor-toolbar-bg);
  border-bottom: 1px solid var(--solid-editor-border);
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  overflow: visible;
  padding: 7px;
  position: relative;
  z-index: 22;
}

.note-editor .note-toolbar > .note-btn-group {
  display: inline-flex;
  flex-wrap: nowrap;
  margin: 2px;
}

.note-editor .note-btn {
  align-items: center;
  border-color: #cbd5e1;
  display: inline-flex;
  min-height: 34px;
  justify-content: center;
}

.note-editor .note-btn:hover,
.note-editor .note-btn:focus-visible {
  border-color: var(--solid-editor-primary);
  box-shadow: 0 0 0 2px rgb(57 132 198 / 18%);
  outline: 0;
}

.note-editor .note-btn.active,
.note-editor .note-btn.solid-toolbar-active,
.note-editor .note-btn[aria-pressed="true"] {
  background: var(--solid-editor-primary) !important;
  border-color: var(--solid-editor-primary-dark) !important;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%);
  color: #fff !important;
}

.note-editor .note-btn.active i,
.note-editor .note-btn.solid-toolbar-active i,
.note-editor .note-btn[aria-pressed="true"] i {
  color: inherit;
}

.note-editor .note-btn.solid-toolbar-mixed,
.note-editor .note-btn[aria-pressed="mixed"] {
  background: repeating-linear-gradient(
    135deg,
    #e8f1f9,
    #e8f1f9 7px,
    #d5e6f5 7px,
    #d5e6f5 14px
  ) !important;
  border-color: var(--solid-editor-primary) !important;
  box-shadow: inset 0 0 0 1px rgb(57 132 198 / 18%);
  color: #1f4f78 !important;
}

.note-editor .solid-editor-value-label {
  display: inline-block;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.note-editor .solid-style-button .solid-editor-value-label {
  min-width: 74px;
}

.note-editor .solid-style-toggle {
  justify-content: flex-start;
  min-width: 126px;
  padding-inline: 11px;
}

.note-editor .solid-current-style-label {
  display: inline-block;
  max-width: 146px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-editor .solid-style-menu {
  min-width: 220px;
}

.note-editor .solid-style-menu .dropdown-item {
  padding: .55rem .9rem;
}

.note-editor .solid-style-option {
  display: block;
  width: 100%;
}

.note-editor .solid-style-option-label {
  display: block;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.note-editor .solid-style-menu .dropdown-item.active .solid-style-option-label {
  font-weight: 600 !important;
}

.note-editor .solid-font-button .solid-editor-value-label {
  min-width: 62px;
}

.note-editor .solid-size-button .solid-editor-value-label {
  min-width: 38px;
}

.note-editor .solid-color-button {
  min-width: 42px;
}

.note-editor .solid-color-toggle {
  justify-content: center;
  min-width: 42px;
  padding-inline: 7px;
}

.note-editor .solid-color-preview {
  align-items: center;
  border: 1px solid var(--solid-preview-border, #94a3b8);
  border-radius: 4px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 6px;
}

.note-editor .solid-color-preview-letter {
  color: var(--solid-preview-text-color, #111827);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.note-editor .solid-color-preview-fore {
  background: transparent;
}

.note-editor .solid-color-preview-back {
  background: var(--solid-preview-background, #ffffff);
}

.note-editor .solid-color-control.is-color-empty .solid-color-preview-back {
  background-image: linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
}


.note-editor .solid-align-button {
  min-width: 36px;
  padding-left: 9px;
  padding-right: 9px;
}

.note-editor .solid-align-toolbar-icon {
  display: block;
  height: 18px;
  width: 18px;
}

.note-editor .solid-align-toolbar-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.note-editor .solid-list-main {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  min-width: 36px;
}

.note-editor .solid-list-toggle {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  margin-left: -1px;
  min-width: 24px;
  padding-left: 5px;
  padding-right: 5px;
}

.note-editor .solid-list-toggle::after {
  border-left-width: .32em;
  border-right-width: .32em;
  border-top-width: .4em;
}

.note-editor .solid-list-toggle:hover,
.note-editor .solid-list-toggle:focus-visible {
  background: #eaf3fb;
}

.note-editor .solid-list-menu {
  min-width: 188px;
  padding: 6px;
}

.note-editor .solid-list-menu .dropdown-item {
  border-radius: 5px;
  padding: 7px 10px;
}

.note-editor .solid-list-menu .dropdown-item:hover,
.note-editor .solid-list-menu .dropdown-item:focus {
  background: #eaf3fb;
}

.note-editor .solid-list-preview {
  align-items: center;
  display: flex;
  gap: 10px;
  width: 100%;
}

.note-editor .solid-list-preview-marker {
  color: #1f2937;
  display: inline-block;
  flex: 0 0 34px;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.note-editor .solid-list-preview-text {
  color: #334155;
  font-size: 13px;
  white-space: nowrap;
}

.note-editor .solid-color-dropdown {
  min-width: 286px;
  padding: 12px;
}

.note-editor .solid-color-presets,
.note-editor .solid-color-recent {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(8, 26px);
  margin-bottom: 10px;
}

.note-editor .solid-color-preset,
.note-editor .solid-color-recent-item {
  background: var(--solid-color);
  border: 1px solid rgb(15 23 42 / 22%);
  border-radius: 4px;
  height: 26px;
  padding: 0;
  width: 26px;
}

.note-editor .solid-color-preset:hover,
.note-editor .solid-color-preset:focus-visible,
.note-editor .solid-color-recent-item:hover,
.note-editor .solid-color-recent-item:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--solid-editor-primary);
  outline: 0;
}

.note-editor .solid-color-controls {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 42px minmax(0, 1fr) 76px;
}

.note-editor .solid-color-controls input[type="color"] {
  cursor: pointer;
  height: 36px;
  padding: 2px;
  width: 42px;
}

.note-editor .solid-color-format {
  min-width: 72px;
}

.note-editor .solid-color-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 10px;
}

.note-editor .solid-dropdown-section-title {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 8px 0 5px;
  text-transform: uppercase;
}

.note-editor .solid-font-size-custom {
  align-items: center;
  display: flex;
  gap: 7px;
  padding: 7px 10px;
}

.note-editor .solid-font-size-custom input {
  max-width: 84px;
}

.note-editor .note-dropdown-menu {
  max-height: min(70vh, 540px);
  overflow: auto;
  z-index: 10620;
}

.note-editor .note-editing-area {
  position: relative;
}

.note-editor .note-editable {
  overflow: auto;
  resize: vertical;
}

.note-editor .note-statusbar {
  background: #f8fafc;
  border-top: 1px solid var(--solid-editor-border);
  min-height: 10px;
}

.note-editor .note-statusbar .note-resizebar {
  cursor: ns-resize;
  height: 12px;
}

.note-editor .note-statusbar .note-resizebar .note-icon-bar {
  border-top-color: #94a3b8;
  margin-top: 2px;
  width: 28px;
}

.note-editor .solid-code-tools {
  align-items: center;
  background: #111827;
  border-bottom: 1px solid #334155;
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 9px;
}

.note-editor.codeview .solid-code-tools {
  display: flex;
}

.note-editor .solid-code-tools .btn {
  font-size: 12px;
  padding: 4px 9px;
}

.note-editor .solid-code-tools .solid-code-status {
  color: #cbd5e1;
  font-size: 12px;
  margin-left: auto;
}

.note-editor.codeview .CodeMirror {
  font-size: 13px;
  height: 100%;
}


.note-editor .CodeMirror-gutters {
  border-right-color: #334155;
}

body.solid-editor-fullscreen-open {
  overflow: hidden !important;
}

.note-editor.fullscreen {
  background: #fff;
  display: flex !important;
  flex-direction: column;
  height: 100vh !important;
  inset: 0 !important;
  max-height: none !important;
  position: fixed !important;
  width: 100vw !important;
  z-index: 10600 !important;
}

.note-editor.fullscreen .note-toolbar {
  flex: 0 0 auto;
  max-height: 30vh;
  overflow-x: visible;
  overflow-y: auto;
  position: sticky;
  top: 0;
  z-index: 10610;
}

.note-editor.fullscreen .note-editing-area {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.note-editor.fullscreen .note-editable,
.note-editor.fullscreen .note-codable,
.note-editor.fullscreen .CodeMirror,
.note-editor.fullscreen .CodeMirror-scroll {
  flex: 1 1 auto;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  resize: none;
}

.note-editor.fullscreen .note-statusbar {
  display: none;
}

.note-editor.fullscreen .note-dropdown-menu,
.note-editor.fullscreen + .note-popover,
.solid-editor-modal {
  z-index: 10650 !important;
}

body.solid-editor-fullscreen-open .main-header,
body.solid-editor-fullscreen-open .main-sidebar,
body.solid-editor-fullscreen-open .main-footer,
body.solid-editor-fullscreen-open .control-sidebar {
  z-index: 1 !important;
}

.note-editable .article-image-caption,
.note-editable figcaption {
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 8px;
  min-height: 1.4em;
}

.note-editable .article-image-caption.article-align-left,
.note-editable figcaption.article-align-left {
  text-align: left;
}

.note-editable .article-image-caption.article-align-center,
.note-editable figcaption.article-align-center {
  text-align: center;
}

.note-editable .article-image-caption.article-align-right,
.note-editable figcaption.article-align-right {
  text-align: right;
}

.note-editable .article-list {
  padding-left: 1.55rem;
}

.note-editable ul.article-list-disc {
  list-style-type: disc;
}

.note-editable ul.article-list-circle {
  list-style-type: circle;
}

.note-editable ul.article-list-square {
  list-style-type: square;
}

.note-editable ul.article-list-none {
  list-style-type: none;
  padding-left: 0;
}

.note-editable ol.article-list-decimal {
  list-style-type: decimal;
}

.note-editable ol.article-list-decimal-leading-zero {
  list-style-type: decimal-leading-zero;
}

.note-editable ol.article-list-lower-alpha {
  list-style-type: lower-alpha;
}

.note-editable ol.article-list-upper-alpha {
  list-style-type: upper-alpha;
}

.note-editable ol.article-list-lower-roman {
  list-style-type: lower-roman;
}

.note-editable ol.article-list-upper-roman {
  list-style-type: upper-roman;
}

.note-editable ul.article-list-check,
.note-editable ul.article-list-arrow,
.note-editable ul.article-list-dash,
.note-editable ul.article-list-plus {
  list-style: none;
  padding-left: 1.55rem;
}

.note-editable ul.article-list-check > li,
.note-editable ul.article-list-arrow > li,
.note-editable ul.article-list-dash > li,
.note-editable ul.article-list-plus > li {
  position: relative;
}

.note-editable ul.article-list-check > li::before,
.note-editable ul.article-list-arrow > li::before,
.note-editable ul.article-list-dash > li::before,
.note-editable ul.article-list-plus > li::before {
  color: var(--solid-editor-primary);
  font-weight: 700;
  left: -1.3rem;
  position: absolute;
}

.note-editable ul.article-list-check > li::before {
  content: "✓";
}

.note-editable ul.article-list-arrow > li::before {
  content: "→";
}

.note-editable ul.article-list-dash > li::before {
  content: "–";
}

.note-editable ul.article-list-plus > li::before {
  content: "+";
}

@media (max-width: 767.98px) {
  .note-editor .note-toolbar {
    padding: 5px;
  }

  .note-editor .solid-editor-value-label {
    max-width: 76px;
  }

  .note-editor .solid-color-dropdown {
    left: 0 !important;
    min-width: min(286px, calc(100vw - 32px));
    position: fixed !important;
    right: auto !important;
    top: 72px !important;
  }
}

/* Table drag resize */
.note-editor.note-frame {
  position: relative;
}

.note-editor .solid-table-resize-layer {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity .12s ease;
  z-index: 10610;
}

.note-editor .solid-table-resize-layer.is-visible {
  opacity: 1;
}

.note-editor .solid-table-column-resizer,
.note-editor .solid-table-size-resizer {
  background: #3984c6;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 1px rgb(57 132 198 / 45%);
  display: block;
  margin: 0;
  opacity: .88;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  touch-action: none;
}

.note-editor .solid-table-column-resizer {
  border-radius: 4px;
  cursor: col-resize;
  min-height: 20px;
  width: 10px;
}

.note-editor .solid-table-column-resizer::after {
  background: rgb(57 132 198 / 45%);
  content: "";
  inset: 0 4px;
  position: absolute;
}

.note-editor .solid-table-size-resizer {
  border-radius: 3px;
  cursor: ew-resize;
  height: 16px;
  width: 16px;
}

.note-editor .solid-table-column-resizer:hover,
.note-editor .solid-table-column-resizer:focus-visible,
.note-editor .solid-table-size-resizer:hover,
.note-editor .solid-table-size-resizer:focus-visible {
  opacity: 1;
  outline: 2px solid rgb(57 132 198 / 28%);
  outline-offset: 2px;
}

.note-editor .note-editable table[style*="table-layout: fixed"],
.note-editor .note-editable table[style*="table-layout:fixed"] {
  max-width: none;
}

body.solid-table-resizing,
body.solid-table-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

/* Editor toolbar stability and consistent visual states */
.note-editor .note-toolbar .note-btn,
.note-editor .note-popover .note-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1f2937;
}

.note-editor .note-toolbar .note-btn i,
.note-editor .note-popover .note-btn i,
.note-editor .note-toolbar .note-btn > span:not(.solid-color-preview):not(.solid-color-preview-letter),
.note-editor .note-popover .note-btn > span:not(.solid-color-preview):not(.solid-color-preview-letter) {
  color: currentColor;
}

.note-editor .note-toolbar .note-btn:hover,
.note-editor .note-toolbar .note-btn:focus-visible,
.note-editor .note-popover .note-btn:hover,
.note-editor .note-popover .note-btn:focus-visible,
.note-editor .note-btn-group.show > .note-btn.dropdown-toggle {
  background: #eaf3fb;
  border-color: var(--solid-editor-primary);
  color: #1f4f78;
}

.note-editor .note-toolbar .note-btn.active,
.note-editor .note-toolbar .note-btn.solid-toolbar-active,
.note-editor .note-toolbar .note-btn[aria-pressed="true"],
.note-editor .note-popover .note-btn.active,
.note-editor .note-popover .note-btn.solid-toolbar-active,
.note-editor .note-popover .note-btn[aria-pressed="true"] {
  background: var(--solid-editor-primary) !important;
  border-color: var(--solid-editor-primary-dark) !important;
  color: #ffffff !important;
}

.note-editor .solid-color-toggle,
.note-editor .note-btn-group.show > .solid-color-toggle {
  background: #ffffff !important;
  color: #1f2937 !important;
}

.note-editor .solid-color-preview-letter {
  color: var(--solid-preview-text-color, #111827) !important;
}

.note-editor .solid-color-preview-back {
  background-color: var(--solid-preview-background, #ffffff) !important;
}

.note-editor .solid-color-menu {
  min-width: 310px;
  padding: 0;
}

.note-editor .solid-color-menu-body {
  padding: 12px;
}

.note-editor .solid-color-menu-title {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.note-editor .solid-list-toolbar-icon {
  display: block;
  height: 18px;
  overflow: visible;
  width: 18px;
}

.note-editor .solid-list-toolbar-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.9;
}

.note-editor .solid-list-toolbar-icon circle {
  fill: currentColor;
}

.note-editor .solid-list-toolbar-icon text {
  fill: currentColor;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
}

.note-editor .solid-list-menu .dropdown-item.active,
.note-editor .solid-font-menu .dropdown-item.active,
.note-editor .solid-style-menu .dropdown-item.active,
.note-editor .solid-size-menu .dropdown-item.active {
  background: #dbeafe;
  color: #1f4f78;
}

.note-editor .note-toolbar .dropdown-toggle::after {
  color: currentColor;
}

/* Editor toolbar layout and semantic block controls */
.note-editor .solid-toolbar-row-break {
  flex: 0 0 100%;
  height: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

.note-editor .solid-style-toggle {
  min-width: 132px;
  width: auto;
}

.note-editor .solid-style-menu {
  min-width: 250px;
  width: 250px;
}

.note-editor .solid-style-menu .dropdown-item {
  white-space: normal;
}

.note-editor .solid-style-option {
  align-items: flex-start;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.note-editor .solid-style-option-code {
  align-items: center;
  background: #eef4fa;
  border: 1px solid #cfdeeb;
  border-radius: 4px;
  color: #315e83;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 30px;
}

.note-editor .solid-style-option-copy {
  display: block;
  min-width: 0;
}

.note-editor .solid-style-option-label {
  color: #1f2937;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.note-editor .solid-style-option-description {
  color: #64748b;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
}

.note-editor .solid-style-menu .dropdown-item.active .solid-style-option-code {
  background: #3984c6;
  border-color: #276a9f;
  color: #fff;
}

.note-editor .solid-blockquote-button,
.note-editor .solid-code-block-button {
  min-width: 38px;
}

.note-editor .solid-block-toolbar-icon {
  align-items: center;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
}

.note-editor .solid-blockquote-toolbar-icon {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  transform: translateY(1px);
}

.note-editor .solid-code-toolbar-icon {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.08em;
}

.note-editor .solid-font-toggle {
  min-width: 132px;
}

.note-editor .solid-size-toggle {
  min-width: 68px;
}

.note-editor .solid-color-menu-body .solid-native-color {
  cursor: pointer;
  height: 31px;
  min-width: 42px;
  padding: 2px;
  width: 42px;
}

.note-editor .solid-color-menu-body .solid-color-input {
  min-width: 112px;
}

/* QniTech editor toolbar UX: semantic style preview, mode tabs and indentation */
.note-editor .solid-editor-mode-bar {
  align-items: flex-end;
  background: var(--solid-editor-toolbar-bg, #f8fafc);
  border-bottom: 1px solid var(--solid-editor-border, #d8e0e8);
  display: flex;
  gap: 3px;
  justify-content: flex-end;
  min-height: 42px;
  padding: 7px 8px 0;
  position: relative;
  z-index: 24;
}

.note-editor .solid-editor-mode-tab {
  align-items: center;
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.note-editor .solid-editor-mode-tab:hover,
.note-editor .solid-editor-mode-tab:focus-visible {
  background: #e5eff8;
  border-color: var(--solid-editor-primary, #3984c6);
  color: #1f4f78;
  outline: 0;
}

.note-editor .solid-editor-mode-tab.active,
.note-editor .solid-editor-mode-tab[aria-selected="true"],
.note-editor .solid-editor-mode-tab[aria-pressed="true"] {
  background: #ffffff;
  border-color: var(--solid-editor-primary, #3984c6);
  color: var(--solid-editor-primary-dark, #276a9f);
  margin-bottom: -1px;
  min-height: 35px;
}

.note-editor .solid-mode-icon {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  line-height: 1;
  min-width: 15px;
}

.note-editor .solid-mode-code-icon {
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.08em;
}

.note-editor .note-toolbar .btn-codeview,
.note-editor .note-toolbar .btn-fullscreen {
  display: none !important;
}

.note-editor .note-toolbar .dropdown-toggle,
.note-editor .note-toolbar .solid-style-toggle,
.note-editor .note-toolbar .solid-font-toggle,
.note-editor .note-toolbar .solid-size-toggle {
  justify-content: space-between;
}

.note-editor .solid-style-toggle {
  min-width: 146px;
}

.note-editor .solid-style-menu {
  max-height: none;
  min-width: 274px;
  overflow: visible;
  padding: 4px 0;
  width: 274px;
}

.note-editor .solid-style-menu .dropdown-item {
  border-radius: 0;
  color: #374151;
  min-height: 48px;
  padding: 7px 14px;
  white-space: nowrap;
}

.note-editor .solid-style-menu .dropdown-item:hover,
.note-editor .solid-style-menu .dropdown-item:focus {
  background: #eaf3fb;
  color: #1f4f78;
}

.note-editor .solid-style-menu .dropdown-item.active {
  background: #2f7db7;
  color: #ffffff;
}

.note-editor .solid-style-option {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

.note-editor .solid-style-option-label {
  color: inherit;
  display: block;
  flex: 1 1 auto;
  line-height: 1.15 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-editor .solid-style-option--p .solid-style-option-label {
  font-family: inherit;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.note-editor .solid-style-option--h2 .solid-style-option-label {
  font-family: inherit;
  font-size: 25px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.note-editor .solid-style-option--h3 .solid-style-option-label {
  font-family: inherit;
  font-size: 21px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.note-editor .solid-style-option--h4 .solid-style-option-label {
  font-family: inherit;
  font-size: 17px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.note-editor .solid-style-option-tag {
  color: #94a3b8;
  flex: 0 0 auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 400;
}

.note-editor .solid-style-menu .dropdown-item.active .solid-style-option-label,
.note-editor .solid-style-menu .dropdown-item.active .solid-style-option-tag {
  color: #ffffff;
}

.note-editor .solid-indent-button {
  min-width: 36px;
  padding-left: 8px;
  padding-right: 8px;
}

.note-editor .solid-indent-toolbar-icon {
  display: block;
  height: 18px;
  width: 18px;
}

.note-editor .solid-indent-toolbar-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.note-editor.fullscreen .solid-editor-mode-bar {
  flex: 0 0 auto;
  position: relative;
  z-index: 1004;
}

@media (max-width: 767.98px) {
  .note-editor .solid-editor-mode-bar {
    overflow-x: auto;
    padding-left: 6px;
    padding-right: 6px;
  }

  .note-editor .solid-editor-mode-tab {
    flex: 0 0 auto;
    padding-left: 9px;
    padding-right: 9px;
  }

  .note-editor .solid-editor-mode-tab span:last-child {
    display: none;
  }
}

/* QniTech editor: advanced table UX and complete semantic style menu */
.note-editor.solid-mode-tabs-ready {
  display: flex;
  flex-direction: column;
}

.note-editor.solid-mode-tabs-ready > .solid-editor-mode-bar {
  flex: 0 0 auto;
  order: -30;
}

.note-editor.solid-mode-tabs-ready > .note-toolbar {
  flex: 0 0 auto;
  order: -20;
}

.note-editor.solid-mode-tabs-ready > .note-editing-area {
  order: 0;
}

.note-editor.solid-mode-tabs-ready > .note-statusbar {
  order: 10;
}

.note-editor .solid-table-column-resizer,
.note-editor .solid-table-row-resizer,
.note-editor .solid-table-size-resizer {
  background: #3984c6;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 1px rgb(57 132 198 / 45%);
  display: block;
  margin: 0;
  opacity: .88;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  touch-action: none;
}

.note-editor .solid-table-row-resizer {
  border-radius: 4px;
  cursor: row-resize;
  height: 10px;
  min-width: 28px;
}

.note-editor .solid-table-row-resizer::after {
  background: rgb(57 132 198 / 45%);
  content: "";
  inset: 4px 0;
  position: absolute;
}

.note-editor .solid-table-size-resizer {
  cursor: nwse-resize;
}

.note-editor .solid-table-column-resizer:hover,
.note-editor .solid-table-column-resizer:focus-visible,
.note-editor .solid-table-row-resizer:hover,
.note-editor .solid-table-row-resizer:focus-visible,
.note-editor .solid-table-size-resizer:hover,
.note-editor .solid-table-size-resizer:focus-visible {
  opacity: 1;
  outline: 2px solid rgb(57 132 198 / 28%);
  outline-offset: 2px;
}

body.solid-table-row-resizing,
body.solid-table-row-resizing * {
  cursor: row-resize !important;
  user-select: none !important;
}

body.solid-table-size-resizing,
body.solid-table-size-resizing * {
  cursor: nwse-resize !important;
  user-select: none !important;
}

.note-editor .note-editable .article-table-wrap {
  max-width: 100%;
  overflow: auto;
  padding: 2px 2px 10px;
}

.note-editor .note-editable table.article-table {
  border-collapse: collapse;
  min-width: 560px;
  table-layout: fixed;
}

.note-editor .note-editable table.article-table th,
.note-editor .note-editable table.article-table td {
  box-sizing: border-box;
  height: 44px;
  min-width: 96px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  vertical-align: top;
}

.note-editor .solid-editor-table-preview table {
  border-collapse: collapse;
  min-width: 100%;
  table-layout: fixed;
  user-select: none;
}

.note-editor .solid-editor-table-preview th,
.note-editor .solid-editor-table-preview td {
  cursor: cell;
  height: 44px;
  min-width: 84px;
  padding: 8px 10px;
  position: relative;
  vertical-align: top;
}

.note-editor .solid-editor-table-preview [data-editor-selected-cell] {
  background-clip: padding-box;
  box-shadow: inset 0 0 0 2px rgb(57 132 198 / 70%);
}

.note-editor .solid-editor-table-preview [data-editor-selected-cell]::after {
  background: rgb(57 132 198 / 12%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.note-editor .solid-editor-table-preview [data-editor-active-cell] {
  box-shadow: inset 0 0 0 3px #3984c6;
}

.note-editor .solid-table-selection-help {
  background: #f1f5f9;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  color: #475569;
  font-size: 12px;
  margin: 8px 0 10px;
  padding: 8px 10px;
}

.note-editor .solid-table-selection-count {
  color: #276a9f;
  white-space: nowrap;
}

.note-editor table.article-table-striped tbody tr:nth-child(even) > th,
.note-editor table.article-table-striped tbody tr:nth-child(even) > td {
  background-color: #f7f9fc;
}

.note-editor table.article-table-borderless th,
.note-editor table.article-table-borderless td {
  border-left: 0 !important;
  border-right: 0 !important;
}

.note-editor table.article-table-compact th,
.note-editor table.article-table-compact td {
  height: 36px;
  padding: 5px 8px;
}

.note-editor table.article-table-hover tbody tr:hover > th,
.note-editor table.article-table-hover tbody tr:hover > td {
  background-color: #eef6fc;
}

.note-editor table.article-table-header-accent thead th,
.note-editor table.article-table-header-accent tr:first-child > th {
  background-color: #e8f2fa;
  color: #1f4f78;
  font-weight: 700;
}

.note-editor .article-valign-top {
  vertical-align: top !important;
}

.note-editor .article-valign-middle {
  vertical-align: middle !important;
}

.note-editor .article-valign-bottom {
  vertical-align: bottom !important;
}

.note-editor .article-cell-tone-muted {
  background-color: #f1f5f9 !important;
}

.note-editor .article-cell-tone-accent {
  background-color: #e8f2fa !important;
}

.note-editor .article-cell-tone-success {
  background-color: #eaf7ef !important;
}

.note-editor .article-cell-tone-warning {
  background-color: #fff7db !important;
}

.note-editor .solid-style-option--h1 .solid-style-option-label {
  font-family: inherit;
  font-size: 28px !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

.note-editor .solid-style-option--h5 .solid-style-option-label {
  font-family: inherit;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

.note-editor .solid-style-option--h6 .solid-style-option-label {
  font-family: inherit;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

.note-editor .solid-style-option--pre .solid-style-option-label {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}


/* Google Docs-like table interaction: invisible borders, contextual actions. */
.note-editor .solid-table-resize-layer,
.note-editor .solid-table-column-resizer,
.note-editor .solid-table-row-resizer,
.note-editor .solid-table-size-resizer {
  display: none !important;
}

.note-editor.solid-table-edge-col .note-editable,
.note-editor.solid-table-edge-col .note-editable * {
  cursor: col-resize !important;
}

.note-editor.solid-table-edge-row .note-editable,
.note-editor.solid-table-edge-row .note-editable * {
  cursor: row-resize !important;
}

.note-editor .note-editable table [data-editor-selected-cell] {
  box-shadow: inset 0 0 0 2px #1a73e8 !important;
  position: relative;
}

.note-editor .note-editable table [data-editor-active-cell] {
  box-shadow: inset 0 0 0 2px #0b57d0, inset 0 0 0 9999px rgb(26 115 232 / 7%) !important;
}

.solid-table-context-menu {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgb(60 64 67 / 24%);
  display: none;
  max-height: min(520px, calc(100vh - 16px));
  min-width: 230px;
  overflow: auto;
  padding: 6px 0;
  position: fixed;
  z-index: 10950;
}

.solid-table-context-menu.is-open {
  display: block;
}

.solid-table-context-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #202124;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  justify-content: flex-start;
  min-height: 34px;
  padding: 7px 16px;
  text-align: left;
  width: 100%;
}

.solid-table-context-menu button:hover,
.solid-table-context-menu button:focus-visible {
  background: #f1f3f4;
  outline: 0;
}

.solid-table-context-menu button:disabled {
  color: #9aa0a6;
  cursor: default;
}

.solid-table-context-menu button:disabled:hover {
  background: transparent;
}

.solid-table-context-separator {
  border-top: 1px solid #e8eaed;
  margin: 5px 0;
}

body.solid-table-resizing,
body.solid-table-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

body.solid-table-row-resizing,
body.solid-table-row-resizing * {
  cursor: row-resize !important;
}

/* QniTech editor: table selection, table settings and link workflow refinements. */
.note-editor .solid-blockquote-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.note-editor .solid-blockquote-toolbar-icon {
  align-items: center;
  display: inline-flex;
  font-size: 27px;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-width: 22px;
  transform: translateY(0);
}

.note-editor .note-toolbar .note-cleanup,
.note-editor .note-toolbar .note-contentTools {
  border-left: 1px solid #d8e0e8;
  margin-left: 4px;
  padding-left: 5px;
}

.note-editor .solid-unlink-button:disabled,
.note-editor .solid-btn-unlink:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.note-editor .note-editable table [data-editor-selected-cell],
.note-editor .solid-editor-table-preview [data-editor-selected-cell] {
  background-image: linear-gradient(rgb(26 115 232 / 18%), rgb(26 115 232 / 18%)) !important;
  background-clip: padding-box !important;
  box-shadow: inset 0 0 0 2px #1a73e8 !important;
  position: relative;
}

.note-editor .note-editable table [data-editor-active-cell],
.note-editor .solid-editor-table-preview [data-editor-active-cell] {
  background-image: linear-gradient(rgb(11 87 208 / 24%), rgb(11 87 208 / 24%)) !important;
  box-shadow: inset 0 0 0 3px #0b57d0 !important;
}

.note-editor .note-editable table [data-editor-selected-cell]::after,
.note-editor .solid-editor-table-preview [data-editor-selected-cell]::after {
  background: transparent;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.solid-editor-table-modal .solid-table-properties-dialog {
  max-width: min(1220px, calc(100vw - 30px));
}

.solid-editor-table-modal .modal-body {
  background: #f7f9fc;
  padding: 16px;
}

.solid-table-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solid-table-settings__top {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
}

.solid-editor-settings-card {
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 14px;
}

.solid-editor-settings-card__title {
  align-items: center;
  color: #263746;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 12px;
}

.solid-editor-settings-card__title > i {
  color: #3984c6;
  min-width: 16px;
  text-align: center;
}

.solid-editor-settings-card__title .solid-table-selection-count {
  background: #e8f2fa;
  border-radius: 999px;
  color: #276a9f;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
  padding: 4px 9px;
}

.solid-table-option-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.solid-table-option-row .custom-control {
  margin-bottom: 0 !important;
}

.solid-table-format-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 12px;
}

.solid-table-format-control {
  min-width: 0;
}

.solid-table-format-label {
  color: #495866;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.solid-table-icon-group {
  display: flex;
  width: 100%;
}

.solid-table-icon-group .btn {
  align-items: center;
  border-color: #ced8e2;
  display: inline-flex;
  flex: 1 1 0;
  height: 38px;
  justify-content: center;
  min-width: 38px;
}

.solid-table-icon-group .btn.active {
  background: #e8f2fa;
  border-color: #3984c6;
  color: #276a9f;
  box-shadow: inset 0 0 0 1px #3984c6;
}

.solid-table-color-field {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.solid-table-color-field input[type="color"] {
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  height: 38px;
  padding: 3px;
  width: 48px;
}

.solid-table-color-field input[type="text"] {
  border-radius: 0;
  margin-left: -1px;
  min-width: 0;
}

.solid-table-color-field .btn {
  border: 1px solid #ced4da;
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

.solid-table-border-settings .form-group,
.solid-table-settings__cells .form-group,
.solid-table-settings__appearance .form-group {
  margin-bottom: 10px;
}

.solid-table-action-groups {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.solid-table-action-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.solid-table-action-group > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.solid-table-action-group .btn {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  height: 36px;
  justify-content: center;
  min-width: 38px;
}

.solid-table-action-group--danger {
  margin-left: auto;
}

.solid-table-selection-help {
  align-items: flex-start;
  background: #edf5fb;
  border-color: #c8deef;
  color: #36556e;
  display: flex;
  gap: 8px;
  margin: 0;
}

.solid-table-selection-help > i {
  margin-top: 2px;
}

.solid-table-preview-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.solid-table-preview-heading strong {
  color: #263746;
  font-size: 13px;
}

.solid-table-preview-heading span {
  color: #6b7785;
  font-size: 12px;
}

.solid-editor-table-modal .solid-editor-table-preview {
  background: #fff;
  border: 1px solid #cfd9e3;
  border-radius: 7px;
  max-height: 360px;
  min-height: 150px;
  outline: 0;
  padding: 10px;
}

.solid-editor-table-modal .solid-editor-table-preview:focus {
  border-color: #3984c6;
  box-shadow: 0 0 0 3px rgb(57 132 198 / 14%);
}

.solid-editor-table-modal .solid-editor-table-preview table {
  margin-bottom: 0;
}

.solid-editor-link-modal .modal-body {
  background: #f7f9fc;
}

.solid-link-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solid-link-status {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  color: #526273;
  display: flex;
  font-size: 12px;
  gap: 7px;
  margin: -2px 0 12px;
  padding: 7px 9px;
}

.solid-link-status--internal {
  background: #edf7f1;
  border-color: #cde7d7;
  color: #27633e;
}

.solid-link-status--external {
  background: #fff7e6;
  border-color: #f0d8a8;
  color: #7c591d;
}

.solid-link-rel-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
}

.solid-link-rel-options .custom-control {
  margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  .solid-table-settings__top {
    grid-template-columns: 1fr;
  }

  .solid-table-action-group--danger {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .solid-editor-table-modal .modal-body {
    padding: 10px;
  }

  .solid-table-format-row {
    grid-template-columns: 1fr;
  }

  .solid-table-action-groups {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .solid-table-action-group--danger {
    grid-column: 1 / -1;
  }

  .solid-table-action-group .btn-group {
    display: flex;
  }

  .solid-table-action-group .btn {
    flex: 1 1 auto;
  }

  .solid-table-preview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .solid-link-rel-options {
    grid-template-columns: 1fr;
  }
}

/* Table Settings lives outside .note-editor, so multi-cell selection must be
   styled at modal scope as well as inside the editable canvas. */
.solid-editor-table-modal .solid-editor-table-preview [data-editor-selected-cell] {
  background-image: linear-gradient(rgb(26 115 232 / 18%), rgb(26 115 232 / 18%)) !important;
  background-clip: padding-box !important;
  box-shadow: inset 0 0 0 2px #1a73e8 !important;
  position: relative;
}

.solid-editor-table-modal .solid-editor-table-preview [data-editor-active-cell] {
  background-image: linear-gradient(rgb(11 87 208 / 24%), rgb(11 87 208 / 24%)) !important;
  box-shadow: inset 0 0 0 3px #0b57d0 !important;
}

.solid-editor-table-modal .solid-editor-table-preview [data-editor-selected-cell]::after {
  background: transparent;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

/* Spreadsheet-like table cell dragging: browser text selection is disabled only
   while a drag crosses cell boundaries. Normal text selection inside one cell remains available. */
body.solid-table-cell-selecting,
body.solid-table-cell-selecting * {
  cursor: cell !important;
  user-select: none !important;
}

.note-editor.solid-table-cell-selecting .note-editable,
.note-editor.solid-table-cell-selecting .note-editable *,
.solid-editor-table-modal.solid-table-cell-selecting .solid-editor-table-preview,
.solid-editor-table-modal.solid-table-cell-selecting .solid-editor-table-preview * {
  cursor: cell !important;
  user-select: none !important;
}

.note-editor.solid-table-cell-selecting .note-editable ::selection,
.solid-editor-table-modal.solid-table-cell-selecting .solid-editor-table-preview ::selection {
  background: transparent;
  color: inherit;
}

.note-editor .note-editable table [data-editor-selected-cell],
.solid-editor-table-modal .solid-editor-table-preview [data-editor-selected-cell] {
  background-image: linear-gradient(rgb(26 115 232 / 22%), rgb(26 115 232 / 22%)) !important;
  box-shadow: inset 0 0 0 1px rgb(26 115 232 / 72%) !important;
}

.note-editor .note-editable table [data-editor-active-cell],
.solid-editor-table-modal .solid-editor-table-preview [data-editor-active-cell] {
  background-image: linear-gradient(rgb(11 87 208 / 27%), rgb(11 87 208 / 27%)) !important;
  box-shadow: inset 0 0 0 2px #0b57d0 !important;
}

/* QniTech editor V5: stable single-row toolbar, responsive overlays and admin sticky mode. */
.note-editor.solid-editor-v5 {
  max-width: 100%;
  min-width: 0;
}

.note-editor.solid-editor-v5 > .note-toolbar {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 5px 6px;
}

.note-editor.solid-editor-v5 .solid-toolbar-primary {
  align-items: center;
  display: flex;
  gap: 6px;
  max-width: 100%;
  min-height: 40px;
  min-width: 0;
  width: 100%;
}

.note-editor.solid-editor-v5 .solid-toolbar-scroll {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  white-space: nowrap;
}

.note-editor.solid-editor-v5 .solid-toolbar-scroll > .note-btn-group {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin: 0 2px 0 0;
}

.note-editor.solid-editor-v5 .solid-toolbar-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}

.note-editor.solid-editor-v5 .solid-toolbar-actions .note-btn {
  min-height: 34px;
  white-space: nowrap;
}

.note-editor.solid-editor-v5 .solid-toolbar-advanced {
  align-items: flex-start;
  border-top: 1px solid var(--solid-editor-border, #d8e0e8);
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 5px -6px -5px;
  max-width: calc(100% + 12px);
  min-width: 0;
  overflow-x: hidden;
  padding: 6px;
}

.note-editor.solid-editor-v5 .solid-toolbar-advanced[hidden] {
  display: none !important;
}

.note-editor.solid-editor-v5 .solid-toolbar-advanced > .note-btn-group {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin: 0;
  max-width: 100%;
}

.note-editor.solid-editor-v5 .solid-command-palette {
  background: #ffffff;
  border: 1px solid #d7e0e9;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgb(15 23 42 / 24%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: min(600px, calc(100vh - 16px));
  max-width: calc(100vw - 16px);
  overflow: hidden;
  position: fixed;
  width: min(380px, calc(100vw - 16px));
  z-index: 10960;
}

.note-editor.solid-editor-v5 .solid-command-palette[hidden] {
  display: none !important;
}

.note-editor.solid-editor-v5 .solid-command-search-wrap {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 9px 10px;
}

.note-editor.solid-editor-v5 .solid-command-search {
  border: 0;
  flex: 1 1 auto;
  min-width: 0;
  outline: 0;
}

.note-editor.solid-editor-v5 .solid-command-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
}

.note-editor.solid-editor-v5 .solid-command-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #263746;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 44px;
  padding: 7px 9px;
  text-align: left;
  width: 100%;
}

.note-editor.solid-editor-v5 .solid-command-item:hover,
.note-editor.solid-editor-v5 .solid-command-item.active {
  background: #eaf3fb;
  color: #1f4f78;
}

.note-editor.solid-editor-v5 .solid-command-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.note-editor.solid-editor-v5 .solid-command-copy strong,
.note-editor.solid-editor-v5 .solid-command-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-editor.solid-editor-v5 .solid-command-shortcut {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 11px;
}

.note-editor.solid-editor-v5 .solid-selection-toolbar {
  align-items: center;
  background: #1f2937;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 24%);
  display: flex;
  gap: 2px;
  padding: 4px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 10940;
}

.note-editor.solid-editor-v5 .solid-selection-toolbar[hidden] {
  display: none !important;
}

.note-editor.solid-editor-v5 .solid-selection-toolbar button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  min-height: 30px;
  min-width: 32px;
  padding: 4px 7px;
}

.note-editor.solid-editor-v5 .solid-selection-toolbar button:hover,
.note-editor.solid-editor-v5 .solid-selection-toolbar button:focus-visible {
  background: rgb(255 255 255 / 16%);
  outline: 0;
}

.layout-navbar-fixed .note-editor.solid-editor-v5 > .solid-editor-mode-bar {
  position: sticky;
  top: 57px;
  z-index: 1040;
}

.layout-navbar-fixed .note-editor.solid-editor-v5 > .note-toolbar {
  position: sticky;
  top: 99px;
  z-index: 1039;
}

.note-editor.solid-editor-v5.fullscreen > .solid-editor-mode-bar {
  top: 0;
}

.note-editor.solid-editor-v5.fullscreen > .note-toolbar {
  top: 42px;
}

@media (max-width: 767.98px) {
  .note-editor.solid-editor-v5 > .note-toolbar {
    padding: 4px;
  }

  .note-editor.solid-editor-v5 .solid-toolbar-primary {
    gap: 4px;
    min-height: 40px;
  }

  .note-editor.solid-editor-v5 .solid-toolbar-actions {
    background: var(--solid-editor-toolbar-bg, #f8fafc);
    box-shadow: -8px 0 12px -10px rgb(15 23 42 / 45%);
    padding-left: 2px;
  }

  .note-editor.solid-editor-v5 .solid-command-label,
  .note-editor.solid-editor-v5 .solid-toolbar-more-label {
    display: none;
  }

  .note-editor.solid-editor-v5 .solid-command-button,
  .note-editor.solid-editor-v5 .solid-toolbar-more-toggle {
    min-width: 36px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .note-editor.solid-editor-v5 .solid-toolbar-advanced {
    align-content: flex-start;
    margin: 4px -4px -4px;
    max-height: 192px;
    max-width: calc(100% + 8px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px;
  }

  .note-editor.solid-editor-v5 .solid-command-palette {
    width: calc(100vw - 16px);
  }
}

/* QniTech editor interaction guard (ported from SolidSMM, 2026-08-07).
 * Bootstrap 4 tooltips are presentation-only and must never intercept pointer events.
 * V5 moves open dropdowns to a fixed layer so toolbar overflow cannot clip them.
 */
body .tooltip {
  pointer-events: none;
}

.note-editor .note-tooltip {
  pointer-events: none !important;
}

.note-editor.solid-editor-v5 .solid-v5-fixed-dropdown {
  box-sizing: border-box;
  position: fixed !important;
  z-index: 10920 !important;
}


/* CTA color picker: saturation/value + hue + alpha + RGBA + swatches. */
.solid-cta-color-field {
  position: relative;
}

.solid-cta-color-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  cursor: pointer;
  display: flex;
  min-height: 38px;
  padding: .35rem .55rem;
  text-align: left;
  width: 100%;
}

.solid-cta-color-trigger:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .15);
  outline: 0;
}

.solid-cta-color-checker,
.solid-cta-alpha-track {
  background-color: #fff;
  background-image: linear-gradient(45deg, #d1d5db 25%, transparent 25%), linear-gradient(-45deg, #d1d5db 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d1d5db 75%), linear-gradient(-45deg, transparent 75%, #d1d5db 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
}

.solid-cta-color-checker {
  border: 1px solid #d1d5db;
  border-radius: .3rem;
  flex: 0 0 34px;
  height: 26px;
  overflow: hidden;
}

.solid-cta-color-preview {
  display: block;
  height: 100%;
  width: 100%;
}

.solid-cta-color-value {
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  margin-left: .55rem;
}

.solid-cta-color-chevron {
  color: #6b7280;
  margin-left: .35rem;
}

.solid-cta-color-popover {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
  color: #1f2937;
  display: none;
  left: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  width: 276px;
  z-index: 1085;
}

.solid-cta-color-popover.is-open {
  display: block;
}

.solid-cta-color-sv {
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--cta-picker-hue, #f00));
  border-radius: 5px;
  cursor: crosshair;
  height: 132px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.solid-cta-color-sv-thumb {
  border: 1px solid rgba(0, 0, 0, .85);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #fff;
  height: 10px;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 10px;
}

.solid-cta-color-slider-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.solid-cta-color-slider-label {
  color: #64748b;
  flex: 0 0 12px;
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

.solid-cta-color-hue,
.solid-cta-color-alpha {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 12px;
  margin: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.solid-cta-color-hue {
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.solid-cta-alpha-track {
  border-radius: 999px;
  flex: 1 1 auto;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.solid-cta-alpha-track::after {
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--cta-alpha-color, #000));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.solid-cta-color-alpha {
  background: transparent;
  position: relative;
  z-index: 1;
}

.solid-cta-color-hue::-webkit-slider-thumb,
.solid-cta-color-alpha::-webkit-slider-thumb {
  appearance: none;
  background: #fff;
  border: 1px solid #111827;
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

.solid-cta-color-hue::-moz-range-thumb,
.solid-cta-color-alpha::-moz-range-thumb {
  background: #fff;
  border: 1px solid #111827;
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

.solid-cta-color-values {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 9px;
}

.solid-cta-color-values label {
  margin: 0;
}

.solid-cta-color-values span {
  color: #64748b;
  display: block;
  font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 3px;
  text-align: center;
}

.solid-cta-color-values input,
.solid-cta-color-hex-row input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #111827;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  height: 28px;
  padding: 4px 5px;
  text-align: center;
  width: 100%;
}

.solid-cta-color-hex-row {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: 14px 1fr 28px;
  margin-top: 8px;
}

.solid-cta-color-hex-row > span {
  color: #64748b;
  text-align: center;
}

.solid-cta-color-close {
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.solid-cta-color-swatches {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 9px;
}

.solid-cta-color-swatch {
  background: var(--swatch);
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 2px;
  cursor: pointer;
  height: 18px;
  padding: 0;
}

.solid-cta-color-popover input:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, .12);
  outline: 0;
}

.solid-cta-color-clear:hover,
.solid-cta-color-close:hover {
  background: #eef2f7;
  color: #111827;
}

.solid-cta-effective-size {
  border-top: 1px dashed #d9dee5;
  padding-top: .5rem;
}

@media (max-width: 575.98px) {
  .solid-cta-color-popover {
    max-width: calc(100vw - 56px);
    width: 276px;
  }
}


/* Shared editor color picker: CTA, toolbar text/background, table cell/background/border. */
.solid-editor-color-picker--embedded {
  margin: 0;
  min-width: 276px;
}

.solid-editor-color-picker--embedded .solid-cta-color-popover--embedded {
  border: 0;
  box-shadow: none;
  display: block;
  left: auto;
  padding: 10px;
  position: relative;
  top: auto;
  width: 100%;
  z-index: auto;
}

.note-editor .solid-color-menu {
  min-width: 300px;
  overflow: visible !important;
}

.note-editor .solid-color-menu-body {
  padding: 0;
}

.solid-cta-color-clear,
.solid-cta-color-close {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d8e0ea;
  border-radius: 5px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
  margin-left: 6px;
  padding: 0;
}

.solid-cta-color-clear:hover,
.solid-cta-color-close:hover {
  background: #eef2f7;
  color: #111827;
}

.solid-editor-color-picker[data-color-empty="1"] .solid-cta-color-checker,
.solid-editor-color-picker[data-color-empty="1"] .solid-cta-color-preview {
  background-color: transparent !important;
}

.solid-table-settings .solid-editor-color-picker .solid-cta-color-popover {
  z-index: 10920;
}

.solid-table-settings .solid-editor-color-picker .solid-cta-color-trigger {
  min-height: 38px;
}

/* Editor focus mode: reclaim the fixed AdminLTE navbar space while the editor toolbar is sticky. */
.layout-navbar-fixed .main-header {
  transition: transform 160ms ease, opacity 160ms ease;
  will-change: transform;
}

body.solid-editor-header-hidden.layout-navbar-fixed .main-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

body.solid-editor-header-hidden.layout-navbar-fixed .note-editor.solid-editor-v5 > .solid-editor-mode-bar {
  top: 0;
}

body.solid-editor-header-hidden.layout-navbar-fixed .note-editor.solid-editor-v5 > .note-toolbar {
  top: 42px;
}

/* Keep the post settings rail aligned with the editor when the navbar is reclaimed. */
@media screen and (min-width: 900px) {
  .layout-navbar-fixed .page-frame .page-right {
    transition: top 160ms ease, height 160ms ease, width .15s ease;
  }

  body.solid-editor-header-hidden.layout-navbar-fixed .page-frame .page-right {
    top: 0 !important;
    height: 100vh !important;
    padding-top: 0 !important;
  }
}
