/* Staff desk — ritual storefront detail (#/ops/catalog/services modify) */

.sf-ops {
  margin-top: 28px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.sf-ops__hero {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 55%, #8b3a2a 100%);
  color: var(--header-ink);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.sf-ops__hero h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--gold-soft);
}

.sf-ops__hero p {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  opacity: 0.92;
  max-width: 42rem;
  line-height: 1.5;
}

.sf-ops__hero a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sf-ops__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.sf-ops-chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease;
}

.sf-ops-chip:hover {
  background: rgba(0, 0, 0, 0.28);
}

.sf-ops-chip__n {
  background: var(--gold);
  color: var(--maroon-deep);
  border-radius: 999px;
  min-width: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
}

.sf-ops-chip__n--muted {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.sf-ops-preview {
  margin-left: auto;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  background: var(--gold);
  color: var(--maroon-deep);
  text-decoration: none;
  font-weight: 600;
}

.sf-ops-preview:hover {
  background: var(--gold-soft);
}

.sf-ops-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 8px rgba(43, 18, 12, 0.06);
  overflow: hidden;
}

.sf-ops-section[open] {
  box-shadow: var(--shadow);
}

.sf-ops-section__head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  user-select: none;
}

.sf-ops-section[open] > .sf-ops-section__head {
  border-bottom-color: var(--border);
}

.sf-ops-section__head::-webkit-details-marker {
  display: none;
}

.sf-ops-section__head::before {
  content: "▸";
  color: var(--saffron);
  margin-right: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.sf-ops-section[open] > .sf-ops-section__head::before {
  transform: rotate(90deg);
}

.sf-ops-section__title {
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.9375rem;
  flex: 1;
}

.sf-ops-section__hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.sf-ops-section__body {
  padding: 1rem 1rem 1.1rem;
}

.sf-ops-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.sf-ops-card:last-child {
  margin-bottom: 0;
}

.sf-ops-card__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.sf-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}

.sf-ops-add {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px dashed var(--gold-soft);
  background: var(--cream);
}

.sf-ops-add__title {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--maroon);
}

.sf-ops-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  margin-bottom: 0.5rem;
}

.sf-ops-empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.sf-ops-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sf-ops-inline input {
  flex: 1;
  min-width: 120px;
}

.sf-ops-inline input[type="number"] {
  flex: 0 0 72px;
}

.sf-ops-pkg-block {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
}

.sf-ops-pkg-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--maroon);
}

.sf-ops-trust {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.sf-ops-trust li {
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
  background: var(--cream);
  border-radius: 6px;
}

.sf-ops-trust code {
  font-size: 0.75rem;
  color: var(--maroon);
}

.sf-ops-detail-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 1rem;
}

.sf-ops-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 107, 58, 0.12);
  color: var(--ok);
  margin-left: 0.5rem;
}

.sf-ops-status--off {
  background: rgba(122, 90, 69, 0.12);
  color: var(--muted);
}

.sf-ops-chip--ai {
  margin-bottom: 0.65rem;
  background: var(--gold);
  color: var(--maroon-deep);
  border-color: transparent;
  font-weight: 600;
}

.sf-ops-ai-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.sf-ops-ai-panel__lead {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  opacity: 0.95;
}

.sf-ops-ai-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
}

.sf-ops-ai-check {
  font-size: 0.8125rem;
  color: #fff;
}

.sf-ops-ai-force {
  display: block;
  font-size: 0.8125rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.sf-ops-section.sf-ops-ai-applied {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.sf-ops-ai-preview {
  margin: 0.65rem 0;
}

.sf-ops-ai-preview__label {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  color: #fff;
}

.sf-preview-banner {
  margin: 0;
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--maroon-deep);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.sf-ops-ai-note-label {
  display: block;
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 0.8125rem;
}

.sf-ops-ai-note {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  min-height: 4.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
}

.sf-ops-ai-preview__img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
}
