/* Die Vorbereitung bleibt so kompakt wie die übrigen Seiten. */
.solo-layout.preferences-layout > :is(.solo-topline, .solo-hero, [data-solo-algorithm-picker], .solo-preset, .pref-workspace-intro, .pref-workspace, .solo-status, .solo-search-progress) {
  width: min(1150px, 100%);
  margin-inline: auto;
}
.solo-layout .solo-hero { gap: 18px; padding-block: 10px 18px; }
.solo-layout .solo-hero h1 { font-size: clamp(32px, 3.3vw, 44px); margin-block: 10px 14px; }
.solo-layout .solo-scene { width: min(340px, 100%); }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker { margin-block: 16px; padding: 16px 20px; border-radius: 16px; }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker legend { font-size: 18px; }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker-note { margin-bottom: 12px; font-size: 14px; }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker-options { gap: 12px; margin-bottom: 0; }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker-option { gap: 12px; padding: 12px 14px; border-radius: 12px; }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker-option strong { font-size: 16px; }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker-option small { font-size: 13px; }
:is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker-option .algorithm-picker-icon { width: 40px; height: 40px; }
.solo-layout .solo-preset { padding: 14px 16px; margin-bottom: 16px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-workspace-intro { padding-block: 12px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-workspace { grid-template-columns: 164px minmax(0, 1fr); gap: 18px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-navigation { padding-top: 12px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-panel { padding: 22px 22px 18px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-panel-heading { padding-bottom: 14px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-panel-title { font-size: 26px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight { margin-top: 16px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight output { flex-shrink: 0; white-space: nowrap; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight.pref-weight--chart { grid-template-columns: minmax(0, 1fr) 100px; column-gap: 18px; row-gap: 8px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight-mini { width: 100px; height: 100px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight-mini > strong { font-size: 20px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight > .pref-summary-note { margin-bottom: 14px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-option { padding-block: 10px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-panel-footer { margin-top: 18px; padding-top: 14px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-insight { padding: 14px 16px; margin-top: 16px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-range-insight svg { max-width: 620px; margin-inline: auto; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-summary { padding: 20px 22px 0; border-radius: 16px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-summary-heading h2 { font-size: 23px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-summary-content { padding-block: 18px 14px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-mix-ring { width: 150px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-mix-center { width: 114px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-mix-center > strong { font-size: 26px; }
:is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) details.pref-summary-tip { margin-inline: -22px; padding-inline: 22px; }
@media (max-width: 700px) {
  .solo-layout .solo-preset-actions { width: 100%; padding-left: 0; }
  .solo-layout .solo-hero { gap: 8px; }
  .solo-layout .solo-scene { width: min(260px, 94%); }
  :is(.solo-layout, [data-lobby-algorithms]) .algorithm-picker { padding: 14px; }
  :is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-panel { padding: 18px 16px; }
  :is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-summary { padding: 18px 16px 0; }
  :is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) details.pref-summary-tip { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 480px) {
  :is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight.pref-weight--chart { grid-template-columns: minmax(0, 1fr) 88px; column-gap: 12px; }
  :is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight-mini { width: 88px; height: 88px; }
  :is(.solo-layout, .lobby-preferences, .comparison-screen .comparison-preferences) .pref-weight-mini > strong { font-size: 17px; }
}

/* Lobby und Vergleich erhalten denselben Rahmen für die Vorbereitung. */
.lobby-screen > :is(.lobby-topbar, .lobby-hero, .lobby-message),
.lobby-screen [data-lobby-room] > :is(.lobby-gathering, [data-lobby-algorithms], .lobby-preferences, .lobby-ranking-picker, .lobby-minigame-launch, .lobby-ready-strip) {
  width: min(1150px, 100%);
  margin-inline: auto;
}
.lobby-screen .lobby-hero { gap: 18px; padding: 10px 0 18px; }
.lobby-screen .lobby-hero h1 { font-size: clamp(32px, 3.3vw, 44px); margin-block: 10px 14px; }
.lobby-screen .lobby-scene { width: min(340px, 100%); }
.lobby-screen .lobby-gathering { padding: 20px 22px 16px; border-radius: 16px; }
.lobby-screen .lobby-room-heading { padding-bottom: 14px; }
.lobby-screen .lobby-room-heading h2 { font-size: 25px; }
.lobby-screen .lobby-member-list { margin-block: 16px; }
.lobby-screen .lobby-member { padding: 12px; }
.lobby-screen .lobby-preferences { margin-top: 24px; }
.lobby-screen .lobby-editor-heading { padding-bottom: 16px; }
.lobby-screen .lobby-editor-heading h2 { font-size: 24px; }
.lobby-screen .lobby-prefill-tools { padding: 14px 16px; margin-bottom: 18px; gap: 12px 18px; }
.lobby-screen .lobby-ranking-picker { padding: 16px 20px; border-radius: 16px; margin-top: 20px; }
.lobby-screen .lobby-ranking-picker legend { font-size: 18px; }
.lobby-screen .lobby-ranking-options { gap: 12px; }
.lobby-screen .lobby-ranking-options label { gap: 12px; padding: 12px 14px; }
.lobby-screen .lobby-ranking-options strong { font-size: 16px; }
.lobby-screen .lobby-ranking-symbol { width: 46px; height: 46px; }
.lobby-screen .lobby-ready-strip { padding: 16px 20px; margin-block: 20px 26px; }
.comparison-screen:has(.cmp-page--preferences:not([hidden])) > :is(.cmp-topline, .cmp-hero, .cmp-workbench) {
  width: min(1150px, 100%);
  margin-inline: auto;
}
.comparison-screen:has(.cmp-page--preferences:not([hidden])) .cmp-hero { padding-block: 18px; gap: 24px; }
.comparison-screen:has(.cmp-page--preferences:not([hidden])) .cmp-title { font-size: clamp(30px, 3.3vw, 44px); }
.comparison-screen .cmp-page--preferences .cmp-page-heading { margin-bottom: 16px; }
.comparison-screen .cmp-page--preferences .cmp-page-heading h2 { font-size: 26px; }
.comparison-screen .cmp-page--preferences .cmp-fixed-algorithms { margin-bottom: 16px; }
.comparison-screen .cmp-page--preferences .cmp-members { padding: 16px; }
.comparison-screen .cmp-page--preferences .cmp-preference-sources { margin-block: 16px 18px; gap: 12px; }
.comparison-screen .cmp-page--preferences .cmp-source-card { padding: 16px; gap: 8px; }
@media (min-width: 901px) {
  .comparison-preferences .pref-dashboard { grid-template-columns: 170px minmax(0, 1fr); gap: 16px 20px; }
  .comparison-preferences .pref-dashboard > .pref-mix-legend { grid-column: 1 / -1; grid-row: 2; }
  .comparison-preferences .pref-mix-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1001px) {
  .comparison-screen:has(.cmp-page--preferences:not([hidden])) .cmp-workbench { grid-template-columns: 168px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 700px) {
  .comparison-screen .comparison-preferences .pref-workspace { grid-template-columns: minmax(0, 1fr); }
  .lobby-preferences .pref-panel .pref-choice { font-size: 16px !important; }
  .lobby-screen .lobby-scene { width: min(260px, 94%); }
  .lobby-screen .lobby-gathering, .lobby-screen .lobby-ranking-picker,
  .lobby-screen .lobby-ready-strip { padding-inline: 16px; }
}
