:root { --bg:#f7f5f0; --card:#fff; --ink:#222; --muted:#666; --accent:#8a3b12; --line:#e4dfd3; }
* { box-sizing: border-box; }
body { margin:0; font-family:"Noto Sans Myanmar","Padauk",system-ui,sans-serif; background:var(--bg); color:var(--ink); line-height:1.8; }
header { background:var(--accent); color:#fff; padding:12px 20px; }
header h1 { margin:0; font-size:1.25rem; }
header p { margin:0; font-size:.8rem; opacity:.85; }
main { display:grid; grid-template-columns:320px 1fr; height:calc(100vh - 105px); }
#sidebar { border-right:1px solid var(--line); background:var(--card); display:flex; flex-direction:column; min-height:0; }
#sidebar input, #sidebar select { margin:8px 10px 0; padding:8px; font:inherit; border:1px solid var(--line); border-radius:6px; }
#count { padding:6px 12px; font-size:.8rem; color:var(--muted); }
#authors { list-style:none; margin:0; padding:0; overflow-y:auto; flex:1; }
#authors li { padding:6px 14px; cursor:pointer; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:8px; }
#authors li:hover { background:#f3ece2; }
#authors li.active { background:var(--accent); color:#fff; }
#authors .meta { font-size:.75rem; opacity:.7; white-space:nowrap; }
#detail { overflow-y:auto; padding:20px 28px; }
#detail h2 { margin:0 0 4px; color:var(--accent); }
.years { color:var(--muted); margin-bottom:12px; }
.profile { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:10px 16px; margin-bottom:16px; }
.profile div { display:grid; grid-template-columns:140px 1fr; gap:8px; }
.profile b { color:var(--muted); font-weight:600; }
.share { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.share button, .share a { font:inherit; font-size:.8rem; padding:2px 10px; border:1px solid var(--accent); color:var(--accent); background:#fff; border-radius:6px; cursor:pointer; text-decoration:none; }
.share button:hover, .share a:hover { background:var(--accent); color:#fff; }
.pdf { display:inline-block; margin:0 0 12px; padding:4px 12px; background:var(--accent); color:#fff; border-radius:6px; text-decoration:none; font-size:.85rem; }
.bio { white-space:pre-line; }
details { margin:14px 0; }
summary { cursor:pointer; font-weight:600; }
#bookfilter { padding:6px 8px; font:inherit; border:1px solid var(--line); border-radius:6px; margin:8px 0; width:100%; max-width:360px; }
ol.books { padding-left:2em; }
ol.books li { margin:2px 0; }
ol.books .y { color:var(--muted); font-size:.85rem; margin-left:6px; }
.hint { color:var(--muted); }
.page { max-width:760px; margin:0 auto; padding:20px 24px; }
.page h2 { color:var(--accent); }
footer { text-align:center; font-size:.8rem; padding:6px; color:var(--muted); background:var(--card); border-top:1px solid var(--line); }
footer a { color:var(--accent); }
.back { display:none; }
@media (max-width:760px) {
  main { grid-template-columns:1fr; height:auto; }
  #authors { max-height:40vh; }
  #detail { padding:16px; }
  .profile div { grid-template-columns:1fr; gap:0; }
}
