:root{color:#000;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button{border:1px solid rgba(63,29,90,.24);background:#fff;color:#3f1d5a;border-radius:8px;padding:10px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:40px}button:hover,button.active{border-color:#71cadf;background:#71cadf29}button.primary{background:#3f1d5a;color:#fff;border-color:#3f1d5a;justify-content:center}button.primary:hover{background:#2d1242;border-color:#ffc100}button.primary:disabled{opacity:.65;cursor:wait}button.icon{width:40px;height:40px;justify-content:center;padding:0;flex:0 0 40px}button.danger{color:#a22222;border-color:#a2222240}button.danger:hover{background:#a2222214;border-color:#a22222}.google-button{width:100%;border:1px solid #3F1D5A;background:#3f1d5a;color:#fff;border-radius:8px;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;text-decoration:none;margin-top:18px}.google-button:hover{border-color:#ffc100;background:#2d1242}input,select{width:100%;border:1px solid rgba(63,29,90,.26);border-radius:8px;padding:10px 12px;background:#fff;color:#000}input:focus,select:focus{border-color:#71cadf;box-shadow:0 0 0 3px #71cadf47;outline:none}label{display:grid;gap:6px;font-weight:700;color:#3f1d5a}h1,h2,p{margin-top:0}h1{font-size:28px}h2{font-size:18px;margin-top:28px}.centered,.signin{min-height:100vh;display:grid;place-items:center;padding:24px}.signin{background:linear-gradient(135deg,#fff,#71cadf38 48%,#ffc1002e)}.signin-panel{width:min(460px,100%);background:#fff;border:1px solid rgba(63,29,90,.16);border-radius:8px;padding:28px;box-shadow:0 24px 60px #3f1d5a29}.signin-panel img{width:86px;height:auto}.signin-panel form{display:grid;gap:14px;margin:22px 0}.fineprint,.empty{color:#000000a3;line-height:1.5}.error{color:#a22222;font-weight:700}.success{color:#3f1d5a;font-weight:700}.shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}.sidebar{background:#3f1d5a;color:#fff;padding:20px;display:flex;flex-direction:column;gap:24px}.brand{display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:center}.brand img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:8px;padding:4px}.brand span{display:block;color:#71cadf;font-size:13px;margin-top:3px}.sidebar nav{display:grid;gap:8px}.sidebar button{justify-content:flex-start;background:transparent;color:#fff;border-color:#ffffff26}.sidebar button:hover,.sidebar button.active{background:#71cadf29;border-color:#ffc100}.workspace{min-width:0}.fred-layout{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.conversation-list{border-right:1px solid rgba(63,29,90,.14);padding:18px;background:#71cadf14;display:flex;flex-direction:column;gap:10px}.conversation-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;align-items:center}.conversation-row.active .item{border-color:#71cadf;background:#71cadf29}.conversation-list .item{justify-content:flex-start;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat{display:grid;grid-template-rows:auto 1fr auto;min-height:100vh}.chat header,.page{padding:24px}.chat header{border-bottom:1px solid rgba(63,29,90,.14);display:flex;justify-content:space-between;gap:20px;align-items:center}.chat header p{color:#000000a8;margin-bottom:0}.pill{border:1px solid rgba(63,29,90,.2);border-radius:999px;padding:6px 10px;color:#3f1d5a;background:#ffc10029;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messages{padding:24px;overflow:auto;display:flex;flex-direction:column;gap:14px}.message{max-width:850px;border:1px solid rgba(63,29,90,.14);border-radius:8px;padding:14px 16px;background:#fff;line-height:1.55;white-space:pre-wrap;box-shadow:0 10px 26px #3f1d5a12}.message.user{align-self:flex-end;background:#71cadf2e}.message.assistant{align-self:flex-start}.message p{margin-bottom:0}.citations{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.citations span{font-size:12px;border:1px solid rgba(63,29,90,.2);border-radius:999px;padding:4px 8px;color:#3f1d5a;background:#ffc10029}.chat-error{margin:0 24px 12px;color:#a22222;font-weight:700}.composer{border-top:1px solid rgba(63,29,90,.14);padding:16px 24px;display:grid;grid-template-columns:1fr auto;gap:10px;background:#3f1d5a0a}.page{max-width:1180px}.inline-form{display:grid;grid-template-columns:minmax(220px,1fr) 190px auto;gap:10px;margin:18px 0}.action-bar{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.draft-preview{border:1px solid #71CADF;border-left:6px solid #FFC100;border-radius:8px;padding:16px;background:#fff}.draft-preview pre{white-space:pre-wrap;color:#000;font-family:inherit;line-height:1.5}.table{border:1px solid rgba(63,29,90,.14);border-radius:8px;overflow:hidden;background:#fff}.row{display:grid;grid-template-columns:1.2fr .7fr .3fr .4fr;gap:14px;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(63,29,90,.08)}.row:last-child{border-bottom:0}.compact .row{grid-template-columns:1fr .4fr .7fr}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.status{border:1px solid rgba(63,29,90,.14);border-radius:8px;background:#fff;padding:14px;display:grid;gap:6px}.status svg{color:#71cadf}.status p{color:#000000a3;margin-bottom:0;line-height:1.45}@media (max-width: 860px){.shell,.fred-layout{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:10}.sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar button{justify-content:center}.conversation-list{border-right:0;border-bottom:1px solid #dfe5df}.chat{min-height:70vh}.chat header{align-items:flex-start;flex-direction:column}.composer,.inline-form,.row,.compact .row{grid-template-columns:1fr}}
