.emp-pt-overlay {
  position: fixed;
  inset: 0;
  z-index: 10240;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 7, 0.66);
}

.emp-pt-panel {
  position: relative;
  width: min(980px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #16181b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.emp-pt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emp-pt-head-copy h2 {
  margin: 0;
  color: #f2f5f8;
  font-size: 20px;
  font-weight: 650;
}

.emp-pt-head-copy p {
  margin: 4px 0 0;
  color: rgba(242, 245, 248, 0.62);
  font-size: 13px;
}

.emp-pt-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f2f5f8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.emp-pt-close:hover,
.emp-pt-close:focus-visible {
  background: rgba(89, 183, 222, 0.16);
  outline: none;
}

.emp-pt-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 20px 0;
  padding: 10px 12px;
  border-radius: 10px;
}

.emp-pt-banner.is-error {
  background: rgba(220, 80, 80, 0.16);
  color: #ffd4d4;
}

.emp-pt-banner.is-ok {
  background: rgba(67, 176, 106, 0.16);
  color: #d7f5e2;
}

.emp-pt-banner p {
  margin: 0;
}

.emp-pt-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 20px 18px;
}

.emp-pt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.emp-pt-search {
  flex: 1 1 220px;
  min-width: 180px;
}

.emp-pt-search input,
.emp-pt-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #101214;
  color: #f2f5f8;
  padding: 8px 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.emp-pt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emp-pt-chip,
.emp-pt-act {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #f2f5f8;
  min-height: 32px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.emp-pt-chip.is-selected,
.emp-pt-act.is-primary {
  border-color: rgba(89, 183, 222, 0.5);
  background: rgba(89, 183, 222, 0.18);
}

.emp-pt-act.is-danger {
  border-color: rgba(220, 80, 80, 0.5);
  background: rgba(220, 80, 80, 0.16);
}

.emp-pt-chip:hover,
.emp-pt-act:hover,
.emp-pt-chip:focus-visible,
.emp-pt-act:focus-visible {
  background: rgba(89, 183, 222, 0.16);
  outline: none;
}

.emp-pt-count {
  margin: 10px 0 8px;
  color: rgba(242, 245, 248, 0.62);
  font-size: 12px;
}

.emp-pt-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.emp-pt-table {
  min-width: 0;
  width: 100%;
}

.emp-pt-table-head,
.emp-pt-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 96px minmax(0, auto);
  gap: 12px;
  align-items: center;
}

.emp-pt-table-head {
  color: rgba(242, 245, 248, 0.55);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 8px 8px;
}

.emp-pt-row {
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #1a1d21;
  margin-bottom: 8px;
}

.emp-pt-row.is-disabled {
  opacity: 0.82;
}

.emp-pt-col-name {
  color: #f2f5f8;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emp-pt-col-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.emp-pt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.emp-pt-badge.is-on {
  background: rgba(67, 176, 106, 0.18);
  color: #d7f5e2;
}

.emp-pt-empty {
  margin: 24px 0;
  color: rgba(242, 245, 248, 0.62);
}

.emp-pt-dialog-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 7, 0.55);
  z-index: 4;
}

.emp-pt-dialog {
  width: min(420px, calc(100% - 32px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1a1d21;
}

.emp-pt-dialog h3 {
  margin: 0;
  color: #f2f5f8;
}

.emp-pt-dialog p {
  margin: 8px 0 0;
  color: rgba(242, 245, 248, 0.7);
  font-size: 13px;
}

.emp-pt-field {
  display: grid;
  gap: 6px;
  color: rgba(242, 245, 248, 0.78);
  font-size: 13px;
}

.emp-pt-field-error {
  color: #ffd4d4;
  font-size: 12px;
  font-style: normal;
}

.emp-pt-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cp-np-dtype-notice {
  margin: 6px 0 0;
  color: #f4d38a;
  font-size: 12px;
}

@media (min-width: 1920px) {
  .emp-pt-overlay {
    padding: 32px;
  }

  .emp-pt-panel {
    width: min(1100px, calc(100vw - 64px));
    height: min(820px, calc(100vh - 64px));
  }
}

@media (max-width: 1366px) {
  .emp-pt-overlay {
    padding: 16px;
  }

  .emp-pt-panel {
    width: min(980px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 32px));
  }

  .emp-pt-table-head,
  .emp-pt-row {
    grid-template-columns: 72px minmax(120px, 1fr) 100px auto;
    gap: 8px;
  }

  .emp-pt-col-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .emp-pt-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .emp-pt-filters {
    grid-column: 1 / -1;
  }

  .emp-pt-table {
    min-width: 0;
  }

  .emp-pt-table-head,
  .emp-pt-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .emp-pt-col-status {
    display: none;
  }

  .emp-pt-col-actions {
    flex-wrap: wrap;
  }
}
