:root{
  --bg:#f5f6f8; --panel:#fff; --ink:#1c2128; --ink-2:#5b6674; --ink-3:#8a95a3;
  --line:#e3e7ec; --line-2:#eef1f4;
  --brand:#1f6feb; --brand-ink:#fff; --brand-soft:#eaf2ff;
  --warn:#b7791f; --warn-soft:#fff7e6; --danger:#c62828; --danger-soft:#fdecec;
  --ok:#1a7f5a; --ok-soft:#e7f6ef; --mask:#8a6d3b; --mask-soft:#fdf6e3;
  --radius:10px; --shadow:0 1px 2px rgba(16,24,40,.06),0 4px 14px rgba(16,24,40,.06);
}
/* v56: documents are containers; worksheets and editing tools have separate places. */
.nav-section{font-size:11px;color:var(--ink-3);padding:12px 14px 4px;letter-spacing:.03em}
.document-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.document-heading h1{font-size:25px;margin:3px 0;font-weight:650}
.document-heading .hint{margin:4px 0}
.document-kicker{color:var(--ink-3);font-size:12px}
.document-controls{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.document-controls input[type=search]{min-width:240px;width:310px}
.document-controls input[type=search],.document-controls select,.document-permission-group select{padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.document-library{padding:0;overflow-x:auto}
.document-library .grid-table td{padding:17px 20px}
.document-library .grid-table th{padding:11px 20px}
.document-library .grid-table td:last-child{text-align:right;white-space:nowrap}
.document-library .grid-table td:nth-child(4){font-size:12px}
.document-title{display:flex;align-items:center;gap:14px}
.document-title a{text-decoration:none;color:var(--ink)}
.document-title a:hover{color:var(--brand)}
.document-title .hint{margin:3px 0 0;font-size:12px}
.document-icon{font-size:25px;color:#218d61;background:#e9f6ee;display:grid;place-items:center;width:42px;height:46px;border-radius:8px}
.worksheet-directory{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:16px}
.worksheet-card{display:flex;align-items:center;gap:14px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--ink)}
.worksheet-card:hover{border-color:var(--brand);box-shadow:var(--shadow)}
.worksheet-card p{font-size:12px;color:var(--ink-3);margin:5px 0 0}
.worksheet-card b{overflow-wrap:anywhere}
.worksheet-icon{font-size:24px;display:grid;place-items:center;width:44px;height:48px;flex-shrink:0;background:var(--brand-soft);color:var(--brand);border-bottom:4px solid var(--brand);border-radius:6px}
.worksheet-open{font-size:12px;white-space:nowrap;margin-left:auto;color:var(--ink-3)}
.document-menu{position:relative}
.document-menu>div{position:absolute;right:0;top:40px;z-index:20;display:grid;gap:5px;padding:10px;width:170px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}
.document-menu summary,.toolbar-menu summary{list-style:none;cursor:pointer}
.document-menu summary::-webkit-details-marker,.toolbar-menu summary::-webkit-details-marker{display:none}
.document-options summary,.document-permission-group summary{cursor:pointer;color:var(--brand);padding:8px 0}
.document-permission-group{padding:16px 0;border-bottom:1px solid var(--line)}
.document-permission-group .grid-table{font-size:12px}
.document-permission-group select{max-width:230px;padding:6px}
.crumb-document{font-size:14px;margin-left:10px;text-decoration:none}
.crumb-divider{margin:0 12px;color:var(--ink-3)}
.toolbar-menu{position:relative;flex-shrink:0}
.toolbar-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:50;width:210px;display:grid;gap:5px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px;box-shadow:var(--shadow)}
.toolbar-panel .btn{text-align:left;justify-content:flex-start;white-space:nowrap}
.sheet-toolbar .btn{padding:5px 9px;font-size:12px}
.toolbar-panel .btn.danger{border-top:1px solid var(--line);margin-top:6px}
.sheettabs .directory{color:var(--ink-3);text-decoration:none;margin-right:8px;flex-shrink:0}
@media(max-width:800px){.document-heading h1{font-size:21px}.document-controls input[type=search]{width:100%}.worksheet-directory{grid-template-columns:1fr}.document-library .grid-table td{padding:12px}.document-library .grid-table th{padding:10px}.document-library .grid-table th:nth-child(4),.document-library .grid-table td:nth-child(4){display:none}}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB",
       "Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.hidden{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--brand)}

/* ---------- 登录 ---------- */
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;
  background:linear-gradient(160deg,#eef3fb,#f7f8fa 60%)}
.login-card{width:100%;max-width:380px;background:var(--panel);border-radius:16px;
  box-shadow:var(--shadow);padding:32px 28px;display:flex;flex-direction:column;gap:14px}
.login-logo{font-size:34px;text-align:center}
.login-card h1{font-size:19px;margin:0;text-align:center;font-weight:650}
.login-sub{margin:0 0 6px;text-align:center;color:var(--ink-3);font-size:12.5px}
.login-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink-2)}
.login-card input{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.login-card input:focus{outline:2px solid var(--brand-soft);border-color:var(--brand)}

/* ---------- 布局 ---------- */
.app{display:flex;min-height:100vh}
.sidebar{width:212px;flex:0 0 212px;background:#fff;border-right:1px solid var(--line);
  display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{padding:18px 18px 12px;font-weight:650;font-size:15px;display:flex;gap:8px;align-items:center}
.brand span{font-size:14px}
#nav{flex:1;overflow:auto;padding:6px 10px;display:flex;flex-direction:column;gap:2px}
.nav-item{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:8px;
  cursor:pointer;color:var(--ink-2);border:0;background:none;width:100%;text-align:left;font-size:13.5px}
.nav-item:hover{background:var(--line-2);color:var(--ink)}
.nav-item.active{background:var(--brand-soft);color:var(--brand);font-weight:600}
.nav-item .dot{margin-left:auto;background:var(--danger);color:#fff;border-radius:9px;
  padding:0 6px;font-size:11px;line-height:17px;min-width:17px;text-align:center}
.sidebar-foot{border-top:1px solid var(--line);padding:12px 10px;display:flex;flex-direction:column;gap:6px}
.who{display:flex;align-items:center;gap:6px;padding:0 4px 6px;font-size:13px}
.badge{font-size:11px;padding:1px 7px;border-radius:20px;background:var(--line-2);color:var(--ink-2)}
.badge.owner{background:var(--brand-soft);color:var(--brand)}
/* 版本号：看得见就行，别抢注意力 */
.who-ver{padding:6px 4px 0;font-size:11px;color:var(--ink-3,#9aa4ad);letter-spacing:.02em}

.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{height:52px;display:flex;align-items:center;justify-content:space-between;
  padding:0 20px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.crumb{font-weight:600;font-size:15px;display:flex;align-items:center;gap:10px;min-width:0}
.crumb .sub{font-weight:400;color:var(--ink-3);font-size:12.5px}
.topbar-right{display:flex;align-items:center;gap:12px}
.conn{font-size:11px;color:var(--ok)}
.conn.off{color:var(--ink-3)}
.presence{display:flex;gap:-6px;align-items:center}
.avatar{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#fff;
  font-size:11px;font-weight:600;border:2px solid #fff;margin-left:-6px}
.page{padding:20px;flex:1;min-width:0}

/* ---------- 通用 ---------- */
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:18px;margin-bottom:16px}
.card h2{margin:0 0 4px;font-size:15px}
.card .hint{color:var(--ink-3);font-size:12.5px;margin:0 0 14px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row.between{justify-content:space-between}
.spacer{flex:1}
.btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 13px;
  cursor:pointer;font-size:13px;transition:.12s;display:inline-flex;align-items:center;
  justify-content:center;gap:6px;text-decoration:none;color:var(--ink);white-space:nowrap}
a.btn{color:var(--ink)}
.btn:hover{background:var(--line-2)}
.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.btn.primary:hover{filter:brightness(1.06)}
.btn.danger{color:var(--danger);border-color:#f0c9c9}
.btn.danger:hover{background:var(--danger-soft)}
.btn.ghost{border-color:transparent;background:transparent;color:var(--ink-2)}
.btn.ghost:hover{background:var(--line-2)}
.btn.small{padding:4px 9px;font-size:12.5px}
.btn.block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}
.icon-btn{border:0;background:none;cursor:pointer;color:var(--ink-3);font-size:15px;padding:4px}
input[type=text],input[type=password],input[type=number],input[type=date],select,textarea{
  padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;max-width:100%}
input:focus,select:focus,textarea:focus{outline:2px solid var(--brand-soft);border-color:var(--brand)}
label.field{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:var(--ink-2);margin-bottom:12px}
.form-error{color:var(--danger);font-size:12.5px;min-height:18px}
.empty{color:var(--ink-3);text-align:center;padding:34px 10px;font-size:13px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}
.stat .n{font-size:24px;font-weight:650;line-height:1.2}
.stat .l{color:var(--ink-3);font-size:12.5px}
.stat.alert .n{color:var(--danger)}

table.grid-table{width:100%;border-collapse:collapse;font-size:13px}
table.grid-table th{text-align:left;font-weight:600;color:var(--ink-2);background:#fafbfc;
  border-bottom:1px solid var(--line);padding:9px 10px;white-space:nowrap}
table.grid-table td{border-bottom:1px solid var(--line-2);padding:8px 10px;vertical-align:top}
table.grid-table tr:hover td{background:#fafbfc}
.tag{display:inline-block;font-size:11.5px;padding:1px 7px;border-radius:5px;background:var(--line-2);color:var(--ink-2)}
.tag.ok{background:var(--ok-soft);color:var(--ok)}
.tag.warn{background:var(--warn-soft);color:var(--warn)}
.tag.danger{background:var(--danger-soft);color:var(--danger)}
.tag.mask{background:var(--mask-soft);color:var(--mask)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px}

/* ---------- 表格网格 ---------- */
.sheet-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.grid-wrap{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:auto;max-height:calc(100vh - 190px);box-shadow:var(--shadow)}
table.grid{border-collapse:separate;border-spacing:0;font-size:13px;table-layout:fixed}
table.grid th,table.grid td{border-right:1px solid var(--line-2);border-bottom:1px solid var(--line-2);
  padding:0;height:33px}
table.grid thead th{position:sticky;top:0;z-index:3;background:#fafbfc;padding:0 9px;
  font-weight:600;color:var(--ink-2);white-space:nowrap;border-bottom:1px solid var(--line)}
table.grid thead th.corner{left:0;z-index:4;width:46px;min-width:46px}
table.grid td.rowno,table.grid th.rowno{position:sticky;left:0;background:#fafbfc;z-index:2;
  width:46px;min-width:46px;text-align:center;color:var(--ink-3);font-size:11.5px}
/* 底色画在 .cell 这个 div 上，所以它必须把整个格子撑满。
   同一行里只要有人把字号调大，这一行就会变高；如果 .cell 只有自己内容那么高，
   旁边格子的底色就会缩成一条，看着像没填满。height:100% 让它跟着行一起长。 */
/* 默认不因为文字长就把列撑开：一行显示，超出部分省略号。
   要看全的格子，用工具栏的「⏎ 换行」打开自动换行，那一格才会换行、行跟着变高。 */
.cell{padding:6px 9px;min-height:33px;height:100%;box-sizing:border-box;cursor:cell;
  white-space:pre;overflow:hidden;text-overflow:ellipsis;outline:none;position:relative}
/* 行被图片或大字号撑高之后，文字要待在格子正中间，不能吊在顶上。
   用 grid 不用 flex：flex 里的 contenteditable 打字会乱（之前踩过），
   而且 grid 的格子是撑满宽度的，text-align 照常好使。
   正在输入的格子（ready / editing）退回普通块级，输入法才不会出岔子。 */
.cell:not(.editing){display:grid;align-content:center}
/* 文字比格子长的时候，截哪一头由对齐方式决定：
   左对齐看开头（末尾省略号），居中看中间，右对齐看结尾。
   居中和右对齐没法加省略号——两头都被切了，加了反而看不清有没有被截。 */
.cell.al-center:not(.wrap):not(.editing){justify-content:center;text-overflow:clip}
.cell.al-right:not(.wrap):not(.editing){justify-content:end;text-overflow:clip}
.cell.wrap{white-space:pre-wrap;word-break:break-word;text-overflow:clip;overflow:hidden;
  height:var(--cell-height,33px);min-height:0;display:block}
/* 正在编辑的格子要能看到全部内容，不然改长文字看不见后面。
   注意：编辑时一定不能是 flex 容器——contenteditable 在 flex 里打字会乱。 */
.cell.editing{white-space:pre-wrap;word-break:break-word;overflow:visible;
  text-overflow:clip;z-index:5;display:block}
/* 边框画在 <td> 上，不画在里面那个 .cell 上。两个原因：
   一是相邻两格之间只有一条缝，画在 td 的 border 上正好一格一条，不会两条挨着；
   二是格子本来就有一条浅灰网格线，直接把那条线变黑就行，不会变成"黑线+灰线"。
   右边和下边用 td 自己的 border（网格线就是它俩），上边和左边用 inset 阴影补
   ——只有屏幕最上面一行、最左边一列才用得着。 */
table.grid td{box-shadow:var(--sh-t,0 0 #0000),var(--sh-l,0 0 #0000)}
table.grid td.bd-r{border-right-color:var(--ink)}
table.grid td.bd-r2{border-right:2px solid var(--ink)}
table.grid td.bd-b{border-bottom-color:var(--ink)}
table.grid td.bd-b2{border-bottom:2px solid var(--ink)}
table.grid td.bd-t{--sh-t:inset 0 1px 0 0 var(--ink)}
table.grid td.bd-t2{--sh-t:inset 0 2px 0 0 var(--ink)}
table.grid td.bd-l{--sh-l:inset 1px 0 0 0 var(--ink)}
table.grid td.bd-l2{--sh-l:inset 2px 0 0 0 var(--ink)}
.cell.sensitive{background:var(--mask-soft)}
.cell.unlocked{background:var(--ok-soft)}
.cell.selected{box-shadow:inset 0 0 0 2px var(--brand);background:#fff}
.cell.editing{box-shadow:inset 0 0 0 2px var(--brand);background:#fff;cursor:text}
/* 选中的那一格随时可以直接打字，它其实是可编辑并且内容已被选中的状态。
   但在真正开始输入之前，不要露出光标和蓝色选中底纹，不然看着像在编辑。 */
.cell.ready:not(.editing){caret-color:transparent}
.cell.ready:not(.editing)::selection{background:transparent}
.cell.ready:not(.editing) ::selection{background:transparent}
.cell.editing{caret-color:auto}
.cell.peer{box-shadow:inset 0 0 0 2px var(--peer,#999)}
.cell.flash{animation:flash .9s ease-out}
@keyframes flash{from{background:#fff6c2}to{background:transparent}}
.peer-tag{position:absolute;top:-16px;left:-2px;font-size:10px;color:#fff;padding:0 5px;
  border-radius:4px 4px 4px 0;white-space:nowrap;z-index:6}
th.col-head{position:relative}
th.col-head .cname{display:inline-flex;align-items:center;gap:5px}
th.col-head .lock{color:var(--mask)}
/* 列字母：写公式时用得上（A、B、C…），平时很淡，不抢列名 */
th.col-head .cletter{color:var(--ink-3);font-weight:600;font-size:11px;margin-right:5px;
  letter-spacing:.5px}
/* 公式格子：左上角一个小角标，一眼看出这一格是算出来的 */
.cell.formula{position:relative}
.cell.formula::before{content:'';position:absolute;left:0;top:0;border-width:5px 5px 0 0;
  border-style:solid;border-color:var(--brand) transparent transparent transparent;opacity:.7}
.col-menu{position:absolute;right:4px;top:6px}

/* ---------- 弹窗 / 提示 ---------- */
.modal-root{position:fixed;inset:0;z-index:50;display:grid;place-items:center}
.modal-mask{position:absolute;inset:0;background:rgba(16,24,40,.35)}
.modal{position:relative;background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(16,24,40,.25);
  width:min(560px,calc(100vw - 32px));max-height:85vh;display:flex;flex-direction:column}
.modal header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;
  border-bottom:1px solid var(--line)}
.modal header h3{margin:0;font-size:15px}
.modal-body{padding:18px;overflow:auto}
.modal footer{padding:12px 18px;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:flex-end}
.toast-area{position:fixed;right:18px;bottom:18px;z-index:60;display:flex;flex-direction:column;gap:8px}
.toast{background:#1c2128;color:#fff;padding:10px 14px;border-radius:9px;font-size:13px;
  box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:340px;animation:slide .2s}
.toast.err{background:#a11}
.toast.ok{background:#146b4d}
@keyframes slide{from{transform:translateY(8px);opacity:0}}
.notice{padding:10px 12px;border-radius:8px;font-size:13px;margin-bottom:12px}
.notice.warn{background:var(--warn-soft);color:var(--warn);border:1px solid #f3e2bd}
.notice.info{background:var(--brand-soft);color:#1a5ec2;border:1px solid #cfe0ff}
.detail-json{background:#fafbfc;border:1px solid var(--line-2);border-radius:6px;padding:8px 10px;
  font-size:12px;white-space:pre-wrap;word-break:break-all;margin:4px 0 0}

@media (max-width:820px){
  .app{flex-direction:column}
  .sidebar{width:100%;flex:none;height:auto;position:static;flex-direction:row;flex-wrap:wrap;
    align-items:center;padding:8px}
  #nav{flex-direction:row;overflow-x:auto;padding:4px}
  .sidebar-foot{border:0;flex-direction:row;padding:4px;margin-left:auto}
  .page{padding:14px}
  .grid-wrap{max-height:calc(100vh - 230px)}
}

/* ---------- 登录页的设备待审批提示 ---------- */
.login-notice{background:var(--warn-soft);border:1px solid #f3e2bd;border-radius:10px;
  padding:12px 14px;text-align:center;color:var(--warn)}
.login-notice .ln-title{font-weight:650;font-size:13.5px;margin-bottom:8px}
.login-notice .ln-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:24px;letter-spacing:3px;font-weight:700;color:var(--ink);
  background:#fff;border-radius:8px;padding:8px 10px;margin-bottom:8px;user-select:all}
.login-notice .ln-tip{font-size:12.5px;line-height:1.5}

/* ---------- 表格标签栏（像金山文档那样同时开多张表） ---------- */
.tabbar{display:flex;align-items:stretch;gap:2px;background:#fff;
  border-bottom:1px solid var(--line);padding:0 8px;overflow-x:auto;
  position:sticky;top:52px;z-index:4;min-height:38px;scrollbar-width:thin}
.tabbar::-webkit-scrollbar{height:4px}
.tabbar::-webkit-scrollbar-thumb{background:var(--line);border-radius:2px}
.tab{display:flex;align-items:center;gap:7px;padding:0 8px 0 12px;cursor:pointer;
  border:1px solid transparent;border-bottom:none;border-radius:8px 8px 0 0;
  font-size:13px;color:var(--ink-2);white-space:nowrap;max-width:210px;
  background:transparent;margin-top:4px}
.tab:hover{background:var(--line-2);color:var(--ink)}
.tab.active{background:var(--bg);border-color:var(--line);color:var(--ink);font-weight:600;
  box-shadow:0 1px 0 var(--bg)}
.tab .tname{overflow:hidden;text-overflow:ellipsis}
.tab .tclose{border:0;background:none;cursor:pointer;color:var(--ink-3);font-size:14px;
  line-height:1;padding:2px 3px;border-radius:4px;flex:0 0 auto;opacity:.55}
.tab .tclose:hover{background:var(--danger-soft);color:var(--danger);opacity:1}
.tab .lock{font-size:11px}
.tabbar .tab-add{margin-top:4px;padding:0 11px;border:0;background:none;cursor:pointer;
  color:var(--ink-3);font-size:16px;border-radius:8px}
.tabbar .tab-add:hover{background:var(--line-2);color:var(--ink)}
.tabbar .tab-spacer{flex:1;min-width:8px}
.tabbar .tab-closeall{margin:4px 0;padding:0 10px;border:0;background:none;cursor:pointer;
  color:var(--ink-3);font-size:12.5px;border-radius:8px;white-space:nowrap}
.tabbar .tab-closeall:hover{background:var(--line-2);color:var(--ink)}
@media (max-width:820px){ .tabbar{position:static} }

/* ---------- 选区、统计栏、筛选、浮层 ---------- */
.tool-sep{width:1px;height:20px;background:var(--line);margin:0 2px}
.cell.sel{background:rgba(31,111,235,.10)!important;box-shadow:inset 0 0 0 1px rgba(31,111,235,.25)}
.cell.sel-anchor{box-shadow:inset 0 0 0 2px var(--brand)!important;background:#fff!important}
.cell.sel.sensitive{background:rgba(31,111,235,.10)!important}
table.grid thead th.col-head{cursor:pointer;user-select:none}
table.grid thead th.col-head:hover{background:#f1f4f8}
table.grid td.rowno{cursor:pointer;user-select:none}
table.grid td.rowno:hover{background:#eef1f5;color:var(--ink)}
th.corner{cursor:pointer;font-size:11px}
.sort-mark,.filter-mark{font-size:9px;color:var(--brand);margin-left:2px}
.col-menu{position:absolute;right:2px;top:50%;transform:translateY(-50%);
  border:0;background:none;cursor:pointer;color:var(--ink-3);font-size:15px;
  line-height:1;padding:2px 4px;border-radius:4px}
.col-menu:hover{background:var(--line);color:var(--ink)}

/* 求和/平均这一条：固定贴在屏幕底部，表格滚到哪儿、放大到多少都看得见 */
.statusbar{position:sticky;bottom:0;z-index:6;margin-top:10px;padding:8px 14px;
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);font-size:12.5px;color:var(--ink-2);
  display:flex;flex-wrap:wrap;align-items:center;gap:2px;min-height:34px;
  box-shadow:0 -2px 12px rgba(16,24,40,.10)}
.statusbar b{color:var(--ink)}
/* 求和、平均这些数字点一下就复制（光靠鼠标划是划不走的：
   整页的 copy 事件被表格选区占着） */
.sb-val{cursor:copy;border-radius:5px;padding:1px 5px;margin:0 -2px;
  user-select:text;transition:background .12s}
.sb-val:hover{background:var(--brand-soft,#EAF2FF);color:var(--brand)}
.sb-val:active{background:#DCE9FF}
.sb-strong{color:var(--ink);font-weight:600}
.sb-all{margin-left:auto;border:1px solid var(--line);background:#fff;cursor:pointer;
  border-radius:6px;padding:3px 10px;font-size:12px;color:var(--ink-2)}
.sb-all:hover{border-color:var(--brand);color:var(--brand)}
.sb-dot{margin:0 9px;color:var(--line)}
.sb-hint{color:var(--ink-3)}
.sb-mask{color:var(--mask)}

.popover{position:fixed;z-index:60;background:#fff;border:1px solid var(--line);
  border-radius:10px;box-shadow:0 8px 28px rgba(16,24,40,.16);padding:6px;min-width:170px;
  max-width:min(94vw,440px)}
.pop-item{display:block;width:100%;text-align:left;border:0;background:none;cursor:pointer;
  padding:7px 10px;border-radius:7px;font-size:13px;color:var(--ink)}
.pop-item:hover{background:var(--line-2)}
.pop-sep{height:1px;background:var(--line);margin:4px 2px}
.pop-label{font-size:11.5px;color:var(--ink-3);padding:2px 10px 4px}
.color-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;padding:4px 4px 8px}
.color-sec{font-size:12px;color:var(--ink-3);padding:6px 6px 2px}
.color-dot{width:26px;height:26px;border-radius:6px;border:1px solid var(--line);cursor:pointer}
.color-dot:hover{transform:scale(1.1);border-color:var(--ink-3)}

/* ∑ 公式面板 */
.fx-help{padding:2px 8px 6px;font-size:12.5px;color:var(--ink-2);max-width:340px}
.fx-help>div{padding:3px 0;line-height:1.55}
.fx-help code{background:var(--line-2);border-radius:4px;padding:1px 5px;font-size:12px;
  color:var(--ink)}
.fx-tip{padding:6px 8px;font-size:12px;color:var(--ink-3);line-height:1.6}
/* ---------- 保存状态 ---------- */
.savestate{font-size:12px;padding:3px 10px;border-radius:20px;white-space:nowrap;
  border:1px solid transparent}
.savestate.ok{color:var(--ink-3)}
.savestate.busy{color:var(--warn);background:var(--warn-soft);cursor:pointer}
.savestate.off,.savestate.clash{color:var(--danger);background:var(--danger-soft);
  cursor:pointer;font-weight:600}
@media (max-width:700px){.savestate{font-size:11px;padding:2px 7px}}

/* 还没传上服务器的格子：右上角一个小点，内容照常显示、照常能改 */
.cell.pending::after{content:'';position:absolute;right:3px;top:3px;width:5px;height:5px;
  border-radius:50%;background:var(--warn)}
/* 补传时发现被同事改过、没有覆盖的格子 */
.cell.clash{box-shadow:inset 0 0 0 2px var(--danger)}

/* 合并过的格子：内容竖着居中，看起来就是"这几行属于同一个它" */
table.grid td.mergedtd{vertical-align:middle}
.cell.merged:not(.editing){display:flex;align-items:center;min-height:100%}
/* 写公式时：引用到的格子描一圈蓝虚线，一眼看清点中了哪儿 */
.cell.fxref{box-shadow:inset 0 0 0 2px var(--brand);background:rgba(31,111,235,.07)}
/* 边写边算的小气泡 */
.fx-tip-bubble{position:fixed;z-index:70;background:#fff;border:1px solid var(--line);
  border-radius:8px;box-shadow:0 6px 20px rgba(16,24,40,.18);padding:4px 10px;
  font-size:13px;color:var(--ink);pointer-events:none;max-width:220px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.filter-list{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.filter-item{display:flex;align-items:center;gap:9px;padding:6px 10px;font-size:13px;cursor:pointer}
.filter-item:hover{background:var(--line-2)}
.filter-item .fv{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-item .fc{color:var(--ink-3);font-size:11.5px}

/* ---------- 单元格里的图片 ---------- */
.cell.has-img{padding:4px 6px;min-height:calc(60px * var(--zoom, 1))}
/* 图片没带宽高（老数据）时的兜底：这一格先按图片的高度占住，
   免得图一加载完行就长高一次，把下面的内容整体推走 */
.cellimg{max-height:56px;max-width:100%;height:auto;border-radius:4px;display:block;cursor:zoom-in;
  border:1px solid var(--line-2)}
.cellimg:hover{border-color:var(--brand)}
.cellimg-locked{display:inline-block;font-size:11.5px;padding:2px 8px;border-radius:5px;
  background:var(--mask-soft);color:var(--mask);cursor:default}
.img-view{text-align:center;background:#f4f5f7;border-radius:8px;padding:10px}
.img-view img{max-width:100%;max-height:60vh;border-radius:6px}

/* ---------------------------------------------------------------- 筛选条 */
.filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:8px 12px;margin:0 0 8px;border:1px solid #F0C36D;border-radius:9px;
  background:#FFFBEF;font-size:13px}
.fbar-label{font-weight:600;color:#8A6D3B;white-space:nowrap}
.fbar-count{color:var(--ink-3)}
.fchip{display:inline-flex;align-items:center;gap:5px;padding:3px 6px 3px 9px;
  background:#fff;border:1px solid var(--line);border-radius:20px;max-width:340px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fchip b{font-weight:600}
.fchip.sort{background:#F4F8FF}
.fchip.warn{background:var(--warn-soft);color:var(--warn);border-color:transparent;
  max-width:none;white-space:normal}
.fchip-x{border:0;background:none;cursor:pointer;color:var(--ink-3);font-size:15px;
  line-height:1;padding:0 3px;border-radius:50%}
.fchip-x:hover{background:var(--line-2);color:var(--ink)}
.chip-color{display:inline-block;width:13px;height:13px;border-radius:3px;
  border:1px solid var(--line);vertical-align:-2px}
.tool-search{height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;
  font-size:13px;width:170px;background:#fff}
.tool-search:focus{outline:none;border-color:var(--brand)}
@media (max-width:700px){.tool-search{width:120px}.fchip{max-width:200px}}

/* ---------------------------------------------------------------- 单元格里的链接 */
.celllink{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.cell.has-link{padding-right:22px;position:relative}
.cell-open{position:absolute;right:2px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;line-height:16px;text-align:center;padding:0;
  border:1px solid var(--line);border-radius:4px;background:#fff;cursor:pointer;
  font-size:11px;color:var(--brand)}
.cell-open:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
.cell.editing .cell-open{display:none}

/* ---------------------------------------------------------------- 分组权限 */
.group-list{display:grid;gap:12px}
.group-card{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:#fff}
.group-flags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.group-members{margin-top:8px;font-size:13px;color:var(--ink-2)}
h4.sec{margin:18px 0 8px;font-size:13px;color:var(--ink-3);
  border-top:1px solid var(--line);padding-top:12px}
.check{display:flex;align-items:center;gap:7px;font-size:14px;padding:4px 0;cursor:pointer}
.check.small{font-size:13px;color:var(--ink-2)}
.sheet-perm{border:1px solid var(--line);border-radius:8px;max-height:200px;overflow:auto}
.sp-row{display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:5px 10px;border-bottom:1px solid var(--line-2)}
.sp-row:last-child{border-bottom:0}
.col-perm{border:1px solid var(--line);border-radius:8px;max-height:260px;overflow:auto;
  padding:8px 10px}
.cp-sheet{margin-bottom:10px}
.cp-sheet b{display:block;font-size:13px;margin-bottom:4px}
.cp-sheet .check{display:inline-flex;margin-right:14px}

/* 还能自己看几次明文的小眼睛 */
.cell.has-eye{padding-right:22px;position:relative}
.cell-eye{position:absolute;right:2px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;line-height:16px;text-align:center;padding:0;
  border:1px solid var(--line);border-radius:4px;background:#fff;cursor:pointer;font-size:11px}
.cell-eye:hover{background:var(--mask-soft);border-color:var(--mask)}
.cell.editing .cell-eye{display:none}

/* 录入宽限期：他自己刚填的脱敏内容，这段时间里还看得见、改得动。
   底下一条虚线提醒他"这一格待会儿就只剩掩码了"，右边一个沙漏点了立刻锁上。 */
.cell.grace{position:relative;padding-right:22px;
  box-shadow:inset 0 -2px 0 0 var(--warn, #E8A33D)}
.cell-grace{position:absolute;right:2px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;line-height:16px;text-align:center;padding:0;
  border:1px solid var(--warn, #E8A33D);border-radius:4px;background:#FFF8EC;
  cursor:pointer;font-size:11px}
.cell-grace:hover{background:#FFE9C7}
.cell.editing .cell-grace{display:none}

/* ---------------------------------------------------------------- 自动填充柄 */
.grid-wrap{position:relative}
#fillhandle{position:absolute;width:9px;height:9px;background:var(--brand);
  border:1px solid #fff;border-radius:2px;cursor:crosshair;z-index:5;
  box-shadow:0 0 0 1px var(--brand)}

/* ---------------------------------------------------------------- 表格缩放 */
.zoombox{display:inline-flex;align-items:center;gap:2px}
.zoombox .btn{min-width:30px;padding:0 6px}
#zoom-val{min-width:52px}
.grid-wrap{--zoom:1}
.grid-wrap .grid{font-size:calc(14px * var(--zoom))}
.grid-wrap .cell{padding:calc(6px * var(--zoom)) calc(9px * var(--zoom));
  min-height:calc(33px * var(--zoom))}
.grid-wrap table.grid th,.grid-wrap table.grid td{height:calc(33px * var(--zoom))}
.grid-wrap .rowno{font-size:calc(12px * var(--zoom))}
.grid-wrap .col-head{font-size:calc(13px * var(--zoom))}
.grid-wrap .cellimg{max-height:calc(60px * var(--zoom))}

/* ---------------------------------------------------------------- 看大图翻页 */
.img-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:10px}
.img-nav .hint{margin:0;text-align:center;flex:1}

/* 正在拖填充柄时，让它对鼠标"透明"，事件才能落到底下的格子上 */
body.filling #fillhandle{pointer-events:none}
body.filling .cell{cursor:crosshair}

/* ---------------------------------------------------------------- 查找与替换 */
.findbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;
  margin:0 0 8px;border:1px solid var(--line);border-radius:9px;background:#F4F8FF;font-size:13px}
.findbar.hidden{display:none}
.fd-label{font-weight:600;color:var(--brand);white-space:nowrap}
.findbar input[type=text]{height:30px;padding:0 9px;border:1px solid var(--line);
  border-radius:7px;font-size:13px;width:170px;background:#fff}
.findbar input[type=text]:focus{outline:none;border-color:var(--brand)}
.fd-count{color:var(--ink-3);min-width:88px}
.fd-rep{display:none;align-items:center;gap:6px}
.findbar.with-replace .fd-rep{display:inline-flex}
.cell.hit{background:#FFF3B0!important;box-shadow:inset 0 0 0 1px #E5B800}
.cell.hit-now{background:#FFD24D!important;box-shadow:inset 0 0 0 2px #B54708}

/* ---------------------------------------------------------------- 格式刷 */
#btn-brush.on{background:var(--brand);color:#fff;border-color:var(--brand)}
body.painting .cell{cursor:copy}
@media (max-width:700px){.findbar input[type=text]{width:120px}}

/* ---------------------------------------------------------------- 拖列宽 / 拖行高 */
.col-grip{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:4}
.col-grip:hover{background:var(--brand);opacity:.35}
.row-grip{position:absolute;left:0;right:0;bottom:-3px;height:7px;cursor:row-resize;z-index:4}
.row-grip:hover{background:var(--brand);opacity:.35}
table.grid td.rowno{position:sticky;left:0;overflow:visible}
body.col-sizing{cursor:col-resize;user-select:none}
body.row-sizing{cursor:row-resize;user-select:none}
body.col-sizing .col-grip,body.row-sizing .row-grip{background:var(--brand);opacity:.5}

/* ---------------------------------------------------------------- 日期筛选的树 */
.ftree{padding:2px 0}
.ftree-row{display:flex;align-items:center;gap:8px;padding:5px 10px;font-size:13px;
  cursor:pointer;user-select:none}
.ftree-row:hover{background:var(--line-2)}
.ftree-row .fv{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ftree-row .fc{color:var(--ink-3);font-size:11.5px}
.ftree-row.lv1{font-weight:600}
.ftree-row.lv2{padding-left:24px}
.ftree-row.lv3{padding-left:52px;color:var(--ink-2)}
.ftree-toggle{border:0;background:none;cursor:pointer;color:var(--ink-3);font-size:10px;
  width:16px;padding:0;line-height:1;transition:transform .12s}
.ftree-group.open>.ftree-row>.ftree-toggle{transform:rotate(90deg)}
.ftree-kids{display:none}
.ftree-group.open>.ftree-kids{display:block}
.fbar-count b{color:var(--ink)}

/* 「仅筛选此项」：鼠标停在哪一行才冒出来，平时不占地方 */
.f-only{opacity:0;pointer-events:none;border:0;background:var(--brand);color:#fff;
  border-radius:6px;padding:2px 9px;font-size:11.5px;cursor:pointer;white-space:nowrap;
  transition:opacity .1s}
.filter-item:hover .f-only,.ftree-row:hover .f-only{opacity:1;pointer-events:auto}
.f-only:hover{filter:brightness(1.08)}

/* ---------------------------------------------------------------- 十字高亮 / 查重 */
#crossbars{position:absolute;inset:0;pointer-events:none;z-index:1}
.grid-wrap{position:relative}
.crossbar{position:absolute;background:var(--cross,#1F6FEB);opacity:.10;pointer-events:none}
.crossbar.h{left:0}
.crossbar.v{top:0}
.btn.on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
/* 查重标出来的格子 */
.cell.dup{background:#FF9B9B!important;box-shadow:inset 0 0 0 1px var(--danger)}

/* ---------------------------------------------------------------- 子表格分页签 */
.sheettabs{display:flex;align-items:center;gap:4px;margin-top:8px;flex-wrap:wrap}
.sheettabs:empty{display:none}
.stab{border:1px solid var(--line);border-top:0;background:#fff;cursor:pointer;
  padding:5px 14px;font-size:13px;border-radius:0 0 8px 8px;color:var(--ink-2);
  display:inline-flex;align-items:center;gap:5px;max-width:220px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.stab:hover{background:var(--line-2)}
.stab.on{background:var(--brand-soft);color:var(--brand);font-weight:600;
  border-color:var(--brand);border-top:0}
.stab.add{padding:5px 11px;font-size:15px;line-height:1;color:var(--ink-3)}
.stab-root{font-size:10px;opacity:.7}
.stab-hint{font-size:11.5px;color:var(--ink-3);margin-left:6px}
@media (max-width:700px){.stab-hint{display:none}}

/* 大表在后台补行时的进度 */
.loadbar{font-size:12px;color:var(--warn);padding:0}
.loadbar.on{padding:6px 4px 0}
.vspacer td{padding:0;border:0}
.grid-wrap{overflow-anchor:none}

/* ---------------------------------------------------------------- 日报 */
.dl-today{display:flex;align-items:baseline;gap:22px;flex-wrap:wrap;margin:12px 0 4px;
  padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}
.dl-today .dl-day{font-size:13px;color:var(--ink-3)}
.dl-today .dl-n{font-size:26px;font-weight:700;line-height:1}
.dl-today .dl-n span{font-size:13px;font-weight:400;color:var(--ink-3);margin-left:4px}
.dl-today .dl-st{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
tr.dl-hit{background:#fafbfc}
td.up{color:#1b7a3d}
td.down{color:var(--danger)}
.dl-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:7px 0;border-bottom:1px solid var(--line-2)}
.dl-line:last-child{border-bottom:0}
.dl-line .dl-b{font-weight:600}

/* ---------------------------------------------------------------- 看大图（铺满屏幕）
   订单截图是长图，缩在 560px 的小弹窗里根本看不清，所以单独做一层看图器。 */
.lightbox{position:fixed;inset:0;z-index:80;background:rgba(12,14,18,.92);
  display:flex;flex-direction:column;align-items:center;justify-content:center}
.lb-top{position:absolute;top:0;left:0;right:0;height:46px;display:flex;align-items:center;
  justify-content:space-between;padding:0 14px;color:#e9edf2;font-size:13px;
  background:linear-gradient(rgba(0,0,0,.45),transparent)}
.lb-cap{opacity:.9}
.lb-x{border:0;background:rgba(255,255,255,.12);color:#fff;width:30px;height:30px;
  border-radius:8px;cursor:pointer;font-size:15px}
.lb-x:hover{background:rgba(255,255,255,.24)}
.lb-stage{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;
  overflow:hidden}
.lb-stage.grab{cursor:grab}
.lb-stage.grab:active{cursor:grabbing}
#lb-img{max-width:none;transform-origin:center center;user-select:none;-webkit-user-drag:none;
  background:#fff;box-shadow:0 10px 40px rgba(0,0,0,.5)}
#lb-img.fit{max-width:calc(100vw - 120px);max-height:calc(100vh - 130px)}
.lb-arrow{position:absolute;top:50%;transform:translateY(-50%);border:0;cursor:pointer;
  width:46px;height:72px;background:rgba(255,255,255,.12);color:#fff;font-size:30px;line-height:1;
  border-radius:10px}
.lb-arrow:hover{background:rgba(255,255,255,.26)}
.lb-arrow.left{left:12px}
.lb-arrow.right{right:12px}
.lb-bar{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;
  align-items:center;gap:8px;background:rgba(28,33,40,.92);padding:8px 12px;border-radius:12px;
  box-shadow:0 8px 30px rgba(0,0,0,.45)}
.lb-bar .btn{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#e9edf2}
.lb-bar .btn:hover{background:rgba(255,255,255,.2)}
.lb-bar .btn.danger{color:#ffb4b4;border-color:rgba(255,120,120,.35)}
.lb-sep{width:1px;height:18px;background:rgba(255,255,255,.2)}
#lb-fit{min-width:84px}

/* ---------------------------------------------------------------- 复制成图片的预览 */
.snap-box{background:#f4f5f7;border:1px solid var(--line);border-radius:8px;padding:10px;
  max-height:52vh;overflow:auto;text-align:center}
.snap-box img{max-width:100%;background:#fff;box-shadow:0 2px 10px rgba(16,24,40,.12)}

/* ---------------------------------------------------------------- 链接悬浮卡
   鼠标停在挂了链接的格子上飘出来：完整地址 + 复制 / 修改 / 取消。 */
/* 卡片本身不挡鼠标（pointer-events:none），只有里面的地址和按钮挡。
   不然它飘在下一行上面，想点那一行得先把它躲开——很烦。
   子元素照样能响应 hover，事件也照样冒泡上来，所以停在按钮上卡片不会消失。 */
.linkcard{position:fixed;z-index:70;display:flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 10px;
  box-shadow:0 8px 28px rgba(16,24,40,.18);font-size:12.5px;max-width:min(520px,92vw);
  pointer-events:none}
.linkcard > *{pointer-events:auto}
.linkcard .lc-ico{color:var(--brand)}
.linkcard .lc-url{color:var(--brand);text-decoration:none;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:330px}
.linkcard .lc-url:hover{text-decoration:underline}
.linkcard .lc-btn{border:0;background:none;cursor:pointer;color:var(--ink-2);
  width:24px;height:24px;border-radius:6px;font-size:13px;flex:none}
.linkcard .lc-btn:hover{background:var(--line-2);color:var(--ink)}

/* 日报里「每个人下了多少单」那一块：天 / 周 / 月 的切换 + 一人一列的表 */
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.seg-b{border:0;background:#fff;color:var(--ink-2);cursor:pointer;padding:5px 12px;
  font-size:12.5px;border-right:1px solid var(--line)}
.seg-b:last-child{border-right:0}
.seg-b:hover{background:#fafbfc}
.seg-b.on{background:var(--brand);color:#fff}
.pp-table th,.pp-table td{text-align:center;white-space:nowrap}
.pp-table th:first-child,.pp-table td:first-child{text-align:left}
.pp-table td b{font-size:14px;color:var(--ink)}
.pp-table td i{display:block;font-style:normal;font-size:11px;color:var(--ink-3);margin-top:1px}
.pp-table td.dim{color:var(--line)}

/* 自检结果那张小表：出问题时给人看的，行距松一点，好截图 */
table.selfcheck{width:100%;border-collapse:collapse;font-size:13px}
table.selfcheck td{padding:6px 8px;border-bottom:1px solid var(--line,#e6e8eb)}
table.selfcheck td:first-child{color:var(--muted,#6b7280);white-space:nowrap}
table.selfcheck td:last-child{text-align:right}

/* 子表格页签上的删除叉：平时淡，鼠标停上去才明显 */
.stab-x{margin-left:6px;opacity:.35;font-size:11px;padding:0 2px;border-radius:3px}
.stab:hover .stab-x{opacity:.75}
.stab-x:hover{opacity:1;background:var(--danger,#d64545);color:#fff}

/* 「填充」按钮上的小色块：这一下会刷成什么颜色，一眼看见 */
.bg-sw{display:inline-block;width:14px;height:14px;margin-left:6px;vertical-align:-2px;
  border:1px solid rgba(0,0,0,.25);border-radius:3px;background:#fff}
#btn-color-pick{padding:4px 6px;margin-left:-4px}

/* 「加行 / 加列」那个二选一的小切换 */
.seg{display:flex;gap:0;margin-bottom:12px}
.seg-btn{flex:1;padding:7px 10px;border:1px solid var(--line,#e6e8eb);background:#fff;
  cursor:pointer;font-size:13px}
.seg-btn:first-child{border-radius:6px 0 0 6px}
.seg-btn:last-child{border-radius:0 6px 6px 0;border-left:0}
.seg-btn.on{background:var(--brand,#1F6FEB);color:#fff;border-color:var(--brand,#1F6FEB)}

/* ⌘ 多选：先挑好的那几片衬色浅一点，正在划的那一片保持原样，好分清 */
.sb-hint{opacity:.7}

/* 按人按列设脱敏待遇：一行一列，右边一个下拉 */
.uc-row{display:flex;align-items:center;gap:10px;padding:6px 0;
  border-bottom:1px solid var(--line,#eef0f2)}
.uc-name{flex:1;font-size:13px}
.uc-sel{min-width:190px;padding:5px 8px;font-size:13px}

/* 页签配色。没选中的那几页直接填色；当前这一页保持白底、只在下面描一条它的色，
   不然选中的那一页被涂满，反倒看不出在哪儿（金山文档也是这么处理的）。 */
.stab.tinted{color:#1a1a1a}
.stab.tinted:hover{filter:brightness(.96)}
.stab.on.tinted{background:#fff;font-weight:600}
/* 色板里当前用着的那个色加个圈 */
.color-dot.on{outline:2px solid var(--brand,#1F6FEB);outline-offset:1px}

/* 收卡概览 */
.ck-block{padding:10px 0;border-top:1px solid var(--line,#eef0f2)}
.ck-block:first-of-type{border-top:0;padding-top:0}
.ck-name{font-weight:600;margin-bottom:8px}
.ck-nums{display:flex;gap:22px;flex-wrap:wrap}
.ck-n{display:flex;flex-direction:column}
.ck-n b{font-size:20px;line-height:1.2}
.ck-n span{font-size:12px;color:var(--muted,#6b7280)}
.ck-ok{margin-top:8px;font-size:13px;color:#1A7F5A}
.ck-bad{margin-top:8px;font-size:13px;color:#C62828}
.ck-badline{display:block;margin-top:3px;padding-left:16px;font-size:12px}
.ck-y{margin-top:8px;font-size:12px;color:var(--muted,#6b7280)}
.ck-red{color:#C62828}

/* 收卡概览 / 设备成本里的明细表。以前 .tbl 没定义过，靠浏览器默认样式顶着，
   设备成本这块一天一张表、列又多，不给它像样的行距和右对齐就没法看。 */
.tbl{width:100%;border-collapse:collapse;font-size:13px;margin-top:8px}
.tbl th{text-align:left;padding:7px 10px;border-bottom:2px solid var(--line,#e6e8eb);
  color:var(--ink-2);font-weight:600;white-space:nowrap}
.tbl td{padding:7px 10px;border-bottom:1px solid var(--line,#e6e8eb);vertical-align:top}
.tbl tbody tr:hover{background:#fafbfc}
.tbl td.dim{color:var(--ink-3,#9aa4ad)}
/* 金额和台数一律右对齐——一列数字左对齐，位数一多就对不齐，看着很累 */
.dv-tbl th:not(:first-child),.dv-tbl td:not(:first-child){text-align:right}
.dv-tbl td:first-child{white-space:nowrap}

/* 「明显偏高偏低」这类提示：数能算出来，只是值得看一眼，
   不该和"数对不上"用同一个红——真出事的那几条会被淹掉 */
.tag.info{background:#E8F0FE;color:#1A56C4}

/* 设备成本：底色选择器。让他直接看着颜色勾，不用记 #92D050 这种东西 */
.dv-bgs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.dv-bg{display:flex;align-items:center;gap:6px;padding:5px 9px;border-radius:7px;
  border:1px solid var(--line,#e6e8eb);font-size:12px;cursor:pointer}
.dv-bg i{width:18px;height:18px;border-radius:4px;border:1px solid rgba(0,0,0,.12)}
.dv-bg em{color:var(--ink-3,#9aa4ad);font-style:normal}
.dv-bg.none{opacity:.55}
/* 状态小标签，直接用他表里那个底色，报表和表格长得一样 */
.dv-chip{display:inline-block;padding:1px 8px;border-radius:5px;font-size:12px;
  background:var(--line-2);border:1px solid rgba(0,0,0,.08)}
/* 「进行中」是他一进页面最想看的，给点重量 */
.stat.hi{background:var(--brand-soft,#EAF2FF)}
.dv-live{color:var(--brand,#1F6FEB)}

/* 「现在手上还有几台什么机器」：一眼扫过去就知道，所以做成胶囊不做成表格 */
.dv-stock{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.dv-pill{display:inline-flex;align-items:baseline;gap:5px;padding:5px 11px;
  border-radius:20px;background:var(--brand-soft,#EAF2FF);color:var(--ink,#1a1d21);
  font-size:13px;white-space:nowrap}
.dv-pill b{font-size:16px;color:var(--brand,#1F6FEB)}
.dv-pill i{font-style:normal;font-size:11.5px;color:var(--ink-3,#9aa4ad)}

/* 底色快捷筛选始终可见，也支持触屏与键盘操作。 */
.filter-item [data-cf-only]{opacity:1;pointer-events:auto}

.cell.wrap.editing{height:var(--cell-height,33px);min-height:0;overflow:auto}
.tab-dragging{opacity:.45}
.tab-drop{outline:2px solid var(--brand);outline-offset:-2px}
.sheet-main{height:100dvh;min-height:0;overflow:hidden}
.sheet-main>.topbar,.sheet-main>.tabbar{flex-shrink:0}
.sheet-page{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:8px}
.sheet-page>.grid-wrap{flex:1;min-height:0;max-height:none}
.sheet-page>.sheet-toolbar,.sheet-page>.sheettabs,.sheet-page>.statusbar,.sheet-page>#filterbar,.sheet-page>#findbar,.sheet-page>.loadbar{flex-shrink:0}
.sheet-page>.statusbar{position:static;margin-top:4px;box-shadow:none}

/* Group permissions: collapse by document and retain controls while searching. */
.gp-list{border:1px solid var(--line);border-radius:8px;max-height:360px;overflow:auto}
.gp-document{border-bottom:1px solid var(--line)}
.gp-document:last-child{border-bottom:0}
.gp-document>summary,.gp-column-sheet>summary{cursor:pointer;padding:12px}
.gp-document>summary .hint,.gp-column-sheet>summary .hint{margin-left:10px}
.gp-document .sp-row{flex-wrap:wrap}
.gp-worksheets{margin:0 12px 12px 24px;border-left:2px solid var(--line)}
.gp-worksheet{padding:4px 8px}
.gp-first{padding:8px 0}
.gp-status{padding:0 0 6px;margin:0}
.gp-column-sheet{margin:0 12px 8px 24px;border:1px solid var(--line);border-radius:6px}
.gp-column-sheet .cp-sheet{padding:8px 12px;margin:0}
.gp-other{margin-top:20px;padding-top:12px;border-top:1px solid var(--line)}
.gp-other>summary{cursor:pointer;font-weight:600}
.gp-list [hidden]{display:none!important}
.modal:has(#gd-doc-search){width:min(840px,calc(100vw - 32px))}
.gp-identity{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.gp-help{margin-bottom:12px}
.gp-help>summary{cursor:pointer;font-size:13px}
@media(max-width:600px){.gp-identity{grid-template-columns:1fr;gap:0}}
/* Document title and worksheet titles have distinct rename controls. */
.worksheet-entry{position:relative}
.worksheet-entry .worksheet-card{height:100%;padding-bottom:62px}
.worksheet-rename{position:absolute;right:18px;bottom:14px}

.search-worksheet {margin:7px 0 0 32px;font-size:13px}
.permission-worksheet {padding:10px 0;border-top:1px solid var(--line,#e5e7eb)}
.permission-worksheet summary {cursor:pointer;padding:6px 0}
.permission-worksheet table {margin-top:8px}
.conflict-item {padding:12px;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:12px}
.source-path {padding:10px;background:#f5f8fc;border-radius:6px}

/* v62 筛选面板：搜索、选择与即时预览集中呈现 */
.filter-modes{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.filter-search-row{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.filter-search-row input{flex:1;min-width:0}
.filter-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.filter-add{display:flex;gap:8px;align-items:center;font-size:13px;margin:8px 0;cursor:pointer}
.filter-preview{margin:10px 0;font-size:13px;font-weight:600;color:var(--brand)}
.filter-help{margin:10px 0 0;line-height:1.6}
.fchip-edit{border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:0;text-align:left}
.fchip-edit:hover{text-decoration:underline}
.filter-item:focus-within .f-only,.ftree-row:focus-within .f-only{opacity:1;pointer-events:auto}
@media(pointer:coarse){.filter-item .f-only,.ftree-row .f-only{opacity:1;pointer-events:auto}}

/* v63 — a shared, quiet visual language. Grid cell geometry and stored styles
   are deliberately untouched: virtualization measures the original row height. */
:root{
  --bg:#f4f6fa;--panel:#fff;--ink:#202d43;--ink-2:#506078;--ink-3:#6b7b91;
  --line:#dfe6ef;--line-2:#edf1f6;
  --brand:#2563eb;--brand-ink:#fff;--brand-soft:#edf3ff;
  --ok:#167451;--ok-soft:#edf8f2;--warn:#956214;--warn-soft:#fff8e9;
  --danger:#ba3544;--danger-soft:#fff0f1;--mask:#8a6d3b;--mask-soft:#fdf6e3;
  --radius:14px;--shadow:0 2px 8px rgba(30,49,80,.035);
}
.ui-symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.brand-mark{display:block;width:38px;height:38px;flex-shrink:0}
/* Navigation is a persistent workspace, with calm icons instead of mixed emoji. */
.sidebar{width:220px;flex-basis:220px;background:#fbfcfe}
.brand{padding:23px 18px 24px;gap:11px;line-height:1.35}
.brand span{font-size:14px;letter-spacing:.01em}
.brand small{display:block;font-size:11px;font-weight:400;color:var(--ink-3);margin-top:5px}
.brand .brand-mark{width:34px;height:34px}
#nav{padding:0 12px 14px;gap:4px;scrollbar-width:thin}
.nav-section{padding:20px 12px 8px;font-size:11px;color:#79879a;font-weight:500;letter-spacing:.08em}
.nav-section:first-child{padding-top:0}
.nav-item{position:relative;min-height:38px;padding:9px 12px;border-radius:9px;gap:11px;font-size:13px;line-height:1.5;transition:background .12s,color .12s}
.nav-item:hover{background:#f0f3f9;color:var(--ink)}
.nav-item.active{background:#eaf1ff;color:#2458bf;font-weight:600}
.nav-item.active::after{content:'';position:absolute;right:10px;width:5px;height:5px;border-radius:50%;background:var(--brand)}
.nav-item:has(.dot).active::after{display:none}
.nav-icon{width:18px;height:18px;display:inline-flex;flex-shrink:0;color:#738198}
.nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.nav-item.active .nav-icon{color:var(--brand)}
.nav-item .dot{font-size:10px;line-height:18px;min-width:18px;background:var(--danger)}
.sidebar-foot{margin:0 12px 10px;padding:14px 0 0;gap:3px}
.who{padding:0 10px 8px;gap:7px;font-weight:500;flex-wrap:wrap}
.sidebar-foot .btn{text-align:left;justify-content:flex-start;padding-left:10px;color:var(--ink-2)}
.who-ver{padding-left:10px;font-size:10px}
/* Shell */
.topbar{height:60px;padding:0 24px;background:#fff;border-bottom-color:var(--line-2)}
.crumb{font-size:14px;gap:8px;line-height:1.4}
.crumb .sub{font-size:11px}
.crumb-document{font-size:13px;margin-left:0}
.crumb-divider{margin:0 3px}
.topbar-right{gap:10px;flex-shrink:0}
.savestate{font-size:11px}
.savestate.ok{background:#f1f8f4;color:#48715e;padding:4px 10px}
.conn{font-size:10px}
.page{padding:26px 28px}
.tabbar{top:60px;background:#fff;min-height:42px;padding:0 18px;gap:5px;border-bottom-color:var(--line)}
.tab{padding:0 10px 0 13px;margin-top:6px;font-size:12px;border-radius:9px 9px 0 0}
.tab.active{color:#2458bf;background:#f4f6fa;border-color:var(--line);box-shadow:0 1px 0 #f4f6fa}
.tab .tclose{font-size:13px;min-width:20px;min-height:20px}
/* Readable hierarchy across documents, reports, and administration. */
.overview-heading,.document-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:24px}
.overview-heading h1,.document-heading h1{font-size:26px;letter-spacing:-.03em;line-height:1.35;font-weight:650;margin:5px 0 8px;color:var(--ink)}
.document-kicker{font-size:11px;color:#69809c;letter-spacing:.06em}
.overview-heading .hint,.document-heading .hint{margin:0;color:var(--ink-3);font-size:13px}
.card{padding:22px 24px;margin-bottom:20px;border-radius:14px;border-color:#e2e8f1;box-shadow:var(--shadow)}
.card h2{font-size:16px;font-weight:600;line-height:1.5;margin-bottom:7px;letter-spacing:-.01em}
.card .hint{color:var(--ink-3);line-height:1.7;font-size:12px;margin-bottom:16px}
h4.sec{font-size:12px;font-weight:600;color:var(--ink-2);padding-top:18px;margin-top:24px;letter-spacing:.025em}
.stat-grid{gap:14px;margin-bottom:22px}
.stat{padding:20px 20px 17px;border-radius:13px;border-color:#e2e8f1;background:#fff;box-shadow:var(--shadow)}
.stat .n{font-size:27px;font-weight:650;letter-spacing:-.035em;line-height:1.2;font-variant-numeric:tabular-nums;margin-bottom:9px}
.stat .l{font-size:12px;color:var(--ink-3);line-height:1.5}
.stat.alert{border-color:#f0dce0}
.stat.hi{background:#f0f5ff;border-color:#dbe6fc}
.row{gap:10px}
/* Consistent, keyboard-visible controls. No global contenteditable styling. */
.btn{padding:8px 14px;min-height:34px;border-radius:8px;font-size:12.5px;font-weight:500;line-height:1.5;border-color:#dbe3ee;background:#fff;box-shadow:0 1px 2px rgba(32,45,67,.025);transition:background .12s,border-color .12s,color .12s}
.btn:hover{background:#f7f9fc;border-color:#c8d4e5}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 2px 3px rgba(37,99,235,.12)}
.btn.primary:hover{background:#1d54d0;border-color:#1d54d0;filter:none}
.btn.small{padding:5px 10px;min-height:29px;font-size:12px}
.btn.ghost{box-shadow:none;background:transparent;border-color:transparent}
.btn.ghost:hover{background:#f0f4fa;border-color:transparent}
.btn.danger{color:var(--danger);border-color:#f0cfd4}
.btn:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
.icon-btn{border-radius:6px;min-width:25px;min-height:25px;display:inline-grid;place-items:center}
.icon-btn:hover{background:#f0f4fa;color:var(--ink)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=month],input[type=search],select,textarea{
  padding:8px 11px;border:1px solid #dbe3ee;border-radius:8px;background:#fff;max-width:100%;font-size:13px;line-height:1.5;
}
input::placeholder,textarea::placeholder{color:#7b8a9e}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(37,99,235,.10);border-color:#6594f3}
input[type=checkbox],input[type=radio]{accent-color:var(--brand);flex-shrink:0}
label.field{gap:7px;font-size:12px;color:var(--ink-2);margin-bottom:16px}
label.field>input:not([type=checkbox]):not([type=radio]),label.field>select,label.field>textarea{width:100%}
.check{font-size:13px;line-height:1.6}
.check.small{font-size:12px}
.form-error{font-size:12px}
.badge{font-size:10px;padding:2px 7px;line-height:1.6}
.tag{font-size:11px;border-radius:6px;padding:3px 8px;line-height:1.5;font-weight:400}
.tag.info{background:#edf3ff;color:#315fb1}
.empty{padding:42px 18px;font-size:13px;line-height:1.8;color:var(--ink-3)}
/* Tables outside the editor can breathe; cell geometry inside the editor stays. */
table.grid-table{font-size:12.5px;line-height:1.65;font-variant-numeric:tabular-nums}
table.grid-table th{font-size:11.5px;font-weight:600;padding:12px 14px;background:#f7f9fc;color:#687b94;border-bottom-color:#e2e8f1}
table.grid-table td{padding:12px 14px;border-bottom-color:#edf1f6}
table.grid-table tbody tr:last-child td{border-bottom:0}
table.grid-table tr:hover td{background:#f7faff}
.tbl{font-size:12.5px;font-variant-numeric:tabular-nums;line-height:1.65}
.tbl th{font-size:11.5px;color:#687b94;padding:11px 12px;border-bottom:1px solid var(--line);background:#f7f9fc}
.tbl td{padding:11px 12px;border-bottom-color:#edf1f6}
.tbl tbody tr:hover{background:#f7faff}
.mono{font-size:12px}
.detail-json{background:#f7f9fc;border-radius:8px;padding:12px;line-height:1.7}
.notice{padding:12px 15px;line-height:1.7;border-radius:10px;font-size:12px}
.notice.info{background:#f1f6ff;color:#305ba1;border-color:#dbe7fd}
.notice.warn{border-color:#f1e2c4}
/* Document library */
.document-controls{background:#fff;padding:14px 16px;border:1px solid #e2e8f1;border-radius:12px;gap:10px;margin-bottom:16px}
.document-controls input[type=search]{min-width:0;flex:1;max-width:440px;width:310px}
.document-controls select{font-size:12px;padding:8px 12px}
.document-controls .check{margin-left:auto;font-size:12px;white-space:nowrap}
.document-library{padding:0;box-shadow:var(--shadow);border-radius:13px}
.document-library .grid-table th{padding:13px 22px}
.document-library .grid-table td{padding:19px 22px;vertical-align:middle}
.document-title{gap:13px}
.document-title a{font-size:14px;font-weight:500}
.document-title .hint{font-size:11.5px;margin:4px 0 0}
.document-icon{font-size:0;width:39px;height:42px;border-radius:10px;color:#407bc9;background:#edf4ff;flex-shrink:0}
.document-icon::before{content:'';width:22px;height:22px;background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' d='M3 7a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zM3 11h18'/%3E%3C/svg%3E") center/contain no-repeat;
}
.document-library [data-favorite]{color:#76869c;margin-right:5px}
.search-worksheet{margin:6px 0 0;font-size:12px}
.search-worksheet a{font-size:12px;color:#4c6c9b}
.worksheet-directory{gap:16px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.worksheet-card{padding:22px;border-color:#e2e8f1;border-radius:13px;box-shadow:var(--shadow);min-height:132px;gap:13px;transition:border-color .12s,box-shadow .12s}
.worksheet-card:hover{border-color:#a5bff1;box-shadow:0 5px 18px rgba(40,68,114,.07)}
.worksheet-card b{font-size:14px;font-weight:600}
.worksheet-card p{color:var(--ink-3);font-size:11.5px;margin-top:7px}
.worksheet-icon{border:0;width:40px;height:44px;border-radius:10px;font-size:23px;line-height:1;background:#eef6f3;color:#34836a}
.worksheet-open{font-size:11px;color:#7188a6}
.worksheet-entry .worksheet-card{padding-bottom:56px}
.worksheet-rename{bottom:14px;right:18px;box-shadow:none}
.document-options summary,.document-permission-group summary{font-size:12px;line-height:1.7}
.document-permission-group{padding:18px 0}
/* Editing surfaces: compact toolbar, quiet headers, distinct active worksheets. */
.sheet-page{padding:14px 16px 8px}
.sheet-toolbar{background:#fff;border:1px solid var(--line);border-radius:11px;padding:8px 10px;gap:5px;margin-bottom:10px}
.sheet-toolbar .btn{padding:5px 9px;font-size:12px;min-height:29px;box-shadow:none}
.sheet-toolbar .toolbar-menu>summary{background:#f7f9fc;border-color:transparent}
.sheet-toolbar .tool-sep{background:#e0e6ef;margin:0 5px;height:20px}
.sheet-toolbar .tool-search{padding:5px 10px;height:29px;font-size:12px;width:170px}
.sheet-toolbar .zoombox{margin-left:auto;white-space:nowrap}
.sheet-toolbar .zoombox .btn{min-width:26px;padding:4px 6px}
.grid-wrap{border-radius:10px;box-shadow:none;border-color:#d9e2ee}
table.grid thead th{background:#f6f8fc;color:#5c6f89;border-bottom-color:#dbe4f0}
table.grid thead th.col-head:hover{background:#edf3fd}
table.grid td.rowno,table.grid th.rowno{background:#f6f8fc;color:#7a8aa0}
th.col-head .cletter{color:#8b9bb1}
.sheettabs{gap:5px;margin-top:8px;min-height:34px;align-items:center}
.sheettabs .directory{font-size:11px;padding:5px 9px;color:#657995;margin-right:5px;border-right:1px solid var(--line)}
.stab{padding:5px 12px;font-size:12px;border:1px solid #dfe6ef;border-radius:7px;background:#fff;min-height:29px}
.stab.on{color:#2458bf;background:#edf3ff;border:1px solid #cedefb;box-shadow:inset 0 -2px 0 var(--brand)}
.stab.on.tinted{box-shadow:none}
.stab.tinted{border-color:transparent}
.stab.add{font-size:12px;border-color:transparent;background:transparent}
.stab-x{font-size:11px}
.statusbar{font-size:11px;min-height:29px;padding:6px 11px;border-radius:8px;color:#6b7f98}
.statusbar .sb-hint{opacity:1;font-size:11px}
.sheet-page>.statusbar{margin-top:5px;background:#f9fbfd;border-color:#e2e8f1}
.filterbar{border-color:#d6e4fb;background:#f0f5ff;padding:8px 11px;border-radius:10px;font-size:12px;gap:7px}
.fbar-label{color:#3865aa;font-size:12px}
.fbar-count{color:#667d9c;font-size:11px}
.fchip{font-size:11.5px;padding:3px 6px 3px 9px;border-color:#dbe5f6;border-radius:7px}
.fchip.warn{background:var(--warn-soft);color:var(--warn)}
.fchip-edit:hover{text-decoration:none;color:var(--brand)}
.findbar{background:#f1f6ff;border-color:#d6e4fb;border-radius:10px}
.loadbar.on{padding:7px 10px;background:var(--warn-soft);border-radius:8px;margin-bottom:6px}
/* Dialogs, popovers, and state messages share the same surfaces. */
.modal{border:1px solid #e2e8f1;border-radius:16px;box-shadow:0 24px 70px rgba(25,43,73,.20);max-height:88dvh}
.modal-mask{background:rgba(25,39,62,.32)}
.modal header{padding:19px 22px;border-bottom-color:var(--line-2)}
.modal header h3{font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1.5}
.modal header .icon-btn{width:28px;height:28px;font-size:14px}
.modal-body{padding:22px;line-height:1.7}
.modal-body .hint{color:var(--ink-3);font-size:12px;line-height:1.75}
.modal footer{padding:15px 22px;border-top-color:var(--line-2);background:#fbfcfe;border-radius:0 0 16px 16px;gap:9px;flex-wrap:wrap}
.modal footer .btn{min-width:68px}
.popover,.toolbar-panel,.document-menu>div{border-radius:11px;border-color:#dce5f0;box-shadow:0 12px 32px rgba(31,51,85,.13);padding:7px}
.pop-item{padding:8px 11px;font-size:12px;line-height:1.55;border-radius:7px}
.pop-item:hover{background:#eef4ff;color:#2458bf}
.toolbar-panel .btn{background:transparent;border-color:transparent;font-size:12px;min-height:32px}
.toolbar-panel .btn:hover{background:#eef4ff}
.pop-label,.color-sec{font-size:11px;color:#71829a}
.filter-modes{background:#f2f5fa;border-radius:9px;padding:4px;gap:4px;width:fit-content;margin-bottom:18px}
.filter-modes .btn{border:0;background:transparent;color:#61758f;min-height:29px;box-shadow:none}
.filter-modes .btn.primary{background:#fff;color:var(--brand);box-shadow:0 1px 5px rgba(33,53,90,.09)}
.filter-modes .btn:hover{background:#fff}
.filter-search-row{margin-bottom:11px;gap:8px}
.filter-tools{gap:6px;margin-bottom:13px}
.filter-tools .btn{background:#f9fbfe;box-shadow:none}
.filter-add{font-size:12px;gap:8px;line-height:1.7}
.filter-preview{font-size:12px;background:#f0f5ff;border-radius:7px;padding:9px 11px;margin:13px 0;color:#2c5daa;line-height:1.5}
.filter-list{border-radius:10px;border-color:#e0e7f0}
.filter-item,.ftree-row{font-size:12px;padding-top:9px;padding-bottom:9px;gap:9px}
.filter-item:hover,.ftree-row:hover{background:#f3f7ff}
.filter-item .fc,.ftree-row .fc{font-size:11px;color:#7586a0;font-variant-numeric:tabular-nums}
.f-only{background:#eaf1ff;color:#2458bf;line-height:1.5;padding:3px 8px;font-size:11px}
.f-only:hover{filter:none;background:#dce9ff}
.toast{background:#26374f;padding:12px 17px;border-radius:11px;line-height:1.7;font-size:12px;box-shadow:0 8px 25px rgba(25,44,77,.18)}
.toast.ok{background:#23674f}
.toast.err{background:#a43645}
/* Permission and account settings use readable groups instead of dense boxes. */
.group-list{gap:16px}
.group-card{padding:20px;border-radius:12px;border-color:#e1e7f0}
.group-card h3{font-size:16px;font-weight:600;line-height:1.5}
.group-flags{gap:7px;margin-top:16px}
.group-members{font-size:12px;margin-top:13px;line-height:1.7}
.gp-list,.sheet-perm,.col-perm{border-radius:10px;border-color:#e0e7f0}
.gp-document>summary,.gp-column-sheet>summary{padding:14px;color:var(--ink-2);font-size:12px}
.gp-document>summary:hover,.gp-column-sheet>summary:hover{background:#f7f9fc}
.gp-document[open]>summary{background:#f2f6fe;color:#355f9d}
.gp-document .tag{margin-left:10px}
.gp-identity{gap:18px}
.sp-row{padding:9px 12px;gap:12px}
.gp-status{font-size:11px}
.gp-first{font-size:12px;color:var(--ink-2)}
.gp-worksheets{border-left-color:#d6e2f4;margin-bottom:14px}
.gp-help{background:#f7f9fc;border:1px solid var(--line-2);padding:10px 12px;border-radius:9px}
.gp-help>summary{font-size:12px;color:#647892}
.gp-help .hint{margin-bottom:8px}
.permission-worksheet{padding:12px 0}
.permission-worksheet summary{font-size:13px;color:#456389}
.conflict-item{border-color:#e1e7f0;padding:16px;border-radius:10px}
.source-path{background:#f3f7fd;border:1px solid #e5edf8;border-radius:9px;padding:12px;color:#547197;font-size:12px}
.seg{border-color:#dfe6ef;border-radius:8px}
.seg-b{padding:7px 13px;font-size:12px}
.seg-b.on,.seg-btn.on{background:var(--brand);color:#fff}
.dl-today{background:#f5f8ff;border-color:#e0e8f8;padding:18px;border-radius:11px}
.ck-name{font-size:13px;color:var(--ink);margin-bottom:12px}
.ck-block{padding:17px 0}
.ck-nums{gap:26px}
.ck-n b{font-size:22px;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ck-n span{font-size:11px;color:var(--ink-3);margin-top:6px}
.ck-ok,.ck-bad{font-size:12px;line-height:1.7}
.ck-y{font-size:11px;color:var(--ink-3)}
/* Login: local graphics only; authentication and every form field are retained. */
.login-wrap{padding:48px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:70px;
 background:radial-gradient(ellipse at 15% 8%,#e9f0ff,transparent 55%),#f7f9fd;}
.login-intro{width:100%;max-width:520px;min-height:570px;display:flex;flex-direction:column;justify-content:space-between;justify-self:end;padding:20px 0}
.login-intro-brand{display:flex;gap:12px;align-items:center;font-size:16px;font-weight:600;color:#344966}
.login-intro-copy{padding:60px 0}
.login-eyebrow{display:inline-block;font-size:12px;letter-spacing:.09em;color:#50719e;line-height:1.8}
.login-intro h2{font-size:clamp(30px,3.3vw,44px);font-weight:650;line-height:1.55;letter-spacing:-.04em;color:#1e3556;margin:18px 0}
.login-intro-copy>p{font-size:14px;line-height:1.9;color:#69809b;margin:0}
.login-features{display:flex;flex-wrap:wrap;gap:18px;margin-top:30px;font-size:11px;color:#617997}
.login-features span{display:flex;align-items:center;gap:7px}
.login-features span::before{content:'';width:5px;height:5px;border-radius:50%;background:#77a5e2}
.login-intro-foot{color:#8292a8;font-size:11px;margin:0}
.login-card{max-width:410px;padding:34px 36px;border:1px solid #e2e8f2;border-radius:18px;gap:16px;box-shadow:0 15px 55px rgba(33,62,108,.065);justify-self:start}
.login-logo{display:flex;justify-content:flex-start;margin-bottom:6px}
.login-logo .brand-mark{width:42px;height:42px}
.login-card h1{font-size:20px;line-height:1.5;text-align:left;margin:0;letter-spacing:-.02em}
.login-sub{text-align:left;font-size:11.5px;line-height:1.8;margin:0 0 8px;color:#74859d}
.login-card label{gap:8px;font-size:12px;color:#59708c;line-height:1.5}
.login-card input{padding:11px 12px;line-height:1.6;border-radius:8px;font-size:13px}
.login-card .btn.primary{padding:11px 14px;font-size:13px;border-radius:8px}
.login-notice{padding:14px;border-radius:10px;font-size:12px;line-height:1.7}
/* Responsive layout avoids forcing large-screen decoration onto small screens. */
@media(max-width:1100px){
 .page{padding:22px}.sheet-page{padding:12px 14px 8px}
 .sidebar{width:200px;flex-basis:200px}.brand{padding-left:14px;padding-right:14px;gap:8px}
 .login-wrap{gap:40px;padding:36px}.login-intro{max-width:430px}
 .login-card{padding:30px}
 .document-library .grid-table th,.document-library .grid-table td{padding-left:16px;padding-right:16px}
}
@media(max-width:820px){
 .sidebar{width:100%;flex-basis:auto;background:#fbfcfe;padding:8px 10px;gap:6px}
 .brand{padding:6px 8px;gap:8px}.brand .brand-mark{width:28px;height:28px}.brand small{display:none}
 #nav{flex:1;gap:4px;padding:4px;flex-direction:row}.nav-section{display:none}
 .nav-item{white-space:nowrap;min-width:max-content;min-height:34px;padding:7px 10px;font-size:12px;gap:7px}
 .nav-item.active::after{display:none}.nav-icon,.nav-icon svg{width:16px;height:16px}
 .sidebar-foot{margin:0;padding:0 4px;border:0;flex-direction:row;align-items:center;flex-wrap:wrap}
 .sidebar-foot .btn{width:auto;padding:5px 8px}.who{padding:0 6px;font-size:12px}.who-ver{padding:0 6px}
 .topbar{height:52px;padding:0 16px}.tabbar{position:static;padding:0 10px}
 .page{padding:18px 16px}.sheet-page{padding:10px 12px 8px}
 .card{padding:18px;margin-bottom:16px}.stat{padding:16px}.stat .n{font-size:24px}
 .document-heading h1,.overview-heading h1{font-size:23px}.worksheet-directory{grid-template-columns:repeat(auto-fill,minmax(255px,1fr))}
 .document-controls{padding:12px}.document-controls input[type=search]{width:100%;max-width:none;flex-basis:100%}
 .sheet-toolbar .zoombox{margin-left:0}
 .login-wrap{display:grid;grid-template-columns:1fr;gap:0;padding:28px 18px;background:linear-gradient(140deg,#edf3ff,#f7f9fd)}
 .login-intro{display:none}.login-card{justify-self:center;max-width:410px;padding:30px}
}
@media(max-width:560px){
 .topbar{padding:0 12px}.crumb{font-size:12px}.crumb .sub{display:none}.topbar-right{gap:4px}
 .page{padding:14px 12px}.sheet-page{padding:8px}
 .overview-heading,.document-heading{gap:12px;margin-bottom:18px}
 .document-heading>.row{width:100%;gap:7px}.document-heading .btn{padding:7px 10px;font-size:11px}
 .worksheet-directory{grid-template-columns:1fr}
 .document-controls{gap:8px}.document-controls select{flex:1;min-width:0}.document-controls .check{margin-left:0;width:100%}
 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat .n{font-size:23px}.stat .l{font-size:11px}
 .modal header{padding:16px}.modal-body{padding:16px}.modal footer{padding:12px 16px}.modal footer .btn{min-width:58px}
 .filter-modes{margin-bottom:14px}.group-card{padding:16px}
 .login-card{padding:28px 24px}.login-card h1{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
 .btn,.nav-item,.worksheet-card,.ftree-toggle,.f-only{transition:none}.toast{animation:none}
}
@media(forced-colors:active){
 .nav-icon svg{stroke:ButtonText}.nav-item.active{border:1px solid Highlight}
 .nav-item.active .nav-icon svg{stroke:Highlight}.document-icon::before{background:ButtonText}
 button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:Highlight}
}
/* Fit common laptop toolbars without adding a lonely second-row action. */
.sheet-toolbar .btn{padding-left:7px;padding-right:7px}
.sheet-toolbar .tool-search{width:140px}
.sheet-toolbar .zoombox .btn{min-width:23px;padding-left:4px;padding-right:4px}
.sheet-toolbar #zoom-val{min-width:44px}
.sheet-toolbar>.spacer{flex:0}
@media(max-width:560px){.sheet-toolbar .tool-search{width:120px}}
/* Many worksheet tabs stay in one scrollable strip, leaving room to edit. */
.sheet-page>.sheettabs{flex-wrap:nowrap;overflow-x:auto;min-height:40px;padding-bottom:4px;scrollbar-width:thin}
.sheet-page>.sheettabs .stab{flex-shrink:0}
.app:has(.sheet-main){height:100dvh;min-height:0}
.app:has(.sheet-main)>.sidebar{flex-shrink:0}
.sheet-main{height:auto;flex:1;min-height:0}
/* Keep short state labels readable; wide management tables scroll in their card. */
.grid-table .tag,.grid-table .badge,.tbl .tag,.tbl .badge{white-space:nowrap}
.grid-table th,.tbl th{white-space:nowrap}
.card:has(>.grid-table),.card:has(>.tbl){overflow-x:auto}
@media(max-width:820px){#nav{min-width:0}}
.card:has(#user-trash) .grid-table{min-width:940px}
.card:has(#user-trash) .grid-table td:nth-child(-n+3){white-space:nowrap}
.document-library .grid-table{min-width:660px}
.document-library .grid-table td:nth-child(-n+3){white-space:nowrap}
.grid-table td:first-child,.tbl td:first-child{white-space:nowrap}
.card:has(#user-trash) .grid-table th,.card:has(#user-trash) .grid-table td{padding-left:9px;padding-right:9px}
.card:has(#user-trash) .grid-table .btn.small{padding-left:6px;padding-right:6px}

/* v64 interaction feedback: overlays never participate in cell layout/content. */
.cell.has-img{height:var(--cell-height,33px);min-height:0;overflow:hidden;display:block}
.grid-wrap .cellimg{max-height:calc(var(--cell-height,33px) - 8px * var(--zoom,1));object-fit:contain}
#peer-layer{position:absolute;inset:0;pointer-events:none;z-index:6}
#peer-layer .peer-tag{top:auto;left:auto;border-radius:4px;max-width:220px;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:16px;opacity:.95}
#presence{display:flex;gap:6px;overflow:auto;max-width:45vw;align-items:center}
.presence-member{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;color:var(--ink-2);padding:2px 5px;border-radius:5px;background:var(--line-2)}
.presence-member .avatar{width:20px;height:20px;line-height:20px;margin:0;font-size:11px}
.presence-member.is-editing{background:var(--brand-soft);color:var(--brand)}
.cell.dup{background:var(--dup-color,#FF9B9B)!important;box-shadow:inset 0 0 0 1px rgba(80,90,110,.35)}
@media(max-width:560px){#presence{max-width:32vw}.presence-member{max-width:120px}.presence-member>span:last-child{overflow:hidden;text-overflow:ellipsis}}

/* v65: one account color for avatar, name and cursor. Frames never enter cells. */
.grid-wrap .cell.sel-anchor,.grid-wrap .cell.editing{box-shadow:inset 0 0 0 2px var(--self-peer,var(--brand))!important}
.grid-wrap #fillhandle{background:var(--self-peer,var(--brand));box-shadow:0 0 0 1px var(--self-peer,var(--brand))}
#peer-layer{z-index:7}
.peer-frame{position:absolute;box-sizing:border-box;border:2px solid var(--peer-color);border-radius:1px;pointer-events:none}
#peer-layer .peer-tag{opacity:1;max-width:260px;border:1px solid #fff}
.presence-member{border-bottom:2px solid var(--member-color);color:var(--member-color)}
.presence-member.is-editing{background:#fff;color:var(--member-color)}
.presence-member.is-self{font-weight:600}
/* v66 spreadsheet workspace: familiar tools, a single finder and personal frozen columns. */
.sheet-toolbar.ux-toolbar{display:block;margin-bottom:6px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:10px}
.ux-quick{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line-2);padding-bottom:7px;margin-bottom:4px}
.ux-quick .zoombox{margin-left:auto}
.ux-tabs{display:flex;gap:4px;align-items:center;padding:2px 0 5px}
.ux-tabs .btn{border-color:transparent;background:transparent;padding:4px 13px;color:var(--ink-2)}
.ux-tabs .btn.on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.ux-panel{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:34px}
.ux-panel[hidden]{display:none}
.ux-panel .btn{padding:5px 9px;border-color:var(--line-2)}
.ux-messages{margin-top:6px;display:flex;gap:6px;flex-wrap:wrap}
.ux-editbar{display:flex;gap:5px;align-items:flex-start;padding:6px 8px;background:#fff;border:1px solid var(--line);border-radius:8px;margin:6px 0}
.ux-editbar #ux-address{width:126px;flex-shrink:0;font-family:ui-monospace,monospace;font-size:12px;height:30px}
.ux-fx{font-style:italic;font-family:Georgia,serif;color:var(--ink-3);padding:5px 4px}
.ux-editbar textarea{flex:1;min-width:60px;height:30px;min-height:30px;resize:none;padding:5px 8px;white-space:pre;font-size:13px;line-height:19px}
.ux-editbar.expanded textarea{height:100px;white-space:pre-wrap}
.ux-editbar textarea:read-only{background:#fafbfc;color:var(--ink-2)}
.ux-find{padding:6px 8px;gap:6px;margin-bottom:6px;flex-wrap:wrap}
.ux-find #fd-kw{min-width:140px;width:240px;flex:1;max-width:380px}
.ux-find #ux-find-options{order:10}
.ux-find.ux-find-compact label,.ux-find.ux-find-compact #ux-find-scope,.ux-find.ux-find-compact #fd-toggle,.ux-find.ux-find-compact .fd-rep{display:none}
.ux-find .fd-rep{flex-wrap:wrap;gap:6px}
.ux-find select{font-size:12px}
.ux-find.ux-find-compact{display:none}
.ux-quick #fd-kw{flex:1;min-width:160px;max-width:300px;width:190px;height:30px;padding:5px 9px;border:1px solid var(--line);border-radius:6px;background:#fafbfc;font-size:12px}
.ux-quick #fd-count{font-size:11px;color:var(--ink-3);white-space:nowrap}
.ux-quick:not(.ux-has-find) #fd-prev,.ux-quick:not(.ux-has-find) #fd-next,.ux-quick:not(.ux-has-find) #fd-count{display:none}
.ux-context{min-width:206px;max-height:calc(100vh - 24px);overflow:auto;padding:5px;border-radius:8px;box-shadow:0 8px 28px rgba(15,23,42,.15)}
.ux-context .pop-item{font-size:12.5px;padding:7px 10px}
.ux-context .pop-item:focus{outline:0;background:var(--brand-soft);color:var(--brand)}
table.grid td.ux-frozen,table.grid th.ux-frozen{position:sticky;left:calc(var(--frozen-left) * var(--zoom,1));background:#fff;z-index:3}
table.grid th.ux-frozen{z-index:8;background:#fafbfc}
table.grid th.rowno{z-index:9}
table.grid td.rowno{z-index:4}
table.grid .ux-freeze-edge{border-right:2px solid #94a3b8;box-shadow:3px 0 5px rgba(15,23,42,.06)}
#shell.ux-focus>aside{display:none}
#shell.ux-focus>.main{width:100%;margin-left:0}
@media(max-width:760px){.ux-quick .zoombox{margin-left:0}.ux-editbar #ux-address{width:90px}.ux-panel{gap:4px}.ux-toolbar .btn{font-size:12px}.ux-fx{display:none}}
/* v67 supplementary tools retain the compact v66 grid viewport. */
#p67-dropdown{max-width:180px;min-width:100px;padding:6px;border:1px solid #dbe3ee;border-radius:8px;background:#fff;font-size:12px}
#p67-side{position:fixed;right:14px;top:66px;bottom:16px;width:min(390px,calc(100vw - 30px));z-index:35;border:1px solid #dbe3ee;border-radius:14px;background:#fff;box-shadow:0 12px 40px #243b531f;display:flex;flex-direction:column}
#p67-side>header{display:flex;justify-content:space-between;align-items:center;padding:14px;border-bottom:1px solid #edf1f6;gap:8px}
.p67-side-body{overflow:auto;padding:16px;flex:1;min-height:0}.p67-history{border-bottom:1px solid #edf1f6;padding:12px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.p67-history small{display:block;color:#7b8798;margin-bottom:7px}.p67-history button{margin-top:8px}.p67-old{color:#8793a3}.p67-list{max-height:45vh;overflow:auto;margin-top:12px}.p67-list>.row{padding:9px 0;border-bottom:1px solid #edf1f6}.presence-member[role=button]{cursor:pointer}.presence-member[role=button]:focus-visible{outline:2px solid var(--member-color);outline-offset:3px}

.p67-favorites{padding:8px 0 0;flex-wrap:wrap}.p67-favorites small{color:#8793a3;font-size:12px}#p67-collision{padding:6px 12px;margin:4px 0;font-size:12px}

/* v68: compact worksheet workspace; business cell geometry stays unchanged. */
.field.field-check{flex-direction:row;align-items:flex-start;gap:9px;min-width:0}
.field.field-check>input{width:16px;height:16px;flex:0 0 16px;margin:1px 0}
.field.field-check>span{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.6}
.sheet-main>.topbar{height:40px;min-height:40px;padding:0 14px}
.sheet-main>.tabbar{min-height:33px;top:40px;padding:0 10px}
.sheet-main>.tabbar .tab{margin-top:3px;padding-top:3px;padding-bottom:3px}
.sheet-page{padding:8px 12px 4px}
.sheet-page .sheet-toolbar.ux-toolbar{padding:3px 7px;margin-bottom:3px;border-radius:7px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 12px}
.sheet-page .ux-tabs{grid-column:1;grid-row:1;padding:0;gap:1px}
.sheet-page .ux-quick{grid-column:2;grid-row:1;flex-wrap:nowrap;min-width:0;gap:4px;border:0;margin:0;padding:0}
.sheet-page .ux-quick #fd-kw{min-width:90px;width:140px;max-width:240px;height:27px}
.sheet-page .ux-quick .zoombox{margin-left:auto;order:10}
.sheet-page .ux-panels{grid-column:1 / -1;border-top:1px solid var(--line-2);padding-top:3px}
.sheet-page .ux-panel{min-height:28px;gap:4px}
.sheet-page .ux-toolbar .btn{min-height:26px;padding:3px 7px;font-size:12px;white-space:nowrap}
.sheet-page .ux-tabs .btn{padding:3px 10px}
.sheet-page .ux-messages{grid-column:1 / -1;margin:0;gap:4px}
.sheet-page .ux-messages .tag{padding:1px 6px;font-size:11px}
.sheet-page .filterbar{margin:0 0 3px;padding:3px 7px;min-height:28px;border-radius:6px;gap:5px}
.sheet-page .filterbar .btn{min-height:24px;padding:2px 6px}
.sheet-page .ux-editbar{flex-shrink:0;margin:0 0 3px;padding:2px 5px;border-radius:5px;gap:4px}
.sheet-page .ux-editbar #ux-address{width:100px;height:27px;padding:3px 7px}
.sheet-page .ux-editbar textarea{height:27px;min-height:27px;padding:3px 7px;line-height:19px}
.sheet-page .ux-editbar.expanded textarea{height:100px}
.sheet-page .ux-editbar .btn{min-height:27px;padding:2px 6px}
.sheet-page .ux-fx{padding:3px}
.sheet-page .sheettabs{padding-top:3px;padding-bottom:3px;margin-top:2px;min-height:31px}
.sheet-page .statusbar{padding:2px 7px;min-height:23px;margin-top:2px;font-size:11px}
.sheet-page .ux-panels[hidden]{display:none}
.sheet-page .p67-favorites{padding:0;gap:4px;flex-wrap:nowrap;max-width:220px;overflow-x:auto;min-width:0;scrollbar-width:thin}
.sheet-page .p67-favorites .btn{max-width:140px;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
.sheet-page #p68-collapse{margin-left:auto;color:var(--ink-2)}
.worksheet-copy{margin:6px 0 0 6px}
@media(max-width:1200px){
 .sheet-page .ux-quick{flex-wrap:wrap}
 .sheet-page .sheet-toolbar.ux-toolbar{grid-template-columns:1fr}
 .sheet-page .ux-tabs{grid-row:1;grid-column:1}.sheet-page .ux-quick{grid-row:2;grid-column:1}
 .sheet-page .ux-tabs #p68-collapse{margin-left:auto}
 .sheet-page .p67-favorites{max-width:160px}
}
@media(max-width:650px){.sheet-page{padding:5px 5px 3px}.sheet-main>.topbar{height:40px;padding:0 8px}.sheet-page .ux-quick #fd-kw{min-width:90px}.sheet-page .p67-favorites{display:none}}

/* v69: visible per-worksheet copy/delete, secondary management in one menu. */
.worksheet-actions{position:absolute;left:16px;right:16px;bottom:14px;display:flex;align-items:center;gap:6px}
.worksheet-actions .worksheet-rename{position:static;box-shadow:none}
.worksheet-actions .document-menu{margin-left:auto}
.worksheet-actions .document-menu>div{top:auto;bottom:34px;display:grid;z-index:25}
.worksheet-actions .btn{white-space:nowrap}

/* Project filing is document metadata; it does not alter worksheet permissions. */
.project-layout{display:grid;grid-template-columns:202px minmax(0,1fr);gap:20px;align-items:start}
.project-sidebar{position:sticky;top:14px;background:#fff;border:1px solid #e5eaf2;border-radius:14px;padding:15px 10px;min-width:0}
.project-sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:0 5px 12px;gap:6px}
.project-sidebar-title .btn{padding:5px 7px;font-size:12px}
.project-item{display:flex;align-items:center;gap:9px;width:100%;border:0;background:transparent;color:#536077;padding:10px 11px;border-radius:8px;text-align:left;cursor:pointer;margin:2px 0;font:inherit;font-size:13px;min-height:40px}
.project-item:hover{background:#f5f7fc}.project-item.active{background:#eaf1ff;color:#225ae8;font-weight:600}
.project-item:focus-visible{outline:2px solid #5178e8;outline-offset:1px}
.project-dot{flex:none;width:14px;height:11px;border:1.5px solid currentColor;border-radius:2px;opacity:.8;position:relative}
.project-dot:before{content:'';position:absolute;left:0;top:-5px;width:6px;height:3px;border:1.5px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0}
.project-name{flex:1;overflow-wrap:anywhere;min-width:0}.project-count{font-size:12px;font-weight:400;flex:none;color:#8490a6}
.project-divider{height:1px;background:#edf0f6;margin:12px 6px}
.project-sidebar-hint{font-size:12px;line-height:1.7;padding:12px 6px 0;margin:12px 0 0;border-top:1px solid #edf0f6}
.project-no-items{padding:10px;font-size:12px;line-height:1.8}
.project-content{min-width:0}.project-scope{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:55px;margin-bottom:14px}
.project-scope>div:first-child{min-width:0}.project-scope h2{font-size:20px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere;letter-spacing:-.3px}.project-scope .hint{font-size:12px}
.project-controls{margin-bottom:14px;padding:12px!important;gap:9px!important;box-shadow:none!important}
.project-controls input[type=search]{flex:1 1 230px;width:230px;max-width:none;min-width:150px}
.project-controls .check{margin-left:0!important;white-space:nowrap;font-size:12px;color:#6a7790}
.project-controls select{font-size:12px;max-width:150px;padding:7px 25px 7px 9px}
.project-controls .project-search-scope{margin-right:auto}
.project-batch{display:flex;align-items:center;gap:10px;background:#edf3ff;border:1px solid #dbe7ff;border-radius:9px;margin-bottom:12px;padding:10px 14px;color:#2554c3;font-size:13px}
.project-batch[hidden]{display:none}
.project-select{width:40px!important;min-width:40px;max-width:40px;text-align:center!important;padding-left:12px!important;padding-right:6px!important}
.project-select input[type=checkbox]{width:15px!important;height:15px!important;margin:0;vertical-align:middle;accent-color:#3165ee;cursor:pointer}
.project-content .document-library{padding:0;overflow:visible}
.project-content .document-library .grid-table{min-width:0;width:100%;table-layout:auto}
.project-content .document-library .grid-table th{font-size:12px;background:#f8faff;font-weight:500;color:#76849c;padding-top:13px;padding-bottom:13px}
.project-content .document-library .grid-table td{padding-top:17px;padding-bottom:17px;font-size:13px}
.project-content .document-library .grid-table td:nth-child(-n+3){white-space:normal}
.project-content .document-library .document-title b{font-size:14px;color:#263651;line-height:1.65;overflow-wrap:anywhere}
.project-content .document-library .document-title .hint{font-size:12px;max-width:290px;overflow-wrap:anywhere}
.project-content .document-library .document-icon{background:#edf3ff;color:#4f73db;border-radius:9px;padding:8px;font-size:0}
.project-content .document-library .grid-table tr.project-row-selected td{background:#f0f5ff}
.project-content .document-library .grid-table td:last-child{white-space:nowrap}
.project-row-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end}
.project-row-actions .document-menu>div{z-index:30;min-width:140px}
.project-tag{display:inline-block;max-width:160px;overflow-wrap:anywhere;background:#f2f5fa;border:1px solid #e7ecf5;color:#65748b;font-size:12px;line-height:1.6;padding:3px 9px;border-radius:6px}
.project-content .empty b{font-weight:500;font-size:15px}.project-content .empty .hint{font-size:13px;margin:10px 0 18px}
@media(max-width:1200px){.project-layout{grid-template-columns:175px minmax(0,1fr);gap:14px}.project-controls{flex-wrap:wrap}.project-controls input[type=search]{flex-basis:230px}.project-content .document-library .grid-table th,.project-content .document-library .grid-table td{padding-left:9px;padding-right:9px}.project-content .document-library .document-title{gap:9px}.project-content .document-library .document-icon{padding:5px}.project-row-actions{gap:3px}.project-content .document-library .grid-table td:nth-last-child(2){font-size:11px}}
@media(max-width:850px){.project-layout{display:block}.project-sidebar{position:static;margin-bottom:16px;padding:10px}.project-sidebar-title{padding-bottom:5px}.project-sidebar nav{display:flex;flex-wrap:wrap;gap:5px}.project-item{width:auto;max-width:100%;margin:0;min-height:35px;padding:8px 10px}.project-divider,.project-sidebar-hint{display:none}.project-content .document-library{overflow:auto}.project-content .document-library .grid-table{min-width:650px}.project-scope{flex-wrap:wrap}.project-controls .check{width:auto!important}.project-controls input[type=search]{width:100%;flex-basis:100%}}
