/* One action language: clear labels, local line icons and reliable contrast. */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 15px;
  font: 600 14px/1.35 var(--sans);
  text-align: center;
  background: #426728;
  color: #fffdfb;
  border: 1px solid #426728;
  border-radius: 7px;
  vertical-align: middle;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #36571f;
  border-color: #36571f;
  color: #fffdfb;
}
button:active,
.button:active {
  background: #2d491a;
  color: #fffdfb;
}
button.secondary,
.button.secondary {
  background: #fffcfa !important;
  color: #36571f;
  border-color: #aab88f !important;
}
button.secondary:hover,
.button.secondary:hover {
  background: #edf1e4 !important;
  color: #2d491a;
  border-color: #819765 !important;
}
button.secondary:active,
.button.secondary:active {
  background: #e2e9d5 !important;
  color: #2d491a;
}
button.text-button,
.button.text-button {
  background: transparent !important;
  color: #36571f;
  border: 1px solid transparent !important;
  box-shadow: none;
}
button.text-button:hover,
.button.text-button:hover {
  background: #edf1e4 !important;
  color: #2d491a;
}
button.danger,
.button.danger {
  color: #8c302c;
}
button.danger:hover,
.button.danger:hover {
  background: #f7e1dd !important;
  color: #752722;
}
.button-label {
  min-width: 0;
}
.action-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button.icon-only,
.button.icon-only {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  gap: 0;
}
.editor-actions button,
.page-editor .editor-actions button,
.cover-actions button,
.danger-actions button,
.row-actions button,
.site-header .admin-nav form button,
.editor-inspector .button,
.section-heading > .button,
.hero .actions .button {
  font-size: 14px;
  line-height: 1.35;
  min-height: 44px;
}
.editor-actions {
  align-items: center;
}
.editor-inspector .button {
  width: 100%;
}
.cover-actions {
  gap: 8px;
}
.cover-actions button {
  margin: 0;
}
.cover-actions button:not(.icon-only) {
  flex: 1;
}
.row-actions {
  gap: 8px;
}
.row-actions button,
.row-actions .button {
  margin: 0;
}
.content-row > div:last-child {
  flex-shrink: 0;
}
.editor-toolbar button {
  color: #64524e;
  min-height: 38px;
  padding: 7px 9px;
  font: 500 12px/1.35 var(--sans);
}
.editor-toolbar button.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 8px;
}
.editor-toolbar button:hover {
  color: #423831;
}
.editor-toolbar button.active {
  color: #2d491a;
}
.editor-toolbar button svg {
  width: 18px;
  height: 18px;
}
.segmented {
  overflow: visible;
  gap: 3px;
}
.segmented button.icon-only {
  width: 38px;
  min-width: 38px;
  min-height: 36px;
  padding: 7px;
  color: #64524e;
}
.segmented button:hover {
  background: #ede2da;
  color: #423831;
}
.segmented button.active,
.segmented button.active:hover {
  background: #fffcfa;
  color: #36571f;
}
.picker-tile {
  display: block;
  color: #64524e;
}
.picker-tile:hover {
  color: #423831;
}
.picker-tile img {
  display: block;
}
.date-chips button {
  color: #36571f;
}
.date-chips button:hover {
  background: #e2e9d5;
  color: #2d491a;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
button.pending {
  cursor: progress;
}
button.pending::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: action-spin 0.8s linear infinite;
}
@keyframes action-spin {
  to {
    transform: rotate(360deg);
  }
}
.action-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 9px 12px;
  max-width: min(280px, calc(100vw - 24px));
  border: 0;
  border-radius: 7px;
  background: #423831;
  color: #fffdfb;
  box-shadow: 0 4px 16px #42383122;
  font: 400 13px/1.5 var(--sans);
  text-align: left;
  overflow-wrap: anywhere;
  z-index: 1000;
}
.action-tooltip::backdrop {
  background: transparent;
  pointer-events: none;
}
.action-tooltip:not(:popover-open):not(.tooltip-fallback) {
  display: none;
}
@media (max-width: 720px) {
  .editor-actions button,
  .page-editor .editor-actions button {
    font-size: 13px;
    gap: 7px;
    padding: 10px;
  }
  .editor-toolbar button {
    min-height: 44px;
  }
  .editor-toolbar button.icon-button {
    width: 44px;
    min-width: 44px;
  }
  .toolbar-group {
    gap: 2px;
    padding-right: 6px;
  }
  .toolbar-group:last-child {
    margin-left: 0;
  }
  .segmented button.icon-only {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.pending::after {
    animation: none;
  }
}
