.site-editor{container-type:inline-size;position:relative;min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border-left:1px solid var(--line);background:#f7f7f5}
.site-editor[hidden]{display:none}
.app.has-site-editor{grid-template-columns:var(--sidebar) minmax(360px,1fr) var(--site-editor-width,50%)}
.app.has-site-editor.sidebar-collapsed{grid-template-columns:minmax(360px,1fr) var(--site-editor-width,50%)}
.app.has-site-editor .thread{padding-left:24px;padding-right:24px}
.app.has-site-editor .composer-wrap{padding-left:16px;padding-right:16px}
.site-editor-resize{position:absolute;z-index:3;top:0;bottom:0;left:-5px;width:10px;cursor:col-resize;touch-action:none;outline:none}
.site-editor-resize::after{content:'';position:absolute;top:0;bottom:0;left:4px;width:2px;background:transparent;transition:background .12s}
.site-editor-resize:hover::after,.site-editor-resize:focus-visible::after,.site-editor-resizing .site-editor-resize::after{background:var(--accent,#3981f7)}
.site-editor-resizing,.site-editor-resizing *{cursor:col-resize!important;user-select:none!important}
.site-editor-resizing .site-editor-frame{pointer-events:none}
.site-editor-bar{box-sizing:border-box;min-width:0;width:100%;height:64px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px;background:#fcfcfc;border-bottom:1px solid #ededeb}
.result-toolbar-left,.result-toolbar-right{display:flex;align-items:center;gap:6px;min-width:0}
.result-control-group{display:flex;align-items:center;padding:2px;border:1px solid #e6e6e6;border-radius:24px;background:#fff;box-shadow:0 1px 4px #00000004}
.site-editor-bar .icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;color:#171717;background:transparent;line-height:1}
.site-editor-bar .icon-button:hover{background:#f0f0f0}
.site-editor-bar .icon-button:focus-visible{outline:2px solid var(--accent,#3981f7);outline-offset:2px}
.site-editor-bar .result-single,.site-editor-bar .result-select,.site-editor-bar .result-menu-button{width:42px;height:42px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 1px 4px #00000004}
.site-editor-bar .icon{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.site-editor-bar [hidden]{display:none}
.site-editor-heading{display:flex;min-width:0;max-width:100%;align-items:flex-start;flex-direction:column;gap:4px;line-height:1.25;text-align:left}
.site-editor-heading strong{display:block;max-width:100%;font-size:14px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.result-address{display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;min-width:0;color:#767676;text-decoration:none;font-size:12px;line-height:16px}
.result-address span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-address .icon{width:15px;height:15px;flex:none;stroke-width:1.5}
.result-address:hover{color:var(--text)}
.site-editor-body{position:relative;min-height:0;overflow:hidden;display:flex}
.site-editor-canvas{position:relative;width:100%;height:100%;min-width:0;background:#fff}
.site-editor-frame{display:block;border:0;width:100%;height:100%;background:#fff}
.site-editor-frame.is-pending{position:absolute;inset:0;opacity:0;pointer-events:none}
.site-editor-empty{box-sizing:border-box;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:32px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
.site-editor-empty[hidden]{display:none}
.site-editor-empty p{max-width:320px}
.site-editor-expanded .site-editor{position:fixed;inset:0 0 0 var(--sidebar);z-index:36}
.site-editor-expanded.sidebar-collapsed .site-editor{left:0}
.site-editor-expanded .site-editor-resize{display:none}
.result-popover{position:fixed;inset:auto;margin:0;padding:6px;box-sizing:border-box;width:300px;max-width:calc(100vw - 24px);max-height:min(480px,calc(100dvh - 100px));overflow:auto;border:1px solid #dedede;border-radius:16px;background:#fff;box-shadow:0 10px 36px #00000012;color:var(--text);z-index:60}
.result-menu-item{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:10px 12px;border:0;border-radius:10px;text-align:left;font:inherit;font-size:14px;background:transparent;color:inherit;cursor:pointer}
.result-menu-item:hover,.result-menu-item:focus-visible{background:#f2f2f2;outline:none}
.result-menu-item>.icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.result-menu-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.result-menu-item>small{color:var(--muted);font-size:12px;flex:none}
.result-site-icon{width:19px;height:19px;object-fit:contain;flex:none}
.result-document{box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#ececea;padding:24px 20px}
.result-pdf-page,.result-word-page,.result-slide{position:relative;background:#fff;color:#222;box-shadow:0 1px 4px #00000018;margin:0 auto 24px;max-width:900px;min-height:80px}
.result-pdf-page{aspect-ratio:.707}
.result-pdf-page canvas{display:block;width:100%;height:auto}
.result-page-number{position:absolute;bottom:6px;right:8px;color:#777;background:#ffffffdf;border-radius:4px;padding:2px 5px;font:10px system-ui}
.result-word-page{padding:clamp(24px,6%,72px);min-height:900px;font:14px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
.result-word-page p{margin:0 0 12px;white-space:pre-wrap}
.result-word-page img{max-width:100%;height:auto}
.result-word-page table{border-collapse:collapse;width:100%;margin:16px 0}
.result-word-page td{border:1px solid #ddd;padding:8px;vertical-align:top}
.result-word-page td p:last-child{margin-bottom:0}
.result-slide{overflow:hidden;min-height:0}
.result-slide-content{position:absolute;inset:0 auto auto 0;transform-origin:top left;background:#fff;font:24px/1.2 Arial,sans-serif}
.result-slide-shape{position:absolute;overflow:hidden;padding:6px;box-sizing:border-box}
.result-slide-shape p{margin:0 0 8px;white-space:pre-wrap}
.result-slide-shape img{display:block;width:100%;height:100%;object-fit:contain}
.result-text{box-sizing:border-box;max-width:1100px;margin:0 auto;background:#fff;padding:28px;min-height:100%;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4}
.result-text code{font:inherit}
.result-document-note{max-width:800px;margin:20px auto;color:#777;font-size:12px;line-height:1.5;text-align:center}
@container(max-width:460px){.site-editor-bar{padding:10px 8px;gap:6px}.result-toolbar-left,.result-toolbar-right{gap:4px}.site-editor-bar .icon-button{width:32px;height:36px}.site-editor-bar .result-single,.site-editor-bar .result-select,.site-editor-bar .result-menu-button{width:38px;height:40px}.site-editor-heading strong{font-size:13px}.site-editor-bar .icon{width:20px;height:20px}.result-control-group{padding:1px}}
@media(max-width:1100px){.app.has-site-editor{grid-template-columns:var(--sidebar) minmax(0,1fr)}.app.has-site-editor.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.site-editor{position:fixed;inset:0 0 0 var(--sidebar);z-index:35}.sidebar-collapsed .site-editor{left:0}.site-editor-resize{display:none}}
@media(max-width:760px){.app.has-site-editor{grid-template-columns:minmax(0,1fr)}.site-editor,.site-editor-expanded .site-editor{inset:0;z-index:35;border-left:0}.site-editor-bar{height:calc(64px + env(safe-area-inset-top));padding-top:calc(10px + env(safe-area-inset-top))}.site-editor-expand{display:none!important}.result-document{padding:16px 12px}}
@media(prefers-reduced-motion:reduce){.site-editor-resize::after{transition:none}}

.site-editor-expanded .site-editor-heading{align-items:center;text-align:center}
.result-loading{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:#fcfcfc}
.result-loading[hidden]{display:none}
.result-spinner{width:22px;height:22px;border:2px solid #d0d0ce;border-top-color:#656562;border-right-color:#656562;border-radius:50%;animation:result-loading-spin .8s linear infinite}
.site-editor-bar .icon-button:disabled{color:#999;cursor:default;background:#fff}
@keyframes result-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.result-spinner{animation-duration:1.8s}}
.site-share-dialog{box-sizing:border-box;width:min(512px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #d7d7d7;border-radius:20px;background:#fcfcfc;color:#171717;box-shadow:0 10px 32px #00000020}
.site-share-dialog::backdrop{background:#00000012;backdrop-filter:blur(3px)}
.site-share-dialog .dialog-content{padding:24px;gap:0}
.site-share-dialog .dialog-top{display:flex;align-items:center;gap:16px;margin:0 0 34px}
.site-share-dialog .dialog-top h2{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19px;font-weight:600;line-height:26px}
.site-share-dialog .dialog-top .icon-button{flex:none;width:28px;height:28px;padding:3px;border-radius:50%}
.site-share-dialog .dialog-top .icon{width:20px;height:20px}
.site-share-section{position:relative;margin:0 0 28px}
.site-share-section h3{margin:0 0 14px;font-size:16px;font-weight:500;line-height:22px}
.site-share-access{display:flex;align-items:center;gap:12px}
.site-share-mark{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:9px;background:#f1f1f1}
.site-share-dialog .icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.site-share-select{display:flex;align-items:center;gap:8px;min-height:36px;padding:4px 0;border:0;background:transparent;font:inherit;font-size:16px;cursor:pointer}
.site-share-select .icon{width:16px;height:16px}
.site-share-options{position:absolute;z-index:3;top:74px;left:36px;min-width:180px;padding:6px;border:1px solid #dedede;border-radius:12px;background:#fff;box-shadow:0 8px 24px #00000014}
.site-share-options[hidden]{display:none}
.site-share-option{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:8px 10px;border:0;border-radius:8px;background:transparent;text-align:left;font:inherit;font-size:14px;cursor:pointer}
.site-share-option[aria-checked=true],.site-share-option:hover,.site-share-option:focus-visible{background:#f1f1f1}
.site-share-person{display:flex;align-items:center;gap:12px;min-height:42px}
.site-share-avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#ef8525;color:#fff;font-size:13px}
.site-share-identity{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.site-share-role{color:#909090;font-size:14px}
.site-share-feedback{min-height:20px;margin:0 0 20px;color:#757575;font-size:13px;line-height:20px}
.site-share-footer{display:flex;align-items:center;gap:8px}
.site-share-secondary,.site-share-done{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:40px;padding:8px 15px;border:1px solid #d5d5d5;border-radius:24px;background:transparent;color:inherit;text-decoration:none;font:inherit;font-size:15px;font-weight:500;white-space:nowrap;cursor:pointer}
.site-share-secondary:hover{background:#f0f0f0}
.site-share-done{margin-left:auto;padding-inline:18px;border-color:#111;background:#111;color:#fff}
.site-share-dialog button:focus-visible,.site-share-dialog a:focus-visible{outline:2px solid var(--accent,#3981f7);outline-offset:3px}
.site-share-dialog button:disabled{opacity:.6;cursor:default}
@media(max-width:520px){.site-share-dialog .dialog-content{padding:20px}.site-share-dialog .dialog-top{margin-bottom:28px}.site-share-dialog .dialog-top h2{font-size:18px}.site-share-footer{flex-wrap:wrap}.site-share-secondary{padding-inline:12px;font-size:14px}.site-share-done{font-size:14px}.site-share-dialog{border-radius:18px}}
@media(max-width:370px){.site-share-footer .site-share-done{width:100%;margin-top:8px}.site-share-dialog .dialog-content{padding:18px}}

.result-actions-popover{width:240px;padding:8px;border-radius:16px}

/* Chat artifacts use the same surface as the activity menu and preview. */
.site-result-card{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-width:0;margin:22px 0 16px;padding:16px;border:1px solid #e1e1e1;border-radius:20px;background:#fcfcfc;color:#171717}
.site-result-open{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-decoration:none;color:inherit}
.site-result-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:13px;background:#f3f3f3}
.site-result-icon img{display:block;width:25px;height:25px}
.site-result-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.site-result-title{font-size:16px;font-weight:600;line-height:23px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-result-access{display:flex;align-items:center;gap:6px;font-size:14px;line-height:20px;color:#777}
.site-result-access .icon{width:17px;height:17px;flex:none}
.site-result-open>.icon{width:20px;height:20px;flex:none;margin:0 4px}
.site-result-card .icon{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.site-result-share{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;min-height:40px;padding:8px 16px;border:1px solid #dedede;border-radius:24px;background:transparent;font-size:15px;line-height:22px;color:inherit;white-space:nowrap}
.site-result-share .icon{width:20px;height:20px}
.site-result-share:hover,.site-result-share:focus-visible{background:#f0f0f0}
.site-result-open:focus-visible,.site-result-share:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.chat-activity-popover{width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;padding:16px;border-radius:20px;background:#fff;box-shadow:0 8px 32px #00000012}
.chat-activity-section{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #e7e7e7}
.chat-activity-section:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}
.chat-activity-label{display:flex;align-items:center;gap:8px;margin:2px 0 10px;font-size:16px;font-weight:400;line-height:24px;color:#777}
.chat-result-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:42px;padding:8px 0;border:0;background:transparent;text-align:left;font:inherit;font-size:15px;color:inherit;border-radius:8px}
.chat-result-row:hover,.chat-result-row:focus-visible{background:#f3f3f3;outline:none}
.chat-result-row>.icon,.chat-source-row>.icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}
.chat-result-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-result-type{color:#999;font-size:14px;flex:none}
.chat-source-row{display:flex;align-items:center;gap:10px;min-height:38px;font-size:14px;line-height:20px;padding:6px 0}
.chat-source-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-sources-section>summary{cursor:pointer;list-style:none;margin-bottom:0}
.chat-sources-section>summary::-webkit-details-marker{display:none}
.chat-sources-section>summary .icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.chat-sources-section[open]>summary{margin-bottom:10px}
#chat-schedules.is-active{background:#f0f0f0}
@media(max-width:480px){.site-result-card{gap:8px;padding:12px;border-radius:16px}.site-result-open{gap:10px}.site-result-icon{width:40px;height:40px;border-radius:11px}.site-result-icon img{width:23px;height:23px}.site-result-title{font-size:14px;line-height:20px}.site-result-access{font-size:12px;line-height:18px}.site-result-share{width:38px;min-height:38px;padding:8px}.site-result-share>span{display:none}.site-result-open>.icon{width:18px;height:18px;margin:0}.chat-activity-popover{padding:16px}.chat-result-row{min-height:44px}}
