/* Login: brand only */
.login-card-head {
  justify-content: center;
}
.login-card-head .login-brand-ico {
  margin: 0;
}

/* Appearance settings dropdown in topnav */
.np-appearance {
  position: relative;
}
.np-appearance__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--np-border);
  border-radius: 10px;
  background: var(--np-card);
  color: var(--np-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.np-appearance__btn:hover,
.np-appearance.is-open .np-appearance__btn {
  background: rgba(26, 187, 156, .12);
  border-color: rgba(26, 187, 156, .35);
  color: var(--np-accent);
}
.np-appearance__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: min(280px, calc(100vw - 24px));
  padding: 12px;
  background: var(--np-card);
  border: 1px solid var(--np-border);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
  z-index: 10040;
  display: none;
}
.np-appearance.is-open .np-appearance__panel {
  display: block;
}
.np-appearance__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--np-dark);
}
.np-appearance__hint {
  margin: 0 0 10px;
  font-size: 11px;
  opacity: .7;
  line-height: 1.5;
}
.np-appearance__seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.np-appearance__chip {
  border: 1px solid var(--np-border);
  background: var(--np-bg);
  color: var(--np-text);
  border-radius: 10px;
  min-height: 38px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.np-appearance__chip:hover {
  border-color: rgba(26, 187, 156, .4);
  color: var(--np-dark);
}
.np-appearance__chip.is-active {
  background: rgba(26, 187, 156, .16);
  border-color: rgba(26, 187, 156, .45);
  color: var(--np-accent);
  font-weight: 700;
}
.np-appearance__fonts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.np-appearance__font {
  justify-content: space-between;
  padding-inline: 12px;
}
.np-appearance__font em {
  font-style: normal;
  opacity: .65;
  font-size: 11px;
}
.np-appearance__divider {
  height: 1px;
  background: var(--np-border);
  margin: 0 0 12px;
}

html[dir="rtl"] .np-appearance__panel {
  left: auto;
  right: 0;
}

/* Lock until Windows is paired */
.np-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(10, 14, 20, .72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.np-lock-overlay.is-hidden {
  display: none;
}
.np-lock-modal {
  width: min(440px, 100%);
  background: var(--np-card);
  border: 1px solid var(--np-border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 20px 48px rgba(0,0,0,.28);
  text-align: center;
}
.np-lock-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 187, 156, .14);
  color: var(--np-accent);
  font-size: 26px;
}
.np-lock-modal h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--np-dark);
}
.np-lock-modal > p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  opacity: .9;
}
.np-lock-modal__box {
  text-align: right;
  background: var(--np-bg);
  border: 1px solid var(--np-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.np-lock-modal__box .label {
  font-size: 11px;
  opacity: .7;
  margin-bottom: 4px;
}
.np-lock-modal__box code,
.np-lock-modal__box .code {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--np-accent);
  letter-spacing: .08em;
}
.np-lock-modal ol {
  text-align: right;
  margin: 0 0 16px;
  padding-right: 18px;
  font-size: 13px;
  line-height: 1.8;
}
body.is-windows-locked .np-sidebar nav a:not(.active) {
  pointer-events: none;
}

/* Project switcher (topnav) — uses theme np-select */
.np-project-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
  min-width: 0;
}
.np-project-switch__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: .75;
  white-space: nowrap;
}
.np-project-switch .np-select {
  min-width: 170px;
  max-width: min(280px, 42vw);
}
.np-project-switch .np-select-trigger {
  min-height: 38px;
  font-weight: 600;
}
.np-project-readonly {
  border: 1px solid var(--np-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--np-bg);
  font-weight: 600;
}
.np-row-active td {
  background: color-mix(in srgb, var(--np-accent) 10%, transparent);
}
@media (max-width: 900px) {
  .np-project-switch__label { display: none; }
  .np-project-switch .np-select { min-width: 140px; max-width: 48vw; }
}

