/* ═══════════════════════════════════════════════════════════
   Kanban Card Modal — Trello-style detail view
   ═══════════════════════════════════════════════════════════ */

/* ── Backdrop ── */
.kcm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  z-index: 8000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

/* ── Container ── */
.kcm-container {
  background: var(--glorion-surface, #161617);
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 12px;
  width: 100%;
  max-width: 780px;
  min-height: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* ── Cover ── */
.kcm-cover {
  width: 100%;
  height: 160px;
  position: relative;
  background: var(--glorion-surface-2, #1e1e1f);
  overflow: hidden;
}
.kcm-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kcm-cover-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}
.kcm-icon-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  z-index: 2;
}
.kcm-icon-btn:hover { background: rgba(0,0,0,0.75); }
.kcm-close-no-cover {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--glorion-text-secondary, #a0a0a0);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  z-index: 1;
}
.kcm-close-no-cover:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Body (two columns) ── */
.kcm-body {
  display: flex;
  gap: 16px;
  padding: 20px 16px 24px 20px;
}
.kcm-left { flex: 1; min-width: 0; }
.kcm-right { width: 200px; flex-shrink: 0; background: rgba(30,30,30,0.5); }

/* ── Title ── */
.kcm-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.kcm-title-icon { color: var(--glorion-text-muted, #6b6b6b); font-size: 18px; margin-top: 4px; }
.kcm-title-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--glorion-text-bright, #f5f5f5);
  font-size: 18px;
  font-weight: 700;
  resize: none;
  outline: none;
  line-height: 1.3;
  font-family: inherit;
}
.kcm-title-input:focus {
  background: var(--glorion-surface-2, #1e1e1f);
  border-radius: 6px;
  padding: 4px 8px;
}
.kcm-subtitle {
  font-size: 12px;
  color: var(--glorion-text-muted, #6b6b6b);
  margin-left: 28px;
  margin-bottom: 16px;
}

/* ── Action Buttons Row ── */
.kcm-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  margin-left: 28px;
}
.kcm-action-btn {
  background: var(--glorion-surface-2, #1e1e1f);
  border: none;
  color: var(--glorion-text-primary, #e0e0e0);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.kcm-action-btn:hover { background: var(--glorion-border, #2a2a2b); color: #fff; }

/* ── Sections ── */
.kcm-section { margin-bottom: 24px; }
.kcm-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.kcm-section-icon { color: var(--glorion-text-muted, #6b6b6b); font-size: 16px; }
.kcm-section-title {
  color: var(--glorion-text-primary, #e0e0e0);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex: 1;
}
.kcm-section-action {
  background: var(--glorion-border, #2a2a2b);
  border: none;
  color: var(--glorion-text-secondary, #a0a0a0);
  font-size: 12px;
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
}
.kcm-section-action:hover { background: var(--glorion-border-light, #333334); color: #fff; }

/* ── Quill Editor — Dark Theme ── */
.kcm-quill-wrapper {
  background: var(--glorion-surface-2, #1e1e1f);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(69,70,84,0.15);
}
.kcm-quill-wrapper:focus-within {
  border-color: var(--glorion-blue, #5B8DEF);
}

/* Toolbar */
.kcm-quill-wrapper .ql-toolbar {
  background: var(--glorion-surface-2, #1e1e1f);
  border: none;
  border-bottom: 1px solid var(--glorion-border, #2a2a2b);
  padding: 6px 8px;
}
.kcm-quill-wrapper .ql-toolbar button,
.kcm-quill-wrapper .ql-toolbar .ql-picker-label {
  color: var(--glorion-text-secondary, #a0a0a0) !important;
}
.kcm-quill-wrapper .ql-toolbar button {
  width: 26px !important;
  height: 26px !important;
  padding: 3px !important;
}
.kcm-quill-wrapper .ql-toolbar button svg {
  width: 16px !important;
  height: 16px !important;
}
.kcm-quill-wrapper .ql-toolbar .ql-picker {
  height: 26px !important;
}
.kcm-quill-wrapper .ql-toolbar .ql-picker-label {
  padding: 0 6px !important;
  font-size: 12px;
  line-height: 26px;
}
.kcm-quill-wrapper .ql-toolbar button:hover,
.kcm-quill-wrapper .ql-toolbar button.ql-active,
.kcm-quill-wrapper .ql-toolbar .ql-picker-label:hover {
  color: var(--glorion-gold, #C39B5A) !important;
}
.kcm-quill-wrapper .ql-toolbar .ql-stroke {
  stroke: var(--glorion-text-secondary, #a0a0a0) !important;
}
.kcm-quill-wrapper .ql-toolbar button:hover .ql-stroke,
.kcm-quill-wrapper .ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--glorion-gold, #C39B5A) !important;
}
.kcm-quill-wrapper .ql-toolbar .ql-fill {
  fill: var(--glorion-text-secondary, #a0a0a0) !important;
}
.kcm-quill-wrapper .ql-toolbar button:hover .ql-fill,
.kcm-quill-wrapper .ql-toolbar button.ql-active .ql-fill {
  fill: var(--glorion-gold, #C39B5A) !important;
}

/* Toolbar dropdown */
.kcm-quill-wrapper .ql-picker-options {
  background: var(--glorion-surface, #161617) !important;
  border: 1px solid var(--glorion-border, #2a2a2b) !important;
  border-radius: 6px !important;
}
.kcm-quill-wrapper .ql-picker-item {
  color: var(--glorion-text-primary, #e0e0e0) !important;
}
.kcm-quill-wrapper .ql-picker-item:hover {
  color: var(--glorion-gold, #C39B5A) !important;
}

/* Editor area */
.kcm-quill-wrapper .ql-container {
  background: var(--glorion-surface-2, #1e1e1f);
  border: none;
  font-family: inherit;
  font-size: 13px;
  min-height: 80px;
}
.kcm-quill-wrapper .ql-editor {
  color: var(--glorion-text-primary, #e0e0e0) !important;
  min-height: 80px;
  padding: 10px 12px;
  line-height: 1.6;
}
.kcm-quill-wrapper .ql-editor p,
.kcm-quill-wrapper .ql-editor span,
.kcm-quill-wrapper .ql-editor h1,
.kcm-quill-wrapper .ql-editor h2,
.kcm-quill-wrapper .ql-editor h3 {
  color: inherit !important;
}
.kcm-quill-wrapper .ql-editor.ql-blank::before {
  color: var(--glorion-border-light, #333334);
  font-style: normal;
}

/* Lists */
.kcm-quill-wrapper .ql-editor ol,
.kcm-quill-wrapper .ql-editor ul {
  padding-left: 1.5em;
}
.kcm-quill-wrapper .ql-editor li {
  color: var(--glorion-text-primary, #e0e0e0);
}

/* Code block */
.kcm-quill-wrapper .ql-editor pre.ql-syntax {
  background: var(--glorion-black, #0e0e0e);
  color: var(--glorion-teal, #5DCAA5);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

/* Unsaved badge */
.kcm-unsaved-badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--glorion-gold, #C39B5A);
  color: var(--glorion-gold, #C39B5A);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}

.kcm-desc-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ── Checklist ── */
.kcm-checklist-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#kcm-checklist-pct { color: var(--glorion-text-secondary, #a0a0a0); font-size: 12px; min-width: 28px; }
.kcm-progress-bar { flex: 1; height: 6px; background: var(--glorion-border, #2a2a2b); border-radius: 3px; }
.kcm-progress-fill { height: 100%; background: var(--glorion-teal, #5DCAA5); border-radius: 3px; transition: width 0.3s; }
.kcm-checklist-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.kcm-checklist-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--glorion-teal, #5DCAA5); }
.kcm-checklist-item label { color: var(--glorion-text-primary, #e0e0e0); font-size: 13px; flex: 1; cursor: pointer; }
.kcm-checklist-item label.done { text-decoration: line-through; color: var(--glorion-text-muted, #6b6b6b); }
.kcm-checklist-item .kcm-checklist-delete {
  background: none; border: none; color: var(--glorion-text-muted, #6b6b6b); cursor: pointer; font-size: 14px; padding: 0 4px;
  opacity: 0; transition: opacity 0.15s;
}
.kcm-checklist-item:hover .kcm-checklist-delete { opacity: 1; }
.kcm-checklist-item .kcm-checklist-delete:hover { color: var(--glorion-red, #E57373); }
.kcm-add-checklist-row { display: flex; gap: 6px; margin-top: 6px; }
.kcm-add-checklist-input {
  flex: 1; background: var(--glorion-surface-2, #1e1e1f); border: 1px solid var(--glorion-border, #2a2a2b); border-radius: 6px;
  color: var(--glorion-text-primary, #e0e0e0); font-size: 13px; padding: 6px 10px; outline: none; font-family: inherit;
}
.kcm-add-checklist-input:focus { border-color: var(--glorion-blue, #5B8DEF); }

/* ── Attachments ── */
.kcm-attach-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--glorion-surface-2, #1e1e1f);
}
.kcm-attach-row:last-child { border-bottom: none; }
.kcm-attach-preview { width: 60px; height: 44px; flex-shrink: 0; }
.kcm-attach-thumb {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--glorion-border, #2a2a2b);
}
.kcm-attach-badge {
  width: 60px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.kcm-attach-badge.emb { background: #1e3a5f; color: var(--glorion-blue, #5B8DEF); }
.kcm-attach-badge.pdf { background: #3b1f1f; color: var(--glorion-red, #E57373); }
.kcm-attach-badge.file { background: var(--glorion-surface-2, #1e1e1f); color: var(--glorion-text-secondary, #a0a0a0); }
.kcm-attach-info { flex: 1; min-width: 0; }
.kcm-attach-name { color: var(--glorion-text-primary, #e0e0e0); font-size: 13px; font-weight: 500; text-decoration: none; }
.kcm-attach-name:hover { text-decoration: underline; }
.kcm-attach-meta { font-size: 11px; color: var(--glorion-text-muted, #6b6b6b); margin: 2px 0; }
.kcm-cover-badge { color: var(--glorion-text-secondary, #a0a0a0); }
.kcm-attach-actions { display: flex; gap: 4px; }
.kcm-link-btn {
  background: none;
  border: none;
  color: var(--glorion-text-muted, #6b6b6b);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.kcm-link-btn:hover { color: var(--glorion-text-primary, #e0e0e0); }

/* ── Comments ── */
.kcm-comment-input-row { display: flex; gap: 10px; margin-bottom: 16px; }
.kcm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glorion-gold, #C39B5A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.kcm-comment-input {
  flex: 1;
  background: var(--glorion-surface-2, #1e1e1f);
  border: 1px solid var(--glorion-border, #2a2a2b);
  border-radius: 8px;
  color: var(--glorion-text-primary, #e0e0e0);
  font-size: 13px;
  padding: 8px 12px;
  resize: none;
  font-family: inherit;
  outline: none;
}
.kcm-comment-input:focus { border-color: var(--glorion-blue, #5B8DEF); }

/* ── Activity Log ── */
.kcm-activity-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}
.kcm-activity-item .kcm-avatar { width: 28px; height: 28px; font-size: 11px; }
.kcm-activity-text { color: var(--glorion-text-secondary, #a0a0a0); line-height: 1.4; }
.kcm-activity-text strong { color: var(--glorion-text-primary, #e0e0e0); }
.kcm-activity-time { font-size: 11px; color: var(--glorion-text-muted, #6b6b6b); margin-top: 2px; }

/* ── Right Column ── */
.kcm-right-section { margin-bottom: 20px; }
.kcm-right-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--glorion-text-muted, #6b6b6b);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.kcm-detail-field { margin-bottom: 10px; }
.kcm-detail-field label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--glorion-text-hint, #5A5650);
  display: block;
  margin-bottom: 2px;
}
.kcm-detail-value { font-size: 13px; color: var(--glorion-text-primary, #e0e0e0); }
.kcm-detail-value.kcm-link { color: var(--glorion-blue, #5B8DEF); cursor: pointer; }
.kcm-detail-value.kcm-link:hover { text-decoration: underline; }

.kcm-mini-progress { height: 6px; background: var(--glorion-border, #2a2a2b); border-radius: 3px; margin: 4px 0; }
.kcm-mini-fill { height: 100%; background: var(--glorion-gold, #C39B5A); border-radius: 3px; }

.kcm-stage-select {
  width: 100%;
  background: var(--glorion-surface-2, #1e1e1f);
  border: 1px solid var(--glorion-border, #2a2a2b);
  color: var(--glorion-text-primary, #e0e0e0);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}

/* ── Buttons ── */
.kcm-btn-primary {
  background: var(--glorion-blue, #5B8DEF);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}
.kcm-btn-primary:hover { background: #4a7de0; }
.kcm-btn-primary.full-width { width: 100%; }
.kcm-btn-ghost {
  background: var(--glorion-surface-2, #1e1e1f);
  border: 1px solid var(--glorion-border, #2a2a2b);
  color: var(--glorion-text-secondary, #a0a0a0);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}
.kcm-btn-ghost:hover { background: var(--glorion-border, #2a2a2b); color: #fff; }
.kcm-btn-danger {
  background: var(--glorion-surface-2, #1e1e1f);
  border: 1px solid var(--glorion-border, #2a2a2b);
  color: var(--glorion-red, #E57373);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}
.kcm-btn-danger:hover { background: #5c2020; border-color: #5c2020; color: #fff; }

/* ── Icon Action Buttons ── */
.kcm-icon-action-btn {
  background: none;
  border: none;
  color: var(--glorion-text-muted, #6b6b6b);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.kcm-icon-action-btn:hover { color: var(--glorion-text-primary, #e0e0e0); background: rgba(255,255,255,0.08); }
.kcm-icon-action-btn.kcm-delete-icon:hover { color: var(--glorion-red, #E57373); }

/* ── File Preview Lightbox ── */
.kcm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kcm-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kcm-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.kcm-lightbox-content { max-width: 90vw; max-height: 90vh; }
.kcm-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.kcm-lightbox-iframe {
  width: 80vw;
  height: 85vh;
  border: none;
  border-radius: 8px;
  background: #fff;
}

/* ── Drag & Drop Overlay ── */
.kcm-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(91,141,239,0.15);
  border: 3px dashed var(--glorion-blue, #5B8DEF);
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.kcm-drop-content {
  text-align: center;
  color: var(--glorion-blue, #5B8DEF);
  font-size: 15px;
  font-weight: 600;
}
.kcm-drop-content svg { margin-bottom: 8px; }

/* ── Mobile Move Bottom Sheet ── */
.kcm-move-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 8500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.kcm-move-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.kcm-move-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glorion-surface, #161617);
  border-top: 1px solid var(--glorion-border, #2a2a2b);
  border-radius: 16px 16px 0 0;
  z-index: 8501;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 70vh;
  overflow-y: auto;
}
.kcm-move-sheet.open {
  transform: translateY(0);
}

.kcm-move-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--glorion-border-light, #333334);
  border-radius: 2px;
  margin: 10px auto 0;
}

.kcm-move-sheet-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--glorion-text-muted, #6b6b6b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 20px 8px;
}

.kcm-move-sheet-list {
  padding: 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kcm-move-sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}
.kcm-move-sheet-row:active {
  background: var(--glorion-surface-2, #1e1e1f);
}
.kcm-move-sheet-row.current {
  background: rgba(195,155,90,0.1);
}

.kcm-move-sheet-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kcm-move-sheet-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--glorion-text-primary, #e0e0e0);
  flex: 1;
}
.kcm-move-sheet-row.current .kcm-move-sheet-name {
  color: var(--glorion-gold, #C39B5A);
  font-weight: 700;
}

.kcm-move-sheet-icon {
  font-size: 14px;
  color: var(--glorion-text-muted, #6b6b6b);
}
.kcm-move-sheet-row.current .kcm-move-sheet-icon {
  color: var(--glorion-gold, #C39B5A);
}

/* Mobile Move button */
.kcm-move-mobile-btn {
  display: none;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--glorion-gold, #C39B5A);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.kcm-move-mobile-btn:active {
  opacity: 0.85;
}

/* ── Mobile responsive ── */
@media (max-width: 640px) {
  .kcm-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .kcm-container {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .kcm-body {
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
  }
  .kcm-left {
    padding-bottom: 16px;
  }
  .kcm-right {
    width: 100%;
    border-top: 1px solid var(--glorion-border, #2a2a2b);
  }
  .kcm-cover {
    height: 140px;
  }
  .kcm-cover-actions {
    z-index: 3;
  }
  .kcm-icon-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
  }
  .kcm-close-no-cover {
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .kcm-move-mobile-btn {
    display: block;
  }
  .kcm-stage-row {
    display: none;
  }

  /* Quill toolbar — compact on mobile */
  .kcm-quill-wrapper .ql-toolbar {
    padding: 3px 4px;
  }
  .kcm-quill-wrapper .ql-toolbar button {
    width: 24px !important;
    height: 24px !important;
    padding: 2px !important;
  }
  .kcm-quill-wrapper .ql-toolbar button svg {
    width: 14px !important;
    height: 14px !important;
  }
  .kcm-quill-wrapper .ql-toolbar .ql-picker {
    height: 24px !important;
  }
  .kcm-quill-wrapper .ql-toolbar .ql-picker-label {
    padding: 0 4px !important;
    font-size: 11px;
    line-height: 24px;
  }
  .kcm-quill-wrapper .ql-toolbar .ql-picker-label svg {
    width: 14px !important;
    height: 14px !important;
  }
  .ql-toolbar.ql-snow {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .ql-toolbar.ql-snow::-webkit-scrollbar {
    display: none;
  }
  .ql-toolbar .ql-formats {
    flex-shrink: 0;
    margin-right: 6px !important;
  }

  /* Attachment action icons — proper tap targets without being oversized */
  .kcm-icon-action-btn {
    padding: 8px;
    min-width: 36px;
    min-height: 36px;
  }
  .kcm-icon-action-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Action buttons row — compact */
  .kcm-action-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Section action button */
  .kcm-section-action {
    padding: 6px 12px;
    font-size: 12px;
  }
}
