.labs-dashboard[hidden] { display: none !important; }

.labs-dashboard {
  --dashboard-card-shadow: 0 2px 9px rgba(25, 25, 22, .075);
  --dashboard-card-shadow-hover: 0 6px 17px rgba(25, 25, 22, .095);
  width: 100%;
  padding: 14px 0 54px;
  color: #171717;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.labs-dashboard-overview {
  position: relative;
  z-index: 120;
  min-width: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.labs-dashboard-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.labs-dashboard-filter { position: relative; }

.labs-dashboard-filter > button {
  position: relative;
  min-width: 68px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #74736f;
  font: 500 11px/1 Inter, sans-serif;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.labs-dashboard-filter > button:hover,
.labs-dashboard-filter > button:focus-visible,
.labs-dashboard-filter > button[aria-expanded="true"] {
  background: #f4f3f0;
  color: #22211f;
  outline: 0;
}

.labs-dashboard-filter > button.is-filtered {
  background: #eeece8;
  color: #171614;
}

.labs-dashboard-filter > button.is-filtered::after {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #701472;
  content: "";
}

.labs-dashboard-filter-menu {
  position: absolute;
  z-index: 240;
  top: calc(100% + 8px);
  right: 0;
  width: 224px;
  padding: 7px;
  border: 1px solid #e2e2de;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(32, 25, 34, .13), 0 2px 7px rgba(32, 25, 34, .05);
}

.labs-dashboard-filter-menu[hidden] { display: none; }

.labs-dashboard-filter-menu > button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #292927;
  font: 500 11px/1.2 Inter, sans-serif;
  text-align: left;
  cursor: pointer;
}

.labs-dashboard-filter-menu > button::after {
  color: #701472;
  content: "";
  font-size: 12px;
  font-weight: 700;
}

.labs-dashboard-filter-menu > button.is-active::after { content: "✓"; }

.labs-dashboard-filter-menu > button:hover,
.labs-dashboard-filter-menu > button:focus-visible,
.labs-dashboard-filter-menu > button.is-active {
  background: #f2f2f0;
  outline: 0;
}

.labs-dashboard-first-row {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(272px, .82fr);
  align-items: stretch;
  gap: 16px;
}

.labs-dashboard-block {
  min-width: 0;
  min-height: 444px;
  border-radius: 14px;
}

.labs-dashboard-block > h2 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.labs-dashboard-attention {
  padding: 24px 22px 26px;
  overflow: hidden;
  background: #eafcff;
}

.labs-dashboard-attention > h2 { color: #0f5272; }

.labs-dashboard-attention-stack {
  position: relative;
  height: 352px;
  margin-top: 18px;
}

.labs-dashboard-attention-card {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  width: 100%;
  min-height: 322px;
  padding: 20px 24px 24px;
  border: 1px solid rgba(30, 45, 48, .1);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--dashboard-card-shadow);
  opacity: 1;
  pointer-events: none;
  transform-origin: center top;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease, box-shadow 160ms ease;
}

.labs-dashboard-attention-card:nth-child(1) {
  z-index: 3;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.labs-dashboard-attention-card:nth-child(2) {
  z-index: 2;
  transform: translateY(13px) scale(.986);
}

.labs-dashboard-attention-card:nth-child(n + 3) {
  z-index: 1;
  transform: translateY(26px) scale(.973);
}

.labs-dashboard-attention-card:nth-child(n + 4) { display: none; }

.labs-dashboard-attention-card:nth-child(1):hover,
.labs-dashboard-attention-card:nth-child(1):focus-within { box-shadow: var(--dashboard-card-shadow-hover); }

.labs-dashboard-attention-card.is-completing {
  animation: labs-dashboard-card-complete 280ms cubic-bezier(.4, 0, .2, 1) both;
  pointer-events: none;
}

.labs-dashboard-attention-card.is-snoozing {
  animation: labs-dashboard-card-snooze 320ms cubic-bezier(.4, 0, .2, 1) both;
  pointer-events: none;
}

@keyframes labs-dashboard-card-complete {
  to { opacity: 0; transform: translate3d(34px, -6px, 0) scale(.975); }
}

@keyframes labs-dashboard-card-snooze {
  55% { opacity: 0; transform: translate3d(-34px, 5px, 0) scale(.965); }
  100% { opacity: 0; transform: translate3d(-20px, 22px, 0) scale(.94); }
}

.labs-dashboard-attention-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.labs-dashboard-attention-head > span {
  color: #232323;
  font-size: 12px;
  font-weight: 500;
}

.labs-dashboard-attention-head > small {
  overflow: hidden;
  color: #b53e5c;
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-attention-card > h3 {
  margin: 8px 0 0;
  overflow: hidden;
  color: #111;
  font-size: clamp(20px, 1.72vw, 25px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-attention-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(175px, .82fr) minmax(220px, 1.2fr) minmax(120px, .58fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: 28px;
}

.labs-dashboard-project-mini {
  min-width: 0;
  min-height: 182px;
  padding: 18px 16px 15px;
  border-radius: 4px;
  background: #e3dacc;
}

.labs-dashboard-project-mini > strong {
  display: block;
  overflow: hidden;
  margin-bottom: 17px;
  color: #111;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-project-mini dl { margin: 0; }

.labs-dashboard-project-mini dl > div {
  min-width: 0;
  min-height: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(17, 17, 17, .64);
}

.labs-dashboard-project-mini dt,
.labs-dashboard-project-mini dd {
  overflow: hidden;
  margin: 0;
  color: #111;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-project-mini dd { font-weight: 400; text-align: right; }

.labs-dashboard-attention-context {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.labs-dashboard-requester {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, .35);
}

.labs-dashboard-requester-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: visible;
}

.labs-dashboard-requester-avatar > span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 30, 25, .07);
  border-radius: 50%;
  background: #fff;
}

.labs-dashboard-requester-avatar > span img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(.98, .82);
}

.labs-dashboard-requester-accessory {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: 4px;
  width: 52px;
  max-width: none;
  pointer-events: none;
}

.labs-dashboard-requester-avatar.is-nerd .labs-dashboard-requester-accessory {
  top: 10px;
  right: -9px;
  left: auto;
  width: 32px;
}

.labs-dashboard-requester-avatar.is-monja .labs-dashboard-requester-accessory {
  top: -7px;
  left: -6px;
  width: 43px;
}

.labs-dashboard-requester > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.labs-dashboard-requester strong {
  overflow: hidden;
  color: #171717;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-requester small {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 4px;
  overflow: hidden;
  background: #e7e7e3;
  color: #666660;
  font-size: 9.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-attention-context > p {
  margin: 13px 0 0;
  overflow: hidden;
  color: #171717;
  font-family: "Instrument Sans", Inter, ui-sans-serif, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.labs-dashboard-attention-actions {
  min-width: 0;
  display: grid;
  align-content: end;
  align-self: stretch;
  gap: 9px;
}

.labs-dashboard-attention-actions button {
  width: 100%;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  color: #171717;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.labs-dashboard-attention-actions button:hover,
.labs-dashboard-attention-actions button:focus-visible {
  background: #e8e8e6;
  color: #000;
  outline: 0;
}

.labs-dashboard-attention-actions button:active { transform: translateY(1px); }

.labs-dashboard-attention-actions button.is-primary { background: #f1ffcf; }
.labs-dashboard-attention-actions button.is-primary:hover,
.labs-dashboard-attention-actions button.is-primary:focus-visible { background: #e5f4bd; }

.labs-dashboard-attention-empty {
  height: 100%;
  margin: 0;
  border: 1px dashed rgba(15, 82, 114, .24);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #5f8799;
  font-size: 12px;
  font-weight: 500;
}

.labs-dashboard-attention-empty[hidden] { display: none; }

.labs-dashboard-today {
  padding: 24px 14px;
  background: #fffeda;
}

.labs-dashboard-today > h2 { margin-left: 4px; color: #99881c; }

.labs-dashboard-today-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.labs-dashboard-today-list > button {
  width: 100%;
  min-height: 72px;
  padding: 10px 13px;
  border: 1px solid rgba(40, 38, 18, .1);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 63px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: #fff;
  box-shadow: var(--dashboard-card-shadow);
  color: #111;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.labs-dashboard-today-list > button:hover,
.labs-dashboard-today-list > button:focus-visible {
  border-color: rgba(91, 82, 28, .2);
  box-shadow: var(--dashboard-card-shadow-hover);
  outline: 0;
  transform: translateY(-1px);
}

.labs-dashboard-today-list > button:active { transform: translateY(0); }

.labs-dashboard-today-list time {
  color: #111;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.labs-dashboard-today-list > button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.labs-dashboard-today-list strong,
.labs-dashboard-today-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-today-list strong {
  color: #111;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.labs-dashboard-today-list small {
  color: #3f3f3b;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.2;
}

.labs-dashboard-today-more {
  width: fit-content;
  margin: 17px auto 0;
  padding: 4px 8px;
  border: 0;
  display: block;
  background: transparent;
  color: #776a19;
  font: 600 11px/1.2 Inter, sans-serif;
  cursor: pointer;
  transition: color 140ms ease, opacity 140ms ease;
}

.labs-dashboard-today-more:hover,
.labs-dashboard-today-more:focus-visible {
  color: #3e3710;
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.labs-dashboard-execution {
  position: relative;
  min-width: 0;
  margin-top: 16px;
  padding: 20px 20px 25px;
  overflow: visible;
  border-radius: 14px;
  background: #feebff;
}

.labs-dashboard-execution > h2 {
  margin: 0;
  color: #701472;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.labs-dashboard-execution-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px clamp(18px, 2.35vw, 34px);
  margin-top: 22px;
}

.labs-dashboard-execution-item {
  position: relative;
  z-index: 1;
  min-width: 0;
  outline: 0;
}

.labs-dashboard-execution-item:hover,
.labs-dashboard-execution-item:focus-within,
.labs-dashboard-execution-item:focus { z-index: 40; }

.labs-dashboard-execution-item:focus-visible .labs-dashboard-execution-card {
  outline: 2px solid rgba(112, 20, 114, .35);
  outline-offset: 3px;
}

.labs-dashboard-execution-card {
  position: relative;
  min-width: 0;
  height: 76px;
  padding: 9px 14px 9px 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  background: #fff;
  color: #232321;
  cursor: default;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.labs-dashboard-execution-card[data-personality="praiana"] { background: #ffe8c5; }
.labs-dashboard-execution-card[data-personality="monja"] { background: #e1fcff; }
.labs-dashboard-execution-card[data-personality="nerd"] { background: #e1ffe8; }
.labs-dashboard-execution-card[data-personality="personalizado"] { background: #faffda; }

.labs-dashboard-execution-item:hover .labs-dashboard-execution-card,
.labs-dashboard-execution-item:focus-within .labs-dashboard-execution-card,
.labs-dashboard-execution-item:focus .labs-dashboard-execution-card {
  box-shadow: 0 6px 16px rgba(29, 24, 30, .07);
  transform: translateY(-1px);
}

.labs-dashboard-execution-avatar {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  width: 54px;
  height: 54px;
  overflow: visible;
}

.labs-dashboard-execution-avatar > span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(40, 40, 35, .06);
  border-radius: 50%;
  background: #fff;
}

.labs-dashboard-execution-avatar > span img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(.98, .82);
}

.labs-dashboard-execution-accessory {
  position: absolute;
  z-index: 3;
  max-width: none;
  max-height: none;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.labs-dashboard-execution-avatar[data-personality="praiana"] .labs-dashboard-execution-accessory {
  top: -15px;
  left: 3px;
  width: 49px;
}

.labs-dashboard-execution-avatar[data-personality="monja"] .labs-dashboard-execution-accessory {
  top: -9px;
  left: -7px;
  width: 42px;
}

.labs-dashboard-execution-avatar[data-personality="nerd"] .labs-dashboard-execution-accessory {
  top: 8px;
  right: -9px;
  width: 30px;
}

.labs-dashboard-execution-avatar[data-personality="personalizado"] .labs-dashboard-execution-accessory {
  bottom: -7px;
  left: -9px;
  width: 72px;
}

.labs-dashboard-execution-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.labs-dashboard-execution-copy strong {
  overflow: hidden;
  color: #242421;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-execution-copy small {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(95, 95, 90, .14);
  color: #575752;
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-execution-state {
  position: absolute;
  z-index: 5;
  top: -18px;
  right: -15px;
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.labs-dashboard-execution-details {
  position: fixed;
  z-index: 190;
  top: 0;
  left: 0;
  right: auto !important;
  width: min(336px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e2e2de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(32, 25, 34, .13), 0 2px 7px rgba(32, 25, 34, .05);
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 130ms ease, transform 150ms ease, visibility 0s linear 150ms;
  visibility: hidden;
}

.labs-dashboard-execution-details::before {
  position: absolute;
  top: -5px;
  left: var(--details-arrow-x, 26px) !important;
  right: auto !important;
  width: 9px;
  height: 9px;
  border-top: 1px solid #e2e2de;
  border-left: 1px solid #e2e2de;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.labs-dashboard-execution-details[data-placement="above"]::before {
  top: auto;
  bottom: -5px;
  border-top: 0;
  border-right: 1px solid #e2e2de;
  border-bottom: 1px solid #e2e2de;
  border-left: 0;
}

.labs-dashboard-execution-item:nth-child(5n) .labs-dashboard-execution-details,
.labs-dashboard-execution-item:nth-child(5n + 4) .labs-dashboard-execution-details {
  right: 0;
  left: auto;
}

.labs-dashboard-execution-item:nth-child(5n) .labs-dashboard-execution-details::before,
.labs-dashboard-execution-item:nth-child(5n + 4) .labs-dashboard-execution-details::before {
  right: 26px;
  left: auto;
}

.labs-dashboard-execution-item:hover .labs-dashboard-execution-details,
.labs-dashboard-execution-item:focus-within .labs-dashboard-execution-details,
.labs-dashboard-execution-item:focus .labs-dashboard-execution-details,
.labs-dashboard-execution-item.is-details-open .labs-dashboard-execution-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 70ms, 70ms, 0s;
  visibility: visible;
}

.labs-dashboard-execution-details > span {
  display: block;
  margin-bottom: 6px;
  color: #8b8b85;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.labs-dashboard-execution-details > strong {
  display: block;
  margin-bottom: 14px;
  color: #242421;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.labs-dashboard-execution-details dl { margin: 0; }

.labs-dashboard-execution-details dl > div {
  min-height: 32px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eeeeeb;
}

.labs-dashboard-execution-details dt,
.labs-dashboard-execution-details dd {
  margin: 0;
  color: #7b7b76;
  font-size: 10.5px;
  line-height: 1.35;
}

.labs-dashboard-execution-details dt { font-weight: 500; }
.labs-dashboard-execution-details dd { color: #30302d; font-weight: 500; text-align: right; }

.labs-dashboard-execution-details > p {
  margin: 11px 0 0;
  padding: 10px;
  border-radius: 7px;
  background: #fff1f1;
  color: #8f3939;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
}

.labs-dashboard-execution-details > p span {
  display: block;
  margin-bottom: 2px;
  color: #b75b5b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.labs-dashboard-execution-details > button {
  width: 100%;
  min-height: 38px;
  margin-top: 13px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #f1f1ef;
  color: #242421;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 130ms ease, color 130ms ease;
}

.labs-dashboard-execution-details > button:hover,
.labs-dashboard-execution-details > button:focus-visible {
  background: #e5e5e2;
  color: #000;
  outline: 0;
}

.labs-dashboard-risk {
  min-width: 0;
  margin-top: 16px;
  padding: 24px 28px 30px;
  overflow: visible;
  border-radius: 14px;
  background: #ffdfdf;
}

.labs-dashboard-risk > h2 {
  margin: 0;
  color: #9b2626;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.labs-dashboard-risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
  margin-top: 27px;
}

.labs-dashboard-risk-card {
  position: relative;
  min-width: 0;
  min-height: 222px;
  padding: 21px 17px 16px;
  border: 1px solid rgba(82, 36, 36, .06);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: var(--dashboard-card-shadow);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, opacity 180ms ease;
}

.labs-dashboard-risk-card:hover,
.labs-dashboard-risk-card:focus-within {
  border-color: rgba(155, 38, 38, .14);
  box-shadow: var(--dashboard-card-shadow-hover);
  transform: translateY(-2px);
}

.labs-dashboard-risk-card.is-moving-later {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.985);
}

.labs-dashboard-risk-state {
  position: absolute;
  z-index: 2;
  top: -24px;
  right: -17px;
  width: 67px;
  height: 67px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.labs-dashboard-risk-card > h3 {
  max-width: calc(100% - 42px);
  margin: 0;
  overflow: hidden;
  color: #171717;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-risk-milestone {
  margin: 7px 0 0;
  overflow: hidden;
  color: #292927;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-risk-reason {
  margin-top: 16px;
  padding: 12px 10px;
  border-radius: 5px;
  background: #fffeda;
}

.labs-dashboard-risk-reason > strong {
  display: block;
  margin-bottom: 11px;
  color: #bd7a1d;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.labs-dashboard-risk-reason > p {
  margin: 0;
  color: #171717;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.35;
}

.labs-dashboard-risk-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.labs-dashboard-risk-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 5px;
  background: #f1f1ef;
  color: #222220;
  font: 500 10.5px/1.2 Inter, sans-serif;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.labs-dashboard-risk-actions button.is-primary { background: #f1ffcf; }

.labs-dashboard-risk-actions button:hover,
.labs-dashboard-risk-actions button:focus-visible {
  background: #e5e5e2;
  color: #000;
  outline: 0;
}

.labs-dashboard-risk-actions button.is-primary:hover,
.labs-dashboard-risk-actions button.is-primary:focus-visible { background: #e5f4bd; }

.labs-dashboard-risk-actions button:active { transform: translateY(1px); }

.labs-dashboard-activity-row {
  min-width: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.labs-dashboard-completed,
.labs-dashboard-recent {
  min-width: 0;
  padding: 26px 28px 30px;
  border-radius: 14px;
}

.labs-dashboard-completed { background: #e1ffe8; }
.labs-dashboard-recent { background: #ffedd1; }

.labs-dashboard-completed > h2,
.labs-dashboard-recent > h2 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.labs-dashboard-completed > h2 { color: #1c6913; }
.labs-dashboard-recent > h2 { color: #c7841e; }

.labs-dashboard-completed-list,
.labs-dashboard-recent-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.labs-dashboard-completed-card,
.labs-dashboard-recent-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(44, 67, 45, .055);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--dashboard-card-shadow);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, opacity 220ms ease;
}

.labs-dashboard-completed-card {
  min-height: 158px;
  padding: 19px 22px 17px;
}

.labs-dashboard-completed-card:hover,
.labs-dashboard-completed-card:focus-within,
.labs-dashboard-recent-card:hover,
.labs-dashboard-recent-card:focus-within {
  box-shadow: var(--dashboard-card-shadow-hover);
  transform: translateY(-1px);
}

.labs-dashboard-completed-card.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translateX(22px) scale(.985);
}

.labs-dashboard-completed-card.is-moving-later {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.985);
}

.labs-dashboard-completed-card > header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.labs-dashboard-completed-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.labs-dashboard-agent-chip {
  position: relative;
  min-height: 34px;
  padding: 7px 11px 7px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: #4c4c45;
}

.labs-dashboard-agent-chip[data-personality="praiana"] { background: #ffe8c5; color: #8a520f; }
.labs-dashboard-agent-chip[data-personality="monja"] { background: #e1fcff; color: #125b66; }
.labs-dashboard-agent-chip[data-personality="nerd"] { background: #e1ffe8; color: #22612c; }
.labs-dashboard-agent-chip[data-personality="personalizado"] { background: #faffda; color: #66621c; }

.labs-dashboard-agent-chip > img {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: -12px;
  width: 43px;
  height: 43px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.labs-dashboard-agent-chip[data-personality="monja"] > img { top: -10px; left: -14px; width: 46px; height: 46px; }
.labs-dashboard-agent-chip[data-personality="nerd"] > img { top: -8px; left: -9px; width: 36px; height: 36px; }

.labs-dashboard-agent-chip > strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.labs-dashboard-completed-summary > h3 {
  min-width: 0;
  margin: 0;
  color: #191917;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.labs-dashboard-completed-meta {
  min-width: 168px;
  display: grid;
  justify-items: end;
  gap: 3px;
  color: #252523;
  text-align: right;
  white-space: nowrap;
}

.labs-dashboard-completed-meta strong,
.labs-dashboard-completed-meta time {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
}

.labs-dashboard-completed-meta time { font-weight: 500; }

.labs-dashboard-completed-meta small {
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f1f1ee;
  color: #666660;
  font-size: 8.5px;
  font-weight: 500;
}

.labs-dashboard-completed-evidence {
  margin-top: 12px;
  color: #171717;
}

.labs-dashboard-completed-evidence > strong,
.labs-dashboard-completed-evidence > p {
  display: block;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
}

.labs-dashboard-completed-evidence > strong { font-weight: 600; }
.labs-dashboard-completed-evidence > p { font-weight: 400; }

.labs-dashboard-completed-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.labs-dashboard-completed-actions button,
.labs-dashboard-recent-card > button {
  min-height: 36px;
  padding: 0 17px;
  border: 0;
  border-radius: 5px;
  background: #f1f1ef;
  color: #222220;
  font: 600 11px/1.2 Inter, sans-serif;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.labs-dashboard-completed-actions button.is-primary,
.labs-dashboard-recent-card > button { background: #f1ffcf; }

.labs-dashboard-completed-actions button:hover,
.labs-dashboard-completed-actions button:focus-visible,
.labs-dashboard-recent-card > button:hover,
.labs-dashboard-recent-card > button:focus-visible {
  background: #e5e5e2;
  color: #000;
  outline: 0;
}

.labs-dashboard-completed-actions button.is-primary:hover,
.labs-dashboard-completed-actions button.is-primary:focus-visible,
.labs-dashboard-recent-card > button:hover,
.labs-dashboard-recent-card > button:focus-visible { background: #e5f4bd; }

.labs-dashboard-completed-actions button:active,
.labs-dashboard-recent-card > button:active { transform: translateY(1px); }

.labs-dashboard-completed-empty {
  min-height: 110px;
  margin: 0;
  border: 1px dashed rgba(28, 105, 19, .25);
  border-radius: 10px;
  place-items: center;
  color: #568151;
  font-size: 11px;
  font-weight: 500;
}

.labs-dashboard-completed-empty:not([hidden]) { display: grid; }

.labs-dashboard-recent-card {
  min-height: 132px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 20px 18px;
}

.labs-dashboard-recent-event {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.labs-dashboard-recent-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fee2ff;
  color: #701472;
  font-size: 12px;
  font-weight: 700;
}

.labs-dashboard-recent-event > p {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #fee2ff;
  color: #171717;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-recent-event > p strong { color: #701472; font-weight: 600; }

.labs-dashboard-recent-card > time {
  align-self: center;
  justify-self: end;
  color: #2b2b29;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.labs-dashboard-recent-source {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  overflow: hidden;
}

.labs-dashboard-recent-source span,
.labs-dashboard-recent-source strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-dashboard-recent-source span { flex: 0 1 auto; color: #777772; font-weight: 500; }
.labs-dashboard-recent-source strong { color: #171717; font-weight: 600; }

.labs-dashboard-recent-card > button {
  min-width: 124px;
  justify-self: end;
}

.labs-dashboard-block > h2,
.labs-dashboard-execution > h2,
.labs-dashboard-risk > h2,
.labs-dashboard-completed > h2,
.labs-dashboard-recent > h2 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

@media (max-width: 1100px) {
  .labs-dashboard-first-row { grid-template-columns: minmax(0, 1.9fr) minmax(248px, .75fr); }
  .labs-dashboard-attention-body { grid-template-columns: 160px minmax(180px, 1fr) 112px; gap: 16px; }
  .labs-dashboard-project-mini { padding-inline: 11px; }
  .labs-dashboard-execution-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .labs-dashboard-risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .labs-dashboard-execution-item:nth-child(5n) .labs-dashboard-execution-details,
  .labs-dashboard-execution-item:nth-child(5n + 4) .labs-dashboard-execution-details { right: auto; left: 0; }
  .labs-dashboard-execution-item:nth-child(5n) .labs-dashboard-execution-details::before,
  .labs-dashboard-execution-item:nth-child(5n + 4) .labs-dashboard-execution-details::before { right: auto; left: 26px; }
  .labs-dashboard-execution-item:nth-child(4n) .labs-dashboard-execution-details,
  .labs-dashboard-execution-item:nth-child(4n + 3) .labs-dashboard-execution-details { right: 0; left: auto; }
  .labs-dashboard-execution-item:nth-child(4n) .labs-dashboard-execution-details::before,
  .labs-dashboard-execution-item:nth-child(4n + 3) .labs-dashboard-execution-details::before { right: 26px; left: auto; }
}

@media (max-width: 880px) {
  .labs-dashboard-overview { align-items: flex-start; flex-direction: column; }
  .labs-dashboard-filters { width: 100%; justify-content: flex-end; }
  .labs-dashboard-first-row { grid-template-columns: 1fr; }
  .labs-dashboard-activity-row { grid-template-columns: 1fr; }
  .labs-dashboard-block { min-height: 0; }
  .labs-dashboard-today-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .labs-dashboard-execution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .labs-dashboard-execution-item .labs-dashboard-execution-details,
  .labs-dashboard-execution-item:nth-child(4n) .labs-dashboard-execution-details,
  .labs-dashboard-execution-item:nth-child(4n + 3) .labs-dashboard-execution-details { right: auto; left: 0; }
  .labs-dashboard-execution-item .labs-dashboard-execution-details::before,
  .labs-dashboard-execution-item:nth-child(4n) .labs-dashboard-execution-details::before,
  .labs-dashboard-execution-item:nth-child(4n + 3) .labs-dashboard-execution-details::before { right: auto; left: 26px; }
  .labs-dashboard-execution-item:nth-child(3n) .labs-dashboard-execution-details { right: 0; left: auto; }
  .labs-dashboard-execution-item:nth-child(3n) .labs-dashboard-execution-details::before { right: 26px; left: auto; }
}

@media (max-width: 640px) {
  .labs-dashboard-filters { justify-content: stretch; }
  .labs-dashboard-filter { flex: 1 1 0; }
  .labs-dashboard-filter > button { width: 100%; min-width: 0; }
  .labs-dashboard-filter-menu { right: auto; left: 0; width: min(224px, calc(100vw - 44px)); }
  .labs-dashboard-filter:last-child .labs-dashboard-filter-menu { right: 0; left: auto; }
  .labs-dashboard-attention { padding: 17px 14px 24px; }
  .labs-dashboard-attention-stack { height: 512px; }
  .labs-dashboard-attention-card { min-height: 486px; padding: 16px; }
  .labs-dashboard-attention-body { grid-template-columns: 1fr; align-items: stretch; gap: 13px; }
  .labs-dashboard-project-mini { min-height: 124px; }
  .labs-dashboard-attention-context > p { -webkit-line-clamp: 2; }
  .labs-dashboard-attention-actions { grid-template-columns: 1fr 1fr; }
  .labs-dashboard-today-list { grid-template-columns: 1fr; }
  .labs-dashboard-execution { padding-inline: 14px; }
  .labs-dashboard-execution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .labs-dashboard-risk { padding: 20px 18px 24px; }
  .labs-dashboard-risk-grid { grid-template-columns: 1fr; gap: 24px; }
  .labs-dashboard-completed,
  .labs-dashboard-recent { padding: 20px 18px 24px; }
  .labs-dashboard-completed-card > header { grid-template-columns: 1fr; }
  .labs-dashboard-completed-meta { min-width: 0; justify-items: start; text-align: left; white-space: normal; }
  .labs-dashboard-recent-card { grid-template-columns: 1fr auto; }
  .labs-dashboard-recent-event { grid-column: 1 / -1; }
  .labs-dashboard-execution-item:nth-child(3n) .labs-dashboard-execution-details { right: auto; left: 0; }
  .labs-dashboard-execution-item:nth-child(3n) .labs-dashboard-execution-details::before { right: auto; left: 26px; }
  .labs-dashboard-execution-item:nth-child(2n) .labs-dashboard-execution-details { right: 0; left: auto; }
  .labs-dashboard-execution-item:nth-child(2n) .labs-dashboard-execution-details::before { right: 26px; left: auto; }
}

@media (max-width: 430px) {
  .labs-dashboard-execution-grid { grid-template-columns: 1fr; }
  .labs-dashboard-execution-item:nth-child(n) .labs-dashboard-execution-details { right: auto; left: 0; }
  .labs-dashboard-execution-item:nth-child(n) .labs-dashboard-execution-details::before { right: auto; left: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .labs-dashboard-attention-card,
  .labs-dashboard-filter > button,
  .labs-dashboard-attention-actions button,
  .labs-dashboard-today-list > button,
  .labs-dashboard-execution-card,
  .labs-dashboard-execution-details,
  .labs-dashboard-execution-details > button,
  .labs-dashboard-today-more,
  .labs-dashboard-risk-card,
  .labs-dashboard-risk-actions button,
  .labs-dashboard-completed-card,
  .labs-dashboard-completed-actions button,
  .labs-dashboard-recent-card,
  .labs-dashboard-recent-card > button { transition: none; }
  .labs-dashboard-attention-card.is-completing,
  .labs-dashboard-attention-card.is-snoozing { animation-duration: 1ms; }
}
