.morgan-work-dialog { width:min(1000px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); box-sizing:border-box; border:1px solid #c9d5c6; border-radius:20px; padding:24px; color:#173c2c; background:#fafaf3; }
.morgan-work-dialog::backdrop { background:rgb(15 34 24 / 55%); }
.morgan-work-header { display:flex; gap:16px; align-items:flex-start; justify-content:space-between; margin-bottom:20px; }
.morgan-work-header h2 { margin:0; font-size:24px; }
.morgan-work-header p { margin:6px 0 0; line-height:1.5; }
.morgan-work-dialog button,.morgan-work-dialog input,.morgan-work-dialog select,.morgan-work-dialog textarea { font:inherit; min-height:44px; box-sizing:border-box; }
.morgan-work-dialog button { white-space:normal; height:auto; line-height:1.4; padding:10px 16px; border:1px solid #aabda9; border-radius:12px; color:#173c2c; background:#fffef7; cursor:pointer; }
.morgan-work-dialog button:disabled { opacity:.6; cursor:wait; }
.morgan-work-body { display:grid; grid-template-columns:minmax(250px,1fr) minmax(0,1.5fr); gap:24px; }
.morgan-work-form { display:grid; gap:14px; align-content:start; }
.morgan-work-form label { display:grid; gap:7px; font-weight:600; }
.morgan-work-form input,.morgan-work-form textarea,.morgan-work-form select,.morgan-work-filters input,.morgan-work-filters select { border:1px solid #c4d0c0; border-radius:10px; padding:10px; min-width:0; width:100%; background:#fff; font-size:16px; }
.morgan-work-form textarea { resize:vertical; min-height:150px; }
.morgan-work-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.morgan-work-note { padding:12px; border:1px solid #d8dcc9; border-radius:12px; line-height:1.5; font-size:13px; margin:0; }
.morgan-work-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.6fr); gap:10px; margin-bottom:16px; }
.morgan-work-filters label { display:grid; gap:6px; font-size:13px; }
.morgan-work-status { padding:12px 0; line-height:1.5; }
.morgan-work-status.error,.morgan-work-exception { color:#86351e; }
.morgan-work-list { display:grid; gap:16px; }
.morgan-work-card { border:1px solid #ccd7c4; border-radius:14px; background:#fffef8; padding:16px; min-width:0; overflow-wrap:anywhere; }
.morgan-work-card header { display:flex; gap:12px; align-items:flex-start; justify-content:space-between; }
.morgan-work-card strong,.morgan-work-card small { display:block; }
.morgan-work-card small { margin-top:5px; color:#596b60; line-height:1.4; }
.morgan-work-meta { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; font-size:12px; }
.morgan-work-badge { flex-shrink:0; padding:6px 9px; border-radius:9px; background:#e6eee1; font-size:12px; }
.morgan-work-badge.blocked,.morgan-work-badge.failed { background:#fff0d6; color:#7b3217; }
.morgan-work-card p { line-height:1.5; }
.morgan-work-card summary { min-height:44px; padding:10px 0; cursor:pointer; box-sizing:border-box; font-weight:600; }
.morgan-work-card footer { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.morgan-work-card ol { padding-left:20px; line-height:1.7; font-size:13px; }
.morgan-work-reference { display:inline-block; margin:4px; padding:4px 7px; border:1px solid #cdd5c8; border-radius:6px; font-size:12px; }
.morgan-work-result { line-height:1.55; }
.morgan-work-outcome { max-width:500px; }
.morgan-work-open { margin-top:8px; min-height:44px; padding:8px 12px; height:auto; line-height:1.4; }
@media(max-width:700px) { .morgan-work-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); padding:16px; border-radius:16px; } .morgan-work-body { grid-template-columns:minmax(0,1fr); gap:20px; } .morgan-work-pair,.morgan-work-filters { grid-template-columns:minmax(0,1fr); } .morgan-work-card header { flex-wrap:wrap; } .morgan-work-header h2 { font-size:21px; } }
/* Keep the multiline work control clear of the compact close-button sizing. */
.accpro-ai-head .morgan-work-open { display:block; width:auto; min-width:0; max-width:100%; min-height:44px; height:auto; padding:8px 12px; border-radius:10px; font-size:12px; line-height:1.4; }
.morgan-work-pair { grid-template-columns:minmax(0,1fr); }
.morgan-mail-section { border-top:1px solid #ccd7c4; margin-top:24px; padding-top:20px; min-width:0; }
.morgan-mail-section[hidden] { display:none; }
.morgan-mail-section p { line-height:1.5; }
.morgan-mail-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.morgan-mail-hash { overflow-wrap:anywhere; font-size:12px; }
.morgan-mail-link { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; margin-top:14px; }
.morgan-mail-link label { display:grid; gap:8px; min-width:0; }
.morgan-mail-link select { width:100%; min-width:0; padding:10px; border:1px solid #c4d0c0; border-radius:10px; background:white; font-size:16px; }
.morgan-private-launcher { position:fixed; right:104px; bottom:24px; z-index:950; display:flex; align-items:center; gap:10px; max-width:210px; min-height:56px; height:auto; padding:8px 14px; border:1px solid #9cb6a0; border-radius:16px; color:#173c2c; background:#fffdf2; line-height:1.4; white-space:normal; }
.morgan-private-launcher[hidden] { display:none; }
.morgan-private-launcher .morgan-face-crop { position:relative; display:block; width:44px; height:44px; flex-shrink:0; overflow:hidden; border-radius:50%; }
.morgan-private-launcher .morgan-face-crop img { position:absolute; width:244%; height:auto; max-width:none; left:-130%; top:-75%; }
.morgan-private-launcher small { display:block; font-size:11px; }
#morganPrivateChat { padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid #ccd7c4; }
@media(max-width:700px) { .morgan-mail-link { grid-template-columns:minmax(0,1fr); } }
@media(max-width:430px) { .morgan-private-launcher { right:84px; bottom:20px; max-width:210px; } }
.assistant-dock { position:fixed; right:12px; bottom:max(12px,env(safe-area-inset-bottom)); z-index:12990; }
.assistant-dock[hidden],.assistant-dock-choices[hidden] { display:none; }
.assistant-dock-toggle { display:grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:1px solid #bbcdc0; border-radius:50%; background:#fffef7; color:#315b45; box-shadow:0 3px 10px rgb(16 45 28 / 12%); cursor:pointer; }
.assistant-dock-toggle:focus-visible,.assistant-dock-choices button:focus-visible { outline:2px solid #087e96; outline-offset:3px; }
.assistant-dock-choices { position:absolute; right:0; bottom:56px; display:grid; gap:8px; width:260px; max-width:calc(100vw - 24px); box-sizing:border-box; padding:12px; border:1px solid #c8d5ca; border-radius:16px; background:#fafaf3; box-shadow:0 8px 24px rgb(16 45 28 / 16%); }
.assistant-dock .accpro-ai-launcher,.assistant-dock .morgan-private-launcher { position:static; display:flex; align-items:center; justify-content:flex-start; gap:12px; width:100%; max-width:none; min-width:0; min-height:60px; height:auto; padding:8px 12px; box-sizing:border-box; border:1px solid #d8dfd2; border-radius:12px; background:#fffef8; box-shadow:none; text-align:left; font:inherit; line-height:1.4; white-space:normal; color:#173c2c; }
.assistant-dock .accpro-ai-launcher[hidden],.assistant-dock .morgan-private-launcher[hidden] { display:none; }
.assistant-dock .accpro-ai-launcher-label { position:static; width:auto; height:auto; overflow:visible; clip:auto; clip-path:none; white-space:normal; font-size:14px; font-weight:600; }
.assistant-dock .morgan-private-launcher span:last-child { font-size:14px; font-weight:600; min-width:0; }
.assistant-dock .accpro-ai-avatar { flex:0 0 44px; width:44px; height:44px; }

.assistant-dock-toggle { font-family:inherit; font-size:15px; font-weight:800; line-height:1; letter-spacing:.02em; }
