/* Small layout helpers; Polaris handles most styling */

.filters-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.filters-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filters-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-direction: column;
  align-items: flex-end;
}

.filters-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-panel .filters-right {
  flex-direction: row;
}

.filters-row-bottom .filters-right {
  margin-left: auto;
}

.back-link {
  text-decoration: none;
  color: inherit;
}

.card-pad {
  padding: 5px;
}

.small-muted {
  margin-top: 10px;
  color: #616161;
  font-size: 12px;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Style the IC link */

.ic-link {
  color: #616161 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.ic-link:hover {
  text-decoration: underline !important;
}

/* All rows background */

/* Fill the whole visible cell area (cover Polaris cell padding) */

.cell-bg {
  background: #f7f7f7 !important;
  margin: -10px -12px;
  padding: 10px 12px;
  display: block;
  width: calc(100% + 24px);
  min-height: 100%;
  box-sizing: border-box;
}

.search-wrap {
  width: 420px;
  max-width: 100%;
  position: relative;
}

/* Keep slight scale for topbar native search input */

.search-wrap .aa-search-input {
  transform: scale(1.02);
  transform-origin: right center;
  display: block;
}

/* kbd hint (right side, inside the search area) */

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.search-kbd kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: #f1f2f3;
  border: 1px solid #dfe3e8;
  color: #5c5f62;
}

.tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-icon-only {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid #d2d5d9;
  border-radius: 10px;
  padding: 0;
  color: #4f5358;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.filter-icon-only:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.filter-icon-only:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}

.filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d7175;
}

.filter-icon svg {
  width: 18px;
  height: 18px;
}

.filter-select-hitbox {
  position: absolute;
  inset: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  opacity: 0;
  outline: none;
  cursor: pointer;
}

.clear-filters-btn {
  appearance: none;
  border: 1px solid #d2d5d9;
  background: #ffffff;
  color: #6d7175;
  border-radius: 10px;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.clear-filters-btn:hover {
  background: #f6f6f7;
}

.active-filters-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px dotted #b8bec5;
  background: #f6f7f8;
  font-size: 12px;
  color: #4f5358;
  font-weight: 600;
  white-space: nowrap;
}

.students-pagination {
  margin: 8px 0 10px;
  width: 100%;
}

.students-pagination--inline {
  margin: 0;
  width: auto;
  max-width: none;
}

.students-pagination-bottom {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 0;
}

.students-pagination__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.students-pagination__summary {
  font-size: 12px;
  color: #8a8f98;
  font-weight: 500;
}

.students-count-text {
  font-size: 12px;
  color: #8a8f98;
  font-weight: 500;
}

.students-export {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  z-index: 20;
  pointer-events: auto;
}

.students-export-select {
  appearance: none;
  border: 1px solid #d9dde3;
  background: #ffffff;
  color: #3a3f45;
  border-radius: 10px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.students-export-label {
  display: block;
  margin-bottom: 6px;
  color: #5d636b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}

.students-export-btn {
  appearance: none;
  border: 1px solid #d9dde3;
  background: #ffffff;
  color: #3a3f45;
  border-radius: 10px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

.students-export-btn:hover {
  background: #f7f8f9;
}

.students-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: #ffffff;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  padding: 10px;
  z-index: 35;
}

.students-export-menu .students-export-select {
  width: 100%;
  margin-bottom: 8px;
  box-shadow: none;
}

.students-export-download-btn {
  width: 100%;
  appearance: none;
  border: 1px solid #d9dde3;
  background: #f8f9fa;
  color: #2f343a;
  border-radius: 9px;
  height: 32px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.students-export-download-btn:hover {
  background: #eef1f3;
}

.students-pagination__nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pg-btn {
  appearance: none;
  border: 1px solid #dadde1;
  background: #f6f6f7;
  color: #6d7175;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.pg-btn:hover:not(:disabled) {
  background: #eceeef;
  color: #4f5358;
}

.pg-btn.active {
  background: #e6e8ea;
  color: #3f444a;
  border-color: #cfd3d8;
}

.pg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.candidate-out {
  margin-top: 6px;
}

.candidate-layout {
  display: grid;
  gap: 12px;
}

.candidate-main-wrap {
  margin: 0;
  padding: 0 20px !important;
  width: 100%;
  box-sizing: border-box;
}

.col-12.col-lg-10.students-main .candidate-main-wrap {
  margin-top: 60px;
  padding-right: 14px !important;
  box-sizing: border-box;
}

.candidate-back-link {
  display: inline-block;
  margin: 0 0 8px;
}

.candidate-main-wrap .candidate-admin,
.candidate-main-wrap .candidate-layout {
  margin: 0;
  width: 100%;
}

.candidate-admin {
  display: grid;
  gap: 12px;
}

.candidate-head-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.candidate-topbar {
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  align-items: start;
}

.candidate-main-col,
.candidate-side-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.candidate-side-col .candidate-card,
.candidate-main-col .candidate-card {
  align-self: start;
  height: auto;
}

.candidate-status-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.candidate-refresh-btn {
  appearance: none;
  border: 1px solid #d2d8df;
  background: #fff;
  color: #3b3f45;
  border-radius: 8px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.candidate-refresh-btn:hover:not(:disabled) {
  background: #f6f8fa;
}

.candidate-refresh-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.candidate-sync-state {
  font-size: 12px;
  color: #6d7175;
  font-weight: 500;
}

.process-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.process-flow-head h3 {
  margin-bottom: 0;
}

.process-flow-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.candidate-action-btn {
  appearance: none;
  border: 1px solid #d2d5d9;
  background: #f6f6f7;
  border-radius: 10px;
  color: #3f444a;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 11px;
  line-height: 1;
}

.candidate-timeline-note {
  color: #5c5f62;
  font-size: 13px;
}

.candidate-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.candidate-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8f98;
  font-weight: 700;
}

.candidate-name {
  margin: 2px 0 2px;
  font-size: 22px;
  line-height: 1.2;
  color: #202223;
}

.candidate-sub {
  color: #6d7175;
  font-size: 13px;
}

.candidate-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.candidate-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.candidate-pill.success {
  color: #116149;
  background: #e3f1df;
  border-color: #b4d8ab;
}

.candidate-pill.danger {
  color: #8e1f0b;
  background: #fce9e8;
  border-color: #f3c3c0;
}

.candidate-pill.warning {
  color: #8a6116;
  background: #fff3d6;
  border-color: #f0dda5;
}

.candidate-pill.neutral {
  color: #5c5f62;
  background: #f1f2f3;
  border-color: #d9dde1;
}

.candidate-card {
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.candidate-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #303030;
}

.stage-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stage-progress-bar {
  height: 12px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, #edf2f7 0%, #e4eaf1 100%);
  border: 1px solid #d7dfe8;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.08);
}

.stage-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #34d399 0%, #22c55e 40%, #16a34a 100%);
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.16), 0 2px 8px rgba(22, 163, 74, 0.28);
  transition: width 280ms ease;
}

.stage-progress-text {
  font-size: 12px;
  color: #5f6772;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.process-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.process-stage-card {
  border: 1px solid #e7ebef;
  border-radius: 9px;
  padding: 10px;
  background: #ffffff;
  box-shadow: none;
  align-self: start;
  height: auto;
}

.stage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stage-card-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: 0.1px;
  line-height: 1.2;
}

.stage-state-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dde2e7;
  background: #f7f8f9;
  color: #4f5358;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  white-space: nowrap;
}

.stage-state-badge.done {
  color: #116149;
  border-color: #b4d8ab;
  background: #e3f1df;
}

.stage-state-badge.inprogress {
  color: #8a6116;
  border-color: #f0dda5;
  background: #fff3d6;
}

.stage-state-badge.blocked {
  color: #8e1f0b;
  border-color: #f3c3c0;
  background: #fce9e8;
}

.stage-card-summary {
  margin: 3px 0 5px;
  color: #5c5f62;
  font-size: 10px;
  line-height: 1.35;
}

.process-stage-rows .candidate-row {
  margin-top: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 2px;
}

.process-stage-rows .candidate-label {
  font-size: 10px;
}

.process-stage-rows .candidate-value {
  font-size: 12px;
  font-weight: 600;
}

.payment-form {
  margin-top: 2px;
}

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

.payment-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-field--wide {
  grid-column: 1 / -1;
}

.payment-input {
  height: 30px;
  border: 1px solid #dbe0e6;
  border-radius: 7px;
  background: #fff;
  color: #202223;
  font-size: 12px;
  font-weight: 500;
  padding: 0 9px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  outline: none;
}

.payment-input:focus {
  border-color: #a3b1c2;
  box-shadow: 0 0 0 2px rgba(35, 121, 255, 0.12);
}

.payment-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-save-btn {
  appearance: none;
  border: 1px solid #d2d8df;
  background: #ffffff;
  color: #3b3f45;
  border-radius: 7px;
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.payment-save-btn:hover:not(:disabled) {
  background: #f6f8fa;
}

.payment-save-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.payment-edit-btn {
  appearance: none;
  border: 1px solid #d2d8df;
  background: #ffffff;
  color: #3b3f45;
  border-radius: 7px;
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.payment-edit-btn:hover {
  background: #f6f8fa;
}

.payment-save-state {
  font-size: 12px;
  font-weight: 600;
  color: #6d7175;
}

.payment-save-state.saving {
  color: #6d7175;
}

.payment-save-state.success {
  color: #116149;
}

.payment-save-state.error {
  color: #8e1f0b;
}

.payment-field .candidate-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  font-weight: 600;
}

.offer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.offer-block {
  border: 1px solid #edf1f4;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  margin-bottom: 8px;
}

.offer-block:last-child {
  margin-bottom: 0;
}

.offer-block-title {
  font-size: 11px;
  font-weight: 700;
  color: #6d7175;
  margin-bottom: 4px;
}

.offer-generate-btn {
  appearance: none;
  border: 1px solid #d2d8df;
  background: #fff;
  color: #3b3f45;
  border-radius: 7px;
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.offer-generate-btn:hover:not(:disabled) {
  background: #f6f8fa;
}

.offer-generate-btn:disabled,
.offer-send-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.offer-send-btn {
  appearance: none;
  border: 1px solid #d2d8df;
  background: #fff;
  color: #3b3f45;
  border-radius: 7px;
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.offer-send-btn:hover:not(:disabled) {
  background: #f6f8fa;
}

.offer-generate-state {
  font-size: 12px;
  font-weight: 600;
  color: #6d7175;
}

.offer-generate-state.success {
  color: #116149;
}

.offer-generate-state.error {
  color: #8e1f0b;
}

.candidate-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #eceff2;
  border-radius: 9px;
  background: #f9fafb;
  margin-top: 6px;
}

.candidate-label {
  color: #8a8f98;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.candidate-value {
  color: #202223;
  font-size: 14px;
  font-weight: 600;
}

.candidate-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.candidate-value a {
  color: #2563eb;
  text-decoration: none;
}

.candidate-value a:hover {
  text-decoration: underline;
}

.copy-btn {
  appearance: none;
  border: 1px solid #d7dbe0;
  background: #ffffff;
  color: #6d7175;
  border-radius: 8px;
  height: 26px;
  width: 26px;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: none;
  transition: background-color 100ms ease, border-color 100ms ease;
}

.copy-btn:hover:not(:disabled) {
  background: #f3f4f6;
}

.copy-btn:active:not(:disabled) {
  background: #eceff2;
}

.copy-btn.is-copied {
  color: #116149;
  border-color: #b4d8ab;
  background: #e8f5ec;
}

.copy-btn.is-failed {
  color: #8e1f0b;
  border-color: #f3c3c0;
  background: #fce9e8;
}

.copy-btn[data-indicator]::after {
  content: attr(data-indicator);
  position: absolute;
  top: -24px;
  right: 0;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: #202223;
  color: #fff;
  white-space: nowrap;
}

.copy-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.candidate-value.mono,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.skeleton-card {
  display: grid;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eceff2 20%, #f7f8f9 50%, #eceff2 80%);
  background-size: 220% 100%;
  animation: skeleton-wave 1.2s ease-in-out infinite;
}

.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-85 { width: 85%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-100 { width: 100%; }

@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

@media (max-width: 768px) {
  .col-12.col-lg-10.students-main .candidate-main-wrap {
    padding: 0 12px !important;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
  }

  .candidate-hero {
    flex-direction: column;
  }

  .candidate-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .process-flow-grid {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }
}

/* Layout shell */

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 56px);
}

/* Sidebar */

.app-sidebar {
  background: #111213;
  color: rgba(255,255,255,.92);
  border-right: 1px solid rgba(255,255,255,.14);
  padding: 14px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow: auto;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 12px;
}

.side-logo {
  height: 26px;
  width: auto;
  display: block;
}

.side-title {
  font-weight: 700;
  font-size: 13px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.side-link {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13px;
}

.side-link:hover {
  background: rgba(255,255,255,.08);
}

.side-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
}

/* Main content full width */

.app-main {
  padding: 16px;
  overflow-x: auto;
}

.students-main {
  margin: 0;
  padding: 0 !important;
}

.students-table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 40px 6px;
}

.students-sync-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.students-sync-btn {
  appearance: none;
  border: 1px solid #d9dde3;
  background: #ffffff;
  color: #4a5058;
  border-radius: 9px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.students-sync-btn:hover {
  background: #f7f8f9;
}

.students-sync-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.students-sync-text {
  font-size: 11px;
  color: #7b8290;
  font-weight: 600;
}

.students-wisdom {
  margin: 60px 40px 8px;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.students-wisdom-text {
  margin: 0;
  color: #7f8690;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15px;
  opacity: 0;
  transition: opacity 260ms ease;
  text-align: center;
  line-height: 1.3;
}

.students-wisdom-text.is-visible {
  opacity: 1;
}

.students-wisdom-text::after {
  content: "|";
  display: inline-block;
  margin-left: 4px;
  color: #9aa1ab;
  animation: students-wisdom-caret 0.9s step-end infinite;
}

.students-wisdom-byline {
  margin: 0;
  text-align: center;
  color: #9aa1ab;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0;
  transition: opacity 220ms ease;
}

.students-wisdom-byline.is-visible {
  opacity: 1;
}

@keyframes students-wisdom-caret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.students-analysis-grid {
  margin: 0 40px 10px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
}

.students-analysis-card {
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 165px;
  flex: 0 0 165px;
}

.students-analysis-main {
  min-width: 0;
}

.students-analysis-label {
  font-size: 11px;
  font-weight: 600;
  color: #7a8088;
  margin-bottom: 4px;
}

.students-analysis-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #6b7280;
}

.students-analysis-spark {
  width: 46px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 0.8;
}

.students-analysis-spark path {
  fill: none;
  stroke: #5aaeff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.students-table-shell {
  margin: 0 40px 0 !important;
  width: calc(100% - 80px) !important;
  padding: 0 !important;
  display: block;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  overflow: hidden;
}

.students-table-shell .filters-panel {
  background: #ffffff;
  border-bottom: 1px solid #e4e7eb;
  padding: 12px;
}

.students-table-shell .filters-bar,
.students-table-shell .filters-left,
.students-table-shell .filters-right {
  background: #ffffff;
}

.students-table-shell .filters-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.students-table-wrap {
  overflow-x: auto;
  background: #ffffff;
}

.students-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 12px;
}

.students-table th,
.students-table td {
  padding: 0;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: middle;
}

.students-table th {
  font-size: 12px;
  font-weight: 700;
  color: #4f5864;
  background: #ffffff;
}

.students-table td {
  font-size: 12px;
  color: #1f2937;
  line-height: 1.4;
}

.students-table td .cell-bg {
  font-size: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.students-table .ic-link {
  font-size: 12px !important;
  color: #1f2937 !important;
}

.students-table th > *:not(input),
.students-table th {
  padding: 11px 12px;
}

.students-col-check,
.students-table td:first-child {
  width: 46px;
}

.students-col-no {
  width: 54px;
}

.students-table td:first-child .cell-bg,
.students-table th.students-col-check {
  text-align: center;
}

.students-table th.students-col-no,
.students-table td:nth-child(2) .cell-bg {
  text-align: center;
}

.students-table tbody tr:last-child td {
  border-bottom: 0;
}

#studentsSelectAll,
.student-row-select {
  width: 16px;
  height: 16px;
  accent-color: #5a6ad6;
}

.students-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d5dbe3;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #5d6673;
  background: #f5f7fa;
  line-height: 1.2;
}

.students-badge--success {
  border-color: #b4e6c2;
  color: #136c2e;
  background: #eaf8ee;
}

.students-badge--critical {
  border-color: #f2c6c9;
  color: #9f1f2a;
  background: #fdf0f1;
}

.students-badge--warning {
  border-color: #f1e0ad;
  color: #876500;
  background: #fff9e7;
}

@media (max-width: 768px) {
  .students-wisdom {
    margin: 60px 20px 8px;
  }

  .students-analysis-grid {
    margin: 0 20px 10px;
  }

  .students-analysis-spark {
    display: none;
  }

  .students-analysis-card {
    min-width: 150px;
    flex-basis: 150px;
  }

  .students-table-toolbar {
    margin: 0 20px 6px;
  }

  .students-table-shell {
    margin: 0 20px 0 !important;
    width: calc(100% - 40px) !important;
  }
}

@media (max-width: 576px) {
  .students-wisdom {
    margin: 60px 16px 8px;
  }

  .students-analysis-grid {
    margin: 0 16px 10px;
  }

  .students-table-toolbar {
    margin: 0 16px 6px;
  }

  .students-table-shell {
    margin: 0 16px 0 !important;
    width: calc(100% - 32px) !important;
  }
}

/* Students sidebar (Shopify-like neutral panel) */

.students-sidebar {
  background: #ececed;
  border: 1px solid #dddddf;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
}

.students-sidebar .card-body {
  background: #ececed;
  padding-top: 10px !important;
}

.students-sidebar h6 {
  color: #4b5563 !important;
  font-weight: 600;
}

.students-sidebar .nav-link {
  color: #303030;
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.students-sidebar .nav-link:hover {
  background: #e2e3e5;
  color: #2b2b2b;
}

.students-sidebar .nav-link.active {
  background: #ffffff;
  color: #2a2a2a;
  font-weight: 700;
  border: 1px solid #e1e1e3;
}

.sidebar-subtitle {
  margin: 2px 0 4px 10px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #4f5661;
  background: #f8f8f9;
  border: 1px solid #e1e3e6;
  border-radius: 8px;
}

.sidebar-subtitle-arrow {
  color: #7b8190;
  font-size: 12px;
  line-height: 1;
}

.sidebar-orbit {
  width: 72px;
  margin: 0 auto 8px;
  opacity: 0.95;
}

.sidebar-orbit svg {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-orbit-label {
  margin-top: 2px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #6d28d9;
  line-height: 1.2;
}

.students-sidebar .nav {
  margin-top: 0 !important;
}

.mobile-sidebar-backdrop {
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 950;
}

body.sidebar-open {
  overflow: hidden;
}

.side-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #4a4a4d;
  flex: 0 0 20px;
}

.side-mini-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Mobile: sidebar becomes off-canvas */

@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 1000;
    width: 260px;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }
}

/* Shopify-like sidebar */

.sb-side {
  width: 260px;
  background: #f3f3f3;
  border-right: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
}

.sb-side__scroll {
  padding: 12px 10px;
  overflow: auto;
  flex: 1;
}

.sb-side__bottom {
  padding: 10px;
  border-top: 1px solid #e6e6e6;
  background: #f3f3f3;
}

/* main item row */

.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #303030;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.sb-item:hover {
  background: rgba(0,0,0,.04);
}

.sb-item--active {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}

.sb-ico {
  width: 24px;
  display: inline-flex;
  justify-content: center;
  opacity: .9;
}

.sb-txt {
  flex: 1;
}

/* badge count (64) */

.sb-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7e7e7;
  color: #4a4a4a;
}

/* small dot on right */

.sb-dot {
  color: #111;
  opacity: .75;
  margin-left: 6px;
}

/* section title like "Sales channels >" */

.sb-section {
  margin-top: 14px;
}

.sb-section__title {
  padding: 12px 12px 6px;
  font-size: 16px;
  font-weight: 700;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-chevron {
  font-weight: 900;
  opacity: .8;
}

/* sub links under Orders */

.sb-sub {
  margin: 4px 0 10px 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-subitem {
  text-decoration: none;
  color: #6b6b6b;
  font-size: 22px;
  font-weight: 500;
}

.sb-subitem:hover {
  color: #303030;
}

.sb-divider {
  height: 1px;
  background: #e6e6e6;
  margin: 14px 12px;
}

/* responsive: sidebar becomes off-canvas */

@media (max-width: 992px) {
  .sb-side {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 1000;
  }

  .sb-side.is-open {
    transform: translateX(0);
  }

  .students-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: min(286px, calc(100vw - 54px));
    height: calc(100vh - 56px) !important;
    z-index: 980;
    transform: translateX(-108%);
    transition: transform 0.22s ease;
    border-radius: 0 14px 14px 0;
    overflow: auto;
  }

  .students-sidebar.is-open {
    transform: translateX(0);
  }
}

/* On mobile: full width */

@media (max-width: 576px) {
  .search-wrap {
    width: 100%;
  }

  .search-wrap .aa-search-input {
    transform: scale(1);
    transform-origin: left center;
  }
}

.settings-card {
  max-width: 980px;
  margin-inline: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 20px 22px;
}

@media (max-width: 768px) {
  .settings-card {
    margin-inline: 12px;
    padding: 16px 14px;
  }
}

.settings-subtext {
  margin-top: 2px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 13px;
}

.settings-form {
  margin-top: 8px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-users-list-wrap {
  margin-top: 20px;
  padding-top: 4px;
}

.settings-users-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.settings-users-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.settings-users-list {
  display: grid;
  gap: 8px;
}

.settings-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 0.8fr) auto;
  gap: 8px;
  align-items: center;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
}

.settings-user-cell {
  font-size: 12px;
  color: #374151;
  min-width: 0;
  word-break: break-word;
}

.settings-role-select {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 12px;
  padding: 6px 8px;
}

.settings-role-save-btn {
  border: 1px solid #cfd4dc;
  background: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  color: #1f2937;
  cursor: pointer;
}

.settings-role-save-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.support-zus-card {
  text-align: left;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.support-zus-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 420px;
}

.support-zus-cat {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.support-zus-cat dotlottie-wc {
  width: 420px !important;
  height: 420px !important;
}

.support-zus-neon-text {
  order: 1;
  margin: 2px 0 0;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.16;
  background: linear-gradient(90deg, #22d3ee 0%, #a78bfa 32%, #f472b6 64%, #f59e0b 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 10px rgba(34, 211, 238, 0.32),
    0 0 18px rgba(167, 139, 250, 0.28),
    0 0 26px rgba(244, 114, 182, 0.24);
  animation: supportNeonPulse 6s ease-in-out infinite;
}

.support-zus-neon-text strong {
  font-weight: 900;
}

.support-zus-story {
  order: 3;
  max-width: 760px;
  margin: 8px auto 0;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.support-zus-donate-trigger {
  position: relative;
  display: inline-block;
  margin: 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.support-zus-donate-trigger:focus {
  outline: none;
}

.support-zus-donate-trigger:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 4px;
}

.support-zus-qr-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  width: 210px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.support-zus-qr-tooltip img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.support-zus-donate-trigger:hover .support-zus-qr-tooltip,
.support-zus-donate-trigger:focus .support-zus-qr-tooltip,
.support-zus-donate-trigger:focus-visible .support-zus-qr-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@keyframes supportNeonPulse {
  0% {
    background-position: 0% 50%;
    filter: brightness(0.95);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.08);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(0.95);
  }
}

@media (max-width: 992px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-user-row {
    grid-template-columns: 1fr;
  }

  .support-zus-cat dotlottie-wc {
    width: 300px !important;
    height: 300px !important;
  }

  .support-zus-neon-text {
    font-size: 20px;
    padding: 0 10px;
  }

  .support-zus-story {
    max-width: 92%;
    font-size: 13px;
    padding: 0 8px;
  }

  .support-zus-qr-tooltip {
    width: 170px;
    bottom: calc(100% + 10px);
  }
}
