/* Action Center presentation tokens. Values stay inside Action Center surfaces
 * (the full-screen panel and the detail views it opens) and follow Home theme
 * and font-size preferences through the shared base tokens. */
.action-center .runtime-update { padding: 20px 0; min-width: 0; overflow-wrap: anywhere; }
.action-center .runtime-update-heading { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.action-center .runtime-update-heading h3 { margin: 0; }
.action-center .runtime-update-heading time, .action-center .runtime-update-meta { color: var(--muted); font-size: var(--ac-text-meta); }
.action-center .runtime-update-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.action-center .runtime-update-cards { margin-top: 16px; min-width: 0; }
.action-center .runtime-update-witness { padding: 12px 0; min-width: 0; }
.action-center .runtime-update-witness h4 { margin: 0; }
.action-center .runtime-update-child { padding-inline-start: 16px; }
.action-center .runtime-update-card-link { appearance: none; background: transparent; border: 0; border-radius: 4px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-align: start; min-height: 44px; max-width: 100%; padding: 8px 4px; font: inherit; overflow-wrap: anywhere; cursor: pointer; }
.action-center .runtime-update :is(button,summary):focus-visible { outline: 2px solid var(--ac-focus); outline-offset: 3px; }
.action-center .runtime-update details { min-width: 0; }
.action-center .runtime-update summary { min-height: 44px; padding: 12px 0; cursor: pointer; }
:is(.action-center, .action-detail, .action-proposal-detail, .card-pause-detail, [data-card-deadline-form]) {
  --ac-motion-fast: 120ms;
  --ac-motion-base: 180ms;
  --ac-motion-slow: 240ms;
  --ac-ease: cubic-bezier(.2, .8, .2, 1);
  /* Refreshes shorter than this are not announced visually (about the 1s attention limit). */
  --ac-sync-reveal: 1s;
  --ac-radius-card: 14px;
  --ac-radius-control: 10px;
  --ac-card-bg: color-mix(in srgb, var(--surface) 70%, var(--bg));
  --ac-card-hover: var(--surface-raised);
  --ac-control-bg: color-mix(in srgb, var(--text) 8%, transparent);
  --ac-control-hover: color-mix(in srgb, var(--text) 13%, transparent);
  --ac-tag-bg: color-mix(in srgb, var(--text) 7%, transparent);
  --ac-tone-running: var(--mint-bright);
  --ac-tone-waiting: var(--amber);
  --ac-tone-blocked: var(--red);
  --ac-tone-decision: var(--violet);
  --ac-tone-done: var(--muted);
  --ac-tone-idle: var(--muted);
  --ac-zero: var(--faint);
  --ac-focus: var(--mint-bright);
  --ac-shadow-menu: 0 14px 36px rgb(0 0 0 / .38);
  --ac-skeleton: color-mix(in srgb, var(--text) 8%, transparent);
  --ac-skeleton-shine: color-mix(in srgb, var(--text) 15%, transparent);
  --ac-text-title: calc(13.5px * var(--font-scale));
  --ac-text-body: calc(12px * var(--font-scale));
  --ac-text-meta: calc(11px * var(--font-scale));
}
html[data-theme="light"] :is(.action-center, .action-detail, .action-proposal-detail, .card-pause-detail, [data-card-deadline-form]) {
  --ac-card-bg: var(--surface);
  --ac-card-hover: color-mix(in srgb, var(--surface-hover) 60%, var(--surface));
  --ac-zero: var(--muted);
  --ac-shadow-menu: 0 14px 36px rgb(20 30 25 / .16);
  /* Light tones are deepened so tinted chips and tabs keep AA text contrast. */
  --ac-tone-running: color-mix(in srgb, var(--mint-bright) 88%, black);
  --ac-tone-waiting: color-mix(in srgb, var(--amber) 85%, black);
  --ac-tone-blocked: color-mix(in srgb, var(--red) 85%, black);
  --ac-tone-decision: color-mix(in srgb, var(--violet) 82%, black);
}

.action-center {
  position: fixed;
  z-index: 50;
  inset: var(--app-top, 0px) 0 auto;
  height: var(--app-height, 100dvh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.action-center-header {
  display: flex;
  min-height: calc(54px + var(--safe-top));
  padding: var(--safe-top) max(17px, var(--safe-right)) 0 max(11px, var(--safe-left));
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.action-center-title,
.action-center-header-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.action-center-title > span {
  display: grid;
  min-width: 0;
  justify-items: start;
}

.action-center-header-tools {
  margin-inline-start: auto;
  justify-content: flex-end;
  flex-shrink: 0;
}

.action-center-header small { display: none; }

.action-center-header h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.header-state-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.header-state-icon svg,
.action-center .icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-state-icon:focus-visible { outline: 2px solid var(--ac-focus); outline-offset: -2px; border-radius: 6px; }
.action-header-text { display: none; }
.action-center-header-tools .icon-button { gap: 6px; }

/* Sync state: the original phase copy with the time this page applied the read. */
.action-center-title .sync-status {
  width: auto;
  height: auto;
  min-height: 20px;
  flex: 0 0 auto;
  gap: 4px;
  padding: 0 6px 0 4px;
  border-radius: 999px;
  font-size: calc(10.5px * var(--font-scale));
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.action-center-title .sync-status svg { width: 12px; height: 12px; }
.sync-status[data-phase="ready"] { color: var(--mint); }
.sync-status[data-phase="unavailable"] { color: var(--red); }
/* A refresh shorter than the reveal delay leaves the label alone, so frequent background
 * reads do not flicker; a longer one shows "正在更新" in amber in the same cell. */
.action-sync-label { display: inline-grid; }
.action-sync-label > * { grid-area: 1 / 1; }
.action-sync-refresh { visibility: hidden; }
.sync-status[data-refreshing="true"] { animation: ac-sync-refreshing 0s var(--ac-sync-reveal) both; }
.sync-status[data-refreshing="true"] .action-sync-text { animation: ac-sync-hide 0s var(--ac-sync-reveal) both; }
.sync-status[data-refreshing="true"] .action-sync-refresh { animation: ac-sync-show 0s var(--ac-sync-reveal) both; }
/* The delayed reveal is a discrete state change, not motion: keep it with reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .action-center .sync-status[data-refreshing="true"] { animation: ac-sync-refreshing 0s var(--ac-sync-reveal) both !important; }
  .action-center .sync-status[data-refreshing="true"] .action-sync-text { animation: ac-sync-hide 0s var(--ac-sync-reveal) both !important; }
  .action-center .sync-status[data-refreshing="true"] .action-sync-refresh { animation: ac-sync-show 0s var(--ac-sync-reveal) both !important; }
}
@keyframes ac-sync-refreshing { to { color: var(--amber); } }
@keyframes ac-sync-hide { to { visibility: hidden; } }
@keyframes ac-sync-show { to { visibility: visible; } }

@media (min-width: 900px) {
  .action-center-header-tools .icon-button,
  .action-center-header-tools .header-state-icon {
    width: auto;
    flex: 0 0 auto;
    padding: 0 10px;
    border-radius: var(--ac-radius-control);
  }
  .action-center-header-tools .icon-button:not([hidden]),
  .action-center-header-tools .header-state-icon { display: inline-flex; align-items: center; }
  .action-header-text { display: inline; font-size: calc(11.5px * var(--font-scale)); font-weight: 600; white-space: nowrap; }
}

.action-center-body {
  width: min(100%, 1120px);
  min-height: 0;
  margin: 0 auto;
  padding: 12px 28px calc(34px + var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-top: 64px;
}

/* State navigation: one equal-width grid in the existing category order. */
.action-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(56px * var(--font-scale)), 1fr));
  gap: 4px;
  margin: 0 0 8px;
}
.action-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 56px;
  padding: 6px 10px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--ac-radius-control);
  font: inherit;
  font-size: calc(11px * var(--font-scale));
  text-align: start;
  cursor: pointer;
  transition: background-color var(--ac-motion-base) var(--ac-ease), color var(--ac-motion-base) var(--ac-ease),
    box-shadow var(--ac-motion-base) var(--ac-ease), transform var(--ac-motion-fast) var(--ac-ease);
}
.action-tab > span:first-child { flex: 1; min-height: 2lh; max-width: 100%; overflow-wrap: anywhere; line-height: 1.25; }
.action-tab b { font-size: calc(17px * var(--font-scale)); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.action-tab:hover { background: var(--surface-hover); }
.action-tab[data-count-state="zero"] { color: var(--ac-zero); }
.action-tab[data-count-state="zero"] b { font-weight: 500; }
.action-tab[data-count-state="unknown"] b { color: var(--muted); font-weight: 500; }
.action-tab[data-action-group="needs_me"][data-count-state="positive"] { color: var(--ac-tone-decision); background: color-mix(in srgb, var(--ac-tone-decision) 12%, transparent); }
.action-tab[data-action-group="blocked"][data-count-state="positive"] { color: var(--ac-tone-blocked); background: color-mix(in srgb, var(--ac-tone-blocked) 12%, transparent); }
.action-tab.is-selected {
  color: var(--text);
  background: color-mix(in srgb, var(--mint-bright) 14%, var(--bg));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mint-bright) 70%, transparent);
}
.action-tab:has([data-important-new]:not([hidden]), [data-need-me-new]:not([hidden])) { padding-inline-end: 24px; }
.action-tab [data-important-new] {
  position: absolute;
  top: 4px;
  right: 3px;
  padding: 0 5px;
  color: var(--mint-ink);
  background: var(--amber);
  border-radius: 999px;
  font-size: calc(9.5px * var(--font-scale));
  font-weight: 700;
  line-height: 15px;
}

@media (max-width: 1023px) {
  .action-tab { min-height: 44px; padding: 2px 10px; }
}
@media (max-width: 700px) {
  .action-tab { padding: 2px 6px; font-size: calc(10.5px * var(--font-scale)); }
  .action-tab > span:first-child { line-height: 1.12; }
  .action-tab b { font-size: calc(14px * var(--font-scale)); line-height: 1.15; }
  .action-tab [data-important-new] { top: 2px; right: 1px; padding: 0 4px; font-size: calc(9px * var(--font-scale)); line-height: 14px; }
  .action-center-header { flex-wrap: wrap; }
  .action-center-header h1 { font-size: 15px; }
  .action-center-title, .action-center-header-tools { gap: 3px; }
}

/* List toolbar stays reachable while the list scrolls. */
.action-list-head {
  position: sticky;
  z-index: 4;
  top: 0;
  margin-bottom: 4px;
  background: var(--bg);
}
.action-list-toolbar, .action-search { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.action-list-toolbar { padding-block: 2px; }
.action-list-toolbar h2 { margin: 0 auto 0 0; font-size: calc(13.5px * var(--font-scale)); font-variant-numeric: tabular-nums; }
.action-list-toolbar label { display: flex; align-items: center; gap: 0; color: var(--muted); font-size: 0; }
.action-list-toolbar select, .action-search input {
  min-width: 0; min-height: 44px; padding: 8px 10px; color: var(--text);
  background: var(--ac-control-bg); border: 0; border-radius: var(--ac-radius-control); font: inherit;
}
.action-list-toolbar select, #action-all-states { max-width: min(14rem, 75vw); font-size: calc(11px * var(--font-scale)); padding-inline: 8px; }
.action-search { padding-bottom: 6px; }
.action-search[hidden] { display: none; }
.action-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.action-search input { flex: 1; width: 140px; }
@media (max-width: 700px) {
  /* Filters share one row instead of each sizing to its longest option. */
  .action-list-toolbar h2 { flex: 0 0 auto; }
  .action-list-toolbar label { flex: 1 1 0; min-width: 0; max-width: max-content; }
  .action-list-toolbar select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
}
#action-statistics[aria-pressed="true"], #action-scheduled-audits[aria-pressed="true"], #action-all-states[aria-pressed="true"] { color: var(--mint-bright); background: var(--surface-hover); }

/* Scope copy keeps its original text in one collapsed disclosure after the list. */
.action-scope-note { margin: 14px 0 0; color: var(--muted); font-size: var(--ac-text-meta); }
.action-scope-note > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding-inline: 4px;
  color: var(--text-secondary);
  font-size: var(--ac-text-meta);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.action-scope-note > summary::-webkit-details-marker { display: none; }
.action-scope-note > summary::before { content: "ⓘ"; font-size: 1.1em; line-height: 1; }
.action-scope-note > summary:focus-visible { outline: 2px solid var(--ac-focus); outline-offset: 2px; border-radius: 6px; }
.action-range { margin: 2px 4px 6px; color: var(--muted); font-size: var(--ac-text-meta); overflow-wrap: anywhere; }
.action-deadline-note { margin: 0 4px 6px; padding: 0; color: var(--muted); font-size: var(--ac-text-meta); overflow-wrap: anywhere; }

.action-list { display: grid; gap: 8px; min-width: 0; }
.action-tab:focus-visible, .action-card:focus-visible { outline: 2px solid var(--ac-focus); outline-offset: 2px; }
.action-list-section { display: grid; gap: 8px; min-width: 0; }
.action-list-section > h3 { margin: 2px 4px 0; color: var(--muted); font-size: var(--ac-text-meta); font-weight: 700; letter-spacing: .04em; }
.action-needme-sections { display: flex; flex-wrap: wrap; gap: 6px; }
.action-needme-sections button {
  min-height: 44px; padding: 0 14px; color: var(--text-secondary); background: var(--ac-control-bg);
  border: 0; border-radius: 999px; font: inherit; font-size: var(--ac-text-meta); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.action-needme-sections button:hover { background: var(--ac-control-hover); }
.action-coverage-note {
  margin: 0;
  padding: 8px 12px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--ac-tone-waiting) 11%, transparent);
  border-radius: var(--ac-radius-control);
  font-size: var(--ac-text-meta);
  overflow-wrap: anywhere;
}
.action-coverage-entry { display: grid; justify-items: start; gap: 8px; }

/* Empty, unavailable and failed reads keep their copy and add one quiet icon. */
.action-list .empty-state { display: grid; justify-items: center; gap: 8px; padding: 32px 16px; color: var(--muted); font-size: var(--ac-text-body); }
.action-list .empty-state::before {
  content: "";
  width: 28px;
  height: 28px;
  background: currentColor;
  opacity: .7;
  -webkit-mask: var(--ac-empty-icon) center / contain no-repeat;
  mask: var(--ac-empty-icon) center / contain no-repeat;
  --ac-empty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 2.5h5L16 13h5'/%3E%3Cpath d='M5.5 6h13L21 13v6H3v-6z'/%3E%3C/svg%3E");
}
.action-list .empty-state[data-empty-kind="unavailable"]::before { --ac-empty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3.5 19h17z'/%3E%3Cpath d='M12 10v4M12 16.5v.5'/%3E%3C/svg%3E"); }
.action-list .empty-state[data-empty-kind="search"]::before { --ac-empty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E"); }
.action-list-section > .empty-state { padding: 16px; }

/* Loading skeleton has the same shape as a list card. */
.action-skeleton { display: grid; gap: 8px; }
.action-skeleton > .loading-status { justify-self: start; padding: 2px 4px; color: var(--muted); font-size: var(--ac-text-meta); }
.action-skeleton .loading-status.is-compact .loading-weave { width: 24px; height: 24px; border-radius: 8px; }
.action-skeleton .loading-status.is-compact .loading-weave i { height: 10px; }
.action-skeleton .loading-status.is-compact .loading-weave i:nth-child(2) { height: 14px; }
.action-skeleton-card { display: grid; gap: 10px; padding: 16px; background: var(--ac-card-bg); border-radius: var(--ac-radius-card); }
.action-skeleton-card i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ac-skeleton) 0%, var(--ac-skeleton-shine) 50%, var(--ac-skeleton) 100%) 0 0 / 200% 100%;
}
.action-skeleton-card i:nth-child(1) { width: 34%; }
.action-skeleton-card i:nth-child(2) { width: 78%; height: 13px; }
.action-skeleton-card i:nth-child(3) { width: 92%; }
.action-skeleton-card i:nth-child(4) { width: 46%; height: 28px; border-radius: var(--ac-radius-control); }

.action-center-more {
  min-height: 44px;
  justify-self: center;
}



.runtime-cohort-view,
.runtime-cohort-pages,
.runtime-cohort-page,
.runtime-cohort-grid { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 12px; }
.runtime-cohort-view { overflow-wrap: anywhere; }

.runtime-cohort-view > header,
.runtime-cohort-card > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runtime-cohort-view > header span,
.runtime-cohort-card > header span { display: grid; min-width: 0; gap: 2px; }
.runtime-cohort-view h2,
.runtime-cohort-card h3,
.runtime-cohort-page h3 { margin: 0; overflow-wrap: anywhere; }
.runtime-cohort-view > header small,
.runtime-cohort-card > header small,
.runtime-cohort-page > h3 { color: var(--muted); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.runtime-cohort-view > header strong,
.runtime-cohort-card > header strong { flex: 0 0 auto; color: var(--text-secondary); font-size: 10px; }
.runtime-cohort-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.runtime-cohort-card { min-width: 0; padding: 14px; background: color-mix(in srgb, var(--bg-soft) 72%, transparent); border-radius: var(--radius-md); }
.runtime-cohort-card .audit-summary-grid { margin-top: 12px; }

.scheduled-audits { display: grid; min-width: 0; gap: 12px; }
.scheduled-audit-job { min-width: 0; padding: 14px; background: color-mix(in srgb, var(--bg-soft) 72%, transparent); border-radius: var(--radius-md); }
.scheduled-audit-job h3, .scheduled-audit-job h4 { margin: 0 0 6px; overflow-wrap: anywhere; }
.scheduled-audit-job p, .scheduled-audits > p { margin: 4px 0; overflow-wrap: anywhere; color: var(--text-secondary); }
.scheduled-audit-job ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scheduled-audit-run { min-width: 0; padding: 8px 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); }
.scheduled-audit-report { max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.scheduled-audits summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.scheduled-audit-form { display: grid; min-width: 0; gap: 10px; }
.scheduled-audit-form label { display: flex; min-height: 44px; flex-wrap: wrap; align-items: center; gap: 8px; }
.scheduled-audit-form fieldset { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 0; margin: 0; padding: 8px; border-radius: var(--radius-md); }
.scheduled-audit-form input:not([type="checkbox"]), .scheduled-audit-form textarea { flex: 1 1 200px; min-width: 0; min-height: 44px; font: inherit; }
.scheduled-audit-form select { flex: 1 1 200px; min-width: 0; max-width: 100%; min-height: 44px; font: inherit; }
.scheduled-audit-form [data-scheduled-audit-runtime] label { flex: 1 1 100%; min-width: 0; max-width: 100%; }
.scheduled-audit-form textarea { min-height: 72px; }
.scheduled-audit-form input[type="checkbox"] { width: 20px; height: 20px; }
.scheduled-audit-run button, .scheduled-audit-form button, .scheduled-audit-job > button { min-height: 44px; }

@media (max-width: 700px) {
  .runtime-cohort-grid { grid-template-columns: minmax(0, 1fr); }
  .runtime-cohort-card > header { align-items: flex-start; flex-direction: column; }
}


.toast {
  position: fixed;
  margin: 0;
  inset-block-start: auto;
  inset-inline-start: auto;
  z-index: 80;
  pointer-events: none;
  inset-inline-end: max(16px, var(--safe-right));
  inset-block-end: max(18px, calc(100dvh - var(--app-height, 100dvh) - var(--app-top, 0px) + 18px + var(--safe-bottom)));
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  color: var(--text);
  background: var(--surface-raised);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgb(0 0 0 / 0.3);
  font-size: 11px;
}

/* Need me update: a ~2s highlight and slight scale per batch, then a static
 * "新" marker until the user opens Need me. No loop, focus move or sound. */
[data-need-me-entry], .action-tab[data-action-group="needs_me"] { position: relative; }
.need-me-new {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  padding: 1px 4px;
  color: var(--mint-ink);
  background: var(--amber);
  border-radius: 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}
.need-me-new[hidden] { display: none; }
.has-need-me-new { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 70%, transparent); }
.action-tab.is-selected.has-need-me-new { box-shadow: inset 0 -2px var(--mint-bright), inset 0 0 0 1px color-mix(in srgb, var(--amber) 70%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .is-need-me-pulsing { animation: need-me-pulse 2s ease-out 1; }
}
@keyframes need-me-pulse {
  0% { transform: scale(1); background-color: transparent; }
  20% { transform: scale(1.06); background-color: color-mix(in srgb, var(--amber) 32%, transparent); }
  60% { transform: scale(1.03); background-color: color-mix(in srgb, var(--amber) 20%, transparent); }
  100% { transform: scale(1); background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  [data-need-me-entry].is-need-me-pulsing, .action-tab.is-need-me-pulsing {
    background-color: color-mix(in srgb, var(--amber) 22%, transparent);
  }
}
@media (max-width: 820px) {
  .topbar-action.has-need-me-new > .need-me-new:not([hidden]) {
    display: block;
    top: 6px;
    right: 6px;
    min-width: 0;
    width: 9px;
    height: 9px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }
}

.local-ci-details { margin: 0 0 14px; min-width: 0; }
.local-ci-details h2 { margin: 0 0 4px; font-size: 13px; overflow-wrap: anywhere; }
.local-ci-item { display: grid; width: 100%; min-height: 44px; padding: 5px 4px; text-align: start; align-content: center; background: transparent; border: 0; border-radius: 8px; color: inherit; font: inherit; }
button.local-ci-item { cursor: pointer; }
button.local-ci-item:hover { background: var(--surface-hover); }
.local-ci-title { min-width: 0; overflow-wrap: anywhere; }
.local-ci-item small, .local-ci-line { margin: 0; color: var(--muted); font-size: calc(12px * var(--font-scale)); line-height: 1.5; overflow-wrap: anywhere; }
.local-ci-line { padding: 4px; }

.product-disposition, .disposition-facts { overflow-wrap: anywhere; min-width: 0; }
.product-disposition .action-card-controls button { min-height: 44px; }

/* The conditional input groups do not add another outline inside this form. */
.scheduled-audit-form [data-scheduled-audit-model-only] {
  display: block;
  border: 0;
  padding: 0;
}

.card-pause-detail { overflow-wrap:anywhere; }
.card-pause-detail details { margin-block:1rem; }
.card-pause-detail summary { min-height:44px; cursor:pointer; display:flex; align-items:center; }
.card-pause-detail li { margin-block:.6rem; }
.card-pause-detail button { min-height:44px; white-space:normal; }

/* Important notices are information, separate from user decisions. */
.important-notice { overflow-wrap: anywhere; }
.important-notice .markdown { max-width: 74ch; }
.important-notice button, [data-open-audit-report], [data-notice-card], [data-notice-proposal] { min-height: 44px; max-width: 100%; white-space: normal; }

html.native-content-geometry .action-center-header {
  padding-inline: calc(11px + var(--content-left)) calc(17px + var(--content-right));
}
html.native-content-geometry .action-center-body {
  padding-inline: calc(28px + var(--content-left)) calc(28px + var(--content-right));
}
html.native-content-geometry .toast {
  max-width: min(360px, calc(var(--content-width) - 32px));
  inset-inline-end: calc(16px + var(--content-right));
}
@media (max-width: 820px) {
  html.native-content-geometry .action-center-header {
    padding-inline: calc(6px + var(--content-left)) calc(9px + var(--content-right));
  }
  html.native-content-geometry .action-center-body {
    padding-inline: calc(12px + var(--content-left)) calc(12px + var(--content-right));
  }
}


.deadline-choice {border:0;padding:0;min-width:0;display:grid;gap:.65rem}
.deadline-choice input,.deadline-choice select,[data-card-deadline-form] textarea {max-width:100%;width:100%;min-height:44px;box-sizing:border-box}
.deadline-choice button,[data-card-deadline-form] button {min-height:44px}
[data-card-deadline-form] pre {white-space:pre-wrap;overflow-wrap:anywhere}
[data-card-deadline-form] > h3 {margin:0 0 6px}
[data-card-deadline-form] > p {margin:6px 0}
.deadline-continuation {border:0;padding:0;margin:10px 0 6px;min-width:0;display:grid;gap:4px}
.deadline-continuation legend,.deadline-overview h4 {font-size:inherit;font-weight:650;margin:0 0 6px}
.deadline-continuation label {display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 8px;border-radius:var(--ac-radius-control);cursor:pointer}
.deadline-continuation label:has(:checked) {background:var(--ac-control-bg)}
.deadline-continuation input {flex:0 0 auto;margin:0;accent-color:var(--mint)}
.deadline-continuation span {min-width:0}
.deadline-continuation small {display:block;color:var(--muted);margin-top:3px}
.deadline-overview {margin:8px 0}
.deadline-overview p,[data-deadline-goal-preview] p {margin:4px 0}
[data-card-deadline-form] summary {min-height:44px;box-sizing:border-box;padding:12px 0;cursor:pointer}
[data-card-deadline-form] [hidden] {display:none}
[data-card-deadline-form] > .action-card-controls:empty {display:none}
[data-card-deadline-form] textarea {display:block}
.deadline-history {margin-top:10px}
.daily-audit-technical summary,
.daily-audit-disposition summary,
.daily-audit-original summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
}
.scheduled-audits .daily-audit-technical summary { display: list-item; }

.action-card.daily-audit-record { gap: 8px; cursor: default; }
.daily-audit-run-summary { display: grid; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.daily-audit-section { min-width: 0; }
.daily-audit-section h3 { margin: 0 0 4px; font-size: var(--ac-text-body); }
.daily-audit-section h3 small { margin-inline-start: 4px; color: var(--muted); font-weight: 400; }
.daily-audit-section .daily-audit-note { margin-top: 4px; color: var(--muted); font-size: var(--ac-text-meta); }
.daily-audit-responses, .daily-audit-section .daily-audit-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 10px 16px;
}
.daily-audit-section .daily-audit-findings,
.daily-audit-section .daily-audit-progress { margin: 0; padding: 0; list-style: none; }
.daily-audit-findings > li, .daily-audit-section .daily-audit-quote { font-size: var(--ac-text-title); line-height: 1.45; }
.daily-audit-findings > li, .daily-audit-quote { white-space: pre-line; }
.daily-audit-section .daily-audit-quote + .daily-audit-quote { margin-top: 4px; }
.daily-audit-status-text { font-weight: 600; }
.daily-audit-section .daily-audit-progress { display: grid; gap: 5px; }
.daily-audit-progress > li { padding: 4px 0; border-top: 1px solid var(--line-soft); }
.daily-audit-progress > li > p + p { font-size: var(--ac-text-meta); }
.daily-audit-issue-title { font-weight: 600; }
.daily-audit-related { margin-top: 5px; }
.daily-audit-links { display: flex; align-items: start; flex-wrap: wrap; gap: 0 12px; }
.daily-audit-links > details[open] { flex-basis: 100%; }
.daily-audit-technical { min-width: 0; }
.daily-audit-run-summary button, .daily-audit-disposition button { min-height: 44px; max-width: 100%; white-space: normal; }
.daily-audit-facts { overflow-wrap: anywhere; }
.daily-audit-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 1rem .75rem; margin: 1rem 0; }
.daily-audit-metrics dt { color: var(--muted); }
.daily-audit-metrics dd { margin: .25rem 0 0; font-variant-numeric: tabular-nums; }
.daily-audit-metrics dd > span { display: block; font-size: .85em; }
.daily-audit-issues { margin: 0; padding: 0; list-style: none; }
.daily-audit-issues > li { border-top: 1px solid var(--line-soft); }

.user-strategy { overflow-wrap:anywhere; }
.user-strategy-columns { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; }
.user-strategy-column { min-width:0; padding:4px 0; }
.user-strategy dt { font-weight:600; }
.user-strategy dd { margin:0 0 12px; }
.user-strategy summary { min-height:44px; align-content:center; cursor:pointer; }
.user-strategy-copy > summary > span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.user-strategy-copy[open] > summary > span { display:none; }
.user-strategy-column h4 { margin:4px 0; }
.user-strategy-prose { white-space:pre-wrap; }
.user-strategy textarea { display:block; width:100%; box-sizing:border-box; min-height:44px; }
.task-wake-row {
  display: flex;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-block-end: 1px solid var(--border, currentColor);
  padding: 0.65rem 0.8rem;
}

.task-wake-copy {
  display: grid;
  gap: 0.2rem;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.task-wake-row [data-task-wake-feedback]:empty {
  display: none;
}

#thread-task-wakes {
  max-block-size: 9rem;
  overflow: auto;
}
