.hidden { display: none !important; }
body { background: #060607; color: #f5f5f7; }
body.modal-open { overflow: hidden; }
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  font-size: 20px;
}
.nav-tab { transition: all .15s ease; }
textarea { min-height: 120px; }
input::placeholder, textarea::placeholder { color: #848493; }
input, select, textarea {
  color-scheme: dark;
  background: #101014;
  border-color: #2e2e36;
}
input:focus, select:focus, textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .18);
}

.support-note {
  display: flex;
  gap: 10px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  color: #b8b8c2;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px;
}

.support-note-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(37, 99, 235, .16);
  color: #93c5fd;
  flex: 0 0 auto;
}

.support-note-icon .material-symbols-outlined {
  font-size: 18px;
}

.support-note strong {
  color: #f5f5f7;
  font-weight: 800;
}

.support-note a {
  color: #93c5fd;
  font-weight: 800;
}

.filter-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.interview-filter-grid {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .interview-filter-grid {
    grid-template-columns: minmax(360px, 1.6fr) minmax(260px, 360px) minmax(150px, 180px) auto;
  }
}

.interview-filter-grid input,
.interview-filter-grid select {
  width: 100%;
}

.filter-input-wrap input,
.combo-field input {
  padding-right: 64px;
}

.filter-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #33333d;
  border-radius: 999px;
  background: #151519;
  color: #a9a9b4;
}

.filter-clear:hover {
  border-color: rgba(37, 99, 235, .55);
  color: #dbeafe;
}

.filter-clear .material-symbols-outlined {
  font-size: 15px;
}

.combo-clear {
  right: 34px;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.filter-actions > button {
  min-height: 42px;
}

.question-filter-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid #23232a;
  border-bottom: 1px solid #23232a;
}

.question-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.question-filter-field input,
.question-filter-field select {
  width: 100%;
  min-height: 42px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.question-filter-actions {
  min-width: 0;
}

@media (min-width: 1024px) {
  .question-filter-panel {
    grid-template-columns: minmax(260px, 1.45fr) minmax(190px, .9fr) minmax(150px, .7fr) minmax(190px, .9fr) auto;
  }
}

.filter-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #34343c;
  border-radius: 8px;
  background: #101014;
  color: #d7d7df;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.filter-reset-button:hover {
  border-color: rgba(37, 99, 235, .55);
  background: rgba(37, 99, 235, .1);
  color: #fff;
}

.filter-reset-button .material-symbols-outlined {
  font-size: 17px;
}

.detail-link:disabled,
.admin-card-actions button:disabled {
  cursor: wait;
  opacity: .72;
}

.detail-link.is-analyzing,
.admin-card-actions button.is-analyzing {
  border-color: rgba(96, 165, 250, .65);
  background: rgba(37, 99, 235, .22);
  color: #dbeafe;
}

.detail-link.is-analyzing .material-symbols-outlined,
.admin-card-actions button.is-analyzing .material-symbols-outlined {
  animation: analyze-spin 1.1s linear infinite;
}

.analyze-status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(96, 165, 250, .38);
  border-radius: 8px;
  background: rgba(37, 99, 235, .12);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.analyze-status::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(191, 219, 254, .35);
  border-top-color: #bfdbfe;
  border-radius: 999px;
  animation: analyze-spin .9s linear infinite;
}

@keyframes analyze-spin {
  to { transform: rotate(360deg); }
}

.loading-panel,
.loading-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  color: #a3a3ad;
  font-size: 13px;
  min-height: 72px;
  padding: 14px;
}

.loading-card {
  min-height: 92px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(147, 197, 253, .24);
  border-top-color: #60a5fa;
  border-radius: 999px;
  animation: loading-spin .8s linear infinite;
  flex: 0 0 auto;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.quick-llm-field {
  display: grid;
  gap: 8px;
}

.quick-llm-field span {
  color: #d7d7df;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quick-llm-field textarea {
  resize: vertical;
}

.admin-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  min-width: 0;
  width: 100%;
}

.admin-field span {
  color: #9b9baa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-metric-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  padding: 12px;
}

.admin-metric-card .material-symbols-outlined {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, .13);
  color: #93c5fd;
  font-size: 18px;
}

.admin-metric-card p {
  color: #92929f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-metric-card strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.admin-filter-panel,
.admin-work-surface,
.admin-editor-panel,
.admin-users-panel {
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #151519;
}

.admin-users-panel {
  padding: 16px;
}

.admin-users-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #272730;
  margin: -16px -16px 16px;
  padding: 16px;
}

.admin-help-note {
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  color: #a9a9b4;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
}

.admin-users-list {
  display: grid;
  gap: 10px;
}

.admin-user-card {
  display: grid;
  gap: 12px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  padding: 12px;
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(37, 99, 235, .16);
  color: #bfdbfe;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 900;
  flex: 0 0 auto;
}

.admin-user-title-row,
.admin-user-subtitle,
.admin-user-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-title-row strong {
  color: #fff;
  font-size: 15px;
}

.admin-user-subtitle {
  margin-top: 4px;
  color: #9b9baa;
  font-size: 12px;
}

.admin-user-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-users-list .admin-user-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-users-list .admin-user-card .admin-user-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-actions {
  border-top: 1px solid #26262e;
  padding-top: 10px;
}

.bulk-users-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.bulk-users-guide {
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  padding: 14px;
}

.bulk-users-guide h5 {
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.bulk-users-guide ol {
  display: grid;
  gap: 7px;
  color: #c4c4ce;
  font-size: 13px;
  line-height: 1.45;
  list-style: decimal;
  padding-left: 18px;
}

.bulk-users-guide code {
  border-radius: 4px;
  background: #1e1e25;
  color: #dbeafe;
  padding: 1px 5px;
}

.bulk-users-example {
  margin-top: 14px;
}

.bulk-users-example span {
  display: block;
  color: #8f8f9a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bulk-users-example pre {
  overflow: auto;
  border: 1px solid #2a2a32;
  border-radius: 8px;
  background: #070708;
  color: #d7d7df;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
  padding: 10px;
  white-space: pre;
}

.bulk-result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-result-summary span {
  border: 1px solid #2e2e36;
  border-radius: 999px;
  background: #101014;
  color: #c7c7d0;
  font-size: 12px;
  padding: 6px 10px;
}

.bulk-result-summary strong {
  color: #fff;
}

.bulk-result-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.bulk-result-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  color: #d7d7df;
  padding: 9px 10px;
}

.bulk-result-row.ok {
  border-color: rgba(34, 197, 94, .28);
}

.bulk-result-row.error {
  border-color: rgba(248, 113, 113, .34);
}

.bulk-row-number {
  color: #8f8f9a;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.bulk-result-row em {
  color: #9b9baa;
  font-size: 12px;
  font-style: normal;
}

.admin-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.admin-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 999px;
  background: rgba(16, 33, 63, .42);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 11px;
}

.admin-filter-chip.muted {
  border-color: #363641;
  background: #111116;
  color: #b9b9c3;
}

.admin-filter-chip:hover {
  border-color: rgba(37, 99, 235, .7);
  background: rgba(37, 99, 235, .12);
}

.admin-filter-chip .material-symbols-outlined {
  font-size: 16px;
}

.admin-work-surface {
  padding: 14px;
}

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #272730;
  margin: -14px -14px 14px;
  padding: 14px;
}

.admin-icon-button,
.admin-primary-action,
.admin-square-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #383842;
  border-radius: 8px;
  background: #101014;
  color: #f2f2f6;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}

.admin-icon-button .material-symbols-outlined,
.admin-primary-action .material-symbols-outlined,
.admin-square-button .material-symbols-outlined {
  font-size: 18px;
}

.admin-icon-button:hover,
.admin-square-button:hover {
  border-color: rgba(37, 99, 235, .6);
  background: rgba(37, 99, 235, .1);
}

.admin-icon-button.danger {
  border-color: rgba(127, 29, 29, .88);
  color: #fecaca;
  background: rgba(69, 10, 10, .38);
}

.admin-primary-action {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.admin-primary-action:hover {
  background: #1d4ed8;
}

.admin-square-button {
  width: 38px;
  padding: 0;
}

.admin-interview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  padding: 12px;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}

.admin-interview-card:hover,
.admin-interview-card.selected {
  border-color: rgba(37, 99, 235, .56);
  background: #131318;
}

.admin-interview-card.selected {
  box-shadow: inset 3px 0 0 #2563eb;
}

.admin-interview-card.is-working {
  opacity: .62;
}

.admin-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

.admin-card-title-row,
.admin-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-card-title-row {
  justify-content: space-between;
}

.admin-card-title-row strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.admin-card-id {
  color: #8d8d99;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.admin-card-facts,
.admin-card-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-card-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a0a0aa;
  font-size: 12px;
}

.admin-card-facts .material-symbols-outlined {
  color: #747482;
  font-size: 15px;
}

.admin-card-summary {
  display: -webkit-box;
  color: #d1d1d8;
  font-size: 13px;
  line-height: 1.45;
  max-width: 980px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-card-reason {
  border: 1px solid rgba(251, 191, 36, .24);
  border-radius: 999px;
  background: rgba(120, 53, 15, .18);
  color: #fcd34d;
  font-size: 11px;
  line-height: 1.2;
  max-width: 520px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-actions {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
}

.admin-card-actions button,
.question-open-link {
  border: 1px solid #373741;
  border-radius: 8px;
  background: #151519;
  color: #eeeeF4;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 6px;
}

.admin-card-actions button:hover,
.question-open-link:hover {
  border-color: rgba(37, 99, 235, .58);
  background: rgba(37, 99, 235, .12);
}

.admin-card-actions .material-symbols-outlined {
  font-size: 17px;
}

.admin-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(8px);
  padding: 18px;
}

.admin-editor-panel {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(37, 99, 235, .32);
  border-radius: 10px;
  background: #151519;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .58);
  padding: 18px;
}

.admin-editor-hint,
.admin-save-status {
  border: 1px solid #30303a;
  border-radius: 8px;
  background: #101014;
  color: #b9b9c3;
  font-size: 12px;
  padding: 9px 10px;
}

.admin-editor-section {
  display: grid;
  gap: 12px;
  border: 1px solid #2a2a32;
  border-radius: 8px;
  background: #101014;
  padding: 12px;
}

.admin-editor-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f1f5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-editor-section-title .material-symbols-outlined {
  color: #93c5fd;
  font-size: 18px;
}

.admin-textarea-sm {
  min-height: 86px;
}

.admin-textarea-md {
  min-height: 180px;
}

.admin-check-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #101014;
  color: #dcdce4;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  padding: 10px;
}

.admin-save-status.dirty {
  border-color: rgba(251, 191, 36, .35);
  color: #fde68a;
  background: rgba(120, 53, 15, .22);
}

.admin-save-status.saving {
  border-color: rgba(56, 189, 248, .35);
  color: #bae6fd;
  background: rgba(12, 74, 110, .22);
}

.admin-save-status.saved {
  border-color: rgba(34, 197, 94, .35);
  color: #bbf7d0;
  background: rgba(20, 83, 45, .22);
}

.admin-save-status.error {
  border-color: rgba(248, 113, 113, .38);
  color: #fecaca;
  background: rgba(127, 29, 29, .24);
}

.admin-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.status-pill-ui {
  border-radius: 999px;
  background: #25252d;
  color: #d6d6df;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.status-pill-ui.danger {
  background: rgba(127, 29, 29, .58);
  color: #fecaca;
}

.status-pill-ui.ok {
  background: rgba(20, 83, 45, .58);
  color: #bbf7d0;
}

.status-pill-ui.muted {
  background: #1f1f26;
  color: #a1a1aa;
}

.interview-card-ui {
  display: grid;
  gap: 12px;
  min-height: 204px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #151519;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.interview-card-ui:hover {
  border-color: rgba(37, 99, 235, .56);
  background: #17171d;
  transform: translateY(-1px);
}

.interview-card-ui.legacy {
  align-content: start;
}

.interview-card-title {
  margin-top: 5px;
  color: #f5f5f7;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  transition: color .15s ease;
}

.interview-card-ui:hover .interview-card-title {
  color: #93c5fd;
}

.interview-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.interview-card-top h4 {
  min-width: 0;
  color: #f7f7fb;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.interview-card-top span {
  color: #8f8f9a;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.interview-card-status,
.interview-card-bottom,
.interview-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.interview-card-status.legacy {
  margin-top: 2px;
}

.interview-card-summary {
  color: #cfcfd8;
  font-size: 13px;
  line-height: 1.5;
  min-height: 42px;
  margin: 0;
}

.interview-card-bottom {
  align-items: flex-start;
}

.interview-card-footer {
  justify-content: space-between;
  border-top: 1px solid #2a2a32;
  margin-top: auto;
  padding-top: 10px;
}

.interview-card-footer > span {
  color: #8b8b97;
  font-size: 11px;
}

.interview-card-footer button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(37, 99, 235, .4);
  border-radius: 8px;
  background: rgba(37, 99, 235, .12);
  color: #dbeafe;
}

.interview-card-footer .material-symbols-outlined {
  font-size: 17px;
}

.interview-card-footer .legacy-analyze {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 0 14px;
}

.tag-row-ui {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #34343c;
  border-radius: 999px;
  background: #1b1b22;
  color: #a9a9b4;
  font-size: 10px;
  font-weight: 800;
  min-height: 24px;
  padding: 3px 8px;
}

.asset-pill .material-symbols-outlined {
  font-size: 15px;
}

.asset-pill.ok {
  border-color: rgba(34, 197, 94, .32);
  background: rgba(20, 83, 45, .28);
  color: #bbf7d0;
}

.asset-pill.muted {
  color: #8f8f9a;
}

.combo-field {
  position: relative;
  display: block;
  min-width: 0;
}

.combo-field input {
  width: 100%;
}

.combo-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #8f8f9a;
  font-size: 18px;
  pointer-events: none;
}

.combo-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #2f3b55;
  border-radius: 8px;
  background: #101014;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  padding: 6px;
}

.combo-option {
  display: block;
  width: 100%;
  border-radius: 6px;
  color: #f2f2f6;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
  text-align: left;
}

.combo-option:hover {
  background: rgba(37, 99, 235, .16);
  color: #dbeafe;
}

.combo-empty {
  display: block;
  color: #8f8f9a;
  font-size: 13px;
  padding: 9px 10px;
}

.tag-chip-ui,
.tag-muted {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}

.tag-chip-ui {
  background: rgba(16, 33, 63, .72);
  color: #dbeafe;
  border: 1px solid rgba(37, 99, 235, .24);
}

.tag-muted {
  background: #23232b;
  color: #9ca3af;
}

.question-card-ui {
  display: grid;
  gap: 10px;
  border: 1px solid #2e2e36;
  border-radius: 8px;
  background: #151519;
  padding: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.question-card-ui:hover {
  border-color: rgba(37, 99, 235, .5);
}

.question-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.question-card-head h4 {
  color: #f7f7fb;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.question-card-head span {
  color: #8f8f9a;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.question-card-badges,
.question-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.question-card-meta {
  color: #9b9baa;
  font-size: 12px;
}

.question-card-highlight {
  border-color: rgba(37, 99, 235, .9) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
  transform: translateY(-2px);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid #2e2e36;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 34%),
    linear-gradient(135deg, #111116, #0b0b0e);
}

.detail-eyebrow {
  color: #8c8c99;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.detail-title {
  margin-top: 6px;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.05;
}

.detail-subtitle {
  max-width: 940px;
  margin-top: 10px;
  color: #c9c9d3;
  font-size: 15px;
  line-height: 1.55;
}

.detail-badges,
.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badges {
  margin-top: 14px;
}

.detail-badge {
  border: 1px solid #34343c;
  border-radius: 999px;
  background: rgba(21, 21, 25, .82);
  color: #d6d6df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.detail-badge.primary {
  border-color: rgba(37, 99, 235, .42);
  background: rgba(16, 33, 63, .78);
  color: #dbeafe;
}

.detail-badge.danger {
  border-color: rgba(248, 113, 113, .42);
  background: rgba(127, 29, 29, .48);
  color: #fecaca;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #3a3a45;
  border-radius: 12px;
  background: rgba(7, 7, 8, .5);
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 11px;
  transition: border-color .15s ease, background .15s ease;
}

.detail-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.detail-link:hover {
  border-color: rgba(37, 99, 235, .65);
  background: rgba(37, 99, 235, .12);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.detail-info-card {
  min-height: 74px;
  border: 1px solid #2e2e36;
  border-radius: 14px;
  background: #101014;
  padding: 12px;
}

.detail-info-card:first-child {
  border-color: rgba(37, 99, 235, .35);
  background: linear-gradient(135deg, rgba(16, 33, 63, .78), #101014);
}

.detail-info-card span {
  display: block;
  color: #858592;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.detail-info-card strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.15;
}

.detail-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(251, 191, 36, .34);
  border-radius: 14px;
  background: rgba(120, 53, 15, .28);
  color: #fde68a;
  padding: 12px 14px;
}

.detail-layout-modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 16px;
  align-items: start;
}

.detail-main-stack,
.detail-side-stack,
.detail-question-list {
  display: grid;
  gap: 12px;
}

.detail-side-stack {
  position: sticky;
  top: 16px;
}

.detail-panel,
.detail-questions-panel {
  border: 1px solid #2e2e36;
  border-radius: 16px;
  background: #101014;
  overflow: hidden;
}

.detail-panel-head,
.detail-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #272730;
  padding: 13px 14px;
}

.detail-empty-pill {
  border-radius: 999px;
  background: #1f1f26;
  color: #8e8e99;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  text-transform: uppercase;
}

.detail-content {
  overflow: auto;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  color: #d9d9e0;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.62;
}

.detail-tech-details {
  border: 1px dashed #3b3b46;
  border-radius: 16px;
  background: #0d0d10;
}

.detail-tech-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #c9c9d3;
  font-size: 13px;
  font-weight: 800;
  padding: 13px 14px;
}

.detail-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px dashed #2e2e36;
  padding: 12px;
}

.detail-tech-grid pre {
  max-height: 360px;
  overflow: auto;
  margin: 8px 0 0;
  border: 1px solid #272730;
  border-radius: 12px;
  background: #070708;
  color: #d7d7df;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px;
  white-space: pre-wrap;
}

.detail-questions-panel {
  padding-bottom: 12px;
}

.detail-side-head h4 {
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.detail-question-list {
  max-height: calc(100vh - 310px);
  overflow: auto;
  padding: 12px;
}

.detail-question-card {
  border: 1px solid #2e2e36;
  border-radius: 14px;
  background: #151519;
  padding: 12px;
}

.detail-question-top,
.detail-question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-question-type {
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.qtype-soft {
  border-color: rgba(16, 185, 129, .5);
  background: rgba(6, 78, 59, .62);
  color: #a7f3d0;
}

.qtype-technical {
  border-color: rgba(56, 189, 248, .5);
  background: rgba(12, 74, 110, .62);
  color: #bae6fd;
}

.qtype-case {
  border-color: rgba(245, 158, 11, .5);
  background: rgba(120, 53, 15, .62);
  color: #fde68a;
}

.qtype-other {
  border-color: #3f3f46;
  background: #27272a;
  color: #e4e4e7;
}

.detail-time {
  color: #a1a1aa;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.detail-question-card h5 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.detail-question-meta {
  justify-content: flex-start;
  color: #8e8e99;
  font-size: 11px;
}

.detail-chip-row {
  margin-top: 10px;
}

.detail-chip-row span {
  border-radius: 999px;
  background: #23232b;
  color: #c8c8d0;
  font-size: 11px;
  padding: 4px 8px;
}

.detail-empty {
  color: #9ca3af;
  padding: 10px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #34343c; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a55; }

@media (max-width: 900px) {
  aside.fixed {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #2e2e36;
  }
  header.fixed {
    position: static;
    height: auto;
    margin-left: 0;
    padding: 14px 16px;
  }
  main {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }
  .detail-hero,
  .detail-layout-modal {
    grid-template-columns: 1fr;
  }
  .detail-actions {
    min-width: 0;
  }
  .detail-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-tech-grid {
    grid-template-columns: 1fr;
  }
  .detail-side-stack {
    position: static;
  }
  .detail-question-list {
    max-height: none;
  }
  .admin-metric-grid,
  .admin-filter-panel,
  .admin-editor-actions,
  .admin-user-fields,
  .bulk-users-layout {
    grid-template-columns: 1fr;
  }
  .admin-users-panel-head,
  .admin-user-main {
    align-items: flex-start;
  }
  .admin-users-panel-head {
    flex-direction: column;
  }
  .admin-editor-modal {
    align-items: stretch;
    padding: 8px;
  }
  .admin-editor-panel {
    max-height: calc(100vh - 16px);
    padding: 12px;
  }
  .admin-interview-card {
    grid-template-columns: 1fr;
  }
  .admin-card-actions {
    grid-template-columns: repeat(5, 34px);
  }
}
