/* ==================================================================================================
   Content components — owner: design-system agent

   .card (+ --hover lift, --flush, --inset; __header/__title/__subtitle/__body/__footer)
   .list-group (iOS grouped list: __header, __items, __footer; .list-item + __icon/__body/__title/
     __subtitle/__trail; a.list-item is a hoverable row)
   .table (+ --sticky header under the topbar; .table-wrap = card + horizontal scroll on mobile)
   .badge (+ --accent/--danger/--success/--warning/--muted/--outline) · .counter
   .chip (+ __dot, __remove; --sm/--lg/--solid/--outline) — color via data-color
   .status-pill · .icon-tile (--2xs…--xl, --soft) · .dot
   .avatar (--xs/--sm/--md/--lg/--xl; .avatar--empty) · .avatar-stack
   .progress (+ __bar, style="--value: 40") · .progress-ring (components/progress_ring.html)
   .skeleton (--text/--title/--circle/--block) · .empty-state (components/empty_state.html)
   .stat (big number tile: __label/__value/__trend) · .banner (--info/--success/--warning/--danger)
   .kbd · .spinner (Apple activity indicator; components/spinner.html) · .divider (--label)
   .tabs/.tab (underline tabs with sliding indicator) · .props (label/value property list)
   .htmx-indicator
   ================================================================================================== */

/* -- Cards --------------------------------------------------------------------------------------- */
.card {
  --card-pad: 16px 20px;
  position: relative;
  min-width: 0;
  padding: var(--card-pad);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--card-ring),
    var(--shadow-sm);
}
.card--flush {
  --card-pad: 0;
  overflow: hidden;
}
.card--inset {
  background: var(--surface-sunken);
  box-shadow: none;
}
.card--hover {
  transition:
    transform var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out);
}
@media (hover: hover) {
  .card--hover:hover {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px var(--card-ring),
      var(--shadow-md);
  }
}
.card--hover:active {
  transform: translateY(0) scale(0.995);
}
a.card {
  display: block;
  color: inherit;
}
.card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  margin-bottom: var(--space-3);
}
.card--flush > .card__header {
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.card__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}
.card__subtitle {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.card__body {
  min-width: 0;
}
.card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.card--flush > .card__footer {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

/* -- iOS grouped list ---------------------------------------------------------------------------- */
.list-group {
  min-width: 0;
}
.list-group + .list-group {
  margin-top: var(--space-6);
}
.list-group__header {
  padding: 0 16px 6px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.list-group__items {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--card-ring),
    var(--shadow-xs);
  list-style: none;
}
.list-group__footer {
  padding: 6px 16px 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.list-item {
  --item-inset: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 16px;
  color: inherit;
}
.list-item:has(> .list-item__icon) {
  --item-inset: 56px;
}
.list-item:has(> .avatar) {
  --item-inset: 60px;
}
.list-item + .list-item::before,
li + li > .list-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: var(--item-inset);
  height: 1px;
  background: var(--line);
}
a.list-item,
button.list-item,
label.list-item {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-1) ease;
}
a.list-item:hover,
button.list-item:hover,
label.list-item:hover {
  background: var(--fill-1);
}
a.list-item:active,
button.list-item:active {
  background: var(--fill-2);
}
.list-item__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(150deg, color-mix(in oklab, var(--tone-solid) 85%, white), var(--tone-solid));
  color: var(--tone-on);
}
.list-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.list-item__title {
  overflow: hidden;
  font-weight: var(--fw-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item__subtitle {
  overflow: hidden;
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item__trail {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text-2);
  font-size: var(--fs-md);
}
.list-item__chevron {
  color: var(--text-3);
}

/* -- Table --------------------------------------------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-md);
}
.table th {
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-align: left;
  white-space: nowrap;
}
.table td {
  height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr {
  transition: background-color var(--dur-1) ease;
}
.table tbody tr:hover {
  background: var(--fill-1);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table th:first-child,
.table td:first-child {
  padding-left: 20px;
}
.table th:last-child,
.table td:last-child {
  padding-right: 20px;
}
.table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
/* Opt-in sticky header (page-level tables under the app topbar; not inside .table-wrap scroll). */
.table--sticky th {
  position: sticky;
  z-index: 1;
  top: calc(var(--topbar-h) + var(--safe-top));
}
.table-wrap {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--card-ring),
    var(--shadow-xs);
}
@media (max-width: 767px) {
  .table-wrap {
    overflow-x: auto;
  }
  .table-wrap .table--sticky th {
    position: static;
  }
}

/* -- Badges & counters --------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--fill-2);
  color: var(--text-2);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.badge--accent {
  background: var(--accent);
  color: var(--text-on-accent);
}
.badge--danger {
  background: var(--danger);
  color: #ffffff;
}
.badge--success {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success-ink);
}
.badge--warning {
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  color: var(--warning-ink);
}
.badge--muted {
  background: var(--fill-1);
  color: var(--text-3);
}
.badge--outline {
  border: 1px solid var(--line-strong);
  background: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .badge--danger {
    animation: pop 420ms var(--ease-spring);
  }
}
.counter {
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
}

/* -- Chips --------------------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.chip > span:not([class]),
.chip__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
}
.chip .icon {
  flex-shrink: 0;
}
.chip__remove {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  opacity: 0.65;
}
.chip__remove:hover {
  background: var(--tone-soft);
  opacity: 1;
}
.chip--sm {
  height: 18px;
  padding: 0 6px;
  font-size: var(--fs-2xs);
}
.chip--lg {
  height: 28px;
  padding: 0 11px;
  font-size: var(--fs-sm);
}
.chip--solid {
  background: var(--tone-solid);
  color: var(--tone-on);
}
.chip--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--tone-line);
}
.chip--neutral {
  background: var(--fill-1);
  color: var(--text-2);
}
.chip--neutral .chip__dot {
  background: var(--tone);
}
a.chip,
button.chip {
  border: 0;
  cursor: pointer;
  transition:
    background-color var(--dur-1) ease,
    box-shadow var(--dur-1) ease;
}
a.chip:hover,
button.chip:hover {
  background: color-mix(in srgb, var(--tone) 22%, transparent);
}
.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
}

/* Status pill (project health) */
.status-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 8px;
  border-radius: var(--radius-full);
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent);
}

/* Icon tile (projects, teams, list rows): gradient squircle with a white glyph */
.icon-tile {
  --size: 32px;
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: calc(var(--size) * 0.28);
  background: linear-gradient(150deg, color-mix(in oklab, var(--tone-solid) 80%, white), var(--tone-solid) 60%, color-mix(in oklab, var(--tone-solid) 88%, black));
  color: var(--tone-on);
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.06), inset 0 1px 0 rgb(255 255 255 / 0.2);
}
.icon-tile .icon {
  width: calc(var(--size) * 0.56);
  height: calc(var(--size) * 0.56);
  --icon-stroke: 2.2;
}
.icon-tile--2xs { --size: 16px; }
.icon-tile--xs { --size: 20px; }
.icon-tile--sm { --size: 24px; }
.icon-tile--md { --size: 32px; }
.icon-tile--lg { --size: 40px; }
.icon-tile--xl { --size: 56px; }
.icon-tile--2xs .icon,
.icon-tile--xs .icon {
  --icon-stroke: 2.6;
  width: calc(var(--size) * 0.62);
  height: calc(var(--size) * 0.62);
}
.icon-tile--soft {
  background: var(--tone-soft);
  color: var(--tone-ink);
  box-shadow: none;
}

/* -- Avatars ------------------------------------------------------------------------------------- */
.avatar {
  --size: 32px;
  position: relative;
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: var(--size);
  height: var(--size);
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(150deg, color-mix(in oklab, var(--tone-solid) 86%, white), color-mix(in oklab, var(--tone-solid) 84%, black) 85%);
  color: #ffffff;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.18);
  font-size: calc(var(--size) * 0.4);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  vertical-align: middle;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.08);
  pointer-events: none;
}
.avatar--xs { --size: 20px; font-size: 8.5px; }
.avatar--sm { --size: 24px; font-size: 10px; }
.avatar--md { --size: 32px; }
.avatar--lg { --size: 40px; }
.avatar--xl { --size: 64px; font-weight: var(--fw-bold); }
.avatar--2xl { --size: 96px; font-weight: var(--fw-bold); }
.avatar--empty {
  border: 1.5px dashed var(--control-border);
  background: transparent;
  color: var(--text-3);
}
.avatar--empty::after {
  display: none;
}
.avatar--empty .icon {
  width: 62%;
  height: 62%;
  --icon-stroke: 2.2;
}
.avatar--more {
  background: var(--fill-2);
  color: var(--text-2);
  font-size: calc(var(--size) * 0.36);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-transform: none;
}
.avatar--more::after {
  display: none;
}
.avatar-stack {
  --ring: var(--avatar-ring, var(--surface));
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  vertical-align: middle;
}
.avatar-stack > .avatar {
  box-shadow: 0 0 0 2px var(--ring);
}
.avatar-stack > .avatar + .avatar {
  margin-left: calc(var(--size) * -0.28);
}
.avatar-stack > .avatar--xs + .avatar {
  margin-left: -5px;
}

/* -- Progress ------------------------------------------------------------------------------------ */
.progress {
  --value: 0;
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  min-width: 40px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--fill-2);
}
.progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--value) * 1%);
  border-radius: inherit;
  background: var(--tone, var(--accent));
  transition: width var(--dur-4) var(--ease-out);
}
.progress:not([data-color]) .progress__bar {
  background: var(--accent);
}
@starting-style {
  .progress__bar {
    width: 0;
  }
}
.progress--sm {
  height: 4px;
}
.progress--lg {
  height: 10px;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.progress-row__value {
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.progress-ring {
  --size: 44px;
  --value: 0;
  position: relative;
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: var(--size);
  height: var(--size);
}
.progress-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.progress-ring__track {
  fill: none;
  stroke: var(--fill-2);
}
.progress-ring__value {
  fill: none;
  stroke: var(--tone, var(--accent));
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--value));
  transition: stroke-dashoffset var(--dur-4) var(--ease-out);
}
.progress-ring:not([data-color]) .progress-ring__value {
  stroke: var(--accent);
}
@starting-style {
  .progress-ring__value {
    stroke-dashoffset: 100;
  }
}
.progress-ring__label {
  position: relative;
  font-size: calc(var(--size) * 0.26);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* -- Skeleton ------------------------------------------------------------------------------------ */
.skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--fill-1);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, light-dark(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.06)), transparent);
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton::after {
    animation: shimmer 1.4s ease-in-out infinite;
  }
}
.skeleton--text {
  height: 12px;
  border-radius: 4px;
}
.skeleton--title {
  height: 20px;
  width: 40%;
  border-radius: 6px;
}
.skeleton--circle {
  width: var(--size, 32px);
  height: var(--size, 32px);
  border-radius: 50%;
}
.skeleton--block {
  height: var(--h, 96px);
  border-radius: var(--radius-lg);
}

/* -- Empty state --------------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  max-width: 440px;
  margin-inline: auto;
  padding: var(--space-12) var(--space-4);
  text-align: center;
}
.empty-state--compact {
  padding: var(--space-6) var(--space-4);
}
.empty-state__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-3);
  border-radius: 22px;
  background: linear-gradient(150deg, var(--tone-soft), var(--tone-softer));
  color: var(--tone-ink);
  box-shadow: inset 0 0 0 1px var(--tone-softer);
}
.empty-state__art::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 30px;
  background: radial-gradient(closest-side, var(--tone-softer), transparent);
}
.empty-state--compact .empty-state__art {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-1);
  border-radius: 16px;
}
.empty-state__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-snug);
}
.empty-state__text {
  max-width: 360px;
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.5;
}
.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
@media (prefers-reduced-motion: no-preference) {
  .empty-state__art {
    animation: float 6s ease-in-out infinite;
  }
}
@keyframes float {
  50% {
    transform: translateY(-4px);
  }
}

/* -- Stat tile ----------------------------------------------------------------------------------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-title-1);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.stat__trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 6px 0 4px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.stat__trend--up {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success-ink);
}
.stat__trend--down {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger-ink);
}
.stat__trend--flat {
  background: var(--fill-1);
  color: var(--text-2);
}

/* -- Banner / alert ------------------------------------------------------------------------------ */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--tone-softer);
  box-shadow: inset 0 0 0 1px var(--tone-soft);
  color: var(--text);
}
.banner--info { --tone: var(--info); --tone-ink: var(--info-ink); }
.banner--success { --tone: var(--success); --tone-ink: var(--success-ink); }
.banner--warning { --tone: var(--warning); --tone-ink: var(--warning-ink); }
.banner--danger { --tone: var(--danger); --tone-ink: var(--danger-ink); }
.banner {
  --tone-soft: color-mix(in srgb, var(--tone) 18%, transparent);
  --tone-softer: color-mix(in srgb, var(--tone) 9%, transparent);
}
.banner__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--tone-ink);
}
.banner__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.banner__title {
  font-weight: var(--fw-semibold);
}
.banner__text {
  color: var(--text-2);
  font-size: var(--fs-md);
}
.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.banner__close {
  margin: -4px -6px -4px 0;
}

/* -- Keyboard keys ------------------------------------------------------------------------------- */
kbd,
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line-strong);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.kbd-combo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.kbd-combo__then {
  color: var(--text-3);
  font-size: var(--fs-2xs);
}

/* -- Spinner (Apple activity indicator; 8 spokes) ----------------------------------------------- */
.spinner {
  --size: 20px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  color: var(--text-2);
  vertical-align: middle;
}
.spinner > i {
  position: absolute;
  top: 0;
  left: calc(50% - var(--size) * 0.045);
  width: calc(var(--size) * 0.09);
  height: 28%;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.18;
  transform-origin: 50% calc(var(--size) / 2);
  animation: spinner-fade 0.8s linear infinite;
}
.spinner > i:nth-child(1) { transform: rotate(0deg); animation-delay: -0.7s; }
.spinner > i:nth-child(2) { transform: rotate(45deg); animation-delay: -0.6s; }
.spinner > i:nth-child(3) { transform: rotate(90deg); animation-delay: -0.5s; }
.spinner > i:nth-child(4) { transform: rotate(135deg); animation-delay: -0.4s; }
.spinner > i:nth-child(5) { transform: rotate(180deg); animation-delay: -0.3s; }
.spinner > i:nth-child(6) { transform: rotate(225deg); animation-delay: -0.2s; }
.spinner > i:nth-child(7) { transform: rotate(270deg); animation-delay: -0.1s; }
.spinner > i:nth-child(8) { transform: rotate(315deg); animation-delay: 0s; }
@keyframes spinner-fade {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.18;
  }
}
.spinner--sm { --size: 14px; }
.spinner--lg { --size: 32px; }

/* -- Divider ------------------------------------------------------------------------------------- */
.divider {
  height: 1px;
  margin: var(--space-4) 0;
  border: 0;
  background: var(--line);
}
.divider--label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: auto;
  background: none;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}
.divider--label::before,
.divider--label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* -- Underline tabs (in-page) — app.js positions .tabs__indicator under the active tab ------------ */
.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tab {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-1) ease;
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected="true"],
.tab[aria-current="page"],
.tab.is-active {
  color: var(--text);
}
.tab .badge {
  margin-left: 2px;
}
.tabs__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--ind-w, 0px);
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  transform: translateX(var(--ind-x, 0px));
  transition:
    transform var(--dur-3) var(--ease-spring),
    width var(--dur-3) var(--ease-spring);
}
.tabs.no-anim .tabs__indicator {
  transition: none;
}
.tabs:not(.is-ready) :is(.tab[aria-selected="true"], .tab[aria-current="page"], .tab.is-active) {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* -- Property list (label / value rows, e.g. task details) -------------------------------------- */
.props {
  display: grid;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  margin: 0;
}
.props dt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.props dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  margin: 0;
}

/* -- Misc ---------------------------------------------------------------------------------------- */
.htmx-indicator {
  opacity: 0;
  transition: opacity var(--dur-2) ease;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}
.meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.meta .icon {
  color: var(--text-3);
}
.timeago {
  color: var(--text-3);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
