:root {
  color-scheme: light;
  --paper: #f2ece4;
  --paper-soft: #f8f4ee;
  --ink: #271f1c;
  --ink-muted: rgba(39, 31, 28, 0.72);
  --accent: #a85a4d;
  --accent-soft: rgba(168, 90, 77, 0.1);
  --code-surface: #ebe2d5;
  --line: rgba(112, 98, 86, 0.3);
  --mono: "IBM Plex Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141211;
  --paper-soft: #1f1a17;
  --ink: #f3eadf;
  --ink-muted: rgba(243, 234, 223, 0.72);
  --accent: #e08a76;
  --accent-soft: rgba(224, 138, 118, 0.14);
  --code-surface: #241f1b;
  --line: rgba(232, 205, 181, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141211;
    --paper-soft: #1f1a17;
    --ink: #f3eadf;
    --ink-muted: rgba(243, 234, 223, 0.72);
    --accent: #e08a76;
    --accent-soft: rgba(224, 138, 118, 0.14);
    --code-surface: #241f1b;
    --line: rgba(232, 205, 181, 0.18);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background-color: var(--paper);
  scrollbar-width: none;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

body.has-blob-cursor {
  cursor: none;
}

body.has-blob-cursor a,
body.has-blob-cursor button,
body.has-blob-cursor [role="button"] {
  cursor: none;
}

.blob-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

.blob-cursor__blob {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(168, 90, 77, 0.84);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(168, 90, 77, 0.14);
  will-change: transform, width, height, border-radius;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.blob-cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(168, 90, 77, 0.96);
  will-change: transform;
  transition: opacity 160ms ease;
}

.blob-cursor.is-link-hover .blob-cursor__blob {
  border-color: rgba(168, 90, 77, 0.72);
  box-shadow:
    0 0 0 1px rgba(168, 90, 77, 0.08),
    0 14px 28px rgba(168, 90, 77, 0.1);
}

.blob-cursor.is-link-hover .blob-cursor__dot {
  opacity: 0.42;
}

.click-spark-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 70;
}

.editorial-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--paper-soft);
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.editorial-loader__frame {
  position: absolute;
  inset: clamp(1rem, 3vw, 2.3rem);
  pointer-events: none;
}

.editorial-loader__frame span {
  position: absolute;
  background: rgba(112, 98, 86, 0.5);
}

.editorial-loader__frame span:nth-child(1),
.editorial-loader__frame span:nth-child(2) {
  left: 0;
  right: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
}

.editorial-loader__frame span:nth-child(1) {
  top: 0;
}

.editorial-loader__frame span:nth-child(2) {
  bottom: 0;
}

.editorial-loader__frame span:nth-child(3),
.editorial-loader__frame span:nth-child(4) {
  top: 0;
  bottom: 0;
  width: 1px;
  transform: scaleY(0);
  transform-origin: top center;
}

.editorial-loader__frame span:nth-child(3) {
  left: 0;
}

.editorial-loader__frame span:nth-child(4) {
  right: 0;
}

.editorial-loader__center {
  position: relative;
  text-align: center;
}

.editorial-loader__micro {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(39, 31, 28, 0.62);
  opacity: 0;
  transform: translateY(8px);
}

.editorial-loader__monogram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.08em;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-transform: uppercase;
}

.editorial-loader__monogram span {
  opacity: 0;
  transform: translateY(16px);
}

.editorial-loader__seal {
  width: clamp(74px, 9vw, 108px);
  aspect-ratio: 1;
  margin: 0.4rem auto 0;
  border: 1px solid rgba(168, 90, 77, 0.52);
  border-radius: 50%;
  padding: 0.42rem;
  opacity: 0;
  transform: scale(0.92) rotate(-6deg);
}

.editorial-loader__seal img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: grayscale(0.26) contrast(0.92);
  opacity: 0.46;
}

body.is-loading .editorial-loader__frame span:nth-child(1) {
  animation: frame-x 320ms ease forwards;
}

body.is-loading .editorial-loader__frame span:nth-child(2) {
  animation: frame-x 320ms ease 70ms forwards;
}

body.is-loading .editorial-loader__frame span:nth-child(3) {
  animation: frame-y 320ms ease 145ms forwards;
}

body.is-loading .editorial-loader__frame span:nth-child(4) {
  animation: frame-y 320ms ease 180ms forwards;
}

body.is-loading .editorial-loader__micro {
  animation: loader-fade-up 270ms ease 225ms forwards;
}

body.is-loading .editorial-loader__monogram span:nth-child(1) {
  animation: loader-fade-up 320ms ease 270ms forwards;
}

body.is-loading .editorial-loader__monogram span:nth-child(2) {
  animation: loader-fade-up 320ms ease 345ms forwards;
}

body.is-loading .editorial-loader__seal {
  animation: loader-seal 470ms cubic-bezier(0.22, 1, 0.36, 1) 355ms forwards;
}

body.is-leaving .editorial-loader {
  opacity: 1;
  visibility: visible;
}

body.is-loaded .editorial-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-reveal {
  opacity: 0;
  transform: translateY(10px);
}

body.is-ready .startup-reveal {
  animation: startup-reveal 340ms ease forwards;
}

body.is-ready .startup-reveal--card {
  animation-delay: 0.04s;
}

body.is-ready .startup-reveal--band {
  animation-delay: 0.08s;
}

body.is-ready .startup-reveal--outline {
  animation-delay: 0.12s;
}

body.is-ready .startup-reveal--content {
  animation-delay: 0.16s;
}

.print-stamp {
  position: absolute;
  width: clamp(90px, 11vw, 144px);
  aspect-ratio: 1;
  border: 1px solid rgba(168, 90, 77, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 90, 77, 0.48);
  opacity: 0.58;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.print-stamp::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(168, 90, 77, 0.36);
  border-radius: 50%;
}

.print-stamp--study {
  top: -1rem;
  right: clamp(0.8rem, 3vw, 1.6rem);
  transform: rotate(8deg);
}

.study-shell {
  width: min(96vw, 1360px);
  margin: 1.25rem auto 2rem;
  padding: 1.2rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    var(--paper-soft);
  position: relative;
  overflow: clip;
}

.study-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(168, 90, 77, 0.18);
  pointer-events: none;
}

.study-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.study-topbar__id {
  color: var(--accent);
}

.study-topbar__title {
  min-width: 0;
}

.study-topbar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.study-topbar__nav a,
.study-band__meta a,
.study-footer__links a {
  transition: color 140ms ease;
}

.study-topbar__nav a:hover,
.study-topbar__nav a:focus-visible,
.study-band__meta a:hover,
.study-band__meta a:focus-visible,
.study-footer__links a:hover,
.study-footer__links a:focus-visible {
  color: var(--accent);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2rem;
  padding: 0.22rem 0.28rem 0.22rem 0.62rem;
  border: 1px solid rgba(168, 90, 77, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(168, 90, 77, 0.06)),
    rgba(248, 244, 238, 0.62);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(39, 31, 28, 0.08);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(168, 90, 77, 0.46);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(168, 90, 77, 0.12);
}

.theme-toggle__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2.42rem;
  height: 1.22rem;
  border: 1px solid rgba(112, 98, 86, 0.26);
  background:
    linear-gradient(90deg, rgba(168, 90, 77, 0.1), rgba(39, 31, 28, 0.08)),
    rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.theme-toggle__track::before,
.theme-toggle__track::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.theme-toggle__track::before {
  right: 0.42rem;
  width: 0.34rem;
  height: 0.34rem;
  background: rgba(168, 90, 77, 0.68);
  box-shadow: -0.62rem 0.22rem 0 -0.12rem rgba(168, 90, 77, 0.42);
}

.theme-toggle__track::after {
  left: 0.42rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid rgba(39, 31, 28, 0.28);
  background: rgba(255, 255, 255, 0.62);
  opacity: 0;
  transform: translateX(-0.35rem) scale(0.7);
}

.theme-toggle__thumb {
  position: absolute;
  left: 0.16rem;
  width: 0.86rem;
  height: 0.86rem;
  border: 1px solid rgba(168, 90, 77, 0.34);
  background: var(--paper-soft);
  box-shadow:
    inset -0.16rem -0.08rem 0 rgba(168, 90, 77, 0.12),
    0 4px 10px rgba(39, 31, 28, 0.16);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.theme-toggle__label {
  min-width: 2.35rem;
  text-align: left;
}

:root[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(1.18rem);
  border-color: rgba(224, 138, 118, 0.5);
  background: #2e2520;
  box-shadow:
    inset -0.28rem -0.08rem 0 rgba(243, 234, 223, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .theme-toggle__track::before {
  opacity: 0;
  transform: translateX(0.4rem);
}

:root[data-theme="dark"] .theme-toggle__track::after {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.cursor-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0.22rem 0.54rem;
  border: 1px solid rgba(168, 90, 77, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(168, 90, 77, 0.06)),
    rgba(248, 244, 238, 0.62);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(39, 31, 28, 0.08);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.cursor-toggle:hover,
.cursor-toggle:focus-visible {
  border-color: rgba(168, 90, 77, 0.46);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(168, 90, 77, 0.12);
}

.cursor-toggle__preview {
  position: relative;
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
}

.cursor-toggle__ring,
.cursor-toggle__dot {
  position: absolute;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.cursor-toggle__ring {
  width: 1rem;
  height: 1rem;
  border: 1.5px solid rgba(168, 90, 77, 0.78);
  box-shadow: 0 0 16px rgba(168, 90, 77, 0.12);
}

.cursor-toggle__dot {
  width: 0.22rem;
  height: 0.22rem;
  background: rgba(168, 90, 77, 0.96);
}

.cursor-toggle__label {
  min-width: 4.8rem;
  text-align: left;
}

.cursor-toggle[data-cursor-mode="native"] .cursor-toggle__ring {
  transform: scale(0.78);
  opacity: 0.4;
}

.cursor-toggle[data-cursor-mode="native"] .cursor-toggle__dot {
  transform: translate(0.34rem, 0.34rem) scale(0.9);
}

:root[data-theme="dark"] .cursor-toggle {
  border-color: rgba(224, 138, 118, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(224, 138, 118, 0.08)),
    rgba(31, 26, 23, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 26px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .cursor-toggle__ring {
  border-color: rgba(224, 138, 118, 0.78);
  box-shadow: 0 0 18px rgba(224, 138, 118, 0.14);
}

:root[data-theme="dark"] .cursor-toggle__dot {
  background: rgba(243, 234, 223, 0.9);
}

.study-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 1.6rem 2rem;
  padding: 1.7rem 0 1.2rem;
  align-items: start;
}

.study-asset {
  position: absolute;
  margin: 0;
  opacity: 0.26;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.study-asset img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.15) sepia(0.18);
}

.study-asset--computer {
  width: clamp(140px, 18vw, 240px);
  top: 0.5rem;
  right: 19rem;
  transform: rotate(-5deg);
}

.study-asset--mouse {
  width: clamp(110px, 16vw, 200px);
  bottom: 0.1rem;
  left: calc(100% - 15rem);
  transform: rotate(7deg);
}

.study-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.study-hero h1,
.study-band h2,
.study-outline h2,
.study-markdown__section-header h2,
.study-note-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.study-hero h1 {
  margin-top: 0.55rem;
  max-width: 14ch;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  color: var(--accent);
}

.study-lede {
  margin: 0.9rem 0 0;
  max-width: 56ch;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.66;
}

.study-facts {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 44rem;
}

.study-fact {
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}

.study-fact__label {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.study-fact__value {
  margin: 0.3rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.study-note-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    linear-gradient(140deg, rgba(168, 90, 77, 0.06), rgba(39, 31, 28, 0.03)),
    #ece3d7;
}

.study-note-card__micro,
.study-band__meta,
.study-outline__link span:first-child,
.study-render__status,
.study-footer p,
.study-footer__links a,
.study-markdown__section-index,
.study-markdown__caption {
  font-family: var(--mono);
}

.study-note-card__micro {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.study-note-card h2 {
  margin-top: 0.9rem;
  max-width: 9ch;
  font-size: clamp(1.8rem, 2.4vw, 2.45rem);
  color: var(--accent);
}

.study-note-card__text {
  margin: 0.7rem 0 0;
  color: var(--ink-muted);
  line-height: 1.62;
}

.study-note-card__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(112, 98, 86, 0.26);
}

.study-note-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(112, 98, 86, 0.2);
  font-size: 0.78rem;
}

.study-note-card__list span {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.study-note-card__list strong {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.study-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: end;
}

.study-band h2 {
  margin-top: 0.45rem;
  max-width: 19ch;
  font-size: clamp(1.85rem, 3.3vw, 3.4rem);
}

.study-band__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-main-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding-top: 1.35rem;
  min-width: 0;
}

.study-main-content {
  min-width: 0;
  display: grid;
  gap: 1.35rem;
  padding: 0 0.85rem 0 0.45rem;
  transform: translateZ(0);
  transition:
    filter 170ms ease,
    opacity 170ms ease;
}

body.is-page-scrolling .study-main-content,
body.is-page-scrolling .notes-minimal {
  filter: blur(0.42px) saturate(0.985);
  opacity: 0.985;
}

@media (max-width: 1480px) {
  .study-hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .study-note-card {
    width: min(100%, 34rem);
  }

  .study-asset--computer {
    width: clamp(110px, 14vw, 180px);
    top: 1.2rem;
    right: 0.8rem;
    opacity: 0.18;
  }

  .study-asset--mouse {
    display: none;
  }
}

@media (max-width: 1320px) {
  .study-main-grid {
    grid-template-columns: minmax(240px, 285px) minmax(0, 1fr);
    gap: 1rem;
  }

  .study-hero h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 4.6vw, 3.8rem);
  }

  .study-facts {
    max-width: 100%;
  }

  .study-band h2 {
    max-width: 16ch;
    font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  }
}

.study-outline {
  position: sticky;
  top: 1.7rem;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  padding: 1rem 1rem 1rem 0.9rem;
  height: calc(100dvh - 3.4rem);
  max-height: calc(100dvh - 3.4rem);
  overflow: hidden;
  border: 1px solid rgba(168, 90, 77, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    rgba(248, 244, 238, 0.92);
  box-shadow: 0 18px 42px rgba(39, 31, 28, 0.08);
  backdrop-filter: blur(8px);
  z-index: 3;
}

.study-outline h2 {
  margin-top: 0.42rem;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.study-outline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.study-outline__slide-title {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.study-outline__back {
  display: none;
}

.study-outline__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 5.8rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(168, 90, 77, 0.28);
  background: rgba(168, 90, 77, 0.06);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.study-outline__lede {
  margin: 0.8rem 0 0;
  color: var(--ink-muted);
  line-height: 1.58;
}

.study-outline__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 2.42rem;
  margin-top: 0.85rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(168, 90, 77, 0.2);
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.study-outline__home:hover,
.study-outline__home:focus-visible {
  border-color: rgba(168, 90, 77, 0.38);
  background: rgba(168, 90, 77, 0.07);
  transform: translateX(2px);
}

.study-outline__actions {
  position: relative;
  container: outline-actions / inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.85rem;
}

.study-outline__actions .study-outline__home {
  margin-top: 0;
}

.study-settings {
  position: relative;
}

.study-settings__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  width: 100%;
  min-width: 0;
  min-height: 2.42rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(168, 90, 77, 0.2);
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.study-settings__trigger:hover,
.study-settings__trigger:focus-visible,
.study-settings.is-open .study-settings__trigger {
  border-color: rgba(168, 90, 77, 0.38);
  background: rgba(168, 90, 77, 0.07);
  box-shadow: 0 10px 22px rgba(168, 90, 77, 0.08);
}

.study-settings__trigger-icon {
  display: inline-grid;
  gap: 0.18rem;
}

.study-settings__trigger-icon span {
  display: block;
  width: 0.85rem;
  height: 1px;
  background: currentColor;
}

.study-settings__menu {
  position: absolute;
  top: calc(100% + 0.22rem);
  right: 0;
  z-index: 6;
  display: grid;
  gap: 0.55rem;
  width: min(13.4rem, calc(100vw - 3rem));
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(168, 90, 77, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.62)),
    rgba(248, 244, 238, 0.96);
  box-shadow: 0 18px 34px rgba(39, 31, 28, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 170ms ease,
    transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
}

.study-settings__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.42rem;
  height: 0.42rem;
}

.study-settings.is-open .study-settings__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.study-settings__menu[hidden] {
  display: none;
}

.study-settings__menu-title {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.study-settings__item {
  display: grid;
}

.study-settings__item .theme-toggle,
.study-settings__item .cursor-toggle,
.study-settings__item .site-sound-toggle {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0.24rem 0.42rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.study-settings__item .theme-toggle__label,
.study-settings__item .cursor-toggle__label,
.study-settings__item .site-sound-toggle__label {
  min-width: 0;
  max-width: 6.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-settings__item .theme-toggle__track {
  flex: 0 0 auto;
  width: 2rem;
  height: 1rem;
}

.study-settings__item .theme-toggle__thumb {
  width: 0.68rem;
  height: 0.68rem;
}

:root[data-theme="dark"] .study-settings__item .theme-toggle__thumb {
  transform: translateX(0.94rem);
}

.study-settings__item .cursor-toggle__preview {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
}

.study-settings__item .cursor-toggle__ring {
  width: 0.82rem;
  height: 0.82rem;
}

.study-settings__item .site-sound-control {
  width: 100%;
  margin: 0;
  order: 0;
}

.study-settings__item .site-sound-toggle {
  border-color: rgba(168, 90, 77, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(168, 90, 77, 0.06)),
    rgba(248, 244, 238, 0.62);
  color: var(--ink);
}

.study-settings__item .site-sound-toggle:hover,
.study-settings__item .site-sound-toggle:focus-visible {
  color: var(--accent);
  border-color: rgba(168, 90, 77, 0.46);
}

.study-settings__item .site-sound-panel {
  display: none;
}

@container outline-actions (max-width: 23rem) {
  .study-outline__actions .study-outline__home {
    font-size: 0;
    letter-spacing: 0;
  }

  .study-outline__actions .study-outline__home::before {
    content: "Main index";
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

.study-outline__list {
  display: grid;
  gap: 0.3rem;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  margin-top: 1rem;
  padding: 0.2rem 0.35rem 0 0.35rem;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 90, 77, 0.35) transparent;
}

.study-outline__list::-webkit-scrollbar {
  width: 8px;
}

.study-outline__list::-webkit-scrollbar-track {
  background: transparent;
}

.study-outline__list::-webkit-scrollbar-thumb {
  background: rgba(168, 90, 77, 0.35);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.study-outline__list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(168, 90, 77, 0.55);
  background-clip: padding-box;
}

.scroll-to-top {
  position: fixed;
  bottom: 1.7rem;
  right: 2rem;
  min-height: 2.28rem;
  padding: 0.48rem 0.68rem 0.48rem 0.74rem;
  border: 1px solid var(--line);
  background: rgba(248, 244, 238, 0.92);
  color: var(--ink-muted);
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  border-radius: 0;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
  transform: translateY(10px);
  z-index: 50;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  border-color: rgba(168, 90, 77, 0.42);
  background: var(--paper-soft);
  color: var(--ink);
}

.scroll-to-top:active {
  transform: translateY(2px);
}

.scroll-to-top svg {
  display: none;
}

.scroll-to-top::after {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("./misc_assets/left_arrow.png") center / contain no-repeat;
  -webkit-mask: url("./misc_assets/left_arrow.png") center / contain no-repeat;
  transform: rotate(90deg);
}

:root[data-theme="dark"] .scroll-to-top {
  background: rgba(31, 26, 23, 0.92);
  color: var(--ink-muted);
  border-color: var(--line);
}

:root[data-theme="dark"] .scroll-to-top:hover {
  background: var(--paper-soft);
  color: var(--ink);
  border-color: rgba(224, 138, 118, 0.46);
}

@media (max-width: 780px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    min-height: 2.18rem;
    padding: 0.5rem 0.62rem;
    font-size: 0.6rem;
    gap: 0.38rem;
  }
}

.study-outline__empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.study-outline__link {
  position: relative;
  display: grid;
  grid-template-columns: 3.3rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.study-outline__link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 140ms ease;
  display: none;
}

.study-outline__link span:first-child {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.study-outline__link span:last-child {
  font-size: 0.86rem;
  line-height: 1.45;
}

.study-outline__link:hover,
.study-outline__link:focus-visible,
.study-outline__link.is-active {
  border-color: rgba(168, 90, 77, 0.3);
  background: rgba(168, 90, 77, 0.06);
  color: var(--accent);
  transform: translateX(2px);
  box-shadow: 0 10px 20px rgba(168, 90, 77, 0.08);
}

.study-outline__link:hover::before,
.study-outline__link:focus-visible::before,
.study-outline__link.is-active::before {
  transform: scaleY(1);
}

.study-render {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.study-render__status {
  padding-bottom: 1rem;
  color: var(--ink-muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-markdown {
  display: grid;
  gap: 1.55rem;
  min-width: 0;
  max-width: 100%;
}

.study-markdown__section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  min-width: 0;
  max-width: 100%;
}

.study-markdown__section-header {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.study-markdown__section-index {
  padding-top: 0.22rem;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.study-markdown__section-header h2 {
  margin-top: 0.12rem;
  font-size: clamp(1.7rem, 2.8vw, 2.55rem);
}

.study-markdown__section-body {
  margin-top: 0.95rem;
  padding-left: 5.15rem;
  min-width: 0;
  max-width: 100%;
}

.study-markdown h3,
.study-markdown h4 {
  margin: 1.2rem 0 0.45rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.study-markdown h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--accent);
}

.study-markdown h4 {
  font-size: 1rem;
  color: var(--ink);
}

.study-markdown p,
.study-markdown li {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.study-markdown p {
  margin: 0.72rem 0 0;
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.study-markdown ul,
.study-markdown ol {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  max-width: 72ch;
  min-width: 0;
}

.study-markdown li + li {
  margin-top: 0.3rem;
}

.study-markdown__section-body--mcq {
  display: grid;
  gap: 1rem;
}

.study-mcq {
  display: grid;
  gap: 0.85rem;
  max-width: 78ch;
  padding: 1rem;
  border: 1px solid rgba(112, 98, 86, 0.2);
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    rgba(255, 250, 244, 0.68);
  box-shadow: 0 14px 34px rgba(83, 57, 45, 0.07);
}

.study-mcq h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.study-mcq h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(168, 90, 77, 0.2);
}

.study-markdown .study-mcq__question {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.study-markdown .study-mcq__options {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.study-markdown .study-mcq__option {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-height: 2.45rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(112, 98, 86, 0.18);
  border-radius: 0.36rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink-muted);
  line-height: 1.45;
}

.study-mcq__option-letter {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(168, 90, 77, 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.study-mcq__feedback {
  display: grid;
  gap: 0.72rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(112, 98, 86, 0.16);
  border-radius: 0.36rem;
  background: rgba(168, 90, 77, 0.07);
  color: var(--ink-muted);
}

.study-markdown .study-mcq__feedback-row {
  margin: 0;
  max-width: none;
  color: var(--ink-muted);
}

.study-markdown .study-mcq__feedback-row--answer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: baseline;
  color: var(--ink);
}

.study-mcq__feedback-row span {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.study-mcq__feedback-row--answer span {
  margin-bottom: 0;
}

.study-mcq__feedback-row strong {
  font-size: 1rem;
  color: var(--ink);
}

.study-mcq__feedback-row em {
  font-style: normal;
}

.study-shell code {
  padding: 0.05rem 0.3rem;
  border: 1px solid rgba(168, 90, 77, 0.14);
  background: rgba(168, 90, 77, 0.06);
  border-radius: 0.2rem;
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.study-code {
  margin: 1rem 0 0;
  border: 1px solid rgba(112, 98, 86, 0.24);
  background: var(--code-surface);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.study-markdown__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(112, 98, 86, 0.22);
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-code pre {
  margin: 0;
  padding: 0.95rem 1rem 1.05rem;
  background: var(--code-surface);
  overflow: auto;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  tab-size: 2;
}

.study-code pre code {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: var(--code-surface);
  border-radius: 0;
  font-size: inherit;
  line-height: inherit;
  white-space: inherit;
}

.study-image {
  margin: 1rem 0 0;
  border: 1px solid rgba(112, 98, 86, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    #ebe2d5;
  min-width: 0;
  max-width: min(100%, 56rem);
  overflow: hidden;
}

.study-image img {
  display: block;
  width: 100%;
  height: auto;
  padding: clamp(0.75rem, 2vw, 1.2rem);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.study-table-wrap {
  max-width: 100%;
  margin: 1rem 0 0;
  overflow-x: auto;
  border: 1px solid rgba(112, 98, 86, 0.24);
  background: rgba(255, 255, 255, 0.18);
}

.study-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.55;
}

.study-table th,
.study-table td {
  padding: 0.72rem 0.8rem;
  border-right: 1px solid rgba(112, 98, 86, 0.18);
  border-bottom: 1px solid rgba(112, 98, 86, 0.18);
  text-align: left;
  vertical-align: top;
}

.study-table th:last-child,
.study-table td:last-child {
  border-right: 0;
}

.study-table tr:last-child td {
  border-bottom: 0;
}

.study-table th {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(168, 90, 77, 0.06);
}

.study-table td {
  color: var(--ink-muted);
}

.study-markdown__error {
  padding: 1rem;
  border: 1px solid rgba(168, 90, 77, 0.28);
  background: rgba(168, 90, 77, 0.06);
  color: var(--ink);
}

.study-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.study-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.study-footer__links a {
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-shell {
  width: min(94vw, 1280px);
  margin: 0.75rem auto 1rem;
  padding: 0.85rem 1rem 1rem;
}

.notes-shell .study-topbar {
  padding-bottom: 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.notes-shell .study-topbar__nav {
  gap: 0.7rem;
}

.notes-command-bar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto;
  gap: 1rem 1.2rem;
  align-items: end;
  padding: 1rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
}

.notes-command-bar__brand,
.notes-command-bar__center,
.notes-command-bar__actions {
  min-width: 0;
}

.notes-command-bar__brand h1 {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.notes-command-bar__summary,
.notes-command-bar__status,
.notes-preview-pane__intro,
.notes-empty p,
.notes-preview__excerpt,
.notes-preview__points li {
  color: var(--ink-muted);
}

.notes-command-bar__summary {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.notes-command-bar__center {
  display: grid;
  gap: 0.4rem;
}

.notes-command-bar__path,
.notes-preview-pane__meta,
.notes-control__label,
.notes-note-card__eyebrow,
.notes-note-card__meta,
.notes-note-card__submeta,
.notes-rail-section__count,
.notes-toc-card__count,
.notes-preview-card__path {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-command-bar__path,
.notes-stage__path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  color: var(--ink-muted);
}

.notes-command-bar__status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.notes-command-bar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.notes-toolbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(168, 90, 77, 0.2);
  background: rgba(168, 90, 77, 0.04);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease,
    color 140ms ease;
}

.notes-toolbar-action:hover,
.notes-toolbar-action:focus-visible {
  border-color: rgba(168, 90, 77, 0.3);
  background: rgba(168, 90, 77, 0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

.notes-toolbar-action--muted {
  background: transparent;
  border-color: rgba(112, 98, 86, 0.18);
}

.notes-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 36%) minmax(0, 64%);
  gap: 1rem 1.2rem;
  align-items: start;
  padding-top: 0.95rem;
}

.notes-rail {
  position: sticky;
  top: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

.notes-panel {
  padding: 1rem;
  border: 1px solid rgba(112, 98, 86, 0.18);
  background: rgba(255, 255, 255, 0.16);
}

.notes-panel__header h2 {
  margin: 0.32rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.notes-panel--controls {
  display: grid;
  gap: 0.85rem;
}

.notes-control {
  display: grid;
  gap: 0.4rem;
}

.notes-control__label {
  margin: 0;
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.notes-input,
.notes-select {
  width: 100%;
  min-height: 2.55rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(112, 98, 86, 0.2);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font: inherit;
}

.notes-input::placeholder {
  color: rgba(39, 31, 28, 0.52);
}

.notes-input:focus,
.notes-select:focus,
.notes-filter-chip:focus,
.notes-note-card:focus {
  outline: 2px solid rgba(168, 90, 77, 0.18);
  outline-offset: 1px;
}

.notes-control-group {
  display: grid;
  gap: 0.45rem;
}

.notes-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notes-filter-chip {
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(112, 98, 86, 0.18);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.notes-filter-chip:hover,
.notes-filter-chip:focus-visible,
.notes-filter-chip.is-active {
  border-color: rgba(168, 90, 77, 0.28);
  background: rgba(168, 90, 77, 0.06);
  color: var(--accent);
}

.notes-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.notes-panel--sections {
  display: grid;
  gap: 0.95rem;
}

.notes-rail-section {
  display: grid;
  gap: 0.55rem;
}

.notes-rail-section__header,
.notes-toc-card__header,
.notes-preview-card__header,
.notes-preview-pane__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.notes-rail-section__count,
.notes-toc-card__count,
.notes-preview-card__path,
.notes-preview-pane__meta {
  color: var(--ink-muted);
}

.notes-note-card {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem 0.8rem 1rem;
  border: 1px solid rgba(112, 98, 86, 0.18);
  background: rgba(255, 255, 255, 0.18);
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.notes-note-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 140ms ease;
}

.notes-note-card:hover,
.notes-note-card:focus-visible,
.notes-note-card.is-active {
  border-color: rgba(168, 90, 77, 0.26);
  background: rgba(168, 90, 77, 0.05);
  transform: translateX(1px);
}

.notes-note-card:hover::before,
.notes-note-card:focus-visible::before,
.notes-note-card.is-active::before {
  opacity: 1;
}

.notes-note-card__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.notes-note-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(168, 90, 77, 0.18);
  background: rgba(168, 90, 77, 0.04);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.notes-note-card__eyebrow {
  color: var(--accent);
}

.notes-note-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1.03rem;
  line-height: 1.3;
}

.notes-note-card__meta,
.notes-note-card__submeta {
  margin: 0;
  font-size: 0.66rem;
}

.notes-list-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.notes-preview-pane {
  min-width: 0;
  display: grid;
  gap: 0.9rem;
}

.notes-preview-pane__header {
  display: grid;
  gap: 0.35rem;
  padding: 0.1rem 0 0.75rem;
  border-bottom: 1px solid var(--line);
}

.notes-preview-pane__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.notes-preview-pane__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.notes-preview-pane__intro {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.55;
}

.notes-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.notes-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.6rem;
  border: 1px solid rgba(112, 98, 86, 0.16);
  background: rgba(255, 255, 255, 0.24);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-preview-tags[hidden] {
  display: none;
}

.notes-preview-pane__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(230px, 0.88fr);
  gap: 0.85rem;
}

.notes-preview-pane__grid[hidden] {
  display: none;
}

.notes-preview-card,
.notes-toc-card,
.notes-empty {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(112, 98, 86, 0.18);
  background: rgba(255, 255, 255, 0.16);
}

.notes-preview__excerpt {
  margin-top: 0.65rem;
  max-width: 60ch;
  font-size: 0.98rem;
  line-height: 1.58;
}

.notes-preview__points {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.notes-preview__points[hidden] {
  display: none;
}

.notes-preview__points li {
  font-size: 0.92rem;
  line-height: 1.58;
}

.notes-preview__points li + li {
  margin-top: 0.32rem;
}

.notes-toc {
  display: grid;
  gap: 0;
  margin-top: 0.6rem;
}

.notes-toc__link {
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(112, 98, 86, 0.15);
  color: var(--ink-muted);
  transition: color 140ms ease;
}

.notes-toc__link:first-child {
  border-top: 0;
  padding-top: 0;
}

.notes-toc__link:hover,
.notes-toc__link:focus-visible {
  color: var(--accent);
}

.notes-empty[hidden] {
  display: none;
}

.notes-empty h3 {
  margin: 0.3rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.notes-empty p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.notes-shell .study-footer {
  margin-top: 0.15rem;
  padding-top: 0.75rem;
}

.notes-shell--minimal {
  width: min(92vw, 760px);
  margin: 0.9rem auto 1.2rem;
  padding: 0.95rem 1rem 1.1rem;
}

.notes-minimal {
  padding-top: 1rem;
  transform: translateZ(0);
  transition:
    filter 170ms ease,
    opacity 170ms ease;
}

.notes-minimal__header h1 {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.notes-subjects {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.notes-subject {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.notes-subject__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.notes-subject__toggle::before {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  aspect-ratio: 1;
  border: 1px solid rgba(168, 90, 77, 0.28);
  background: rgba(168, 90, 77, 0.05);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 160ms ease;
}

.notes-subject__toggle:hover::before,
.notes-subject__toggle:focus-visible::before,
.notes-subject.is-open .notes-subject__toggle::before {
  border-color: rgba(168, 90, 77, 0.48);
  background: rgba(168, 90, 77, 0.1);
}

.notes-subject.is-open .notes-subject__toggle::before {
  transform: rotate(90deg);
}

.notes-subject__title {
  min-width: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.notes-subject__count,
.notes-subject__note-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.notes-subject__panel {
  display: none;
  padding-top: 0.65rem;
}

.notes-subject.is-open .notes-subject__panel {
  display: block;
}

.notes-subject__notes {
  display: grid;
  gap: 0.45rem;
}

.notes-subject__note {
  display: grid;
  gap: 0.14rem;
  padding: 0.7rem 0.8rem;
  min-width: 0;
  border: 1px solid rgba(112, 98, 86, 0.18);
  background: rgba(255, 255, 255, 0.18);
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.notes-subject__note:hover,
.notes-subject__note:focus-visible {
  border-color: rgba(168, 90, 77, 0.26);
  background: rgba(168, 90, 77, 0.04);
  transform: translateX(1px);
}

.notes-subject__note-title {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notes-subject__empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

:root[data-theme="dark"] .editorial-loader__frame span {
  background: rgba(232, 205, 181, 0.34);
}

:root[data-theme="dark"] .editorial-loader__micro {
  color: rgba(243, 234, 223, 0.62);
}

:root[data-theme="dark"] .editorial-loader__seal {
  border-color: rgba(224, 138, 118, 0.42);
}

:root[data-theme="dark"] .editorial-loader__seal img,
:root[data-theme="dark"] .study-asset img {
  mix-blend-mode: normal;
  filter: grayscale(0.55) contrast(1.05) sepia(0.12) brightness(0.82);
  opacity: 0.42;
}

:root[data-theme="dark"] .blob-cursor__blob {
  border-color: rgba(224, 138, 118, 0.78);
  box-shadow: 0 0 24px rgba(224, 138, 118, 0.14);
}

:root[data-theme="dark"] .blob-cursor__dot {
  background: rgba(224, 138, 118, 0.96);
}

:root[data-theme="dark"] .blob-cursor.is-link-hover .blob-cursor__blob {
  border-color: rgba(224, 138, 118, 0.7);
  box-shadow:
    0 0 0 1px rgba(224, 138, 118, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .study-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(224, 138, 118, 0.045), rgba(0, 0, 0, 0)),
    var(--paper-soft);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

:root[data-theme="dark"] .study-shell::before {
  border-color: rgba(224, 138, 118, 0.16);
}

:root[data-theme="dark"] .print-stamp {
  border-color: rgba(224, 138, 118, 0.34);
  color: rgba(224, 138, 118, 0.36);
  mix-blend-mode: normal;
}

:root[data-theme="dark"] .print-stamp::before {
  border-color: rgba(224, 138, 118, 0.28);
}

:root[data-theme="dark"] .study-asset {
  mix-blend-mode: screen;
  opacity: 0.18;
}

:root[data-theme="dark"] .study-note-card,
:root[data-theme="dark"] .study-outline,
:root[data-theme="dark"] .study-mcq,
:root[data-theme="dark"] .study-code,
:root[data-theme="dark"] .study-image,
:root[data-theme="dark"] .study-table-wrap,
:root[data-theme="dark"] .study-markdown__error,
:root[data-theme="dark"] .notes-panel,
:root[data-theme="dark"] .notes-preview-card,
:root[data-theme="dark"] .notes-toc-card,
:root[data-theme="dark"] .notes-empty,
:root[data-theme="dark"] .notes-subject__note {
  border-color: rgba(232, 205, 181, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    rgba(30, 25, 22, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .study-outline {
  border-color: rgba(224, 138, 118, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0)),
    rgba(31, 26, 23, 0.92);
}

:root[data-theme="dark"] .study-outline__home,
:root[data-theme="dark"] .study-settings__trigger,
:root[data-theme="dark"] .study-outline__toggle,
:root[data-theme="dark"] .notes-toolbar-action,
:root[data-theme="dark"] .notes-filter-chip,
:root[data-theme="dark"] .notes-tag,
:root[data-theme="dark"] .notes-subject__toggle::before {
  border-color: rgba(224, 138, 118, 0.24);
  background: rgba(224, 138, 118, 0.08);
}

:root[data-theme="dark"] .study-outline__back,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .study-settings__menu {
  border-color: rgba(224, 138, 118, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(224, 138, 118, 0.08)),
    rgba(31, 26, 23, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .study-settings__menu-title {
  color: rgba(243, 234, 223, 0.68);
}

:root[data-theme="dark"] .study-outline__back img {
  filter: brightness(1.28) saturate(1.2);
  opacity: 0.96;
}

:root[data-theme="dark"] .theme-toggle__track {
  border-color: rgba(232, 205, 181, 0.18);
  background:
    linear-gradient(90deg, rgba(224, 138, 118, 0.08), rgba(243, 234, 223, 0.06)),
    rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .study-code,
:root[data-theme="dark"] .study-image {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    #241f1b;
}

:root[data-theme="dark"] .study-code {
  background: var(--code-surface);
}

:root[data-theme="dark"] .study-image img {
  mix-blend-mode: normal;
  filter: brightness(0.94) contrast(1.05);
}

:root[data-theme="dark"] .study-code pre {
  color: var(--ink);
}

:root[data-theme="dark"] .study-shell code {
  border-color: rgba(224, 138, 118, 0.22);
  background: rgba(224, 138, 118, 0.1);
}

:root[data-theme="dark"] .study-code pre code {
  border-color: transparent;
  background: var(--code-surface);
}

:root[data-theme="dark"] .study-markdown__caption,
:root[data-theme="dark"] .study-note-card__list,
:root[data-theme="dark"] .study-note-card__list li,
:root[data-theme="dark"] .study-table th,
:root[data-theme="dark"] .study-table td,
:root[data-theme="dark"] .notes-preview-pane__header,
:root[data-theme="dark"] .notes-toc__link {
  border-color: rgba(232, 205, 181, 0.16);
}

:root[data-theme="dark"] .study-table th {
  background: rgba(224, 138, 118, 0.1);
}

:root[data-theme="dark"] .study-markdown .study-mcq__option {
  border-color: rgba(232, 205, 181, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

:root[data-theme="dark"] .study-mcq__feedback {
  border-color: rgba(232, 205, 181, 0.12);
  background: rgba(224, 138, 118, 0.08);
}

:root[data-theme="dark"] .notes-input,
:root[data-theme="dark"] .notes-select {
  border-color: rgba(232, 205, 181, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

:root[data-theme="dark"] .notes-input::placeholder {
  color: rgba(243, 234, 223, 0.42);
}

:root[data-theme="dark"] .notes-note-card {
  border-color: rgba(232, 205, 181, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

:root[data-theme="dark"] .notes-note-card__icon {
  border-color: rgba(224, 138, 118, 0.22);
  background: rgba(224, 138, 118, 0.08);
}

:root[data-theme="dark"] .notes-note-card:hover,
:root[data-theme="dark"] .notes-note-card:focus-visible,
:root[data-theme="dark"] .notes-note-card.is-active,
:root[data-theme="dark"] .notes-subject__note:hover,
:root[data-theme="dark"] .notes-subject__note:focus-visible,
:root[data-theme="dark"] .study-outline__link:hover,
:root[data-theme="dark"] .study-outline__link:focus-visible,
:root[data-theme="dark"] .study-outline__link.is-active {
  border-color: rgba(224, 138, 118, 0.28);
  background: rgba(224, 138, 118, 0.095);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .notes-command-bar {
  background:
    linear-gradient(180deg, rgba(31, 26, 23, 0.96), rgba(31, 26, 23, 0.88)),
    var(--paper-soft);
}

@media (max-width: 780px) {
  :root[data-theme="dark"] .study-outline {
    background:
      linear-gradient(180deg, rgba(31, 26, 23, 0.9), rgba(31, 26, 23, 0.82)),
      rgba(31, 26, 23, 0.97);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  }
}

@keyframes frame-x {
  to {
    transform: scaleX(1);
  }
}

@keyframes frame-y {
  to {
    transform: scaleY(1);
  }
}

@keyframes loader-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-seal {
  0% {
    opacity: 0;
    transform: scale(0.92) rotate(-6deg);
  }

  65% {
    opacity: 1;
    transform: scale(1.02) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes startup-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .study-shell {
    width: min(98vw, 1360px);
  }

  .study-main-grid,
  .study-hero,
  .study-band,
  .notes-workbench {
    grid-template-columns: 1fr;
  }

  .study-band__meta {
    justify-content: flex-start;
  }

  .study-outline {
    display: block;
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 1rem;
    backdrop-filter: none;
  }

  .study-outline__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .study-note-card {
    width: 100%;
  }

  .notes-command-bar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .notes-command-bar__actions {
    justify-content: flex-start;
  }

  .notes-rail {
    position: static;
  }

  .notes-preview-pane__grid {
    grid-template-columns: 1fr;
  }

  .notes-shell--minimal {
    width: min(96vw, 760px);
  }

  .study-asset--computer {
    right: 1rem;
  }

  .study-asset--mouse {
    left: auto;
    right: 0.6rem;
  }
}

@media (max-width: 780px) {
  .study-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    padding: 1rem 1rem 1.4rem;
  }

  .study-shell::before {
    inset: 0;
    border-left: 0;
    border-right: 0;
  }

  .study-topbar {
    grid-template-columns: 1fr;
    align-items: start;
    min-width: 0;
    padding-top: 4.35rem;
  }

  .study-topbar__nav {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0.55rem 0.75rem;
  }

  .study-topbar__nav a,
  .study-topbar__title,
  .study-topbar__id {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .study-facts,
  .study-outline__list {
    grid-template-columns: 1fr;
  }

  .study-outline {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.65rem);
    left: max(0.55rem, env(safe-area-inset-left, 0px));
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    width: auto;
    height: auto;
    max-width: calc(100dvw - 1.1rem);
    max-height: calc(100dvh - 1.8rem);
    padding: 0.45rem;
    border: 1px solid rgba(168, 90, 77, 0.28);
    border-radius: 0.45rem;
    border-color: rgba(168, 90, 77, 0.28);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.68)),
      rgba(248, 244, 238, 0.97);
    box-shadow: 0 16px 34px rgba(39, 31, 28, 0.14);
    backdrop-filter: blur(14px);
    z-index: 12;
  }

  .study-main-content {
    padding: 0;
  }

  .study-outline__header {
    display: grid;
    grid-template-columns: 2.45rem auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0.42rem;
  }

  .study-outline__header h2 {
    display: none;
  }

  .study-outline__back {
    position: relative;
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    min-width: 2.45rem;
    height: 2.34rem;
    min-height: 2.34rem;
    overflow: hidden;
    border: 1px solid rgba(168, 90, 77, 0.24);
    border-radius: 0.35rem;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(168, 90, 77, 0.08)),
      rgba(248, 244, 238, 0.7);
    color: transparent;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.36),
      0 8px 16px rgba(39, 31, 28, 0.08);
    transition:
      border-color 140ms ease,
      background-color 140ms ease,
      transform 140ms ease;
  }

  .study-outline__back img {
    display: block;
    width: 1.28rem;
    height: 1.28rem;
    object-fit: contain;
    filter: none;
    opacity: 0.92;
    transform: translateX(-0.02rem);
    transition:
      filter 160ms ease,
      opacity 160ms ease,
      transform 160ms ease;
  }

  .study-outline__back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .study-outline__back:hover,
  .study-outline__back:focus-visible {
    border-color: rgba(168, 90, 77, 0.46);
    background-color: rgba(168, 90, 77, 0.1);
    transform: translateX(-2px);
  }

  .study-outline__back:hover img,
  .study-outline__back:focus-visible img {
    opacity: 1;
    transform: translateX(-0.12rem);
  }

  .study-outline__toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 2.34rem;
    min-height: 2.34rem;
    padding: 0.56rem 0.78rem;
    border-radius: 0.35rem;
    background: rgba(168, 90, 77, 0.09);
    box-shadow: 0 8px 16px rgba(168, 90, 77, 0.08);
  }

  .study-outline__slide-title {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 2.34rem;
    min-height: 2.34rem;
    align-self: stretch;
    padding: 0.56rem 0.68rem;
    border-radius: 0.35rem;
    background: rgba(168, 90, 77, 0.05);
    text-align: center;
    line-height: 1.15;
    white-space: normal;
  }

  .study-outline h2,
  .study-outline__home {
    display: none;
  }

  .study-outline__actions {
    display: none;
  }

  .study-outline .study-kicker,
  .study-outline__lede {
    display: none;
  }

  .study-outline__list {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease;
  }

  .study-outline.is-open {
    display: flex;
    flex-direction: column;
    width: auto;
    padding: 0.65rem;
  }

  .study-outline.is-open .study-kicker,
  .study-outline.is-open h2,
  .study-outline.is-open .study-outline__lede {
    display: block;
  }

  .study-outline.is-open .study-outline__header h2 {
    display: none;
  }

  .study-outline.is-open .study-outline__header {
    order: 1;
    flex: 0 0 auto;
    gap: 0.42rem;
    align-items: stretch;
  }

  .study-outline.is-open .study-kicker {
    order: 2;
    display: block;
    width: 100%;
    margin-top: 0.95rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(168, 90, 77, 0.18);
    clear: both;
  }

  .study-outline.is-open .study-outline__lede {
    order: 3;
    margin-top: 0.48rem;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .study-outline.is-open .study-outline__home {
    order: 4;
    display: none;
  }

  .study-outline.is-open .study-outline__actions {
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.45rem;
    margin-bottom: 0.1rem;
  }

  .study-outline.is-open .study-outline__actions .study-outline__home {
    display: none;
  }

  .study-outline.is-open .study-settings__menu {
    left: auto;
    right: 0;
    min-width: min(14rem, calc(100dvw - 2rem));
  }

  .study-outline.is-open .study-outline__list {
    order: 5;
    margin-top: 0.7rem;
    max-height: min(60vh, 26rem);
    overflow: auto;
    opacity: 1;
    pointer-events: auto;
    padding: 0.2rem 0.2rem 0.25rem 0.2rem;
  }

  .study-markdown__section-header,
  .study-markdown__section-body {
    padding-left: 0;
  }

  .study-markdown,
  .study-markdown__section,
  .study-markdown__section-body,
  .study-markdown p,
  .study-markdown li,
  .study-markdown ul,
  .study-markdown ol,
  .study-code {
    min-width: 0;
    max-width: 100%;
  }

  .study-markdown__section-header {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    min-width: 0;
  }

  .study-markdown__section-index {
    padding-top: 0;
  }

  .study-hero h1,
  .study-markdown__section-header h2,
  .study-markdown h3,
  .study-markdown h4,
  .study-lede,
  .study-band__meta,
  .study-footer,
  .study-footer__links {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .study-facts {
    min-width: 0;
  }

  .study-fact {
    min-width: 0;
  }

  .study-code pre {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .study-code pre code {
    white-space: inherit;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .notes-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 0.85rem 0.95rem;
  }

  .notes-shell::before {
    inset: 0;
    border-left: 0;
    border-right: 0;
  }

  .notes-command-bar {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 0.75rem 0 0.7rem;
    background:
      linear-gradient(180deg, rgba(248, 244, 238, 0.96), rgba(248, 244, 238, 0.88)),
      var(--paper-soft);
  }

  .notes-command-bar__brand h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .notes-select-grid {
    grid-template-columns: 1fr;
  }

  .notes-preview-pane__eyebrow {
    align-items: start;
  }

  .notes-preview-pane__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .notes-preview-pane__meta {
    gap: 0.35rem;
  }

  .notes-stage__path,
  .notes-command-bar__path {
    gap: 0.25rem;
  }

  .notes-preview-card,
  .notes-toc-card,
  .notes-panel,
  .notes-empty {
    padding: 0.85rem;
  }

  .notes-toolbar-action {
    min-height: 2rem;
    padding: 0 0.75rem;
  }

  .notes-shell--minimal {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.8rem 0.85rem 0.95rem;
  }

  .notes-subject__toggle {
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .notes-subject__toggle::before {
    width: 1.25rem;
  }

  .study-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .study-asset {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tutor dashboard reference build */
body:has(.tutor-dashboard) {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 20%, rgba(126, 64, 52, 0.18), transparent 30rem),
    radial-gradient(circle at 35% 44%, rgba(73, 44, 36, 0.16), transparent 26rem),
    #161514;
  color: #1b1b1b;
}

body:has(.tutor-dashboard) .editorial-loader {
  display: none;
}

body:has(.tutor-dashboard) .click-spark-overlay,
body:has(.tutor-dashboard) .site-scroll-instrument {
  display: none;
}

.tutor-dashboard {
  --dash-bg: #171615;
  --dash-panel: rgba(34, 29, 26, 0.62);
  --dash-line: rgba(205, 128, 105, 0.22);
  --dash-line-strong: rgba(205, 128, 105, 0.34);
  --dash-text: #efe5dc;
  --dash-muted: rgba(239, 229, 220, 0.64);
  --dash-faint: rgba(239, 229, 220, 0.42);
  --dash-accent: #ef8f7c;
  --dash-warm: #caa793;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 18rem),
    radial-gradient(circle at 14% 18%, rgba(239, 143, 124, 0.07), transparent 22rem),
    radial-gradient(circle at 80% 18%, rgba(239, 143, 124, 0.08), transparent 28rem),
    var(--dash-bg);
  color: var(--dash-text);
}

.tutor-dashboard__frame {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
}

.tutor-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100vh;
  min-height: 0;
  padding: 18px 16px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18rem),
    #171615;
  color: var(--dash-text);
  border-right: 1px solid rgba(205, 128, 105, 0.18);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.04);
}

.tutor-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--dash-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.tutor-sidebar__mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(239, 143, 124, 0.48);
  border-radius: 8px;
  color: var(--dash-accent);
  background: rgba(239, 143, 124, 0.045);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.tutor-sidebar__settings {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--dash-text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    width 180ms ease,
    min-height 180ms ease,
    border-radius 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.tutor-dashboard .tutor-sidebar__settings:hover,
.tutor-dashboard .tutor-sidebar__settings:focus-visible {
  background: rgba(239, 143, 124, 0.07);
  color: var(--dash-accent);
}

.tutor-sidebar__settings svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(239, 143, 124, 0.78);
}

.tutor-sidebar__chevron {
  justify-self: end;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: rgba(239, 143, 124, 0.66);
  transform: rotate(45deg) translateY(-1px);
}

.tutor-sidebar__nav {
  min-height: 0;
  overflow: auto;
  padding: 12px 0 12px;
  scrollbar-width: none;
}

.tutor-sidebar__nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tutor-sidebar__art {
  position: absolute;
  left: 16px;
  right: 18px;
  bottom: 58px;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
}

.tutor-sidebar__art img {
  display: block;
  width: min(100%, 248px);
  height: auto;
  object-fit: contain;
  filter: grayscale(1) sepia(0.05) brightness(0.92) contrast(0.88);
  mix-blend-mode: screen;
}

.tutor-sidebar__label,
.tutor-section-title,
.tutor-note-path,
.tutor-note-row small,
.tutor-note-row time,
.tutor-recent__header a,
.tutor-button,
.tutor-dashboard__crumb,
.tutor-dashboard .site-sound-toggle,
.tutor-dashboard .theme-toggle,
.tutor-dashboard .cursor-toggle {
  font-family: var(--mono);
  text-transform: uppercase;
}

.tutor-sidebar__label {
  margin: 18px 0 10px;
  color: rgba(239, 229, 220, 0.48);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tutor-sidebar__subject {
  margin: 0;
}

.tutor-sidebar__subjects {
  display: grid;
  gap: 6px;
}

.tutor-sidebar__subject-toggle {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 3px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(239, 229, 220, 0.82);
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.tutor-sidebar__subject-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-block: 2px;
}

.tutor-sidebar__subject-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: rgba(239, 143, 124, 0.72);
}

.tutor-sidebar__subject-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tutor-sidebar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(205, 128, 105, 0.28);
  border-radius: 8px;
  background: rgba(21, 19, 18, 0.34);
  color: var(--dash-warm);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.16);
}

.tutor-sidebar__subject.is-open .tutor-sidebar__chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.tutor-sidebar__subject.is-active .tutor-sidebar__subject-toggle {
  color: var(--dash-text);
}

.tutor-sidebar__subject.is-active.is-open .tutor-sidebar__subject-toggle {
  background: rgba(239, 143, 124, 0.075);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 1px 3px rgba(0, 0, 0, 0.16);
}

.tutor-sidebar__subject-toggle:hover,
.tutor-sidebar__subject-toggle:focus-visible {
  background: rgba(239, 143, 124, 0.055);
  color: var(--dash-text);
}

.tutor-sidebar ul {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0 0 0 28px;
  padding: 0 0 4px 28px;
  list-style: none;
  overflow: hidden;
}

.tutor-sidebar ul[hidden] {
  display: none;
}

.tutor-sidebar li {
  position: relative;
}

.tutor-sidebar li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 50%;
  left: -13px;
  width: 13px;
  border-left: 1px solid rgba(205, 128, 105, 0.22);
  border-bottom: 1px solid rgba(205, 128, 105, 0.22);
  border-bottom-left-radius: 8px;
}

.tutor-sidebar li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  left: -13px;
  border-left: 1px solid rgba(205, 128, 105, 0.22);
}

.tutor-sidebar li a {
  position: relative;
  display: block;
  padding: 9px 0 9px 12px;
  border-radius: 0;
  color: var(--dash-warm);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.tutor-sidebar li a:hover,
.tutor-sidebar li a:focus-visible {
  color: var(--dash-accent);
}

.tutor-sidebar li a.is-active {
  color: var(--dash-accent);
  font-weight: 800;
}

.tutor-sidebar__empty {
  display: block;
  padding: 5px 9px 5px 19px;
  color: rgba(239, 229, 220, 0.42);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.tutor-sidebar__settings {
  position: relative;
  margin: 0;
  min-height: 44px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 12px;
  color: var(--dash-accent);
}

.tutor-sidebar__settings-wrap {
  position: relative;
  z-index: 3;
  margin: 0 -12px;
  padding: 6px 0 12px;
}

.tutor-sidebar__settings-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 8px;
  padding: 0 12px;
  opacity: 1;
  transform: translateY(0);
}

.tutor-sidebar__settings-menu[hidden] {
  display: none;
}

.tutor-sidebar__setting-item {
  min-width: 0;
}

.tutor-sidebar__setting-item:empty {
  display: none;
}

.tutor-sidebar__brand,
.tutor-search,
.tutor-sidebar__nav {
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.tutor-sidebar.is-settings-open .tutor-sidebar__brand,
.tutor-sidebar.is-settings-open .tutor-search,
.tutor-sidebar.is-settings-open .tutor-sidebar__nav {
  filter: blur(2px);
  opacity: 0.36;
  pointer-events: none;
}

.tutor-sidebar__settings-wrap.is-open {
  padding-bottom: 16px;
}

.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings {
  grid-template-columns: 1fr;
  width: 52px;
  height: 52px;
  min-height: 52px;
  margin-left: 12px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(239, 143, 124, 0.34);
  border-radius: 50%;
  background: rgba(18, 17, 16, 0.74);
  color: var(--dash-accent);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.26);
}

.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings svg,
.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings span {
  opacity: 0;
}

.tutor-sidebar__settings::before,
.tutor-sidebar__settings::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: opacity 160ms ease;
}

.tutor-sidebar__settings::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings::before,
.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings::after {
  opacity: 1;
}

.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings:hover,
.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings:focus-visible {
  background: rgba(239, 143, 124, 0.12);
  color: var(--dash-text);
}

.tutor-dashboard .tutor-dashboard__main {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 24px 52px 32px 28px;
  overflow: auto;
  border: 0;
  background:
    linear-gradient(rgba(242, 236, 224, 0.8), rgba(242, 236, 224, 0.84)),
    url("../assets/decorative/background.png") center bottom / 78% auto no-repeat,
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.045), transparent 20rem),
    radial-gradient(circle at 38% 52%, rgba(239, 143, 124, 0.055), transparent 28rem),
    transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.tutor-dashboard .tutor-dashboard__main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tutor-dashboard .tutor-dashboard__main::before {
  display: none;
}

.tutor-dashboard .tutor-dashboard__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tutor-dashboard .site-sound-control {
  position: relative;
}

.tutor-dashboard .site-sound-toggle,
.tutor-dashboard .theme-toggle,
.tutor-dashboard .cursor-toggle {
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--dash-line);
  border-radius: 0;
  background: rgba(21, 19, 18, 0.52);
  color: var(--dash-text);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tutor-dashboard .site-sound-toggle {
  gap: 11px;
  padding: 0 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 241, 0.9)),
    #efe6df;
  color: #ba6e60;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
}

.tutor-dashboard .site-sound-toggle__dot {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(239, 143, 124, 0.36);
  border-radius: 50%;
  background: rgba(239, 143, 124, 0.58);
}

.tutor-dashboard .site-sound-panel {
  display: none;
}

.tutor-dashboard .theme-toggle {
  gap: 12px;
  width: 140px;
  justify-content: center;
  padding: 0 13px;
}

.tutor-dashboard .theme-toggle__track {
  width: 46px;
  height: 22px;
  border-color: var(--dash-line-strong);
  background: transparent;
}

.tutor-dashboard .theme-toggle__track::before {
  left: 8px;
  right: auto;
  top: 7px;
  width: 9px;
  height: 9px;
  background: rgba(239, 229, 220, 0.56);
  box-shadow: none;
}

.tutor-dashboard .theme-toggle__track::after {
  right: 6px;
  left: auto;
  top: 3px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--dash-accent);
  border-radius: 0;
  background: transparent;
  opacity: 1;
  transform: none;
}

.tutor-dashboard .theme-toggle__thumb {
  display: none;
}

.tutor-dashboard .theme-toggle__label,
.tutor-dashboard .cursor-toggle__label {
  min-width: 0;
}

.tutor-dashboard .cursor-toggle {
  width: 140px;
  justify-content: center;
  padding: 0 13px;
}

.tutor-dashboard .cursor-toggle__preview {
  width: 22px;
  height: 22px;
}

.tutor-dashboard .cursor-toggle__ring {
  width: 17px;
  height: 17px;
  border-color: var(--dash-accent);
  box-shadow: none;
}

.tutor-dashboard .cursor-toggle__dot {
  display: none;
}

.tutor-sidebar__settings-menu .site-sound-control,
.tutor-sidebar__settings-menu .theme-toggle,
.tutor-sidebar__settings-menu .cursor-toggle {
  width: 100%;
}

.tutor-sidebar__settings-menu .site-sound-toggle,
.tutor-sidebar__settings-menu .theme-toggle,
.tutor-sidebar__settings-menu .cursor-toggle {
  display: flex;
  width: 100%;
  height: 44px;
  min-height: 44px;
  justify-content: flex-start;
  border: 1px solid rgba(205, 128, 105, 0.2);
  border-radius: 12px;
  background: rgba(18, 17, 16, 0.46);
  color: rgba(239, 229, 220, 0.82);
  box-shadow: none;
}

.tutor-sidebar__settings-menu .site-sound-control,
.tutor-sidebar__settings-menu .theme-toggle,
.tutor-sidebar__settings-menu .cursor-toggle {
  backdrop-filter: blur(14px);
}

.tutor-sidebar__settings-menu .site-sound-toggle:hover,
.tutor-sidebar__settings-menu .site-sound-toggle:focus-visible,
.tutor-sidebar__settings-menu .theme-toggle:hover,
.tutor-sidebar__settings-menu .theme-toggle:focus-visible,
.tutor-sidebar__settings-menu .cursor-toggle:hover,
.tutor-sidebar__settings-menu .cursor-toggle:focus-visible {
  background: rgba(239, 143, 124, 0.07);
  color: var(--dash-accent);
}

.tutor-sidebar__settings-menu .theme-toggle,
.tutor-sidebar__settings-menu .cursor-toggle {
  gap: 12px;
  padding: 0 14px;
}

.tutor-sidebar__settings-menu .site-sound-toggle {
  gap: 11px;
  padding: 0 14px;
}

.tutor-sidebar__settings-menu .site-sound-panel {
  display: none;
}

.tutor-search {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 52px;
  margin-top: 14px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(205, 128, 105, 0.28);
  background: rgba(18, 17, 16, 0.34);
  color: rgba(202, 167, 147, 0.8);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
}

.tutor-search svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--dash-accent);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.tutor-search--sidebar {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  height: 42px;
  min-height: 42px;
  margin-top: 26px;
  padding: 0 10px 0 12px;
  border-color: rgba(205, 128, 105, 0.22);
  border-radius: 12px;
  background: rgba(18, 17, 16, 0.42);
  color: var(--dash-warm);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
}

.tutor-search--sidebar > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-search--sidebar svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.tutor-search kbd {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(205, 128, 105, 0.25);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(202, 167, 147, 0.74);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.tutor-search.tutor-search--sidebar kbd {
  grid-column: auto;
  justify-self: end;
  height: 24px;
  margin-top: 0;
  padding: 0 7px;
  border: 1px solid rgba(205, 128, 105, 0.18);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.1);
  color: rgba(202, 167, 147, 0.68);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.tutor-continue {
  margin-top: 10px;
}

.tutor-section-title {
  margin: 0;
  color: var(--dash-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.tutor-hero-note {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 168px;
  align-items: start;
  gap: 22px;
  min-height: 174px;
  margin-top: 16px;
  padding: 22px 24px 18px 22px;
  border: 1px solid rgba(205, 128, 105, 0.26);
  background: rgba(27, 24, 22, 0.5);
  overflow: hidden;
}

.tutor-hero-note__icon,
.tutor-note-row__icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 128, 105, 0.18);
  background: rgba(21, 19, 18, 0.34);
  color: var(--dash-accent);
}

.tutor-hero-note__icon {
  width: 80px;
  height: 80px;
  align-self: start;
}

.tutor-hero-note svg,
.tutor-note-row svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tutor-hero-note__content {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-self: stretch;
}

.tutor-hero-note__body {
  min-width: 0;
  padding-top: 0;
}

.tutor-hero-note h1 {
  margin: 0;
  color: var(--dash-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tutor-note-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--dash-warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.tutor-note-meta {
  margin: 16px 0 0;
  color: var(--dash-warm);
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 500;
}

.tutor-note-meta span {
  margin: 0 10px;
  color: var(--dash-faint);
}

.tutor-hero-note__progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.tutor-progress {
  position: relative;
  display: block;
  width: min(474px, 100%);
  height: 8px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(202, 111, 91, 0.18);
  flex: 0 1 474px;
}

.tutor-progress span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef8f7c, #d36f62);
}

.tutor-progress__value {
  color: var(--dash-warm);
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  flex: 0 0 auto;
}

.tutor-hero-note__actions {
  display: grid;
  justify-items: end;
  align-content: space-between;
  min-height: 118px;
  gap: 18px;
  padding-top: 2px;
  z-index: 1;
}

.tutor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 62px;
  border: 1px solid rgba(239, 143, 124, 0.42);
  background: rgba(24, 22, 21, 0.28);
  color: var(--dash-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.tutor-more {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(205, 128, 105, 0.3);
  background: rgba(24, 22, 21, 0.3);
  color: var(--dash-accent);
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1;
}

.tutor-recent {
  margin-top: 28px;
}

.tutor-recent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 14px;
}

.tutor-recent__header a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dash-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.tutor-recent__header a span,
.tutor-row-arrow {
  font-size: 25px;
  line-height: 1;
}

.tutor-note-list {
  border: 1px solid rgba(205, 128, 105, 0.25);
  background: rgba(27, 24, 22, 0.45);
}

.tutor-note-row {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr) 132px 24px;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 16px 12px 12px;
  border-bottom: 1px solid rgba(205, 128, 105, 0.2);
  color: var(--dash-text);
}

.tutor-note-row:last-child {
  border-bottom: 0;
}

.tutor-note-row__icon {
  width: 42px;
  height: 42px;
}

.tutor-note-row__icon svg {
  width: 22px;
  height: 22px;
}

.tutor-note-row strong {
  display: block;
  color: var(--dash-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.28;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tutor-note-row small {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--dash-warm);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.16em;
}

.tutor-note-row time {
  justify-self: end;
  color: var(--dash-warm);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

.tutor-row-arrow {
  color: var(--dash-accent);
}

.tutor-dashboard a,
.tutor-dashboard button {
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.tutor-dashboard a:hover,
.tutor-dashboard a:focus-visible,
.tutor-dashboard button:hover,
.tutor-dashboard button:focus-visible {
  color: var(--dash-accent);
}

.tutor-note-row:hover,
.tutor-note-row:focus-visible,
.tutor-button:hover,
.tutor-button:focus-visible {
  border-color: rgba(239, 143, 124, 0.55);
  background-color: rgba(239, 143, 124, 0.055);
}

@media (max-width: 1180px) {
  body:has(.tutor-dashboard) {
    overflow: auto;
  }

  .tutor-dashboard__frame {
    grid-template-columns: 300px minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
  }

  .tutor-dashboard .tutor-dashboard__main {
    height: auto;
    min-height: 100vh;
    padding: 32px;
  }

  .tutor-sidebar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tutor-sidebar__subject-toggle {
    font-size: 15px;
    padding-inline: 6px;
  }

  .tutor-hero-note {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .tutor-hero-note__actions {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
  }
}

@media (max-width: 820px) {
  .tutor-dashboard__frame {
    grid-template-columns: 1fr;
  }

  .tutor-sidebar {
    position: static;
    display: block;
    height: auto;
    padding: 18px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(205, 128, 105, 0.24);
  }

  .tutor-sidebar__nav {
    padding: 20px 0 0;
  }

  .tutor-sidebar__settings {
    margin: 18px 0 0;
    height: auto;
    min-height: 58px;
    padding: 18px 0 0;
  }

  .tutor-dashboard .tutor-dashboard__topbar,
  .tutor-dashboard__crumb,
  .tutor-recent__header {
    align-items: flex-start;
  }

  .tutor-dashboard .tutor-dashboard__topbar,
  .tutor-dashboard__crumb,
  .tutor-dashboard .tutor-dashboard__controls,
  .tutor-recent__header {
    flex-wrap: wrap;
    display: flex;
  }

  .tutor-search {
    grid-template-columns: 27px minmax(0, 1fr);
    height: auto;
    min-height: 61px;
    padding-block: 14px;
  }

  .tutor-search kbd {
    grid-column: 2;
    justify-self: start;
  }

  .tutor-hero-note,
  .tutor-note-row {
    grid-template-columns: 1fr;
  }

  .tutor-hero-note__actions {
    grid-column: auto;
    justify-items: start;
  }

  .tutor-note-row time,
  .tutor-row-arrow {
    justify-self: start;
  }
}

/* Monochrome dashboard override */
body:has(.tutor-dashboard) {
  background: #f2ece0 !important;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.58), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.02)),
    #f2ece0 !important;
  color: #13120f !important;
}

.tutor-dashboard {
  --dash-bg: #f2ece0;
  --dash-panel: rgba(255, 252, 245, 0.86);
  --dash-line: rgba(47, 42, 34, 0.14);
  --dash-line-strong: rgba(47, 42, 34, 0.26);
  --dash-text: #15120d;
  --dash-muted: rgba(31, 27, 22, 0.72);
  --dash-faint: rgba(31, 27, 22, 0.46);
  --dash-accent: #14110d;
  --dash-warm: rgba(31, 27, 22, 0.82);
  background: transparent !important;
  color: #15120d !important;
}

.tutor-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 14rem),
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.04), transparent 18rem),
    #171a19 !important;
  border-right-color: rgba(228, 219, 203, 0.14) !important;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.04) !important;
}

.tutor-dashboard .tutor-dashboard__main {
  background:
    linear-gradient(rgba(242, 236, 224, 0.78), rgba(242, 236, 224, 0.84)),
    url("../assets/decorative/background.png") center bottom / 78% auto no-repeat,
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.52), transparent 20rem),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.38), transparent 18rem),
    #f2ece0 !important;
  color: #15120d !important;
  box-shadow: none !important;
}

.tutor-hero-note,
.tutor-note-list,
.tutor-note-row,
.tutor-note-row__icon,
.tutor-hero-note__icon,
.tutor-button,
.tutor-more {
  background-color: rgba(255, 250, 242, 0.28) !important;
  background-image: none !important;
  border-color: rgba(58, 49, 38, 0.18) !important;
  backdrop-filter: blur(2px);
}

.tutor-search,
.tutor-search--sidebar,
.tutor-sidebar__mark,
.tutor-sidebar__badge,
.tutor-dashboard .site-sound-toggle,
.tutor-dashboard .theme-toggle,
.tutor-dashboard .cursor-toggle,
.tutor-sidebar__settings-menu .site-sound-toggle,
.tutor-sidebar__settings-menu .theme-toggle,
.tutor-sidebar__settings-menu .cursor-toggle,
.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings {
  background-color: rgba(255, 255, 255, 0.03) !important;
  background-image: none !important;
  border-color: rgba(223, 212, 192, 0.18) !important;
}

.tutor-sidebar__brand,
.tutor-sidebar__mark,
.tutor-sidebar__settings,
.tutor-sidebar__settings svg,
.tutor-sidebar__chevron,
.tutor-sidebar__subject-toggle,
.tutor-sidebar__subject-icon,
.tutor-sidebar li a,
.tutor-sidebar li a.is-active,
.tutor-sidebar li a:hover,
.tutor-sidebar li a:focus-visible,
.tutor-sidebar__empty,
.tutor-search,
.tutor-search svg,
.tutor-search--sidebar,
.tutor-search kbd,
.tutor-dashboard .site-sound-toggle,
.tutor-dashboard .theme-toggle,
.tutor-dashboard .cursor-toggle,
.tutor-sidebar__settings-menu .site-sound-toggle,
.tutor-sidebar__settings-menu .theme-toggle,
.tutor-sidebar__settings-menu .cursor-toggle {
  color: #f3ede2 !important;
  stroke: currentColor !important;
  fill: none !important;
}

.tutor-sidebar__label {
  color: rgba(243, 237, 226, 0.54) !important;
}

.tutor-sidebar li::before,
.tutor-sidebar li:not(:last-child)::after {
  border-color: rgba(231, 220, 202, 0.18) !important;
}

.tutor-dashboard .site-sound-toggle__dot,
.tutor-dashboard .theme-toggle__track::before {
  background: #f3ede2 !important;
  background-image: none !important;
}

.tutor-dashboard .theme-toggle__track,
.tutor-dashboard .theme-toggle__track::after,
.tutor-dashboard .cursor-toggle__ring {
  border-color: rgba(232, 222, 205, 0.36) !important;
}

.tutor-dashboard .site-sound-toggle,
.tutor-sidebar__settings-menu .site-sound-toggle {
  box-shadow: none !important;
}

.tutor-section-title,
.tutor-recent__header a,
.tutor-recent__header a span,
.tutor-row-arrow,
.tutor-note-row,
.tutor-note-row strong,
.tutor-note-row small,
.tutor-note-row time,
.tutor-note-path,
.tutor-note-meta,
.tutor-note-meta span,
.tutor-progress__value,
.tutor-button,
.tutor-more,
.tutor-dashboard a:hover,
.tutor-dashboard a:focus-visible,
.tutor-dashboard button:hover,
.tutor-dashboard button:focus-visible {
  color: #15120d !important;
  stroke: currentColor !important;
  fill: none !important;
}

.tutor-continue {
  position: relative;
  margin-top: 16px;
}

.tutor-continue .tutor-section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tutor-continue .tutor-hero-note {
  grid-template-columns: 132px minmax(0, 1fr) 250px;
  gap: 0;
  min-height: 216px;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(86, 73, 55, 0.16) !important;
  border-radius: 16px;
  background:
    radial-gradient(circle at 38% 46%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(252, 247, 239, 0.9), rgba(248, 243, 234, 0.82)) !important;
  backdrop-filter: none !important;
  box-shadow: 0 16px 38px rgba(42, 34, 23, 0.05) !important;
}

.tutor-continue .tutor-hero-note::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.tutor-continue .tutor-hero-note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 31%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(249, 243, 233, 0) 0%, rgba(249, 243, 233, 0.16) 26%, rgba(249, 243, 233, 0.8) 100%),
    url("../assets/decorative/background.png") right bottom / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.tutor-continue .tutor-hero-note__icon {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  justify-content: center;
  width: 132px;
  min-height: 100%;
  padding-top: 66px;
  border: 0 !important;
  border-right: 1px solid rgba(86, 73, 55, 0.12) !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 50% 100%, 0 calc(100% - 28px));
  background: linear-gradient(180deg, rgba(239, 233, 221, 0.72), rgba(246, 241, 232, 0.58)) !important;
  color: #15120d !important;
  z-index: 1;
}

.tutor-continue .tutor-hero-note__icon svg {
  width: 50px;
  height: 50px;
  stroke-width: 1.15;
}

.tutor-continue .tutor-hero-note__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 28px 28px 26px 30px;
}

.tutor-continue .tutor-hero-note__eyebrow {
  margin: 0 0 18px;
  color: rgba(95, 81, 62, 0.84);
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tutor-continue .tutor-hero-note__body {
  min-width: 0;
  padding-top: 0;
}

.tutor-continue .tutor-hero-note h1 {
  color: #17130f !important;
  font-size: 48px;
  font-weight: 500;
  line-height: 0.92;
  text-transform: none;
  text-wrap: balance;
}

.tutor-continue .tutor-note-path {
  gap: 18px;
  margin-top: 18px;
  color: rgba(96, 81, 61, 0.9) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tutor-continue .tutor-note-path span {
  color: rgba(74, 63, 49, 0.76) !important;
}

.tutor-continue .tutor-note-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: rgba(25, 21, 16, 0.9) !important;
  font-size: 16px;
  line-height: 1.08;
}

.tutor-continue .tutor-note-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tutor-continue .tutor-note-meta__item svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.45;
  color: rgba(46, 38, 28, 0.74) !important;
}

.tutor-continue .tutor-note-meta__text {
  color: rgba(32, 27, 20, 0.94) !important;
}

.tutor-continue .tutor-note-meta__separator {
  color: rgba(78, 67, 52, 0.58) !important;
  font-size: 18px;
  line-height: 1;
}

.tutor-continue .tutor-hero-note__progress-row {
  gap: 16px;
  margin-top: 22px;
  padding-top: 0;
}

.tutor-continue .tutor-progress {
  width: min(620px, 100%);
  height: 8px;
  border-radius: 999px;
  background: rgba(86, 73, 55, 0.1) !important;
  flex: 0 1 620px;
}

.tutor-continue .tutor-progress span {
  background: #17130f !important;
}

.tutor-continue .tutor-progress__value {
  color: rgba(27, 22, 16, 0.9) !important;
  font-size: 16px;
  font-weight: 500;
}

.tutor-continue .tutor-hero-note__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 100%;
  padding: 48px 28px 26px 28px;
}

.tutor-continue .tutor-hero-note__actions::before {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 34px;
  width: 1px;
  background: rgba(86, 73, 55, 0.14);
}

.tutor-continue .tutor-button,
.tutor-continue .tutor-more {
  box-shadow: none !important;
}

.tutor-continue .tutor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 184px;
  height: 58px;
  border: 0 !important;
  border-radius: 14px;
  background: #1d1b1a !important;
  color: #f7f1e7 !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tutor-continue .tutor-button::after {
  content: "→";
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
}

.tutor-continue .tutor-more {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(86, 73, 55, 0.16) !important;
  border-radius: 999px;
  background: rgba(252, 247, 239, 0.52) !important;
  color: #16120e !important;
  font-family: var(--mono);
  font-size: 21px;
  justify-self: center;
}

.tutor-sidebar__subject-toggle:hover,
.tutor-sidebar__subject-toggle:focus-visible,
.tutor-sidebar__subject.is-active.is-open .tutor-sidebar__subject-toggle,
.tutor-dashboard .tutor-sidebar__settings:hover,
.tutor-dashboard .tutor-sidebar__settings:focus-visible,
.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings:hover,
.tutor-sidebar__settings-wrap.is-open .tutor-sidebar__settings:focus-visible,
.tutor-sidebar__settings-menu .site-sound-toggle:hover,
.tutor-sidebar__settings-menu .site-sound-toggle:focus-visible,
.tutor-sidebar__settings-menu .theme-toggle:hover,
.tutor-sidebar__settings-menu .theme-toggle:focus-visible,
.tutor-sidebar__settings-menu .cursor-toggle:hover,
.tutor-sidebar__settings-menu .cursor-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
  background-image: none !important;
}

.tutor-note-row:hover,
.tutor-note-row:focus-visible,
.tutor-button:hover,
.tutor-button:focus-visible {
  background: rgba(255, 250, 242, 0.74) !important;
  border-color: rgba(58, 49, 38, 0.22) !important;
}

.tutor-continue .tutor-button:hover,
.tutor-continue .tutor-button:focus-visible {
  background: #262321 !important;
  border-color: transparent !important;
  color: #f7f1e7 !important;
}

.tutor-continue .tutor-more:hover,
.tutor-continue .tutor-more:focus-visible {
  background: rgba(252, 247, 239, 0.84) !important;
  border-color: rgba(86, 73, 55, 0.22) !important;
}

.tutor-progress {
  background: rgba(36, 31, 25, 0.14) !important;
}

.tutor-progress span {
  background: #15120d !important;
  background-image: none !important;
}

.tutor-dashboard *,
.tutor-dashboard *::before,
.tutor-dashboard *::after {
  accent-color: #15120d;
}

.tutor-mobile-nav-toggle,
.tutor-mobile-sidebar-backdrop {
  display: none;
}

body:has(.tutor-dashboard.is-mobile-sidebar-open) {
  overflow: hidden;
}

@media (max-width: 820px) {
  .tutor-dashboard__frame {
    position: relative;
    grid-template-columns: 1fr !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  .tutor-mobile-nav-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 60;
    display: grid;
    width: 46px;
    height: 46px;
    align-content: center;
    gap: 5px;
    padding: 0 11px;
    border: 1px solid rgba(86, 73, 55, 0.16);
    border-radius: 14px;
    background: rgba(252, 247, 239, 0.92);
    box-shadow: 0 10px 28px rgba(40, 32, 21, 0.08);
    color: #15120d;
  }

  .tutor-mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
  }

  .tutor-dashboard.is-mobile-sidebar-open .tutor-mobile-nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .tutor-dashboard.is-mobile-sidebar-open .tutor-mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .tutor-dashboard.is-mobile-sidebar-open .tutor-mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .tutor-mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: block;
    border: 0;
    background: rgba(20, 16, 12, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .tutor-dashboard.is-mobile-sidebar-open .tutor-mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .tutor-sidebar {
    position: fixed !important;
    inset: 0;
    z-index: 50;
    width: 100vw;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 78px 16px 16px !important;
    overflow: auto;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none;
    transform: translateX(-104%);
    transition: transform 220ms ease;
    scrollbar-width: none;
  }

  .tutor-dashboard.is-mobile-sidebar-open .tutor-sidebar {
    transform: translateX(0);
  }

  .tutor-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .tutor-sidebar__brand {
    min-height: 40px;
    padding-right: 56px;
    color: #f3ede2 !important;
    font-size: 28px;
  }

  .tutor-sidebar__mark {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .tutor-search--sidebar {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    min-height: 54px;
    margin-top: 22px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 14px;
  }

  .tutor-search--sidebar kbd {
    display: none;
  }

  .tutor-sidebar__nav {
    padding: 18px 0 12px;
    overflow: visible;
  }

  .tutor-sidebar__label {
    margin: 0 0 12px;
    color: rgba(243, 237, 226, 0.72) !important;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .tutor-sidebar__subjects {
    gap: 10px;
  }

  .tutor-sidebar__subject-toggle {
    min-height: 60px;
    padding: 8px 14px;
    border-radius: 16px;
    color: #f3ede2 !important;
    font-size: 18px;
  }

  .tutor-sidebar__subject-name {
    white-space: normal;
  }

  .tutor-sidebar__badge {
    min-width: 36px;
    height: 28px;
    border-radius: 10px;
    color: #f3ede2 !important;
    font-size: 11px;
  }

  .tutor-sidebar ul {
    margin-left: 12px;
    padding: 6px 0 0 24px;
  }

  .tutor-sidebar li::before,
  .tutor-sidebar li:not(:last-child)::after {
    left: -10px;
  }

  .tutor-sidebar li a {
    padding: 11px 0 11px 10px;
    color: #f3ede2 !important;
    font-size: 14px;
    line-height: 1.25;
  }

  .tutor-sidebar li a:hover,
  .tutor-sidebar li a:focus-visible,
  .tutor-sidebar li a.is-active,
  .tutor-sidebar__subject.is-active .tutor-sidebar__subject-toggle,
  .tutor-sidebar__subject.is-active.is-open .tutor-sidebar__subject-toggle,
  .tutor-sidebar__subject-toggle:hover,
  .tutor-sidebar__subject-toggle:focus-visible,
  .tutor-sidebar__settings,
  .tutor-sidebar__settings svg,
  .tutor-sidebar__empty {
    color: #f3ede2 !important;
  }

  .tutor-sidebar__chevron,
  .tutor-sidebar__subject-icon {
    color: rgba(243, 237, 226, 0.82) !important;
  }

  .tutor-sidebar__settings-menu .site-sound-toggle,
  .tutor-sidebar__settings-menu .theme-toggle,
  .tutor-sidebar__settings-menu .cursor-toggle {
    color: #f3ede2 !important;
  }

  .tutor-sidebar__art {
    display: none;
  }

  .tutor-sidebar__settings-wrap {
    margin: 16px 0 0;
    padding: 0;
  }

  .tutor-sidebar__settings {
    min-height: 52px;
    padding: 14px 10px;
    border-radius: 14px;
  }

  .tutor-sidebar__settings-menu {
    position: static;
    gap: 10px;
    padding: 10px 0 0;
  }

  .tutor-sidebar__settings-wrap.is-open {
    padding-bottom: 0;
  }

  .tutor-sidebar.is-settings-open .tutor-sidebar__brand,
  .tutor-sidebar.is-settings-open .tutor-search,
  .tutor-sidebar.is-settings-open .tutor-sidebar__nav {
    filter: none;
    opacity: 1;
    pointer-events: auto;
  }

  .tutor-dashboard .tutor-dashboard__main {
    --mobile-main-top: 68px;
    --mobile-main-bottom: 12px;
    --mobile-main-gap: 12px;
    --mobile-main-usable: calc(100dvh - var(--mobile-main-top) - var(--mobile-main-bottom) - var(--mobile-main-gap));
    position: relative;
    height: 100dvh !important;
    min-height: 100dvh !important;
    display: grid;
    grid-template-rows:
      minmax(0, calc(var(--mobile-main-usable) * 0.4))
      minmax(0, calc(var(--mobile-main-usable) * 0.6));
    gap: var(--mobile-main-gap);
    padding: var(--mobile-main-top) 12px var(--mobile-main-bottom) !important;
    overflow: hidden !important;
    background-size: 140% auto, 120% auto, auto, auto, auto !important;
  }

  .tutor-continue,
  .tutor-recent {
    min-height: 0;
    margin-top: 0 !important;
    overflow: hidden;
  }

  .tutor-continue .tutor-hero-note {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    border-radius: 18px;
    overflow: hidden;
  }

  .tutor-continue .tutor-hero-note::before {
    opacity: 0.35;
  }

  .tutor-continue .tutor-hero-note::after {
    display: none;
  }

  .tutor-continue .tutor-hero-note__icon {
    display: none;
  }

  .tutor-continue .tutor-hero-note__content {
    min-height: 0;
    overflow: hidden;
    padding: 16px 16px 0;
  }

  .tutor-continue .tutor-hero-note__eyebrow {
    display: none;
  }

  .tutor-continue .tutor-hero-note h1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 0.96;
  }

  .tutor-continue .tutor-note-path {
    gap: 8px;
    min-width: 0;
    margin-top: 14px;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .tutor-continue .tutor-note-meta {
    gap: 8px 10px;
    margin-top: 16px;
    font-size: 12px;
  }

  .tutor-continue .tutor-note-meta__item {
    gap: 6px;
  }

  .tutor-continue .tutor-note-meta__item svg {
    width: 15px;
    height: 15px;
  }

  .tutor-continue .tutor-note-meta__separator {
    font-size: 12px;
  }

  .tutor-continue .tutor-hero-note__progress-row {
    gap: 8px;
    margin-top: 16px;
  }

  .tutor-continue .tutor-progress {
    width: 100%;
    height: 6px;
    flex: 1 1 auto;
  }

  .tutor-continue .tutor-progress__value {
    font-size: 12px;
  }

  .tutor-continue .tutor-hero-note__actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0 16px 16px;
  }

  .tutor-continue .tutor-hero-note__actions::before {
    display: none;
  }

  .tutor-continue .tutor-button {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .tutor-continue .tutor-button::after {
    font-size: 20px;
  }

  .tutor-continue .tutor-more {
    display: none;
  }

  .tutor-recent {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tutor-recent__header {
    margin-bottom: 8px;
    padding: 0 4px;
  }

  .tutor-recent__header a {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .tutor-note-list {
    height: 100%;
    min-height: 0;
    overflow: auto;
    border-radius: 16px;
    background: rgba(252, 247, 239, 0.46) !important;
  }

  .tutor-note-row {
    grid-template-columns: 40px minmax(0, 1fr) 14px;
    align-items: start;
    gap: 12px;
    min-height: 0;
    padding: 16px 14px;
  }

  .tutor-note-row__icon {
    width: 40px;
    height: 40px;
  }

  .tutor-note-row__icon svg {
    width: 20px;
    height: 20px;
  }

  .tutor-note-row strong {
    font-size: 15px;
    line-height: 1.2;
    text-transform: none;
  }

  .tutor-note-row small {
    gap: 7px;
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .tutor-note-row time {
    grid-column: 2;
    justify-self: start;
    margin-top: 9px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .tutor-row-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    font-size: 20px;
  }

  .scroll-to-top {
    display: none !important;
  }
}
