/* Siam2Dev-UML 2.2.3.5.4.3: Project Flow visual parity, scoped UI only */
#shapesWorkspacePane{--s2d-cyan:#41c7f4;--s2d-gold:#f4b942;color:#eaf7ff}
#shapesWorkspacePane #classToolkitBlock{display:block;min-width:0;margin:10px 3px!important}
#shapesWorkspacePane #classToolkitBlock[hidden]{display:none!important}
#shapesWorkspacePane .s2d542-toolgroup{border:1px solid #315e7c!important;border-radius:13px;background:#102d46!important;overflow:hidden;margin:12px 0!important}
#shapesWorkspacePane .s2d542-toolgroup>summary{background:#193c58!important;color:#f5faff!important;min-height:44px;font-size:13px!important;padding:10px 12px!important}
#shapesWorkspacePane .s2d542-toolgroup>summary:hover{background:#22516d!important}
#shapesWorkspacePane .s2d542-toolgroup>summary>i:first-child{color:#41c7f4!important}
#shapesWorkspacePane .s2d542-toolgroup:has(#classToolkitRelations)>summary>i:first-child{color:#f4b942!important}
#shapesWorkspacePane .class-toolkit-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important}
#shapesWorkspacePane .class-toolkit-grid>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px;min-width:0!important;min-height:54px!important;padding:9px!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;border:1px solid #305b78!important;border-radius:10px!important;background:#173a55!important;color:#f3faff!important;font:600 12px/1.35 Inter,Sarabun,sans-serif!important;cursor:pointer}
#shapesWorkspacePane .class-toolkit-grid>button:hover{background:#245273!important;border-color:#41c7f4!important;transform:translateY(-1px)}
#shapesWorkspacePane .class-toolkit-grid>button:focus-visible{outline:2px solid #41c7f4!important;outline-offset:1px}
#shapesWorkspacePane .class-toolkit-grid>button.active,#shapesWorkspacePane .class-toolkit-grid>button[aria-pressed=true]{background:#17546b!important;border-color:#34d399!important;box-shadow:inset 3px 0 #34d399}
#shapesWorkspacePane .class-toolkit-grid>button .bi{font-size:21px!important;color:#41c7f4!important;flex:0 0 24px;text-align:center;margin:0!important}
#shapesWorkspacePane #classToolkitRelations>button .bi{color:#f4b942!important}
#shapesWorkspacePane .class-toolkit-grid>button>span{min-width:0!important;flex:1;hyphens:none}
#shapesWorkspacePane .class-toolkit-info{color:#bcd8e8!important;line-height:1.65}
#shapesWorkspacePane #shapeToolHost .tool{border-radius:10px!important}
#shapesWorkspacePane .uml-v2-validation,#shapesWorkspacePane [class*=validation]{background:#102d46;color:#eaf7ff;border-color:#315e7c}
#shapesWorkspacePane .uml-v2-validation :is(strong,h3,p,small),#shapesWorkspacePane #umlV2ValidationResult{color:#d4e8f3}
#shapesWorkspacePane .uml-v2-validation button{background:#174766;color:#f5faff;border:1px solid #347596;border-radius:9px}
/* Only the Project tab: the header's controls wrap rather than stacking letters vertically */
#projectExplorer>header{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;min-width:0!important}
#projectExplorer>header>strong{display:flex;align-items:center;flex:1 1 100%;min-width:0;letter-spacing:.03em;word-break:normal!important;overflow-wrap:normal!important}
#projectExplorer>header button{flex:0 0 auto!important;min-width:35px!important;max-width:none!important;white-space:normal;word-break:normal!important;overflow-wrap:normal!important}
#projectExplorer :is(.workflow-phase-card,.workflow-phase-header,.workflow-phase-toggle,.workflow-diagram-row){min-width:0}
#projectExplorer .workflow-phase-header{gap:7px!important}
#projectExplorer :is(.workflow-phase-name,.workflow-phase-title){word-break:normal!important;overflow-wrap:normal!important}
@media(max-width:360px){#shapesWorkspacePane .class-toolkit-grid{grid-template-columns:minmax(0,1fr)!important}}
