body,#root{min-height:100vh;height:100vh}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f1f1f;background-color:#fafafa;height:100%}*{box-sizing:border-box}html,body{margin:0;height:100%;background:#fafafa;overflow:hidden;overscroll-behavior:none}#root{height:100%}.app{height:100vh;height:100dvh;display:flex;flex-direction:column;background:linear-gradient(180deg,#fdfdfd,#f6f6f6 40%,#f2f2f2);outline:none;color:#1f1f1f;overflow:hidden;touch-action:none}.app-header{padding:.75rem 1.25rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.06)}.app-header h1{margin:0}.header__meta{font-weight:600;opacity:.8}.viewport{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.75rem;padding:.75rem;overflow-y:auto;text-align:left}.paper-card{width:min(760px,95vw);min-height:54vh;background:#fff;border-radius:16px;padding:1.3rem 1.4rem 1rem;box-shadow:0 35px 55px #00000014;border:1px solid rgba(0,0,0,.05);display:flex;flex-direction:column;gap:.85rem}.paper-card__content h2{margin:.35rem 0 .5rem}.paper-card__summary{line-height:1.45;white-space:pre-line;flex:1 1 auto;overflow-y:auto;padding-right:.35rem}.paper-card__meta{display:flex;gap:1rem;font-size:.85rem;opacity:.6;margin-top:.25rem}.paper-card__categories{text-transform:uppercase;font-size:.75rem;letter-spacing:.2em;color:#bf1e2d;margin:0}.paper-card__actions{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.paper-card__actions-left{display:flex;gap:.5rem}.paper-card__actions-right{display:flex;gap:.75rem}button{cursor:pointer;border:none;border-radius:999px;padding:.55rem 1.2rem;background:linear-gradient(135deg,#e11d48,#991b1b);color:#fff;font-weight:600;transition:transform .15s ease,opacity .15s ease}button:disabled{opacity:.4;cursor:not-allowed}button.ghost{background:transparent;border:1px solid rgba(0,0,0,.2);color:#991b1b}button.preference-btn{padding:.5rem 1rem;font-size:1.25rem;background:transparent;border:2px solid rgba(0,0,0,.15);transition:all .2s ease}button.preference-btn:hover{transform:scale(1.1);border-color:#0000004d}button.save-btn{background:transparent;border:1px solid rgba(0,0,0,.2);color:#0f172a;transition:background .2s ease}button.save-btn.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border-color:#2563eb}button.like-btn.active{background:linear-gradient(135deg,#10b981,#059669);border-color:#10b981;transform:scale(1.05)}button.dislike-btn.active{background:linear-gradient(135deg,#ef4444,#dc2626);border-color:#ef4444;transform:scale(1.05)}.related-inline{width:min(760px,95vw);background:#fff;border-radius:18px;padding:1rem 1.5rem;max-height:25vh;overflow-y:auto;border:1px solid rgba(0,0,0,.05);box-shadow:0 20px 30px #0000000d}.related-inline__header{display:flex;justify-content:space-between;align-items:center}.related-inline ul{list-style:none;padding:0;margin:0}.related-inline li{padding:.75rem 0;border-bottom:1px solid rgba(0,0,0,.08)}.related-inline li.clickable{cursor:pointer;transition:background-color .15s ease;padding:.75rem .5rem;margin:0 -.5rem;border-radius:8px}.reading-list-panel{position:fixed;top:90px;right:24px;width:min(320px,80vw);max-height:60vh;overflow-y:auto;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:12px;box-shadow:0 20px 30px #00000014;padding:1rem;z-index:20}.reading-list-panel__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.reading-list-panel__empty{color:#6b7280;margin:0}.reading-list-panel h3{margin:0 0 .5rem}.reading-list-panel ul{list-style:none;margin:0;padding:0}.reading-list-panel li{padding:.5rem 0;border-bottom:1px solid rgba(0,0,0,.08);cursor:pointer}.reading-list-panel li:last-child{border-bottom:none}.data-controls-toggle,.menu-toggle{background:transparent;border:1px solid rgba(0,0,0,.2);color:#0f172a}.data-controls-panel{position:fixed;top:90px;left:24px;width:min(360px,85vw);max-height:65vh;overflow-y:auto;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:12px;box-shadow:0 20px 30px #00000014;padding:1rem;z-index:20}.menu-panel{position:fixed;top:90px;right:24px;width:min(340px,85vw);background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:12px;box-shadow:0 20px 30px #00000014;padding:1.25rem;z-index:25}.menu-panel__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.menu-panel__section{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.menu-panel__section:last-of-type{margin-bottom:0}.menu-panel__section button{justify-content:center}.data-controls-panel__header{display:flex;justify-content:space-between;align-items:center}.data-controls-panel__message,.data-controls-panel__hint{color:#6b7280;margin:.5rem 0}.data-controls-section{margin-top:1rem}.data-controls-section h4{margin-bottom:.5rem}.button-row{display:flex;flex-wrap:wrap;gap:.5rem}@media(max-width:768px){.app-header{flex-direction:column;align-items:flex-start;gap:.5rem;padding:.75rem 1rem}.header__intro p{margin:.25rem 0 0}.header__meta{width:100%;display:flex;flex-wrap:wrap;gap:.4rem}.header__meta>*{flex:1 1 45%;min-width:140px}.temperature-control,.menu-toggle{width:100%}.viewport{padding:.6rem .45rem .85rem;align-items:stretch;justify-content:flex-start;gap:.75rem}.paper-card{width:100%;padding:.85rem 1rem .7rem;border-radius:14px;box-shadow:0 15px 30px #00000014}.paper-card__summary{flex:1 1 auto;max-height:50dvh}.paper-card__actions-left,.paper-card__actions-right{gap:.5rem}.paper-card__meta{flex-direction:column;gap:.3rem}.related-inline{width:100%;max-height:none}.reading-list-panel,.data-controls-panel,.menu-panel{width:calc(100% - 2rem);left:1rem;right:1rem;top:auto;bottom:1rem;max-height:70vh}}.related-inline li.clickable:hover{background-color:#bf1e2d0d}.related-inline li span{display:block;font-size:.75rem;opacity:.6}.status{text-align:center;opacity:.8}.status.error{color:#c81e1e}.status.fixed{position:fixed;bottom:1rem;right:1rem;background:#000000d9;color:#fff;padding:.75rem 1.25rem;border-radius:999px}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;border-radius:20px;width:min(840px,95vw);max-height:90vh;overflow-y:auto;padding:2.5rem;position:relative;color:#1f1f1f}.modal__close{position:absolute;top:1rem;right:1rem;background:transparent;font-size:2rem;padding:0}.modal__abstract{white-space:pre-wrap;line-height:1.7}.modal__links{display:flex;gap:1rem;margin:1rem 0}.modal__links a{color:#c81e1e;font-weight:600}.modal__related ul{list-style:none;padding:0}.modal__related li{padding:.5rem 0;border-bottom:1px solid rgba(0,0,0,.08)}.modal__related li.clickable{cursor:pointer;transition:background-color .15s ease;padding:.5rem;margin:0 -.5rem;border-radius:8px}.modal__related li.clickable:hover{background-color:#bf1e2d0d}.loading-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;font-size:1.25rem;font-weight:600}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fdfdfd,#f6f6f6 40%,#f2f2f2);padding:2rem}.auth-container{width:min(450px,100%);background:#fff;border-radius:24px;padding:2.5rem;box-shadow:0 35px 55px #00000014;border:1px solid rgba(0,0,0,.05)}.auth-header{text-align:center;margin-bottom:2rem}.auth-header h1{margin:0 0 .5rem;color:#bf1e2d}.auth-header p{margin:0;opacity:.7}.auth-form h2{margin:0 0 1.5rem;text-align:center}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;font-size:.9rem}.form-group input{width:100%;padding:.75rem;border:2px solid rgba(0,0,0,.1);border-radius:8px;font-size:1rem;transition:border-color .2s ease}.form-group input:focus{outline:none;border-color:#bf1e2d}.form-group input:disabled{opacity:.5;cursor:not-allowed}.auth-error{background:#fee;color:#c81e1e;padding:.75rem;border-radius:8px;margin-bottom:1rem;font-size:.9rem}.auth-form button[type=submit]{width:100%;margin-top:.5rem}.auth-toggle{text-align:center;margin-top:1.5rem;font-size:.9rem}.auth-toggle button{background:none;border:none;color:#bf1e2d;font-weight:600;cursor:pointer;padding:0;text-decoration:underline}.header__meta{display:flex;align-items:center;gap:1rem}.temperature-control{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#475569}.temperature-control input[type=range]{width:120px}.temperature-value{font-variant-numeric:tabular-nums;min-width:2.5ch;text-align:right}.user-info{font-size:.9rem;opacity:.8}.logout-btn{padding:.5rem 1rem;font-size:.85rem}@media(max-width:600px){header,.controls{flex-direction:column;gap:.5rem}.paper-card,.auth-container{padding:1.5rem}.header__meta{flex-direction:column;gap:.5rem}}@media(max-width:768px){.app-header--compact{padding:.4rem .9rem;background:transparent;border-bottom:none}.app-header--compact .header__intro p,.app-header--compact .header__meta span,.app-header--compact .header__intro h1{display:none}.app-header--compact .menu-toggle{width:auto;align-self:flex-end}}
