:root{--bg: #f7f5f0;--bg-elevated: #ffffff;--surface: #ffffff;--surface-2: #f2efe7;--surface-3: #e9e4d8;--text: #17191f;--text-2: #4a4f5a;--text-3: #767b86;--border: #e3ddd0;--border-strong: #cfc6b3;--navy: #13284a;--navy-2: #1d3a66;--brass: #b0873a;--brass-2: #c9a45a;--brass-soft: #f4ecd9;--primary: var(--navy);--primary-hover: var(--navy-2);--on-primary: #ffffff;--accent: var(--brass);--user-bubble: #13284a;--user-text: #f4f1ea;--sidebar-bg: #0e1c33;--sidebar-text: #d9dde6;--sidebar-text-2: #8c97ab;--sidebar-hover: rgb(255 255 255 / .06);--sidebar-active: rgb(201 164 90 / .14);--sidebar-border: rgb(255 255 255 / .08);--focus: #2f6fdb;--danger: #b3261e;--danger-bg: #fcefee;--good: #1f7a4a;--good-bg: #eaf6ef;--caution: #9a5b00;--caution-bg: #fdf3e2;--radius-sm: 8px;--radius: 14px;--radius-lg: 22px;--shadow-sm: 0 1px 2px rgb(16 24 40 / .06);--shadow: 0 1px 2px rgb(16 24 40 / .04), 0 8px 24px -6px rgb(16 24 40 / .1);--shadow-lg: 0 2px 4px rgb(16 24 40 / .04), 0 18px 48px -12px rgb(16 24 40 / .22);--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;--font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;--sidebar-w: 284px;--thread-w: 780px;color-scheme:light}html[data-theme=dark]{--bg: #0b111c;--bg-elevated: #111a29;--surface: #131d2e;--surface-2: #18243a;--surface-3: #213049;--text: #e8ebf1;--text-2: #b4bccb;--text-3: #7f8a9e;--border: #223049;--border-strong: #2f405e;--primary: #d4b06a;--primary-hover: #e2c486;--on-primary: #121a28;--accent: #d4b06a;--brass-soft: rgb(212 176 106 / .12);--user-bubble: #1f3254;--user-text: #eef1f7;--sidebar-bg: #070c15;--sidebar-border: rgb(255 255 255 / .06);--focus: #79a8ff;--danger: #ff8f88;--danger-bg: #3a1a1c;--good: #7fd6a3;--good-bg: rgb(127 214 163 / .1);--caution: #f2c27a;--caution-bg: rgb(242 194 122 / .1);--shadow-sm: none;--shadow: 0 8px 24px -8px rgb(0 0 0 / .5);--shadow-lg: 0 18px 48px -12px rgb(0 0 0 / .65);color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15.5px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}h1,h2,h3,h4,h5,h6{line-height:1.25;margin:0}p{margin:0}a{color:var(--accent);text-underline-offset:2px}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}kbd{font-family:inherit;font-size:.78em;padding:.05em .4em;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:5px;background:var(--surface)}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.skip-link{position:absolute;left:1rem;top:-3rem;z-index:100;background:var(--primary);color:var(--on-primary);padding:.5rem 1rem;border-radius:var(--radius-sm)}.skip-link:focus{top:1rem}::selection{background:#c9a45a59}.app{display:grid;grid-template-columns:var(--sidebar-w) minmax(0,1fr);height:100dvh;overflow:hidden;transition:grid-template-columns .25s ease}.app--collapsed{grid-template-columns:0 minmax(0,1fr)}.main{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(1200px 500px at 50% -10%,var(--brass-soft),transparent 60%),var(--bg)}.sidebar{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--sidebar-bg);color:var(--sidebar-text);border-right:1px solid var(--sidebar-border);width:var(--sidebar-w)}.sidebar__top{padding:1rem .875rem .75rem;display:grid;gap:.75rem}.brand{display:flex;align-items:center;gap:.7rem;padding:.25rem .25rem .5rem}.brand__mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#1a1408;background:linear-gradient(140deg,#e8cd8f,#b0873a);box-shadow:inset 0 1px #fff6,0 4px 14px -4px #c9a45a80;flex:none}.brand__text{display:grid;line-height:1.2;min-width:0}.brand__name{font-family:var(--font-display);font-size:1.15rem;font-weight:600;color:#fff;letter-spacing:.01em}.brand__sub{font-size:.75rem;color:var(--sidebar-text-2)}.sidebar__close{margin-left:auto;display:none;color:var(--sidebar-text)}.new-chat{display:flex;align-items:center;gap:.55rem;width:100%;padding:.65rem .85rem;border-radius:11px;border:1px solid rgb(201 164 90 / .35);background:linear-gradient(180deg,#c9a45a29,#c9a45a0f);color:#f3e6c6;font-weight:600;font-size:.9rem;transition:background .15s,border-color .15s,transform .1s}.new-chat:hover{border-color:#c9a45a99;background:linear-gradient(180deg,#c9a45a3d,#c9a45a1a)}.new-chat:active{transform:translateY(1px)}.search{display:flex;align-items:center;gap:.5rem;padding:0 .75rem;border-radius:10px;background:#ffffff0d;border:1px solid transparent;color:var(--sidebar-text-2);transition:border-color .15s,background .15s}.search:focus-within{border-color:#c9a45a73;background:#ffffff12}.search input{flex:1;min-width:0;border:0;background:transparent;padding:.55rem 0;font-size:.875rem;color:var(--sidebar-text);outline:none}.search input::placeholder{color:var(--sidebar-text-2)}.sidebar__list{flex:1;min-height:0;overflow-y:auto;padding:.25rem .625rem 1rem;scrollbar-width:thin;scrollbar-color:rgb(255 255 255 / .15) transparent}.sidebar__empty{display:grid;justify-items:center;gap:.6rem;text-align:center;padding:2.5rem 1rem;color:var(--sidebar-text-2);font-size:.85rem}.sidebar__empty-search{padding:1rem .5rem;color:var(--sidebar-text-2);font-size:.85rem}.history-group+.history-group{margin-top:1rem}.history-group__label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--sidebar-text-2);padding:.5rem .5rem .35rem}.history-group ul{list-style:none;margin:0;padding:0;display:grid;gap:1px}.history-item{position:relative;display:flex;align-items:center;border-radius:9px;transition:background .12s}.history-item:hover,.history-item:focus-within{background:var(--sidebar-hover)}.history-item--active,.history-item--active:hover{background:var(--sidebar-active)}.history-item--active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--brass-2)}.history-item__main{flex:1;min-width:0;display:flex;align-items:center;gap:.5rem;border:0;background:transparent;text-align:left;padding:.5rem .65rem;color:var(--sidebar-text);font-size:.875rem}.history-item--active .history-item__main{color:#fff}.history-item__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item__dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--brass-2);animation:pulse 1.2s ease-in-out infinite}.history-item__actions{display:flex;gap:1px;padding-right:.25rem;opacity:0;transition:opacity .12s}.history-item:hover .history-item__actions,.history-item:focus-within .history-item__actions,.history-item--active .history-item__actions{opacity:1}.history-item__actions [aria-pressed=true]{color:var(--brass-2)}.history-item--editing{background:var(--sidebar-hover);padding:.25rem}.history-item--editing form{flex:1}.history-item--editing input{width:100%;border:1px solid rgb(201 164 90 / .6);border-radius:7px;padding:.35rem .5rem;background:#00000040;color:#fff;font-size:.875rem;outline:none}.sidebar__bottom{border-top:1px solid var(--sidebar-border);padding:.75rem .875rem .875rem;display:grid;gap:.6rem}.sidebar__warning{font-size:.78rem;color:#f2c27a;background:#f2c27a1a;border-radius:8px;padding:.5rem .65rem}.helpline{display:flex;align-items:center;gap:.65rem;padding:.6rem .7rem;border-radius:11px;background:#ffffff0a;border:1px solid var(--sidebar-border);color:var(--sidebar-text);text-decoration:none;transition:background .15s}.helpline:hover{background:#ffffff12}.helpline__icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#c9a45a26;color:var(--brass-2);flex:none}.helpline__title{display:block;font-size:.8rem;font-weight:600;line-height:1.3}.helpline__number{display:block;font-size:.75rem;color:var(--sidebar-text-2)}.sidebar__footer-actions{display:flex;flex-wrap:wrap;gap:.25rem}.ghost-button{display:inline-flex;align-items:center;gap:.45rem;border:0;background:transparent;color:var(--sidebar-text-2);font-size:.8rem;padding:.4rem .55rem;border-radius:8px}.ghost-button:hover{background:var(--sidebar-hover);color:var(--sidebar-text)}.ghost-button--danger:hover{color:#ff9a92}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;border:0;background:transparent;color:var(--text-2);transition:background .12s,color .12s;flex:none}.icon-button:hover{background:var(--surface-2);color:var(--text)}.sidebar .icon-button{color:var(--sidebar-text-2)}.sidebar .icon-button:hover{background:#ffffff14;color:#fff}.icon-button--sm{width:26px;height:26px;border-radius:7px}.sidebar .icon-button--danger:hover{color:#ff9a92}.topbar{display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem;min-height:60px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);z-index:5}.topbar__menu{display:none}.topbar__title{flex:1;min-width:0}.topbar__name{display:block;font-family:var(--font-display);font-size:1.05rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar__actions{display:flex;align-items:center;gap:.25rem}.engine-badge,.engine-select select{display:inline-flex;align-items:center;gap:.45rem;height:34px;padding:0 .8rem;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-2);box-shadow:var(--shadow-sm);white-space:nowrap}.engine-badge__dot{width:7px;height:7px;border-radius:50%;background:var(--good);box-shadow:0 0 0 3px var(--good-bg)}.engine-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:2rem;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23767b86' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center}.engine-select select:hover{border-color:var(--border-strong)}.scroller{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}.thread{max-width:var(--thread-w);margin:0 auto;padding:2rem 1.25rem 2.5rem;display:grid;gap:2.25rem}.turn{display:grid;gap:1.25rem;animation:rise .28s ease-out}.msg--user{display:grid;justify-items:end;gap:.3rem}.msg--user__bubble{max-width:min(85%,620px);padding:.8rem 1.1rem;border-radius:20px 20px 6px;background:var(--user-bubble);color:var(--user-text);box-shadow:var(--shadow-sm)}.msg--user__bubble p{white-space:pre-wrap;overflow-wrap:anywhere}.msg__time{font-size:.72rem;color:var(--text-3);padding-right:.35rem}.msg--assistant{display:grid;grid-template-columns:34px minmax(0,1fr);gap:.9rem;align-items:start}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#1a1408;background:linear-gradient(140deg,#e8cd8f,#b0873a);box-shadow:0 4px 12px -4px #b0873a8c}.msg--assistant__body{min-width:0;padding-top:.2rem}.msg-actions{display:flex;gap:.25rem;margin-top:.75rem;opacity:.85}.msg-action{display:inline-flex;align-items:center;gap:.35rem;border:0;background:transparent;color:var(--text-3);font-size:.8rem;padding:.3rem .55rem;border-radius:8px;transition:background .12s,color .12s}.msg-action:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.msg-action:disabled{opacity:.45}.thinking{display:inline-flex;align-items:center;gap:.7rem;padding:.65rem 1rem;border-radius:999px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);font-size:.875rem;color:var(--text-2)}.thinking__dots{display:inline-flex;gap:4px}.thinking__dots span{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:bounce 1.2s ease-in-out infinite}.thinking__dots span:nth-child(2){animation-delay:.15s}.thinking__dots span:nth-child(3){animation-delay:.3s}.thinking__text{background:linear-gradient(90deg,var(--text-2) 0%,var(--text-3) 50%,var(--text-2) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 2.2s linear infinite}.thinking__time{font-variant-numeric:tabular-nums;font-size:.78rem;color:var(--text-3)}.empty{display:grid;justify-items:center;text-align:center;padding:clamp(1rem,6vh,4rem) 0 1rem;animation:rise .35s ease-out}.empty__mark{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;color:#1a1408;background:linear-gradient(140deg,#efd9a3,#b0873a);box-shadow:0 14px 36px -12px #b0873aa6,inset 0 1px #ffffff80;margin-bottom:1.4rem}.empty__title{font-family:var(--font-display);font-size:clamp(1.6rem,3.2vw,2.2rem);font-weight:600;letter-spacing:-.01em;max-width:22ch}.empty__lede{margin-top:.75rem;color:var(--text-2);max-width:58ch}.suggestions{list-style:none;margin:2rem 0 0;padding:0;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.suggestion{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:.75rem;row-gap:.2rem;width:100%;height:100%;text-align:left;padding:.95rem 1rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s,transform .15s}.suggestion:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--border));box-shadow:var(--shadow);transform:translateY(-1px)}.suggestion__icon{grid-row:span 2;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--brass-soft);color:var(--accent)}.suggestion__title{font-weight:600;font-size:.9rem}.suggestion__text{font-size:.8rem;color:var(--text-3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}.empty__tip{margin-top:1.5rem;font-size:.8rem;color:var(--text-3);max-width:62ch}.composer-dock{padding:0 1.25rem .9rem;background:linear-gradient(to bottom,transparent,var(--bg) 1.25rem)}.composer{max-width:var(--thread-w);margin:0 auto}.composer__box{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-elevated);box-shadow:var(--shadow-lg);padding:.75rem .75rem .6rem 1.1rem;transition:border-color .15s,box-shadow .15s}.composer__box:focus-within{border-color:color-mix(in srgb,var(--accent) 60%,var(--border));box-shadow:var(--shadow-lg),0 0 0 4px color-mix(in srgb,var(--accent) 14%,transparent)}.composer__box--invalid{border-color:var(--danger)}.composer textarea{display:block;width:100%;resize:none;border:0;outline:none;background:transparent;padding:.2rem .25rem .2rem 0;min-height:28px;max-height:240px;line-height:1.55;font-size:.975rem}.composer textarea::placeholder{color:var(--text-3)}.composer__bar{display:flex;align-items:center;gap:.75rem;margin-top:.4rem}.composer__hint{flex:1;font-size:.75rem;color:var(--text-3)}.composer__counter{font-size:.75rem;color:var(--caution);font-variant-numeric:tabular-nums}.send-button{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;border:0;background:var(--primary);color:var(--on-primary);box-shadow:0 6px 16px -6px color-mix(in srgb,var(--primary) 70%,transparent);transition:background .15s,transform .1s,opacity .15s;flex:none}.send-button:hover:not(:disabled){background:var(--primary-hover)}.send-button:active:not(:disabled){transform:scale(.95)}.send-button:disabled{opacity:.35;box-shadow:none}.send-button--stop{background:var(--text);color:var(--bg)}.send-button--stop:hover:not(:disabled){background:var(--text-2)}.composer__error{margin:0 0 .5rem .5rem;font-size:.85rem;color:var(--danger);font-weight:500}.composer__disclaimer{margin-top:.6rem;text-align:center;font-size:.72rem;color:var(--text-3)}.composer__disclaimer a{color:inherit;font-weight:600}.button{display:inline-flex;align-items:center;gap:.45rem;font-weight:600;font-size:.875rem;padding:.5rem .9rem;border-radius:10px;border:1px solid transparent;transition:background .15s,border-color .15s}.button:disabled{opacity:.55}.button--secondary{background:var(--surface);border-color:var(--border-strong)}.button--secondary:hover:not(:disabled){background:var(--surface-2)}.notice{display:flex;gap:.75rem;padding:.9rem 1rem;border-radius:var(--radius);border:1px solid}.notice>svg{flex:none;margin-top:.15rem}.notice--error{background:var(--danger-bg);border-color:color-mix(in srgb,var(--danger) 30%,transparent);color:var(--danger)}.notice--error p{color:var(--text);margin-bottom:.65rem}.notice .notice__title{font-weight:600;color:var(--danger);margin-bottom:.15rem}.muted{color:var(--text-3)}.reply{display:grid;gap:1.1rem}.summary{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);padding:1rem 1.1rem 1.05rem;position:relative;overflow:hidden}.summary:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--brass),var(--brass-2),transparent)}.summary__heading{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--accent);margin-bottom:.75rem}.summary__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.6rem;margin:0}.summary__item{border-radius:11px;padding:.65rem .8rem;background:var(--surface-2);border:1px solid transparent}.summary__item dt{font-size:.75rem;color:var(--text-3);font-weight:500}.summary__item dd{margin:.15rem 0 0;display:flex;align-items:center;gap:.45rem;font-family:var(--font-display);font-size:1.3rem;font-weight:600}.summary__item--good{background:var(--good-bg);border-color:color-mix(in srgb,var(--good) 22%,transparent)}.summary__item--good dd{color:var(--good)}.summary__item--caution{background:var(--caution-bg);border-color:color-mix(in srgb,var(--caution) 22%,transparent)}.summary__item--caution dd{color:var(--caution)}.summary__badge{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:currentColor}.summary__badge svg{color:var(--surface);stroke-width:3}.meter{display:block;height:5px;margin-top:.5rem;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent);overflow:hidden}.summary__item--good .meter{color:var(--good)}.summary__item--caution .meter{color:var(--caution)}.summary__item--neutral .meter{color:var(--text-3)}.meter__fill{display:block;height:100%;border-radius:inherit;background:currentColor;animation:grow .8s cubic-bezier(.2,.8,.2,1);transform-origin:left}.summary__reasoning{margin-top:.85rem;color:var(--text-2);font-size:.925rem}.reasoning{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.reasoning>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:.5rem;padding:.7rem 1rem;font-size:.85rem;font-weight:600;color:var(--text-2)}.reasoning>summary::-webkit-details-marker{display:none}.reasoning>summary:before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s;margin-right:.2rem}.reasoning[open]>summary:before{transform:rotate(45deg)}.reasoning>summary:hover{color:var(--text)}.reasoning__body{padding:.9rem 1rem 1rem;border-top:1px solid var(--border);font-size:.925rem;color:var(--text-2)}.prose{overflow-wrap:anywhere}.prose>:first-child{margin-top:0}.prose>:last-child{margin-bottom:0}.prose p,.prose ul,.prose ol,.prose blockquote,.prose pre{margin:0 0 .9rem}.prose h4,.prose h5,.prose h6{font-family:var(--font-display);font-weight:600;margin:1.4rem 0 .5rem}.prose h4{font-size:1.2rem}.prose h5{font-size:1.05rem}.prose h6{font-size:.95rem}.prose strong{font-weight:650}.prose ul,.prose ol{padding-left:1.35rem}.prose li+li{margin-top:.3rem}.prose li::marker{color:var(--accent)}.prose li>ul,.prose li>ol{margin:.3rem 0 0}.prose blockquote{border-left:3px solid var(--accent);background:var(--surface-2);border-radius:0 10px 10px 0;padding:.6rem 1rem;color:var(--text-2)}.prose code{font-size:.88em;background:var(--surface-2);padding:.1em .35em;border-radius:5px}.prose pre{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:.8rem 1rem;overflow-x:auto;white-space:pre-wrap}.prose pre code{background:none;padding:0}.prose hr{border:none;border-top:1px solid var(--border);margin:1.4rem 0}.table-scroll{overflow-x:auto;margin:0 0 1rem;border:1px solid var(--border);border-radius:10px}.prose table{border-collapse:collapse;width:100%;font-size:.9rem}.prose th,.prose td{border-bottom:1px solid var(--border);padding:.55rem .75rem;text-align:left;vertical-align:top}.prose tr:last-child td{border-bottom:0}.prose th{background:var(--surface-2);font-weight:600}.scrim{display:none}@keyframes rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}@keyframes shimmer{to{background-position:-200% 0}}@keyframes pulse{50%{opacity:.35}}@keyframes grow{0%{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media (max-width: 900px){.app,.app--collapsed{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:min(86vw,var(--sidebar-w));transform:translate(-102%);transition:transform .25s ease;box-shadow:var(--shadow-lg)}.sidebar--open{transform:none}.sidebar__close{display:inline-grid}.scrim{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#050a1480;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:rise .2s ease-out}.topbar__menu{display:inline-grid}.topbar__collapse{display:none}.topbar__new{display:inline-grid}}@media (max-width: 640px){body{font-size:15px}.topbar{padding:.5rem .6rem}.thread{padding:1.25rem .9rem 2rem}.composer-dock{padding:0 .6rem .6rem}.suggestions{grid-template-columns:minmax(0,1fr)}.suggestion__text{display:none}.suggestion{align-items:center}.suggestion__icon{grid-row:auto}.msg--assistant{grid-template-columns:minmax(0,1fr);gap:.5rem}.composer__hint{display:none}.composer__bar{justify-content:flex-end}.engine-badge,.engine-select select{max-width:44vw;overflow:hidden;text-overflow:ellipsis}}.thread-status{text-align:center;color:var(--text-3);padding:4rem 0}:root{--series-1: #2f5f9e;--series-2: #c58a2b;--series-open: #b9bfca;--grid: #ebe6db}html[data-theme=dark]{--series-1: #4f86d6;--series-2: #c8923a;--series-open: #3b4a63;--grid: #1f2b40}.side-nav{display:flex;align-items:center;gap:.55rem;width:100%;padding:.55rem .85rem;border-radius:11px;border:1px solid transparent;background:transparent;color:var(--sidebar-text);font-size:.875rem;font-weight:500;text-align:left}.side-nav:hover{background:var(--sidebar-hover)}.side-nav--active{background:var(--sidebar-active);border-color:#c9a45a4d;color:#f3e6c6}.dash{max-width:1180px;margin:0 auto;padding:1.75rem 1.25rem 3rem;display:grid;gap:1.25rem}.dash code{font-size:.85em;padding:.05em .35em;border-radius:5px;background:var(--surface-2)}.dash-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem 2rem}.dash-eyebrow{font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}.dash-title{font-family:var(--font-display);font-size:1.9rem;font-weight:600;margin:.15rem 0 .4rem}.dash-sub{max-width:62ch;color:var(--text-2);font-size:.925rem}.dash-meta{display:flex;gap:1.5rem;margin:0;font-size:.85rem}.dash-meta dt{color:var(--text-3);font-size:.75rem}.dash-meta dd{margin:0;font-weight:500}.dash-bad{color:var(--danger)}.dash-filters{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.6rem;border:1px solid var(--border);border-radius:var(--radius);background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:var(--shadow-sm)}.dash-search input,.dash-select select{height:34px;border-radius:9px;border:1px solid var(--border);background:var(--bg-elevated);color:var(--text);font:inherit;font-size:.8125rem;padding:0 .7rem}.dash-search input{width:220px}.dash-select select{max-width:200px;cursor:pointer}.dash-search input:focus,.dash-select select:focus{outline:2px solid var(--focus);outline-offset:1px}.dash-clear,.dash-link{border:0;background:transparent;color:var(--accent);font-size:.8125rem;font-weight:600;padding:.35rem .5rem;border-radius:8px}.dash-clear:hover,.dash-link:hover{background:var(--surface-2)}.dash-scope{margin-left:auto;font-size:.8125rem;color:var(--text-3);padding-right:.25rem}.dash-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.dash-kpi{display:grid;gap:.15rem;padding:.9rem 1rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}.dash-kpi-label{font-size:.78rem;color:var(--text-3);font-weight:500}.dash-kpi-value{font-family:var(--font-display);font-size:2rem;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}.dash-kpi-note{font-size:.78rem;color:var(--text-2)}.dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:1.25rem}.dash-card{min-width:0;padding:1.1rem 1.2rem 1.2rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}.dash-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.9rem}.dash-card-head h2{font-size:1rem;font-weight:600}.dash-card-head p{margin-top:.2rem;font-size:.8125rem;color:var(--text-3);max-width:80ch}.dash-empty{text-align:center;color:var(--text-2);padding:2.5rem 1rem}.dash-muted{color:var(--text-3)}.dash-insights{margin:0;padding-left:1.1rem;display:grid;gap:.45rem;font-size:.9rem;color:var(--text-2)}.dash-insights strong{color:var(--text);font-weight:600}.bars{display:grid;gap:2px}.bar{display:grid;grid-template-columns:minmax(110px,38%) minmax(0,1fr) 4.2rem;align-items:center;gap:.75rem;width:100%;padding:.3rem .4rem;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:.8125rem;text-align:left}.bar:hover,.bar:focus-visible{background:var(--surface-2)}.bar:focus-visible{outline:2px solid var(--focus);outline-offset:0}.bar--button{cursor:pointer}.bar.is-dim{opacity:.45}.bar.is-active .bar-label{font-weight:600}.bar.is-active .bar-fill{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--series-1)}.bar-label{color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{position:relative;height:14px}.bar-fill{display:block;height:100%;min-width:3px;border-radius:0 4px 4px 0;background:var(--series-1)}.bar-value{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.bar-pct{margin-left:.4rem;font-weight:400;color:var(--text-3);font-size:.75rem}.stack{display:flex;height:18px;gap:2px}.bar:has(.stack) .bar-track{height:18px}.seg{display:grid;place-items:center;min-width:18px;font-size:.7rem;font-weight:600;color:#fff}.seg:last-child{border-radius:0 4px 4px 0}.seg-1{background:var(--series-1)}.seg-2{background:var(--series-2);color:#1a1408}.legend{display:flex;flex-wrap:wrap;gap:1rem;margin:-.35rem 0 .6rem;font-size:.78rem;color:var(--text-2)}.legend span{display:inline-flex;align-items:center;gap:.4rem}.legend--foot{margin:.8rem 0 0}.sw{width:10px;height:10px;border-radius:3px;display:inline-block}.sw-1{background:var(--series-1)}.sw-2{background:var(--series-2)}.sw-open{background:repeating-linear-gradient(45deg,var(--series-open) 0 2px,transparent 2px 4px);outline:1px solid var(--series-open)}.heat{width:100%;border-collapse:separate;border-spacing:2px;font-size:.8125rem}.heat th{font-weight:500;color:var(--text-3);font-size:.75rem;text-align:center;padding:.2rem}.heat th[scope=row]{text-align:left;color:var(--text-2);font-size:.8125rem;white-space:nowrap;padding-right:.6rem}.heat td{padding:0}.heat-cell{width:100%;height:34px;border:0;border-radius:6px;background:color-mix(in srgb,var(--series-1) var(--t),var(--surface));color:var(--text);font:inherit;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer}.heat-cell.is-dark{color:#fff}.heat-cell.is-zero{background:var(--surface-2);color:var(--text-3);cursor:default}.heat-cell:not(.is-zero):hover{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--series-1)}.heat-total{text-align:center;color:var(--text-2);font-variant-numeric:tabular-nums;width:3.5rem}.ranges{display:grid;gap:1px;font-size:.78rem}.ranges-axis,.range-row{display:grid;grid-template-columns:3.2rem minmax(0,1fr) 3.6rem;align-items:center;gap:.75rem}.ranges-ticks{position:relative;height:1.2rem;color:var(--text-3);font-size:.7rem}.ranges-ticks span{position:absolute;transform:translate(-50%)}.ranges-ticks span:first-child{transform:none}.ranges-ticks span:last-child{transform:translate(-100%)}.ranges-group{margin:.6rem 0 .15rem;font-size:.72rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3)}.range-row{padding:1px 0;border-radius:6px}.range-row:hover,.range-row:focus-visible{background:var(--surface-2);outline:none}.range-id{font-weight:600;color:var(--text-2);font-variant-numeric:tabular-nums}.range-track{position:relative;height:12px;border-radius:999px;background:var(--surface-2)}.range-grid{position:absolute;top:-2px;bottom:-2px;width:1px;background:var(--grid)}.range-bar{position:absolute;top:2px;bottom:2px;border-radius:999px;background:var(--series-1)}.range-bar.is-no{background:var(--series-2)}.range-bar.is-open{background:repeating-linear-gradient(45deg,var(--series-open) 0 2px,transparent 2px 5px)}.range-val{text-align:right;color:var(--text-2);font-variant-numeric:tabular-nums}.dash-flags,.dash-mustnot{list-style:none;margin:0;padding:0;display:grid;gap:.45rem;font-size:.85rem}.dash-flags li{display:grid;grid-template-columns:auto 1fr auto;gap:.6rem;align-items:start;padding:.55rem .7rem;border-radius:10px;background:var(--danger-bg)}.dash-flag-icon{display:grid;place-items:center;width:18px;height:18px;margin-top:2px;border-radius:50%;background:var(--danger);color:var(--bg);font-size:.7rem;font-weight:700}.dash-flag-count{font-size:.75rem;color:var(--text-3);white-space:nowrap}.dash-mustnot{max-height:330px;overflow-y:auto;scrollbar-width:thin}.dash-mustnot li{display:flex;gap:.6rem;color:var(--text-2)}.dash-id{flex:none;min-width:2.4rem;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}.dash-table-wrap{overflow-x:auto;margin:0 -1.2rem -1.2rem}.dash-table{width:100%;border-collapse:collapse;font-size:.8125rem}.dash-table th{position:sticky;top:0;background:var(--surface-2);color:var(--text-3);font-weight:600;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;text-align:left;padding:.55rem .6rem;white-space:nowrap}.dash-table td{padding:.55rem .6rem;border-top:1px solid var(--border);vertical-align:top}.dash-table th:first-child,.dash-table td:first-child{padding-left:1.2rem}.dash-table tr.is-open td{background:var(--surface-2)}.dash-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.nowrap{white-space:nowrap}.dash-row-toggle{display:inline-flex;align-items:center;gap:.35rem;border:0;background:transparent;color:var(--text);font:inherit;font-weight:600;padding:0;cursor:pointer}.dash-caret{display:inline-block;font-size:.7rem;color:var(--text-3);transition:transform .15s}[aria-expanded=true]>.dash-caret{transform:rotate(90deg)}.dash-facts{min-width:280px;max-width:460px;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.dash-tag{display:inline-block;margin-right:.35rem;padding:0 .4rem;border-radius:5px;background:var(--brass-soft);color:var(--text);font-size:.72rem;font-weight:600}.dash-pill{display:inline-block;padding:.05rem .5rem;border-radius:999px;font-size:.72rem;font-weight:600;border:1px solid var(--border-strong);color:var(--text-2)}.dash-pill--hard{border-color:var(--text-2);color:var(--text)}.dash-status{display:inline-flex;align-items:center;gap:.3rem;font-weight:600}.dash-status.is-yes{color:var(--good)}.dash-status.is-no{color:var(--danger)}.dash-detail td{background:var(--surface-2);border-top:0;padding:.25rem 1.2rem 1.1rem}.detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem}.detail h3{font-size:.72rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3);margin:.6rem 0 .35rem}.detail-turn{padding:.6rem .8rem;margin-bottom:.5rem;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--text)}.detail-facts{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:.6rem 0 0}.detail-facts dt{font-size:.7rem;color:var(--text-3)}.detail-facts dd{margin:0;font-weight:600}.detail-note{margin-top:.6rem;font-size:.78rem;color:var(--caution)}.detail-list{margin:0;padding:0;list-style:none;display:grid;gap:.3rem}.detail-list li{position:relative;padding-left:1.3rem;color:var(--text)}.detail-list li:before{position:absolute;left:0;font-weight:700}.detail-list--yes li:before{content:"✓";color:var(--good)}.detail-list--no li:before{content:"✕";color:var(--danger)}.dash-tip{position:fixed;z-index:50;transform:translate(-50%,calc(-100% - 8px));display:grid;gap:.1rem;max-width:280px;padding:.5rem .7rem;border-radius:9px;background:var(--text);color:var(--bg);font-size:.78rem;line-height:1.4;box-shadow:var(--shadow-lg);pointer-events:none}.dash-tip .tip-muted{opacity:.75}@media (max-width: 760px){.detail{grid-template-columns:minmax(0,1fr);gap:.5rem}.dash-search input{width:100%}.dash-search{flex:1 1 100%}.dash-scope{margin-left:0}.dash-filters{position:static}}@media (forced-colors: active){.bar-fill,.seg,.range-bar{forced-color-adjust:none;border:1px solid CanvasText}}.case-details{display:grid;margin:.9rem 0 0;border-top:1px solid var(--border)}.case-details__row{display:grid;grid-template-columns:minmax(140px,34%) 1fr;gap:.25rem 1rem;padding:.6rem 0;border-bottom:1px solid var(--border)}.case-details__row:last-child{border-bottom:0;padding-bottom:0}.case-details__row dt{font-size:.8rem;color:var(--text-3);font-weight:500;padding-top:.1rem}.case-details__row dd{margin:0;font-size:.92rem;color:var(--text);overflow-wrap:anywhere}.case-details__row--good dd{color:var(--good);font-weight:600}.case-details__row--caution dd{color:var(--caution);font-weight:600}.chips{display:flex;flex-wrap:wrap;gap:.35rem}.chip{display:inline-block;padding:.15rem .6rem;border-radius:999px;background:var(--brass-soft);color:var(--text);font-size:.82rem;font-weight:500}.followup{border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:var(--radius);background:var(--surface);padding:1rem 1.1rem;box-shadow:var(--shadow-sm)}.followup--past{box-shadow:none;background:var(--surface-2);border-left-color:var(--border-strong)}.followup__heading{font-size:.95rem;font-weight:650;margin:0}.followup__intro{margin:.2rem 0 .8rem;font-size:.82rem;color:var(--text-3)}.followup__list{margin:.5rem 0 0;padding-left:1.2rem;color:var(--text-2);font-size:.9rem}.followup__fields{list-style:none;margin:0;padding:0;display:grid;gap:.75rem;counter-reset:followup}.followup__field{display:grid;gap:.3rem;counter-increment:followup}.followup__field label{font-size:.9rem;font-weight:550;color:var(--text)}.followup__field label:before{content:counter(followup) ". ";color:var(--accent);font-weight:700}.followup__field input{width:100%;font:inherit;font-size:.92rem;color:var(--text);background:var(--bg-elevated);border:1px solid var(--border-strong);border-radius:10px;padding:.55rem .75rem}.followup__field input::placeholder{color:var(--text-3)}.followup__field input:focus-visible{outline:2px solid var(--focus);outline-offset:1px;border-color:transparent}.followup__bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-top:.9rem}.followup__status{font-size:.78rem;color:var(--text-3);font-variant-numeric:tabular-nums}.followup__status--error{color:var(--danger);font-weight:600}.button--primary{background:var(--primary);color:var(--on-primary)}.button--primary:hover:not(:disabled){background:var(--primary-hover)}.button--primary:disabled{cursor:not-allowed}.draft{border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--bg-elevated);box-shadow:var(--shadow-sm);overflow:hidden}.draft__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.85rem 1.1rem;background:var(--surface-2);border-bottom:1px solid var(--border)}.draft__title{font-family:var(--font-display);font-size:1.05rem;font-weight:600;margin:0}.draft__hint{margin:.15rem 0 0;font-size:.8rem;color:var(--text-3)}.draft__copy{flex-shrink:0}.draft__body{padding:1rem 1.1rem 1.1rem;max-height:520px;overflow:auto}.draft__body .prose code{background:var(--caution-bg);color:var(--caution);border-radius:4px;padding:0 .25rem;font-family:inherit;font-size:.92em;font-weight:600}.composer__counter{color:var(--text-3)}.composer__counter--near{color:var(--caution)}@media (max-width: 640px){.case-details__row{grid-template-columns:1fr}.draft__header{flex-direction:column}.draft__body{max-height:none}}
