:root{--background:#fff;--foreground:#0a0a0a;--muted:#f5f5f5;--muted-foreground:#737373;--border:#e5e5e5;--primary:#171717;--primary-foreground:#fafafa;--destructive:#dc2626;--destructive-soft:#fef2f2;--ring:#a3a3a3;--warning:#713f12;--warning-soft:#fef9c3;--warning-border:#fde68a;--radius:.625rem;--thread-max-width:44rem;--composer-radius:1rem;--sidebar-width:16rem;--font-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}*{box-sizing:border-box}html,body{height:100%}body{font-family:var(--font-sans);color:var(--foreground);background:var(--background);-webkit-font-smoothing:antialiased;margin:0;font-size:.9375rem;line-height:1.5}a{color:var(--foreground);text-underline-offset:2px;text-decoration:underline}a:hover{color:var(--muted-foreground)}main{max-width:40rem;margin:0 auto;padding:3rem 1rem}main.centered{flex-direction:column;justify-content:center;max-width:26rem;min-height:100%;display:flex}h1{letter-spacing:-.01em;margin:0 0 1rem;font-size:1.5rem;font-weight:600}h2{margin:0 0 .75rem;font-size:1rem;font-weight:600}.card{background:var(--background);border:1px solid var(--border);border-radius:var(--radius);margin:0 0 1rem;padding:1.25rem}.card p{margin:0 0 .75rem}.card p:last-child{margin-bottom:0}label{margin-bottom:1rem;font-size:.875rem;font-weight:500;display:block}input{width:100%;font:inherit;color:var(--foreground);background:var(--background);border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);outline:none;margin-top:.375rem;padding:.5rem .75rem;transition:border-color .15s;display:block}input:focus-visible{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent)}button{min-height:2.25rem;font:inherit;color:var(--primary-foreground);white-space:nowrap;cursor:pointer;background:var(--primary);border-radius:calc(var(--radius) - 2px);border:1px solid #0000;outline:none;justify-content:center;align-items:center;gap:.5rem;padding:.375rem 1rem;font-size:.875rem;font-weight:500;transition:background-color .15s,color .15s,border-color .15s,opacity .15s;display:inline-flex}button:hover:not(:disabled){background:color-mix(in srgb, var(--primary) 90%, transparent)}button:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb, var(--ring) 40%, transparent)}button:disabled{cursor:default;opacity:.5}button.outline{color:var(--foreground);background:var(--background);border-color:var(--border)}button.outline:hover:not(:disabled){background:var(--muted)}button.ghost{color:var(--muted-foreground);background:0 0}button.ghost:hover:not(:disabled){color:var(--foreground);background:var(--muted)}button.icon{border-radius:999px;width:1.75rem;min-height:1.75rem;padding:0}button.sm{min-height:2rem;padding:.25rem .75rem}button svg{flex-shrink:0;width:1rem;height:1rem}.error{color:var(--destructive);background:var(--destructive-soft);border:1px solid color-mix(in srgb, var(--destructive) 30%, transparent);border-radius:calc(var(--radius) - 2px);margin:0 0 1rem;padding:.625rem .75rem;font-size:.875rem}.muted{color:var(--muted-foreground)}.orgs{margin:0;padding:0;list-style:none}.orgs li{border-top:1px solid var(--border);justify-content:space-between;align-items:center;padding:.625rem 0;display:flex}.orgs li:first-child{border-top:none;padding-top:0}.orgs li:last-child{padding-bottom:0}.auth-title{margin-bottom:.25rem}.auth-lead{color:var(--muted-foreground);margin:0 0 1.5rem;font-size:.875rem}.dev-accounts{margin-top:1rem}.dev-accounts>p{margin:0 0 .75rem;font-size:.8125rem}.dev-accounts h2{color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem;font-weight:500}.dev-accounts ul{border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none;overflow:hidden}.dev-accounts li+li{border-top:1px solid var(--border)}.dev-accounts button{width:100%;min-height:0;color:var(--foreground);text-align:left;white-space:normal;background:0 0;border:none;border-radius:0;grid-template-columns:1fr auto;gap:.75rem;padding:.625rem .875rem;display:grid}.dev-accounts button:hover:not(:disabled){background:var(--muted)}.dev-accounts .who{flex-direction:column;gap:.125rem;min-width:0;display:flex}.dev-accounts .who>:first-child{font-weight:500}.dev-accounts .who>:last-child,.dev-accounts .orgs-of{color:var(--muted-foreground);font-size:.8125rem}.dev-accounts .orgs-of{text-align:right}main.app{max-width:none;height:100%;margin:0;padding:0}.chat{grid-template-columns:var(--sidebar-width) minmax(0, 1fr);height:100dvh;display:grid}.sidebar{background:var(--muted);border-right:1px solid var(--border);flex-direction:column;gap:.75rem;padding:.75rem;display:flex;overflow-y:auto}.sidebar-head{justify-content:space-between;align-items:baseline;gap:.5rem;padding:.25rem .625rem 0;display:flex}.sidebar-head .brand{letter-spacing:-.01em;font-weight:600}.sidebar-head a{color:var(--muted-foreground);font-size:.8125rem;text-decoration:none}.sidebar-head a:hover{color:var(--foreground)}.sidebar .organization{color:var(--muted-foreground);margin:0;padding:0 .625rem;font-size:.8125rem}.thread-list{flex-direction:column;gap:.125rem;display:flex}.thread-list>button{min-height:2rem;color:var(--foreground);border-radius:calc(var(--radius) - 4px);background:0 0;justify-content:flex-start;padding:0 .625rem;font-weight:400}.thread-list>button:hover{background:color-mix(in srgb, var(--foreground) 6%, transparent)}.thread-list ul{margin:.5rem 0 0;padding:0;list-style:none}.thread-item{border-radius:calc(var(--radius) - 4px);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 .25rem;transition:background-color .15s;display:grid;position:relative}.thread-item:hover,.thread-item:focus-within,.thread-item[data-active]{background:color-mix(in srgb, var(--foreground) 6%, transparent)}.thread-item button.link{min-height:2rem;color:var(--foreground);text-align:left;text-overflow:ellipsis;white-space:nowrap;border-radius:calc(var(--radius) - 4px);background:0 0;justify-content:flex-start;padding:.25rem .625rem 0;font-weight:400;overflow:hidden}.thread-item button.link:hover{background:0 0}.thread-time{color:var(--muted-foreground);grid-area:2/1;padding:0 .625rem .375rem;font-size:.75rem}.thread-item>:last-child{grid-area:1/2/span 2;margin-right:.25rem}.thread-item button.icon{width:1.5rem;min-height:1.5rem;color:var(--muted-foreground);background:0 0}.thread-item button.icon:hover{color:var(--destructive);background:color-mix(in srgb, var(--destructive) 10%, transparent)}.thread-item button.icon svg{width:.875rem;height:.875rem}.conversation{background:var(--background);flex-direction:column;min-height:0;display:flex}.banner{width:calc(100% - 2rem);max-width:var(--thread-max-width);color:var(--warning);background:var(--warning-soft);border:1px solid var(--warning-border);border-radius:calc(var(--radius) - 2px);margin:.75rem auto 0;padding:.5rem .75rem;font-size:.875rem}.banner a{color:inherit}.thread{flex-direction:column;flex:1;min-height:0;display:flex}.messages{scroll-behavior:smooth;flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden auto}.messages-inner{width:100%;max-width:var(--thread-max-width);flex-direction:column;flex:1;margin:0 auto;padding:1rem 1rem 0;display:flex}.messages-inner.empty{justify-content:center}.welcome{letter-spacing:-.01em;margin:0 .5rem 1.5rem;font-size:1.5rem;font-weight:500}.message-group{flex-direction:column;gap:1.5rem;margin-bottom:3.5rem;display:flex}.message-group:empty{display:none}.thread-footer{background:var(--background);border-top-left-radius:var(--composer-radius);border-top-right-radius:var(--composer-radius);flex-direction:column;gap:.75rem;margin-top:auto;padding-bottom:1rem;display:flex;position:sticky;bottom:0}@media (min-width:48rem){.thread-footer{padding-bottom:1.5rem}}.message{white-space:pre-wrap;overflow-wrap:anywhere}.message p{margin:0 0 .5rem}.message p:last-child{margin-bottom:0}.message.user{grid-template-columns:minmax(4.5rem,1fr) auto;gap:.5rem 0;padding:0 .5rem;display:grid}.message.user>*{grid-column:2;max-width:100%}.message.user .bubble{background:var(--muted);border-radius:var(--composer-radius);padding:.5rem 1rem}.message.user .user-attachments{flex-wrap:wrap;justify-content:flex-end;gap:.375rem;display:flex}.message.user .user-attachments:empty{display:none}.message.assistant{padding:0 .5rem;line-height:1.625}.run-error{color:var(--destructive);background:color-mix(in srgb, var(--destructive) 8%, transparent);border:1px solid var(--destructive);border-radius:calc(var(--radius) - 2px);margin-top:.5rem;padding:.75rem;font-size:.875rem;display:block}.message .truncated-notice{color:var(--muted-foreground);margin:.5rem 0 0;font-size:.8125rem}.message .markdown{white-space:normal}.message .markdown pre{white-space:pre-wrap}.message .markdown .address{unicode-bidi:isolate}.message .markdown p{margin:.75rem 0;line-height:1.625}.message .markdown>:first-child{margin-top:0}.message .markdown>:last-child{margin-bottom:0}.message .markdown :is(h1,h2,h3,h4,h5,h6){margin:1.25rem 0 .5rem;font-weight:600;line-height:1.3}.message .markdown h1{font-size:1.25rem}.message .markdown h2{font-size:1.125rem}.message .markdown :is(h3,h4){margin-top:1rem;font-size:1rem}.message .markdown h4{font-weight:500}.message .markdown :is(h5,h6){margin-top:.75rem;font-size:.875rem}.message .markdown :is(ul,ol){margin:.75rem 0;padding-left:1.25rem}.message .markdown li{margin-top:.25rem;line-height:1.625}.message .markdown li::marker{color:var(--muted-foreground)}.message .markdown blockquote{color:var(--muted-foreground);border-left:2px solid color-mix(in srgb, var(--muted-foreground) 30%, transparent);margin:.75rem 0;padding-left:1rem}.message .markdown hr{border:none;border-top:1px solid color-mix(in srgb, var(--muted-foreground) 20%, transparent);margin:.75rem 0}.message .markdown strong{font-weight:600}.message .markdown code{font-family:var(--font-mono);background:var(--muted);border-radius:.375rem;padding:.125rem .375rem;font-size:.85em}.message .markdown pre{background:color-mix(in srgb, var(--muted) 30%, transparent);border:1px solid color-mix(in srgb, var(--border) 50%, transparent);border-radius:.75rem;margin:.75rem 0;padding:.875rem;font-size:.8125rem;line-height:1.625;overflow-x:auto}.message .markdown pre code{font-size:inherit;background:0 0;border-radius:0;padding:0}.message .markdown table{border-spacing:0;border-collapse:separate;max-width:100%;margin:.75rem 0;display:block;overflow-x:auto}.message .markdown :is(th,td){text-align:left;padding:.375rem .75rem}.message .markdown th{background:var(--muted);font-weight:500}.message .markdown th:first-child{border-top-left-radius:.5rem}.message .markdown th:last-child{border-top-right-radius:.5rem}.message .markdown td{border-bottom:1px solid color-mix(in srgb, var(--muted-foreground) 20%, transparent);border-left:1px solid color-mix(in srgb, var(--muted-foreground) 20%, transparent)}.message .markdown td:last-child{border-right:1px solid color-mix(in srgb, var(--muted-foreground) 20%, transparent)}.message .markdown tr:last-child td:first-child{border-bottom-left-radius:.5rem}.message .markdown tr:last-child td:last-child{border-bottom-right-radius:.5rem}.attachment{white-space:nowrap;background:var(--background);border:1px solid var(--border);border-radius:.5rem;align-items:center;gap:.375rem;max-width:100%;padding:.25rem .625rem;font-size:.8125rem;display:inline-flex}.attachment .name{text-overflow:ellipsis;overflow:hidden}.attachment button{width:1.25rem;min-height:1.25rem;color:var(--muted-foreground);background:0 0;border-radius:999px;padding:0}.attachment button:hover{color:var(--foreground);background:var(--muted)}.attachment button svg{width:.75rem;height:.75rem}.tool-card{margin:.5rem 0}.tool-card summary{max-width:100%;color:var(--muted-foreground);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.5rem;padding:.375rem 0;font-size:.875rem;list-style:none;transition:color .15s;display:inline-flex}.tool-card summary::-webkit-details-marker{display:none}.tool-card summary:hover{color:var(--foreground)}.tool-card summary:before{content:"";background:currentColor;flex-shrink:0;width:1rem;height:1rem;display:inline-block;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E") 50%/contain no-repeat}.tool-card summary:after{content:"";background:currentColor;flex-shrink:0;width:1rem;height:1rem;transition:transform .2s cubic-bezier(.32,.72,0,1);display:inline-block;transform:rotate(-90deg);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") 50%/contain no-repeat}.tool-card[open] summary:after{transform:rotate(0)}.tool-card .tool-body{flex-direction:column;gap:.5rem;padding:.25rem 0 .5rem 1.5rem;font-size:.875rem;display:flex}.tool-card .tool-label{color:var(--muted-foreground);margin:0;font-size:.75rem;font-weight:500}pre,.prompt{white-space:pre-wrap;overflow-wrap:anywhere}pre{font-family:var(--font-mono);color:color-mix(in srgb, var(--foreground) 90%, transparent);background:color-mix(in srgb, var(--muted) 50%, transparent);border-radius:calc(var(--radius) - 2px);margin:0;padding:.625rem;font-size:.75rem;line-height:1.5}.tool-card .prompt{margin:0}.tool-card .muted{align-items:center;gap:.375rem;margin:0;font-weight:500;display:flex}.tool-card .muted svg{width:.875rem;height:.875rem}.file-card{max-width:100%;color:var(--foreground);overflow-wrap:anywhere;background:var(--background);border:1px solid var(--border);border-radius:.75rem;align-items:center;gap:.5rem;margin:.25rem 0;padding:.5rem .875rem;font-size:.875rem;font-weight:500;text-decoration:none;transition:background-color .15s;display:inline-flex}.file-card:hover{color:var(--foreground);background:var(--muted)}.file-card svg{width:1rem;height:1rem;color:var(--muted-foreground);flex-shrink:0}.actions{flex-wrap:wrap;gap:.5rem;margin:.25rem 0;display:flex}.clarification{width:100%;margin:0}.clarification .prompt{margin:0 0 .75rem}.clarification form{align-items:flex-end;gap:.5rem;margin-top:.75rem;display:flex}.clarification form label{flex:1;margin:0}.composer{flex-direction:column;width:100%;display:flex;position:relative}.composer-shell{cursor:text;background:color-mix(in srgb, var(--muted) 30%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 10%, transparent);border-radius:var(--composer-radius);flex-direction:column;gap:.5rem;width:100%;padding:.5rem;transition:border-color .15s;display:flex}.composer-shell:focus-within{border-color:color-mix(in srgb, var(--foreground) 25%, transparent)}.composer .attachments{flex-wrap:wrap;gap:.375rem;display:flex}.composer .attachments:empty{display:none}.composer textarea{width:100%;min-height:2.5rem;max-height:12.5rem;font:inherit;color:var(--foreground);resize:none;caret-color:var(--primary);background:0 0;border:none;outline:none;margin:0;padding:.25rem .625rem;font-size:1rem;line-height:1.5rem}.composer textarea::placeholder{color:color-mix(in srgb, var(--muted-foreground) 60%, transparent)}.composer .actions{justify-content:space-between;margin:0}.message:empty{display:none}@media (max-width:48rem){.chat{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.sidebar{border-right:none;border-bottom:1px solid var(--border);max-height:40vh}}.messages-inner.empty .thread-footer{margin-top:0;position:static}
