:root{font-family:Crimson Text,Georgia,serif;line-height:1.6}body{--bg-primary: #f8f3e9;--bg-secondary: #fff;--bg-tertiary: #fdfbf7;--bg-quaternary: #f8f3e9;--text-primary: #2c1810;--text-secondary: #4a3a2e;--text-tertiary: #6b4d3c;--text-quaternary: #8a6d5c;--text-muted: #a08d7c;--border-primary: #d4c5b9;--border-secondary: #a8b8c9;--border-accent: #a8c9a1;--accent-primary: #6b4d3c;--accent-hover: #2c1810;--accent-visited: #8a6d5c;--status-online-bg: #e8f5e3;--status-online-border: #a8c9a1;--status-online-text: #2c5f21;--status-offline-bg: #fef3e8;--status-offline-border: #d4a373;--status-offline-text: #8a5d2f;--message-visitor-bg: #f0f4f8;--message-visitor-border: #a8b8c9;--message-terra-bg: #f0f7ed;--message-terra-border: #a8c9a1;--shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);--shadow-md: 0 4px 12px rgba(0, 0, 0, .05);--vine-primary: #6b8e5f;--vine-secondary: #7a9d6e;--vine-tertiary: #5f7d53;--error-color: #c44545}body.dark-theme{--bg-primary: #010402;--bg-secondary: rgba(5, 12, 7, .85);--bg-tertiary: rgba(6, 14, 9, .9);--bg-quaternary: rgba(3, 7, 5, .8);--text-primary: #f2f7ef;--text-secondary: #d4eadc;--text-tertiary: #c9efd5;--text-quaternary: #b3d1bb;--text-muted: #8fb9a1;--border-primary: rgba(143, 238, 178, .15);--border-secondary: rgba(85, 198, 255, .35);--border-accent: rgba(165, 255, 203, .4);--accent-primary: linear-gradient(135deg, #a5ffcb, #4fd4a4);--accent-hover: linear-gradient(135deg, #b5ffd5, #5fe4b4);--accent-visited: #d6b4ff;--status-online-bg: rgba(36, 102, 73, .4);--status-online-border: rgba(143, 238, 178, .4);--status-online-text: #c9f1da;--status-offline-bg: rgba(112, 74, 18, .4);--status-offline-border: rgba(255, 197, 126, .4);--status-offline-text: #ffe2ba;--message-visitor-bg: rgba(10, 20, 13, .8);--message-visitor-border: rgba(85, 198, 255, .35);--message-terra-bg: rgba(10, 20, 13, .8);--message-terra-border: rgba(165, 255, 203, .4);--shadow-sm: 0 25px 80px rgba(0, 0, 0, .65);--shadow-md: 0 40px 120px rgba(2, 6, 4, .9);--vine-primary: #8fb9a1;--vine-secondary: #a5c9b5;--vine-tertiary: #7a9d8a;--error-color: #ff8a8a;background:radial-gradient(circle at 20% 20%,rgba(67,148,104,.35),transparent 55%),radial-gradient(circle at 80% 0%,rgba(33,78,52,.45),transparent 50%),linear-gradient(135deg,#030805,#050c07)}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;padding:1.5rem;display:flex;justify-content:center;position:relative;overflow-x:hidden;background-color:var(--bg-primary);color:var(--text-primary);transition:background-color .3s ease,color .3s ease}.theme-toggle{position:fixed;top:1.5rem;right:1.5rem;z-index:1000;padding:.75rem 1rem;border:1px solid var(--border-primary);border-radius:999px;background:var(--bg-secondary);color:var(--text-tertiary);cursor:pointer;font-size:.85rem;font-weight:600;transition:all .2s;box-shadow:var(--shadow-sm)}.theme-toggle:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.dark-theme .theme-toggle{color:var(--text-primary)}a{color:var(--text-tertiary);text-decoration:underline;transition:color .12s ease}a:hover{color:var(--accent-hover)}a:visited{color:var(--accent-visited)}.page{width:100%;max-width:1024px;display:flex;flex-direction:column;gap:1.5rem;position:relative;z-index:1}.hero{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:12px;padding:2rem;box-shadow:var(--shadow-md);display:flex;flex-direction:column;gap:1rem;position:relative}.dark-theme .hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 20%,rgba(122,197,162,.15),transparent 60%);pointer-events:none;border-radius:12px}.eyebrow{text-transform:uppercase;color:var(--text-tertiary);letter-spacing:.15em;font-size:.75rem;margin:0;font-weight:600}h1{margin:0;font-size:clamp(2rem,5vw,3rem);font-family:Playfair Display,serif;color:var(--text-primary);font-weight:700}.subheading{margin:0;max-width:620px;color:var(--text-secondary);line-height:1.6}.hero-copy{margin:.5rem 0 0;max-width:620px;color:var(--text-secondary);line-height:1.6}.coming-soon{margin:.4rem 0 0;color:var(--text-tertiary);font-style:italic}.status-dot{align-self:flex-start;padding:.5rem 1rem;border-radius:999px;font-size:.85rem;border:1px solid var(--status-online-border);color:var(--status-online-text);background:var(--status-online-bg)}.status-dot--offline{border-color:var(--status-offline-border);background:var(--status-offline-bg);color:var(--status-offline-text)}.status-dot--pending{border-color:var(--border-primary);background:var(--bg-secondary);color:var(--text-secondary)}.hero__status-cluster{display:flex;flex-direction:column;gap:1rem}.status-chain{position:relative;display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}.status-chain__toggle{display:inline-flex;align-items:center;gap:.65rem;border:1px solid var(--border-primary);border-radius:999px;padding:.35rem .85rem;background:var(--bg-secondary);color:var(--text-secondary);font-size:.85rem;cursor:pointer;transition:background .2s ease}.status-chain__toggle:hover,.status-chain__toggle:focus-visible{background:var(--bg-quaternary);color:var(--text-primary)}.dark-theme .status-chain__toggle{border-color:var(--border-secondary);background:var(--bg-quaternary);color:var(--text-tertiary)}.dark-theme .status-chain__toggle:hover,.dark-theme .status-chain__toggle:focus-visible{background:#ffffff14;color:var(--text-primary)}.status-chain__toggle-label{font-weight:600}.status-chain__dots,.status-chain__dot-group{display:flex;align-items:center;gap:.25rem}.status-chain__dot{width:10px;height:10px;border-radius:50%;border:1px solid transparent;background:var(--border-primary);position:relative}.status-chain__dot--online{background:var(--status-online-bg);border-color:var(--status-online-border)}.status-chain__dot--offline{background:var(--status-offline-bg);border-color:var(--status-offline-border)}.status-chain__dot--degraded{background:#ffefc9e6;border-color:var(--border-secondary)}.status-chain__dot--unknown{background:var(--bg-quaternary);border-color:var(--border-secondary);box-shadow:inset 0 0 0 1px #00000014}.status-chain__dot--locked{background:transparent;border-color:var(--text-secondary)}.status-chain__dot--locked:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;border-radius:1px;border:1px solid currentColor;transform:translate(-50%,-50%)}.status-chain__dot-connector{width:22px;height:2px;border-radius:999px;background:var(--border-primary);display:inline-block}.dark-theme .status-chain__dot-connector{background:var(--border-secondary)}.dark-theme .status-chain__dot--locked{border-color:var(--status-offline-border)}.status-chain__chevron{font-size:.75rem;color:var(--text-tertiary)}.status-chain__panel{position:absolute;top:calc(100% + .75rem);left:50%;transform:translate(-50%);width:clamp(520px,85vw,1100px);max-width:95vw;max-height:80vh;border:1px solid var(--border-primary);border-radius:12px;background:var(--bg-tertiary);box-shadow:var(--shadow-md);padding:.5rem .75rem .75rem;z-index:5;overflow-x:auto;overflow-y:auto}@media(max-width:768px){.status-chain__panel{left:0;transform:none;width:clamp(320px,95vw,560px)}}.status-chain__panel-line{display:flex;align-items:center;gap:.5rem;flex-wrap:nowrap;overflow:visible;padding:.75rem 0}.status-chain__panel-item{display:flex;align-items:center;gap:.5rem;flex:0 0 auto}.status-chain__node{min-width:0;border-radius:10px;padding:.75rem 1rem;border:1px dashed var(--border-primary);background:var(--bg-quaternary);display:flex;flex-direction:column;gap:.15rem;box-shadow:inset 0 1px #ffffff1a;width:155px;min-width:155px}.status-chain__node--online{border-color:var(--status-online-border);background:var(--status-online-bg);color:var(--status-online-text)}.status-chain__node--offline{border-color:var(--status-offline-border);background:var(--status-offline-bg);color:var(--status-offline-text)}.status-chain__node--degraded{border-color:var(--border-secondary);background:#ffefc999;color:var(--text-secondary)}.status-chain__node--unknown{opacity:.85}.status-chain__node--locked{border-style:dashed;border-color:var(--border-secondary);background:var(--bg-secondary);color:var(--text-secondary)}.status-chain__label{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-tertiary)}.status-chain__value{font-size:1rem;font-weight:600;color:var(--text-primary)}.status-chain__node p{margin:0;font-size:.75rem;color:var(--text-secondary)}.status-chain__latency{font-size:.7rem;color:var(--text-muted)}.status-chain__connector{width:28px;height:2px;background:var(--border-primary);border-radius:999px;flex-shrink:0}.dark-theme .status-chain__connector{background:var(--border-secondary)}.status-chain__panel-connector{width:32px;height:2px;border-radius:999px;background:var(--border-primary);flex-shrink:0;align-self:center}.dark-theme .status-chain__panel-connector{background:var(--border-secondary)}.status-chain__panel-line .status-chain__connector,.status-chain__panel .status-chain__connector{display:none}.terrarium-intro,.access-panel,.chat-panel{background:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:12px;padding:1.75rem;box-shadow:var(--shadow-sm)}.terrarium-intro h2{margin:0 0 .5rem;color:var(--text-primary);font-family:Playfair Display,serif;font-size:1.8rem}.terrarium-intro p{margin:0;color:var(--text-secondary)}.access-form{display:flex;gap:1rem;flex-wrap:wrap;align-items:flex-end}label{display:flex;flex-direction:column;flex:1;font-weight:600;color:var(--text-tertiary);gap:.4rem}input,textarea{border:1px solid var(--border-primary);border-radius:8px;padding:.85rem;background:var(--bg-quaternary);color:var(--text-primary);font-family:inherit;transition:border-color .2s}input:focus,textarea:focus{outline:none;border-color:var(--text-tertiary)}button{padding:.9rem 1.6rem;border:none;border-radius:8px;background:var(--accent-primary);color:var(--text-primary);font-weight:700;cursor:pointer;transition:all .2s;font-family:inherit}.dark-theme button{color:#042311}button:hover:not([disabled]){transform:translateY(-1px);filter:brightness(1.1)}button[disabled]{opacity:.6;cursor:not-allowed}.error{margin-top:.75rem;color:var(--error-color)}.chat-panel{display:flex;flex-direction:column;gap:1rem;min-height:60vh}.chat-placeholder{flex:1;border:1px dashed var(--border-primary);border-radius:8px;color:var(--text-muted);display:grid;place-items:center;text-align:center;padding:2rem}.chat-meta{display:flex;justify-content:space-between;gap:1rem;align-items:center;font-size:.85rem;color:var(--text-tertiary);flex-wrap:wrap}.socket-indicator{padding:.25rem .8rem;border-radius:999px;border:1px solid var(--status-online-border);text-transform:capitalize;background:var(--status-online-bg);color:var(--status-online-text)}.socket-indicator--idle,.socket-indicator--error{border-color:var(--status-offline-border);background:var(--status-offline-bg);color:var(--status-offline-text)}.reset-btn{background:transparent;border:1px solid var(--border-primary);border-radius:999px;color:var(--text-tertiary);padding:.35rem 1rem;font-size:.8rem}.reset-btn:hover:not([disabled]){background:var(--bg-quaternary);transform:none}.scroll-controls{display:flex;gap:.5rem;align-items:center;justify-content:flex-end;margin-top:.35rem}.scroll-controls button{border:1px solid var(--border-primary);background:var(--bg-secondary);color:var(--text-tertiary);border-radius:8px;padding:.35rem .75rem;cursor:pointer}.scroll-controls__status{font-size:.85rem;color:var(--text-muted)}.scroll-controls__badge{border:none;background:var(--accent);color:var(--button-primary-text);padding:.35rem .75rem;border-radius:999px;font-weight:600;cursor:pointer;box-shadow:var(--shadow-sm)}.log{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.75rem;border:1px solid var(--border-primary);border-radius:8px;padding:1rem;background:var(--bg-quaternary)}.message{padding:.95rem;border-radius:8px;border:1px solid var(--border-primary);background:var(--bg-tertiary)}.message--visitor{align-self:flex-end;border-color:var(--message-visitor-border);background:var(--message-visitor-bg)}.message--terra{align-self:flex-start;border-color:var(--message-terra-border);background:var(--message-terra-bg)}.message__thoughts{margin-top:.5rem;border:1px dashed var(--border-primary);border-radius:8px;padding:.5rem .75rem;background:var(--bg-quaternary)}.message__thoughts button{background:transparent;border:none;color:var(--text-tertiary);font-weight:600;cursor:pointer;padding:0}.message__thoughts-body{margin-top:.5rem;border-top:1px solid var(--border-primary);padding-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message__thoughts-body pre{margin:0;white-space:pre-wrap;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9rem;color:var(--text-tertiary)}.message__thoughts--open{box-shadow:var(--shadow-sm)}.message__thoughts-inline{margin:.25rem 0 0;font-size:.9rem;color:var(--text-muted)}.message--streaming{border-style:dashed;opacity:.95}.message--system{align-self:stretch;border-style:dashed;border-color:var(--border-accent);text-align:center;color:var(--text-tertiary);background:var(--bg-quaternary)}.message__meta{display:flex;justify-content:space-between;font-size:.8rem;color:var(--text-quaternary);margin-bottom:.4rem}.message p{margin:0;white-space:pre-wrap}.empty{margin:0;color:var(--text-muted)}.composer{display:flex;flex-direction:column;gap:.75rem;border:1px solid var(--border-primary);border-radius:8px;padding:1rem;background:var(--bg-tertiary)}.composer textarea{min-height:48px;max-height:200px;overflow-y:auto;font-size:1rem;resize:vertical}.status-row{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.85rem;color:var(--text-tertiary)}.assistant-stream{margin:.75rem 0;padding:.75rem 1rem;border:1px dashed var(--border-accent);border-radius:8px;background:var(--bg-quaternary);color:var(--text-secondary)}.assistant-stream__label{font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-tertiary);margin-bottom:.35rem}.assistant-stream__body{margin:0;white-space:pre-wrap;line-height:1.5}.typing-indicator{display:inline-flex;gap:.3rem;margin-bottom:.4rem}.typing-indicator span{width:8px;height:8px;border-radius:50%;background:var(--text-tertiary);animation:bounce 1.3s infinite ease-in-out}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-6px);opacity:1}}.vine-decoration{position:fixed;pointer-events:none;z-index:0;opacity:.3;transition:opacity .3s ease}.vine-decoration path{stroke:var(--vine-primary);transition:stroke .3s ease}.vine-decoration ellipse{transition:fill .3s ease}.vine-decoration ellipse:nth-child(2n){fill:var(--vine-secondary)}.vine-decoration ellipse:nth-child(odd){fill:var(--vine-primary)}.vine-decoration ellipse:nth-child(3n){fill:var(--vine-tertiary)}.vine-left{left:0;top:0;height:100%;width:150px}.vine-right{right:0;top:0;height:100%;width:150px}.vine-top-corner-left{left:0;top:0;width:200px;height:200px}.vine-top-corner-right{right:0;top:0;width:200px;height:200px}.vine-bottom-corner-left{left:0;bottom:0;width:250px;height:250px}.vine-bottom-corner-right{right:0;bottom:0;width:250px;height:250px}@media(max-width:800px){.vine-decoration{opacity:.15}.vine-left,.vine-right{width:80px}.theme-toggle{position:static;margin:0 auto 1rem;display:block;font-size:.75rem;padding:.5rem .75rem}}@media(max-width:640px){body{padding:1rem}.hero,.terrarium-intro,.access-panel,.chat-panel{padding:1.25rem}.access-form{flex-direction:column}button{width:100%}}
