/* Homepage overrides only. Other library pages keep their layout. */
.content:has(.home-shell){height:calc(100vh - 65px);height:calc(100dvh - 65px);padding:20px 32px 16px;max-width:none;overflow:hidden}
.home-shell{width:100%;max-width:900px;height:100%;min-height:0;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.home-shell.home-empty{justify-content:center;padding-bottom:5vh}.home-shell .dialog-heading{padding:0 0 18px}.home-shell .dialog-heading h1{font-size:30px;letter-spacing:-.6px;margin-bottom:12px}.home-shell .dialog-heading p{font-size:13px}
.home-compose-area{flex:none;width:100%}.home-shell .composer{padding:14px 18px;border-radius:18px;box-shadow:0 5px 20px #18345208}.home-shell .composer textarea{display:block;min-height:52px;max-height:136px;height:52px;resize:none;line-height:1.6;padding:4px 0 8px;font-size:15px;box-sizing:border-box}.home-shell .composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;padding:7px 0 0}.composer-tools{display:flex;align-items:center;gap:10px;min-width:0}.home-shell .upload-control{border:0;padding:7px 2px;color:#44536a;background:transparent}.home-shell .simple-functions{gap:7px}.home-shell .mode-chip{border-radius:22px;padding:7px 12px;background:white;font-weight:400;font-size:12px}.home-shell .mode-chip.selected{border-color:#abc6ff;background:#f0f5ff;color:#2563d5}.home-shell .send-circle{width:38px;height:38px;min-height:38px;flex:none;border-radius:50%;padding:0;font-size:25px;display:grid;place-items:center}.home-shell .attached-files{margin:5px 0;max-height:76px;overflow:auto}.home-shell .attachment{border-radius:7px}.home-context{font-size:12px;color:#62758e;background:#f4f7fc;border-radius:6px;padding:4px 8px;margin-bottom:5px}
.home-suggestions{margin-top:22px}.suggestion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.suggestion-card{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:16px;background:#fff;border:1px solid #e0e7f1;border-radius:12px;color:#32415b;font-size:13px;transition:background .15s,border-color .15s}.suggestion-card:hover{background:#f1f6ff;border-color:#a8c3f0}.suggestion-card:focus-visible{outline:2px solid #3979de;outline-offset:2px}.suggestion-card span:nth-child(2){flex:1}.suggestion-icon{font-size:20px;color:#3478e5}.suggestion-foot{display:flex;align-items:center;justify-content:space-between;padding:9px 0;font-size:11px;color:#8391a6}.suggestion-foot .btn{font-weight:400;color:#7689a2}.home-footnote{text-align:center;font-size:11px;color:#8796aa;margin:9px 0 0}
.home-shell.chat-active .conversation-stream{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;margin:0;padding:12px 5px 24px;gap:18px;scrollbar-width:thin}.home-shell .conversation-message{max-width:86%;padding:12px 16px;flex-shrink:0;font-size:14px}.home-shell .conversation-message.assistant{border:0;background:transparent;padding-left:0;max-width:100%}.home-shell .recognition-panel{flex-shrink:0;width:100%}.home-shell .recognition-panel>.spread{padding:5px 0}.home-shell .recognition-card{padding:16px;border-radius:12px}.home-shell .recognition-card details>summary{padding:5px 0;cursor:pointer}.home-shell .recognition-panel .form-grid{margin-bottom:12px}.home-shell .evidence{font-size:11px}.home-shell .confirm-bar{z-index:2;padding:12px;border-radius:10px;box-shadow:0 -6px 15px #f4f6f9dd}.home-shell .review-changes{margin:10px 0 0;line-height:1.8}.home-shell .notice.error{flex:none;font-size:12px}
@media(max-width:760px){.content:has(.home-shell){padding:12px 14px}.home-shell{max-width:100%;gap:10px}.home-shell .dialog-heading h1{font-size:24px}.home-shell.home-empty{padding-bottom:0}.home-shell .composer{padding:12px}.home-shell .mode-chip{padding:6px 8px;font-size:11px}.composer-tools{gap:7px}.suggestion-grid{gap:8px}.suggestion-card{padding:12px 9px;gap:7px;font-size:12px}.suggestion-icon{font-size:17px}.home-shell .conversation-message{max-width:96%}.home-shell .confirm-bar{position:static}.home-shell .composer-bottom{gap:6px}}
@media(max-width:420px){.suggestion-grid{grid-template-columns:1fr}.suggestion-card{padding:9px 12px}.home-suggestions{margin-top:13px}.home-shell .dialog-heading{padding-bottom:10px}.home-shell .composer textarea{font-size:14px}}
@media(max-height:650px){.home-shell.home-empty{justify-content:flex-start;padding:12px 0;overflow-y:auto}.home-shell .dialog-heading{padding-bottom:0}.home-suggestions{margin-top:12px}.suggestion-card{padding:10px 14px}}
@media(prefers-reduced-motion:reduce){.suggestion-card{transition:none}}
