@layer site {
/* Native single-select popups retain their platform behavior and use one painted indicator. */
select:not([multiple], [size]) {
  appearance: none;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding-inline: .75rem 2.4rem;
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234a5b3d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem 1rem;
  text-overflow: ellipsis;
}
@media (forced-colors: active) {
  select:not([multiple], [size]) { appearance: auto; background-image: none; padding-inline-end: .75rem; }
}

/* Shared controls. Prose links and product navigation retain their own emphasis. */
:is(.btn-primary, .btn-secondary, .fc-btn, .fc-step, .tb-open, .tb-pdf, .tb-chip,
    .hk-btn, .hk-cbtn, .hk-close, .hk-ptoggle, .cx-btn, .cx-open, .cx-data-open,
    :where(input:is([type="submit"], [type="reset"], [type="button"]))) {
  --action-edge: #767e73;
  --action-rest: #fff;
  --action-over: #f1f3ef;
  --action-down: #e3e8e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-block-size: 44px;
  max-inline-size: 100%;
  border: 1px solid var(--action-edge);
  border-radius: var(--control-radius);
  background-color: var(--action-rest);
  color: #343932;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

:is(.btn-primary, .fc-btn--primary, input[type="submit"]) {
  --action-edge: #4e564b;
  box-shadow: 0 2px 2px rgb(40 50 38 / .18);
  font-weight: 750;
}

.fc-btn--ghost { --action-edge: transparent; --action-rest: transparent; }
.action-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: .4em .15em;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  color: var(--primary-dark);
  font-size: .925rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: start;
  text-decoration: none;
  text-underline-offset: .2em;
}
.action-link > [aria-hidden="true"] { flex: none; font-size: 1.15em; line-height: 1; }
:is(.cx-open, .cx-data-open) { padding: .4em .8em; }
:is(.fc-btn--danger, .fc-btn[data-armed="1"]) {
  --action-edge: var(--action-danger);
  --action-over: var(--action-danger-hover);
  --action-down: #f0d7d2;
  color: var(--action-danger);
}
:is(.hk-btn, .tb-chip)[aria-pressed="true"] {
  --action-rest: var(--action-pressed);
  text-decoration: underline;
}
:is(.hk-cbtn, .fc-step, .cx-close) { min-inline-size: 44px; }
:is(.btn-secondary, input:is([type="submit"], [type="reset"], [type="button"])) { padding: .45em .85em; }

@media (hover: hover) {
  :is(.btn-primary, .btn-secondary, .fc-btn, .fc-step, .tb-open, .tb-pdf, .tb-chip,
      .hk-btn, .hk-cbtn, .hk-close, .hk-ptoggle, .cx-btn, .cx-open, .cx-data-open,
      :where(input:is([type="submit"], [type="reset"], [type="button"]))):where(:not(:disabled, [aria-disabled="true"])):hover {
    background-color: var(--action-over);
  }
  .action-link:hover { text-decoration: underline; }
}
:is(.btn-primary, .btn-secondary, .fc-btn, .fc-step, .tb-open, .tb-pdf, .tb-chip,
    .hk-btn, .hk-cbtn, .hk-close, .hk-ptoggle, .cx-btn, .cx-open, .cx-data-open,
    :where(input:is([type="submit"], [type="reset"], [type="button"]))):where(:not(:disabled, [aria-disabled="true"])):active {
  background-color: var(--action-down);
}
:is(.btn-primary, .fc-btn--primary, input[type="submit"]):where(:not(:disabled, [aria-disabled="true"])):active {
  box-shadow: none;
}
.action-link:active { text-decoration: underline; color: var(--text-primary); }
:is(.fc-btn, .fc-step, .cx-btn, .hk-btn, input:is([type="submit"], [type="reset"], [type="button"])):is(:disabled, [aria-disabled="true"]) {
  opacity: .55;
  box-shadow: none;
  cursor: default;
}

/* Paired actions and PDF downloads share the same neutral control. */
:is(.tb-open, .tb-pdf) { padding: .45em .85em; font-size: .85rem; font-weight: 700; }
.tb-pdf svg { flex: none; width: 14px; height: 14px; }
}
