/* Terminal Theme Styling */
:root {
  --terminal-bg: #111827;
  --terminal-text: #eef2ff;
  --terminal-border: #4f5b80;
  --terminal-highlight: #c4b5fd;
  --terminal-accent: #fb7185;
  --terminal-success: #86efac;
  --terminal-warning: #fbbf24;
  --terminal-error: #fb7185;
  --terminal-link: #93c5fd;
  --terminal-header: #4f5b80;
  --terminal-font: 'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --terminal-muted: #94a3b8;
  --terminal-panel: rgba(17, 24, 39, 0.92);
  --terminal-panel-strong: rgba(17, 24, 39, 0.97);
  --terminal-panel-soft: rgba(30, 32, 55, 0.82);
  --terminal-glow: rgba(196, 181, 253, 0.12);

  /* Modern theme additions */
  --card-bg: rgba(23, 25, 45, 0.7);
  --card-border: rgba(99, 102, 241, 0.2);
  --card-shadow: rgba(0, 0, 0, 0.5);
  --card-header-bg: rgba(30, 32, 55, 0.6);
  --card-radius: 12px;

  /* Entrance animation timing */
  --stagger-delay: 60ms;

  /* Priority accent colors */
  --priority-lowest-color: #475569;
  --priority-low-color: #6366f1;
  --priority-medium-color: #f59e0b;
  --priority-high-color: #f97316;
  --priority-critical-color: #fb7185;
  --priority-blocker-color: #ef4444;

  /* Status lane colors */
  --status-in-progress-color: #a78bfa;
  --status-testing-color: #38bdf8;
  --status-qa-color: #86efac;
  --status-todo-color: #fbbf24;
  --status-future-color: #6366f1;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  background: #0a0e1a;
  color: var(--terminal-text);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Breathing gradient orbs — two layers that drift in opposite directions */
@keyframes bg-breathe-1 {
  0%, 100% { opacity: 0.22; transform: translate(0, 0) scale(1); }
  50%      { opacity: 0.35; transform: translate(3%, -2%) scale(1.08); }
}
@keyframes bg-breathe-2 {
  0%, 100% { opacity: 0.18; transform: translate(0, 0) scale(1); }
  50%      { opacity: 0.28; transform: translate(-2%, 3%) scale(1.05); }
}

body > .bg-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  will-change: opacity, transform;
}

body > .bg-orb--primary {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(99, 102, 241, 0.3), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(30, 58, 138, 0.2), transparent);
  animation: bg-breathe-1 12s ease-in-out infinite;
}

body > .bg-orb--secondary {
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(139, 92, 246, 0.25), transparent),
    radial-gradient(ellipse 40% 35% at 30% 80%, rgba(99, 102, 241, 0.12), transparent);
  animation: bg-breathe-2 16s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(196, 181, 253, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* Global focus-visible ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--terminal-highlight);
  outline-offset: 2px;
  border-radius: 4px;
}

.terminal-btn:focus-visible {
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.15);
}

/* Prevent long words/URLs from breaking layouts */
.ticket-description,
.update-content,
.activity-content,
.notification-message,
.admin-project-meta-value {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Logo + ASCII Art Header */
.logo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}

.logo-image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  align-self: center;
  margin-top: 0.4em;
  filter: drop-shadow(0 0 12px rgba(196, 181, 253, 0.2));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.logo-image:hover {
  filter: drop-shadow(0 0 20px rgba(196, 181, 253, 0.4));
  transform: scale(1.06) rotate(-2deg);
}

.ascii-header {
  font-family: var(--terminal-font);
  white-space: pre;
  line-height: 1.15;
  color: var(--terminal-highlight);
  text-align: left;
  margin: 0;
  font-size: 12px;
  overflow: hidden;
  opacity: 0.5;
  text-shadow: 0 0 30px rgba(196, 181, 253, 0.3);
}

/* ===== Sidebar + Main Layout ===== */
:root {
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 60px;
  --topbar-height: 52px;
  --command-bar-height: 40px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: var(--command-bar-height);
  width: var(--sidebar-width);
  background: rgba(13, 16, 28, 0.95);
  border-right: 1px solid rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(20px) saturate(1.3);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  min-height: 56px;
}

.sidebar-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.2));
  transition: filter 0.3s ease;
}

.sidebar-logo:hover {
  filter: drop-shadow(0 0 14px rgba(196, 181, 253, 0.4));
}

.sidebar-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--terminal-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar-collapse-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--terminal-border);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  color: var(--terminal-text);
  background: rgba(99, 102, 241, 0.1);
}

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 2px;
}

.sidebar-section {
  margin-bottom: 4px;
}

.sidebar-section + .sidebar-section {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(99, 102, 241, 0.06);
}

/* Sidebar links */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--terminal-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.sidebar-link:hover {
  color: var(--terminal-text);
  background: rgba(99, 102, 241, 0.1);
  text-decoration: none;
}

.sidebar-link:active {
  transform: scale(0.98);
}

.sidebar-link.is-active {
  color: var(--terminal-text);
  background: rgba(99, 102, 241, 0.15);
  border-left: 2px solid var(--terminal-highlight);
  padding-left: 8px;
}

.sidebar-link.has-unread {
  color: var(--terminal-accent);
}

.sidebar-link-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  flex-shrink: 0;
  position: relative;
}

.sidebar-link.is-active .sidebar-link-icon {
  opacity: 1;
  color: var(--terminal-highlight);
}

.sidebar-link-text {
  transition: opacity 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar sublinks */
.sidebar-sublink {
  padding-left: 20px;
  font-size: 12.5px;
}

/* Expandable sections */
.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--terminal-border);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sidebar-section-header:hover {
  color: var(--terminal-muted);
  background: rgba(99, 102, 241, 0.05);
}

.sidebar-section-chevron {
  margin-left: auto;
  font-size: 9px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sidebar-section.is-expanded .sidebar-section-chevron {
  transform: rotate(90deg);
}

.sidebar-section-items {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0;
}

.sidebar-section.is-expanded .sidebar-section-items {
  display: flex;
}

/* Sidebar divider */
.sidebar-divider {
  height: 1px;
  background: rgba(99, 102, 241, 0.08);
  margin: 4px 10px;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 8px;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--terminal-highlight);
  font-family: var(--terminal-font);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-user-icon {
  font-size: 14px;
  opacity: 0.6;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.sidebar-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout {
  color: var(--terminal-accent);
}

.sidebar-logout:hover {
  background: rgba(251, 113, 133, 0.08);
}

/* Collapsed state */
.sidebar.is-collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.is-collapsed .sidebar-brand,
.sidebar.is-collapsed .sidebar-link-text,
.sidebar.is-collapsed .sidebar-section-chevron,
.sidebar.is-collapsed .sidebar-user-name {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar.is-collapsed .sidebar-collapse-btn i {
  transform: rotate(180deg);
}

/* Center everything in the 60px column */
.sidebar.is-collapsed .sidebar-link {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
  border-left: none;
}

.sidebar.is-collapsed .sidebar-link.is-active {
  border-left: none;
  padding-left: 0;
  background: rgba(99, 102, 241, 0.15);
}

.sidebar.is-collapsed .sidebar-link-icon {
  width: auto;
  font-size: 16px;
}

.sidebar.is-collapsed .sidebar-sublink {
  padding-left: 0;
  justify-content: center;
}

.sidebar.is-collapsed .sidebar-section-header {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
}

.sidebar.is-collapsed .sidebar-section-header .sidebar-link-icon {
  width: auto;
  font-size: 16px;
}

.sidebar.is-collapsed .sidebar-user {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
}

.sidebar.is-collapsed .sidebar-header {
  justify-content: center;
  padding: 14px 0;
  gap: 0;
}

.sidebar.is-collapsed .sidebar-collapse-btn {
  margin-left: 0;
}

.sidebar.is-collapsed .sidebar-nav,
.sidebar.is-collapsed .sidebar-footer {
  padding: 8px 4px;
}

.sidebar.is-collapsed .sidebar-divider {
  margin: 4px 8px;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 350;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* Top bar (mobile only, hidden on desktop) */
.topbar {
  display: none;
}

/* Main content area */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.is-collapsed ~ .sidebar-overlay ~ .main-content,
.sidebar.is-collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* Terminal Container — full-width with comfortable padding */
.terminal-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 48px;
  background: transparent;
  width: 100%;
}

/* Narrow content constraint for text-heavy pages (forms, ticket detail, auth) */
.content-narrow {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern Navigation */
.modern-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 100%;
  z-index: 300;
  backdrop-filter: blur(16px) saturate(1.4);
  gap: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-nav:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 40px -10px rgba(99, 102, 241, 0.15);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(23, 25, 45, 0.5);
  color: var(--terminal-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-toggle-label:hover {
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--terminal-text);
}

.nav-toggle-icon {
  font-size: 16px;
}

.nav-sections {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.nav-links, .nav-auth {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--terminal-muted);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.nav-item:hover {
  color: var(--terminal-text);
  background: rgba(99, 102, 241, 0.1);
  text-decoration: none;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: auto 10px 4px 10px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--terminal-highlight), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-item:hover::after {
  opacity: 1;
}

.nav-icon {
  font-size: 14px;
  opacity: 0.7;
}

.notification-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item .notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #fb7185;
  color: var(--terminal-bg);
  border-radius: 999px;
  width: 10px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(17, 20, 38, 0.1);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(17, 20, 38, 0.1), 0 0 0 0 rgba(251, 113, 133, 0.4); }
  50%      { box-shadow: 0 0 0 2px rgba(17, 20, 38, 0.1), 0 0 0 4px rgba(251, 113, 133, 0); }
}

.nav-item.has-unread {
  background-color: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.4);
}

.notifications-menu {
  position: relative;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 220;
}

.notifications-dropdown.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notifications-dropdown-header,
.notifications-dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--terminal-accent);
  margin-bottom: 8px;
}

.notifications-dropdown-footer {
  margin-top: 10px;
  border-top: 1px solid rgba(251, 113, 133, 0.2);
  padding-top: 8px;
}

.notification-dropdown-link {
  color: #fb7185;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.notification-dropdown-link:hover {
  text-decoration: underline;
}

.notifications-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notification-preview-item {
  display: block;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.12)), rgba(17, 20, 38, 0.92);
  border: 1px solid transparent;
  color: var(--terminal-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.notification-preview-item.is-unread {
  border-color: rgba(251, 113, 133, 0.7);
  background: rgba(40, 15, 25, 0.5);
}

.notification-preview-item:hover {
  border-color: rgba(251, 113, 133, 0.8);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.15), rgba(139, 92, 246, 0.18)), rgba(40, 15, 25, 0.65);
}

.notification-preview-message {
  font-size: 14px;
  margin-bottom: 6px;
}

.notification-preview-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terminal-accent);
}

.notification-preview-type {
  color: var(--terminal-highlight);
}

/* Keep the old terminal nav styles for backward compatibility */
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--terminal-border);
  margin-bottom: 10px;
}

.terminal-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--terminal-highlight);
}

.terminal-user {
  color: var(--terminal-accent);
}

.terminal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  padding: 5px 10px;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 3px;
}

.terminal-nav-item {
  display: inline-block;
  padding: 3px 8px;
  color: var(--terminal-text);
  text-decoration: none;
  border: 1px solid var(--terminal-border);
  border-radius: 3px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.terminal-nav-item:before {
  content: "> ";
  color: var(--terminal-highlight);
}

.terminal-nav-item:hover {
  color: var(--terminal-highlight);
  background-color: rgba(30, 32, 55, 0.3);
  border-color: var(--terminal-highlight);
}

.nav-btn-wrapper {
  display: inline-block;
}

.nav-btn-wrapper form {
  margin: 0;
  padding: 0;
}

.nav-btn-wrapper .terminal-nav-item {
  border: 1px solid var(--terminal-border);
  background: none;
  cursor: pointer;
}

.nav-item-wrapper {
  position: relative;
  display: inline-block;
}

.admin-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 220;
}

.admin-dropdown.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--terminal-muted);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.admin-dropdown-item:hover {
  color: var(--terminal-text);
  background: rgba(99, 102, 241, 0.1);
  text-decoration: none;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 220;
}

.user-dropdown.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--terminal-muted);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
}

.user-dropdown-item:hover {
  color: var(--terminal-text);
  background: rgba(99, 102, 241, 0.1);
  text-decoration: none;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(99, 102, 241, 0.2);
  margin: 4px 8px;
}

.user-dropdown .my-tickets-menu {
  display: block;
}

.user-dropdown .my-tickets-dropdown {
  left: auto;
  right: calc(100% + 6px);
  top: 0;
}

.my-tickets-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 260px;
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.my-tickets-dropdown.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notifications-page {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.16)), var(--terminal-panel);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.notifications-header h1 {
  margin: 0;
  font-size: 22px;
  color: var(--terminal-highlight);
}

.notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--terminal-accent);
}

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

.notification-card {
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.12)), var(--terminal-panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.notification-unread {
  border-color: rgba(251, 113, 133, 0.7);
  background: rgba(40, 15, 25, 0.4);
}

.notification-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--terminal-accent);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.notification-type {
  text-transform: uppercase;
}

.notification-message {
  font-size: 15px;
  color: var(--terminal-text);
  margin-bottom: 12px;
}

.notification-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-empty-state {
  text-align: center;
  padding: 30px;
  border: 1px dashed rgba(30, 32, 55, 0.6);
  border-radius: 10px;
  color: var(--terminal-accent);
}

.my-ticket-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--terminal-text);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.my-ticket-link:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
  text-decoration: none;
}

.my-ticket-priority {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terminal-highlight);
}

.my-ticket-title {
  font-size: 13px;
  font-weight: 500;
}

.my-ticket-descriptors {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--terminal-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.descriptor {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(23, 25, 45, 0.5);
  font-family: var(--terminal-font);
  font-size: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ticket-feed-item:hover .descriptor {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(23, 25, 45, 0.7);
}

.descriptor-id {
  color: var(--terminal-highlight);
  font-weight: 600;
}

.descriptor-points {
  border-style: dashed;
  border-color: rgba(99, 102, 241, 0.15);
}

.my-ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.label-pill.small {
  padding: 2px 8px;
  font-size: 11px;
}

.my-tickets-placeholder {
  font-size: 12px;
  color: var(--terminal-border);
}

/* Terminal Content */
.terminal-content {
  padding: 10px 0;
  min-width: 0;
  max-width: 1600px;
  margin: 0 auto;
}

/* Modern Table */
.modern-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 24px var(--card-shadow);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.14)), var(--card-bg);
}

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

.modern-table th {
  text-align: left;
  padding: 8px 10px;
  background-color: rgba(30, 32, 55, 0.3);
  color: var(--terminal-highlight);
  font-weight: normal;
  border-bottom: 1px solid var(--terminal-border);
}

.modern-table th:first-child {
  border-top-left-radius: var(--card-radius);
}

.modern-table th:last-child {
  border-top-right-radius: var(--card-radius);
}

.modern-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(30, 32, 55, 0.4);
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table tr:hover td {
  background-color: rgba(30, 32, 55, 0.3);
}

/* Keep old table styles for backward compatibility */
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.terminal-table th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--terminal-border);
  color: var(--terminal-highlight);
}

.terminal-table td {
  padding: 8px;
  border-bottom: 1px dashed var(--terminal-border);
}

/* Terminal Forms */
.terminal-form {
  margin: 20px 0;
}

.profile-picture-editor {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 15px;
  align-items: start;
  margin-bottom: 25px;
}

.profile-picture-preview {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px dashed var(--terminal-border);
  background-color: rgba(17, 20, 38, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.profile-picture-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.profile-picture-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.profile-settings-section {
  padding: 20px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--card-radius);
  background: linear-gradient(150deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.12)), rgba(17, 20, 38, 0.75);
}

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

.profile-settings-header h3 {
  margin: 0;
  color: var(--terminal-highlight);
}

.profile-settings-header p {
  margin: 4px 0 0;
  color: var(--terminal-text);
  font-size: 13px;
}

.profile-section-command {
  font-family: var(--terminal-font);
  font-size: 13px;
  color: var(--terminal-accent);
  padding: 4px 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  background-color: rgba(30, 32, 55, 0.25);
}

/* Terminal Input */
.terminal-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  color: var(--terminal-text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.terminal-input:focus {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Terminal Output */
.terminal-output {
  margin: 10px 0;
  max-height: 300px;
  overflow-y: auto;
}

.terminal-response {
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  margin-left: 20px;
  padding: 5px 0;
}

/* Vim Command Bar */
.vim-command-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  padding: 5px 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.vim-input-container {
  display: flex;
  align-items: center;
}

.vim-prompt {
  color: var(--terminal-highlight);
  margin-right: 10px;
  font-family: var(--terminal-font);
  font-weight: bold;
}

.vim-input {
  background-color: var(--terminal-bg);
  border: none;
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  font-size: 16px;
  padding: 5px;
  flex-grow: 1;
  outline: none;
}

.vim-output {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 5px;
  font-family: var(--terminal-font);
  color: var(--terminal-text);
  font-size: 14px;
}

/* Add padding to body to prevent content from being hidden behind the vim command bar */
body {
  padding-bottom: 40px;
}

.terminal-form-group {
  margin-bottom: 15px;
}

.terminal-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.terminal-form-row .terminal-form-group {
  flex: 1;
  min-width: 0;
}

.terminal-form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--terminal-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.terminal-form-group input[type="text"],
.terminal-form-group input[type="email"],
.terminal-form-group input[type="password"],
.terminal-form-group textarea,
.terminal-form-group select.terminal-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  color: var(--terminal-text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.terminal-form-group input[type="text"]:focus,
.terminal-form-group input[type="email"]:focus,
.terminal-form-group input[type="password"]:focus,
.terminal-form-group textarea:focus,
.terminal-form-group select.terminal-select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.terminal-form-group select.terminal-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0caf5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 30px;
}

/* Form Sections */
.form-section {
  border: 1px solid var(--terminal-border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.15);
}

.form-section-title {
  color: var(--terminal-highlight);
  font-size: 0.95em;
  font-family: var(--terminal-font);
  margin-bottom: 4px;
  padding: 0;
}

.form-section-title i {
  margin-right: 6px;
  opacity: 0.8;
}

.form-section-description {
  color: var(--terminal-comment);
  font-size: 0.85em;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.form-hint {
  display: block;
  color: var(--terminal-comment);
  font-size: 0.8em;
  margin-top: 4px;
  line-height: 1.3;
}

.card-intro {
  color: var(--terminal-comment);
  font-size: 0.9em;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.form-empty-state {
  color: var(--terminal-warning);
  font-size: 0.85em;
  margin: 4px 0;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Terminal Buttons */
.terminal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(23, 25, 45, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--terminal-muted);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.terminal-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--terminal-text);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.terminal-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition-duration: 0.08s;
}

.terminal-btn-primary {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--terminal-text);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
}

.terminal-btn-primary:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.3));
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.terminal-btn-danger {
  border-color: rgba(251, 113, 133, 0.3);
  color: var(--terminal-error);
}

.terminal-btn-danger:hover {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.5);
}

.terminal-btn-success {
  border-color: rgba(134, 239, 172, 0.3);
  color: var(--terminal-success);
}

.terminal-btn-success:hover {
  background: rgba(134, 239, 172, 0.1);
  border-color: rgba(134, 239, 172, 0.5);
}

/* Modern Alerts */
.modern-alert {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  animation: alert-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1), alert-fade 0.5s ease 6s forwards;
  position: relative;
  overflow: hidden;
}

/* Animated progress bar showing time until auto-dismiss */
.modern-alert::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  animation: alert-progress 6.5s linear forwards;
}

.modern-alert.success::after { background: var(--terminal-success); }
.modern-alert.error::after   { background: var(--terminal-error); }
.modern-alert.warning::after { background: var(--terminal-warning); }

@keyframes alert-enter {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes alert-fade {
  to { opacity: 0; transform: translateY(-8px); pointer-events: none; }
}

@keyframes alert-progress {
  from { width: 100%; }
  to   { width: 0%; }
}

.modern-alert.success {
  background: rgba(134, 239, 172, 0.06);
  border: 1px solid rgba(134, 239, 172, 0.15);
  border-left: 3px solid var(--terminal-success);
}

.modern-alert.error {
  background: rgba(251, 113, 133, 0.06);
  border: 1px solid rgba(251, 113, 133, 0.15);
  border-left: 3px solid var(--terminal-error);
}

.modern-alert.warning {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-left: 3px solid var(--terminal-warning);
}

.alert-icon {
  font-size: 20px;
  margin-right: 15px;
}

.success .alert-icon {
  color: var(--terminal-success);
}

.error .alert-icon {
  color: var(--terminal-error);
}

.warning .alert-icon {
  color: var(--terminal-warning);
}

.alert-message {
  flex: 1;
}

/* Modern Footer */
.modern-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--terminal-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent);
}

.footer-credit {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-link {
  color: var(--terminal-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--terminal-highlight);
  text-decoration: underline;
}

/* Keep old alert styles for backward compatibility */
.terminal-alert {
  padding: 10px;
  margin: 15px 0;
  border: 1px dashed var(--terminal-border);
}

.terminal-alert-success {
  border-color: var(--terminal-success);
  color: var(--terminal-success);
}

.terminal-alert-error {
  border-color: var(--terminal-error);
  color: var(--terminal-error);
}

.terminal-alert-warning {
  border-color: var(--terminal-warning);
  color: var(--terminal-warning);
}

/* Keep old footer styles for backward compatibility */
.terminal-footer {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px dashed var(--terminal-border);
  text-align: center;
  font-size: 14px;
  color: var(--terminal-border);
}

/* Terminal Labels */
.terminal-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.22)), rgba(17, 20, 38, 0.85);
  font-size: 13px;
}

/* Ticket Status */
.ticket-status {
  display: inline-block;
  padding: 3px 10px;
  margin: 2px;
  border-radius: 6px;
  font-family: var(--terminal-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Ticket Meta */
.ticket-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ticket Assignee */
.ticket-assignee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--terminal-highlight);
  color: var(--terminal-bg);
  font-size: 0.9em;
  font-weight: bold;
}

.ticket-assignee-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--terminal-highlight);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.ticket-unassigned {
  background: rgba(71, 85, 105, 0.2);
  border-color: rgba(71, 85, 105, 0.2);
  color: var(--terminal-border);
}

.status-none {
  background-color: rgba(71, 85, 105, 0.3);
  color: var(--terminal-muted);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.status-future {
  background-color: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-todo {
  background-color: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-in-progress {
  background-color: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.25);
  animation: status-pulse 2.5s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: none; }
  50%      { box-shadow: 0 0 8px rgba(167, 139, 250, 0.3); }
}

.status-testing {
  background-color: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.status-qa {
  background-color: rgba(134, 239, 172, 0.1);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.2);
}

.status-completed {
  background-color: rgba(23, 25, 45, 0.5);
  color: var(--terminal-muted);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Inline Status Editing */
.inline-status-wrapper {
  position: relative;
  display: inline-block;
}

.inline-status-badge {
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.inline-status-badge:hover {
  opacity: 0.85;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4);
  border-radius: 4px;
}

.inline-status-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  min-width: 140px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(13, 18, 30, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.inline-status-dropdown.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inline-status-option {
  display: block;
  width: 100%;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  font-family: var(--terminal-font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
  color: var(--terminal-bg);
  font-weight: bold;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.inline-status-option:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.inline-status-option.is-current {
  outline: 2px solid var(--terminal-highlight);
  outline-offset: -2px;
}

/* Ticket Priority */
.ticket-priority {
  display: inline-block;
  padding: 3px 10px;
  margin: 2px;
  border-radius: 6px;
  font-family: var(--terminal-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.priority-lowest {
  background-color: rgba(71, 85, 105, 0.5);
  color: var(--terminal-muted);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.priority-low {
  background-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.priority-medium {
  background-color: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.priority-high {
  background-color: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.priority-highest {
  background-color: rgba(251, 113, 133, 0.12);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.25);
}

.priority-blocker {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Ticket Points */
.ticket-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--terminal-border);
  color: var(--terminal-text);
  font-size: 0.8em;
  font-weight: bold;
}

/* Terminal Links */
a {
  color: var(--terminal-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(147, 197, 253, 0.4);
}

/* Terminal Command Line */
.terminal-command {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.terminal-prompt {
  color: var(--terminal-highlight);
  margin-right: 10px;
}

/* ASCII Box Drawing */
.ascii-box {
  border: 1px solid var(--terminal-border);
  padding: 10px;
  margin: 10px 0;
  position: relative;
}

.ascii-box:before {
  content: "+";
  position: absolute;
  top: -1px;
  left: -1px;
  color: var(--terminal-highlight);
}

.ascii-box:after {
  content: "+";
  position: absolute;
  top: -1px;
  right: -1px;
  color: var(--terminal-highlight);
}

.ascii-box-footer:before {
  content: "+";
  position: absolute;
  bottom: -1px;
  left: -1px;
  color: var(--terminal-highlight);
}

.ascii-box-footer:after {
  content: "+";
  position: absolute;
  bottom: -1px;
  right: -1px;
  color: var(--terminal-highlight);
}

/* Modern Ticket Card Styling */
.modern-ticket-card {
  background: #1e2340;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.modern-ticket-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.1);
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Entrance animation for ticket cards */
.modern-ticket-card {
  animation: card-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ticket-header {
  background: rgba(99, 102, 241, 0.06);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-id {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--terminal-text);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.ticket-content {
  padding: 20px;
}

.ticket-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.ticket-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ticket-title {
  font-family: var(--font-display);
  color: var(--terminal-text);
  font-size: 22px;
  margin: 0 0 8px 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-title {
  font-family: var(--font-display);
  color: var(--terminal-muted);
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ticket-description {
  color: var(--terminal-text);
  line-height: 1.6;
}

.ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.no-labels, .no-updates {
  color: var(--terminal-border);
  font-style: italic;
}

.latest-update {
  margin-top: 4px;
  color: var(--terminal-text);
  font-size: 14px;
}

/* Ticket Actions */
.ticket-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bubble-visualize-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.bubble-visualize-card {
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.16)),
              linear-gradient(160deg, rgba(17, 20, 38, 0.96), rgba(13, 18, 30, 0.9));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.bubble-visualize-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.bubble-visualize-title {
  font-size: 18px;
  color: var(--terminal-highlight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bubble-visualize-subtitle {
  font-size: 13px;
  color: var(--terminal-border);
}

.bubble-visualize-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--terminal-text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bubble-visualize-plot {
  position: relative;
  height: 360px;
  border-radius: 14px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
              radial-gradient(circle at 85% 35%, rgba(139, 92, 246, 0.16), transparent 45%),
              rgba(13, 18, 30, 0.78);
  overflow: hidden;
}

.bubble-visualize-tooltip {
  position: fixed;
  z-index: 30;
  min-width: 200px;
  max-width: 260px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(13, 18, 30, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bubble-visualize-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bubble-tooltip-age {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(234, 241, 255, 0.75);
}

.bubble-tooltip-assignees {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(234, 241, 255, 0.7);
}


.bubble-tooltip-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terminal-border);
  margin-bottom: 6px;
}

.bubble-tooltip-title {
  font-size: 14px;
  color: var(--terminal-text);
  margin-bottom: 8px;
}

.bubble-tooltip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bubble-visualize-plot.is-empty::after {
  content: "No tickets to visualize.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terminal-border);
  font-size: 14px;
}

.bubble-visualize-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bubble-visualize-bands .bubble-visualize-band {
  fill: rgba(30, 32, 55, 0.14);
  stroke: rgba(99, 102, 241, 0.18);
  stroke-width: 1;
}

.bubble-visualize-cluster-circle {
  fill: transparent;
  stroke: rgba(99, 102, 241, 0.35);
  stroke-dasharray: 4 6;
  stroke-width: 1.1;
  transition: stroke 0.18s ease, stroke-width 0.18s ease, filter 0.18s ease;
}

.bubble-visualize-cluster-circle.is-drop-target {
  stroke: rgba(134, 239, 172, 0.95);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(134, 239, 172, 0.5));
}

.bubble-visualize-cluster-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: rgba(210, 220, 255, 0.75);
}

.bubble-visualize-cluster-label-path {
  fill: none;
  stroke: none;
}

.bubble-visualize-bubble {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  animation: bubble-float var(--float-duration, 8s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  animation-direction: alternate;
  animation-fill-mode: both;
  will-change: transform;
  touch-action: none;
}

.bubble-visualize-bubble.is-dragging {
  cursor: grabbing;
  opacity: 0.96;
  z-index: 10;
}

.bubble-visualize-circle {
  stroke: rgba(13, 18, 30, 0.7);
  stroke-width: 1.2;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.bubble-visualize-bubble.is-stale .bubble-visualize-circle {
  opacity: 0.6;
}

.bubble-visualize-bubble.is-stuck .bubble-visualize-circle {
  opacity: 0.45;
}

.bubble-visualize-bubble:hover .bubble-visualize-circle {
  transform: scale(1.05);
}

@keyframes bubble-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(var(--float-x, 0px), var(--float-y, 0px), 0);
  }
}

.bubble-visualize-avatar-bg {
  fill: rgba(15, 20, 32, 0.6);
  pointer-events: none;
}

.bubble-visualize-avatar {
  fill: transparent;
  stroke: rgba(13, 18, 30, 0.85);
  stroke-width: 1.6;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.bubble-visualize-label {
  font-size: 11px;
  font-weight: bold;
  fill: #151a2a;
  pointer-events: none;
}

.bubble-visualize-sublabel {
  font-size: 9px;
  fill: rgba(13, 18, 30, 0.75);
  pointer-events: none;
}

.bubble-visualize-axis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terminal-border);
}

.bubble-visualize-axis-label {
  text-align: center;
}

.bubble-visualize-sidebar {
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.14)), rgba(13, 18, 30, 0.75);
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  max-height: 520px;
  overflow: auto;
}

.bubble-sidebar-title {
  font-size: 12px;
  color: var(--terminal-highlight);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.bubble-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble-sidebar-age {
  font-size: 11px;
  color: rgba(234, 241, 255, 0.65);
  letter-spacing: 0.02em;
}

.bubble-sidebar-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(17, 20, 38, 0.85);
  text-decoration: none;
  color: var(--terminal-text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bubble-sidebar-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.bubble-sidebar-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.bubble-sidebar-id {
  color: var(--terminal-highlight);
  font-weight: bold;
}

.bubble-sidebar-title-text {
  font-size: 14px;
}

.bubble-sidebar-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.bubble-visualize-bubble.priority-lowest .bubble-visualize-circle { fill: #475569; }
.bubble-visualize-bubble.priority-low .bubble-visualize-circle { fill: #6366f1; }
.bubble-visualize-bubble.priority-medium .bubble-visualize-circle { fill: #f59e0b; }
.bubble-visualize-bubble.priority-high .bubble-visualize-circle { fill: #f97316; }
.bubble-visualize-bubble.priority-highest .bubble-visualize-circle { fill: #fb7185; }
.bubble-visualize-bubble.priority-blocker .bubble-visualize-circle { fill: #ef4444; }
.bubble-visualize-bubble.priority-lowest .bubble-visualize-label,
.bubble-visualize-bubble.priority-lowest .bubble-visualize-sublabel,
.bubble-visualize-bubble.priority-blocker .bubble-visualize-label,
.bubble-visualize-bubble.priority-blocker .bubble-visualize-sublabel {
  fill: #e6e9ff;
}

@media (max-width: 960px) {
  .bubble-visualize-layout {
    grid-template-columns: 1fr;
  }

  .bubble-visualize-sidebar {
    max-height: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  /* ===== Mobile sidebar: off-screen drawer ===== */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--sidebar-width);
    z-index: 500;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  /* Disable desktop collapse behavior on mobile */
  .sidebar.is-collapsed {
    width: var(--sidebar-width);
  }

  .sidebar.is-collapsed .sidebar-brand,
  .sidebar.is-collapsed .sidebar-link-text,
  .sidebar.is-collapsed .sidebar-section-chevron,
  .sidebar.is-collapsed .sidebar-user-name {
    opacity: 1;
    width: auto;
  }

  .sidebar.is-collapsed .sidebar-link,
  .sidebar.is-collapsed .sidebar-sublink,
  .sidebar.is-collapsed .sidebar-section-header,
  .sidebar.is-collapsed .sidebar-user {
    justify-content: flex-start;
    padding: 8px 10px;
  }

  .sidebar.is-collapsed .sidebar-header {
    justify-content: flex-start;
    padding: 16px 14px;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  /* Show mobile top bar */
  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(13, 16, 28, 0.95);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 300;
  }

  .topbar-menu-btn {
    background: none;
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--terminal-muted);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .topbar-menu-btn:hover {
    color: var(--terminal-text);
    border-color: rgba(99, 102, 241, 0.3);
  }

  .topbar-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--terminal-text);
    flex: 1;
  }

  .topbar-user {
    font-family: var(--terminal-font);
    font-size: 11px;
    color: var(--terminal-accent);
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.15);
  }

  /* Main content full-width on mobile */
  .main-content {
    margin-left: 0;
  }

  .sidebar.is-collapsed ~ .sidebar-overlay ~ .main-content,
  .sidebar.is-collapsed ~ .main-content {
    margin-left: 0;
  }

  .terminal-container {
    margin: 0;
    padding: 12px 12px 12px;
  }

  .terminal-content {
    max-width: 100%;
  }

  .content-narrow {
    max-width: 100%;
  }

  .logo-header {
    gap: 12px;
    margin: 12px 0;
  }

  .logo-image {
    width: 40px;
    height: 40px;
  }

  .ascii-header {
    font-size: 7px;
    opacity: 0.3;
  }

  /* Forms */
  .terminal-form-row {
    flex-direction: column;
  }

  .terminal-input {
    width: 100%;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .terminal-form-group input[type="text"],
  .terminal-form-group input[type="email"],
  .terminal-form-group input[type="password"],
  .terminal-form-group textarea,
  .terminal-form-group select.terminal-select {
    font-size: 16px; /* prevents iOS zoom */
  }

  .profile-settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-picture-editor {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Footer */
  .modern-footer {
    gap: 6px;
    font-size: 11px;
    max-width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Vim bar — hide on mobile; sidebar can reclaim its reserved space */
  .vim-command-bar {
    display: none;
  }

  :root {
    --command-bar-height: 0px;
  }

  body {
    padding-bottom: 0;
  }

  /* Ticket feed — tighter on mobile */
  .ticket-feed {
    gap: 10px;
  }

  .ticket-feed-item {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .ticket-feed-title {
    font-size: 15px;
  }

  .ticket-feed-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ticket-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ticket-actions .terminal-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    min-width: 0;
  }

  .ticket-feed-meta {
    flex-direction: column;
    gap: 6px;
  }

  /* Ticket show — stack elements */
  .modern-ticket-card {
    margin: 14px 0;
    border-radius: 12px;
  }

  .ticket-header {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .terminal-command {
    font-size: 11px;
  }

  .ticket-content {
    padding: 14px;
  }

  .ticket-title {
    font-size: 18px;
  }

  .ticket-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ticket-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .ticket-show-actions {
    flex-wrap: wrap;
  }

  .ticket-show-actions .terminal-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .assignee-list {
    flex-direction: column;
    gap: 6px;
  }

  .update-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Dashboard — single column lanes */
  .dashboard-lanes {
    grid-template-columns: 1fr;
  }

  .dashboard-bottom-panels {
    grid-template-columns: 1fr;
  }

  .dashboard-capacity {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .dashboard-section {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .dashboard-lane {
    padding: 12px;
    border-radius: 12px;
  }

  /* Bubble chart */
  .bubble-visualize-layout {
    grid-template-columns: 1fr;
  }

  .bubble-visualize-plot {
    height: 260px;
  }

  .bubble-visualize-sidebar {
    max-height: none;
  }
}

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

.ticket-feed-item {
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-left: 3px solid var(--feed-accent, rgba(99, 102, 241, 0.4));
  background: #1e2340;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: feed-item-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--feed-item-delay, 0ms);
  position: relative;
}

/* Priority accent borders — visual heat map */
.ticket-feed-item.priority-lowest { --feed-accent: var(--priority-lowest-color); }
.ticket-feed-item.priority-low    { --feed-accent: var(--priority-low-color); }
.ticket-feed-item.priority-medium { --feed-accent: var(--priority-medium-color); }
.ticket-feed-item.priority-high   { --feed-accent: var(--priority-high-color); }
.ticket-feed-item.priority-highest,
.ticket-feed-item.priority-critical { --feed-accent: var(--priority-critical-color); }
.ticket-feed-item.priority-blocker {
  --feed-accent: var(--priority-blocker-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), -4px 0 20px -6px rgba(239, 68, 68, 0.25);
}

/* Hover: depth shift with glow */
.ticket-feed-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: #242950;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.ticket-feed-item.priority-blocker:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), -4px 0 24px -4px rgba(239, 68, 68, 0.35);
}

@keyframes feed-item-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ticket-feed-item:nth-child(1) { animation-delay: calc(var(--stagger-delay) * 0); }
.ticket-feed-item:nth-child(2) { animation-delay: calc(var(--stagger-delay) * 1); }
.ticket-feed-item:nth-child(3) { animation-delay: calc(var(--stagger-delay) * 2); }
.ticket-feed-item:nth-child(4) { animation-delay: calc(var(--stagger-delay) * 3); }
.ticket-feed-item:nth-child(5) { animation-delay: calc(var(--stagger-delay) * 4); }
.ticket-feed-item:nth-child(6) { animation-delay: calc(var(--stagger-delay) * 5); }
.ticket-feed-item:nth-child(7) { animation-delay: calc(var(--stagger-delay) * 6); }
.ticket-feed-item:nth-child(8) { animation-delay: calc(var(--stagger-delay) * 7); }
.ticket-feed-item:nth-child(9) { animation-delay: calc(var(--stagger-delay) * 8); }
.ticket-feed-item:nth-child(10) { animation-delay: calc(var(--stagger-delay) * 9); }

.ticket-feed-descriptors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--terminal-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--terminal-muted);
}

.ticket-feed-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ticket-feed-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--terminal-text);
  letter-spacing: -0.01em;
}

.ticket-feed-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ticket-feed-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Update Items */
.terminal-updates {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.update-item {
  padding: 16px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.07);
  transform: translateX(2px);
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.update-user {
  font-family: var(--font-body);
  color: var(--terminal-text);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.update-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover .update-avatar {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.update-time {
  font-family: var(--terminal-font);
  color: var(--terminal-border);
  font-size: 11px;
}

.update-content {
  font-family: var(--font-body);
  color: var(--terminal-text);
  line-height: 1.6;
  font-size: 14px;
  opacity: 0.9;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 44px;
  margin-bottom: 20px;
  color: var(--terminal-highlight);
  opacity: 0.3;
  animation: empty-float 4s ease-in-out infinite alternate;
}

@keyframes empty-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

.empty-state p {
  margin-bottom: 24px;
  font-family: var(--font-body);
  color: var(--terminal-muted);
  font-size: 14px;
  max-width: 300px;
  line-height: 1.5;
}

/* Help Page Styling */
.help-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.help-section {
  margin-bottom: 10px;
}

.help-section h2 {
  color: var(--terminal-highlight);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: normal;
  border-bottom: 1px dashed var(--terminal-border);
  padding-bottom: 5px;
}

.help-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.help-section ul {
  list-style-type: none;
  padding-left: 20px;
}

.help-section li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  line-height: 1.6;
}

.help-section li:before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--terminal-highlight);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.command-item {
  padding: 10px;
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  background-color: rgba(30, 32, 55, 0.2);
}

.command-name {
  color: var(--terminal-highlight);
  font-weight: bold;
  margin-bottom: 5px;
  font-family: monospace;
}

.command-desc {
  color: var(--terminal-text);
  font-size: 14px;
}

/* Status Grid in Help Page */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(30, 32, 55, 0.2);
}

.status-desc {
  color: var(--terminal-text);
  font-size: 14px;
}

/* AI Developer Guide Styles */
.guide-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 16px 0;
}

.guide-flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  background-color: rgba(30, 32, 55, 0.2);
  width: 100%;
}

.guide-flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--terminal-highlight);
  color: var(--terminal-bg);
  font-weight: bold;
  font-size: 0.85em;
  flex-shrink: 0;
}

.guide-flow-arrow {
  color: var(--terminal-comment);
  padding-left: 8px;
  font-size: 0.85em;
}

.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0;
}

.guide-checklist-item {
  padding: 14px 18px;
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  background-color: rgba(30, 32, 55, 0.15);
}

.guide-checklist-item strong {
  color: var(--terminal-highlight);
  display: block;
  margin-bottom: 4px;
}

.guide-checklist-item p {
  margin: 4px 0;
  font-size: 0.9em;
  line-height: 1.5;
}

.guide-checklist-item ul {
  margin: 6px 0 0 0;
  padding-left: 20px;
}

.guide-checklist-item li {
  font-size: 0.9em;
  padding-left: 8px;
}

.guide-step-label {
  display: inline-block;
  font-size: 0.75em;
  color: var(--terminal-bg);
  background-color: var(--terminal-comment);
  padding: 1px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-steps {
  padding-left: 24px;
  list-style-type: none;
  counter-reset: guide-step;
}

.guide-steps li {
  counter-increment: guide-step;
  position: relative;
  padding-left: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.guide-steps li:before {
  content: counter(guide-step) ".";
  position: absolute;
  left: -20px;
  color: var(--terminal-highlight);
  font-weight: bold;
}

.help-section h3 {
  color: var(--terminal-text);
  font-size: 16px;
  margin: 16px 0 8px;
  font-weight: bold;
}

.guide-code-example {
  padding: 10px 14px;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 4px;
  margin: 8px 0;
  font-size: 0.95em;
}

.guide-code-example code {
  color: var(--terminal-highlight);
  white-space: pre;
  display: block;
  overflow-x: auto;
}

/* Copyable Code Blocks */
.guide-code-copyable {
  position: relative;
}

.guide-code-copyable .copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 10px;
  font-size: 0.75em;
  background-color: var(--terminal-border);
  color: var(--terminal-text);
  border: 1px solid var(--terminal-border);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--terminal-font);
  transition: background-color 0.15s;
}

.guide-code-copyable .copy-btn:hover {
  background-color: var(--terminal-highlight);
  color: var(--terminal-bg);
}

.guide-code-copyable .copy-btn.copied {
  background-color: #86efac;
  color: var(--terminal-bg);
  border-color: #86efac;
}

/* Inbound Email Ingest Hint */
.email-ingest-hint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--terminal-border);
}

.email-ingest-label {
  color: var(--terminal-muted);
  font-size: 0.85em;
  margin-bottom: 6px;
}

.email-ingest-address {
  padding: 8px 12px;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 4px;
}

.email-ingest-address code {
  color: var(--terminal-highlight);
  word-break: break-all;
}

.email-ingest-note {
  color: var(--terminal-muted);
  font-size: 0.8em;
  margin-top: 6px;
}

/* Filter Form Styles */
.filter-form {
  margin: 0;
}

.filter-form-row {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-form-row .terminal-form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
}

.filter-form-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.03);
  border: 1px dashed rgba(99, 102, 241, 0.1);
}

.active-filter-label {
  font-family: var(--font-body);
  color: var(--terminal-border);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.active-filter-tag {
  display: flex;
  gap: 5px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 6px;
  background: rgba(23, 25, 45, 0.4);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.15s ease;
}

.filter-chip:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.filter-chip .chip-label {
  color: var(--terminal-border);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.filter-chip .chip-value {
  text-transform: none;
  letter-spacing: normal;
  color: var(--terminal-muted);
}

/* User Mention Styling */
.user-mention {
  color: var(--terminal-accent);
  background-color: rgba(251, 113, 133, 0.15);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
  border: 1px solid rgba(251, 113, 133, 0.3);
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-mention:hover {
  background-color: rgba(251, 113, 133, 0.25);
  border-color: var(--terminal-accent);
  text-decoration: none;
}

/* Mention Autocomplete Dropdown */
.mention-autocomplete {
  position: absolute;
  background-color: var(--terminal-bg);
  border: 2px solid var(--terminal-accent);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  min-width: 200px;
  display: block;
}

.mention-autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(30, 32, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.mention-autocomplete-item:last-child {
  border-bottom: none;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.selected {
  background-color: rgba(30, 32, 55, 0.4);
}

.mention-autocomplete-item .user-icon {
  color: var(--terminal-highlight);
  font-size: 14px;
}

.mention-autocomplete-item .user-name {
  color: var(--terminal-text);
  font-weight: bold;
}

.mention-autocomplete-item .user-username {
  color: var(--terminal-border);
  font-size: 12px;
}

/* Mention Input Container */
.mention-input-container {
  position: relative;
}
.pill-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(17, 20, 38, 0.85);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pill-checkbox::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--label-pill-color, var(--terminal-highlight));
  box-shadow: 0 0 6px var(--label-pill-color, var(--terminal-highlight));
}

.pill-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}

.pill-checkbox.is-selected {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--terminal-highlight);
  color: var(--terminal-highlight);
}

.pill-checkbox-text {
  pointer-events: none;
  color: inherit;
}

.pill-checkbox-icon {
  display: none;
  color: var(--terminal-highlight);
  font-size: 12px;
  pointer-events: none;
}

.pill-checkbox-icon.visible {
  display: inline-flex;
}

.pill-checkbox:hover {
  border-color: rgba(99, 102, 241, 0.8);
}

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  margin: 2px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(23, 25, 45, 0.5);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--terminal-muted);
  transition: all 0.15s ease;
  text-decoration: none;
}

.label-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--label-pill-color, var(--terminal-highlight));
  box-shadow: 0 0 4px var(--label-pill-color, var(--terminal-highlight));
  flex-shrink: 0;
}

.label-pill:hover {
  border-color: var(--label-pill-color, rgba(99, 102, 241, 0.3));
  background: rgba(23, 25, 45, 0.7);
  color: var(--terminal-text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pill-checkbox:hover {
  border-color: rgba(99, 102, 241, 0.8);
}

/* ===== Developer Dashboard ===== */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Capacity bar */
.dashboard-capacity {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: #1e2340;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.capacity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.capacity-title {
  font-family: var(--font-display);
  color: var(--terminal-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.capacity-numbers {
  font-family: var(--terminal-font);
  color: var(--terminal-muted);
  font-size: 13px;
}

.capacity-bar {
  height: 6px;
  background: rgba(23, 25, 45, 0.8);
  border-radius: 3px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep across capacity bar */
.capacity-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: capacity-shimmer 3s ease-in-out infinite;
}

@keyframes capacity-shimmer {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.capacity-fill.capacity-warning {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.capacity-fill.capacity-danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.capacity-detail {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--terminal-border);
}

/* Dashboard sections */
.dashboard-section {
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: #1e2340;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.dashboard-section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--terminal-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dashboard-hint {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--terminal-border);
}

.dashboard-triage {
  border-color: rgba(251, 113, 133, 0.25);
  border-left: 3px solid var(--terminal-accent);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.04), rgba(251, 113, 133, 0.01));
}

.dashboard-triage .dashboard-section-header h2 {
  color: var(--terminal-accent);
}

/* Dashboard section entrance */
.dashboard-section,
.dashboard-capacity,
.dashboard-lane {
  animation: card-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Swim lanes */
.dashboard-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.dashboard-lane {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: #1e2340;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

.dashboard-lane:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

/* Status-colored lane top accents */
.dashboard-lane:nth-child(1) { border-top: 2px solid var(--status-in-progress-color); }
.dashboard-lane:nth-child(2) { border-top: 2px solid var(--status-testing-color); }
.dashboard-lane:nth-child(3) { border-top: 2px solid var(--status-qa-color); }
.dashboard-lane:nth-child(4) { border-top: 2px solid var(--status-todo-color); }
.dashboard-lane:nth-child(5) { border-top: 2px solid var(--status-future-color); }

.dashboard-lane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.dashboard-lane-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--terminal-muted);
  font-weight: 500;
}

.lane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(99, 102, 241, 0.12);
  font-family: var(--terminal-font);
  font-size: 10px;
  color: var(--terminal-highlight);
  margin-left: 6px;
}

.lane-points {
  font-family: var(--terminal-font);
  font-size: 11px;
  color: var(--terminal-border);
}

.dashboard-lane-empty {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--terminal-border);
  font-style: italic;
  padding: 8px 0;
}

/* Ticket rows */
.dashboard-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-ticket-row {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.04);
  transition: all 0.15s ease;
}

.dashboard-ticket-row:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.08);
  transform: translateX(3px);
  box-shadow: -3px 0 0 0 var(--terminal-highlight);
}

.dashboard-ticket-descriptors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--terminal-font);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--terminal-border);
}

.dashboard-ticket-title {
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 2px;
}

.dashboard-ticket-title a {
  color: var(--terminal-text);
  text-decoration: none;
}

.dashboard-ticket-title a:hover {
  color: var(--terminal-highlight);
}

.dashboard-ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

/* Bottom panels */
.dashboard-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Dashboard responsive handled in 720px breakpoint above */

/* Activity list */
.dashboard-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-activity-item {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(17, 20, 38, 0.5);
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.activity-user {
  color: var(--terminal-highlight);
  font-size: 13px;
  font-weight: bold;
}

.activity-time {
  color: var(--terminal-border);
  font-size: 11px;
}

.activity-context {
  font-size: 12px;
  color: var(--terminal-muted);
  margin-bottom: 4px;
}

.activity-context a {
  color: var(--terminal-link);
  text-decoration: none;
}

.activity-context a:hover {
  text-decoration: underline;
}

.activity-content {
  font-size: 13px;
  color: var(--terminal-text);
  opacity: 0.8;
}

/* ===== Ticket Attachments ===== */
.attachment-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.attachment-images:empty {
  display: none;
}

.attachment-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.attachment-files:empty {
  display: none;
}

.attachment-item {
  position: relative;
}

.attachment-thumb {
  display: block;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--terminal-panel);
  cursor: pointer;
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attachment-file-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  background: var(--terminal-panel);
  color: var(--terminal-text);
  text-decoration: none;
}

.attachment-file-link:hover {
  border-color: var(--terminal-accent);
}

.attachment-file-link .attachment-filename {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-file-link .attachment-size {
  color: var(--terminal-muted);
  font-size: 12px;
}

.attachment-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--terminal-error);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
}

.attachment-file .attachment-delete {
  position: static;
  margin-left: 8px;
}

.attachment-file {
  display: flex;
  align-items: center;
}

.attachment-file .attachment-file-link {
  flex: 1;
}

.no-attachments {
  color: var(--terminal-muted);
  margin-bottom: 12px;
}

.attachment-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--terminal-border);
  border-radius: 6px;
  color: var(--terminal-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.attachment-dropzone.is-dragover {
  border-color: var(--terminal-accent);
  background: var(--terminal-panel-soft);
}

.attachment-dropzone .attachment-input {
  display: none;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-figure figcaption {
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
}
