/* Adapted for the Leona site: scoped font URL and loading controls. */

:root{font-family:"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#000;background:#fff;font-synthesis:none;--measure:720px}
*{box-sizing:border-box}body{margin:0}::selection{background:#000;color:#fff}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;background:none;border:0}button:disabled{cursor:not-allowed}a{color:inherit}svg{width:20px;height:20px;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #000;outline-offset:5px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}button:hover:not(:disabled),summary:hover{text-decoration:underline;text-underline-offset:5px}button:disabled{border-style:dotted}
main{min-height:100dvh;display:flex;flex-direction:column}header{height:96px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:24px}.header-left,.header-right{display:flex;align-items:center;gap:24px}.wordmark{font-size:29px;font-weight:600;letter-spacing:-.04em;text-decoration:none}.wordmark-dot{font-family:Georgia,serif}.icon-button{width:44px;height:44px;display:grid;place-items:center;padding:0}.icon-button:hover{background:#000;color:#fff;text-decoration:none}.icon-button:focus-visible{outline-offset:2px}#connection{display:flex;align-items:center;gap:8px;font-size:11px;padding:12px 0}.status-dot{width:6px;height:6px;border:1px solid #000;border-radius:50%}.connected .status-dot{background:#000}
#welcome{width:min(var(--measure),calc(100% - 48px));margin:auto auto 0;padding:60px 0 36px}h1{font-size:clamp(27px,3vw,36px);font-weight:400;letter-spacing:-.035em;line-height:1.5;margin:0}.composer-wrap{width:min(var(--measure),calc(100% - 48px));margin:0 auto auto;padding:0 0 64px;background:#fff}.gpu-load{margin:0 0 26px;display:flex;align-items:center;gap:22px;flex-wrap:wrap}.primary{background:#000;color:#fff;padding:14px 20px;font-size:12px;min-height:44px}.primary span{margin-left:20px}.primary:disabled{background:#fff;color:#000;border:1px dotted #000}#load-status{font-size:11px;line-height:1.8;margin:0;max-width:350px}#composer{border:1px solid #000;border-radius:16px;padding:20px 20px 14px}#composer:focus-within{outline:1px solid #000;outline-offset:2px}#prompt{display:block;width:100%;border:0;background:#fff;resize:none;min-height:48px;max-height:200px;font-size:15px;line-height:1.8;padding:0;caret-color:#000}#prompt:focus-visible{outline:none}#prompt::placeholder{color:#000}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px}#model-label{font-size:10px;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#send,#stop{width:40px;height:40px;border:1px solid #000;border-radius:50%;display:grid;place-items:center;padding:0;background:#000;color:#fff}#send:disabled{background:#fff;color:#000;border-style:dotted}.composer-footer{text-align:center;font-size:10px;margin-top:18px}.has-messages .composer-wrap{position:sticky;bottom:0;margin-top:32px;margin-bottom:0;padding-top:16px;padding-bottom:20px}.has-messages #prompt{min-height:36px}.has-messages .composer-footer{display:none}#notice{font-size:12px;line-height:1.8;margin:0 0 18px;padding:12px 0;border-bottom:1px solid #000}
#messages{width:min(var(--measure),calc(100% - 48px));margin:32px auto 0;flex:1}.message{padding:22px 0 36px}.message-label{font-size:11px;font-weight:600;margin-bottom:16px}.message.user{padding-top:26px;padding-bottom:14px}.message.user .message-label{display:none}.message.user .prose{font-size:19px;line-height:1.8}.prose{font-size:15px;line-height:1.9;overflow-wrap:anywhere}.prose p{white-space:pre-wrap;margin:0 0 16px}.prose h2,.prose h3,.prose h4{font-size:18px;line-height:1.6;margin:24px 0 12px}.prose li{margin:5px 0}.prose code{font-family:Menlo,Consolas,monospace;font-size:.88em}.prose p code{text-decoration:underline;text-underline-offset:4px}.code-block{border:1px solid #000;margin:18px 0;overflow:hidden;border-radius:8px}.code-head{display:flex;justify-content:space-between;align-items:center;padding:6px 14px;border-bottom:1px solid #000;font-size:11px}.code-block pre{margin:0;padding:18px;overflow:auto;line-height:1.7;white-space:pre;font-size:12px}.kw{font-weight:bold}.comment{font-style:italic}.reasoning{margin-bottom:20px}.reasoning summary{font-size:11px;cursor:pointer;padding:8px 0;width:fit-content}.reasoning .prose{font-size:12px;margin-top:8px;max-height:320px;overflow:auto;border-left:1px solid #000;padding-left:16px}.metrics summary{font-size:11px;cursor:pointer;list-style:none;padding:6px 0}.metrics span{display:block;font-variant-numeric:tabular-nums;padding:6px 0}.pending,.message-state{font-size:12px;line-height:1.8;margin:12px 0}
#sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,85vw);background:#fff;color:#000;border-right:1px solid #000;padding:32px 28px;display:flex;flex-direction:column;z-index:20;transform:translateX(-100%);visibility:hidden}.menu-open #sidebar{transform:translateX(0);visibility:visible}.brand{display:flex;text-decoration:none;font-size:28px;font-weight:600;letter-spacing:-.04em}.mark{display:none}.new-chat{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #000;padding:16px 0;margin-top:32px;font-size:12px}.history-heading{font-size:10px;margin:32px 0 14px}#history{overflow:auto;flex:1;min-height:0}.history-empty{font-size:12px;line-height:1.8}.history-item{display:block;text-align:left;width:100%;padding:12px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.history-item.active{text-decoration:underline;text-underline-offset:5px}.sidebar-bottom{padding-top:24px}.sidebar-bottom button{display:flex;justify-content:space-between;width:100%;border-top:1px solid #000;padding:16px 0;font-size:12px}#scrim{position:fixed;inset:0;background:rgb(0 0 0 / .3);z-index:19}
dialog{border:1px solid #000;border-radius:0;padding:32px;width:min(480px,calc(100% - 32px));max-height:90dvh;color:#000;background:#fff}dialog::backdrop{background:rgb(0 0 0 / .3)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.dialog-heading h2{font-size:21px;font-weight:500;margin:0}.dialog-heading button{font-size:28px;min-width:44px;min-height:44px}dialog label{display:block;font-size:12px;margin-bottom:9px}dialog label span{font-size:10px;margin-left:8px}dialog input,dialog select,dialog textarea{width:100%;border:1px solid #000;background:#fff;padding:10px;border-radius:0;font-size:13px}dialog textarea{resize:vertical}.setting-row{display:flex;gap:20px;margin:24px 0}.setting-row>div{flex:1;min-width:0}.server-info{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:24px;font-size:11px}.server-info code{overflow-wrap:anywhere}.server-info button{text-decoration:underline;padding:0}.settings-note{font-size:11px;line-height:1.8;margin:18px 0 25px}.dialog-actions{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:12px}#delete-chat{font-size:11px;padding:0}
@media(max-width:600px){header{height:80px;padding:0 16px}.header-left,.header-right{gap:12px}.wordmark{font-size:26px}#welcome,.composer-wrap,#messages{width:calc(100% - 40px)}#welcome{padding-top:32px;padding-bottom:28px}.composer-wrap{padding-bottom:64px}.gpu-load{gap:14px;margin-bottom:22px}#load-status{font-size:10px;max-width:none}#composer{padding:16px}.prose{font-size:14px}.message.user .prose{font-size:17px}.has-messages .composer-wrap{padding-bottom:max(16px,env(safe-area-inset-bottom))}#messages{margin-top:12px}dialog{padding:24px}.setting-row{gap:12px}#connection{font-size:10px}}
@media(prefers-reduced-motion:no-preference){#sidebar{transition:transform .2s ease,visibility .2s}button{transition:background .15s,color .15s}}

.wordmark img,.brand img{display:block;width:190px;height:auto;filter:brightness(0)}.wordmark,.brand{line-height:1}.brand img{width:220px}@media(max-width:600px){.wordmark img{width:146px}.header-left{gap:6px}.header-right{gap:8px}}

.composer-bottom{justify-content:flex-end}#connection{min-width:44px;min-height:44px;justify-content:center}

@font-face{font-family:"Bodoni Moda";src:url("/leona-q/fonts/BodoniModa.ttf") format("truetype");font-weight:400 900;font-style:normal;font-display:swap}
#welcome{padding-top:0;padding-bottom:28px}
#welcome h1{font-family:"Bodoni Moda",Georgia,serif;font-weight:500;font-size:clamp(32px,4.4vw,54px);font-optical-sizing:auto;letter-spacing:-.035em;line-height:1.16;text-align:center;text-wrap:balance}
#quantum-visual{position:relative;width:100%;height:300px;margin-bottom:12px;overflow:hidden}
#quantum-visual canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:pan-y}
#quantum-visual canvas.dragging{cursor:grabbing}
.gpu-load{justify-content:center}
@media(max-width:600px){#quantum-visual{height:224px;margin-bottom:8px}#welcome{padding-top:8px;padding-bottom:26px}#welcome h1{font-size:clamp(30px,8.6vw,42px)}.composer-wrap{padding-bottom:32px}}
@media(max-height:740px) and (min-width:601px){#quantum-visual{height:220px}#welcome h1{font-size:44px}.composer-wrap{padding-bottom:24px}}


.reasoning summary{display:flex;align-items:center;gap:9px;min-height:44px;list-style:none}
.reasoning summary::-webkit-details-marker{display:none}
.reasoning summary::after{content:"";width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.reasoning[open] summary::after{transform:rotate(45deg)}
.reasoning-label{font-size:13px}
.reasoning.is-thinking .reasoning-label{background:linear-gradient(105deg,#000 30%,#777 47%,#000 64%);background-size:240% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:reasoning-shimmer 2s linear infinite}
.reasoning-wait{font-size:12px}
@keyframes reasoning-shimmer{from{background-position:150% 0}to{background-position:-90% 0}}
@media(prefers-reduced-motion:reduce){.reasoning.is-thinking .reasoning-label{animation:none;background:none;color:#000}.reasoning summary::after{transition:none}}

.thinking-setting{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:24px}dialog .thinking-setting{display:flex}dialog .thinking-setting span{font-size:12px;margin:0}dialog #thinking{appearance:none;width:36px;height:22px;padding:2px;border:1px solid #000;border-radius:12px;cursor:pointer;background:#fff}dialog #thinking::before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#000}dialog #thinking:checked{background:#000}dialog #thinking:checked::before{background:#fff;transform:translateX(14px)}

#circuit-view{margin:0 0 20px}
.quantum-panel{padding:4px 0}
.q-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#000 #fff}
.q-circuit{display:block;width:100%;min-width:580px;height:auto;color:#000;stroke:#000;stroke-width:.8}
.q-circuit text{fill:#000;stroke:none;font-family:"Helvetica Neue",Arial,sans-serif;font-size:9px}
.q-circuit .q-label{font-size:10px}.q-circuit .q-stage{font-size:10px;letter-spacing:1px}
.q-wire{opacity:.28}.q-gate{fill:#fff}
.q-sweep{pointer-events:none;opacity:0;transform:translateX(30px);animation:circuit-flow 2.4s linear infinite;animation-play-state:paused;will-change:transform}
.is-flowing .q-sweep{animation-play-state:running}
@keyframes circuit-flow{0%{transform:translateX(30px);opacity:0}5%{opacity:1}95%{opacity:1}100%{transform:translateX(670px);opacity:0}}
@media(max-width:600px){#circuit-view{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){.q-operation .q-gate,.q-operation text{transition:none}}



.gpu-load{flex-direction:column;align-items:center}
.math-display{max-width:100%;overflow-x:auto;overflow-y:hidden;margin:16px 0;padding:4px 0}
.math-display .katex-display{margin:0}
.math-inline .katex{font-size:1.1em}

/* Keep live thoughts open and readable, with a quiet moving highlight. */
.reasoning.is-thinking summary{pointer-events:none}
.reasoning.is-thinking summary::after{display:none}
.reasoning.is-thinking .reasoning-body{color:#737373;background:linear-gradient(105deg,#737373 35%,#999 48%,#737373 61%);background-size:240% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:reasoning-shimmer 3s linear infinite}
@media(prefers-reduced-motion:reduce){.reasoning.is-thinking .reasoning-body{animation:none;background:none;color:#737373}.q-sweep{animation:none;will-change:auto}}

.reasoning-body{overflow-anchor:none;overscroll-behavior:contain}

/* Local file context: previews and extracted text stay in the browser. */
#attachment-list{display:grid;gap:10px;list-style:none;padding:0;margin:0 0 16px;max-height:340px;overflow:auto}
.attachment{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:10px 0;border-bottom:1px solid currentColor}
.attachment>img{width:44px;height:44px;object-fit:cover;border:1px solid currentColor;border-radius:4px;flex-shrink:0}
.attachment>details{flex:1;min-width:0}
.attachment summary{cursor:pointer;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.attachment summary span{font-weight:500}
.attachment small{display:block;font-size:11px;line-height:1.7}
.attachment pre{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;margin:10px 0 0}
.attachment p{font-size:12px;line-height:1.8;margin:8px 0}
.attachment details button{font-size:12px;text-decoration:underline;padding:8px 0;min-height:36px}
.attachment-remove{font-size:22px;min-width:36px;min-height:36px;margin-top:-4px}
#composer .composer-bottom{flex-wrap:wrap;gap:10px}
.sent-attachments{font-size:12px;list-style:none;margin:8px 0 0;padding:0;line-height:1.8;overflow-wrap:anywhere}
#prompt{font-size:16px}
