.codex-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:18px;min-width:0}.codex-history{display:flex;flex-direction:column;min-width:0;overflow:hidden;max-height:calc(100svh - 190px)}.codex-history-head{padding:18px 14px;display:flex;align-items:center;justify-content:space-between;gap:7px;border-bottom:1px solid var(--border)}.codex-history-head strong{font-size:12px}.codex-history-head button{font-size:10px;padding:5px 7px}.codex-history-foot{font-size:10px;line-height:1.7;color:var(--quiet);padding:16px;margin-top:auto;border-top:1px solid var(--border)}#codex-chats{overflow:auto;padding:8px}.codex-history-row{display:flex;gap:9px;width:100%;align-items:center;text-align:left;border:0;background:transparent;font-size:11px;min-height:43px;padding:10px;border-radius:6px}.codex-history-row span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.codex-history-row .i{width:14px;flex-shrink:0}.codex-history-row.active{background:var(--accent-bg);color:var(--accent)}.codex-empty-history{padding:15px}.codex-chat{display:flex;flex-direction:column;overflow:hidden;min-width:0;height:calc(100svh - 190px);min-height:540px;max-height:1100px}.codex-chat-head{padding:18px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border)}.codex-chat-head>div:first-child{display:flex;align-items:center;gap:12px}.codex-mark{font-size:29px;line-height:1;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;background:var(--panel2)}.codex-chat-head h2{font-size:17px;margin:0}.codex-chat-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.codex-draft-notice{display:flex;align-items:center;gap:9px;padding:10px 22px;background:var(--panel2);color:var(--muted);font-size:10px;line-height:1.6}.codex-draft-notice .i{width:14px;flex-shrink:0}.codex-messages{flex:1;min-height:160px;overflow:auto;padding:22px 26px;overscroll-behavior:contain}.codex-welcome{text-align:center;max-width:530px;margin:45px auto}.codex-welcome>span{font-size:47px;color:var(--muted)}.codex-welcome h2{font-size:24px;margin:16px 0 12px}.codex-welcome p{font-size:13px;line-height:1.8;color:var(--muted)}.codex-welcome>div{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:24px}.codex-turn+.codex-turn{margin-top:28px}.codex-user{background:var(--panel2);border:1px solid var(--border);border-radius:10px;padding:14px 17px;margin-left:10%;margin-bottom:18px}.codex-user>span{font-size:10px;font-weight:700;color:var(--muted)}.codex-user p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;margin:7px 0 0}.codex-answer-label{display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:12px}.codex-reply{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85;margin:12px 0}.codex-activity{border:1px solid var(--border);border-radius:6px;background:var(--panel2);margin:8px 0;font-size:10px}.codex-activity summary{padding:9px 12px;cursor:pointer;overflow-wrap:anywhere;max-height:100px;overflow:auto}.codex-activity pre,.codex-file pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.65;padding:12px;max-height:360px;overflow:auto;border-top:1px solid var(--border)}.codex-turn-status{font-size:10px;color:var(--quiet)}#codex-state{min-height:30px;padding:7px 24px;font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px}.codex-working-dot,.codex-history-row i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);animation:codex-pulse 1.4s ease-in-out infinite;flex-shrink:0}.codex-composer{padding:14px 22px 18px;border-top:1px solid var(--border);background:var(--panel2)}.codex-composer textarea{width:100%;resize:vertical;min-height:75px;max-height:220px;font-size:13px;line-height:1.6;background:var(--panel)}.codex-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.codex-composer-foot>span{font-size:10px;color:var(--quiet)}.codex-composer [hidden]{display:none!important}.codex-review>p{line-height:1.7;margin-bottom:18px}.codex-file{border:1px solid var(--border);border-radius:6px;margin:10px 0;overflow:hidden}.codex-file summary{font-size:12px;padding:12px;cursor:pointer;overflow-wrap:anywhere}.codex-no-changes{padding:22px 0;color:var(--muted)}.modal:has(.codex-review){width:920px;max-width:calc(100vw - 24px)}@keyframes codex-pulse{50%{opacity:.35}}@media(max-width:1050px){.codex-layout{grid-template-columns:190px minmax(0,1fr)}.codex-chat-head{padding:15px}.codex-chat-head p{display:none}.codex-chat-head .small{font-size:10px}.codex-composer{padding:13px 15px}.codex-messages{padding:18px}}@media(max-width:700px){.codex-layout{display:flex;flex-direction:column;gap:12px}.codex-history{max-height:175px}.codex-history-head{padding:10px 13px}.codex-history-foot{display:none}#codex-chats{display:flex;overflow:auto;gap:5px;padding:6px}.codex-history-row{min-width:170px;max-width:220px;min-height:35px}.codex-chat{height:calc(100svh - 170px);min-height:570px}.codex-mark{width:34px;height:34px;font-size:23px}.codex-chat-head{padding:12px}.codex-chat-head h2{font-size:16px}.codex-draft-notice{padding:9px 13px;font-size:9px}.codex-messages{padding:15px}.codex-welcome{margin:20px auto}.codex-welcome h2{font-size:20px}.codex-welcome p{font-size:12px}.codex-composer-foot>span{font-size:9px}.codex-composer textarea{font-size:16px}.codex-user{margin-left:5%;padding:12px}.codex-chat-head>.inline{gap:5px}}@media(prefers-reduced-motion:reduce){.codex-working-dot,.codex-history-row i{animation:none}}
