:root{color-scheme:dark;font-family:Space Grotesk,sans-serif;line-height:1.5;font-weight:400;color:#e8eef7;background:#05070f}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#05070f;overflow:hidden}button,textarea{font:inherit}.app-shell{position:relative;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;padding:16px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;max-width:1320px;margin:0 auto;overflow:hidden}.header-zone{position:relative;z-index:50;overflow:visible;min-width:0}.app-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px;min-height:0;overflow:hidden}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at top left,rgba(56,189,248,.18),transparent 30%),radial-gradient(circle at top right,rgba(168,85,247,.16),transparent 28%),linear-gradient(180deg,#05070f,#0b1020);z-index:-1}.header,.chat-panel,.side-nav{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0a0f1cc7;border:1px solid rgba(148,163,184,.18);border-radius:20px;box-shadow:0 24px 80px #00000059}.side-nav{padding:22px 20px;min-height:0;overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.45) rgba(15,23,42,.5)}.side-nav::-webkit-scrollbar{width:8px}.side-nav::-webkit-scrollbar-track{background:#0f172a80;border-radius:4px}.side-nav::-webkit-scrollbar-thumb{background:#94a3b873;border-radius:4px}.side-nav-eyebrow{margin:0 0 8px;font-family:IBM Plex Mono,monospace;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:#67e8f9}.side-nav-title{margin:0;font-size:1.1rem;font-weight:600;color:#f1f5f9}.header-back-link{display:inline-flex;align-items:center;gap:4px;margin-bottom:10px;color:#94a3b8;font-family:IBM Plex Mono,monospace;font-size:.74rem;letter-spacing:.04em;font-weight:500;text-decoration:none;transition:color .15s ease,gap .15s ease}.header-back-link:hover{color:#67e8f9;gap:7px}.header-back-icon{font-size:1rem;line-height:1}.side-nav-all-projects{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;margin-bottom:18px;padding:4px 2px;color:#94a3b8;font-size:.82rem;font-weight:500;text-decoration:none;transition:color .15s ease,gap .15s ease}.side-nav-all-projects:hover{color:#67e8f9;gap:7px}.side-nav-all-projects-icon{font-size:1.05rem;line-height:1}.side-nav-header{margin-bottom:14px}.side-nav-header .side-nav-eyebrow{margin-bottom:6px}.side-nav-panel-heading{margin:0 0 8px;font-size:1rem;font-weight:600;color:#e2e8f0}.side-nav-section-label{margin:0 0 10px;font-family:IBM Plex Mono,monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#67e8f9}.side-nav-section-label+.side-nav-note{margin-top:0}.side-nav-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;padding:4px;border-radius:12px;background:#0f172aa6;border:1px solid rgba(148,163,184,.14)}.side-nav-tab{padding:8px 10px;border:none;border-radius:9px;background:transparent;color:#94a3b8;font-size:.84rem;font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease}.side-nav-tab:hover{color:#e2e8f0}.side-nav-tab.active{background:#67e8f924;color:#e2e8f0;box-shadow:inset 0 0 0 1px #67e8f938}.side-nav-panel .side-nav-intro{margin-top:0;margin-bottom:16px}.side-nav-intro{margin:0 0 14px;color:#94a3b8;font-size:.88rem;line-height:1.45}.tool-card{padding:12px 14px;margin-bottom:10px;border-radius:14px;border:1px solid rgba(148,163,184,.16);background:#0f172a8c}.tool-card h3,.tool-card h4{margin:0 0 8px;font-size:.95rem;color:#e2e8f0}.tool-tag{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;font-family:IBM Plex Mono,monospace;font-size:.68rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle;color:#67e8f9;background:#67e8f91f;border:1px solid rgba(103,232,249,.24)}.side-nav-note-warn{margin-top:12px}.side-nav-list{margin:0 0 14px;padding-left:18px;color:#94a3b8;font-size:.86rem;line-height:1.5}.side-nav-list li+li{margin-top:8px}.side-nav-list code{font-family:IBM Plex Mono,monospace;font-size:.78rem;color:#e2e8f0}.side-nav-intro code{font-family:IBM Plex Mono,monospace;font-size:.82rem;color:#e2e8f0}.side-nav-stack{margin:0;padding:12px 14px;border-radius:12px;background:#1e293b8c;border:1px solid rgba(148,163,184,.14);color:#94a3b8;font-size:.82rem;line-height:1.5}.side-nav-stack-label{display:block;margin-bottom:6px;font-family:IBM Plex Mono,monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#67e8f9}.side-nav-reference{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:#1e293b8c;border:1px solid rgba(148,163,184,.14);color:#94a3b8;font-size:.82rem;line-height:1.5}.side-nav-reference a,.side-nav-link{color:#67e8f9;text-decoration:none}.side-nav-reference a:hover,.side-nav-link:hover{text-decoration:underline}.side-nav-dev-note{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#0e74902e;border:1px solid rgba(103,232,249,.28);color:#cbd5e1;font-size:.84rem;line-height:1.5}.side-nav-admin{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#1e293b8c;border:1px solid rgba(148,163,184,.18);color:#94a3b8;font-size:.84rem;line-height:1.5}.side-nav-admin p{margin:0}.side-nav-admin code{font-family:IBM Plex Mono,monospace;font-size:.76rem;color:#cbd5e1}.side-nav-admin-button{margin-top:12px;padding:8px 14px;border-radius:10px;border:1px solid rgba(148,163,184,.28);background:#0f172aa6;color:#cbd5e1;font-size:.82rem;font-weight:500;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}.side-nav-admin-button:hover:not(:disabled){border-color:#94a3b873;background:#1e293bd9;color:#e2e8f0}.side-nav-admin-button:disabled{opacity:.55;cursor:not-allowed}.side-nav-admin-status{margin:10px 0 0!important;font-family:IBM Plex Mono,monospace;font-size:.76rem;color:#86efac}.side-nav-dev-note p{margin:0}.side-nav-dev-note p+p{margin-top:10px}.side-nav-dev-note-label{margin:0 0 8px!important;font-family:IBM Plex Mono,monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#67e8f9}.side-nav-dev-note-hint{font-size:.78rem!important;color:#94a3b8!important}.side-nav-dev-note code{font-family:IBM Plex Mono,monospace;font-size:.76rem;color:#e2e8f0}.side-nav-dev-note strong{color:#e2e8f0}.tool-card p{margin:0;font-size:.88rem;color:#94a3b8;line-height:1.45}.tool-card p+p{margin-top:10px}.tool-card code{font-family:IBM Plex Mono,monospace;font-size:.78rem;color:#cbd5e1}.tool-example{font-family:IBM Plex Mono,monospace;font-size:.78rem!important;color:#cbd5e1!important}.side-nav-note{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:#78350f38;border:1px solid rgba(251,191,36,.28);color:#fde68a;font-size:.8rem;line-height:1.4}.side-nav-note strong{color:#fef3c7}.header{padding:16px 22px;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-shrink:0;overflow:visible}.header-main{display:grid;gap:12px;flex:1;min-width:0}@media(min-width:1025px){.header-main{grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:start}.header-project{grid-column:1}.header-portfolio{grid-column:2;grid-row:1;padding:0;border:none;align-self:start}.subtitle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.header-actions{flex-direction:column;align-items:center;min-width:132px}.header-actions button{padding:8px 14px;font-size:.88rem}}.header-portfolio{position:relative;padding-top:12px;overflow:visible}.header-portfolio:not(.expanded){padding-top:10px}.header-portfolio-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:188px;padding:8px 12px;border:1px solid rgba(165,180,252,.24);border-radius:12px;background:#a5b4fc14;text-align:left;cursor:pointer;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.header-portfolio-toggle:hover{border-color:#a5b4fc66;background:#a5b4fc1f}.header-portfolio.expanded .header-portfolio-toggle{border-color:#a5b4fc73;background:#a5b4fc24;box-shadow:0 0 0 1px #a5b4fc1f}.header-portfolio-toggle-text{display:flex;flex-direction:column;gap:1px;min-width:0}.header-portfolio-toggle-eyebrow{font-family:IBM Plex Mono,monospace;font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:#a5b4fc;line-height:1.2}.header-portfolio-toggle-title{font-size:.88rem;font-weight:600;color:#f1f5f9;line-height:1.25}.header-portfolio-toggle-hint{font-size:.72rem;color:#94a3b8;line-height:1.25}.header-portfolio-toggle-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:.75rem;line-height:1;color:#a5b4fc;transform:rotate(-90deg);transition:transform .3s ease}.header-portfolio.expanded .header-portfolio-toggle-icon{transform:rotate(0)}.header-portfolio-panel{position:absolute;top:calc(100% + 8px);right:0;width:min(300px,calc(100vw - 48px));z-index:60;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-6px);transition:opacity .25s ease,transform .25s ease,visibility .25s ease}.header-portfolio-panel.expanded{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}.header-portfolio-content{padding:14px 16px;border:1px solid rgba(148,163,184,.24);border-radius:14px;background:#0a0f1cfa;box-shadow:0 20px 50px #00000080;max-height:min(260px,50vh);overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.45) rgba(15,23,42,.5)}.header-portfolio-panel:not(.expanded) .header-portfolio-content{pointer-events:none}.header-portfolio-content::-webkit-scrollbar{width:6px}.header-portfolio-content::-webkit-scrollbar-thumb{background:#94a3b873;border-radius:4px}.header-portfolio-content .header-name{font-size:1.05rem}.header-portfolio-content .header-role{font-size:.82rem;margin-top:2px}.header-portfolio-note{margin:8px 0 0;font-family:IBM Plex Mono,monospace;font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:#94a3b8}.header-portfolio-content .header-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.header-portfolio-content .header-link{justify-content:center;font-size:.78rem;padding:6px 8px}.header-portfolio-eyebrow{margin:0 0 6px;font-family:IBM Plex Mono,monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#a5b4fc}.header-name{margin:0;font-size:1.35rem;font-weight:600;color:#f8fafc}.header-role{margin:4px 0 0;color:#cbd5e1;font-size:.95rem}.header-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.header-link{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;border:1px solid rgba(103,232,249,.28);background:#67e8f914;color:#67e8f9;font-size:.84rem;font-weight:500;text-decoration:none;transition:background .15s ease,border-color .15s ease}.header-link:hover{background:#67e8f929;border-color:#67e8f96b}.header-project{min-width:0}.eyebrow{margin:0 0 4px;font-family:IBM Plex Mono,monospace;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:#67e8f9}.header h1{margin:0;font-size:clamp(1.35rem,2.2vw,1.9rem);line-height:1.15}.subtitle{margin:6px 0 0;color:#94a3b8;max-width:100%;font-size:.86rem;line-height:1.4}.header-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0;align-self:center}.secondary-button,.ghost-button,.composer-input-row button{border-radius:999px;padding:10px 18px;cursor:pointer;transition:transform .15s ease,opacity .15s ease}.secondary-button,.composer-input-row button{border:none;background:linear-gradient(135deg,#22d3ee,#6366f1);color:#041018;font-weight:600}.ghost-button{border:1px solid rgba(148,163,184,.35);background:transparent;color:#e2e8f0}.secondary-button:disabled,.ghost-button:disabled,.composer-input-row button:disabled{opacity:.55;cursor:not-allowed}.secondary-button:not(:disabled):hover,.composer-input-row button:not(:disabled):hover{transform:translateY(-1px)}.chat-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;min-height:0;overflow:hidden}.meta-bar{display:flex;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid rgba(148,163,184,.12);color:#94a3b8;font-family:IBM Plex Mono,monospace;font-size:.82rem}.status-pill{color:#86efac}.messages{padding:20px;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:16px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.45) rgba(15,23,42,.5)}.messages::-webkit-scrollbar{width:8px}.messages::-webkit-scrollbar-track{background:#0f172a80;border-radius:4px}.messages::-webkit-scrollbar-thumb{background:#94a3b873;border-radius:4px}.messages::-webkit-scrollbar-thumb:hover{background:#94a3b8a6}.empty-state{margin:auto;max-width:48ch;color:#94a3b8}.composer{display:flex;flex-direction:column;gap:12px;padding:20px;border-top:1px solid rgba(148,163,184,.12)}.composer-suggestions{display:flex;flex-direction:column;gap:0}.composer-suggestions-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0;border:none;background:transparent;font-family:IBM Plex Mono,monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#64748b;cursor:pointer;transition:color .2s ease}.composer-suggestions-toggle:hover{color:#94a3b8}.composer-suggestions-icon{font-size:.85rem;line-height:1;transform:rotate(-90deg);transition:transform .35s ease}.composer-suggestions:has(.composer-suggestions-panel.expanded) .composer-suggestions-icon{transform:rotate(0)}.composer-suggestions-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s ease}.composer-suggestions-panel.expanded{grid-template-rows:1fr}.composer-suggestions-panel>.prompt-chips{overflow:hidden;min-height:0;opacity:0;transition:opacity .3s ease}.composer-suggestions-panel.expanded>.prompt-chips{opacity:1;padding-top:8px}.composer-suggestions-panel:not(.expanded)>.prompt-chips{pointer-events:none}.prompt-chips{display:flex;flex-wrap:wrap;gap:8px}.prompt-chip{font-size:.82rem;line-height:1.35;text-align:left;padding:7px 12px;border-radius:999px;border:1px solid rgba(148,163,184,.22);background:#0f172a73;color:#94a3b8;cursor:pointer;transition:border-color .15s ease,color .15s ease,background .15s ease}.prompt-chip:hover:not(:disabled){border-color:#22d3ee66;color:#e2e8f0;background:#22d3ee14}.prompt-chip:disabled{opacity:.55;cursor:not-allowed}.composer-input-row{display:grid;grid-template-columns:1fr auto;gap:12px}.composer-input-row textarea{resize:none;height:84px;max-height:84px;overflow-y:auto;padding:14px 16px;border-radius:16px;border:1px solid rgba(148,163,184,.18);background:#020617d9;color:#e2e8f0}.composer-input-row textarea:focus{outline:2px solid rgba(34,211,238,.35);border-color:#22d3ee8c}.message{max-width:85%;padding:16px 18px;border-radius:18px;border:1px solid rgba(148,163,184,.12)}.message.user{align-self:flex-end;background:#6366f12e}.message.assistant{align-self:flex-start;background:#0f172ae6}.message-label{font-family:IBM Plex Mono,monospace;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#67e8f9;margin-bottom:8px}.message p{margin:0;white-space:pre-wrap}.message-image{display:block;margin-top:12px;max-width:100%;max-height:min(400px,50vh);object-fit:contain;border-radius:12px;border:1px solid rgba(148,163,184,.25)}.message-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;font-size:.82rem;color:#94a3b8}.confidence.high{color:#86efac}.confidence.medium{color:#fde047}.confidence.low{color:#fca5a5}.source{font-family:IBM Plex Mono,monospace}.loading-message p{color:#cbd5e1}.error-banner{margin:0 20px;padding:12px 14px;border-radius:12px;background:#7f1d1d59;border:1px solid rgba(248,113,113,.35);color:#fecaca}@media(prefers-reduced-motion:reduce){.header-portfolio-panel,.header-portfolio-content,.header-portfolio-toggle,.header-portfolio-toggle-icon,.composer-suggestions-panel,.composer-suggestions-panel>.prompt-chips,.composer-suggestions-icon{transition:none;transform:none}}@media(max-width:1024px){.header{flex-direction:column;align-items:stretch;gap:14px;padding:18px}.header-main{display:flex;flex-direction:column;gap:14px;width:100%}.header-project,.header-portfolio{width:100%}.header-portfolio{padding-top:12px;border-top:1px solid rgba(148,163,184,.16)}.header-portfolio-toggle{min-width:0}.header-portfolio-panel{position:static;width:100%;transform:none;display:grid;grid-template-rows:0fr;visibility:visible;opacity:1;pointer-events:auto;transition:grid-template-rows .3s ease}.header-portfolio-panel.expanded{transform:none}.header-portfolio-panel:not(.expanded){pointer-events:none}.header-portfolio-panel.expanded{grid-template-rows:1fr}.header-portfolio-content{overflow:hidden;min-height:0;box-shadow:none;border-top:none;border-radius:0 0 12px 12px;background:#0f172a59;max-height:none}.header-portfolio.expanded .header-portfolio-toggle{border-radius:12px 12px 0 0;border-bottom-color:#94a3b81a}.header-portfolio-panel.expanded .header-portfolio-content{max-height:min(240px,45vh);overflow-y:auto}.header-actions{width:100%;flex-direction:column;align-items:center;gap:10px;min-width:0}.header-actions button{width:auto;min-width:140px}.subtitle{display:block;-webkit-line-clamp:unset;overflow:visible}}@media(max-width:900px){body{overflow:auto}.app-shell{height:auto;min-height:100vh;min-height:100dvh;max-height:none;overflow:visible;padding:16px;gap:16px}.app-layout{grid-template-columns:1fr;overflow:visible;gap:16px}.chat-panel{order:1;min-height:min(60vh,560px)}.side-nav{order:2;max-height:none;overflow:visible}}@media(max-width:768px){.app-shell{padding:12px;gap:12px}.header{padding:16px;gap:14px}.header-main{gap:14px}.header h1{font-size:clamp(1.45rem,5.5vw,2rem)}.side-nav{padding:18px 16px}.meta-bar{flex-wrap:wrap;padding:12px 16px}.messages,.composer{padding:16px}.composer-input-row{grid-template-columns:1fr}.composer-input-row button{width:100%}.message{max-width:100%}}
