.codex-center { color: #182435; background: #f5f7fb; padding: 24px; box-sizing: border-box; min-height: 100%; font: 14px/1.6 system-ui, sans-serif; }
.codex-center[hidden], .codex-center [hidden] { display: none !important; }
.codex-center *, .codex-center *::before, .codex-center *::after { box-sizing: border-box; }
.codex-header, .codex-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.codex-header { justify-content: space-between; margin-bottom: 18px; }
.codex-title { margin: 0; font-size: 24px; }
.codex-subtitle, .codex-note { color: #586679; margin: 8px 0; }
.codex-grid { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); gap: 18px; }
.codex-panel { min-width: 0; background: #fff; border: 1px solid #dce3ec; border-radius: 12px; padding: 18px; }
.codex-heading { font-size: 18px; margin: 0 0 12px; overflow-wrap: anywhere; }
.codex-form { display: grid; gap: 10px; margin: 12px 0; }
.codex-label { display: grid; gap: 5px; font-weight: 600; }
.codex-input, .codex-textarea { width: 100%; border: 1px solid #a9b7c8; border-radius: 6px; padding: 10px; background: white; color: #182435; font: inherit; }
.codex-textarea { min-height: 110px; resize: vertical; }
.codex-button { cursor: pointer; border: 1px solid #b9c6d5; background: white; color: #20364e; border-radius: 6px; padding: 8px 12px; font: inherit; }
.codex-button:hover { background: #edf3fb; }
.codex-button:focus-visible, .codex-input:focus-visible, .codex-textarea:focus-visible { outline: 3px solid #5a92ed; outline-offset: 2px; }
.codex-button:disabled { cursor: not-allowed; opacity: .5; }
.codex-primary { background: #245bd7; border-color: #245bd7; color: white; }
.codex-primary:hover { background: #1949b7; }
.codex-danger { color: #ae2430; }
.codex-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.codex-item-button { width: 100%; text-align: left; overflow-wrap: anywhere; }
.codex-item-button[aria-pressed="true"] { border-color: #245bd7; background: #eaf1ff; }
.codex-message { padding: 10px 12px; margin-bottom: 16px; border-radius: 6px; background: #e9eff9; white-space: pre-wrap; overflow-wrap: anywhere; }
.codex-message[data-error="true"] { background: #ffedef; color: #92212d; }
.codex-log { background: #132035; color: #e2eafa; padding: 14px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 400px; overflow: auto; min-height: 80px; font: 13px/1.6 ui-monospace, monospace; }
.codex-status { display: block; margin: 10px 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .codex-center { padding: 12px; } .codex-grid { grid-template-columns: minmax(0, 1fr); } .codex-panel { padding: 14px; } .codex-button { min-height: 44px; } .codex-title { font-size: 21px; } }
