.sd-header {
  position: relative;
  z-index: 30;
  background: var(--sd-surface);
}

.sd-header__bar {
  border-bottom: 3px solid var(--sd-orange);
}

.sd-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--sd-space-6);
  min-height: var(--sd-header-h);
}

.sd-header__start {
  display: flex;
  align-items: center;
  gap: var(--sd-space-5);
  min-width: 0;
}

.sd-brand {
  display: flex;
  align-items: center;
  gap: var(--sd-space-4);
  flex: none;
  color: inherit;
}

.sd-brand:hover {
  text-decoration: none;
}

.sd-brand__mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sd-brand__mark img {
  display: block;
  width: 76px;
  height: auto;
}

.sd-brand__caption {
  font-size: 7.9px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--sd-orange);
}

.sd-brand__divider {
  width: 1px;
  height: 36px;
  background: var(--sd-line);
}

.sd-brand__label {
  font-size: var(--sd-fs-meta);
  color: var(--sd-muted);
  white-space: nowrap;
}

.sd-switcher {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.sd-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: var(--sd-space-2);
  max-width: min(250px, 100%);
  height: 40px;
  padding: 0 var(--sd-space-3);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-control);
  background: var(--sd-surface);
  color: var(--sd-ink);
  font-size: var(--sd-fs-meta);
  font-weight: 600;
}

.sd-switcher__button:hover {
  background: var(--sd-surface-hover);
  border-color: var(--sd-line-strong);
}

.sd-switcher__button[aria-expanded="true"] {
  background: var(--sd-orange-tint);
  border-color: var(--sd-orange-line);
}

.sd-switcher__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-switcher__chevron {
  flex: none;
  font-size: 11px;
  color: var(--sd-muted);
  transition: transform 0.15s ease;
}

.sd-switcher__button[aria-expanded="true"] .sd-switcher__chevron {
  transform: rotate(180deg);
}

.sd-nav {
  grid-column: 2;
}

.sd-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sd-space-2);
  list-style: none;
}

.sd-nav__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sd-space-3);
  height: 40px;
  padding: 0 var(--sd-space-3);
  border-radius: var(--sd-radius-md);
  color: var(--sd-ink);
  font-size: var(--sd-fs-base);
  font-weight: 500;
  white-space: nowrap;
}

.sd-nav .sd-nav__item {
  height: 44px;
  padding: 0 var(--sd-space-5);
}

.sd-nav__item:hover {
  background: var(--sd-surface-hover);
  text-decoration: none;
}

.sd-nav__item.is-active {
  background: var(--sd-orange-tint);
  color: var(--sd-orange-ink);
}

.sd-nav__item :is(.fal, .far, .fas, .fab) {
  width: 18px;
  color: var(--sd-orange);
}

.sd-header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--sd-space-3);
}

.sd-header .sd-header__toggle {
  display: none;
}

.sd-header__toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-control);
  background: var(--sd-surface);
  color: var(--sd-ink);
  font-size: 19px;
}

.sd-header__toggle .sd-header__icon-close {
  display: none;
}

.sd-header__toggle[aria-expanded="true"] .sd-header__icon-open {
  display: none;
}

.sd-header__toggle[aria-expanded="true"] .sd-header__icon-close {
  display: inline-block;
}

.sd-user {
  position: relative;
}

.sd-user__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 var(--sd-space-2) 0 var(--sd-space-1);
  border: 0;
  border-radius: var(--sd-radius-md);
  background: transparent;
  color: var(--sd-ink);
  text-align: left;
}

.sd-user__button:hover {
  background: var(--sd-surface-hover);
}

.sd-user__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}

.sd-user__name {
  font-size: var(--sd-fs-sm);
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-user__org {
  font-size: var(--sd-fs-xs);
  color: var(--sd-muted);
}

.sd-user__chevron {
  font-size: 11px;
  color: var(--sd-muted);
}

.sd-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  min-width: 248px;
  padding: var(--sd-space-2);
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-lg);
  box-shadow: var(--sd-shadow-float);
}

.sd-dropdown--switcher {
  left: 0;
  right: auto;
  width: 400px;
}

.sd-dropdown__head {
  padding: var(--sd-space-2) var(--sd-space-3) var(--sd-space-3);
  border-bottom: 1px solid var(--sd-line-soft);
  margin-bottom: var(--sd-space-2);
}

.sd-dropdown__name {
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-dropdown__meta {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-dropdown__label {
  margin: var(--sd-space-2) var(--sd-space-3) var(--sd-space-1);
  padding-top: var(--sd-space-3);
  border-top: 1px solid var(--sd-line-soft);
  font-size: var(--sd-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.sd-dropdown__list {
  list-style: none;
}

.sd-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--sd-space-3);
  padding: 10px var(--sd-space-3);
  border-radius: var(--sd-radius-md);
  color: var(--sd-ink);
  font-weight: 500;
}

.sd-dropdown__item:hover {
  background: var(--sd-surface-hover);
  text-decoration: none;
}

.sd-dropdown__item :is(.fal, .far, .fas, .fab) {
  width: 18px;
  color: var(--sd-orange);
}

.sd-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sd-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px var(--sd-space-3);
  border-radius: var(--sd-radius-md);
  color: inherit;
}

.sd-menu-item:hover,
.sd-menu-item.is-current {
  background: var(--sd-surface-hover);
  text-decoration: none;
}

.sd-menu-item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.sd-menu-item__title {
  font-size: var(--sd-fs-md);
  font-weight: 600;
  line-height: 1.35;
  color: var(--sd-ink);
}

.sd-menu-item__sub {
  font-size: var(--sd-fs-sm);
  line-height: 1.4;
  color: var(--sd-muted);
}

.sd-menu-item__check {
  margin-left: auto;
  flex: none;
  color: var(--sd-orange-ink);
}

.sd-mobilenav {
  display: none;
}

.sd-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--sd-radius-md);
  background: var(--sd-orange-tint);
  color: var(--sd-orange);
  font-size: 19px;
}

.sd-tile--sm {
  width: 36px;
  height: 36px;
  border-radius: var(--sd-radius-sm);
  font-size: 16px;
}

.sd-tile--lg {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  font-size: 26px;
}

.sd-section-label {
  display: block;
  margin: 0 0 var(--sd-space-4);
  font-size: var(--sd-fs-label);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd-orange-ink);
}

.sd-mini-label {
  display: block;
  margin: 0 0 var(--sd-space-2);
  font-size: var(--sd-fs-xs);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sd-space-2);
  height: 46px;
  padding: 0 var(--sd-space-6);
  border: 1px solid transparent;
  border-radius: var(--sd-radius-control);
  font-size: var(--sd-fs-base);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sd-btn:hover {
  text-decoration: none;
}

.sd-btn--primary,
.sd-btn--outline {
  background: var(--sd-surface);
  border-color: var(--sd-orange);
  color: var(--sd-orange-ink);
}

.sd-btn--primary:hover,
.sd-btn--outline:hover {
  background: var(--sd-orange-tint);
  color: var(--sd-orange-ink);
}

.sd-btn--primary:active,
.sd-btn--outline:active {
  background: var(--sd-orange-line);
}

.sd-btn--ghost {
  background: var(--sd-surface);
  border-color: var(--sd-line-strong);
  color: var(--sd-ink);
  font-weight: 600;
}

.sd-btn--ghost:hover {
  background: var(--sd-surface-hover);
}

.sd-btn--block {
  width: 100%;
}

.sd-link-more {
  font-weight: 600;
  font-size: var(--sd-fs-meta);
  color: var(--sd-orange-ink);
  white-space: nowrap;
}

.sd-pagehead {
  padding: var(--sd-space-10) 0 var(--sd-space-7);
}

.sd-pagehead__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sd-space-10);
}

.sd-pagehead__main {
  min-width: 0;
}

.sd-pagehead__main--action {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--sd-space-6);
  align-items: center;
}

.sd-pagehead__main--action > .sd-pagehead__eyebrow,
.sd-pagehead__main--action > .sd-crumbs {
  grid-column: 1 / -1;
  grid-row: 1;
}

.sd-pagehead__main--action > .sd-pagehead__title {
  grid-column: 1;
  grid-row: 2;
}

.sd-pagehead__main--action > .sd-pagehead__meta {
  grid-column: 1 / -1;
  grid-row: 3;
}

.sd-pagehead__action {
  grid-column: 2;
  grid-row: 2;
  height: 44px;
  padding: 0 var(--sd-space-5);
}

.sd-pagehead__action :is(.fal, .far, .fas, .fab) {
  font-size: 14px;
  color: var(--sd-orange);
}

.sd-pagehead__eyebrow,
.sd-crumbs ol {
  margin: 0 0 var(--sd-space-2);
  font-size: var(--sd-fs-label);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd-orange-ink);
}

.sd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.sd-crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.55em;
}

.sd-crumbs a {
  color: inherit;
}

.sd-crumbs [aria-current="page"] {
  color: var(--sd-muted);
}

.sd-pagehead__title {
  font-size: var(--sd-fs-2xl);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sd-ink);
}

.sd-pagehead__number {
  color: var(--sd-muted);
  font-weight: 500;
}

.sd-pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sd-space-1) var(--sd-space-3);
  margin-top: 10px;
  font-size: var(--sd-fs-meta);
  color: var(--sd-muted);
}

.sd-pagehead__meta > span {
  white-space: nowrap;
}

.sd-pagehead__desc {
  max-width: 760px;
  margin-top: var(--sd-space-5);
  color: var(--sd-text);
}

.sd-sep {
  color: #b3b8c1;
}

.sd-custno {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sd-custno__label {
  color: var(--sd-muted);
}

.sd-custno__value {
  font-weight: 600;
  color: var(--sd-text);
  font-variant-numeric: tabular-nums;
}

.sd-custno__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: -2px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--sd-radius-control);
  background: transparent;
  color: var(--sd-muted);
  font-size: 13px;
  cursor: pointer;
}

.sd-custno__copy:hover {
  border-color: var(--sd-line-strong);
  background: var(--sd-surface);
  color: var(--sd-orange-ink);
}

.sd-custno__copy:focus-visible {
  outline: 2px solid var(--sd-orange);
  outline-offset: 2px;
}

.sd-custno__copy.is-copied {
  border-color: var(--sd-orange-line);
  color: var(--sd-orange-ink);
}

.sd-custno__copy.is-copied :is(.fal, .far)::before {
  content: "\f00c";
}

.sd-nowrap {
  white-space: nowrap;
}

.sd-text-danger {
  font-weight: 600;
  color: var(--sd-danger-ink);
}

.sd-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-xl);
  padding: var(--sd-space-7);
}

.sd-card + .sd-card {
  margin-top: var(--sd-space-6);
}

.sd-card--flush {
  padding: 0;
  overflow: hidden;
}

.sd-section {
  margin-top: var(--sd-space-10);
}

.sd-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sd-space-4);
  margin-bottom: var(--sd-space-3);
}

.sd-section__head .sd-section-label {
  margin: 0;
}

.sd-card > .sd-mini-label:first-child {
  margin-bottom: var(--sd-space-4);
}

.sd-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  row-gap: 10px;
  padding: var(--sd-space-7) 0;
}

.sd-summary--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-summary__col {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  min-width: 0;
  padding: 0 var(--sd-space-8);
  border-left: 1px solid var(--sd-line-soft);
}

.sd-summary__col:first-child {
  border-left: 0;
}

.sd-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sd-space-3);
  min-height: 26px;
}

.sd-summary__label {
  font-size: var(--sd-fs-xs);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
  white-space: nowrap;
}

.sd-summary__value {
  align-self: end;
  font-size: var(--sd-fs-kpi);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sd-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sd-summary__value a {
  color: inherit;
}

.sd-summary__value a:hover {
  color: var(--sd-orange-ink);
}

.sd-summary__of {
  font-size: var(--sd-fs-md);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sd-muted);
}

.sd-summary__title {
  align-self: end;
  font-size: var(--sd-fs-lg);
  line-height: 1.3;
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-summary__title a {
  color: inherit;
}

.sd-summary__sub {
  font-size: var(--sd-fs-meta);
  color: var(--sd-muted);
}

.sd-summary__sub--danger {
  font-weight: 600;
  color: var(--sd-danger-ink);
}

.sd-summary .sd-meter {
  margin-top: var(--sd-space-1);
}

.sd-meter {
  display: flex;
  align-items: center;
  gap: var(--sd-space-3);
}

.sd-meter .sd-bar {
  flex: 1 1 0%;
  min-width: 0;
}

.sd-meter__value {
  flex: none;
  font-size: var(--sd-fs-sm);
  font-weight: 700;
  color: var(--sd-ink);
  font-variant-numeric: tabular-nums;
}

.sd-bar {
  display: block;
  width: 100%;
  height: 8px;
  overflow: visible;
}

.sd-bar--slim {
  height: 6px;
}

.sd-bar__track {
  fill: var(--sd-track);
}

.sd-bar__fill {
  fill: var(--sd-orange);
}

.sd-bar--danger .sd-bar__fill {
  fill: var(--sd-danger-fill);
}

.sd-bar--done .sd-bar__fill {
  fill: var(--sd-done);
}

.sd-progress {
  flex: none;
  width: 300px;
}

.sd-progress__value {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--sd-ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.sd-progress__count {
  margin-top: var(--sd-space-2);
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--sd-radius-control);
  font-size: var(--sd-fs-xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sd-pill :is(.fal, .far, .fas, .fab) {
  font-size: 12px;
}

.sd-pill--brand {
  background: var(--sd-orange-tint);
  color: var(--sd-orange-ink);
}

.sd-pill--success {
  background: var(--sd-success-bg);
  color: var(--sd-success-ink);
}

.sd-pill--warning {
  background: var(--sd-warning-bg);
  color: var(--sd-warning-ink);
}

.sd-pill--danger {
  background: var(--sd-danger-bg);
  color: var(--sd-danger-ink);
}

.sd-pill--neutral {
  background: var(--sd-neutral-bg);
  color: var(--sd-text);
}

.sd-labels {
  display: inline-flex;
  flex: none;
  gap: 6px;
}

.sd-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px 0 7px;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-control);
  background: var(--sd-surface);
  color: var(--sd-text);
  font-size: var(--sd-fs-xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sd-label__dot {
  width: 9px;
  height: 9px;
  flex: none;
  overflow: visible;
}

.sd-label__dot circle {
  stroke: rgba(35, 38, 46, 0.18);
  stroke-width: 1;
}

.sd-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sd-orange-tint);
  color: var(--sd-orange-ink);
  font-size: var(--sd-fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sd-avatar--sm {
  width: 34px;
  height: 34px;
}

.sd-avatar--team {
  background: var(--sd-slate);
  color: #ffffff;
}

.sd-avatar--other {
  background: var(--sd-neutral-bg);
  color: var(--sd-ink);
}

.sd-tickets {
  list-style: none;
}

.sd-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px 130px;
  grid-template-areas: "id main comments date";
  column-gap: var(--sd-space-4);
  align-items: baseline;
  padding: 14px var(--sd-row-x);
  border-top: 1px solid var(--sd-line-soft);
}

.sd-ticket:first-child {
  border-top: 0;
}

.sd-ticket:hover {
  background: var(--sd-surface-hover);
}

.sd-tickets--recent .sd-ticket {
  grid-template-columns: 44px minmax(0, 1fr) 120px 140px;
  grid-template-areas: "id main status date";
}

.sd-tickets--status .sd-ticket {
  grid-template-columns: 44px minmax(0, 1fr) 48px 130px 120px;
  grid-template-areas: "id main comments date status";
}

.sd-ticket__id {
  grid-area: id;
  font-size: var(--sd-fs-meta);
  font-weight: 600;
  color: var(--sd-muted);
  font-variant-numeric: tabular-nums;
}

.sd-ticket__main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.sd-tickets--recent .sd-ticket__main {
  gap: 0;
}

.sd-ticket__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: var(--sd-fs-base);
  line-height: 1.45;
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-ticket__title:hover {
  text-decoration: none;
}

.sd-ticket__title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sd-ticket__title:focus-visible {
  outline: none;
}

.sd-ticket__title:focus-visible::after {
  outline: 2px solid var(--sd-focus);
  outline-offset: -2px;
}

.sd-ticket__sub {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-ticket__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  max-width: 100%;
  font-size: var(--sd-fs-xs);
  color: var(--sd-muted);
}

.sd-ticket__meta .sd-label {
  height: 22px;
  padding: 0 7px 0 6px;
  gap: 5px;
  border-color: var(--sd-line-soft);
  font-size: 12.5px;
  font-weight: 500;
}

.sd-ticket__meta .sd-label__dot {
  width: 8px;
  height: 8px;
}

.sd-ticket__milestone,
.sd-ticket__comments,
.sd-ticket__updated {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sd-muted);
  font-variant-numeric: tabular-nums;
}

.sd-ticket__comments,
.sd-ticket__updated {
  font-size: var(--sd-fs-sm);
}

.sd-ticket__comments {
  grid-area: comments;
}

.sd-ticket__updated {
  grid-area: date;
}

.sd-ticket__milestone :is(.fal, .far, .fas, .fab),
.sd-ticket__comments :is(.fal, .far, .fas, .fab) {
  margin-right: 6px;
}

.sd-tickets--recent .sd-ticket__updated {
  text-align: right;
}

.sd-ticket__status {
  grid-area: status;
  justify-self: start;
}

.sd-label--more {
  padding: 0 7px;
  color: var(--sd-muted);
  cursor: default;
}

.sd-table {
  width: 100%;
  border-collapse: collapse;
}

.sd-table th,
.sd-table td {
  padding: var(--sd-space-4) var(--sd-row-x);
  text-align: left;
  vertical-align: middle;
}

.sd-table thead th {
  padding-top: 18px;
  padding-bottom: var(--sd-space-3);
  border-bottom: 1px solid var(--sd-line);
  font-size: var(--sd-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
  white-space: nowrap;
}

.sd-table__col-project {
  width: 30%;
}

.sd-table__col-num {
  width: 150px;
}

.sd-table__col-hours {
  width: 330px;
}

.sd-table tbody tr {
  position: relative;
}

.sd-table tbody tr + tr td {
  border-top: 1px solid var(--sd-line-soft);
}

.sd-table tbody tr:hover {
  background: var(--sd-surface-hover);
}

.sd-table tfoot th,
.sd-table tfoot td {
  border-top: 1px solid var(--sd-line);
  background: var(--sd-surface-sunken);
  color: var(--sd-ink);
  font-weight: 700;
}

.sd-table__project {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sd-table__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sd-table__name {
  font-size: var(--sd-fs-md);
  font-weight: 700;
  line-height: 1.35;
  color: var(--sd-ink);
}

.sd-table__name:hover {
  text-decoration: none;
}

.sd-table__name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sd-table__name:focus-visible {
  outline: none;
}

.sd-table__name:focus-visible::after {
  outline: 2px solid var(--sd-focus);
  outline-offset: -2px;
}

.sd-table__number {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-table__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--sd-ink);
  font-variant-numeric: tabular-nums;
}

.sd-table__ms {
  display: block;
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-table__due {
  display: block;
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-table__due--danger {
  font-weight: 600;
  color: var(--sd-danger-ink);
}

.sd-table__hours {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sd-space-3);
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--sd-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sd-table__of {
  font-weight: 400;
  color: var(--sd-muted);
}

.sd-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sd-space-3);
  padding: var(--sd-space-4) var(--sd-row-x);
  border-bottom: 1px solid var(--sd-line);
}

.sd-toolbar .sd-select {
  width: 210px;
}

.sd-search {
  position: relative;
  flex: 1 1 220px;
}

.sd-filter__summary {
  display: none;
}

.sd-filter__body {
  display: flex;
  align-items: center;
  gap: var(--sd-space-3);
}

.sd-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sd-muted);
  pointer-events: none;
}

.sd-search .sd-input {
  padding-left: 40px;
}

.sd-segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--sd-field-border);
  border-radius: var(--sd-radius-md);
  background: var(--sd-surface);
}

.sd-segmented__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--sd-radius-control);
  color: var(--sd-text);
  font-size: var(--sd-fs-meta);
  font-weight: 500;
  white-space: nowrap;
}

.sd-segmented__item:hover {
  background: var(--sd-surface-hover);
  text-decoration: none;
}

.sd-segmented__item.is-active {
  background: var(--sd-orange-tint);
  color: var(--sd-orange-ink);
  font-weight: 700;
}

.sd-segmented__count {
  font-size: var(--sd-fs-xs);
  font-weight: 600;
  color: var(--sd-muted);
}

.is-active .sd-segmented__count {
  color: var(--sd-orange-ink);
}

.sd-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sd-space-4);
  padding: var(--sd-space-3) var(--sd-row-x);
  border-top: 1px solid var(--sd-line);
}

.sd-pagination__info {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-pagination__list {
  display: flex;
  align-items: center;
  gap: var(--sd-space-1);
  list-style: none;
}

.sd-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 var(--sd-space-2);
  border-radius: var(--sd-radius-control);
  color: var(--sd-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sd-pagination__link:hover {
  background: var(--sd-surface-hover);
  text-decoration: none;
}

.sd-pagination__link.is-current {
  background: var(--sd-orange-tint);
  color: var(--sd-orange-ink);
}

.sd-pagination__link.is-disabled {
  color: #b3b8c1;
  pointer-events: none;
}

.sd-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto 1fr;
  gap: var(--sd-space-8);
  align-items: start;
}

.sd-detail__desc {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.sd-detail__aside {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.sd-detail__thread {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.sd-detail > .sd-section {
  margin-top: 0;
}

.sd-details {
  display: flex;
  flex-direction: column;
  gap: var(--sd-space-3);
}

.sd-details__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--sd-space-3);
  align-items: baseline;
  font-size: var(--sd-fs-meta);
}

.sd-details__row dt {
  color: var(--sd-muted);
}

.sd-details__row dd {
  min-width: 0;
  color: var(--sd-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.sd-details__row .sd-labels {
  flex-wrap: wrap;
}

.sd-details__part {
  margin-top: var(--sd-space-5);
  padding-top: var(--sd-space-5);
  border-top: 1px solid var(--sd-line-soft);
}

.sd-details__part .sd-mini-label {
  margin-bottom: var(--sd-space-3);
}

.sd-details__part .sd-meter {
  margin-top: var(--sd-space-4);
}

.sd-prose {
  font-size: var(--sd-fs-base);
  line-height: 1.65;
  color: var(--sd-text);
  overflow-wrap: anywhere;
}

.sd-prose > * + * {
  margin-top: var(--sd-space-3);
}

.sd-prose ul,
.sd-prose ol {
  padding-left: 1.4em;
}

.sd-prose li + li {
  margin-top: 4px;
}

.sd-prose strong {
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sd-prose code {
  font-family: var(--sd-font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: var(--sd-radius-xs);
  background: var(--sd-surface-sunken);
  color: var(--sd-ink);
}

.sd-thread {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sd-space-4);
}

.sd-comment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--sd-space-3);
  align-items: start;
}

.sd-comment__card {
  min-width: 0;
  padding: 14px var(--sd-space-5) var(--sd-space-4);
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-lg);
}

.sd-comment--self .sd-comment__card {
  background: var(--sd-self-surface);
  border-color: var(--sd-orange-line);
}

.sd-comment__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.sd-comment__author {
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-comment__time {
  margin-left: auto;
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--sd-radius-xs);
  background: var(--sd-orange-tint);
  color: var(--sd-orange-ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
}

.sd-composer {
  margin-top: var(--sd-space-6);
}

.sd-composer > .sd-field__label {
  margin-bottom: 10px;
}

.sd-composer__box {
  border: 1px solid var(--sd-field-border);
  border-radius: var(--sd-radius-lg);
  background: var(--sd-surface);
  overflow: hidden;
}

.sd-composer__box:focus-within {
  border-color: var(--sd-orange-ink);
  outline: 2px solid var(--sd-focus);
  outline-offset: 2px;
}

.sd-composer textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: var(--sd-space-4) var(--sd-space-5);
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--sd-ink);
  line-height: 1.6;
}

.sd-composer textarea:focus {
  outline: none;
}

.sd-composer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sd-space-4);
  flex-wrap: wrap;
  padding: 10px 10px 10px var(--sd-space-5);
  border-top: 1px solid var(--sd-line-soft);
  background: var(--sd-surface-hover);
}

.sd-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--sd-space-2);
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-hint :is(.fal, .far, .fas, .fab) {
  margin-top: 3px;
}

.sd-hint code {
  font-family: var(--sd-font);
  font-size: 13px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--sd-radius-xs);
  background: var(--sd-neutral-bg);
  color: var(--sd-ink);
}

.sd-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sd-form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sd-space-4);
}

.sd-form__actions {
  display: flex;
  align-items: center;
  gap: var(--sd-space-3);
  padding-top: var(--sd-space-1);
}

.sd-field {
  display: flex;
  flex-direction: column;
  gap: var(--sd-space-2);
  min-width: 0;
}

.sd-field__label {
  display: block;
  font-size: var(--sd-fs-meta);
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-field__optional {
  margin-left: 4px;
  font-size: var(--sd-fs-xs);
  font-weight: 500;
  color: var(--sd-muted);
}

.sd-field__help {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--sd-fs-sm);
  font-weight: 600;
  color: var(--sd-danger-ink);
}

.sd-input,
.sd-select,
.sd-textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--sd-field-border);
  border-radius: var(--sd-radius-control);
  background: var(--sd-surface);
  color: var(--sd-ink);
  font-size: var(--sd-fs-base);
  transition: border-color 0.15s ease;
}

.sd-textarea {
  height: auto;
  min-height: 200px;
  padding: var(--sd-space-3) 14px;
  line-height: 1.6;
  resize: vertical;
}

.sd-input::placeholder,
.sd-textarea::placeholder,
.sd-composer textarea::placeholder {
  color: var(--sd-muted);
}

.sd-input:hover,
.sd-select:hover,
.sd-textarea:hover {
  border-color: #6f7682;
}

.sd-input:focus,
.sd-select:focus,
.sd-textarea:focus {
  border-color: var(--sd-orange-ink);
  outline: 2px solid var(--sd-focus);
  outline-offset: 2px;
}

.sd-input[aria-invalid="true"],
.sd-textarea[aria-invalid="true"] {
  border-color: var(--sd-danger-ink);
}

.sd-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23646b78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  text-overflow: ellipsis;
}

.sd-inputgroup {
  position: relative;
}

.sd-inputgroup .sd-input {
  padding-right: 50px;
}

.sd-inputgroup__btn {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--sd-radius-control);
  background: transparent;
  color: var(--sd-muted);
}

.sd-inputgroup__btn:hover {
  background: var(--sd-surface-hover);
  color: var(--sd-ink);
}

.sd-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sd-space-6);
  cursor: pointer;
}

.sd-setting__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sd-setting__title {
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-setting__sub {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-switch {
  position: relative;
  display: inline-flex;
  flex: none;
}

.sd-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.sd-switch__track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: var(--sd-radius-pill);
  background: var(--sd-field-border);
  transition: background-color 0.15s ease;
}

.sd-switch__track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sd-surface);
  transition: transform 0.15s ease;
}

.sd-switch input:checked + .sd-switch__track {
  background: var(--sd-orange-active);
}

.sd-switch input:checked + .sd-switch__track::after {
  transform: translateX(18px);
}

.sd-switch input:focus-visible + .sd-switch__track {
  outline: 2px solid var(--sd-focus);
  outline-offset: 2px;
}

.sd-milestones {
  list-style: none;
}

.sd-ms {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 280px;
  grid-template-areas: "main status progress";
  gap: var(--sd-space-8);
  align-items: center;
  padding: var(--sd-space-5) var(--sd-row-x);
  border-top: 1px solid var(--sd-line-soft);
}

.sd-ms:first-child {
  border-top: 0;
}

.sd-ms:hover {
  background: var(--sd-surface-hover);
}

.sd-ms__main {
  grid-area: main;
  min-width: 0;
}

.sd-ms__status {
  grid-area: status;
}

.sd-ms__progress {
  grid-area: progress;
}

.sd-ms__title {
  font-size: var(--sd-fs-md);
  font-weight: 700;
  line-height: 1.35;
  color: var(--sd-ink);
}

.sd-ms__title:hover {
  text-decoration: none;
}

.sd-ms__title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sd-ms__title:focus-visible {
  outline: none;
}

.sd-ms__title:focus-visible::after {
  outline: 2px solid var(--sd-focus);
  outline-offset: -2px;
}

.sd-ms__due {
  margin-top: 2px;
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-ms__due--danger {
  font-weight: 600;
  color: var(--sd-danger-ink);
}

.sd-ms__count {
  margin-top: var(--sd-space-2);
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-collapse {
  margin-top: var(--sd-space-6);
}

.sd-collapse__summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--sd-space-2) var(--sd-space-1);
  border-radius: var(--sd-radius-control);
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-collapse__summary::-webkit-details-marker {
  display: none;
}

.sd-collapse__summary:hover {
  color: var(--sd-orange-ink);
}

.sd-collapse__chevron {
  font-size: 12px;
  color: var(--sd-muted);
  transition: transform 0.15s ease;
}

.sd-collapse[open] .sd-collapse__chevron {
  transform: rotate(90deg);
}

.sd-collapse .sd-card {
  margin-top: var(--sd-space-3);
}

.sd-filegroup + .sd-filegroup {
  border-top: 1px solid var(--sd-line);
}

.sd-filegroup__label {
  padding: var(--sd-space-5) var(--sd-row-x) var(--sd-space-1);
  font-size: var(--sd-fs-xs);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.sd-files {
  list-style: none;
  padding-bottom: var(--sd-space-2);
}

.sd-file {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 110px 150px;
  gap: var(--sd-space-4);
  align-items: center;
  padding: 10px var(--sd-row-x);
}

.sd-file:hover {
  background: var(--sd-surface-hover);
}

.sd-file__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sd-file__name {
  font-weight: 600;
  line-height: 1.4;
  color: var(--sd-ink);
}

.sd-file__meta {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-file__date {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sd-file__action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--sd-space-2);
  font-size: var(--sd-fs-meta);
  font-weight: 600;
  white-space: nowrap;
}

.sd-contactline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: var(--sd-space-10);
  padding-top: var(--sd-space-5);
  border-top: 1px solid var(--sd-line);
  font-size: var(--sd-fs-meta);
  color: var(--sd-muted);
}

.sd-contactline strong {
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-contactline a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sd-text);
}

.sd-contactline a:hover {
  color: var(--sd-orange-ink);
}

.sd-contactline :is(.fal, .far, .fas, .fab) {
  color: var(--sd-orange);
}

.sd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.sd-empty .sd-section-label {
  margin: var(--sd-space-5) 0 var(--sd-space-2);
}

.sd-empty__title {
  font-size: var(--sd-fs-2xl);
  line-height: 1.2;
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-empty__text {
  margin: var(--sd-space-3) 0 var(--sd-space-6);
  color: var(--sd-muted);
}

.sd-main--center {
  display: flex;
  align-items: center;
  padding: var(--sd-space-16) 0;
}

.sd-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--sd-space-3) var(--sd-space-4);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-md);
  background: var(--sd-surface-sunken);
  color: var(--sd-text);
  font-size: var(--sd-fs-meta);
}

.sd-alert__icon {
  flex: none;
  margin-top: 1px;
  color: var(--sd-slate);
}

.sd-alert__text strong {
  display: block;
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-alert--success {
  background: var(--sd-success-bg);
  border-color: var(--sd-success-line);
}

.sd-alert--success .sd-alert__icon {
  color: var(--sd-success-ink);
}

.sd-alert--error {
  background: var(--sd-danger-bg);
  border-color: var(--sd-danger-line);
}

.sd-alert--error .sd-alert__icon {
  color: var(--sd-danger-ink);
}

.sd-login .sd-alert {
  margin-bottom: var(--sd-space-5);
}

.sd-login {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sd-space-16) var(--sd-gutter);
}

.sd-login__panel {
  width: 100%;
  max-width: 420px;
  padding: var(--sd-space-10) var(--sd-space-10) var(--sd-space-8);
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-xl);
}

.sd-login__brand {
  display: inline-block;
}

.sd-login__brand:hover {
  text-decoration: none;
}

.sd-login__title {
  margin: var(--sd-space-6) 0 var(--sd-space-6);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-login .sd-btn--block {
  margin-top: var(--sd-space-1);
}

.sd-login__links {
  display: flex;
  justify-content: space-between;
  gap: var(--sd-space-4);
  margin-top: var(--sd-space-5);
  font-size: var(--sd-fs-sm);
  font-weight: 600;
}

.sd-login__note {
  max-width: 420px;
  margin-top: var(--sd-space-5);
  font-size: var(--sd-fs-sm);
  text-align: center;
  color: var(--sd-muted);
}

.sd-footer {
  flex: none;
  border-top: 1px solid var(--sd-line);
}

.sd-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sd-space-2) var(--sd-space-8);
  padding-top: var(--sd-space-5);
  padding-bottom: var(--sd-space-5);
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-footer__links {
  display: flex;
  gap: var(--sd-space-6);
  list-style: none;
}

.sd-footer__links a {
  color: var(--sd-muted);
}

.sd-footer__links a:hover {
  color: var(--sd-orange-ink);
}

@media (max-width: 1360px) {
  .sd-user__button .sd-user__text,
  .sd-user__chevron {
    display: none;
  }
}

@media (min-width: 1081px) {
  .sd-header--multi .sd-brand__divider,
  .sd-header--multi .sd-brand__label {
    display: none;
  }
}

@media (max-width: 1200px) {
  .sd-brand__divider,
  .sd-brand__label {
    display: none;
  }

  .sd-nav__list {
    gap: var(--sd-space-1);
  }

  .sd-nav .sd-nav__item {
    padding: 0 14px;
  }
}

@media (max-width: 1080px) {
  :root {
    --sd-header-h: 68px;
  }

  .sd-switcher,
  .sd-nav,
  .sd-header .sd-user {
    display: none;
  }

  .sd-brand__divider,
  .sd-brand__label {
    display: block;
  }

  .sd-header .sd-header__toggle {
    display: inline-flex;
  }

  .sd-mobilenav.is-open {
    display: block;
    border-bottom: 1px solid var(--sd-line);
  }

  .sd-mobilenav__inner {
    display: flex;
    flex-direction: column;
    padding-top: var(--sd-space-3);
    padding-bottom: var(--sd-space-5);
  }

  .sd-mobilenav__group + .sd-mobilenav__group {
    margin-top: var(--sd-space-3);
    padding-top: var(--sd-space-3);
    border-top: 1px solid var(--sd-line-soft);
  }

  .sd-mobilenav__group .sd-mini-label {
    margin: var(--sd-space-2) 14px var(--sd-space-1);
  }

  .sd-mobilenav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sd-mobilenav__list .sd-nav__item {
    width: 100%;
    height: 46px;
  }

  .sd-mobilenav__user {
    display: flex;
    align-items: center;
    gap: var(--sd-space-3);
    padding: var(--sd-space-2) 14px var(--sd-space-3);
  }

  .sd-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .sd-detail__desc,
  .sd-detail__aside,
  .sd-detail__thread {
    grid-column: 1;
    grid-row: auto;
  }

  .sd-ms {
    grid-template-columns: minmax(0, 1fr) 140px 220px;
    gap: var(--sd-space-6);
  }
}

@media (max-width: 960px) {
  :root {
    --sd-row-x: 20px;
  }

  .sd-pagehead__row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sd-space-5);
  }

  .sd-progress {
    width: 100%;
  }

  .sd-summary {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    padding: 0;
  }

  .sd-summary__col {
    grid-row: auto;
    grid-template-rows: none;
    row-gap: 6px;
    padding: var(--sd-space-5);
    border-left: 0;
    border-top: 1px solid var(--sd-line-soft);
  }

  .sd-summary__col:first-child {
    border-top: 0;
  }

  .sd-tickets--recent .sd-ticket,
  .sd-tickets--status .sd-ticket,
  .sd-ticket {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas:
      "id main main"
      ". date status";
    row-gap: 6px;
    column-gap: 10px;
    align-items: baseline;
  }

  .sd-ticket__title {
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
  }

  .sd-labels {
    flex-wrap: wrap;
  }

  .sd-ticket__milestone,
  .sd-ticket__meta .sd-sep,
  .sd-ticket__comments {
    display: none;
  }

  .sd-tickets--recent .sd-ticket__updated {
    text-align: left;
  }

  .sd-ticket__status {
    grid-area: status;
    justify-self: end;
  }

  .sd-table thead {
    display: none;
  }

  .sd-table,
  .sd-table tbody,
  .sd-table tfoot,
  .sd-table tr,
  .sd-table th,
  .sd-table td {
    display: block;
    width: 100%;
  }

  .sd-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sd-space-3);
    padding: var(--sd-space-5) var(--sd-row-x);
  }

  .sd-table tbody tr + tr {
    border-top: 1px solid var(--sd-line-soft);
  }

  .sd-table tbody tr + tr td {
    border-top: 0;
  }

  .sd-table th,
  .sd-table td {
    padding: 0;
  }

  .sd-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: var(--sd-fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sd-muted);
  }

  .sd-table td.sd-table__num {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: var(--sd-fs-lg);
  }

  .sd-table td.sd-table__num::before {
    margin-bottom: 0;
  }

  .sd-table tfoot tr {
    display: grid;
    gap: var(--sd-space-3);
    padding: var(--sd-space-5) var(--sd-row-x);
    border-top: 1px solid var(--sd-line);
    background: var(--sd-surface-sunken);
  }

  .sd-table tfoot th,
  .sd-table tfoot td {
    border-top: 0;
    background: transparent;
  }

  .sd-table__empty {
    display: none !important;
  }

  .sd-ms {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main status"
      "progress progress";
    gap: var(--sd-space-3) var(--sd-space-4);
    align-items: start;
  }

  .sd-ms__main {
    grid-area: main;
  }

  .sd-ms__status {
    grid-area: status;
  }

  .sd-ms__progress {
    grid-area: progress;
  }

  .sd-file {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 2px;
    align-items: start;
  }

  .sd-file__date,
  .sd-file__action {
    grid-column: 2;
    justify-self: start;
  }

  .sd-toolbar .sd-segmented,
  .sd-toolbar .sd-select,
  .sd-search,
  .sd-filter {
    flex: 1 1 100%;
    width: 100%;
  }

  .sd-filter__body {
    flex-direction: column;
    align-items: stretch;
  }

  .sd-toolbar .sd-segmented__item {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --sd-gutter: 16px;
    --sd-fs-2xl: 26px;
    --sd-fs-kpi: 30px;
    --sd-row-x: 16px;
  }

  .sd-brand {
    gap: var(--sd-space-3);
    margin-right: 0;
  }

  .sd-brand__mark img {
    width: 62px;
  }

  .sd-brand__caption {
    font-size: 6.45px;
  }

  .sd-brand__divider {
    height: 30px;
  }

  .sd-brand__label {
    font-size: var(--sd-fs-sm);
  }

  .sd-pagehead {
    padding: var(--sd-space-6) 0 var(--sd-space-5);
  }

  .sd-pagehead__main--action {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd-pagehead__action {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    margin-top: var(--sd-space-5);
  }

  .sd-filter__summary {
    display: inline-flex;
    align-items: center;
    gap: var(--sd-space-2);
    height: 40px;
    padding: 0 var(--sd-space-1);
    border-radius: var(--sd-radius-control);
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--sd-ink);
  }

  .sd-filter__summary::-webkit-details-marker {
    display: none;
  }

  .sd-filter__summary:hover {
    color: var(--sd-orange-ink);
  }

  .sd-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--sd-radius-control);
    background: var(--sd-orange-tint);
    color: var(--sd-orange-ink);
    font-size: var(--sd-fs-xs);
    font-weight: 700;
  }

  .sd-filter__chevron {
    font-size: 11px;
    color: var(--sd-muted);
    transition: transform 0.15s ease;
  }

  .sd-filter[open] .sd-filter__chevron {
    transform: rotate(180deg);
  }

  .sd-filter__body {
    padding-top: var(--sd-space-2);
  }

  .sd-card {
    padding: var(--sd-space-5);
    border-radius: var(--sd-radius-lg);
  }

  .sd-card--flush {
    padding: 0;
  }

  .sd-summary {
    padding: 0;
  }

  .sd-summary__col {
    padding: var(--sd-space-4) var(--sd-space-5) var(--sd-space-5);
  }

  .sd-section {
    margin-top: var(--sd-space-8);
  }

  .sd-detail {
    gap: var(--sd-space-6);
  }

  .sd-comment {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd-comment > .sd-avatar {
    display: none;
  }

  .sd-comment__card {
    padding: var(--sd-space-3) var(--sd-space-4) var(--sd-space-4);
  }

  .sd-comment__time {
    margin-left: 0;
    flex-basis: 100%;
  }

  .sd-composer__foot .sd-btn {
    width: 100%;
  }

  .sd-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd-form__actions .sd-btn {
    flex: 1 1 auto;
  }

  .sd-pagination__info {
    display: none;
  }

  .sd-pagination {
    justify-content: center;
  }

  .sd-contactline {
    flex-direction: column;
    align-items: flex-start;
  }

  .sd-contactline .sd-sep {
    display: none;
  }

  .sd-login {
    justify-content: flex-start;
    padding: var(--sd-space-8) var(--sd-gutter);
  }

  .sd-login__panel {
    padding: var(--sd-space-8) var(--sd-space-6) var(--sd-space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .sd-header,
  .sd-footer,
  .sd-composer {
    display: none;
  }

  body {
    background: #ffffff;
  }
}

.sd-messages {
  display: flex;
  flex-direction: column;
  gap: var(--sd-space-3);
  margin-bottom: var(--sd-space-6);
}

.sd-container > .sd-messages:first-child {
  margin-top: var(--sd-space-6);
}

.sd-messages + .sd-pagehead {
  padding-top: var(--sd-space-2);
}

.sd-messages .sd-alert {
  padding-top: var(--sd-space-3);
  padding-bottom: var(--sd-space-3);
}

.sd-alert--info {
  background: var(--sd-surface);
  border-color: var(--sd-line-strong);
}

.sd-alert--info .sd-alert__icon {
  color: var(--sd-orange-ink);
}

.sd-alert--warning {
  background: var(--sd-warning-bg);
  border-color: #f2dfa6;
}

.sd-alert--warning .sd-alert__icon {
  color: var(--sd-warning-ink);
}

.sd-alert--error .sd-alert__icon {
  color: var(--sd-danger-ink);
}

.sd-alert--success .sd-alert__icon {
  color: var(--sd-success-ink);
}

.sd-alert__text p + p {
  margin-top: var(--sd-space-1);
}

.sd-alert + .sd-field,
.sd-alert + .sd-alert {
  margin-top: 0;
}

.sd-muted {
  color: var(--sd-muted);
}

.sd-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sd-space-6);
}

.sd-card__body {
  padding: var(--sd-space-5) var(--sd-row-x);
}

.sd-card__note {
  padding: var(--sd-space-3) var(--sd-row-x);
  border-top: 1px solid var(--sd-line-soft);
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-card:not(.sd-card--flush) > .sd-card__note {
  padding: var(--sd-space-3) 0 0;
  margin-top: var(--sd-space-4);
}

.sd-card__foot {
  border-top: 1px solid var(--sd-line-soft);
  padding: var(--sd-space-4) var(--sd-row-x);
}

.sd-pager {
  display: flex;
  justify-content: space-between;
  gap: var(--sd-space-6);
}

.sd-pager a {
  display: inline-flex;
  align-items: center;
  gap: var(--sd-space-3);
  min-width: 0;
  color: var(--sd-ink);
  font-weight: 600;
}

.sd-pager a:hover {
  color: var(--sd-orange-ink);
  text-decoration: none;
}

.sd-pager a :is(.fal, .far, .fas, .fab) {
  color: var(--sd-orange);
}

.sd-pager__next {
  margin-left: auto;
  text-align: right;
}

.sd-pager__label {
  display: block;
  font-size: var(--sd-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.sd-empty--inline {
  max-width: none;
  gap: var(--sd-space-3);
  padding: var(--sd-space-10) var(--sd-row-x);
}

.sd-empty--page {
  gap: var(--sd-space-3);
}

.sd-empty--page .sd-tile--lg {
  margin-bottom: var(--sd-space-2);
}

.sd-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sd-space-3);
  margin-top: var(--sd-space-4);
}

.sd-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.sd-tile--neutral {
  background: var(--sd-neutral-bg);
  color: var(--sd-muted);
}

.sd-avatar--image {
  overflow: hidden;
  background: var(--sd-neutral-bg);
}

.sd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-badge--neutral {
  background: var(--sd-neutral-bg);
  color: var(--sd-text);
}

.sd-pill--neutral {
  background: var(--sd-neutral-bg);
  color: var(--sd-text);
}

.sd-pill--lg {
  height: 30px;
  padding: 0 12px;
  font-size: var(--sd-fs-sm);
}

.sd-dropdown__form {
  margin: 0;
}

button.sd-dropdown__item,
button.sd-nav__item {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

button.sd-dropdown__item:hover {
  background: var(--sd-surface-hover);
}

.sd-menu-anchor {
  position: relative;
}

.sd-header__create :is(.fal, .far, .fas, .fab) {
  font-size: 13px;
}

.sd-details__sub {
  display: block;
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-persons {
  display: flex;
  flex-direction: column;
  gap: var(--sd-space-2);
}

.sd-person {
  display: inline-flex;
  align-items: center;
  gap: var(--sd-space-2);
  min-width: 0;
}

.sd-person .sd-avatar {
  width: 28px;
  height: 28px;
  font-size: 11.5px;
}

.sd-person__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-thread__empty {
  margin-bottom: var(--sd-space-4);
}

.sd-thread + .sd-composer,
.sd-thread__empty + .sd-composer,
.sd-detail__thread > .sd-alert {
  margin-top: var(--sd-space-6);
}

.sd-comment[id] {
  scroll-margin-top: calc(var(--sd-header-h) + var(--sd-space-4));
}

.sd-form__note {
  display: flex;
  align-items: baseline;
  gap: var(--sd-space-2);
  margin-top: var(--sd-space-4);
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-form__note :is(.fal, .far, .fas, .fab) {
  color: var(--sd-orange);
}

.sd-settings {
  display: flex;
  flex-direction: column;
}

.sd-settings .sd-setting {
  padding: var(--sd-space-4) 0;
  border-top: 1px solid var(--sd-line-soft);
}

.sd-settings .sd-setting:first-child {
  border-top: 0;
  padding-top: 0;
}

.sd-rules ul {
  margin-top: var(--sd-space-1);
  padding-left: 1.2em;
}

.sd-btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.sd-summary {
  grid-template-rows: repeat(5, auto);
}

.sd-summary__col {
  grid-row: span 5;
}

.sd-summary--1 {
  grid-template-columns: minmax(0, 1fr);
}

.sd-summary__note {
  font-size: var(--sd-fs-sm);
  color: var(--sd-muted);
}

.sd-summary__value a {
  color: inherit;
}

.sd-table__note {
  display: block;
  margin-top: var(--sd-space-2);
  font-size: var(--sd-fs-xs);
  font-weight: 400;
  color: var(--sd-muted);
}

.sd-table__ms {
  color: var(--sd-ink);
  font-weight: 600;
}

.sd-table tr.is-paused .sd-table__name {
  color: var(--sd-muted);
}

.sd-ticket--done .sd-ticket__title,
.sd-ticket--not_planned .sd-ticket__title,
.sd-ticket--duplicate .sd-ticket__title {
  color: var(--sd-text);
  font-weight: 500;
}

.sd-segmented__item .sd-segmented__count {
  margin-left: 4px;
}

.sd-prose h1,
.sd-prose h2,
.sd-prose h3,
.sd-prose h4,
.sd-prose h5,
.sd-prose h6 {
  margin-top: var(--sd-space-5);
  color: var(--sd-ink);
  font-weight: 700;
  line-height: 1.3;
}

.sd-prose h1 {
  font-size: 22px;
}

.sd-prose h2 {
  font-size: 19px;
}

.sd-prose h3,
.sd-prose h4 {
  font-size: var(--sd-fs-md);
}

.sd-prose h5,
.sd-prose h6 {
  font-size: var(--sd-fs-base);
}

.sd-prose > :first-child {
  margin-top: 0;
}

.sd-prose pre {
  overflow-x: auto;
  padding: var(--sd-space-3) var(--sd-space-4);
  border-radius: var(--sd-radius-md);
  background: var(--sd-surface-sunken);
  font-size: var(--sd-fs-sm);
  line-height: 1.5;
}

.sd-prose pre code {
  padding: 0;
  background: none;
}

.sd-prose blockquote {
  margin: 0;
  padding-left: var(--sd-space-4);
  border-left: 3px solid var(--sd-line-strong);
  color: var(--sd-muted);
}

.sd-prose hr {
  border: 0;
  border-top: 1px solid var(--sd-line);
}

.sd-prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-md);
  color: var(--sd-muted);
  font-size: var(--sd-fs-sm);
}

.sd-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--sd-fs-sm);
}

.sd-prose th,
.sd-prose td {
  padding: 6px 10px;
  border: 1px solid var(--sd-line);
  text-align: left;
}

.sd-prose th {
  background: var(--sd-surface-sunken);
  font-weight: 700;
}

.sd-prose details {
  padding: var(--sd-space-2) var(--sd-space-3);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-md);
}

.sd-prose summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-prose ul.contains-task-list {
  list-style: none;
  padding-left: 0.4em;
}

.sd-prose input[type="checkbox"] {
  margin-right: 6px;
  accent-color: var(--sd-orange-active);
}

.sd-prose kbd {
  padding: 1px 5px;
  border: 1px solid var(--sd-line-strong);
  border-radius: var(--sd-radius-xs);
  font-family: var(--sd-font-mono);
  font-size: 0.85em;
}

.sd-prose .user-mention {
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-prose .markdown-alert {
  padding: var(--sd-space-2) var(--sd-space-4);
  border-left: 3px solid var(--sd-orange-line);
  background: var(--sd-surface-sunken);
  border-radius: 0 var(--sd-radius-md) var(--sd-radius-md) 0;
}

@media (max-width: 960px) {
  .sd-summary {
    grid-template-rows: none;
  }

  .sd-summary__col {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .sd-header__create span {
    display: none;
  }

  .sd-pager {
    flex-direction: column;
  }

  .sd-pager__next {
    margin-left: 0;
    text-align: left;
  }
}

button.sd-segmented__item {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.sd-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sd-orange-ink);
  font: inherit;
  cursor: pointer;
}

.sd-linkbtn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sd-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1090;
  display: flex;
  align-items: center;
  gap: var(--sd-space-3);
  max-width: min(720px, calc(100% - 32px));
  padding: 8px 8px 8px var(--sd-space-4);
  border-radius: var(--sd-radius-lg);
  background: var(--sd-slate);
  color: #ffffff;
  font-size: var(--sd-fs-meta);
  box-shadow: var(--sd-shadow-float);
  transform: translateX(-50%);
}

.sd-toast[hidden] {
  display: none;
}

.sd-toast__icon {
  flex: none;
  color: var(--sd-orange);
}

.sd-toast .sd-toast__icon--error,
.sd-toast--error .sd-toast__icon--ok {
  display: none;
}

.sd-toast.sd-toast--error .sd-toast__icon--error {
  display: inline-block;
  color: #ff9c8f;
}

.sd-toast__text {
  min-width: 0;
}

.sd-toast__undo {
  flex: none;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--sd-radius-control);
  background: transparent;
  color: #ffb27a;
  font-weight: 700;
}

.sd-toast__undo[hidden] {
  display: none;
}

.sd-toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--sd-radius-control);
  background: transparent;
  color: #c9ccd3;
}

.sd-toast__undo:hover,
.sd-toast__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .sd-toast {
    bottom: 16px;
    width: calc(100% - 32px);
  }
}
