.private-codex-dialog{width:min(1100px,calc(100vw - 32px));height:min(850px,92dvh);max-height:92dvh;padding:0;border:1px solid var(--line);border-radius:18px;color:var(--ink);background:#f6f8fc;box-shadow:0 24px 90px #0005}.private-codex-dialog::backdrop{background:#0b173b99}.private-codex-layout{height:100%;display:flex;flex-direction:column;min-height:0}.private-codex-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 24px;background:#17294b;color:#fff;flex-shrink:0}.private-codex-head h2{margin:0;font-size:22px}.private-codex-head p{margin:5px 0 0;color:#bdcbe5;font-size:12px}.private-codex-toolbar{display:flex;gap:10px;padding:14px 20px 0;flex-shrink:0}.private-codex-toolbar select{flex:1;min-width:0}.private-codex-status{margin:10px 22px;color:var(--muted);font-size:13px;flex-shrink:0;overflow-wrap:anywhere}.private-codex-log{flex:1;min-height:70px;overflow:auto;padding:10px 22px;overscroll-behavior:contain}.private-codex-message{padding:14px 16px;margin:0 0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.private-codex-message b{display:block;margin-bottom:7px;font-size:12px;color:var(--muted)}.private-codex-message.user{background:#edf3ff;border-color:#d8e3fb;margin-left:8%}.private-codex-message.assistant{margin-right:4%}.private-codex-tools{margin-bottom:16px;color:var(--muted);font-size:12px}.private-codex-tools pre,.private-codex-requests pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;padding:10px;background:#e8eef6;border-radius:8px}.private-codex-form{display:flex;align-items:flex-end;gap:12px;padding:16px 20px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}.private-codex-form textarea{flex:1;min-width:0;max-height:160px}.private-codex-requests{max-height:30dvh;overflow:auto;padding:0 20px}.private-codex-requests:empty{display:none}.private-codex-requests section{padding:12px;background:#fff7e7;border:1px solid #eed6a2;border-radius:10px;margin-bottom:10px}.private-codex-requests button{margin:8px 8px 0 0}.private-codex-requests label{display:grid;gap:6px;margin:8px 0}button:disabled{cursor:default;opacity:.55}@media(max-width:600px){.private-codex-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.private-codex-head,.private-codex-form{padding:12px}.private-codex-toolbar{padding:12px 12px 0;gap:6px}.private-codex-toolbar button{padding:9px;font-size:12px}.private-codex-log{padding:8px 12px}.private-codex-requests{padding:0 12px}.private-codex-form{gap:8px}.private-codex-status{margin:10px 12px}}

.private-codex-toolbar{flex-wrap:wrap}.private-codex-toolbar button{white-space:nowrap}@media(max-width:600px){.private-codex-toolbar select{flex-basis:100%}}

.private-codex-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}.private-codex-composer{min-width:0}.private-codex-attach-actions{display:flex;gap:10px;align-items:center;margin-bottom:8px}.private-codex-attach-actions span{font-size:12px;color:var(--muted)}.private-codex-attach-actions button{padding:7px 10px;white-space:nowrap;font-size:12px}.private-codex-attachments{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px}.private-codex-attachments:empty{display:none}.private-codex-attachment{display:flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid #cedcf1;border-radius:8px;background:#edf3ff;max-width:100%;font-size:12px}.private-codex-attachment span{min-width:0;overflow-wrap:anywhere}.private-codex-attachment button{border:0;color:#496589;background:none;cursor:pointer;font-size:18px}.private-codex-message-files{margin-top:8px;font-size:12px;color:#496589;overflow-wrap:anywhere}.private-codex-dialog.is-dragging{outline:4px solid #5c91ff;outline-offset:-5px}.private-codex-dialog.is-dragging .private-codex-form{background:#eaf2ff}@media(max-width:600px){.private-codex-attach-actions span{font-size:10px}}
