/* Kaptain Stream: Screening Room round 2 for Profile Studio, the title column and grouped lists. Loaded after studio-screening.css. */

/* Title column: on wide screens the title and its intro sit on the left and stay put while the content scrolls. */
@media (min-width: 1100px) {
  #ps-content:is([data-screen="addons"], [data-screen="language"], [data-screen="setup"], [data-screen="settingsHub"], [data-screen="settingsGroup"], [data-screen="historyExport"], [data-screen="aioLogins"], [data-screen="streaming"], [data-screen="badges"], [data-screen="streamSelector"]) {
    --ps-col: 1200px;
  }
  #ps-content > .ps-body:has(> .scr-col) {
    display: grid !important; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: 56px; align-items: start;
  }
  #ps-content > .ps-body:has(> .scr-col) > .ps-page-head { position: sticky; top: 0; margin: 0; padding-top: 6px; }
  #ps-content > .ps-body:has(> .scr-col) .ps-page-title { font-size: clamp(48px, 4.6vw, 66px) !important; }
  #ps-content > .ps-body > .scr-col { min-width: 0; padding-top: 10px; }
  #ps-content > .ps-body > .scr-col > :first-child { margin-top: 0 !important; }
}

/* Grouped lists: blocks that used to stack as separate boxes share one surface, split by hairlines. */
#profile-studio-overlay .ps-tune .ps-tune-grid { gap: 0 !important; }
#profile-studio-overlay .ps-tune .ps-tune-grid > :is(.ps-tune-card, .ps-tune-link) { border-radius: 0 !important; }
#profile-studio-overlay .ps-tune .ps-tune-grid > :is(.ps-tune-card, .ps-tune-link) + :is(.ps-tune-card, .ps-tune-link) { box-shadow: inset 0 1px 0 var(--scr-line) !important; }
#profile-studio-overlay .ps-tune .ps-tune-grid > :first-child { border-top-left-radius: 18px !important; border-top-right-radius: 18px !important; }
#profile-studio-overlay .ps-tune .ps-tune-grid > :last-child { border-bottom-left-radius: 18px !important; border-bottom-right-radius: 18px !important; }

#profile-studio-overlay .sh-grid > .sh-main { gap: 0; }
#profile-studio-overlay .sh-main > .sh-choice { border: 0 !important; border-radius: 0 !important; transform: none !important; background: rgba(255, 255, 255, 0.035) !important; }
#profile-studio-overlay .sh-main > .sh-choice:is(:hover, :focus-visible) { background: rgba(255, 255, 255, 0.06) !important; }
#profile-studio-overlay .sh-main > .sh-choice + .sh-choice { box-shadow: inset 0 1px 0 var(--scr-line) !important; }
#profile-studio-overlay .sh-main > .sh-choice:first-child { border-radius: 18px 18px 0 0 !important; }
#profile-studio-overlay .sh-main > #ps-share-one { border-radius: 0 0 18px 18px !important; }
/* Opening a file someone sent you is a different job, so it stands on its own below the list. */
#profile-studio-overlay .sh-main > #ps-cur-open { margin-top: 14px !important; border-radius: 18px !important; box-shadow: none !important; }

#profile-studio-overlay .scr-col > :is(.ps-keys-card, .ps-svc):has(+ :is(.ps-keys-card, .ps-svc)),
#profile-studio-overlay .ps-hx > .ps-svc:has(+ .ps-svc) { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
#profile-studio-overlay .scr-col > .ps-keys-card + .ps-keys-card,
#profile-studio-overlay .ps-hx > .ps-svc + .ps-svc {
  margin-top: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; box-shadow: inset 0 1px 0 var(--scr-line) !important;
}

/* Copy a setup: the steps are plain sections split by a hairline, not boxes, and the parts are one list. */
#profile-studio-overlay .cs-main > .cs-panel { background: transparent !important; border-radius: 0 !important; padding: 0 0 26px !important; }
#profile-studio-overlay .cs-main > .cs-panel + .cs-panel { padding-top: 26px !important; box-shadow: inset 0 1px 0 var(--scr-line); }
#profile-studio-overlay .cs-main > .cs-panel > .cs-parts { grid-template-columns: 1fr; gap: 0; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.035); }
#profile-studio-overlay .cs-parts > .ps-copy-part-row { border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
#profile-studio-overlay .cs-parts > .ps-copy-part-row + .ps-copy-part-row { box-shadow: inset 0 1px 0 var(--scr-line) !important; }
#profile-studio-overlay .cs-parts > .ps-copy-part-row.is-on { background: rgba(0, 245, 160, 0.045) !important; }

/* Theme colours: bare dots with their names, no tile around each one; the chosen dot gets a ring. */
#profile-studio-overlay .ps-theme-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; }
#profile-studio-overlay .ps-theme-swatch { position: relative; gap: 8px; padding: 10px 4px !important; border: 0 !important; background: transparent !important; border-radius: 12px; }
#profile-studio-overlay .ps-theme-swatch:is(:hover, :focus-visible) { background: rgba(255, 255, 255, 0.05) !important; }
#profile-studio-overlay .ps-theme-dot { width: 30px; height: 30px; border: 0 !important; transition: box-shadow 0.2s var(--scr-ease); }
#profile-studio-overlay .ps-theme-swatch.is-selected .ps-theme-dot { box-shadow: 0 0 0 3px var(--scr-ground), 0 0 0 5px #fff; }
#profile-studio-overlay .ps-theme-swatch.is-selected .ps-theme-name { color: var(--scr-text); }
#profile-studio-overlay .ps-theme-swatch .ps-theme-lock { position: absolute; top: 6px; right: 12px; }
