/* Content architecture drawer: source image, locked text and saved page structure. */
.cg-root{position:fixed;inset:0;z-index:1100;color:var(--feishu-color-text-0);font:13px/1.55 var(--feishu-font-family);text-align:left}
.cg-root *{box-sizing:border-box;min-width:0}
.cg-root h2,.cg-root h3,.cg-root h4,.cg-root p,.cg-root figure{margin:0}
.cg-root button,.cg-root a{font:inherit;color:inherit}
.cg-root button:where(:not(.IM飞书选择器按钮):not(.IM飞书选择器选项):not(.课程主按钮)){cursor:pointer;border:1px solid var(--feishu-color-border);background:var(--feishu-color-bg-1);border-radius:6px;padding:6px 10px}
.cg-root button:where(:not(.IM飞书选择器按钮):not(.IM飞书选择器选项):not(.课程主按钮)):hover{background:var(--feishu-color-fill-0)}
.cg-root button:disabled{opacity:.45;cursor:not-allowed}
.cg-root button:focus-visible,.cg-root a:focus-visible,.cg-root summary:focus-visible{outline:2px solid var(--feishu-color-primary);outline-offset:2px}
.cg-root small,.cg-root header span,.cg-root header p{color:var(--feishu-color-text-1);font-size:12px}
.cg-root .cg-scrim{position:absolute;inset:0;border:0;border-radius:0}
.cg-root .cg-drawer{position:absolute;inset:0 0 0 auto;width:min(900px,100%);max-width:100%;background:var(--feishu-color-bg-1);box-shadow:var(--feishu-shadow-elevated);display:flex;flex-direction:column;overflow:hidden;border-left:1px solid var(--feishu-color-border);outline:none}
.cg-heading{display:flex;justify-content:space-between;gap:20px;padding:16px 20px;border-bottom:1px solid var(--feishu-color-border);flex-shrink:0}
.cg-heading h2{font-size:18px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0}
.cg-heading>div:last-child{display:flex;align-items:flex-start;gap:14px;flex-shrink:0}
.cg-content{flex:1;min-height:0;overflow:hidden}
.cg-feedback{padding:8px 24px;max-height:96px;overflow:auto;background:var(--feishu-color-fill-0)}
.cg-page-workspace{height:100%;display:flex;flex-direction:column;min-height:0}
.cg-page-tabs{display:flex;gap:6px;overflow:auto;flex-wrap:nowrap}
.cg-page-navigation{flex-shrink:0;align-items:center;padding:10px 24px;margin:0;border-bottom:1px solid var(--feishu-color-border)}
.cg-page-navigation>button{white-space:nowrap;flex-shrink:0}
.cg-root .cg-page-navigation>button{border:0;border-radius:var(--feishu-border-radius-small);background:transparent;padding:6px 8px;color:var(--feishu-color-text-1)}
.cg-root .cg-page-navigation>button:hover{background:var(--feishu-color-fill-0);color:var(--feishu-color-text-0)}
.cg-page-navigation>button[aria-current="page"]{color:var(--feishu-color-text-0);background:var(--content-selection,var(--feishu-color-fill-1));font-weight:500}
.cg-page-navigation:not(:has(button[aria-current="page"]))>button:first-of-type{color:var(--feishu-color-primary)}
.cg-pages-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;background:var(--feishu-color-bg-2)}
.cg-note-logic{padding:16px;margin-bottom:16px;border-bottom:1px solid var(--feishu-color-border)}
.cg-note-logic h3{font-size:14px;margin-bottom:8px}
.cg-note-logic h3:not(:first-child){margin-top:12px}
.cg-note-logic p{line-height:1.9;color:var(--feishu-color-text-1)}
.cg-note-sequence{font-size:14px!important;line-height:2!important}
.cg-page-block{border:1px solid var(--feishu-color-border);border-radius:8px;background:var(--feishu-color-bg-1);margin-bottom:16px;overflow:hidden;scroll-margin-top:16px}
.cg-page-block-heading{padding:12px 16px;border-bottom:1px solid var(--feishu-color-border)}
.cg-page-block-heading h3{font-size:14px}
.cg-page-columns{display:grid;grid-template-columns:minmax(160px,28%) minmax(180px,32%) minmax(0,1fr);align-items:stretch}
.cg-original-images,.cg-source{overflow:visible;border-right:1px solid var(--feishu-color-border);padding:16px;background:var(--feishu-color-bg-1)}
.cg-original-images h3,.cg-source h3{font-size:14px;margin-bottom:12px}
.cg-root .cg-source-image{display:block;width:100%;padding:0;border:0;background:transparent}
.cg-source-image img{display:block;max-width:100%;width:auto;height:auto;max-height:300px;object-fit:contain;margin:auto}
.cg-exact-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}
.cg-page-architecture{min-width:0;padding:16px;overflow-wrap:anywhere}
.cg-page-architecture h3{font-size:15px;margin:0 0 4px}
.cg-page-architecture h4{margin:16px 0 6px;font-size:12px;font-weight:500;color:var(--feishu-color-text-1)}
.cg-architecture-summary{font-size:13px;line-height:1.8;color:var(--feishu-color-text-0)}
.cg-architecture-context{margin-top:10px!important;font-size:12px;line-height:1.9;color:var(--feishu-color-text-1)}
.cg-before{padding:16px;overflow:auto;overscroll-behavior:contain}
.cg-before>p{color:var(--feishu-color-text-1);margin-top:12px;line-height:1.9}
.cg-empty{color:var(--feishu-color-text-1);font-size:12px}
.cg-page-architecture>.cg-empty{margin-top:12px}
.cg-image-view{height:100%;overflow:auto;padding:20px;background:var(--feishu-color-bg-2)}
.cg-image-view>button{display:block;margin-bottom:20px}
.cg-image-view>img{display:block;max-width:100%;margin:auto}
.cg-footer{padding:10px 20px;border-top:1px solid var(--feishu-color-border);flex-shrink:0;background:var(--feishu-color-bg-1)}
.cg-root .cg-action-footer{display:block;min-height:56px;height:auto}
.cg-root .cg-action-footer>.cg-extraction{width:100%;padding:0;border:0;max-height:none;overflow:visible}
.cg-root .cg-action-footer .cg-extraction .内容架构AI区域{display:grid;grid-template-columns:minmax(0,1fr) max-content auto;grid-template-areas:"workflow cost action";align-items:center;gap:12px;padding:0;margin:0;border:0;border-radius:0;background:transparent!important;box-shadow:none!important}
.cg-root .cg-action-footer .内容架构AI区域>header{display:none}
.cg-root .cg-action-footer .工作流场景选择{grid-area:workflow;display:grid;grid-template-columns:auto minmax(240px,420px);align-items:center;justify-content:start;gap:8px;margin:0;text-align:left}
.cg-root .cg-action-footer .工作流场景选择>small{display:none}
.cg-root .cg-action-footer .工作流场景选择>.IM字段标题{white-space:nowrap}
.cg-root .cg-action-footer .工作流场景选择 select{width:100%;height:34px;padding:4px 8px;border:1px solid var(--feishu-color-border);border-radius:6px;background:var(--feishu-color-bg-1);color:var(--feishu-color-text-0)}
.cg-root .cg-action-footer .课程主按钮{grid-area:action;width:auto;min-width:150px;min-height:36px;height:36px;padding-inline:16px;background:var(--feishu-color-primary);color:#fff;border-color:var(--feishu-color-primary);white-space:nowrap}
.cg-action-cost{grid-area:cost;display:inline-flex;align-items:center;min-height:28px;padding:0 2px;color:var(--feishu-color-text-1);font-size:12px;white-space:nowrap;cursor:help}
.cg-action-cost:focus-visible{outline:2px solid var(--feishu-color-primary);outline-offset:2px;border-radius:4px}
.cg-root .cg-action-footer .cg-action-state{grid-area:cost;margin:0;padding:0;min-height:0;background:none;color:var(--feishu-color-text-1);font-size:11px;line-height:18px;white-space:nowrap}
body:has([data-cg-root]){overflow:hidden}
.功能页面:has([data-cg-root]){z-index:1100}
#环节轨道:has([data-cg-root]){will-change:auto}
body:has([data-cg-root])>.飞书全局弹层遮罩{z-index:1200}
@media(max-width:1100px){.cg-root .cg-action-footer .工作流场景选择{grid-template-columns:auto minmax(200px,360px)}}
@media(max-width:900px){.cg-root .cg-drawer{width:96vw}.cg-heading{padding:14px}.cg-heading h2{font-size:16px}.cg-page-columns{grid-template-columns:minmax(140px,28%) minmax(150px,32%) minmax(0,1fr)}.cg-pages-scroll{padding:10px}.cg-page-columns>.cg-original-images,.cg-page-columns>.cg-source{padding:12px}}
@media(max-width:760px){.cg-root .cg-action-footer{padding:10px 14px}.cg-root .cg-action-footer .cg-extraction .内容架构AI区域{grid-template-columns:minmax(180px,1fr) max-content auto}.cg-root .cg-action-footer .工作流场景选择{grid-template-columns:auto minmax(160px,1fr)}}
@media(max-width:620px){.cg-root .cg-drawer{width:100%}.cg-page-columns{grid-template-columns:40% minmax(0,1fr)}.cg-page-columns>.cg-before,.cg-page-columns>.cg-page-architecture{grid-column:1/-1}.cg-root .cg-action-footer .cg-extraction .内容架构AI区域{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"workflow workflow" "cost action"}.cg-root .cg-action-footer .课程主按钮{min-width:125px;font-size:12px}.cg-root .cg-action-footer .工作流场景选择{grid-template-columns:1fr;gap:4px}}
