.rubricator-page {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #090909;
  color: #f5f5f5;
}

.rubricator-page,
.rubricator-page * {
  box-sizing: border-box;
}
body.rubricator-page {
  margin: 0;
  min-width: 320px;
  background: #090909;
}
.rubricator-page button,
.rubricator-page input,
.rubricator-page select {
  font: inherit;
}

#neurohr-rubricator-entry {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #a47bf7;
  color: #090909;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}
#neurohr-rubricator-entry:hover {
  background: #b799ff;
}
#neurohr-tested-pool-entry {
  white-space: nowrap;
}
.neurohr-testing-placement-button {
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 10px;
  border: 1px solid #7656b8;
  border-radius: 9px;
  background: rgba(164, 123, 247, 0.12);
  color: #cbb7ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.neurohr-testing-placement-button:hover,
.neurohr-testing-placement-button:focus-visible {
  border-color: #b799ff;
  background: rgba(164, 123, 247, 0.24);
  color: #fff;
}

#neurohr-rubricator-dialog[hidden] {
  display: none;
}
#neurohr-rubricator-dialog {
  position: fixed;
  inset: 18px;
  z-index: 20000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #444;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}
#neurohr-rubricator-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #090909;
}
.neurohr-rubricator-dialog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 10px 16px;
  background: #1d1d1d;
  color: #f5f5f5;
}
.neurohr-rubricator-dialog-toolbar strong {
  margin-right: auto;
}
.neurohr-rubricator-dialog-toolbar a {
  color: #b99cff;
  text-decoration: none;
}
.neurohr-rubricator-dialog-toolbar button {
  padding: 8px 14px;
  border: 1px solid #555;
  border-radius: 9px;
  background: #2a2a2a;
  color: #fff;
  cursor: pointer;
}
body.neurohr-rubricator-dialog-open {
  overflow: hidden;
}

.neurohr-mbti-name {
  display: block;
  margin-top: 3px;
  color: #b99cff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.rubricator-page .rubricator-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px;
}
.rubricator-page .rubricator-header,
.rubricator-page .panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.rubricator-page .rubricator-header {
  margin-bottom: 24px;
}
.rubricator-page .header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.rubricator-page .rubricator-header h1 {
  margin: 8px 0 4px;
  font-size: 30px;
}
.rubricator-page .rubricator-header p,
.rubricator-page .panel-title-row p {
  margin: 0;
  color: #9d9d9d;
}
.rubricator-page .back-link {
  color: #a47bf7;
  text-decoration: none;
}
.rubricator-page .back-link:hover {
  text-decoration: underline;
}

.rubricator-page .panel {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid #303030;
  border-radius: 18px;
  background: #171717;
}
.rubricator-page .panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.rubricator-page .assignment-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 20px;
  border-color: #6d51a7;
  background: linear-gradient(135deg, #201a2c, #171717 68%);
}
.rubricator-page .assignment-context[hidden] {
  display: none;
}
.rubricator-page .assignment-context-note {
  margin: 0;
  color: #d8caef;
  font-size: 13px;
  line-height: 1.55;
}
.rubricator-page .filter-hint {
  margin: 10px 0 0;
  color: #b0b0b0;
  font-size: 13px;
}
.rubricator-page .filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.rubricator-page .filters-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rubricator-page .filters-grid label > span {
  color: #c8c8c8;
  font-size: 13px;
  font-weight: 600;
}
.rubricator-page .wide-field {
  grid-column: span 2;
}
.rubricator-page input,
.rubricator-page select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 11px;
  background: #242424;
  color: #f7f7f7;
  outline: none;
}
.rubricator-page input:focus,
.rubricator-page select:focus {
  border-color: #a47bf7;
  box-shadow: 0 0 0 3px rgba(164, 123, 247, 0.15);
}
.rubricator-page .checkbox-field {
  flex-direction: row !important;
  align-items: center;
  padding-top: 26px;
}
.rubricator-page .checkbox-field input {
  width: 18px;
  min-height: 18px;
}
.rubricator-page .form-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.rubricator-page .primary-button,
.rubricator-page .ghost-button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
}
.rubricator-page .primary-button {
  border: 0;
  background: #a47bf7;
  color: #090909;
}
.rubricator-page .primary-button:hover:not(:disabled) {
  background: #b799ff;
}
.rubricator-page .ghost-button {
  border: 1px solid #3a3a3a;
  background: #222;
  color: #eee;
}
.rubricator-page .ghost-button:hover:not(:disabled) {
  border-color: #777;
}
.rubricator-page button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rubricator-page .pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rubricator-page .message {
  min-height: 24px;
  margin: 12px 0;
  color: #bcbcbc;
}
.rubricator-page .message.error {
  color: #ff7777;
}
.rubricator-page .table-wrap {
  overflow-x: auto;
  border: 1px solid #303030;
  border-radius: 14px;
}
.rubricator-page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}
.rubricator-page th,
.rubricator-page td {
  padding: 13px 14px;
  border-bottom: 1px solid #303030;
  text-align: left;
  vertical-align: top;
}
.rubricator-page th {
  position: sticky;
  top: 0;
  background: #202020;
  color: #aaa;
  font-size: 12px;
  text-transform: uppercase;
}
.rubricator-page td {
  color: #e9e9e9;
  font-size: 14px;
}
.rubricator-page tr:last-child td {
  border-bottom: 0;
}
.rubricator-page .subtext {
  display: block;
  margin-top: 3px;
  color: #949494;
  font-size: 12px;
}
.rubricator-page .badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(164, 123, 247, 0.15);
  color: #b99cff;
  font-weight: 700;
}
.rubricator-page .placement-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #3a3a3a;
  border-radius: 18px;
  padding: 24px;
  background: #171717;
  color: #f3f3f3;
}
.rubricator-page .placement-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}
.rubricator-page .placement-dialog h2 {
  margin: 0 0 6px;
}
.rubricator-page .placement-dialog p {
  color: #aaa;
}
.rubricator-page .placement-grid {
  margin-top: 18px;
}
.rubricator-page .placement-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.rubricator-page .placement-button {
  white-space: nowrap;
}
.rubricator-page .placement-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr);
  align-items: center;
  gap: 20px;
}
.rubricator-page .placement-workbench[hidden] {
  display: none;
}
.rubricator-page .placement-drop-zone {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 18px;
  border: 2px dashed #7656b8;
  border-radius: 14px;
  color: #d8c9ff;
  text-align: center;
  cursor: copy;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    transform 120ms ease;
}
.rubricator-page .placement-drop-zone.is-drag-over {
  border-color: #c9b2ff;
  background: rgba(164, 123, 247, 0.18);
  transform: translateY(-2px);
}
.rubricator-page tr[draggable="true"] {
  cursor: grab;
}
.rubricator-page tr.is-dragging {
  opacity: 0.55;
}
.rubricator-page .employee-mobile-cards {
  display: none;
}
.rubricator-page .employee-mobile-card {
  padding: 16px;
  border: 1px solid #343434;
  border-radius: 14px;
  background: #1d1d1d;
}
.rubricator-page .employee-mobile-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.rubricator-page .employee-mobile-card p {
  margin: 7px 0;
  color: #d4d4d4;
  line-height: 1.4;
}
.rubricator-page .employee-mobile-card strong {
  color: #9d9d9d;
}
.rubricator-page .placement-card-button {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
}
.rubricator-page.embedded-rubricator .rubricator-shell {
  max-width: none;
  padding: 18px;
}
.rubricator-page.embedded-rubricator .back-link {
  display: none;
}

@media (max-width: 1050px) {
  .rubricator-page .filters-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}
@media (max-width: 680px) {
  .rubricator-page .rubricator-shell {
    padding: 16px;
  }
  .rubricator-page .rubricator-header,
  .rubricator-page .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .rubricator-page .filters-grid {
    grid-template-columns: 1fr;
  }
  .rubricator-page .wide-field {
    grid-column: span 1;
  }
  .rubricator-page .pagination {
    width: 100%;
    justify-content: space-between;
  }
  .rubricator-page .placement-workbench {
    display: none;
  }
  .rubricator-page .assignment-context {
    grid-template-columns: 1fr;
  }
  .rubricator-page .table-wrap {
    display: none;
  }
  .rubricator-page .employee-mobile-cards {
    display: grid;
    gap: 12px;
  }
  .rubricator-page .employee-mobile-empty {
    margin: 0;
    color: #bcbcbc;
  }
  .rubricator-page .primary-button,
  .rubricator-page .ghost-button {
    min-height: 44px;
  }
  #neurohr-rubricator-entry {
    right: 14px;
    bottom: 14px;
  }
  #neurohr-tested-pool-entry {
    max-width: 180px;
    min-height: 44px;
    white-space: normal;
  }
  .neurohr-testing-placement-button {
    min-height: 40px;
    white-space: normal;
  }
  #neurohr-rubricator-dialog {
    inset: 6px;
    border-radius: 12px;
  }
  .neurohr-rubricator-dialog-toolbar strong {
    display: none;
  }
}
