:root{font-family:system-ui,-apple-system,Arial,sans-serif;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#07172a;color:#eff7fc}a{color:#f4cb77}button,input{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #83efb3;outline-offset:2px}
.layout{max-width:860px;margin:auto;padding:20px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.hero{background:linear-gradient(125deg,#183d59,#102c41);padding:20px 23px;border:1px solid #477089;border-radius:17px}.hero h1{font-size:clamp(26px,4vw,38px);margin:6px 0}.hero p{color:#d4e1ec;max-width:630px;line-height:1.5;margin:0}
.nav{display:flex;gap:15px;flex-wrap:wrap}.nav a{min-height:44px;display:inline-flex;align-items:center}.kicker{color:#f4cb77;font-weight:800;letter-spacing:.12em;font-size:12px}
.shelfwrap{margin:0 -20px}.shelf{display:flex;gap:12px;overflow-x:auto;padding:4px 20px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.tab{flex:0 0 auto;scroll-snap-align:start;width:92px;background:none;border:2px solid transparent;border-radius:12px;padding:6px;color:#dcecf5;cursor:pointer;text-align:center;display:grid;gap:6px;justify-items:center}.tab[aria-selected=true]{border-color:#f4cb77;background:#10293f;color:#fff}.tab b{font-size:13px;line-height:1.2}
.cover{width:72px;aspect-ratio:3/4;border-radius:5px;overflow:hidden;box-shadow:0 3px 10px #0008;background:#fff;display:grid}.cover img{width:100%;height:100%;object-fit:cover;display:block}
.cover.typo{background:linear-gradient(160deg,#1b4a73,#0b2b5f);color:#fff;padding:8px 6px;align-content:space-between;text-align:left;border:1px solid #688ca2}.cover.typo small{font-size:8px;color:#f4cb77;letter-spacing:.08em;font-weight:800}.cover.typo strong{font-size:13px;line-height:1.15}.cover.typo em{font-size:7px;font-style:normal;color:#cfe0ee}.cover.all{background:linear-gradient(160deg,#f4cb77,#d9a73a);color:#142337}.cover.all small,.cover.all em{color:#142337}
.card{border:1px solid #365973;border-radius:16px;padding:20px;background:#10293f}.card h2{margin:0 0 6px;font-size:21px;line-height:1.25}
.head{display:flex;gap:16px;align-items:flex-start;margin-bottom:16px}.head .cover{width:112px;flex:0 0 auto}.head p{margin:0 0 10px;color:#bed0db;font-size:14px;line-height:1.5}
.field{display:grid;gap:7px;color:#dcecf5;font-size:14px;margin-bottom:12px}.field input{background:#091e30;color:#fff;border:1px solid #6c8799;padding:10px 12px;border-radius:8px;min-height:48px;font-size:16px;width:100%}
.action{min-height:44px;background:#1c3d53;color:#fff;border:1px solid #688ca2;border-radius:9px;padding:9px 16px;cursor:pointer}.action.primary{background:#f4cb77;color:#142337;border-color:#f4cb77;font-weight:800}.actions{display:flex;gap:9px;flex-wrap:wrap}
.status{color:#bed0db;font-size:14px;margin:14px 0 6px;min-height:20px}.results{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.hit{border:1px solid #365973;border-radius:12px;padding:14px;background:#0c2236}.src{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;font-size:13px;color:#bed0db}.src b{color:#f4cb77;font-size:14px}
.snip{margin:8px 0 10px;line-height:1.55;font-size:15px;color:#e6f0f6;overflow-wrap:anywhere}mark{background:#f4cb77;color:#142337;border-radius:3px;padding:0 2px}
.links{display:flex;flex-wrap:wrap;gap:8px}.links a{min-height:44px;display:inline-flex;align-items:center;padding:8px 14px;border:1px solid #688ca2;border-radius:9px;text-decoration:none;color:#fff;background:#1c3d53}.links a.main{background:#f4cb77;color:#142337;border-color:#f4cb77;font-weight:800}
details{margin-top:10px}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#f4cb77;font-weight:700}.full{white-space:pre-wrap;line-height:1.6;font-size:14px;color:#dcecf5;max-height:60vh;overflow:auto;border-top:1px solid #365973;padding-top:10px;overflow-wrap:anywhere}
.more{margin-top:14px;width:100%}.chapters{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:70vh;overflow:auto}.chapters a{min-height:44px;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 12px;border:1px solid #365973;border-radius:9px;text-decoration:none;color:#eff7fc;background:#0c2236}.chapters a:hover{border-color:#f4cb77}.chapters span:last-child{color:#f4cb77;font-size:13px;white-space:nowrap}
.note{color:#bed0db;font-size:14px;line-height:1.5}.foot{color:#bed0db;font-size:12px;line-height:1.6;margin:0 0 20px}[hidden]{display:none!important}
@media(max-width:700px){.layout{padding:12px}.shelfwrap{margin:0 -12px}.shelf{padding:4px 12px 10px}.card{padding:14px}.links a{flex:1 1 auto;justify-content:center}.head .cover{width:88px}}
