/* Compact creation and editing surfaces, keeping Jingyi's shared navigation. */
.creation-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.creation-type{display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center;text-align:left;background:#fff;padding:20px 14px}.creation-type .creation-icon{grid-row:1/3}.creation-type p{margin:5px 0 0;line-height:1.5;color:#687781}.creation-icon{width:38px;height:42px;display:grid;place-content:center;border-radius:6px;background:#e8f0ff;color:#3370ff;font-size:24px;font-weight:600}.creation-icon.base{background:#e8f6ee;color:#218557}.creation-icon.word{background:#e5edff;color:#2756ad}.creation-icon.excel{background:#e7f3ec;color:#217346}.creation-heading{font-size:13px;margin:24px 0 8px}.creation-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}.creation-presets .template-choice{padding:12px;text-align:left}.creation-presets p{font-size:12px;color:#687781}.list-tools{flex-wrap:wrap}.list-tools .tabs{overflow-x:auto;white-space:nowrap;max-width:100%}.table-viewbar{display:flex;align-items:center;gap:8px;border-bottom:1px solid #dee3ec;padding:0 12px;overflow-x:auto;background:#fff}.base-view{font:13px inherit;padding:12px 14px;background:none;border:0;border-bottom:2px solid transparent;color:#617083;white-space:nowrap;cursor:pointer}.base-view.active{color:#3370ff;border-color:#3370ff}.table-tools{display:flex;gap:18px;padding:8px 14px;background:#fff;border-bottom:1px solid #e5e8ef}.sheet-editor{background:white;border:1px solid #dee3ec;border-radius:6px;overflow:hidden}.sheet-topline{padding:8px 12px!important}.sheet-grid{table-layout:fixed;min-width:max-content!important;width:auto!important;border-collapse:separate;border-spacing:0}.sheet-grid th{position:relative;background:#f5f6f8!important;border-bottom:1px solid #dee3ec;border-right:1px solid #e6e9ef}.sheet-grid td{padding:0!important;border-right:1px solid #e8ebf0;border-bottom:1px solid #e8ebf0;height:var(--base-row-height,40px)}.sheet-grid th,.sheet-grid td{box-sizing:border-box}.sheet-grid input,.sheet-grid select{height:var(--base-row-height,40px);width:100%;box-sizing:border-box;background:transparent;border:0;border-radius:0;padding:8px 10px!important}.sheet-grid input[type=checkbox]{width:18px;margin:0 16px}.sheet-grid input:focus{outline:0;box-shadow:inset 0 0 0 2px #3370ff!important}.sheet-grid .column-button{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px}.sheet-grid th:first-child,.sheet-grid td:first-child{width:54px}.column-resize{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:5;touch-action:none}.column-resize:hover{background:#3370ff55}.sheet-grid .base-frozen{position:sticky;background:#fff;z-index:2;border-right:2px solid #d7dfea}.sheet-grid th.base-frozen{z-index:4}.sheet-grid .base-group td{padding:10px 15px!important;background:#f5f7fa;font-weight:600;height:auto}.sheet-grid .base-empty{padding:48px 20px!important;text-align:center;color:#768398}.field-config-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 0;border:0;border-bottom:1px solid #e6e9ef;background:none;color:#253b51;cursor:pointer}.field-config-row small{margin-left:auto;color:#7a8795}.view-fields{display:grid;grid-template-columns:1fr 1fr;gap:4px}.view-fields label{display:flex;align-items:center;gap:8px}.view-fields input[type=checkbox]{width:16px;min-height:16px;margin:0}.view-rule{display:flex;gap:6px;align-items:center;margin-bottom:8px}.view-rule input,.view-rule select{min-width:0;flex:1}.base-board{display:flex;gap:16px;padding:20px;background:#f6f8fb;overflow-x:auto;min-height:360px}.base-lane{min-width:245px;max-width:300px;flex:1}.base-lane h3{display:flex;justify-content:space-between;font-size:13px;color:#536476;margin:0 0 16px}.base-lane h3 small{font-weight:400}.base-record-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e0e5ed;border-radius:6px;margin-bottom:10px;padding:14px;color:#273b50;cursor:pointer}.base-record-card strong{display:block;margin-bottom:12px;overflow-wrap:anywhere}.base-record-card>span{display:flex;gap:10px;font-size:12px;margin-top:8px;overflow-wrap:anywhere}.base-record-card small{color:#7f8b99;min-width:58px}.base-calendar{padding:14px;overflow-x:auto}.calendar-tools{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:14px}.calendar-tools label{font-size:12px;color:#687781}.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));min-width:650px;border-left:1px solid #e5e9ef;border-top:1px solid #e5e9ef}.calendar-days>strong{text-align:center;font-size:12px;padding:10px;background:#f7f8fa;border-right:1px solid #e5e9ef}.calendar-day{min-height:110px;padding:8px;border-bottom:1px solid #e5e9ef;border-right:1px solid #e5e9ef;min-width:0}.calendar-day small{font-size:12px;color:#687781}.calendar-day.outside{background:#f7f8fa}.calendar-record{display:block;background:#eaf0ff;color:#315da3;border:0;border-radius:3px;width:100%;text-align:left;font-size:12px;padding:5px;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.calendar-undated{margin-top:15px;max-width:400px}.calendar-undated h3{font-size:13px}.doc-editor.word-mode{max-width:none!important;background:#eef0f3;padding:20px!important;margin-left:0!important}.word-mode .rich-editor{width:min(var(--page-width),100%);margin:20px auto;background:white;min-height:var(--page-height);box-shadow:0 2px 12px #14243a18}.word-mode .ql-editor{padding:var(--page-margin)!important;min-height:var(--page-height)}.word-mode .ql-toolbar{background:white}.word-mode .ql-editor table td:first-child,.word-mode .ql-editor table td:last-child{width:auto}.topbar-right>#workspace-new{white-space:nowrap;font-size:12px}.coordinate-grid .column-button{text-align:center!important}
@media(max-width:700px){.creation-grid{gap:8px}.creation-type{grid-template-columns:1fr;padding:13px}.creation-type .creation-icon{grid-row:auto;margin-bottom:10px}.creation-type p{font-size:12px}.creation-presets{grid-template-columns:1fr}.creation-presets p{margin:5px 0}.topbar-right>#workspace-new{padding:8px;font-size:11px}.topbar-right .connection-status{display:none}.table-tools{gap:12px}.view-rule{flex-wrap:wrap}.view-rule input{flex-basis:100%}.word-mode .ql-editor{padding:20px!important}.sheet-actions{gap:6px}.base-board{padding:12px}.base-lane{min-width:230px}.calendar-tools{min-width:300px}.table-viewbar .text-button{white-space:nowrap}.list-tools .tabs{gap:12px}}

.sheet-grid th,.sheet-grid td{min-width:0!important}.sheet-grid td:not(:first-child){overflow:hidden}.sheet-grid td.base-frozen{overflow:visible}.side-panel:has(.creation-grid){width:min(720px,96vw);max-width:96vw}.creation-type{min-width:0}.creation-grid p{overflow-wrap:anywhere}

@media(max-width:700px){.topbar-right>#workspace-new{font-size:0!important;min-width:58px}.topbar-right>#workspace-new::after{content:'＋ 新建';font-size:12px}.topbar-right #user-name{display:none}.topbar .crumb{min-width:0;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-right{gap:10px!important;flex-shrink:0}.topbar-right .account{gap:6px}.topbar{gap:8px}}
/* Feishu-style base chrome and anchored field editor. */
.feishu-base{color:#1f2329;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif}.feishu-base .table-viewbar{background:#f5f6f7;gap:0;padding:0 16px;height:48px;flex-shrink:0}.feishu-base .base-view{display:flex;align-items:center;gap:9px;color:#1f2329;font-size:14px;height:48px;border:0;padding:0 14px;font-weight:400}.base-view svg,.view-more svg{width:18px;height:18px;color:#3370ff;flex-shrink:0}.feishu-base .base-view.active{background:#fff;border-radius:8px 0 0 0}.view-more{height:48px;border:0;background:#fff;border-radius:0 8px 0 0;padding:0 12px 0 2px;cursor:pointer}.view-more svg{color:#8f959e;width:13px}.feishu-base .table-viewbar>.text-button{color:#646a73;padding:12px 20px;font-size:14px}.table-tools{gap:5px;align-items:center;overflow-x:auto;white-space:nowrap;height:44px;box-sizing:border-box;padding:4px 14px}.table-tool,.add-record-tools>button{display:flex;gap:6px;align-items:center;flex-shrink:0;background:none;border:0;border-radius:4px;padding:5px 8px;color:#646a73;font:14px inherit;cursor:pointer}.table-tool{font-size:13px}.table-tool:hover,.add-record-tools>button:hover{background:#f2f3f5}.table-tool svg,.add-record-tools svg{width:18px;height:18px;flex-shrink:0}.add-record-tools{display:flex;gap:0;align-items:center;margin-right:8px}.add-record-tools>button{font-size:14px;padding-right:4px}.tool-blue{color:#3370ff!important}.table-tools-spacer{flex:1;min-width:20px}.table-tool.tool-active{background:#e8efff;color:#3370ff}.feishu-base .sheet-topline{background:#fff;border-bottom:1px solid #eff0f1}.feishu-base .sheet-grid{font-size:13px;color:#1f2329}.feishu-base .sheet-grid th{height:38px;background:#fff!important;color:#1f2329;font-weight:400;padding:0!important}.feishu-base .sheet-grid td:first-child{background:#fff;color:#8f959e}.column-heading{display:flex;align-items:center;min-height:38px}.feishu-base .column-button{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-weight:400;font-size:13px;padding:8px 10px;cursor:default}.column-button>span:not(.field-type-icon){overflow:hidden;text-overflow:ellipsis}.column-button svg{width:14px;height:14px;flex-shrink:0;color:#646a73}.field-type-icon{font:14px -apple-system,sans-serif;flex-shrink:0;color:#646a73}.column-arrow{background:none;border:0;padding:4px;margin:0 5px 0 0;display:flex;cursor:pointer;opacity:0;border-radius:4px}.column-arrow svg{width:15px;height:15px;color:#646a73}th:hover .column-arrow,th.column-selected .column-arrow{opacity:1}.column-arrow:hover{background:#dfe1e5}.feishu-base .sheet-grid th.column-selected,.feishu-base .sheet-grid td.column-selected{background:#e8edff!important}.feishu-base .sheet-grid tr.row-selected td{background:#e8edff!important}.column-band{display:block;background:#f1f4fa;padding:2px 10px;font-size:10px}.ai-tag{color:#3370ff;background:#e4ebff;border-radius:3px;padding:1px 3px;font-size:9px}.feishu-base #table-select-all{width:15px;height:15px;min-height:0;margin:0;accent-color:#3370ff}.feishu-base .sheet-grid td input,.feishu-base .sheet-grid td select{font-size:13px}.feishu-base .add-field-cell{width:80px}.add-field-cell button{border:0;background:none;color:#8f959e;display:flex;align-items:center;justify-content:center;width:80px;min-height:38px;cursor:pointer}.add-field-cell button:hover{background:#f2f3f5}.add-field-cell svg,#inline-add-row svg{width:20px;height:20px}.sheet-grid tfoot td{background:#fff!important}.sheet-grid tfoot td:first-child{text-align:left;position:static;width:auto}.sheet-grid #inline-add-row{display:flex;align-items:center;justify-content:center;min-height:36px;width:54px;border:0;background:none;color:#8f959e;cursor:pointer}.sheet-grid #inline-add-row:hover{color:#3370ff;background:#f5f6f7}.sheet-grid .row-tail{border-right:0!important}.feishu-base .grid-wrap{background:white;min-height:320px}.multi-cell{display:flex;align-items:center;gap:4px;width:100%;height:var(--base-row-height);padding:5px 8px;background:none;border:0;overflow:hidden;text-align:left;cursor:pointer}.option-chip{display:inline-block;padding:2px 7px;border-radius:4px;color:#343941;white-space:nowrap;font-size:12px}.cell-placeholder{color:#b3b7bd;font-size:11px}
.field-popover,.field-type-menu,.table-popover{position:fixed;z-index:40;background:#fff;border:1px solid #dee0e3;border-radius:7px;box-shadow:0 4px 16px #1f23291f;color:#1f2329;font:13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;box-sizing:border-box;overflow:auto}.field-popover{width:min(360px,calc(100vw - 24px));display:flex;flex-direction:column;overflow:hidden}.field-scroll{padding:16px;overflow:auto;min-height:0}.field-popover label,.table-popover label{display:block;color:#8f959e;margin:0 0 7px}.field-popover label:not(:first-child){margin-top:22px}.field-popover input:not([type=checkbox]):not([type=color]),.field-popover select,.field-popover textarea,.table-popover input:not([type=checkbox]),.type-search{font:13px inherit;box-sizing:border-box;border:1px solid #d0d3d6;border-radius:5px;padding:8px 12px;min-height:34px;width:100%;background:white;color:#1f2329}.field-popover input:focus,.field-popover select:focus,.field-popover textarea:focus,.type-search:focus{outline:1px solid #3370ff;border-color:#3370ff}.field-popover textarea{min-height:75px;resize:vertical}.field-popover button{font:inherit;cursor:pointer}.field-popover footer{display:flex;justify-content:flex-end;gap:12px;padding:16px;background:#fff;flex-shrink:0}.field-popover footer button{border:1px solid #d0d3d6;border-radius:5px;padding:7px 26px;background:#fff;min-height:34px}.field-popover footer .primary{background:#1456f0;color:white;border-color:#1456f0}.field-type-box{border:1px solid #d0d3d6;border-radius:5px;overflow:hidden}.field-type-button,.field-shortcut{display:flex;gap:8px;align-items:center;width:100%;padding:12px;border:0;background:#fff;text-align:left;color:#1f2329}.field-type-button>span:last-child,.field-shortcut>span{margin-left:auto;color:#8f959e}.field-shortcut{background:#f5f6f7;color:#646a73;font-size:12px!important}.field-type-menu{width:min(260px,calc(100vw - 24px));padding:8px;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden}.field-type-menu .type-search{margin:2px 0 8px;flex-shrink:0}.type-catalog{overflow:auto;min-height:0;overscroll-behavior:contain}.type-catalog>small{display:block;color:#8f959e;padding:10px 10px 4px}.type-choice{display:flex;align-items:center;gap:10px;padding:9px 10px;width:100%;background:none;border:0;border-radius:5px;text-align:left;color:#1f2329;cursor:pointer}.type-choice>span{color:#646a73;width:19px}.type-choice>small{margin-left:auto;color:#8f959e;font-size:10px}.type-choice:hover{background:#f0f0f0}.type-choice:disabled{opacity:.5;cursor:not-allowed}.option-box,.ai-config-card{background:#f5f6f7;border-radius:5px;padding:9px}.option-add{border:0;background:none;color:#3370ff;padding:3px 0 10px}.option-edit-row{display:flex;align-items:center;gap:7px;margin:5px 0}.option-edit-row .option-grip{color:#8f959e;cursor:grab}.option-edit-row input[type=color]{width:22px;height:22px;border:0;padding:0;flex-shrink:0;background:transparent}.option-edit-row .option-name{min-width:0;flex:1}.option-edit-row button{border:0;background:none;color:#646a73;padding:3px}.field-check-list{max-height:160px;overflow:auto;display:flex;flex-direction:column;gap:6px}.field-popover .field-check-list label,.table-popover .field-check-list label{display:flex;align-items:center;gap:8px;margin:3px 0;color:#1f2329}.field-check-list input[type=checkbox],.field-inline input{width:15px;height:15px;accent-color:#3370ff;flex-shrink:0}.field-popover .field-inline{display:flex;gap:7px;align-items:center}.field-note{font-size:11px;color:#8f959e;line-height:1.65;margin:12px 0 0}.field-ai-heading{display:flex;justify-content:space-between;color:#3370ff;margin-top:20px;border-top:1px solid #dee0e3;padding-top:15px}.field-ai-heading button{border:0;background:none;color:#8f959e}.formula-fields{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.formula-fields button{background:#eef2ff;border:0;border-radius:4px;padding:3px 6px}.table-popover{width:min(240px,calc(100vw - 24px));padding:7px}.table-popover>button{display:block;width:100%;border:0;background:none;text-align:left;padding:8px 10px;border-radius:4px;color:#343941;font:13px inherit;cursor:pointer}.table-popover>button:hover{background:#f0f0f0}.table-popover>button:disabled{color:#8f959e;cursor:not-allowed}.table-popover>button.danger{color:#d94848}.table-popover hr{border:0;border-top:1px solid #dee0e3;margin:5px -7px}.table-popover strong{display:block;font-size:13px;padding:5px 8px}.color-palette{display:flex;flex-wrap:wrap;gap:8px;padding:8px}.color-palette button{width:25px;height:25px;border:1px solid #ccd0d5;border-radius:3px;cursor:pointer}
.table-ai-assistant{position:fixed;right:0;top:64px;bottom:0;width:350px;background:#fff;border-left:1px solid #dee0e3;z-index:12;display:flex;flex-direction:column;box-shadow:-3px 0 10px #1f232908;color:#1f2329}.table-ai-assistant>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #f0f0f0}.table-ai-assistant>header strong,.table-ai-assistant>header small{display:block}.table-ai-assistant>header small{font-size:12px;color:#737b83;margin-top:3px}.table-ai-assistant>header button{border:0;background:none;font-size:22px;color:#8f959e;cursor:pointer}.ai-assistant-body{overflow:auto;padding:18px 20px;flex:1}.ai-assistant-body label{display:block;font-size:12px;margin:0 0 14px}.ai-assistant-body select{display:block;width:100%;margin:6px 0 0;padding:8px;border:1px solid #dce2e5;border-radius:5px;background:#fff}.assistant-response{font-size:12px;line-height:1.7;color:#68767b;padding:10px 0;margin:4px 0 12px}.assistant-field-config{border-top:1px solid #e8edef;margin-top:20px;padding-top:14px}.assistant-field-config summary{cursor:pointer;color:#435359}.assistant-field-config p{font-size:12px;line-height:1.6;color:#68767b}.assistant-field-config button{margin-top:8px}.table-selection button{border:0;background:transparent;color:inherit;padding:4px 8px;border-radius:4px;cursor:pointer}.table-selection [data-selection-ai]{background:#fff;color:#193d70}.table-selection button:disabled{opacity:.5;cursor:default}
@media(max-width:1100px){.with-table-ai{margin-right:0}.table-ai-assistant{box-shadow:-10px 0 30px #1f232920}}@media(max-width:700px){.table-ai-assistant{top:0;width:min(350px,100vw);z-index:30}.table-tools{padding:4px 8px}.table-tool{font-size:12px;padding:4px 7px}.feishu-base .table-viewbar{padding-left:4px}.table-tools-spacer{min-width:0}.field-popover label:not(:first-child){margin-top:16px}}
/* Keep narrow viewports usable when the saved view freezes many fields. */
@media(max-width:1100px){.sheet-grid .base-frozen{position:static!important;left:auto!important}}
.ai-hub{width:min(1040px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:92vh;padding:0;border:1px solid #dee0e3;border-radius:12px;color:#273b49}.ai-hub::backdrop{background:#102a3c66}.ai-hub>header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e9edf0}.ai-hub h2{font-size:21px;margin:3px 0}.ai-hub header small{font-size:10px;color:#8a9aa5;letter-spacing:2px}.ai-hub header button{border:0;background:none;font-size:25px;color:#88959e;cursor:pointer}.ai-hub-content{padding:22px 24px;overflow:auto}.ai-hub label{display:block;font-size:13px;margin:14px 0 8px}.ai-hub input:not([type=checkbox]),.ai-hub select,.ai-hub textarea{display:block;width:100%;box-sizing:border-box;padding:10px;margin-top:7px;border:1px solid #cfd8df;border-radius:5px;font:inherit;background:white;color:inherit}.ai-hub textarea{min-height:170px;resize:vertical}.ai-hub .ai-check{display:flex;align-items:center;gap:8px}.ai-hint{color:#71828e;line-height:1.7;font-size:12px}.ai-status{padding:12px;background:#fff7e8;color:#8a642f;border-radius:6px;font-size:13px}.ai-pill{font-size:11px;padding:3px 7px;margin-left:10px;background:#e9f0ff;color:#3565a6;border-radius:9px}.ai-connection-list{margin:20px 0}.ai-connection-list article{display:flex;align-items:center;justify-content:space-between;border:1px solid #e4e9ed;padding:14px;margin:10px 0;border-radius:7px}.ai-connection-list p{font-size:12px;color:#788a96;margin-bottom:0}.ai-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.ai-chain{font-size:12px;padding:12px;background:#f2f6fa;border-radius:6px;margin-bottom:16px;color:#58758b}.ai-work-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px}.ai-work-layout nav{max-height:66vh;overflow:auto;border-right:1px solid #e6ecf0;padding-right:12px}.ai-work-layout nav strong{display:block;font-size:11px;color:#8a9ba7;margin:18px 8px 8px}.ai-work-layout nav strong:first-child{margin-top:0}.ai-work-layout nav button{display:block;width:100%;border:0;background:none;text-align:left;border-radius:5px;padding:10px 8px;color:#536b7b;font-size:12px;cursor:pointer}.ai-work-layout nav button.active{background:#eaf1ff;color:#255c9e}.ai-work-main{min-width:0}.ai-work-main h3{margin:0;font-size:20px}.ai-result{margin-top:18px;padding:15px;background:#f6f8fa;border-radius:6px}.ai-result h4{margin:0 0 8px;font-size:13px}.ai-result div{font-size:13px;white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}.topbar-right .global-ai-button{white-space:nowrap;font-size:12px}.field-preset-help{font-size:11px;color:#8b959e}
@media(max-width:700px){.ai-hub-content{padding:15px}.ai-work-layout{grid-template-columns:1fr;gap:16px}.ai-work-layout nav{display:flex;gap:5px;max-height:94px;flex-wrap:wrap;overflow:auto;border:0;padding:0}.ai-work-layout nav strong{display:none}.ai-work-layout nav button{width:auto;font-size:11px;padding:7px;background:#f3f6f9}.topbar-right .global-ai-button{font-size:0;padding:7px}.topbar-right .global-ai-button::after{content:'✧ AI';font-size:12px}.ai-chain{font-size:10px}.ai-hub>header{padding:14px 16px}}

/* The page scrolls vertically; column headers and table controls remain in view. */
.sheet-editor.feishu-base{overflow:visible;border-radius:6px}
.feishu-base>.table-sticky-head{position:sticky;top:0;z-index:8;background:#fff;border-radius:6px 6px 0 0;box-shadow:0 1px 0 #dee3ec}
.table-sticky-head.coordinate-sticky{position:static}
.feishu-base .table-column-heads{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;width:100%;border-top:1px solid #eff0f1}
.table-column-heads::-webkit-scrollbar{display:none}
.feishu-base .table-header-grid{table-layout:fixed;min-width:100%;margin:0}
.feishu-base .table-header-grid thead{position:static}
.feishu-base .grid-wrap{overflow-x:auto;overflow-y:clip;max-height:none;min-height:320px;width:100%}
.feishu-base .sheet-grid th:first-child,.feishu-base .sheet-grid td:first-child{position:static;left:auto}
.feishu-base .sheet-grid td:first-child{max-width:none}
.row-document-open{font-size:12px;white-space:nowrap;color:#2463c7}
.field-history-item{border-bottom:1px solid #e2e7eb;padding:16px 0}
.field-history-item strong{font-size:12px}.field-history-item pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 inherit;background:#f6f8fa;padding:10px;border-radius:4px}
@media(max-width:700px){.feishu-base>.table-sticky-head{top:0}.feishu-base .table-tools{flex-wrap:wrap!important;height:auto;overflow:visible}.feishu-base .sheet-topline{padding:7px;gap:6px}.row-document-open{font-size:11px;padding:4px}}

.column-button[draggable=true]{cursor:grab}.column-drop-before{box-shadow:inset 3px 0 #3370ff}.column-drop-after{box-shadow:inset -3px 0 #3370ff}.lookup-condition{padding:8px;border:1px solid #dee0e3;border-radius:5px;margin:8px 0;display:grid;gap:6px}.field-popover .lookup-condition label{margin:3px 0}.sheet-tab-rename{border:0;background:none;cursor:pointer;padding:4px;color:#646a73}

/* Shared table interaction contract: fixed tracks, reachable primary actions. */
.feishu-base .sheet-grid{table-layout:fixed!important;border-collapse:separate;border-spacing:0}
.feishu-base .sheet-grid th,.feishu-base .sheet-grid td{box-sizing:border-box;min-width:0!important;overflow:hidden}
.feishu-base .sheet-grid th:first-child,.feishu-base .sheet-grid td:first-child{width:var(--gutter-width,88px)!important;min-width:0!important}
.feishu-base .sheet-grid tr.base-group td,.feishu-base .sheet-grid .base-empty{width:auto!important}
.row-gutter{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:0 10px;min-height:var(--base-row-height,40px);white-space:nowrap}
.sheet-grid .row-gutter input[type=checkbox],.sheet-grid th input[type=checkbox]{appearance:auto;width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;flex:0 0 18px;vertical-align:middle;cursor:pointer}
.row-gutter>.text-button{padding:4px!important;min-width:22px;min-height:30px;margin:0!important;flex-shrink:0}
.row-gutter>.row-document-open{font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.feishu-base .sheet-grid tr.row-selected>td{background-color:#eaf2ff}
.feishu-base .sheet-grid td>input:not([type=checkbox]),.feishu-base .sheet-grid td>select,.feishu-base .sheet-grid td>.multi-cell{min-width:0!important;max-width:100%;box-sizing:border-box}
.table-tools{height:auto!important;min-height:48px;display:flex!important;flex-wrap:wrap;gap:4px!important;padding:7px 10px!important;overflow:visible!important;white-space:normal!important;align-items:center}
.table-tools-spacer{display:none!important}
.table-more{position:relative;margin-left:auto;flex-shrink:0}
.table-more>summary{cursor:pointer;list-style:none;padding:8px 10px;border:1px solid #d8e0ec;border-radius:6px;background:#fff;font-size:13px}
.table-more[open]>.table-more-content{position:absolute;right:0;top:100%;margin-top:6px;width:250px;max-height:min(60vh,440px);overflow-y:auto;background:#fff;border:1px solid #d8e0ec;border-radius:8px;box-shadow:0 12px 32px #14244326;padding:8px;z-index:40;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.table-more-content .table-tool{justify-content:flex-start;width:100%;white-space:nowrap}
.table-selection{display:flex;align-items:center;gap:8px;background:#eaf2ff;color:#193d70;padding:4px 8px;border-radius:6px;font-size:13px;flex-wrap:wrap}
.table-selection[hidden],.table-tools [hidden]{display:none!important}
.biz-grid-status{padding:8px 12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.biz-grid-status.biz-error{background:#fff3f2;border-left:3px solid #bc3434}
.biz-grid-recovery{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px}
.biz-grid-host,.sheet-editor,.table-sticky-head,.grid-wrap,.table-column-heads{min-width:0;max-width:100%}
@media(max-width:600px){.table-tools{padding:6px!important}.table-tools .table-tool{font-size:12px;padding:6px!important}.table-tools .table-more{margin-left:0}.table-more[open]>.table-more-content{position:fixed;left:12px;right:12px;top:auto;width:auto;bottom:20px;max-height:60vh}.table-selection{width:100%}.sheet-topline{flex-wrap:wrap}.sheet-topline input{max-width:100%}}

/* Dialogs keep headings and commit actions reachable at every viewport. */
#side-panel[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden;box-sizing:border-box}
#side-panel>header{flex:0 0 auto;position:relative;z-index:2}
#panel-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:18px}
.panel-actions{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;padding:14px 24px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #dfe5ee;background:#fff}
.panel-actions[hidden]{display:none}
.save-leave-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d8e0ec;border-radius:12px;padding:24px;color:#213a51}
.save-leave-dialog::backdrop{background:#10253d70}.save-leave-dialog h2{margin:0 0 12px;font-size:20px}.save-leave-dialog p{line-height:1.7;overflow-wrap:anywhere}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.dialog-actions button{padding:9px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#213a51}
@media(max-width:600px){#side-panel[open]{margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:0}#panel-content{padding:16px}.panel-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.panel-actions>.primary{flex:1}button,input,select,textarea{max-width:100%}.biz-filters{gap:8px!important}.biz-filters>*{min-width:0!important}.biz-form{grid-template-columns:minmax(0,1fr)!important}}

.feishu-base .table-tools{flex-wrap:wrap!important}.feishu-base .table-tools>.table-selection{flex:0 0 auto;min-width:150px;max-width:100%}

/* Explicit column inputs and a focused review for a locked table job. */
.ai-assistant-body textarea{box-sizing:border-box;display:block;width:100%;min-height:90px;margin-top:6px;padding:9px;border:1px solid #dce2e5;border-radius:5px;font:inherit;resize:vertical}
.ai-assistant-body fieldset{min-width:0;margin:0 0 14px;padding:10px;border:1px solid #e1e6ea;border-radius:5px}.ai-assistant-body legend{font-size:12px;color:#68767b;padding:0 4px}.ai-assistant-body .ai-source-choice{display:flex;align-items:center;gap:6px;margin:7px 0}.ai-source-choice input{flex:0 0 auto}.ai-assistant-body>.button{width:100%;margin-bottom:10px}
.ai-work-layout.ai-work-locked{grid-template-columns:minmax(0,1fr)}.ai-work-locked nav[hidden]{display:none}.ai-rule-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:#68767b;max-height:150px;overflow:auto}

/* Two independent document entries remain visible beside the record number. */
.row-gutter.row-gutter-dual{display:grid;grid-template-columns:18px 24px minmax(0,1fr);grid-template-rows:28px 28px;gap:0 5px;min-height:64px;padding:4px 8px}
.row-gutter-dual>.row-select{grid-column:1;grid-row:1 / 3}.row-gutter-dual>.text-button:not(.row-document-open):not(.row-ai-document-open){grid-column:2;grid-row:1 / 3}
.row-gutter-dual>.row-document-open{grid-column:3;grid-row:1;text-align:left}
.row-gutter-dual>.row-ai-document-open{grid-column:3;grid-row:2;font-size:11px;min-height:26px;padding:2px!important;text-align:left;color:#6751a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-selection [data-selection-delete]{border:1px solid #e1aaaa;background:#fff3f2;color:#a42c2c;font-weight:600}.table-selection [data-selection-delete]:disabled{opacity:.45;cursor:not-allowed}

/* Viewport overlay: does not participate in the underlying table layout. */
dialog.table-ai-assistant{position:fixed;inset:16px 16px 16px auto;margin:0;width:420px;max-width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:none;box-sizing:border-box;padding:0;border:1px solid #dce2e5;border-radius:12px;box-shadow:0 16px 60px #14213d33;overflow:hidden;z-index:100}
dialog.table-ai-assistant:not([open]){display:none}dialog.table-ai-assistant[open]{display:flex}
.table-ai-assistant::backdrop{background:#18253833}.table-ai-assistant>header,.ai-assistant-actions{flex:none}.table-ai-assistant .ai-assistant-body{min-height:0;overflow:auto;overscroll-behavior:contain}.table-ai-assistant textarea{width:100%;box-sizing:border-box;min-height:100px}.ai-assistant-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;border-top:1px solid #e8edef;background:#fff}.ai-assistant-actions #assistant-run{width:100%;margin:0}.ai-assistant-actions button{min-height:36px;font-size:12px}.ai-assistant-actions .text-button{padding:6px}
/* Number and checkbox occupy the same track; the handle has its own track. */
.feishu-base .sheet-grid .row-gutter{position:relative;display:grid;grid-template-columns:20px 24px minmax(0,1fr);gap:0 4px;padding:0 8px;min-height:var(--base-row-height,40px)}
.row-gutter>.row-drag-handle{grid-column:1;grid-row:1;border:0;background:none;padding:2px;width:20px;height:28px;color:#89919c;cursor:grab;touch-action:none;opacity:0}.row-drag-handle svg{width:12px;height:18px}.row-drag-handle:active{cursor:grabbing}.row-drag-handle:disabled{cursor:default}
.feishu-base .row-gutter>.row-select{grid-column:2;grid-row:1;justify-self:center;opacity:0;pointer-events:none}.feishu-base .row-gutter>.row-number{grid-column:2;grid-row:1;justify-self:center;padding:0!important;min-width:24px;font-size:12px}
.feishu-base tr:hover .row-select,.feishu-base tr:focus-within .row-select,.feishu-base tr.row-selected .row-select{opacity:1;pointer-events:auto}.feishu-base tr:hover .row-number,.feishu-base tr:focus-within .row-number,.feishu-base tr.row-selected .row-number{visibility:hidden}.feishu-base tr:hover .row-drag-handle,.feishu-base tr:focus-within .row-drag-handle{opacity:1}
.feishu-base .table-header-grid th:first-child,.feishu-base .sheet-grid th:first-child{text-align:left!important;padding-left:35px!important}.feishu-base .row-gutter>.row-document-open{grid-column:3;grid-row:1}.feishu-base .row-gutter.row-gutter-dual{grid-template-rows:28px 28px;min-height:64px;padding:4px 8px}.feishu-base .row-gutter-dual>.row-select,.feishu-base .row-gutter-dual>.row-number,.feishu-base .row-gutter-dual>.row-drag-handle{grid-row:1 / 3}.feishu-base .row-gutter-dual>.row-ai-document-open{grid-column:3;grid-row:2}
.row-drop-before>td{box-shadow:inset 0 2px #3370ff}.row-drop-after>td{box-shadow:inset 0 -2px #3370ff}.row-dragging{opacity:.55}
@media(hover:none){.feishu-base .row-gutter>.row-select,.row-gutter>.row-drag-handle{opacity:1;pointer-events:auto}.feishu-base .row-gutter>.row-number{visibility:hidden}}
@media(max-width:700px){dialog.table-ai-assistant{inset:0;width:100%;max-width:100vw;height:100dvh;border-radius:0}.table-ai-assistant>header{padding:12px 16px}.table-ai-assistant .ai-assistant-body{padding:12px 16px}}

@media(min-width:701px){dialog.table-ai-assistant{inset:0;margin:auto;width:780px;max-width:calc(100vw - 48px);height:min(820px,calc(100dvh - 48px))}.table-ai-assistant .ai-assistant-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:start;gap:12px 20px}.ai-assistant-body>label{margin:0}.ai-assistant-body>fieldset,.ai-assistant-body>label:has(textarea),.ai-assistant-body>.assistant-response,.ai-assistant-body>.field-note{grid-column:1 / -1}.ai-assistant-actions{justify-content:flex-end;align-items:center}.ai-assistant-actions #assistant-run{width:auto;order:3}.ai-assistant-actions #assistant-configure{order:2}.ai-assistant-actions #assistant-ai-settings{order:1;margin-right:auto}.table-ai-assistant textarea{min-height:110px}}
@media(min-width:701px){#assistant-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}#assistant-sources .ai-source-choice{min-width:0;margin:0;padding:4px 0;overflow-wrap:anywhere}}
@media(min-width:1000px){#assistant-sources{grid-template-columns:repeat(3,minmax(0,1fr))}}
