.pre-grid-panel{position:relative;padding:14px;border-color:#dce4f0;box-shadow:0 4px 18px #18304c05}.pre-grid-panel>.heading .muted{font-size:12px}.pre-grid-panel>.toolbar{gap:6px}.pre-grid-panel>.toolbar button{font-size:12px;padding:6px 10px}.pre-grid-panel>.pre-grid-savebar{display:none}
.gd-workbar{position:sticky;top:0;z-index:8;background:#fff;border:1px solid #d7e1ee;border-radius:8px 8px 0 0;box-shadow:0 3px 8px #18304c05}.gd-tools,.gd-column-tools,.gd-formula,.gd-row-status{display:flex;align-items:center;gap:8px;padding:7px 10px;flex-wrap:wrap}.gd-tools{background:#f7f9fd;border-radius:8px 8px 0 0}.gd-tools label,.gd-column-tools label{display:flex;align-items:center;gap:5px;font-size:12px;color:#5d6f88}.gd-tools button,.gd-column-tools button,.gd-formula>button,.gd-row-status button{padding:5px 9px;min-height:29px;font-size:12px;white-space:nowrap}.gd-workbar select{width:auto;min-width:105px;max-width:220px;padding:5px 22px 5px 7px;min-height:29px;font-size:12px;background-color:#fff}.gd-column-tools{border-top:1px solid #e6edf7}.gd-column-tools>span{font-size:12px;color:#2c4e9d;max-width:230px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.gd-column-tools [data-gd-move-target]{max-width:175px}.gd-formula{border-top:1px solid #e6edf7;align-items:center;flex-wrap:nowrap;min-height:49px}.gd-formula>#gd-cell-label{max-width:210px;width:160px;flex-shrink:0;font-size:11px;color:#536b8b;overflow:hidden;max-height:44px;line-height:1.4}.gd-formula>#gd-cell-editor{flex:1;min-width:0}.gd-formula input,.gd-formula select,.gd-formula textarea{width:100%;max-width:none;padding:6px 9px;border-color:#c9d6eb;font-size:13px;min-height:32px}.gd-formula textarea{max-height:120px;resize:vertical;line-height:1.5}.gd-value-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:72px;overflow:auto;font-size:12px}.gd-row-status{min-height:32px;border-top:1px solid #e6edf7;background:#f6f9ff;font-size:11px;color:#627897}.gd-row-status #gd-status{flex:1;min-width:160px}.gd-top-scroll{overflow-x:auto;overflow-y:hidden;height:15px;background:#edf2f9;border-top:1px solid #e0e7f2}.gd-top-scroll>div{height:1px}.gd-top-scroll::-webkit-scrollbar,.gd-scroll::-webkit-scrollbar{height:12px;width:10px}.gd-top-scroll::-webkit-scrollbar-thumb,.gd-scroll::-webkit-scrollbar-thumb{background:#a9b9cf;border-radius:6px;border:2px solid #edf2f9}.gd-top-scroll::-webkit-scrollbar-track,.gd-scroll::-webkit-scrollbar-track{background:#edf2f9}
.pre-grid-view .gd-scroll{max-height:62vh;border-color:#d7e1ee;scrollbar-gutter:stable;overscroll-behavior:contain}.gd-table{font-size:12px}.gd-table thead th{height:35px;padding:0;background:#e4f1ed;color:#24483d;vertical-align:middle}.gd-table thead tr:nth-child(2) th{top:35px;height:35px;background:#ecf5fb}.gd-table thead .pre-grid-fixed,.gd-table thead .pre-grid-row-actions{background:#e6f0fa}.gd-table th.pre-grid-text,.gd-table th.pre-grid-date,.gd-table th.pre-grid-value{background:#fff3d1;color:#655021}.gd-header{position:relative;display:flex;align-items:center;min-height:34px;padding:3px 14px 3px 6px;gap:2px;cursor:grab}.gd-header[draggable="false"]{cursor:default}.gd-column-label{flex:1;min-width:0;border:0;background:transparent;padding:2px 3px;box-shadow:none;font:inherit;font-size:12px;color:inherit;line-height:1.3;min-height:25px;max-height:42px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gd-column-label:hover{background:#ffffff70;transform:none}.gd-column-menu{border:0;padding:0 3px;min-height:22px;background:transparent;color:#58718d;font-size:16px;flex-shrink:0}.gd-column-menu:hover{background:#fff9}.gd-resize{position:absolute;right:-3px;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:9;outline:none}.gd-resize::after{content:"";position:absolute;right:3px;top:7px;bottom:7px;width:2px;background:transparent}.gd-resize:hover::after,.gd-resize:focus::after{background:#315be0}.gd-resizing,.gd-resizing *{cursor:col-resize!important;user-select:none!important}.gd-dragging{opacity:.45}.gd-header.gd-drop-before{box-shadow:inset 4px 0 #315be0;background:#d8e5ff}.gd-header.gd-drop-after{box-shadow:inset -4px 0 #315be0;background:#d8e5ff}
.gd-table tbody td{height:35px;padding:5px 7px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-color:#e0e7f2;background:#fff}.gd-table tbody tr:nth-child(even)>td{background:#fbfcff}.gd-table tbody tr:hover>td{background:#f1f6ff}.gd-table .pre-grid-row-actions{width:78px;max-width:78px;background:#f6f9fe}.gd-table .pre-grid-row-actions button{padding:4px 5px;font-size:11px;min-height:26px}.gd-table .pre-grid-fixed{background:#fff}.gd-table .gd-selected-col{background:#edf3ff}.gd-table thead .gd-selected-col{background:#dbe7ff;color:#214bc4}.gd-table .gd-selected-cell{box-shadow:inset 0 0 0 2px #345ee2;background:#edf3ff!important;outline:none}.gd-table .gd-active-row>td{background:#fffdf1}.gd-table .gd-active-row>.pre-grid-fixed{background:#fffdf1}.gd-table .gd-editable-cell{padding:2px}.gd-table input,.gd-table select,.gd-table textarea{border:1px solid transparent;border-radius:2px;min-height:30px;padding:4px 5px;background:#fffdf0;font-size:12px;box-shadow:none}.gd-table input:hover,.gd-table select:hover,.gd-table textarea:hover{border-color:#c1cfea}.gd-table input:focus,.gd-table select:focus,.gd-table textarea:focus{outline:2px solid #315be0;outline-offset:-2px;background:#fff}.gd-table textarea{resize:none;min-height:30px;height:30px;white-space:pre;overflow:hidden}.gd-table .gd-activity-detail{font-size:10px;padding:1px 4px;min-height:20px;background:#f1f5fc;border:0;color:#5b7394;display:block;margin:2px auto 0}.gd-table .badge{white-space:nowrap;padding:2px 5px}.gd-table .pre-grid-select input{min-height:0!important;width:15px;height:15px}.gd-editing-indicator{font-size:11px;color:#bb7a15}.gd-wrap .gd-table tbody td{white-space:pre-wrap;overflow-wrap:anywhere;text-overflow:clip}.gd-wrap .gd-table textarea{height:54px;white-space:pre-wrap;overflow:auto}.gd-comfortable .gd-table tbody td{padding-top:9px;padding-bottom:9px;height:46px}.gd-bottom-hint{color:#7b8da5;font-size:11px;padding:6px 1px}
.gd-fullscreen{position:fixed!important;inset:12px;z-index:8;background:#fff;margin:0!important;overflow:hidden;display:flex;flex-direction:column;border-radius:12px;box-shadow:0 12px 70px #10244140;padding:16px!important}.gd-fullscreen>.heading{flex-shrink:0}.gd-fullscreen>.toolbar{flex-shrink:0}.gd-fullscreen .gd-workbar{flex-shrink:0}.gd-fullscreen .case-module-pager{margin:5px 0;flex-shrink:0}.pre-grid-view .gd-fullscreen .gd-scroll{min-height:100px;flex:1;max-height:none}.gd-fullscreen .gd-bottom-hint{flex-shrink:0}.gd-fullscreen>.case-module-pager:last-of-type{display:none}
.gd-drawer[hidden]{display:none!important}.gd-drawer{position:fixed;right:18px;top:88px;bottom:25px;width:min(390px,calc(100vw - 28px));background:#fff;border:1px solid #c9d7ec;border-radius:10px;box-shadow:0 12px 48px #15336130;z-index:9;padding:14px;overflow:auto}.gd-drawer header{display:flex;align-items:center;gap:10px;justify-content:space-between;position:sticky;top:-14px;background:#fff;padding:10px 0;z-index:1}.gd-drawer header strong{font-size:14px}.gd-drawer header button{padding:3px 9px;font-size:18px}.gd-drawer-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gd-drawer-fields label{font-size:12px;color:#627897;display:flex;flex-direction:column;gap:5px}.gd-drawer-fields label:last-child{grid-column:1/-1}.gd-drawer input,.gd-drawer textarea,.gd-drawer select{font-size:13px;min-height:34px;padding:5px 7px;width:100%}.gd-drawer p{font-size:12px;color:#7486a0;line-height:1.5}.gd-manage-list{margin-top:10px;max-height:55vh;overflow:auto}.gd-manage-list>div{display:flex;gap:6px;align-items:center;border-bottom:1px solid #e1e8f3;padding:10px 0;flex-wrap:wrap}.gd-manage-list>div[hidden]{display:none}.gd-manage-list strong{width:180px;font-size:12px}.gd-manage-list small{color:#7e8fa9;width:90px}.gd-manage-list select{width:180px;font-size:12px}.gd-manage-list button{font-size:12px;padding:5px 7px}
@media(max-width:760px){.gd-fullscreen{inset:4px;padding:8px!important}.gd-formula{flex-wrap:wrap}.gd-formula>#gd-cell-label{width:auto;max-width:none;flex-basis:100%}.gd-formula>#gd-cell-editor{min-width:160px}.gd-column-tools>span{width:100%;max-width:none}.gd-workbar select{max-width:175px}.gd-table .pre-grid-fixed{position:sticky}.gd-column-menu{opacity:1}.gd-drawer{top:35px;bottom:12px;right:8px}.gd-tools{gap:5px}}
@media(pointer:coarse){.gd-resize{width:16px;right:-5px}.gd-table input,.gd-table select,.gd-table textarea{font-size:16px;min-height:40px}.gd-column-menu{min-width:28px;min-height:30px}}

/* Compact the existing page chrome; the matrix itself remains the focus. */
.pre-grid-view>.heading{display:none}.pre-grid-view .project-board-tabs{margin:0 0 5px;padding-bottom:6px;gap:7px}.pre-grid-view .project-board-tabs button{padding:6px 13px}.pre-grid-view .project-board-subtabs{display:inline-flex;vertical-align:middle;margin:0 12px 5px 0;gap:5px}.pre-grid-view .project-board-subtabs button{padding:5px 10px}.pre-grid-view .pre-grid-stagebar{display:inline-flex;vertical-align:middle;margin:0 0 5px;gap:8px}.pre-grid-view .pre-grid-stagebar button{padding:5px 10px}.pre-grid-view .pre-grid-stage-stat{gap:7px;font-size:11px}.pre-grid-view .pre-grid-rules{margin:2px 0 5px}.pre-grid-panel>.heading{margin:0 0 7px}.pre-grid-panel>.heading h2{margin:0;font-size:15px}.pre-grid-panel>.heading .muted{display:none}.gd-tools .gd-structure{display:inline-flex;margin:0;padding:0;gap:4px;flex-wrap:wrap;align-items:center}.gd-tools .gd-structure button{font-size:11px;padding:5px 7px}.gd-tools{gap:6px;padding:6px 8px}.gd-tools select{min-width:76px;max-width:120px}.gd-tools label{font-size:11px}.gd-column-tools{gap:6px;padding:6px 8px}.gd-formula{min-height:40px;padding:5px 8px}.gd-formula .muted{font-size:11px}.gd-row-status{padding:5px 8px;min-height:28px}.pre-grid-panel>.case-module-pager{margin:6px 0}.gd-table td{scroll-margin-top:75px}

.gd-table .gd-activity-detail{display:inline-flex;align-items:center;justify-content:center;margin:0 0 0 3px;min-height:22px;padding:1px 4px;vertical-align:middle}.gd-table td:has(.gd-activity-detail) select{display:inline-block;width:calc(100% - 34px)}.gd-table tbody td{height:35px}.gd-drawer textarea{min-height:90px}

/* Keep sticky paint inside the native scrollport; opaque cells mask scrolled data. */
.pre-grid-view .gd-scroll{isolation:isolate;contain:paint;overflow-anchor:none;scroll-behavior:auto}
.gd-table{border:0!important}.gd-table th,.gd-table td{box-sizing:border-box;background-clip:border-box}
.gd-table :is(.pre-grid-fixed,.pre-grid-select,.pre-grid-row-actions){backface-visibility:hidden}
.gd-table tbody :is(.pre-grid-fixed,.pre-grid-select,.pre-grid-row-actions){z-index:3}
.gd-table thead :is(.pre-grid-fixed,.pre-grid-select,.pre-grid-row-actions){z-index:7}
.gd-table .gd-pin-edge{border-right:2px solid #9badc8;box-shadow:3px 0 4px -3px #28426699}
.gd-header{overflow:visible}.gd-resize{right:0;width:10px}.gd-resize::after{right:0;top:4px;bottom:4px;background:#9cb0ca66;width:2px}.gd-resize:hover::after,.gd-resize:focus::after{width:3px;background:#315be0}
.gd-width-control{margin-left:auto;gap:5px}.gd-width-control select{max-width:150px;min-width:70px}.gd-width-control input{width:65px;min-width:65px;padding:4px 5px;min-height:29px;font-size:12px}.gd-width-control button{padding:5px 7px}.gd-column-tools{row-gap:5px}

/* The column title itself is the settings entry; leave the right edge for resizing. */
.gd-column-label{width:100%;text-align:center}.gd-header{padding-left:4px;padding-right:12px}

/* Spreadsheet entry: the data starts at the left edge, without selection/action columns. */
.gd-table tbody td[aria-readonly="true"]{cursor:default;color:#66758c}.gd-table tbody td[aria-readonly="false"]{cursor:cell}.gd-table .gd-current-row>td{border-bottom-color:#b7caed}.gd-table .gd-active-row>td{border-bottom-color:#e5cc82}.gd-row-status{gap:8px}.gd-row-status button{flex-shrink:0}

/* Frozen and moving data have distinct clipping/painting surfaces. No horizontal sticky cells. */
.gd-split{display:flex;align-items:flex-start;min-width:0;max-width:100%;isolation:isolate;background:#fff}
.gd-frozen-scroll{flex:0 0 var(--gd-frozen-width);width:var(--gd-frozen-width);overflow:hidden;position:relative;background:#fff;border:1px solid #d7e1ee;border-right:2px solid #9badc8;box-sizing:content-box;z-index:1;scrollbar-width:none}
.gd-frozen-scroll::-webkit-scrollbar{display:none}.gd-split>.gd-scroll{flex:1;min-width:0;width:0;border-left:0}
.pre-grid-view .gd-split .gd-scroll{contain:layout paint;isolation:isolate;transform:translateZ(0)}
.gd-split .gd-table{backface-visibility:visible}.gd-split .gd-table tbody td{position:static!important;left:auto!important;backface-visibility:visible}
.gd-split .gd-table thead{height:70px}.gd-frozen-table thead th[rowspan="2"]{height:70px}
.gd-split .gd-table thead th{backface-visibility:visible}.gd-split .gd-table *{transition:none!important;animation:none!important}
.pre-grid-view .gd-fullscreen .gd-split{flex:1;min-height:100px;align-items:stretch;overflow:hidden}.pre-grid-view .gd-fullscreen .gd-split>.gd-scroll{height:100%;max-height:none;flex:1}
.gd-fullscreen .gd-frozen-scroll{max-height:100%;align-self:flex-start}

/* Text cells accept real line breaks independently of the display wrap preference. */
.gd-table textarea.pre-grid-multiline,.gd-wrap .gd-table textarea.pre-grid-multiline{height:auto;min-height:32px;max-height:200px;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical;line-height:1.5;padding:5px 6px}.gd-table td:has(textarea.pre-grid-multiline){vertical-align:top}

.se-records{display:flex;flex-direction:column;gap:4px}.se-record{display:block;text-align:left;border:0;border-left:2px solid #a8bcec;background:#f4f7fc;padding:4px 6px;white-space:normal;width:100%;color:inherit;cursor:pointer}.se-record small{display:block;color:#64748b;font-size:10px}.se-record span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.se-record:hover{background:#e7eefc}.se-compact span,.se-history{font-size:10px;color:#526c9a}.se-history{border:0;background:transparent;text-align:left;padding:2px}.gd-table .se-records{max-height:180px;overflow:auto}

.dfx-cell{display:block;width:100%;min-height:44px;text-align:left;color:inherit;font:inherit;white-space:normal;background:transparent;border:1px solid transparent;border-radius:4px;padding:6px;cursor:text}.dfx-cell:hover{background:#eef4ff;border-color:#b8cbf5}.dfx-cell:focus-visible{outline:2px solid #3456e3;outline-offset:1px}.dfx-more{display:flex;flex-wrap:wrap;gap:12px}

.gd-split .gd-combined thead{height:105px}.gd-combined thead tr:nth-child(2) th{top:35px}.gd-combined thead tr:nth-child(3) th{top:70px;height:35px;background:#ecf5fb}.gd-combined .gd-stage-bands th{top:0;height:35px;color:#24483d;background:#cce9e1;font-weight:700}.gd-combined .gd-stage-bands .gd-band-integration{background:#dce4ff;color:#304b8e}.gd-combined .gd-stage-bands .gd-band-identity{background:#e6f0fa;color:#34516f}.gd-stage-bands span{display:block;text-align:left;padding:6px 12px}

.gd-stage-bands th>span{position:sticky;left:0;width:max-content;max-width:100%}

.gd-combined .gd-stage-bands .gd-band-public{background:#e6f0fa;color:#34516f}

.se-preview{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:4px;padding:4px 5px;color:inherit;font:inherit;cursor:pointer;white-space:normal}.se-preview:hover,.se-preview:focus-visible{background:#edf3ff;outline:1px solid #bed0f4}.se-preview small{display:block;font-size:10px;color:#71849c;line-height:1.5}.se-preview span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.se-thread{max-height:38vh;overflow:auto;padding:0 8px 4px 0}.se-thread-heading{font-weight:600;margin-bottom:12px;color:#405673}.se-comment{border-left:2px solid #dce6f5;padding:4px 0 12px 14px;margin-bottom:8px}.se-comment-meta{display:flex;justify-content:space-between;gap:12px;color:#6a7e98;font-size:12px}.se-comment-meta strong{color:#334962}.se-comment-content{display:block;width:100%;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8fd;border:0;padding:10px;margin-top:6px;color:#233850;font:inherit}.se-comment-content:hover{background:#eaf0fc}.se-compose-title{font-weight:600;margin:12px 0 6px}.se-edit-form textarea{min-height:90px}
