﻿.antx-toggle-btn,
.antx-sidebar,
.antx-sidebar-show,
.antx-panel,
.antx-selection-box,
.antx-comment-card,
.antx-lightbox,
.antx-confirm-modal {
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.antx-ui-root,
.antx-ui-root * {
  box-sizing: border-box;
}

/* Theme-proof base reset inside plugin UI only. */
.antx-ui-root {
  position: static;
  z-index: auto !important;
  isolation: isolate;
  pointer-events: none;
  color: #0f172a;
  line-height: 1.4;
}

.antx-ui-root :is(p, span, label, strong, em, small, a, li, ul, ol, option, optgroup) {
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}

.antx-sidebar button,
.antx-panel button,
.antx-panel textarea,
.antx-panel input,
.antx-panel select,
.antx-comment-card button,
.antx-comment-card textarea,
.antx-comment-card input,
.antx-comment-card select {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}

.antx-ui-root button,
.antx-ui-root input,
.antx-ui-root textarea,
.antx-ui-root select {
  font: inherit;
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  margin: 0 !important;
  box-shadow: none !important;
}

.antx-ui-root :is(button, input, textarea, select):focus,
.antx-ui-root :is(button, input, textarea, select):focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.antx-ui-root button,
.antx-ui-root textarea,
.antx-ui-root select {
  -webkit-appearance: none;
  appearance: none;
}

.antx-ui-root select {
  -webkit-appearance: menulist !important;
  appearance: auto !important;
}

.antx-ui-root select option,
.antx-ui-root select optgroup {
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.antx-ui-root button {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Safer button reset for plugin controls (avoids breaking native button behavior). */
.antx-ui-root :is(
  .antx-toggle-btn,
  .antx-sidebar-hide,
  .antx-sidebar-show,
  .antx-sidebar-tab,
  .antx-sidebar-item,
  .antx-anno-btn,
  .antx-save,
  .antx-cancel,
  .antx-comment-close,
  .antx-comment-edit,
  .antx-comment-resolve,
  .antx-comment-delete,
  .antx-comment-edit-save,
  .antx-comment-edit-cancel,
  .antx-lightbox-close,
  .antx-reply-send,
  .antx-comment-shot-overlay,
  .antx-marker
) {
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none !important;
  outline: none;
}

.antx-toggle-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483647;
  border: none !important;
  border-radius: 100px !important;
  min-height: 48px !important;
  padding: 0 22px 0 16px !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5), 0 2px 8px rgba(0,0,0,0.12) !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.01em;
}

.antx-toggle-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  flex-shrink: 0;
}

.antx-toggle-icon-svg {
  display: block;
  color: #fff;
  flex-shrink: 0;
}

.antx-toggle-label {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.antx-ui-root .antx-toggle-btn:hover,
.antx-ui-root .antx-toggle-btn:focus {
  opacity: 0.95;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.6), 0 3px 10px rgba(0,0,0,0.15) !important;
}

.antx-ui-root .antx-toggle-btn:active {
  transform: translateY(-1px) scale(0.99);
  opacity: 1;
}

.antx-toggle-btn--active {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.45), 0 1px 4px rgba(0,0,0,0.2) !important;
}

.antx-ui-root .antx-toggle-btn--active:hover,
.antx-ui-root .antx-toggle-btn--active:focus {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.55), 0 2px 8px rgba(0,0,0,0.2) !important;
}

@keyframes antx-toggle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.antx-toggle-loading {
  animation: antx-toggle-pulse 1s ease-in-out infinite !important;
  pointer-events: none !important;
}

.antx-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: 2147483647;
  width: 320px;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.14) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
  visibility: visible;
}

body.admin-bar .antx-sidebar {
  top: 32px;
  height: calc(100vh - 32px);
}

.antx-sidebar.is-hidden {
  transform: translateX(100%);
  visibility: hidden;
}

.antx-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}

.antx-sidebar-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.antx-hide-hint {
  display: inline-block !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  user-select: none !important;
}

.antx-sidebar-hide {
  border: 0 !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-radius: 10px !important;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.antx-sidebar-hide:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.antx-sidebar-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 14px;
  background: #ffffff !important;
}

.antx-sidebar-tabs {
  display: flex;
  gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #e2e8f0 !important;
}

.antx-sidebar-pages {
  padding: 10px 12px 0;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.antx-sidebar-pages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}

.antx-sidebar-pages-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.antx-sidebar-pages-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

.antx-sidebar-pages-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 22px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer !important;
}

.antx-sidebar-pages-toggle:hover {
  background: #eef2f7 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.antx-sidebar-pages-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.antx-sidebar-pages-list {
  display: none;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow: auto;
  padding: 0 0 10px;
}

.antx-sidebar-pages-list.is-open {
  display: flex;
}

.antx-sidebar-page-item {
  width: 100% !important;
  text-align: left !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 8px 10px !important;
  cursor: pointer !important;
}

.antx-sidebar-page-item.is-current {
  border-color: #c7d2fe !important;
  background: #eef2ff !important;
  box-shadow: inset 0 0 0 1px #c7d2fe !important;
}

.antx-sidebar-page-item-name {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.antx-sidebar-page-item-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
  color: #475569;
  word-break: break-word;
}

.antx-sidebar-tab {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px !important;
  padding: 7px 14px;
  cursor: pointer;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: auto !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.antx-sidebar-tab-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.antx-sidebar-tab.is-active {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
}

.antx-sidebar-empty {
  margin: 0;
  color: #475569;
  font-size: 12px;
  padding: 8px;
}

.antx-sidebar-item {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  border: 1px solid #e8edf5 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  margin: 0 0 8px 0 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  pointer-events: auto !important;
}

.antx-sidebar-item:last-child {
  margin-bottom: 0 !important;
}

.antx-sidebar-item:hover {
  border-color: #c7d2e0 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07) !important;
  transform: translateY(-1px);
}

.antx-sidebar-item.is-active {
  border-left: 3px solid #6366f1 !important;
  padding-left: 10px;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1) !important;
  border-color: #c7d2fe !important;
}

.antx-sidebar-item-num {
  min-width: 22px;
  height: 22px;
  border-radius: 8px !important;
  background: #ffe4e6 !important;
  color: #ef4444 !important;
  border: 1px solid #fecaca !important;
  font-size: 11px;
  line-height: 1 !important;
  text-align: center !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  margin: 0 !important;
}

.antx-sidebar-item-num.is-resolved {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

.antx-sidebar-item-text {
  min-width: 0 !important;
  display: block !important;
  flex: 1 1 auto !important;
}

.antx-sidebar-item-title {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 13px !important;
  line-height: 1.3;
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 !important;
  text-align: left !important;
}

.antx-sidebar-item-title-text {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.antx-priority-dot {
  display: inline-flex !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35) !important;
  margin-top: 4px !important;
  flex: 0 0 10px !important;
}

.antx-priority-dot.is-urgent {
  background: #ef4444 !important;
}

.antx-priority-dot.is-high {
  background: #f59e0b !important;
}

.antx-priority-dot.is-normal {
  background: #3b82f6 !important;
}

.antx-priority-dot.is-low {
  background: #94a3b8 !important;
}

.antx-sidebar-item-sub {
  display: block !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.35;
  color: #475569;
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 4px 0 0 0 !important;
  text-align: left !important;
}

.antx-sidebar-tab-count {
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: inherit !important;
  font-size: 10px !important;
  line-height: 16px !important;
  text-align: center !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.antx-sidebar-tab:not(.is-active) .antx-sidebar-tab-count {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

.antx-sidebar-show {
  position: fixed;
  right: 18px;
  top: 84px;
  z-index: 2147483009;
  border: 0 !important;
  border-radius: 12px !important;
  background: #0f172a !important;
  color: #fff !important;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3) !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.antx-sidebar-show:hover {
  background: #1e293b !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.4) !important;
}

.antx-ui-root:not(.antx-active) .antx-sidebar-show {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.antx-sidebar-show.is-open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.antx-sidebar-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0 !important;
  background: #fff !important;
}

.antx-sidebar-exit {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  border: 1px solid #fecaca !important;
  border-radius: 10px !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  font-size: 13px !important;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.antx-sidebar-exit:hover {
  background: #fee2e2 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15) !important;
}

.antx-enabled {
  cursor: crosshair;
}

.antx-annotation-bar {
  position: absolute;
  z-index: 2147483003;
  right: -54px;
  top: 0;
  display: none;
  gap: 5px;
  flex-direction: column;
  width: 46px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.antx-annotation-bar.is-open {
  display: flex;
}

.antx-annotation-bar.is-left {
  right: auto;
  left: -54px;
}

.antx-annotation-bar.is-inside {
  right: 8px;
  left: auto;
  top: 8px;
}

.antx-anno-btn.is-active {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3) !important;
}

.antx-anno-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #f8fafc !important;
  color: #374151 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.antx-anno-btn:hover,
.antx-anno-btn:focus {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.antx-anno-btn.antx-anno-cancel {
  color: #ef4444 !important;
}

.antx-anno-btn .antx-ic {
  width: 21px;
  height: 21px;
}

.antx-panel {
  position: fixed;
  z-index: 2147483644;
  width: 330px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.07);
  display: none;
}

.antx-panel.is-open {
  display: block;
}

.antx-panel.is-saving {
  pointer-events: none;
  opacity: 0.9;
}

.antx-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: #0f172a;
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}

.antx-priority-label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.antx-priority-select {
  width: 100%;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px;
  box-sizing: border-box !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 38px 0 12px !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35 !important;
  color: #0f172a;
  background: #f8fafc;
  margin-bottom: 12px !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  transition: border-color 0.15s ease;
  vertical-align: middle !important;
}

.antx-priority-select:focus {
  border-color: #a5b4fc !important;
  background: #ffffff;
}

.antx-assign-label {
  display: block;
  margin: 4px 0 4px !important;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.antx-assign-select {
  width: 100%;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px;
  box-sizing: border-box !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 38px 0 12px !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35 !important;
  color: #0f172a;
  background: #f8fafc;
  margin-bottom: 16px !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  transition: border-color 0.15s ease;
  vertical-align: middle !important;
}

.antx-assign-select:focus {
  border-color: #a5b4fc !important;
  background: #ffffff;
}

.antx-editor-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.antx-toolbar-btn {
  min-width: 30px !important;
  height: 30px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  line-height: 1 !important;
  padding: 0 6px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.antx-toolbar-btn:hover,
.antx-toolbar-btn:focus,
.antx-toolbar-btn:focus-visible {
  background: #eef2ff !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}

.antx-input {
  display: block !important;
  width: 100% !important;
  resize: vertical !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin-bottom: 14px !important;
  font-size: 13.5px !important;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #0f172a !important;
  box-shadow: none !important;
  outline: none !important;
  background: #f8fafc !important;
  transition: border-color 0.15s ease;
}

.antx-input:focus {
  border-color: #a5b4fc !important;
  background: #ffffff !important;
}

.antx-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.antx-ui-root textarea::placeholder,
.antx-ui-root input::placeholder {
  color: #8a93a5 !important;
  opacity: 1 !important;
  font-style: normal !important;
}


.antx-ui-root .antx-mention-list {
  position: relative;
  display: none;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
  max-height: 170px;
  overflow: auto;
  overflow-x: hidden;
  margin: -3px 0 8px;
  padding: 2px !important;
  list-style: none !important;
  z-index: 100050 !important;
}

.antx-ui-root .antx-mention-list.is-open {
  display: block;
}

.antx-ui-root .antx-mention-item {
  all: unset !important;
  box-sizing: border-box !important;
  width: 100%;
  display: block !important;
  border: 0 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  text-align: left;
  font-family: "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  line-height: 1.35 !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  -webkit-text-fill-color: currentColor;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.antx-ui-root .antx-mention-item::before,
.antx-ui-root .antx-mention-item::after {
  content: none !important;
  display: none !important;
}

.antx-ui-root .antx-mention-item:hover,
.antx-ui-root .antx-mention-item.is-active,
.antx-ui-root .antx-mention-item:focus,
.antx-ui-root .antx-mention-item:focus-visible {
  background-color: #dbeafe !important;
  color: #1e3a8a !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.antx-checkbox {
  display: block;
  font-size: 12px;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
}

.antx-checkbox input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  width: 14px;
  height: 14px;
  margin: 0 6px 0 0 !important;
  vertical-align: -1px;
  accent-color: #2563eb;
  box-shadow: none !important;
}

.antx-attach-label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.antx-file-input {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
}

.antx-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  max-height: 120px;
  overflow: auto;
}

.antx-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.antx-file-meta {
  min-width: 0;
}

.antx-file-name {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.antx-file-size {
  display: block;
  margin: 1px 0 0;
  font-size: 11px;
  color: #64748b;
}

.antx-file-remove {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  color: #475569;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.antx-file-remove:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.antx-area-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.antx-area-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: #475569;
}

.antx-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px !important;
}

.antx-btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.antx-icon-btn {
  align-items: center;
  justify-content: center;
}

.antx-ui-root .antx-icon-btn::before,
.antx-ui-root .antx-icon-btn::after {
  content: none !important;
  display: none !important;
}

.antx-sidebar-hide.antx-icon-btn,
.antx-comment-close.antx-icon-btn,
.antx-comment-edit.antx-icon-btn,
.antx-comment-resolve.antx-icon-btn,
.antx-comment-delete.antx-icon-btn,
.antx-comment-edit-save.antx-icon-btn,
.antx-comment-edit-cancel.antx-icon-btn,
.antx-lightbox-close.antx-icon-btn,
.antx-reply-send.antx-icon-btn,
.antx-comment-shot-overlay.antx-icon-btn,
.antx-anno-btn.antx-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.antx-ic {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  display: block !important;
  flex-shrink: 0;
  pointer-events: none;
  visibility: visible !important;
  opacity: 1 !important;
}

.antx-save .antx-ic,
.antx-cancel .antx-ic {
  width: 18px;
  height: 18px;
}

.antx-save {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #fff !important;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4) !important;
  outline: none !important;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.antx-cancel {
  background: #f1f5f9 !important;
  color: #475569 !important;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.antx-ui-root .antx-save:hover,
.antx-ui-root .antx-save:focus {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-1px);
}

.antx-ui-root .antx-cancel:hover,
.antx-ui-root .antx-cancel:focus {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.antx-ui-root .antx-save:disabled,
.antx-ui-root .antx-cancel:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.antx-marker {
  position: absolute;
  z-index: 2147483640;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin-left: -16px !important;
  margin-top: -16px !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: 2.5px solid #fff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45), 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  vertical-align: top !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.15s ease;
}

.antx-marker:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.55), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.antx-marker.is-resolved {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45), 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.antx-marker.is-resolved:hover {
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.55), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.antx-comment-card {
  position: absolute;
  z-index: 2147483646;
  width: min(370px, calc(100vw - 24px));
  max-width: 370px;
  padding: 12px 14px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.antx-comment-card.is-busy button,
.antx-comment-card.is-busy textarea,
.antx-comment-card.is-busy input,
.antx-comment-card.is-busy select {
  pointer-events: none !important;
  opacity: 0.5 !important;
}

.antx-comment-card.is-busy .antx-comment-attachment-upload.is-active {
  pointer-events: auto !important;
  opacity: 1 !important;
}

.antx-comment-card.is-busy a {
  pointer-events: none !important;
}

.antx-comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.antx-comment-author {
  min-width: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.antx-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.antx-comment-author-meta {
  min-width: 0;
  flex: 1;
}

.antx-comment-author-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.antx-comment-author-date {
  margin: 2px 0 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.3;
}

.antx-popup-priority-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

.antx-popup-priority-label {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  line-height: 1 !important;
}

.antx-priority-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  border: 1px solid;
  flex-shrink: 0;
}

.antx-priority-badge.is-urgent {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}

.antx-priority-badge.is-high {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

.antx-priority-badge.is-normal {
  background: #dbeafe !important;
  color: #1e3a8a !important;
  border-color: #bfdbfe !important;
}

.antx-priority-badge.is-low {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

.antx-priority-badge-icon {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.antx-priority-badge.is-urgent .antx-priority-badge-icon {
  background: #ef4444 !important;
}

.antx-priority-badge.is-high .antx-priority-badge-icon {
  background: #f59e0b !important;
}

.antx-priority-badge.is-normal .antx-priority-badge-icon {
  background: #3b82f6 !important;
}

.antx-priority-badge.is-low .antx-priority-badge-icon {
  background: #94a3b8 !important;
}

.antx-comment-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 1px;
}

.antx-comment-close {
  border: 0 !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.antx-comment-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.antx-comment-resolve {
  border: 0 !important;
  background: #16a34a !important;
  color: #fff !important;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.antx-comment-resolve:hover {
  background: #15803d !important;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.45);
}

.antx-comment-edit {
  border: 0 !important;
  background: #6366f1 !important;
  color: #fff !important;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.antx-comment-edit:hover {
  background: #4f46e5 !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.45);
}

.antx-comment-resolve.is-unresolve {
  background: #ef4444 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.antx-comment-resolve.is-unresolve:hover {
  background: #dc2626 !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45);
}

.antx-comment-delete {
  border: 0 !important;
  background: #ef4444 !important;
  color: #fff !important;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.antx-comment-delete:hover {
  background: #dc2626 !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45);
}

.antx-comment-resolve[disabled] {
  opacity: 0.6;
  cursor: default !important;
  box-shadow: none !important;
}

.antx-comment-meta {
  margin: 0;
  font-size: 12px;
  color: #475569;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.antx-comment-body {
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
  color: #0f172a;
  max-height: 200px;
  overflow: auto;
  line-height: 1.5;
}

.antx-comment-body p {
  margin: 0 0 6px;
}

.antx-comment-body p:last-child {
  margin-bottom: 0;
}

.antx-comment-body ul,
.antx-comment-body ol {
  margin: 0 0 6px 18px;
  padding: 0;
}

.antx-comment-body li {
  margin: 0 0 4px;
}

.antx-comment-body code {
  background: #ffe4e6;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 12px;
}

.antx-comment-body a {
  color: #2563eb;
  text-decoration: underline;
}

.antx-comment-assign-row {
  margin: 0 0 8px;
}

.antx-comment-assign-label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.antx-comment-assign-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 34px 0 10px !important;
  font-size: 12px;
  line-height: 1.35 !important;
  color: #0f172a;
  background: #f8fafc;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
  background-position: right 10px center !important;
  background-repeat: no-repeat !important;
  vertical-align: middle !important;
}

.antx-comment-edit-wrap {
  margin: 0 0 10px;
}

.antx-comment-edit-input {
  width: 100%;
  min-height: 96px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  background: #f8fafc;
  color: #0f172a;
}

.antx-comment-edit-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.antx-comment-edit-save {
  background: #2563eb;
  color: #fff;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
}

.antx-comment-edit-cancel {
  background: #e2e8f0;
  color: #0f172a;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
}

.antx-mention {
  display: inline-block;
  background: #e0e7ff;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 0 6px;
  font-weight: 600;
  line-height: 1.35;
}

.antx-comment-actions {
  margin-top: 10px;
}

.antx-comment-close-inline {
  border: 0 !important;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  background: #0f172a !important;
  color: #fff !important;
  cursor: pointer !important;
  display: inline-block !important;
}

.antx-comment-screenshot-wrap {
  position: relative;
  display: block;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  background: #f8fafc;
}

.antx-comment-screenshot {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  cursor: zoom-in;
}

.antx-section-title {
  margin: 0 0 6px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.antx-comment-shot-overlay {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 0 !important;
  width: 34px !important;
  height: 34px !important;
  color: #fff !important;
  background: rgba(17, 24, 39, 0.74) !important;
  backdrop-filter: blur(2px);
  cursor: zoom-in !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.antx-comment-shot-overlay:hover {
  background: rgba(17, 24, 39, 0.88);
}

.antx-comment-attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
}

.antx-comment-attachment-add-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.antx-comment-attachment-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.antx-comment-attachment {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  overflow: hidden;
}

.antx-comment-attachment:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.antx-comment-attachment-name {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.antx-comment-attachment-meta {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.antx-comment-attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #475569;
  flex-shrink: 0;
}

.antx-comment-attachment-thumb {
  width: 46px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dbe3ef;
  flex-shrink: 0;
}

.antx-comment-attachment-add,
.antx-comment-attachment-delete {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 30px;
}

.antx-comment-attachment-add {
  background: #e0e7ff;
  color: #3730a3;
}

.antx-comment-attachment-delete {
  background: #fee2e2;
  color: #b91c1c;
}

.antx-comment-attachment-add:hover {
  background: #c7d2fe;
  color: #312e81;
}

.antx-comment-attachment-delete:hover {
  background: #fecaca;
  color: #991b1b;
}

.antx-comment-attachment-add[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.antx-comment-attachment-upload {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0 2px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.antx-comment-attachment-upload.is-active {
  display: inline-flex;
}

.antx-comment-attachment-spinner {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid #d1d5db;
  border-top-color: #6366f1;
  border-radius: 999px;
  animation: antx-spin 0.75s linear infinite;
}

.antx-comment-attachments-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.antx-comment-attachments-toggle:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.antx-replies {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.antx-replies-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.antx-replies-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 7px;
  border: 1px solid #fecaca;
  background: #ffe4e6;
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
}

.antx-replies-list {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.antx-replies-empty {
  margin: 0 0 4px;
  font-size: 12px;
  color: #475569;
}

.antx-reply-item {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 12px;
  margin: 0 0 6px;
}

.antx-reply-meta {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.antx-reply-meta-left {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.antx-reply-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.antx-reply-avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.antx-reply-author {
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
}

.antx-reply-date {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
}

.antx-reply-body {
  margin: 0;
  font-size: 12px;
  color: #0f172a;
  line-height: 1.45;
}

.antx-reply-edit-wrap {
  display: none;
  margin: 6px 0 0;
}

.antx-reply-edit-input {
  display: block;
  width: 100%;
  min-height: 64px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #0f172a;
  background: #fff;
  resize: vertical;
  box-shadow: none;
  outline: none;
}

.antx-reply-edit-error {
  display: none;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: #b91c1c;
  font-weight: 600;
}

.antx-reply-item-actions {
  display: inline-flex;
  gap: 6px;
  margin: 0;
}

.antx-reply-item-edit-actions {
  display: none;
  gap: 6px;
  margin: 0;
}

.antx-reply-item-edit,
.antx-reply-item-delete,
.antx-reply-item-save,
.antx-reply-item-cancel {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.antx-reply-item-edit {
  background: #e0e7ff;
  color: #3730a3;
}

.antx-reply-item-delete {
  background: #fee2e2;
  color: #b91c1c;
}

.antx-reply-item-save {
  background: #dcfce7;
  color: #166534;
}

.antx-reply-item-cancel {
  background: #e2e8f0;
  color: #0f172a;
}

.antx-reply-input {
  width: 100% !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #0f172a !important;
  resize: vertical !important;
  min-height: 60px !important;
  margin-bottom: 6px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  outline: none !important;
}

.antx-reply-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.antx-reply-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.antx-reply-send {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #fff !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 0 !important;
  pointer-events: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4) !important;
  outline: none !important;
  transition: background 0.15s ease, box-shadow 0.15s ease !important;
}

.antx-reply-send:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.5) !important;
}

.antx-capture-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: none;
  background: transparent;
  pointer-events: none;
  cursor: crosshair;
}

.antx-capture-layer.is-active {
  display: block;
  pointer-events: auto;
}

.antx-selection-box {
  position: fixed;
  z-index: 2147483002;
  border: 2px dashed #ef4444;
  background: rgba(99, 102, 241, 0.08);
  display: none;
  pointer-events: auto;
  cursor: move;
  overflow: visible;
  border-radius: 4px;
}

.antx-selection-box.is-visible {
  display: block !important;
}

.antx-selection-box.is-annotation-mode {
  cursor: crosshair;
}

.antx-selection-box.is-describe {
  pointer-events: none;
}

.antx-selection-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #6366f1;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.4);
}

.antx-selection-handle.is-nw {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}

.antx-selection-handle.is-ne {
  right: -6px;
  top: -6px;
  cursor: nesw-resize;
}

.antx-selection-handle.is-sw {
  left: -6px;
  bottom: -6px;
  cursor: nesw-resize;
}

.antx-selection-handle.is-se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}

.antx-annotation-layer {
  position: absolute;
  inset: 0;
}

.antx-anno-shape {
  position: absolute;
  pointer-events: none;
}

.antx-anno-arrow {
  position: absolute;
  height: 0;
  border-top: 3px solid #6366f1;
  transform-origin: 0 0;
  pointer-events: none;
}

.antx-anno-arrow-head {
  position: absolute;
  right: -1px;
  top: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 12px solid #6366f1;
}

.antx-anno-arrow-svg {
  display: block !important;
  visibility: visible !important;
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.antx-anno-arrow-svg line {
  stroke: #ef4444 !important;
  stroke-width: 3px !important;
  stroke-linecap: round !important;
}

.antx-anno-arrow-svg polygon {
  fill: #ef4444 !important;
}

.antx-anno-shape.is-rect {
  border: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 4px;
}

.antx-anno-shape.is-circle {
  border: 3px solid #ef4444;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
}

.antx-saving-text {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  color: #0f172a;
}

.antx-saving-text::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #94a3b8;
  border-top-color: #0f172a;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -2px;
  animation: antx-spin 0.8s linear infinite;
}

.antx-saving-text.is-visible {
  display: block;
}

.antx-saving-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
}

.antx-saving-overlay.is-visible {
  display: flex;
}

.antx-saving-overlay-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.antx-saving-overlay-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: antx-spin 0.7s linear infinite;
}

.antx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483022;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.antx-lightbox.is-open {
  display: flex;
}

.antx-lightbox-image {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.antx-lightbox-close {
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  left: auto !important;
  bottom: auto !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  border-radius: 10px !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  z-index: 2147483023 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.antx-ui-root .antx-comment-shot-overlay::before,
.antx-ui-root .antx-comment-shot-overlay::after,
.antx-ui-root .antx-reply-send::before,
.antx-ui-root .antx-reply-send::after,
.antx-ui-root .antx-lightbox-close::before,
.antx-ui-root .antx-lightbox-close::after {
  content: none !important;
  display: none !important;
}

.antx-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.antx-confirm-modal.is-open {
  display: flex;
}

.antx-confirm-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.antx-confirm-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.antx-confirm-text {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}

.antx-confirm-check {
  display: block;
  margin: 0 0 16px;
  font-size: 12.5px;
  color: #64748b;
}

.antx-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.antx-confirm-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 0;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.antx-confirm-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.antx-confirm-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.antx-confirm-delete:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

@keyframes antx-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .antx-sidebar {
    width: min(85vw, 300px);
    right: 0;
    top: 0;
    height: 100vh;
  }

  body.admin-bar .antx-sidebar {
    top: 46px;
    height: calc(100vh - 46px);
  }

  .antx-sidebar-show {
    right: 10px;
    top: 70px;
  }

  .antx-toggle-btn {
    right: 14px !important;
    bottom: 16px !important;
    min-height: 44px !important;
    padding: 0 16px 0 12px !important;
    font-size: 13px !important;
  }

  .antx-panel {
    width: min(300px, calc(100vw - 20px)) !important;
  }

  .antx-comment-card {
    width: min(340px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
}

html.antx-scroll-locked,
body.antx-scroll-locked {
  overflow: hidden !important;
}
