
.table-input:focus {
  border-color: #60a5fa;
  outline: 2px solid rgba(96, 165, 250, 0.18);
}

.priority-strip {
  gap: 9px;
}

.priority-card {
  padding: 11px;
  border-radius: 12px;
}

.priority-1 { background: #fff1f2; color: #be123c; }
.priority-2 { background: #fff7ed; color: #c2410c; }
.priority-3 { background: #fefce8; color: #a16207; }
.priority-4 { background: #ecfdf5; color: #047857; }
.priority-5 { background: #eff6ff; color: #1d4ed8; }
.priority-backlog { background: #f8fafc; color: #334155; }

.action-tile {
  min-height: 94px;
  padding: 16px;
}

.action-tile:hover,
.action-tile.active {
  background: #eef7ff;
  border-color: rgba(31, 100, 255, 0.38);
}

.message {
  font-size: 12px;
}

.bug-fab {
  background: linear-gradient(135deg, #06112b, #1f64ff);
  box-shadow: 0 18px 34px rgba(7, 24, 46, 0.24);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(114, 129, 155, 0.28);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(114, 129, 155, 0.45);
}

@media (max-width: 900px) {
  body:has(.app-shell:not(.hidden)) {
    overflow: hidden;
  }

  .site-header {
    padding: 14px 20px;
  }

  .hero-section {
    min-height: auto;
    padding: 42px 24px 54px;
  }

  .app-shell {
    height: 100vh;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .sidebar {
    height: auto;
    min-height: auto;
    max-height: 34vh;
    overflow: hidden;
  }

  .sidebar-nav {
    overflow-y: auto;
  }

  .workspace {
    height: 66vh;
    min-height: 0;
    overflow: hidden;
  }
}

/* Global inline helper and template download framework */
.field-help-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  border: 1px solid #9fc5ff !important;
  border-radius: 50% !important;
  background: #eaf3ff !important;
  color: #1f64ff !important;
  box-shadow: none !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 9px !important;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  aspect-ratio: 1 / 1;
}

.label-help-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.field-help-button:hover,
.field-help-button:focus {
  transform: none;
  background: #dcecff !important;
  color: #174fd0 !important;
  box-shadow: 0 4px 10px rgba(31, 100, 255, 0.14) !important;
}

.field-help-tooltip {
  position: fixed;
  z-index: 200;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid #cfe0f8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233a;
  box-shadow: 0 18px 45px rgba(7, 24, 46, 0.16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 130ms ease, transform 130ms ease;
}

.field-description {
  grid-column: 1 / -1;
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

#reportsView {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px !important;
  align-items: start;
  align-content: start !important;
}
