:root{--ink:#172238;--muted:#7b8494;--line:#e7eaf0;--paper:#f7f8fb;--white:#fff;--accent:#e6a24d;--green:#45a982}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:280px;background:#fff;border-right:1px solid var(--line);padding:28px 20px;display:flex;flex-direction:column;gap:12px}.brand{display:flex;align-items:center;gap:11px;margin:3px 8px 28px}.brand-mark{height:38px;width:38px;border-radius:13px;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:Georgia,serif;font-size:24px}.brand strong{display:block;font-size:17px}.brand span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.primary{border:0;border-radius:12px;background:var(--ink);color:#fff;padding:13px 15px;font-weight:700;cursor:pointer;box-shadow:0 6px 16px #1722381a}.side-label,.eyebrow{font-size:10px;letter-spacing:.13em;color:#a0a7b3;font-weight:800}.side-label{margin:25px 8px 2px}.book-link{border:0;background:transparent;padding:12px 9px;border-radius:10px;display:grid;grid-template-columns:17px 1fr auto;gap:8px;align-items:center;text-align:left;color:#525c6e;cursor:pointer}.book-link:hover,.book-link.active{background:#f3f4f7;color:var(--ink)}.book-link small{font-size:10px;color:#9ca3af}.book-dot{width:12px;height:12px;border-radius:4px;display:block}.amber{background:#e6a24d}.violet{background:#8d82ce}.green{background:#6bc1a0}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 8px 0;display:flex;align-items:center;gap:9px}.avatar{width:31px;height:31px;border-radius:50%;background:#e9edf4;display:grid;place-items:center;font-size:10px;font-weight:800}.sidebar-bottom strong{font-size:12px;display:block}.sidebar-bottom small{font-size:10px;color:var(--muted)}.more{margin-left:auto;color:#a2a9b4}.main{max-width:1050px;width:100%;margin:0 auto;padding:52px 7vw}.topbar{display:flex;justify-content:space-between;align-items:center}.topbar h1{font-family:Georgia,serif;font-weight:400;font-size:38px;margin:6px 0 4px}.topbar p{color:var(--muted);font-size:13px;margin:0}.top-actions{display:flex;gap:10px;align-items:center}.ghost,.icon-btn{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 13px;color:#677183;cursor:pointer}.icon-btn{width:39px;height:39px;padding:0}.small{padding:8px 10px;font-size:12px}.reading-line{height:4px;background:#e9ecf1;border-radius:9px;margin:29px 0 22px}.reading-fill{width:42%;height:100%;background:var(--accent);border-radius:9px}.chat-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 45px #2938580a;overflow:hidden}.chat-head{height:68px;padding:0 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.chat-head strong{font-size:14px;margin-right:14px}.safe{font-size:11px;color:var(--green)}.safe i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:5px}.messages{padding:28px 34px 12px;min-height:355px}.message{display:flex;gap:12px;margin-bottom:22px;max-width:700px}.message-avatar{width:29px;height:29px;border-radius:10px;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:Georgia,serif;flex:none}.message p{font-size:14px;line-height:1.65;margin:3px 0;color:#3e4859}.message-tools{display:flex;gap:9px;align-items:center;margin-top:8px;color:#a7afba;font-size:10px}.listen{border:0;background:transparent;padding:0;color:#bd782d;font-size:11px;cursor:pointer}.suggestions{padding:0 34px 17px;display:flex;gap:8px;flex-wrap:wrap}.suggestions button{border:1px solid #e8e5dc;background:#fffaf2;color:#9c682d;border-radius:17px;padding:8px 11px;font-size:11px;cursor:pointer}.composer{margin:0 20px;border:1px solid #dfe3eb;border-radius:14px;display:flex;align-items:flex-end;padding:8px;gap:9px}.composer textarea{border:0;outline:0;resize:none;flex:1;font:inherit;font-size:14px;padding:9px 4px;color:var(--ink)}.mic,.send{border:0;border-radius:10px;width:38px;height:38px;cursor:pointer}.mic{background:#f1f2f6;color:#46536a;font-size:20px}.mic.active{background:#ffe5c7;color:#b76c1e;animation:pulse 1.2s infinite}.send{background:var(--ink);color:#fff}.composer-note{padding:10px 25px 18px;color:#a4abb5;font-size:10px;display:flex;justify-content:space-between}.modal{position:fixed;inset:0;background:#17223855;display:grid;place-items:center;padding:20px;z-index:5}.hidden{display:none}.modal-box{position:relative;background:#fff;border-radius:18px;padding:30px;max-width:420px;width:100%;box-shadow:0 25px 80px #17223833}.modal-box.wide{max-width:650px}.modal-box h2{font-family:Georgia,serif;font-weight:400;font-size:30px;margin:8px 0}.modal-box p{font-size:13px;color:var(--muted);line-height:1.6}.close{position:absolute;right:18px;top:15px;border:0;background:transparent;font-size:25px;color:#8d96a5;cursor:pointer}.modal-box label{display:block;color:#596476;font-size:12px;font-weight:700;margin:17px 0}.modal-box input,.modal-box select{display:block;width:100%;border:1px solid var(--line);border-radius:9px;padding:11px;margin-top:7px;font:inherit}.modal-box .primary{width:100%;margin-top:12px}.archive-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:20px 0}.tab{border:0;background:transparent;padding:10px 12px;color:#8a93a2;cursor:pointer}.tab.active{color:var(--ink);border-bottom:2px solid var(--accent)}.tab b{font-size:10px;background:#f0f2f6;border-radius:8px;padding:3px 5px;margin-left:4px}.entity-list>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f1f4;padding:14px 0}.entity-icon{width:31px;height:31px;border-radius:10px;background:#fff4e5;display:grid;place-items:center;color:#b9742b}.entity-list strong{font-size:13px}.entity-list small{display:block;color:var(--muted);font-size:11px;margin-top:3px}@keyframes pulse{50%{box-shadow:0 0 0 8px #ffe5c733}}@media(max-width:760px){.sidebar{width:76px;padding:20px 10px}.brand div:not(.brand-mark),.primary,.side-label,.book-link span:not(.book-dot),.book-link small,.sidebar-bottom div,.more{display:none}.brand{margin:0 auto 25px}.book-link{display:flex;justify-content:center}.main{padding:28px 16px}.topbar h1{font-size:30px}.top-actions .ghost{display:none}.messages{padding:24px 20px 12px}.suggestions{padding:0 20px 14px}.chat-head{padding:0 18px}.chat-head .ghost{display:none}.composer-note{padding-left:18px;padding-right:18px}}
