.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  border-bottom: 1px solid var(--line);
  margin: -8px 0 36px;
}
.workspace-tab {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  padding: 15px 4px;
  font-size: 15px;
  min-height: 54px;
  font-weight: 500;
  white-space: nowrap;
}
.workspace-tab[aria-selected=true] { border-bottom-color: var(--teal); color: var(--teal); }
.workspace-tab:hover { color: var(--teal); }
.exercise-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 30px; }
.exercise-intro .ink-eyebrow { margin-bottom: 12px; }
.exercise-intro h3 { font-size: 27px; font-weight: 300; color: var(--teal); line-height: 1.4; }
.exercise-intro p:not(.eyebrow) { font-size: 15px; line-height: 1.85; max-width: 650px; color: var(--muted); margin-top: 12px; }
.exercise-intro > .text-button { flex-shrink: 0; font-size: 13px; min-height: 44px; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.tool-tab {
  display: inline-flex;
  flex: 1 1 150px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 150px;
  min-height: 58px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--teal);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.tool-tab:hover { background: #EDF0E9; border-color: var(--teal); }
.tool-tab[aria-selected=true] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.tool-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; min-height: 26px; padding: 0 6px; font-size: 12px; font-weight: 400; border: 1px solid currentColor; opacity: .8; }
.tool-count:empty { display: none; }
.exercise-load-message { font-size: 15px; color: var(--muted); padding: 24px 0; max-width: 650px; }
.exercise-load-message:empty { display: none; }
.exercise-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 32px; }
.exercise-sidebar { min-width: 0; border-right: 1px solid var(--line); padding-right: 24px; }
.exercise-sidebar label { font-size: 13px; margin-bottom: 9px; }
.exercise-sidebar input { width: 100%; font-size: 14px; min-height: 50px; border-radius: 0; }
.exercise-search-label { margin-top: 0; }
.exercise-list-heading { font-size: 15px; font-weight: 500; color: var(--teal); margin-top: 26px; }
.exercise-count { font-size: 12px; color: var(--muted); margin: 5px 0 14px; }
.exercise-list { display: flex; flex-direction: column; gap: 6px; max-height: 650px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 4px; margin-left: -4px; }
.exercise-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; background: none; border: 0; border-left: 3px solid transparent; width: 100%; text-align: left; min-height: 58px; }
.exercise-choice:hover { background: #F1F1E9; }
.exercise-choice[aria-current=true] { background: #EDF0E9; border-left-color: var(--teal); color: var(--teal); }
.exercise-number { flex-shrink: 0; font-size: 12px; color: var(--muted); padding-top: 3px; min-width: 22px; }
.exercise-choice-copy { flex: 1; min-width: 0; }
.exercise-choice-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 3.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.exercise-detail { min-width: 0; max-width: 780px; scroll-margin-top: 25px; }
.exercise-heading .ink-eyebrow { font-size: 11px; letter-spacing: 1.3px; line-height: 1.8; margin-bottom: 17px; }
.exercise-heading h3 { font-size: 32px; font-weight: 300; color: var(--teal); line-height: 1.35; overflow-wrap: anywhere; }
.exercise-description { font-size: 16px; margin-top: 18px; line-height: 1.9; max-width: 70ch; }
.exercise-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin: 30px 0; }
.exercise-pagination > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.exercise-pagination .button { border-radius: 0; min-height: 48px; font-size: 14px; padding: 11px 19px; }
.exercise-pagination .button:disabled { cursor: default; }
.exercise-steps { padding: 26px 28px; border-left: 3px solid var(--teal); background: #EDF0E966; margin: 30px 0; }
.exercise-steps h4 { font-size: 18px; font-weight: 500; color: var(--teal); }
.exercise-steps ol { padding-left: 23px; margin: 20px 0 0; font-size: 16px; line-height: 1.9; }
.exercise-steps li { padding-left: 9px; margin-bottom: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.exercise-steps li:last-child { margin-bottom: 0; }
.exercise-steps li::marker { color: var(--teal); font-weight: 500; }
.prompt-help { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 24px 0 20px; max-width: 76ch; }
.prompt-card { border: 1px solid var(--line); background: #FFFDF8; padding: 27px; margin: 20px 0 28px; }
.prompt-target { font-size: 11px; line-height: 1.8; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; overflow-wrap: anywhere; }
.prompt-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; margin-bottom: 22px; }
.prompt-heading h4 { flex: 1 1 230px; min-width: 0; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.6; }
.copy-prompt { flex: 0 0 auto; border-radius: 0; font-size: 13px; min-height: 48px; padding: 12px 17px; white-space: nowrap; }
.prompt-text {
  display: block;
  width: 100%;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  resize: vertical;
  min-height: 150px;
  max-height: 520px;
  border: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  background: #F7F6EF;
  padding: 20px 22px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.prompt-text.is-expanded { max-height: none; overflow: hidden; resize: none; }
.prompt-expand { font-size: 13px; min-height: 44px; margin-top: 12px; text-decoration: underline; }
.copy-feedback { font-size: 13px; line-height: 1.85; color: var(--teal); margin-top: 15px; }
.copy-feedback:empty { display: none; }
.exercise-notes { border-left: 3px solid var(--gold); padding: 18px 22px; font-size: 14px; line-height: 1.85; margin: 30px 0; color: var(--muted); background: #F7F6EF; overflow-wrap: anywhere; }
.exercise-notes summary { cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 500; }
.exercise-notes p { margin-top: 16px; white-space: pre-line; }
.exercise-source { font-size: 12px; line-height: 1.9; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; overflow-wrap: anywhere; }
.exercise-source .inline-link { font-size: 12px; margin-top: 10px; min-height: 44px; }
.prompt-reference { display: block; font-size: 12px; line-height: 1.85; margin-top: 17px; overflow-wrap: anywhere; text-decoration: none; }
.prompt-reference:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .exercise-layout { grid-template-columns: 1fr; gap: 32px; }
  .exercise-sidebar { border: 1px solid var(--line); padding: 22px; }
  .exercise-list { max-height: 250px; border-top: 1px solid var(--line); padding-top: 12px; }
  .exercise-detail { max-width: 780px; width: 100%; }
  .tool-tab { flex-basis: 180px; }
}
@media (max-width: 760px) {
  .workspace-tabs { margin-top: 0; gap: 12px 25px; }
  .exercise-intro { gap: 18px; flex-wrap: wrap; }
  .exercise-intro h3 { font-size: 25px; }
  .tool-tab { flex-basis: 150px; padding: 15px 18px; }
  .exercise-heading h3 { font-size: 29px; }
  .exercise-detail { padding-top: 6px; }
}
@media (max-width: 480px) {
  .workspace-tabs { gap: 12px; margin-bottom: 28px; }
  .workspace-tab { flex: 1 1 auto; font-size: 14px; padding: 14px 0; text-align: left; }
  .exercise-intro h3 { font-size: 24px; }
  .exercise-intro p:not(.eyebrow) { font-size: 15px; }
  .tool-tabs { gap: 10px; }
  .tool-tab { flex: 1 1 calc(50% - 5px); min-width: 0; gap: 10px; padding: 15px 12px; font-size: 14px; }
  .exercise-sidebar { display: block; padding: 18px; }
  .exercise-list { max-height: 230px; }
  .exercise-heading h3 { font-size: 27px; }
  .exercise-steps { padding: 22px 17px; }
  .exercise-steps ol { font-size: 16px; padding-left: 22px; }
  .exercise-steps li { padding-left: 5px; }
  .prompt-card { padding: 20px 15px; }
  .prompt-heading h4 { flex-basis: 100%; }
  .copy-prompt { width: 100%; }
  .prompt-text { padding: 16px 14px; font-size: 15px; }
  .exercise-pagination .button { padding: 11px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .tool-tab { transition: none; } }

/* The course notebook is separate from the NotebookLM exercise tool tab. */
.notebook-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 32px; margin: 8px 0 28px; }
.notebook-heading > div:first-child { flex: 1 1 500px; min-width: 0; }
.notebook-heading .ink-eyebrow { margin-bottom: 13px; }
.notebook-heading h3 { font-size: 30px; font-weight: 300; line-height: 1.4; color: var(--teal); }
.notebook-heading p:not(.eyebrow) { font-size: 15px; line-height: 1.85; max-width: 65ch; margin-top: 14px; color: var(--muted); }
.notebook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.notebook-actions .button { min-height: 50px; font-size: 14px; padding: 13px 19px; text-decoration: none; border-radius: 0; }
@media (max-width: 760px) {
  .notebook-heading h3 { font-size: 26px; }
  .notebook-actions { width: 100%; }
}
@media (max-width: 480px) {
  .notebook-heading h3 { font-size: 25px; }
  .notebook-actions .button { width: 100%; justify-content: center; white-space: normal; }
}

/* Exportable course bookmarks. */
.bookmarks-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin: 8px 0 28px; }
.bookmarks-heading h3 { font-size: 30px; font-weight: 300; line-height: 1.4; color: var(--teal); }
.bookmarks-heading .ink-eyebrow { margin-bottom: 13px; }
.bookmarks-heading p:not(.eyebrow) { font-size: 15px; line-height: 1.85; max-width: 70ch; color: var(--muted); margin-top: 13px; }
.bookmarks-heading > .text-button { font-size: 13px; min-height: 44px; flex-shrink: 0; }
.bookmarks-export-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 30px; padding: 26px; background: #EDF0E966; border-left: 3px solid var(--teal); margin-bottom: 32px; }
.bookmarks-export-box > div:first-child { flex: 1 1 400px; min-width: 0; }
.bookmarks-export-box h4 { font-size: 18px; line-height: 1.6; color: var(--teal); font-weight: 500; margin-bottom: 9px; }
.bookmarks-export-box p:not(.copy-feedback) { font-size: 14px; line-height: 1.85; color: var(--muted); }
.bookmarks-export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bookmarks-export-actions .button { min-height: 48px; font-size: 14px; padding: 12px 18px; white-space: nowrap; border-radius: 0; }
.bookmarks-export-note { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 17px; }
#bookmarks-export-message { flex-basis: 100%; margin-top: 0; }
.bookmarks-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 24px; margin-bottom: 24px; }
.bookmarks-toolbar > div { min-width: 0; }
.bookmarks-toolbar label { font-size: 13px; margin-bottom: 9px; }
.bookmarks-toolbar input, .bookmarks-toolbar select { width: 100%; font-size: 15px; min-height: 50px; border-radius: 0; }
.bookmarks-count { font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bookmarks-count:empty { display: none; }
.bookmarks-list { margin-bottom: 32px; }
.bookmark-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.bookmark-copy { min-width: 0; }
.bookmark-chapters { font-size: 11px; line-height: 1.8; color: var(--muted); margin-bottom: 8px; }
.bookmark-card h4 { font-size: 17px; font-weight: 500; line-height: 1.65; color: var(--teal); overflow-wrap: anywhere; }
.bookmark-url { display: inline-block; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; margin-top: 8px; }
.bookmark-open { flex-shrink: 0; min-height: 46px; font-size: 13px; padding: 11px 17px; white-space: nowrap; border-radius: 0; text-decoration: none; }
.bookmark-sources { font-size: 12px; line-height: 1.85; color: var(--muted); margin-top: 12px; }
.bookmark-sources summary { cursor: pointer; min-height: 30px; }
.bookmark-sources ul { margin: 10px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.bookmark-import-help { border-left: 3px solid var(--gold); background: #F7F6EF; padding: 23px 26px; font-size: 14px; line-height: 1.85; }
.bookmark-import-help summary { color: var(--teal); cursor: pointer; font-size: 16px; font-weight: 500; }
.bookmark-import-help p { margin-top: 16px; max-width: 88ch; color: var(--muted); }
@media (max-width: 760px) {
  .bookmarks-heading { flex-wrap: wrap; gap: 14px; }
  .bookmarks-heading h3 { font-size: 26px; }
  .bookmarks-toolbar { grid-template-columns: 1fr; gap: 20px; }
  .bookmarks-export-box { padding: 22px; }
}
@media (max-width: 480px) {
  .bookmarks-export-box { padding: 22px 17px; }
  .bookmarks-export-actions { width: 100%; }
  .bookmarks-export-actions .button:first-child { flex-basis: 100%; }
  .bookmarks-export-actions .button:not(:first-child) { flex: 1; }
  .bookmark-card { flex-direction: column; gap: 14px; }
  .bookmark-open { align-self: flex-start; }
  .bookmark-import-help { padding: 21px 17px; }
}

.bookmark-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.bookmark-copy-button { font-size: 12px; min-height: 36px; }
.bookmark-copy-feedback:empty { display: none; }
@media (max-width: 480px) {
  .bookmark-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; }
}
