/* Shared reading styles: interface labels stay quiet; response structure is clear. */
:root{--reading-ink:#243b33;--reading-muted:#56675d;--reading-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--code-font:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}
body{font-family:var(--reading-font);font-size:15px;line-height:1.6}button,input,textarea,select{font-family:inherit}.nav-item{font-size:13px}.recent-chat{font-size:12px}.recent-chats>p,.profile small{font-size:11px}.page-heading p{font-size:14px;line-height:1.65}.section-heading p,.project-card p{font-size:12px}.task-title{font-size:14px;font-weight:600}.task-meta,.task-detail{font-size:12px;line-height:1.6}.task-id,.kanban-card-meta,.kanban-card-footer{font-size:11px}.kanban-card-title{font-size:14px;font-weight:650;line-height:1.5}.kanban-card>p{font-size:12px;line-height:1.65}.note-card p,.status-card p{font-size:12px}.pill{font-size:11px}.page-heading h1{font-weight:600}
.rich-text,.note-content{font-family:var(--reading-font);font-size:15px;line-height:1.75;color:var(--reading-ink);white-space:normal;overflow-wrap:anywhere;text-align:start}.rich-text>:first-child,.note-content>:first-child{margin-top:0}.rich-text>:last-child,.note-content>:last-child{margin-bottom:0}
.rich-text h2,.note-content h2{font-family:var(--reading-font);font-size:23px;line-height:1.35;font-weight:700;letter-spacing:-.35px;color:#203a2f;margin:1.4em 0 .6em}
.rich-text h3,.note-content h3{font-family:var(--reading-font);font-size:19px;line-height:1.4;font-weight:700;letter-spacing:-.2px;margin:1.35em 0 .55em;color:#263f33}
.rich-text h4,.note-content h4{font-size:17px;line-height:1.45;font-weight:650;margin:1.2em 0 .5em}.rich-text h5,.rich-text h6,.note-content h5,.note-content h6{font-size:15px;line-height:1.5;font-weight:700;margin:1.1em 0 .45em;letter-spacing:0}
.rich-text p,.note-content p{margin:.75em 0}.rich-text strong,.note-content strong{font-weight:700;color:#203a2f}.rich-text em,.note-content em{font-style:italic}.rich-text del,.note-content del{color:var(--reading-muted)}
.rich-text ul,.rich-text ol,.note-content ul,.note-content ol{padding-inline-start:1.5em;margin:.8em 0;list-style-position:outside}.rich-text ul,.note-content ul{list-style-type:disc}.rich-text ol,.note-content ol{list-style-type:decimal}.rich-text li,.note-content li{margin:.4em 0;padding-inline-start:.15em}.rich-text li>p,.note-content li>p{margin:.35em 0}.rich-text li>ul,.rich-text li>ol,.note-content li>ul,.note-content li>ol{margin:.35em 0 .6em}.rich-text ul ul,.note-content ul ul{list-style-type:circle}.rich-text li::marker,.note-content li::marker{color:#657c62;font-weight:600}.rich-text input[type=checkbox],.note-content input[type=checkbox]{accent-color:#355c46;margin-inline-end:.5em}
.rich-text blockquote,.note-content blockquote{border-inline-start:3px solid #8fa884;background:#f0f4eb;color:#435a49;margin:1em 0;padding:.35em 1em;border-radius:0 6px 6px 0}.rich-text blockquote p,.note-content blockquote p{margin:.4em 0}
.rich-text a,.note-content a{color:#315f4b;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.rich-text a:hover,.note-content a:hover{color:#173d2c}.inline-note{font:inherit;text-decoration:underline;text-underline-offset:3px;color:#315f4b}
.rich-text code,.note-content code{font-family:var(--code-font);font-size:.88em;background:#eaf0e5;border:1px solid #dce5d7;padding:.12em .35em;border-radius:4px;color:#294334;overflow-wrap:anywhere}.rich-text pre,.note-content pre{font-family:var(--code-font);background:#edf1e8;border:1px solid #dbe3d5;border-radius:8px;padding:14px 16px;margin:1em 0;font-size:12px;line-height:1.65;white-space:pre;overflow:auto;max-width:100%;tab-size:2}.rich-text pre code,.note-content pre code{font:inherit;border:0;background:transparent;padding:0;overflow-wrap:normal;white-space:inherit}
.table-scroll{overflow:auto;max-width:100%;margin:1em 0;border:1px solid #dbe3d5;border-radius:7px;overscroll-behavior-inline:contain}.rich-text table,.note-content table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.6;margin:0}.rich-text th,.note-content th{background:#eaf0e3;font-weight:700;color:#284332;text-align:start}.rich-text th,.rich-text td,.note-content th,.note-content td{padding:10px 12px;border:0;border-bottom:1px solid #e0e6d9;vertical-align:top;min-width:100px}.rich-text tr:last-child td,.note-content tr:last-child td{border-bottom:0}.rich-text tbody tr:nth-child(even),.note-content tbody tr:nth-child(even){background:#f7f9f3}
.rich-text hr,.note-content hr{border:0;border-top:1px solid #dce4d5;margin:1.4em 0}.image-reference,.render-notice{font-size:12px;color:#657565}.note-content.source-mode pre{white-space:pre-wrap;font-size:13px}
.message{font-size:15px;line-height:1.75}.message.assistant .rich-text,.message.assistant .message-content{font-size:15px;line-height:1.75}.message.assistant h2{font-size:19px;font-weight:700;line-height:1.4;margin:1.2em 0 .5em}.message.assistant h3{font-size:17px;font-weight:700;line-height:1.45;margin:1.1em 0 .45em}.message.assistant h4,.message.assistant h5,.message.assistant h6{font-size:15px;font-weight:700;margin:1em 0 .4em}.message.assistant p{margin:.7em 0}.message.assistant pre{font-size:12px}.message.assistant li{margin:.4em 0}.message.assistant .message-content>:first-child{margin-top:0}.message.user .message-content{font-size:14px;line-height:1.7}.message-label{font-size:10px;font-weight:700;letter-spacing:1.1px}.message-actions button{font-size:11px}.chat-panel textarea{font-size:15px;line-height:1.6}.attachment-hint{font-size:10px;line-height:1.5}.composer-bottom>span{font-size:10px}.chat-panel{min-width:0}.chat-messages{scrollbar-gutter:stable}
.message.assistant .message-content{max-width:78ch}
.rich-text table,.note-content table{font-variant-numeric:tabular-nums}.rich-text [align=right],.note-content [align=right]{text-align:right}.rich-text [align=center],.note-content [align=center]{text-align:center}
@media(max-width:760px){.rich-text,.note-content,.message.assistant .message-content{font-size:15px;line-height:1.75}.message.user .message-content{font-size:15px}.chat-panel textarea{font-size:16px}.page-heading p{font-size:13px}.rich-text h2,.note-content h2{font-size:21px}.rich-text h3,.note-content h3{font-size:18px}.message.assistant h2{font-size:19px}.message.assistant h3{font-size:17px}.rich-text pre,.note-content pre{font-size:12px;padding:12px}.rich-text th,.rich-text td,.note-content th,.note-content td{padding:9px 10px}.nav-item{font-size:13px}.attachment-hint{font-size:9px}.composer-bottom>span{font-size:9px}}

/* Arabic prose follows its reading direction; the surrounding interface stays stable. */
.bidi-content{min-width:0;text-align:start;white-space:normal}
.bidi-content>:first-child{margin-top:0}.bidi-content>:last-child{margin-bottom:0}
.bidi-content[dir="rtl"],.message-content[dir="rtl"],#message:dir(rtl){font-family:"Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:normal;line-height:1.95;text-align:right}
.bidi-content[dir="rtl"] :is(h1,h2,h3,h4,h5,h6,strong){font-family:inherit;letter-spacing:normal}
.bidi-content :is(ul,ol){padding-left:0;padding-right:0;padding-inline-start:1.5em;padding-inline-end:0}
.bidi-content bdi,.bidi-content code{unicode-bidi:isolate}
.bidi-content bdi,.bidi-content :not(pre)>code[dir]{display:inline-block;max-inline-size:100%;vertical-align:baseline;overflow-wrap:anywhere}
.bidi-content pre{direction:ltr;text-align:left;unicode-bidi:isolate}
.bidi-content pre code{direction:inherit}
.bidi-content blockquote{margin-inline:0}
.message-content[dir="rtl"]{text-align:right}
#message{unicode-bidi:plaintext;text-align:start}

/* Long source status descriptions cannot take space away from task titles. */
.task-row{display:grid;grid-template-columns:20px minmax(0,1fr) minmax(0,max-content) 28px;align-items:start}
.task-body{min-width:0;width:100%}
.task-row>.pill{max-width:180px;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.task-title-button{width:100%;min-width:0;text-align:start;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.task-meta{display:flex;flex-wrap:wrap;gap:4px 8px;min-width:0}
.task-meta>span{min-width:0;overflow-wrap:anywhere}
.task-id{unicode-bidi:isolate}
.task-detail{min-width:0;flex-wrap:wrap}.task-detail>span{min-width:0;flex:1 1 240px}
.next-item-button>span:last-child{min-width:0}.next-item-button strong,.next-item-button small{overflow-wrap:anywhere}
.directional-text{unicode-bidi:isolate;text-align:start}
.directional-text[dir="rtl"]{font-family:"Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:normal;line-height:1.8;text-align:right}
.project-card h3,.note-card h3,.kanban-card-title,.conversation-open>span,.search-result,.recent-chat>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){
 .task-row{grid-template-columns:20px minmax(0,1fr) 28px;gap:8px 10px}
 .task-row>.task-marker{grid-column:1;grid-row:1}
 .task-row>.task-body{grid-column:2;grid-row:1}
 .task-row>.task-move-button{grid-column:3;grid-row:1}
 .task-row>.pill{grid-column:2;grid-row:2;justify-self:start;max-width:100%;font-size:11px}
 .task-title-button{-webkit-line-clamp:4}
}

.readiness-intro{margin:0 0 22px}.readiness-schedule{padding:22px;margin-bottom:22px;display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}.readiness-schedule h2{font-size:25px;margin:10px 0 5px}.readiness-schedule h2 small{font-size:13px;font-weight:500;color:var(--reading-muted)}.readiness-schedule p{font-size:13px;color:var(--reading-muted)}
.status-card{min-width:0}.status-card-top{align-items:flex-start;gap:12px;flex-wrap:wrap}.status-card-top h3{flex:1 1 150px}.readiness-pill{white-space:normal;overflow-wrap:anywhere;text-align:start;max-width:100%}
.readiness-pill[data-status="working"]{background:#e3eee4;color:#355b40}.readiness-pill[data-status="partial"],.readiness-pill[data-status="pending"]{background:#f2ead8;color:#806331}.readiness-pill[data-status="failed"]{background:#f4e4df;color:#974b36}.readiness-pill[data-status="unknown"],.readiness-pill[data-status="deferred"]{background:#edf0e9;color:#687565}
.readiness-evidence{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:11px;color:var(--reading-muted);padding:12px 0;border-top:1px solid var(--line);margin-top:16px}.readiness-details{font-size:12px;line-height:1.7;margin-top:12px}.readiness-details summary{cursor:pointer;font-weight:600;color:#355442}.readiness-details p{font-size:12px;margin-top:12px}.readiness-details ul{padding-inline-start:20px;margin-top:10px}.readiness-details li{margin:7px 0}.readiness-details li::marker{color:#a08448}
.connection-row[data-status="working"] i{background:#7d9d73}.connection-row[data-status="partial"] i,.connection-row[data-status="pending"] i{background:#b59a61}.connection-row[data-status="failed"] i{background:#b66d58}
@media(max-width:640px){.readiness-schedule{padding:18px}.readiness-schedule h2{font-size:23px}.readiness-schedule h2 small{display:block;margin-top:8px}.readiness-schedule>.pill{width:100%}.status-card-top h3{flex-basis:130px}}
