@import url("/static/fonts.css");
.prose figure {
  margin: 20px 0;
}
.prose figcaption {
  font:
    12px/1.6 Arial,
    sans-serif;
  color: #707c74;
  margin-top: 8px;
}
:root {
  --bg: #f6f5f0;
  --paper: #fff;
  --ink: #243730;
  --muted: #707c74;
  --green: #244f40;
  --line: #e3e7df;
  --soft: #eef2e8;
  --gold: #dcb96e;
  --radius: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 Arial,
    Helvetica,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c1a558;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.6px;
}
h1 {
  font-size: 38px;
  line-height: 1.18;
}
h2 {
  font-size: 27px;
  line-height: 1.3;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  flex-shrink: 0;
}
button,
.button {
  border: 0;
  border-radius: 9px;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.subtle {
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}
.danger {
  background: #f8e7e3;
  color: #933e32;
}
.small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.9px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.brand {
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.9px;
  color: var(--green);
  display: block;
  line-height: 1.1;
}
.brand span {
  display: block;
  font:
    10px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-top: 8px;
}
.logo-icon {
  display: flex;
  gap: 11px;
  align-items: center;
}
.logo-icon img {
  height: 37px;
  width: 37px;
}
.sidebar {
  position: fixed;
  width: 236px;
  top: 0;
  bottom: 0;
  left: 0;
  background: #eeeee6;
  border-right: 1px solid #e0e3d9;
  padding: 33px 22px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar nav {
  margin-top: 42px;
  display: grid;
  gap: 7px;
}
.navitem {
  justify-content: flex-start;
  background: transparent;
  color: #6f786f;
  font-size: 14px;
  font-weight: 400;
  width: 100%;
  gap: 12px;
}
.navitem.active {
  color: var(--green);
  background: #dee5d7;
  font-weight: 600;
}
.sidebar-note {
  border-top: 1px solid #dce0d4;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-note b {
  display: block;
  color: var(--green);
  margin-bottom: 7px;
  font-weight: 500;
}
.user {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.avatar {
  border-radius: 50%;
  background: #d7ddcc;
  color: var(--green);
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  font:
    16px Georgia,
    serif;
}
.user small {
  font-size: 10px;
}
.user b {
  font-size: 12px;
  display: block;
}
.workspace {
  margin-left: 236px;
  min-height: 100vh;
}
.topbar {
  height: 81px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fafaf6;
  gap: 15px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #889186;
  max-width: 440px;
  flex: 1;
}
.searchbox input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 13px;
  padding: 9px;
}
.private {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.private svg {
  height: 15px;
  width: 15px;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 37px 42px 90px;
}
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}
.pagehead p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
}
.hero {
  border-radius: var(--radius);
  background: #244c40;
  color: #f3f4e9;
  min-height: 210px;
  padding: 30px 34px;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.hero h2 {
  font-size: 29px;
  max-width: 490px;
}
.hero p {
  font-size: 13px;
  line-height: 1.7;
  color: #c0cec2;
  margin: 13px 0 20px;
  max-width: 550px;
}
.hero .eyebrow {
  color: #a9c0aa;
}
.hero .button {
  background: #f0efdf;
  color: var(--green);
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  width: 26%;
  position: relative;
}
.book {
  position: absolute;
  width: 90px;
  height: 130px;
  border: 1px solid #9aa991;
  background: #627a5f;
  border-radius: 3px 9px 9px 3px;
  transform: rotate(14deg);
  box-shadow: 8px 8px 0 #173e35;
  right: 25px;
  top: 28px;
}
.book:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  top: 26px;
  background: #c4bd90;
}
.book.second {
  background: #c0ac76;
  transform: rotate(-14deg);
  right: 95px;
  top: 39px;
  border-color: #d1c096;
}
.book.second:after {
  content: "Знания,\Aкоторые\Aостаются";
  white-space: pre;
  position: absolute;
  top: 40px;
  left: 13px;
  color: #3c4e37;
  font:
    14px/1.5 Georgia,
    serif;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 23px 0 31px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat .stat-icon {
  width: 37px;
  height: 37px;
  background: #f1f3eb;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #677d57;
}
.stat strong {
  font:
    27px Georgia,
    serif;
  display: block;
  line-height: 1.2;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.section-head h2 {
  font-size: 25px;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}
.filters button {
  min-height: 32px;
  padding: 5px 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.filters button.active {
  background: #e6ecdf;
  color: var(--green);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.course-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #203b3010;
}
.course-cover {
  height: 140px;
  background: #e9ecdf;
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 22px;
  align-items: flex-start;
  justify-content: space-between;
}
.cover-1 {
  background: #e8ebdd;
}
.cover-2 {
  background: #e9e2d7;
}
.cover-3 {
  background: #e0e7e7;
}
.course-cover > span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #56644f;
  z-index: 1;
}
.cover-mark {
  font:
    100px Georgia,
    serif;
  position: absolute;
  right: 24px;
  bottom: -30px;
  color: #81916b66;
  letter-spacing: -20px;
}
.cover-lines {
  height: 180px;
  width: 180px;
  position: absolute;
  border: 1px solid #b5bfa5;
  border-radius: 50%;
  right: -20px;
  top: -35px;
  box-shadow:
    0 0 0 18px #b5bfa522,
    0 0 0 36px #b5bfa515;
}
.card-body {
  padding: 23px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}
.card-body h3 {
  font:
    21px/1.3 Georgia,
    serif;
}
.card-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.card-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  margin-top: auto;
}
.progress-track {
  height: 4px;
  background: #eef0e8;
  border-radius: 4px;
  overflow: hidden;
  margin: 5px 0;
}
.progress-track i {
  display: block;
  height: 100%;
  background: #889c70;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.card-foot button {
  padding: 0;
  background: none;
  color: var(--green);
  min-height: 26px;
}
.add-card {
  min-height: 320px;
  border: 1px dashed #cfd6c5;
  border-radius: var(--radius);
  background: #f3f4ed;
  color: var(--muted);
  flex-direction: column;
  text-align: center;
  padding: 30px;
  font-weight: 400;
}
.add-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}
.add-card strong {
  font:
    21px Georgia,
    serif;
  color: var(--ink);
}
.add-card span {
  max-width: 230px;
  font-size: 12px;
  line-height: 1.7;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 23px;
  margin-top: 30px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.panel h3 {
  margin-bottom: 13px;
}
.notice {
  background: #eef1e7;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 12px;
  color: #60705a;
  line-height: 1.7;
  margin: 15px 0;
}
.notice strong {
  display: block;
  color: var(--green);
  font-weight: 600;
}
.empty {
  padding: 35px 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fafbf7;
}
.empty h3 {
  font:
    22px Georgia,
    serif;
  color: var(--ink);
  margin-bottom: 9px;
}
.empty p {
  font-size: 13px;
  max-width: 440px;
  margin: 0 auto 15px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef1e8;
  color: #617451;
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
}
.pill:before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.pill.waiting,
.pill.draft {
  background: #f2eee5;
  color: #9b8052;
}
.pill.working,
.pill.review {
  background: #eaf0f4;
  color: #5b7c8e;
}
.pill.slides {
  background: #f3ecdc;
  color: #9b7c32;
}
.pill.verified {
  background: #e4efdf;
  color: #527647;
}
.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border: 0;
}
.row-icon {
  height: 40px;
  width: 36px;
  background: #f1f3ed;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #768965;
}
.row-text {
  min-width: 0;
  flex: 1;
}
.row-text b {
  font-size: 13px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.row-text small {
  font-size: 11px;
  display: block;
  margin-top: 3px;
}
.row .actions {
  flex-shrink: 0;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 23px;
  overflow: auto;
}
.tabs button {
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  border-bottom-color: var(--green);
  color: var(--green);
}
.course-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.tree-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f0f2e9;
  padding: 17px 11px;
  position: sticky;
  top: 20px;
}
.tree-panel .eyebrow {
  padding: 0 10px;
}
.tree {
  display: grid;
  gap: 3px;
}
.tree a {
  padding: 7px 9px;
  border-radius: 7px;
  display: flex;
  gap: 7px;
  color: #66705f;
  font-size: 11px;
  line-height: 1.5;
  align-items: flex-start;
}
.tree a:hover {
  background: #e3e9db;
  text-decoration: none;
}
.tree a.selected {
  background: white;
  color: var(--green);
  font-weight: 600;
  box-shadow: 0 2px 6px #00000006;
}
.tree a svg {
  height: 13px;
  width: 13px;
  margin-top: 2px;
}
.tree .indent {
  margin-left: 11px;
  border-left: 1px solid #dbe1d2;
  padding-left: 6px;
}
.node-title {
  font-size: 28px;
}
.node-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}
.compact {
  padding: 18px 22px;
}
.node-list .row a {
  font-size: 13px;
  font-weight: 500;
}
.prose {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.prose h1 {
  font-size: 32px;
}
.prose h2 {
  font-size: 27px;
  margin: 30px 0 13px;
}
.prose h3 {
  font-size: 19px;
  margin: 23px 0 10px;
}
.prose p {
  margin: 0 0 15px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  display: block;
  overflow: auto;
}
.prose th,
.prose td {
  padding: 9px 12px;
  border: 1px solid var(--line);
}
.prose th {
  background: var(--soft);
}
.prose pre {
  overflow: auto;
  background: #f2f4ee;
  padding: 12px;
  white-space: pre-wrap;
}
.prose blockquote {
  border-left: 3px solid #93aa7e;
  margin: 20px 0;
  padding: 7px 20px;
  background: #f3f5ee;
  color: #64705e;
}
.reader {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 37px;
  max-width: 900px;
  margin: auto;
}
.reader h1 {
  margin: 14px 0 18px;
}
.reader-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.outline {
  background: #f6f7f1;
  padding: 17px 20px;
  border-radius: 9px;
  margin: 23px 0;
}
.outline a {
  display: block;
  font-size: 12px;
  padding: 3px 0;
}
.share-page {
  max-width: 870px;
  margin: 45px auto;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.share-page .brand {
  margin-bottom: 40px;
}
.share-page .actions {
  margin: 25px 0;
}
.share-page .prose {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #244c40;
  color: #fff;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.login-story h1 {
  font-size: 52px;
  max-width: 440px;
  margin: 35px 0 22px;
  line-height: 1.14;
}
.login-story p {
  color: #bdcdbb;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.8;
}
.login-story .eyebrow {
  color: #b5c5a8;
}
.login-story .brand {
  color: white;
}
.login-story .brand span {
  color: #a8bba5;
}
.login-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.login-box {
  width: 100%;
  max-width: 360px;
}
.login-box h2 {
  font-size: 32px;
}
.login-box > p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 28px;
}
.login-box button {
  width: 100%;
  margin-top: 8px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  text-align: left;
}
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d9dfd1;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 14px;
  min-height: 43px;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field small {
  font-size: 11px;
}
.field textarea.editor {
  min-height: 320px;
  font: 13px/1.7 monospace;
}
.field-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.error {
  color: #a04a3b;
  background: #fbefea;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  margin: 10px 0;
}
.error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 90vh;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 20px 100px #0002;
}
dialog::backdrop {
  background: #1e302c66;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 26px;
}
.modal-head button {
  background: transparent;
  color: var(--muted);
  padding: 4px;
  min-height: 30px;
}
.modal-body {
  padding: 24px 28px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100% - 40px);
  background: #244c40;
  color: #fff;
  box-shadow: 0 8px 28px #0003;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
}
#upload-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 236px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 15px 35px;
  z-index: 30;
  box-shadow: 0 -6px 20px #0001;
}
#upload-bar progress {
  width: 100%;
  height: 6px;
  accent-color: var(--green);
}
#upload-bar .row {
  padding: 0;
  border: 0;
}
.boot {
  display: grid;
  place-content: center;
  height: 100vh;
  font:
    30px Georgia,
    serif;
  text-align: center;
  color: var(--green);
}
.boot span {
  font:
    13px Arial,
    sans-serif;
  margin-top: 15px;
}
.check-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.check-row input {
  margin-top: 5px;
}
.source-note {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
}
.menu-toggle {
  display: none;
}
.mobile-close {
  display: none;
}
.storage-meter {
  height: 4px;
  background: #dfe5d7;
  margin-top: 10px;
  border-radius: 3px;
}
.storage-meter i {
  height: 100%;
  display: block;
  background: #879c74;
}
.search-results {
  display: grid;
  gap: 12px;
}
.rule-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
  color: #5c6b5d;
  max-height: 220px;
  overflow: auto;
}
.dropzone {
  padding: 30px;
  text-align: center;
  border: 1px dashed #b6c4a9;
  border-radius: 12px;
  background: #f3f6ed;
  cursor: pointer;
}
.dropzone input {
  max-width: 100%;
  font-size: 12px;
}
.dropzone p {
  margin: 8px 0 15px;
  font-size: 12px;
  color: var(--muted);
}
.reading-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.success {
  color: #3c713f;
}
.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wrap {
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .content {
    padding-top: 45px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 210px;
  }
  .content {
    padding: 28px 25px 85px;
  }
  .topbar {
    padding: 0 25px;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat .stat-icon {
    display: none;
  }
  .course-layout {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 18px;
  }
  #upload-bar {
    left: 210px;
  }
  .hero-art {
    min-width: 150px;
  }
  .book.second {
    right: 66px;
  }
  .book {
    right: 0;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 31px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    transition: transform 0.2s;
    box-shadow: 20px 0 70px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-close {
    display: flex;
    position: absolute;
    right: 8px;
    top: 6px;
    padding: 5px;
    background: transparent;
    color: var(--green);
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
  }
  .menu-toggle {
    display: flex;
    background: transparent;
    color: var(--green);
    padding: 5px;
  }
  .private {
    font-size: 0;
    gap: 0;
  }
  .private svg {
    width: 18px;
    height: 18px;
  }
  .searchbox {
    max-width: initial;
  }
  .searchbox input {
    font-size: 12px;
  }
  .content {
    padding: 25px 18px 90px;
  }
  .pagehead {
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 23px;
  }
  .pagehead > button {
    min-height: 38px;
    padding: 8px 13px;
  }
  .pagehead p {
    font-size: 12px;
  }
  .hero {
    padding: 24px;
    min-height: 220px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero-art {
    display: none;
  }
  .hero p {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0 25px;
  }
  .stat {
    padding: 14px 16px;
    gap: 12px;
  }
  .stat .stat-icon {
    display: grid;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 10px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-cover {
    height: 126px;
  }
  .card-body {
    padding: 21px;
  }
  .add-card {
    min-height: 175px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
    gap: 18px;
  }
  .panel {
    padding: 20px;
  }
  .section-head h2 {
    font-size: 23px;
  }
  .course-layout {
    display: block;
  }
  .tree-panel {
    position: static;
    margin-bottom: 22px;
    max-height: 220px;
    overflow: auto;
  }
  .node-title {
    font-size: 26px;
  }
  .node-subhead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .row .actions {
    margin-left: auto;
  }
  .row-text {
    min-width: 180px;
  }
  .row .pill {
    margin-left: auto;
  }
  .reader {
    padding: 24px 19px;
  }
  .reader h1 {
    font-size: 29px;
  }
  .prose {
    font-size: 15px;
  }
  .prose h2 {
    font-size: 25px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 30px;
    min-height: 270px;
  }
  .login-story h1 {
    font-size: 33px;
    margin: 25px 0 14px;
  }
  .login-story p {
    font-size: 12px;
  }
  .login-story .eyebrow {
    display: none;
  }
  .login-main {
    padding: 35px 26px;
  }
  .login-box h2 {
    font-size: 28px;
  }
  .field-inline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-head {
    padding: 17px 20px;
  }
  .modal-head h2 {
    font-size: 23px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-foot {
    flex-wrap: wrap;
  }
  #upload-bar {
    left: 0;
    padding: 12px 18px;
  }
  .share-page {
    margin: 12px;
    padding: 22px 18px;
  }
  .rule-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 20px;
  }
  .breadcrumbs {
    font-size: 11px;
  }
  .pagehead h1 {
    overflow-wrap: anywhere;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
}

.tree-panel {
  max-height: calc(100vh - 50px);
  overflow: auto;
}
.tree summary {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 3px;
}
.tree summary:before {
  content: "›";
  font-size: 15px;
  color: #8c9a80;
  padding-top: 5px;
}
.tree details[open] > summary:before {
  transform: rotate(90deg);
  padding-left: 5px;
  padding-top: 0;
}
.tree summary a {
  flex: 1;
}
.tree summary::marker {
  content: "";
}
@media (max-width: 760px) {
  .tree-panel {
    max-height: 240px;
  }
}
