/* NX Core - personal settings UX. Changes only shell presentation. */

/* Titlebar emojis previously rendered larger than their 23px window icon box.
   Keep the complete gear inside its actual window-titlebar allocation. */
.app-window[data-app="settings"] .window-titlebar .window-app-icon {
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 23px;width:23px;height:23px;min-width:23px;overflow:visible;
}
.app-window[data-app="settings"] .window-titlebar .window-app-icon>.nx-module-icon {
  width:23px;height:23px;min-width:23px;display:grid;place-items:center;
}
.app-window[data-app="settings"] .window-titlebar .nx-module-emoji {
  width:23px;height:23px;font-size:18px;line-height:1;
  display:grid;place-items:center;filter:none;
}
/* Shared constraint also stops large emoji identities being cropped in other
   NX window titlebars; desktop launch icons remain their configured size. */
.window-titlebar .window-app-icon .nx-module-emoji {
  font-size:18px;line-height:1;
}

/* Personal taskbar color (explicit user override only). Template colors and
   branded shell background stay untouched while override is disabled. */
body[data-nx-taskbar-personal-bg="true"] .taskbar{
  background-color:var(--nx-taskbar-personal-bg,#273449)!important;
  background-image:none!important;
}
.nx-personal-taskbar-options input[type="color"] {
  width:66px;height:37px;min-width:66px;padding:3px;
  border:1px solid var(--line);border-radius:9px;
  background:var(--panel-solid);cursor:pointer;
}
.nx-personal-taskbar-actions{display:flex;justify-content:flex-end;margin-top:12px}
.nx-personal-taskbar-actions button{height:auto;min-height:37px;padding:8px 13px}
.nx-personal-taskbar-options .settings-save-state{min-height:16px;margin-top:8px}
.nx-personal-taskbar-style-settings .settings-save-state{margin-top:9px}

/* Per-user UI font choice. Brand typography and document editors stay managed
   separately; do not override contenteditable, iframe, PDF, canvas or office. */
body[data-nx-ui-font] :is(
  .topbar,.taskbar,.window-titlebar,.start-menu,.desktop-icons,
  .settings-home-grid,.display-settings-window,.profile-settings-window,
  .settings-page-head,.settings-card,.dashboard-hero
){font-family:var(--nx-personal-font-stack,system-ui,sans-serif)}
.nx-personal-font-preview{
  margin-top:12px;padding:18px;
  border:1px solid var(--line);border-radius:12px;
  background:color-mix(in srgb,var(--panel-solid) 93%,var(--accent) 7%);
  color:var(--text);font-size:17px;line-height:1.5;
}
@media(max-width:680px){
  .nx-personal-taskbar-options .form-row{display:grid;grid-template-columns:1fr}
  .nx-personal-taskbar-actions button{width:100%}
}
