:root{--joe-bg:#f5faff;--joe-panel:#fff;--joe-ink:#173247;--joe-muted:#617786;--joe-line:#d8e8f3;--joe-soft:#edf6fc;--joe-accent:#2b6f91;--joe-accent-soft:#e7f4fb;--joe-radius:22px;--joe-shadow:0 18px 45px rgba(29,86,120,.09)}
.dtx-joe-shell{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--joe-ink);background:var(--joe-bg);border:1px solid var(--joe-line);border-radius:28px;overflow:hidden;max-width:1180px;margin:20px auto;min-height:720px}
.dtx-joe-shell *{box-sizing:border-box}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.joe-topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:rgba(255,255,255,.82);border-bottom:1px solid var(--joe-line);backdrop-filter:blur(16px)}
.joe-brand{display:flex;align-items:center;gap:10px}.joe-brand strong{display:block;font-size:16px}.joe-subtitle{display:block;font-size:12px;color:var(--joe-muted)}.joe-presence-dot{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff 0 9%,#8fb4b2 16%,#356d72 48%,#173f46 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
.joe-top-actions{display:flex;gap:8px}.joe-icon-button,.joe-stage-toggle,.joe-suggestions button,.joe-send,.joe-attach{font:inherit;border:1px solid var(--joe-line);background:#fff;color:var(--joe-ink);border-radius:999px;min-height:40px;padding:0 14px;cursor:pointer}.joe-icon-button:hover,.joe-suggestions button:hover,.joe-attach:hover{background:var(--joe-soft)}.joe-icon-button:focus-visible,.joe-stage-toggle:focus-visible,.joe-suggestions button:focus-visible,.joe-send:focus-visible,.joe-attach:focus-visible,.joe-object-card:focus-visible,.joe-composer textarea:focus-visible{outline:3px solid rgba(41,95,103,.25);outline-offset:2px}
.joe-layout{display:grid;grid-template-columns:minmax(0,1fr);position:relative}.joe-conversation{width:min(760px,100%);margin:0 auto;padding:32px 22px 24px;min-width:0}.joe-stage{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:18px;border:1px solid var(--joe-line);border-radius:var(--joe-radius);background:linear-gradient(145deg,#fff,#f2f9fd);margin-bottom:24px}.joe-stage.is-scene{background:linear-gradient(145deg,#e7f5fb,#f9fcff)}.joe-avatar{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#d6eef9,#4e8dab);overflow:hidden}.joe-avatar span{width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.78);box-shadow:0 22px 0 14px rgba(255,255,255,.48)}.joe-stage-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.joe-stage-copy strong{font-size:18px}.joe-stage-copy>span:last-child{font-size:13px;color:var(--joe-muted)}.joe-kicker{text-transform:uppercase;font-size:10px;letter-spacing:.14em;color:var(--joe-muted);font-weight:700}.joe-stage-toggle{background:transparent}
.joe-feed{display:flex;flex-direction:column;gap:18px}.joe-message{max-width:88%}.joe-message--user{align-self:flex-end}.joe-message-name{font-size:11px;color:var(--joe-muted);margin:0 0 5px 8px}.joe-message--user .joe-message-name{text-align:right;margin-right:8px}.joe-bubble{padding:14px 16px;border-radius:20px;background:#fff;border:1px solid var(--joe-line);line-height:1.55}.joe-message--user .joe-bubble{background:var(--joe-accent);border-color:var(--joe-accent);color:#fff}.joe-bubble p{margin:.15em 0 .65em}.joe-bubble p:last-child{margin-bottom:.15em}.joe-context-note{display:inline-flex;margin-top:10px;font-size:11px;padding:5px 9px;border-radius:999px;background:var(--joe-accent-soft);color:#235b78}
.joe-object-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;background:#fff;border:1px solid var(--joe-line);border-radius:18px;cursor:pointer}.joe-object-card strong{display:block;margin:3px 0}.joe-object-card p{margin:0;color:var(--joe-muted);font-size:13px}.joe-object-arrow{font-size:22px;color:var(--joe-muted)}
.joe-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 12px}.joe-suggestions button{font-size:13px;background:transparent}.joe-composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;background:#fff;border:1px solid var(--joe-line);border-radius:22px;box-shadow:var(--joe-shadow)}.joe-composer textarea{flex:1;border:0;outline:0;resize:none;min-height:42px;max-height:160px;padding:10px 4px;font:inherit;background:transparent;color:var(--joe-ink)}.joe-composer-actions{display:flex;gap:7px}.joe-attach{width:42px;padding:0;font-size:22px}.joe-send{background:var(--joe-accent);color:#fff;border-color:var(--joe-accent);font-weight:650}.joe-footnote{margin:10px 5px 0;text-align:center;color:var(--joe-muted);font-size:11px}
.joe-panel{position:absolute;z-index:5;right:18px;top:18px;width:min(330px,calc(100% - 36px));background:#fff;border:1px solid var(--joe-line);border-radius:20px;padding:18px;box-shadow:var(--joe-shadow)}.joe-panel[hidden]{display:none}.joe-panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.joe-panel-header button{border:0;background:transparent;font-size:24px;cursor:pointer}.joe-context-chip{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--joe-accent-soft);font-size:12px;font-weight:700}.joe-panel p{color:var(--joe-muted);font-size:13px;line-height:1.5}.joe-panel hr{border:0;border-top:1px solid var(--joe-line);margin:18px 0}.joe-context-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.joe-context-list span{font-size:11px;background:var(--joe-soft);padding:5px 7px;border-radius:8px}.joe-lab-status{display:flex;gap:9px;align-items:flex-start}.joe-status-dot{width:9px;height:9px;border-radius:50%;background:#4c8a61;margin-top:5px}.joe-lab-status p{margin:3px 0}.joe-diagnostics{margin:18px 0}.joe-diagnostics div{display:flex;justify-content:space-between;border-top:1px solid var(--joe-line);padding:8px 0;gap:20px}.joe-diagnostics dt{color:var(--joe-muted)}.joe-diagnostics dd{margin:0;text-align:right}
.joe-object-inline{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;padding:10px;border:1px solid var(--joe-line);background:#fff;border-radius:14px;margin-top:10px}.joe-object-icon{width:42px;height:42px;border-radius:12px;background:var(--joe-soft);display:grid;place-items:center;font-size:20px}.joe-object-inline small{display:block;color:var(--joe-muted)}
@media(max-width:640px){.dtx-joe-shell{border-radius:0;margin:0;min-height:640px}.joe-conversation{padding:20px 14px}.joe-stage{grid-template-columns:auto 1fr}.joe-stage-toggle{grid-column:1/-1;width:100%}.joe-message{max-width:95%}.joe-suggestions{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.joe-suggestions button{white-space:nowrap}.joe-top-actions .joe-icon-button{padding:0 10px}.joe-composer-actions{gap:4px}}
@media(prefers-reduced-motion:no-preference){.joe-avatar{animation:joe-breathe 5s ease-in-out infinite}@keyframes joe-breathe{50%{transform:scale(1.035)}}}
/* 0.6.1 operational additions */
.joe-app-layout{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr) minmax(0,320px);gap:16px;align-items:start}
.joe-sidebar{border-right:1px solid var(--joe-border,#d7dce2);padding:12px;min-width:0}.joe-sidebar label{display:block;font-weight:700;margin-bottom:8px}.joe-sidebar input{width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--joe-border,#d7dce2);border-radius:10px;font-size:16px}.joe-conversation-list{display:grid;gap:6px;margin-top:10px}.joe-conversation-list button{border:0;background:transparent;text-align:left;padding:10px;border-radius:9px;cursor:pointer}.joe-conversation-list button.is-active,.joe-conversation-list button:hover{background:#f1f3f5}.joe-memory-item{padding:10px 0;border-bottom:1px solid var(--joe-border,#d7dce2)}.joe-memory-item small{display:block;margin-top:4px;color:#667085;word-break:break-word}.joe-muted{color:#667085;font-size:.92rem}.joe-panel form{display:grid;gap:12px}.joe-panel input[type=file]{max-width:100%}.joe-panel button{min-height:40px}.joe-bubble pre{overflow:auto;padding:10px;border-radius:8px;background:#111827;color:#f9fafb}.joe-bubble code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media (max-width:980px){.joe-app-layout{grid-template-columns:minmax(0,1fr)}.joe-sidebar{border-right:0;border-bottom:1px solid var(--joe-border,#d7dce2)}.joe-panel{position:static!important;width:auto!important;max-width:none!important}}

/* 0.6.2 Joe-owned access + onboarding */
.dtx-joe-entry,.dtx-joe-onboarding{min-height:100vh;display:grid;place-items:center;padding:32px;background:radial-gradient(circle at 20% 0,#e7f0ef 0,transparent 34%),linear-gradient(155deg,#f7f5f0,#e9eceb);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--joe-ink)}
.joe-entry-card,.joe-onboarding-card{width:min(760px,100%);background:#fff;border:1px solid var(--joe-line);border-radius:28px;box-shadow:var(--joe-shadow);padding:32px}.joe-entry-card{max-width:520px}.joe-entry-mark{display:flex;align-items:center;gap:10px;margin-bottom:26px}.joe-entry-mark strong{font-size:18px}.joe-entry-card h1,.joe-onboarding-step h1{font-size:clamp(28px,5vw,44px);line-height:1.05;margin:.25em 0}.joe-entry-card>p,.joe-onboarding-step>p{color:var(--joe-muted);line-height:1.6}.joe-login-form label{display:block;font-weight:650;margin:14px 0 6px}.joe-login-form input[type=text],.joe-login-form input[type=password]{width:100%;min-height:48px;border:1px solid var(--joe-line);border-radius:12px;padding:10px 12px;font-size:16px}.joe-login-form .login-remember label{display:flex;gap:8px;align-items:center;font-weight:500}.joe-login-form .button-primary{width:100%;min-height:48px;border:0;border-radius:999px;background:var(--joe-accent);color:#fff;font:inherit;font-weight:700;cursor:pointer}.joe-entry-note{font-size:12px!important}.joe-onboarding-progress{text-align:right;color:var(--joe-muted);font-size:12px}.joe-onboarding-step{display:none;min-height:410px;padding:28px 0 12px}.joe-onboarding-step.is-active{display:block}.joe-onboarding-step input[type=text],.joe-onboarding-step textarea{width:100%;border:1px solid var(--joe-line);border-radius:14px;padding:14px;font:inherit;font-size:16px}.joe-choice-grid{display:grid;gap:10px;margin-top:22px}.joe-choice-grid label{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:start;padding:16px;border:1px solid var(--joe-line);border-radius:16px;cursor:pointer}.joe-choice-grid label:has(input:checked){border-color:var(--joe-accent);box-shadow:0 0 0 2px rgba(41,95,103,.12);background:var(--joe-accent-soft)}.joe-choice-grid input{grid-row:1/3;margin-top:4px}.joe-choice-grid strong{font-size:16px}.joe-choice-grid span{color:var(--joe-muted);font-size:13px;margin-top:3px}.joe-onboarding-actions{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--joe-line);padding-top:18px}.joe-onboarding-actions button{min-height:44px;border:1px solid var(--joe-line);border-radius:999px;background:#fff;padding:0 18px;font:inherit;font-weight:650;cursor:pointer}.joe-onboarding-actions [data-onboarding-next],.joe-onboarding-actions [data-onboarding-finish]{margin-left:auto;background:var(--joe-accent);border-color:var(--joe-accent);color:#fff}.joe-onboarding-actions button:disabled{opacity:.45;cursor:not-allowed}.joe-import-choice{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid var(--joe-line);border-radius:14px;margin-top:20px}.joe-onboarding-summary{margin-top:20px;padding:14px;border-radius:14px;background:var(--joe-accent-soft)}.joe-onboarding-summary p{margin:.4em 0 0}.joe-onboarding-error{padding:10px 12px;border-radius:10px;background:#fff0f0;color:#9a2424}
body.dtx-joe-app-page{margin:0;background:var(--joe-bg)}body.dtx-joe-app-page .dtx-joe-shell{margin:0 auto;border-radius:0;min-height:100vh;max-width:none;border-left:0;border-right:0}
@media(max-width:640px){.dtx-joe-entry,.dtx-joe-onboarding{padding:0}.joe-entry-card,.joe-onboarding-card{border-radius:0;min-height:100vh;padding:24px 18px}.joe-onboarding-step{min-height:480px}}
.joe-native-login{display:grid;gap:12px}.joe-native-login label{display:grid;gap:6px;font-weight:650}.joe-native-login input[type=text],.joe-native-login input[type=password]{width:100%;min-height:48px;border:1px solid var(--joe-line);border-radius:12px;padding:10px 12px;font-size:16px}.joe-native-login .joe-remember{display:flex;align-items:center;gap:8px;font-weight:500}.joe-native-login button{width:100%;min-height:48px;border:0;border-radius:999px;background:var(--joe-accent);color:#fff;font:inherit;font-weight:700;cursor:pointer}.joe-login-error{background:#fff0f0;color:#9a2424!important;padding:10px 12px;border-radius:10px}

/* 0.6.6 onboarding/API scope corrective context */
.joe-onboarding-step--context textarea{min-height:280px;max-height:46vh;resize:vertical;line-height:1.5}
.joe-field-help{padding:12px 14px;border-radius:14px;background:var(--joe-accent-soft);color:var(--joe-ink)!important}
.joe-field-meta{display:flex;justify-content:space-between;gap:16px;margin-top:8px;color:var(--joe-muted);font-size:11px}
@media(max-width:640px){.joe-field-meta{display:block}.joe-field-meta span{display:block;margin-top:4px}.joe-onboarding-step--context textarea{min-height:320px;max-height:52vh}}

/* 0.7.0 Unified Joe Conversation Experience — bounded viewport */
html:has(body.dtx-joe-app-page),body.dtx-joe-app-page{height:100%;overflow:hidden}
body.dtx-joe-app-page{margin:0;background:var(--joe-bg)}
body.dtx-joe-app-page .dtx-joe-shell{height:100dvh;min-height:0;max-height:100dvh;margin:0;border:0;border-radius:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
body.dtx-joe-app-page .joe-topbar{position:relative;z-index:4}
body.dtx-joe-app-page .joe-app-layout{height:100%;min-height:0;overflow:hidden;align-items:stretch;grid-template-columns:minmax(190px,240px) minmax(0,1fr)}
body.dtx-joe-app-page .joe-sidebar{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.dtx-joe-app-page .joe-conversation{width:min(820px,100%);height:100%;min-height:0;margin:0 auto;padding:22px 22px 14px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;grid-template-areas:"stage" "runtime" "feed" "suggestions" "composer" "footnote";overflow:hidden}
body.dtx-joe-app-page .joe-stage{margin-bottom:14px}
body.dtx-joe-app-page .joe-feed{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:4px 8px 18px 0;scroll-behavior:smooth}
body.dtx-joe-app-page .joe-suggestions{margin:10px 0 8px;flex-shrink:0}
body.dtx-joe-app-page .joe-suggestions[hidden]{display:none}
body.dtx-joe-app-page .joe-composer{position:relative;z-index:2;flex-shrink:0}
body.dtx-joe-app-page .joe-footnote{margin:7px 5px 0;min-height:15px}
body.dtx-joe-app-page .joe-panel{position:fixed;top:72px;right:18px;max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain}
@media(max-width:980px){body.dtx-joe-app-page .joe-app-layout{grid-template-columns:minmax(150px,200px) minmax(0,1fr)}body.dtx-joe-app-page .joe-panel{position:fixed!important;width:min(360px,calc(100% - 24px))!important;max-width:none!important}}
@media(max-width:700px){body.dtx-joe-app-page .joe-app-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}body.dtx-joe-app-page .joe-sidebar{max-height:150px;border-right:0;border-bottom:1px solid var(--joe-line)}body.dtx-joe-app-page .joe-conversation{padding:12px 14px 10px}body.dtx-joe-app-page .joe-stage{display:none}}
.joe-runtime-banner{margin:0 0 10px;padding:9px 12px;border:1px solid #d9b45d;border-radius:12px;background:#fff7dd;color:#5b460d;font-size:12px;line-height:1.4}
.joe-runtime-banner[hidden]{display:none}

body.dtx-joe-app-page .joe-stage{grid-area:stage}
body.dtx-joe-app-page .joe-runtime-banner{grid-area:runtime}
body.dtx-joe-app-page .joe-feed{grid-area:feed}
body.dtx-joe-app-page .joe-suggestions{grid-area:suggestions}
body.dtx-joe-app-page .joe-composer{grid-area:composer}
body.dtx-joe-app-page .joe-footnote{grid-area:footnote}

.joe-context-inspector{margin-top:18px;padding-top:16px;border-top:1px solid var(--joe-border,#dcdcde)}
.joe-context-inspector textarea{width:100%;box-sizing:border-box;resize:vertical}
.joe-context-summary,.joe-capability-summary{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:10px;padding:10px;border:1px solid var(--joe-border,#dcdcde);border-radius:8px;max-height:240px;overflow:auto;font-size:12px;line-height:1.45}
.joe-lab-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

.joe-knowledge-status{margin:10px 0;font-size:12px;color:var(--joe-muted,#646970)}
[data-knowledge-search-results]{margin-top:12px}
[data-panel="knowledge"] form{display:grid;gap:8px;margin:12px 0}
[data-panel="knowledge"] label{display:grid;gap:5px}

/* R5 conversation UX corrective */
.dtx-joe-app-page{background:#f5faff!important}
.dtx-joe-shell{background:#f5faff!important;border-color:#d8e8f3!important}
.joe-topbar{background:rgba(255,255,255,.92)!important;border-color:#d8e8f3!important}
.joe-stage{border-color:#d8e8f3!important;box-shadow:0 8px 24px rgba(29,86,120,.06)}
.joe-bubble{border-radius:22px!important;border-color:#d8e8f3!important;box-shadow:0 5px 18px rgba(29,86,120,.055)}
.joe-message--joe .joe-bubble{background:#fff!important;color:#173247!important}
.joe-message--user .joe-bubble{background:#2b6f91!important;border-color:#2b6f91!important;color:#fff!important}
.joe-composer{border-radius:30px!important;border:1px solid #bfd8e7!important;background:#fff!important;padding:7px 8px 7px 14px!important;box-shadow:0 12px 32px rgba(29,86,120,.10)!important;overflow:hidden!important;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important}
.joe-composer:focus-within{border-color:#86b8d0!important;box-shadow:0 0 0 3px rgba(43,111,145,.11),0 12px 32px rgba(29,86,120,.10)!important}
.dtx-joe-shell .joe-composer textarea,.dtx-joe-shell textarea[data-joe-input]{appearance:none!important;-webkit-appearance:none!important;flex:1!important;width:100%!important;min-height:42px!important;max-height:144px!important;margin:0!important;padding:10px 4px!important;border:0!important;border-radius:20px!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#173247!important;font:inherit!important;line-height:1.45!important;resize:none!important;overflow-y:hidden}
.dtx-joe-shell .joe-composer textarea:focus,.dtx-joe-shell .joe-composer textarea:focus-visible,.dtx-joe-shell textarea[data-joe-input]:focus,.dtx-joe-shell textarea[data-joe-input]:focus-visible{border:0!important;outline:0!important;outline-offset:0!important;box-shadow:none!important;background:transparent!important}
.joe-attach,.joe-send,.joe-suggestions button,.joe-panel button,.joe-topbar button{border-radius:999px!important;transition:transform .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease!important}
.joe-attach:hover,.joe-send:hover,.joe-suggestions button:hover,.joe-panel button:hover,.joe-topbar button:hover{transform:translateY(-1px)}
.joe-send{background:#2b6f91!important;border-color:#2b6f91!important;color:#fff!important}.joe-send:hover{background:#215b78!important;border-color:#215b78!important}
.joe-panel{border-color:#d8e8f3!important;background:linear-gradient(180deg,#fff 0%,#f6fbff 100%)!important}
.joe-panel:not([hidden]){animation:joe-r5-panel-in .18s ease both}@keyframes joe-r5-panel-in{from{opacity:0;transform:translateY(8px) scale(.992)}to{opacity:1;transform:none}}
@media(max-width:900px){.joe-bubble{border-radius:19px!important}.joe-composer{border-radius:27px!important}}

/* DTX Joe Core 0.7.0 R6 — six-line composer + contained viewport */
:root{--joe-composer-min-height:132px;--joe-composer-max-height:220px;--joe-composer-bottom-lift:96px}
html{height:100%;overflow:hidden}
body.dtx-joe-app-page{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
body.dtx-joe-app-page #dtx-joe-app{height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.dtx-joe-app-page .dtx-joe-shell{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important}
body.dtx-joe-app-page .joe-app-layout,body.dtx-joe-app-page .joe-layout{min-height:0!important;overflow:hidden!important}
body.dtx-joe-app-page .joe-conversation{height:100%!important;min-height:0!important;padding-bottom:var(--joe-composer-bottom-lift)!important;overflow:hidden!important}
body.dtx-joe-app-page .joe-feed{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
.dtx-joe-shell .joe-composer textarea,.dtx-joe-shell textarea[data-joe-input]{min-height:var(--joe-composer-min-height)!important;height:var(--joe-composer-min-height);max-height:var(--joe-composer-max-height)!important;overflow-y:hidden}
body.dtx-joe-app-page .joe-composer{align-self:end}
@media(max-width:700px){:root{--joe-composer-bottom-lift:48px;--joe-composer-min-height:116px}}

/* DTX Joe Core 0.7.0 R8 — uncapped conversation flow */
body.dtx-joe-app-page .joe-conversation{
  grid-template-rows:minmax(0,1fr) auto auto!important;
  grid-template-areas:"scroll" "composer" "footnote"!important;
  padding-top:0!important;
}
body.dtx-joe-app-page .joe-scroll-region{
  grid-area:scroll;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scroll-behavior:smooth;
  padding:18px 8px 24px 0;
}
body.dtx-joe-app-page .joe-scroll-region .joe-stage{
  margin:0 0 14px;
}
body.dtx-joe-app-page .joe-scroll-region .joe-runtime-banner{
  margin:0 0 12px;
}
body.dtx-joe-app-page .joe-scroll-region .joe-feed{
  overflow:visible!important;
  min-height:auto!important;
  padding:0!important;
  scrollbar-gutter:auto!important;
}
body.dtx-joe-app-page .joe-scroll-region .joe-suggestions{
  margin:14px 0 2px;
}
/* Presence/provider state now scroll away with conversation instead of capping transcript. */
body.dtx-joe-app-page .joe-stage,body.dtx-joe-app-page .joe-runtime-banner,body.dtx-joe-app-page .joe-feed,body.dtx-joe-app-page .joe-suggestions{grid-area:auto!important}

/* R9 reasoning-provider setup */
.joe-provider-chip{border-color:#bdd7e7!important;background:#f7fbff!important;color:#235b78!important;font-weight:650}
.joe-provider-chip.is-connected{background:#e6f5ed!important;border-color:#a8d8bd!important;color:#1f6440!important}
.joe-provider-panel form{display:grid;gap:11px}.joe-provider-panel label{display:grid;gap:5px;font-size:12px;color:var(--joe-muted)}
.joe-provider-panel input,.joe-provider-panel select{width:100%;border:1px solid var(--joe-line);border-radius:12px;background:#fff;color:var(--joe-ink);padding:10px 11px;font:inherit}
.joe-provider-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.joe-provider-panel details{border:1px solid var(--joe-line);border-radius:12px;padding:9px 10px}
.joe-provider-panel details[open]{display:grid;gap:9px}.joe-provider-state{margin:12px 0;padding:10px 12px;border-radius:12px;background:var(--joe-accent-soft);font-size:12px}
.joe-primary-action{background:var(--joe-accent)!important;color:#fff!important;border-color:var(--joe-accent)!important}.joe-secondary-action{background:#fff!important}
@media(max-width:600px){.joe-provider-grid{grid-template-columns:1fr}}

/* R13 notification / secure-review surface */
.joe-notification-button{display:inline-flex!important;align-items:center!important;gap:6px!important}.joe-notification-button [data-notification-count]{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--joe-accent);color:#fff;font-size:11px}.joe-notification-item{border:1px solid var(--joe-line);border-radius:18px;padding:14px;margin:0 0 12px;background:#fff}.joe-notification-meta{display:flex;flex-direction:column;gap:3px}.joe-notification-meta>span,.joe-review-field span{color:var(--joe-muted);font-size:12px}.joe-secure-review{margin:10px 0;padding:10px;border-radius:14px;background:#f7fbfe}.joe-review-field{display:grid;gap:2px;margin:7px 0}.joe-notification-summary{padding:10px 12px;border-radius:14px;background:#eef7fc;margin-bottom:12px}.joe-transport-details{margin-top:16px;border-top:1px solid var(--joe-line);padding-top:12px}

/* R14 workspace UX — soccer-inspired app chrome, attachment tools and Memory manager */
body.dtx-joe-app-page #masthead,
body.dtx-joe-app-page .site-header,
body.dtx-joe-app-page .main-header,
body.dtx-joe-app-page .entry-header,
body.dtx-joe-app-page .page-header,
body.dtx-joe-app-page .entry-title{display:none!important}
body.dtx-joe-app-page{margin:0!important;padding-top:0!important;background:#eef4f8!important}
body.dtx-joe-app-page .dtx-joe-shell{grid-template-rows:minmax(0,1fr)!important;background:#eef4f8!important}
body.dtx-joe-app-page .joe-app-layout{grid-template-columns:minmax(165px,205px) minmax(0,1fr)!important;gap:0!important}
body.dtx-joe-app-page .joe-sidebar{display:flex;flex-direction:column;gap:14px;height:100%;box-sizing:border-box;padding:12px 10px;border-right:1px solid #d8e2e9!important;background:#f7fafc;overflow:hidden}
.joe-utility-dock{display:grid;gap:6px;flex:0 0 auto}
.joe-utility-dock button{width:100%;min-height:36px;padding:7px 10px;border:1px solid #d9e3e9;border-radius:10px;background:#fff;color:#26475a;text-align:left;font-size:14px;font-weight:650;box-shadow:none;cursor:pointer}
.joe-utility-dock button:hover{background:#eef7fc;border-color:#bfd8e7;transform:translateY(-1px)}
.joe-utility-dock .joe-provider-chip{background:#eef7fc!important}
.joe-sidebar-history{min-height:0;display:flex;flex-direction:column;overflow:hidden;border-top:1px solid #d8e2e9;padding-top:12px}
.joe-sidebar-history>label{font-size:12px;color:#637888;margin-bottom:7px}.joe-sidebar-history .joe-conversation-list{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:2px}
body.dtx-joe-app-page .joe-conversation{padding:0 22px var(--joe-composer-bottom-lift)!important;background:#f5faff!important}
body.dtx-joe-app-page .joe-scroll-region{padding:10px 8px 24px 0!important;scroll-padding-top:0!important}
body.dtx-joe-app-page .joe-stage{margin-top:0!important}
body.dtx-joe-app-page .joe-panel{top:14px!important;right:18px!important;max-height:calc(100dvh - 28px)!important}

/* Composer: plus is deliberately isolated on the far left and Send remains far right. */
body.dtx-joe-app-page .joe-composer{display:block!important;padding:8px 10px!important;overflow:visible!important}
.joe-composer-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:10px}
.joe-composer-tools{position:relative;align-self:end;padding-bottom:3px}
.joe-composer-actions{display:contents}
.joe-attach{width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;display:grid!important;place-items:center;border:1px solid #cfe0ea!important;background:#f8fcff!important;color:#245e7d!important;font-size:24px!important;line-height:1!important}
.joe-send{align-self:end;min-width:68px;min-height:44px;padding:0 18px!important}
.joe-compose-menu{position:absolute;left:0;bottom:calc(100% + 10px);z-index:30;width:min(310px,calc(100vw - 42px));padding:8px;border:1px solid #d8e8f3;border-radius:16px;background:#fff;box-shadow:0 16px 38px rgba(29,86,120,.16)}
.joe-compose-menu[hidden]{display:none}.joe-compose-menu button{display:grid;width:100%;gap:2px;min-height:0!important;padding:9px 11px!important;border:0!important;border-radius:11px!important;background:transparent!important;text-align:left;color:#173247;cursor:pointer}
.joe-compose-menu button:hover{background:#eef7fc!important}.joe-compose-menu strong{font-size:13px}.joe-compose-menu span{font-size:11px;color:#677d8c;font-weight:400}
.joe-attachment-tray{display:flex;gap:7px;flex-wrap:wrap;padding:0 2px 8px}.joe-attachment-tray[hidden]{display:none}
.joe-attachment-chip{display:inline-flex;align-items:center;gap:7px;max-width:260px;padding:6px 7px 6px 10px;border:1px solid #d7e5ed;border-radius:999px;background:#f2f8fc;color:#254d64;font-size:11px}
.joe-attachment-chip>span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.joe-attachment-chip small{color:#708591}.joe-attachment-chip button{width:24px;height:24px;min-height:24px!important;padding:0!important;border:0!important;background:transparent!important;color:#536c7b;font-size:16px;cursor:pointer}

/* Memory manager: compact card/list treatment based on the established Soccer app's light cards and left-navigation rhythm, while preserving Joe's blue palette. */
.joe-memory-panel{width:min(560px,calc(100% - 36px))!important;background:#f7fafc!important}
.joe-panel-subtitle{display:block;margin-top:3px;color:#718390;font-size:11px;font-weight:400}.joe-memory-summary{margin:0 0 12px;padding:9px 11px;border:1px solid #dbe7ed;border-radius:12px;background:#fff;color:#556f7e;font-size:12px}
.joe-memory-teach{padding:12px;border:1px solid #dbe7ed;border-radius:15px;background:#fff}.joe-memory-teach textarea{width:100%;box-sizing:border-box;min-height:94px;resize:vertical;border:1px solid #cfdce4;border-radius:11px;padding:10px 11px;font:inherit;color:#173247;background:#fff}.joe-memory-teach-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.joe-memory-teach select{width:100%;min-height:40px;border:1px solid #cfdce4;border-radius:10px;background:#fff;padding:7px 9px}
.joe-memory-toolbar{display:grid;gap:9px;margin:13px 0}.joe-memory-tabs{display:flex;gap:5px;flex-wrap:wrap}.joe-memory-tabs button{min-height:34px!important;padding:6px 10px!important;background:#fff!important;border:1px solid #d9e3e9!important;color:#526b79!important;font-size:11px}.joe-memory-tabs button.is-active{background:#e4f2fa!important;border-color:#acd0e2!important;color:#1f5c7a!important}.joe-memory-toolbar input[type=search]{width:100%;min-height:40px;border:1px solid #cfdce4;border-radius:11px;padding:8px 10px;background:#fff}
.joe-memory-bulk{display:flex;gap:7px}.joe-memory-bulk[hidden]{display:none}.joe-memory-list{display:grid;gap:9px}.joe-memory-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;padding:11px 12px;border:1px solid #e0e7ec;border-radius:13px;background:#fff;box-shadow:0 2px 7px rgba(25,60,80,.045);transition:transform .15s ease,box-shadow .15s ease}.joe-memory-card:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(25,60,80,.07)}.joe-memory-card-copy{min-width:0;display:grid;gap:6px}.joe-memory-card strong{color:#173247;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.joe-memory-card small{display:block;color:#718390;font-size:10.5px;overflow-wrap:anywhere}.joe-memory-select{padding-top:2px}.joe-memory-actions{display:flex;gap:6px;flex-wrap:wrap}.joe-memory-actions button{min-height:30px!important;padding:4px 9px!important;font-size:10.5px!important;background:#f7fafc!important}.joe-memory-card--source{display:block;background:#fbfcfd}.joe-memory-card--source details>summary{cursor:pointer;display:grid;gap:5px;list-style:none}.joe-memory-card--source details>summary::-webkit-details-marker{display:none}.joe-memory-card--source details>summary:before{content:'›';float:left;margin-right:7px;color:#6c8797;font-size:18px;line-height:13px;transition:transform .15s}.joe-memory-card--source details[open]>summary:before{transform:rotate(90deg)}.joe-memory-source-body{margin-top:10px;padding:10px;border-top:1px solid #e5ebef;color:#38596a;font-size:11.5px;line-height:1.45;max-height:260px;overflow:auto;overflow-wrap:anywhere}.joe-memory-more{width:100%;margin-top:10px}

@media(max-width:760px){body.dtx-joe-app-page .joe-app-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important}body.dtx-joe-app-page .joe-sidebar{height:auto;max-height:172px!important;border-right:0!important;border-bottom:1px solid #d8e2e9!important}.joe-utility-dock{display:flex;overflow-x:auto;gap:6px}.joe-utility-dock button{width:auto;white-space:nowrap}.joe-sidebar-history>label{display:none}.joe-sidebar-history{padding-top:7px}.joe-conversation-list{display:flex!important;overflow-x:auto!important}.joe-conversation-list button{white-space:nowrap}.joe-memory-panel{width:calc(100% - 20px)!important;right:10px!important}.joe-memory-teach-row{grid-template-columns:1fr}.joe-composer-main{gap:7px}.joe-send{min-width:62px;padding:0 13px!important}}


/* R16 Harvest + Workstream proposal surfaces */
.joe-harvest-route-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:10px}
.joe-harvest-route-row select{min-width:0}
.joe-workstream-state{padding:10px 12px;border:1px solid #dbe4ef;border-radius:12px;background:#f9fafb;margin-bottom:12px}
.joe-workstream-preview{margin-top:12px}
.joe-workstream-contract{background:#f9fafb;border:1px solid #e5e7eb;border-radius:13px;padding:14px;box-shadow:0 3px 10px rgba(15,23,42,.05)}
.joe-workstream-contract p{margin:9px 0}
.joe-workstream-panel textarea[name="original_request"]{min-height:110px}
@media(max-width:700px){.joe-harvest-route-row{grid-template-columns:1fr}.joe-harvest-route-row button{width:100%}}


/* R17 conversation reliability status */
.joe-conversation-summary{
 display:block;
 margin:6px 0 8px;
 color:var(--joe-muted,#5f7280);
 font-size:12px;
 line-height:1.3;
}


/* R18 — in-thread thinking presence */
.joe-thinking-indicator{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:2px 0 10px 6px;min-height:18px;color:#6f91a7;font-size:12px;font-weight:600;letter-spacing:.01em}
.joe-thinking-label{white-space:nowrap}
.joe-thinking-dots{display:inline-flex;align-items:center;gap:3px}
.joe-thinking-dots i{display:block;width:5px;height:5px;border-radius:999px;background:#9fdcf3;opacity:.28;animation:joe-thinking-pulse 1.25s ease-in-out infinite}
.joe-thinking-dots--left i:nth-child(1){animation-delay:0s}.joe-thinking-dots--left i:nth-child(2){animation-delay:.14s}.joe-thinking-dots--left i:nth-child(3){animation-delay:.28s}
.joe-thinking-dots--right i:nth-child(1){animation-delay:.42s}.joe-thinking-dots--right i:nth-child(2){animation-delay:.56s}.joe-thinking-dots--right i:nth-child(3){animation-delay:.70s}
@keyframes joe-thinking-pulse{0%,60%,100%{opacity:.25;transform:scale(.82)}30%{opacity:1;transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.joe-thinking-dots i{animation:none;opacity:.68;transform:none}}


/* DTX Joe Core 0.14.0 R19C1 — borderless wide conversation, organizer and large-paste continuity */
body.dtx-joe-app-page .joe-conversation{width:100%!important;max-width:1240px!important;background:transparent!important;padding-left:32px!important;padding-right:32px!important}
body.dtx-joe-app-page .joe-scroll-region{padding-left:0!important;padding-right:0!important}
body.dtx-joe-app-page .joe-message{max-width:94%!important}
body.dtx-joe-app-page .joe-stage{display:none!important}
.joe-conversation-menu{position:fixed;z-index:80;min-width:230px;max-width:min(320px,calc(100vw - 16px));padding:7px;border:1px solid #d8e8f3;border-radius:14px;background:#fff;box-shadow:0 16px 40px rgba(29,86,120,.18)}
.joe-conversation-menu[hidden]{display:none}.joe-conversation-menu button{display:block;width:100%;min-height:34px;padding:7px 10px;border:0;border-radius:9px;background:transparent;color:#173247;text-align:left;font:inherit;font-size:12px;cursor:pointer}.joe-conversation-menu button:hover{background:#eef7fc}.joe-conversation-menu .is-muted{color:#617786}.joe-conversation-menu-label{padding:8px 10px 3px;color:#617786;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.joe-conversation-menu-empty{padding:6px 10px;color:#7b8e9b;font-size:11px}
@media(max-width:900px){body.dtx-joe-app-page .joe-conversation{max-width:none!important;padding-left:16px!important;padding-right:16px!important}.joe-message{max-width:97%!important}}


/* DTX Joe Core 0.14.1 R19C1 — title-first search + headerless blended chat */
body.dtx-joe-app-page .dtx-joe-shell{
  max-width:none!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#eef4f8!important;
}
body.dtx-joe-app-page .joe-conversation,
body.dtx-joe-app-page .joe-scroll-region{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.dtx-joe-app-page .joe-scroll-region{padding-top:0!important}
body.dtx-joe-app-page .joe-runtime-banner,
body.dtx-joe-app-page .joe-stage,
body.dtx-joe-app-page .joe-topbar{display:none!important}

/* R20: semantic-link navigation and destructive conversation action */
.joe-utility-dock>a{display:flex;align-items:center;text-decoration:none;color:inherit;box-sizing:border-box;}
.joe-conversation-list>a{display:block;text-decoration:none;color:inherit;}
.joe-conversation-menu .is-danger{font-weight:700;}

/* R20 workspace */
body.dtx-joe-app-page .dtx-joe-shell{--joe-sidebar-width:360px;--joe-content-width:66.666%}body.dtx-joe-app-page .joe-app-layout{grid-template-columns:var(--joe-sidebar-width) minmax(0,1fr)!important;gap:0!important}.joe-primary-nav,.joe-sidebar-advanced,.joe-sidebar-footer{display:grid;gap:6px}.joe-primary-nav>a,.joe-sidebar-advanced>a,.joe-sidebar-footer>a,.joe-sidebar-footer>button{display:flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid #d9e3e9;border-radius:9px;background:#fff;color:#173247;text-decoration:none;font:inherit;font-size:12px;font-weight:650}.joe-sidebar{position:relative!important;padding:12px 14px!important}.joe-sidebar-footer{margin-top:auto;grid-template-columns:1fr auto}.joe-sidebar-resizer{position:absolute;right:-3px;top:0;width:7px;height:100%;cursor:col-resize;z-index:20}.joe-sidebar-advanced[hidden]{display:none!important}.joe-sidebar-collapsed{--joe-sidebar-width:74px!important}.joe-sidebar-collapsed .joe-sidebar-history,.joe-sidebar-collapsed .joe-sidebar-advanced,.joe-sidebar-collapsed .joe-primary-nav>a:not([data-action="new-chat"]),.joe-sidebar-collapsed .joe-sidebar-footer>a{display:none!important}body.dtx-joe-app-page .joe-conversation{max-width:none!important;width:100%!important;padding-left:0!important;padding-right:0!important;justify-items:center!important}body.dtx-joe-app-page .joe-scroll-region,body.dtx-joe-app-page .joe-composer,body.dtx-joe-app-page .joe-footnote{width:min(var(--joe-content-width),1100px)!important;max-width:1100px!important}body.dtx-joe-app-page .joe-message{max-width:100%!important;width:100%!important}body.dtx-joe-app-page .joe-message .joe-bubble{max-width:86%;width:fit-content}body.dtx-joe-app-page .joe-message--user .joe-bubble{margin-left:auto;background:#000!important;border-color:#000!important;color:#fff!important}.joe-composer-main{grid-template-columns:auto minmax(0,1fr) auto auto!important}.joe-answer-mode-label select{min-height:34px;max-width:105px;border:1px solid #d4e1e8;border-radius:9px;background:#fff;padding:4px 6px}.joe-composer.is-dragover{outline:3px dashed #6aa9c8!important}.joe-message-content h1,.joe-message-content h2,.joe-message-content h3{line-height:1.25}.joe-message-content ul,.joe-message-content ol{padding-left:1.45rem}.joe-message-content blockquote{padding:.35em .9em;border-left:3px solid #8fb8ca;background:#f4f8fa}.joe-table-wrap{overflow:auto}.joe-table-wrap table{width:100%;border-collapse:collapse}.joe-table-wrap th,.joe-table-wrap td{border:1px solid #d8e2e9;padding:7px 9px;text-align:left}.joe-settings-section{padding:12px 0;border-bottom:1px solid #e0e8ed}.joe-settings-links{display:grid;grid-template-columns:1fr 1fr;gap:7px}.joe-usage-table{width:100%;border-collapse:collapse}.joe-usage-table th,.joe-usage-table td{padding:7px;border-bottom:1px solid #e5ecef;text-align:left}@media(max-width:1150px){body.dtx-joe-app-page .joe-scroll-region,body.dtx-joe-app-page .joe-composer,body.dtx-joe-app-page .joe-footnote{width:min(82%,960px)!important}}@media(max-width:760px){body.dtx-joe-app-page .joe-app-layout{grid-template-columns:1fr!important}.joe-sidebar-resizer{display:none}body.dtx-joe-app-page .joe-scroll-region,body.dtx-joe-app-page .joe-composer,body.dtx-joe-app-page .joe-footnote{width:calc(100% - 24px)!important}.joe-settings-links{grid-template-columns:1fr}.joe-composer-main{grid-template-columns:auto minmax(0,1fr) auto!important}.joe-answer-mode-label{grid-column:2/3}}

/* R21 real media and native conversation links */
.joe-conversation-row{display:flex;align-items:center;gap:4px;min-width:0}.joe-conversation-row>a{flex:1;min-width:0}.joe-conversation-actions{border:0;background:transparent;color:inherit;cursor:pointer;font-size:22px;padding:2px 7px}.joe-conversation-actions:focus-visible{outline:2px solid #236c88}.joe-output-kind-label{align-self:flex-end}.joe-output-kind-label select{max-width:100px;border:1px solid #cfdae2;border-radius:8px;padding:7px;background:#fff;color:#152b3a}.joe-media-card{box-sizing:border-box;background:#fff;border:1px solid #d7e5ee;border-radius:20px;padding:20px;margin:16px 0;max-width:100%;overflow-wrap:anywhere}.joe-media-card h3{margin:0 0 12px}.joe-media-prompt{white-space:pre-wrap}.joe-generated-media,.joe-found-media{display:block;max-width:100%;max-height:620px;width:auto;height:auto;margin:12px auto;border-radius:12px}.joe-media-card video{width:100%}.joe-media-card button,.joe-media-download{display:inline-block;border:1px solid #1f6280;border-radius:9px;background:#1f6280;color:#fff;padding:10px 14px;margin:8px 8px 8px 0;cursor:pointer;text-decoration:none}.joe-media-card button:disabled{opacity:.6;cursor:wait}.joe-media-card small{display:block;font-size:11px;color:#456070}.joe-media-state{text-transform:capitalize;font-weight:600}.joe-media-error{color:#8b2323}.joe-media-capability-status{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px}.joe-media-card:focus-within{outline:2px solid #8bbace}@media(max-width:720px){.joe-media-card{padding:12px}.joe-output-kind-label select{max-width:82px}.joe-generated-media,.joe-found-media{max-height:400px}}

/* R22 compact composer: prompt grows upward; controls occupy one bottom row. */
:root{--joe-composer-min-height:42px;--joe-composer-max-height:180px;--joe-composer-bottom-lift:18px}
body.dtx-joe-app-page .joe-conversation{padding-bottom:var(--joe-composer-bottom-lift)!important}
body.dtx-joe-app-page .joe-composer{display:block!important;padding:8px 10px 7px!important;border-radius:28px!important;overflow:visible!important}
.joe-composer-main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:4px!important;align-items:end!important}
.dtx-joe-shell .joe-composer textarea,.dtx-joe-shell textarea[data-joe-input]{grid-row:1!important;min-height:42px!important;height:42px;max-height:180px!important;padding:9px 8px 6px!important;line-height:1.42!important;overflow-y:hidden}
.joe-composer-control-row{grid-row:2;display:flex;align-items:center;gap:8px;min-width:0}
.joe-composer-spacer{flex:1 1 auto;min-width:8px}
.joe-composer-tools{align-self:center!important;padding-bottom:0!important}
.joe-output-kind-label,.joe-answer-mode-label{align-self:center!important}
.joe-output-kind-label select,.joe-answer-mode-label select{min-height:36px!important;max-width:118px!important;border:1px solid #d4e1e8!important;border-radius:10px!important;background:#fff!important;padding:4px 8px!important}
.joe-attach{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;display:inline-grid!important;place-items:center!important;font-size:24px!important}
.joe-send{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:999px!important;display:inline-grid!important;place-items:center!important;font-size:25px!important;line-height:1!important}
.joe-footnote{min-height:0!important;margin:4px 0 0!important;padding:0!important;font-size:11px!important}
.joe-footnote:empty{display:none!important}
@media(max-width:760px){:root{--joe-composer-bottom-lift:10px}.joe-composer-control-row{gap:6px}.joe-output-kind-label select,.joe-answer-mode-label select{max-width:102px!important}.joe-composer-spacer{min-width:0}.joe-send{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}}


/* R24 media UX + grayscale corrective */
:root{--joe-bg:#f4f4f4;--joe-panel:#fff;--joe-ink:#202020;--joe-muted:#666;--joe-line:#d5d5d5;--joe-soft:#f0f0f0;--joe-accent:#2b2b2b;--joe-accent-soft:#ededed;--joe-shadow:0 14px 34px rgba(0,0,0,.08)}
body.dtx-joe-app-page,.dtx-joe-app-page,.dtx-joe-shell,body.dtx-joe-app-page .joe-conversation{background:#f4f4f4!important;color:#202020!important}
.joe-sidebar,.joe-panel,.joe-composer,.joe-bubble,.joe-setting-card,.joe-media-card{border-color:#d5d5d5!important}
.joe-message--joe .joe-bubble{color:#202020!important}.joe-muted,.joe-message-name,.joe-setting-status,.joe-setting-meta{color:#666!important}
.joe-primary-nav>a,.joe-sidebar-advanced>a,.joe-sidebar-footer>a,.joe-sidebar-footer>button,.joe-conversation-row>a{color:#272727!important;border-color:#d5d5d5!important}
.joe-conversation-row>a:visited{color:#3d3d3d!important}.joe-conversation-actions,.joe-panel button{color:#2b2b2b}
.joe-send{background:#2b2b2b!important;border-color:#2b2b2b!important;color:#fff!important}.joe-send:hover{background:#1e1e1e!important;border-color:#1e1e1e!important}
.joe-composer{border-color:#bdbdbd!important;box-shadow:0 8px 24px rgba(0,0,0,.08)!important}.joe-composer:focus-within{border-color:#555!important;box-shadow:0 0 0 2px rgba(40,40,40,.12),0 8px 24px rgba(0,0,0,.08)!important}
.joe-output-kind-label select,.joe-answer-mode-label select,.joe-setting-row select{color:#222!important;border-color:#c9c9c9!important;background:#fff!important}
.joe-media-settings{padding-bottom:18px!important}.joe-media-settings-stack{display:grid;gap:12px}.joe-setting-card{display:grid;gap:10px;padding:14px;border:1px solid #d5d5d5;border-radius:14px;background:#fff}.joe-setting-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.joe-setting-card-head>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.joe-setting-card-head button{min-height:34px!important;padding:5px 10px!important;border-radius:9px!important}.joe-status-pill{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:999px;background:#eee;color:#3f3f3f;font-size:11px;font-weight:700}.joe-status-pill[data-state="ready"]{background:#e5e5e5;color:#1f1f1f}.joe-status-pill[data-state="attention"]{background:#f0f0f0;color:#4a4a4a}.joe-status-pill[data-state="muted"]{background:#f5f5f5;color:#777}.joe-setting-row{display:grid!important;grid-template-columns:minmax(110px,.75fr) minmax(0,1.25fr);align-items:center;gap:12px;margin:0!important}.joe-setting-row>span{font-size:12px;font-weight:700;color:#444}.joe-setting-row select{width:100%;min-height:38px;border-radius:9px;padding:6px 8px}.joe-setting-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.joe-setting-grid .joe-setting-row{grid-template-columns:1fr}.joe-setting-status{margin:0!important;font-size:12px!important;line-height:1.45}.joe-setting-meta{display:block;font-size:11px;overflow-wrap:anywhere}.joe-setting-actions{display:flex;gap:8px;flex-wrap:wrap}.joe-setting-actions--save{justify-content:flex-end}.joe-file-action{display:inline-flex!important;align-items:center;min-height:36px;padding:6px 11px;border:1px solid #c9c9c9;border-radius:9px;background:#f7f7f7;color:#2b2b2b;font-size:12px;font-weight:700;cursor:pointer}.joe-file-action:hover{background:#ededed}.joe-file-action input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.joe-setting-card--privacy p{margin:0!important}.joe-media-card{background:#fff!important;border-color:#cecece!important}.joe-media-card h3{color:#202020}.joe-media-artifact-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.joe-media-card .joe-media-action,.joe-media-card button{display:inline-flex!important;align-items:center;justify-content:center;min-height:36px;padding:7px 11px!important;margin:0!important;border:1px solid #3b3b3b!important;border-radius:9px!important;background:#2f2f2f!important;color:#fff!important;text-decoration:none!important;font:inherit;cursor:pointer}.joe-media-card .joe-media-action:hover,.joe-media-card button:hover{background:#202020!important}.joe-media-card .joe-generated-media{border:1px solid #d0d0d0;background:#fafafa}.joe-media-card small{color:#666!important}.joe-media-card:focus-within{outline:2px solid #666!important}.joe-composer.is-dragover{outline:3px dashed #666!important}.joe-message-content blockquote{border-left-color:#777!important;background:#f1f1f1!important}.joe-table-wrap th,.joe-table-wrap td{border-color:#d5d5d5!important}
@media(max-width:760px){.joe-setting-row{grid-template-columns:1fr}.joe-setting-grid{grid-template-columns:1fr}.joe-setting-card-head{align-items:stretch;flex-direction:column}.joe-setting-card-head button{width:100%}}

/* R24C5 — Browser UAT corrective: readable settings, optimistic sends. */
body.dtx-joe-app-page .joe-settings-dialog{left:50%!important;right:auto!important;top:50%!important;transform:translate(-50%,-50%)!important;width:min(1080px,calc(100vw - 48px))!important;max-width:1080px!important;height:min(820px,calc(100dvh - 48px))!important;max-height:none!important;padding:0!important;overflow:hidden!important;border-radius:18px!important;background:#fff!important;box-shadow:0 24px 80px rgba(0,0,0,.22)!important}
.joe-settings-header{min-height:72px;margin:0!important;padding:16px 20px;border-bottom:1px solid #dedede;background:#fff}.joe-settings-layout{display:grid;grid-template-columns:220px minmax(0,1fr);height:calc(100% - 72px);min-height:0}.joe-settings-nav{display:flex;flex-direction:column;gap:4px;padding:14px 10px;border-right:1px solid #dedede;background:#f7f7f7;overflow:auto}.joe-settings-nav button{justify-content:flex-start!important;min-height:38px!important;padding:8px 12px!important;border:0!important;border-radius:8px!important;background:transparent!important;text-align:left;font-weight:650}.joe-settings-nav button:hover,.joe-settings-nav button.is-active{background:#e8e8e8!important;transform:none!important}.joe-settings-content{min-width:0;overflow:auto;padding:24px 30px 40px;background:#fff}.joe-settings-page{max-width:760px;margin:0 auto}.joe-settings-page[hidden]{display:none!important}.joe-settings-page-head{margin:0 0 20px}.joe-settings-page-head h3{margin:0 0 6px;font-size:22px}.joe-settings-page-head p{margin:0;color:#666}.joe-settings-list{display:grid;border-top:1px solid #e1e1e1}.joe-preference-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;min-height:68px;margin:0!important;padding:13px 0;border-bottom:1px solid #e7e7e7}.joe-setting-copy{display:grid;gap:4px;min-width:0}.joe-setting-copy strong{font-size:14px;color:#202020}.joe-setting-copy small{color:#686868;font-size:12px;line-height:1.45}.joe-preference-row select{min-width:190px;max-width:320px;min-height:38px;border:1px solid #c9c9c9;border-radius:9px;background:#fff;padding:6px 9px}.joe-preference-row input[type=checkbox]{width:20px;height:20px;accent-color:#222}.joe-settings-notice{display:grid;gap:5px;margin-top:18px;padding:13px 15px;border:1px solid #ddd;border-radius:11px;background:#f8f8f8;color:#444;font-size:12px;line-height:1.5}.joe-settings-page h4{margin:26px 0 10px}.joe-settings-page .joe-media-settings-stack{max-width:none}.joe-message-delivery{margin-top:6px;font-size:10px;line-height:1.2;opacity:.72;text-align:right}.joe-message-delivery[data-state="failed"]{font-weight:700;opacity:.9}.joe-send:disabled{opacity:.5;cursor:wait;transform:none!important}
@media(max-width:800px){body.dtx-joe-app-page .joe-settings-dialog{inset:0!important;transform:none!important;width:100vw!important;height:100dvh!important;max-width:none!important;border-radius:0!important}.joe-settings-layout{grid-template-columns:1fr;height:calc(100% - 72px)}.joe-settings-nav{flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid #dedede;padding:8px}.joe-settings-nav button{white-space:nowrap}.joe-settings-content{padding:20px 16px}.joe-preference-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.joe-preference-row select{min-width:140px;max-width:48vw}}
/* R24C6 preference inheritance: Joe defaults first; sparse conversation overrides stay optional. */
.joe-settings-subhead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:26px 0 10px}.joe-settings-subhead:first-of-type{margin-top:4px}.joe-settings-subhead h4{margin:0 0 4px!important;font-size:16px}.joe-settings-subhead p{margin:0;color:#6a6a6a;font-size:12px;line-height:1.45}.joe-settings-source-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border:1px solid #d6d6d6;border-radius:999px;background:#f7f7f7;color:#555;font-size:11px;font-weight:700;white-space:nowrap}.joe-settings-subhead--conversation{margin-top:34px;padding-top:22px;border-top:1px solid #dedede}.joe-settings-inline-status{margin:10px 0 0;color:#666;font-size:12px}.joe-settings-inline-actions{display:flex;justify-content:flex-end;padding-top:12px}.joe-settings-inline-actions button{min-height:34px}.joe-preference-row--switch{margin-top:4px!important;border-top:1px solid #e7e7e7}.joe-preference-row.is-overridden{background:linear-gradient(90deg,rgba(0,0,0,.035),transparent 70%)}.joe-setting-copy em{font-style:normal;font-weight:700;color:#777}.joe-preference-row.is-overridden .joe-setting-copy em{color:#222}.joe-settings-list[data-joe-default-preferences] input:disabled,.joe-conversation-preferences input:disabled{opacity:.48;cursor:not-allowed}
/* R24C6 preference inheritance: Joe defaults first; sparse conversation overrides stay optional. */
.joe-settings-subhead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:26px 0 10px}.joe-settings-subhead:first-of-type{margin-top:4px}.joe-settings-subhead h4{margin:0 0 4px!important;font-size:16px}.joe-settings-subhead p{margin:0;color:#6a6a6a;font-size:12px;line-height:1.45}.joe-settings-source-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border:1px solid #d6d6d6;border-radius:999px;background:#f7f7f7;color:#555;font-size:11px;font-weight:700;white-space:nowrap}.joe-settings-subhead--conversation{margin-top:34px;padding-top:22px;border-top:1px solid #dedede}.joe-settings-inline-status{margin:10px 0 0;color:#666;font-size:12px}.joe-settings-inline-actions{display:flex;justify-content:flex-end;padding-top:12px}.joe-settings-inline-actions button{min-height:34px}.joe-preference-row--switch{margin-top:4px!important;border-top:1px solid #e7e7e7}.joe-preference-row.is-overridden{background:linear-gradient(90deg,rgba(0,0,0,.035),transparent 70%)}.joe-setting-copy em{font-style:normal;font-weight:700;color:#777}.joe-preference-row.is-overridden .joe-setting-copy em{color:#222}.joe-settings-list[data-joe-default-preferences] input:disabled,.joe-conversation-preferences input:disabled{opacity:.48;cursor:not-allowed}

/* R24C8 shared DTX Workstation foundation */
.joe-workstation-nav{display:grid;gap:2px}
.joe-workstation-nav a[hidden]{display:none!important}
.joe-conversation-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.joe-conversation-section-head>a{font-size:12px;text-decoration:none}
.joe-workstation-panel{width:min(860px,calc(100vw - var(--joe-sidebar-width,320px) - 32px));max-width:860px}
.joe-home-hero{padding:20px;border:1px solid var(--joe-border,#ddd);border-radius:14px;margin-bottom:16px}
.joe-home-hero h2{margin:0 0 6px;font-size:24px}
.joe-workstation-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.joe-workstation-card,.joe-capability-card{border:1px solid var(--joe-border,#ddd);border-radius:12px;padding:14px;background:var(--joe-surface,#fff)}
.joe-workstation-card h3,.joe-capability-card h3{margin:0 0 6px;font-size:15px}
.joe-workstation-card p,.joe-capability-card p{margin:4px 0;font-size:13px}
.joe-capability-card-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.joe-capability-card-meta span{font-size:11px;border:1px solid var(--joe-border,#ddd);border-radius:999px;padding:2px 7px}
.joe-workstation-toolbar{display:grid;grid-template-columns:1fr 180px;gap:10px;margin-bottom:14px}
.joe-capability-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.joe-workstream-read{border:1px solid var(--joe-border,#ddd);border-radius:12px;padding:12px;margin-bottom:14px}
.joe-workstation-state{font-weight:600}
@media(max-width:760px){.joe-workstation-toolbar{grid-template-columns:1fr}.joe-workstation-panel{width:auto}.joe-capability-catalog,.joe-workstation-card-grid{grid-template-columns:1fr}}

.joe-found-media{display:block;max-width:100%;max-height:620px;width:auto;height:auto;margin:12px auto;border:1px solid #d0d0d0;border-radius:12px;background:#fafafa}.joe-found-media-source{margin-top:4px}.joe-message-content a{color:#155f86;text-decoration:underline;text-underline-offset:2px}.joe-message-content a:focus-visible{outline:2px solid #236c88;outline-offset:2px}

/* R24C14-C3: simplify everyday composer; automatic intent routing is primary. */
.joe-research-toggle{align-self:center;min-height:36px;border:1px solid #c9c9c9;border-radius:10px;background:#fff;color:#222;padding:6px 12px;font:inherit;font-size:13px;font-weight:650;cursor:pointer}.joe-research-toggle.is-active,.joe-research-toggle[aria-pressed="true"]{background:#17212b;color:#fff;border-color:#17212b}.joe-research-toggle:focus-visible{outline:2px solid #236c88;outline-offset:2px}@media(max-width:760px){.joe-research-toggle{padding:6px 9px;font-size:12px}}
