@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, 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;--spacing:.25rem;--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,ui-sans-serif, system-ui, 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;-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{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{.relative{position:relative}.start{inset-inline-start:var(--spacing)}.table{display:table}}:root{--ink:#14231f;--muted:#6d7a75;--paper:#f4f1e9;--surface:#fffdf8;--line:#d9ddd7;--green:#174f42;--green-dark:#103a31;--mint:#dceae3;--gold:#c49a4a;--danger:#a43e32}*{box-sizing:border-box}html,body{min-height:100%;color:var(--ink);background:radial-gradient(circle at 12% 8%,#c49a4a17,#0000 29rem),linear-gradient(#f6f3ec 0%,#eeece5 100%);margin:0;font-family:Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif}button,textarea{font:inherit}button{color:inherit}.app-shell{grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.topbar{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:10;background:#f6f3ecdb;border-bottom:1px solid #14231f1f;justify-content:space-between;align-items:center;gap:24px;height:82px;padding:0 5vw;display:flex;position:sticky;top:0}.brand,.topbar-actions,.status,.new-chat,.message,.message-meta,.composer-note,.local-badge,.conversation-label{align-items:center;display:flex}.brand{gap:13px}.brand-mark,.avatar{background:var(--green);color:#fffdf8;letter-spacing:.08em;flex:none;place-items:center;font-weight:750;display:grid}.brand-mark{border-radius:12px 5px;width:42px;height:42px;font-size:13px;box-shadow:0 8px 20px #174f422e}.brand-name{letter-spacing:.055em;white-space:nowrap;font-family:Georgia,Times New Roman,serif;font-size:18px;font-weight:700}.brand-subtitle{color:var(--muted);margin-top:2px;font-size:12px}.topbar-actions{gap:12px}.status{border:1px solid var(--line);min-height:38px;color:var(--muted);background:#fffdf8bd;border-radius:999px;gap:8px;padding:0 14px;font-size:13px}.status-dot{background:#b2aaa0;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #b2aaa01f}.status.online .status-dot{background:#328267;box-shadow:0 0 0 4px #32826721}.new-chat{border:1px solid var(--green);background:var(--green);color:#fff;cursor:pointer;border-radius:10px;gap:7px;min-height:40px;padding:0 16px;font-size:13px;font-weight:650;transition:background .16s,transform .16s}.new-chat:hover{background:var(--green-dark);transform:translateY(-1px)}.chat{width:min(920px,100% - 40px);margin:0 auto;padding:36px 0 28px}.chat.welcome-mode{align-items:center;display:grid}.welcome{width:100%;padding:32px 0 42px;animation:.42s ease-out both enter}.local-badge{background:var(--mint);width:fit-content;color:var(--green);border:1px solid #174f4226;border-radius:6px;gap:8px;margin-bottom:24px;padding:7px 11px;font-size:12px;font-weight:650}.local-badge span{font-size:8px}.welcome h1{letter-spacing:-.045em;max-width:690px;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(42px,7vw,76px);font-weight:500;line-height:.98}.welcome>p{max-width:610px;color:var(--muted);margin:24px 0 34px;font-size:16px;line-height:1.6}.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.starter-card{text-align:left;border:1px solid var(--line);cursor:pointer;background:#fffdf8c7;border-radius:10px;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;min-height:96px;padding:18px;font-weight:600;line-height:1.35;transition:border-color .16s,background .16s,transform .16s;display:grid}.starter-card:hover{background:var(--surface);border-color:#174f4261;transform:translateY(-2px)}.starter-number{color:var(--gold);align-self:start;font-family:Georgia,Times New Roman,serif;font-size:13px}.starter-arrow{color:var(--green);font-size:17px}.messages{padding-bottom:12px}.conversation-label{color:#8a958f;letter-spacing:.13em;text-transform:uppercase;gap:16px;margin:4px 0 30px;font-size:11px;font-weight:700}.conversation-label span{background:var(--line);flex:1;height:1px}.message{align-items:flex-start;gap:15px;margin-bottom:28px;animation:.26s ease-out both enter}.message.user{flex-direction:row-reverse}.avatar{border-radius:9px 4px;width:38px;height:38px;font-size:10px}.message.user .avatar{color:#4d554f;background:#d8d2c5}.message-body{width:min(760px,100% - 54px)}.message.user .message-body{width:auto;max-width:min(680px,100% - 54px)}.message-meta{color:#8b938f;gap:10px;margin:0 0 7px 2px;font-size:11px}.message.user .message-meta{justify-content:flex-end}.message-meta strong{color:var(--ink);letter-spacing:.035em;font-size:12px}.message-content{border:1px solid var(--line);background:var(--surface);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:5px 14px 14px;padding:17px 19px;line-height:1.65;box-shadow:0 8px 28px #1f2d270b}.message.user .message-content{border-color:var(--green);background:var(--green);color:#fff;border-radius:14px 5px 14px 14px}.restoring{min-height:50vh;color:var(--muted);place-items:center;font-size:13px;display:grid}.thinking-dots{border:1px solid var(--line);background:var(--surface);border-radius:5px 14px 14px;align-items:center;gap:6px;width:fit-content;min-height:54px;padding:0 18px;display:flex}.restoring .thinking-dots{background:0 0;border:0}.thinking-dots span{background:var(--green);border-radius:50%;width:7px;height:7px;animation:1.1s ease-in-out infinite pulse}.thinking-dots span:nth-child(2){animation-delay:.14s}.thinking-dots span:nth-child(3){animation-delay:.28s}.composer-wrap{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:8;background:#f4f1e9e6;border-top:1px solid #14231f1a;width:100%;padding:14px max(20px,50vw - 460px) 18px;position:sticky;bottom:0}.composer{background:var(--surface);border:1px solid #cbd1cb;border-radius:14px;align-items:flex-end;gap:12px;min-height:58px;padding:9px 10px 9px 18px;display:flex;box-shadow:0 12px 36px #1f2d2714}.composer:focus-within{border-color:#174f42ad;box-shadow:0 12px 36px #1f2d2714,0 0 0 3px #174f4214}.composer textarea{resize:vertical;min-height:38px;max-height:150px;color:var(--ink);background:0 0;border:0;outline:0;flex:1;padding:9px 0 5px;line-height:1.45}.composer textarea::placeholder{color:#919993}.send{background:var(--green);color:#fff;cursor:pointer;border:0;border-radius:10px;flex:none;width:40px;height:40px;font-size:21px;line-height:1}.send:disabled{cursor:default;background:#c3c9c4}.composer-note{color:#8a938d;gap:18px;padding:8px 4px 0;font-size:10px}.composer-note .privacy{color:var(--green);margin-left:auto;font-weight:650}.error-banner{color:var(--danger);background:#faebe7;border:1px solid #a43e3240;border-radius:8px;align-items:center;gap:9px;margin:0 0 8px;padding:10px 13px;font-size:12px;display:flex}.error-banner span{background:var(--danger);color:#fff;border-radius:50%;place-items:center;width:19px;height:19px;font-weight:800;display:grid}@keyframes enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{50%{opacity:.5}}@media (max-width:700px){.topbar{gap:8px;height:72px;padding:0 16px}.brand{gap:9px}.brand-mark{width:38px;height:38px}.brand-name{font-size:15px}.brand-subtitle,.status span:not(.status-dot),.new-chat span{display:none}.status{justify-content:center;width:38px;padding:0}.topbar-actions{gap:7px}.new-chat{min-width:38px;min-height:38px;padding:0 10px;font-size:0}.new-chat:before{content:"+";font-size:20px}.chat{width:min(100% - 28px,920px);padding-top:24px}.welcome{padding-top:16px}.welcome h1{font-size:clamp(40px,13vw,58px)}.starter-grid{grid-template-columns:1fr}.starter-card{min-height:76px}.message{gap:10px}.avatar{width:32px;height:32px}.message-body,.message.user .message-body{max-width:calc(100% - 42px)}.message-content{padding:14px 15px;font-size:14px}.composer-wrap{padding:10px 12px 12px}.composer-note span:not(.privacy){display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
