:root {
  color-scheme: light;
  --ink: #20242c;
  --muted: #858b96;
  --line: #e9ebef;
  --paper: #fff;
  --canvas: #f5f6f8;
  --blue: #3478f6;
  --blue-soft: #edf4ff;
  --green: #27966a;
  --amber: #b67a24;
  --shadow:
    0 18px 55px rgba(28, 39, 62, 0.08), 0 2px 8px rgba(28, 39, 62, 0.04);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.app {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 250px;
  flex: 0 0 250px;
  min-height: 100vh;
  padding: 24px 15px 17px;
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px 27px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #4d8dff, #2868e7);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 12px #3478f638;
}
.brand-mark svg {
  width: 19px;
  height: 19px;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.45px;
}
.workspace-label {
  color: #a0a5ae;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.15px;
  padding: 0 11px 10px;
}
.nav-link {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #737985;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 3px;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.nav-link:hover,
.nav-link.active {
  background: #f0f3f8;
  color: #303640;
  font-weight: 600;
}
.client-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 11px 9px;
}
.client-head .workspace-label {
  padding: 0;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #8a909a;
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 30px;
  height: 30px;
}
.icon-button:hover {
  background: #f1f3f6;
  color: #3b414b;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
#client-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.client-item {
  border: 0;
  background: transparent;
  color: #626975;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  width: 100%;
  text-align: left;
  min-width: 0;
}
.client-item:hover {
  background: #f6f7f9;
}
.client-item.selected {
  background: #edf3ff;
  color: #2368df;
  font-weight: 600;
}
.client-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 12.5px;
}
.client-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f0f1f3;
  color: #838995;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
}
.client-item.selected .client-count {
  background: #dce9ff;
  color: #3478f6;
}
.client-avatar {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.sidebar-spacer {
  flex: 1;
}
.sidebar-note {
  padding: 12px;
  background: #f6f7f9;
  border-radius: 12px;
  color: #858b96;
  font-size: 10.5px;
  line-height: 1.5;
}
.sidebar-note b {
  color: #646b76;
  font-weight: 600;
}
.main {
  flex: 1;
  min-width: 0;
  padding: 0 30px 30px;
}
.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9aa0aa;
  font-size: 12px;
  min-width: 0;
}
.crumb button {
  border: 0;
  background: none;
  padding: 0;
  color: #818793;
}
.crumb strong {
  color: #454b55;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-toggle {
  border: 1px solid #e6e9ef;
  border-radius: 9px;
  background: #fff;
  color: #68717e;
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 600;
}
.view-toggle:hover {
  border-color: #b8c9e8;
  color: #3478f6;
}
.profile {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8e4ff;
  color: #6556a8;
  font-size: 10px;
  font-weight: 700;
}
.mobile-menu {
  display: none;
}
.screen {
  padding-top: 26px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}
.eyebrow {
  color: #989ea8;
  font-size: 11px;
  margin-bottom: 7px;
}
.page-head h1 {
  font-size: 25px;
  line-height: 1.1;
  margin: 0;
  font-weight: 680;
  letter-spacing: -0.8px;
}
.subtitle {
  color: #969ca6;
  font-size: 12px;
  margin: 7px 0 0;
  line-height: 1.45;
}
.primary-button {
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px #3478f62b;
  transition:
    transform 0.15s,
    background 0.15s;
  white-space: nowrap;
}
.primary-button:hover {
  background: #2368e8;
  transform: translateY(-1px);
}
.primary-button svg {
  width: 15px;
  height: 15px;
}
.secondary-button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6e7580;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 11px;
}
.secondary-button:hover {
  background: #f8f9fb;
}
.small-button {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #737985;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 600;
}
.small-button:hover {
  border-color: #b8c9e8;
  color: #3478f6;
}
.content-card {
  background: var(--paper);
  border: 1px solid #e9ebef;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
}
.section-head h2 {
  font-size: 14px;
  letter-spacing: -0.2px;
  margin: 0;
}
.section-head p {
  font-size: 10px;
  color: #969ca6;
  margin: 4px 0 0;
}
.section-count {
  font-size: 10px;
  color: #989ea8;
}
.filter-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.filter-chip {
  border: 1px solid #e8ebf0;
  background: #fff;
  color: #858b96;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 10px;
}
.filter-chip.selected {
  color: #2d6fde;
  background: #edf4ff;
  border-color: #dce9ff;
  font-weight: 600;
}
.initiative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.initiative-card {
  position: relative;
  padding: 16px 17px 15px;
  cursor: pointer;
  min-width: 0;
  transition:
    transform 0.15s,
    border-color 0.15s;
  box-shadow: 0 2px 8px rgba(28, 39, 62, 0.03);
}
.initiative-card:hover {
  transform: translateY(-2px);
  border-color: #cbd9ee;
}
.initiative-card.dragging,
.lesson-row.dragging {
  opacity: 0.42;
}
.initiative-card.drag-over,
.lesson-row.drag-over {
  outline: 2px dashed #7fa9ee;
  outline-offset: 2px;
}
.initiative-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.type-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
.type-badge {
  background: #f2f5f9;
  color: #77808d;
}
.type-badge.setup {
  background: #edf4ff;
  color: #3971bc;
}
.type-badge.audit {
  background: #fff5e8;
  color: #a16a1c;
}
.type-badge.sop {
  background: #eef8f2;
  color: #398263;
}
.type-badge.task {
  background: #f5efff;
  color: #795cae;
}
.status-badge.draft {
  background: #f1f2f4;
  color: #8a9099;
}
.status-badge.not-started {
  background: #f1f2f4;
  color: #838a94;
}
.status-badge.in-progress {
  background: #edf4ff;
  color: #3375e6;
}
.status-badge.completed {
  background: #eaf6ef;
  color: #32845f;
}
.initiative-title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.25px;
  margin: 14px 0 6px;
  line-height: 1.3;
}
.initiative-description {
  font-size: 10.5px;
  color: #89909b;
  line-height: 1.5;
  margin: 0;
  min-height: 32px;
}
.initiative-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #f0f1f3;
  margin-top: 13px;
  padding-top: 11px;
  color: #9aa0aa;
  font-size: 9px;
}
.lesson-progress {
  display: flex;
  align-items: center;
  gap: 7px;
}
.progress-track {
  width: 58px;
  height: 4px;
  background: #eff1f3;
  border-radius: 9px;
  overflow: hidden;
}
.progress-track span {
  height: 100%;
  display: block;
  background: #61b98e;
  border-radius: 9px;
}
.unread-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #3478f6;
  box-shadow: 0 0 0 3px #3478f61a;
}
.drag-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a2a7b0;
  font-size: 9px;
  margin: 0 0 12px;
}
.drag-hint svg {
  width: 13px;
  height: 13px;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
  gap: 14px;
  margin-top: 16px;
}
.general-card,
.note-card {
  padding: 16px 17px;
}
.general-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.general-copy {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.general-icon {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #f1f5fc;
  color: #668bc7;
  display: grid;
  place-items: center;
  flex: 0 0 35px;
}
.general-icon svg {
  width: 17px;
  height: 17px;
}
.general-copy h3 {
  font-size: 11px;
  margin: 0 0 4px;
}
.general-copy p {
  font-size: 9.5px;
  color: #9aa0aa;
  line-height: 1.4;
  margin: 0;
}
.note-card {
  background: #fbfcfe;
  box-shadow: none;
}
.note-card h3 {
  font-size: 10px;
  margin: 0 0 5px;
  color: #676f7b;
}
.note-card p {
  font-size: 9px;
  line-height: 1.5;
  margin: 0;
  color: #9aa0aa;
}
.crumb-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -5px 0 14px;
  color: #9aa0aa;
  font-size: 10px;
}
.crumb-row button {
  border: 0;
  background: none;
  color: #6d7683;
  padding: 0;
  font-size: 10px;
}
.initiative-overview {
  padding: 19px 21px;
  margin-bottom: 15px;
}
.overview-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.overview-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.overview-title-row h1 {
  font-size: 20px;
  letter-spacing: -0.55px;
  margin: 0;
}
.overview-description {
  font-size: 11px;
  line-height: 1.6;
  color: #6e7580;
  white-space: pre-wrap;
  margin: 12px 0 0;
  max-width: 850px;
}
.overview-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: #a0a5ad;
  font-size: 9px;
}
.overview-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.initiative-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}
.lessons-panel {
  padding: 16px 11px 11px;
}
.lessons-panel .section-head {
  padding: 0 7px;
}
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  min-width: 0;
  cursor: pointer;
}
.lesson-row:hover {
  background: #f8f9fb;
}
.lesson-row.selected {
  background: #f0f5fd;
  border-color: #e3ecfb;
}
.lesson-row.locked {
  cursor: not-allowed;
  opacity: 0.68;
}
.lesson-row.locked:hover {
  background: #fff;
}
.lesson-row[draggable="true"] {
  cursor: grab;
}
.lesson-row[draggable="true"]:active {
  cursor: grabbing;
}
.lesson-grip {
  touch-action: none;
  cursor: grab;
  color: #c0c4cb;
  width: 12px;
  flex: 0 0 12px;
  font-size: 13px;
  letter-spacing: -3px;
  line-height: 1;
}
.lesson-row.client-mode .lesson-grip {
  display: none;
}
.lesson-status-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f2f4;
  color: #9aa0a8;
  flex: 0 0 21px;
}
.lesson-status-icon svg {
  width: 12px;
  height: 12px;
}
.lesson-status-icon.in-progress {
  background: #edf4ff;
  color: #3478f6;
}
.lesson-status-icon.completed {
  background: #eaf6ef;
  color: #32845f;
}
.lesson-row-copy {
  min-width: 0;
  flex: 1;
}
.lesson-name {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lesson-sub {
  display: block;
  font-size: 8.5px;
  color: #a1a6ae;
  margin-top: 4px;
}
.lesson-end {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lesson-row .unread-dot {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}
.locked-mark {
  font-size: 11px;
  color: #acb1b9;
}
.lesson-view {
  min-height: 420px;
  overflow: hidden;
}
.lesson-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  color: #9298a2;
}
.empty-icon {
  width: 49px;
  height: 49px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f2f6fd;
  color: #6d9df3;
  margin-bottom: 13px;
}
.empty-icon svg {
  width: 22px;
  height: 22px;
}
.lesson-empty h2 {
  font-size: 14px;
  color: #464d58;
  margin: 0;
}
.lesson-empty p {
  font-size: 10px;
  line-height: 1.55;
  max-width: 280px;
  margin: 7px 0 0;
}
.lesson-content {
  padding: 19px 21px 0;
}
.lesson-head-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.lesson-head-row h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 6px 0 0;
}
.lesson-heading-meta {
  font-size: 9px;
  color: #9aa0aa;
  margin-top: 6px;
}
.lesson-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lesson-body {
  font-size: 11px;
  line-height: 1.65;
  color: #626a76;
  white-space: pre-wrap;
  margin: 15px 0 0;
}
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 740px;
  margin: 15px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f4f8;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6f819d;
  font-size: 10px;
}
.video-placeholder svg {
  width: 25px;
  height: 25px;
}
.video-placeholder a {
  color: #3478f6;
  text-decoration: none;
}
.video-placeholder a:hover {
  text-decoration: underline;
}
.thread-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #eff0f3;
  color: #707783;
  font-size: 10px;
  font-weight: 650;
}
.thread-title-row svg {
  width: 14px;
  height: 14px;
}
.messages {
  padding: 4px 0 9px;
  max-height: 390px;
  overflow: auto;
}
.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 0;
}
.message + .message {
  border-top: 1px solid #f2f3f5;
}
.message-avatar {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}
.message-avatar.owner {
  background: #e8e4ff;
  color: #6556a8;
}
.message-body {
  min-width: 0;
  flex: 1;
}
.message-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 1px 0 6px;
}
.message-author {
  font-size: 10px;
  font-weight: 650;
}
.message-role {
  font-size: 8.5px;
  color: #9da3ad;
}
.message-date {
  margin-left: auto;
  color: #aab0b8;
  font-size: 8.5px;
}
.message-text {
  color: #606773;
  font-size: 10.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.composer-wrap {
  padding: 0 0 17px;
}
.composer {
  border: 1px solid #e7e9ed;
  border-radius: 11px;
  box-shadow: 0 3px 11px rgba(27, 39, 61, 0.04);
  overflow: hidden;
  background: #fff;
}
.composer textarea {
  border: 0;
  width: 100%;
  resize: vertical;
  min-height: 60px;
  padding: 11px 12px 5px;
  font-size: 10.5px;
  line-height: 1.5;
  outline: 0;
  color: #39404a;
}
.composer textarea::placeholder {
  color: #a5aab2;
}
.composer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 8px 12px;
}
.composer-hint {
  color: #a5aab2;
  font-size: 8.5px;
}
.send-button {
  border: 0;
  border-radius: 8px;
  background: #3478f6;
  color: white;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
}
.send-button:hover {
  background: #2368e8;
}
.send-button svg {
  width: 12px;
  height: 12px;
}
.locked-card {
  margin: 14px 21px 20px;
  padding: 12px 13px;
  border: 1px dashed #e3e6eb;
  border-radius: 10px;
  background: #fafbfc;
  color: #9198a2;
  font-size: 9.5px;
  line-height: 1.5;
}
.locked-card strong {
  color: #747c88;
}
.general-layout {
  display: grid;
  grid-template-columns: minmax(245px, 330px) minmax(0, 1fr);
  min-height: 480px;
  overflow: hidden;
}
.general-list {
  border-right: 1px solid var(--line);
  padding: 16px 10px;
}
.general-thread-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 11px 10px;
  margin: 2px 0;
}
.general-thread-item:hover {
  background: #f8f9fb;
}
.general-thread-item.selected {
  background: #f0f5fd;
}
.general-thread-item strong {
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.general-thread-item p {
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #9097a2;
  margin: 6px 0 0;
}
.general-detail {
  padding: 17px 21px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.general-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.general-detail-head h2 {
  font-size: 15px;
  margin: 0;
}
.general-detail-head p {
  font-size: 9px;
  color: #9aa0aa;
  margin: 5px 0 0;
}
.general-messages {
  flex: 1;
  overflow: auto;
  min-height: 220px;
}
.move-select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 9px;
  color: #737985;
  background: #fff;
}
.empty-list {
  padding: 28px 10px;
  text-align: center;
  color: #a2a7b0;
  font-size: 10px;
  line-height: 1.5;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(24, 31, 43, 0.28);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(475px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 25px 70px rgba(18, 29, 49, 0.2);
  padding: 21px;
}
.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
}
.modal h2 {
  font-size: 16px;
  margin: 0;
}
.modal p {
  color: #959ba5;
  font-size: 10px;
  margin: 6px 0 0;
}
.field {
  display: block;
  margin: 13px 0;
}
.field span {
  display: block;
  color: #707782;
  font-size: 9.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #e6e8ec;
  border-radius: 9px;
  padding: 9px 10px;
  outline: 0;
  font-size: 10.5px;
  color: #343a44;
  background: #fff;
}
.field textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #8bb2ff;
  box-shadow: 0 0 0 3px #3478f616;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
}
.modal-actions .primary-button {
  font-size: 10.5px;
  padding: 9px 12px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-help {
  font-size: 9px !important;
  color: #9aa0aa !important;
  line-height: 1.45;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #252b35;
  color: #fff;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 10px;
  box-shadow: 0 8px 25px #1113;
  transition: all 0.2s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 220px;
    flex-basis: 220px;
  }
  .main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .initiative-layout {
    grid-template-columns: minmax(210px, 265px) minmax(0, 1fr);
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .note-card {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 205px;
    flex-basis: 205px;
  }
  .initiative-grid {
    grid-template-columns: 1fr;
  }
  .initiative-layout {
    display: flex;
    flex-direction: column;
  }
  .lessons-panel,
  .lesson-view {
    width: 100%;
  }
  .lessons-panel {
    flex: none;
  }
  .lesson-view {
    min-height: 340px;
  }
  .lesson-empty {
    min-height: 300px;
  }
  .general-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .general-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 220px;
    overflow: auto;
  }
  .general-detail {
    min-height: 350px;
  }
}
.navigation-backdrop {
  display: none;
}
@media (max-width: 600px) {
  .app {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 8;
    inset: 0 auto 0 0;
    width: min(280px, 85vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 10px 0 35px rgba(20, 30, 48, 0.12);
  }
  body.nav-open .sidebar {
    transform: translateX(0);
  }
  body.nav-open .navigation-backdrop {
    display: block;
    position: fixed;
    z-index: 7;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #1f273340;
  }
  .main {
    padding: 0 13px 18px;
  }
  .topbar {
    min-height: 62px;
  }
  .mobile-menu {
    display: grid;
    margin-left: -5px;
  }
  .crumb {
    margin-right: auto;
  }
  .profile {
    display: none;
  }
  .view-toggle {
    font-size: 9px;
    padding: 7px 8px;
  }
  .screen {
    padding-top: 21px;
  }
  .page-head {
    align-items: center;
    margin-bottom: 16px;
  }
  .page-head h1 {
    font-size: 21px;
  }
  .subtitle {
    font-size: 10.5px;
  }
  .primary-button {
    font-size: 10px;
    padding: 9px 10px;
    gap: 6px;
  }
  .content-card {
    border-radius: 13px;
  }
  .initiative-overview {
    padding: 15px;
  }
  .overview-title-row h1 {
    font-size: 17px;
  }
  .overview-description {
    font-size: 10.5px;
  }
  .overview-actions {
    flex-wrap: wrap;
  }
  .lesson-content {
    padding: 15px 14px 0;
  }
  .lesson-head-row {
    display: block;
  }
  .lesson-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .lesson-head-row h2 {
    font-size: 15px;
  }
  .general-detail {
    padding: 14px;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .general-card {
    padding: 13px;
  }
  .initiative-card {
    padding: 14px;
  }
  .crumb-row {
    margin-top: 0;
  }
  .modal {
    padding: 17px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
.initiative-overview {
  padding: 20px 22px 22px;
}
.overview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.overview-title-row h1 {
  font-size: 21px;
}
.overview-meta {
  margin: 8px 0 17px;
}
.overview-actions {
  padding-top: 1px;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}
.intro-gallery {
  min-width: 0;
}
.media-stage {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16/10;
  min-height: 220px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf0f8, #f6f8fb);
  position: relative;
  display: grid;
  place-items: center;
}
.media-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-stage iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  background: #111;
}
.media-stage-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #929aa6;
  font-size: 10px;
}
.media-stage-empty svg {
  width: 27px;
  height: 27px;
  color: #7794bc;
}
.media-thumbnails {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 10px 1px 2px;
}
.media-thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 53px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  background: #f1f3f6;
}
.media-thumb.selected {
  border-color: #3478f6;
  box-shadow: 0 0 0 2px #3478f61a;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-thumb.video {
  background: linear-gradient(145deg, #202a39, #536987);
  color: white;
  display: grid;
  place-items: center;
}
.media-thumb.video svg {
  width: 20px;
  height: 20px;
}
.media-thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 3px 3px;
  color: #fff;
  font-size: 7px;
  line-height: 1;
  background: linear-gradient(transparent, #111a);
}
.intro-copy {
  border: 1px solid #edf0f4;
  background: #fbfcfe;
  border-radius: 13px;
  padding: 18px 19px;
  min-width: 0;
}
.intro-copy h2 {
  font-size: 12px;
  margin: 0 0 12px;
  color: #404753;
}
.intro-copy > .initiative-intro-title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
  color: #252b34;
  overflow-wrap: anywhere;
}
.initiative-intro-summary {
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  color: #505a68;
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.initiative-intro-divider {
  border: 0;
  border-top: 1px solid #e3e7ed;
  margin: 18px 0;
}
.intro-rich-text {
  font-size: 11px;
  line-height: 1.72;
  color: #68717d;
  overflow-wrap: anywhere;
}
.intro-rich-text > *:first-child {
  margin-top: 0;
}
.intro-rich-text > *:last-child {
  margin-bottom: 0;
}
.intro-rich-text p {
  margin: 0 0 11px;
}
.intro-rich-text ul,
.intro-rich-text ol {
  padding-left: 18px;
}
.intro-rich-text a {
  color: #3478f6;
}
.intro-rich-text h2,
.intro-rich-text h3 {
  font-size: 13px;
  color: #424a56;
  margin: 14px 0 7px;
}
.overview-empty-copy {
  color: #a0a6af;
  font-size: 10px;
  font-style: italic;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border: 1px solid #e6e8ec;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #f8f9fb;
}
.editor-toolbar button {
  min-width: 29px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid #e5e8ed;
  border-radius: 6px;
  background: #fff;
  color: #59616d;
  font-size: 10px;
}
.rich-editor {
  min-height: 120px;
  max-height: 250px;
  overflow: auto;
  border: 1px solid #e6e8ec;
  border-radius: 0 0 9px 9px;
  padding: 10px;
  font-size: 10.5px;
  line-height: 1.55;
  outline: 0;
  color: #343a44;
}
.rich-editor:focus {
  border-color: #8bb2ff;
  box-shadow: 0 0 0 3px #3478f616;
}
.rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #a5aab2;
}
.gallery-editor {
  border: 1px solid #e9ebef;
  border-radius: 11px;
  padding: 10px;
  margin: 8px 0;
  background: #fbfcfe;
}
.gallery-editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-editor-row + .gallery-editor-row {
  margin-top: 8px;
}
.gallery-editor-row .field {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.gallery-editor-row .field span {
  font-size: 8.5px;
}
.gallery-editor-row input,
.gallery-editor-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  padding: 8px;
  font-size: 9.5px;
  background: #fff;
}
.gallery-editor-row .remove-media {
  border: 0;
  background: transparent;
  color: #a0a6af;
  border-radius: 7px;
  width: 27px;
  height: 27px;
}
.gallery-editor .embed-field {
  margin: 9px 0 0;
}
.gallery-editor .embed-field textarea {
  min-height: 66px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}
.add-media {
  margin-top: 6px;
}
.modal {
  width: min(700px, 100%);
}
.overview-description {
  display: none;
}
@media (max-width: 820px) {
  .overview-columns {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
    gap: 15px;
  }
  .media-stage {
    min-height: 190px;
  }
}
@media (max-width: 680px) {
  .overview-columns {
    grid-template-columns: 1fr;
  }
  .media-stage {
    aspect-ratio: 16/10;
    min-height: 180px;
  }
  .intro-copy {
    padding: 15px;
  }
  .overview-heading {
    display: block;
  }
  .overview-actions {
    margin-top: 12px;
  }
}
.sidebar-module-nav {
  padding-top: 20px;
}
.sidebar-module-nav .workspace-label {
  padding-bottom: 9px;
}
.module-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.module-nav-item {
  border: 0;
  background: transparent;
  color: #626975;
  padding: 9px 9px;
  border-radius: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  min-width: 0;
}
.module-nav-item:hover {
  background: #f6f7f9;
}
.module-nav-item.selected {
  background: #edf3ff;
  color: #2368df;
  font-weight: 600;
}
.module-nav-copy {
  min-width: 0;
  flex: 1;
}
.module-nav-title {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.module-nav-type {
  font-size: 8px;
  color: #a0a6af;
  display: block;
  margin-top: 3px;
}
.module-nav-item.selected .module-nav-type {
  color: #6e91c8;
}
.module-empty {
  padding: 7px 9px;
  color: #a0a6af;
  font-size: 10px;
  line-height: 1.45;
}
.client-mode .client-head,
.client-mode #client-list {
  display: none;
}
.client-mode .sidebar-note {
  display: none;
}
.initiative-layout.client-mode {
  grid-template-columns: minmax(0, 1fr);
}
.client-mode #screen .dashboard-bottom {
  display: none;
}
.module-category + .module-category {
  margin-top: 15px;
}
.category-toggle {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 5px 10px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9299a4;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
}
.category-toggle:hover {
  color: #58616e;
}
.category-chevron {
  font-size: 14px;
  transition: transform 0.16s;
}
.category-toggle[aria-expanded="false"] .category-chevron {
  transform: rotate(-90deg);
}
.module-category .module-list[hidden] {
  display: none;
}
.lesson-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 15px;
}
.lesson-accordion-head {
  width: 100%;
  padding: 15px 17px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--ink);
}
.lesson-accordion {
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(28, 39, 62, 0.03);
}
.lesson-accordion.open {
  border-color: #dbe4f1;
}
.lesson-accordion-title {
  flex: 1;
  min-width: 0;
}
.lesson-accordion-title strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.lesson-accordion-title small {
  display: block;
  color: #9aa0aa;
  font-size: 9px;
  margin-top: 4px;
}
.lesson-accordion-chevron {
  color: #9da4ae;
  font-size: 14px;
  transition: transform 0.16s;
}
.lesson-accordion.open .lesson-accordion-chevron {
  transform: rotate(180deg);
}
.lesson-accordion.locked .lesson-accordion-head {
  cursor: default;
  opacity: 0.72;
}
.lesson-accordion-content {
  padding: 0 17px 16px;
}
.lesson-accordion-content .lesson-body {
  margin: 0 0 13px;
}
.lesson-accordion-content .video-wrap {
  margin: 0 0 14px;
}
.lesson-comments {
  border-top: 1px solid #eff0f3;
  padding-top: 12px;
}
.lesson-comments-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #707783;
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 4px;
}
.lesson-comments-head svg {
  width: 14px;
  height: 14px;
}
.lesson-comments .messages {
  max-height: none;
  padding: 0 0 4px;
}
.lesson-comments .message {
  padding: 11px 0;
}
.lesson-comments .composer-wrap {
  padding: 7px 0 0;
}
.lesson-comments .empty-list {
  padding: 12px 5px;
  text-align: left;
}
.lesson-comments .composer-hint {
  font-size: 9px;
}
.lesson-comments .send-button {
  font-size: 9.5px;
}
.module-page-head {
  padding: 2px 1px 0;
  margin: 4px 0 13px;
}
.module-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.module-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.module-page-meta {
  display: flex;
  gap: 7px;
  margin: 8px 0 0 1px;
  color: #9aa0aa;
  font-size: 9.5px;
}
.module-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 17px;
}
.module-tabs [role="tab"] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px 11px;
  border: 0;
  background: transparent;
  color: #858c97;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.module-tabs [role="tab"]:hover {
  color: #424a56;
}
.module-tabs [role="tab"].selected {
  color: #276de5;
}
.module-tabs [role="tab"].selected:after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #3478f6;
}
.module-tab-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #f0f2f5;
  color: #7e8691;
  font-size: 8.5px;
}
.module-tab-panel[hidden] {
  display: none;
}
.module-tab-panel .initiative-overview {
  container-type: inline-size;
  padding: 17px;
}
.module-tab-panel .overview-columns {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}
.module-tab-panel .lesson-accordion-list {
  margin-top: 0;
}
@media (max-width: 680px) {
  .module-page-head {
    margin-top: 1px;
  }
  .module-title-row h1 {
    font-size: 18px;
  }
  .module-tab-panel .overview-columns {
    grid-template-columns: 1fr;
  }
  .module-tab-panel .initiative-overview {
    padding: 12px;
  }
}
.lesson-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
  margin: 0 0 16px;
}
.lesson-intro-layout.media-only,
.lesson-intro-layout.text-only {
  grid-template-columns: minmax(0, 1fr);
}
.lesson-intro-media.video-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 16/9;
}
.lesson-intro-copy.lesson-body {
  margin: 0;
  min-width: 0;
}
.lesson-intro-layout.text-only .lesson-intro-copy {
  max-width: 760px;
}
.lesson-comments {
  clear: both;
}
.lesson-view .lesson-intro-layout {
  margin: 14px 0 17px;
}
.lesson-accordion-content .lesson-intro-layout {
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .lesson-intro-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
.workspace-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: -5px 11px 12px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.workspace-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4c535e;
  font-size: 12px;
  font-weight: 650;
}
.workspace-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9aa0aa;
  font-size: 9px;
}
.task-page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.tasks-board {
  padding: 19px 20px;
}
.task-section + .task-section {
  margin-top: 25px;
}
.task-section .section-head {
  margin-bottom: 8px;
}
.task-list {
  display: flex;
  flex-direction: column;
}
.task-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 15px 4px;
  border-top: 1px solid #f0f1f3;
}
.task-check {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  cursor: pointer;
}
.task-check input {
  position: absolute;
  inset: 0;
  width: 19px;
  height: 19px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.task-checkmark {
  position: absolute;
  inset: 0;
  border: 1.5px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
  pointer-events: none;
}
.task-check input:focus-visible + .task-checkmark {
  outline: 3px solid #3478f63b;
  outline-offset: 2px;
}
.task-check input:checked + .task-checkmark {
  border-color: #43a477;
  background: #43a477;
}
.task-check input:checked + .task-checkmark:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.task-copy {
  min-width: 0;
}
.task-copy h3 {
  margin: 0;
  color: #414853;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.task-copy p {
  margin: 5px 0 8px;
  color: #818894;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.task-meta {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #a2a8b0;
  font-size: 9px;
}
.task-meta strong {
  font-weight: 600;
  color: #727a86;
}
.task-state {
  padding: 4px 7px;
  border-radius: 10px;
  background: #f3f5f7;
  color: #9299a3;
  font-size: 8.5px;
}
.task-row.completed .task-copy h3 {
  text-decoration: line-through;
  color: #9299a3;
}
.task-row.completed .task-state {
  background: #eaf6ef;
  color: #32845f;
}
.task-empty {
  padding: 16px 4px;
  color: #a0a6af;
  font-size: 10px;
}
.completed-task-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
@media (max-width: 600px) {
  .workspace-identity {
    margin-bottom: 10px;
  }
  .task-page-head {
    display: block;
  }
  .task-page-actions {
    margin-top: 12px;
  }
  .tasks-board {
    padding: 14px;
  }
  .task-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
  }
  .task-state {
    grid-column: 2;
    justify-self: start;
    margin-top: -3px;
  }
}
.client-home {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 18px;
}
.welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 25px;
  align-items: center;
  padding: 18px;
  margin-bottom: 24px;
}
.welcome-video {
  aspect-ratio: 16/9;
  min-height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: #202a39;
}
.welcome-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.welcome-copy {
  padding: 8px 13px 8px 0;
}
.welcome-kicker {
  display: block;
  color: #6b91ce;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.welcome-copy h2 {
  font-size: 20px;
  letter-spacing: -0.55px;
  margin: 0;
  color: #303641;
}
.welcome-copy p {
  font-size: 11px;
  line-height: 1.65;
  color: #777f8b;
  margin: 10px 0 0;
}
.welcome-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.welcome-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.text-button {
  border: 0;
  background: transparent;
  color: #9299a3;
  padding: 6px 0;
  font-size: 10px;
}
.text-button:hover,
.welcome-reopen:hover {
  color: #3478f6;
}
.welcome-reopen {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #7e8794;
  padding: 0 0 18px;
  font-size: 10px;
}
.welcome-reopen svg {
  width: 15px;
  height: 15px;
}
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 22px;
}
.home-heading h1 {
  font-size: 25px;
  line-height: 1.1;
  margin: 0;
  font-weight: 680;
  letter-spacing: -0.8px;
}
.home-heading .subtitle {
  font-size: 11px;
}
.home-new-count {
  padding: 6px 10px;
  border-radius: 20px;
  background: #edf4ff;
  color: #3478f6;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
.home-section {
  margin-top: 22px;
}
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}
.home-section-head h2 {
  font-size: 14px;
  letter-spacing: -0.2px;
  margin: 0;
}
.home-section-head p {
  font-size: 10px;
  color: #969ca6;
  margin: 4px 0 0;
}
.home-updates {
  padding: 2px 16px;
  background: #fff;
  border: 1px solid #e9ebef;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(28, 39, 62, 0.03);
}
.home-update {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 1px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: transparent;
  text-align: left;
}
.home-update:last-child {
  border-bottom: 0;
}
.home-update:hover .home-update-copy strong {
  color: #3478f6;
}
.home-update-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.home-update-icon svg {
  width: 15px;
  height: 15px;
}
.home-update-icon.task {
  background: #eef8f2;
  color: #3a936a;
}
.home-update-icon.inbox {
  background: #f1f5fc;
  color: #638bc8;
}
.home-update-icon.reply {
  background: #f2efff;
  color: #7865bd;
}
.home-update-icon.content {
  background: #fff5e8;
  color: #b27c2f;
}
.home-update-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.home-update-copy strong {
  font-size: 10.5px;
  font-weight: 650;
  color: #454c57;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-update-copy small {
  font-size: 9px;
  color: #9aa0aa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-update-arrow {
  font-size: 19px;
  line-height: 1;
  color: #b0b5bd;
}
.home-empty {
  padding: 16px 2px;
  color: #969da8;
  font-size: 10px;
  line-height: 1.5;
}
.home-section + .home-section {
  margin-top: 21px;
}
@media (max-width: 760px) {
  .welcome-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 14px;
  }
  .welcome-video {
    min-height: 0;
  }
  .welcome-copy {
    padding: 0 3px 4px;
  }
  .welcome-copy h2 {
    font-size: 18px;
  }
  .home-heading h1 {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .welcome-card {
    margin-bottom: 20px;
  }
  .welcome-actions {
    gap: 10px;
    margin-top: 13px;
  }
  .welcome-actions a {
    font-size: 9px;
  }
  .home-section {
    margin-top: 18px;
  }
  .home-updates {
    padding: 2px 11px;
  }
  .home-update {
    gap: 9px;
    padding: 11px 0;
  }
  .home-update-copy strong {
    font-size: 10px;
  }
  .home-heading {
    margin-bottom: 17px;
  }
}
.overview-actions {
  margin: 0 0 16px;
}
.lesson-list-head {
  align-items: center;
  margin-bottom: 9px;
}
.lesson-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lesson-accordion.owner-draggable.dragging {
  opacity: 0.45;
}
.lesson-accordion.owner-draggable.drag-over {
  outline: 2px dashed #7fa9ee;
  outline-offset: 2px;
}
.owner-draggable .lesson-grip {
  touch-action: none;
  cursor: grab;
  color: #c0c4cb;
  width: 12px;
  flex: 0 0 12px;
  font-size: 13px;
  letter-spacing: -3px;
  line-height: 1;
}
.owner-draggable .lesson-grip:active {
  cursor: grabbing;
}
.lesson-owner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 13px 0 5px;
}
.lesson-status-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b929e;
  font-size: 9px;
}
.lesson-status-control .move-select {
  font-size: 9px;
}
.lesson-accordion-content > .lesson-owner-actions + .lesson-comments,
.lesson-accordion-content > .lesson-owner-actions + .locked-card {
  margin-top: 10px;
}
.all-workspaces-item {
  border: 0;
  background: transparent;
  color: #626975;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  width: 100%;
  text-align: left;
  margin: 0 0 4px;
}
.all-workspaces-item:hover {
  background: #f6f7f9;
}
.all-workspaces-item.selected {
  background: #edf3ff;
  color: #2368df;
  font-weight: 600;
}
.all-workspaces-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f1f3;
  color: #838995;
}
.all-workspaces-icon svg {
  width: 15px;
  height: 15px;
}
.all-workspaces-item.selected .all-workspaces-icon {
  background: #dce9ff;
  color: #3478f6;
}
.client-mode .client-head,
.client-mode #client-list,
.client-mode #all-workspaces {
  display: none;
}
.task-workspace-label {
  font-size: 9px;
  color: #8995a6;
  margin-bottom: 4px;
}
.thread-workspace {
  display: block;
  color: #9098a4;
  font-size: 8px;
  margin: 5px 0 0;
}
.auth-screen {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 13% 8%, #e7f0ff 0, transparent 32%),
    linear-gradient(135deg, #f5f7fa, #eef1f6);
}
.auth-window {
  width: min(1050px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(42, 59, 88, 0.13);
}
.auth-form-panel {
  padding: 47px clamp(30px, 6vw, 66px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.auth-brand .brand-mark {
  width: 35px;
  height: 35px;
}
.auth-heading {
  margin: 57px 0 25px;
}
.auth-kicker {
  color: #7e91ae;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
}
.auth-heading h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.1;
  margin: 10px 0 8px;
  color: #242c38;
}
.auth-heading p {
  color: #8b94a2;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.auth-form .field {
  margin: 0 0 14px;
}
.auth-form .field span {
  color: #6b7482;
  font-size: 10px;
}
.auth-form .field input {
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 12px;
  background: #fbfcfd;
}
.auth-submit {
  width: 100%;
  margin-top: 3px;
  padding: 12px 14px;
  justify-content: center;
  font-size: 12px;
}
.auth-submit span {
  margin-left: auto;
  font-size: 17px;
  line-height: 12px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px;
  color: #a0a7b2;
  font-size: 9px;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: #edf0f4;
  flex: 1;
}
.auth-demo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.auth-demo-buttons .secondary-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  text-align: left;
  min-width: 0;
  border-radius: 10px;
}
.auth-demo-buttons .secondary-button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.auth-demo-buttons strong,
.auth-demo-buttons small {
  display: block;
}
.auth-demo-buttons strong {
  font-size: 9px;
  color: #555e6b;
}
.auth-demo-buttons small {
  font-size: 8px;
  color: #9ba3af;
  margin-top: 3px;
}
.demo-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}
.owner-demo {
  background: #e8e4ff;
  color: #6556a8;
}
.client-demo {
  background: #e3f2eb;
  color: #43836e;
}
.demo-arrow {
  font-size: 17px;
  color: #a3aab4;
}
.auth-note {
  text-align: center;
  color: #a5abb4;
  font-size: 8px;
  margin: 14px 0 0;
}
.auth-art {
  position: relative;
  overflow: hidden;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(155deg, #152a47 0%, #18375f 53%, #2360a4 100%);
  color: #fff;
}
.auth-art:before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  right: -290px;
  top: -230px;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  box-shadow:
    0 0 0 55px #ffffff08,
    0 0 0 110px #ffffff06;
}
.auth-art-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #5ba6ff30;
  filter: blur(48px);
  right: 2%;
  bottom: 8%;
}
.auth-art-top,
.auth-art-footer {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff9c;
  font-size: 8px;
  letter-spacing: 1.1px;
}
.auth-art-mark {
  width: 31px;
  height: 31px;
  border: 1px solid #ffffff50;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  letter-spacing: -1px;
}
.auth-art-content {
  z-index: 1;
  max-width: 370px;
  margin: 10px auto;
  width: 100%;
}
.auth-art-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b8d6fb;
  font-size: 9px;
}
.auth-art-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72c5a3;
  box-shadow: 0 0 0 4px #72c5a320;
}
.auth-art-content h2 {
  font-size: 37px;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 17px 0 10px;
}
.auth-art-content > p {
  max-width: 290px;
  color: #ffffffa8;
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 25px;
}
.auth-mini-card {
  padding: 14px 15px;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  background: #ffffff12;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px #08182c40;
}
.auth-mini-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.auth-mini-head > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.auth-mini-head strong,
.auth-mini-head small {
  display: block;
}
.auth-mini-head strong {
  font-size: 10px;
}
.auth-mini-head small {
  font-size: 8px;
  color: #ffffff8e;
  margin-top: 4px;
}
.auth-mini-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ffffff1b;
  color: #c6dcff;
}
.auth-mini-card .unread-dot {
  background: #7db5ff;
  box-shadow: 0 0 0 3px #7db5ff26;
}
.auth-mini-line {
  height: 5px;
  width: 77%;
  border-radius: 5px;
  background: #ffffff25;
  margin: 17px 0 7px 38px;
}
.auth-mini-line.short {
  width: 48%;
  margin-top: 0;
}
.auth-mini-foot {
  border-top: 1px solid #ffffff1b;
  margin-top: 13px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffffffb0;
  font-size: 8px;
}
.auth-mini-avatar {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e4f3ee;
  color: #43836e;
  font-size: 7px;
  font-weight: 700;
}
.auth-mini-time {
  margin-left: auto;
  color: #ffffff70;
}
.account-area {
  position: relative;
}
.profile {
  border: 0;
  cursor: pointer;
}
.account-menu {
  position: absolute;
  z-index: 6;
  right: 0;
  top: 42px;
  width: 210px;
  padding: 7px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 13px;
  box-shadow: 0 15px 40px #1d2b421f;
}
.account-menu-person {
  padding: 9px 10px 10px;
  border-bottom: 1px solid #eff1f4;
  margin-bottom: 5px;
}
.account-menu-person strong,
.account-menu-person span {
  display: block;
}
.account-menu-person strong {
  font-size: 10px;
  color: #343b46;
}
.account-menu-person span {
  font-size: 8px;
  color: #9aa1ac;
  margin-top: 4px;
}
.account-menu > button {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  color: #68717e;
  font-size: 10px;
}
.account-menu > button:hover {
  background: #f4f6f9;
}
.account-menu > button.account-logout {
  color: #b35757;
}
.account-settings {
  max-width: 740px;
  display: grid;
  gap: 14px;
}
.account-card {
  padding: 20px;
}
.account-card h2 {
  font-size: 13px;
  margin: 0 0 5px;
}
.account-card > p {
  font-size: 10px;
  color: #9299a4;
  margin: 0 0 15px;
}
.account-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.account-profile-grid .field {
  margin: 0;
}
.account-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #eff1f4;
  color: #7f8793;
  font-size: 10px;
}
.account-security-row span {
  line-height: 1.5;
}
.account-return {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .auth-screen {
    padding: 16px;
  }
  .auth-window {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 520px;
  }
  .auth-art {
    display: none;
  }
  .auth-form-panel {
    padding: 34px 30px;
  }
  .auth-heading {
    margin: 42px 0 22px;
  }
}
@media (max-width: 430px) {
  .auth-screen {
    padding: 0;
    background: #fff;
  }
  .auth-window {
    border: 0;
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }
  .auth-form-panel {
    padding: 30px 22px;
  }
  .auth-demo-buttons {
    grid-template-columns: 1fr;
  }
  .account-profile-grid {
    grid-template-columns: 1fr;
  }
}
.workspace-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.save-error {
  position: fixed;
  z-index: 200;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 560px;
  width: 90%;
  padding: 22px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 50px #18294444;
  border: 1px solid #e3a44d;
}
.save-error p {
  font-size: 13px;
  line-height: 1.5;
}
.saving::after {
  content: "Saving…";
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 8px 16px;
  background: #263c64;
  color: white;
  border-radius: 10px;
  font: 12px system-ui;
  z-index: 100;
}
.auth-form-panel > .text-button {
  margin-top: 15px;
}
.member-status p {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lesson-intro-media.video-wrap:has(.intro-gallery) {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.lesson-intro-media .media-stage {
  aspect-ratio: 16/9;
}
.client-workspace-select {
  max-width: 100%;
}

/* Files, initiative tasks and conversations */
.module-tabs { overflow-x: auto; }
.module-tabs > button { flex-shrink: 0; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 18px; }
.asset-card { padding: 24px; min-width: 0; }
.asset-icon { width: 44px; height: 44px; border-radius: 12px; background: #edf3ff; color: #3873dc; display: grid; place-items: center; font-size: 23px; margin-bottom: 16px; }
.asset-card h2 { font-size: 17px; margin: 12px 0; overflow-wrap: anywhere; }
.asset-card p { font-size: 14px; color: #6e7683; white-space: pre-wrap; }
.asset-card small,.attachment-row small { color: #89919c; }
.asset-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 20px; }
.file-download { border: 0; background: none; color: #3268c6; font: inherit; cursor: pointer; text-align: left; text-decoration: none; overflow-wrap: anywhere; padding: 0; }
.file-download:hover { text-decoration: underline; }
.update-attachments { padding: 20px 0; border-top: 1px solid #edf0f4; }
.update-attachments h3,.attachment-editor h3 { font-size: 14px; margin: 0 0 14px; }
.attachment-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #f6f8fb; border-radius: 10px; margin: 8px 0; overflow-wrap: anywhere; }
.attachment-row p { margin: 6px 0; color: #7a8290; font-size: 13px; }
.attachment-row .text-button { margin-left: auto; flex-shrink: 0; }
.file-mark { color: #4c7bd5; font-size: 24px; }
.attachment-editor { padding: 18px 0; }
.file-upload-label { display: inline-flex; position: relative; padding: 10px 16px; background: #edf3ff; border-radius: 10px; color: #3769bd; cursor: pointer; font-size: 13px; }
.file-upload-label input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-upload-label:focus-within { outline: 2px solid #386bdd; outline-offset: 3px; }
.conversation-thread { padding: 22px; margin-bottom: 18px; }
.conversation-update { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #edf0f4; }
.nested-reply { margin-left: 24px; padding-left: 16px; border-left: 2px solid #e7edf7; }
.nested-reply .nested-reply { margin-left: 8px; }
.reply-context { display: block; color: #8490a0; font-size: 12px; margin-bottom: 8px; }
.comment-reply { font-size: 12px; margin-top: 8px; }
.compact-composer { margin-top: 12px; }
.task-meta { flex-wrap: wrap; }
.task-initiative-link { margin-left: 8px; }
@media(max-width:640px) { .conversation-thread { padding: 15px; } .nested-reply { margin-left: 8px; padding-left: 8px; } .asset-grid { grid-template-columns: 1fr; } }

.delete-control { color: #b65258; font-size: 12px; flex-shrink: 0; }
.delete-control:hover { color: #9d2830; }
.danger-button { background: #c4434e; color: white; border: none; border-radius: 9px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.delete-summary { padding: 16px; background: #fff4f4; border-radius: 10px; font-weight: 600; }
.module-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lesson-accordion-content > .delete-control { margin-bottom: 16px; }
.asset-preview { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #f0f3f8; margin-bottom: 18px; border: 1px solid #e9edf3; }
.asset-preview img { width: 100%; height: 100%; object-fit: contain; background: white; }
.asset-preview-placeholder { color: #7890b3; background: white; border: 1px solid #e0e7f1; padding: 20px 16px; border-radius: 10px; font-size: 17px; font-weight: 650; }

.account-card .field small {
  color: #9299a4;
  font-size: 10px;
  line-height: 1.5;
}

/* Workspace reference page: local preview proposal. */
.business-preview-note { display:flex; align-items:center; gap:9px; color:#8b929e; font-size:11px; margin:-9px 0 19px; }
.business-preview-pill { color:#526b94; background:#eaf0fa; border-radius:6px; padding:4px 7px; font-size:10px; font-weight:600; }
.business-identity { display:flex; align-items:center; gap:17px; padding:23px 25px; margin-bottom:18px; }
.business-avatar { width:57px; height:57px; border-radius:17px; display:grid; place-items:center; font-size:19px; font-weight:650; flex-shrink:0; }
.business-identity-copy { flex:1; }
.business-identity h2 { font-size:19px; letter-spacing:-.4px; margin:0 0 5px; }
.business-identity p { max-width:620px; color:#858c97; font-size:12px; line-height:1.7; margin:0; }
.business-website { display:flex; align-items:center; gap:15px; text-decoration:none; white-space:nowrap; }
.business-reference-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:18px; margin-bottom:18px; }
.business-details, .business-public, .business-platforms { padding:23px 25px; }
.business-details .section-head, .business-public .section-head, .business-platforms .section-head { margin-bottom:22px; }
.business-facts { display:grid; grid-template-columns:1fr 1fr; gap:23px 30px; margin:0; }
.business-facts dt { color:#9299a4; font-size:10px; margin-bottom:7px; }
.business-facts dd { margin:0; color:#424b58; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.business-facts a { color:#3971bc; text-decoration:none; }
.business-facts a:hover { text-decoration:underline; }
.business-fact-wide { grid-column:1/-1; }
.business-missing { color:#a7adb6; }
.business-public-links { display:grid; gap:5px; }
.business-link { display:flex; align-items:center; gap:12px; padding:12px 10px; border-radius:11px; text-decoration:none; color:inherit; transition:background .15s,border-color .15s; min-width:0; }
.business-link:hover { background:#f3f6fb; }
.business-link-icon { width:35px; height:35px; flex-shrink:0; display:grid; place-items:center; border-radius:10px; background:#f0f3f8; color:#6f829f; }
.business-link-icon svg { width:19px; height:19px; }
.business-link-copy { display:flex; flex-direction:column; min-width:0; gap:5px; flex:1; }
.business-link-copy strong { font-size:12px; font-weight:600; color:#424b58; }
.business-link-copy > span { font-size:10px; line-height:1.5; color:#9299a4; overflow-wrap:anywhere; }
.business-external { color:#9aa5b5; font-size:17px; }
.business-platform-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.platform-link { padding:17px 14px; border:1px solid #edf0f4; }
.platform-link:hover { border-color:#d4dfef; }
.platform-icon { background:#eaf1fd; color:#5982ba; }
.business-access-note { margin:20px 0 0; padding-top:16px; border-top:1px solid #edf0f4; font-size:10px; color:#939aa6; line-height:1.6; }
.business-empty { font-size:12px; color:#939aa6; }
.business-link-editor { padding:15px; border:1px solid #e6eaf0; border-radius:12px; margin-bottom:12px; }
.business-link-editor-head { display:flex; gap:10px; align-items:center; }
.business-link-editor-head .field { flex:1; min-width:0; }
.business-link-editor .field { margin-top:0; }
.business-link-editor .field:last-child { margin-bottom:0; }
.business-optional { color:#9299a4; font-weight:400; }
@media (max-width:1100px) { .business-platform-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:800px) { .business-reference-grid { grid-template-columns:1fr; } .business-identity { flex-wrap:wrap; } .business-website { margin-left:74px; } }
@media (max-width:520px) { .business-platform-grid { grid-template-columns:1fr; } .business-facts { grid-template-columns:1fr; } .business-preview-note { align-items:flex-start; line-height:1.6; } .business-preview-pill { white-space:nowrap; } .business-identity, .business-details, .business-public, .business-platforms { padding:19px; } .business-identity-copy { flex-basis:calc(100% - 74px); } }

.business-link-icon:has(.business-service-logo) {
  background: #fff;
  border: 1px solid #edf0f4;
}
.business-service-logo {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mail-status-row { display:flex; justify-content:space-between; gap:24px; padding:18px 0; border-top:1px solid var(--line, #e8ebf0); }
.mail-status-row > div:first-child { min-width:0; overflow-wrap:anywhere; }
.mail-status-row p { margin:8px 0; color:var(--muted, #7e8797); font-size:13px; }
.mail-status-row > div:last-child { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.mail-status-row summary { cursor:pointer; font-size:13px; }
.mail-status-row .mail-reply-text { white-space:pre-wrap; color:inherit; }
.mail-status-page .content-card, .mail-settings-card { padding:24px; margin-bottom:20px; }
.mail-status-page h2, .mail-settings-card h2 { font-size:16px; margin:0 0 12px; letter-spacing:-0.3px; }
.mail-status-page .content-card > p, .mail-settings-card p { color:var(--muted, #7e8797); font-size:13px; line-height:1.6; }
.mail-status-row .task-state { margin:0; }
.mail-status-row strong { font-size:14px; }

.general-thread-title { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.general-thread-title .unread-dot { flex-shrink: 0; }
.general-thread-date { flex-shrink: 0; color: var(--muted); font-size: 9.5px; font-weight: 400; white-space: nowrap; }

.conversation-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.conversation-move { position: relative; }
.conversation-move-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 5; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #1f27331a; width: min(280px, 65vw); }
.conversation-move-menu .move-select { width: 100%; }

.inbox-back { display: none; }
@media (max-width: 600px) {
  .general-layout { overflow: hidden; }
  .general-layout .general-list { max-height: none; border-bottom: 0; }
  .general-layout .general-detail { display: none; }
  .general-layout.conversation-open .general-list { display: none; }
  .general-layout.conversation-open .general-detail { display: flex; padding: 16px; animation: inbox-slide-in 0.22s ease-out; }
  .inbox-back { display: flex; align-items: center; gap: 3px; align-self: flex-start; margin-bottom: 16px; min-height: 36px; }
  .inbox-back svg { width: 20px; height: 20px; }
}
@keyframes inbox-slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .general-layout.conversation-open .general-detail { animation: none; } }

.general-thread-meta { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.general-thread-chevron { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }

#general-reply-form .composer-bottom { justify-content: flex-end; }

.general-thread-item.is-read .general-thread-title { font-weight: 400; }
.general-thread-item.is-unread .general-thread-title { font-weight: 700; }

.workspace-danger-zone { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.workspace-delete-button { background: #b42318; }
.workspace-delete-button:hover { background: #912018; }

.update-acknowledgement { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.update-acknowledgement p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.update-acknowledgement.confirmed { color: #18754c; background: #f0faf5; }

.update-acknowledgement-button { margin: 18px 0; }

.conversation-context { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }

/* Shared business branding keeps wide logos legible and conversation icons compact. */
.business-image { display:flex; align-items:center; justify-content:center; width:100%; height:100%; overflow:hidden; border-radius:inherit; }
.business-image img { display:block; width:100%; height:100%; object-fit:contain; }
.business-avatar:has([data-business-image]) { width:112px; height:72px; background:transparent !important; }
.client-avatar .business-image img { padding:3px; }
.message-avatar .business-image img { object-fit:cover; }
.business-branding-preview { width:96px; height:72px; margin-bottom:10px; border-radius:12px; background:#f4f6fa; }
.business-branding-editor { margin-bottom:20px; }

/* Stack the overview based on its available space, including sidebar width. */
@container (max-width: 700px) {
  .overview-columns,
  .module-tab-panel .overview-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 950px) {
  .overview-columns,
  .module-tab-panel .overview-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

.media-stage .business-image img { object-fit:cover; }
.media-thumb .business-image img { object-fit:cover; }
[data-gallery-upload-status] { font-size:12px; color:#68717d; overflow-wrap:anywhere; }

.initiative-tab-icon { display:inline-flex; flex-shrink:0; width:16px; height:16px; }
.initiative-tab-icon svg { width:100%; height:100%; }

/* Text-only client overviews use the entire content card. */
.overview-columns.overview-text-only,
.module-tab-panel .overview-columns.overview-text-only {
  grid-template-columns: minmax(0, 1fr);
}

/* Comfortable desktop reading sizes across client communication views. */
@media (min-width: 681px) {
  .intro-rich-text,
  .lesson-body,
  .message-text,
  .composer textarea,
  .rich-editor,
  .initiative-description,
  .business-identity p,
  .welcome-copy p,
  .home-heading .subtitle,
  .home-section-head p,
  .home-update-copy strong,
  .home-update-copy small,
  .home-empty,
  .overview-empty-copy,
  .lesson-accordion-title strong,
  .general-thread-item strong,
  .message-author {
    font-size: 15px;
    line-height: 1.65;
  }
  .intro-rich-text h2 { font-size: 20px; line-height: 1.4; }
  .intro-rich-text h3 { font-size: 18px; line-height: 1.4; }
  .home-section-head h2 { font-size: 18px; }
}

.owner-profile-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.owner-icon-card { padding: 24px; margin-bottom: 20px; }
.owner-icon-editor { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.owner-icon-preview { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 18px; overflow: hidden; background: #edf3ff; color: #3478f6; font-size: 22px; }
.owner-icon-editor p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 680px) { .owner-icon-editor { align-items: flex-start; flex-direction: column; } }

.profile:has(.owner-profile-image) { padding: 0; overflow: hidden; }

.update-confirmation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.update-confirmation-actions .update-acknowledgement-button { margin-bottom: 0; }

/* Personal Inbox archive folders */
.inbox-folders { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; width: fit-content; background: #e9edf3; border-radius: 11px; }
.inbox-folders button { border: 0; background: transparent; color: var(--muted, #697386); border-radius: 8px; padding: 8px 16px; font: inherit; font-size: 13px; cursor: pointer; }
.inbox-folders button.active { background: white; color: var(--text, #252b34); box-shadow: 0 1px 4px #15223814; font-weight: 600; }
.inbox-folders button:focus-visible { outline: 2px solid #3275f5; outline-offset: 2px; }
.general-detail-head > :first-child { min-width: 0; overflow-wrap: anywhere; }
.general-detail-head > .conversation-tools { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
  .general-detail-head { flex-wrap: wrap; }
  .general-detail-head > .conversation-tools { width: 100%; justify-content: flex-start; }
}

.activity-status-group { display: grid; gap: 12px; min-width: 0; }
.activity-completed-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.activity-completed-section > .section-head { margin-bottom: 0; }

.archived-initiative-nav { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.archived-initiative-nav summary { cursor: pointer; color: #7a8392; font-size: 12px; padding: 8px; }
.archived-initiative-nav summary span { margin-left: 6px; }
.initiative-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* Update media stays compact; the dialog provides the full-size viewer. */
.lesson-intro-layout.update-thumbnail-layout.has-media { grid-template-columns: minmax(0,1fr) 180px; }
.update-media-thumbnails { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-content:start; width:180px; justify-self:end; }
.update-media-thumbnail { position:relative; border:1px solid var(--line); background:#edf1f7; border-radius:10px; padding:0; aspect-ratio:1; overflow:hidden; cursor:pointer; min-width:0; }
.update-media-thumbnail > img,.update-media-thumbnail > .business-image,.update-media-thumbnail .business-image img { display:block; width:100%; height:100%; object-fit:cover; }
.update-video-thumbnail { display:grid; place-items:center; height:100%; color:#3979d2; }
.update-video-thumbnail svg { width:30px; height:30px; }
.update-media-caption { position:absolute; inset:auto 0 0; padding:5px 6px; background:#182131b8; color:white; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.update-media-thumbnail:focus-visible { outline:3px solid #3275f5; outline-offset:3px; }
.update-lightbox { width:min(1000px,94vw); max-width:94vw; max-height:92vh; border:0; border-radius:16px; padding:14px; background:#111821; color:white; box-shadow:0 24px 90px #0008; }
.update-lightbox::backdrop { background:#07101bd9; }
.update-lightbox header,.update-lightbox footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.update-lightbox header { margin-bottom:12px; font-size:14px; }
.update-lightbox button { cursor:pointer; border:1px solid #ffffff40; background:#ffffff15; color:white; padding:8px 14px; border-radius:8px; font:inherit; }
.update-lightbox [data-lightbox-close] { font-size:24px; padding:2px 12px; }
.update-lightbox footer { margin-top:12px; }
.update-lightbox footer[hidden] { display:none; }
.update-lightbox-stage { height:min(68vh,650px); display:flex; align-items:center; justify-content:center; min-height:180px; }
.update-lightbox-stage > img,.update-lightbox-stage > .business-image,.update-lightbox-stage .business-image img { display:block; max-width:100%; max-height:100%; width:100%; height:100%; object-fit:contain; }
.update-lightbox-stage iframe { width:100%; height:100%; border:0; }
body.media-viewer-open { overflow:hidden; }
@media(max-width:760px){.lesson-intro-layout.update-thumbnail-layout.has-media{grid-template-columns:minmax(0,1fr);} .update-media-thumbnails{width:min(100%,260px);grid-template-columns:repeat(3,minmax(0,1fr));justify-self:end;} .update-lightbox-stage{height:60vh;} }

.message-file-picker { padding: 8px 0; display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; font-size:12px; }
.composer .message-file-picker { padding: 8px 12px 10px; }
.message-file-picker .message-attach-control { position:relative; display:inline-flex; align-items:center; gap:5px; color:#7c8695; cursor:pointer; border-radius:4px; }
.message-attach-control svg { width:15px; height:15px; flex-shrink:0; }
.message-attach-control:hover { color:#3971bc; }
.message-attach-control:focus-within { outline:2px solid #3971bc; outline-offset:4px; }
.message-file-picker input[type="file"] { position:absolute; width:1px; height:1px; padding:0; border:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.message-file-picker small,.message-file-picker p { color:#9aa2af; font-size:11px; margin:0; overflow-wrap:anywhere; }
.message-file-picker p { flex-basis:100%; }
.message-file-picker p:empty { display:none; }
.message-attachments { margin-top:10px; }
.message-attachments small { display:block; font-size:12px; color:#788292; }

.message-move-button { display:block; margin-top:7px; font-size:11px; color:#8993a1; }

/* Conversation image attachments share the full media lightbox. */
.message-attachments { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; }
.message-attachments .attachment-row { flex-basis:100%; }
.message-image-attachment { display:block; width:160px; max-width:100%; padding:0; border:0; border-radius:10px; background:transparent; cursor:zoom-in; }
.message-image-attachment .asset-preview { margin:0; border-radius:10px; }
.message-image-attachment:hover .asset-preview { border-color:#8aaee9; }
.message-image-attachment:focus-visible { outline:2px solid #3971bc; outline-offset:3px; }

.update-video-thumbnail { position:relative; overflow:hidden; }
.update-video-thumbnail > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.update-video-thumbnail svg { position:relative; z-index:1; }
.update-video-thumbnail.has-video-thumbnail svg { color:white; background:#172233b3; border-radius:50%; padding:5px; width:34px; height:34px; filter:drop-shadow(0 1px 3px #0006); }

.message-text a { color:var(--blue, #2769cf); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }

.lesson-body a { color:var(--blue, #2769cf); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
