:root{font-family:Inter,Arial,sans-serif;color:#17202b;background:#f4f5f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:98px;padding:20px max(24px,calc((100vw - 1180px)/2));background:#101419;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:4px solid #c71932}.brand{color:inherit;text-decoration:none;display:flex;gap:14px;align-items:center}.brand img{width:56px;height:60px;object-fit:contain}.brand span{font-size:10px;letter-spacing:1.5px;font-weight:700}.brand strong{display:block;font-size:24px;letter-spacing:-.5px;margin-top:6px}.identity{display:flex;align-items:center;gap:12px;font-size:13px}header .quiet{color:#fff;border-color:#64707c}main{max-width:1180px;margin:auto;padding:44px 24px 30px}.intro{display:grid;grid-template-columns:1.25fr 1fr;gap:60px;align-items:center;margin-bottom:24px}.eyebrow{font-size:10px!important;font-weight:800;letter-spacing:2px;color:#ad1930;margin:0 0 12px}h1{font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-1.7px;margin:0 0 18px}p{line-height:1.55}.intro>div>p:last-child{font-size:15px;color:#59616b;max-width:530px}.scope{background:#fff;padding:24px;border:1px solid #dde1e6;border-left:3px solid #c71932;border-radius:12px}.scope strong{font-size:15px}.scope p{font-size:13px}.scope small,.small{font-size:12px;color:#68717c;line-height:1.5}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#348a60;margin-right:8px}.amber{background:#bd8928}.card{border:1px solid #dde1e6;border-radius:14px;background:#fff;padding:26px;box-shadow:0 3px 14px #17202b04}.chat{max-width:860px;margin:0 auto}.chat-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.chat-heading h2{margin:0;font-size:23px}.chat-heading .eyebrow{margin-bottom:6px}.badge{border:1px solid #dee5df;color:#39764e;background:#f1f7f2;border-radius:30px;padding:6px 11px;font-size:11px;white-space:nowrap}.examples{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.examples button{background:#f5f6f8;color:#47505d;border:1px solid #e1e4e9;padding:8px 11px;font-size:11px;min-height:34px}button,.button{border:0;border-radius:8px;background:#bb1730;color:#fff;cursor:pointer;padding:12px 17px;min-height:44px;font:700 13px Inter,Arial,sans-serif;text-decoration:none;display:inline-block}button:disabled{opacity:.55;cursor:wait}.quiet{background:transparent;border:1px solid #ccd2da;color:#47505d;font-size:12px}.message{border-radius:12px;padding:13px 17px;margin:12px 0;max-width:88%;font-size:14px;overflow-wrap:anywhere}.message p{white-space:pre-wrap;margin:0}.message.assistant{background:#f3f5f7;border:1px solid #e9edf0}.message.user{background:#17202b;color:#fff;margin-left:auto}.message.saved{border-left:3px solid #348a60}.message.bug{border-left:3px solid #bd8928}.message small{display:block;margin-bottom:5px;color:#6b7480;font-size:10px;text-transform:uppercase;letter-spacing:1px}.message.user small{color:#bdc5ce}#messages{max-height:560px;overflow-y:auto;scroll-behavior:smooth;padding:0 2px}label{display:block;font-size:12px;font-weight:600;margin-bottom:9px}label span{font-weight:400}input,textarea,select{display:block;width:100%;border:1px solid #cfd5dc;border-radius:8px;padding:11px 12px;font:14px Inter,Arial,sans-serif;color:#17202b;background:#fff;margin-top:7px}textarea{resize:vertical;min-height:110px;margin-top:15px;line-height:1.5}input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #bb1730;outline-offset:3px}#chat-form{border-top:1px solid #e9edf0;padding-top:20px;margin-top:20px}.source{margin:12px 0;font-size:12px}.source summary{cursor:pointer;color:#69727c}.source label{margin-top:12px}.compose-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}.attach{margin:0;font-size:12px;color:#4f5965;cursor:pointer;border:1px solid #dce1e7;padding:11px;border-radius:8px}.attach input{display:none}#hint{margin-bottom:0}#status{font-size:13px;color:#a21b31;text-align:center;min-height:20px}#gate{max-width:650px;margin:30px auto}#gate h2{margin-top:0}#management{margin-top:42px}.section-heading{margin-bottom:18px}.section-heading h2{margin:0;font-size:24px}.section-heading a{font-size:12px;color:#a21b31}.manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}h3{font-size:18px;margin-top:0}.person,.bug-row,.activity-row{border-top:1px solid #e6e9ed;padding:15px 0;font-size:13px;overflow-wrap:anywhere}.person{display:flex;align-items:center;justify-content:space-between;gap:12px}.person p{margin:2px 0}.person small{color:#69727c}.person button{min-height:34px;padding:7px 11px}.bug-row p{white-space:pre-wrap}.bug-row small{color:#68717c}.bug-actions{display:flex;gap:7px;flex-wrap:wrap}.bug-actions button{padding:8px 11px;min-height:36px}.bug-row a{color:#a21b31;font-size:12px;display:inline-block;margin-right:12px}.activity{margin-top:20px}.activity summary{font-size:14px;font-weight:700;cursor:pointer}.activity-row{font-size:12px}.activity-row pre{white-space:pre-wrap;font:12px Inter,Arial,sans-serif}#preview{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px}#preview img{width:68px;height:68px;object-fit:contain;background:#f4f5f7}#invite-result{background:#f3f7f4;border-radius:9px;padding:14px;margin-top:16px}footer{max-width:1180px;margin:auto;padding:20px 24px 28px;color:#8b929a;font-size:11px;display:flex;justify-content:space-between;gap:15px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:700px){header{height:86px;padding:16px}.brand img{width:43px;height:48px}.brand span{font-size:8px}.brand strong{font-size:20px}.identity{font-size:11px;max-width:110px;flex-direction:column;gap:5px}header .quiet{padding:4px 9px;min-height:28px}main{padding:28px 14px}.intro{grid-template-columns:1fr;gap:16px}.intro h1{font-size:35px}.scope{padding:17px}.scope p{margin:9px 0}.card{padding:19px 15px}.chat-heading h2{font-size:21px}.badge{font-size:10px;padding:6px 8px}.message{max-width:95%;font-size:13px}.manage-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start}.section-heading h2{font-size:21px}footer{flex-direction:column;padding:15px}#send{padding:12px 14px}.attach{font-size:11px}.compose-actions{gap:6px}}

/* App shell: the conversation scrolls, with the composer anchored below it. */
html,body{height:100%;overscroll-behavior:none}body{background:#fff;display:flex;flex-direction:column;height:100dvh}header{flex:none;height:76px;max-width:900px;width:100%;margin:auto;padding:12px 22px;border:0;background:#fff;color:#17202b;border-bottom:1px solid #eceef1}.app-brand{display:flex;align-items:center;gap:11px}.app-brand img{height:42px;width:42px;object-fit:contain}.app-brand strong{font-size:17px;display:block;letter-spacing:-.4px}.app-brand span{display:block;font-size:11px;color:#7b828d;margin-top:5px}.app-brand i{display:inline-block;background:#369267;width:6px;height:6px;border-radius:50%;margin-right:5px}.header-actions{display:flex;gap:8px}header .quiet{color:#69727c;border:0;background:#f6f7f8;min-height:36px;padding:9px 12px}main{padding:0;max-width:900px;width:100%;min-height:0;flex:1;display:flex;flex-direction:column;position:relative}#status{flex:none;margin:0;padding:0 18px;min-height:0;background:#fff7f7;font-size:12px}#status:not(:empty){padding:9px 18px}#workspace{min-height:0;flex:1;display:flex;flex-direction:column}.chat.card{display:flex;flex-direction:column;flex:1;width:100%;min-height:0;border:0;border-radius:0;box-shadow:none;padding:0 24px;margin:0;max-width:none}.chat-heading{text-align:center;display:flex;flex-direction:column;gap:0;margin:30px auto 14px;max-width:430px}.chat-heading h2{font-size:25px;letter-spacing:-.7px;margin-top:12px}.chat-heading p{font-size:13px;color:#7a818b;margin:8px 0 0}.welcome-mark{background:#bc1932;color:#fff;font-size:29px;font-weight:900;border-radius:16px;width:52px;height:52px;display:grid;place-items:center}.examples{margin:0 auto 12px;justify-content:center;max-width:620px}.examples button{background:#fff;border-color:#e4e6eb;border-radius:20px;font-weight:500;color:#646b75}#messages{flex:1;min-height:70px;max-height:none;padding:0 4px 14px;overflow-y:auto}.message{font-size:14px;max-width:87%;padding:12px 16px}.message.assistant{border:0;background:#f6f7f9}.message.user{background:#f7ecee;color:#242830;border-radius:16px 16px 3px 16px}.message.user small{color:#a45d69}.message small{font-size:9px}#chat-form{flex:none;margin:0;border:0;border-top:1px solid #f1f2f4;background:#fff;padding:12px 0 max(10px,env(safe-area-inset-bottom))}#chat-form>label.small{font-size:10px;margin:0}#game{font-size:11px;border:0;background:#f6f7f9;padding:7px 10px;margin-top:5px;min-height:30px}textarea{border:1px solid #e1e4e9;border-radius:15px;background:#fafbfc;min-height:58px;max-height:160px;font-size:14px;margin-top:9px;padding:12px 14px;resize:none}textarea:focus{outline:1px solid #bc1932;outline-offset:0}.compose-actions{margin-top:8px}#send{border-radius:24px;padding:10px 18px;min-height:38px}.attach{border:0;color:#6d7480;padding:8px 0;min-height:36px}#hint{text-align:center;font-size:9px;margin-top:9px;color:#959ba4}.source{margin:7px 0 0;font-size:10px}.source input{font-size:12px}.source p{margin:5px 0}footer{flex:none;justify-content:center;width:100%;padding:5px 10px;font-size:9px;background:#fff}#gate{margin:30px 18px}#app-drawer{position:fixed;z-index:20;top:68px;right:max(14px,calc((100vw - 860px)/2));background:#fff;border:1px solid #dfe3e8;box-shadow:0 10px 40px #17202b20;border-radius:14px;padding:18px;width:260px;display:flex;flex-direction:column;gap:10px}#app-drawer strong{font-size:13px;margin-bottom:8px}#app-drawer a{font-size:12px;color:#a21b31;padding:10px}#management{position:fixed;inset:78px max(14px,calc((100vw - 1160px)/2)) 12px;overflow-y:auto;z-index:10;background:#f5f6f8;border:1px solid #dfe3e8;border-radius:16px;padding:24px;margin:0;box-shadow:0 12px 50px #17202b1a}.has-history .chat-heading,.has-history #examples{display:none}.has-history #messages{padding-top:16px}body:not(.has-history) .message:first-child.assistant{background:transparent;text-align:center;max-width:500px;margin:0 auto;color:#707883}body:not(.has-history) .message:first-child.assistant small{display:none}@media(max-width:700px){header{height:66px;padding:9px 16px}.app-brand img{width:36px;height:38px}.app-brand strong{font-size:16px}.app-brand span{font-size:10px}header .quiet{padding:7px 10px}.chat.card{padding:0 15px}.chat-heading{margin:24px auto 15px}.chat-heading h2{font-size:23px}.chat-heading p{font-size:12px;max-width:320px}.examples{gap:6px}.examples button{font-size:10px;min-height:31px;padding:6px 10px}.message{font-size:13px;max-width:92%;padding:11px 13px}#chat-form{padding-top:9px}#game{font-size:10px}textarea{font-size:16px;min-height:58px;max-height:115px}#hint{font-size:8px;line-height:1.4}#management{inset:68px 7px 8px;padding:17px 12px}.section-heading{margin-top:4px}footer{font-size:8px;padding:3px}#gate{margin:20px 14px}body:not(.has-history) #messages{min-height:60px}.source>summary{padding:4px 0}}@media(display-mode:standalone){footer{display:none}header{padding-top:max(10px,env(safe-area-inset-top));height:calc(66px + env(safe-area-inset-top))}}@media(max-height:680px){.chat-heading{margin:12px auto 8px}.welcome-mark{display:none}.chat-heading h2{margin:0;font-size:20px}.chat-heading p{display:none}.examples{margin-bottom:5px}.examples button{min-height:28px;padding:5px 9px}}

.announcement-dialog{width:min(calc(100% - 28px),480px);max-height:calc(100dvh - 28px);margin:auto;border:1px solid #e2e5ea;border-radius:18px;padding:22px;color:#17202b;box-shadow:0 16px 60px #17202b29}
.announcement-dialog::backdrop{background:#17202b70}
#announcement-form h2{margin:0;font-size:22px}
#announcement-form>p{color:#53606c;font-size:14px;line-height:1.45}
#announcement-form label{font-size:14px}
#announcement-form textarea{min-height:108px;margin-top:7px}
#announcement-form .announcement-feedback:empty{display:none}
.dialog-actions,.preview-actions{display:flex;flex-wrap:wrap;gap:8px}
.dialog-actions{justify-content:flex-end}
.change-preview{max-width:100%;width:100%;overflow-wrap:anywhere}
.change-preview ul{padding-left:20px;margin:12px 0 16px}
.change-preview li+li{margin-top:6px}
#app-drawer button{text-align:left}
@media(max-width:700px){
 header{height:auto;min-height:60px;padding:8px 12px;margin:0 auto}
 .app-brand span{display:none}
 header .quiet,#app-drawer button,#app-drawer a{min-height:44px}
 #app-drawer{width:min(290px,calc(100% - 24px));right:12px;top:64px}
 .chat.card{padding:0 12px}
 .chat-heading{margin:12px auto 8px}
 .welcome-mark{display:none}
 .chat-heading h2{font-size:20px;margin:0}
 .chat-heading p{display:none}
 #examples{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;width:100%;min-height:46px;align-items:center;margin:0 auto 5px;scrollbar-width:none}
 #examples button{flex:none;white-space:nowrap;font-size:12px;min-height:40px}
 #messages,body:not(.has-history) #messages{min-height:0}
 .message{font-size:15px;line-height:1.4}
 #chat-form{padding:7px 0 max(7px,env(safe-area-inset-bottom))}
 #chat-form>label.small>span{display:none}
 #game,#message,.source input,.announcement-dialog input,.announcement-dialog textarea{font-size:16px}
 #game{padding:7px 10px;min-height:38px}
 #message{height:58px;min-height:48px;max-height:115px;margin-top:6px;padding:9px 12px}
 .compose-actions{margin-top:3px}
 #send,.attach,.dialog-actions button,.preview-actions button{min-height:44px}
 .attach{display:flex;align-items:center;font-size:13px}
 .source{margin-top:2px;font-size:12px}
 #hint{font-size:11px;margin-top:3px}
 #preview{min-width:0;margin-top:4px}
 #preview img{width:42px;height:42px}
 #file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 footer{display:none}
 .change-preview{max-width:100%;padding:10px 12px}
}
@media(display-mode:standalone) and (max-width:700px){
 header{height:auto;padding-top:calc(22px + env(safe-area-inset-top))}
 #app-drawer{top:calc(78px + env(safe-area-inset-top))}
}
@media(max-width:700px) and (max-height:540px){
 .chat-heading,#examples,#hint{display:none}
}
