.dashboard-filters.tt-dashboard-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.tt-dashboard-row {
  display: grid;
  grid-template-columns: clamp(60px, 24%, 92px) minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.tt-dashboard-list-area {
  display: flex;
  gap: 5px;
  min-width: 0;
}

.tt-dashboard-scroll {
  display: flex;
  flex: 1 1 0;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tt-dashboard-scroll > .pill {
  flex: 0 0 calc((100% - 12px) / 3);
  scroll-snap-align: start;
}

.tt-dashboard-scroll::-webkit-scrollbar {
  display: none;
}

.tt-dashboard-more {
  flex: 0 0 clamp(26px, 8vw, 36px);
  align-self: stretch;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--chrome-border, var(--app-border));
  border-radius: 10px;
  background: var(--app-chrome);
  color: var(--chrome-text, var(--app-text));
  font: inherit;
  font-size: 23px;
}

.tt-dashboard-more.at-end span {
  transform: rotate(180deg);
}

.dashboard-filters.tt-dashboard-rail .pill,
.tt-update-feed {
  height: 80px;
}

.tt-update-feed {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 11px 7px;
  border: 1px solid var(--accent, var(--app-border));
  border-radius: 15px;
  background: var(--app-panel, #111f34);
  color: var(--app-text);
}

html[data-art-theme="verdant-sanctuary"] .tt-update-feed { background: #011607d4; }
html[data-art-theme="crimson-requiem"] .tt-update-feed { background: #060000d5; }
html[data-art-theme="imperial-dragon"] .tt-update-feed { background: #2b0106d5; }
html[data-art-theme="atlantis-sunken-empire"] .tt-update-feed { background: #191f1ffd; }

.tt-update-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
  font-size: 12px;
  line-height: 16px;
}

.tt-update-scroll:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -1px;
  border-radius: 4px;
}

.tt-update-scroll ol,
.tt-update-scroll p {
  margin: 0;
  padding: 0;
}

.tt-update-scroll li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 3px 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.tt-update-scroll li + li {
  border-top: 1px solid var(--chrome-border, var(--app-border));
}

.tt-update-scroll li > span {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tt-update-scroll time {
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  opacity: .8;
}

.tt-dashboard-row > [data-action="others"] .tt-delegated-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  max-width: 64px;
  min-height: 24px;
}

.tt-delegated-heading .list-filter-icon {
  flex: 0 1 22px;
  min-width: 12px;
}

.tt-delegated-heading .list-filter-icon svg {
  width: 100%;
  height: 23px;
}

.tt-delegated-heading .other-tasks-count {
  flex: 0 0 auto;
  min-width: 18px;
  padding: 2px 3px;
  border-color: currentColor;
  border-color: color-mix(in srgb, currentColor 48%, transparent);
  font-size: 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tt-update-feed.has-onboarding-tip {
  padding: 4px 8px 2px;
  overflow-y: auto;
}

/* Keep the tip at the top and push the buttons to the bottom of the feed. */
.tt-update-tip {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
}

.tt-update-tip p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 14px;
}

.tt-update-tip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
}

/* The small pill sits inside a bigger area so both buttons are easy to tap. */
.tt-update-tip .tt-update-tip-actions > button.soft {
  --tip-button-border: color-mix(in srgb, var(--app-text) 38%, transparent);
  --tip-button-fill: color-mix(in srgb, var(--app-text) 8%, transparent);
  position: relative;
  isolation: isolate;
  flex: 0 1 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 9px 0;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--app-text) !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
}

.tt-update-tip .tt-update-tip-actions > button.soft::before {
  position: absolute;
  z-index: -1;
  inset: 14px 0 3px;
  border: 1px solid var(--tip-button-border);
  border-radius: 8px;
  background: var(--tip-button-fill);
  content: "";
  pointer-events: none;
}

.tt-update-tip .tt-update-tip-actions > button[data-action^="tipOpen:"] {
  --tip-button-border: var(--accent, currentColor);
  --tip-button-fill: color-mix(in srgb, var(--accent, currentColor) 19%, transparent);
  font-weight: 700;
}

.tt-update-tip .tt-update-tip-actions > button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.tt-update-tip .tt-update-tip-actions > button:active {
  opacity: 0.72;
}
