/* Site restrictions — simplified */

.page--np {
  background: var(--color-grey-1);
  min-height: 100vh;
  padding-bottom: 96px;
}

.np {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 48px 0;
}

.np-hero {
  margin-bottom: 28px;
}

.np-hero__copy {
  max-width: 560px;
}

.np-hero__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-black-1);
}

.np-hero__subtitle {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 17px;
  line-height: 1.45;
  color: var(--color-grey-4);
}

.np-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  height: calc(100dvh - 200px);
  min-height: 480px;
}

.np-picker,
.np-detail {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  min-height: 0;
  max-height: 100%;
}

.np-picker {
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px;
  overflow: hidden;
}

.np-picker__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 14px;
}

.np-picker__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black-4);
}

.np-picker__meta {
  margin: 0;
  font-size: 13px;
  color: var(--color-grey-4);
}

.np-compose {
  margin: 0 4px 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--color-grey-1);
}

.np-compose.is-spotlight {
  box-shadow: 0 0 0 3px rgba(117, 67, 227, 0.18);
}

.np-compose__label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black-4);
}

.np-compose__row {
  display: flex;
  gap: 8px;
}

.np-compose__input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--color-segmented-border);
  border-radius: 12px;
  background: var(--color-white);
  font: inherit;
  font-size: 14px;
  color: var(--color-black-4);
}

.np-compose__input:focus {
  outline: none;
  border-color: var(--color-soft-purple-5);
  box-shadow: 0 0 0 3px rgba(117, 67, 227, 0.18);
}

.np-compose__input.is-invalid {
  border-color: #ff453f;
}

.np-compose__btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--color-light-purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.np-compose__btn:hover {
  background: var(--color-link-purple);
}

.np-compose__error {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #c01c28;
}

.np-site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
}

.np-site:hover {
  background: var(--color-grey-1);
}

.np-site.is-selected {
  background: var(--color-soft-purple-1);
  border-color: var(--color-soft-purple-3);
}

.np-site__host {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black-4);
  word-break: break-word;
}

.np-site__meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--color-grey-4);
  font-family: var(--font-platform);
}

.np-site-list__empty {
  padding: 24px 12px;
  text-align: center;
  font-family: var(--font-platform);
  font-size: 13px;
  color: var(--color-grey-4);
}

.np-detail {
  display: flex;
  flex-direction: column;
  padding: 28px 32px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.np-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.np-empty__visual {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.np-empty__ring {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffeae9 0%, var(--color-soft-purple-1) 100%);
}

.np-empty__visual img {
  position: relative;
  width: 28px;
  height: 28px;
}

.np-empty__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-black-4);
}

.np-empty__text {
  margin: 0 0 20px;
  font-family: var(--font-platform);
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-grey-4);
}

.np-empty__btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.np-empty__btn--primary {
  background: var(--color-light-purple);
  color: #fff;
}

.np-empty__btn--primary:hover {
  background: var(--color-link-purple);
}

.np-empty[hidden],
.np-detail__body[hidden],
.np-compose__error[hidden],
.np-confirm[hidden] {
  display: none !important;
}

.np-detail__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.np-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-soft-purple-1);
}

.np-detail__identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.np-detail__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffeae9;
  flex-shrink: 0;
}

.np-detail__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-grey-4);
}

.np-detail__host {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-black-4);
  word-break: break-word;
}

.np-detail__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-grey-4);
  flex-shrink: 0;
}

.np-detail__remove:hover {
  background: #ffeae9;
  color: #8a1a1a;
}

/* Remove confirmation */
.np-confirm {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.np-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 20, 26, 0.4);
}

.np-confirm__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 24px 64px rgba(21, 20, 26, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.np-confirm__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-black-4);
}

.np-confirm__text {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-grey-4);
}

.np-confirm__text strong {
  color: var(--color-black-4);
  font-weight: 600;
}

.np-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.np-confirm__btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.np-confirm__btn--ghost {
  border: 1px solid var(--color-segmented-border);
  color: var(--color-black-1);
  background: transparent;
}

.np-confirm__btn--ghost:hover {
  background: var(--color-grey-1);
}

.np-confirm__btn--danger {
  background: #c01c28;
  color: #fff;
}

.np-confirm__btn--danger:hover {
  background: #8a1a1a;
}

body.is-confirming {
  overflow: hidden;
}

/* Master “block all” control */
.np-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 8px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #f0c9c7;
  background: #fff8f7;
  cursor: pointer;
}

.np-master__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.np-master__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black-4);
}

.np-master__hint {
  font-family: var(--font-platform);
  font-size: 13px;
  color: var(--color-grey-4);
}

.np-selective-panel {
  margin-top: 8px;
}

.np-selective-panel.is-dimmed {
  opacity: 0.45;
  pointer-events: none;
}

.np-addon-group {
  margin-top: 16px;
}

.np-addon-group--exceptions {
  margin-top: 20px;
}

.np-addon-group--exceptions[hidden],
.np-exceptions-empty[hidden] {
  display: none !important;
}

.np-toolbar__hint {
  margin: 4px 0 12px;
  font-family: var(--font-platform);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-grey-4);
}

.np-exceptions-empty {
  margin: 4px 0 0;
  font-family: var(--font-platform);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-grey-4);
}

.np-addon.is-exception {
  border-color: var(--color-soft-purple-3);
  background: var(--color-white);
}

.np-addon.is-exception .np-addon__status {
  color: var(--color-link-purple);
  font-weight: 500;
}

.np-toolbar {
  margin: 12px 0;
}

.np-toolbar__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-grey-4);
}

.np-impact {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-grey-1);
  font-family: var(--font-platform);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-black-1);
}

.np-impact.is-strict {
  background: #fff8f7;
  color: #5c1010;
}

.np-impact strong {
  font-weight: 600;
}

.np-addon-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-addon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-card-border);
  background: var(--color-white);
}

.np-addon.is-disabled {
  background: #fff8f7;
  border-color: #f0c9c7;
}

.np-addon__swatch {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

.np-addon__text {
  flex: 1;
  min-width: 0;
}

.np-addon__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black-4);
}

.np-addon__status {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-grey-4);
}

.np-addon.is-disabled .np-addon__status {
  color: #8a1a1a;
  font-weight: 500;
}

.np-addon__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.np-addon__toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.np-addon__switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #c7c6cb;
  position: relative;
  transition: background 0.15s ease;
}

.np-addon__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.np-addon__toggle input:checked + .np-addon__switch {
  background: #c01c28;
}

.np-addon__toggle input:checked + .np-addon__switch::after {
  transform: translateX(16px);
}

.np-addon__toggle input:focus-visible + .np-addon__switch {
  outline: 2px solid var(--color-soft-purple-5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .np-addon__switch,
  .np-addon__switch::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  .np {
    padding: 28px 20px 0;
  }

  .np-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .np-picker {
    max-height: 360px;
  }

  .np-detail {
    max-height: min(70dvh, 640px);
    padding: 24px 20px;
  }
}
