/* Latch embed. Self-contained. No remote fonts or stylesheets. */

.latch-root,
.latch-preview {
  /* A2UI basic-catalog defaults (styles/default.ts). Latch names point at these. */
  --a2ui-color-background: light-dark(#eee, #111);
  --a2ui-color-on-background: light-dark(#333, #eee);
  --a2ui-color-surface: light-dark(
    color-mix(in oklab, var(--a2ui-color-background) 85%, white),
    color-mix(in oklab, var(--a2ui-color-background) 95%, white)
  );
  --a2ui-color-on-surface: light-dark(#333, #eee);
  --a2ui-color-primary: #17e;
  --a2ui-color-primary-light: color-mix(in oklab, var(--a2ui-color-primary) 85%, white);
  --a2ui-color-primary-dark: color-mix(in oklab, var(--a2ui-color-primary) 85%, black);
  --a2ui-color-primary-hover: light-dark(var(--a2ui-color-primary-dark), var(--a2ui-color-primary-light));
  --a2ui-color-on-primary: #fff;
  --a2ui-color-secondary: light-dark(#ddd, #333);
  --a2ui-color-secondary-light: color-mix(in oklab, var(--a2ui-color-secondary) 85%, white);
  --a2ui-color-secondary-dark: color-mix(in oklab, var(--a2ui-color-secondary) 95%, black);
  --a2ui-color-secondary-hover: light-dark(var(--a2ui-color-secondary-dark), var(--a2ui-color-secondary-light));
  --a2ui-color-on-secondary: light-dark(#333, #eee);
  --a2ui-border-radius: 0.25rem;
  --a2ui-color-border: light-dark(#ccc, #444);
  --a2ui-border-width: 1px;
  --a2ui-border: var(--a2ui-border-width) solid var(--a2ui-color-border);
  --a2ui-color-input: light-dark(#fff, #2a2a2a);
  --a2ui-color-on-input: light-dark(#333, #eee);
  --a2ui-grid-base: 0.5rem;
  --a2ui-spacing-m: var(--a2ui-grid-base);
  --a2ui-spacing-s: calc(var(--a2ui-spacing-m) / 2);
  --a2ui-spacing-xs: calc(var(--a2ui-spacing-s) / 2);
  --a2ui-spacing-l: calc(var(--a2ui-spacing-m) * 2);
  --a2ui-spacing-xl: calc(var(--a2ui-spacing-l) * 2);
  --a2ui-font-size: 1rem;
  --a2ui-font-scale: 1.2;
  --a2ui-font-size-m: var(--a2ui-font-size);
  --a2ui-font-size-s: calc(var(--a2ui-font-size-m) / var(--a2ui-font-scale));
  --a2ui-font-size-xs: calc(var(--a2ui-font-size-s) / var(--a2ui-font-scale));
  --a2ui-font-size-l: calc(var(--a2ui-font-size-m) * var(--a2ui-font-scale));
  --a2ui-line-height-body: 1.5;
  --a2ui-line-height-headings: 1.2;
  --a2ui-text-caption-color: light-dark(#666, #aaa);
  --a2ui-textfield-color-error: red;
  --a2ui-card-padding: var(--a2ui-spacing-m);
  --a2ui-card-margin: var(--a2ui-spacing-m);
  --a2ui-card-border-radius: var(--a2ui-border-radius);
  --a2ui-card-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --a2ui-card-background: var(--a2ui-color-surface);
  --a2ui-button-padding: var(--a2ui-spacing-m) var(--a2ui-spacing-l);
  --bg: var(--a2ui-color-background);
  --surface: var(--a2ui-color-surface);
  --ink: var(--a2ui-color-on-surface);
  --muted: var(--a2ui-text-caption-color);
  --faint: var(--a2ui-text-caption-color);
  --line: var(--a2ui-color-border);
  --line-strong: var(--a2ui-color-border);
  --accent: #1d4ed8;
  --highlight: rgba(180, 148, 80, 0.16);
  --shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35);
  --type-size: var(--a2ui-font-size-m);
  --type-line: var(--a2ui-line-height-body);
  --meta-size: var(--a2ui-font-size-xs);
  --meta-line: var(--a2ui-line-height-body);
  --card-line: var(--a2ui-color-border);
  --card-radius: var(--a2ui-card-border-radius);
  --card-shadow: var(--a2ui-card-box-shadow);
  --pad-x: var(--a2ui-spacing-l);
  --control-height: auto;
  --control-radius: var(--a2ui-spacing-m);
  --chip-radius: var(--a2ui-border-radius);
  /* Chat shell, drawn from the A2UI tokens. #17e with white text is 4.29:1, so the bubble uses primary-dark. */
  --shell: var(--a2ui-color-background);
  --shell-ink: var(--a2ui-color-on-background);
  --bubble: var(--a2ui-color-primary-dark);
  --bubble-ink: var(--a2ui-color-on-primary);
  --shell-line: var(--a2ui-color-border);
  --composer-field: var(--a2ui-color-input);
  /* Latch soft card. Decision, receipt, citation stack, and preview all read these. */
  --latch-radius: 18px;
  --latch-radius-field: 16px;
  --latch-radius-control: 12px;
  --latch-radius-mark: 8px;
  --latch-card: rgba(255, 255, 255, 0.78);
  --latch-ink: #1e2430;
  --latch-meta: #3d4654;
  --latch-shadow: 0 10px 28px -12px rgba(30, 36, 48, 0.18), 0 2px 8px -2px rgba(30, 36, 48, 0.06);
  --latch-action: var(--bubble);
  --latch-action-ink: var(--bubble-ink);
  --latch-action-hover: color-mix(in oklab, var(--bubble) 86%, black);
  --latch-quiet: rgba(255, 255, 255, 0.52);
  --latch-quiet-hover: rgba(255, 255, 255, 0.78);
  --latch-field: rgba(255, 255, 255, 0.9);
  --latch-field-line: rgba(255, 255, 255, 0.92);
  --latch-cited: #e6eefb;
  --latch-error: #9f1239;
  --latch-pad: 20px;
  --latch-gap: 8px;
  /* Frosted glass. Light only. Solid fill is the fallback. */
  --latch-glass: rgba(255, 255, 255, 0.62);
  --latch-glass-strong: rgba(255, 255, 255, 0.88);
  --latch-glass-solid: #ffffff;
  --latch-glass-line: rgba(255, 255, 255, 0.86);
  --latch-glass-blur: 18px;
  --latch-ease: cubic-bezier(0, 0, 0.2, 1);
  --motion-open: 220ms var(--latch-ease);
  --motion-close: 180ms var(--latch-ease);
  --motion-fade: 180ms var(--latch-ease);
  color-scheme: light;
  color: var(--latch-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif;
  font-size: var(--a2ui-font-size-m);
  line-height: var(--a2ui-line-height-body);
}

.latch-root {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 560px;
  background:
    radial-gradient(90% 70% at 0% 0%, #d7e6f6 0%, transparent 62%),
    radial-gradient(80% 60% at 100% 100%, #e4eef8 0%, transparent 58%),
    #f3f6fa;
}

.latch-root *,
.latch-root *::before,
.latch-root *::after,
.latch-preview *,
.latch-preview *::before,
.latch-preview *::after {
  box-sizing: border-box;
}


.latch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.latch-root ::selection,
.latch-preview ::selection {
  background: var(--a2ui-color-secondary);
  color: var(--a2ui-color-on-background);
}

.latch-frame {
  display: flex;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--latch-glass-line);
  border-radius: 16px;
  background: var(--latch-glass);
  box-shadow: var(--latch-shadow);
  overflow: hidden;
}

.latch-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.latch-log {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: var(--a2ui-spacing-xl);
  overflow: auto;
  padding: var(--a2ui-spacing-xl) var(--pad-x);
  scrollbar-width: thin;
  scrollbar-color: var(--a2ui-text-caption-color) transparent;
}

.latch-thread {
  display: flex;
  flex-direction: column;
  gap: var(--a2ui-spacing-l);
}

.latch-thread[hidden] {
  display: none !important;
}

.latch-user {
  align-self: flex-end;
  max-width: min(100%, 42ch);
  margin: 0;
  border-radius: 18px 18px 6px 18px;
  background: var(--bubble);
  padding: var(--a2ui-spacing-l);
  color: var(--bubble-ink);
  font-size: var(--type-size);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.latch-assistant {
  max-width: 62ch;
}

.latch-answer {
  margin: 0;
  color: var(--shell-ink);
  font-size: var(--a2ui-font-size-m);
  line-height: var(--a2ui-line-height-body);
}

.latch-cite {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: none;
  border-radius: var(--latch-radius-mark);
  background: none;
  padding: 0;
  color: var(--latch-action);
  font: inherit;
  font-size: var(--a2ui-font-size-m);
  font-weight: normal;
  line-height: var(--a2ui-line-height-body);
  vertical-align: middle;
  cursor: pointer;
  touch-action: manipulation;
}

.latch-cite:hover {
  background-color: var(--latch-cited);
}

.latch-cite[aria-current="true"] {
  border: none;
  background: var(--latch-cited);
  padding: 0 2px;
  color: var(--latch-action);
}

.latch-cite[aria-current="true"]:hover {
  background-color: var(--latch-quiet-hover);
}

.latch-cite:focus {
  outline: none;
}

.latch-cite:focus-visible,
.latch-close:focus-visible,
.latch-send:focus-visible,
.latch-stack:focus-visible,
.latch-card-btn:focus-visible,
.latch-review-primary:focus-visible,
.latch-review-edit:focus-visible,
.latch-review-decline:focus-visible,
.latch-undo:focus-visible,
.latch-undo-note:focus-visible {
  outline: 2px solid var(--latch-action);
  outline-offset: 2px;
}

.latch-compose {
  display: flex;
  flex: none;
  gap: var(--latch-gap);
  align-items: center;
  margin: 0 12px 12px;
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius-field);
  background: var(--latch-glass-strong);
  box-shadow: var(--latch-shadow);
  padding: 8px;
}

.latch-input {
  min-width: 0;
  height: auto;
  flex: 1;
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius-field);
  background: var(--latch-field);
  padding: var(--a2ui-spacing-m);
  color: var(--latch-ink);
  caret-color: var(--latch-action);
  font: inherit;
  font-size: var(--a2ui-font-size-m);
  line-height: var(--a2ui-line-height-body);
}

.latch-input::placeholder {
  color: var(--latch-meta);
}

.latch-input:focus {
  outline: none;
  border-color: var(--latch-action);
}

.latch-send {
  height: auto;
  flex: none;
  margin: 0;
  border: none;
  border-radius: var(--latch-radius-control);
  background: var(--latch-action);
  padding: 10px 16px;
  color: var(--latch-action-ink);
  font: inherit;
  font-size: var(--a2ui-font-size-m);
  font-weight: normal;
  line-height: var(--a2ui-line-height-body);
  cursor: pointer;
}

.latch-send:hover {
  background-color: var(--latch-action-hover);
}

.latch-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.latch-stack {
  display: none;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--latch-card);
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius);
  box-shadow: var(--latch-shadow);
  color: var(--latch-ink);
  opacity: 0;
}

.latch-root.is-open .latch-stack {
  display: flex;
}

.latch-stack.is-prep {
  transition: none !important;
}

.latch-stack.is-shown {
  opacity: 1;
  transform: none;
  transition: opacity var(--motion-open), top var(--motion-open), height var(--motion-open);
}

.latch-stack.is-closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-close);
}

.latch-stack-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--latch-gap);
  padding: var(--latch-pad);
  background: transparent;
}

.latch-stack-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: var(--latch-gap);
  transition: opacity 80ms linear;
}

.latch-doc-icon,
.latch-close-icon {
  display: block;
  flex: none;
  width: var(--a2ui-icon-size, 24px);
  height: var(--a2ui-icon-size, 24px);
}

.latch-doc-icon {
  color: var(--latch-ink);
}

.latch-stack-copy.is-dim {
  opacity: 0;
}

.latch-stack-head p {
  margin: 0;
  overflow: hidden;
  color: var(--latch-meta);
  font-size: var(--meta-size);
  line-height: var(--meta-line);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latch-stack-head p.latch-stack-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--latch-ink);
  font-size: var(--a2ui-font-size-l);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latch-close {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: none;
  border-radius: var(--latch-radius-control);
  background: none;
  padding: 0;
  color: var(--latch-action);
  font: inherit;
  font-weight: normal;
  cursor: pointer;
}

.latch-close::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.latch-close:hover {
  background-color: var(--latch-quiet);
}

.latch-deck {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: transparent;
}

.latch-card {
  position: absolute;
  top: 22px;
  right: 20px;
  bottom: 22px;
  left: 20px;
  overflow: hidden;
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius);
  background: var(--latch-glass-strong);
  box-shadow: var(--latch-shadow);
  transform-origin: 50% 58%;
}

.latch-card.is-back {
  pointer-events: none;
}

.latch-card.is-back .latch-sheet {
  visibility: hidden;
}

.latch-card.is-buried,
.latch-card.is-leaving {
  pointer-events: none;
}

.latch-card.is-buried {
  opacity: 0;
}

.latch-card-btn {
  display: none;
}

.latch-card-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latch-card.is-back .latch-card-btn {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0;
  background: transparent;
  color: transparent;
}

.latch-card.is-back .latch-card-name {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: var(--a2ui-spacing-m) var(--a2ui-spacing-m) 0;
  color: var(--latch-meta);
  font-family: inherit;
  font-size: var(--a2ui-font-size-xs);
  line-height: var(--a2ui-line-height-body);
  pointer-events: none;
}

.latch-sheet {
  height: 100%;
  overflow: auto;
  background: transparent;
  padding: var(--latch-pad);
  color: var(--latch-ink);
  font-family: inherit;
}

.latch-card.is-front .latch-sheet {
  height: 100%;
}

.latch-doc-title {
  margin: var(--a2ui-spacing-m) 0 0;
  color: var(--latch-ink);
  font-size: var(--a2ui-font-size-l);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.latch-lines {
  margin: var(--a2ui-spacing-m) 0 0;
  padding: 0;
  list-style: none;
}

.latch-line {
  margin: 0;
  border-radius: var(--latch-radius-mark);
  padding: var(--a2ui-spacing-s) var(--a2ui-spacing-m);
  color: var(--latch-meta);
  font-size: var(--a2ui-font-size-xs);
  line-height: var(--a2ui-line-height-body);
}

.latch-line.is-cited {
  background: var(--latch-cited);
  color: var(--latch-ink);
}

.latch-shade {
  display: none;
}

.latch-preview {
  position: fixed;
  z-index: 40;
  box-sizing: border-box;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius);
  background: var(--latch-glass-strong);
  box-shadow: var(--latch-shadow);
  color: var(--latch-ink);
  pointer-events: none;
}

.latch-shot {
  height: 84px;
  overflow: hidden;
  background: transparent;
  padding: 8px 12px 0;
  color: var(--latch-ink);
  font-family: inherit;
}

.latch-shot p {
  margin: 0;
  overflow: hidden;
  color: var(--latch-meta);
  font-size: var(--a2ui-font-size-xs);
  line-height: var(--a2ui-line-height-body);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latch-shot .is-cited {
  border-radius: var(--latch-radius-mark);
  background: var(--latch-cited);
  color: var(--latch-ink);
}

.latch-preview-copy {
  padding: 8px 12px 10px;
}

.latch-preview-title {
  display: flex;
  align-items: center;
  gap: var(--a2ui-spacing-s);
  margin: 0;
  overflow: hidden;
  color: var(--latch-ink);
  font-size: var(--a2ui-font-size-m);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.latch-preview-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latch-preview-quote {
  margin: var(--a2ui-spacing-xs) 0 0;
  color: var(--latch-meta);
  font-size: var(--a2ui-font-size-xs);
  line-height: var(--a2ui-line-height-body);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 800px) {
  .latch-root.is-open .latch-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  }
}

@media (max-width: 799px) {
  .latch-root.is-open .latch-stack {
    position: fixed;
    right: var(--a2ui-spacing-l);
    bottom: var(--a2ui-spacing-l);
    left: var(--a2ui-spacing-l);
    z-index: 30;
    height: min(48vh, 420px);
    background: var(--latch-card);
    border: 1px solid var(--latch-glass-line);
    border-radius: var(--latch-radius);
    box-shadow: var(--latch-shadow);
  }

  .latch-root.is-open .latch-stack,
  .latch-root.is-open .latch-stack.is-prep,
  .latch-stack.is-closing {
    opacity: 0;
    transform: none;
  }

  .latch-root.is-open .latch-stack.is-shown {
    opacity: 1;
    transform: none;
    transition: opacity var(--motion-open);
  }

  .latch-root.is-open .latch-stack.is-closing {
    opacity: 0;
    transform: none;
    transition: opacity var(--motion-close);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .latch-card {
    transition: transform 220ms var(--latch-ease);
  }

  .latch-sheet {
    transition: opacity var(--motion-fade);
  }

  .latch-preview {
    animation: latch-preview-in var(--motion-fade);
  }
}

@keyframes latch-preview-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latch-card,
  .latch-preview,
  .latch-stack,
  .latch-sheet,
  .latch-stack-copy,
  .latch-review,
  .latch-review-body,
  .latch-receipt,
  .latch-receipt-line {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: 120ms !important;
    transition-timing-function: linear !important;
  }
}

/* Action Review. A2UI's three-part card, drawn with Latch's soft card. */
.latch-review,
.latch-receipt {
  margin: var(--a2ui-card-margin);
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius);
  background: var(--latch-card);
  box-shadow: var(--latch-shadow);
  padding: var(--latch-pad);
  color: var(--latch-ink);
}

.latch-review-body {
  display: flex;
  flex-direction: column;
  gap: var(--latch-gap);
}

.latch-review-title {
  margin: 0 0 4px;
  color: var(--latch-ink);
  font-size: var(--a2ui-font-size-l);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.latch-review-context,
.latch-change-label,
.latch-why,
.latch-receipt-kicker,
.latch-receipt-meta,
.latch-undo-note {
  margin: 0;
  color: var(--latch-meta);
  font-size: var(--a2ui-font-size-xs);
  line-height: var(--a2ui-line-height-body);
}

.latch-policy-hint {
  margin: 0;
  color: var(--latch-error);
  font-size: var(--a2ui-font-size-xs);
  line-height: var(--a2ui-line-height-body);
}

.latch-policy-hint:empty {
  display: none;
}

.latch-why {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--latch-gap);
}

.latch-reason,
.latch-receipt-line,
.latch-change-values {
  margin: 0;
  color: var(--latch-ink);
  font-size: var(--a2ui-font-size-m);
  line-height: var(--a2ui-line-height-body);
}

.latch-receipt-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--latch-gap);
}

.latch-receipt-line:focus {
  outline: none;
}

.latch-change-values {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--latch-gap);
  font-variant-numeric: tabular-nums;
}

.latch-change-values:has(.latch-field) {
  align-items: flex-start;
}

.latch-change-values:has(.latch-field) .is-before,
.latch-change-values:has(.latch-field) .latch-arrow {
  margin-top: 30px;
}

.latch-change-values .is-before {
  color: var(--latch-meta);
  text-decoration: line-through;
}

.latch-change-values .is-after,
.latch-verb {
  font-weight: normal;
}

.latch-verb,
.latch-risk {
  margin: 0;
}

.latch-field {
  display: flex;
  min-width: 9ch;
  flex: 1;
  flex-direction: column;
  gap: var(--a2ui-spacing-xs);
}

.latch-field-label {
  color: var(--latch-ink);
  font-size: var(--a2ui-font-size-s);
  font-weight: bold;
  line-height: var(--a2ui-line-height-body);
}

.latch-amount {
  width: 100%;
  height: auto;
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius-field);
  background: var(--latch-field);
  padding: var(--a2ui-spacing-m);
  color: var(--latch-ink);
  caret-color: var(--latch-action);
  font: inherit;
  font-size: var(--a2ui-font-size-m);
  line-height: var(--a2ui-line-height-body);
}

.latch-amount::placeholder {
  color: var(--latch-meta);
}

.latch-amount:focus {
  outline: none;
  border-color: var(--latch-action);
}

.latch-amount[aria-invalid="true"],
.latch-amount[aria-invalid="true"]:focus {
  border-color: var(--latch-error);
}

.latch-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--latch-gap);
}

.latch-review-primary,
.latch-review-edit,
.latch-review-decline,
.latch-undo {
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--latch-glass-line);
  border-radius: var(--latch-radius-control);
  background: var(--latch-quiet);
  padding: 10px 16px;
  color: var(--latch-ink);
  font: inherit;
  font-size: var(--a2ui-font-size-m);
  font-weight: normal;
  line-height: var(--a2ui-line-height-body);
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}

.latch-review-edit:hover,
.latch-review-decline:hover,
.latch-undo:hover {
  background-color: var(--latch-quiet-hover);
}

.latch-review-primary {
  border: none;
  background: var(--latch-action);
  color: var(--latch-action-ink);
}

.latch-review-primary:hover {
  background-color: var(--latch-action-hover);
}

.latch-review-primary:disabled,
.latch-review-edit:disabled,
.latch-review-decline:disabled,
.latch-undo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.latch-undo-note:focus {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .latch-review,
  .latch-receipt {
    transition: opacity var(--motion-open);
  }

  .latch-review.is-leaving,
  .latch-receipt.is-leaving {
    opacity: 0;
    transition: opacity var(--motion-close);
  }

  .latch-review.is-entering,
  .latch-receipt.is-entering {
    opacity: 0;
  }
}

.latch-frame,
.latch-compose,
.latch-input,
.latch-review,
.latch-receipt,
.latch-stack,
.latch-card,
.latch-preview,
.latch-amount {
  -webkit-backdrop-filter: blur(var(--latch-glass-blur)) saturate(1.25);
  backdrop-filter: blur(var(--latch-glass-blur)) saturate(1.25);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .latch-frame,
  .latch-compose,
  .latch-input,
  .latch-review,
  .latch-receipt,
  .latch-stack,
  .latch-card,
  .latch-preview,
  .latch-amount,
  .latch-review-edit,
  .latch-review-decline,
  .latch-undo {
    background: var(--latch-glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .latch-frame,
  .latch-compose,
  .latch-input,
  .latch-review,
  .latch-receipt,
  .latch-stack,
  .latch-card,
  .latch-preview,
  .latch-amount,
  .latch-review-edit,
  .latch-review-decline,
  .latch-undo {
    background: var(--latch-glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
