[hidden]{display:none!important}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body.at{background:#F6F2E9;font:400 15px/1.55 Rubik,Heebo,sans-serif;color:#141826;display:flex;flex-direction:column;min-height:100vh}
button{font:inherit;cursor:pointer}
.at-top{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid #EAE4D7;position:sticky;top:0;z-index:20}
.at-brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit;flex-direction:row}
.at-brand img{width:30px;height:30px}.at-brand span{display:flex;flex-direction:column;line-height:1.1}.at-brand b{font:600 16px Fraunces,'David Libre',serif;color:#3E4A1C;direction:ltr}.at-brand small{font-size:11.5px;color:#8A8F9C}
.at-title{border:1px solid transparent;border-radius:10px;padding:7px 10px;font:600 17px Rubik;color:#141826;background:transparent;min-width:220px;max-width:420px}
.at-title:hover,.at-title:focus{border-color:#E2DED4;background:#FBFAF7;outline:0}
.at-saved{font-size:12.5px;color:#2E7A45;white-space:nowrap}.at-saved.err{color:#B3261E}
.at-sp{flex:1}
.at-urg{display:flex;border:1px solid #E2DED4;border-radius:999px;overflow:hidden;background:#fff}
.at-urg button{border:0;background:transparent;padding:6px 12px;font-size:13px;color:#5A5F6E}.at-urg button.on{background:#141826;color:#fff}
.at-btn{border:1px solid #E2DED4;border-radius:999px;padding:7px 14px;background:#fff;color:#141826;text-decoration:none;font-size:14px;white-space:nowrap}
.at-btn.gold{background:linear-gradient(135deg,#D9B66A,#A87B24);color:#fff;border:0;font-weight:500}
.at-exp-w{position:relative}.at-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:210px;background:#fff;border-radius:14px;box-shadow:0 20px 40px -16px rgba(20,24,38,.35),0 0 0 1px rgba(168,123,36,.15);padding:6px;z-index:30;display:grid}
.at-menu button{border:0;background:transparent;text-align:start;padding:9px 12px;border-radius:9px;font-size:14px}.at-menu button:hover{background:#F6F2E8}.at-menu hr{border:0;border-top:1px solid #EFEBE3;margin:4px 0}
.at-tb{display:flex;gap:6px;align-items:center;padding:8px 16px;background:#FDFBF7;border-bottom:1px solid #EAE4D7;overflow-x:auto;scrollbar-width:none;position:sticky;top:57px;z-index:19}
.at-chip{border:1px solid #E2DED4;border-radius:999px;padding:6px 12px;background:#fff;font-size:13px;color:#2A2F3E;white-space:nowrap}
.at-chip[aria-pressed=true]{background:#141826;color:#fff;border-color:#141826}
.at-chip.busy{opacity:.6}.at-m{display:none}
.at-main{flex:1;display:grid;grid-template-columns:250px 1fr 300px;gap:0;min-height:0;padding-bottom:84px}
.at-side{padding:14px;background:#FDFBF7;border-left:1px solid #EAE4D7;position:sticky;top:104px;align-self:start;max-height:calc(100vh - 190px);overflow:auto}
.at-side.at-ai{border-left:0;border-right:1px solid #EAE4D7;display:flex;flex-direction:column}
.at-side h4{margin:14px 0 8px;font:600 13px Rubik;color:#6A6F7E;letter-spacing:.02em}.at-side h4:first-child{margin-top:0}
.at-spk{display:grid;gap:6px}.at-spk label{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #EEE8DC;border-radius:10px;padding:6px 8px}
.at-spk i{width:10px;height:10px;border-radius:50%;flex:none}.at-spk input{border:0;background:transparent;font:500 14px Rubik;width:100%;outline:0}
.at-prog{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#6A6F7E}.at-prog i{flex:1;height:6px;border-radius:3px;background:#EFEBE3;position:relative;overflow:hidden}.at-prog b{position:absolute;inset:0 auto 0 0;right:0;width:0;background:#2E9E5B;border-radius:3px;transition:width .3s}
.at-hint{font-size:12.5px;color:#8A8F9C;margin:6px 0}
.at-bms{display:grid;gap:4px}.at-bm{display:flex;justify-content:space-between;gap:6px;background:#fff;border:1px solid #EEE8DC;border-radius:9px;padding:6px 8px;font-size:13px;cursor:pointer}.at-bm small{color:#8A8F9C}
.at-row{display:flex;gap:6px}.at-mini{border:1px solid #E2DED4;border-radius:8px;background:#fff;padding:4px 10px}
.at-keys{font-size:12.5px;color:#5A5F6E;line-height:2}kbd{background:#fff;border:1px solid #DDD6C8;border-bottom-width:2px;border-radius:5px;padding:0 5px;font:500 11.5px Rubik}
.at-doc{position:relative;background:#fff;min-height:70vh;padding:26px 40px 40px;border-left:1px solid #EAE4D7}
.at-empty{max-width:560px;margin:40px auto;text-align:center}.at-empty h1{font:700 30px/1.25 'David Libre',serif;margin:0 0 10px}.at-empty p{color:#5A5F6E;margin:0 0 22px}
.at-drop{display:flex;flex-direction:column;gap:6px;align-items:center;border:2px dashed #D9C9A3;border-radius:18px;padding:34px 18px;background:#FFFCF5;cursor:pointer;transition:background .2s,border-color .2s}
.at-drop:hover,.at-drop.over{background:#FFF6DE;border-color:#A87B24}.at-drop b{font:600 18px Rubik;color:#7E5C18}.at-drop small{color:#8A8F9C}
.at-recent{margin-top:22px;text-align:start}.at-recent h5{font:600 13px Rubik;color:#6A6F7E;margin:0 0 8px}.at-recent a{display:flex;justify-content:space-between;padding:9px 12px;border:1px solid #EEE8DC;border-radius:10px;margin-bottom:6px;text-decoration:none;color:inherit;background:#FDFBF7}.at-recent a small{color:#8A8F9C}.at-recent .wip{color:#A87B24}
.at-busy{display:flex;flex-direction:column;align-items:center;gap:8px;margin:80px auto;text-align:center}.at-busy small{color:#8A8F9C}
.at-spin{width:42px;height:42px;border-radius:50%;border:3px solid #EFE7D2;border-top-color:#A87B24;animation:atS 1s linear infinite}@keyframes atS{to{transform:rotate(360deg)}}
.at-text{--fs:18px;max-width:820px;margin:0 auto}
.at-p{position:relative;margin:0 0 6px;padding:6px 34px 6px 6px;border-radius:10px;transition:background .2s}
.at-p:hover{background:#FDFBF6}.at-p.done{background:linear-gradient(90deg,transparent,rgba(46,158,91,.05))}
.at-ph{display:flex;gap:8px;align-items:center;font:600 12px Rubik;margin:10px 0 2px;user-select:none}
.at-ph .t{color:#8A8F9C;font-weight:400;cursor:pointer}.hide-times .at-ph .t{display:none}.hide-spk .at-ph .s{display:none}
.at-pt{font:400 var(--fs)/1.95 'David Libre',serif;outline:0;white-space:pre-wrap;word-break:break-word}
.at-ok{position:absolute;right:4px;top:10px;width:24px;height:24px;border-radius:50%;border:1.5px solid #D9D4C8;background:#fff;color:transparent;font-size:13px;line-height:20px;text-align:center;cursor:pointer}
.at-p.done .at-ok{background:#2E9E5B;border-color:#2E9E5B;color:#fff}
.at-w{border-radius:3px;cursor:pointer}.at-w.now{background:#FFE9A8;box-shadow:0 0 0 2px #FFE9A8}
.at-w.sus{background:linear-gradient(transparent 58%,rgba(255,138,101,.5) 58%)}
.at-w.fill{opacity:.35}.no-fill .at-w.fill{display:none}
.at-fix{position:absolute;z-index:15;background:#fff;border-radius:14px;box-shadow:0 16px 36px -12px rgba(20,24,38,.35),0 0 0 1px rgba(168,123,36,.2);padding:10px;width:250px;font-size:13.5px}
.at-fix b{display:block;margin-bottom:6px}.at-fix button{border:1px solid #E2DED4;border-radius:999px;background:#fff;padding:4px 10px;margin:3px;font-size:13px}.at-fix button.g{background:#E7F3E5;border-color:#B9DDBE}
.at-chat{flex:1;overflow:auto;display:grid;gap:8px;align-content:start;min-height:140px}
.at-msg{padding:9px 11px;border-radius:12px;font-size:14px;white-space:pre-wrap}.at-msg.a{background:#fff;border:1px solid #EEE8DC}.at-msg.u{background:#141826;color:#fff;margin-right:22px}.at-msg.w{color:#8A8F9C}
.at-quick{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.at-quick button{border:1px solid rgba(168,123,36,.4);border-radius:999px;background:#fff;padding:5px 10px;font-size:12.5px}
.at-ask{display:flex;gap:6px;border:1px solid #E2DED4;border-radius:12px;padding:5px;background:#fff}.at-ask input{flex:1;border:0;outline:0;font:400 14px Rubik;padding:6px}.at-ask button{width:34px;height:34px;border-radius:50%;border:0;background:#141826;color:#fff}
.at-find{position:fixed;bottom:96px;left:50%;transform:translateX(-50%);z-index:25;background:#fff;border-radius:14px;box-shadow:0 16px 40px -14px rgba(20,24,38,.4),0 0 0 1px rgba(168,123,36,.2);padding:8px;display:flex;gap:6px;align-items:center}
.at-find input{border:1px solid #E2DED4;border-radius:9px;padding:7px 9px;font:400 14px Rubik;width:150px}.at-find button{border:1px solid #E2DED4;border-radius:9px;background:#fff;padding:6px 10px;font-size:13px}.at-fn{font-size:12px;color:#8A8F9C}
mark.at-hit{background:#C9E7FF;border-radius:3px}
.at-player{position:fixed;left:0;right:0;bottom:0;z-index:22;background:rgba(20,24,38,.97);color:#fff;padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px -12px rgba(0,0,0,.4)}
.at-pl-row{display:flex;align-items:center;gap:8px;max-width:1300px;margin:0 auto}
.at-pb{border:0;background:rgba(255,255,255,.08);color:#fff;border-radius:999px;height:36px;padding:0 12px;font-size:13px;white-space:nowrap}
.at-pb:hover{background:rgba(255,255,255,.16)}.at-pb[aria-pressed=true]{background:#C9A04A;color:#141826}
.at-pb.main{width:46px;height:46px;padding:0;background:linear-gradient(135deg,#E9C46A,#A87B24);color:#141826;font-size:18px}
.at-wave{flex:1;height:40px;position:relative;cursor:pointer;min-width:120px}.at-wave canvas{width:100%;height:100%;display:block}.at-head{position:absolute;top:0;bottom:0;width:2px;background:#E9C46A;right:0}
.at-time{font:500 13px Rubik;color:#D9D4C8;white-space:nowrap;direction:ltr}
.at-rate,.at-vol{background:rgba(255,255,255,.08);color:#fff;border:0;border-radius:8px;padding:6px}.at-rate option{color:#141826}.at-vol{width:80px;accent-color:#E9C46A}
.at-toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#141826;color:#fff;padding:9px 16px;border-radius:12px;z-index:40;font-size:14px}
body.at .tm-tab,body.at .tmin-pill{display:none!important}
@media (max-width:980px){
 .at-main{grid-template-columns:1fr}.at-side{position:fixed;top:0;bottom:0;width:min(340px,88vw);z-index:30;max-height:none;transform:translateX(110%);transition:transform .25s;box-shadow:0 0 40px rgba(0,0,0,.25)}
 .at-tools{right:0}.at-ai{left:0;right:auto;transform:translateX(-110%)}.at-side.open{transform:none}
 .at-m{display:inline-block}.at-doc{padding:18px 16px 40px;border:0}.at-title{min-width:0;flex:1}.at-urg,.at-brand span{display:none}
 .at-pl-row{flex-wrap:wrap}.at-wave{order:-1;flex:0 0 100%;height:30px}.at-vol,.at-pb[data-p=prevm]{display:none}
 .at-tb{top:53px}
}
@media print{.at-top,.at-tb,.at-side,.at-player,.at-ok,.at-find{display:none!important}.at-main{display:block;padding:0}.at-doc{padding:0}.at-w.now,.at-w.sus{background:none;box-shadow:none}}

.at-link{display:flex;gap:8px;margin-top:12px}.at-link input{flex:1}.at-recent a.q{cursor:default}.at-recent a.q[href]{cursor:pointer}

/* round 2: sources | text | AI tools */
.at-tabs{display:flex;gap:4px;background:#F1ECE1;border-radius:999px;padding:3px;margin-bottom:12px}.at-tabs button{flex:1;border:0;background:transparent;border-radius:999px;padding:6px;font:500 13px Rubik;color:#5A5F6E}.at-tabs button.on{background:#fff;color:#141826;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.at-srcs{display:grid;gap:6px;margin-bottom:10px}
.at-src{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:12px;background:#fff;border:1px solid #EEE8DC;cursor:pointer;font-size:13.5px}
.at-src.on{border-color:#A87B24;box-shadow:0 0 0 2px rgba(201,160,74,.2)}.at-src input{accent-color:#A87B24}.at-src .n{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.at-src small{color:#8A8F9C}
.at-addsrc{display:flex;flex-wrap:wrap;gap:6px}
.at-aitools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}.at-aitools button{border:1px solid #E2DED4;background:#fff;border-radius:12px;padding:9px 8px;font:500 13px Rubik;text-align:start;cursor:pointer}.at-aitools button:hover{border-color:#A87B24;background:#FFFCF5}
.at-side h4 small{font-weight:400;color:#8A8F9C}
.at-msg .acts{display:flex;gap:6px;margin-top:8px}.at-msg .acts button{border:1px solid #E2DED4;background:#fff;border-radius:99px;padding:3px 10px;font-size:12px;cursor:pointer}
.at-w.sent{background:rgba(255,233,168,.38);border-radius:2px}
.at-note{margin:6px 34px 4px 6px;padding:10px 12px;border-radius:12px;background:#F4F8FF;border-right:3px solid #3F6EA8;font:400 14.5px/1.6 Rubik;color:#24324A;outline:0;white-space:pre-wrap}
.at-note:empty:before{content:attr(data-ph);color:#8A9AB5}
.at-nbtn{position:absolute;right:4px;top:40px;width:24px;height:24px;border-radius:50%;border:1px solid #D7DEEA;background:#fff;color:#3F6EA8;font-size:12px;cursor:pointer;opacity:0;transition:opacity .15s}.at-p:hover .at-nbtn{opacity:1}
.at-libv{position:absolute;inset:0;background:#FBF8F1;z-index:12;display:flex;flex-direction:column}.at-libbar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #EAE4D7;background:#fff}.at-libbar small{color:#8A8F9C}.at-libv iframe{flex:1;border:0;width:100%;min-height:calc(100vh - 220px)}
.at-tagsbox{display:flex;flex-wrap:wrap;gap:5px}.at-tagsbox span{font:500 12px Rubik;padding:3px 9px;border-radius:99px;background:#F6F2E8;color:#7E5C18}.at-tagsbox button{border:1px dashed #D9C9A3;background:transparent;border-radius:99px;padding:2px 9px;font-size:12px;color:#7E5C18;cursor:pointer}
body.at .tmv,body.at .tmv-shd,body.at .tmv-bub,body.at .tmdock{display:none!important}

.at-srcform{display:grid;gap:8px;margin-top:10px;padding:12px;border-radius:14px;background:#fff;border:1px solid #E2DED4}.at-srcform b{font:600 13.5px Rubik}.at-srcform .at-row{display:flex;gap:6px}
.at-taginp{border:1px solid #D9C9A3;border-radius:99px;padding:3px 10px;font:12px Rubik;width:110px;outline:0}.at-tagsbox span{cursor:pointer}
@media (max-width:980px){.at-btn[data-a=lib] span,.at-btn[data-a=export] span{display:none}.at-top .at-btn{padding-inline:12px}.at-title{min-width:90px}.at-m{background:#FFF8E8!important;border-color:#E3CF9F!important;color:#7E5C18!important}.at-libv{position:fixed;inset:0;z-index:40}.at-libv iframe{min-height:0}.at-nbtn{opacity:.55}}
@media (max-width:980px){.at-side{align-self:stretch;height:auto;padding-bottom:20px}.at-side.at-ai{justify-self:start}.at-side.at-tools{justify-self:end}.at-side.open{z-index:45}}
.at-shade,.at-dx{display:none}
body.libon .at-tb{display:none}
@media (max-width:980px){.at-shade{display:block;position:fixed;inset:0;background:rgba(20,24,38,.38);z-index:44;opacity:0;pointer-events:none;transition:opacity .2s}.at-shade.on{opacity:1;pointer-events:auto}
.at-dx{display:grid;place-items:center;position:sticky;top:0;margin:-4px 0 6px auto;width:34px;height:34px;border-radius:50%;border:1px solid #E2DED4;background:#fff;font-size:14px;color:#5A5F6E;z-index:2;cursor:pointer}
.at-side.at-ai .at-dx{margin:-4px auto 6px 0}
.at-side{width:min(360px,90vw);box-sizing:border-box}.at-aitools button{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
