.action-center-main {
  max-width: 1540px;
}

.action-center-header {
  margin-bottom: 24px;
}

.action-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 27px 29px;
  border: 1px solid rgba(var(--brand-accent-rgb), 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-accent-rgb), 0.2), transparent 19rem),
    linear-gradient(120deg, #fff, var(--brand-paper));
  box-shadow: 0 12px 34px rgba(var(--brand-ink-rgb), 0.045);
}

.action-overview h2,
.action-filter-card h2,
.action-list-heading h2,
.action-help h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.035em;
}

.action-overview h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.action-overview > div > p:last-child {
  margin: 8px 0 0;
  color: var(--brand-muted);
  font-size: var(--type-small);
}

.action-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 9px;
  min-width: 390px;
  margin: 0;
}

.action-summary > div {
  padding: 13px 15px;
  border: 1px solid rgba(var(--brand-accent-rgb), 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.action-summary dt {
  color: var(--brand-muted);
  font-size: var(--type-caption);
}

.action-summary dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.action-filter-card,
.action-list-card,
.action-help {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(var(--brand-ink-rgb), 0.04);
}

.action-filter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px 24px;
}

.action-filter-card h2,
.action-help h2 {
  font-size: 1.08rem;
}

.action-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Base controls use the same shared styling as Today's quick actions. */
.action-filters button { border-radius: 10px; }

.action-filters button[aria-pressed="true"] {
  border-color: rgba(var(--brand-accent-rgb), 0.34);
  color: var(--blue-dark);
  background: rgba(var(--brand-accent-rgb), 0.09);
}

.action-filters button:focus-visible,
.action-open:focus-visible {
  outline: 3px solid var(--brand-accent-hover);
  outline-offset: 2px;
}

.action-filters button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.action-list-card {
  overflow: hidden;
}

.action-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 27px 20px;
  border-bottom: 1px solid var(--line);
}

.action-list-heading h2 {
  font-size: 1.25rem;
}

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

.action-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 27px;
  border-left: 3px solid var(--blue);
}

.action-item + .action-item {
  border-top: 1px solid var(--brand-paper);
}

.action-item.action-urgent {
  border-left-color: #df7d32;
  background: linear-gradient(90deg, rgba(255, 244, 232, 0.6), #fff 34%);
}

.action-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--blue-dark);
  font-size: var(--type-small);
  font-weight: 700;
  background: rgba(var(--brand-accent-rgb), 0.08);
}

.action-urgent .action-number {
  color: #9a4e18;
  background: #ffead8;
}

.action-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.action-labels span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.025em;
}

.action-priority-attention {
  color: #176f60;
  background: #e4f7f2;
}

.action-priority-urgent {
  color: #98501c;
  background: #ffead8;
}

.action-kind {
  color: var(--brand-muted);
  background: var(--brand-paper);
}

.action-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.action-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-copy p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
  line-height: 1.55;
}

.action-copy small {
  display: block;
  margin-top: 9px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
}

.action-open {
  white-space: nowrap;
}

.action-empty {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 28px;
  padding: 34px;
  border: 1px dashed var(--brand-line);
  border-radius: 17px;
  background: #f7fbfa;
}

.action-empty > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #197b69;
  background: #def5ef;
}

.action-empty h3 {
  margin: 0;
  color: var(--ink);
}

.action-empty p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
}

.action-truncated {
  margin: 0;
  padding: 15px 27px;
  border-top: 1px solid var(--line);
  color: var(--brand-muted);
  font-size: var(--type-small);
  background: var(--brand-paper);
}

.action-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 24px 27px;
  border-color: rgba(39, 159, 137, 0.22);
  background: linear-gradient(120deg, #fff, #f1fbf8);
}

.action-help > div {
  flex: 1 1 24rem;
  min-width: 0;
}

.action-help p:last-child {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
  line-height: 1.55;
}

.action-help .card-link {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
}

.action-center-footer {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .action-overview,
  .action-filter-card,
  .action-help {
    align-items: stretch;
    flex-direction: column;
  }

  .action-summary {
    min-width: 0;
  }

  .action-filters {
    justify-content: flex-start;
  }

  .action-help .card-link {
    align-self: flex-start;
  }

  .action-help > div {
    flex-basis: auto;
  }
}

@media (max-width: 620px) {
  .action-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    padding: 20px;
  }

  .action-open {
    grid-column: 2;
    justify-self: start;
  }

  .action-item .action-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .action-list-heading {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-filters button,
  .action-open,
  .action-help .card-link {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Keep this review surface compact and scoped to Action Center. */
html.action-center-root,
.action-center-page { min-width: 0; }
.action-center-page .dashboard-main { min-width: 0; }
.action-center-header { margin-bottom: 12px; }
.action-center-header h1 { font-size: clamp(2rem, 3.3vw, 3rem); }
.action-overview { padding: 20px 24px; box-shadow: none; }
.action-overview h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.action-source-note,
.action-coverage-note { margin: 12px 0; color: var(--brand-muted); font-size: var(--type-small); line-height: 1.6; overflow-wrap: anywhere; }
.action-coverage-note { padding: 14px 18px; border-left: 3px solid var(--brand-accent); background: var(--brand-paper); color: var(--ink); }
.action-filter-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px; }
.action-filter-card .card-kicker { display: none; }
.action-filters { justify-content: flex-start; }
.action-search { margin: 0 0 18px; padding: 0; border: 0; background: transparent; }
.action-search label { display: block; margin-bottom: 8px; color: var(--ink); font-size: var(--type-small); font-weight: 650; }
.action-search > div { display: flex; align-items: center; gap: 12px; }
.action-search input { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--brand-line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.action-load-more { margin: 16px 24px; }
.action-list-heading { align-items: center; padding: 18px 24px; }
.action-item { padding: 20px 24px; }
.action-copy h3 { font-size: 1rem; }
.action-copy details { margin-top: 8px; }
.action-copy summary { width: fit-content; max-width: 100%; padding: 16px 0; min-height: 44px; color: var(--ink); font-weight: 650; cursor: pointer; }
.action-copy details[open] { margin-top: 12px; padding: 0 16px 14px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-paper); }
.action-copy .action-reason { font-size: var(--type-caption); }
.action-open { grid-row: auto; display: inline-flex; align-items: center; min-height: 44px; white-space: normal; overflow-wrap: anywhere; max-width: 11rem; }
.action-help { background: var(--brand-paper); border-color: var(--brand-line); box-shadow: none; }
.action-empty { margin: 20px; padding: 22px; background: var(--brand-paper); }
.action-center-page :is(input,button,a,summary):focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.action-center-page [hidden] { display: none !important; }
@media (max-width: 1100px) {
  .action-overview { flex-direction: column; align-items: stretch; gap: 18px; }
  .action-summary { min-width: 0; }
  .action-item { grid-template-columns: 40px minmax(0,1fr); }
  .action-open { grid-column: 2; }
}
@media (max-width: 620px) {
  .action-overview, .action-filter-card, .action-help { padding: 18px; }
  .action-item { padding: 18px; gap: 10px; }
  .action-search > div { flex-wrap: wrap; }
  .action-search input { flex-basis: 100%; }
  .action-empty { margin: 14px; padding: 16px; align-items: flex-start; }
  .action-empty > span { display: none; }
  .action-list-heading { flex-wrap: wrap; gap: 10px; }
}
.action-center-page .refresh-button span:last-child { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }

.action-center-page :is(a,summary):focus-visible { outline-color: var(--brand-accent); outline-offset: 4px; }
.action-help .card-link { align-items: center; min-height: 44px; margin: 0; overflow-wrap: anywhere; }
