@font-face {
  font-family: Montserrat;
  src: url("/ui/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/ui/montserrat-600.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --panel: #fff;
  --ink: #15181d;
  --muted: #5b6068;
  --line: #dedede;
  --orange: #ee9a5a;
  --orange-dark: #a64a0c;
  --lila: #a9a8dc;
  --lime: #d0fb85;
  --nav: #202329;
  --button-bg: #15181d;
  --button-ink: #fff;
  --button-hover: #343941;
  --lavender-panel: #ebe9f4;
  --cover: #deddeb;
  --cover-mark: #b6b3d4;
  --cover-light: #f8f6ff;
  --overview: #eae9f0;
  --sheet: #f7f7f9;
  --sheet-ink: #292d34;
  --success-bg: #eff6e5;
  --success-ink: #465a28;
  --neutral-bg: #efefef;
  --hint-bg: #f2f1f7;
  --new-bg: #f7f7f9;
  --error-ink: #9a211b;
  --error-bg: #fff0ee;
  --notice-bg: #fff4dc;
  --notice-line: #a66d08;
  --input-line: #bfc2c9;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17191f;
  --panel: #22252d;
  --ink: #f0f0f5;
  --muted: #b5b8c5;
  --line: #3d414e;
  --orange-dark: #f3ad78;
  --nav: #121419;
  --button-bg: #ee9a5a;
  --button-ink: #20170f;
  --button-hover: #f5b482;
  --lavender-panel: #2e2c40;
  --cover: #343149;
  --cover-mark: #514b70;
  --cover-light: #635e7b;
  --overview: #2e2c40;
  --sheet: #353344;
  --sheet-ink: #d8d6e8;
  --success-bg: #2c3b24;
  --success-ink: #c2df9c;
  --neutral-bg: #343742;
  --hint-bg: #302e40;
  --new-bg: #292b35;
  --error-ink: #ffb5ae;
  --error-bg: #482b2e;
  --notice-bg: #3c3220;
  --notice-line: #e5b553;
  --input-line: #626777;
}
.topbar-tools,
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.public-header {
  flex-wrap: wrap;
}
.theme-picker {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink);
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.theme-picker:hover {
  background: var(--neutral-bg);
}
.theme-picker > * {
  display: none;
}
.theme-picker[data-mode="light"] .theme-sun,
.theme-picker[data-mode="dark"] .theme-moon,
.theme-picker[data-mode="system"] .theme-auto {
  display: block;
}
.theme-picker svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html:not([data-theme]) .theme-picker {
  display: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 4px;
}
p {
  line-height: 1.7;
  max-width: 70ch;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.065em;
  line-height: 1.2;
  font-weight: 600;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h3 {
  font-size: 1rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}
small,
.fine {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
.subtle {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -8rem;
  z-index: 99;
  background: var(--panel);
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 246px;
  background: var(--nav);
  color: #fff;
  padding: 32px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.monogram {
  width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: #15181d;
  font-size: 1.45rem;
  font-weight: 600;
  border-radius: 12px 12px 12px 2px;
  letter-spacing: -0.1em;
  padding-right: 3px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 58px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 7px;
  color: #c6c9cf;
  font-size: 0.84rem;
}
.sidebar nav a.active {
  background: #353941;
  color: #fff;
}
.sidebar nav a.active:before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--orange);
  border-radius: 3px;
  margin-left: -13px;
  margin-right: -3px;
}
.sidebar nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #41454d;
}
.owner-avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #45414b;
  color: #e4d9f8;
  font-size: 0.7rem;
}
.sidebar-bottom strong {
  font-size: 0.7rem;
  display: block;
}
.sidebar-bottom small {
  color: #bec1c8;
  font-size: 0.6rem;
}
.sidebar-bottom form {
  margin-left: auto;
}
.logout {
  border: 0;
  background: transparent;
  color: #ccc;
  font-size: 1.25rem;
  padding: 5px;
}
.workspace {
  margin-left: 246px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  color: var(--muted);
  font-size: 0.72rem;
}
.topbar a {
  font-size: 0.65rem;
}
main#contenido {
  padding: 43px 44px 70px;
  max-width: 1380px;
  margin: auto;
  min-height: calc(100vh - 150px);
}
.page-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}
.page-heading h1 {
  margin-bottom: 10px;
}
.page-heading p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  background: var(--button-bg);
  color: var(--button-ink);
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 13px 18px;
  line-height: 1.4;
  white-space: nowrap;
}
.button:hover {
  background: var(--button-hover);
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.button.secondary {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--neutral-bg);
  border-color: var(--ink);
}
.library-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--lavender-panel);
  padding: 25px 28px;
  border-radius: 9px;
  margin-bottom: 37px;
}
.library-intro h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.library-intro p {
  font-size: 0.75rem;
  margin-bottom: 0;
  color: var(--muted);
}
.library-intro > .badge {
  margin-left: auto;
  background: var(--panel);
}
.intro-symbol {
  display: grid;
  place-items: center;
  border: 1px solid #9d96bc;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.63rem;
  background: var(--success-bg);
  color: var(--success-ink);
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.muted {
  background: var(--neutral-bg);
  color: var(--muted);
}
.library-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.library-meta h2 {
  margin: 0;
}
.library-meta span {
  font-size: 0.72rem;
  color: var(--muted);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1120px;
}
.course-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  overflow: hidden;
  max-width: 420px;
}
.course-cover {
  height: 209px;
  background: var(--cover);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  overflow: hidden;
}
.course-cover > span {
  font-size: 0.6rem;
  font-weight: 600;
  position: relative;
}
.course-cover > p {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.05em;
  max-width: 240px;
  position: relative;
  margin: 0;
}
.cover-mark {
  position: absolute;
  right: -20px;
  top: 20px;
  display: flex;
  gap: 8px;
  transform: rotate(-25deg);
}
.cover-mark i {
  display: block;
  width: 45px;
  height: 250px;
  border-radius: 90px;
  background: var(--cover-mark);
}
.cover-mark i:nth-child(2) {
  background: var(--orange);
}
.cover-mark i:nth-child(3) {
  background: var(--cover-light);
}
.course-body {
  padding: 23px;
}
.course-body h2 {
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.025em;
  margin: 14px 0 10px;
}
.course-body > p {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 50px;
}
.course-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
.text-link {
  font-size: 0.76rem;
  font-weight: 600;
}
.text-link span {
  margin-left: 10px;
}
.quiet {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.app-footer {
  padding: 20px 44px;
  border-top: 1px solid var(--line);
  font-size: 0.63rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.back-link {
  display: inline-block;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 25px;
  color: var(--muted);
}
.course-overview {
  background: var(--overview);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border-radius: 9px;
  margin-bottom: 40px;
}
.course-overview h2 {
  font-size: 1.5rem;
  max-width: 24ch;
}
.course-overview p:last-child {
  font-size: 0.72rem;
  margin: 0;
  color: var(--muted);
}
.overview-art {
  height: 110px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.overview-art i {
  width: 70px;
  height: 90px;
  border: 3px solid var(--ink);
  position: absolute;
  transform: rotate(-14deg);
  background: var(--orange);
}
.overview-art i:last-child {
  transform: rotate(14deg) translateX(15px);
  background: var(--sheet);
}
.module-section {
  margin-bottom: 36px;
}
.module-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}
.module-heading > span {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}
.module-heading h2 {
  margin: 0;
}
.session-list {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel);
}
.session-row {
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 23px;
}
.session-row + .session-row {
  border-top: 1px solid var(--line);
}
.session-number {
  color: var(--muted);
  font-size: 0.8rem;
}
.session-content {
  flex: 1;
}
.session-content h3 {
  line-height: 1.6;
  margin: 7px 0 0;
}
.session-content p {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.session-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.empty-state {
  padding: 40px;
  background: var(--panel);
  border: 1px dashed #b8bcc3;
  border-radius: 9px;
}
.empty-state p {
  font-size: 0.85rem;
  color: var(--muted);
}
.empty-inline {
  padding: 25px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 35px;
}
.admin-list > a {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--panel);
}
.admin-list > a + a {
  border-top: 1px solid var(--line);
}
.admin-list > a > span:first-child {
  flex: 1;
}
.admin-list strong,
.admin-list small {
  display: block;
}
.admin-list strong {
  font-size: 0.85rem;
  line-height: 1.5;
}
.edit-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 28px;
  margin-bottom: 25px;
}
.edit-section > h2 {
  margin-bottom: 25px;
}
.admin-form {
  max-width: 780px;
}
.admin-form label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.admin-form input:not([type="hidden"]),
.admin-form textarea,
.admin-form select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-line);
  border-radius: 5px;
  margin-top: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 400;
}
.admin-form small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}
.form-error {
  color: var(--error-ink);
  background: var(--error-bg);
  padding: 12px;
  font-size: 0.8rem;
}
.field-error {
  color: var(--error-ink) !important;
}
.form-status {
  font-size: 0.75rem;
}
.module-editor {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.editor-heading h3,
.editor-heading p {
  margin: 0;
}
.order-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px 11px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.order-button:disabled {
  opacity: 0.3;
  cursor: default;
}
details > summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 0.8rem;
  line-height: 1.6;
}
.lesson-editor {
  border-top: 1px solid var(--line);
}
.lesson-editor > summary {
  display: list-item;
}
.lesson-editor > summary > span:first-child {
  margin-right: 15px;
}
.publish-hint {
  padding: 16px;
  background: var(--hint-bg);
  margin-bottom: 18px;
  font-size: 0.7rem;
}
.publish-hint p {
  margin: 8px 0;
}
.publish-hint code {
  display: block;
  font-family: inherit;
  overflow-wrap: anywhere;
  user-select: all;
}
.new-item {
  padding: 0 15px;
  background: var(--new-bg);
  border: 1px dashed var(--line);
  border-radius: 5px;
}
.new-item .admin-form {
  padding-bottom: 20px;
}
.notice {
  background: var(--notice-bg);
  border-left: 3px solid var(--notice-line);
  padding: 18px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.notice p {
  margin-bottom: 0;
}
.login-page {
  display: flex;
  min-height: 100vh;
  background: var(--panel);
}
.login-shell {
  width: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 7vw;
}
.login-content {
  margin: auto 0;
  padding: 60px 0;
}
.login-content h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  letter-spacing: -0.07em;
  margin: 20px 0 25px;
}
.login-content > p {
  font-size: 0.92rem;
}
.login-description {
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 35px;
}
.login-content > .fine {
  font-size: 0.65rem;
  margin: 20px 0;
}
.login-shell > footer {
  font-size: 0.7rem;
  color: var(--muted);
}
.login-art {
  width: 50%;
  background: var(--cover);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 55px;
}
.slide-sheet {
  width: 100%;
  aspect-ratio: 1.12;
  background: var(--sheet);
  box-shadow: 0 30px 70px -35px #58536270;
  transform: rotate(-7deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.sheet-brand {
  font-size: 0.7rem;
  font-weight: 600;
}
.sheet-lines {
  display: grid;
  gap: 12px;
  margin-top: 50px;
}
.sheet-lines span {
  height: 14px;
  width: 70%;
  background: var(--sheet-ink);
  border-radius: 3px;
}
.sheet-lines span:nth-child(2) {
  width: 55%;
}
.sheet-lines span:nth-child(3) {
  width: 30%;
  background: var(--orange);
}
.sheet-circles {
  display: flex;
  justify-content: flex-end;
  margin: 30px 0;
}
.sheet-circles i {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--orange);
}
.sheet-circles i:last-child {
  background: var(--lila);
  margin-left: -22px;
  mix-blend-mode: multiply;
}
.sheet-caption {
  font-size: 0.7rem;
  margin-top: auto;
}
.error-page {
  max-width: 640px;
  margin: 10vh auto;
  padding: 30px;
}
.error-page h1 {
  margin-top: 60px;
}
.order-status {
  font-size: 0.75rem;
  min-height: 20px;
}
@media (min-width: 1500px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  .topbar {
    padding: 0 28px;
  }
  main#contenido {
    padding: 30px 28px;
  }
  .session-row {
    flex-wrap: wrap;
  }
  .session-actions {
    margin-left: 38px;
  }
  .sidebar-bottom small {
    font-size: 0.55rem;
  }
  .login-art {
    padding: 30px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .sidebar .brand {
    font-size: 0;
  }
  .sidebar .monogram {
    font-size: 1.3rem;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
    margin: 0 0 0 auto;
  }
  .sidebar nav a {
    padding: 10px;
    font-size: 0.7rem;
  }
  .sidebar nav a.active:before {
    display: none;
  }
  .sidebar-bottom {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar-bottom > div {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 50px;
    padding: 0 20px;
  }
  .topbar a {
    display: none;
  }
  main#contenido {
    padding: 28px 20px 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 1.8rem;
  }
  .library-intro {
    gap: 15px;
    padding: 20px;
  }
  .library-intro > .badge {
    display: none;
  }
  .library-intro h2 {
    line-height: 1.5;
  }
  .library-intro p {
    display: none;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-card {
    max-width: none;
  }
  .course-cover {
    height: 210px;
  }
  .course-cover > p {
    max-width: 260px;
  }
  .app-footer {
    padding: 20px;
    line-height: 1.8;
    display: block;
  }
  .app-footer span {
    display: block;
  }
  .course-overview {
    padding: 22px;
    gap: 18px;
  }
  .overview-art {
    width: 65px;
    height: 90px;
  }
  .overview-art i {
    width: 45px;
    height: 65px;
  }
  .course-overview h2 {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .module-heading {
    display: block;
  }
  .module-heading > span {
    display: block;
    margin-bottom: 8px;
  }
  .session-row {
    padding: 20px;
    gap: 14px;
  }
  .session-actions {
    margin-left: 28px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .edit-section {
    padding: 20px;
  }
  .module-editor {
    padding: 15px;
  }
  .lesson-editor > summary > .badge {
    display: none;
  }
  .login-shell {
    width: 100%;
    padding: 30px 8vw;
  }
  .login-art {
    display: none;
  }
  .login-content h1 {
    font-size: 3.1rem;
  }
  .login-content {
    padding: 60px 0;
  }
  .admin-list > a {
    gap: 10px;
  }
  .admin-list strong {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
