.summary-workspace{position:fixed;inset:0;z-index:99999900;background:#fff;display:flex;flex-direction:column;height:100vh;height:100dvh}.summary-workspace.hidden{display:none}.summary-ws-bar{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:8px 12px;border-bottom:1px solid #e5e7eb;background:#fff}.summary-ws-file{flex:1;min-width:0;font-size:14px;font-weight:600;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.summary-ws-close{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:0 0;color:#6b7280;cursor:pointer}.summary-ws-close:hover{background:#f1f3f5;color:#111827}.summary-ws-tabs{display:flex;flex-shrink:0;padding:2px;border-radius:999px;background:#f1f3f5}.summary-tab{min-width:88px;padding:7px 14px;border:0;border-radius:999px;background:0 0;color:#6b7280;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer}.summary-tab.is-active{background:#fff;color:#111827;box-shadow:0 1px 2px rgba(0,0,0,.12)}.summary-ws-body{flex:1;min-height:0;display:flex}.summary-chat,.summary-doc{min-width:0;min-height:0;display:flex;flex-direction:column}.summary-doc{flex:1;background:#f1f3f5}.summary-chat{position:relative;width:380px;flex-shrink:0;border-inline-start:1px solid #e5e7eb;background:#fff}.summary-doc-render{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}.summary-doc-render>iframe{display:block;width:100%;height:100%;border:0}.summary-doc-render .docx-wrapper{padding:16px 8px;background:#f1f3f5}.summary-doc-render .docx-wrapper>section.docx{max-width:100%;box-shadow:0 1px 4px rgba(0,0,0,.16)}.summary-doc-status{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;font-size:14px;color:#6b7280}.summary-doc-status.hidden{display:none}.summary-spinner{width:28px;height:28px;border:3px solid #d1d5db;border-top-color:#198754;border-radius:50%;animation:summary-spin .9s linear infinite}@keyframes summary-spin{to{transform:rotate(360deg)}}.summary-chat-list{flex:1;min-height:0;margin:0;padding:16px 12px;list-style:none;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:10px}.summary-msg{max-width:85%;padding:10px 14px;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.summary-msg.is-user{align-self:flex-end;border-radius:16px 16px 4px 16px;background:#198754;color:#fff}.summary-msg.is-bot{align-self:flex-start;border-radius:16px 16px 16px 4px;background:#f1f3f5;color:#111827}.summary-msg.is-error{align-self:flex-start;border-radius:16px 16px 16px 4px;background:#fdecea;color:#b42318}.summary-msg.summary-md{white-space:normal}.summary-md>:first-child{margin-top:0}.summary-md>:last-child{margin-bottom:0}.summary-md p{margin:0 0 8px}.summary-md h3,.summary-md h4,.summary-md h5{margin:12px 0 6px;font-size:15px;font-weight:700;line-height:1.3}.summary-md ol,.summary-md ul{margin:0 0 8px;padding-inline-start:20px}.summary-md li{margin:0 0 4px}.summary-md code{padding:1px 4px;border-radius:4px;background:rgba(0,0,0,.06);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.summary-md hr{height:0;margin:10px 0;border:0;border-top:1px solid #dee2e6}.summary-typing{align-self:flex-start;display:flex;gap:5px;align-items:center;padding:12px 16px;border-radius:16px 16px 16px 4px;background:#f1f3f5}.summary-typing.hidden{display:none}.summary-typing span{width:8px;height:8px;border-radius:50%;background:#9ca3af;animation:summary-dot 1.2s infinite ease-in-out}.summary-typing span:nth-child(2){animation-delay:.2s}.summary-typing span:nth-child(3){animation-delay:.4s}@keyframes summary-dot{0%,100%,80%{transform:scale(.7);opacity:.4}40%{transform:scale(1);opacity:1}}.summary-downloads{flex-shrink:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 12px;border-top:1px solid #e5e7eb;background:#f9fafb}.summary-downloads.hidden{display:none}.summary-downloads-label{font-size:12px;color:#6b7280}.summary-download{padding:5px 14px;border:0;border-radius:6px;background:#198754;color:#fff;font-size:13px;font-weight:600;font-family:inherit;text-decoration:none;cursor:pointer}.summary-downloads.is-busy .summary-download{background:#adb5bd;pointer-events:none}.summary-downloads.is-busy .summary-download.is-loading{background:#198754}.summary-download.is-loading::after{content:'';display:inline-block;vertical-align:-2px;margin-inline-start:8px;width:12px;height:12px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:summary-spin .7s linear infinite}.summary-saving{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.72)}.summary-saving.hidden{display:none}.summary-composer{flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:12px;border-top:1px solid #e5e7eb;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.summary-input-row{display:flex;gap:8px;align-items:flex-end}.summary-textarea{flex:1;min-width:0;resize:none;border:1px solid #d1d5db;border-radius:8px;padding:9px 12px;font-size:16px;line-height:1.4;font-family:inherit;outline:0}.summary-textarea:focus{border-color:#198754}.summary-send{flex-shrink:0;min-height:42px;padding:9px 18px;border:0;border-radius:8px;background:#198754;color:#fff;font-size:15px;font-weight:600;font-family:inherit;white-space:nowrap;cursor:pointer}.summary-send:disabled{background:#adb5bd;cursor:default}@media (max-width:900px){.summary-chat,.summary-doc{display:none;flex:1;width:auto;border-inline-start:0}.summary-workspace[data-pane=chat] .summary-chat,.summary-workspace[data-pane=doc] .summary-doc{display:flex}.summary-msg{max-width:92%}}@media (min-width:901px){.summary-ws-tabs{display:none}}