* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.5;
}

.app {
  min-height: 100vh;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-logo {
  width: 30px;
  height: 30px;
  display: block;
}

.nav-brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #60a5fa;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover {
  background-color: #334155;
  color: #e2e8f0;
}

.nav-links a.active {
  background-color: #3b82f6;
  color: white;
}

.search-bar {
  padding: 16px 24px;
  background-color: #1e293b;
}

.search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  border: 1px solid #334155;
  border-radius: 8px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: #3b82f6;
}

.board-view {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  overflow-x: auto;
  min-height: calc(100vh - 120px);
}

.board-column {
  min-width: 280px;
  max-width: 320px;
  background-color: #1e293b;
  border-radius: 12px;
  padding: 16px;
  flex-shrink: 0;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid;
}

.column-title {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.column-count {
  background-color: #334155;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.column-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-load-more {
  margin-top: 8px;
  padding: 8px 12px;
  width: 100%;
  background-color: transparent;
  border: 1px dashed #334155;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.priority-block {
  display: flex;
  flex-direction: column;
}

.column-load-more:hover {
  border-color: #3b82f6;
  color: #60a5fa;
}

.ticket-card {
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.ticket-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ticket-id {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.ticket-priority {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.ticket-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ticket-assignee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.create-button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.create-button:hover {
  background-color: #2563eb;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
}

.modal h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #334155;
  border-radius: 6px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #3b82f6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.cancel-button {
  background-color: #334155;
  color: #e2e8f0;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.cancel-button:hover {
  background-color: #475569;
}

.submit-button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.submit-button:hover {
  background-color: #2563eb;
}

.error-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #991b1b;
  color: white;
}

.error-banner button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.ticket-detail {
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.ticket-detail-header {
  margin-bottom: 24px;
}

.back-button {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 0;
}

.back-button:hover {
  text-decoration: underline;
}

.ticket-detail-header h1 {
  font-size: 24px;
}

.ticket-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.status-badge,
.priority-badge,
.assignee-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge,
.priority-badge {
  color: white;
}

.priority-select {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.priority-select option {
  background-color: #1e293b;
  color: #e2e8f0;
}

.status-select {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.status-select option {
  background-color: #1e293b;
  color: #e2e8f0;
}

.color-picker-wrapper {
  display: inline-flex;
  align-items: center;
}

.color-picker {
  width: 32px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker::-webkit-color-swatch {
  border: 2px solid #475569;
  border-radius: 6px;
}

.color-picker::-moz-color-swatch {
  border: 2px solid #475569;
  border-radius: 6px;
}

.assignee-badge {
  background-color: #334155;
  color: #e2e8f0;
}

.ticket-body {
  margin-bottom: 24px;
  line-height: 1.6;
}

.ticket-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #334155;
}

.tab-button {
  padding: 10px 16px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-button:hover {
  color: #94a3b8;
}

.tab-button.active {
  color: #e2e8f0;
  border-bottom-color: #3b82f6;
}

.ticket-section {
  margin-bottom: 32px;
}

.ticket-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #334155;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.comment {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.comment-user {
  font-weight: 500;
  color: #60a5fa;
}

.comment-date {
  color: #64748b;
}

.comment-body {
  line-height: 1.5;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 8px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #1e293b;
  border-radius: 6px;
  font-size: 13px;
}

.activity-action {
  color: #94a3b8;
}

.activity-value {
  font-weight: 500;
}

.activity-date {
  color: #64748b;
}

/* Board activity */
.board-activity-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.board-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.board-activity-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
}

.back-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: #f1f5f9;
}

.board-activity-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-activity-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.board-activity-group .activity-item {
  margin-left: 8px;
}

.board-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.board-link:hover {
  color: #60a5fa;
}

.board-activity-ticket {
  padding: 0 4px;
}

.ticket-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.ticket-link:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 48px;
  text-align: center;
  color: #64748b;
  background-color: #1e293b;
  border-radius: 8px;
}

.loading {
  display: flex;
  justify-content: center;
  padding: 48px;
  color: #64748b;
  font-size: 16px;
}

/* Landing page */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.landing-hero {
  text-align: center;
  max-width: 560px;
}

.landing-title {
  font-size: 56px;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.landing-logo {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 24px;
}

.landing-description {
  font-size: 20px;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.5;
}

.login-button {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.login-button:hover {
  background-color: #2563eb;
}

.landing-no-oauth {
  color: #64748b;
  font-size: 14px;
}

.landing-no-oauth p {
  margin-bottom: 8px;
}

.landing-footer {
  margin-top: 48px;
  color: #475569;
  font-size: 13px;
}

/* Nav auth */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User menu */
.user-menu {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 5px 10px 5px 5px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.user-menu-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.user-menu.open .user-menu-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: #3b82f6;
  color: #e2e8f0;
}

.user-menu-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
  object-fit: cover;
}

.user-menu-name {
  font-weight: 500;
}

.user-menu-chevron {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.user-menu.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  animation: dropdown-in 0.15s ease-out;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: all 0.12s ease;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.user-menu-item-icon {
  font-size: 14px;
  opacity: 0.7;
  width: 18px;
  text-align: center;
}

.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
}

/* Priority groups */
.priority-group {
  border-left: 3px solid #334155;
  padding-left: 8px;
  margin-bottom: 8px;
}

.priority-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 0;
}

.priority-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.drop-indicator {
  height: 3px;
  background-color: #3b82f6;
  border-radius: 2px;
  margin: 4px 0;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.drag-wrapper {
  position: relative;
}

.ticket-card {
  position: relative;
  transition: opacity 0.12s ease, box-shadow 0.12s ease;
}

.ticket-card.drop-target-top::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 0;
  right: 0;
  height: 56px;
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  background-color: rgba(59, 130, 246, 0.08);
  pointer-events: none;
  z-index: 10;
}

.ticket-card.drop-target-bottom::after {
  content: '';
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  height: 56px;
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  background-color: rgba(59, 130, 246, 0.08);
  pointer-events: none;
  z-index: 10;
}

.ticket-card.dragging {
  opacity: 0.3;
}

.drop-line-active {
  height: 3px;
  background-color: #3b82f6;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  margin: 2px 0;
}

/* Language switcher */
.language-switcher {
  position: relative;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.language-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.language-switcher.open .language-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: #3b82f6;
  color: #e2e8f0;
}

.language-icon {
  font-size: 14px;
  opacity: 0.6;
}

.language-current {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 6px;
  z-index: 100;
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: dropdown-in 0.15s ease-out;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.12s ease;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.language-option.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.language-code {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  min-width: 22px;
}

.language-option.active .language-code {
  color: #60a5fa;
}

.language-name {
  font-size: 13px;
  white-space: nowrap;
}

.language-dropdown::-webkit-scrollbar {
  width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.language-dropdown::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Infinite scroll loading */
.loading-indicator {
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 13px;
}

.scroll-sentinel {
  height: 1px;
  width: 100%;
}

/* Tiptap Editor */
/* Markdown Editor */
.markdown-editor {
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  align-items: center;
}

.editor-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.editor-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.editor-toolbar-separator {
  width: 1px;
  height: 20px;
  background: #334155;
  margin: 0 4px;
}

.markdown-editor-container {
  min-height: 100px;
  max-height: 300px;
  overflow-y: auto;
}

.markdown-editor-content {
  padding: 12px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  min-height: 80px;
}

.markdown-editor-content:empty::before {
  content: attr(data-placeholder);
  color: #475569;
  pointer-events: none;
}

.markdown-editor-content p {
  margin: 0 0 8px 0;
}

.markdown-editor-content p:last-child {
  margin-bottom: 0;
}

.markdown-editor-content strong {
  font-weight: 700;
}

.markdown-editor-content em {
  font-style: italic;
}

.markdown-editor-content s {
  text-decoration: line-through;
}

.markdown-editor-content code {
  background: #0f172a;
  padding: 2px 6px;
  border: 1px solid #334155;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: #f59e0b;
}

.markdown-editor-content pre {
  background: #0f172a;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 6px;
  overflow-x: auto;
  margin: 8px 0;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

.markdown-editor-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e2e8f0;
}

.markdown-editor-content blockquote {
  border-left: 3px solid #3b82f6;
  padding-left: 12px;
  margin: 8px 0;
  color: #94a3b8;
  font-style: italic;
}

.markdown-editor-content ul,
.markdown-editor-content ol {
  padding-left: 24px;
  margin: 8px 0;
}

.markdown-editor-content li {
  margin: 4px 0;
}

.markdown-editor-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 8px 0;
}

.markdown-editor-content a {
  color: #60a5fa;
  text-decoration: none;
}

.markdown-editor-content a:hover {
  text-decoration: underline;
}

/* Rendered Markdown in Comments */
.comment-body h1,
.comment-body h2,
.comment-body h3 {
  margin: 12px 0 8px 0;
  font-weight: 600;
}

.comment-body h1 { font-size: 1.4em; }
.comment-body h2 { font-size: 1.2em; }
.comment-body h3 { font-size: 1.1em; }

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

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

.comment-body ul,
.comment-body ol {
  padding-left: 24px;
  margin: 8px 0;
}

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

.comment-body blockquote {
  border-left: 3px solid #3b82f6;
  padding-left: 12px;
  margin: 8px 0;
  color: #94a3b8;
  font-style: italic;
}

.comment-body code {
  background: #0f172a;
  padding: 2px 6px;
  border: 1px solid #334155;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: #f59e0b;
}

.comment-body pre {
  background: #0f172a;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 6px;
  overflow-x: auto;
  margin: 8px 0;
}

.comment-body pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e2e8f0;
}

.comment-body img {
  max-width: 100%;
  border-radius: 6px;
  margin: 8px 0;
}

.comment-body a {
  color: #60a5fa;
  text-decoration: none;
}

.comment-body a:hover {
  text-decoration: underline;
}

.comment-body strong {
  font-weight: 600;
  color: #e2e8f0;
}

.comment-body em {
  font-style: italic;
  color: #cbd5e1;
}

/* User link and avatar */
.user-link-wrapper {
  position: relative;
}

.user-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.user-link:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.user-link-name {
  color: #60a5fa;
  font-weight: 500;
}

.user-link:hover .user-link-name {
  text-decoration: underline;
}

.user-avatar {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* User profile popover */
.user-profile-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px;
  min-width: 220px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: popover-in 0.15s ease-out;
}

@keyframes popover-in {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.user-profile-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #334155;
}

.user-profile-popover-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-popover-info {
  min-width: 0;
}

.user-profile-popover-name {
  font-weight: 600;
  font-size: 14px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-popover-email {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.user-profile-popover-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #334155;
  font-size: 12px;
  color: #64748b;
}

/* Activity item user link adjustments */
.activity-action .user-link-wrapper {
  vertical-align: middle;
}

.activity-action .user-link {
  padding: 0;
}

.activity-action .user-avatar {
  width: 18px;
  height: 18px;
}

.activity-action .user-link-name {
  font-weight: 500;
  font-size: 13px;
}

/* Comment user link adjustments */
.comment-user .user-link-wrapper {
  display: inline-flex;
}

.comment-user .user-link {
  padding: 0;
}

.comment-user .user-link-name {
  font-size: 14px;
}

/* Assignee and observer sections */
.ticket-meta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ticket-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.assignee-section,
.observers-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assignee-label,
.observers-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.assignee-select,
.add-observer-select {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.assignee-select:hover,
.add-observer-select:hover {
  border-color: #3b82f6;
}

.observers-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.observer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.observer-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.observer-remove {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s;
}

.observer-remove:hover {
  color: #ef4444;
}

.settings-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}

.settings-page h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #f1f5f9;
}

.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0;
}

.settings-tabs button {
  background: none;
  border: none;
  color: #64748b;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.settings-tabs button:hover {
  color: #94a3b8;
}

.settings-tabs button.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1e293b;
}

.settings-table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid #1e293b;
}

.settings-table tr:hover {
  background-color: rgba(30, 41, 59, 0.5);
}

.settings-table select {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
}

.settings-table select:focus {
  outline: none;
  border-color: #3b82f6;
}

.settings-empty {
  color: #64748b;
  font-size: 14px;
  padding: 20px 0;
}

.settings-members-add {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-group-members {
  color: #cbd5e1;
  font-size: 13px;
}

.settings-group-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.settings-member-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 12px;
}

.settings-muted {
  color: #64748b;
  font-style: italic;
}

.btn-delete {
  background: none;
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-delete svg {
  display: block;
}

.btn-delete:hover {
  background: #ef4444;
  color: white;
}

.btn-restore {
  background: none;
  border: 1px solid #10b981;
  color: #10b981;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-restore:hover {
  background: #10b981;
  color: white;
}

.settings-deleted-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.settings-deleted-marker {
  color: #64748b;
  font-size: 11px;
  background: rgba(100, 116, 139, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.settings-group-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.btn-manage-members {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #3b82f6;
  color: #60a5fa;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-manage-members:hover {
  background: #3b82f6;
  color: white;
}

.group-users-icon {
  display: block;
}

.btn-mini {
  padding: 2px 6px;
}

.settings-groups-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.btn-new-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-new-group:hover {
  background: #2563eb;
}

/* ===== Create Group Modal ===== */
.group-create-modal {
  max-width: 440px;
}

.settings-group-name-input {
  width: 100%;
  box-sizing: border-box;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  margin-top: 12px;
}

.settings-group-name-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.btn-confirm-primary {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-confirm-primary:hover {
  background: #2563eb;
}

.btn-confirm-primary:active {
  transform: scale(0.97);
}

/* ===== Group Members Modal ===== */
.group-members-modal {
  max-width: 440px;
}

.settings-members-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin: 12px 0;
  padding-right: 4px;
}

.settings-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #1e293b;
  border: 1px solid #1e293b;
  border-radius: 6px;
}

.settings-member-name {
  font-size: 14px;
  color: #e2e8f0;
}

.settings-members-add {
  margin-top: 12px;
  margin-bottom: 20px;
}

.settings-user-picker-wrap {
  position: relative;
}

.settings-user-picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s;
}

.settings-user-picker-btn:hover {
  border-color: #475569;
}

.settings-user-picker-btn:focus {
  outline: none;
  border-color: #3b82f6;
}

.chevron-icon {
  flex-shrink: 0;
  transition: transform 0.15s;
}

.settings-user-picker-wrap.open .chevron-icon {
  transform: rotate(180deg);
}

.settings-user-picker {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.55);
  animation: confirm-modal-in 0.15s ease;
}

.settings-user-picker-item {
  padding: 8px 12px;
  font-size: 14px;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.12s;
}

.settings-user-picker-item:hover {
  background: #334155;
}

.settings-user-picker.empty {
  padding: 10px 12px;
  color: #64748b;
  font-size: 14px;
}

/* ===== Confirm Modal ===== */
.modal-overlay.confirm-overlay {
  background-color: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.confirm-modal {
  background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.08);
  animation: confirm-modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

@keyframes confirm-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.confirm-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
}

/* ===== Create Board Modal ===== */
.confirm-modal.board-create-modal {
  max-width: 440px;
  text-align: left;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.board-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.board-name-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #334155;
  border-radius: 10px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 15px;
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.board-name-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.board-name-input::placeholder {
  color: #475569;
}

.board-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.board-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #16203a;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.board-type-card:hover {
  border-color: #475569;
  background: #1a2440;
}

.board-type-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.board-type-emoji {
  font-size: 20px;
  margin-bottom: 4px;
}

.board-type-label {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.board-type-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.btn-create-board {
  background: #3b82f6;
  border: none;
  flex: 1.4;
}

.btn-create-board:hover {
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-create-board:disabled {
  background: #1e3a5f;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.board-share-section {
  margin-bottom: 24px;
}

.board-share-group {
  margin-bottom: 16px;
}

.board-share-caption {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.board-share-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #16203a;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.board-chip:hover {
  border-color: #475569;
  background: #1a2440;
}

.board-chip.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.14);
  color: #e0edff;
}

.board-chip input {
  accent-color: #3b82f6;
  cursor: pointer;
}

.board-share-empty {
  font-size: 13px;
  color: #64748b;
}

.confirm-modal-message {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: break-word;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-modal-actions button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.btn-cancel {
  background: #334155;
  color: #cbd5e1;
  border: 1px solid #475569;
}

.btn-cancel:hover {
  background: #3b4a5f;
  color: #f1f5f9;
}

.btn-confirm-danger {
  background: #ef4444;
  color: white;
}

.btn-confirm-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-confirm-danger:active {
  transform: scale(0.97);
}

/* ===== Board dropdown ===== */
.board-dropdown {
  position: relative;
}
.board-dropdown-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.board-dropdown-button:hover {
  border-color: #3b82f6;
}
.board-dropdown-chevron {
  color: #64748b;
  font-size: 11px;
}
.board-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.board-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}
.board-dropdown-item:hover {
  background-color: #334155;
}
.board-dropdown-item.active {
  background-color: #2563eb55;
  color: #fff;
}
.board-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.board-dropdown-label {
  flex: 1;
}
.board-dropdown-sep {
  height: 1px;
  background-color: #334155;
  margin: 6px 4px;
}

/* ===== Board columns blocked on disallowed transitions ===== */
.board-column-disabled {
  opacity: 0.45;
  border: 1px dashed #475569;
}
.board-column-disabled .column-title {
  text-decoration: line-through;
}

/* ===== Lifecycle editor ===== */
.lifecycle-modal {
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
}
.rename-board-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
}
.rename-board-label {
  flex-shrink: 0;
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.rename-board-row .board-name-input {
  flex: 1;
  margin-bottom: 0;
}
.rename-board-row .board-name-input--dirty {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.rename-save-button {
  flex-shrink: 0;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
}
.manage-statuses,
.manage-transitions {
  margin-bottom: 24px;
}
.manage-statuses h4,
.manage-transitions h4 {
  margin-bottom: 12px;
  font-size: 15px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-code {
  font-family: ui-monospace, monospace;
  color: #94a3b8;
  min-width: 90px;
  font-size: 13px;
}
.status-name-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #334155;
  border-radius: 6px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
}
.status-color-input {
  width: 42px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.status-load-input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid #334155;
  border-radius: 6px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
}
.status-delete-button {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
}
.status-delete-button:hover {
  color: #f87171;
}
.add-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.add-status-row input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #334155;
  border-radius: 6px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
}
.add-status-row input.status-color-input {
  flex: 0 0 42px;
  width: 42px;
}
.primary-button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.primary-button:hover {
  background-color: #2563eb;
}
.primary-button:disabled {
  background-color: #334155;
  cursor: not-allowed;
}
.transition-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.transition-matrix th,
.transition-matrix td {
  border: 1px solid #334155;
  padding: 5px;
  text-align: center;
  color: #94a3b8;
}
.transition-matrix th {
  background-color: #0f172a;
  color: #e2e8f0;
  font-weight: 600;
}
.transition-matrix td:first-child {
  font-family: ui-monospace, monospace;
  color: #e2e8f0;
}
.transition-matrix input[type="checkbox"] {
  cursor: pointer;
}
.transition-matrix input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

/* ===== Lucide Icon ===== */
.lucide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}
.lucide-icon svg {
  display: block;
}
.editor-toolbar-btn .lucide-icon {
  color: inherit;
}

/* ===== Insert URL / Image Modal ===== */
.insert-url-modal {
  max-width: 460px;
  text-align: left;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.12);
}
.insert-url-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}
.insert-url-input {
  margin-top: 4px;
}
.insert-url-commit {
  min-width: 92px;
}
.insert-url-commit:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
}
