/* Projects: root workspaces, two-level hierarchy and read-only Codex conversation. */
.project-stat-card{display:flex;gap:12px;align-items:center;border:1px solid #dee7f4;border-radius:14px;padding:14px 15px;background:linear-gradient(130deg,#fff,#fbfdff);box-shadow:0 5px 20px #2437660a}
.project-stat-icon{height:37px;width:37px;border-radius:11px;background:#f2f6fc;display:grid;place-items:center}
.project-stat-icon svg{height:19px;width:19px}
.project-stat-card>div:last-child{display:flex;flex-direction:column}
.project-stat-card strong{font-size:20px;color:#26334b;font-weight:900;line-height:1.15}
.project-stat-card span:last-child{font-size:10px;color:#8798b2;font-weight:700;margin-top:4px}
.project-card{background:linear-gradient(140deg,white,#fcfdff);border:1px solid #dfe7f5;border-radius:16px;overflow:hidden;box-shadow:0 6px 25px #29376b0b;padding:17px}
.project-card::before{content:"";display:block;width:100%;height:3px;background:linear-gradient(90deg,var(--project-color),transparent 90%);border-radius:99px;margin:-17px 0 16px}
.project-card-head{display:flex;align-items:center;gap:12px;min-width:0}
.project-avatar{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--project-color) 12%,white);color:var(--project-color);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--project-color) 17%,white)}
.project-avatar svg{height:22px;width:22px}
.project-card-title{flex:1;min-width:0}
.project-card-title h3{font-size:15px;color:#1a2c43;line-height:1.35;font-weight:900}
.project-card-title>p:last-child{font-size:11px;color:#91a0b6;line-height:1.5;margin-top:3px}
.project-eyebrow{font-size:9px;color:var(--project-color);letter-spacing:.15em;font-weight:900;margin-bottom:1px}
.project-edit{width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;color:#64748b;background:#f1f5fa;border:1px solid #e2e8f0;transition:.2s}
.project-edit:hover{color:var(--project-color);background:#f7f5ff;border-color:#d9d5ff}
.project-edit svg{height:16px;width:16px}
.project-card-stats{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0 10px;padding:11px 12px;border:1px solid #eff2f9;border-radius:10px;background:#f9fbff}
.project-card-stats span{display:inline-flex;gap:5px;align-items:center;font-size:10px;font-weight:750;color:#71839b}
.project-card-stats svg{width:13px;height:13px;color:var(--project-color)}
.project-subtitle{font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:#8392aa;margin:15px 0 10px}
.project-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.project-card.project-child{padding:12px;border-radius:13px;box-shadow:none}
.project-child::before{margin:-12px 0 12px;height:2px}
.project-child .project-avatar{height:36px;width:36px;border-radius:10px}
.project-child .project-avatar svg{height:19px;width:19px}
.project-child .project-card-title h3{font-size:13px}
.project-child .project-card-stats{margin:11px 0;padding:8px}
.project-child .project-card-stats span:last-child{display:none}
.project-task-wrap{background:white;border:1px solid #ecf0f6;border-radius:11px;overflow:hidden}
.project-task-list{display:flex;flex-direction:column}
.project-task-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid #f0f3f8;padding:10px}
.project-task-row:last-child{border:0}
.project-task-avatar{width:27px;height:27px;flex-shrink:0;background:#f1f4fe;border-radius:8px;display:grid;place-items:center;color:#6477ca}
.project-task-avatar svg{width:15px;height:15px}
.project-task-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.project-task-copy strong{font-size:11px;color:#2a3c50;font-weight:800;line-height:1.4}
.project-task-copy>span{font-size:10px;color:#8e9db2}
.project-task-meta{min-width:fit-content}
.project-task-buttons{display:flex;gap:5px;flex-wrap:wrap;justify-content:end}
.project-task-buttons button{min-height:27px!important;font-size:10px!important;padding:5px 8px!important;border-radius:7px!important}
.project-task-buttons button svg{width:12px;height:12px}
.project-empty{font-size:11px;padding:14px;color:#a3adc0;text-align:center}
.project-color-row{display:flex;flex-wrap:wrap;gap:10px}
.project-color-option{height:30px;width:30px;display:grid;place-items:center;border-radius:50%;cursor:pointer;box-shadow:0 0 0 2px #fff,0 0 0 3px #edf0f8}
.project-color-option:has(input:checked){box-shadow:0 0 0 2px #fff,0 0 0 4px #6478b5}
.project-color-option input{height:15px;width:15px;accent-color:white}
.conversation-modal{max-height:min(85vh,850px);display:flex;flex-direction:column}
.conversation-header{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:17px 20px;border-bottom:1px solid #edf0f8}
.conversation-heading h3{font-size:15px;font-weight:900;color:#1e2d46}
.conversation-run-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:10px;color:#92a1b7;margin-top:8px}
.conversation-info{display:flex;align-items:center;gap:8px;font-size:11px;color:#536a87;background:#eff6fd;border-bottom:1px solid #dfeeff;padding:9px 20px;line-height:1.5}
.conversation-info svg{width:16px;height:16px;color:#5280b8;flex-shrink:0}
.conversation-scroll{overflow-y:auto;min-height:170px;flex:1;padding:19px;background:radial-gradient(ellipse 65% 65% at 80% 0%,#eef4ff,transparent 75%),#f8faff}
.conversation-item{display:flex;align-items:start;gap:9px;margin-bottom:14px}
.conversation-avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#ecedf9;color:#7265c5;flex-shrink:0}
.conversation-avatar svg{width:16px;height:16px}
.conversation-bubble{background:#fff;border:1px solid #e3e9f4;border-radius:12px;padding:11px 13px;max-width:92%;min-width:0;box-shadow:0 3px 9px #4454830a}
.conversation-role{font-size:10px;font-weight:900;letter-spacing:.02em;color:#64748b;margin-bottom:7px}
.conversation-message{font-size:11px;line-height:1.75;color:#35465f;white-space:pre-wrap;overflow-wrap:anywhere}
.conversation-user .conversation-avatar{color:#196baa;background:#e4f3ff}
.conversation-user .conversation-bubble{background:#eef7ff;border-color:#c9e6fc}
.conversation-assistant .conversation-avatar{color:#6842b4;background:#ebe4fd}
.conversation-assistant .conversation-bubble{border-color:#ddd6fb}
.conversation-tool .conversation-avatar{color:#24798e;background:#e0f3f7}
.conversation-tool .conversation-bubble{background:#fbfdff;border-color:#dbe8f3}
.conversation-error .conversation-avatar{color:#c6384d;background:#fff0f2}
.conversation-error .conversation-bubble{background:#fff6f8;border-color:#ffd5da}
.conversation-token{font-size:10px;color:#8291a9;margin-top:9px;font-weight:700}
.conversation-tool-detail{font-size:10px;margin-top:8px;color:#6781a7}
.conversation-tool-detail summary{cursor:pointer;font-weight:700}
.conversation-tool-detail pre{font:10px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#14253b;color:#d6e4ff;padding:10px;border-radius:8px;margin-top:6px;max-height:230px;overflow-y:auto}
.conversation-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:33px;color:#8c9db4;font-size:11px}
.conversation-empty>svg{width:32px;height:32px;color:#6479c2}
.conversation-empty strong{font-size:13px;color:#526680}
.conversation-empty p{max-width:300px;line-height:1.6}
.conversation-footer{padding:11px 19px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #ecf0f8;background:white;font-size:10px;color:#93a2b5}
@media(max-width:1100px){.project-children{grid-template-columns:1fr}}
@media(max-width:650px){.project-card{padding:12px}.project-card::before{margin:-12px 0 12px}
.project-task-row{align-items:start;flex-wrap:wrap}
.project-task-copy{flex-basis:60%}
.project-task-meta{order:4}
.project-task-buttons{order:5;flex:1;justify-content:start}
.project-card-stats{gap:9px}
.project-stat-card{padding:10px}
.project-stat-card strong{font-size:18px}
.conversation-scroll{padding:12px}
.conversation-bubble{max-width:calc(100% - 43px)}
.conversation-header{padding:13px}
}
