/* The shared PHNX590 appearance control. */
.phnx-theme-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  padding: 22px;
  overflow: auto;
  border: 1px solid light-dark(#dedee4, #41434d);
  border-radius: 17px;
  color: light-dark(#18191f, #f3f1ef);
  background: light-dark(#fff, #1b1c22);
  box-shadow: 0 24px 70px rgb(0 0 0 / .36);
  font: 14px/1.45 Inter, system-ui, sans-serif;
}
.phnx-theme-dialog::backdrop { background: rgb(8 8 13 / .58); }
.phnx-theme-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.phnx-theme-heading h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.phnx-theme-dialog p { margin: 8px 0 17px; color: light-dark(#5c5c68, #bab9c1); }
.phnx-theme-dialog button {
  min-height: 44px;
  border: 1px solid light-dark(#dedee4, #41434d);
  border-radius: 9px;
  color: inherit;
  background: light-dark(#f4f4f6, #252631);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.phnx-theme-dialog button:focus-visible { outline: 2px solid #e2543d; outline-offset: 2px; }
.phnx-theme-dialog .phnx-theme-heading button { width: 44px; font-size: 23px; line-height: 1; }
.phnx-theme-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.phnx-theme-dialog button[aria-pressed="true"] {
  border-color: light-dark(#a43c29, #ff886f);
  color: light-dark(#862c1c, #ffd6cc);
  background: light-dark(#fdefeb, #45272a);
}
#theme-toggle:not(.account-menu *) {
  box-sizing: border-box;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid light-dark(#d4d4dd,#434551);
  border-radius: 9px;
  color: inherit;
  background: light-dark(#f4f4f6,#1f2029);
  cursor: pointer;
}
#theme-toggle:not(.account-menu *) svg { width: 18px; height: 18px; }
#theme-toggle:not(.account-menu *) > span { font-size: 21px; line-height: 1; }
#theme-toggle:not(.account-menu *):focus-visible { outline: 2px solid #e2543d; outline-offset: 2px; }

