#scheme-info{
  --scheme-line:#dbe6ed;
  --scheme-soft:#f8fbfd;
  --scheme-text:#20394e;
  --scheme-muted:#748796;
  --scheme-blue:#176da8;
  --scheme-folder:#f3bf46;
  --scheme-folder-edge:#c89422;
}
#scheme-info>.a4-page{
  width:min(100%,920px);
  max-width:920px;
  min-height:0;
  margin:0 auto 26px;
  padding:28px 30px 34px;
  border:1px solid #dce6ed;
  border-radius:8px;
  background:#fff;
  box-shadow:0 10px 28px rgba(29,70,98,.07);
}
#scheme-info .scheme-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:11px;
  border-bottom:1px solid #d9e5ed;
}
#scheme-info .scheme-heading h2{
  margin:0;
  color:#1d3040;
  font-size:18px;
  line-height:1.35;
  font-weight:700;
}
#scheme-info #topBtnGroupFA{display:flex;align-items:center;justify-content:flex-end}
#scheme-info .hidden{display:none!important}

#scheme-info .dir-bar-opt{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 13px;
  padding:9px 10px;
  border:1px solid var(--scheme-line);
  border-radius:7px;
  background:var(--scheme-soft);
}
#scheme-info .breadcrumb-opt{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  flex:1 1 auto;
  flex-wrap:wrap;
  color:#627989;
  font-size:12px;
  line-height:1.45;
}
#scheme-info .breadcrumb-opt button{
  flex:0 0 auto;
  padding:0;
  border:0;
  background:none;
  color:var(--scheme-blue);
  font:inherit;
  cursor:pointer;
}
#scheme-info .breadcrumb-opt .sep{color:#9cadb8}
#scheme-info .scheme-directory-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
}
#scheme-info .scheme-directory-actions .btn{
  height:28px;
  min-height:28px;
  padding:0 9px;
  border-radius:5px;
  font-size:11px;
  line-height:1;
}

#scheme-info #folderGridViewFA.folder-grid-v4,
#scheme-info .scheme-file-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
#scheme-info .folder-card-v4,
#scheme-info .scheme-file-card{
  position:relative;
  min-width:0;
  min-height:72px;
  border:1px solid #d9e3e9;
  border-radius:7px;
  background:#fff;
}
#scheme-info .folder-card-v4:hover,
#scheme-info .scheme-file-card:hover{
  border-color:#bfd2df;
  background:#fbfdfe;
}
#scheme-info .folder-open-v4,
#scheme-info .scheme-file-open{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  width:100%;
  min-height:70px;
  gap:10px;
  padding:10px 44px 10px 12px;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
#scheme-info .folder-icon-v4{
  position:relative;
  display:block;
  width:40px;
  height:29px;
  margin-top:4px;
  border:1.5px solid var(--scheme-folder-edge);
  border-radius:4px;
  background:var(--scheme-folder);
}
#scheme-info .folder-icon-v4::before{
  content:"";
  position:absolute;
  left:3px;
  top:-7px;
  width:17px;
  height:7px;
  border:1.5px solid var(--scheme-folder-edge);
  border-bottom:0;
  border-radius:4px 4px 0 0;
  background:var(--scheme-folder);
}
#scheme-info .scheme-file-icon{
  display:grid;
  width:30px;
  height:36px;
  place-items:center;
  border:1px solid #cbd8e0;
  border-radius:4px;
  background:#f8fbfd;
  color:#5f7787;
  font-size:9px;
}
#scheme-info .folder-copy-v4,
#scheme-info .scheme-file-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
}
#scheme-info .folder-copy-v4 strong,
#scheme-info .scheme-file-copy strong{
  overflow:hidden;
  color:#31485a;
  font-size:13px;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#scheme-info .folder-copy-v4 small,
#scheme-info .scheme-file-copy small{
  color:#7f909d;
  font-size:10.5px;
}
#scheme-info .folder-menu,
#scheme-info .scheme-file-menu{
  position:absolute;
  z-index:20;
  top:9px;
  right:7px;
}
#scheme-info .folder-menu-button,
#scheme-info .scheme-file-menu-button{
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  padding:0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#6f7f8b;
  font-size:18px;
  cursor:pointer;
}
#scheme-info .folder-menu-button:hover,
#scheme-info .folder-menu.is-open .folder-menu-button,
#scheme-info .scheme-file-menu-button:hover,
#scheme-info .scheme-file-menu.is-open .scheme-file-menu-button{background:#eef3f6}
#scheme-info .folder-menu-panel,
#scheme-info .scheme-file-menu-panel{
  position:absolute;
  top:31px;
  right:0;
  display:none;
  width:104px;
  padding:5px;
  border:1px solid #d9e4eb;
  border-radius:7px;
  background:#fff;
  box-shadow:0 10px 26px rgba(34,72,98,.16);
}
#scheme-info .folder-menu.is-open .folder-menu-panel,
#scheme-info .scheme-file-menu.is-open .scheme-file-menu-panel{display:grid;gap:3px}
#scheme-info .folder-menu-panel button,
#scheme-info .scheme-file-menu-panel button{
  width:100%;
  height:29px;
  padding:0 9px;
  border:0;
  border-radius:5px;
  background:#fff;
  color:#405a6b;
  text-align:left;
  font-size:11px;
  cursor:pointer;
}
#scheme-info .folder-menu-panel button:hover,
#scheme-info .scheme-file-menu-panel button:hover{background:#f4f8fb}
#scheme-info .folder-menu-panel button.danger,
#scheme-info .scheme-file-menu-panel button.danger{color:#b43d3d}
#scheme-info .folder-empty-v4{
  grid-column:1/-1;
  padding:26px 12px;
  color:#7c8e9b;
  font-size:12px;
  text-align:center;
}

#scheme-info .editor-view{display:none}
#scheme-info .scheme-editor-heading{
  margin-bottom:10px;
  color:#293548;
  font-size:13px;
  font-weight:600;
}
#scheme-info .scheme-reader-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#scheme-info .scheme-reader-main{min-width:0}
#scheme-info .scheme-docx-preview{min-height:540px;max-width:100%;overflow:auto;padding:24px;background:#fff;border:1px solid #d6dce4;border-radius:6px;color:#111;font:14px/1.7 "SimSun","宋体",serif}
#scheme-info .scheme-docx-preview table{border-collapse:collapse;table-layout:auto;min-width:640px;max-width:none;margin:12px 0}
#scheme-info .scheme-docx-preview th,#scheme-info .scheme-docx-preview td{border:1px solid #8d98a3;padding:6px 10px;min-width:72px;white-space:normal;word-break:normal;overflow-wrap:break-word;vertical-align:top}
#scheme-info .scheme-docx-preview p{margin:0 0 10px;white-space:normal}
#scheme-info .scheme-docx-preview h1,#scheme-info .scheme-docx-preview h2,#scheme-info .scheme-docx-preview h3{margin:18px 0 8px}
#scheme-info .scheme-reader-main>.hidden,#scheme-info .editor-layout>.hidden{display:none}
#scheme-info .editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  min-height:540px;
  gap:14px;
}
#scheme-info .editor-layout:has(.ai-assist-panel.hidden){grid-template-columns:minmax(0,1fr)}
#scheme-info .text-canvas{
  width:100%;
  min-height:540px;
  padding:18px;
  resize:vertical;
  border:1px solid #d6dce4;
  border-radius:6px;
  background:#fff;
  color:#111;
  font-family:"SimSun","宋体","STSong",serif;
  font-size:14px;
  line-height:1.8;
}
#scheme-info .ai-assist-panel{
  padding:14px;
  border:1px solid #dbe2e9;
  border-radius:7px;
  background:#f8fafc;
}
#scheme-info .ai-panel-title{margin-bottom:10px;color:#243246;font-size:14px;font-weight:650}
#scheme-info .ai-log-box{color:#647184;font-size:12px;line-height:1.65}

/* 施工文件 / 监理文件顶部工具条：与已确认测试页一致 */
#scheme-info:not(.sl-editor-active)>.sl-document-toolbar{display:none!important}
#scheme-info>.sl-document-toolbar{
  width:min(100%,920px)!important;
  min-height:50px!important;
  margin:0 auto 14px!important;
  padding:8px 10px!important;
  gap:5px!important;
  flex-wrap:nowrap!important;
  border:1px solid var(--scheme-line)!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(29,70,98,.05)!important;
}
#scheme-info>.sl-document-toolbar .sl-doc-title{
  min-width:0!important;
  margin:0 auto 0 2px!important;
  color:#1767c8!important;
  font-size:13px!important;
  font-weight:700!important;
}
#scheme-info>.sl-document-toolbar button{
  min-height:27px!important;
  height:27px!important;
  padding:0 8px!important;
  border-radius:5px!important;
  font-size:10.5px!important;
  line-height:1!important;
}
#scheme-info>.sl-document-toolbar button[data-action="back"]{display:none!important}
#scheme-info>.sl-document-toolbar button[data-action="save"]{min-width:0!important}
#scheme-info>.sl-document-toolbar .sl-save-state{display:none!important}
#scheme-info>.sl-document-toolbar .sl-toolbar-more-menu{
  top:32px!important;
  width:110px!important;
  padding:5px!important;
  border-radius:7px!important;
}
#scheme-info>.sl-document-toolbar .sl-toolbar-more-menu button{
  width:100%!important;
  height:29px!important;
  padding:0 9px!important;
  text-align:left!important;
  font-size:11px!important;
}

@media(max-width:768px){
  #scheme-info>.a4-page{
    width:100%;
    margin:0;
    padding:12px;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  #scheme-info .scheme-heading{margin-bottom:10px;padding-bottom:9px}
  #scheme-info .scheme-heading h2{font-size:15px}
  #scheme-info .dir-bar-opt{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:8px;
  }
  #scheme-info .breadcrumb-opt{
    min-width:0;
    flex:1 1 auto;
    flex-wrap:nowrap;
    overflow:hidden;
    font-size:11px;
  }
  #scheme-info .breadcrumb-opt button,
  #scheme-info .breadcrumb-opt span{flex:0 0 auto;white-space:nowrap}
  #scheme-info .breadcrumb-opt button:last-child{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #scheme-info .scheme-directory-actions{
    flex:0 0 auto;
    gap:5px;
    flex-wrap:nowrap;
  }
  #scheme-info .scheme-directory-actions .btn{
    height:28px;
    min-height:28px;
    padding:0 8px;
    font-size:11px;
    white-space:nowrap;
  }
  #scheme-info #folderGridViewFA.folder-grid-v4,
  #scheme-info .scheme-file-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  #scheme-info .folder-card-v4,
  #scheme-info .scheme-file-card{min-height:64px}
  #scheme-info .folder-open-v4,
  #scheme-info .scheme-file-open{
    grid-template-columns:34px minmax(0,1fr);
    min-height:62px;
    gap:7px;
    padding:8px 34px 8px 9px;
  }
  #scheme-info .folder-icon-v4{width:34px;height:25px;margin-top:3px}
  #scheme-info .folder-icon-v4::before{width:15px;height:6px;top:-6px}
  #scheme-info .scheme-file-icon{width:27px;height:33px;font-size:8px}
  #scheme-info .folder-copy-v4 strong,
  #scheme-info .scheme-file-copy strong{font-size:11px}
  #scheme-info .folder-copy-v4 small,
  #scheme-info .scheme-file-copy small{font-size:10px}
  #scheme-info .folder-menu,
  #scheme-info .scheme-file-menu{top:6px;right:5px}
  #scheme-info .folder-menu-button,
  #scheme-info .scheme-file-menu-button{width:32px;height:36px;font-size:17px}
  /* 手机端菜单面板加固：防止内核字体放大把文字挤成竖排、防止半透明 */
  #scheme-info .folder-menu-panel,
  #scheme-info .scheme-file-menu-panel{min-width:118px;background:#fff;box-shadow:0 12px 30px rgba(34,72,98,.24);z-index:60}
  #scheme-info .folder-menu-panel button,
  #scheme-info .scheme-file-menu-panel button{height:36px;font-size:12px;white-space:nowrap;text-align:left}
  #scheme-info .editor-layout{grid-template-columns:1fr;min-height:0}
  #scheme-info .text-canvas{min-height:520px}
  #scheme-info>.sl-document-toolbar{
    width:100%!important;
    min-height:46px!important;
    padding:7px 8px!important;
  }
  #scheme-info>.sl-document-toolbar .sl-doc-title{max-width:120px!important;font-size:12px!important}
  #scheme-info>.sl-document-toolbar button{height:26px!important;min-height:26px!important;padding:0 7px!important;font-size:10px!important}
  #scheme-info>.sl-document-toolbar .sl-toolbar-more-menu{position:absolute!important;right:0!important;top:30px!important;width:106px!important}
}

#scheme-info .sv-reg-open{border:0;padding:0;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit;white-space:normal;overflow-wrap:anywhere}
#scheme-info .sv-reg-open:disabled{cursor:default;opacity:1}
#scheme-info .sv-reg-actions{flex-wrap:wrap}
#scheme-info .sv-reg-editor{max-width:1100px;margin:16px auto}
#scheme-info .sv-reg-editor input{max-width:100%;width:28em;padding:8px;border:1px solid #cbd5e1;border-radius:6px;box-sizing:border-box}
#scheme-info .sv-reg-editor .sv-detail-editor-head{flex-wrap:wrap;gap:12px}
#scheme-info #svRegSaveState{min-height:1.5em;color:#64748b}
@media(max-width:768px){#scheme-info .sv-reg-editor input{width:100%}#scheme-info .sv-reg-editor .sv-detail-editor-head>label{width:100%}}

#scheme-info .sv-reg-actions [hidden]{display:none!important}

/* Keep the approved two-column layout above the legacy global mobile rules. */
@media(max-width:768px){
  #scheme-info #folderGridViewFA.folder-grid-opt.folder-grid-v4,
  #scheme-info #fileCardViewFA.scheme-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
