/* 自分の書架。CCの緑と紅を使い、本文の読みやすさを保つ。 */
.my-shelf-entry { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; padding: 6px 0; color: var(--green,#31574d); font-weight: 700; text-underline-offset: 4px; }
.reader-shelf-link { margin: 12px 0 20px; }
.personal-library h1,.shelf-editor h1 { margin-bottom: 16px; }
.personal-intro { font-size: 1.125rem; }
.personal-privacy { font-size: .9375rem; line-height: 1.8; padding: 14px 18px; background: #eef3ef; border-left: 3px solid #31574d; margin: 18px 0 24px; }
.shelf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.shelf-filters button { cursor: pointer; min-height: 44px; padding: 10px 16px; border: 1px solid #62766a; background: white; color: #263e34; font: inherit; font-weight: 700; }
.shelf-filters button[aria-pressed=true] { background: #31574d; color: #fff; }
.shelf-filters span { margin-left: 12px; font-variant-numeric: tabular-nums; }
.shelf-notice:empty { display: none; }
.shelf-notice { color: #31574d; font-weight: 700; }
.shelf-error { border: 1px solid #a82940; padding: 16px; color: #8e2033; }
.personal-books { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 28px; }
.personal-book { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 20px; padding: 24px; border: 1px solid #bbc7be; border-bottom: 5px solid #31574d; background: #fff; }
.personal-cover { align-self: start; background: #eeece5; display: block; }
.personal-cover img { width: 100%; height: 150px; object-fit: contain; display: block; }
.personal-book h2 { font-size: 1.35rem; line-height: 1.6; margin: 12px 0 6px; }
.personal-book h2 a { text-decoration: none; }
.personal-book .caption { margin: 6px 0 12px; }
.shelf-status { display: inline-block; padding: 3px 10px; border: 1px solid #62766a; font-size: .8125rem; font-weight: 700; }
.status-reading { color: #8e2033; border-color: #a82940; }
.status-read { background: #31574d; color: #fff; }
.personal-context { font-size: .875rem; line-height: 1.8; }
.personal-note { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 12em; overflow-y: auto; line-height: 1.9; border-top: 1px solid #d5ddd7; padding-top: 14px; }
.personal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.personal-actions a,.text-button { min-height: 44px; display: inline-flex; align-items: center; }
.personal-actions a { font-weight: 700; }
.shelf-empty { padding: 38px 28px; border: 1px dashed #8c9e92; margin: 28px 0; }
.shelf-empty h2 { margin-top: 0; font-size: 1.5rem; }
.shelf-browse { margin: 30px 0; }
.shelf-editor { max-width: 780px; margin: 0 auto; }
.shelf-editor label { display: block; font-weight: 700; margin: 22px 0 8px; }
.shelf-editor label span { font-size: .8125rem; font-weight: 400; margin-left: 10px; }
.shelf-editor select,.shelf-editor textarea { font: inherit; font-size: 16px; line-height: 1.8; color: #252b29; background: white; border: 1px solid #62766a; border-radius: 0; width: 100%; padding: 10px 12px; box-sizing: border-box; min-height: 46px; }
.shelf-editor textarea { resize: vertical; }
.shelf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shelf-remove,.text-button { background: none; border: 0; text-decoration: underline; font: inherit; cursor: pointer; color: #8e2033; padding: 12px 0; margin-top: 24px; }
.text-button { margin: 0 0 0 16px; padding: 8px; }
.shelf-editor button:disabled { opacity: .55; cursor: not-allowed; }
.personal-library :focus-visible,.shelf-editor :focus-visible { outline: 3px solid #a82940; outline-offset: 3px; }
@media(max-width:900px) { .personal-books { grid-template-columns: minmax(0,1fr); } }
@media(max-width:700px) {
  .personal-book { grid-template-columns: 76px minmax(0,1fr); gap: 16px; padding: 18px 14px; }
  .personal-cover img { height: 114px; }
  .shelf-filters { gap: 8px; }
  .shelf-filters button { padding: 8px 10px; font-size: .9375rem; }
  .shelf-filters span { margin-left: 8px; }
  .shelf-fields { grid-template-columns: minmax(0,1fr); gap: 0; }
  .masthead nav a { font-size: .875rem; }
  .shelf-empty { padding: 24px 18px; }
}

/* 外部の本と収録希望 */
.shelf-editor input { font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; min-height: 46px; border: 1px solid #62766a; padding: 10px 12px; background: white; color: #252b29; }
.external-cover { display: flex; align-items: center; justify-content: center; min-height: 150px; writing-mode: vertical-rl; color: #31574d; font-weight: 700; letter-spacing: .15em; border: 1px solid #bbc7be; }
.personal-book h2,.request-preview { overflow-wrap: anywhere; }
.request-preview { white-space: pre-wrap; font: inherit; padding: 20px; background: #fff; border: 1px solid #bbc7be; }
.request-entry { color: #8e2033; }
@media(max-width:700px) { .external-cover { min-height: 114px; } }
