:root {
  --accu-bg: #eef1fb;
  --accu-surface: #ffffff;
  --accu-surface-2: #f7faff;
  --accu-panel: #ffffff;
  --accu-panel-2: #eef3fb;
  --accu-text: #142236;
  --accu-muted: #60708a;
  --accu-outline: rgba(94, 120, 185, 0.22);
  --accu-primary: #62c2c5;
  --accu-primary-2: #45b6dc;
  --accu-secondary: #5e78b9;
  --accu-teal: #62c2c5;
  --accu-silver: #bebcbc;
  --accu-purple: #5641a8;
  --app-radius-sm: 10px;
  --app-radius-md: 14px;
  --app-radius-lg: 18px;
  --app-shadow-soft: 0 10px 24px rgba(73, 58, 145, 0.08);
  --app-shadow-card: 0 12px 30px rgba(63, 82, 128, 0.1);
  --app-header-height: 100px;
  --app-controlbar-height: 58px;
  --app-sidebar-width: 280px;
  --app-sidebar-offset: 0px;
  --app-gap: 16px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(98, 194, 197, 0.2), transparent 26%),
    linear-gradient(180deg, #f5f8ff 0%, var(--accu-bg) 32%, #e7ebf9 100%);
  color: var(--accu-text);
  overflow-x: hidden;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

body.app-light-theme {
  background:
    radial-gradient(circle at top left, rgba(98, 194, 197, 0.2), transparent 26%),
    linear-gradient(180deg, #f5f8ff 0%, var(--accu-bg) 32%, #e7ebf9 100%);
  color: var(--accu-text);
}

#app-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20000;
  isolation: isolate;
}

.app-sidebar,
.app-auth,
.app-header,
.app-controlbar,
.app-floating-panel,
.app-bootcamp-video-modal,
.app-channel-panel,
.app-toast,
.app-context-menu,
.app-stage-banner {
  pointer-events: auto;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 0 0;
  background: linear-gradient(180deg, #7bc9ce 0%, #6ab7d6 52%, #5f7ec0 100%);
  border: 0;
  border-radius: 0;
  box-shadow: 0 16px 38px rgba(53, 72, 126, 0.2);
  z-index: 3000;
  overflow: visible;
}

.app-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-height: 100%;
  align-self: stretch;
}

.app-brand-lockup,
.app-auth-brand {
  display: flex;
  align-items: center;
}

.app-auth-brand {
  justify-content: center;
}

.app-brand-lockup {
  min-height: 100%;
  height: 100%;
  align-self: stretch;
  margin: 0 0 0 -16px;
  padding: 10px 18px 10px 12px;
  background: #ffffff;
  border-radius: 0 999px 999px 0;
  box-shadow: 12px 0 26px rgba(62, 86, 152, 0.08);
}

.app-logo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px rgba(62, 86, 152, 0.14);
}

.app-header .app-logo-pill {
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.app-logo-image {
  display: block;
  width: auto;
  height: 50px;
  max-width: 260px;
}

.app-header .app-logo-image {
  height: 68px;
  max-width: 360px;
}

.app-review-status {
  position: fixed;
  top: calc(var(--app-header-height) + var(--app-controlbar-height) + 28px);
  left: calc(50% + 88px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #26405d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 22px rgba(63, 82, 128, 0.1);
  z-index: 2100;
  max-width: min(420px, calc(100vw - 32px));
}

.app-review-status.is-draft {
  background: rgba(255, 255, 255, 0.88);
  color: #2b6772;
}

.app-review-status.is-submitted {
  background: rgba(255, 255, 255, 0.9);
  color: #315886;
}

.app-review-status.is-expert {
  background: rgba(255, 255, 255, 0.92);
  color: #5641a8;
}

.app-review-status.is-md-review {
  background: rgba(234, 245, 255, 0.94);
  color: #1f5ea8;
}

.app-review-status.is-md-locked {
  background: rgba(232, 248, 237, 0.96);
  color: #167344;
}

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.app-settings-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.app-settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 14px 28px rgba(53, 72, 126, 0.18);
  z-index: 3200;
}

.app-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(53, 72, 126, 0.12);
}

.app-mode-switch-label {
  padding: 0 6px 0 2px;
  color: rgba(248, 251, 255, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-mode-switch select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 46px;
  min-width: 232px;
  padding: 10px 42px 10px 16px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, #4e6998 50%) calc(100% - 18px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(135deg, #4e6998 50%, transparent 50%) calc(100% - 13px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 240, 252, 0.98));
  color: #29466f;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.14),
    0 6px 14px rgba(53, 72, 126, 0.12);
  cursor: pointer;
}

.app-mode-switch select:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(98, 194, 197, 0.3),
    0 0 0 4px rgba(98, 194, 197, 0.16),
    0 6px 14px rgba(53, 72, 126, 0.12);
}

.app-sidebar {
  position: fixed;
  top: calc(var(--app-header-height) + var(--app-controlbar-height) + 30px);
  right: 12px;
  width: var(--app-sidebar-width);
  max-height: calc(100vh - var(--app-header-height) - var(--app-controlbar-height) - 42px);
  overflow: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(94, 120, 185, 0.16);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow-card);
  z-index: 20010;
  backdrop-filter: blur(12px);
  isolation: isolate;
}

body.app-sidebar-collapsed .app-sidebar {
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  pointer-events: none;
}

.app-panel {
  margin-bottom: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 248, 255, 1));
  border: 1px solid rgba(111, 138, 196, 0.12);
  border-radius: var(--app-radius-md);
  box-shadow: 0 6px 16px rgba(94, 120, 185, 0.06);
}

.app-panel h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accu-text);
}

.app-panel > .app-meta + .app-score-list,
.app-panel > .app-meta + .app-annotation-list {
  margin-top: 10px;
}

.app-meta {
  color: var(--accu-muted);
  font-size: 12px;
  line-height: 1.45;
}

.app-study-list,
.app-annotation-list,
.app-score-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-study-item,
.app-annotation-item,
.app-score-item {
  padding: 10px 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #eff4fd);
  cursor: pointer;
  border: 1px solid rgba(98, 120, 185, 0.12);
  box-shadow: 0 4px 12px rgba(94, 120, 185, 0.05);
}

.app-study-group {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.app-study-group:first-child {
  margin-top: 0;
}

.app-study-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7180a7;
}

.app-report-detail {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(237, 244, 252, 0.7);
  border: 1px solid rgba(94, 120, 185, 0.12);
}

#selectedStudyReportDetail,
#selectedUserReportDetail {
  outline: 2px solid rgba(94, 120, 185, 0.22);
}

.app-followup-queue-item {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid rgba(94, 120, 185, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.app-followup-queue-item.is-active {
  outline: 2px solid rgba(94, 120, 185, 0.22);
}

.app-followup-queue-item + .app-followup-queue-item {
  margin-top: 8px;
}

.app-followup-queue-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.app-followup-queue-actions button {
  flex: 1;
}

.app-study-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.app-study-actions button {
  flex: 1;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--app-radius-sm);
  background: linear-gradient(135deg, var(--accu-primary), var(--accu-primary-2));
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(94, 120, 185, 0.12);
  cursor: pointer;
}

.app-study-actions button.secondary,
.app-followup-queue-actions button.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(228, 237, 250, 0.92));
  color: #33527f;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 4px 12px rgba(94, 120, 185, 0.08);
}

.app-study-actions button:disabled,
.app-followup-queue-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.app-inline-remove {
  width: auto;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--app-radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(228, 237, 250, 0.92));
  color: #33527f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 4px 12px rgba(94, 120, 185, 0.08);
  cursor: pointer;
}

.app-inline-remove:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 255, 0.98));
  color: #26405d;
}

.app-bootcamp-course-filter-row {
  gap: 6px;
}

.app-bootcamp-course-filter-row button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 10px rgba(94, 120, 185, 0.08);
}

.app-study-item .app-meta + .app-meta {
  margin-top: 2px;
}

.app-approval-summary {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(237, 244, 252, 0.72);
  border: 1px solid rgba(94, 120, 185, 0.12);
}

.app-approval-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-approval-checklist {
  display: grid;
  gap: 6px;
}

.app-approval-step {
  position: relative;
  padding-left: 18px;
  color: #51607d;
  font-size: 12px;
  line-height: 1.45;
}

.app-approval-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.app-approval-step.is-done::before {
  background: rgba(34, 197, 94, 0.92);
}

.app-study-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.app-study-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.16);
  color: #496080;
}

.app-study-badge.is-draft {
  background: rgba(245, 158, 11, 0.18);
  color: #9a5b08;
}

.app-study-badge.is-published {
  background: rgba(59, 130, 246, 0.14);
  color: #1f5ea8;
}

.app-study-badge.is-pending {
  background: rgba(251, 191, 36, 0.18);
  color: #9a6708;
}

.app-study-badge.is-approved {
  background: rgba(34, 197, 94, 0.16);
  color: #167344;
}

.app-study-badge.is-weak {
  background: rgba(239, 68, 68, 0.14);
  color: #b42318;
}

.app-study-badge.is-strong {
  background: rgba(34, 197, 94, 0.16);
  color: #167344;
}

.app-study-item,
.app-annotation-item,
.app-score-item,
.app-channel-item {
  font-size: 13px;
  line-height: 1.45;
}

.app-annotation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.app-study-item.is-active,
.app-annotation-item.is-active {
  outline: 2px solid var(--accu-primary);
}

.app-annotation-item.is-matched {
  border: 1px solid rgba(98, 194, 197, 0.4);
}

.app-annotation-item.is-unmatched {
  border: 1px solid rgba(94, 120, 185, 0.4);
}

.app-study-item:hover,
.app-annotation-item:hover {
  background: linear-gradient(180deg, #ffffff, #f3f7fe);
  border-color: rgba(94, 120, 185, 0.22);
}

.app-auth {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(68, 82, 118, 0.18);
  backdrop-filter: blur(10px);
  z-index: 40000;
}

.app-auth-card {
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  border-radius: var(--app-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
  box-shadow: 0 24px 60px rgba(65, 81, 123, 0.18);
}

.app-auth-card p {
  margin: 0 0 16px;
  color: var(--accu-muted);
}

.app-auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 14px;
}

.app-auth-mode-toggle button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(228, 237, 250, 0.92));
  color: #33527f;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 4px 12px rgba(94, 120, 185, 0.08);
}

.app-auth-mode-toggle button.is-active {
  background: linear-gradient(135deg, var(--accu-primary), var(--accu-primary-2));
  color: #f8fafc;
  box-shadow: 0 8px 18px rgba(94, 120, 185, 0.14);
}

.app-auth-onboarding {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(94, 120, 185, 0.14);
  border-radius: 14px;
  background: rgba(236, 242, 255, 0.72);
}

.app-auth-demo {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(94, 120, 185, 0.14);
}

.app-auth-demo .app-meta + .app-meta {
  margin-top: 6px;
}

.app-auth-card .app-meta#authRegisterSuccess {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(98, 194, 197, 0.28);
  border-radius: 12px;
  background: rgba(236, 255, 251, 0.92);
  color: #2e5e62;
  font-weight: 600;
}

.app-auth-card .app-meta#authLoginError,
.app-auth-card .app-meta#authRegisterSuccess.is-error {
  border-color: rgba(191, 74, 74, 0.28);
  background: rgba(255, 241, 241, 0.96);
  color: #9b2c2c;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(191, 74, 74, 0.28);
  border-radius: 12px;
  font-weight: 600;
}

.app-setup-guide {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(94, 120, 185, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.96), rgba(238, 244, 255, 0.96));
}

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

.app-setup-step {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(94, 120, 185, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.app-setup-step.is-complete {
  border-color: rgba(98, 194, 197, 0.24);
  background: rgba(240, 255, 250, 0.92);
}

.app-setup-step-title {
  color: #415a84;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-rollout-summary {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(94, 120, 185, 0.14);
  border-radius: 14px;
  background: rgba(246, 249, 255, 0.88);
}

.app-rollout-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.app-rollout-column {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(94, 120, 185, 0.1);
}

.app-rollout-row + .app-rollout-row {
  margin-top: 8px;
}

.app-rollout-row.is-focused {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(235, 243, 255, 0.96);
  border: 1px solid rgba(94, 120, 185, 0.18);
}

.app-publication-dashboard {
  margin-top: 8px;
}

.app-publication-scroll {
  overflow-x: auto;
  border: 1px solid rgba(94, 120, 185, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.app-publication-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.app-publication-table th,
.app-publication-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(94, 120, 185, 0.1);
  border-right: 1px solid rgba(94, 120, 185, 0.08);
  text-align: left;
  vertical-align: top;
}

.app-publication-table thead th {
  position: sticky;
  top: 0;
  background: rgba(241, 246, 255, 0.98);
  color: #415a84;
  z-index: 1;
}

.app-publication-table tbody tr:last-child th,
.app-publication-table tbody tr:last-child td {
  border-bottom: 0;
}

.app-pub-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.app-pub-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(65, 81, 123, 0.12);
}

.app-pub-cell.is-approved {
  background: rgba(227, 252, 242, 0.96);
  color: #1e6a47;
}

.app-pub-cell.is-pending {
  background: rgba(255, 242, 229, 0.96);
  color: #8a5a20;
}

.app-pub-cell.is-submitted {
  background: rgba(227, 252, 242, 0.96);
  color: #1e6a47;
}

.app-pub-cell.is-in_progress {
  background: rgba(235, 243, 255, 0.96);
  color: #315c9a;
}

.app-pub-cell.is-not_started {
  background: rgba(241, 245, 249, 0.96);
  color: #526277;
}

.app-pub-cell.is-flagged {
  box-shadow: inset 0 0 0 2px rgba(190, 24, 93, 0.28);
}

.app-study-badge.is-overdue {
  background: rgba(255, 232, 232, 0.96);
  color: #8d2f2f;
}

.app-study-badge.is-due-soon {
  background: rgba(255, 244, 224, 0.96);
  color: #8a5a20;
}

.app-urgency-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.app-form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-inline-form {
  margin-top: 8px;
}

.app-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  color: #415a84;
  font-size: 13px;
  font-weight: 600;
}

.app-role-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #415a84;
  font-size: 13px;
  font-weight: 600;
}

.app-inline-remove {
  margin-top: 10px;
}

.app-form-grid input,
.app-form-grid textarea,
.app-form-grid select,
.app-form-grid button,
.app-header button {
  width: 100%;
  border: 0;
  border-radius: var(--app-radius-sm);
  min-height: 42px;
  padding: 9px 12px;
}

.app-header button,
.app-form-actions button {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-form-grid input {
  color: #0f172a;
}

.app-form-grid textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--app-radius-sm);
  color: #0f172a;
  resize: vertical;
  font: inherit;
}

.app-form-actions {
  display: flex;
  gap: 8px;
}

.app-form-actions button,
.app-header button {
  background: linear-gradient(135deg, var(--accu-primary), var(--accu-primary-2));
  color: #f8fafc;
}

.app-form-actions button.secondary,
.app-header button.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(228, 237, 250, 0.92));
  color: #33527f;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 4px 12px rgba(94, 120, 185, 0.08);
}

.app-header button.is-disabled,
.app-header button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.app-controlbar {
  position: fixed;
  top: var(--app-header-height);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--app-controlbar-height);
  padding: 10px 14px;
  background: linear-gradient(90deg, #5a46a7 0%, #55429f 48%, #4f4097 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  box-shadow: 0 14px 28px rgba(76, 68, 138, 0.18);
  z-index: 2990;
}

.app-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-control-group-workflow {
  gap: 8px;
}

.app-control-btn,
.app-select {
  border: 0;
  border-radius: var(--app-radius-sm);
  min-height: 38px;
}

.app-control-btn {
  min-width: 78px;
  padding: 8px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.48));
  color: #f8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(55, 43, 110, 0.12);
}

.app-control-btn,
.app-time-window,
.app-select,
.app-number-input {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-control-btn.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.42));
}

.app-time-window {
  min-width: 180px;
  padding: 8px 12px;
  border-radius: var(--app-radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.24));
  color: #f8fbff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 251, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.app-select {
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.42));
  color: #f8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 1px 4px rgba(55, 43, 110, 0.1);
  appearance: none;
}

.app-number-input {
  width: 86px;
}

.app-controlbar .app-control-btn,
.app-controlbar .app-control-btn.secondary,
.app-controlbar .app-time-window,
.app-controlbar .app-select,
.app-controlbar .app-number-input,
.app-controlbar .app-select-label,
.app-controlbar .app-select-label span {
  color: #ffffff !important;
}

.app-controlbar .app-control-btn:hover,
.app-controlbar .app-select:hover,
.app-controlbar .app-number-input:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.5));
}

.app-control-group-workflow .app-control-btn,
.app-control-group-workflow .app-control-btn.secondary {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(233, 240, 252, 0.96));
  color: #27456d !important;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.24),
    0 8px 18px rgba(37, 32, 84, 0.14);
}

.app-control-group-workflow .app-control-btn:hover,
.app-control-group-workflow .app-control-btn.secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 245, 255, 0.98));
  color: #1f3b60 !important;
}

.app-controlbar .app-select::placeholder,
.app-controlbar .app-number-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.app-controlbar option {
  color: #142236;
}

.app-header button {
  width: auto;
  min-width: 116px;
  min-height: 54px;
  padding: 0 20px;
  font-size: 12px;
  border-radius: 20px;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: rgba(38, 52, 82, 0.92);
  color: #f8fbff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  z-index: 5000;
}

.app-channel-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: 60vh;
  overflow: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(94, 120, 185, 0.16);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow-card);
  z-index: 2200;
}

.app-floating-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(94, 120, 185, 0.16);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow-card);
  z-index: 2200;
}

body.app-bootcamp-mode #hypnogram-shell,
body.app-bootcamp-mode #hypnogramShell,
body.app-bootcamp-mode .container.plotDivs,
body.app-bootcamp-mode .app-sidebar,
body.app-bootcamp-mode .app-controlbar,
body.app-bootcamp-mode #scroll_body,
body.app-bootcamp-mode #legacyHeaderSpacer,
body.app-bootcamp-mode #reviewStatus {
  display: none !important;
}

body.app-bootcamp-mode #bootcampPanel {
  display: block !important;
  z-index: 2600;
  padding: 18px 20px 26px;
  border-radius: 22px;
  border-color: rgba(94, 120, 185, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.98));
  box-shadow: 0 18px 40px rgba(63, 82, 128, 0.14);
}

body.app-bootcamp-mode {
  background:
    radial-gradient(circle at top left, rgba(98, 194, 197, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(94, 120, 185, 0.18), transparent 26%),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 42%, #eef3fb 100%);
}

body.app-bootcamp-mode #studyPanelBtn,
body.app-bootcamp-mode #userAdminBtn,
body.app-bootcamp-mode #reportPanelBtn,
body.app-bootcamp-mode #saveDraftBtn,
body.app-bootcamp-mode #finishReviewBtn,
body.app-bootcamp-mode #exportPdfBtn,
body.app-bootcamp-mode #sidebarToggleBtn {
  display: none !important;
}

.app-channel-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#bootcampPanel > .app-channel-panel-head strong {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1b2b44;
}

.app-bootcamp-hero {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(82, 103, 184, 0.96), rgba(98, 194, 197, 0.88)),
    linear-gradient(180deg, #ffffff, #edf4ff);
  color: #f8fbff;
  box-shadow: 0 18px 36px rgba(65, 81, 123, 0.18);
}

.app-bootcamp-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.84);
}

.app-bootcamp-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.app-bootcamp-hero .app-meta {
  color: rgba(248, 251, 255, 0.92);
}

.app-bootcamp-layout {
  display: block;
}

.app-bootcamp-main,
.app-bootcamp-side {
  min-width: 0;
}

.app-bootcamp-builder-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(94, 120, 185, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
  box-shadow: 0 10px 24px rgba(94, 120, 185, 0.08);
}

.app-bootcamp-builder-grid {
  display: grid;
  gap: 12px;
}

.app-bootcamp-builder-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.app-bootcamp-builder-field {
  display: grid;
  gap: 6px;
}

.app-bootcamp-builder-field > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f739d;
}

.app-bootcamp-builder-field input:not([type="file"]):not([type="checkbox"]),
.app-bootcamp-builder-field textarea,
.app-bootcamp-builder-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
  color: #243a61;
  font-size: 15px;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.14),
    0 4px 12px rgba(94, 120, 185, 0.06);
  transition:
    box-shadow 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.app-bootcamp-builder-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.app-bootcamp-builder-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f739d 50%),
    linear-gradient(135deg, #5f739d 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.app-bootcamp-builder-field input:not([type="file"]):not([type="checkbox"])::placeholder,
.app-bootcamp-builder-field textarea::placeholder {
  color: #7c8fb2;
}

.app-bootcamp-builder-field input:not([type="file"]):not([type="checkbox"]):focus,
.app-bootcamp-builder-field textarea:focus,
.app-bootcamp-builder-field select:focus {
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 248, 255, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(94, 120, 185, 0.24),
    0 0 0 4px rgba(94, 120, 185, 0.12),
    0 10px 22px rgba(94, 120, 185, 0.1);
}

.app-bootcamp-builder-field input[type="file"] {
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  color: #243a61;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.14),
    0 4px 12px rgba(94, 120, 185, 0.06);
}

.app-bootcamp-builder-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 120, 185, 0.94), rgba(106, 195, 206, 0.94));
  color: #f8fbff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(94, 120, 185, 0.12);
  cursor: pointer;
}

.app-bootcamp-builder-field > button,
.app-bootcamp-course-info-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(229, 238, 251, 0.96));
  color: #33527f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 6px 16px rgba(94, 120, 185, 0.08);
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.app-bootcamp-builder-field > button.secondary,
.app-bootcamp-course-info-btn.secondary {
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 240, 252, 0.98));
  color: #365481;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 6px 16px rgba(94, 120, 185, 0.08);
}

.app-bootcamp-builder-field > button:hover,
.app-bootcamp-course-info-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 255, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.18),
    0 10px 20px rgba(94, 120, 185, 0.1);
}

.app-bootcamp-builder-field > button:focus-visible,
.app-bootcamp-course-info-btn:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(94, 120, 185, 0.22),
    0 0 0 4px rgba(94, 120, 185, 0.12),
    0 10px 20px rgba(94, 120, 185, 0.1);
}

.app-bootcamp-builder-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.app-bootcamp-builder-toggles .app-inline-toggle {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.12);
}

.app-bootcamp-builder-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.app-bootcamp-builder-actions button {
  width: auto;
  min-width: 220px;
}

.app-bootcamp-builder-card .app-meta {
  margin-top: -2px;
}

.app-bootcamp-lesson-builder-card {
  margin-top: 4px;
}

.app-bootcamp-toolbar {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.12);
}

.app-bootcamp-toolbar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f739d;
}

.app-bootcamp-toolbar-actions {
  gap: 10px;
}

.app-bootcamp-toolbar-actions button {
  min-width: 0;
}

.app-bootcamp-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.96));
}

.app-bootcamp-detail {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98));
}

.app-bootcamp-detail:not(.app-hidden) {
  margin-top: 12px;
}

.app-bootcamp-catalog {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.app-bootcamp-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.app-bootcamp-section-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5f739d;
}

.app-bootcamp-section-title.is-major {
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #223555;
}

.app-bootcamp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.app-bootcamp-card,
.app-bootcamp-stat-card,
.app-bootcamp-course-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
  border: 1px solid rgba(94, 120, 185, 0.12);
  box-shadow: 0 10px 24px rgba(94, 120, 185, 0.08);
}

.app-bootcamp-course-card {
  display: grid;
  gap: 6px;
  overflow: hidden;
}

.app-bootcamp-course-select {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.app-bootcamp-course-copy {
  display: grid;
  gap: 8px;
  padding: 0 2px 2px;
}

.app-bootcamp-course-card .app-study-head strong {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.app-bootcamp-course-card .app-study-badge.is-pending,
.app-bootcamp-course-card .app-study-badge.is-approved {
  font-size: 11px;
  padding: 5px 11px;
}

.app-bootcamp-course-media,
.app-bootcamp-detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(82, 103, 184, 0.94), rgba(98, 194, 197, 0.84));
}

.app-bootcamp-course-media {
  aspect-ratio: 16 / 5;
}

.app-bootcamp-detail-media {
  aspect-ratio: 16 / 4;
  margin-bottom: 10px;
}

.app-bootcamp-course-media img,
.app-bootcamp-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-bootcamp-course-media.is-placeholder,
.app-bootcamp-detail-media.is-placeholder {
  display: grid;
  place-items: center;
}

.app-bootcamp-course-media span,
.app-bootcamp-detail-media span {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.app-bootcamp-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-bootcamp-course-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #5c7298;
  font-size: 13px;
  font-weight: 600;
}

.app-bootcamp-course-outcome-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-bootcamp-course-outcome-block {
  display: grid;
  gap: 8px;
}

.app-bootcamp-course-outcome-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f739d;
}

.app-bootcamp-course-outcome-preview span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(238, 244, 255, 0.98);
  color: #44628f;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.12);
}

.app-bootcamp-course-access-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240, 245, 255, 0.96), rgba(233, 242, 255, 0.96));
  color: #365888;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.app-bootcamp-course-card.is-active {
  outline: 2px solid rgba(94, 120, 185, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(234, 242, 255, 0.98));
  box-shadow: 0 10px 24px rgba(94, 120, 185, 0.08);
}

.app-bootcamp-course-card.is-active .app-bootcamp-course-select {
  outline: 2px solid rgba(94, 120, 185, 0.26);
  outline-offset: -2px;
  border-radius: 16px;
}

.app-bootcamp-course-stack + .app-bootcamp-course-stack {
  margin-top: 10px;
}

.app-bootcamp-course-grid .app-bootcamp-course-stack + .app-bootcamp-course-stack {
  margin-top: 0;
}

@media (max-width: 900px) {
  .app-bootcamp-course-grid {
    grid-template-columns: 1fr;
  }
}

.app-bootcamp-inline-detail {
  margin-top: 4px;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(94, 120, 185, 0.12);
  background: transparent;
  box-shadow: none;
}

.app-bootcamp-course-workspace {
  display: grid;
  gap: 14px;
  padding: 8px 0 16px;
}

.app-bootcamp-course-nav {
  justify-content: flex-start;
}

.app-bootcamp-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-bootcamp-workspace-title-block {
  display: grid;
  gap: 4px;
}

.app-bootcamp-workspace-title-block h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #223555;
}

.app-bootcamp-workspace-actions {
  min-width: 220px;
  justify-content: flex-end;
}

.app-bootcamp-course-summary-actions {
  justify-content: flex-start;
}

.app-bootcamp-module-browser {
  margin-top: 8px;
}

.app-bootcamp-course-info-toggle {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.app-bootcamp-course-info-btn {
  min-width: 148px;
  border-radius: 999px;
  padding-inline: 18px;
  font-size: 14px;
}

.app-bootcamp-course-callout.is-compact {
  padding: 12px 16px;
  font-size: 15px;
}

.app-bootcamp-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
  color: #2d4a76;
}

.app-bootcamp-progress-head strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-bootcamp-progress-head span {
  font-size: 14px;
  color: #60779f;
}

.app-bootcamp-module-card {
  padding: 14px 16px;
}

.app-bootcamp-module-card .app-annotation-section-list {
  margin-top: 8px;
}

.app-bootcamp-module-card .app-report-detail {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.1);
}

.app-bootcamp-module-card .app-report-detail + .app-report-detail {
  margin-top: 8px;
}

.app-bootcamp-inline-detail > * {
  margin-left: 14px;
  margin-right: 14px;
}

.app-bootcamp-inline-detail > .app-bootcamp-section-title:first-child {
  padding-top: 14px;
}

.app-bootcamp-card-hint {
  margin-top: 6px;
  font-weight: 700;
  color: #3f5f92;
}

.app-bootcamp-empty {
  padding: 24px 18px;
  border: 1px dashed rgba(94, 120, 185, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: #58708f;
}

.app-bootcamp-course-summary,
.app-bootcamp-lesson-workspace {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
  box-shadow: 0 10px 24px rgba(94, 120, 185, 0.08);
}

.app-bootcamp-lesson-workspace {
  display: grid;
  gap: 12px;
}

.app-bootcamp-lesson-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.app-bootcamp-lesson-title-block {
  display: grid;
  gap: 4px;
}

.app-bootcamp-lesson-title-block strong {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #203453;
}

.app-bootcamp-lesson-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c7ea3;
}

.app-bootcamp-course-inline-summary {
  display: grid;
  gap: 8px;
}

.app-bootcamp-course-callout {
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(236, 242, 255, 0.98), rgba(227, 239, 255, 0.98));
  color: #37588a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.app-bootcamp-course-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.app-bootcamp-course-highlights.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.app-bootcamp-highlight-card {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 185, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.app-bootcamp-highlight-card span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7586a8;
}

.app-bootcamp-highlight-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: #213553;
}

.app-bootcamp-progress {
  display: grid;
  gap: 6px;
}

.app-bootcamp-payment-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-bootcamp-progress-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(207, 219, 240, 0.72);
}

.app-bootcamp-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f76c6, #62c2c5);
}

.app-bootcamp-analytics-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #4f678f;
  font: inherit;
  line-height: 1.45;
  cursor: pointer;
}

.app-bootcamp-analytics-link + .app-bootcamp-analytics-link {
  margin-top: 4px;
}

.app-bootcamp-analytics-link:hover {
  color: #2e4f84;
  text-decoration: underline;
}

.app-bootcamp-followup-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(94, 120, 185, 0.06);
  border: 1px solid rgba(94, 120, 185, 0.12);
  border-radius: var(--app-radius-md);
}

.app-bootcamp-followup-box textarea {
  width: 100%;
  min-height: 70px;
  margin-top: 8px;
}

.app-bootcamp-module-lesson-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.app-bootcamp-module-lesson-head {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.app-bootcamp-module-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-bootcamp-module-lesson-head .app-meta:last-child {
  max-width: 720px;
}

.app-bootcamp-lesson-actions {
  align-self: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-bootcamp-module-summary {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.app-bootcamp-lesson-detail {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(94, 120, 185, 0.1);
}

.app-bootcamp-lesson-rail {
  display: grid;
  gap: 8px;
}

.app-bootcamp-lesson-chip {
  display: grid;
  gap: 3px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(94, 120, 185, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #31507d;
}

.app-bootcamp-lesson-chip span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7586a8;
}

.app-bootcamp-lesson-chip strong {
  font-size: 14px;
  line-height: 1.25;
}

.app-bootcamp-lesson-chip.is-active {
  outline: 2px solid rgba(94, 120, 185, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(234, 242, 255, 0.98));
}

.app-bootcamp-lesson-chip.is-complete {
  border-color: rgba(34, 197, 94, 0.18);
}

.app-bootcamp-lesson-chip.is-locked {
  opacity: 0.7;
}

.app-bootcamp-lesson-callout {
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.app-bootcamp-lesson-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.app-bootcamp-lesson-nav {
  justify-content: space-between;
}

.app-bootcamp-lesson-primary-action {
  justify-content: flex-start;
}

.app-bootcamp-lesson-callout.is-approved {
  background: rgba(232, 252, 240, 0.96);
  color: #1d6b44;
}

.app-bootcamp-lesson-callout.is-published {
  background: rgba(234, 242, 255, 0.96);
  color: #315c9a;
}

.app-bootcamp-lesson-callout.is-draft {
  background: rgba(255, 245, 228, 0.96);
  color: #8a5a20;
}

.app-bootcamp-result-card {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 185, 0.12);
}

.app-bootcamp-result-card.is-approved {
  background: rgba(232, 252, 240, 0.96);
  color: #1d6b44;
}

.app-bootcamp-result-card.is-pending {
  background: rgba(255, 245, 228, 0.96);
  color: #8a5a20;
}

.app-bootcamp-result-card.is-published {
  background: rgba(234, 242, 255, 0.96);
  color: #315c9a;
}

.app-bootcamp-result-title {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-bootcamp-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.app-bootcamp-result-stat {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(94, 120, 185, 0.12);
}

.app-bootcamp-result-stat span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7484a1;
}

.app-bootcamp-result-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: inherit;
}

.app-bootcamp-review-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.app-bootcamp-quiz-card,
.app-bootcamp-practice-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.12);
}

.app-bootcamp-practice-steps {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.1);
}

.app-bootcamp-quiz-builder-list,
.app-bootcamp-quiz-question-list {
  display: grid;
  gap: 12px;
}

.app-bootcamp-quiz-builder-item,
.app-bootcamp-quiz-question-block {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.12);
}

.app-bootcamp-quiz-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.app-bootcamp-quiz-image-wrap {
  display: block;
  width: 100%;
  margin: 2px 0 4px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(238, 243, 251, 0.9);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.12);
}

.app-bootcamp-quiz-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #f8fbff;
}

.app-bootcamp-quiz-options {
  gap: 10px;
}

.app-bootcamp-quiz-options label {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(111, 138, 196, 0.12);
}

.app-bootcamp-quiz-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.app-bootcamp-quiz-option:hover {
  background: rgba(245, 249, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(94, 120, 185, 0.18);
  transform: translateY(-1px);
}

.app-bootcamp-quiz-option.is-selected {
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.98), rgba(227, 240, 255, 0.98));
  box-shadow: inset 0 0 0 2px rgba(94, 120, 185, 0.22);
}

.app-bootcamp-quiz-option input {
  margin-top: 2px;
}

.app-bootcamp-quiz-option span {
  flex: 1 1 auto;
  font-weight: 600;
  color: #284669;
}

.app-bootcamp-review-item {
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(94, 120, 185, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.app-bootcamp-review-item.is-correct {
  border-color: rgba(34, 197, 94, 0.18);
}

.app-bootcamp-review-item.is-missed {
  border-color: rgba(222, 144, 67, 0.22);
}

.app-bootcamp-review-item strong {
  display: block;
  margin-bottom: 4px;
}

.app-bootcamp-lesson-body {
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 185, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.app-bootcamp-course-marketing {
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 185, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.app-bootcamp-outcome-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.app-bootcamp-lesson-body-head {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d81a6;
}

.app-bootcamp-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #dbe5f6;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
}

.app-bootcamp-video-link {
  display: block;
  color: inherit;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.app-bootcamp-video-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-bootcamp-video-frame.is-fallback {
  display: grid;
  place-items: center;
}

.app-bootcamp-video-frame.is-fallback span {
  font-size: 20px;
  font-weight: 800;
  color: #355483;
}

.app-bootcamp-video-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(25, 35, 63, 0.76);
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-bootcamp-video-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 22, 39, 0.56);
  z-index: 3200;
}

.app-bootcamp-video-modal-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  background: rgba(250, 252, 255, 0.98);
  border: 1px solid rgba(94, 120, 185, 0.16);
  box-shadow: 0 24px 48px rgba(13, 22, 39, 0.28);
}

.app-bootcamp-video-player {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #101828;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.app-bootcamp-video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#bootcampVideoModal .app-channel-panel-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-bottom: 6px;
  background: rgba(250, 252, 255, 0.98);
}

#bootcampVideoModal .app-close-btn {
  position: relative;
  z-index: 4;
}

.app-close-btn {
  border: 0;
  border-radius: var(--app-radius-sm);
  min-height: 32px;
  padding: 6px 10px;
  background: #edf3fb;
  color: #1e3a5f;
}

@media (max-width: 980px) {
  .app-bootcamp-title {
    font-size: 22px;
  }
}

.app-channel-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.app-channel-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.app-channel-preset-btn {
  min-height: 30px;
  border: 1px solid rgba(91, 112, 175, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef4fc);
  color: #243b63;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.app-channel-preset-btn:hover {
  background: linear-gradient(180deg, #f8fbff, #dfeafa);
}

.app-channel-item {
  display: grid;
  grid-template-columns: 18px 16px 1fr 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #eef4fc);
  cursor: grab;
  border: 1px solid rgba(94, 120, 185, 0.12);
  box-shadow: 0 4px 12px rgba(94, 120, 185, 0.05);
  position: relative;
}

.app-channel-color {
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.app-channel-item.is-dragging,
.ChDiv.is-dragging {
  opacity: 0.45;
}

.app-channel-item.drop-before,
.ChDiv.drop-before {
  box-shadow: inset 0 3px 0 rgba(56, 189, 248, 0.95), 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.app-channel-item.drop-after,
.ChDiv.drop-after {
  box-shadow: inset 0 -3px 0 rgba(56, 189, 248, 0.95), 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.app-channel-item.drop-before::before,
.app-channel-item.drop-after::after,
.ChDiv.drop-before::before,
.ChDiv.drop-after::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82);
  pointer-events: none;
  z-index: 8;
}

.app-channel-item.drop-before::before,
.ChDiv.drop-before::before {
  top: -2px;
}

.app-channel-item.drop-after::after,
.ChDiv.drop-after::after {
  bottom: -2px;
}

.app-annotation-epoch {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4c6494;
}

.app-annotation-sections {
  display: grid;
  gap: 8px;
}

.app-review-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.app-review-summary-card {
  padding: 10px 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #eff4fd);
  border: 1px solid rgba(98, 120, 185, 0.12);
  box-shadow: 0 4px 12px rgba(94, 120, 185, 0.05);
}

.app-review-summary-title {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7180a7;
}

.app-annotation-section {
  display: grid;
  gap: 6px;
}

.app-annotation-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7180a7;
}

.app-annotation-section-list {
  display: grid;
  gap: 6px;
}

.app-annotation-status {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #51607d;
}

.app-annotation-item.is-expert {
  border-color: rgba(96, 165, 250, 0.24);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(235, 244, 255, 0.98));
}

.app-score-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 253, 0.98));
}

.app-score-item.is-weak {
  border-color: rgba(220, 38, 38, 0.18);
  background: linear-gradient(180deg, #fff8f6, #ffe9e2);
}

.app-score-item.is-strong {
  border-color: rgba(34, 197, 94, 0.18);
  background: linear-gradient(180deg, #f7fff9, #e8f8ed);
}

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

.app-score-summary-card {
  padding: 10px 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #eff4fd);
  border: 1px solid rgba(98, 120, 185, 0.12);
  box-shadow: 0 4px 12px rgba(94, 120, 185, 0.05);
}

.app-score-summary-card.is-weak {
  background: linear-gradient(180deg, #fff8f6, #ffe9e2);
  border-color: rgba(220, 38, 38, 0.18);
}

.app-score-summary-card.is-strong {
  background: linear-gradient(180deg, #f7fff9, #e8f8ed);
  border-color: rgba(34, 197, 94, 0.18);
}

.app-score-summary-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7180a7;
}

.app-score-summary-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #20314f;
}

.app-score-item strong,
.app-annotation-item strong {
  color: #20314f;
}

.app-channel-item input {
  margin: 0;
}

.app-channel-drag {
  color: #94a3b8;
  letter-spacing: 1px;
}

.app-hidden {
  display: none !important;
}

.app-context-menu {
  position: fixed;
  z-index: 5000;
  min-width: 180px;
  padding: 6px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(94, 120, 185, 0.2);
  border-radius: var(--app-radius-md);
  box-shadow: var(--app-shadow-card);
}

.app-context-menu button {
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #13243c;
  border-radius: 8px;
}

.app-context-menu button:hover {
  background: rgba(234, 240, 250, 0.96);
}

.app-stage-banner {
  display: none !important;
}

#hypnogram-shell {
  width: calc(100vw - (var(--app-gap) * 2));
  margin: calc(var(--app-header-height) + var(--app-controlbar-height) + 18px) 0 6px var(--app-gap);
  padding: 0 0 8px;
}

#hypnogramShell {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  padding: 0;
  margin: 18px 18px 18px 0;
  width: calc(100% - 18px);
  clear: both;
}

#hypnogram {
  height: 92px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  overflow: hidden;
}

.app-hypnogram-frame {
  padding: 8px 10px 6px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
  box-shadow: 0 10px 24px rgba(94, 120, 185, 0.08);
}

.SecondCol > #hypnogramShell {
  display: block;
}

.app-hypnogram-chart {
  height: 76px;
}

.plotDivs {
  transition: opacity 0.15s ease;
}

.container.plotDivs {
  width: calc(100vw - (var(--app-gap) * 2)) !important;
  margin-top: calc(var(--app-header-height) + var(--app-controlbar-height) + 12px);
  margin-left: var(--app-gap);
  margin-right: var(--app-gap);
  padding: 0;
}

body.app-hypnogram-visible .container.plotDivs {
  margin-top: calc(var(--app-header-height) + var(--app-controlbar-height) + 12px);
}

nav.navbar.navbar-inverse {
  display: none !important;
}

#scroll_body {
  position: relative;
  margin-right: 0 !important;
  margin-left: 76px !important;
  height: 16px !important;
  padding: 2px 0 !important;
  background: linear-gradient(180deg, rgba(204, 217, 239, 0.98), rgba(180, 197, 229, 0.98)) !important;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(94, 120, 185, 0.24),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  overflow: visible;
}

#scroll_marker {
  height: 12px !important;
  margin-top: 0 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(98, 194, 197, 1), rgba(94, 120, 185, 1)) !important;
  box-shadow:
    0 1px 6px rgba(94, 120, 185, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.app-progress-label {
  position: absolute;
  left: -68px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #5c71a2;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  pointer-events: none;
  z-index: 2;
}

.FirstCol,
.SecondCol {
  background: rgba(118, 147, 211, 0.08);
}

.FirstCol {
  background: transparent !important;
}

.SecondCol {
  background: transparent !important;
}

#Sidebar {
  background: transparent !important;
}

.FirstCol .RowOne,
.FirstCol .annotaionRow,
.FirstCol .upperTimeRow,
.FirstCol .lowerTimeMarkRow,
.SecondCol .RowOne,
#EEGplot,
#EKGplot,
#Otherplot,
#EEGDiv,
#EKGDiv,
#otherDiv,
.otherplot,
[id$="_EKGplot"],
#AnnotaionName,
#UpperTimeMarkName,
#LowerTimeMarkName {
  background: transparent !important;
}

.FirstCol .row {
  background-color: transparent !important;
}

.SecondCol .row,
.RowTwoPlot,
#EEGplot .plot-container,
#EKGplot .plot-container,
#Otherplot .plot-container,
#EEGDiv .plot-container,
[id$="_EKGplot"] .plot-container,
.otherplot .plot-container {
  background: transparent !important;
  overflow: visible !important;
}

.ChDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 7px 6px 6px !important;
  font-size: 12px;
  line-height: 1.12;
  background: linear-gradient(180deg, rgba(104, 194, 200, 0.96), rgba(93, 169, 223, 0.96), rgba(97, 119, 191, 0.96)) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(108, 127, 163, 0.18);
  border-radius: 14px;
  position: relative;
  z-index: 3;
  overflow: visible;
  cursor: grab;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 4px 0 0 rgba(255, 255, 255, 0.12);
  margin: 0;
}

.ChDiv.channel-filter-active {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.68),
    inset 4px 0 0 rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(84, 167, 201, 1), rgba(89, 127, 193, 1)) !important;
}

#ptname {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0;
  border-radius: 10px;
}

.js-plotly-plot .plotly .modebar {
  display: none !important;
}

.js-plotly-plot,
.js-plotly-plot .plot-container,
.js-plotly-plot .svg-container,
.js-plotly-plot .main-svg,
.js-plotly-plot .cartesianlayer,
.js-plotly-plot .subplot,
.js-plotly-plot .cartesianlayer .subplot {
  overflow: visible !important;
}

.js-plotly-plot .plotly .scatterlayer .trace,
.js-plotly-plot .plotly .scatterlayer .trace path {
  clip-path: none !important;
}

.unified-special-plot .main-svg,
.unified-special-plot .svg-container,
.unified-special-plot .plot-container {
  background: transparent !important;
}

.unified-special-plot .bg {
  fill: transparent !important;
}

#EEGplot,
#EKGplot,
#Otherplot,
#EEGDiv,
[id$="_EKGplot"],
.otherplot {
  overflow: visible !important;
}

#UpperTimeMarkDiv .xtick text,
#LowerTimeMarkDiv .xtick text,
#EEGDiv .xtick text,
.otherplot .xtick text,
[id$="_EKGplot"] .xtick text {
  fill: #5f74a2 !important;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#UpperTimeMarkDiv .annotation-text,
#LowerTimeMarkDiv .annotation-text,
#EEGDiv .annotation-text,
.otherplot .annotation-text,
[id$="_EKGplot"] .annotation-text {
  fill: #4b5f8b !important;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif !important;
}

.channel-main {
  display: block;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 15px;
  min-height: 14px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(28, 49, 86, 0.18);
}

.channel-main span,
.OtherSpan,
.OtherPlotMinMaxSpan {
  color: inherit !important;
}

.channel-controls {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  margin-top: 0;
  gap: 2px;
  pointer-events: auto;
}

.channel-sens-row {
  display: grid;
  grid-template-columns: 22px 44px 22px;
  gap: 3px;
  align-items: center;
}

.channel-sens-btn,
.channel-filter-btn {
  min-width: 22px;
  height: 19px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  color: #f8fbff;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.channel-sens-btn:hover,
.channel-filter-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.channel-filter-btn.is-active {
  background: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.plot-selection-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.7);
  pointer-events: none;
  z-index: 12;
}

.plot-selection-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(73, 58, 145, 0.92), rgba(60, 76, 143, 0.92));
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--app-shadow-soft);
}

.annotation-badge {
  display: inline-flex;
  padding: 2px 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  font-size: 11px;
}

.custom-annotation-highlight {
  position: absolute;
  top: 4px;
  bottom: 4px;
  min-width: 2px;
  border-radius: 6px;
  overflow: visible;
  cursor: grab;
  pointer-events: auto;
  z-index: 6;
  transition: box-shadow 0.12s ease, transform 0.12s ease, background 0.12s ease;
}

.custom-annotation-highlight:active {
  cursor: grabbing;
}

.custom-annotation-highlight.is-user {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.75);
}

.custom-annotation-highlight.is-expert {
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.75);
}

.custom-annotation-highlight.is-instructional {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.78);
}

.custom-annotation-highlight.is-selected {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.85);
  transform: translateY(-1px);
}

.custom-annotation-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(73, 58, 145, 0.92), rgba(60, 76, 143, 0.92));
  color: #f8fbff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--app-shadow-soft);
}

.app-score-item strong,
.app-annotation-item strong,
.app-study-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.annotation-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: ew-resize;
}

.annotation-resize-handle.is-left {
  left: -1px;
}

.annotation-resize-handle.is-right {
  right: -1px;
}

.custom-stage-overlay-layer {
  position: fixed;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  z-index: 2;
}

.custom-stage-overlay {
  position: absolute;
  top: 0;
  bottom: auto;
  min-width: 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  cursor: default;
  z-index: 1;
}

.custom-stage-overlay.is-selected {
  box-shadow: none;
}

.custom-stage-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.16);
  font-weight: 900;
  font-size: clamp(42px, 8vw, 110px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1;
  max-width: 100%;
  overflow: visible;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  user-select: none;
}

.spo2-overlay-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.spo2-value-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #7f1d1d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.spo2-trace-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.spo2-trace-overlay polyline {
  fill: none;
  stroke: #b42318;
  stroke-width: 1.8;
  stroke-linejoin: miter;
  stroke-linecap: square;
}

body.app-light-theme .app-header,
body.app-light-theme .app-controlbar,
body.app-light-theme .app-sidebar,
body.app-light-theme .app-floating-panel,
body.app-light-theme .app-channel-panel,
body.app-light-theme .app-auth-card,
body.app-light-theme .app-context-menu,
body.app-light-theme .app-stage-banner {
  border-color: inherit;
  box-shadow: inherit;
}

body.app-light-theme .app-toast {
  color: #f8fbff;
  background: rgba(38, 52, 82, 0.94);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

body.app-light-theme .app-brand h1,
body.app-light-theme .app-panel h3,
body.app-light-theme .app-auth-card h1,
body.app-light-theme .app-select-label,
body.app-light-theme .app-close-btn,
body.app-light-theme .app-header button,
body.app-light-theme .app-control-btn {
  color: inherit;
}

body.app-light-theme .app-brand p,
body.app-light-theme .app-meta,
body.app-light-theme .app-auth-card p {
  color: inherit;
}

body.app-light-theme .app-panel {
  background: inherit;
}

body.app-light-theme .app-study-item,
body.app-light-theme .app-annotation-item,
body.app-light-theme .app-score-item,
body.app-light-theme .app-channel-item {
  color: inherit;
}

body.app-light-theme .app-study-item:hover,
body.app-light-theme .app-annotation-item:hover {
  background: #f4f7fd;
}

body.app-light-theme .app-control-btn.secondary,
body.app-light-theme .app-header button.secondary,
body.app-light-theme .app-close-btn {
  color: inherit;
}

body.app-light-theme .app-control-btn,
body.app-light-theme .app-header button:not(.secondary),
body.app-light-theme .app-form-actions button:not(.secondary) {
  background: inherit;
  color: #f8fafc;
}

body.app-light-theme .app-auth-card .app-form-actions button,
body.app-light-theme .app-auth-card .app-form-actions button:not(.secondary),
body.app-light-theme .app-auth-card .app-form-actions button.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(228, 237, 250, 0.92));
  color: #33527f;
  box-shadow:
    inset 0 0 0 1px rgba(111, 138, 196, 0.16),
    0 4px 12px rgba(94, 120, 185, 0.08);
}

body.app-light-theme .app-time-window {
  color: inherit;
}

body.app-light-theme .app-select,
body.app-light-theme .app-number-input,
body.app-light-theme .app-form-grid input {
  box-shadow: inset 0 0 0 1px rgba(123, 145, 191, 0.18);
}

body.app-light-theme .annotation-badge {
  background: rgba(14, 165, 233, 0.14);
  color: #0f172a;
}

body.app-light-theme .custom-annotation-label,
body.app-light-theme .plot-selection-label {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

body.app-light-theme .custom-stage-label {
  color: rgba(15, 23, 42, 0.12);
}

.app-atlas-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 14px;
  margin-top: 14px;
  min-height: 0;
}

#atlasPanel {
  scroll-padding-top: 14px;
}

.app-atlas-sidebar,
.app-atlas-main {
  min-height: 0;
}

.app-atlas-sidebar {
  border-right: 1px solid rgba(123, 145, 191, 0.18);
  padding-right: 12px;
}

.app-atlas-main {
  display: grid;
  gap: 12px;
}

.app-teaching-note-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 5000;
  width: min(340px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(94, 120, 185, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(34, 49, 92, 0.22);
}

.app-teaching-note-title {
  font-weight: 800;
  color: #20314f;
  margin-bottom: 8px;
}

.app-teaching-note-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(123, 145, 191, 0.28);
  border-radius: 8px;
  color: #20314f;
}

.app-teaching-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

#atlasCategorySelect {
  min-height: 116px;
}

body.app-atlas-mode .app-sidebar {
  display: none;
}

body.app-atlas-mode .app-header,
body.app-atlas-mode .app-controlbar {
  right: 16px;
}

body.app-atlas-mode #reportPanelBtn,
body.app-atlas-mode .app-settings-wrap {
  display: none;
}

@media (max-width: 1680px) {
  :root {
    --app-sidebar-width: 280px;
  }
}

@media (max-width: 1280px) {
  :root {
    --app-sidebar-width: 240px;
  }

  .app-header {
    right: calc(var(--app-sidebar-offset) + 12px);
  }

  .app-controlbar {
    right: calc(var(--app-sidebar-offset) + 12px);
  }

  .app-brand p {
    display: none;
  }
}
