/* 🔧 VALUE ROWS — the "squish box" fix (owner report Nov 27 2026).
   This sheet lives in its OWN file (DOORS rule) and fixes one broken
   row pattern without touching any locked file.

   THE BUG: a value row is a flex .row holding a readonly .input
   (inline style flex:1) beside .btn action buttons (Copy / Show).
   The foundation gives BOTH sides width:100% —
     .btn  { width: 100% }   (styles.css)
     .input{ width: 100% }   (styles.css)
   In the flex row the button's flex base size is its width: the full
   row. The input's flex base is 0 (flex:1 = 1 1 0%), so when the row
   overflows, all the shrink lands on the button and the input is
   pinned at its automatic minimum — a narrow empty vertical pill at
   the left of the row, its value clipped invisible, while Copy takes
   the rest of the row. Seen on the owner's phone in model Settings:
   the Stream key card (Server row, Your stream key row) and the
   My promo link box.

   THE FIX: in any .row that pairs a field with buttons, the buttons
   size to their content and the field takes the remaining width and
   may shrink below its content (min-width:0) so long values clip
   inside the field instead of crushing it. The ID rules carry the
   known rows in every browser; the :has() rules fix the PATTERN so
   the same row shape heals wherever it recurs (the go-live source
   key panel, the house promo-link list, the packages send row). */

/* --- The known rows (owner's screenshots + the go-live twin) --- */
#sk-server, #sk-key,
#src-sk-server, #src-sk-key,
#s-promo-link {
  min-width: 0;
}
#sk-server-copy, #sk-toggle, #sk-key-copy,
#src-sk-server-copy, #src-sk-toggle, #src-sk-key-copy,
#s-promo-copy {
  width: auto;
  flex: 0 0 auto;
  /* Tighter sides than the full-width CTA padding (28px) so the
     field keeps the width — matters most on the key row, which
     carries TWO buttons (Show + Copy) beside the field. */
  padding-left: 18px;
  padding-right: 18px;
}

/* --- The pattern, wherever it recurs --- */
.row:has(> .input) > .btn {
  width: auto;
  flex: 0 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.row:has(> .input) > .input {
  min-width: 0;
}
