/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   Admin Portal — design system
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --border: #e6e9f0;
  --border-strong: #d6dbe6;

  /* Text */
  --text: #131722;
  --muted: #667085;
  --faint: #98a2b3;

  /* Brand / accents */
  --primary: #065299;
  --primary-dark: #054377;
  --primary-soft: #e4eef7;
  --secondary: #d06c38;
  --secondary-dark: #b85a2a;
  --secondary-soft: #fbeee4;
  --success: #16a34a;
  --success-soft: #e7f6ed;
  --warning: #d97706;
  --warning-soft: #fdf2e3;
  --danger: #dc2626;
  --danger-soft: #fdecec;

  /* Sidebar (dark) */
  --side-bg: #0c1a2b;
  --side-text: #aab2c5;
  --side-text-strong: #ffffff;
  --side-active: #065299;
  --side-hover: rgba(255, 255, 255, 0.06);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--primary-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-block {
  width: 100%;
}

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder {
  color: var(--faint);
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 82, 153, 0.15);
}
.input-icon {
  position: relative;
}
.input-icon .input {
  padding-left: 38px;
}
.input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-aside {
  position: relative;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 50%
    ),
    linear-gradient(135deg, #065299 0%, #053a6b 55%, #0c1a2b 100%);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.login-aside > * {
  position: relative;
  z-index: 1;
}
.login-aside h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 380px;
}
.login-aside p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 380px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.login-logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}
.login-foot {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
}
.login-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.field {
  margin-bottom: 18px;
}
.error-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #f6cccc;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* ---------- App shell ---------- */
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--side-bg);
  color: var(--side-text);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 22px;
  color: var(--side-text-strong);
  font-size: 17px;
  font-weight: 700;
}
.brand .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 12px 10px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--side-text);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item svg {
  flex-shrink: 0;
}
.nav-item:hover {
  background: var(--side-hover);
  color: var(--side-text-strong);
}
.nav-item.active {
  background: var(--side-active);
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 82, 153, 0.45);
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 10px;
}
.side-user .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.side-user-meta {
  min-width: 0;
}
.side-user-name {
  color: var(--side-text-strong);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user-role {
  font-size: 12px;
  color: var(--faint);
}
.logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--side-text);
}
.logout-btn:hover {
  background: var(--side-hover);
  color: var(--side-text-strong);
}

.main {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-title {
  font-size: 16px;
  font-weight: 600;
}
.content {
  padding: 28px 32px;
}
.page-head {
  margin-bottom: 24px;
}
.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-sub {
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Stat cards ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 18px;
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.stat-value {
  font-size: 30px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary);
}
.stat-icon.secondary {
  background: var(--secondary-soft);
  color: var(--secondary);
}
.stat-icon.green {
  background: var(--success-soft);
  color: var(--success);
}
.stat-icon.amber {
  background: var(--warning-soft);
  color: var(--warning);
}
.stat-icon.red {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- Section card ---------- */
.section {
  margin-bottom: 22px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 15px;
  font-weight: 600;
}
.section-body {
  padding: 20px;
}

/* ---------- Role breakdown bars ---------- */
.rolebar {
  margin-bottom: 16px;
}
.rolebar:last-child {
  margin-bottom: 0;
}
.rolebar-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.rolebar-top .name {
  font-weight: 600;
  text-transform: capitalize;
}
.rolebar-top .val {
  color: var(--muted);
}
.rolebar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.rolebar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #0a78d2);
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .input-icon {
  flex: 1 1;
  max-width: 360px;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  padding: 13px 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr {
  transition: background 0.12s ease;
}
tbody tr:hover {
  background: var(--surface-2);
}

/* User cell */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #065299, #0a78d2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.user-name {
  font-weight: 600;
  color: var(--text);
}
.user-email {
  font-size: 12.5px;
  color: var(--muted);
}
.mono {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-admin {
  background: var(--primary-soft);
  color: var(--primary);
}
.badge-user {
  background: var(--surface-2);
  color: var(--muted);
}
.badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.page-info {
  color: var(--muted);
  font-size: 13px;
}
.page-btns {
  display: flex;
  gap: 8px;
}

/* ---------- States ---------- */
.empty,
.loading {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton shimmer for table rows */
.skel {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    #e9edf3 37%,
    var(--surface-2) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ---------- Secondary button ---------- */
.btn-secondary {
  background: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
}

/* ---------- Textarea + file drop ---------- */
.textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.6;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 82, 153, 0.15);
}
.select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 82, 153, 0.15);
}
.hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.dropzone {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- Level badges ---------- */
.badge-easy {
  background: var(--success-soft);
  color: var(--success);
}
.badge-medium {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-hard {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- Row action buttons ---------- */
.row-actions {
  display: flex;
  gap: 6px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.icon-btn.danger:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-soft);
}

/* Mini audio player */
.audio-mini {
  height: 34px;
  max-width: 220px;
}
.audio-mini::-webkit-media-controls-panel {
  background: var(--surface-2);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  z-index: 50;
  overflow-y: auto;
}
.modal {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: pop 0.14s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
}
.modal-body {
  padding: 22px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 20px;
}
.tab {
  padding: 8px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.close-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.close-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Bulk result summary */
.result-box {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-2);
  font-size: 13px;
  max-height: 180px;
  overflow-y: auto;
}
.result-line {
  display: flex;
  gap: 8px;
  padding: 3px 0;
}
.result-line.ok {
  color: var(--success);
}
.result-line.fail {
  color: var(--danger);
}
.topic-text {
  max-width: 460px;
  white-space: normal;
  line-height: 1.5;
}

/* ---------- Question builder ---------- */
.q-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface-2);
}
.q-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.q-card-head .q-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.option-row input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.option-row .input {
  flex: 1 1;
}
.option-row .correct-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  min-width: 54px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-btn:hover {
  text-decoration: underline;
}
.link-btn:disabled {
  color: var(--faint);
  cursor: not-allowed;
  text-decoration: none;
}
.mini-x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.mini-x:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.q-preview {
  font-size: 13px;
  color: var(--muted);
}
.q-preview .q-line {
  padding: 2px 0;
}
.modal.wide {
  max-width: 720px;
}

/* ---------- Assessment sections ---------- */
.sec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.sec-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.sec-head .sec-title {
  font-weight: 700;
  font-size: 14px;
}
.sec-head .sec-letter {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}
.sec-body {
  padding: 14px;
}
.sec-body.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
}
.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
}
@media (max-width: 640px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}
.subfield {
  margin-bottom: 12px;
}
.subfield:last-child {
  margin-bottom: 0;
}
.small-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.avail {
  font-weight: 500;
  color: var(--faint);
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.inline-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.sub-block {
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.sub-block:last-child {
  margin-bottom: 0;
}
.sub-block-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.chip-x {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 82, 153, 0.15);
  color: var(--primary);
  cursor: pointer;
}
.chip-x:hover {
  background: var(--danger);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .login-wrap {
    grid-template-columns: 1fr;
  }
  .login-aside {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 70px;
    padding: 20px 10px;
  }
  .brand span,
  .nav-label,
  .nav-item span,
  .side-user-meta {
    display: none;
  }
  .nav-item {
    justify-content: center;
  }
  .content,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
}

