body[data-cabinet="true"] .north-star { display: none; }
#codex-cabinet { padding-top: 18px; }
.cc-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cc-heading h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.04em; margin: 0 0 6px; }
.cc-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.cc-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.cc-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 0 12px; color: var(--muted); white-space: nowrap; font-size: 14px; }
.cc-tabs button[aria-current] { color: var(--ink); border-color: var(--green); font-weight: 650; }
.cc-connection { padding: 12px 16px; margin: 0 0 18px; border-radius: 7px; background: #e6ede7; font-size: 13px; }
.cc-connection[data-status="stale"], .cc-connection[data-status="unavailable"] { background: #f4ecdc; }
.cc-message { color: var(--green); overflow-wrap: anywhere; }
.cc-message:empty { display: none; }
.cc-focus { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.cc-focus label { white-space: nowrap; font-weight: 650; }
.cc-focus input { min-width: 0; flex: 1; }
#codex-cabinet input:not([type="checkbox"]), #codex-cabinet textarea { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); padding: 10px 12px; font-size: 15px; line-height: 1.45; }
#codex-cabinet button, #codex-cabinet input, #codex-cabinet textarea, #codex-cabinet summary { touch-action: manipulation; }
#codex-cabinet :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.cc-search { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cc-search > label:first-child { font-size: 12px; color: var(--muted); }
.cc-search > input { flex: 1; min-width: 170px; }
.cc-archive { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.cc-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cc-panel, .cc-project { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-bottom: 20px; min-width: 0; }
#codex-cabinet h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 16px; }
#codex-cabinet h3 { font-size: 15px; margin: 4px 0 8px; line-height: 1.45; }
.cc-thread { padding: 16px 0; border-top: 1px solid var(--line); min-width: 0; }
.cc-thread p { margin: 5px 0 10px; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.cc-thread > p:not(.cc-muted) { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cc-panel > .cc-thread { border-left: 3px solid var(--sage); padding-left: 16px; margin-bottom: 12px; }
.cc-panel > .cc-thread:first-of-type { border-left-color: var(--green); }
.cc-compact { padding-top: 12px; padding-bottom: 12px; }
.cc-compact > p:not(.cc-muted) { -webkit-line-clamp: 3; }
.cc-compact .cc-actions { margin-top: 8px; }
#codex-cabinet .cc-muted { color: var(--muted); font-size: 12px; }
.cc-source { margin: 8px 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.cc-source a { color: var(--green); }
.cc-source summary { cursor: pointer; }
.cc-source p { font-size: 12px; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cc-actions .button { font-size: 12px; padding: 7px 10px; }
.cc-reply label { display: grid; gap: 6px; font-size: 13px; }
.cc-reply textarea { width: 100%; resize: vertical; min-height: 88px; }
.cc-reply > button { margin-top: 10px; }
.cc-project-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cc-project-head h2 { margin-bottom: 0 !important; }
.cc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 22px 0; }
.cc-fields > div { min-width: 0; }
.cc-fields dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.cc-fields dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.cc-fields details p { white-space: pre-line; }
.cc-fields summary { cursor: pointer; }
.cc-project-chats { border-top: 1px solid var(--line); padding-top: 12px; }
.cc-project-chats > summary { cursor: pointer; color: var(--green); }
.cc-empty { padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
@media (max-width: 720px) {
  #codex-cabinet { padding-top: 12px; }
  .cc-heading { align-items: start; }
  .cc-heading p { font-size: 15px; }
  .cc-heading > button { font-size: 12px; }
  .cc-tabs { gap: 20px; }
  .cc-focus { flex-wrap: wrap; gap: 10px; }
  .cc-focus label { width: 100%; }
  .cc-focus input { flex-basis: 100%; width: 100%; }
  .cc-columns, .cc-fields { grid-template-columns: 1fr; }
  .cc-panel, .cc-project { padding: 16px; }
  .cc-search > label:first-child { width: 100%; }
  .cc-project-head { align-items: start; }
  .cc-project-head .button { font-size: 12px; max-width: 140px; }
  #codex-cabinet input:not([type="checkbox"]), #codex-cabinet textarea { font-size: 16px; }
}
