.sherman-launcher{box-sizing:border-box;position:fixed;right:22px;bottom:22px;z-index:19;max-width:calc(100vw - 44px);border:1px solid #9cbaa8;border-radius:100px;padding:13px 20px;background:#143f32;color:#fff;font:700 14px/1.4 Manrope,sans-serif;box-shadow:0 6px 25px #153e3030;cursor:pointer}
.sherman-chat{position:fixed;inset:0 0 auto auto;z-index:30;margin:0;width:min(440px,100vw);height:100vh;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;padding:0;border:0;border-left:1px solid #e0e9e3;border-radius:0;background:#fff;color:#173b30;box-shadow:0 20px 80px #153e3026;font-family:Manrope,sans-serif;overflow:hidden}
.sherman-chat[open]{display:flex;flex-direction:column}.sherman-chat [hidden]{display:none!important}
body:has(.sherman-chat[open]):not(:has(dialog:modal)){overflow:auto}
.sherman-head{display:flex;align-items:center;justify-content:space-between;padding:max(16px,env(safe-area-inset-top)) 22px 6px;flex-shrink:0}.sherman-head h2{margin:0;font-size:17px;line-height:1.4;letter-spacing:-.3px}.sherman-head h2 span{display:inline-block;margin-left:5px;color:#63816e;font-size:10px;letter-spacing:.04em;font-weight:600}
.sherman-close{width:38px;height:38px;border:0;background:transparent;border-radius:50%;font:26px/1 sans-serif;color:#526e60;cursor:pointer}.sherman-close:hover{background:#f0f5f1}
.sherman-modes{align-self:center;display:flex;gap:3px;padding:4px;margin:4px 0 8px;background:#f0f4f1;border:1px solid #e3ebe5;border-radius:100px;flex-shrink:0}.sherman-modes button{border:0;border-radius:100px;min-width:100px;min-height:40px;padding:9px 22px;background:transparent;color:#587162;font:700 13px Manrope,sans-serif;cursor:pointer;transition:background .2s,color .2s}.sherman-modes button[aria-pressed=true]{background:#174d38;color:white;box-shadow:0 2px 5px #123d2520}
.sherman-voice-stage{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:0 0 auto;min-height:0;padding:2px 16px 0}.sherman-orb{position:relative;width:192px;height:192px;flex:0 0 auto;isolation:isolate;background:url('images/sherman-orb.png') center/contain no-repeat}.sherman-invitation{margin:1px 0 5px;font-size:16px;line-height:1.5;letter-spacing:-.3px;text-align:center}
.sherman-idle-meter{width:min(168px,65vw);height:4px;flex:0 0 4px;margin:3px 0 6px;border-radius:20px;overflow:hidden;background:#dce9df}.sherman-idle-meter-fill{display:block;width:100%;height:100%;border-radius:inherit;background:#13a75d;transform-origin:left center;transition:transform .95s linear}.sherman-idle-meter[data-phase=warning],.sherman-idle-meter[data-phase=grace]{background:#f0d6c4}
.sherman-status{flex-shrink:0;margin:3px 24px 8px;min-height:21px;color:#587363;font-size:12px;line-height:1.6;text-align:center;overflow-wrap:anywhere}.sherman-session-actions{display:flex;justify-content:center;gap:8px;min-height:4px;margin:0 18px 10px;flex-shrink:0}.sherman-session-actions button{border:1px solid #d9e5dc;border-radius:100px;background:#fff;padding:8px 16px;min-height:38px;color:#264f3c;font:600 12px Manrope,sans-serif;cursor:pointer}.sherman-session-actions .sherman-interrupt{background:#eaf4ec;border-color:#d4e8d8}
.sherman-idle-countdown{flex-shrink:0;margin:0 20px 6px;text-align:center;color:#9a5130;font-size:11px;font-weight:700;line-height:1.5}
.sherman-status[data-quiet=true]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sherman-transcript{display:flex;flex-direction:column;flex:1 1 0;min-height:0;max-height:none;margin:0 22px}.sherman-scroll{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 0 12px;scrollbar-width:thin;scrollbar-color:#c9d9cb transparent}
.sherman-messages{display:flex;flex-direction:column;gap:14px}.sherman-message{box-sizing:border-box;min-width:0;max-width:100%;padding:12px 14px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.sherman-message p{white-space:pre-wrap;margin:4px 0 0}.sherman-message-user{align-self:flex-end;max-width:90%;border-radius:16px 16px 4px 16px;background:#eaf4ec;color:#31543d}.sherman-message-assistant{align-self:flex-start;border:1px solid #e7ede8;border-radius:16px 16px 16px 4px;color:#214633}.sherman-speaker{font-size:10px;letter-spacing:.05em;text-transform:uppercase;font-weight:700}.sherman-sources{display:none}.sherman-chat[data-mode=type] .sherman-modules{display:grid;gap:6px;margin-top:10px;min-width:0}.sherman-modules strong{color:#587363;font-size:11px}.sherman-modules a{box-sizing:border-box;display:block;min-width:0;min-height:44px;border:1px solid #d4e5d8;border-radius:8px;padding:10px 12px;background:#f3f8f4;color:#17582b;font-size:12px;line-height:1.5;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}.sherman-modules a:hover{background:#e6f5e8}.sherman-modules a:focus-visible{outline:3px solid #348748;outline-offset:3px}.sherman-alternatives a{color:#27634e;text-decoration:underline;text-underline-offset:3px}
.sherman-message button,.sherman-clear{border:0;border-radius:6px;background:#f0f5f1;color:#42604d;font:600 10px Manrope,sans-serif;padding:7px 9px;margin-top:9px;cursor:pointer}.sherman-clear{margin-top:15px;background:transparent;text-decoration:underline;text-underline-offset:3px}
.sherman-composer{flex-shrink:0;margin:6px 22px 10px}.sherman-input-row{display:flex;align-items:flex-end;gap:8px;border:1px solid #bccfc1;border-radius:15px;padding:8px;background:#fbfcfa}
.sherman-input-row:focus-within{border-color:#348748;box-shadow:0 0 0 2px #348748}
.sherman-chat .sherman-composer textarea:focus,.sherman-chat .sherman-composer textarea:focus-visible{outline:none;box-shadow:none}
@media(forced-colors:active){.sherman-input-row:focus-within{outline:2px solid Highlight;outline-offset:0;box-shadow:none}}.sherman-composer textarea{box-sizing:border-box;flex:1;min-width:0;width:100%;min-height:52px;max-height:110px;resize:vertical;border:0;padding:7px;background:transparent;color:#173b30;font:13px/1.5 Manrope,sans-serif}.sherman-composer [type=submit]{width:38px;height:38px;flex-shrink:0;border:0;border-radius:50%;background:#174d38;color:#fff;font:22px sans-serif;cursor:pointer}.sherman-chat button:disabled{opacity:.48;cursor:not-allowed}
.sherman-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding:12px 22px max(17px,env(safe-area-inset-bottom));flex-shrink:0;color:#758679;font-size:10px;line-height:1.5}.sherman-info{display:flex;align-items:center;gap:6px;min-height:32px;padding:4px 0 4px 8px;border:0;background:transparent;color:#607667;font:500 10px Manrope,sans-serif;cursor:pointer}.sherman-info span{display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid #9eb2a3;border-radius:50%;font:600 11px Georgia,serif}.sherman-info-panel{position:absolute;right:16px;left:16px;bottom:calc(53px + env(safe-area-inset-bottom));z-index:3;max-height:min(340px,65dvh);overflow:auto;box-sizing:border-box;border:1px solid #dce7de;border-radius:15px;padding:18px;background:#fff;box-shadow:0 8px 34px #173b3024;color:#506a58;font-size:11px;line-height:1.7}.sherman-info-panel strong{color:#234b36}.sherman-info-panel p{margin:9px 0}.sherman-alternatives{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:12px}
.sherman-notes{min-height:0;overflow:auto;overscroll-behavior:contain;max-height:min(260px,30dvh);margin:0 22px 10px;border-left:2px solid #77ac7b;padding:3px 0 3px 13px;flex:0 1 auto;scrollbar-width:thin}.sherman-notes h3{margin:0 0 6px;font-size:11px;letter-spacing:.02em}.sherman-note-content{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.sherman-note-content p{white-space:pre-wrap;margin:0 0 7px}
.sherman-chat[data-mode=type] .sherman-transcript{margin-top:8px}.sherman-chat[data-mode=type] .sherman-status{margin-top:12px}
.sherman-chat[data-mode=type] .sherman-transcript{border-top:0}.sherman-chat[data-mode=chat] .sherman-notes{flex:1 1 auto;max-height:none}
.sherman-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sherman-chat button:focus-visible,.sherman-chat a:focus-visible,.sherman-chat textarea:focus-visible,.sherman-launcher:focus-visible,[data-open-sherman]:focus-visible{outline:3px solid #84ad60;outline-offset:3px}.finder-entry [data-open-sherman]{margin-left:8px}
@media(max-width:600px){.sherman-chat{width:100%;border-left:0}.sherman-head{padding-right:max(22px,env(safe-area-inset-right));padding-left:max(22px,env(safe-area-inset-left))}.sherman-footer{padding-right:max(22px,env(safe-area-inset-right));padding-left:max(22px,env(safe-area-inset-left))}.sherman-launcher{right:12px;bottom:12px;max-width:calc(100vw - 24px);font-size:13px}.finder-entry [data-open-sherman]{margin:10px 0 0}}
@media(max-height:610px){.sherman-head{padding-top:max(8px,env(safe-area-inset-top))}.sherman-orb{width:124px;height:124px}.sherman-invitation{font-size:13px}.sherman-modes{margin:0 0 2px}.sherman-footer{padding-top:3px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.sherman-session-actions{margin-bottom:5px}.sherman-notes{max-height:22dvh}}
@media(max-height:420px){.sherman-head{padding-top:max(4px,env(safe-area-inset-top));padding-bottom:2px}.sherman-modes button{min-height:32px;padding:5px 18px}.sherman-orb{width:64px;height:64px}.sherman-status{min-height:15px;max-height:40px;overflow:auto;flex-shrink:1;margin:2px 16px 4px;line-height:1.35}.sherman-notes{max-height:16dvh;margin-bottom:4px}.sherman-composer textarea{min-height:36px;max-height:60px}.sherman-composer{margin-top:4px;margin-bottom:6px}.sherman-footer{padding-top:0}.sherman-info-panel{bottom:calc(40px + env(safe-area-inset-bottom));max-height:65dvh}}
@media(prefers-reduced-motion:reduce){.sherman-chat *{animation:none!important;transition:none!important}.sherman-scroll{scroll-behavior:auto}}
/* App-validated next steps stay available in both Type and Talk. */
.sherman-actions{display:flex;flex-wrap:wrap;gap:8px;padding:8px 20px;flex:none}
.sherman-actions[hidden]{display:none}
.sherman-actions a{display:block;border:1px solid #bfd9bf;border-radius:8px;padding:10px 12px;color:#17582b;background:#f3fbf3;font-size:13px;line-height:1.3;text-decoration:none}
.sherman-actions a:hover{background:#e6f5e8}.sherman-actions a:focus-visible{outline:3px solid #348748;outline-offset:3px}
.sherman-answer-rating{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 0;padding:8px 0 0;border:0;border-top:1px solid #d9e5df}
.sherman-answer-rating legend{font-size:12px;color:#43584e;padding:0;margin-bottom:4px}
.sherman-answer-rating button{min-width:36px;min-height:36px;padding:4px;border:1px solid #adc1b5;border-radius:6px;background:#fff;color:#8a5900;font-size:21px;cursor:pointer}
.sherman-answer-rating button:hover{background:#fff4d6}.sherman-answer-rating button:focus-visible{outline:3px solid #17582b;outline-offset:2px}
.sherman-answer-rating span{flex-basis:100%;font-size:12px;color:#43584e}.sherman-answer-rating:disabled button{opacity:.65;cursor:default}
