.chatgpt-icon{display:flex;align-items:center;justify-content:center;flex:none;width:60px;height:60px;border-radius:14px;background:#fff;box-shadow:0 5px 9px #102a4229}
.chatgpt-icon img{display:block;width:70%;height:70%;pointer-events:none}
.mac-dock .dock-chatgpt{padding:0;background:#fff;overflow:hidden}
.mac-dock .chatgpt-icon{width:100%;height:100%;border-radius:inherit;box-shadow:none}
.mac-chatgpt{container:chat / inline-size;top:55px;width:min(1040px,calc(100% - 64px));height:calc(100% - 143px);z-index:6;background:#fff;color:#171717}
.mac-chatgpt>.mac-titlebar{height:38px;background:#f9f9f9;padding:0 15px}
.mac-chatgpt .mac-titlebar h2{font-size:12px}
.chat-app{height:calc(100% - 39px);display:flex;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.5}
.chat-app *{box-sizing:border-box}
.chat-app button{cursor:pointer}
.chat-app button:disabled{opacity:.42;cursor:default}
.chat-app svg{display:block;width:21px;height:21px;flex:none}
.chat-app .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chat-sidebar{width:244px;flex:none;display:flex;flex-direction:column;background:#f9f9f9;border-right:1px solid #ededed;padding:14px 10px 10px;overflow:hidden}
.chat-sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 5px 14px}
.chat-sidebar .chatgpt-icon{width:32px;height:32px;box-shadow:none;background:none}
.chat-sidebar .chatgpt-icon img{width:27px;height:27px}
.chat-icon-button{display:grid;place-items:center;width:32px;height:32px;padding:6px;border:0;border-radius:8px;background:none;color:#666!important}
.chat-icon-button:hover{background:#ececec}
.chat-new{display:flex;align-items:center;gap:12px;padding:10px 9px;background:none;border:0;border-radius:8px;text-align:left}
.chat-new:hover,.chat-history-item:hover{background:#ededed}
.chat-history-label{margin:24px 9px 9px;font-size:11px;font-weight:600;color:#8b8b8b}
.chat-history{display:flex;flex-direction:column;gap:3px;overflow:auto;flex:1;min-height:0}
.chat-history-item{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;flex:none;width:100%;padding:9px 10px;border:0;border-radius:8px;background:none;text-align:left;font-size:12px!important;line-height:1.6!important;overflow-wrap:anywhere}
.chat-history-item[aria-current=true]{background:#eaeaea}
.chat-profile{display:flex;gap:10px;align-items:center;padding:14px 9px 4px;margin-top:12px}
.chat-profile>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e4e0d7;color:#5d574b;font-size:10px;font-weight:600}
.chat-profile strong,.chat-profile small{display:block;font-size:12px;font-weight:500}
.chat-profile small{font-size:10px;color:#888}
.chat-main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
.chat-header{display:flex;align-items:center;gap:9px;height:54px;flex:none;padding:0 22px}
.chat-brand{font-size:18px;font-weight:600;letter-spacing:-.4px;color:#353535}
.chat-brand>span{font-weight:400;color:#939393;margin-left:3px}
.chat-local-badge{padding:2px 7px;border:1px solid #e7e7e7;border-radius:6px;color:#888;font-size:10px;margin-left:auto}
.chat-header .chat-panel-toggle,.chat-mobile-new{display:none}
.sidebar-closed .chat-sidebar{display:none}
.sidebar-closed .chat-header .chat-panel-toggle{display:grid}
.chat-thread{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:15px 28px 22px;scrollbar-width:thin;scrollbar-color:#d9d9d9 transparent}
.chat-messages{max-width:720px;margin:0 auto}
.chat-message{margin:0 0 22px;overflow-wrap:anywhere}
.chat-message-content{white-space:pre-wrap;font-size:14px;line-height:1.8}
.chat-message-user{display:flex;flex-direction:column;align-items:flex-end}
.chat-message-user .chat-message-content{max-width:90%;padding:11px 18px;background:#f4f4f4;border-radius:22px}
.chat-message-actions{display:flex;gap:4px;margin-top:5px}
.chat-message-actions .chat-icon-button{width:28px;height:28px;opacity:.65}
.chat-message-actions svg{width:16px;height:16px}
.chat-message-assistant .chat-message-content{padding:0 2px}
.chat-compose-area{flex:none;width:100%;max-width:776px;margin:0 auto;padding:0 28px}
.chat-composer{border:1px solid #e9e9e9;border-radius:25px;background:#f4f4f4;padding:15px 16px 11px;box-shadow:0 2px 6px #00000004}
.chat-composer textarea{display:block;width:100%;min-height:52px;max-height:150px;padding:0 2px;border:0;background:transparent;resize:none;outline:none;font:inherit;font-size:14px;line-height:1.65;color:#171717;box-shadow:none}
.chat-composer textarea::placeholder{color:#8d8d8d}
.chat-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}
.chat-device-note{font-size:11px;color:#8b8b8b;padding-left:3px}
.chat-app .chat-send{display:flex;align-items:center;justify-content:center;gap:7px;width:34px;height:34px;flex:none;padding:6px;border:0;border-radius:22px;background:#171717;color:#fff!important;font-size:11px!important;font-weight:500!important;white-space:nowrap}
.chat-app .chat-send.needs-download{width:auto;padding:6px 12px}
.chat-send svg{width:18px;height:18px}
.chat-send-label:empty{display:none}
.chat-download-notice{margin:12px 1px 0;padding-top:10px;border-top:1px solid #e2e2e2;font-size:10px;line-height:1.5;color:#777}
.chat-footnote{margin:8px 0 11px;text-align:center;font-size:10px;color:#8b8b8b}
.chat-welcome{text-align:center;margin:0 auto 24px}
.chat-welcome h1{margin:0;font-size:28px;line-height:1.3;font-weight:600;letter-spacing:-.8px}
.is-new-chat .chat-thread{display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:0}
.is-new-chat .chat-compose-area{margin-bottom:clamp(10px,13vh,140px)}
.chat-progress{padding:4px 4px 12px;font-size:11px;color:#666}
.chat-progress>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-progress button,.chat-editing button{padding:3px 5px;border:0;background:none;text-decoration:underline;font-size:11px!important}
.chat-progress progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:3px;overflow:hidden;margin-top:8px;background:#ececec;accent-color:#383838}
.chat-progress progress::-webkit-progress-bar{background:#ececec}
.chat-progress progress::-webkit-progress-value{background:#383838}
.chat-progress progress::-moz-progress-bar{background:#383838}
.chat-error{padding:10px 12px;margin:0 0 10px;background:#fff1ef;color:#974238;font-size:12px;border-radius:10px}
.chat-editing{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#777;padding:0 1px 8px;margin-bottom:10px;border-bottom:1px solid #ddd}
.chat-thinking::after{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;background:#171717;animation:chat-pulse 1s ease-in-out infinite alternate}
@keyframes chat-pulse{to{opacity:.25}}
@container chat (max-width:719px){.chat-sidebar{display:none}.chat-header .chat-panel-toggle,.chat-mobile-new{display:grid}.sidebar-overlay .chat-sidebar{display:flex;position:absolute;left:0;top:38px;bottom:0;width:250px;z-index:4;box-shadow:14px 0 35px #00000015}.chat-header{padding:0 14px}.chat-thread{padding:14px 20px}.chat-compose-area{padding:0 20px}.chat-welcome h1{font-size:26px}}
@container chat (max-width:419px){.chat-thread{padding:12px 14px}.chat-compose-area{padding:0 12px}.chat-composer{padding:13px 12px 10px;border-radius:22px}.chat-composer textarea{font-size:16px}.chat-message-content{font-size:13px}.chat-welcome h1{font-size:24px}.chat-brand{font-size:17px}.chat-header{height:48px;padding:0 10px}.chat-download-notice{font-size:10px}.chat-message-user .chat-message-content{max-width:95%;padding:10px 14px}}
@media(max-width:639px){.mac-chatgpt:not(.maximized){top:46px!important;width:calc(100% - 16px);height:calc(100% - 132px)}}
@media(max-height:600px){.is-new-chat .chat-compose-area{margin-bottom:8px}.chat-welcome{margin-bottom:16px}.chat-welcome h1{font-size:23px}.chat-thread{padding-top:8px}.mac-chatgpt{top:46px}}
@media(prefers-reduced-motion:reduce){.chat-thinking::after{animation:none}}
