@font-face {
  font-family:BlueBits;
  src:url('/fonts/BoutrosMBCDinkum-Medium.ttf') format('truetype');
  font-display:swap
}
@font-face {
  font-family:BlueBitsHeading;
  src:url('/fonts/Hacen-Algeria.ttf') format('truetype');
  font-display:swap
}
:root {
  --brand:#48449c;
  --brand-dark:#343071;
  --blue:#246da3;
  --ink:#252539;
  --muted:#626279;
  --line:#dfdfeb;
  --soft:#f1f0f8;
  --paper:#fff;
  --bg:#f8f8fb;
  --danger:#a12d42;
  --radius:16px
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:18px/1.7 BlueBits,Tahoma,sans-serif
}
a {
  color:var(--brand);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button,input,select,textarea {
  font:inherit
}
button,.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:10px 20px;
  border:1px solid transparent;
  border-radius:9px;
  background:var(--brand);
  color:#fff;
  cursor:pointer;
  font-weight:600;
  transition:background .18s,border-color .18s
}
button:hover,.button:hover {
  background:var(--brand-dark);
  text-decoration:none
}
button:disabled {
  opacity:.5;
  cursor:not-allowed
}
.quiet {
  border-color:var(--line);
  background:transparent;
  color:var(--brand)
}
.quiet:hover {
  background:var(--soft);
  border-color:var(--brand)
}
.secondary {
  background:var(--blue)
}
:focus-visible {
  outline:3px solid #2680bb;
  outline-offset:4px
}
input,select,textarea {
  display:block;
  width:100%;
  background:#fff;
  border:1px solid #ababbd;
  border-radius:8px;
  color:var(--ink);
  padding:10px 12px;
  min-height:46px
}
input::placeholder,textarea::placeholder {
  color:#767689
}
textarea {
  resize:vertical;
  line-height:1.85
}
label {
  display:block;
  margin:16px 0 6px;
  font-size:16px
}
fieldset {
  padding:0;
  border:0;
  margin:0;
  min-width:0
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2,h3 {
  font-family:BlueBitsHeading,BlueBits,Tahoma,sans-serif;
  font-weight:400;
  line-height:1.6
}
h1 {
  font-size:clamp(30px,3vw,44px);
  margin-bottom:12px
}
h2 {
  font-size:25px;
  margin-bottom:16px
}
h3 {
  font-size:21px;
  margin-bottom:10px
}
p {
  margin-bottom:14px
}
main {
  max-width:1320px;
  margin:auto;
  padding:32px 40px 60px
}
.topbar {
  display:flex;
  align-items:center;
  gap:36px;
  padding:14px 40px;
  border-bottom:1px solid var(--line);
  background:white
}
.brand {
  display:flex;
  align-items:center;
  gap:15px;
  color:var(--ink);
  font-family:BlueBitsHeading,BlueBits,sans-serif;
  white-space:nowrap
}
.brand:hover {
  text-decoration:none
}
.brand-logo {
  width:58px;
  height:64px
}
.brand small {
  display:block;
  color:var(--muted);
  font:11px/1.8 sans-serif;
  letter-spacing:1px
}
.topbar nav {
  display:flex;
  gap:24px
}
.topbar nav a {
  padding:15px 5px;
  color:var(--muted)
}
.topbar nav a[aria-current] {
  color:var(--brand);
  border-bottom:2px solid var(--brand)
}
.account {
  display:flex;
  gap:16px;
  align-items:center;
  margin-inline-start:auto;
  font-size:13px
}
.edition {
  margin-inline-start:auto;
  color:var(--muted);
  font-size:15px
}
.eyebrow {
  color:var(--brand);
  font-size:14px;
  margin-bottom:6px
}
.muted {
  color:var(--muted)
}
.small {
  font-size:15px
}
.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:25px
}
.panel>button,.panel>form>button,form.panel>button,.management form button {
  width:100%;
  margin-top:20px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  margin:22px 0 30px
}
.page-heading h1 {
  overflow-wrap:anywhere
}
.hero {
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:35px;
  padding:40px 48px;
  background:#efeff8;
  border:1px solid #e1e0f0;
  border-radius:22px;
  overflow:hidden
}
.hero:after {
  content:'';
  position:absolute;
  width:300px;
  height:300px;
  border:40px solid #48449c0a;
  transform:rotate(35deg);
  left:-150px;
  bottom:-150px;
  pointer-events:none
}
.hero h1 {
  font-size:clamp(30px,3.6vw,49px)
}
.hero h1 span,.welcome h1 span {
  color:var(--brand)
}
.hero p {
  color:var(--muted)
}
.hero .eyebrow {
  color:var(--brand)
}
.hero-emblem {
  width:190px;
  flex:none;
  align-self:center;
  position:relative;
  z-index:1
}
.hero-emblem img {
  width:100%;
  height:auto
}
.hero .button {
  margin-top:8px
}
.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:28px 0 40px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  padding:20px 0
}
.stats>div {
  display:flex;
  flex-direction:column;
  padding:0 28px;
  border-inline-end:1px solid var(--line)
}
.stats>div:last-child {
  border:0
}
.stats strong {
  font-family:sans-serif;
  font-size:30px;
  color:var(--brand);
  line-height:1.6;
  text-align:start
}
.stats .text-stat {
  font-family:BlueBits;
  font-size:25px
}
.stats span {
  font-size:15px;
  color:var(--muted)
}
.library-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:32px;
  align-items:start
}
.section-label {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:22px
}
.section-label h2 {
  margin:0
}
.section-label>span {
  font-size:14px;
  color:var(--muted)
}
.search-label {
  margin:0;
  width:230px
}
.course-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.course-card {
  display:block;
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--ink);
  transition:border-color .18s
}
.course-card:hover {
  border-color:var(--brand);
  text-decoration:none
}
.card-top,.card-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.card-top {
  margin-bottom:24px
}
.course-symbol {
  width:44px;
  height:44px;
  background:var(--soft);
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:32px;
  color:var(--brand)
}
.course-card h3 {
  font-size:23px
}
.course-card .muted {
  font-size:14px
}
.card-bottom {
  border-top:1px solid var(--line);
  padding-top:15px;
  color:var(--brand);
  font-size:15px
}
.archived {
  background:#f5f5f8
}
.tag {
  display:inline-block;
  background:var(--soft);
  color:var(--brand);
  border-radius:6px;
  padding:4px 10px;
  font-size:13px;
  white-space:nowrap
}
.tag.practical {
  color:#185b85;
  background:#e8f2f8
}
.note {
  padding:24px 10px;
  color:var(--muted);
  font-size:16px
}
.note b {
  color:var(--brand)
}
.note p {
  margin-top:8px
}
.fields {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:12px
}
.empty {
  grid-column:1/-1;
  text-align:center;
  border:1px dashed #b6b3ce;
  border-radius:var(--radius);
  padding:50px 25px;
  color:var(--muted)
}
.empty h3 {
  color:var(--ink)
}
.empty p {
  max-width:400px;
  margin:auto
}
.admin {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  margin-top:45px
}
.inline-form {
  display:flex;
  gap:10px
}
.inline-form input {
  min-width:0
}
.inline-form button {
  white-space:nowrap
}
.member {
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:12px 0;
  font-size:14px
}
.member small {
  display:block;
  color:var(--muted)
}
#invite-result {
  overflow-wrap:anywhere;
  padding:12px;
  background:var(--soft);
  border-radius:8px
}
.breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:15px;
  color:var(--muted);
  margin-top:8px
}
.filterbar {
  display:flex;
  align-items:center;
  gap:10px
}
.filterbar label {
  margin:0
}
.filterbar label:first-child {
  flex:1
}
.filterbar select {
  width:110px
}
.tabs {
  display:flex;
  gap:24px;
  border-bottom:1px solid var(--line);
  margin:20px 0
}
.tabs a {
  padding:12px 0;
  color:var(--muted)
}
.tabs [aria-current] {
  color:var(--brand);
  border-bottom:3px solid var(--brand)
}
.lecture-list {
  display:grid;
  gap:14px
}
.lecture-card {
  display:flex;
  align-items:center;
  gap:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  color:var(--ink)
}
.lecture-card:hover {
  text-decoration:none;
  border-color:var(--brand)
}
.lecture-card h3 {
  margin:8px 0 3px
}
.lecture-card p {
  font-size:15px;
  color:var(--muted);
  margin:0
}
.document-icon {
  width:58px;
  min-height:76px;
  background:var(--soft);
  border-radius:6px 6px 18px 6px;
  display:grid;
  place-items:center;
  color:var(--brand);
  font:23px sans-serif;
  flex:none
}
.document-icon.practical {
  background:#e8f2f8;
  color:var(--blue)
}
.card-arrow {
  margin-inline-start:auto;
  color:var(--brand);
  font-size:25px
}
.management {
  margin-top:22px
}
.management summary,.figure-upload summary {
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
  color:var(--brand)
}
.management summary:after {
  content:'＋';
  margin-inline-start:auto
}
.management[open] summary:after {
  content:'−'
}
.management .archive-button {
  margin-top:24px
}
.authoring-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
  align-items:start
}
.lecture-steps {
  display:flex;
  flex-wrap:wrap;
  gap:12px 28px;
  list-style:none;
  padding:16px 0;
  color:var(--brand);
  font-weight:700
}
.live-editor-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.lecture-editor #body {
  min-height:420px;
  font-size:16px;
  font-family:inherit
}
.editor-toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:20px 0
}
.lecture-preview {
  min-height:420px;
  max-height:720px;
  overflow:auto;
  overflow-wrap:anywhere;
  border:1px solid var(--line,#d9d9e4);
  border-radius:12px;
  padding:22px;
  background:#fff;
  line-height:1.9
}
.lecture-preview h1 { font-size:28px }
.lecture-preview h2 { font-size:23px }
.lecture-preview h3 { font-size:20px }
.lecture-preview img { max-width:100%; height:auto }
.lecture-preview table { border-collapse:collapse; width:100%; margin:16px 0 }
.lecture-preview th,.lecture-preview td { border:1px solid #d9d9e4; padding:8px; text-align:start }
.lecture-preview pre { direction:ltr; text-align:left; overflow:auto; background:#f5f5fa; padding:12px }
.original-lecture,.proposal-diff {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:480px;
  overflow:auto;
  background:#f5f5fa;
  padding:18px;
  border-radius:12px;
  line-height:1.8
}
.preview-label { margin:16px 0 6px }
.ocr-guide { margin-top:22px }
.ocr-guide li { margin:10px 0 }
.ocr-guide textarea { font-size:14px }
.import-success { color:#126846 }
#lecture-proposal { margin-top:24px; border-top:1px solid #d9d9e4; padding-top:16px }
@media(max-width:900px) {
  .live-editor-grid { grid-template-columns:minmax(0,1fr) }
  .lecture-preview { min-height:220px; max-height:480px }
}
.instructions-panel {
  border-top:4px solid var(--brand)
}
.attachment-panel {
  border-top:4px solid var(--blue)
}
.attachment-list {
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap:14px;
  align-items:start
}
.attachment-form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start
}
.attachment-form-grid p {
  margin-bottom:0
}
.attachment-panel #attachment-form>button {
  width:auto;
  min-width:170px;
  margin-top:8px
}
.file-control {
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:50px;
  padding:5px;
  border:1px solid #ababbd;
  border-radius:8px;
  background:#fff;
  cursor:pointer
}
.file-control:focus-within {
  outline:3px solid #2680bb;
  outline-offset:3px
}
.file-control input[type=file] {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
  opacity:0;
  cursor:pointer
}
.file-control input[type=file]:focus-visible {
  outline:0
}
.file-control input[type=file]:disabled {
  cursor:not-allowed
}
.file-button {
  flex:none;
  padding:7px 14px;
  border-radius:6px;
  background:var(--soft);
  color:var(--brand);
  font-weight:600
}
.file-name {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:15px
}
.file-control input:disabled~span {
  opacity:.55
}
.attachment-card {
  padding:16px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fdfdff;
  min-width:0
}
.attachment-top,.attachment-actions,.inline-description,.latest-word,.advanced-actions {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap
}
.attachment-top strong {
  color:var(--brand)
}
.attachment-name {
  flex:1;
  min-width:120px;
  overflow-wrap:anywhere
}
.attachment-image {
  display:block;
  max-width:100%;
  max-height:170px;
  width:auto;
  height:auto;
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:8px
}
.attachment-choice {
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0
}
.attachment-choice input {
  width:20px;
  min-width:20px;
  height:20px;
  min-height:20px
}
.attachment-actions button {
  min-height:44px
}
.description-form label {
  margin-top:10px
}
.inline-description input {
  flex:1;
  min-width:180px
}
.extracted-preview {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:340px;
  overflow:auto;
  padding:15px;
  background:var(--soft);
  border-radius:8px;
  font:15px/1.7 BlueBits,Tahoma,sans-serif
}
.latest-word {
  justify-content:space-between;
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line)
}
.word-review,.advanced-source {
  margin-top:18px
}
.word-review {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:30px;
  align-items:center
}
.word-review h2 {
  margin-bottom:6px
}
.word-review p {
  margin-bottom:0
}
.word-review form label {
  margin-top:0
}
.word-review form button {
  width:auto;
  margin-top:12px
}
.review-pending {
  padding:18px;
  border-radius:8px;
  background:var(--soft);
  color:var(--muted)
}
.retry-link {
  margin:8px 0 12px
}
.advanced-source summary,.source-downloads summary {
  cursor:pointer;
  color:var(--brand);
  min-height:44px
}
.advanced-source #body {
  height:230px;
  min-height:180px;
  font-size:15px;
  line-height:1.6
}
.instructions-panel #brief {
  height:230px;
  min-height:180px
}
.source-downloads {
  margin-top:10px;
  font-size:15px
}
.source-downloads a {
  margin-inline-end:16px
}
.editor-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:24px;
  align-items:start
}
.editor-grid aside {
  display:grid;
  gap:22px
}
#body {
  font-family:BlueBits,Consolas,Tahoma,sans-serif;
  min-height:630px;
  font-size:18px;
  padding:22px;
  background:#fdfdff;
  border-color:#bab8ce
}
.editor-actions {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-top:18px
}
.agent-panel {
  border-top:4px solid var(--brand)
}
.sync-panel {
  border-top:4px solid var(--blue)
}
.figure-upload {
  margin-top:12px;
  border-bottom:1px solid var(--line);
  padding-bottom:12px
}
.figure-upload button {
  margin:12px 0
}
.history {
  margin-top:42px
}
.version {
  display:flex;
  gap:24px;
  padding:25px 0;
  border-top:1px solid var(--line)
}
.version-label {
  min-width:72px;
  display:flex;
  flex-direction:column;
  color:var(--muted);
  font-size:15px
}
.version-label b {
  font:27px/1.8 sans-serif;
  color:var(--brand)
}
.version-detail {
  flex:1;
  min-width:0
}
.version-detail p {
  margin:12px 0
}
.status {
  display:inline-block;
  border-radius:6px;
  padding:5px 12px;
  font-size:14px;
  background:#e7f2eb;
  color:#245d3a
}
.status.review {
  background:#fff1d8;
  color:#7c520d
}
.status.failed {
  background:#fae9ed;
  color:var(--danger)
}
.status.running,.status.queued {
  background:var(--soft);
  color:var(--brand)
}
.downloads,.publish-row {
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:17px;
  font-size:15px
}
.publish-row {
  border-top:1px dashed var(--line);
  padding-top:16px
}
.publish-row>span:first-child {
  color:var(--muted)
}
.export-link {
  padding:8px 16px;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:8px;
  background:white
}
.small-button {
  padding:7px 15px
}
.welcome {
  display:grid;
  grid-template-columns:1fr 400px;
  gap:10%;
  align-items:center;
  min-height:72vh;
  padding:40px 16px
}
.welcome h1 {
  font-size:clamp(42px,4vw,60px)
}
.welcome-copy {
  position:relative;
  overflow:hidden;
  padding-bottom:35px
}
.welcome .lead {
  max-width:540px;
  font-size:21px;
  color:var(--muted);
  line-height:2
}
.workflow {
  display:flex;
  gap:26px;
  border-top:1px solid var(--line);
  padding-top:26px;
  margin-top:25px
}
.workflow b {
  color:var(--brand);
  font-size:25px;
  margin-inline-end:8px
}
.brand-ribbon {
  position:absolute;
  left:-90px;
  bottom:-130px;
  width:220px;
  height:220px;
  border:30px solid #48449c0a;
  transform:rotate(40deg)
}
.login-form {
  padding:32px
}
.login-form .small {
  margin-top:20px
}
.form-error,.error-text {
  color:var(--danger);
  font-size:16px
}
.form-error:empty {
  display:none
}
.banner {
  padding:18px 22px;
  background:#fff1d8;
  border:1px solid #e4c288;
  border-radius:10px;
  margin-bottom:24px
}
#notice {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:white;
  border:1px solid #a19cca;
  box-shadow:0 6px 25px #26204220;
  border-radius:12px;
  padding:16px 24px;
  max-width:calc(100% - 32px);
  width:max-content;
  z-index:30
}
#notice.error {
  border-color:var(--danger);
  color:var(--danger)
}
footer {
  max-width:1240px;
  margin:0 auto;
  padding:24px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:14px
}
footer b {
  font:700 14px sans-serif;
  color:var(--brand);
  letter-spacing:2px
}
.skip {
  position:absolute;
  top:-100px;
  right:20px;
  background:white;
  padding:12px;
  z-index:99
}
.skip:focus {
  top:10px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
[hidden] {
  display:none!important
}
@media(max-width:1050px) {
  .authoring-grid {
    grid-template-columns:1fr
  }
  .library-grid {
    grid-template-columns:minmax(0,1fr) 300px;
    gap:22px
  }
  .course-grid {
    grid-template-columns:1fr
  }
  .hero {
    padding:32px
  }
  .hero-emblem {
    width:145px
  }
  .editor-grid {
    grid-template-columns:1fr
  }
  .editor-grid aside {
    grid-template-columns:1fr 1fr
  }
  .welcome {
    gap:40px;
    grid-template-columns:1fr 350px
  }
  .account>span {
    display:none
  }
  footer {
    margin-inline:40px
  }
}
@media(max-width:720px) {
  .attachment-form-grid,.word-review {
    grid-template-columns:1fr
  }
  .attachment-form-grid {
    gap:2px
  }
  .word-review {
    gap:18px
  }
  .attachment-list {
    grid-template-columns:1fr
  }
  .attachment-panel #attachment-form>button,.word-review form button {
    width:100%
  }
  main {
    padding:22px 18px 42px
  }
  .topbar {
    padding:10px 18px;
    gap:20px;
    flex-wrap:wrap
  }
  .brand-logo {
    width:44px;
    height:49px
  }
  .brand {
    font-size:16px;
    gap:10px
  }
  .brand small {
    font-size:9px
  }
  .topbar nav {
    order:3;
    width:100%;
    border-top:1px solid var(--line);
    gap:28px
  }
  .topbar nav a {
    padding:10px 3px
  }
  .account {
    font-size:13px
  }
  .edition {
    display:none
  }
  .hero {
    padding:28px 24px
  }
  .hero h1 {
    font-size:32px
  }
  .hero-emblem {
    display:none
  }
  .hero p {
    font-size:16px
  }
  .stats {
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin:22px 0 30px
  }
  .stats>div {
    padding-inline:20px
  }
  .stats>div:nth-child(2) {
    border:0
  }
  .stats strong {
    font-size:25px
  }
  .stats span {
    font-size:14px
  }
  .library-grid,.admin,.welcome,.editor-grid aside {
    grid-template-columns:1fr
  }
  .library-grid>aside {
    margin-top:10px
  }
  .section-label {
    gap:12px;
    flex-wrap:wrap
  }
  .search-label {
    width:100%
  }
  .page-heading {
    align-items:start;
    gap:15px
  }
  .page-heading h1 {
    font-size:30px
  }
  .panel {
    padding:22px
  }
  .admin {
    gap:28px
  }
  .inline-form {
    flex-direction:column
  }
  .lecture-card {
    padding:18px;
    gap:14px
  }
  .lecture-card h3 {
    font-size:20px
  }
  .lecture-card p {
    font-size:14px
  }
  .filterbar {
    gap:8px
  }
  .filterbar input {
    min-width:0
  }
  .filterbar select {
    width:95px
  }
  .filterbar .quiet {
    padding:10px 13px
  }
  .breadcrumb {
    font-size:14px
  }
  .welcome {
    padding:15px 0;
    gap:28px
  }
  .welcome h1 {
    font-size:42px
  }
  .welcome .lead {
    font-size:18px
  }
  .workflow {
    gap:16px;
    font-size:15px
  }
  .welcome-copy {
    padding-bottom:10px
  }
  #body {
    min-height:440px;
    padding:16px
  }
  .editor-actions {
    flex-direction:column;
    align-items:stretch
  }
  .version {
    gap:14px
  }
  .version-label {
    min-width:40px
  }
  .downloads,.publish-row {
    gap:12px
  }
  .downloads a {
    min-height:44px;
    display:inline-flex;
    align-items:center
  }
  .history .section-label>span {
    font-size:13px
  }
  footer {
    margin-inline:18px;
    flex-direction:column;
    gap:10px
  }
  #notice {
    font-size:16px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
}
.scroll-sync-choice {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  margin-block:12px
}
.scroll-sync-choice input {
  width:20px;
  min-height:20px;
  margin:0
}
.live-editor-grid #body,.live-editor-grid #lecture-preview {
  height:560px;
  min-height:0;
  overflow:auto;
  resize:none;
  scroll-behavior:auto;
  overflow-anchor:none
}
.math-block {
  display:block;
  text-align:center;
  overflow-x:auto;
  margin-block:1.25em
}
.katex {
  direction:ltr;
  unicode-bidi:isolate;
  font-size:1.12em
}
.katex math {
  font-family:"Cambria Math","STIX Two Math",math;
  direction:ltr
}
.math-error {
  white-space:pre-wrap;
  direction:ltr;
  unicode-bidi:isolate;
  color:var(--danger)
}
#settings-dialog {
  width:min(880px,calc(100% - 32px));
  max-height:85dvh;
  padding:28px;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--ink);
  background:var(--paper);
  overflow:auto;
  box-sizing:border-box
}
#settings-dialog::backdrop {
  background:rgba(22,20,49,.55)
}
.settings-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px
}
.settings-heading h2 {
  margin:0
}
#runtime-settings {
  margin-block:20px;
  padding:0;
  border:0
}
#runtime-settings legend {
  font-size:22px;
  font-weight:700
}
.settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 24px
}
.settings-prompt-field {grid-column:1/-1}
.settings-prompt-field textarea {width:100%;box-sizing:border-box;min-height:160px;line-height:1.6;font-family:inherit}
.diff-heading,.diff-legend {display:flex;align-items:center;gap:18px}
.diff-heading {justify-content:space-between;margin-top:24px}
.diff-heading h4 {margin:0}
.diff-legend {gap:8px;flex-shrink:0}
.diff-legend span {padding:3px 10px;border-radius:5px;font-size:14px;white-space:nowrap}
#proposal-diff {max-height:540px;overflow:auto;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-family:inherit;white-space:normal}
.diff-table {width:100%;border-collapse:collapse;table-layout:auto;font-size:14px;line-height:1.75}
.diff-table td {padding:3px 10px;border:0;vertical-align:top}
.diff-table .diff-number {width:36px;color:#59636d;background:rgba(0,0,0,.025);text-align:center;direction:ltr;user-select:none;font-family:monospace;font-size:12px}
.diff-table .diff-sign {width:16px;text-align:center;direction:ltr;font-weight:700;user-select:none}
.diff-text {white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px;unicode-bidi:plaintext}
.diff-added {background:#dafbe1;color:#116329}
.diff-removed {background:#ffebe9;color:#9f2422}
.diff-hunk {background:#edf4ff;color:#445c7a}
.diff-hunk .diff-text {direction:ltr;font-family:monospace}
.diff-empty {color:var(--muted);padding:20px!important}
.proposal-result {margin-top:12px}
.live-editor-grid #proposal-body,.live-editor-grid #proposal-preview {height:560px;min-height:0;overflow:auto;resize:none;scroll-behavior:auto;overflow-anchor:none}
#proposal-body {width:100%;box-sizing:border-box;line-height:1.65}
.settings-static {
  margin-block-start:24px;
  border-top:1px solid var(--line);
  padding-top:20px
}
#static-fields>div {
  padding-block:12px;
  border-bottom:1px solid var(--line)
}
#static-fields dt code {
  display:block;
  font-size:13px;
  color:var(--muted);
  overflow-wrap:anywhere
}
#static-fields dd {
  margin:6px 0 0;
  overflow-wrap:anywhere
}
@media(max-width:640px) {
  .settings-grid {grid-template-columns:1fr}
  #settings-dialog {padding:20px}
  .live-editor-grid #body,.live-editor-grid #lecture-preview {height:440px}
  .live-editor-grid #proposal-body,.live-editor-grid #proposal-preview {height:440px}
  .diff-table td {padding-inline:5px}
}
