/* R9.7.2.2.6 - Project Home design parity. Scoped to empty editor only. */
#s2dEditorEmptyWorkspace{box-sizing:border-box;padding:28px 24px!important;overflow:auto;text-align:center}
#s2dEditorEmptyWorkspace .s2d-editor-empty-icon{font-size:34px;line-height:1;color:#20a8d2;margin:0 auto 13px}
#s2dEditorEmptyWorkspace h2{margin:0 0 8px;font-weight:800;color:#153b5b;font-size:clamp(24px,2vw,32px)}
#s2dEditorEmptyWorkspace .s2d-home-subtitle{font-size:13px;color:#246688;font-weight:700;letter-spacing:.02em}
#s2dEditorEmptyWorkspace p{max-width:650px;margin:13px auto 12px;color:#355875;font-size:14px;line-height:1.55}
#s2dEditorEmptyWorkspace .s2d-dashboard-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px!important;max-width:750px;width:100%;margin:24px auto 12px!important;align-items:stretch!important}
#s2dEditorEmptyWorkspace .s2d-dashboard-actions .s2d-home-tile{box-sizing:border-box;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;width:100%;min-height:138px;height:100%;padding:17px 12px!important;margin:0!important;text-align:center;border:1px solid #3d8eb7!important;border-radius:13px!important;background:linear-gradient(150deg,#123954,#1a5274)!important;color:#f5fdff!important;box-shadow:0 6px 18px #14395524;cursor:pointer;transition:transform .14s,border-color .14s,box-shadow .14s}
#s2dEditorEmptyWorkspace .s2d-dashboard-actions .s2d-home-tile:hover{transform:translateY(-3px);border-color:#51d6e9!important;box-shadow:0 8px 22px #0b607b55}
#s2dEditorEmptyWorkspace .s2d-dashboard-actions .s2d-home-tile:focus-visible{outline:3px solid #ffbb52;outline-offset:3px}
#s2dEditorEmptyWorkspace .s2d-home-tile>i{display:grid;place-items:center;font-size:24px;width:46px;height:46px;border-radius:11px;background:#0e819f;color:#e8feff}
#s2dEditorEmptyWorkspace .s2d-home-tile>strong{font-size:14px;line-height:1.3;font-weight:750}
#s2dEditorEmptyWorkspace .s2d-home-tile>small{font-size:11px;line-height:1.4;color:#b6e3f0;white-space:normal;font-weight:500}
#s2dEditorEmptyWorkspace .s2d-home-secondary{font-size:12px;color:#4b7791;margin-top:18px;max-width:740px;margin-inline:auto}
#s2dEditorEmptyWorkspace .s2d-home-secondary i{color:#2c85aa;margin-right:5px}
#projectExplorer .s2d-dashboard-sidebar-entry{box-sizing:border-box;min-height:44px;justify-content:flex-start;font-family:inherit}
@media(max-width:740px){#s2dEditorEmptyWorkspace .s2d-dashboard-actions{grid-template-columns:1fr;max-width:330px}#s2dEditorEmptyWorkspace .s2d-dashboard-actions .s2d-home-tile{min-height:95px}#s2dEditorEmptyWorkspace{padding:20px 12px!important}}

/* Consistent project navigation buttons: no unequal paddings/width */
#projectExplorer{box-sizing:border-box}
#projectExplorer :is(#s2dProjectWorkspaceEntry,#r970ProjectEntry){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;box-sizing:border-box!important;width:calc(100% - 24px)!important;min-width:0!important;min-height:44px!important;margin:7px 12px!important;padding:10px 12px!important;border-radius:9px!important;font-size:12px!important;text-align:left!important;line-height:1.35!important}
#projectExplorer :is(#s2dProjectWorkspaceEntry,#r970ProjectEntry) i{flex:0 0 17px;text-align:center}
#projectExplorer #s2dProjectWorkspaceEntry{background:#123f5e;color:#e6f5fe;border:1px solid #376889}
#projectExplorer #s2dProjectWorkspaceEntry:hover{background:#1b5878;border-color:#65caff}
#projectExplorer :is(.project-explorer-nav,.project-action-links) button{box-sizing:border-box}
#projectExplorer .project-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#projectExplorer .project-quick-actions button{box-sizing:border-box;width:100%;min-height:46px;margin:0}

/* HF25: Project Home is a compact, single-scroll landing view; UML Editor is unchanged. */
html.s2d-hf25-project-home #hf13-uml-diagram-system{display:none!important}
html.s2d-hf25-project-home .layout>.work.s2d-editor-no-diagram,
html.s2d-hf25-project-home #work.s2d-editor-no-diagram{overflow:hidden!important;overscroll-behavior:none!important}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace{
  inset:0!important;position:absolute!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:8px!important;
  padding:clamp(12px,2.1vh,24px) clamp(12px,2vw,24px)!important;
  scrollbar-width:thin!important;scrollbar-color:#9fbed3 transparent!important
}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace[hidden]{display:none!important}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace #hf14-workspace-system-title{
  order:0!important;flex:0 0 auto!important;margin:0 auto 5px!important;
  width:100%!important;max-width:780px!important;box-sizing:border-box!important;
  font-size:clamp(13px,1.15vw,17px)!important;line-height:1.4!important;
  padding:8px 14px!important;overflow-wrap:anywhere!important;
}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-editor-empty-icon{
  order:1!important;font-size:25px!important;margin:2px auto!important;flex:0 0 auto!important
}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace h2{
  order:2!important;font-size:clamp(21px,2vw,28px)!important;margin:0!important;line-height:1.2!important;flex:0 0 auto!important
}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-home-subtitle{order:3!important;font-size:12px!important;flex:0 0 auto!important}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace p{order:4!important;margin:3px auto 5px!important;max-width:690px!important;line-height:1.4!important;font-size:12px!important;flex:0 0 auto!important}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-dashboard-actions{
  order:5!important;max-width:650px!important;width:100%!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;margin:6px auto!important;align-items:stretch!important;flex:0 0 auto!important
}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-dashboard-actions .s2d-home-tile{
  min-height:96px!important;height:auto!important;padding:10px 8px!important;gap:5px!important;border-radius:11px!important
}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-home-tile>i{
  width:34px!important;height:34px!important;font-size:19px!important;border-radius:9px!important
}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-home-tile>strong{font-size:12.5px!important}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-home-tile>small{font-size:10.5px!important}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-home-secondary{
  order:6!important;flex:0 0 auto!important;margin:4px auto 0!important;font-size:10.5px!important
}
/* When available vertical space is short, place content at the top instead of clipping. */
@media (max-height:760px){
 html.s2d-hf25-project-home #s2dEditorEmptyWorkspace{justify-content:flex-start!important}
}
@media (max-width:750px){
 html.s2d-hf25-project-home #s2dEditorEmptyWorkspace{justify-content:flex-start!important}
 html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-dashboard-actions{grid-template-columns:1fr!important;max-width:370px!important}
 html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-dashboard-actions .s2d-home-tile{min-height:65px!important;flex-direction:row!important;text-align:left!important;justify-content:flex-start!important;gap:12px!important}
 html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-home-tile>small{display:none!important}
}

/* HF26 — Consistent Project Tools & separate Unified Process sidebar */
#projectExplorer .hf26-nav-section{margin:12px 9px 14px;padding:0 0 10px;border-bottom:1px solid #356079}
#projectExplorer .hf26-nav-heading{margin:0 4px 9px;color:#79dfff;font-size:11px;font-weight:800;letter-spacing:.09em;line-height:1.45}
#projectExplorer .hf26-nav-items{display:grid;grid-template-columns:1fr;gap:7px}
#projectExplorer .hf26-nav-items>.hf26-tool-entry,
#projectExplorer .hf26-nav-items>#r970ProjectEntry,
#projectExplorer .hf26-nav-items>#hf24LearningEntry{
  width:100%!important;min-height:44px!important;margin:0!important;padding:11px 12px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
  font-size:12px!important;text-align:left!important;border-radius:9px!important;box-sizing:border-box!important
}
#projectExplorer .hf26-nav-items button i{flex:0 0 17px;text-align:center;font-size:14px}
#projectExplorer #hf26-up-phases #hf14-up-phase-shortcuts{margin:0!important;padding:0!important;display:grid;gap:7px!important}
#projectExplorer #hf26-up-phases [data-hf14-phase]{margin:0!important;width:100%;min-height:44px}
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-dashboard-actions{
  max-width:900px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important
}
@media(max-width:950px){html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-dashboard-actions{max-width:560px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:530px){html.s2d-hf25-project-home #s2dEditorEmptyWorkspace .s2d-dashboard-actions{max-width:330px!important;grid-template-columns:1fr!important}}

/* HF27 — Move duplicated Project Tools from the sidebar to File menu */
#projectExplorer #hf26-project-tools{display:none!important}
#projectExplorer #hf26-up-phases{margin-top:16px!important}
.workshop-menus .hf27-menu-heading{font-size:11px;font-weight:800;letter-spacing:.07em;color:#8bdeff;padding:8px 10px 4px;border-top:1px solid rgba(130,173,206,.28);margin-top:6px}
.workshop-menus .hf27-file-action{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;text-align:left!important;min-height:38px!important}
.workshop-menus .hf27-file-action i{flex:0 0 18px;text-align:center}
.workshop-menus #hf27ToolsAdministration{margin-top:10px;border-color:#537a94}
.workshop-menus #hf27ToolsAdministration>summary{font-weight:700;color:#c2edff}
.workshop-menus .hf27-duplicate-usage{display:none!important}

/* HF75-R2.8.2: blank project landing state, scoped to Project Home only. */
html.s2d-hf25-project-home #s2dEditorEmptyWorkspace{
  left:0!important;top:0!important;right:0!important;bottom:0!important;
  transform:none!important;margin:0!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  z-index:6!important;
}
html.s2d-hf25-project-home #work{scroll-behavior:auto!important;}
html.s2d-hf25-project-home #canvas,
html.s2d-hf25-project-home #minimap,
html.s2d-hf25-project-home .minimap,
html.s2d-hf25-project-home .diagram-canvas-header,
html.s2d-hf25-project-home #hf13-uml-diagram-system{visibility:hidden!important;pointer-events:none!important}
html.s2d-hf25-project-home #filename,
html.s2d-hf25-project-home .diagram-selector,
html.s2d-hf25-project-home #selectBtn,
html.s2d-hf25-project-home #connectBtn,
html.s2d-hf25-project-home #fitBtn,
html.s2d-hf25-project-home #autoArrangeBtn,
html.s2d-hf25-project-home #analyzeBtn{display:none!important}
html.s2d-hf25-project-home #hf75r21HomeReturn[hidden]{display:none!important}

/* HF75-R2.8.3: Project Home is not a UML diagram editing surface. */
html.s2d-hf25-project-home #hf75r21DiagramMeta,
html.s2d-hf25-project-home #filename,
html.s2d-hf25-project-home #diagramType,
html.s2d-hf25-project-home .diagram-selector,
html.s2d-hf25-project-home #undoBtn,
html.s2d-hf25-project-home #redoBtn,
html.s2d-hf25-project-home #autoArrangeBtn,
html.s2d-hf25-project-home #fitBtn,
html.s2d-hf25-project-home #analyzeBtn,
html.s2d-hf25-project-home #qualityAnalyzeToolbar,
html.s2d-hf25-project-home #selectBtn,
html.s2d-hf25-project-home #connectBtn {display:none!important}
/* The legacy editor's label bar must not occupy space on Home. */
html.s2d-hf25-project-home .diagram-meta-row:has(#filename),
html.s2d-hf25-project-home .diagram-meta-row:has(#diagramType){display:none!important}
