/* Theme settings are the only new layout. Existing screens keep their sizes. */
.problems-page #moreSection .theme-settings { display:grid; gap:16px; min-width:0; }
.problems-page #moreSection .theme-settings h3 { margin:4px 0 0; font-size:19px; color:var(--text); }
.theme-settings-choices { display:grid; gap:12px; }
.problems-page #moreSection .theme-choice {
  display:flex; align-items:center; gap:14px; width:100%; min-width:0; min-height:88px;
  padding:16px; border:1px solid #5889b0; border-radius:18px;
  background:linear-gradient(140deg,#12385d,#061c38); color:#f3faff;
  font:inherit; text-align:left; cursor:pointer;
  box-shadow:inset 0 1px 0 #ffffff26,0 5px 16px #00152f26;
}
.problems-page #moreSection .theme-choice[aria-pressed="true"] { border-color:#51d8ff; box-shadow:inset 0 0 0 1px #51d8ff,0 0 12px #16baff33; }
.theme-choice-icon { display:grid; place-items:center; flex:0 0 46px; height:46px; border-radius:14px; color:#8de5ff; background:#0b527a; }
.theme-choice-icon svg { width:28px; height:28px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.theme-choice-copy { display:grid; gap:5px; min-width:0; flex:1; }
.problems-page #moreSection .theme-choice-copy strong { font-size:18px; color:inherit; }
.problems-page #moreSection .theme-choice-copy small { font-size:15px; color:#b8d5eb; }
.theme-choice-mark { font-size:24px; color:#69dcff; visibility:hidden; }
.theme-choice[aria-pressed="true"] .theme-choice-mark { visibility:visible; }
.problems-page #moreSection .theme-settings-note { margin:0; font-size:15px; color:var(--muted); line-height:1.5; }
.theme-choice:focus-visible { outline:3px solid #27b8ee; outline-offset:3px; }
html[data-theme="light"] .problems-page #moreSection .theme-choice {
  background:linear-gradient(135deg,#ffffffeb,#e5f4ffed); color:#17334f; border-color:#8fc9e8;
  box-shadow:inset 0 1px 0 white,0 5px 16px #397da51c;
}
html[data-theme="light"] .problems-page #moreSection .theme-choice[aria-pressed="true"] {
  border-color:#168cc6; background:linear-gradient(135deg,#faffff,#d7f1ff);
  box-shadow:inset 0 0 0 1px #168cc6,0 5px 16px #397da526;
}
html[data-theme="light"] .theme-choice-icon { color:#0878b6; background:#d2edff; }
html[data-theme="light"] .problems-page #moreSection .theme-choice-copy small { color:#516e87; }
html[data-theme="light"] .theme-choice-mark { color:#0878b6; }
