/* =============================================================================
   SOFTBOOK AI — ASSISTANT DISCLOSURE

   The "Not sure what to write?" panel, shared by the video studio's script
   assistant and the image studio's art director.

   SCOPE: every rule here is .sa- scoped and nothing else. An earlier build of
   this file was extracted by matching any rule MENTIONING .sa-, which swept in
   two things it should not have:

     - shared control-height rules that also targeted .wizard-actions and
       .upload-box, carrying `padding-top: 0` alongside a min-height that
       depended on --vs-action-h. That variable is declared only in
       create-video.html, so on create-image the min-height was dropped as
       invalid and every button lost its vertical padding.
     - rules that lived inside @media (max-width: 575.98px), flattened out of
       their media query, so phone layout applied at every width.

   If you add a rule here, its selector must be .sa- scoped in every
   comma-separated part. Anything shared with the rest of a page belongs in
   that page's stylesheet.
============================================================================= */

.sa-disclosure {
  margin: 16px 0;
  border: 1px solid var(--sb-line-strong);
  border-radius: var(--sb-r-md);
  background: var(--sb-fill-1, rgba(127,127,127,.06));
  overflow: hidden;
}

.sa-disclosure[open] {
  background: var(--sb-fill-2);
}

.sa-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sa-summary::-webkit-details-marker {
  display: none;
}

.sa-summary:hover {
  background: var(--sb-fill-2);
}

.sa-summary:focus-visible {
  outline: 2px solid var(--sb-violet-soft);
  outline-offset: -2px;
}

.sa-head-icon {
  font-size: 1.05rem;
  color: var(--sb-violet-soft);
}

.sa-summary-copy {
  flex: 1;
  min-width: 0;
}

.sa-summary-copy strong {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.sa-summary-copy small {
  display: block;
  margin-top: 2px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--sb-text-dim);
}

.sa-chevron {
  font-size: .85rem;
  color: var(--sb-text-faint);
  transition: transform var(--sb-t);
}

.sa-disclosure[open] .sa-chevron {
  transform: rotate(180deg);
}

.sa-panel {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--sb-line);
}

.sa-controls {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.sa-field .form-label {
  margin-bottom: 7px;
}

.sa-opt {
  color: var(--sb-text-faint);
  font-weight: 400;
}

.sa-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sa-seg-btn {
  padding: 9px 6px;
  font-size: .8125rem;
  font-weight: 550;
  color: var(--sb-text-dim);
  background: var(--sb-fill-1, rgba(127,127,127,.06));
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-r-md);
  cursor: pointer;
  transition: border-color var(--sb-t), background var(--sb-t), color var(--sb-t);
}

.sa-seg-btn:hover {
  border-color: var(--sb-line-strong);
  background: var(--sb-fill-3, rgba(127,127,127,.1));
}

.sa-seg-btn.is-on {
  border-color: var(--sb-violet);
  background: rgba(109, 93, 252, .16);
  color: var(--sb-text);
  box-shadow: 0 0 0 1px rgba(109, 93, 252, .4);
}

.sa-seg-btn:focus-visible {
  outline: 2px solid var(--sb-violet-soft);
  outline-offset: 2px;
}

.sa-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  cursor: pointer;
  margin: 0;
}

.sa-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--sb-violet);
  cursor: pointer;
}

.sa-lock .custom-note {
  margin-top: 6px;
}

.sa-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sa-go[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.sa-cost-note {
  color: var(--sb-text-faint);
  font-weight: 400;
}

.sa-undo {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  color: var(--sb-text-dim);
}

.sa-undo-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--sb-violet-soft);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 575.98px) {
  .sa-seg {
    grid-template-columns: repeat(2, 1fr);
  }

  .sa-foot .sa-go {
    width: 100%;
  }
}

/* The cost pill beside the assistant's button.

   .cost-pill is declared in create-video.html's inline style and nowhere
   else, so on any other page the pill rendered with no padding, no
   background and no shape — which is most of what looked like "buttons
   have no padding" in the image studio. Scoped to .sa-foot so this file
   keeps its rule of touching nothing outside the component. */
.sa-foot .cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sb-text);
  background: var(--sb-fill-2);
  border: 1px solid var(--sb-line);
  white-space: nowrap;
}

.sa-foot .wizard-btn {
  min-height: 44px;
}

@media (max-width: 575.98px) {
  .sa-foot { flex-wrap: wrap; gap: 10px; }
  .sa-foot .cost-pill,
  .sa-foot .wizard-btn { width: 100%; justify-content: center; }
  .sa-foot .cost-pill { order: 1; }
  .sa-foot .wizard-btn { order: 2; }
}
