:root{color:#17202a;background:#eef2f7;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,textarea{font:inherit}button{border:0}.app-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr}.topbar{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(16px,4vw,48px);background:#fbfcfe;border-bottom:1px solid #d9e0ea}.eyebrow{margin:0 0 4px;color:#4f5f73;font-size:.76rem;font-weight:700;letter-spacing:0;text-transform:uppercase}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(1.35rem,2.2vw,1.9rem);line-height:1.1}.session-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.signed-in-user{max-width:min(36vw,320px);overflow:hidden;color:#344154;font-size:.92rem;text-overflow:ellipsis;white-space:nowrap}.icon-button,.send-button,.secondary-button{display:inline-grid;place-items:center;color:#fff;background:#1b5f7a;cursor:pointer}.icon-button{width:40px;height:40px;border-radius:8px}.send-button{width:48px;min-width:48px;border-radius:8px}.secondary-button{min-height:40px;grid-auto-flow:column;gap:8px;padding:0 12px;border-radius:8px;font-size:.86rem;font-weight:700}.secondary-button input{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.icon-button:hover,.send-button:hover,.primary-button:hover,.secondary-button:hover{background:#13465c}.icon-button:disabled,.send-button:disabled,.primary-button:disabled,.secondary-button[aria-disabled=true]{cursor:not-allowed;opacity:.65}.icon-button.subtle{color:#344154;background:#e8eef6}.icon-button.subtle:hover{background:#d9e2ee}.chat-layout{width:min(1120px,100%);min-height:0;margin:0 auto;padding:20px clamp(12px,3vw,28px);display:grid;grid-template-rows:1fr auto;gap:16px}.message-list{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:4px}.message{width:min(820px,92%);padding:16px;border:1px solid #d7dee8;border-radius:8px;background:#fff;box-shadow:0 10px 28px #1f2d3d14}.message.user{align-self:flex-end;color:#fff;background:#2751a3;border-color:#2751a3}.message.assistant{align-self:flex-start}.message.pending{display:inline-flex;align-items:center;gap:8px;width:fit-content}.message p{margin-bottom:0;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.empty-state{min-height:260px;display:grid;place-content:center;padding:28px;color:#415168;text-align:center}.empty-state h2{margin-bottom:6px;color:#17202a;font-size:1.6rem}.empty-state p{margin-bottom:0;overflow-wrap:anywhere}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 0;padding-top:12px;border-top:1px solid #e5eaf1}.metrics div{min-width:0}.metrics dt{color:#65758a;font-size:.72rem;font-weight:700;text-transform:uppercase}.metrics dd{margin:4px 0 0;overflow:hidden;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}.composer{padding:14px;border:1px solid #d4dce8;border-radius:8px;background:#fbfcfe;box-shadow:0 12px 28px #1f2d3d17}.document-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:10px;border:1px solid #dce4ee;border-radius:8px;background:#fff}.document-summary{min-width:0;display:flex;align-items:center;gap:10px;color:#1b5f7a}.document-summary div{min-width:0;display:grid;gap:2px}.document-summary strong,.document-summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-summary strong{color:#17202a;font-size:.92rem}.document-summary span{color:#65758a;font-size:.78rem}.document-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.composer-controls{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:12px;align-items:end;margin-bottom:12px}.model-label{display:grid;gap:8px;color:#344154;font-size:.86rem;font-weight:700}.model-pricing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.model-pricing div{min-width:0;padding:9px 10px;border:1px solid #dce4ee;border-radius:8px;background:#fff}.model-pricing dt{color:#65758a;font-size:.68rem;font-weight:700;text-transform:uppercase}.model-pricing dd{margin:3px 0 0;overflow:hidden;color:#223044;font-size:.82rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.prompt-label{display:block;margin-bottom:8px;color:#344154;font-size:.86rem;font-weight:700}.composer-row{display:flex;gap:10px;align-items:stretch}textarea,input,select{width:100%;border:1px solid #c7d1df;border-radius:8px;color:#17202a;background:#fff;outline:none}textarea{min-height:76px;max-height:220px;padding:12px;line-height:1.45;resize:vertical}input{min-height:44px;margin-top:7px;padding:0 12px}select{min-height:44px;padding:0 36px 0 12px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#344154 50%),linear-gradient(135deg,#344154 50%,transparent 50%);background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}textarea:focus,input:focus,select:focus{border-color:#1b5f7a;box-shadow:0 0 0 3px #1b5f7a24}.auth-shell,.status-screen{min-height:100vh;display:grid;place-items:center;padding:18px}.auth-panel,.status-panel{width:min(420px,100%);padding:24px;border:1px solid #d7dee8;border-radius:8px;background:#fff;box-shadow:0 16px 36px #1f2d3d1f}.status-panel{display:flex;align-items:center;gap:14px}.status-panel h1{font-size:1.1rem}.status-panel p{margin-bottom:0;color:#4f5f73}.auth-form{display:grid;gap:16px;margin-top:22px}.auth-form label{color:#344154;font-size:.9rem;font-weight:700}.primary-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;color:#fff;background:#1b5f7a;cursor:pointer;font-weight:700}.form-error{margin:0;color:#a12828;font-size:.9rem}.spin{animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:700px){.topbar{align-items:flex-start;flex-direction:column}.session-actions{width:100%;justify-content:space-between}.signed-in-user{max-width:calc(100vw - 96px)}.message{width:100%}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.composer-controls,.model-pricing{grid-template-columns:1fr}.document-panel{align-items:stretch;flex-direction:column}.document-actions{justify-content:space-between}}
