/* Personal reading corner for study.html. Loaded after study-theme.css. */
#notebook-dialog {
  --muted: #75614c;
  --line: #deceb8;
  background: #fffcf5;
  border-color: #d1b997;
  box-shadow: 0 24px 90px #49332038;
}
#notebook-dialog::backdrop { background: #392e2366; }
#notebook-dialog .profile-heading h2 { color: #5b4129; }
#notebook-dialog .profile-eyebrow,
#notebook-dialog .notebook-status,
#notebook-dialog .reader-stats,
#notebook-dialog .panel-hint { color: #75614c; font-size: 13px; }
#notebook-dialog .reader-stats { font-size: 14px; }
#notebook-dialog .profile-close {
  width: 44px; height: 44px; flex-shrink: 0;
  color: #735335; border-color: #d9c5a6; background: #fff8e9;
}
#notebook-dialog .profile-close:hover { background: #f2e3c7; }
#notebook-dialog .profile-tabs {
  border-color: #dec9aa; gap: 6px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: #c7a77d transparent;
}
#notebook-dialog .profile-tabs button {
  flex: 1 0 auto; min-height: 44px; padding: 10px 12px;
  font-size: 15px; white-space: nowrap; color: #75614c;
  border-radius: 7px 7px 0 0;
}
#notebook-dialog .profile-tabs button:hover { background: #f7edda; }
#notebook-dialog .profile-tabs button[aria-selected=true] {
  color: #714921; border-bottom-color: #956234; background: #f4e7cc;
}
#notebook-dialog .note-composer {
  background: #f8f0e0; border-color: #e0ceb0; border-radius: 12px;
}
#notebook-dialog .note-composer > label { color: #63472d; font-size: 16px; }
#notebook-dialog .note-composer textarea,
#notebook-dialog .note-attribution input {
  border-color: #cdb796; background: #fffdf8; color: #483629; font-size: 16px;
}
#notebook-dialog .note-attribution input { min-height: 44px; }
#notebook-dialog .note-attribution span,
#notebook-dialog .note-compose-actions > span { color: #75614c; font-size: 13px; }
#notebook-dialog .note-compose-actions { flex-wrap: wrap; }
#notebook-dialog .note-compose-actions .primary { min-height: 44px; font-size: 15px; }
#notebook-dialog .collection-heading h3 { color: #60432b; font-size: 18px; }
#notebook-dialog .text-action { color: #805733; min-height: 44px; font-size: 14px; }
#notebook-dialog .notebook-item { border-color: #e3d5c0; }
#notebook-dialog .notebook-quote { color: #513d2c; }
#notebook-dialog .notebook-actions { flex-wrap: wrap; gap: 8px; }
#notebook-dialog .notebook-actions button,
#notebook-dialog .shelf-item button { min-height: 44px; padding: 7px 12px; font-size: 14px; }
#notebook-dialog .notebook-empty,
#notebook-dialog .shelf-empty,
#notebook-dialog .trail-empty {
  color: #75614c; background: #faf4e8; border: 1px dashed #d6c1a0;
  border-radius: 10px; padding: 26px 18px; font-size: 15px; line-height: 1.9;
}
#notebook-dialog .shelf-item {
  border-color: #dec9aa; background: linear-gradient(110deg,#f6e9d1,#fffcf5);
  box-shadow: 0 3px 0 -1px #eddfc7;
}
#notebook-dialog .shelf-item::before { background: #b28a54; }
#notebook-dialog .shelf-title { color: #60432b; }
#notebook-dialog .shelf-article { border-color: #e1d0b5; }
#notebook-dialog .shelf-articles,
#notebook-dialog .shelf-article { color: #75614c; font-size: 15px; }
#notebook-dialog .shelf-item a { color: #805733; font-size: 15px; }
#notebook-dialog .shelf-actions { flex-wrap: wrap; }
#notebook-dialog .trail-item { border-left-color: #d8bf98; }
#notebook-dialog .trail-item:last-child { border-left-color: transparent; }
#notebook-dialog .trail-item::before { border-color: #b18b54; background: #fff8e9; }
#notebook-dialog .trail-time,
#notebook-dialog .trail-label { color: #75614c; font-size: 13px; }
#notebook-dialog .trail-from,
#notebook-dialog .trail-route > span:not([class]) { color: #75614c; }
#notebook-dialog .trail-to { color: #714a28; }
#notebook-dialog .daily-reading {
  background: linear-gradient(120deg,#fbf1db,#fffaf0);
  border-color: #dbc29a; box-shadow: 0 4px 0 -2px #e9d8b8;
}
#notebook-dialog .daily-eyebrow { color: #805f35; }
#notebook-dialog .daily-quote { color: #62482f; }
#notebook-dialog .daily-source,
#notebook-dialog .daily-book { color: #75614c; }
#notebook-dialog .daily-actions { flex-wrap: wrap; }
#notebook-dialog .daily-actions button { min-height: 44px; font-size: 15px; }
input::placeholder, textarea::placeholder { color: #806d59; opacity: 1; }
#excerpt::placeholder { color: #806d59; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible { outline: 2px solid #93612f; outline-offset: 3px; }
@media (max-width: 560px) {
  #notebook-dialog { height: 92dvh; max-height: 92dvh; padding-inline: 15px; }
  #notebook-dialog .profile-tabs { gap: 3px; }
  #notebook-dialog .profile-tabs button { padding-inline: 10px; }
  #notebook-dialog .profile-body { padding-top: 16px; }
  #notebook-dialog .note-attribution { grid-template-columns: 1fr; gap: 10px; }
  #notebook-dialog .shelf-article { flex-wrap: wrap; }
  #notebook-dialog .daily-reading { padding: 18px 16px; }
}
