/* Site-wide page feedback: Good / Bad / Report — icons only. Same send path as Areas sheets. */
.sa-fb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 420px;
}
.sa-fb-flash {
  order: 0;
}
.sa-fb-pills {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.sa-fb-backdrop,
.sa-fb-form {
  order: 2;
}
.sa-fb-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.42rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0f172a;
  background: #e2e8f0;
  cursor: pointer;
}
.sa-fb-btn.is-good { background: #dcfce7; color: #166534; }
.sa-fb-btn.is-bad { background: #fee2e2; color: #9f1239; }
.sa-fb-btn.is-feature { background: #dbeafe; color: #1e40af; }
.sa-fb-btn.is-report { background: #fef3c7; color: #92400e; }
.sa-fb-btn.is-good.is-on,
.sa-fb-btn.is-good:hover { background: #16a34a; color: #fff; }
.sa-fb-btn.is-bad.is-on,
.sa-fb-btn.is-bad:hover { background: #e11d48; color: #fff; }
.sa-fb-btn.is-feature.is-on,
.sa-fb-btn.is-feature:hover { background: #2563eb; color: #fff; }
.sa-fb-btn.is-report.is-on,
.sa-fb-btn.is-report:hover { background: #d97706; color: #fff; }
.sa-fb-btn:disabled { opacity: 0.55; cursor: default; }
.sa-fb-form {
  width: 100%;
  text-align: left;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 0.75rem 0.8rem 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  border: 1px solid #e5eaf1;
}
.sa-fb-form label {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}
.sa-fb-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 72px;
  background: #fff;
  color: #0f172a;
}
.sa-fb-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.sa-fb-send {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.4rem 0.95rem;
  color: #fff;
  background: #1d4ed8;
  cursor: pointer;
}
.sa-fb-cancel {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.sa-fb-status {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
}
.sa-fb-flash {
  margin: 0 0 0.25rem;
  width: auto;
  max-width: 100%;
}
.sa-fb-flash[hidden] {
  display: none !important;
}
.sa-fb-status.is-ok { color: #166534; }
.sa-fb-status.is-err { color: #be123c; }
.sa-fb-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  opacity: 0;
}

.sa-fb-icons .sa-fb-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.sa-fb-icons .sa-fb-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.sa-member-chrome .sa-crumb-nav.container {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.sa-crumb-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
}
.sa-crumb-bar .breadcrumb {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
.sa-fb-wrap.sa-fb-crumb {
  position: relative;
  width: auto !important;
  max-width: none !important;
  align-items: flex-start !important;
  flex: 0 0 auto;
}
.sa-fb-crumb .sa-fb-pills {
  flex-wrap: nowrap;
  justify-content: flex-start !important;
  gap: 0.3rem;
}
.sa-fb-crumb.sa-fb-icons .sa-fb-btn {
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  border-radius: 10px;
}
.sa-fb-backdrop,
.sa-fb-backdrop.is-viewport {
  position: fixed;
  inset: 0;
  z-index: 20040;
  background: rgba(15, 23, 42, 0.45);
}
.sa-fb-crumb .sa-fb-form,
.sa-fb-nav .sa-fb-form,
[data-sa-fb-modal] .sa-fb-form,
.sa-fb-form.is-viewport {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: none;
  z-index: 20050;
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  height: fit-content;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}
.sa-fb-crumb .sa-fb-flash {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  box-shadow: none;
  z-index: 1;
}

.sa-fb-float {
  position: fixed;
  left: 12px;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 1800;
  width: auto;
  max-width: min(380px, calc(100vw - 24px));
  align-items: flex-start;
  flex-direction: row;
  gap: 8px;
}
.sa-fb-float .sa-fb-pills {
  flex-direction: column;
  flex-wrap: nowrap;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}
.sa-fb-float .sa-fb-form,
.sa-fb-float .sa-fb-flash {
  width: min(300px, calc(100vw - 88px));
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.sa-fb-float .sa-fb-flash {
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

body:not(.sa-member-chrome) .sa-fb-float .sa-fb-pills,
body:not(.sa-member-chrome) .sa-fb-float .sa-fb-form,
body:not(.sa-member-chrome) .sa-fb-float .sa-fb-flash {
  background: #221f19;
  border-color: #3a3428;
  color: #f3ead7;
}
body:not(.sa-member-chrome) .sa-fb-float .sa-fb-form label {
  color: #f3ead7;
}
body:not(.sa-member-chrome) .sa-fb-float .sa-fb-form textarea {
  background: #16140f;
  color: #f3ead7;
  border-color: #3a3428;
}
body:not(.sa-member-chrome) .sa-fb-float .sa-fb-cancel {
  color: #a89b84;
}
body:not(.sa-member-chrome) .sa-fb-float .sa-fb-status.is-ok { color: #8fbe6a; }
body:not(.sa-member-chrome) .sa-fb-float .sa-fb-status.is-err { color: #e06a55; }

.sa-fb-wrap.sa-fb-nav {
  position: relative;
  width: 100%;
  max-width: none;
  align-items: stretch;
  z-index: 5;
  overflow: visible;
}
.sa-fb-nav.is-open {
  z-index: 40;
}
.sa-fb-tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.sa-fb-tab i:not(.sa-fb-caret) {
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 1.05rem;
}
.sa-fb-tab .sa-fb-caret {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin-left: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1;
  transition: transform 0.18s ease;
}
.sa-fb-tab.is-on,
.sa-fb-tab:hover,
.sa-fb-tab:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.28);
  transform: translateY(-1px);
}
.sa-fb-tab.is-on i:not(.sa-fb-caret),
.sa-fb-tab:hover i:not(.sa-fb-caret),
.sa-fb-tab:focus i:not(.sa-fb-caret) {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.sa-fb-tab.is-on .sa-fb-caret,
.sa-fb-nav.is-open .sa-fb-tab .sa-fb-caret {
  transform: rotate(180deg);
  background: transparent;
  color: currentColor;
}
.sa-fb-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: 280px;
  min-width: 280px;
  max-width: min(340px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  padding: 8px;
  box-sizing: border-box;
}
.sa-fb-menu[hidden] {
  display: none !important;
}
.sa-fb-nav .sa-fb-pills,
.sa-fb-menu .sa-fb-pills {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: stretch;
  gap: 6px;
  width: 100%;
}
.sa-fb-nav .sa-fb-btn,
.sa-fb-menu .sa-fb-btn {
  display: flex !important;
  width: 100% !important;
  justify-content: flex-start;
  border-radius: 10px;
  white-space: normal;
  text-align: left;
}
.sa-fb-nav .sa-fb-flash {
  margin: 0 0 6px;
  width: 100%;
  max-width: none;
  text-align: left;
}
