/*
 * SV3 SOLUTIONS roster + CUT button (#6851, W2 · DH #680).
 *
 * LIME IS RESERVED (#6024). In this surface it appears in exactly two places:
 * the CUT button in its `ready`/`update` state — the panel's one primary action
 * — and the focus ring. Not on TAKE #1, not on USED, not on CURRENT IN PT, not
 * on a section header, a count, or the rollup strip. Every badge is neutral.
 *
 * No red anywhere: there is no destructive verb on this surface.
 * No timeline, no lanes, no waveform: Pro Tools is the clip view.
 *
 * Works down to the app's 320px floor with the CUT button still reachable, and
 * at 390 the verbs are structurally absent so there is nothing to size.
 */

.sv3-sol {
  --sv3-sol-bg: #34353C;
  --sv3-sol-sub: #3A3C44;
  --sv3-sol-row: #2F3037;
  --sv3-sol-row-hover: #383941;
  --sv3-sol-line: #45434F;
  --sv3-sol-line-soft: #3A3844;
  --sv3-sol-fg: #D6D5DB;
  --sv3-sol-mute: #A19FAD;
  --sv3-sol-dim: #6F6C7F;
  --sv3-sol-accent: #CCDE49;
  --sv3-sol-accent-hover: #D8E574;
  --sv3-sol-accent-deep: #A3B520;
  --sv3-sol-on-accent: #1B1825;
  --sv3-sol-ring: rgba(204, 222, 73, 0.60);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 12px 12px;
  background: var(--sv3-sol-bg);
  border-top: 1px solid var(--sv3-sol-line-soft);
  color: var(--sv3-sol-fg);
  font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* The project rollup strip. A count line, not a dashboard. */
.sv3-sol-rollup {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 2px;
  color: var(--sv3-sol-mute);
  font-size: 11px;
}
.sv3-sol-rollup-seg.is-filter { cursor: pointer; text-decoration: underline dotted; }
.sv3-sol-rollup-seg.is-filter:hover { color: var(--sv3-sol-fg); }

.sv3-sol-header {
  margin: 0;
  color: var(--sv3-sol-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sv3-sol-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.sv3-sol-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
  padding: 7px 9px;
  background: var(--sv3-sol-row);
  border: 1px solid var(--sv3-sol-line-soft);
  border-radius: 5px;
}
.sv3-sol-row:hover { background: var(--sv3-sol-row-hover); }
.sv3-sol-row.is-mine { border-color: var(--sv3-sol-line); }

/* Attribution chip (asset 9 / DH #674). Neutral — never lime. */
.sv3-sol-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--sv3-sol-sub);
  border: 1px solid var(--sv3-sol-line);
  border-radius: 50%;
  color: var(--sv3-sol-mute);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sv3-sol-who { font-weight: 600; }
.sv3-sol-version { color: var(--sv3-sol-mute); font-variant-numeric: tabular-nums; }
.sv3-sol-lineage { color: var(--sv3-sol-dim); font-style: italic; }
.sv3-sol-counts { color: var(--sv3-sol-mute); font-variant-numeric: tabular-nums; }
.sv3-sol-diff { color: var(--sv3-sol-dim); }

.sv3-sol-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.sv3-sol-badge {
  padding: 1px 6px;
  background: var(--sv3-sol-sub);
  border: 1px solid var(--sv3-sol-line);
  border-radius: 3px;
  color: var(--sv3-sol-mute);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sv3-sol-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.sv3-sol-verb {
  padding: 3px 8px;
  background: var(--sv3-sol-sub);
  border: 1px solid var(--sv3-sol-line);
  border-radius: 4px;
  color: var(--sv3-sol-fg);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.sv3-sol-verb:hover { border-color: var(--sv3-sol-mute); }
.sv3-sol-verb:focus-visible { outline: 2px solid var(--sv3-sol-ring); outline-offset: 1px; }

/* THE BUTTON. Pinned to the panel foot so it can never scroll out of reach. */
.sv3-sol-cut {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
  padding-top: 8px;
  background: var(--sv3-sol-bg);
  border-top: 1px solid var(--sv3-sol-line-soft);
}

.sv3-sol-cut-btn {
  width: 100%;
  min-height: 32px;
  padding: 7px 12px;
  background: var(--sv3-sol-sub);
  border: 1px solid var(--sv3-sol-line);
  border-radius: 5px;
  color: var(--sv3-sol-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
/* The panel's ONE primary action, and the only lime on the surface. */
.sv3-sol-cut-btn.is-primary {
  background: var(--sv3-sol-accent);
  border-color: var(--sv3-sol-accent-deep);
  color: var(--sv3-sol-on-accent);
}
.sv3-sol-cut-btn.is-primary:hover { background: var(--sv3-sol-accent-hover); }
.sv3-sol-cut-btn:focus-visible { outline: 2px solid var(--sv3-sol-ring); outline-offset: 2px; }
.sv3-sol-cut-btn[disabled] {
  background: var(--sv3-sol-row);
  border-color: var(--sv3-sol-line-soft);
  color: var(--sv3-sol-dim);
  cursor: default;
}

/* The two-way choice. It cannot be mis-clicked into a silent overwrite. */
.sv3-sol-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.sv3-sol-choice .sv3-sol-cut-btn { flex: 1 1 130px; width: auto; }
.sv3-sol-choice-why { margin: 0; color: var(--sv3-sol-mute); font-size: 11px; }

/* Every disabled state SAYS which precondition is missing. */
.sv3-sol-why { margin: 0; color: var(--sv3-sol-mute); font-size: 11px; overflow-wrap: anywhere; }
/* An error is a stated reason, not a colour. No red on this surface. */
.sv3-sol-why.is-error { color: var(--sv3-sol-fg); }

/* The app's real minimum. The button stays reachable and nothing overflows. */
@media (max-width: 360px) {
  .sv3-sol { padding: 8px 9px 10px; font-size: 11px; }
  .sv3-sol-row { gap: 3px 6px; padding: 6px 7px; }
  .sv3-sol-actions { margin-left: 0; }
  .sv3-sol-choice .sv3-sol-cut-btn { flex: 1 1 100%; }
}
