/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Incident spacing */
.incident-wrapper:not(:last-child) {
  margin-bottom: 1.5rem; /* 24px spacing between incidents */
}

/* Timeline styles have been moved to app/assets/tailwind/application.css for proper theme integration */

/* Toast notification animations */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out-right {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out forwards;
}

.animate-slide-out-right {
  animation: slide-out-right 0.3s ease-out forwards;
}

@keyframes shake-no {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
  }
}

.join-org-invalid {
  animation: shake-no 0.45s ease-in-out;
}

.join-org-error {
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.icon-picker-popover {
  z-index: 2000;
}

.color-picker-popover {
  z-index: 2000;
}

/* Toast notification container styles */
#notifications {
  pointer-events: none;
}

#notifications > * {
  pointer-events: auto;
  margin-bottom: 0.5rem;
}

/* Dockview styles live in dockview.css */

/* Org switcher + event wizard backdrop */
.event-switcher-body {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(15, 118, 110, 0.12), transparent 22%),
    linear-gradient(160deg, #f4efe6, #f8f7f1 38%, #eef3f1 100%);
}

.event-switcher-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.event-switcher-shape {
  position: absolute;
  opacity: 0.35;
  transform-origin: center;
}

.event-switcher-shape--one {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
  transform: rotate(42deg);
  animation: switcher-drift-1 26s ease-in-out infinite;
}

.event-switcher-shape--two {
  width: 260px;
  height: 260px;
  top: 18%;
  right: -80px;
  transform: rotate(12deg);
  animation: switcher-drift-2 22s ease-in-out infinite;
}

.event-switcher-shape--three {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: 28%;
  transform: rotate(-12deg);
  animation: switcher-drift-3 28s ease-in-out infinite;
}

@keyframes switcher-drift-1 {
  0%, 100% { transform: translate(0, 0) rotate(42deg); }
  50% { transform: translate(30px, 20px) rotate(38deg); }
}

@keyframes switcher-drift-2 {
  0%, 100% { transform: translate(0, 0) rotate(12deg); }
  50% { transform: translate(-24px, -16px) rotate(8deg); }
}

@keyframes switcher-drift-3 {
  0%, 100% { transform: translate(0, 0) rotate(-12deg); }
  50% { transform: translate(18px, -24px) rotate(-8deg); }
}

.event-switcher-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

html[data-theme="abyss"] .event-switcher-body {
  background:
    radial-gradient(circle at 14% 8%, rgba(217, 119, 6, 0.12), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(20, 184, 166, 0.1), transparent 28%),
    linear-gradient(145deg, #060b12, #0c1724 46%, #07111d);
}

html[data-theme="abyss"] .event-switcher-card {
  background: rgba(10, 20, 36, 0.88);
  border-color: rgba(148, 171, 201, 0.3);
  box-shadow: 0 26px 58px -42px rgba(0, 6, 14, 0.8);
}

.event-wizard-hero,
.event-wizard-progress,
.event-stage {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.event-wizard-hero {
  display: block;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(120, 113, 108, 0.2);
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(255, 251, 245, 0.94), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.11), transparent 38%);
  box-shadow: 0 20px 48px -42px rgba(41, 37, 36, 0.42);
}

.event-wizard-hero__copy {
  min-width: 0;
}

.event-wizard-hero__eyebrow,
.event-wizard-progress__eyebrow,
.event-stage__eyebrow,
.event-stage__section-kicker,
.event-stage__panel-kicker {
  display: inline-block;
  color: rgb(120 53 15);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.event-wizard-hero__title,
.event-stage__title,
.event-stage__section-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.03em;
}

.event-wizard-hero__title {
  margin-top: 0.5rem;
  color: rgb(28 25 23);
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 0.98;
  text-wrap: balance;
}

.event-wizard-hero__subtitle {
  max-width: 42rem;
  margin-top: 0.45rem;
  color: rgb(87 83 78);
  font-size: 0.94rem;
  line-height: 1.5;
}

.event-wizard-progress {
  padding: 0.85rem 1rem 1rem;
  border: 1px solid rgba(120, 113, 108, 0.14);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px -40px rgba(41, 37, 36, 0.4);
  backdrop-filter: blur(12px);
}

.event-wizard-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.event-wizard-progress__counter {
  color: rgb(68 64 60);
  font-size: 0.85rem;
  font-weight: 600;
}

.event-wizard-progress__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.event-wizard-progress__item {
  min-width: 0;
}

.event-wizard-progress__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-height: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  background: rgba(250, 250, 249, 0.84);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.event-wizard-progress__item--complete .event-wizard-progress__link:hover,
.event-wizard-progress__item--complete .event-wizard-progress__link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(180, 83, 9, 0.24);
  background: rgba(255, 251, 235, 0.95);
  box-shadow: 0 14px 24px -24px rgba(180, 83, 9, 0.55);
}

.event-wizard-progress__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 113, 108, 0.14);
  color: rgb(68 64 60);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
}

.event-wizard-progress__name {
  color: rgb(41 37 36);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.event-wizard-progress__item--current .event-wizard-progress__link {
  border-color: rgba(180, 83, 9, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.98)),
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 52%);
  box-shadow: 0 20px 36px -30px rgba(180, 83, 9, 0.6);
}

.event-wizard-progress__item--current .event-wizard-progress__index,
.event-wizard-progress__item--complete .event-wizard-progress__index {
  border-color: rgba(180, 83, 9, 0.24);
  color: rgb(154 52 18);
  background: rgba(255, 255, 255, 0.98);
}

.event-wizard-progress__item--upcoming .event-wizard-progress__link {
  opacity: 0.68;
}

.event-stage {
  padding: 1.15rem;
  border: 1px solid rgba(120, 113, 108, 0.14);
  border-radius: 1.5rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(250, 250, 249, 0.84)),
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.07), transparent 34%);
  box-shadow: 0 24px 52px -46px rgba(28, 25, 23, 0.48);
  backdrop-filter: blur(12px);
}

.event-stage__hero {
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(120, 113, 108, 0.08);
}

.event-stage__title {
  margin-top: 0.45rem;
  color: rgb(28 25 23);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
  text-wrap: balance;
}

.event-stage__lede {
  max-width: 46rem;
  margin-top: 0.35rem;
  color: rgb(87 83 78);
  font-size: 0.92rem;
  line-height: 1.5;
}

.event-stage__panel,
.sub-event-card,
.sub-events-empty-state {
  border: 1px solid rgba(120, 113, 108, 0.14);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.event-stage__sections {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.event-stage__section {
  padding: 1rem;
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 250, 249, 0.72)),
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.06), transparent 40%);
}

.event-stage__section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.event-stage__section-title {
  margin-top: 0.28rem;
  color: rgb(28 25 23);
  font-size: 1.2rem;
  line-height: 1.12;
}

.event-stage__section-copy,
.event-stage__panel-copy {
  color: rgb(87 83 78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.event-stage__grid {
  display: grid;
  gap: 1rem;
}

.event-stage__grid--schedule {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.event-stage__grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-stage__grid--attendance {
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
}

.event-stage__field .label-text {
  color: rgb(68 64 60);
  font-size: 0.95rem;
  font-weight: 600;
}

.event-stage__input,
.event-stage__select {
  height: 3.25rem;
  border-radius: 1rem;
  border-color: rgba(120, 113, 108, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.event-stage__panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
}

.event-stage__panel--compact {
  min-height: 100%;
}

.event-stage__panel-title {
  margin-top: 0.22rem;
  color: rgb(28 25 23);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.event-stage__alert {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 1.3rem;
  background: rgba(254, 242, 242, 0.9);
  color: rgb(153 27 27);
}

.event-stage__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(120, 113, 108, 0.12);
}

.schedule-picker {
  gap: 0.55rem;
}

.schedule-picker__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.schedule-picker__label {
  color: rgb(68 64 60);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.schedule-picker__hint {
  color: rgb(120 113 108);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: right;
}

.schedule-picker__frame {
  display: grid;
  grid-template-columns: minmax(16rem, 1.7fr) minmax(9.5rem, 10.5rem);
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(120, 113, 108, 0.14);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 249, 0.92)),
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 30px -28px rgba(41, 37, 36, 0.5);
}

.schedule-picker__slot {
  min-width: 0;
}

.schedule-picker__meta {
  display: block;
  margin-bottom: 0.45rem;
  color: rgb(120 113 108);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.schedule-picker__input {
  height: 3.25rem;
  border-radius: 1rem;
  border-color: rgba(120, 113, 108, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: rgb(28 25 23);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.schedule-picker__input--time {
  text-align: left;
}

.schedule-picker__error {
  color: rgb(185 28 28);
  font-size: 0.84rem;
  line-height: 1.45;
}

.schedule-picker--error .schedule-picker__frame {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 30px -28px rgba(239, 68, 68, 0.35);
}

.sub-events-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sub-event-card {
  padding: 0.95rem;
}

.sub-event-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.sub-event-card__remove {
  border-radius: 999px;
}

.sub-event-card__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) repeat(2, minmax(0, 1.1fr));
  gap: 0.85rem;
  align-items: start;
}

.sub-event-card__input {
  height: 3.25rem;
  border-radius: 1rem;
  border-color: rgba(120, 113, 108, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.sub-event-card .schedule-picker__frame {
  grid-template-columns: minmax(0, 1fr) 6.75rem;
  gap: 0.55rem;
  padding: 0.65rem;
}

.sub-event-card .schedule-picker__meta {
  margin-bottom: 0.3rem;
}

.sub-event-card .schedule-picker__input,
.sub-event-card__input {
  height: 3rem;
}

.sub-event-card__alert {
  margin-bottom: 1rem;
}

.sub-events-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem 1.2rem;
  border-style: dashed;
}

.sub-events-empty-state__icon {
  color: rgba(120, 113, 108, 0.48);
  font-size: 2rem;
}

.sub-events-empty-state__title {
  color: rgb(41 37 36);
  font-size: 1rem;
  font-weight: 700;
}

.sub-events-empty-state__copy {
  color: rgb(120 113 108);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.sub-events-add-button {
  border-radius: 999px;
  padding-inline: 1.25rem;
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(255, 251, 235, 0.78);
}

html[data-theme="abyss"] .event-wizard-hero,
html[data-theme="abyss"] .event-wizard-progress,
html[data-theme="abyss"] .event-stage {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(160deg, rgba(10, 16, 24, 0.94), rgba(12, 22, 34, 0.88)),
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.08), transparent 32%);
  box-shadow: 0 34px 84px -60px rgba(2, 6, 23, 0.92);
}

html[data-theme="abyss"] .event-wizard-hero__title,
html[data-theme="abyss"] .event-stage__title,
html[data-theme="abyss"] .event-stage__section-title,
html[data-theme="abyss"] .event-stage__panel-title,
html[data-theme="abyss"] .event-wizard-progress__name,
html[data-theme="abyss"] .schedule-picker__label,
html[data-theme="abyss"] .event-stage__field .label-text,
html[data-theme="abyss"] .sub-events-empty-state__title {
  color: rgb(241 245 249);
}

html[data-theme="abyss"] .event-wizard-hero__subtitle,
html[data-theme="abyss"] .event-stage__lede,
html[data-theme="abyss"] .event-stage__section-copy,
html[data-theme="abyss"] .event-stage__panel-copy,
html[data-theme="abyss"] .event-wizard-progress__counter,
html[data-theme="abyss"] .schedule-picker__hint,
html[data-theme="abyss"] .schedule-picker__meta,
html[data-theme="abyss"] .sub-events-empty-state__copy {
  color: rgb(148 163 184);
}

html[data-theme="abyss"] .event-wizard-hero__eyebrow,
html[data-theme="abyss"] .event-wizard-progress__eyebrow,
html[data-theme="abyss"] .event-stage__eyebrow,
html[data-theme="abyss"] .event-stage__section-kicker,
html[data-theme="abyss"] .event-stage__panel-kicker {
  color: rgb(251 191 36);
}

html[data-theme="abyss"] .event-wizard-progress__link,
html[data-theme="abyss"] .event-stage__section,
html[data-theme="abyss"] .event-stage__panel,
html[data-theme="abyss"] .sub-event-card,
html[data-theme="abyss"] .sub-events-empty-state {
  border-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.06), transparent 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="abyss"] .event-wizard-progress__item--current .event-wizard-progress__link {
  border-color: rgba(251, 191, 36, 0.18);
  background:
    linear-gradient(180deg, rgba(41, 37, 36, 0.92), rgba(28, 25, 23, 0.94)),
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 48%);
}

html[data-theme="abyss"] .event-wizard-progress__index {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.88);
  color: rgb(226 232 240);
}

html[data-theme="abyss"] .event-stage__input,
html[data-theme="abyss"] .event-stage__select,
html[data-theme="abyss"] .schedule-picker__input,
html[data-theme="abyss"] .sub-event-card__input {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.88);
  color: rgb(241 245 249);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="abyss"] .schedule-picker__frame {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px -28px rgba(2, 6, 23, 0.9);
}

html[data-theme="abyss"] .event-stage__alert {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(69, 10, 10, 0.38);
  color: rgb(254 202 202);
}

html[data-theme="abyss"] .sub-events-empty-state__icon {
  color: rgba(148, 163, 184, 0.52);
}

@media (max-width: 767px) {
  .event-wizard-hero,
  .event-stage__section-heading,
  .event-wizard-progress__list,
  .event-stage__grid--schedule,
  .event-stage__grid--triple,
  .event-stage__grid--attendance,
  .sub-event-card__grid,
  .schedule-picker__frame {
    grid-template-columns: 1fr;
  }

  .event-wizard-hero,
  .event-wizard-progress,
  .event-stage {
    padding: 1.1rem;
    border-radius: 1.5rem;
  }

  .event-wizard-progress__meta,
  .event-stage__actions,
  .sub-event-card__header,
  .schedule-picker__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-stage__section,
  .sub-event-card {
    border-radius: 1.25rem;
  }

  .schedule-picker__hint {
    text-align: left;
  }
}

@media (max-width: 1280px), (max-height: 900px) {
  .event-wizard-hero,
  .event-stage {
    padding: 0.95rem 1rem;
  }

  .event-wizard-progress {
    padding: 0.7rem 0.85rem 0.85rem;
  }

  .event-wizard-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.55rem);
  }

  .event-wizard-hero__subtitle {
    font-size: 0.88rem;
  }

  .event-wizard-progress__list {
    gap: 0.45rem;
  }

  .event-wizard-progress__link {
    padding: 0.5rem 0.6rem;
  }

  .event-wizard-progress__name {
    font-size: 0.79rem;
  }

  .event-stage__title {
    font-size: 1.15rem;
  }

  .event-stage__lede {
    font-size: 0.86rem;
  }

  .event-stage__sections {
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  .event-stage__section {
    padding: 0.85rem;
  }

  .sub-event-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sub-event-card__field {
    grid-column: 1 / -1;
  }

  .sub-event-card .schedule-picker__frame {
    grid-template-columns: minmax(0, 1fr) 6.25rem;
  }
}

/* Organization picker */
.org-picker {
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.14), transparent 38%),
    radial-gradient(circle at 90% 16%, rgba(34, 211, 238, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fafc, #ffffff 45%, #f1f5f9);
}

.org-picker-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: 0 16px 34px -24px rgba(15, 23, 42, 0.45);
}

html[data-theme="abyss"] .org-picker {
  background:
    radial-gradient(circle at 14% 8%, rgba(74, 222, 128, 0.12), transparent 42%),
    radial-gradient(circle at 92% 14%, rgba(56, 189, 248, 0.11), transparent 38%),
    linear-gradient(140deg, #050d18, #081327 48%, #07111d);
}

html[data-theme="abyss"] .org-picker-card {
  background: rgba(11, 24, 42, 0.88);
  border-color: rgba(148, 171, 201, 0.3);
  box-shadow: 0 20px 40px -26px rgba(0, 6, 14, 0.85);
}

.incident-card--strong-border {
  border-left-width: 6px !important;
}

.incident-card--main-corners {
  border-radius: 0.25rem;
}

.incident-activity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.22rem 0.58rem 0.22rem 0.42rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: rgb(71 85 105);
  background: rgba(148, 163, 184, 0.12);
  border-color: color-mix(in srgb, currentColor 40%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.incident-activity-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.25rem;
  background: rgba(148, 163, 184, 0.16);
  background: color-mix(in srgb, currentColor 18%, transparent);
  flex-shrink: 0;
}

.incident-activity-chip__label {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-activity-chip--interactive {
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.incident-activity-chip--interactive:hover,
.incident-activity-chip--interactive:focus-visible {
  background: color-mix(in srgb, currentColor 16%, transparent);
  border-color: color-mix(in srgb, currentColor 52%, transparent);
}

/* Incident context menu */
.incident-context-menu {
  color: rgb(15 23 42);
}

.incident-context-menu__list {
  min-width: 220px;
  padding: 0.35rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45), 0 6px 12px -6px rgba(15, 23, 42, 0.25);
}

.incident-context-menu__row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.incident-context-menu__row:hover,
.incident-context-menu__row:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

.incident-context-menu__row--active {
  background: rgba(15, 23, 42, 0.08);
  font-weight: 600;
}

.incident-context-menu__row--header {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
  position: relative;
  padding-top: 0.55rem;
  padding-bottom: 0.35rem;
}

.incident-context-menu__row--header::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.15rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.25), transparent);
}

.incident-context-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.6);
}

.incident-context-menu__icon--success {
  color: #16a34a;
}

.incident-context-menu__icon--danger {
  color: #ef4444;
}

.incident-context-menu__icon--warning {
  color: #f59e0b;
}

.incident-context-menu__label {
  color: rgba(15, 23, 42, 0.92);
}

.incident-context-menu__chevron {
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.3);
}

.incident-context-menu__level {
  font-size: 0.65rem;
  justify-self: end;
  opacity: 0.65;
  transform: translateY(-0.5px);
}

.incident-context-menu__level--critical {
  color: #f87171;
}

.incident-context-menu__level--high {
  color: #fb923c;
}

.incident-context-menu__level--medium {
  color: #94a3b8;
}

.incident-context-menu__level--low {
  color: #38bdf8;
}

/* Incident seal overlay */
.incident--sealed {
  position: relative;
  overflow: hidden;
}

.incident-seal-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 245, 249, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.incident-seal-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.incident-seal-overlay__id {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.8);
}

.incident-seal-overlay__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.incident-context-menu__divider {
  height: 1px;
  margin: 0.35rem 0.4rem;
  background: rgba(15, 23, 42, 0.1);
}

.incident-context-menu__submenu {
  position: relative;
}

.incident-context-menu__list--submenu {
  position: absolute;
  left: calc(100% - 6px);
  top: -6px;
  display: none;
  z-index: 10;
}

.incident-context-menu__submenu:hover .incident-context-menu__list--submenu,
.incident-context-menu__list--submenu:hover {
  display: block;
}

.dev-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--dev-toolbar-height, 40px);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(6px);
}

.dev-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 0.85rem;
  gap: 1rem;
}

.dev-toolbar__left,
.dev-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dev-toolbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  background: #fbbf24;
  border-radius: 999px;
}

.dev-toolbar__title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dev-toolbar__meta {
  font-size: 0.75rem;
  opacity: 0.7;
}

.dev-toolbar__form {
  margin: 0;
}

.dev-toolbar__button {
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #0f172a;
  background: #e2e8f0;
}

.dev-toolbar__button.is-on {
  background: #22c55e;
  color: #052e16;
}

.dev-toolbar__button.is-off {
  background: #f97316;
  color: #431407;
}

.dev-toolbar__timer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.dev-toolbar__timer-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.dev-toolbar__timer-value {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dev-toolbar__timer-value.is-locked {
  color: #fbbf24;
}

.dev-toolbar-offset {
  top: var(--dev-toolbar-height, 0px);
}

.dev-toolbar-offset-4 {
  top: calc(var(--dev-toolbar-height, 0px) + 1rem);
}
