.notebook-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0 26px;
  padding: 28px;
  border: 1px solid #49405f;
  border-radius: 20px;
  background: radial-gradient(ellipse at 0 0, #7860b52b, transparent 65%), #151a29;
}
.notebook-welcome h2 {
  font-size: 24px;
  margin: 10px 0;
}
.notebook-welcome p {
  font-size: 13px;
  color: #a8b4cc;
  line-height: 1.8;
  max-width: 540px;
  margin: 0;
}
.notebook-welcome button {
  white-space: nowrap;
}
.notebook-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.notebook-tile {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(135deg, #1d2233, #141a27);
  border: 1px solid #384056;
  border-left: 4px solid #a492e0;
  border-radius: 15px;
  box-shadow: 0 8px 24px #0002;
}
.notebook-icon {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: #d3c8ff;
  background: #312b49;
  border: 1px solid #4c4169;
  border-radius: 10px;
  font-size: 24px;
}
.notebook-tile h2 {
  overflow-wrap: anywhere;
  margin: 17px 0 10px;
  font-size: 20px;
  line-height: 1.5;
}
.notebook-tile p {
  color: #acbad0;
  font-size: 13px;
}
.notebook-tile small {
  display: block;
  color: #f0d8a5;
  line-height: 1.6;
  margin-bottom: 15px;
}
.notebook-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.notebook-tile button:disabled {
  opacity: 0.45;
  cursor: default;
}
.notebook-first {
  grid-column: 1/-1;
  padding: 45px 25px;
}
.notebook-first h2 {
  color: #ded8f3;
}
.notebook-first p {
  line-height: 1.7;
}
.notebook-builder {
  border: 1px solid #333c51;
  background: #111824;
  border-radius: 18px;
  padding: 25px;
  margin-top: 18px;
}
.notebook-builder-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.notebook-builder-heading > span {
  color: #b6a6e5;
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 800;
}
.notebook-name {
  font-size: 12px;
  color: #b9c6dc;
  max-width: 700px;
}
.notebook-name input {
  font-size: 17px;
  padding: 14px;
}
.notebook-filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 25px 0 14px;
}
.notebook-filter-heading h2 {
  margin: 0;
  font-size: 18px;
}
.notebook-filter-heading button {
  font-size: 11px;
  padding: 8px 12px;
}
.notebook-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.notebook-filters label {
  font-size: 11px;
  color: #acb9d0;
}
.notebook-filters select,
.notebook-filters input {
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.notebook-help {
  font-size: 12px;
  color: #98a8bf;
  line-height: 1.8;
  margin: 18px 0;
}
.notebook-selection-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 15px;
  background: #1a2031;
  border: 1px solid #333d53;
  border-radius: 11px;
}
.notebook-selection-tools button {
  font-size: 12px;
}
.notebook-selection-tools label {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.notebook-selection-tools input[type='checkbox'],
.notebook-select-page input,
.notebook-question input {
  width: 18px;
  height: 18px;
  accent-color: #a78bfa;
  padding: 0;
  flex-shrink: 0;
}
.notebook-result-summary {
  font-size: 12px;
  color: #c3b6ee;
  line-height: 1.8;
  margin: 20px 0 12px;
  scroll-margin-top: 90px;
}
.notebook-select-page {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0;
  font-size: 12px;
}
.notebook-question {
  background: #151d2b;
  border: 1px solid #333e53;
  border-radius: 12px;
  margin: 11px 0;
  overflow: hidden;
}
.notebook-question.is-selected {
  border-color: #8e79c7;
  background: #211e34;
}
.notebook-question-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px;
  cursor: pointer;
}
.notebook-question-check > input {
  margin-top: 4px;
}
.notebook-question-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.notebook-question-copy > b {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  color: #dce4f3;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.notebook-question-copy > small {
  font-size: 11px;
  color: #9daec7;
}
.notebook-question-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.notebook-question-meta > span {
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 8px;
  border-radius: 7px;
  background: #0d1423;
  color: #b6c2d9;
  border: 1px solid #3b4059;
}
.notebook-question details {
  margin: 0 19px 17px 51px;
  font-size: 12px;
  color: #b6c5dc;
  line-height: 1.8;
}
.notebook-question summary {
  cursor: pointer;
  color: #b8a6e9;
}
.notebook-question details p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c7d2e5;
}
.notebook-question details ol {
  padding-left: 22px;
}
.notebook-question details li {
  margin: 8px 0;
}
.notebook-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}
.notebook-pagination > span {
  color: #acb9cf;
  font-size: 12px;
}
.notebook-pagination button {
  font-size: 12px;
}
.notebook-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.notebook-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  margin-top: 22px;
  background: #24233a;
  border: 1px solid #77618e;
  border-radius: 13px;
  box-shadow: 0 8px 30px #0007;
}
.notebook-save-bar b {
  font-size: 14px;
  color: #e9e1ff;
}
.notebook-save-bar p {
  font-size: 11px;
  line-height: 1.7;
  color: #c3bbd5;
  margin: 7px 0 0;
}
.notebook-save-bar button {
  white-space: nowrap;
}
.notebook-save-bar button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.notebook-study-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
  padding: 20px;
  background: linear-gradient(110deg, #29213f, #172437);
  border: 1px solid #6b5288;
  border-radius: 15px;
}
.notebook-study-banner h2 {
  margin: 9px 0;
  color: #eee5ff;
  overflow-wrap: anywhere;
}
.notebook-study-banner p {
  font-size: 12px;
  line-height: 1.7;
  color: #b8c4da;
  margin: 0;
}
.notebook-study-banner > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.notebook-study-banner button {
  font-size: 11px;
  white-space: nowrap;
}
.notebook-builder button:focus-visible,
.notebook-tile button:focus-visible,
.notebook-welcome button:focus-visible,
.notebook-study-banner button:focus-visible {
  outline: 3px solid #c7b7ff;
  outline-offset: 3px;
}
.notebook-question:focus-within {
  outline: 2px solid #b8a5ee;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .notebook-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notebook-shelf {
    grid-template-columns: 1fr;
  }
  .notebook-welcome {
    padding: 22px;
  }
  .notebook-study-banner {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 550px) {
  .notebook-welcome {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .notebook-welcome h2 {
    font-size: 22px;
  }
  .notebook-builder {
    padding: 16px;
  }
  .notebook-filters {
    grid-template-columns: 1fr;
  }
  .notebook-builder-heading {
    gap: 10px;
  }
  .notebook-builder-heading > span {
    font-size: 9px;
  }
  .notebook-name input {
    font-size: 15px;
  }
  .notebook-selection-tools {
    padding: 12px;
    gap: 8px;
  }
  .notebook-selection-tools button {
    flex: 1;
    font-size: 11px;
  }
  .notebook-selection-tools label {
    width: 100%;
    margin: 7px 0 0;
    font-size: 12px;
  }
  .notebook-question-check {
    padding: 14px;
    gap: 11px;
  }
  .notebook-question-copy > b {
    font-size: 13px;
  }
  .notebook-question details {
    margin-left: 43px;
    margin-right: 14px;
  }
  .notebook-save-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    bottom: 6px;
    gap: 13px;
  }
  .notebook-save-bar button {
    width: 100%;
  }
  .notebook-pagination {
    gap: 12px;
  }
  .notebook-pagination button {
    padding: 9px 10px;
    font-size: 11px;
  }
  .notebook-pagination > span {
    font-size: 10px;
  }
}
