
.crt-img-nv[data-v-2f71d5d7] {
  /* 定位由 outerStyle 動態注入 */
}
.crt-img-container[data-v-2f71d5d7] {
  user-select: none;
}
.crt-img-el[data-v-2f71d5d7] {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition: opacity 0.15s;
}
.crt-img-el--selected[data-v-2f71d5d7] {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* 移動 icon（自由浮動模式） */
.crt-move-handle[data-v-2f71d5d7] {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563ebcc;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  padding: 0 6px 1px;
  cursor: move;
  user-select: none;
  z-index: 20;
  line-height: 1.6;
}

/* Resize handles */
.crt-rh[data-v-2f71d5d7] {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border: 2px solid #fff;
  border-radius: 2px;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.crt-rh--nw[data-v-2f71d5d7] { top: -5px;    left: -5px;    cursor: nw-resize;
}
.crt-rh--ne[data-v-2f71d5d7] { top: -5px;    right: -5px;   cursor: ne-resize;
}
.crt-rh--sw[data-v-2f71d5d7] { bottom: -5px; left: -5px;    cursor: sw-resize;
}
.crt-rh--se[data-v-2f71d5d7] { bottom: -5px; right: -5px;   cursor: se-resize;
}

/* === Wrapper === */
.crt-editor-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  font-family: system-ui, -apple-system, sans-serif;
}

/* === Toolbar === */
.crt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: linear-gradient(to bottom, #ffffff, #f3f4f6);
  border-bottom: 1px solid #e5e7eb;
}
.crt-label {
  font-size: 12px;
  color: #6b7280;
  padding: 0 2px;
  white-space: nowrap;
}
.crt-toolbar-group--image {
  background: #eff6ff;
  border-radius: 6px;
  padding: 2px 6px;
}
.crt-input-width {
  width: 90px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
  background: #fff;
}
.crt-input-width:focus {
  border-color: #2563eb;
}

/* 透明度滑桿 */
.crt-input-opacity {
  width: 80px;
  height: 4px;
  cursor: pointer;
  accent-color: #2563eb;
}
.crt-opacity-val {
  font-size: 11px;
  color: #6b7280;
  min-width: 28px;
  text-align: right;
}

/* 自由浮動按鈕 */
.crt-btn--free {
  background: #fdf4ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
  font-size: 12px;
  padding: 0 8px;
}
.crt-btn--free:hover:not(:disabled) {
  background: #f3e8ff;
}
.crt-btn--free.crt-btn--active {
  background: #7e22ce;
  color: #fff;
  border-color: #7e22ce;
}
.crt-btn--word {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  padding: 0 8px;
}
.crt-btn--word:hover:not(:disabled) {
  background: #dcfce7;
}
.crt-btn--word:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.crt-toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
}
.crt-divider {
  width: 1px;
  height: 20px;
  background: #d1d5db;
  margin: 0 4px;
}
.crt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.crt-btn:hover:not(:disabled) {
  background: #e5e7eb;
  color: #111827;
}
.crt-btn--active {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}
.crt-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 圖片按鈕 */
.crt-btn--img {
  background: #ede9fe;
  color: #4b5563;
  font-weight: 500;
}
.crt-btn--img:hover:not(:disabled) {
  background: #ddd6fe;
  color: #111827;
}

/* 連結按鈕 active 時藍色 */
.crt-btn--link-active {
  background: #dbeafe;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

/* 水平分隔線按鈕 */
.crt-btn--hr {
  color: #9ca3af;
  font-size: 16px;
}
.crt-btn--hr:hover:not(:disabled) {
  color: #6b7280;
  background: #f3f4f6;
}

/* 粗體 active — 深藍 */
.crt-btn--bold-active {
  background: #dbeafe;
  color: #1e40af;
  box-shadow: inset 0 0 0 1px #bfdbfe;
  font-weight: 700;
}

/* 斜體 active — 靛紫 */
.crt-btn--italic-active {
  background: #ede9fe;
  color: #6d28d9;
  box-shadow: inset 0 0 0 1px #ddd6fe;
}

/* 底線 active — 天藍 */
.crt-btn--underline-active {
  background: #e0f2fe;
  color: #0369a1;
  box-shadow: inset 0 0 0 1px #bae6fd;
}

/* 刪除線 active — 玫瑰 */
.crt-btn--strike-active {
  background: #ffe4e6;
  color: #be123c;
  box-shadow: inset 0 0 0 1px #fecdd3;
}

/* Highlight active — 琥珀 */
.crt-btn--highlight-active {
  background: #fef9c3;
  color: #a16207;
  box-shadow: inset 0 0 0 1px #fde68a;
}

/* 程式碼區塊 active — 石板 */
.crt-btn--code-active {
  background: #f1f5f9;
  color: #475569;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

/* 引用 active — 橙棕 */
.crt-btn--bq-active {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

/* 列表 active — 翠綠 */
.crt-btn--list-active {
  background: #dcfce7;
  color: #15803d;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}

/* 對齊按鈕 — 常態淡藍底 */
.crt-btn--align {
  background: #f0f9ff;
  min-width: 30px;
}
.crt-btn--align:hover:not(:disabled) {
  background: #e0f2fe;
}

/* 對齊 active — 深藍 */
.crt-btn--align-active {
  background: #bae6fd;
  color: #0284c7;
  box-shadow: inset 0 0 0 1px #7dd3fc;
}

/* 表格按鈕 */
.crt-btn--table {
  color: #0f766e;
}
.crt-btn--table:hover:not(:disabled) {
  background: #ccfbf1;
  color: #0f766e;
}
.crt-select {
  height: 28px;
  padding: 0 4px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.crt-select--font {
  max-width: 160px;
}
.crt-color-label:hover {
  background: #e5e7eb;
}
.crt-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  cursor: pointer;
}

/* === Editor Content === */
.crt-editor-content {
  flex: 1;
  padding: 16px;
  min-height: 200px;
  outline: none;
  overflow-y: auto;
  position: relative;
}
.crt-editor-content .tiptap {
  outline: none;
  min-height: 180px;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
  position: relative;
}

/* 文繞圖 clearfix */
.crt-editor-content .tiptap::after {
  content: '';
  display: table;
  clear: both;
}

/* 選取圖片 highlight（NodeView 接管後已由 selected prop 控制，保留備用） */
.crt-editor-content .tiptap img.ProseMirror-selectednode {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Placeholder */
.crt-editor-content .tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  float: left;
  height: 0;
  pointer-events: none;
}

/* Heading */
.crt-editor-content .tiptap h1 { font-size: 2em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h2 { font-size: 1.6em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h3 { font-size: 1.3em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h4 { font-size: 1.15em; font-weight: 600; margin: 0.5em 0;
}
.crt-editor-content .tiptap h5 { font-size: 1em; font-weight: 600; margin: 0.5em 0;
}
.crt-editor-content .tiptap h6 { font-size: 0.9em; font-weight: 600; margin: 0.5em 0;
}

/* List */
.crt-editor-content .tiptap ul { list-style: disc; padding-left: 1.5em; margin: 0.5em 0;
}
.crt-editor-content .tiptap ol { list-style: decimal; padding-left: 1.5em; margin: 0.5em 0;
}

/* Blockquote */
.crt-editor-content .tiptap blockquote {
  border-left: 4px solid #d1d5db;
  padding: 0.6em 1em;
  margin: 0.75em 0;
  color: #6b7280;
  border-radius: 0 4px 4px 0;
  transition: border-left-color 0.2s, background-color 0.2s;
}

/* 引用顏色選擇器 */
.crt-bq-color-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 3px 6px;
}
.crt-bq-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #374151;
  position: relative;
  white-space: nowrap;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.crt-bq-color-btn:hover {
  background: #f3f4f6;
}
.crt-bq-color-preview {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.crt-bq-color-text {
  font-size: 12px;
}
.crt-bq-reset-btn {
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
}
.crt-bq-reset-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Code */
.crt-editor-content .tiptap code {
  background: #f3f4f6;
  border-radius: 3px;
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}
.crt-editor-content .tiptap pre {
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 6px;
  padding: 1em;
  overflow-x: auto;
  margin: 0.75em 0;
}
.crt-editor-content .tiptap pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* === Editor Content === */
.crt-editor-content {
  flex: 1;
  padding: 16px;
  min-height: 200px;
  outline: none;
  overflow-y: auto;
  position: relative;
}
.crt-editor-content .tiptap {
  outline: none;
  min-height: 180px;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
  position: relative;
}

/* 文繞圖 clearfix */
.crt-editor-content .tiptap::after {
  content: '';
  display: table;
  clear: both;
}

/* 選取圖片 highlight（NodeView 接管後已由 selected prop 控制，保留備用） */
.crt-editor-content .tiptap img.ProseMirror-selectednode {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Placeholder */
.crt-editor-content .tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  float: left;
  height: 0;
  pointer-events: none;
}

/* Heading */
.crt-editor-content .tiptap h1 { font-size: 2em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h2 { font-size: 1.6em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h3 { font-size: 1.3em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h4 { font-size: 1.15em; font-weight: 600; margin: 0.5em 0;
}
.crt-editor-content .tiptap h5 { font-size: 1em; font-weight: 600; margin: 0.5em 0;
}
.crt-editor-content .tiptap h6 { font-size: 0.9em; font-weight: 600; margin: 0.5em 0;
}

/* List */
.crt-editor-content .tiptap ul { list-style: disc; padding-left: 1.5em; margin: 0.5em 0;
}
.crt-editor-content .tiptap ol { list-style: decimal; padding-left: 1.5em; margin: 0.5em 0;
}

/* Blockquote */
.crt-editor-content .tiptap blockquote {
  border-left: 4px solid #d1d5db;
  padding: 0.6em 1em;
  margin: 0.75em 0;
  color: #6b7280;
  border-radius: 0 4px 4px 0;
  transition: border-left-color 0.2s, background-color 0.2s;
}

/* 引用顏色選擇器 */
.crt-bq-color-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 3px 6px;
}
.crt-bq-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #374151;
  position: relative;
  white-space: nowrap;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.crt-bq-color-btn:hover {
  background: #f3f4f6;
}
.crt-bq-color-preview {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.crt-bq-color-text {
  font-size: 12px;
}

/* === Editor Content === */
.crt-editor-content {
  flex: 1;
  padding: 16px;
  min-height: 200px;
  outline: none;
  overflow-y: auto;
  position: relative;
}
.crt-editor-content .tiptap {
  outline: none;
  min-height: 180px;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
  position: relative;
}

/* 文繞圖 clearfix */
.crt-editor-content .tiptap::after {
  content: '';
  display: table;
  clear: both;
}

/* 選取圖片 highlight（NodeView 接管後已由 selected prop 控制，保留備用） */
.crt-editor-content .tiptap img.ProseMirror-selectednode {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Placeholder */
.crt-editor-content .tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  float: left;
  height: 0;
  pointer-events: none;
}

/* Heading */
.crt-editor-content .tiptap h1 { font-size: 2em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h2 { font-size: 1.6em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h3 { font-size: 1.3em; font-weight: 700; margin: 0.5em 0;
}
.crt-editor-content .tiptap h4 { font-size: 1.15em; font-weight: 600; margin: 0.5em 0;
}
.crt-editor-content .tiptap h5 { font-size: 1em; font-weight: 600; margin: 0.5em 0;
}
.crt-editor-content .tiptap h6 { font-size: 0.9em; font-weight: 600; margin: 0.5em 0;
}

/* List */
.crt-editor-content .tiptap ul { list-style: disc; padding-left: 1.5em; margin: 0.5em 0;
}
.crt-editor-content .tiptap ol { list-style: decimal; padding-left: 1.5em; margin: 0.5em 0;
}

/* Blockquote */
.crt-editor-content .tiptap blockquote {
  border-left: 4px solid #d1d5db;
  padding: 0.6em 1em;
  margin: 0.75em 0;
  color: #6b7280;
  border-radius: 0 4px 4px 0;
  transition: border-left-color 0.2s, background-color 0.2s;
}

/* Code */
.crt-editor-content .tiptap code {
  background: #f3f4f6;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.875em;
  color: #e5007a;
  background: #f3f4f6;
}
.crt-editor-content .tiptap pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 6px;
  padding: 1em 1.2em;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.6;
  margin: 0.75em 0;
}
.crt-editor-content .tiptap pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Link */
.crt-editor-content .tiptap a {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

/* Table */
.crt-editor-content .tiptap table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75em 0;
}
.crt-editor-content .tiptap table th,
.crt-editor-content .tiptap table td {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  min-width: 60px;
  position: relative;
}
.crt-editor-content .tiptap table th {
  background: #f3f4f6;
  font-weight: 600;
}
.crt-editor-content .tiptap .selectedCell::after {
  background: #dbeafe;
  opacity: 0.5;
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* === Word Count === */
.crt-word-count {
  text-align: right;
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 12px;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
}

/* === Dialog === */
.crt-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.crt-dialog {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.crt-dialog-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
  color: #111827;
}
.crt-dialog-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.crt-dialog-input:focus {
  border-color: #2563eb;
}
.crt-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.crt-dialog-btn {
  padding: 7px 18px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.crt-dialog-btn--cancel {
  background: #f3f4f6;
  color: #374151;
}
.crt-dialog-btn--cancel:hover {
  background: #e5e7eb;
}
.crt-dialog-btn--confirm {
  background: #2563eb;
  color: #fff;
}
.crt-dialog-btn--confirm:hover {
  background: #1d4ed8;
}

/* === Image Dialog 分頁 === */
.crt-dialog--image {
  width: 440px;
}
.crt-img-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
}
.crt-img-tab {
  padding: 7px 16px;
  font-size: 14px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 4px 4px 0 0;
  transition: color 0.15s, border-color 0.15s;
}
.crt-img-tab:hover {
  color: #374151;
  background: #f9fafb;
}
.crt-img-tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.crt-img-tab-panel {
  padding-top: 4px;
}
.crt-drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #f9fafb;
}
.crt-drop-zone:hover,
.crt-drop-zone--dragging {
  border-color: #2563eb;
  background: #eff6ff;
}
.crt-drop-zone-inner {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.crt-drop-icon {
  font-size: 36px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.crt-drop-hint {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}
.crt-drop-hint--sub {
  font-size: 12px;
  color: #9ca3af;
}
.crt-upload-error {
  color: #dc2626;
  font-size: 13px;
  margin: 8px 0 0;
}

/* === Toolbar 按鈕顏色 === */
.crt-btn--bold-active {
  background: #dbeafe;
  color: #1e40af;
  box-shadow: inset 0 0 0 1px #bfdbfe;
  font-weight: 700;
}
.crt-btn--italic-active {
  background: #ede9fe;
  color: #6d28d9;
  box-shadow: inset 0 0 0 1px #ddd6fe;
}
.crt-btn--underline-active {
  background: #e0f2fe;
  color: #0369a1;
  box-shadow: inset 0 0 0 1px #bae6fd;
}
.crt-btn--strike-active {
  background: #ffe4e6;
  color: #be123c;
  box-shadow: inset 0 0 0 1px #fecdd3;
}
.crt-btn--highlight-active {
  background: #fef9c3;
  color: #a16207;
  box-shadow: inset 0 0 0 1px #fde68a;
}
.crt-btn--code-active {
  background: #f1f5f9;
  color: #475569;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}
.crt-btn--bq-active {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px #fed7aa;
}
.crt-btn--list-active {
  background: #dcfce7;
  color: #15803d;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}
.crt-btn--table {
  color: #0f766e;
}
.crt-btn--table:hover:not(:disabled) {
  background: #ccfbf1;
  color: #0f766e;
}

/* 儲存格背景色預覽 */
.crt-cell-bg-preview {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.2);
  vertical-align: middle;
  margin-right: 2px;
}

/* 表格樣式快速套用 */
.crt-tbl-preset {
  font-size: 11px;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #fff;
  border: none;
}
.crt-tbl-preset--gold  { background: #f5c51e; color: #1a1a1a;
}
.crt-tbl-preset--blue  { background: #3b82f6;
}
.crt-tbl-preset--green { background: #22c55e;
}
.crt-tbl-preset--gray  { background: #6b7280;
}
.crt-btn--sm {
  font-size: 11px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  color: #9ca3af;
}
.crt-btn--img {
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 500;
}
.crt-btn--img:hover:not(:disabled) {
  background: #ddd6fe;
  color: #6d28d9;
}
.crt-btn--link-active {
  background: #dbeafe;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px #93c5fd;
}
.crt-btn--hr {
  color: #9ca3af;
  font-size: 16px;
}
.crt-btn--hr:hover:not(:disabled) {
  color: #6b7280;
  background: #f3f4f6;
}

/* === Highlight Icon（螢光筆劃過 A）=== */
.crt-highlight-icon {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  font-style: normal;
  color: #374151;
  background: linear-gradient(transparent 45%, #fde047 45%, #fde047 90%, transparent 90%);
  padding: 0 2px;
  line-height: 1.4;
}
.crt-btn--highlight-active .crt-highlight-icon {
  background: linear-gradient(transparent 45%, #f59e0b 45%, #f59e0b 90%, transparent 90%);
  color: #111827;
}

/* === Align Icon（CSS 線條模擬）=== */
.crt-align-icon {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  width: 16px;
  pointer-events: none;
}
.crt-align-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  width: 100%;
  opacity: 0.75;
}

/* === 隱藏 file input === */
.crt-file-input {
  display: none;
}
/*$vite$:1*/