/* Siam2Dev-UML 2.2.3.5.4.4 -- structure-friendly UI only */
:root{--s2d544-bg:#0a2238;--s2d544-panel:#102d46;--s2d544-card:#173a55;--s2d544-border:#2a597a;--s2d544-cyan:#41c7f4;--s2d544-green:#34d399}
#left .left-tab-bar.s2d-544-two-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important}
#left .left-tab-bar.s2d-544-two-tabs .left-tab-button{width:100%!important;min-width:0!important;min-height:40px!important}
#projectExplorer{padding:10px 10px 16px!important;overflow-x:hidden!important}
#projectExplorer>header{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;padding:10px 3px!important;min-width:0!important}
#projectExplorer>header strong{flex:1;min-width:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.3!important;font-size:13px!important}
#projectExplorer>header button{flex:0 0 34px!important;height:34px!important;min-width:34px!important}
#projectExplorer .s2d-544-project-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 12px}
#projectExplorer .s2d-544-project-actions button{min-height:36px!important;max-width:100%!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;border:1px solid var(--s2d544-border)!important;background:var(--s2d544-card)!important;color:#f5faff!important;border-radius:9px!important;font-size:12px!important;line-height:1.3!important;padding:6px!important}
#projectExplorer .workflow-overview{margin:10px 0!important}
#projectTree .workflow-phase-card{border:1px solid var(--s2d544-border)!important;border-radius:12px!important;background:#102d46!important;overflow:hidden!important;margin:9px 0!important;min-width:0!important}
#projectTree .workflow-phase-header{display:flex!important;align-items:center!important;gap:4px!important;padding:7px!important;background:#173a55!important;border-radius:0!important;min-height:60px!important}
#projectTree .workflow-phase-toggle{flex:1 1 auto!important;width:0!important;min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;padding:4px!important;background:transparent!important;border:0!important;text-align:left!important;white-space:normal!important}
#projectTree .workflow-phase-number{flex:0 0 34px!important;min-width:34px!important;height:34px!important;display:grid!important;place-items:center!important;background:#175e7c!important;color:#e9faff!important;border-radius:9px!important;font-size:13px!important}
#projectTree .workflow-phase-titles{flex:1 1 auto!important;min-width:0!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.25!important}
#projectTree .workflow-phase-titles strong{display:block!important;font-size:12.5px!important;line-height:1.25!important;overflow-wrap:normal!important;word-break:normal!important}
#projectTree .workflow-phase-titles small{display:block!important;font-size:11px!important;line-height:1.35!important;color:#b9d3e4!important}
#projectTree .workflow-caret{flex:0 0 15px!important;color:#b8d8ea!important}
#projectTree .workflow-phase-actions{display:flex!important;flex:0 0 auto!important;gap:4px!important}
#projectTree .workflow-phase-actions .workflow-icon-btn{width:30px!important;min-width:30px!important;height:34px!important;padding:0!important;border:1px solid #386787!important;background:#143651!important;border-radius:8px!important;color:#dff5ff!important}
#projectTree .workflow-phase-actions .workflow-icon-btn:disabled{opacity:.36!important}
#projectTree .workflow-phase-content{padding:8px!important;background:#0e2b42!important}
#projectTree .workflow-diagram-row{display:flex!important;align-items:center!important;gap:4px!important;padding:5px!important;background:#183f50!important;border:1px solid #2d6771!important;border-radius:9px!important;margin-bottom:6px!important;min-width:0!important}
#projectTree .workflow-diagram-row.active{background:#14546a!important;border-color:#34d399!important;box-shadow:inset 3px 0 #34d399!important}
#projectTree .workflow-diagram-open{flex:1 1 auto!important;min-width:0!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;font-size:12px!important;line-height:1.35!important}
#projectTree .workflow-diagram-row .workflow-diagram-edit{flex:0 0 28px!important;min-width:28px!important;width:28px!important;height:30px!important;padding:0!important}
#projectTree .workflow-next{max-width:100%!important;white-space:normal!important;font-size:11px!important;background:#1c4c69!important;border:1px solid #366b8b!important;border-radius:8px!important}
#projectTree .s2d-flow-list-item.is-active{border-color:#34d399!important;box-shadow:inset 3px 0 #34d399!important}
#projectTree :is(button,span,strong,small){word-break:normal!important}
.s2d-up-help-dialog{border:1px solid #34729b;border-radius:16px;color:#f5faff;background:#0a2238;width:min(940px,94vw);height:min(85vh,900px);max-height:85vh;padding:0;box-shadow:0 28px 80px #0009}
.s2d-up-help-dialog::backdrop{background:#010b19c9;backdrop-filter:blur(4px)}
.s2d-up-help-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#102d46;border-bottom:1px solid #2a597a;padding:16px 22px}
.s2d-up-help-head small{font-size:10px;color:#41c7f4;letter-spacing:.12em}.s2d-up-help-head h2{font-size:21px;margin:4px 0;color:#fff}.s2d-up-help-head p{margin:3px 0;color:#b9d3e4;font-size:12px}
.s2d-up-help-close,.s2d-up-help-launch{border:1px solid #397294;background:#194666;color:#f5faff;border-radius:9px;padding:9px 14px;cursor:pointer}
.s2d-up-help-content{overflow:auto;max-height:calc(85vh - 105px);padding:16px 22px}
.s2d-up-help-content #upWorkspacePane{display:block!important;visibility:visible!important;height:auto!important;max-height:none!important;overflow:visible!important;width:100%!important}
.s2d-up-help-content #upWorkspacePane .up-phase{max-width:100%}
@media(max-width:540px){#projectTree .workflow-phase-actions .workflow-icon-btn{width:28px!important;min-width:28px!important}#projectExplorer{padding:6px!important}.s2d-up-help-head{padding:10px}.s2d-up-help-content{padding:10px}}

/* HF75-R2.3: One fullscreen Learning Center, UP pane integrated. */
#learningDialog.hf75r23-learning-unified{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;z-index:2147481000!important;overflow:hidden!important}
#learningDialog.hf75r23-learning-unified .learning-shell{height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important}
#learningDialog.hf75r23-learning-unified .learning-content{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(230px,290px) minmax(0,1fr)!important;overflow:hidden!important}
#learningDialog.hf75r23-learning-unified .learning-detail{min-height:0!important;overflow-y:auto!important}
#learningDialog.hf75r23-learning-unified .learning-sidebar{min-height:0!important;overflow-y:auto!important}
#learningDialog.hf75r23-learning-unified .hf75r23-up-pane{position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;background:transparent!important;padding:0!important}
#learningDialog.hf75r23-learning-unified .hf75r23-up-pane .up-phase{max-width:100%!important}
#learningDialog .hf75r23-up-nav{width:100%;display:flex;gap:9px;align-items:center;text-align:left;margin:6px 0;padding:12px;background:#1b4665;color:#e7f7ff;border:1px solid #477b9b;border-radius:9px;cursor:pointer;font-size:13px}
#learningDialog .hf75r23-up-nav.hf75r23-active{background:#087f93;border-color:#45d7de}
#learningDialog .hf75r23-up-back{background:#176080;color:white;border:1px solid #4c9bbb;border-radius:8px;padding:10px 14px;margin:0 0 14px;cursor:pointer}
#learningDialog .hf75r23-up-back[hidden]{display:none!important}
/* Keep only HF64's shared TH/EN toggle; close stays last on the right. */
#learningDialog .learning-top-actions > #s2d-language-switch,
#learningDialog .learning-top-actions > :is(.hf75-extra-language,.hf71-language-toggle){display:none!important}
#learningDialog .learning-top-actions{margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important}
#learningDialog .learning-top-actions .hf64-lang-wrap{order:90!important;margin-left:auto!important}
#learningDialog .learning-top-actions #learningClose{order:100!important}
@media(max-width:750px){#learningDialog.hf75r23-learning-unified .learning-content{grid-template-columns:minmax(155px,35%) minmax(0,1fr)!important}}
