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

body.app-body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--edith-bg, #f0f2f5);
  color: var(--edith-text, #1a1a1a);
}

/* Salida del login (toda la pantalla de login, sin tocar el dashboard aún) */
.login-screen.login-screen--exiting {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}

.login-screen.login-screen--exiting .login-split {
  transform: translateY(-14px) scale(0.985);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Transiciones solo en el área principal (#view-outlet) */
#view-outlet {
  transform-origin: top center;
  will-change: opacity, transform;
}

#view-outlet.view-outlet--leave {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

#view-outlet.view-outlet--swap {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

@keyframes viewOutletEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#view-outlet.view-outlet--enter {
  animation: viewOutletEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .login-screen.login-screen--exiting,
  .login-screen.login-screen--exiting .login-split,
  #view-outlet.view-outlet--leave,
  #view-outlet.view-outlet--enter {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  #view-outlet.view-outlet--swap {
    opacity: 1;
  }
}

/* —— E.D.I.T.H. dashboard —— */
.login-brand-mark--edith,
.header-product-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--md-sys-color-primary, #00568e), #00897b);
  color: #fff;
}

.header-product-mark {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
}

.edith-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.edith-kpi {
  min-width: 0;
  overflow: visible;
}

.edith-kpi strong {
  display: block;
  font-size: 1.75rem;
  margin-top: 0.25rem;
}

.edith-kpi-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.75;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.25;
  hyphens: manual;
}

.edith-kpi--pending strong { color: #ef6c00; }
.edith-kpi--done strong { color: #00897b; }
.edith-kpi--progress strong { color: #00bcd4; }

.edith-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.edith-board-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edith-board-card:hover {
  transform: translateY(-2px);
}

.edith-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .edith-detail-grid {
    grid-template-columns: 1fr;
  }
}

.edith-donut-wrap {
  position: relative;
  text-align: center;
}

.edith-donut-center {
  margin: -2.5rem 0 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.edith-activities {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
}

.edith-activities li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.edith-issue-key {
  color: var(--md-sys-color-primary, #64b5f6);
  font-weight: 600;
  margin-right: 0.5rem;
}

.edith-board-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.edith-board-checks label {
  font-size: 0.875rem;
}

.edith-welcome-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.edith-welcome-row--solo {
  grid-template-columns: 1fr;
  max-width: 42rem;
}

.edith-welcome-row--full {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
}

.edith-welcome-row--full .edith-welcome-card {
  width: 100%;
}

@media (max-width: 900px) {
  .edith-welcome-row {
    grid-template-columns: 1fr;
  }
}

.edith-welcome-kicker {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin: 0 0 0.35rem;
}

.edith-welcome-title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1.2;
}

.edith-welcome-sub {
  margin: 0;
}

.edith-quote-card {
  border-left: 4px solid var(--md-sys-color-primary, #1565c0);
  background: linear-gradient(
    135deg,
    rgba(0, 86, 142, 0.08) 0%,
    rgba(0, 137, 123, 0.06) 100%
  );
}

.edith-quote-label {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.edith-quote-text {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 500;
}

.edith-quote-author {
  margin: 0;
  font-weight: 600;
  opacity: 0.9;
}

.edith-welcome-enter {
  animation: edithWelcomeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.edith-welcome-enter--delay {
  animation-delay: 0.08s;
}

.edith-stagger-in {
  animation: edithWelcomeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.edith-stagger-in--2 {
  animation-delay: 0.18s;
}

@keyframes edithWelcomeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-brand-glasses,
.header-edith-glasses {
  display: block;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.login-brand-logo {
  margin-bottom: 0.75rem;
}

.header-edith-glasses {
  width: auto;
  max-height: 40px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

@media (prefers-reduced-motion: reduce) {
  .edith-welcome-enter,
  .edith-welcome-enter--delay,
  .edith-stagger-in,
  .edith-stagger-in--2 {
    animation: none;
  }
}

.edith-kpi-row--5,
.edith-kpi-row--6 {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

@media (min-width: 1280px) {
  .edith-kpi-row--5 {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
  }

  .edith-kpi-row--6 {
    grid-template-columns: repeat(6, minmax(148px, 1fr));
  }
}

.edith-kpi--click {
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
}

.edith-kpi--click:hover {
  opacity: 0.92;
}

.edith-kpi--area .edith-area-name {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.edith-area-selector-wrap {
  margin-bottom: 1.25rem;
  max-width: min(100%, 720px);
}

.edith-area-selector-wrap.hidden {
  display: none;
}

.edith-area-selector-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.edith-area-select {
  position: relative;
}

.edith-area-select-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(21, 101, 192, 0.25);
  border-radius: 14px;
  background: var(--md-sys-color-surface, #fff);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.edith-area-select-trigger:hover:not(:disabled) {
  border-color: var(--md-sys-color-primary, #1565c0);
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.12);
}

.edith-area-select-trigger:disabled {
  cursor: default;
  opacity: 0.95;
}

.edith-area-select[data-open='true'] .edith-area-select-trigger {
  border-color: var(--md-sys-color-primary, #1565c0);
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.15);
}

.edith-area-select-logo {
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.edith-area-select-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.edith-area-select-name {
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.edith-area-select-sub {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  line-height: 1.3;
}

.edith-area-select-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  margin-left: 0.25rem;
  transition: transform 0.2s;
}

.edith-area-select--single .edith-area-select-chevron {
  display: none;
}

.edith-area-select[data-open='true'] .edith-area-select-chevron {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.edith-area-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(127, 127, 127, 0.25);
  background: var(--md-sys-color-surface, #fff);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  max-height: 320px;
  overflow-y: auto;
}

.edith-area-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.edith-area-select-option:hover,
.edith-area-select-option.is-selected {
  background: rgba(21, 101, 192, 0.08);
}

.edith-area-select-name--placeholder {
  font-weight: 600;
  opacity: 0.85;
}

.edith-area-select-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.edith-area-select-logo--placeholder {
  opacity: 0.92;
}

.edith-area-empty-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 36rem;
  margin-top: 1rem;
}

html[data-theme='dark'] .edith-area-select-menu,
html[data-theme='dark'] .edith-area-select-trigger {
  background: var(--md-sys-color-surface, #1e1e2a);
}

.edith-donut-inner {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.edith-donut-inner .edith-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  pointer-events: none;
  font-size: 1.75rem;
}

.edith-epics-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edith-epic-subs {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
}

.edith-epic-subs li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(127, 127, 127, 0.15);
}

.edith-comment-snippet {
  margin-top: 0.35rem;
  font-style: italic;
}

.edith-tasks-modal {
  max-width: 640px;
  width: min(96vw, 640px);
}

.edith-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edith-modal-task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
}

.edith-modal-task-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
}

.edith-act-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.edith-act-filters .field-input {
  flex: 1 1 220px;
}

.edith-stagger-in--3 {
  animation-delay: 0.24s;
}

.edith-gantt-wrap {
  margin-bottom: 0.5rem;
}

.edith-activities-subtitle {
  margin: 1.25rem 0 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(127, 127, 127, 0.2);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.edith-epics-section .edith-subtitle:first-of-type {
  margin-top: 0;
}

.edith-epic-card {
  border: 1px solid rgba(127, 127, 127, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edith-epic-card[open] {
  border-color: rgba(21, 101, 192, 0.35);
  box-shadow: 0 4px 20px rgba(21, 101, 192, 0.08);
}

.edith-epic-summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    'chev key meta'
    'chev title meta'
    'chev dates meta'
    'chev progress progress';
  gap: 0.15rem 0.65rem;
  align-items: center;
  list-style: none;
}

.edith-epic-summary::-webkit-details-marker {
  display: none;
}

.edith-epic-chevron {
  grid-area: chev;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.55;
  transition: transform 0.2s ease;
  margin-top: 0.35rem;
}

.edith-epic-card[open] .edith-epic-chevron {
  transform: rotate(45deg);
  margin-top: 0.15rem;
}

.edith-epic-summary .edith-issue-key {
  grid-area: key;
}

.edith-epic-title {
  grid-area: title;
  font-size: 0.9375rem;
}

.edith-epic-dates {
  grid-area: dates;
}

.edith-epic-progress-meta {
  grid-area: meta;
  text-align: right;
  white-space: nowrap;
}

.edith-epic-pct {
  font-weight: 800;
  color: var(--md-sys-color-primary, #1565c0);
}

.edith-epic-progress-track {
  grid-area: progress;
  height: 4px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.15);
  overflow: hidden;
  margin-top: 0.35rem;
}

.edith-epic-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00897b, #26a69a);
  transition: width 0.35s ease;
}

.edith-epic-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(127, 127, 127, 0.15);
}

.edith-epic-desc {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.edith-epic-task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edith-epic-task-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(127, 127, 127, 0.16);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.06);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.edith-epic-task-row:hover {
  background: rgba(21, 101, 192, 0.08);
  border-color: rgba(21, 101, 192, 0.28);
  transform: translateX(2px);
}

.edith-epic-task-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.edith-epic-task-title {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.edith-epic-task-hint {
  font-size: 0.6875rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.edith-epic-task-row:hover .edith-epic-task-hint {
  opacity: 0.85;
}

.edith-task-detail-dialog {
  max-width: 36rem;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.edith-task-detail-dialog.edith-task-detail--visible {
  opacity: 1;
  transform: none;
}

.edith-task-detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.edith-task-detail-dialog.edith-task-detail--visible::backdrop {
  opacity: 1;
}

.edith-task-detail-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.5rem 0;
}

.edith-task-detail-close {
  font-size: 1.1rem;
  line-height: 1;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  background: rgba(127, 127, 127, 0.1);
  color: var(--md-sys-color-on-surface, #1c1b1f);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.edith-task-detail-close:hover {
  background: rgba(21, 101, 192, 0.1);
  border-color: rgba(21, 101, 192, 0.35);
  color: var(--md-sys-color-primary, #1565c0);
}

html[data-theme='dark'] .edith-task-detail-close {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme='dark'] .edith-task-detail-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.edith-task-detail-body {
  padding: 0 1.35rem 1.35rem;
  max-height: min(78vh, 640px);
  overflow-y: auto;
}

.edith-task-detail-key {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(21, 101, 192, 0.12);
  color: var(--md-sys-color-primary, #1565c0);
  margin-bottom: 0.5rem;
}

.edith-task-detail-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.edith-task-detail-head {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
}

.edith-task-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.edith-task-detail-stats--solo {
  grid-template-columns: 1fr;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
}

.edith-task-detail-stats--solo .edith-task-detail-stat {
  text-align: center;
}

.edith-task-detail-stat {
  padding: 0.85rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.18);
  background: rgba(127, 127, 127, 0.06);
  text-align: center;
}

.edith-task-detail-stat-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.35rem;
}

.edith-task-detail-status {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edith-task-detail-status--done {
  color: #00897b;
}

.edith-task-detail-status--pending {
  color: #ef6c00;
}

.edith-task-detail-status--progress {
  color: #5c6bc0;
}

.edith-task-detail-category {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary, #1565c0);
}

.edith-task-detail-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
}

.edith-task-detail-comments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
}

.edith-task-detail-comments li {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border-left: 3px solid rgba(21, 101, 192, 0.45);
  background: rgba(127, 127, 127, 0.06);
}

.edith-task-detail-comment-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--md-sys-color-primary, #1565c0);
  margin-bottom: 0.25rem;
}

.edith-task-detail-comments p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.edith-task-detail-foot {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(127, 127, 127, 0.15);
}

@media (max-width: 540px) {
  .edith-task-detail-stats {
    grid-template-columns: 1fr;
  }
  .edith-epic-task-row {
    grid-template-columns: 1fr;
  }
  .edith-epic-task-hint {
    display: none;
  }
}

.edith-gantt {
  --gantt-track-h: 28px;
}

.edith-gantt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.edith-gantt-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  opacity: 0.85;
}

.edith-gantt-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.edith-gantt-swatch--plan { background: rgba(100, 181, 246, 0.35); }
.edith-gantt-swatch--done { background: #00897b; }
.edith-gantt-swatch--today { background: rgba(239, 108, 0, 0.55); }

.edith-gantt-axis {
  position: relative;
  height: 1.25rem;
  margin: 0 0 0.5rem 11rem;
  border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.edith-gantt-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
  white-space: nowrap;
}

.edith-gantt-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.edith-gantt-row-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.edith-gantt-row-name {
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edith-gantt-track {
  position: relative;
  height: var(--gantt-track-h);
  background: rgba(127, 127, 127, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.edith-gantt-track--main {
  height: 36px;
}

.edith-gantt-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  pointer-events: none;
}

.edith-gantt-bar--plan {
  background: rgba(21, 101, 192, 0.22);
  border: 1px solid rgba(21, 101, 192, 0.35);
}

.edith-gantt-bar--full {
  left: 0;
  width: 100%;
}

.edith-gantt-bar--time {
  left: 0;
  background: rgba(239, 108, 0, 0.2);
  z-index: 1;
}

.edith-gantt-bar--done {
  left: 0;
  background: linear-gradient(90deg, #00897b, #26a69a);
  z-index: 2;
  opacity: 0.92;
}

.edith-gantt-bar--overlay {
  mix-blend-mode: normal;
}

.edith-gantt-today {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #ef6c00;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(239, 108, 0, 0.6);
}

.edith-gantt-epics {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(127, 127, 127, 0.2);
  max-height: 420px;
  overflow-y: auto;
}

.edith-epic-dates {
  margin-left: 0;
}

@media (max-width: 768px) {
  .edith-gantt-row {
    grid-template-columns: 1fr;
  }
  .edith-gantt-axis {
    margin-left: 0;
  }
}

.edith-recent-task-btn {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0.55rem 0.45rem;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.edith-recent-task-btn:hover {
  background: rgba(21, 101, 192, 0.07);
  border-color: rgba(21, 101, 192, 0.18);
}

.edith-recent-task-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.2rem;
}

.edith-recent-task-btn p {
  margin: 0.15rem 0 0;
}

.edith-chart-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.edith-chart-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.edith-chart-kpi strong {
  font-size: 1.35rem;
}

.edith-charts-donuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edith-chart-donut {
  max-width: 320px;
}

.edith-charts-trend-canvas-wrap {
  position: relative;
  height: 340px;
  margin-top: 0.75rem;
}

html[data-theme='dark'] .sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .sidebar-brand-text strong {
  color: #e8eef5;
}

html[data-theme='dark'] .sidebar-brand-logo {
  filter: none;
  opacity: 0.98;
}

@media (max-width: 900px) {
  .edith-charts-donuts,
  .edith-chart-kpi-row {
    grid-template-columns: 1fr;
  }
}

.edith-chart-kpi-row--secondary {
  margin-top: -0.35rem;
}

.edith-fancy-select-swatch {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.edith-task-filters {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin: 0.85rem 0 1rem;
  align-items: end;
}

.edith-task-filter-search .field-input,
.edith-task-search-input {
  margin-bottom: 0;
}

.edith-status-filter-wrap {
  min-width: 0;
}

.edith-task-list-wrap {
  padding: 0.85rem;
}

.edith-task-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.edith-task-list-empty {
  margin: 0.5rem 0;
}

.edith-task-card {
  margin: 0;
}

.edith-task-card-btn {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid rgba(127, 127, 127, 0.18);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.05);
  padding: 0.85rem 1rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.edith-task-card-btn:hover {
  background: rgba(21, 101, 192, 0.08);
  border-color: rgba(21, 101, 192, 0.28);
  transform: translateY(-1px);
}

.edith-task-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}

.edith-task-card-date {
  margin-left: auto;
}

.edith-task-card-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 600;
}

.edith-task-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.edith-task-card-hint {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.edith-task-card-btn:hover .edith-task-card-hint {
  opacity: 0.9;
}

.edith-task-card-preview {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.6rem;
  border-left: 3px solid rgba(21, 101, 192, 0.35);
  border-radius: 0 8px 8px 0;
  background: rgba(127, 127, 127, 0.06);
  font-style: italic;
  line-height: 1.4;
}

html[data-theme='dark'] .edith-task-detail-page .muted,
html[data-theme='dark'] .edith-task-card-btn .muted,
html[data-theme='dark'] .edith-task-detail-dialog .muted,
html[data-theme='dark'] .edith-task-detail-dialog .edith-task-detail-meta,
html[data-theme='dark'] .edith-task-detail-dialog .edith-task-detail-empty,
html[data-theme='dark'] .edith-task-detail-dialog .edith-task-detail-section-title {
  color: #c8d4e0;
}

html[data-theme='dark'] .edith-task-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .edith-task-card-btn:hover {
  background: rgba(100, 181, 246, 0.1);
  border-color: rgba(100, 181, 246, 0.28);
}

html[data-theme='dark'] .edith-task-card-preview {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(100, 181, 246, 0.45);
  color: #c8d4e0;
}

html[data-theme='dark'] .edith-task-search-input.field-input {
  background: rgba(255, 255, 255, 0.04);
  color: #e8eef5;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme='dark'] .edith-task-search-input.field-input::placeholder {
  color: rgba(232, 238, 245, 0.45);
}

@media (max-width: 820px) {
  .edith-task-filters {
    grid-template-columns: 1fr;
  }
  .edith-task-card-date {
    margin-left: 0;
  }
}

.edith-jira-connection,
.edith-jira-tenants,
.edith-jira-branding {
  width: 100%;
  max-width: none;
}

.edith-branding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.edith-branding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch;
}

.edith-branding-card {
  display: grid;
  grid-template-rows: 88px minmax(3.2rem, auto) auto auto 1fr auto;
  gap: 0.5rem;
  padding: 0.95rem;
  border: 1px solid rgba(127, 127, 127, 0.18);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.04);
  min-height: 100%;
  box-sizing: border-box;
}

.edith-branding-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  border-radius: 12px;
}

.edith-branding-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.edith-branding-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.edith-branding-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 3.2rem;
}

.edith-branding-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  font-size: 0.95rem;
}

.edith-branding-slug {
  line-height: 1.3;
}

.edith-branding-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.edith-branding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: auto;
}

.edith-branding-card .field-input {
  min-height: 40px;
  margin-bottom: 0;
  width: 100%;
}

.edith-branding-card .brand-msg {
  min-height: 1.1rem;
  margin: 0;
}

.header-atlas-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
