:root {
  color-scheme: dark;
  --noc-bg: #0a0a0c;
  --noc-surface: #1c1c1e;
  --noc-surface-2: #232325;
  --noc-surface-3: #2c2c2e;
  --noc-text: #f5f5f7;
  --noc-text-strong: #ffffff;
  --noc-muted: #b3b4b8;
  --noc-muted-strong: #d2d3d7;
  --noc-primary: #0a84ff;
  --noc-primary-600: #0060df;
  --noc-success: #30d158;
  --noc-warning: #ffd60a;
  --noc-danger: #ff453a;
  --noc-border: #2f3035;
  --noc-border-strong: #3b3c41;
  --noc-radius: 18px;
  --noc-radius-sm: 12px;
  --noc-radius-lg: 22px;
  --noc-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --noc-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.35);
  --noc-focus: 0 0 0 0.22rem rgba(10, 132, 255, 0.45);
}

body.noc-theme-light {
  color-scheme: light;
  --noc-bg: #f2f2f7;
  --noc-surface: #ffffff;
  --noc-surface-2: #f7f7fb;
  --noc-surface-3: #ededf3;
  --noc-text: #0b0b0f;
  --noc-text-strong: #0b0b0f;
  --noc-muted: #6b7280;
  --noc-muted-strong: #4b5563;
  --noc-primary: #007aff;
  --noc-primary-600: #0066d6;
  --noc-success: #28a745;
  --noc-warning: #ff9f0a;
  --noc-danger: #ff3b30;
  --noc-border: #e4e5ea;
  --noc-border-strong: #d6d8df;
  --noc-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --noc-shadow-soft: 0 10px 20px rgba(15, 23, 42, 0.06);
  --noc-focus: 0 0 0 0.22rem rgba(0, 122, 255, 0.3);
}

body.noc-theme-glass {
  --noc-bg: radial-gradient(1200px circle at 10% 0%, rgba(10, 132, 255, 0.12), transparent 55%),
             radial-gradient(900px circle at 85% 15%, rgba(48, 209, 88, 0.08), transparent 50%),
             #0a0a0c;
  --noc-surface: rgba(26, 26, 30, 0.72);
  --noc-surface-2: rgba(30, 30, 36, 0.62);
  --noc-surface-3: rgba(40, 40, 48, 0.68);
  --noc-border: rgba(255, 255, 255, 0.08);
  --noc-border-strong: rgba(255, 255, 255, 0.18);
  --noc-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  --noc-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.32);
}

body.noc-theme-light.noc-theme-glass {
  --noc-bg: radial-gradient(1200px circle at 10% 0%, rgba(0, 122, 255, 0.12), transparent 60%),
             radial-gradient(900px circle at 85% 20%, rgba(52, 199, 89, 0.1), transparent 55%),
             #f2f2f7;
  --noc-surface: rgba(255, 255, 255, 0.78);
  --noc-surface-2: rgba(247, 247, 252, 0.68);
  --noc-surface-3: rgba(236, 237, 244, 0.74);
  --noc-border: rgba(15, 23, 42, 0.12);
  --noc-border-strong: rgba(15, 23, 42, 0.2);
  --noc-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  --noc-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.14);
}

body {
  background: var(--noc-bg);
  color: var(--noc-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

a {
  color: var(--noc-primary);
  text-decoration: none;
}

a:hover {
  color: var(--noc-primary-600);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--noc-text-strong);
  letter-spacing: -0.01em;
}

.small {
  color: var(--noc-muted);
}

.noc-app {
  min-height: 100vh;
  gap: 0;
}

.noc-sidebar {
  background: linear-gradient(180deg, var(--noc-surface) 0%, var(--noc-surface-2) 100%);
  border-right: 1px solid var(--noc-border);
  width: 272px;
  padding: 20px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex: 0 0 272px;
  min-width: 272px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.noc-sidebar-header {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.noc-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--noc-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.35);
}

.noc-brand-title {
  font-weight: 700;
  color: var(--noc-text-strong);
  letter-spacing: 0.01em;
}

.noc-brand-sub {
  font-size: 12px;
  color: var(--noc-muted);
}


.noc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 6px;
}

.noc-sidebar .nav-link {
  border-radius: 14px;
  color: var(--noc-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.noc-sidebar .nav-link.active,
.noc-sidebar .nav-link:hover {
  background: rgba(10, 132, 255, 0.16);
  color: var(--noc-text-strong);
}

.noc-sidebar .nav-link.active {
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.4);
}

.noc-sidebar .nav-link.active::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--noc-primary);
}

.noc-sidebar .nav-link i {
  font-size: 18px;
}

.noc-nav-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.noc-sidebar .nav-link:focus-visible {
  outline: 2px solid var(--noc-primary);
  outline-offset: 2px;
}


.noc-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--noc-surface) 92%, transparent);
  border-bottom: 1px solid var(--noc-border);
  padding: 16px 24px;
  box-shadow: var(--noc-shadow-soft);
  backdrop-filter: blur(18px);
}

.noc-topbar .input-group-text {
  background: var(--noc-surface-2);
  color: var(--noc-muted-strong);
  border-color: var(--noc-border);
}

.noc-topbar .form-control {
  background: var(--noc-surface-2);
  color: var(--noc-text-strong);
  border-color: var(--noc-border);
}

.noc-topbar .h5 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.noc-page {
  display: grid;
  gap: 2px;
}

.noc-page-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--noc-muted);
}

.noc-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--noc-text-strong);
}

.noc-page-sub {
  font-size: 12px;
  color: var(--noc-muted);
}

.noc-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.noc-topbar .input-group-text,
.noc-topbar .form-control {
  border-radius: 12px;
}

main {
  background: var(--noc-bg);
}

.noc-content {
  padding: 28px 28px 32px;
}

.noc-card {
  background: var(--noc-surface-2);
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-lg);
  box-shadow: var(--noc-shadow);
}

body.noc-theme-glass .noc-card,
body.noc-theme-glass .noc-topbar,
body.noc-theme-glass .noc-sidebar,
body.noc-theme-glass .modal-content,
body.noc-theme-glass .dropdown-menu,
body.noc-theme-glass .toast {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

body.noc-theme-glass .noc-sidebar {
  background: linear-gradient(180deg, color-mix(in srgb, var(--noc-surface) 85%, transparent) 0%, color-mix(in srgb, var(--noc-surface-2) 80%, transparent) 100%);
}

body.noc-theme-glass .noc-card {
  background: color-mix(in srgb, var(--noc-surface-2) 85%, transparent);
}

body.noc-theme-glass .noc-topbar {
  background: color-mix(in srgb, var(--noc-surface) 82%, transparent);
}

.noc-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--noc-border);
}

.noc-card-body {
  padding: 20px 22px;
}

.noc-card-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--noc-muted);
  margin: 6px 0 8px;
}

.noc-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.noc-stat .fs-3 {
  color: var(--noc-text-strong);
  font-weight: 700;
}

.noc-badge {
  background: rgba(34, 197, 94, 0.18);
  color: #d1fae5;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.noc-table thead th {
  position: sticky;
  top: 0;
  background: var(--noc-surface);
  z-index: 1;
  color: var(--noc-text-strong);
  border-bottom: 1px solid var(--noc-border);
}

.noc-table tbody tr {
  border-bottom: 1px solid var(--noc-border);
}

.noc-table tbody tr:hover {
  background: color-mix(in srgb, var(--noc-primary) 10%, transparent);
}

.noc-card pre,
.noc-card code {
  background: var(--noc-surface-3);
  color: var(--noc-text-strong);
  border: 1px solid var(--noc-border-strong);
}

.noc-card pre code {
  color: inherit;
}

.noc-code-block {
  padding: 16px;
  border-radius: var(--noc-radius-sm);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.table td, .table th {
  color: var(--noc-text);
}

.noc-empty {
  border: 1px dashed var(--noc-border-strong);
  border-radius: var(--noc-radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--noc-muted);
}

.noc-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--noc-text-strong);
  margin-bottom: 8px;
}

.noc-empty-text {
  color: var(--noc-muted);
}

.noc-nav-toggle {
  border: 0;
  background: transparent;
  color: var(--noc-muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-top: 12px;
}

.noc-nav-toggle i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.noc-nav-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.noc-settings-layout {
  display: grid;
  gap: 24px;
}

.noc-bot-switcher {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--noc-radius);
  border: 1px solid var(--noc-border);
  background: var(--noc-surface-2);
}

.noc-bot-switcher-info {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--noc-radius-sm);
  background: var(--noc-surface-3);
  border: 1px solid var(--noc-border);
}

.noc-bot-switcher-title {
  font-weight: 600;
  color: var(--noc-text-strong);
}

.noc-bot-switcher-text {
  color: var(--noc-muted);
  font-size: 13px;
}

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

.form-control, .form-select, textarea {
  border-radius: var(--noc-radius-sm);
  border-color: var(--noc-border);
  color: var(--noc-text-strong);
  background: var(--noc-surface);
  padding: 10px 12px;
}

.form-control:focus, .form-select:focus, textarea:focus {
  box-shadow: var(--noc-focus);
  border-color: var(--noc-primary);
}

.form-label {
  color: var(--noc-text-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-text {
  color: var(--noc-muted);
}

.form-control::placeholder,
textarea::placeholder {
  color: var(--noc-muted-strong);
  opacity: 1;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--noc-text);
  --bs-table-border-color: var(--noc-border);
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table .form-control,
.table .form-control-sm,
.table .form-select,
.table .form-select-sm {
  background: var(--noc-surface-3);
  color: var(--noc-text-strong);
  border-color: var(--noc-border-strong);
}

.btn-primary {
  background: var(--noc-primary);
  border-color: var(--noc-primary);
  font-weight: 600;
  border-radius: var(--noc-radius-sm);
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.25);
}

.btn-primary:hover {
  background: var(--noc-primary-600);
  border-color: var(--noc-primary-600);
}

.btn-outline-primary {
  border-color: color-mix(in srgb, var(--noc-primary) 60%, var(--noc-border));
  color: var(--noc-primary);
  font-weight: 600;
  border-radius: var(--noc-radius-sm);
}

.btn-outline-primary:hover {
  background: rgba(107, 134, 255, 0.12);
  color: var(--noc-text-strong);
}

.btn-success {
  background: var(--noc-success);
  border-color: var(--noc-success);
  border-radius: var(--noc-radius-sm);
}

.btn-warning {
  background: var(--noc-warning);
  border-color: var(--noc-warning);
  color: #1f1a0a;
  border-radius: var(--noc-radius-sm);
}

.btn-danger {
  background: var(--noc-danger);
  border-color: var(--noc-danger);
  border-radius: var(--noc-radius-sm);
}

.btn-outline-secondary {
  border-color: var(--noc-border-strong);
  color: var(--noc-muted-strong);
  border-radius: var(--noc-radius-sm);
}

.btn-outline-secondary:hover {
  border-color: var(--noc-primary);
  color: var(--noc-text-strong);
}

.btn-outline-danger {
  border-color: color-mix(in srgb, var(--noc-danger) 55%, var(--noc-border));
  color: color-mix(in srgb, var(--noc-danger) 80%, var(--noc-text));
  border-radius: var(--noc-radius-sm);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fee2e2;
}

.btn:disabled, .btn.disabled {
  opacity: 1;
  color: var(--noc-muted-strong);
  border-color: var(--noc-border-strong);
  background: transparent;
}

.btn {
  border-radius: var(--noc-radius-sm);
  padding: 8px 14px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

:focus-visible {
  outline: 2px solid var(--noc-primary);
  outline-offset: 2px;
}

.noc-toast-container {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 2000;
}

.noc-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--noc-muted) 12%, transparent);
  color: var(--noc-muted-strong);
  font-size: 12px;
  font-weight: 600;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
}

.noc-search {
  max-width: 320px;
}

.noc-search .input-group-text {
  border-radius: var(--noc-radius-sm) 0 0 var(--noc-radius-sm);
}

.noc-search .form-control {
  border-radius: 0 var(--noc-radius-sm) var(--noc-radius-sm) 0;
}

.noc-search:focus-within .input-group-text,
.noc-search:focus-within .form-control {
  border-color: var(--noc-primary);
  box-shadow: var(--noc-focus);
}

.noc-tabs {
  background: var(--noc-surface-3);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  flex-wrap: wrap;
}

.noc-tabs .nav-link {
  border-radius: 999px;
  color: var(--noc-muted);
  font-weight: 600;
  padding: 8px 14px;
}

.noc-tabs .nav-link.active {
  background: var(--noc-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.35);
}

.noc-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}

.noc-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.noc-pagination-perpage {
  display: flex;
  align-items: center;
  gap: 10px;
}

.noc-pagination-perpage .form-select {
  min-width: 96px;
}

.noc-table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.noc-table-tools .form-control,
.noc-table-tools .form-select {
  min-width: 200px;
}

.noc-table-tools .noc-table-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.noc-sort-toggle {
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1;
}

.noc-sort-toggle i {
  font-size: 14px;
}

.noc-pagination .btn.active {
  background: var(--noc-primary);
  color: #fff;
  border-color: var(--noc-primary);
}

.noc-pagination-ellipsis {
  color: var(--noc-muted);
  padding: 0 4px;
}

.noc-divider {
  border-top: 1px solid var(--noc-border);
  margin: 16px 0;
}

.noc-item {
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-sm);
  padding: 12px;
  background: var(--noc-surface-2);
}

.dropdown-menu {
  background: var(--noc-surface-2);
  border: 1px solid var(--noc-border);
  box-shadow: var(--noc-shadow-soft);
  border-radius: var(--noc-radius-sm);
  padding: 6px;
}

.dropdown-item {
  color: var(--noc-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(107, 134, 255, 0.14);
  color: var(--noc-text-strong);
}

.alert {
  background: var(--noc-surface-2);
  color: var(--noc-text);
  border-color: var(--noc-border);
  border-radius: var(--noc-radius-sm);
}

.modal-content {
  background: var(--noc-surface);
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-lg);
  box-shadow: var(--noc-shadow);
}

.modal-header,
.modal-footer {
  border-color: var(--noc-border);
}

.toast {
  background: var(--noc-surface);
  border: 1px solid var(--noc-border);
  color: var(--noc-text);
  border-radius: var(--noc-radius-sm);
  box-shadow: var(--noc-shadow-soft);
}

.noc-nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--noc-muted-strong);
  margin: 18px 12px 8px;
}

.noc-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
  margin-top: auto;
  border-top: 1px solid var(--noc-border);
  background: var(--noc-surface);
  color: var(--noc-muted);
  font-size: 12px;
}

.noc-footer a {
  color: var(--noc-muted-strong);
  text-decoration: none;
}

.noc-footer a:hover {
  color: var(--noc-text-strong);
}

.noc-footer-sep {
  color: var(--noc-border-strong);
}

.noc-required {
  color: #f87171;
  font-weight: 700;
}

.noc-onboarding {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.noc-onboarding-panel {
  width: min(980px, 100%);
  background: var(--noc-surface);
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-lg);
  padding: 28px;
  box-shadow: var(--noc-shadow);
  animation: nocScaleIn 0.25s ease;
}

.noc-onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.noc-onboarding-steps {
  display: grid;
  gap: 12px;
}

.noc-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
  margin-bottom: 18px;
}

.noc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--noc-primary), #22c55e);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.noc-onboarding-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--noc-radius-sm);
  border: 1px solid var(--noc-border);
  background: var(--noc-surface-2);
}

.noc-onboarding-step-active {
  border-color: var(--noc-primary);
  box-shadow: var(--noc-shadow-soft);
}

.noc-onboarding-step-done {
  border-color: rgba(34, 197, 94, 0.4);
  background: color-mix(in srgb, var(--noc-success) 10%, var(--noc-surface-2));
}

.noc-onboarding-step-index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--noc-text-strong);
  background: color-mix(in srgb, var(--noc-primary) 20%, transparent);
}

.noc-onboarding-active .noc-sidebar {
  display: none;
}

.noc-onboarding-active .noc-topbar {
  opacity: 0.75;
}

.noc-onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px 32px;
  pointer-events: none;
  z-index: 3000;
  animation: nocFadeIn 0.25s ease;
}

.noc-onboarding-overlay-card {
  pointer-events: auto;
  width: min(520px, 92vw);
  background: var(--noc-surface);
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius);
  padding: 18px 20px;
  box-shadow: var(--noc-shadow);
  animation: nocFloatIn 0.25s ease;
}

.noc-onboarding-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--noc-radius-sm);
  border: 1px dashed var(--noc-border-strong);
  background: var(--noc-surface-3);
}

.noc-onboarding-hint ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

@media (max-width: 768px) {
  .noc-onboarding-overlay {
    justify-content: center;
    padding: 16px;
  }

  .noc-onboarding-overlay-card {
    width: 100%;
  }
}

@keyframes nocFloatIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes nocFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes nocScaleIn {
  from {
    transform: scale(0.98);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.noc-changelog {
  display: grid;
  gap: 12px;
  max-height: 70vh;
  overflow: auto;
}

.noc-changelog-card {
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-sm);
  padding: 16px;
  background: var(--noc-surface-2);
}

.noc-changelog-card h2 {
  font-size: 16px;
  margin: 0 0 8px;
}

.noc-changelog-card ul {
  margin: 0;
  padding-left: 18px;
}

.noc-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--noc-border-strong);
}

.noc-avatar-panel {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.noc-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: var(--noc-radius-lg);
  object-fit: cover;
  border: 1px solid var(--noc-border-strong);
  box-shadow: var(--noc-shadow-soft);
}

.noc-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--noc-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--noc-muted) 10%, transparent);
  color: var(--noc-muted-strong);
  font-size: 36px;
  border: 1px dashed var(--noc-border-strong);
}

.noc-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.noc-chat-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  max-width: 80%;
  color: var(--noc-text-strong);
}

.noc-chat-bubble.bot {
  background: color-mix(in srgb, var(--noc-primary) 12%, transparent);
}

.noc-chat-bubble.user {
  background: color-mix(in srgb, var(--noc-success) 16%, transparent);
  align-self: flex-end;
}

.noc-faq-item {
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-sm);
  padding: 16px;
  background: var(--noc-surface-2);
}

.noc-faq-item .noc-chip {
  margin-right: 6px;
}

.noc-faq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--noc-muted);
  font-size: 13px;
}

.noc-faq-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.noc-faq-edit {
  border-top: 1px dashed var(--noc-border-strong);
  padding-top: 14px;
  margin-top: 14px;
}

.noc-faq-step {
  padding: 12px;
  border-radius: var(--noc-radius-sm);
  background: var(--noc-surface-2);
  border: 1px solid var(--noc-border);
}

.noc-faq-step-title {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--noc-muted);
  margin-bottom: 8px;
}

.noc-followup {
  display: grid;
  gap: 10px;
}

.noc-followup-rows {
  display: grid;
  gap: 8px;
}

.noc-followup-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: center;
}

.noc-followup-compact .noc-followup-row {
  grid-template-columns: 100px 1fr auto;
}

.noc-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.noc-template-btn {
  border: 1px solid var(--noc-border);
  background: var(--noc-surface-2);
  border-radius: var(--noc-radius-sm);
  padding: 12px;
  text-align: left;
  width: 100%;
  color: var(--noc-text);
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.noc-template-btn.is-selected {
  border-color: var(--noc-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--noc-primary) 30%, transparent);
}

.noc-template-btn:hover {
  border-color: var(--noc-primary);
  background: var(--noc-surface-3);
}

.noc-template-btn:focus-visible {
  outline: 2px solid var(--noc-primary);
  outline-offset: 2px;
}

.noc-template-name {
  font-weight: 600;
  font-size: 14px;
}

.noc-template-swatches {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.noc-template-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.noc-template-preview {
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-lg);
  overflow: hidden;
  background: var(--noc-surface-2);
  box-shadow: var(--noc-shadow-soft);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 220px;
}

.noc-template-preview-header {
  padding: 12px 16px;
  font-weight: 600;
  background: var(--noc-surface-3);
  border-bottom: 1px solid var(--noc-border);
}

.noc-template-preview-body {
  padding: 16px;
  display: grid;
  gap: 10px;
  background: var(--noc-surface);
  color: var(--noc-text);
}

.noc-template-preview-bubble {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 13px;
}

.noc-template-preview-bubble.bot {
  background: var(--preview-bot, #1f2a44);
  color: var(--preview-bot-text, #e2e8f0);
}

.noc-template-preview-bubble.user {
  margin-left: auto;
  background: color-mix(in srgb, var(--preview-primary, #6b86ff) 15%, transparent);
  color: var(--noc-text-strong);
}

.noc-template-preview-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--noc-border);
  background: var(--preview-panel, #0f172a);
  color: var(--preview-text, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.noc-template-preview-footer .noc-preview-btn {
  background: var(--preview-primary, #6b86ff);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .noc-followup-row,
  .noc-followup-compact .noc-followup-row {
    grid-template-columns: 1fr;
  }
}

.noc-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(circle at top, rgba(10, 132, 255, 0.12), transparent 55%), var(--noc-bg);
}

.noc-auth-card {
  background: var(--noc-surface);
  border: 1px solid var(--noc-border);
  border-radius: var(--noc-radius-lg);
  padding: 36px;
  box-shadow: var(--noc-shadow);
  width: 100%;
  max-width: 420px;
}

.noc-auth-wide {
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 56px;
}

.noc-auth-wide .noc-auth-card {
  max-width: 980px;
}

.noc-changelog-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-muted {
  color: var(--noc-muted) !important;
}

.text-muted small,
.small.text-muted {
  color: var(--noc-muted) !important;
}

@media (max-width: 992px) {
  .noc-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--noc-border);
  }

}
