/* ---------------------------------------------------
COURSE DASHBOARD (shared by /teaching, /pylab, /macropol)
----------------------------------------------------- */
.cd-section {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 18, 23, 0.78) 0%, rgba(18, 18, 23, 0.9) 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Quicksand', sans-serif;
}

.cd {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 84px 60px 32px;
  box-sizing: border-box;
}

/* header */
.cd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.cd-kicker {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cd-title {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.15;
  color: #fff;
}

.cd-head-side {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  white-space: nowrap;
}

.cd-today {
  font-family: 'Inconsolata', monospace;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

.cd-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.cd-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.cd-pill--active::before,
.cd-pill--current::before {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.cd-pill--upcoming::before {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}

.cd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s ease;
}

.cd-back:hover,
.cd-back:focus-visible {
  color: #fff;
  outline: none;
}

/* columns */
.cd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  flex: 1;
  min-height: 0;
}

.cd-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px;
  gap: 40px;
}

/* one section only (a concluded course with just lectures): cards fill the width */
.cd-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.cd-grid--single .cd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-content: start;
}

.cd-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cd-col-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.cd-col-num {
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.cd-col-title {
  margin: 0;
  flex: 1;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.cd-col-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

.cd-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 2px 8px 8px 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.cd-list::-webkit-scrollbar {
  width: 5px;
}

.cd-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.cd-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* cards */
.cd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.cd-card.is-clickable {
  cursor: pointer;
}

.cd-card.is-clickable:hover,
.cd-card.is-clickable:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
  outline: none;
}

.cd-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cd-card-date {
  font-family: 'Inconsolata', monospace;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 12px;
}

.cd-tag,
.cd-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, 0.55);
}

.cd-chip--assignment { color: #93c5fd; border-color: rgba(147, 197, 253, 0.35); }
.cd-chip--exercise   { color: #fcd34d; border-color: rgba(252, 211, 77, 0.35); }
.cd-chip--deadline   { color: #fda4af; border-color: rgba(253, 164, 175, 0.4); }
.cd-chip--resource   { color: #86efac; border-color: rgba(134, 239, 172, 0.35); }
.cd-chip--group      { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.35); }
.cd-chip--team       { color: #fdba74; border-color: rgba(253, 186, 116, 0.35); }

.cd-card-title {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.cd-card-desc {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cd-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cd-muted {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* buttons */
.cd-btn,
.cd-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-family: 'Quicksand', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cd-btn i {
  font-size: 10px;
}

.cd-btn--primary,
.cd-btn--primary:visited {
  background: #fff;
  color: #121417;
}

.cd-btn--primary:hover,
.cd-btn--primary:focus-visible {
  background: rgba(255, 255, 255, 0.86);
  color: #121417;
  text-decoration: none;
  outline: none;
}

.cd-btn--ghost,
.cd-btn--ghost:visited {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
}

.cd-btn--ghost:hover,
.cd-btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  outline: none;
}

/* course cards on the teaching overview */
.cd-card--course {
  gap: 10px;
}

.cd-card--course .cd-card-title {
  font-size: 16px;
}

.cd-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cd-card-foot .cd-btn {
  padding: 6px 11px;
}

/* ---------------------------------------------------
MODAL
----------------------------------------------------- */
body.cd-modal-open {
  overflow: hidden;
}

.cd-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  font-family: 'Quicksand', sans-serif;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cd-modal.is-visible {
  opacity: 1;
}

.cd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cd-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(90vh, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgb(18, 18, 23);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateY(10px);
  transition: transform 0.22s ease;
}

.cd-modal.is-visible .cd-modal-panel {
  transform: translateY(0);
}

.cd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.cd-modal-headtext {
  min-width: 0;
}

.cd-modal-kicker {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cd-modal-title {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cd-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cd-modal-close:focus {
  outline: none;
}

.cd-modal-close:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.cd-modal-close:hover,
.cd-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.cd-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cd-modal-status {
  padding: 60px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(0, 0, 0, 0.5);
}

.cd-modal-status--error {
  color: #b42318;
}

/* light "paper" for rich content and notebooks */
.cd-paper {
  background: #f8f9fa;
  color: #1c1e24;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

/* neutralise Bootstrap's pink inline code */
.cd-paper code:not([class*="language-"]) {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(28, 30, 36, 0.06);
  color: #1c1e24;
  font-family: 'Inconsolata', monospace;
  font-size: 0.9em;
}

.cd-paper pre code:not([class*="language-"]) {
  padding: 0;
  background: none;
}

.cd-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 30px 36px 44px;
  overflow-wrap: anywhere;
}

.cd-content h4,
.cd-content h3 {
  margin: 26px 0 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #1c1e24;
}

.cd-content > h4:first-child,
.cd-content > h3:first-child {
  margin-top: 0;
}

.cd-content p,
.cd-content ul,
.cd-content ol {
  margin-bottom: 12px;
}

.cd-content a:not(.cd-btn) {
  color: #1c1e24;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(28, 30, 36, 0.35);
}

.cd-content a:not(.cd-btn):hover {
  color: #f33c29;
  text-decoration-color: currentColor;
}

.cd-content code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(28, 30, 36, 0.06);
  font-family: 'Inconsolata', monospace;
  font-size: 0.92em;
}

.cd-content pre {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e3e5e8;
  border-left: 3px solid #1c1e24;
  background: #fff;
  font-family: 'Inconsolata', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow: auto;
}

.cd-content pre code {
  padding: 0;
  background: none;
}

.cd-content table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  font-size: 0.92em;
}

.cd-content th,
.cd-content td {
  padding: 7px 10px;
  border-bottom: 1px solid #e3e5e8;
  text-align: left;
  vertical-align: top;
}

.cd-content th {
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 2px solid #1c1e24;
}

.cd-content .cd-btn--primary {
  margin-top: 10px;
  background: #1c1e24;
  color: #fff;
}

/* notebook.js output */
.cd-paper--notebook .nb-notebook {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 36px 50px;
}

.nb-cell {
  position: relative;
  margin-bottom: 18px;
}

.nb-markdown-cell {
  line-height: 1.65;
}

.nb-markdown-cell h1,
.nb-markdown-cell h2,
.nb-markdown-cell h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  margin: 26px 0 12px;
}

.nb-markdown-cell h1 { font-size: 26px; }
.nb-markdown-cell h2 { font-size: 21px; }
.nb-markdown-cell h3 { font-size: 17px; }

.nb-markdown-cell a {
  color: #1c1e24;
  text-decoration: underline;
}

.nb-markdown-cell code,
.nb-output code {
  font-family: 'Inconsolata', monospace;
}

.nb-input pre,
.nb-input pre[class*="language-"] {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e3e5e8;
  border-left: 3px solid #1c1e24;
  background: #fff;
  font-family: 'Inconsolata', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow: auto;
}

.nb-output {
  margin-top: 6px;
  padding-left: 16px;
  border-left: 3px solid rgba(28, 30, 36, 0.12);
}

.nb-output pre {
  margin: 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
  font-family: 'Inconsolata', monospace;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1c1e24;
  white-space: pre-wrap;
}

.nb-stderr,
.nb-error {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff1f0;
  color: #b42318;
}

.nb-image-output img,
.nb-html-output img {
  max-width: 100%;
  height: auto;
}

.nb-html-output table {
  margin: 8px 0 12px;
  border-collapse: collapse;
  font-family: 'Inconsolata', monospace;
  font-size: 12.5px;
}

.nb-html-output th,
.nb-html-output td {
  padding: 4px 10px;
  border-bottom: 1px solid #e3e5e8;
  text-align: right;
}

.nb-html-output th {
  border-bottom: 2px solid #1c1e24;
}


/* ---------------------------------------------------
DARK TEXT MODAL (announcements, course info)
Sized to its content, on the dashboard's own surface.
Notebooks keep the light paper above.
----------------------------------------------------- */
.cd-modal-panel.is-compact {
  width: min(760px, 100%);
  height: auto;
  max-height: min(86vh, 100%);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgb(18, 18, 23);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.cd-modal-panel.is-compact .cd-modal-body {
  flex: 0 1 auto;
}

.cd-dark {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.cd-dark::-webkit-scrollbar { width: 5px; }
.cd-dark::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.18); }

.cd-dark .cd-content {
  max-width: none;
  padding: 24px 32px 30px;
}

.cd-dark .cd-content > :last-child {
  margin-bottom: 0;
}

.cd-dark .cd-content h2,
.cd-dark .cd-content h3,
.cd-dark .cd-content h4 {
  margin: 22px 0 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cd-dark .cd-content > h2:first-child,
.cd-dark .cd-content > h3:first-child,
.cd-dark .cd-content > h4:first-child {
  margin-top: 0;
}

.cd-dark strong,
.cd-dark b {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.cd-dark .cd-content a:not(.cd-btn),
.cd-dark .cd-content a:not(.cd-btn):visited {
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.cd-dark .cd-content a:not(.cd-btn):hover {
  color: #fff;
  text-decoration-color: #fff;
}

.cd-dark li::marker {
  color: rgba(255, 255, 255, 0.35);
}

.cd-dark code:not([class*="language-"]),
.cd-dark .cd-content code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inconsolata', monospace;
}

.cd-dark .cd-content pre,
.cd-dark pre[class*="language-"] {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inconsolata', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  text-shadow: none;
  overflow: auto;
}

.cd-dark pre code,
.cd-dark pre code[class*="language-"] {
  padding: 0;
  background: none;
  color: inherit;
  text-shadow: none;
}

/* code colours readable on the dark surface */
.cd-dark .token.comment,
.cd-dark .token.prolog { color: rgba(255, 255, 255, 0.4); }
.cd-dark .token.punctuation,
.cd-dark .token.operator { color: rgba(255, 255, 255, 0.6); background: none; }
.cd-dark .token.keyword,
.cd-dark .token.builtin { color: #93c5fd; }
.cd-dark .token.string { color: #86efac; }
.cd-dark .token.number,
.cd-dark .token.boolean { color: #fcd34d; }
.cd-dark .token.function,
.cd-dark .token.class-name { color: #c4b5fd; }

/* tables, including ones that carry their own light inline styles */
.cd-dark table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  font-size: 0.92em;
}

.cd-dark th,
.cd-dark td {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.cd-dark th {
  font-family: 'Quicksand', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.cd-dark .cd-content th,
.cd-dark .cd-content td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-dark .results-group-header,
.cd-dark .results-group-header td {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff;
}

.cd-dark .results-course-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.25) !important;
}

/* the link button sits on its own row, white pill like the rest of the dashboards */
.cd-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cd-dark .cd-content .cd-btn--primary,
.cd-dark .cd-content .cd-btn--primary:visited {
  margin-top: 0;
  background: #fff;
  color: #121417;
}

.cd-dark .cd-content .cd-btn--primary:hover,
.cd-dark .cd-content .cd-btn--primary:focus-visible {
  background: rgba(255, 255, 255, 0.86);
  color: #121417;
}

/* ---------------------------------------------------
RESPONSIVE
----------------------------------------------------- */
@media (max-width: 1199px) {
  .cd {
    padding: 84px 36px 28px;
  }
  .cd-grid {
    gap: 20px;
  }
}

@media (max-width: 899px) {
  .cd {
    height: 100vh;
    padding: 84px 20px 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cd-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cd-title {
    font-size: 24px;
  }
  .cd-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
    flex: none;
  }
  .cd-list {
    overflow: visible;
    padding: 0;
  }
  .cd-card-desc {
    -webkit-line-clamp: unset;
  }
  .cd-modal {
    padding: 0;
  }
  .cd-modal-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
  .cd-modal.is-compact {
    align-items: flex-end;
  }
  .cd-modal-panel.is-compact {
    height: auto;
    max-height: 92%;
    border-radius: 18px 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
  .cd-dark .cd-content {
    padding: 20px 18px 28px;
  }
  .cd-modal.is-compact .cd-modal-head {
    flex-wrap: nowrap;
  }
  .cd-modal.is-compact .cd-modal-headtext {
    flex: 1 1 auto;
    order: 0;
  }
  .cd-modal.is-compact .cd-modal-actions {
    width: auto;
  }
  .cd-modal-head {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 16px;
  }
  .cd-modal-headtext {
    flex: 1 1 100%;
    order: -1;
  }
  .cd-modal-kicker {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cd-modal-title {
    white-space: normal;
    font-size: 16px;
  }
  .cd-modal-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cd-content,
  .cd-paper--notebook .nb-notebook {
    padding: 22px 18px 36px;
  }
}
