body {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 28%),
    linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
  min-height: 100vh;
}

.hero-panel {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.accordion-button:not(.collapsed) {
  background: rgba(13, 110, 253, 0.08);
  color: inherit;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.2);
}

.app-collapse-toggle {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-collapse-toggle:hover {
  color: inherit;
}

.app-collapse-toggle:focus {
  box-shadow: none;
}

.card,
.accordion-item {
  border-radius: 1rem;
}

.task-tree {
  display: grid;
  gap: 1rem;
}

.task-group {
  position: relative;
  padding-left: 1.5rem;
}

.task-group::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0.08));
}

.task-group__header {
  position: relative;
  margin-bottom: 0.75rem;
}

.task-group__header::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: 0 0 0 0.3rem rgba(13, 110, 253, 0.12);
}

.task-item {
  position: relative;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.task-item::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 1.25rem;
  width: 0.8rem;
  height: 2px;
  background: rgba(13, 110, 253, 0.25);
}

.task-item--empty {
  background: rgba(248, 249, 250, 0.9);
}

.task-item__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.35rem;
}

.task-item__link {
  color: inherit;
  text-decoration: none;
}

.task-item__link:hover {
  color: #0d6efd;
}

.snapshot-groups {
  display: grid;
  gap: 1rem;
}

.snapshot-group {
  position: relative;
  padding-left: 1rem;
}

.snapshot-group::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.24), rgba(13, 110, 253, 0.06));
}

.snapshot-group__header {
  margin-bottom: 0.5rem;
}

.compact-task-list {
  display: grid;
  gap: 0.35rem;
}

.compact-task-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.1);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.82);
}

.compact-task-row__main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.compact-task-row__drag {
  width: 1.9rem;
  height: 1.9rem;
  margin-top: 0.05rem;
}

.compact-task-row__content {
  min-width: 0;
  flex: 1 1 auto;
}

.compact-task-row__titleline {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.compact-task-row__meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compact-task-row__desc {
  margin-top: 0.2rem;
  line-height: 1.35;
}

.compact-task-row__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.compact-task-empty {
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
}

.collaboration-panel {
  border-top: 1px solid rgba(13, 110, 253, 0.12);
  padding-top: 1rem;
}

.detail-toolbar {
  border-top: 1px solid rgba(13, 110, 253, 0.12);
  border-bottom: 1px solid rgba(13, 110, 253, 0.12);
  padding: 1rem 0;
}

.detail-stack {
  display: grid;
  gap: 1rem;
}

.detail-collapsible {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 1rem 0.25rem;
}

.detail-collapsible__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.detail-collapsible__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.detail-collapsible__toggle:hover {
  color: inherit;
}

.detail-collapsible__toggle[aria-expanded='true'] .detail-collapsible__chevron {
  transform: rotate(180deg);
}

.detail-collapsible__chevron {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.detail-collapsible .status-notes-panel {
  border-top: 1px solid rgba(13, 110, 253, 0.1);
}

.app-offcanvas {
  width: min(40rem, 100vw);
}

.app-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(13, 110, 253, 0.12);
}

.app-offcanvas .offcanvas-body {
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

.app-offcanvas .collaboration-panel {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.comment-empty {
  border: 1px dashed rgba(13, 110, 253, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(248, 249, 250, 0.75);
  color: #6c757d;
  margin-bottom: 1rem;
}

.comment-bubble {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.9));
}

.detail-stat {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(248, 251, 255, 0.8);
}

.participant-pill-editor {
  display: grid;
  gap: 0.75rem;
}

.participant-pill-editor__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.5rem;
}

.participant-pill-editor__controls {
  max-width: 26rem;
  display: grid;
  gap: 0.5rem;
}

.participant-pill-editor__input-wrap {
  position: relative;
}

.participant-pill-editor__suggestions {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.participant-pill-editor__suggestion {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: transparent;
  text-align: left;
}

.participant-pill-editor__suggestion:hover {
  background: rgba(13, 110, 253, 0.08);
}

.participant-pill-editor__suggestion:disabled {
  opacity: 0.55;
}

.participant-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.18);
  color: #0a58ca;
}

.participant-pill__label {
  font-size: 0.95rem;
  line-height: 1.2;
}

.participant-pill__remove {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
}

.participant-pill__remove:hover {
  color: #084298;
}

.filter-summary {
  color: #6c757d;
  font-size: 0.95rem;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-toolbar .input-group {
  flex: 1 1 20rem;
  max-width: 34rem;
}

.client-list-row {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(13, 110, 253, 0.1);
}

.client-list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.client-list-row:last-child {
  padding-bottom: 0;
}

.icon-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #0d6efd;
  text-decoration: none;
}

.icon-action:hover {
  background: rgba(13, 110, 253, 0.08);
  color: #0a58ca;
}

.icon-action--danger {
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.18);
}

.icon-action--danger:hover {
  background: rgba(220, 53, 69, 0.08);
  color: #b02a37;
}

.icon-action--muted {
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.2);
}

.icon-action--muted:hover {
  color: #495057;
  background: rgba(108, 117, 125, 0.08);
}

.icon-action[disabled],
.icon-action.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.status-notes-panel {
  border-top: 1px solid rgba(13, 110, 253, 0.12);
  padding-top: 1rem;
}

.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 0.9rem;
  background: rgba(248, 251, 255, 0.72);
  overflow: hidden;
}

.status-note {
  border-top: 1px solid rgba(13, 110, 253, 0.12);
  padding: 0.75rem 0.9rem;
  background: transparent;
}

.status-note:first-child {
  border-top: 0;
}

.status-note--add {
  background: rgba(255, 255, 255, 0.18);
}

.inline-edit-form {
  margin: 0;
}

.inline-edit-form .input-group {
  align-items: stretch;
}

.checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.checklist-item {
  border-top: 1px solid rgba(13, 110, 253, 0.12);
  padding: 0.75rem 0.9rem;
  background: transparent;
}

.checklist-item:first-child {
  border-top: 0;
}

.checklist-item--add {
  background: rgba(13, 110, 253, 0.02);
}

.checklist-item--completed .checklist-item__text {
  text-decoration: line-through;
  color: #6c757d;
}

.checklist-item--dragging {
  opacity: 0.5;
}

.work-item-card--dragging {
  opacity: 0.5;
}

.checklist-item__drag {
  cursor: grab;
  flex-shrink: 0;
}

.work-item-card__drag {
  cursor: grab;
  flex-shrink: 0;
}

.checklist-toggle-form {
  flex-shrink: 0;
}

.checklist-toggle-form--placeholder {
  width: 1rem;
}

.checklist-inline-form {
  flex: 1 1 18rem;
}

.checklist-item__drag--placeholder {
  opacity: 0.35;
}

.checklist-item__text {
  word-break: break-word;
}
