:root{--sel:#1a73e8;--sel-bg:#1a73e81a;--sel-head:#d3e3fd;--find-bg:#facc1561;--find-cur:#f973168c;--link:#1677ff;--bg:#f6f7f9;--surface:#fff;--surface-2:#f3f4f6;--border:#e2e4e8;--text:#1f2328;--muted:#6b7280;--accent:#16a34a;--accent-soft:#16a34a1a;--locked-bg:repeating-linear-gradient(135deg, #00000006 0 6px, transparent 6px 12px);--violation-bg:#fff4e5;--violation-border:#f59e0b;--tab-bg:#eceef1}:root[data-theme=dark]{--sel:#8ab4f8;--sel-bg:#8ab4f829;--sel-head:#2b3a55;--find-bg:#facc1540;--find-cur:#f9731680;--link:#69b1ff;--bg:#0f1113;--surface:#17191c;--surface-2:#1f2226;--border:#2c3036;--text:#e6e6e6;--muted:#9aa1ab;--accent:#22c55e;--accent-soft:#22c55e24;--locked-bg:repeating-linear-gradient(135deg, #ffffff08 0 6px, transparent 6px 12px);--violation-bg:#2b2111;--violation-border:#d48806;--tab-bg:#1b1e22}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;overflow:hidden}.app-root{height:100%}.muted{color:var(--muted)}.small{font-size:12px}.center-screen{flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:200px;display:flex}.center-pad{text-align:center;padding:32px}code{background:var(--surface-2);border-radius:4px;padding:1px 4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.shell{flex-direction:column;height:100dvh;display:flex}.topbar{background:var(--surface);border-bottom:1px solid var(--border);flex:none;align-items:center;gap:16px;min-width:0;height:48px;padding:0 12px 0 16px;display:flex}.brand{white-space:nowrap;align-items:center;gap:8px;font-size:15px;font-weight:600;display:flex;color:var(--text)!important}.brand .anticon{color:var(--accent);font-size:18px}.topnav{scrollbar-width:none;gap:4px;min-width:0;display:flex;overflow-x:auto}.topnav a{color:var(--muted);white-space:nowrap;border-radius:6px;padding:6px 10px;font-size:14px}.topnav a:hover{color:var(--text);background:var(--surface-2)}.topnav a.active{color:var(--accent);background:var(--accent-soft);font-weight:500}.topbar-right{flex:none;align-items:center;gap:4px;margin-left:auto;display:flex}.me-btn{padding:0 4px!important}.me-menu{color:var(--text);flex-direction:column;gap:2px;max-width:260px;display:flex}.me-menu span{color:var(--muted);text-overflow:ellipsis;font-size:12px;overflow:hidden}.shell-main{flex:1;min-height:0;overflow:auto}@media (width<=560px){.brand-text{display:none}.topbar{gap:8px;padding:0 6px 0 12px}.topnav a{padding:6px 7px;font-size:13px}}.page{max-width:1280px;margin:0 auto;padding:20px 24px 40px}.page-narrow{max-width:880px}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.page-actions{flex-wrap:wrap;gap:8px;display:flex}@media (width<=560px){.page{padding:14px 16px 32px}}.login-screen,.widget-login{justify-content:center;align-items:center;min-height:100%;padding:16px;display:flex;position:relative;overflow:auto}.login-theme{position:absolute;top:8px;right:8px}.login-card{width:100%;max-width:400px}.login-brand{align-items:center;gap:10px;margin-bottom:12px;font-size:20px;font-weight:600;display:flex}.login-brand .anticon{color:var(--accent)}.dev-note{margin:4px 0 12px;font-size:12px;display:block}.pair-wait{text-align:center;flex-direction:column;align-items:center;gap:4px;margin-top:12px;display:flex}.file-list{background:var(--surface);border:1px solid var(--border);border-radius:8px}.file-item{cursor:pointer;padding:10px 16px!important}.file-item:hover{background:var(--surface-2)}.file-icon{color:var(--accent);margin-top:4px;font-size:22px}.file-title{font-weight:500}.file-meta .ant-tag{margin-inline-end:6px}.template-pick{flex-direction:column;gap:8px;display:flex}.ss{background:var(--surface);flex-direction:column;min-width:0;height:100%;display:flex}.ss-bar{border-bottom:1px solid var(--border);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:8px 12px;min-width:0;padding:6px 10px;display:flex}.ss-title{flex:260px;align-items:center;gap:6px;min-width:0;display:flex}.ss-name{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden;margin:0!important;font-size:16px!important}.role-tag,.sync-tag{flex:none;margin:0!important}.live-dot{flex:none;padding:0 2px}.ss-tools{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;min-width:0;display:flex}.ss-lock{flex:none}.ss-grid{flex:1;min-height:0;position:relative}.grid-col{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.grid-wrap{flex:1;width:100%;min-height:0}.ss-compact .ss-bar{padding:4px 36px 4px 6px}@media (width<=700px){.ss-tools{scrollbar-width:none;flex-wrap:nowrap;justify-content:flex-start;width:100%;overflow-x:auto}.ss-tools>*{flex:none}.ss-title{flex-basis:100%}}.ag-root-wrapper{border-left:0!important;border-right:0!important}.row-num{color:var(--muted);text-align:right;background:var(--surface-2);justify-content:space-between;align-items:center;font-size:11px;display:flex;padding-left:2px!important;padding-right:6px!important}.row-num .ag-row-drag{opacity:.35;margin-right:2px}.row-num:hover .ag-row-drag{opacity:1}.cell-locked{background-image:var(--locked-bg);color:color-mix(in srgb, var(--text) 62%, transparent)}.cell-line{text-overflow:ellipsis;white-space:nowrap;min-height:22px;line-height:22px;overflow:hidden}.cell-wrap{white-space:pre-wrap;word-break:break-word;min-height:22px;padding:2px 0;line-height:18px}.ag-cell-wrap-text{word-break:break-word}.ag-cell{-webkit-user-select:none;user-select:none}.cell-link,.ws-link{font-variant-numeric:tabular-nums}.cell-tip{z-index:1100;background:var(--surface);max-width:480px;max-height:320px;color:var(--text);border:1px solid var(--border);white-space:pre-wrap;word-break:break-word;pointer-events:none;border-radius:6px;padding:6px 9px;font:12.5px/1.45 Inter,Segoe UI,system-ui,-apple-system,Roboto,sans-serif;position:fixed;overflow:hidden;box-shadow:0 6px 20px #00000024}.cell-tip.above{transform:translateY(-100%)}[data-theme=dark] .cell-tip{box-shadow:0 6px 20px #00000080}.link-copy{z-index:1050;cursor:pointer;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:4px;justify-content:center;align-items:center;padding:0;font-size:11px;display:inline-flex;position:fixed;box-shadow:0 1px 3px #0000001f}.link-copy:hover{color:var(--link);border-color:var(--link)}.view-button{max-width:240px}.view-button>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.view-hint{font-size:12px;margin-bottom:12px!important}.view-note{margin-bottom:12px}.view-share{background:var(--surface-2);border-radius:6px;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;padding:8px 10px;display:flex}.view-groups{flex:1;min-width:180px}.view-cols-head,.view-col{grid-template-columns:16px minmax(0,1fr) 84px 52px;align-items:center;gap:8px;display:grid}.view-cols-head{color:var(--muted);border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto 84px 52px;padding:0 6px 4px;font-size:12px}.view-cols-all .ant-btn{height:20px;padding:0 4px;font-size:12px}.view-cols{flex-direction:column;display:flex}.view-col{border-bottom:1px solid var(--border);background:var(--surface);padding:3px 6px}.view-col:hover{background:var(--surface-2)}.view-col.off .view-col-title{color:var(--muted)}.view-col.missing .view-col-title{color:var(--muted);font-style:italic}.view-col.drop-before{box-shadow:inset 0 2px 0 var(--accent)}.view-col.drop-after{box-shadow:inset 0 -2px 0 var(--accent)}.view-col-drag{cursor:grab;color:var(--muted)}.view-col-title{min-width:0}.view-col-title>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.view-col .ant-input-number{width:84px}.view-actions{flex-wrap:wrap;gap:8px;display:flex}.ag-cell.cell-sel{background-image:linear-gradient(var(--sel-bg), var(--sel-bg))!important}.ag-cell.cell-sel:after{content:"";pointer-events:none;border:0 solid var(--sel);position:absolute;inset:0}.ag-cell.sel-t:after{border-top-width:1px}.ag-cell.sel-b:after{border-bottom-width:1px}.ag-cell.sel-l:after{border-left-width:1px}.ag-cell.sel-r:after{border-right-width:1px}.ag-cell.row-num-sel{color:var(--text);font-weight:600;background:var(--sel-head)!important}.ag-header-cell.hdr-sel{background:var(--sel-head)}.ag-header-cell.hdr-sel-whole{background:color-mix(in srgb, var(--sel) 30%, var(--sel-head))}.ag-cell.cell-find{box-shadow:inset 0 0 0 999px var(--find-bg)}.ag-cell.cell-find-cur{box-shadow:inset 0 0 0 999px var(--find-cur);outline-offset:-2px;outline:2px solid #f97316}.section-row.find-hit{box-shadow:inset 0 0 0 999px var(--find-bg)}.section-row.find-cur{box-shadow:inset 0 0 0 999px var(--find-cur)}.find-bar{border-bottom:1px solid var(--border);background:var(--surface-2);flex-wrap:wrap;flex:none;align-items:center;gap:4px;padding:3px 8px;display:flex}.find-input{width:260px;max-width:100%}.find-count{min-width:92px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.find-only{margin-left:4px;font-size:12px}@media (width<=560px){.find-input{flex:1;width:auto}.find-only{display:none}}.hotkeys{border-collapse:collapse;font-size:12px}.hotkeys td{vertical-align:top;padding:3px 8px 3px 0}.hotkeys kbd{background:var(--surface-2);border:1px solid var(--border);white-space:nowrap;border-bottom-width:2px;border-radius:4px;padding:0 5px;font-family:inherit;font-size:11px}.ag-cell a{color:var(--link);text-decoration:none}.ag-cell a:hover{text-decoration:underline}[data-theme=dark] .ag-cell a{color:#69b1ff}.chip{text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;border:1px solid #0000;border-radius:9px;max-width:100%;padding:0 7px;font-size:12px;line-height:18px;display:inline-block;overflow:hidden}.chip-plain{background:var(--surface-2);color:var(--text);border-color:var(--border)}.chip-invalid{border-style:dashed;border-color:#f59e0b!important}.hdr{align-items:center;gap:4px;width:100%;min-width:0;display:flex}.hdr-title{text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600;overflow:hidden}.hdr-lock{color:var(--muted);font-size:11px}.hdr-filter{color:var(--muted);cursor:pointer;opacity:.55;background:0 0;border:0;border-radius:4px;padding:2px 3px;line-height:1}.ag-header-cell:hover .hdr-filter{opacity:1}.hdr-filter.on{color:var(--accent);opacity:1}.hdr-filter:hover{background:var(--surface-2)}.filter-pop{flex-direction:column;gap:8px;width:240px;display:flex}.filter-list{flex-direction:column;gap:2px;max-height:260px;display:flex;overflow:auto}.filter-list .ant-checkbox-wrapper{margin:0}.filter-actions{justify-content:space-between;display:flex}.section-row{background:var(--surface-2);border-bottom:1px solid var(--border);cursor:default;align-items:center;gap:4px;height:100%;padding:0 8px;font-weight:600;display:flex}.section-drag{cursor:grab;opacity:.45;display:flex}.section-drag:hover{opacity:1}.section-drag.hidden{visibility:hidden}.section-title{text-overflow:ellipsis;white-space:nowrap;position:sticky;left:10px;overflow:hidden}.section-count{opacity:.7;font-size:12px;font-weight:400}.section-toggle{color:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;padding:2px 3px;font-size:11px;line-height:1;transition:transform .12s;display:flex}.section-toggle:hover{background:#00000014}.section-toggle.collapsed{transform:rotate(-90deg)}.section-input{max-width:640px;font:inherit;border:1px solid var(--accent);background:var(--surface);color:var(--text);border-radius:4px;flex:1;padding:2px 6px}.select-editor{background:var(--surface);border:1px solid var(--border);border-radius:8px;max-width:320px;padding:6px;box-shadow:0 6px 24px #0000002e}.select-editor-search{border:1px solid var(--border);width:100%;font:inherit;background:var(--surface);color:var(--text);border-radius:6px;outline:none;margin-bottom:4px;padding:4px 8px;font-size:13px}.select-editor-search:focus{border-color:var(--accent)}.select-editor-list{max-height:280px;overflow:auto}.select-editor-item{cursor:pointer;border-radius:6px;padding:4px 6px}.select-editor-item.active{background:var(--accent-soft)}.select-editor-item.current{outline:1px dashed var(--border)}.select-clear{color:var(--muted);padding-left:4px;font-size:12px}.select-editor-empty{color:var(--muted);padding:8px;font-size:12px}.text-editor{background:var(--surface);border:2px solid var(--sel);box-shadow:0 4px 16px #0000002e}.text-editor textarea{resize:none;width:100%;min-height:20px;font:inherit;color:var(--text);background:0 0;border:0;outline:none;padding:1px 4px;font-size:13px;line-height:18px;display:block;overflow:auto}.text-editor.long textarea{min-height:58px}.editor-hint{color:var(--muted);border-top:1px solid var(--border);padding:1px 4px 2px;font-size:11px}.editor-hint a{color:var(--link)}.link-editor{background:var(--surface);border:2px solid var(--sel);flex-direction:column;gap:4px;padding:6px 6px 2px;display:flex;box-shadow:0 4px 16px #0000002e}.link-editor label{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:flex}.link-editor label span{flex:none;width:46px}.link-editor input{border:1px solid var(--border);min-width:0;font:inherit;background:var(--surface);color:var(--text);border-radius:4px;outline:none;flex:1;padding:2px 6px;font-size:13px}.link-editor input:focus{border-color:var(--sel)}.link-editor .editor-hint{border-top:0;padding-left:0}.link-hint{word-break:break-all}.sheet-tabs{background:var(--tab-bg);border-top:1px solid var(--border);flex:none;align-items:center;gap:2px;min-width:0;height:38px;padding:0 6px;display:flex}.sheet-tabs-scroll{scrollbar-width:thin;align-items:stretch;min-width:0;height:100%;display:flex;overflow-x:auto}.sheet-tab{cursor:pointer;white-space:nowrap;color:var(--muted);-webkit-user-select:none;user-select:none;border-radius:0 0 6px 6px;align-items:center;gap:6px;padding:0 14px;font-size:13px;display:flex}.sheet-tab:hover{background:color-mix(in srgb, var(--surface) 60%, transparent);color:var(--text)}.sheet-tab.active{background:var(--surface);color:var(--accent);font-weight:600;box-shadow:0 1px 2px #00000014}.tab-lock{font-size:11px}.tab-caret{font-size:10px}.row-menu{z-index:1100;background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:230px;position:fixed;overflow:hidden;box-shadow:0 8px 28px #0003}.row-menu .ant-menu{background:0 0;border-inline-end:0!important}.row-menu .ant-menu-item,.row-menu .ant-menu-submenu-title{height:32px!important;margin-block:0!important;line-height:32px!important}.row-menu-note{color:var(--muted);max-width:260px;padding:8px 12px 4px;font-size:12px}.row-menu-sub .palette-item{cursor:default;background:0 0!important;height:auto!important;padding:6px!important;line-height:normal!important}.palette{flex-direction:column;gap:6px;display:flex}.palette-none{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:4px;padding:3px;font-size:12px}.palette-grid{grid-template-columns:repeat(8,20px);gap:4px;display:grid}.swatch{cursor:pointer;border:1px solid #0000001f;border-radius:4px;width:20px;height:20px;padding:0}.swatch:hover{transform:scale(1.15)}.history-drawer .ant-drawer-body{padding:12px}.history-row-hint{color:var(--muted);margin:10px 0 0;font-size:12px}.history-list{flex-direction:column;gap:8px;margin-top:12px;display:flex}.history-item{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:8px 10px;font-size:13px}.history-item.violation{background:var(--violation-bg);border-color:var(--violation-border)}.history-head{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.history-who{text-overflow:ellipsis;white-space:nowrap;max-width:200px;overflow:hidden}.history-src{padding:0 5px;font-size:11px;line-height:16px;margin:0!important}.history-at{margin-left:auto;font-size:12px}.history-what{margin-top:3px}.history-col{font-weight:500}.history-diff{word-break:break-word;flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:4px;display:flex}.history-diff .old{color:var(--muted);white-space:pre-wrap;text-decoration:line-through}.history-diff .new{white-space:pre-wrap}.history-diff .arrow{color:var(--muted)}.history-violation{color:#d46b08;margin-top:6px;font-size:12px}[data-theme=dark] .history-violation{color:#ffc069}.settings-drawer .ant-drawer-body{padding-top:4px}.settings-tab{flex-direction:column;gap:12px;display:flex}.settings-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.sheet-pick{min-width:200px}.field-inline{align-items:center;gap:6px;font-size:13px;display:inline-flex}.field-label{color:var(--muted);margin:8px 0 4px;font-size:12px}.field-gap{margin-top:12px}.col-list{flex-direction:column;gap:6px;display:flex}.col-item{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;display:flex}.col-item.is-hidden{opacity:.6}.col-order{display:flex}.col-title{width:180px;font-weight:500}.col-type{width:140px}.col-list-pick{width:150px}.col-width{width:78px}.col-switches{color:var(--muted);gap:10px;font-size:12px;display:inline-flex}.col-switches label{cursor:pointer;align-items:center;gap:4px;display:inline-flex}.col-desc{flex:1;min-width:160px}.add-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.list-card{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:8px;padding:10px;display:flex}.list-card-head{gap:6px;display:flex}.list-name{font-weight:600}.opt-list{flex-direction:column;gap:4px;display:flex}.opt-item{align-items:center;gap:8px;display:flex}.opt-actions{margin-left:auto;display:flex}.list-save{justify-content:flex-end;gap:6px;display:flex}.perm-block{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:8px;padding:10px;display:flex}.perm-title{margin-top:4px;font-weight:600}.perm-switch{cursor:pointer;align-items:center;gap:8px;font-size:13px;display:inline-flex}.perm-cols{flex-direction:column;gap:8px;display:flex}.perm-col{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:6px;padding:8px 10px;display:flex}.perm-col-name{font-weight:500}.principal{flex-direction:column;gap:6px;min-width:0;display:flex}.principal-select{width:100%}.principal-note{color:#d46b08;font-size:12px}.rules-table{flex-direction:column;gap:6px;display:flex}.rules-head,.rules-row{grid-template-columns:minmax(120px,.8fr) 1fr 1fr;align-items:start;gap:8px;display:grid}.rules-head{color:var(--muted);font-size:12px}.rules-row{border-top:1px solid var(--border);padding:6px 0}@media (width<=640px){.rules-head{display:none}.rules-row{grid-template-columns:1fr}}.share-list{flex-direction:column;gap:4px;display:flex}.share-item{border:1px solid var(--border);border-radius:8px;align-items:center;gap:8px;padding:6px 8px;display:flex}.share-who{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.howto{flex-direction:column;gap:6px;margin:4px 0;padding-left:20px;font-size:13px;display:flex}.code-line{word-break:break-all;flex-wrap:wrap;align-items:center;gap:4px;margin-top:4px;display:flex}.code-block{background:var(--surface-2);border:1px solid var(--border);white-space:pre-wrap;word-break:break-all;border-radius:6px;flex:1;min-width:0;max-height:320px;margin:0;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;overflow:auto}.copy-block{margin-top:12px}.copy-row{align-items:flex-start;gap:6px;display:flex}.deleted-list{flex-direction:column;gap:6px;max-height:60vh;display:flex;overflow:auto}.deleted-item{border:1px solid var(--border);border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;display:flex}.deleted-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.add-form{row-gap:8px;margin-top:16px}.group-cell{align-items:center;gap:4px;display:flex}.group-name{font-weight:600}.agent-tokens{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.agent-tokens .ant-list{width:100%}.in-widget body{background:var(--surface)}.widget-shell{flex-direction:column;height:100dvh;display:flex;position:relative}.widget-user{z-index:10;position:absolute;top:4px;right:4px}.widget-files{height:100%;padding-top:12px;overflow:auto}.pair-code{margin:10px 0 4px;font-size:15px}.pair-code b{letter-spacing:3px;font-family:ui-monospace,monospace;font-size:22px}.backup-list{margin-top:12px}.history-revert{margin-left:auto}
