body[data-page="library"],
body[data-page="about"] {
  background: #f7f8f3;
  color: #172421;
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 66px;
  padding: 10px clamp(14px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dfe4d9;
  background: rgba(247, 248, 243, .94);
  backdrop-filter: blur(10px);
}

.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.workspace-nav a {
  color: #43544f;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.workspace-nav a:hover,
.workspace-nav a:focus-visible {
  color: #172421;
}

.workspace-shell {
  width: min(1480px, calc(100vw - 24px));
  margin: 18px auto 36px;
  display: grid;
  grid-template-columns: minmax(236px, 292px) minmax(0, 1fr);
  gap: 18px;
}

.workspace-rail {
  align-self: start;
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
}

.rail-block,
.workspace-band,
.library-dialog,
.launch-inner {
  border: 1px solid #dfe4d9;
  border-radius: 8px;
  background: #fffefa;
}

.rail-block {
  padding: 14px;
}

.rail-block h2,
.band-heading h2,
.notes-panel h2,
.pacing-panel h2,
.draft-player h2 {
  margin: 0 0 10px;
  font: 760 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rail-note,
.band-heading p,
.dialog-message {
  margin: 0;
  color: #61716b;
  font-size: 12px;
  line-height: 1.45;
}

.search-box,
.rail-block label {
  display: grid;
  gap: 6px;
  color: #52615c;
  font-size: 12px;
  font-weight: 760;
}

.search-box input,
.rail-block input,
.rail-block select,
.collection-form input,
.copy-row input,
.rehearsal-controls select,
.rehearsal-controls input,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #cfd7cc;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fbfcf7;
  color: #172421;
}

.rail-block select {
  margin-bottom: 10px;
}

.collection-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.collection-form button,
.secondary-action,
.collection-pill,
.small-action {
  border: 1px solid #cfd7cc;
  border-radius: 7px;
  padding: 8px 10px;
  background: #eef3e9;
  color: #263b36;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.lab-action {
  display: inline-flex;
  justify-content: center;
  margin-top: 8px;
  text-decoration: none;
}

.path-choice {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-weight: 760;
}

.collection-list,
.compact-list,
.recent-list {
  display: grid;
  gap: 8px;
}

.collection-list {
  margin-top: 10px;
}

.collection-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.collection-pill[aria-pressed="true"] {
  border-color: #233f39;
  background: #233f39;
  color: #f7f8f3;
}

.workspace-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.workspace-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.workspace-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 520;
  line-height: 1;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.workspace-band {
  padding: 14px;
}

.band-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.talk-card {
  min-height: 0;
  padding: 0;
  border: 1px solid #dfe4d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fffefa;
  box-shadow: none;
}

.talk-card[data-favorite="true"] {
  border-color: #a96547;
}

.talk-thumb {
  position: relative;
  height: 164px;
  border-bottom: 1px solid #dfe4d9;
  background: #17332f;
  overflow: hidden;
}

.talk-thumb .board-canvas {
  border-radius: 0;
  box-shadow: none;
}

.thumb-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(23, 36, 33, .88);
  color: #f7f8f3;
  font-size: 10px;
  font-weight: 820;
}

.talk-body {
  padding: 13px;
  display: grid;
  gap: 9px;
}

.talk-meta,
.card-actions,
.recent-actions,
.kit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.talk-meta span,
.status-chip,
.duration-chip {
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef3e9;
  color: #4c5e58;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status-chip.example {
  background: #f5e7dd;
  color: #884c31;
}

.talk-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.12;
}

.talk-card p {
  margin: 0;
  color: #5b6a65;
  font-size: 13px;
  line-height: 1.45;
}

.card-actions button,
.card-actions a,
.preview-actions button,
.preview-actions a {
  min-height: 38px;
}

.favorite-toggle[aria-pressed="true"] {
  border-color: #a96547;
  background: #f5e7dd;
  color: #884c31;
}

.recent-item,
.compact-item {
  border: 1px solid #dfe4d9;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf7;
}

.recent-item strong,
.compact-item strong {
  display: block;
  margin-bottom: 4px;
}

.recent-item small,
.compact-item small {
  color: #61716b;
}

.asset-warning {
  margin: 0;
  color: #93433c;
  font-size: 12px;
  font-weight: 760;
}

.library-dialog {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  box-shadow: 0 30px 80px rgba(14, 31, 28, .28);
}

.library-dialog::backdrop {
  background: rgba(23, 36, 33, .54);
}

.library-dialog form {
  padding: 18px;
}

.dialog-close {
  border: 1px solid #cfd7cc;
  border-radius: 7px;
  width: 34px;
  height: 34px;
  background: #eef3e9;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 16px;
}

.preview-board {
  min-height: 310px;
  border-radius: 8px;
  overflow: hidden;
  background: #17332f;
}

.preview-facts {
  display: grid;
  align-content: start;
  gap: 12px;
}

.preview-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  font-size: 13px;
}

.preview-facts dt {
  color: #61716b;
  font-weight: 760;
}

.preview-facts dd {
  margin: 0;
}

.objective-list {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #42524d;
}

.objective-list p {
  margin: 0;
}

.launch-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 80;
  width: min(430px, 100vw);
  padding: 12px;
  background: rgba(23, 36, 33, .22);
}

.launch-inner {
  height: 100%;
  padding: 16px;
  overflow: auto;
}

.launch-inner h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.launch-grid,
.qr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 14px 0;
}

.qr-grid {
  grid-template-columns: 1fr 1fr;
}

.qr-grid figure {
  margin: 0;
  text-align: center;
  color: #61716b;
  font-size: 12px;
}

.workspace-footer {
  width: min(1480px, calc(100vw - 24px));
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #61716b;
  font-size: 12px;
}

.about-shell {
  width: min(1120px, calc(100vw - 28px));
  margin: 42px auto 60px;
}

.about-hero {
  max-width: 790px;
  margin-bottom: 34px;
}

.about-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 520;
  line-height: .98;
}

.about-hero p:last-child {
  color: #4f625c;
  font-size: 18px;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.about-grid article,
.about-note {
  border-top: 2px solid #233f39;
  padding-top: 14px;
}

.about-grid span {
  color: #a96547;
  font-size: 12px;
  font-weight: 850;
}

.about-grid h2,
.about-note h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 520;
}

.about-grid p,
.about-note p {
  color: #53645f;
  font-size: 14px;
  line-height: 1.6;
}

.about-note {
  margin-top: 34px;
  max-width: 680px;
}

@media (max-width: 980px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .workspace-header,
  .workspace-title,
  .band-heading,
  .workspace-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-rail {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    width: min(100vw - 14px, 1480px);
    margin-top: 10px;
  }

  .talk-thumb {
    height: 188px;
  }

  .library-dialog form {
    padding: 12px;
  }

  fieldset {
    grid-template-columns: 1fr;
  }
}


/* A working library, with a compact mobile filter drawer and real board covers. */
body[data-page="library"] { background: #f5f2e9; }
.workspace-header { background: #fbfaf5; border-bottom: 1px solid #d8d1c2; }
.workspace-shell { gap: 24px; margin-top: 24px; }
.workspace-tools { min-width: 0; }
.workspace-tools-body { display: grid; gap: 14px; }
.workspace-tools > summary { cursor: pointer; padding: 14px 16px; border: 1px solid #d5cfbf; border-radius: 10px; background: #fffdf7; font-weight: 750; }
.workspace-main { min-width: 0; }
.workspace-title h1 { font-weight: 500; letter-spacing: -.035em; }
.workspace-grid { gap: 18px; }
.talk-card { border-color: #d8d1c2; border-radius: 12px; overflow: hidden; background: #fffdf7; box-shadow: 0 5px 18px rgba(29,44,37,.04); }
.talk-card .talk-body { padding: 17px; }
.talk-card h3 { font-size: 23px; line-height: 1.2; margin: 10px 0; }
.talk-card .card-actions { margin-top: auto; }
.talk-card .talk-body > p { line-height: 1.55; }
.talk-thumb { border-bottom: 3px solid #98724b; }
.workspace-band { border-radius: 12px; }
.workspace-nav a:focus-visible, .card-actions button:focus-visible { outline: 3px solid #9f4a24; outline-offset: 3px; }
@media (min-width: 981px) { .workspace-tools > summary { display: none; } }
@media (max-width: 980px) {
  .workspace-rail { grid-template-columns: minmax(0,1fr); }
  .workspace-tools[open] .workspace-tools-body { padding-top: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-shell { margin-top: 16px; }
}
@media (max-width: 680px) {
  .workspace-header { gap: 12px; }
  .workspace-nav { flex-wrap: wrap; gap: 16px; }
  .workspace-shell { width: calc(100% - 24px); gap: 16px; }
  .workspace-tools[open] .workspace-tools-body { grid-template-columns: minmax(0,1fr); }
  .workspace-title h1 { font-size: 36px; }
  .workspace-title .title-actions { flex-wrap: wrap; }
  .workspace-band { padding: 12px; }
  .card-actions .button, .collection-pill { min-height: 44px; }
}
