/* Shared design for creation/addition actions.
   Mark an action with data-fs-add={true}; editing can use a conditional value.
   The icon is decorative CSS, so existing labels and click handlers are retained. */
#root [data-fs-add="true"] {
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  flex-direction: row !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 20px !important;
  border: 1px solid #173f5a !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #173f5a, #0b2847) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(11, 40, 71, .16) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  cursor: pointer !important;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
#root [data-fs-add="true"]::before {
  content: "";
  display: block;
  position: static;
  flex: 0 0 26px;
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
    rgba(255, 255, 255, .12);
  transform: none;
  pointer-events: none;
}
/* Some existing creation cards contain a title and supporting text. */
#root .fs-admin-task[data-fs-add="true"] { justify-content: flex-start !important; text-align: left !important; }
#root .fs-admin-task[data-fs-add="true"] strong { color: #fff !important; font-size: 14px !important; }
#root .fs-admin-task[data-fs-add="true"] small { color: #e1eaf2 !important; font-size: 12px !important; }
#root .fs-admin-task[data-fs-add="true"] > b,
#root .fs-riv-action[data-fs-add="true"] > svg,
#root .fs-message-file-picker[data-fs-add="true"] > svg { display: none !important; }
#root [data-fs-add="true"]:focus-visible,
#root label[data-fs-add="true"]:focus-within { outline: 3px solid #b88632 !important; outline-offset: 3px !important; }
@media (hover: hover) and (pointer: fine) {
  #root [data-fs-add="true"]:not(:disabled):not(.is-disabled):not(:has(input:disabled)):hover {
    background: linear-gradient(135deg, #215470, #123754) !important;
    border-color: #215470 !important;
    box-shadow: 0 6px 16px rgba(11, 40, 71, .2) !important;
    transform: translateY(-1px);
  }
}
#root [data-fs-add="true"]:not(:disabled):active { transform: translateY(0); }
#root [data-fs-add="true"]:disabled,
#root [data-fs-add="true"].is-disabled,
#root label[data-fs-add="true"]:has(input:disabled) { opacity: .55 !important; cursor: not-allowed !important; box-shadow: none !important; }
@media (max-width: 700px) {
  #root [data-fs-add="true"] { min-height: 50px !important; padding: 12px 16px !important; }
  #root :is(.fs-community-heading, .resources-heading, .fs-admin-section-header, .fs-promo-header) > [data-fs-add="true"],
  #root .fs-admin-create-action > [data-fs-add="true"] { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  #root [data-fs-add="true"] { transition: none !important; transform: none !important; }
}
