/* One conversational front door; tools appear only when requested. */
body.chat-first{background:radial-gradient(ellipse at 15% 0,#151b35,transparent 55%),#070d15;color:#f1f6fc}.chat-first main{margin:0 auto;padding:0 24px;max-width:1180px;width:100%;min-width:0}.chat-first header{min-height:84px;border-bottom:1px solid #294557;display:flex;justify-content:space-between;font-size:18px;gap:16px}.casey-wordmark{font-weight:800;font-size:25px;text-decoration:none;color:#eefbff}.casey-wordmark span{display:block;font-size:14px;font-weight:450;color:#accbd8}.casey-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.chat-first #new-chat{width:auto;margin:0;padding:9px 14px;background:#123b4c}.chat-first #text-size{min-height:48px}.chat-first #casey-tools-menu{position:relative;z-index:50}.chat-first #casey-tools-menu>summary{cursor:pointer;list-style:none;min-height:48px;padding:10px 14px;background:#162b3b;border:1px solid #4f7489;border-radius:12px;font-weight:650;color:#f3f8ff}.chat-first #casey-tools-menu:not([open])>#app-sidebar{display:none!important}.chat-first #app-sidebar{position:absolute;inset:60px 0 auto auto;width:min(360px,calc(100vw - 40px));height:auto;max-height:75vh;overflow:auto;display:block;transform:none;visibility:visible;background:#0b1b29;border:1px solid #668da3;border-radius:16px;padding:20px;box-shadow:0 20px 70px #000b}.chat-first #app-sidebar>.brand{display:none}.chat-first #app-sidebar nav{display:grid;overflow:visible}.chat-first #app-sidebar .side-bottom{display:block;margin-top:24px}.chat-first #app-sidebar .sidebar-section{padding:0}.chat-first #app-sidebar .sidebar-heading{margin:0}.chat-first #app-sidebar .project-list{max-height:230px;overflow:auto}.chat-first #sidebar-toggle,.chat-first #sidebar-backdrop{display:none!important}.chat-first #home{padding:32px 0;max-width:950px;min-width:0}.chat-first #home>.chat-intro,.chat-first #home>.choices,.chat-first #home>.subtle{display:none}.chat-first .chat-shell{border:1px solid #426272;border-radius:24px;background:linear-gradient(115deg,#101d30,#0e2730);box-shadow:0 12px 65px #0004;overflow:hidden;max-width:none}.casey-presence{display:flex;align-items:center;gap:20px;padding:28px 30px 12px}.casey-presence img{object-fit:cover;flex:none;border:2px solid #80daed;border-radius:50%;width:88px;height:88px;box-shadow:0 0 25px #4bd0ee25}.casey-presence h1{font-size:clamp(27px,3.5vw,38px);letter-spacing:-.025em;line-height:1.2;margin:0 0 6px}.casey-presence p{font-size:20px;color:#c4dce7;margin:0}.chat-first .chat-thread{padding:16px 28px;min-height:100px}.chat-first .chat-composer{background:#0d1b29;border:0;border-top:1px solid #406074;border-radius:0;padding:22px 28px}.chat-first .chat-composer textarea{min-height:110px;border:1px solid #628797;padding:15px;border-radius:14px;background:#071320}.chat-first .chat-composer .primary{background:#8ee4ef;border-color:#8ee4ef;color:#06232f}.chat-first .casey-actions button{background:#b8e6ef;border-color:#b8e6ef;color:#08222e}.chat-first .casey-messages{font-size:max(20px,1rem)}.chat-first #home>.account-boundary:not([data-open]),.chat-first #home>.admin-journey:not([data-open]),.chat-first #home>.cloud-documents:not([data-open]),.chat-first #home>section[aria-label="Preferred cloud"]:not([data-open]){display:none}.chat-first #home>[data-open]{margin-top:24px}.chat-first .close-chat-tool{float:right;font-size:18px;margin:0 0 12px 12px}.casey-inline-panel{border:1px solid #7295a8;border-radius:16px;padding:20px;background:#071a27;margin:16px 0;overflow-wrap:anywhere}.casey-inline-panel h2{margin-top:0}.casey-inline-panel input,.casey-inline-panel textarea{font-size:max(20px,1rem)}.casey-inline-panel .check input{flex:none;width:22px;height:22px}.casey-inline-panel .source-card{padding:16px 0;border-top:1px solid #4a7187}.casey-inline-panel .source-card p{white-space:pre-wrap}.chat-first .view:not(#home){padding-top:24px}.chat-first footer{font-size:16px;padding:20px 0;justify-content:center}.chat-first footer span{display:none}.chat-first :focus-visible{outline:3px solid #91f0e2;outline-offset:4px}.chat-first [hidden]{display:none!important}@media(max-width:720px){.chat-first main{padding:0 12px}.chat-first header{padding:12px 0;gap:10px;align-items:center}.casey-wordmark{font-size:23px}.casey-header-actions{gap:6px;justify-content:flex-end}.chat-first #new-chat{font-size:16px;padding:8px 10px}.chat-first #text-size{font-size:14px;max-width:110px}.chat-first #casey-tools-menu>summary{font-size:16px;padding:10px}.chat-first #home{padding:16px 0}.casey-presence{padding:22px 18px 10px;gap:14px}.casey-presence img{width:72px;height:72px}.casey-presence p{font-size:18px}.chat-first .chat-thread{padding:12px 16px}.chat-first .chat-composer{padding:18px 16px}.chat-first .chat-composer>div{flex-direction:row;align-items:flex-end}.chat-first .chat-composer #idea-note{font-size:16px}.chat-first .message-avatar{display:none}.casey-inline-panel{padding:16px}.chat-first #app-sidebar{right:0}}@media(prefers-reduced-motion:reduce){.chat-first *{scroll-behavior:auto!important}}

.casey-messages .message-avatar img{border-radius:50%;object-fit:cover;width:42px;height:42px}
/* Storage internals stay out of the document task itself. */
.chat-first #account-storage-boundary>div{display:none}
.chat-first .chat-composer .primary{flex:0 0 auto;min-width:118px;white-space:nowrap;gap:12px}.chat-first .chat-composer>div>span{flex:1;min-width:0}
