/* Shared contrast corrections: desktop, mobile and standalone views. */
:root{--j1o-ink-muted:#4c6057}
.hint,.muted,.flow-content .hint,.flow-content .muted,.shell .hint,.shell .muted,.identity-rules-box span,.selected-avatar-identity small{color:inherit!important;opacity:1!important}
.flow-content label,.flow-content .label{color:inherit!important}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select{background-color:#fff!important;color:#173a32!important;border-color:#61776c!important}
input::placeholder,textarea::placeholder{color:#53645b!important;opacity:1!important}
button:disabled,.btn:disabled,input:disabled,select:disabled,textarea:disabled{opacity:1!important;background-color:#dde6e0!important;color:#344d43!important;border-color:#61776c!important;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b47a13!important;outline-offset:3px!important}
.shell .eyebrow,.flow-content .eyebrow{color:#79571f!important}
.flow-content .panel .eyebrow{color:#dfc27d!important}
.btn.danger,button.danger{background:#fff0ed!important;color:#8b2c23!important;border:1px solid #a14a40!important}

/* Image workspace: explicit light surfaces avoid dark panel inheritance. */
.flow-content .image-workspace,.flow-content .image-workspace .panel,.flow-content .image-workspace .image-card{background:#fffdf7!important;color:#173a32!important;opacity:1!important}
.flow-content .image-workspace h1,.flow-content .image-workspace h2,.flow-content .image-workspace h3,.flow-content .image-workspace label,.flow-content .image-workspace legend,.flow-content .image-workspace summary,.flow-content .image-workspace p,.flow-content .image-workspace li,.flow-content .image-workspace strong{color:#173a32!important;opacity:1!important}
.flow-content .image-workspace a{color:#075647!important;text-decoration:underline}
.flow-content .image-workspace .image-action,.flow-content .image-workspace .btn.main,.flow-content .image-workspace button[type=submit]{background:#0a4c3e!important;color:#fff!important;border:1px solid #0a4c3e!important;text-decoration:none;min-height:44px}
.flow-content .image-workspace button:disabled{background:#dde6e0!important;color:#344d43!important;border-color:#61776c!important;opacity:1!important}
.flow-content .image-workspace [role=alert]:not(:empty){background:#fff0ed!important;color:#8b2c23!important;border:1px solid #a14a40;padding:12px;border-radius:10px}
.flow-content .image-workspace [role=alert] p{color:#8b2c23!important}
.flow-content .image-workspace input[type=checkbox]{accent-color:#0a4c3e;min-width:22px;min-height:22px}
.flow-content .image-workspace input::file-selector-button{background:#e7eee9;color:#173a32;border:1px solid #61776c;border-radius:6px;padding:8px}

.flow-content .image-workspace button.image-delete{background:#fff0ed!important;color:#8b2c23!important;border:1px solid #a14a40!important;min-height:44px}

/* Project navigation and mobile readability — 2026-11-08 */
.mobile-project-entry{display:none}
.project-hub{background:#fffdf7!important;color:#173a32!important}
.project-hub h1,.project-hub h2,.project-hub label,.project-hub strong{color:#173a32!important}
.project-hub p,.project-hub .muted,.project-hub span,.episode-project .ep-card-intro,.episode-project .ep-hero p{color:#455e54!important;opacity:1!important}
.flow-content .project-hub .eyebrow{color:#79571f!important}
.project-folder-entry{min-width:0}.project-hub .project-folder-card{background:#fffdf7!important;color:#173a32!important;border:1px solid #78978b!important}
.project-chat-open{display:flex!important;justify-content:center;align-items:center;min-height:50px;margin:10px 0 16px;padding:14px 18px;border:1px solid #0a4c3e;border-radius:12px;background:#0a4c3e!important;color:#fff!important;text-decoration:none;font-weight:800}
.project-hub button.primary{background:#0a4c3e!important;color:#fff!important;border:1px solid #0a4c3e!important;min-height:48px}
.project-hub .ghost{background:#fffdf7!important;color:#173a32!important;border:1px solid #78978b!important;min-height:44px}
.project-hub button[type=submit][style*="b91c1c"]{background:#fff0ed!important;color:#8b2c23!important;border-color:#a14a40!important}
.project-chat .pc-muted{color:#455e54!important}.project-chat .pc-check{color:#173a31!important}.project-chat .pc-card{color:#173a31!important}.project-chat .pc-card p{color:inherit}.project-chat .pc-error,.project-chat .pc-error p{color:#7e2925!important}
.project-shortcuts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.project-shortcuts a{width:100%!important;text-align:center;white-space:normal;min-height:50px}
@media(max-width:760px){.mobile-project-entry{display:flex;justify-content:center;align-items:center;min-height:50px;background:#0a4c3e;color:#fff!important;border:1px solid #e0c079;border-radius:12px;padding:12px 16px;margin:0 0 16px;font-weight:800;text-decoration:none}.project-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.project-hub .project-folder-grid{grid-template-columns:1fr!important}.project-hub input,.project-hub textarea,.project-hub select,.project-chat input,.project-chat textarea,.project-chat select{font-size:16px!important}.project-hub,.project-chat{overflow-wrap:anywhere}.project-hub .section-head{flex-wrap:wrap}}

.project-hub button:disabled,.project-chat button:disabled{background:#dde6e0!important;color:#344d43!important;border:1px solid #61776c!important;opacity:1!important}
