/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.static{position:static}.sticky{position:sticky}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.resize{resize:both}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root,[data-theme=light]{--bg0:#f4f6f5;--sidebar:#e9edeb;--surface:#fff;--input:#fff;--line:#dde3e0;--line-soft:#e8edeb;--ink:#0f1512;--muted:#5c6862;--accent:#0e7490;--accent-ink:#fff;--accent-2:#0b647d;--accent-soft:#e2f1f5;--danger:#d92d20;--danger-soft:#fdeceb;--tier-cheap:#15803d;--tier-mid:#b45309;--user-bubble:#dceef3;--code-bg:#0f1512;--code-ink:#e9eef5;--shadow:0 16px 44px #0f19161a;--shadow-sm:0 4px 16px #0f191614;--auth-glow:#cde7ee;--ring:#0e749047;color-scheme:light}[data-theme=dark]{--bg0:#0a0d12;--sidebar:#0d1117;--surface:#131926;--input:#0f141d;--line:#222b3a;--line-soft:#1b2230;--ink:#e9eef5;--muted:#8b95a7;--accent:#2dd4bf;--accent-ink:#062a26;--accent-2:#5eead4;--accent-soft:#143b37;--danger:#f97066;--danger-soft:#3a1d1a;--tier-cheap:#4ade80;--tier-mid:#fbbf24;--user-bubble:#173f3a;--code-bg:#070a0f;--code-ink:#dbe4ee;--shadow:0 24px 60px #00000073;--shadow-sm:0 6px 20px #00000059;--auth-glow:#123b37;--ring:#2dd4bf4d;color-scheme:dark}@media (prefers-color-scheme:light){[data-theme=system]{--bg0:#f4f6f5;--sidebar:#e9edeb;--surface:#fff;--input:#fff;--line:#dde3e0;--line-soft:#e8edeb;--ink:#0f1512;--muted:#5c6862;--accent:#0e7490;--accent-ink:#fff;--accent-2:#0b647d;--accent-soft:#e2f1f5;--danger:#d92d20;--danger-soft:#fdeceb;--tier-cheap:#15803d;--tier-mid:#b45309;--user-bubble:#dceef3;--code-bg:#0f1512;--code-ink:#e9eef5;--shadow:0 16px 44px #0f19161a;--shadow-sm:0 4px 16px #0f191614;--auth-glow:#cde7ee;--ring:#0e749047;color-scheme:light}}@media (prefers-color-scheme:dark){[data-theme=system]{--bg0:#0a0d12;--sidebar:#0d1117;--surface:#131926;--input:#0f141d;--line:#222b3a;--line-soft:#1b2230;--ink:#e9eef5;--muted:#8b95a7;--accent:#2dd4bf;--accent-ink:#062a26;--accent-2:#5eead4;--accent-soft:#143b37;--danger:#f97066;--danger-soft:#3a1d1a;--tier-cheap:#4ade80;--tier-mid:#fbbf24;--user-bubble:#173f3a;--code-bg:#070a0f;--code-ink:#dbe4ee;--shadow:0 24px 60px #00000073;--shadow-sm:0 6px 20px #00000059;--auth-glow:#123b37;--ring:#2dd4bf4d;color-scheme:dark}}html,body{height:100%}html{-webkit-text-size-adjust:100%}.app-body,.auth-body{background:var(--bg0);min-height:100dvh;color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.app-body,html:has(.app-body),body:has(.app-body){height:var(--vvh,100dvh);overflow:hidden}::selection{background:var(--accent-soft)}#lock-now-form,.sr-only{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.muted{color:var(--muted)}.wordmark{letter-spacing:-.01em;color:var(--ink);align-items:center;gap:.6rem;margin:0;font-size:.95rem;font-weight:700;display:flex}.wordmark img{border-radius:.45rem;flex:none;width:1.5rem;height:1.5rem;display:block}.auth-card .wordmark,.share-card .wordmark{font-size:1rem}.auth-card .wordmark img,.share-card .wordmark img{border-radius:.5rem;width:1.75rem;height:1.75rem}.auth-body{padding:max(2rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));background:radial-gradient(ellipse 90% 60% at 50% 0%, var(--auth-glow) 0%, transparent 60%), var(--bg0);place-items:center;display:grid}.auth-card{background:var(--surface);border:1px solid var(--line-soft);width:min(24rem,100%);box-shadow:var(--shadow);border-radius:20px;padding:2rem 1.75rem 1.5rem}.auth-card h1{letter-spacing:-.02em;color:var(--ink);margin:.9rem 0 .4rem;font-size:1.55rem;font-weight:700}.lede,.auth-foot{color:var(--muted);font-size:.9rem;line-height:1.5}.lede{margin:0 0 1.4rem}.lede a,.auth-foot a{color:var(--accent-2);text-underline-offset:2px}.auth-foot{margin:1.1rem 0 0}.auth-card .btn-io{margin-top:.85rem}.auth-form{gap:.9rem;display:grid}.auth-form label,.setting{color:var(--muted);gap:.35rem;font-size:.8rem;font-weight:500;display:grid}input[type=email],input[type=password],input[type=text],input[type=search]{border:1px solid var(--line);background:var(--input);width:100%;color:var(--ink);font:inherit;border-radius:12px;padding:.7rem .8rem;font-size:1rem;transition:border-color .14s,box-shadow .14s}input:focus,textarea:focus,select:focus{outline:none}input:focus-visible,textarea:focus-visible,select:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}.error{color:var(--danger);min-height:1.2rem;margin:0;font-size:.88rem}.btn-primary{font:inherit;cursor:pointer;background:var(--accent);color:var(--accent-ink);touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:0;border-radius:12px;padding:.75rem 1rem;font-weight:650;transition:filter .14s,transform .14s}.btn-primary:hover{filter:brightness(1.06)}.btn-primary:active{transform:translateY(1px)}.btn-primary:disabled{opacity:.55;cursor:default;transform:none}.icon-btn{font:inherit;cursor:pointer;color:var(--muted);touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:10px;flex:none;place-items:center;width:2.1rem;height:2.1rem;padding:0;transition:color .14s,background .14s;display:grid}.icon-btn svg{width:1.1rem;height:1.1rem;display:block}.icon-btn:hover{color:var(--ink);background:var(--accent-soft)}.icon-btn.danger{color:var(--muted)}.icon-btn.danger:hover{color:var(--danger);background:var(--danger-soft)}.icon-btn.is-shared{color:var(--accent-2)}.btn-io{box-sizing:border-box;width:100%;color:var(--muted);font:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:10px;align-items:center;gap:.55rem;padding:.5rem .6rem;font-size:.87rem;font-weight:500;text-decoration:none;transition:color .14s,background .14s;display:flex}.btn-io svg{flex:none;width:1rem;height:1rem;display:block}.btn-io:hover{background:var(--accent-soft);color:var(--ink)}.auth-divider{color:var(--muted);align-items:center;gap:.7rem;margin:1.1rem 0 .85rem;font-size:.8rem;display:flex}.auth-divider:before,.auth-divider:after{content:"";border-top:1px solid var(--line);flex:1}.btn-kura{border:1px solid var(--line);background:var(--bg0);width:100%;color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:.5rem;justify-content:center;align-items:center;gap:.55rem;padding:.7rem .9rem;font-size:.95rem;font-weight:600;text-decoration:none;display:flex}.btn-kura svg{width:1.1rem;height:1.1rem;color:var(--accent-2);display:block}.btn-kura:hover{background:var(--accent-soft)}.btn-io:disabled{opacity:.45;cursor:default}.btn-io:disabled:hover{color:var(--muted);background:0 0}.theme-switch{border:1px solid var(--line);background:var(--input);border-radius:999px;grid-template-columns:1fr 1fr 1fr;gap:.2rem;width:min(11.5rem,100%);margin:1.2rem auto 0;padding:.22rem;display:grid}.theme-choice{height:2.15rem;color:var(--muted);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:999px;place-items:center;transition:color .14s,background .14s;display:grid}.theme-choice svg{width:1.05rem;height:1.05rem;display:block}.theme-choice:hover{color:var(--ink)}.theme-choice.is-on{background:var(--accent-soft);color:var(--accent-2)}.app-shell{height:var(--vvh,100dvh);overscroll-behavior:none;grid-template-rows:auto minmax(0,1fr);grid-template-columns:17.5rem minmax(0,1fr);display:grid;overflow:hidden}.offline-banner{background:var(--accent-soft);color:var(--ink);text-align:center;grid-area:1/1/auto/-1;margin:0;padding:.45rem .8rem;font-size:.84rem;font-weight:550}.flash{z-index:30;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:12px;margin:0;padding:.6rem 1rem;font-size:.88rem;font-weight:550;position:fixed;top:.9rem;left:50%;transform:translate(-50%)}.flash-notice{background:var(--surface);color:var(--ink)}.flash-alert{background:var(--danger);color:#fff;border-color:#0000}.col-list{background:var(--sidebar);border-right:1px solid var(--line-soft);flex-direction:column;grid-row:2;min-height:0;display:flex}.list-head{gap:.65rem;padding:.9rem .8rem .4rem;display:grid}.brand{padding:0 .2rem}.search-form{margin:0}.search{background:var(--surface);border-radius:10px;padding:.55rem .75rem;font-size:.9rem}.btn-new{background:var(--accent);width:100%;color:var(--accent-ink);font:inherit;cursor:pointer;touch-action:manipulation;border:0;border-radius:12px;justify-content:center;align-items:center;gap:.45rem;padding:.6rem .7rem;font-size:.9rem;font-weight:650;transition:filter .14s;display:flex}.btn-new svg{width:1rem;height:1rem;display:block}.btn-new:hover{filter:brightness(1.06)}.note-list{scrollbar-width:none;flex:1;min-height:0;padding:.35rem .6rem 1rem;overflow:auto}.note-list::-webkit-scrollbar{display:none}.note-item{text-align:left;width:100%;color:var(--ink);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:10px;flex-direction:row;align-items:center;gap:.1rem;padding:.15rem .15rem .15rem .1rem;text-decoration:none;transition:background .12s;display:flex}.note-item:hover,.note-item.is-on{background:var(--accent-soft)}.note-item.is-on .note-item-link strong{color:var(--ink);font-weight:700}.note-item-link{min-width:0;color:inherit;flex-direction:column;flex:1;gap:.1rem;padding:.45rem .5rem;text-decoration:none;display:flex}.note-item strong{white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:550;overflow:hidden}.note-delete{opacity:0;width:1.9rem;height:1.9rem}.note-item:hover .note-delete,.note-delete:focus-visible{opacity:.8}.empty-list{padding:.9rem .7rem;font-size:.88rem}.sidebar-foot{border-top:1px solid var(--line-soft);gap:.1rem;padding:.6rem .8rem .9rem;display:grid}.col-editor{background:var(--bg0);color:var(--ink);flex-direction:column;grid-row:2;min-width:0;min-height:0;display:flex;overflow:hidden}.empty-editor{display:none}.empty-editor:not([hidden]){color:var(--muted);text-align:center;max-width:22rem;margin:auto;font-size:.95rem;line-height:1.6;display:block}.editor-bar{border-bottom:1px solid var(--line-soft);flex-shrink:0;align-items:center;gap:.2rem;padding:.5rem .9rem;display:flex}.editor-bar .back{display:none}.title-form{flex:1;min-width:0;margin:0}.col-editor input.folder-input{letter-spacing:-.01em;max-width:22rem;color:var(--ink);background:0 0;border-color:#0000;border-radius:8px;padding:.4rem .5rem;font-size:.95rem;font-weight:650}.col-editor input.folder-input::placeholder{color:var(--muted);font-weight:500}.col-editor input.folder-input:hover{border-color:var(--line)}.col-editor input.folder-input:focus-visible{border-color:var(--accent);background:var(--surface)}.bar-spacer{flex:1}.chat-cost{font-variant-numeric:tabular-nums;max-width:7rem;color:var(--muted);background:var(--surface);border:1px solid var(--line-soft);white-space:nowrap;text-overflow:ellipsis;cursor:help;border-radius:999px;flex:none;margin-inline:.2rem;padding:.18rem .55rem;font-size:.7rem;font-weight:600;line-height:1.5;overflow:hidden}.chat-cost.is-empty{display:none}.transcript{overscroll-behavior:contain;scrollbar-width:none;flex:1;align-content:start;gap:1.6rem;min-height:0;padding:1.5rem max(1.25rem,50% - 25rem) 1.75rem;display:grid;overflow:auto}.transcript::-webkit-scrollbar{display:none}.msg{min-width:0;max-width:48rem}.msg-user{background:var(--user-bubble);border-radius:18px 18px 6px;width:fit-content;max-width:min(42rem,100%);margin-left:auto;padding:.7rem .95rem}.msg-user.is-echo{opacity:.85}.msg-user.is-echo .msg-body{white-space:pre-wrap}.msg-user .msg-body{font-size:.98rem;line-height:1.6}.msg-assistant{width:100%}.msg-images{grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));gap:.45rem;margin:0 0 .5rem;display:grid}.msg-images:last-child{margin-bottom:0}.msg-image{margin:0 0 .5rem}.msg-image:last-child{margin-bottom:0}.msg-images .msg-image{margin:0}.msg-image a{display:block}.msg-image img{object-fit:contain;background:var(--surface);border:1px solid var(--line-soft);border-radius:12px;width:auto;max-width:min(18rem,100%);height:auto;max-height:16rem;display:block}.msg-docs{flex-direction:column;gap:.4rem;margin:0 0 .5rem;display:flex}.msg-docs:last-child{margin-bottom:0}.msg-doc{border:1px solid var(--line-soft);background:var(--surface);max-width:min(22rem,100%);color:var(--ink);border-radius:12px;align-items:center;gap:.5rem;padding:.5rem .7rem;text-decoration:none;display:flex}.msg-doc:hover{border-color:var(--line)}.msg-doc svg{width:1rem;height:1rem;color:var(--accent-2);flex:none}.msg-doc-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:.85rem;font-weight:550;overflow:hidden}#msg-echo .msg-image img{border-radius:12px}.msg-body{overflow-wrap:anywhere;font-size:1.02rem;line-height:1.68}.msg-body p{margin:0 0 .7rem}.msg-body p:last-child{margin-bottom:0}.msg-body.md :is(h1,h2,h3,h4,h5,h6){letter-spacing:-.015em;margin:1.1rem 0 .4rem;font-weight:700;line-height:1.3}.msg-body.md :is(h1,h2,h3,h4,h5,h6):first-child{margin-top:0}.msg-body.md h1{font-size:1.35rem}.msg-body.md h2{font-size:1.18rem}.msg-body.md h3{font-size:1.06rem}.msg-body.md h4,.msg-body.md h5,.msg-body.md h6{font-size:1rem}.msg-body.md a{color:var(--accent-2);text-underline-offset:2px}.msg-body.md ul,.msg-body.md ol{margin:0 0 .7rem;padding-left:1.4rem}.msg-body.md ul{list-style:outside}.msg-body.md ol{list-style:decimal}.msg-body.md li{margin:.25rem 0}.msg-body.md li>:is(ul,ol){margin-bottom:0}.msg-body.md blockquote{border-left:2px solid var(--accent);color:var(--muted);margin:0 0 .7rem;padding:.2rem 0 .2rem .9rem}.msg-body.md blockquote>:last-child{margin-bottom:0}.msg-body.md code{background:var(--accent-soft);border-radius:6px;padding:.1rem .35rem;font-family:ui-monospace,SF Mono,Cascadia Code,Menlo,Consolas,monospace;font-size:.84em}.msg-body.md pre{background:var(--code-bg);color:var(--code-ink);border-radius:12px;margin:0 0 .7rem;padding:.85rem .95rem;font-size:.85rem;line-height:1.6;overflow:auto}.msg-body.md pre code{font-size:inherit;color:inherit;background:0 0;padding:0}.msg-body.md table{border-collapse:collapse;width:max-content;max-width:100%;margin:0 0 .7rem;font-size:.9rem;display:block;overflow-x:auto}.msg-body.md th,.msg-body.md td{border:1px solid var(--line);text-align:left;padding:.35rem .6rem}.msg-body.md :is(th,td)[align=center]{text-align:center}.msg-body.md :is(th,td)[align=right]{text-align:right}.msg-body.md thead th{background:var(--surface)}.msg-body.md hr{border:0;border-top:1px solid var(--line);margin:.9rem 0}.msg-body.md :is(ul,ol,blockquote,table,pre,hr):last-child{margin-bottom:0}.msg-status{color:var(--muted);margin:.5rem 0 0;font-size:.82rem}.msg-status:after{content:"";vertical-align:-.15em;background:var(--accent);border-radius:2px;width:.45em;height:1em;margin-left:.35em;animation:1s steps(2,start) infinite caret-blink;display:inline-block}@keyframes caret-blink{to{visibility:hidden}}.msg-error{color:var(--danger);margin:0 0 .6rem;font-weight:550}.msg-meta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin:.6rem 0 0;font-size:.74rem;overflow:hidden}.msg-meta-web{color:var(--accent-2);font-weight:600}.msg-toolbar{flex-wrap:wrap;align-items:center;gap:.35rem;margin:.55rem 0 0;display:flex}.msg-tool,.cite-fold>summary{cursor:pointer;color:var(--muted);font:inherit;-webkit-user-select:none;user-select:none;background:0 0;border:1px solid #0000;border-radius:8px;align-items:center;gap:.35rem;margin:0;padding:.32rem .6rem;font-size:.78rem;font-weight:550;line-height:1.2;list-style:none;transition:color .12s,background .12s;display:inline-flex}.msg-tool:hover,.cite-fold>summary:hover{background:var(--accent-soft);color:var(--ink)}.msg-tool svg,.cite-fold>summary svg{flex:none;width:.85rem;height:.85rem;display:block}.cite-fold{min-width:0;margin:0}.cite-fold>summary::-webkit-details-marker{display:none}.cite-fold-n{background:var(--accent-soft);min-width:1.15rem;height:1.15rem;color:var(--accent-2);border-radius:999px;place-items:center;padding:0 .3rem;font-size:.7rem;font-weight:700;display:inline-grid}.cite-fold[open]>summary{background:var(--accent-soft);color:var(--ink)}.citations{flex-wrap:wrap;gap:.35rem;margin:0;padding:.5rem 0 0;list-style:none;display:flex}.citations a{color:var(--accent-2);border:1px solid var(--line);border-radius:999px;padding:.2rem .6rem;font-size:.76rem;text-decoration:none;transition:background .12s;display:inline-block}.citations a:hover{background:var(--accent-soft)}.composer-dock{background:var(--surface);border:1px solid var(--line);width:calc(100% - 2rem);max-width:50rem;box-shadow:var(--shadow-sm);border-radius:18px;flex-shrink:0;margin:0 auto 1rem}.chat-settings{border-bottom:1px solid var(--line-soft);padding:.3rem .9rem}.settings-form{flex-wrap:wrap;gap:.4rem 1rem;margin:0;display:flex}.setting{text-transform:uppercase;letter-spacing:.05em;min-width:0;color:var(--muted);flex:1 1 0;align-items:center;gap:.4rem;font-size:.7rem;font-weight:600;display:flex}.setting>span{flex:none}.model-picker{flex:1;min-width:0;display:flex;position:relative}.model-menu-btn{min-width:0;font:inherit;text-transform:none;letter-spacing:normal;color:var(--ink);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;flex:1;align-items:center;gap:.35rem;padding:.3rem .35rem;font-size:.8rem;font-weight:600;display:flex}.model-menu-btn:hover{border-color:var(--line)}.model-menu-btn:focus-visible{outline:2px solid var(--ring);outline-offset:1px}.model-menu-label{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.model-menu-btn svg{width:.8rem;height:.8rem;color:var(--muted);flex:none}.model-menu{z-index:30;background:var(--surface);border:1px solid var(--line);min-width:100%;max-width:min(18rem,72vw);max-height:16rem;box-shadow:var(--shadow);text-transform:none;letter-spacing:normal;border-radius:12px;margin:0;padding:4px;font-size:.82rem;position:absolute;bottom:calc(100% + 6px);left:0;overflow-y:auto}.model-menu[hidden]{display:none}.model-option{width:100%;font:inherit;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:.5rem;padding:.5rem .6rem;display:flex}.model-option:hover{background:var(--accent-soft)}.model-option:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}.model-option-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.model-option svg{width:.9rem;height:.9rem;color:var(--accent);visibility:hidden;flex:none}.model-option[aria-selected=true]{font-weight:650}.model-option[aria-selected=true] svg{visibility:visible}.tier-dot{background:0 0;border-radius:999px;flex:none;width:.55rem;height:.55rem}.tier-cheap{background:var(--tier-cheap)}.tier-medium{background:var(--tier-mid)}.tier-expensive{background:var(--danger)}.effort-picker{border:1px solid var(--line-soft);background:var(--bg0);scrollbar-width:none;border-radius:999px;flex:1;gap:2px;min-width:0;padding:2px;display:flex;overflow-x:auto}.effort-picker::-webkit-scrollbar{display:none}.effort-option{flex:1 0 auto;min-width:0;display:flex;position:relative}.effort-option input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.effort-option span{text-transform:uppercase;letter-spacing:.05em;text-align:center;white-space:nowrap;color:var(--muted);cursor:pointer;border-radius:999px;flex:1;padding:.3rem .6rem;font-size:.7rem;font-weight:650}.effort-option input:checked+span{background:var(--accent);color:var(--accent-ink)}.effort-option input:not(:checked)+span:hover{color:var(--ink)}.effort-option input:focus-visible+span{outline:2px solid var(--ring);outline-offset:1px}@media (prefers-reduced-motion:no-preference){.effort-option span{transition:background-color .15s,color .15s}}.composer{flex-wrap:wrap;align-items:center;gap:.4rem;margin:0;padding:.65rem .7rem .7rem;display:flex}.composer-main{flex-direction:column;flex:100%;gap:.4rem;min-width:0;display:flex}.composer textarea{resize:none;width:100%;min-height:2.75rem;max-height:min(12rem,32dvh);color:var(--ink);font:inherit;background:0 0;border:0;border-radius:0;flex:none;padding:.35rem .25rem;font-size:.98rem;line-height:1.55}.composer textarea::placeholder{color:var(--muted)}.composer textarea:focus-visible{box-shadow:none}.composer-chips{flex-wrap:wrap;gap:.4rem;padding:0 .1rem;display:flex}.composer-chips[hidden]{display:none}.composer-chip{border:1px solid var(--line);background:var(--input);border-radius:10px;align-self:flex-start;align-items:center;gap:.35rem;padding:.2rem .25rem .2rem .2rem;display:flex}.composer-chip[hidden]{display:none}.composer-chip img{object-fit:cover;border-radius:7px;width:2.2rem;height:2.2rem}.composer-chip-doc{border:1px solid var(--line);background:var(--input);border-radius:10px;align-self:flex-start;align-items:center;gap:.4rem;max-width:12rem;padding:.35rem .25rem .35rem .55rem;font-size:.78rem;display:flex}.composer-chip-doc svg{width:1rem;height:1rem;color:var(--accent-2);flex:none}.composer-chip-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.composer-chip-x{width:1.4rem;height:1.4rem;color:var(--muted);cursor:pointer;background:0 0;border:0;padding:0;font-size:1.1rem;line-height:1}.composer-chip-x:hover{color:var(--ink)}.attach-btn{border-radius:10px;width:2.3rem;height:2.3rem}.attach-btn:has(input:focus-visible){box-shadow:0 0 0 3px var(--ring)}.mic-btn{border-radius:10px;width:2.3rem;height:2.3rem}.mic-btn:disabled{opacity:.45;cursor:default}.mic-btn.recording{color:var(--danger);background:var(--danger-soft);animation:1.2s ease-in-out infinite mic-pulse}@keyframes mic-pulse{50%{opacity:.55}}.composer-voice-status{color:var(--muted);margin:.15rem 0 0;font-size:.78rem}.composer-voice-status[hidden]{display:none}.msg-tool.playing{color:var(--ink);background:var(--accent-soft)}.search-picker,.voice-pills{border:1px solid var(--line-soft);background:var(--bg0);border-radius:999px;flex:none;gap:2px;padding:2px;display:inline-flex}.search-option,.voice-option{display:flex;position:relative}.search-option input,.voice-option input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.search-pill,.voice-pill{text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;color:var(--muted);cursor:pointer;border-radius:999px;align-items:center;gap:.35rem;padding:.35rem .65rem;font-size:.7rem;font-weight:650;display:inline-flex}.search-pill svg,.voice-pill svg{width:.85rem;height:.85rem;display:block}.search-option input:checked+.search-pill,.voice-option input:checked+.voice-pill{background:var(--accent);color:var(--accent-ink)}.search-option input:not(:checked)+.search-pill:hover,.voice-option input:not(:checked)+.voice-pill:hover{color:var(--ink)}.search-option input:focus-visible+.search-pill,.voice-option input:focus-visible+.voice-pill{outline:2px solid var(--ring);outline-offset:1px}@media (prefers-reduced-motion:no-preference){.search-pill,.voice-pill{transition:background-color .15s,color .15s}}.composer .btn-primary{border-radius:999px;margin-left:auto;padding:.55rem 1.15rem;font-size:.9rem}.confirm-dialog{border:1px solid var(--line);background:var(--surface);height:fit-content;max-height:calc(100dvh - 2rem);color:var(--ink);box-shadow:var(--shadow);border-radius:16px;width:min(21rem,100vw - 2rem);margin:auto;padding:1.3rem 1.35rem 1.15rem;position:fixed;inset:0}.confirm-dialog::backdrop{background:#04080a80}.confirm-dialog p{margin:0 0 1rem;font-size:.95rem;line-height:1.5}.confirm-actions{justify-content:flex-end;gap:.5rem;display:flex}.confirm-actions form{margin:0}.btn-dialog{font:inherit;cursor:pointer;color:var(--muted);background:0 0;border:0;border-radius:10px;padding:.55rem .9rem;font-size:.88rem;font-weight:600;text-decoration:none;transition:color .12s,background .12s}.btn-dialog:hover{color:var(--ink);background:var(--accent-soft)}.btn-dialog.primary{background:var(--accent);color:var(--accent-ink)}.btn-dialog.primary:hover{filter:brightness(1.06);color:var(--accent-ink);background:var(--accent)}.btn-dialog.danger{background:var(--danger);color:#fff}.btn-dialog.danger:hover{filter:brightness(1.06);color:#fff;background:var(--danger)}.share-dialog{width:min(25rem,100vw - 2rem)}.share-heading{letter-spacing:-.01em;font-size:1.05rem;font-weight:700}.share-url-row{align-items:center;gap:.4rem;margin:0 0 .75rem;display:flex}.share-url-row input{flex:1;min-width:0;padding:.55rem .65rem;font-size:.82rem}.share-status{color:var(--accent-2);margin:-.35rem 0 .7rem;font-size:.8rem;font-weight:600}.share-card{background:var(--surface);border:1px solid var(--line-soft);width:min(24rem,100%);box-shadow:var(--shadow);border-radius:20px;padding:2rem 1.75rem 1.5rem}.share-card h1{letter-spacing:-.02em;color:var(--ink);margin:.9rem 0 1rem;font-size:1.45rem;font-weight:700}.share-chat{width:min(44rem,100%)}.share-thread{gap:1.25rem;margin:.5rem 0 0;display:grid}.share-thread .msg-user{max-width:min(36rem,100%)}.share-foot{color:var(--muted);margin:1.5rem 0 0;font-size:.84rem}.mobile-top,.fab,.fab-form{display:none}@media (max-width:860px){.desktop-only{display:none!important}.app-body{height:var(--vvh,100dvh);min-height:0;overflow:hidden}.app-shell{top:var(--vvt,0px);width:100%;height:var(--vvh,100dvh);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:1fr;position:fixed;left:0;overflow:hidden}.mobile-top{background:var(--sidebar);border-bottom:1px solid var(--line-soft);z-index:5;grid-row:2;align-items:center;gap:.2rem;padding:.4rem .5rem .4rem .95rem;display:flex;position:relative}.mobile-top .wordmark{flex:1;font-size:1rem}.col-list{background:var(--bg0);border-right:0;min-height:0}.list-head{padding:.7rem .8rem .25rem}.note-list{padding:.2rem .5rem calc(6rem + env(safe-area-inset-bottom))}.note-item{border-radius:12px;padding:.3rem .3rem .3rem .2rem}.note-item-link{padding:.55rem .5rem}.note-item strong{font-size:.98rem}.note-delete{opacity:.85;width:2.4rem;height:2.4rem}.icon-btn{width:2.6rem;height:2.6rem}.icon-btn svg{width:1.2rem;height:1.2rem}.editor-bar{background:var(--bg0);gap:.15rem;min-height:3.2rem;padding:.35rem .5rem}.editor-bar .back{display:grid}.col-editor input.folder-input{background:var(--surface);border:1px solid var(--line);border-radius:10px;flex:auto;min-width:5rem;max-width:none;min-height:2.6rem;font-size:1rem}.chat-cost{max-width:5.2rem;font-size:.68rem}.transcript{gap:1.35rem;padding:1.1rem .95rem 1.25rem}.msg-user{max-width:92%}.composer-dock{width:auto;max-width:none;margin:0 .6rem calc(.6rem + env(safe-area-inset-bottom))}.setting{flex:0 auto;max-width:100%;font-size:.64rem}.model-menu-btn{padding-block:.45rem;font-size:.85rem}.model-option{padding:.65rem .7rem}.effort-option span{padding:.55rem .7rem;font-size:.74rem}.attach-btn{width:2.6rem;height:2.6rem}.search-pill{padding:.55rem .75rem}.composer .btn-primary{padding:.65rem 1.2rem}.fab-form{right:max(1rem, env(safe-area-inset-right));bottom:max(1.1rem, env(safe-area-inset-bottom));z-index:4;margin:0;display:block;position:fixed}.fab{background:var(--accent);color:var(--accent-ink);font:inherit;box-shadow:var(--shadow);cursor:pointer;border:0;border-radius:999px;align-items:center;gap:.45rem;padding:.85rem 1.2rem .85rem 1rem;font-size:.92rem;font-weight:650;line-height:1;display:flex}.fab svg{width:1.1rem;height:1.1rem;display:block}.app-shell.is-editing .fab-form{display:none}.mobile-menu{left:.6rem;right:.6rem;bottom:calc(.6rem + env(safe-area-inset-bottom));z-index:20;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;gap:.1rem;padding:.5rem;animation:.16s ease-out sheet-up;display:grid;position:fixed}@keyframes sheet-up{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}.mobile-menu[hidden]{display:none}.mobile-menu form{width:100%;margin:0}.mobile-menu .btn-io{padding:.75rem .8rem;font-size:.95rem}.app-shell:not(.is-editing) .col-editor{display:none}.app-shell:not(.is-editing) .col-list,.app-shell.is-editing .col-editor{grid-row:3;min-height:0}.app-shell.is-editing .mobile-top,.app-shell.is-editing .col-list,.app-shell.is-editing .fab{display:none}.flash{max-width:calc(100vw - 2rem);top:3.8rem}.confirm-dialog{margin-top:20dvh;margin-bottom:auto}.auth-card{padding:1.7rem 1.25rem 1.35rem}.auth-card h1{font-size:1.4rem}.share-card{padding:1.7rem 1.25rem 1.35rem}.share-card h1{font-size:1.3rem}.theme-switch{width:min(14.5rem,100%);padding:.28rem}.theme-choice{-webkit-tap-highlight-color:transparent;height:2.75rem}.theme-choice svg{width:1.2rem;height:1.2rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.lang-switch{margin-top:.35rem}.auth-prefs{flex-direction:column;align-items:stretch;display:flex}.auth-card .lang-switch{margin-top:.85rem}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}