:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffe6;background-color:#000;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;place-items:center;justify-content:center;min-width:320px;min-height:100vh;overflow-x:hidden}html{overflow-x:hidden}body:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;background:radial-gradient(at 0% 0%,hsla(253,16%,7%,1) 0,transparent 50%),radial-gradient(at 50% 0%,hsla(225,39%,30%,1) 0,transparent 50%),radial-gradient(at 100% 0%,hsla(339,49%,30%,1) 0,transparent 50%)}#root{width:100%;max-width:900px;margin:0 auto;padding:2rem;box-sizing:border-box;overflow-x:hidden}@media(max-width:767px){#root{padding:1rem}}.pages-wrapper{position:relative;width:100%;min-height:80vh;overflow-x:hidden;overflow-y:visible}.page{position:absolute;top:0;left:0;width:100%;min-height:80vh;transition:transform .3s cubic-bezier(.4,0,.2,1);will-change:transform;box-sizing:border-box}.summarizer-page.active{transform:translate(0);position:relative}.summarizer-page.slide-left{transform:translate(-100%)}.history-page{transform:translate(100%)}.history-page.active{transform:translate(0);position:relative}.history-page.slide-right{transform:translate(100%)}.history-page.slide-left{transform:translate(-100%)}.summarizer-page.slide-left-2{transform:translate(-200%)}.detail-page{transform:translate(200%)}.detail-page.slide-right{transform:translate(100%)}.detail-page.active{transform:translate(0);position:relative}.history-header{position:sticky;top:0;background:#141428f2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:1rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:1rem;z-index:10;margin-bottom:1.5rem}.history-header button{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;padding:.5rem 1rem;border-radius:8px;cursor:pointer;font-size:.9rem;transition:all .2s ease}.history-header button:hover{background:#ffffff26}.history-header h2{margin:0;font-size:1.5rem;color:#a18cd1}.history-content{max-width:1200px;margin:0 auto}.search-bar-container{position:relative;max-width:600px;margin:0 auto 1.5rem;padding:0 1rem;box-sizing:border-box}.search-bar{width:100%;max-width:100%;padding:.75rem 2.5rem .75rem 1rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.15);border-radius:12px;color:#fff;font-size:.95rem;transition:all .2s ease;box-sizing:border-box}.search-bar::placeholder{color:#fff6}.search-bar:focus{outline:none;background:#ffffff14;border-color:#a18cd180;box-shadow:0 0 0 3px #a18cd11a}.clear-search{position:absolute;right:1.5rem;top:50%;transform:translateY(-50%);background:#ffffff1a;border:none;color:#fff9;width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:.9rem;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.clear-search:hover{background:#fff3;color:#fff}.app-container{display:flex;flex-direction:column;gap:.5rem;width:100%;padding:0}.liquid-title{font-size:3.5rem;font-weight:700;letter-spacing:-.02em;background:linear-gradient(135deg,#fff,#fff6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;margin:0;text-shadow:0 10px 30px rgba(0,0,0,.2)}.highlight{background:linear-gradient(90deg,#a18cd1,#fbc2eb);-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 10px rgba(161,140,209,.4))}.subtitle{font-size:1.1rem;color:#fff9;margin-top:.25rem;font-weight:300}.liquid-card{position:relative;padding:2rem 1.5rem;border-radius:40px;z-index:2;background:#ffffff08;backdrop-filter:blur(8px) saturate(120%);-webkit-backdrop-filter:blur(8px) saturate(120%);border:1px solid rgba(255,255,255,.2);box-shadow:0 20px 50px #0000004d,inset 0 0 0 1px #ffffff1a;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}@media(min-width:768px){.liquid-card{padding:2.5rem}}.liquid-card:before{content:"";position:absolute;top:0;left:0;right:0;height:50%;background:linear-gradient(180deg,rgba(255,255,255,.1) 0%,transparent 100%);border-radius:40px 40px 0 0;pointer-events:none}.liquid-card:hover{transform:translateY(-3px);box-shadow:0 25px 55px #00000059,inset 0 0 0 1px #ffffff26}.liquid-button{position:relative;padding:1rem 2.5rem;font-size:1.1rem;font-weight:600;color:#fff;background:linear-gradient(90deg,#a18cd1,#fbc2eb);border:1px solid rgba(255,255,255,.6);border-radius:99px;cursor:pointer;overflow:hidden;box-shadow:0 4px 15px #a18cd166;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}.liquid-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #a18cd199;filter:brightness(1.1)}.liquid-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.input-toggle{display:flex;justify-content:center;gap:1rem;margin-bottom:1.5rem}.toggle-btn{background:#ffffff0d;border:1px solid rgba(255,255,255,.2);color:#fff9;padding:.5rem 1.5rem;border-radius:20px;cursor:pointer;transition:all .3s ease}.toggle-btn.active{background:linear-gradient(90deg,#7861a0,#d689bb);color:#fff;border-color:transparent;box-shadow:0 0 20px #7861a080;font-weight:600}.input-container{min-height:140px;margin-bottom:1.5rem;display:flex;align-items:center}.input-group{display:flex;justify-content:center;width:100%}.file-input{display:none}.file-label{display:inline-block;padding:1rem 2rem;border-radius:20px;background:#0003;color:#fffc;border:1px dashed rgba(255,255,255,.3);cursor:pointer;transition:all .3s ease;min-width:300px;text-align:center}.file-label:hover{background:#0006;border-color:#fff9}.liquid-textarea{width:100%;min-height:100px;max-height:400px;background:#0003;border:1px solid rgba(255,255,255,.2);border-radius:20px;padding:1rem 1.5rem;color:#fff;font-family:inherit;font-size:1rem;line-height:1.5;resize:vertical;outline:none;transition:border-color .3s ease;box-sizing:border-box}.liquid-textarea:focus{border-color:#a18cd199;background:#0000004d}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-top:1.5rem;padding:.75rem 1rem;background:transparent;border-radius:12px;border:1px solid rgba(255,255,255,.05)}.stat-item{display:flex;flex-direction:column;align-items:center}.stat-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:#fff6;margin-bottom:.25rem}.stat-value{font-size:1rem;font-weight:600;color:#ffffffb3}.stat-value.cost{color:#a18cd1;text-shadow:0 0 10px rgba(161,140,209,.3)}.button-container{display:flex;justify-content:center;margin-bottom:1rem}.markdown-output{color:#ffffffe6;line-height:1.8;text-align:left}.markdown-output h1,.markdown-output h2{border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:.5rem;margin-top:1.5rem;color:#fff}.markdown-output code{background:#0000004d;padding:.2em .4em;border-radius:4px;font-family:monospace}.error{color:#ff6b6b;background:#ff00001a;border:1px solid rgba(255,0,0,.2);padding:1rem;border-radius:12px;text-align:center}.inline-error{margin-top:1rem;margin-bottom:1.5rem;padding:.75rem 1rem;background:#ff43361a;border:1px solid rgba(255,67,54,.3);border-radius:8px;color:#ff6b6b;font-size:.9rem;text-align:left;display:flex;align-items:center;gap:.5rem}.inline-error:before{content:"⚠️";font-size:1.1rem}.liquid-tabs{display:flex;justify-content:center;gap:1rem;margin-bottom:2rem;border-bottom:1px solid rgba(255,255,255,.1)}.liquid-tab-btn{background:transparent;border:none;padding:1rem 1.5rem;font-size:1rem;font-weight:500;color:#ffffff80;cursor:pointer;position:relative;transition:all .3s ease}.liquid-tab-btn:hover{color:#ffffffe6}.liquid-tab-btn.active{color:#fff;font-weight:700}.liquid-tab-btn.active:after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:3px;background:#a18cd1;box-shadow:0 0 10px #a18cd1;border-radius:2px 2px 0 0}.loading-text{margin-top:1rem;font-size:.9rem;color:#ffffffb3;animation:pulse 2s infinite}@keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.history-btn{padding:.75rem 1.5rem;background:#2196f333;border:1px solid rgba(33,150,243,.4);border-radius:8px;color:#2196f3;cursor:pointer;font-size:.9rem;font-weight:500;transition:background .2s ease,border-color .2s ease}.history-btn:hover{background:#2196f34d;border-color:#2196f399}.history-btn-header{background:#a18cd133;border:1px solid rgba(161,140,209,.4);color:#fff;padding:.6rem 1.2rem;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease;white-space:nowrap;position:relative;z-index:1}.history-btn-header:hover{background:#a18cd14d;border-color:#a18cd199;transform:translateY(-1px)}@media(max-width:767px){.history-btn-header{padding:.5rem .8rem;font-size:.8rem}}.history-item{background:#ffffff0d;padding:.75rem;border-radius:8px;margin-bottom:.75rem;display:flex;flex-direction:column;gap:.75rem;cursor:pointer;transition:background .2s ease}.history-item:hover{background:#ffffff1a}@media(min-width:768px){.history-item{flex-direction:row;justify-content:space-between;align-items:center;padding:1rem}}
