@font-face {
  font-family: Cabinet;
  src: local("Inter"), local("Arial");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #25282e;
  background: #f7f8fa;
  font:
    14px/1.5 Cabinet,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #b1a2f9;
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1px solid #dfe2e8;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  color: #25282e;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #cfc5ff;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.9px;
  line-height: 1.25;
  margin-bottom: 10px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
p {
  margin-bottom: 0;
}
small {
  font-size: 12px;
}
.muted,
.quiet-caption {
  color: #7c818d;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #858a96;
  margin-bottom: 11px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 242px;
  background: #fff;
  border-right: 1px solid #e9ebf0;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-icon {
  width: 33px;
  height: 35px;
  background: #6955d5;
  border-radius: 10px;
  color: white;
  font-size: 31px;
  line-height: 29px;
  display: grid;
  place-items: center;
  padding-bottom: 5px;
}
.beta {
  font-size: 9px;
  border: 1px solid #e4def8;
  border-radius: 4px;
  padding: 2px 4px;
  color: #8173b8;
  letter-spacing: 0;
  font-weight: 500;
  margin-top: 2px;
}
.workspace-block {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #e9ebf1;
  border-radius: 10px;
  padding: 12px 10px;
  margin: 31px 0;
}
.workspace-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f1edfc;
  color: #7761c9;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
}
.workspace-block strong {
  font-size: 12px;
  display: block;
  max-width: 134px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-block div > span {
  font-size: 10px;
  color: #969ba7;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: #989da9;
  margin: 0 12px 15px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  padding: 11px 13px;
  border-radius: 8px;
  color: #747985;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar nav a:hover {
  background: #f7f6fb;
}
.sidebar nav a.active {
  background: #eeebfa;
  color: #6e55cf;
  font-weight: 650;
}
.nav-icon {
  font-size: 19px;
  line-height: 1;
  width: 20px;
  text-align: center;
  font-weight: 400;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 42px;
}
.privacy-mark {
  font-size: 9px;
  color: #8e94a0;
  display: flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
  padding: 15px 0;
}
.privacy-mark i,
.environment i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8eb899;
  flex: none;
}
.account-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #eaedf2;
  gap: 10px;
  padding: 20px 0;
}
.account-row strong {
  font-size: 11px;
  display: block;
}
.account-row div > span {
  font-size: 10px;
  color: #9297a2;
}
.account-row form {
  margin-left: auto;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #9da1aa;
  padding: 6px;
}
.main-shell {
  margin-left: 242px;
  width: calc(100% - 242px);
}
.topbar {
  height: 75px;
  border-bottom: 1px solid #e8ebf1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  font-size: 11px;
  color: #9196a0;
  background: #fff;
}
.topbar strong {
  font-weight: 500;
  color: #646a76;
}
.slash {
  padding: 0 12px;
  color: #c8cbd3;
}
.environment {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #e8eaf0;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9px;
  color: #7b818d;
}
.main-content {
  padding: 39px 42px 30px;
  max-width: 1650px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 29px;
}
.page-heading .muted {
  font-size: 12px;
  line-height: 1.6;
}
.heading-dot {
  color: #8572d6;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #6b56cf;
  background: #6b56cf;
  border-radius: 8px;
  padding: 11px 16px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 38px;
}
.button:hover {
  background: #5c48be;
}
.button.secondary {
  background: #fff;
  color: #686e7a;
  border-color: #e0e3ea;
}
.button.secondary:hover {
  background: #f6f5fb;
}
.button.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 9px;
}
.small-button {
  border: 1px solid #dfe2e9;
  border-radius: 7px;
  background: #fff;
  padding: 7px 10px;
  font-size: 11px;
  color: #69707b;
}
.text-link {
  font-size: 11px;
  color: #7a66c9;
  font-weight: 550;
  background: none;
  border: 0;
  padding: 0;
}
.text-link:hover {
  text-decoration: underline;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.metric {
  background: white;
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 19px 21px;
}
.metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f8490;
  font-size: 11px;
}
.metric-symbol {
  font-size: 17px;
  color: #aea7c7;
}
.metric > strong {
  display: block;
  font-size: 33px;
  line-height: 1;
  margin: 16px 0 13px;
  font-weight: 600;
  letter-spacing: -1.5px;
}
.metric > strong small {
  font-size: 21px;
  margin-left: 4px;
  color: #9da2ad;
}
.metric p {
  font-size: 10px;
  color: #9a9faa;
}
.onboarding {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  background: #f0edf8;
  border: 1px solid #e6e0f2;
  border-radius: 13px;
  padding: 28px 30px;
  margin-bottom: 25px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e6e8ee;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1.2;
  color: #8a8f9b;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pill.lavender {
  background: #e6dff8;
  border-color: #e6dff8;
  color: #8270b8;
  font-size: 9px;
  letter-spacing: 1px;
}
.onboarding h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 13px 0 11px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.onboarding-intro > p {
  font-size: 11px;
  line-height: 1.8;
  color: #9290a0;
  max-width: 280px;
}
.setup-counter {
  display: block;
  font-size: 10px;
  color: #9f98b2;
  margin-top: 18px;
}
.setup-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.setup-step {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #dfd9ed;
}
.setup-step:last-child {
  border: 0;
}
.step-number {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #d8cfec;
  color: #9687b5;
  font-size: 11px;
}
.setup-step strong {
  font-size: 12px;
  font-weight: 600;
}
.setup-step p {
  font-size: 10px;
  color: #9a93ab;
  margin-top: 4px;
}
.setup-step > span:last-child {
  margin-left: auto;
  color: #a598be;
  font-size: 18px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  overflow: hidden;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 23px 24px;
  border-bottom: 1px solid #eef0f4;
}
.section-heading h2 {
  font-size: 15px;
  margin-bottom: 5px;
}
.section-heading > h2 {
  margin-bottom: 0;
}
.section-heading p {
  font-size: 10px;
  color: #9a9eaa;
}
.empty-state {
  text-align: center;
  padding: 65px 24px;
  color: #9399a4;
}
.empty-state h2,
.empty-state h3 {
  color: #5d6470;
  font-weight: 550;
}
.empty-state h2 {
  font-size: 21px;
}
.empty-state h3 {
  font-size: 13px;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.9;
  max-width: 560px;
  margin: auto;
}
.empty-state .button {
  margin-top: 23px;
}
.empty-state.compact {
  padding: 35px 20px 34px;
}
.empty-state.compact .button {
  margin-top: 18px;
  font-size: 10px;
  padding: 9px 13px;
  min-height: 33px;
}
.empty-icon {
  display: grid;
  place-items: center;
  background: #edf3ef;
  border: 1px solid #e7eee9;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  margin: 0 auto 16px;
  color: #a0b6a7;
  font-size: 23px;
}
.empty-icon.sand {
  background: #faf5ed;
  border-color: #f4ede2;
  color: #d1b894;
}
.empty-icon.lavender {
  background: #f1edfa;
  border-color: #ebe4f7;
  color: #ad9fcb;
}
.quiet-caption {
  font-size: 10px;
}
.empty-state .quiet-caption {
  display: block;
  margin-top: 22px;
  font-size: 9px;
  color: #b0b3bc;
}
.connection-strip {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e6e8ee;
  background: #fff;
  border-radius: 11px;
  padding: 19px 23px;
}
.tilda-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f4f2f0;
  border: 1px solid #e9e5e2;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-family: Georgia, serif;
  flex: none;
  color: #92908f;
}
.connection-strip strong {
  font-size: 11px;
  font-weight: 600;
}
.connection-strip p {
  font-size: 10px;
  color: #9a9eaa;
  margin-top: 3px;
}
.connection-strip > .text-link {
  margin-left: auto;
}
.main-shell footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #b0b4be;
  padding: 10px 42px 23px;
  max-width: 1650px;
  margin: auto;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #eaf0ed;
  color: #748d7b;
  border-radius: 50%;
  font-weight: 600;
  width: 37px;
  height: 37px;
  flex: none;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
  background: #efedf8;
  color: #8d7bc1;
}
.avatar.large {
  width: 65px;
  height: 65px;
  font-size: 25px;
}
.avatar.lavender {
  background: #f1ecfb;
  color: #8c78bd;
}
.person-row,
.dialog-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 24px;
  border-bottom: 1px solid #edf0f4;
}
.person-row:last-child,
.dialog-row:last-child {
  border-bottom: 0;
}
.person-row:hover,
.dialog-row:hover {
  background: #fafafd;
}
.person-row strong,
.dialog-row strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.person-row div > span,
.dialog-row p {
  display: block;
  font-size: 10px;
  color: #989da8;
  margin-top: 3px;
}
.person-row > .status,
.dialog-row > time {
  margin-left: auto;
}
.dialog-row > span:last-child {
  color: #b2a4d3;
}
.dialog-row time,
.event-row time {
  font-size: 10px;
  color: #9299a7;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 5px;
  background: #f1f2f5;
  color: #8a919c;
  font-size: 9px;
  white-space: nowrap;
}
.status.active,
.status.completed {
  background: #edf5ef;
  color: #7c9c83;
}
.status.paused,
.status.review {
  background: #faf3e8;
  color: #b69a6a;
}
.filterbar {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 20px 23px;
  border-bottom: 1px solid #eceff4;
}
.search-field {
  position: relative;
  max-width: 340px;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-field span {
  position: absolute;
  left: 12px;
  font-size: 22px;
  color: #a1a5b0;
}
.search-field input {
  width: 100%;
  padding-left: 38px;
  font-size: 11px;
  min-height: 38px;
}
.filterbar select {
  font-size: 11px;
  padding: 9px 12px;
  min-height: 38px;
}
.filterbar > .text-link {
  margin-left: auto;
  white-space: nowrap;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 9px;
  font-weight: 500;
  color: #949aa7;
  background: #fafbfc;
  padding: 13px 22px;
}
td {
  padding: 18px 22px;
  border-top: 1px solid #f0f2f5;
  color: #8d94a0;
}
.person-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 190px;
}
.person-cell strong {
  color: #565d69;
  font-size: 11px;
  display: block;
  font-weight: 550;
}
.person-cell small {
  font-size: 10px;
  color: #a2a7b1;
  display: block;
  margin-top: 3px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 17px 24px;
  color: #969dab;
  font-size: 10px;
}
.back-link {
  font-size: 11px;
  color: #9891ad;
  display: inline-block;
  margin-bottom: 24px;
}
.form-panel {
  max-width: 650px;
  padding: 28px;
}
.standard-form label {
  font-size: 12px;
  color: #707784;
  display: block;
  margin: 0 0 8px;
}
.standard-form p {
  margin-bottom: 22px;
}
.standard-form input:not([type="checkbox"]),
.standard-form select {
  width: 100%;
}
.standard-form input[type="checkbox"] {
  width: auto;
  accent-color: #6b56cf;
}
.standard-form .helptext {
  font-size: 10px;
  display: block;
  color: #989eaa;
  margin-top: 7px;
}
.standard-form .errorlist {
  font-size: 11px;
  color: #ba5d67;
  padding-left: 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #edf0f4;
}
.hint {
  margin-top: 22px;
  background: #f6f3fc;
  padding: 15px;
  border-radius: 8px;
  color: #9183b4;
  font-size: 11px;
}
.hint a {
  text-decoration: underline;
}
.notice {
  background: #edf5ef;
  border: 1px solid #ddebe1;
  border-radius: 9px;
  padding: 14px 18px;
  color: #64816b;
  font-size: 12px;
  margin-bottom: 20px;
}
.credentials {
  background: #fcf8ec;
  color: #8c7845;
  border-color: #efe2b9;
}
.credentials label {
  display: block;
  margin: 15px 0 7px;
  font-size: 11px;
}
.credentials input {
  width: 100%;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.course-card {
  padding: 20px;
}
.course-card:hover {
  border-color: #c3b6e9;
}
.course-art {
  display: grid;
  place-items: center;
  background: #f1edfa;
  color: #b3a3d3;
  height: 118px;
  border-radius: 7px;
  font-size: 45px;
  margin-bottom: 20px;
}
.course-card h2 {
  font-size: 17px;
  margin: 13px 0 10px;
}
.course-card > p {
  color: #969ba7;
  font-size: 11px;
  min-height: 50px;
}
.course-meta {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #a1a5b0;
  border-top: 1px solid #eff0f4;
  padding-top: 15px;
  margin-top: 17px;
}
.course-meta b {
  margin-left: auto;
  color: #927cbe;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}
.detail-grid .form-panel {
  width: 100%;
}
.lesson-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  border-bottom: 1px solid #eff0f4;
}
.lesson-item > div {
  min-width: 0;
}
.lesson-item strong {
  font-size: 12px;
  display: block;
}
.lesson-item p {
  font-size: 10px;
  color: #a0a5af;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.lesson-item code {
  font-size: 9px;
  color: #a297b4;
}
.lesson-item .status {
  margin-left: auto;
}
.info-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #f1eef9;
  border: 1px solid #e8e1f5;
  border-radius: 11px;
  padding: 23px;
  margin-bottom: 24px;
}
.info-banner strong {
  font-size: 13px;
  color: #7c6ca2;
}
.info-banner p {
  font-size: 11px;
  line-height: 1.7;
  color: #9a8fb0;
  margin-top: 7px;
}
.site-card {
  margin-bottom: 24px;
}
.site-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}
.site-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 26px;
}
.site-content h3 {
  font-size: 12px;
  margin-top: 23px;
}
.site-content h3:first-child {
  margin-top: 0;
}
.site-content p {
  font-size: 11px;
  color: #9399a5;
  line-height: 1.9;
}
.site-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f8fb;
  border: 1px solid #eceef3;
  border-radius: 8px;
  padding: 16px;
  font-size: 10px;
  line-height: 1.8;
  color: #8d81ac;
  margin: 15px 0;
}
.integration-status {
  border: 1px solid #edf0f5;
  background: #fafbfc;
  border-radius: 9px;
  padding: 20px;
  align-self: start;
  min-width: 0;
}
.integration-status > span {
  display: block;
  font-size: 10px;
  color: #adb1bc;
  margin-bottom: 8px;
}
.integration-status strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #7e8593;
  margin-bottom: 25px;
}
.integration-status code {
  display: block;
  font-size: 9px;
  color: #969ca8;
  overflow-wrap: anywhere;
}
.event-row {
  padding: 19px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f0f1f5;
}
.event-row:last-child {
  border: 0;
}
.event-row strong {
  font-size: 11px;
  color: #717987;
  font-weight: 500;
}
.event-row p {
  font-size: 10px;
  color: #a5abb6;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.event-row > time {
  margin-left: auto;
}
.student-heading {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 28px;
}
.student-heading h1 {
  font-size: 28px;
  margin-bottom: 6px;
}
.student-heading p {
  color: #9a9eaa;
  font-size: 11px;
}
.student-heading .status-form {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.status-form select {
  font-size: 10px;
  padding: 8px;
}
.student-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 24px;
}
.student-summary > div {
  max-width: 300px;
  flex: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.student-summary > div > span {
  font-size: 10px;
  color: #9b9faa;
}
.student-summary strong {
  font-size: 18px;
  font-weight: 600;
  color: #8b78ba;
}
.student-summary progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #eeebf5;
  overflow: hidden;
}
.student-summary progress::-webkit-progress-bar {
  background: #eeebf5;
}
.student-summary progress::-webkit-progress-value {
  background: #a794db;
}
.student-summary p {
  font-size: 11px;
  color: #9c9fad;
}
.student-summary > .pill {
  margin-left: auto;
}
.student-grid {
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.lesson-nav {
  display: flex;
  gap: 11px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f1f5;
  align-items: center;
}
.lesson-nav.selected {
  background: #f5f2fc;
}
.lesson-check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f2f1f6;
  color: #ada4be;
  font-size: 9px;
  flex: none;
}
.lesson-check.done {
  background: #eaf3ec;
  color: #90b097;
}
.lesson-nav small {
  font-size: 8px;
  color: #afa9bb;
  display: block;
}
.lesson-nav strong {
  font-size: 11px;
  display: block;
  font-weight: 550;
  margin: 4px 0;
}
.lesson-nav div > span {
  display: block;
  font-size: 9px;
  color: #aea5ba;
}
.enroll-form {
  padding: 22px;
}
.enroll-form label {
  font-size: 11px;
  display: block;
  color: #979aa6;
  margin-bottom: 9px;
}
.enroll-form select {
  width: 100%;
  font-size: 10px;
  padding: 9px;
  margin-bottom: 10px;
}
.lesson-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.progress-editor {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  gap: 14px;
}
.progress-editor label {
  font-size: 11px;
  color: #959ba6;
}
.progress-editor select {
  font-size: 11px;
  padding: 9px;
  flex: 1;
}
.inline-feedback {
  font-size: 11px;
  color: #a77b7b;
  padding: 0 22px 16px;
  min-height: 1px;
}
.inline-feedback:empty {
  padding: 0;
}
.notes-panel > textarea {
  width: calc(100% - 44px);
  margin: 20px 22px 0;
  font-size: 12px;
  border-color: #e9ebf1;
  line-height: 1.8;
}
.note-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px 20px;
}
.chat-history {
  padding: 22px;
  max-height: 450px;
  overflow-y: auto;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.chat-empty {
  text-align: center;
  margin: auto;
  color: #a3a8b2;
  font-size: 11px;
}
.chat-bubble {
  max-width: 85%;
  background: #f4f5f8;
  border-radius: 10px 10px 10px 2px;
  padding: 12px 14px;
  align-self: flex-start;
}
.chat-bubble.own {
  align-self: flex-end;
  background: #efebfa;
  border-radius: 10px 10px 2px 10px;
}
.chat-bubble strong {
  font-size: 9px;
  color: #9283b1;
  display: block;
  margin-bottom: 5px;
}
.chat-bubble p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #727785;
}
.chat-bubble time {
  display: block;
  font-size: 8px;
  color: #b0a8be;
  margin-top: 6px;
  text-align: right;
}
.message-form {
  display: flex;
  gap: 10px;
  padding: 18px 22px;
  border-top: 1px solid #f0f1f5;
  align-items: flex-end;
}
.message-form textarea {
  font-size: 12px;
  resize: vertical;
  line-height: 1.6;
}
.older-button {
  margin: 15px 22px 0;
}
.workspace-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.workspace-switch select {
  font-size: 9px;
  width: 130px;
  padding: 7px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-story {
  background: #f0edf8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 70px;
}
.login-story > .brand {
  font-size: 29px;
}
.login-story > div > h1 {
  font-size: 43px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -1.6px;
  color: #635582;
  margin: 20px 0;
}
.login-story > div > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  color: #a092b7;
}
.login-story > .muted {
  font-size: 10px;
  color: #b5a9c8;
}
.login-story .eyebrow {
  color: #b2a3c9;
}
.story-grid {
  display: flex;
  gap: 65px;
  margin-top: 55px;
}
.story-grid > div > span {
  font-size: 10px;
  color: #bcaed0;
  display: block;
  margin-bottom: 18px;
}
.story-grid strong {
  font-size: 12px;
  color: #9281ad;
  display: block;
  margin-bottom: 9px;
}
.story-grid p {
  font-size: 11px;
  color: #b1a4c5;
  line-height: 1.8;
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
}
.login-card {
  width: 100%;
  max-width: 340px;
}
.login-card h2 {
  font-size: 29px;
  letter-spacing: -0.7px;
  margin: 22px 0 10px;
}
.login-card > .muted {
  font-size: 12px;
}
.login-card form {
  margin-top: 30px;
}
.login-card label {
  display: block;
  font-size: 11px;
  color: #9599a4;
  margin: 17px 0 8px;
}
.login-card input {
  width: 100%;
  height: 43px;
}
.login-card button {
  margin-top: 27px;
  justify-content: space-between;
  font-size: 12px;
  height: 44px;
}
.login-note {
  border-top: 1px solid #e9ebf1;
  margin-top: 35px;
  padding-top: 22px;
}
.login-note strong {
  font-size: 11px;
  color: #9298a5;
  font-weight: 550;
}
.login-note p {
  font-size: 10px;
  line-height: 1.8;
  color: #acb1bb;
  margin-top: 6px;
}
.login-footer {
  font-size: 9px;
  color: #b9bec8;
  margin-top: 65px;
}
.form-error {
  padding: 13px;
  background: #fcf0f0;
  color: #bd8186;
  border-radius: 8px;
  font-size: 11px;
  margin-top: 22px;
}
.error-page {
  max-width: 600px;
  margin: 20vh auto;
  text-align: center;
  padding: 24px;
}
.error-page .button {
  margin-top: 25px;
}
@media (min-width: 1550px) {
  .main-content {
    padding-top: 49px;
  }
  .metric {
    padding: 25px;
  }
  .onboarding {
    padding: 35px 38px;
  }
  .empty-state.compact {
    padding: 48px 24px;
  }
  .sidebar {
    width: 260px;
    padding-inline: 25px;
  }
  .main-shell {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding-inline: 14px;
  }
  .main-shell {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .main-content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .main-shell footer {
    padding-inline: 24px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .onboarding {
    gap: 20px;
    grid-template-columns: 0.9fr 1.2fr;
    padding: 24px;
  }
  .metrics {
    gap: 11px;
  }
  .metric {
    padding: 16px;
  }
  .metric p {
    font-size: 9px;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-grid {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .filterbar {
    flex-wrap: wrap;
  }
  .student-summary {
    gap: 14px;
  }
  .student-summary > .pill {
    max-width: 170px;
  }
  .site-content {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .integration-status {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .integration-status strong {
    margin-bottom: 10px;
  }
  .login-story {
    padding: 40px;
  }
  .login-story > div > h1 {
    font-size: 36px;
  }
  .story-grid {
    gap: 30px;
  }
  .login-panel {
    padding: 35px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 15px;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #e5e8ee;
  }
  .app-shell {
    display: block;
  }
  .sidebar .brand {
    font-size: 22px;
  }
  .sidebar .beta,
  .workspace-block,
  .nav-label,
  .sidebar-bottom,
  .workspace-switch {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    margin-left: auto;
  }
  .sidebar nav a {
    padding: 7px 9px;
    font-size: 10px;
    gap: 5px;
  }
  .nav-icon {
    font-size: 15px;
    width: 16px;
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 52px;
  }
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dashboard-grid {
    gap: 15px;
  }
  .student-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .student-heading {
    flex-wrap: wrap;
  }
  .student-summary {
    flex-wrap: wrap;
  }
  .student-summary > .pill {
    margin: 0;
    max-width: 100%;
  }
  .student-summary > div {
    flex-basis: 220px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 0.9fr 1fr;
  }
  .login-story {
    padding: 30px;
  }
  .login-story > div > h1 {
    font-size: 30px;
  }
  .story-grid {
    flex-direction: column;
    gap: 20px;
    margin-top: 35px;
  }
  .story-grid p br {
    display: none;
  }
}
@media (max-width: 620px) {
  .sidebar {
    gap: 12px;
    padding: 17px 16px;
  }
  .sidebar nav {
    margin: 0;
    width: 100%;
    gap: 3px;
  }
  .sidebar nav a {
    font-size: 9px;
    padding: 6px 7px;
  }
  .sidebar nav a .nav-icon {
    display: none;
  }
  .topbar {
    padding: 0 16px;
    font-size: 9px;
  }
  .environment {
    font-size: 8px;
    padding: 3px 5px;
  }
  .topbar .slash {
    padding: 0 6px;
  }
  .main-content {
    padding: 26px 16px;
  }
  .page-heading {
    display: block;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .page-heading > .button,
  .page-heading > .actions {
    margin-top: 18px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 17px 16px;
  }
  .metric > strong {
    font-size: 30px;
  }
  .onboarding {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 23px;
  }
  .onboarding h2 {
    font-size: 24px;
  }
  .onboarding h2 br {
    display: none;
  }
  .onboarding-intro > p {
    max-width: 100%;
  }
  .setup-counter {
    margin-top: 12px;
  }
  .setup-step {
    padding: 16px 0;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-heading {
    padding: 20px;
  }
  .connection-strip {
    flex-wrap: wrap;
    padding: 20px;
    gap: 12px;
  }
  .connection-strip > div {
    flex: 1;
    min-width: 200px;
  }
  .connection-strip > .text-link {
    margin-left: 46px;
  }
  .main-shell footer {
    padding: 8px 16px 25px;
  }
  .main-shell footer > span {
    display: none;
  }
  .student-grid {
    grid-template-columns: 1fr;
  }
  .lesson-sidebar {
    max-height: 350px;
    overflow: auto;
  }
  .student-heading h1 {
    font-size: 24px;
  }
  .student-heading .status-form {
    margin: 0;
  }
  .student-summary {
    padding: 18px;
    gap: 16px;
  }
  .student-summary > div {
    max-width: none;
    flex-basis: 100%;
  }
  .student-summary p {
    font-size: 10px;
  }
  .student-summary .pill {
    font-size: 8px;
  }
  .filterbar {
    padding: 16px;
    gap: 10px;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .filterbar select {
    flex: 1;
  }
  .filterbar > .text-link {
    margin: 3px 0 0;
    font-size: 10px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .site-content {
    padding: 20px;
  }
  .site-heading .tilda-logo {
    display: none;
  }
  .site-card .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-panel {
    padding: 22px;
  }
  .info-banner {
    padding: 20px;
    align-items: flex-start;
  }
  .progress-editor {
    padding: 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .progress-editor label {
    width: 100%;
  }
  .progress-editor .button {
    font-size: 10px;
    padding-inline: 10px;
  }
  .message-form {
    padding: 16px;
    gap: 8px;
  }
  .message-form button {
    font-size: 10px;
    padding: 10px;
  }
  .chat-history {
    padding: 16px;
  }
  .note-actions {
    padding: 15px 16px;
  }
  .note-actions .quiet-caption {
    font-size: 9px;
  }
  .notes-panel > textarea {
    margin: 16px 16px 0;
    width: calc(100% - 32px);
  }
  .event-row {
    padding: 16px;
    gap: 10px;
    align-items: flex-start;
  }
  .event-row > time {
    font-size: 8px;
  }
  .event-row p {
    font-size: 9px;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    padding: 24px;
    background: #f0edf8;
  }
  .login-story > div,
  .login-story > .muted {
    display: none;
  }
  .login-panel {
    padding: 45px 26px;
  }
  .login-card {
    max-width: 380px;
  }
  .login-footer {
    margin-top: 35px;
  }
  .login-note {
    margin-top: 28px;
  }
  .page-heading > .actions .button {
    font-size: 10px;
  }
  .person-row {
    padding: 16px;
  }
  .student-heading .avatar.large {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .lesson-item {
    padding: 18px;
    gap: 10px;
  }
  .lesson-item .status {
    white-space: normal;
    font-size: 8px;
  }
}

/* Keep secondary text readable on the light admin surface. */
.muted,
.quiet-caption,
.section-heading p,
.metric p,
.connection-strip p,
.empty-state p,
.onboarding-intro > p {
  color: #78808e;
}
.setup-step p {
  color: #867d96;
}
.login-note p,
.login-card > .muted {
  color: #7d8490;
}

.mobile-logout {
  display: none;
}
.topbar > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.environment {
  flex: none;
}
@media (max-width: 850px) {
  .mobile-logout {
    display: block;
    margin-left: 12px;
  }
}
@media (max-width: 620px) {
  .topbar .environment {
    display: none;
  }
}
