@font-face {
  font-family: 'PP Telegraph';
  src: url('/static/PPTelegraf-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Telegraph';
  src: url('/static/PPTelegraf-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --royal-blue: #0000c1;
  --royal-blue-rgb: 0, 0, 193;
  --black: #111;
  --black-rgb: 17, 17, 17;
  --white: #fff;
  --white-rgb: 255, 255, 255;
  --surface-page-top: #f6f8fb;
  --surface-page-bottom: #eef3f8;
  --surface-card-top: #ffffff;
  --surface-card-bottom: #f8fbff;
  --surface-panel-bottom: #f4f7fb;
  --surface-muted: #f8f9fa;
  --note-surface: #fff8d9;
  --note-surface-strong: #fff3bf;
  --note-border: rgba(196, 157, 58, 0.28);
  --text-muted: #6c757d;
  --text-muted-strong: #495057;
  --danger: #dc3545;
  --danger-strong: #b02a37;
  --muted-rgb: 108, 117, 125;
  --danger-rgb: 220, 53, 69;
  --brand-02: rgba(var(--royal-blue-rgb), 0.02);
  --brand-04: rgba(var(--royal-blue-rgb), 0.04);
  --brand-06: rgba(var(--royal-blue-rgb), 0.06);
  --brand-08: rgba(var(--royal-blue-rgb), 0.08);
  --brand-10: rgba(var(--royal-blue-rgb), 0.1);
  --brand-12: rgba(var(--royal-blue-rgb), 0.12);
  --brand-14: rgba(var(--royal-blue-rgb), 0.14);
  --brand-16: rgba(var(--royal-blue-rgb), 0.16);
  --brand-18: rgba(var(--royal-blue-rgb), 0.18);
  --brand-20: rgba(var(--royal-blue-rgb), 0.2);
  --brand-24: rgba(var(--royal-blue-rgb), 0.24);
  --brand-25: rgba(var(--royal-blue-rgb), 0.25);
  --brand-30: rgba(var(--royal-blue-rgb), 0.3);
  --brand-32: rgba(var(--royal-blue-rgb), 0.32);
  --white-18: rgba(var(--white-rgb), 0.18);
  --white-72: rgba(var(--white-rgb), 0.72);
  --white-80: rgba(var(--white-rgb), 0.8);
  --white-82: rgba(var(--white-rgb), 0.82);
  --white-90: rgba(var(--white-rgb), 0.9);
  --white-92: rgba(var(--white-rgb), 0.92);
  --white-95: rgba(var(--white-rgb), 0.95);
  --white-96: rgba(var(--white-rgb), 0.96);
  --muted-08: rgba(var(--muted-rgb), 0.08);
  --muted-20: rgba(var(--muted-rgb), 0.2);
  --muted-22: rgba(var(--muted-rgb), 0.22);
  --danger-08: rgba(var(--danger-rgb), 0.08);
  --danger-18: rgba(var(--danger-rgb), 0.18);
  --status-slate-bg: var(--muted-08);
  --status-slate-text: var(--text-muted-strong);
  --status-slate-border: var(--muted-20);
  --status-sky-bg: rgba(13, 110, 253, 0.12);
  --status-sky-text: #0b5ed7;
  --status-sky-border: rgba(13, 110, 253, 0.22);
  --status-royal-bg: var(--brand-08);
  --status-royal-text: var(--royal-blue);
  --status-royal-border: var(--brand-18);
  --status-violet-bg: rgba(111, 66, 193, 0.12);
  --status-violet-text: #6f42c1;
  --status-violet-border: rgba(111, 66, 193, 0.2);
  --status-amber-bg: rgba(255, 193, 7, 0.16);
  --status-amber-text: #8a5a00;
  --status-amber-border: rgba(255, 193, 7, 0.28);
  --status-emerald-bg: rgba(25, 135, 84, 0.12);
  --status-emerald-text: #146c43;
  --status-emerald-border: rgba(25, 135, 84, 0.22);
  --status-rose-bg: rgba(220, 53, 69, 0.12);
  --status-rose-text: #b02a37;
  --status-rose-border: rgba(220, 53, 69, 0.2);
  --status-teal-bg: rgba(32, 201, 151, 0.12);
  --status-teal-text: #0f766e;
  --status-teal-border: rgba(32, 201, 151, 0.24);
  --bs-primary: var(--royal-blue);
  --bs-primary-rgb: var(--royal-blue-rgb);
}

.btn-outline-primary {
  --bs-btn-color: var(--royal-blue);
  --bs-btn-border-color: var(--royal-blue);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--royal-blue);
  --bs-btn-hover-border-color: var(--royal-blue);
  --bs-btn-focus-shadow-rgb: var(--royal-blue-rgb);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--royal-blue);
  --bs-btn-active-border-color: var(--royal-blue);
  --bs-btn-disabled-color: var(--royal-blue);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--royal-blue);
}

.btn-primary {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--royal-blue);
  --bs-btn-border-color: var(--royal-blue);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--black);
  --bs-btn-hover-border-color: var(--black);
  --bs-btn-focus-shadow-rgb: var(--royal-blue-rgb);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--black);
  --bs-btn-active-border-color: var(--black);
  --bs-btn-disabled-color: var(--white);
  --bs-btn-disabled-bg: var(--royal-blue);
  --bs-btn-disabled-border-color: var(--royal-blue);
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--black);
  background: var(--surface-page-top);
  min-height: 100vh;
}

h1, .h1, h2, .h2 {
  font-family: 'PP Telegraph', serif;
}

body:not(.page-dashboard) a:not(.nav-link):not(.navbar-brand):not(.app-nav-user__notifications):not(.app-notification-item):not(.app-nav-dashboard__item):not(.btn),
body:not(.page-dashboard) .btn-link:not(.nav-link) {
  color: var(--royal-blue);
}

body:not(.page-dashboard) a:not(.nav-link):not(.navbar-brand):not(.app-nav-user__notifications):not(.app-notification-item):not(.app-nav-dashboard__item):not(.btn):hover,
body:not(.page-dashboard) a:not(.nav-link):not(.navbar-brand):not(.app-nav-user__notifications):not(.app-notification-item):not(.app-nav-dashboard__item):not(.btn):focus,
body:not(.page-dashboard) .btn-link:not(.nav-link):hover,
body:not(.page-dashboard) .btn-link:not(.nav-link):focus {
  color: var(--royal-blue);
  text-decoration: underline;
}

.app-global-search {
  width: min(100%, 24rem);
  min-width: 0;
}

.app-global-search .input-group {
  width: 100%;
  min-width: 0;
}

.app-global-search .input-group-text {
  background: var(--white-95);
  flex: 0 0 auto;
}

.app-global-search .form-control,
.app-global-search .input-group-text {
  border-color: var(--white-18);
}

.app-global-search .form-control {
  min-width: 0;
}

.app-global-search .form-control::placeholder {
  color: var(--text-muted);
}

.search-page__form {
  max-width: 52rem;
}

.search-result-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-result-card:hover {
  transform: translateY(-1px);
}

.notebook-search-card__snippet {
  color: var(--text-primary);
  white-space: pre-wrap;
}

.notebook-feed-sentinel {
  border-top: 1px solid var(--brand-12);
}

@media (max-width: 991.98px) {
  .app-global-search {
    width: 100%;
    max-width: 100%;
    margin: 0.75rem 0 0;
  }

  .app-brand__name {
    display: none;
  }
}

.hero-panel {
  background: var(--brand-06);
  border: 1px solid var(--brand-12);
}

.stat-card {
  background: var(--surface-card-top);
}

.dashboard-filter-tile {
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-filter-tile:hover {
  transform: translateY(-2px);
}

.dashboard-filter-tile--active {
  background: var(--brand-08);
  border-color: var(--brand-32) !important;
  box-shadow: 0 0 0 0.2rem var(--brand-14), var(--bs-box-shadow-sm);
}

.dashboard-tile__title {
  transition: inherit;
}

.dashboard-tile__title--active {
  color: inherit;
}

.dashboard-mobile-tile-toggle__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--brand-14);
  border-radius: 1rem;
  background: var(--surface-card-top);
  color: inherit;
  text-align: left;
}

.dashboard-mobile-tile-toggle__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.dashboard-mobile-tile-toggle__title {
  display: block;
  font-weight: 700;
}

.dashboard-mobile-tile-toggle__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.dashboard-mobile-tile-toggle__button:not(.collapsed) .dashboard-mobile-tile-toggle__chevron {
  transform: rotate(180deg);
}

.halo-activity-panel {
  background:
    radial-gradient(circle at top right, rgba(var(--royal-blue-rgb), 0.08), transparent 32%),
    linear-gradient(180deg, var(--surface-card-top) 0%, var(--surface-card-bottom) 100%);
  border: 1px solid var(--brand-12);
}

.halo-psa-wordmark {
  display: inline-flex;
  align-items: center;
}

.halo-psa-wordmark__logo {
  display: block;
  height: 1.2rem;
  width: auto;
  flex: 0 0 auto;
}

.halo-psa-wordmark--compact {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.halo-icon-link {
  min-width: auto;
  padding-inline: 0.55rem;
}

.halo-icon-link__image {
  display: block;
  width: 1rem;
  height: 1rem;
}

.halo-activity-panel__summary {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10rem, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  align-items: stretch;
}

.halo-stat-card {
  border: 1px solid var(--brand-12);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--white-90);
}

.halo-stat-card--alerts {
  border-color: rgba(183, 110, 3, 0.22);
  background: rgba(255, 247, 229, 0.95);
}

.halo-stat-card--service-requests {
  border-color: rgba(109, 76, 145, 0.22);
  background: rgba(245, 240, 255, 0.95);
}

.halo-stat-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.halo-stat-card__value {
  font-family: 'PP Telegraph', serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1;
  margin: 0.2rem 0;
}

.halo-stat-card__meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.halo-activity-list {
  background: rgba(var(--white-rgb), 0.78);
  border: 1px solid var(--brand-10);
  border-radius: 1rem;
  height: 100%;
}

.halo-activity-list__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.5rem;
}

.halo-activity-list__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.halo-activity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--brand-12);
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.7);
}

.halo-activity-toggle__button {
  border: 0;
  background: transparent;
  color: var(--text-muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.halo-activity-toggle__button.is-active {
  background: var(--royal-blue);
  color: var(--white);
}

.halo-activity-table-wrap {
  padding: 0 1rem 1rem;
  overflow-x: auto;
}

.halo-activity-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.halo-activity-table th,
.halo-activity-table td {
  padding: 0.45rem 0.45rem;
  border-top: 1px solid var(--brand-10);
  vertical-align: top;
}

.halo-activity-table th {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(var(--white-rgb), 0.45);
  white-space: nowrap;
}

.sla-breaches-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sla-breaches-table__sort:hover,
.sla-breaches-table__sort:focus,
.sla-breaches-table__sort.is-active {
  color: var(--royal-blue);
}

.sla-breaches-table__sort-indicator {
  min-width: 0.55rem;
  font-size: 0.52rem;
}

.sla-breaches-table__vip {
  margin-left: 0.24rem;
  color: #f5b301;
  font-size: 0.72rem;
  vertical-align: middle;
}

.sla-breaches-table__on-hold {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.sla-breaches-table__assignee {
  margin-top: 0.25rem;
  color: var(--text-muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.halo-activity-table td {
  font-size: 0.72rem;
  color: var(--black);
  line-height: 1.25;
}

.sla-progress {
  min-width: 7rem;
}

.sla-progress__track {
  width: 100%;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--muted-20);
}

.sla-progress__bar {
  height: 100%;
  border-radius: inherit;
}

.sla-progress__bar--success {
  background: #198754;
}

.sla-progress__bar--warning {
  background: #ffc107;
}

.sla-progress__bar--danger {
  background: var(--danger);
}

.sla-progress__bar--paused {
  background: #8a939b;
}

.sla-progress__label {
  margin-top: 0.18rem;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.sla-mobile-cards {
  display: none;
}

.sla-mobile-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.sla-mobile-card:first-child {
  border-top: 0;
}

.sla-mobile-card--recent-breach {
  border-top-color: rgba(220, 53, 69, 0.45);
  background: #fff1f2;
}

.sla-mobile-card--recent-breach,
.sla-mobile-card--recent-breach a,
.sla-mobile-card--recent-breach .text-secondary {
  color: var(--danger) !important;
}

.sla-mobile-card__ticket {
  font-size: 0.86rem;
  font-weight: 800;
}

.sla-mobile-card__progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
}

.sla-mobile-card__progress .sla-progress {
  min-width: 0;
}

.sla-mobile-card__deadline {
  color: var(--secondary);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.sla-mobile-card__client {
  font-size: 0.78rem;
  font-weight: 700;
}

.sla-mobile-card__summary {
  display: block;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sla-alarm-flash {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  background: rgba(220, 53, 69, 0.5);
  opacity: 0;
}

.sla-alarm-flash--success {
  background: rgba(25, 135, 84, 0.45);
}

.sla-alarm-flash.is-active {
  animation: sla-alarm-flash 500ms step-end 10;
}

@keyframes sla-alarm-flash {
  0% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 767.98px) {
  .sla-table-wrap {
    display: none;
  }

  .sla-mobile-cards {
    display: block;
  }
}

.halo-activity-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--brand-12);
}

.halo-activity-pill--type {
  background: rgba(var(--white-rgb), 0.82);
  color: var(--text-muted-strong);
}

.halo-activity-pill--status {
  background: var(--halo-pill-bg, rgba(var(--royal-blue-rgb), 0.09));
  color: var(--halo-pill-text, var(--royal-blue));
  border-color: var(--halo-pill-border, rgba(var(--royal-blue-rgb), 0.16));
}

.halo-activity-table__link {
  color: var(--royal-blue);
  text-decoration: none;
}

.halo-activity-table__link:hover,
.halo-activity-table__link:focus {
  text-decoration: underline;
}

.halo-activity-table__link--id {
  font-weight: 700;
  white-space: nowrap;
}

.halo-activity-table__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: nowrap;
}

.halo-activity-table__link--title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--black);
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.halo-activity-table__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.halo-activity-table__summary-cell {
  max-width: 26rem;
}

.halo-activity-table__teams-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--royal-blue-rgb), 0.18);
  background: rgba(var(--royal-blue-rgb), 0.08);
  color: var(--royal-blue);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.halo-activity-table__teams-button:hover,
.halo-activity-table__teams-button:focus {
  background: rgba(var(--royal-blue-rgb), 0.14);
  border-color: rgba(var(--royal-blue-rgb), 0.28);
  color: var(--royal-blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.halo-activity-table__date {
  color: var(--text-muted);
  white-space: nowrap;
}

.halo-activity-table__time {
  font-size: 0.66rem;
}

.sla-breaches-table__row--recent-breach td {
  background: #fff1f2;
  color: var(--danger);
}

.sla-breaches-table__row--recent-breach a,
.sla-breaches-table__row--recent-breach .text-secondary,
.sla-breaches-table__row--recent-breach .sla-breaches-table__assignee {
  color: var(--danger) !important;
}

.halo-activity-list__empty {
  padding: 0 1rem 1rem;
}

.dashboard-view-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.dashboard-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--brand-14);
  border-radius: 999px;
  background: var(--surface-muted);
}

.dashboard-view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-view-tab:hover,
.dashboard-view-tab:focus {
  color: inherit;
  text-decoration: none;
  background: var(--brand-08);
}

.dashboard-view-tab--active {
  background: var(--royal-blue);
  color: var(--white);
  box-shadow: 0 0.45rem 0.8rem rgba(var(--royal-blue-rgb), 0.18);
}

.dashboard-timeline-summary-card {
  background: var(--surface-card-top);
}

.dashboard-timeline-group__count {
  align-self: start;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-08);
  color: var(--text-muted-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.dashboard-timeline-empty {
  padding: 1rem 0;
}

.dashboard-timeline-roadmap {
  --timeline-col-count: 15;
  --timeline-col-width: 7rem;
  --timeline-label-width: 13rem;
  --timeline-status-width: 8rem;
  --timeline-track-width: calc(var(--timeline-col-count) * var(--timeline-col-width));
  --timeline-row-min-height: 2.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
}

.dashboard-timeline-roadmap--weekly {
  --timeline-col-width: 7rem;
}

.dashboard-timeline-roadmap--monthly {
  --timeline-col-width: 7rem;
}

.dashboard-timeline-roadmap--quarterly {
  --timeline-col-width: 11rem;
}

.dashboard-timeline-roadmap--yearly {
  --timeline-col-width: 16rem;
}

.dashboard-timeline-grid {
  display: grid;
  grid-template-columns: var(--timeline-label-width) var(--timeline-status-width) var(--timeline-track-width);
  min-width: max-content;
  align-items: stretch;
}

.dashboard-timeline-grid--groups {
  grid-template-columns: calc(var(--timeline-label-width) + var(--timeline-status-width)) var(--timeline-track-width);
  margin-bottom: 0;
}

.dashboard-timeline-grid--header {
  margin-bottom: 0.5rem;
}

.dashboard-timeline-grid__client-col,
.dashboard-timeline-grid__status-col {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--brand-10);
  background: var(--surface-panel-bottom);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.dashboard-timeline-grid__cols {
  display: grid;
  grid-template-columns: repeat(var(--timeline-col-count), 1fr);
}

.dashboard-timeline-quarter,
.dashboard-timeline-month {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--brand-10);
  background: var(--surface-panel-bottom);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-timeline-month--current {
  color: inherit;
  background: transparent;
}

.dashboard-timeline-row {
  margin-bottom: 0;
}

.dashboard-timeline-client-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--brand-12);
}

.dashboard-timeline-client-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-timeline-client-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0.1rem 0.35rem;
}

.dashboard-timeline-client-group__titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.dashboard-client-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.dashboard-client-titleline__trigger,
.compact-task-row__panel-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.dashboard-inline-linkset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.dashboard-inline-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  flex: 0 0 auto;
  opacity: 0;
  visibility: visible;
  transition: opacity 0.16s ease, color 0.16s ease;
}

.dashboard-inline-linkset:hover .dashboard-inline-edit-link,
.dashboard-inline-linkset:focus-within .dashboard-inline-edit-link,
.dashboard-inline-edit-link:hover,
.dashboard-inline-edit-link:focus {
  opacity: 1;
  color: var(--royal-blue);
  text-decoration: none;
}

.dashboard-timeline-client-group__name {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}

.dashboard-timeline-client-group__meta {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.dashboard-timeline-project-label {
  display: grid;
  align-content: center;
  padding: 0 0.6rem 0 0.1rem;
  min-height: 2.6rem;
}

.dashboard-timeline-project-label__name {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-timeline-project-label__name--completed {
  font-weight: 400;
  text-decoration: line-through;
}

.dashboard-timeline-project-label__name:hover,
.dashboard-timeline-project-label__name:focus {
  color: var(--royal-blue);
  text-decoration: underline;
}

.dashboard-timeline-status-col {
  display: grid;
  align-content: center;
  gap: 0.08rem;
  padding-right: 0.5rem;
  min-height: 2.6rem;
}

.dashboard-timeline-status-text {
  color: var(--text-muted-strong);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-timeline-status-dates {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-timeline-track {
  position: relative;
  background: transparent;
  min-height: var(--timeline-row-min-height);
}

.dashboard-timeline-track__gridlines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--timeline-col-count), 1fr);
  pointer-events: none;
  z-index: 0;
}

.dashboard-timeline-track__cell {
  border-left: 1px solid var(--brand-08);
}

.dashboard-timeline-track__cell:last-child {
  border-right: 1px solid var(--brand-08);
}

.dashboard-timeline-track__cell--current {
  background: transparent;
}

.dashboard-timeline-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 1.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #d2e3ff;
  color: var(--black);
  text-decoration: none;
  box-shadow: 0 0.35rem 0.75rem rgba(83, 107, 148, 0.12);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(98, 126, 179, 0.16);
  appearance: none;
  cursor: pointer;
}

.dashboard-timeline-bar:hover,
.dashboard-timeline-bar:focus {
  color: var(--black);
  text-decoration: none;
}

.dashboard-timeline-bar--planned {
  background: #e4e8ed;
  box-shadow: 0 0.3rem 0.65rem rgba(92, 103, 117, 0.1);
  border-color: rgba(116, 128, 146, 0.16);
}

.dashboard-timeline-bar--completed {
  background: #ffffff;
  box-shadow: 0 0.3rem 0.65rem rgba(92, 103, 117, 0.08);
  border-color: rgba(116, 128, 146, 0.14);
  color: #7a7468;
}

.dashboard-timeline-bar--blocked {
  background: #d2e3ff;
  box-shadow: 0 0.35rem 0.75rem rgba(83, 107, 148, 0.12);
  border-color: rgba(98, 126, 179, 0.16);
}

.dashboard-timeline-bar--canceled {
  background: #e4e8ed;
  box-shadow: 0 0.3rem 0.65rem rgba(92, 103, 117, 0.1);
  border-color: rgba(116, 128, 146, 0.16);
}

.dashboard-timeline-bar--health-green {
  background: #cce9d9;
  box-shadow: 0 0.35rem 0.75rem rgba(61, 125, 80, 0.12);
  border-color: rgba(61, 125, 80, 0.18);
}

.dashboard-timeline-bar--health-amber {
  background: #f5df9a;
  box-shadow: 0 0.35rem 0.75rem rgba(170, 128, 26, 0.12);
  border-color: rgba(170, 128, 26, 0.18);
}

.dashboard-timeline-bar--health-red {
  background: #f5c4bc;
  box-shadow: 0 0.35rem 0.75rem rgba(170, 64, 43, 0.12);
  border-color: rgba(170, 64, 43, 0.18);
}

.dashboard-timeline-bar--health-n-a {
  background: #e4e8ed;
  box-shadow: 0 0.3rem 0.65rem rgba(92, 103, 117, 0.1);
  border-color: rgba(116, 128, 146, 0.16);
}

.dashboard-timeline-bar__label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-timeline-bar__priority {
  color: #c1121f;
  font-weight: 800;
  flex: 0 0 auto;
}

.dashboard-timeline-bar__health-indicator {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.dashboard-timeline-bar__health-indicator--green {
  background: #198754;
}

.dashboard-timeline-bar__health-indicator--amber {
  background: #d39e00;
}

.dashboard-timeline-bar__health-indicator--red {
  background: #dc3545;
}

.dashboard-timeline-bar__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-timeline-bar__name--completed {
  color: #7a7468;
}

.dashboard-timeline-bar__date {
  flex: 0 0 auto;
  font-size: 0.72rem;
  opacity: 0.82;
}

.dashboard-timeline-panel-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.dashboard-detail-panel {
  display: grid;
  gap: 1.25rem;
}

.dashboard-detail-panel__section {
  display: grid;
  gap: 0.55rem;
}

.dashboard-detail-panel__headline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-detail-panel__headline-action {
  margin-top: 0.1rem;
}

.dashboard-detail-panel__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dashboard-detail-panel__headline {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.dashboard-detail-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  color: var(--text-muted-strong);
  font-size: 0.9rem;
}

.dashboard-detail-panel__description {
  margin: 0;
  color: var(--text-muted-strong);
}

.dashboard-detail-panel__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-detail-panel__priority {
  color: var(--danger-strong);
  font-weight: 700;
}

.dashboard-detail-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-detail-panel__stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.dashboard-detail-panel__stat-value {
  color: var(--black);
  font-weight: 600;
}

.dashboard-detail-panel__list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.dashboard-detail-panel__list--two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.dashboard-detail-panel__list div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--brand-10);
}

.dashboard-detail-panel__list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-detail-panel__list dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dashboard-detail-panel__list dd {
  margin: 0;
  color: var(--black);
}

.dashboard-detail-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-detail-panel__note {
  color: var(--black);
}

.dashboard-detail-panel__stack {
  display: grid;
  gap: 0.75rem;
}

.dashboard-detail-panel__service-list {
  display: grid;
  gap: 0.25rem;
}

.dashboard-detail-panel__service-row {
  margin: 0;
}

.dashboard-detail-panel__service-health {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
}

.dashboard-detail-panel__subtasks {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-left: 1.4rem;
}

.dashboard-detail-panel__subtask {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--black);
}

.dashboard-detail-panel__checkrow {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.dashboard-detail-panel__checkicon {
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.dashboard-detail-panel__checkicon--done {
  color: #198754;
}

.dashboard-detail-panel__checkicon--open {
  color: var(--text-muted);
}

.dashboard-detail-panel__link {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--royal-blue);
}

.dashboard-detail-panel__link:hover,
.dashboard-detail-panel__link:focus {
  text-decoration: none;
  color: var(--royal-blue);
}

.dashboard-detail-panel__link-label {
  color: var(--royal-blue);
  font-weight: 600;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.form-label {
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.client-combobox__source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.client-combobox {
  display: grid;
  gap: 0.35rem;
}

.client-combobox__hint {
  margin-top: 0;
}

.app-brand__icon {
  width: 1.3rem;
  height: 1.3rem;
  display: inline-block;
}

.app-brand__name {
  display: inline-block;
}

.app-nav-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 100%;
  margin-bottom: 0;
}

.app-nav-dashboard {
  gap: 0.15rem;
}

.app-nav-dashboard__toggle {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  color: var(--bs-navbar-color);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-nav-dashboard__toggle:hover,
.app-nav-dashboard__toggle:focus,
.app-nav-dashboard__toggle:focus-visible,
.app-nav-dashboard__toggle:active,
.show > .app-nav-dashboard__toggle {
  color: var(--bs-navbar-hover-color);
  background: transparent;
  box-shadow: none;
}

.app-nav-dashboard__toggle.active {
  color: var(--bs-navbar-active-color);
}

.app-nav-dashboard__toggle::after {
  margin-left: 0;
  border-top-color: currentColor;
}

.app-nav-dashboard .dropdown-menu {
  min-width: 15rem;
}

.app-nav-dashboard__item,
.app-nav-dashboard__item:hover,
.app-nav-dashboard__item:focus,
.app-nav-dashboard__item:active {
  color: var(--bs-dropdown-link-color);
  text-decoration: none;
}

.app-nav-user__notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  background: var(--white-18);
  transition: background-color 0.18s ease, transform 0.18s ease;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.app-nav-user__notifications:hover,
.app-nav-user__notifications:focus-visible {
  color: var(--white);
  background: var(--white-80);
  transform: translateY(-1px);
}

.app-nav-user__notifications::after {
  display: none;
}

.app-nav-user__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3c300;
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.app-notification-menu {
  width: min(26rem, calc(100vw - 2rem));
  max-height: 26rem;
  overflow: hidden;
  border: 1px solid var(--brand-16);
  box-shadow: 0 1.1rem 2rem rgba(var(--black-rgb), 0.18);
}

.app-notification-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--brand-06);
  border-bottom: 1px solid var(--brand-10);
}

.app-notification-menu__empty {
  padding: 1rem;
  color: var(--text-muted);
}

[data-unread-status-notifications-list] {
  max-height: 21rem;
  overflow-y: auto;
}

.app-notification-menu__section + .app-notification-menu__section {
  border-top: 1px solid var(--brand-10);
}

.app-notification-menu__section-title {
  padding: 0.7rem 1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(var(--black-rgb), 0.02);
}

.app-notification-item {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--muted-08);
  white-space: normal;
  text-decoration: none;
}

.app-notification-item:hover,
.app-notification-item:focus,
.app-notification-item:focus-visible {
  text-decoration: none;
}

.app-notification-item:last-child {
  border-bottom: 0;
}

.app-notification-item__eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.app-notification-item__client {
  margin-bottom: 0.1rem;
  font-size: 0.84rem;
  color: var(--text-muted-strong);
}

.app-notification-item__author {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.app-notification-item__message {
  color: var(--text-muted-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-save-toast-region {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1095;
  pointer-events: none;
}

.app-save-toast {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: min(14rem, calc(100vw - 2rem));
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--view1-topbar-blue, var(--royal-blue)) 0%, var(--view1-topbar-blue-alt, #154ed6) 100%);
  color: var(--white);
  box-shadow: 0 1rem 2.25rem rgba(var(--black-rgb), 0.24);
  transform: translateY(1rem);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(12px);
}

.app-save-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-save-toast--muted {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--view1-topbar-blue, var(--royal-blue)) 0%, var(--view1-topbar-blue-alt, #154ed6) 100%);
}

.app-save-toast--success {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #003f9e 0%, #0f6bcf 55%, #0b8f8a 100%);
}

.app-save-toast--error {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #001f78 0%, #1540ad 58%, #b02a37 100%);
}

.app-save-toast__message {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.app-save-toast__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9fd0ff;
}

.app-save-toast__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    align-items: center;
  }

  .navbar-expand-lg .navbar-nav .nav-item {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .app-save-toast-region {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .app-save-toast {
    max-width: min(12rem, calc(100vw - 1.5rem));
  }

  .dashboard-view-tabs {
    width: 100%;
  }

  .dashboard-view-tab {
    flex: 1 1 0;
    min-width: 0;
  }
}

.accordion-button:not(.collapsed) {
  background: var(--brand-08);
  color: inherit;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--brand-20);
}

.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: var(--brand-20);
}

.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: var(--royal-blue);
  box-shadow: 0 0 0 0.3rem var(--brand-12);
}

.task-item {
  position: relative;
  border: 1px solid var(--brand-12);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--white-72);
}

.task-item::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 1.25rem;
  width: 0.8rem;
  height: 2px;
  background: var(--brand-25);
}

.task-item--empty {
  background: var(--surface-muted);
}

.task-item__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.task-item__eyebrow-link {
  text-decoration: none;
}

.task-item__eyebrow-link:hover,
.task-item__eyebrow-link:focus {
  color: var(--royal-blue);
  text-decoration: underline;
}

.task-item__link {
  color: var(--royal-blue);
  text-decoration: none;
}

.task-item__link:hover,
.task-item__link:focus {
  color: var(--royal-blue);
  text-decoration: underline;
}

body.page-dashboard .task-item__link,
body.page-dashboard .task-item__eyebrow-link {
  color: inherit;
}

body.page-dashboard .task-item__link:hover,
body.page-dashboard .task-item__link:focus,
body.page-dashboard .task-item__eyebrow-link:hover,
body.page-dashboard .task-item__eyebrow-link:focus {
  color: inherit;
  text-decoration: none;
}

.external-link__anchor {
  color: var(--royal-blue);
}

.external-link__anchor:hover,
.external-link__anchor:focus {
  color: var(--royal-blue);
}

.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: var(--brand-16);
}

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

.snapshot-group__header-main {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.2;
}

.snapshot-group__quick-add-row {
  padding: 0.75rem;
}

.snapshot-group__quick-add-row .input-group {
  flex-wrap: nowrap;
}

.snapshot-group__quick-add-row .form-control {
  min-width: 0;
}

.snapshot-client-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.snapshot-client-flags__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--brand-16);
  background: var(--brand-08);
  color: var(--royal-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-client-flags--compact {
  gap: 0.25rem;
  margin-bottom: 0;
}

.snapshot-client-flags--compact .snapshot-client-flags__pill {
  padding: 0.12rem 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  border-color: var(--brand-12);
}

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

.my-work-section {
  display: grid;
  gap: 0.9rem;
}

.my-work-section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.my-work-section-divider::before,
.my-work-section-divider::after {
  content: '';
  flex: 1 1 auto;
  border-top: 1px solid var(--brand-14);
}

.compact-task-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  border: 1px solid var(--brand-10);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: var(--white-82);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.compact-task-row--closed {
  opacity: 0.82;
}

.compact-task-row--planned {
  background: var(--muted-06);
}

.compact-task-row:hover,
.compact-task-row:focus-within {
  background: var(--white);
  border-color: var(--brand-18);
}

.compact-task-row--planned:hover,
.compact-task-row--planned:focus-within {
  background: var(--muted-10);
}

.compact-task-row--on-hold {
  background: var(--muted-08);
  border-color: var(--muted-22);
  color: var(--text-muted);
}

.compact-task-row__text--closed {
  color: var(--text-muted) !important;
  text-decoration: line-through;
  font-weight: 400 !important;
}

.compact-task-row__text--planned {
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}


.compact-task-row--planned .compact-task-row__meta,
.compact-task-row--planned .task-item__eyebrow,
.compact-task-row--planned .task-item__link,
.compact-task-row--planned .work-item-name-inline-input--snapshot {
  color: var(--text-muted) !important;
}

.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: auto;
  height: auto;
  margin-top: 0.05rem;
}

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

.compact-task-row__desktop-details {
  display: block;
}

.compact-task-row__mobile-summary {
  display: none;
}

.compact-task-row__mobile-card-link {
  display: none;
}

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

.compact-task-row__project-name {
  font-size: 1.05rem;
  line-height: 1.25;
}

.compact-task-row__project-number {
  font-size: 0.92rem;
}

.compact-task-row__project-client {
  margin-bottom: 0.35rem;
}

.compact-task-row__project-client-link {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.82;
}

.compact-task-row__summary-edit-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.compact-task-row__summary-edit-row .my-work-inline-edit-form--description {
  flex: 1 1 24rem;
  min-width: 0;
}

.compact-task-row__priority-form {
  flex: 0 0 11rem;
  min-width: 11rem;
}

.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__desc-input {
  min-height: 0;
  resize: none;
  white-space: nowrap;
  overflow-y: hidden;
}

.compact-task-row__mobile-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
  margin-top: 0.15rem;
  position: relative;
  z-index: 3;
}

.compact-task-row__mobile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.compact-task-row__mobile-topline,
.compact-task-row__mobile-meta,
.compact-task-row__mobile-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.compact-task-row__mobile-badges {
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: 45%;
}

.compact-task-row__mobile-status {
  margin-top: 0.35rem;
  line-height: 1.35;
}

.compact-task-row__mobile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.55rem;
  position: relative;
  z-index: 3;
}

.compact-task-row__mobile-milestones {
  position: relative;
  z-index: 3;
}

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

body.page-my-work .compact-task-row__actions {
  flex-direction: column;
  align-items: flex-end;
}

.work-item-name-inline-form {
  margin: 0;
}

.work-item-name-inline-form--snapshot {
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
}

.work-item-name-inline-form--detail {
  max-width: 42rem;
}

.work-item-name-inline-form .input-group {
  flex-wrap: nowrap;
}

.work-item-name-inline-input {
  min-width: 0;
}

.work-item-name-inline-input--snapshot {
  font-weight: 600;
}

.work-item-name-inline-input--detail {
  font-weight: 700;
}

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

.collaboration-panel {
  border-top: 1px solid var(--brand-12);
  padding-top: 1rem;
}

.detail-toolbar {
  border-top: 1px solid var(--brand-12);
  border-bottom: 1px solid var(--brand-12);
  padding: 1rem 0;
}

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

.detail-collapsible {
  border: 1px solid var(--brand-12);
  border-radius: 1rem;
  background: var(--white-80);
  padding: 0.7rem 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 var(--brand-10);
}

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

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

.app-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--brand-12);
}

.app-offcanvas .offcanvas-body {
  background: var(--surface-panel-bottom);
}

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

.comment-empty {
  border: 1px dashed var(--brand-20);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface-muted);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.comment-bubble {
  border: 1px solid var(--brand-12);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface-card-top);
}

.markdown-note-card {
  background: var(--note-surface);
  border: 1px solid var(--note-border);
}

.markdown-note-panel-card {
  background: var(--surface-card-top);
}

.notebook-entry-card {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.notebook-entry-card:hover,
.notebook-entry-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 2rem rgba(180, 145, 48, 0.18);
}

.notebook-entry-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.notebook-entry-title--hero {
  -webkit-line-clamp: 3;
}

.markdown-note-rendered {
  color: var(--text-primary);
  line-height: 1.6;
  word-break: break-word;
}

.markdown-note-rendered > :last-child {
  margin-bottom: 0;
}

.markdown-note-rendered p,
.markdown-note-rendered ul,
.markdown-note-rendered ol,
.markdown-note-rendered blockquote,
.markdown-note-rendered pre,
.markdown-note-rendered h1,
.markdown-note-rendered h2,
.markdown-note-rendered h3,
.markdown-note-rendered h4,
.markdown-note-rendered h5,
.markdown-note-rendered h6 {
  margin-bottom: 0.85rem;
}

.markdown-note-rendered h1,
.markdown-note-rendered h2,
.markdown-note-rendered h3,
.markdown-note-rendered h4,
.markdown-note-rendered h5,
.markdown-note-rendered h6 {
  font-family: 'PP Telegraph', serif;
  line-height: 1.2;
}

.markdown-note-rendered h1 {
  font-size: 1.45rem;
}

.markdown-note-rendered h2 {
  font-size: 1.25rem;
}

.markdown-note-rendered h3 {
  font-size: 1.1rem;
}

.markdown-note-rendered ul,
.markdown-note-rendered ol {
  padding-left: 1.2rem;
}

.markdown-note-rendered blockquote {
  margin-left: 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid var(--brand-18);
  color: var(--text-muted-strong);
}

.markdown-note-rendered code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.4rem;
  background: var(--brand-08);
  font-size: 0.92em;
}

.markdown-note-rendered pre {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: #132033;
  color: var(--white);
  overflow-x: auto;
}

.markdown-note-rendered pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.markdown-note-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0;
  border-radius: 0.9rem;
  border: 1px solid var(--brand-12);
  background: var(--surface-card-bottom);
}

.markdown-note-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--brand-12);
  border-radius: 999px;
  background: var(--surface-card-bottom);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.markdown-note-attachment .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--brand-08);
  color: var(--text-muted-strong);
  font-size: 0.9rem;
  line-height: 1;
  flex: 0 0 auto;
}

.markdown-note-attachment:hover,
.markdown-note-attachment:focus-visible {
  border-color: var(--brand-18);
  color: var(--text-primary);
  text-decoration: none;
}

.notebook-entry-preview {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notebook-editor {
  display: grid;
  gap: 1rem;
}

.notebook-editor__input {
  min-height: min(70vh, 50rem);
  font-family: inherit;
  line-height: 1.65;
}

.notebook-fullscreen-view {
  min-height: 18rem;
}

.detail-stat {
  border: 1px solid var(--brand-12);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface-card-bottom);
}

.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;
  position: relative;
}

.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 var(--brand-14);
  background: var(--white-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: var(--brand-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: var(--brand-10);
  border: 1px solid var(--brand-18);
  color: var(--royal-blue);
}

.participant-pill__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--brand-18);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.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: var(--black);
}

.participant-pill-editor--mini {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.participant-pill-editor--mini .participant-pill-editor__selected {
  flex: 1 1 auto;
  min-height: auto;
  gap: 0.35rem;
}

.participant-pill-editor--mini .participant-pill-editor__controls {
  flex: 0 0 auto;
  width: min(13rem, 100%);
  max-width: 13rem;
}

.participant-pill-editor--mini .participant-pill-editor__suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  width: 100%;
  z-index: 12;
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
}

.participant-pill--mini {
  gap: 0.3rem;
  padding: 0.2rem 0.4rem 0.2rem 0.55rem;
}

.participant-pill--mini .participant-pill__label {
  display: inline-block;
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}

.participant-pill--mini .participant-pill__remove {
  width: 1rem;
  height: 1rem;
}

.my-work-collaborators {
  display: grid;
  gap: 0.35rem;
}

.my-work-collaborators__label {
  line-height: 1.2;
}

.my-work-collaborators__form {
  display: grid;
  gap: 0.45rem;
}

.my-work-collaborators__owner {
  max-width: 15rem;
}

@media (max-width: 767.98px) {
  .participant-pill-editor--mini .participant-pill-editor__controls {
    width: 100%;
    max-width: none;
  }
}

.filter-summary {
  color: var(--text-muted);
  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;
}

.my-work-toolbar {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  align-items: end;
  gap: 1rem 1.25rem;
}

.my-work-toolbar__user-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 0.75rem;
  margin: 0;
}

.my-work-toolbar__user-field {
  min-width: 0;
}

.my-work-toolbar__search {
  min-width: 0;
}

.my-work-toolbar__search .input-group {
  max-width: none;
}

.my-work-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.my-work-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.my-work-mode-pill:hover,
.my-work-mode-pill:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.my-work-mode-pill.is-active {
  box-shadow: 0 0 0 0.2rem rgba(var(--black-rgb), 0.08);
}

.my-work-mode-pill--recent {
  color: #0f3c84;
  background: #e6f0ff;
  border-color: #bad0ff;
}

.my-work-mode-pill--stale {
  color: #7a4600;
  background: #fff2dd;
  border-color: #f2c98e;
}

.my-work-mode-pill--raid {
  color: #7c113f;
  background: #ffe5ef;
  border-color: #efb2cb;
}

.my-work-mode-pill--all {
  color: #1c4b43;
  background: #e6f5f1;
  border-color: #b6ddd4;
}

.my-work-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.25rem;
  border: 1px solid rgba(var(--black-rgb), 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.my-work-view-toggle__button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.my-work-view-toggle__button:hover,
.my-work-view-toggle__button:focus {
  color: var(--text-primary);
  text-decoration: none;
}

.my-work-view-toggle__button.is-active {
  background: rgba(var(--black-rgb), 0.08);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(var(--black-rgb), 0.04);
}

.my-work-status-row {
  display: grid;
  grid-template-columns: minmax(10rem, 12rem) minmax(9rem, 11rem) minmax(0, 1.8fr);
  gap: 0.75rem;
  align-items: start;
}

.my-work-status-row .inline-edit-form {
  min-width: 0;
}

.my-work-status-row .inline-edit-form:last-child {
  width: 100%;
}

.my-work-status-row .input-group {
  flex-wrap: nowrap;
}

.my-work-status-row .form-select,
.my-work-status-row .form-control {
  min-width: 0;
}

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

.my-work-inline-edit-form .input-group {
  flex-wrap: nowrap;
}

.my-work-inline-edit-form--description {
  margin-top: 0.2rem;
}

.my-work-inline-edit-form--description .icon-action {
  align-self: stretch;
  width: 2rem;
  min-height: 100%;
  border-radius: 0 0.5rem 0.5rem 0;
}

.my-work-inline-edit-form--date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.my-work-inline-edit-form--date .input-group {
  width: auto;
}

.my-work-inline-edit-form--date .form-control {
  min-width: 9.5rem;
}

.my-work-inline-edit-form__label {
  font-weight: 600;
  color: inherit;
}

.my-work-inline-edit-form__hint {
  color: var(--text-muted);
}

.my-work-inline-edit-form__label--attention {
  background: #f6e7a1;
  color: #6a5200;
}

.my-work-inline-link {
  color: var(--royal-blue);
}

.my-work-inline-link:hover,
.my-work-inline-link:focus {
  color: var(--royal-blue);
  text-decoration: underline !important;
}

.work-item-date-picker-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

@media (max-width: 991.98px) {
  .my-work-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .my-work-toolbar__user-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .my-work-mode-pills {
    gap: 0.5rem;
  }

  .my-work-view-toggle {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .my-work-status-row {
    grid-template-columns: 1fr;
  }

  .my-work-inline-edit-form--date {
    width: 100%;
  }

  .my-work-inline-edit-form--date .input-group {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  body.page-my-work .compact-task-row {
    padding: 0.7rem 0.75rem;
    border-radius: 0.95rem;
  }

  body.page-my-work .compact-task-row__desktop-details,
  body.page-my-work .compact-task-row__actions--desktop {
    display: none !important;
  }

  body.page-my-work .compact-task-row__mobile-summary {
    display: block;
  }

  body.page-my-work .compact-task-row__mobile-card-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
  }

  body.page-my-work .compact-task-row__main {
    position: relative;
    z-index: 2;
    width: 100%;
  }

  body.page-my-work .compact-task-row__content {
    width: 100%;
  }
}

.client-list-row {
  padding: 0.85rem 0;
  border-top: 1px solid var(--brand-10);
}

.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 var(--brand-18);
  background: var(--white-90);
  color: var(--royal-blue);
  text-decoration: none;
}

.icon-action--with-badge {
  position: relative;
}

.icon-action__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text-muted);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.icon-action:hover {
  background: var(--brand-08);
  color: var(--black);
}

.icon-action--danger {
  color: var(--danger);
  border-color: var(--danger-18);
}

.icon-action--danger:hover {
  background: var(--danger-08);
  color: var(--danger-strong);
}

.icon-action--muted {
  color: var(--text-muted);
  border-color: var(--muted-20);
}

.icon-action--active {
  color: var(--royal-blue);
  border-color: var(--brand-24);
  background: var(--brand-08);
}

.icon-action--muted:hover {
  color: var(--text-muted-strong);
  background: var(--muted-08);
}

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

.status-notes-panel {
  border-top: 1px solid var(--brand-12);
  padding-top: 1rem;
}

.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--brand-12);
  border-radius: 0.9rem;
  background: var(--surface-card-bottom);
  overflow: hidden;
}

.status-note {
  border-top: 1px solid var(--brand-12);
  padding: 0.75rem 0.9rem;
  background: transparent;
}

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

.external-links-list {
  display: block;
}

.external-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--brand-12);
  padding: 0.5rem 0;
  min-width: 0;
}

.external-link-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.external-link-row__content {
  min-width: 0;
  flex: 1 1 auto;
}

.external-link-row__actions {
  flex: 0 0 auto;
}

.raid-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.raid-log-item {
  border-top: 1px solid var(--brand-12);
  padding: 0.9rem 0;
  background: transparent;
}

.raid-log-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.raid-log-grid {
  display: grid;
  grid-template-columns: minmax(11.5rem, 13.5rem) minmax(16rem, 2fr) minmax(8rem, 10rem) minmax(8rem, 10rem) auto;
  gap: 0.75rem 1rem;
  align-items: start;
}

.raid-log-grid__badges {
  flex-wrap: nowrap;
}

.raid-log-grid__title {
  min-width: 0;
}

.raid-log-grid__owner,
.raid-log-grid__date {
  white-space: nowrap;
}

.raid-log-grid__actions {
  justify-self: end;
}

.raid-log-status-select {
  min-width: 8.5rem;
  width: auto;
}

.my-work-raid-grid {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 0.65rem;
}

.my-work-raid-grid .raid-log-grid__title {
  align-self: start;
}

.my-work-raid-grid .raid-log-grid__badges {
  align-self: start;
}

.my-work-raid-inline-form {
  width: 100%;
}

.my-work-raid-inline-form .row {
  justify-content: flex-start;
}

.my-work-raid-inline-form .col-md-4,
.my-work-raid-inline-form .col-md-8 {
  display: flex;
  align-items: flex-start;
}

.my-work-raid-inline-form .col-md-4 {
  flex: 0 0 8.5rem;
  width: 8.5rem;
  max-width: 8.5rem;
}

.my-work-raid-inline-form .col-md-8 {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
}

.my-work-raid-inline-form .input-group,
.my-work-raid-inline-form .form-select {
  width: 100%;
}

.my-work-raid-inline-title {
  padding: 0.35rem 0;
  color: var(--text-body);
  line-height: 1.35;
  min-height: calc(1.5em + 0.7rem + 2px);
  display: flex;
  align-items: center;
}

.my-work-card-raid {
  border-top: 1px solid var(--brand-12);
  padding-top: 0.8rem;
}

.my-work-card-raid__heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.my-work-card-raid__heading-link {
  font-size: 0.9rem;
  line-height: 1.2;
}

.my-work-card-raid__add {
  flex: 0 0 auto;
}

.my-work-card-raid__list {
  display: block;
}

.my-work-card-raid__row {
  border-top: 1px solid var(--brand-12);
  padding: 0.55rem 0;
}

.my-work-card-raid__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.my-work-card-raid__mobile-summary {
  display: none;
}

.my-work-card-raid__mobile-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.my-work-card-raid__mobile-title {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.3;
  min-width: 0;
}

.my-work-card-raid__grid {
  display: grid;
  grid-template-columns: 4.35rem 8.75rem minmax(0, 1fr) 8.75rem 10rem;
  gap: 0.35rem 0.3rem;
  align-items: center;
}

.my-work-card-raid__type,
.my-work-card-raid__status,
.my-work-card-raid__title,
.my-work-card-raid__meta {
  min-width: 0;
}

.my-work-card-raid__type {
  width: 4.35rem;
}

.my-work-card-raid__status {
  width: 8.75rem;
}

.my-work-card-raid__title {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.3;
}

.my-work-card-raid__meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.25;
}

.my-work-raid-row-form {
  margin: 0;
}

.my-work-raid-row-form .form-select {
  width: 100%;
}

@media (max-width: 991.98px) {
  .raid-log-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .raid-log-grid__badges,
  .raid-log-grid__title {
    grid-column: 1 / 2;
  }

  .raid-log-grid__owner,
  .raid-log-grid__date {
    grid-column: 1 / 2;
    white-space: normal;
  }

  .raid-log-grid__actions {
    grid-column: 2 / 3;
    grid-row: 1 / span 4;
    align-self: start;
  }

  .my-work-raid-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .my-work-raid-grid .raid-log-grid__badges,
  .my-work-raid-grid .raid-log-grid__title {
    grid-column: 1 / 2;
  }

  .my-work-card-raid__grid {
    display: none;
  }

  .my-work-card-raid__mobile-summary {
    display: none;
  }

  .my-work-card-raid {
    display: none;
  }
}

.status-note--add {
  background: var(--white-18);
}

.status-note-list {
  display: block;
}

.status-note-row {
  border-top: 1px solid var(--brand-12);
  padding: 0.9rem 0;
  background: transparent;
  min-width: 0;
}

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

.status-note-list--compact .status-note-row {
  padding: 0.25rem 0;
}

.status-note-list--compact .status-note-row__grid {
  align-items: center;
  gap: 0.4rem 0.85rem;
}

.status-note-list--compact .status-note-row__actions .icon-action {
  width: 1.75rem;
  height: 1.75rem;
}

.status-note-row__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem) auto;
  gap: 0.75rem 1rem;
  align-items: start;
}

.status-note-row__grid--link {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.status-note-row__text {
  color: var(--text-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}

.status-note-row__actions {
  justify-self: end;
}

.status-note-item__meta {
  margin-bottom: 0.45rem;
}

@media (max-width: 991.98px) {
  .status-note-row__grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .status-note-row__text {
    grid-column: 1 / 2;
  }

  .status-note-item__meta {
    grid-column: 1 / 2;
    margin-bottom: 0;
  }

  .status-note-row__actions {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    align-self: start;
  }
}

.status-note-item .form-control,
.status-note-item .input-group {
  min-width: 0;
}

.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 var(--brand-12);
  border-radius: 0.9rem;
  background: var(--white-92);
  overflow: hidden;
}

.checklist-item {
  border-top: 1px solid var(--brand-12);
  padding: 0.75rem 0.9rem;
  background: transparent;
}

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

.checklist-item--add {
  background: var(--brand-02);
}

.checklist-item--completed > .checklist-item__row .checklist-item__text,
.checklist-subtasks__item.checklist-item--completed > .checklist-item__row .checklist-item__text {
  text-decoration: line-through;
  color: var(--text-muted);
}

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

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

.checklist-item__drag {
  cursor: grab;
  flex-shrink: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.work-item-card__drag {
  cursor: grab;
  flex-shrink: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.checklist-item__drag:hover,
.work-item-card__drag:hover {
  background: transparent;
}

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

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

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

.checklist-inline-form--milestone {
  min-width: min(100%, 26rem);
}

.checklist-inline-form--subtask {
  min-width: min(100%, 22rem);
}

.checklist-inline-form--milestone .input-group,
.checklist-inline-form--subtask .input-group {
  flex-wrap: nowrap;
}

.checklist-inline-form__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.checklist-inline-form__input-group {
  flex: 1 1 16rem;
  min-width: 0;
}

.checklist-inline-form__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 1 auto;
  margin-left: auto;
  flex-wrap: wrap;
}

.checklist-inline-form--milestone .form-control,
.checklist-inline-form--subtask .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.checklist-inline-form__date-group {
  flex: 0 0 auto;
  width: auto;
}

.checklist-inline-form__date-input {
  width: 8rem;
  min-width: 8rem;
}

.checklist-inline-form--milestone .icon-action,
.checklist-inline-form--subtask .icon-action {
  flex: 0 0 auto;
}

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

.checklist-item__text {
  font-size: 0.94rem;
  line-height: 1.35;
  word-break: break-word;
}

.checklist-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.checklist-item__row--subtask {
  padding-left: 0.25rem;
}

.checklist-item__text-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.checklist-item__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-left: auto;
  flex-wrap: wrap;
}

.checklist-item__date-pill {
  white-space: nowrap;
}

.checklist-subtasks {
  margin-top: 0.75rem;
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--brand-12);
}

.checklist-subtasks__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist-subtasks__list--empty {
  min-height: 2.5rem;
  padding: 0.35rem;
  border: 1px dashed var(--brand-12);
  border-radius: 0.8rem;
  background: var(--surface-muted);
}

.checklist-subtasks__item {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--brand-12);
  border-radius: 0.8rem;
  background: var(--surface-card-top);
}

.checklist-assignee-editor {
  min-width: 10rem;
}

.checklist-assignee-editor__select {
  min-width: 9.5rem;
  width: 9.5rem;
}

@media (max-width: 767.98px) {
  .app-offcanvas--wide {
    --bs-offcanvas-width: 100vw;
    width: 100vw;
    max-width: 100vw;
  }

  .checklist-inline-form__meta,
  .checklist-item__meta {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .dashboard-tile-grid .card {
    min-height: auto;
  }

  .dashboard-tile-grid .card-body {
    padding: 0.8rem 0.9rem;
  }

  .dashboard-tile-grid .display-6 {
    font-size: 1.45rem;
    line-height: 1.05;
  }

  .dashboard-tile-grid .small {
    font-size: 0.72rem;
  }

  .dashboard-tile-grid .h6,
  .dashboard-tile-grid .text-uppercase {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }

  .dashboard-filter-tile {
    border-radius: 0.9rem;
  }

  .filter-toolbar .input-group {
    max-width: none;
  }
}
