        ::-webkit-scrollbar { width: 8px; height: 8px; } 
        ::-webkit-scrollbar-track { background: transparent; } 
        ::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 4px; } 
        ::-webkit-scrollbar-thumb:hover { background: #6b7280; } 
        .log-line-error { color: #ef4444; } 
        .log-line-warn { color: #fef08a; } 
        .log-line-success { color: #4ade80; } 
        .log-line-info { color: #38bdf8; } 
        .log-line-debug { color: #9ca3af; }
        body { background: #0b1024; overflow-x: hidden; }
        .dashboard-shell { max-width: 1600px; width: 100%; box-sizing: border-box; overflow-x: hidden; }
        .dashboard-panel { background: linear-gradient(145deg, rgba(30, 36, 57, .96), rgba(19, 25, 44, .98)); border: 1px solid #30394f; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); max-width: 100%; box-sizing: border-box; }
        .stat-card { min-height: 150px; background: linear-gradient(145deg, #20263a, #1a2032); border: 1px solid #343c52; border-radius: 12px; min-width: 0; max-width: 100%; box-sizing: border-box; }
        .stat-value { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.04em; }
        .metric-chip { background: rgba(9, 14, 30, .52); border: 1px solid #30394f; border-radius: 9px; }
        .dashboard-table th { color: #cbd5e1; background: #242b40; }
        .dashboard-table td, .dashboard-table th { border-bottom: 1px solid #30394f; }
        .dashboard-table tbody tr:hover { background: rgba(59, 130, 246, .08); }
        .status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 8px; background: #64748b; }
        .status-dot.online { background: #6bd18c; box-shadow: 0 0 10px rgba(107, 209, 140, .35); }
        .status-dot.busy { background: #f5b84b; }
        .status-dot.offline { background: #778198; }
        .dashboard-button { border: 1px solid #58627a; background: #353d53; color: #f8fafc; border-radius: 7px; padding: 6px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: .15s ease; }
        .dashboard-button:hover { filter: brightness(1.18); transform: translateY(-1px); }
        .dashboard-button-primary { background: #315fbc; border: 1px solid #4778d1; border-color: #4778d1; color: #f8fafc; }
        .dashboard-button-warning { background: #674c2c; border: 1px solid #b88c4d; border-color: #b88c4d; }
        .dashboard-button-danger { background: #71383e; border: 1px solid #a9535b; border-color: #a9535b; }
        /* daisyUI btn-ghost/primary can clear borders — force Task Config chrome in Dark. */
        html.dark .dashboard-button.btn,
        html.dark .dashboard-button.btn-ghost,
        html.dark .dashboard-button.btn-primary {
            border-style: solid;
            border-width: 1px;
        }
        html.dark .dashboard-button.btn-ghost {
            border-color: #58627a;
            background: #353d53;
            color: #f8fafc;
        }
        html.dark .dashboard-button-primary.btn,
        html.dark .dashboard-button-primary.btn-primary,
        html.dark button[data-action="open-client-config"],
        html.dark button[data-action="open-server-task-config"] {
            border-color: #60a5fa !important;
            background: #315fbc;
            color: #f8fafc;
        }
        .search-input { background: #272d40; border: 1px solid #414a61; color: #f8fafc; }
        .search-input::placeholder { color: #a3adbf; }
        .log-viewer { height: 100%; min-height: 360px; max-height: 520px; background: rgba(7, 12, 26, .48); }
        html:not(.dark) body { background: #f1f5f9; color: #1e293b; overflow-x: hidden; }
        html:not(.dark) .dashboard-shell { max-width: min(1600px, 100%); overflow-x: hidden; }
        html:not(.dark) .dashboard-panel { background: #ffffff; border-color: #d7deea; color: #1e293b; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); max-width: 100%; overflow-x: hidden; }
        html:not(.dark) .stat-card { background: linear-gradient(145deg, #ffffff, #f1f5f9); border-color: #d7deea; min-width: 0; max-width: 100%; }
        html:not(.dark) .dashboard-shell .text-white { color: #1e293b !important; }
        html:not(.dark) .dashboard-shell .text-slate-100, html:not(.dark) .dashboard-shell .text-slate-200 { color: #334155 !important; }
        html:not(.dark) .dashboard-table th { color: #334155; background: #e9eef5; }
        html:not(.dark) .metric-chip { background: #f8fafc; border-color: #d7deea; }
        html:not(.dark) .search-input { background: #ffffff; border-color: #cbd5e1; color: #1e293b; }
        html:not(.dark) .client-credential-input { background: #ffffff; border-color: #cbd5e1; color: #1e293b; color-scheme: light; }
        html:not(.dark) .client-credential-input::placeholder { color: #64748b; opacity: 1; }
        html:not(.dark) .log-viewer { background: #0b1024; color: #e2e8f0; }
        /* Theme polish: body/footer/utilities readable in both modes (Vue shell + daisyUI). */
        html { color-scheme: dark; }
        html:not(.dark) { color-scheme: light; }
        html.dark body,
        html.dark #app,
        html.dark .pp-dashboard-root { background: #0b1024; color: #e2e8f0; }
        html:not(.dark) body,
        html:not(.dark) #app,
        html:not(.dark) .pp-dashboard-root { background: #f1f5f9; color: #1e293b; }
        html:not(.dark) body.text-slate-100,
        html:not(.dark) .pp-dashboard-root.text-slate-100,
        html:not(.dark) .text-slate-100 { color: #1e293b !important; }
        html:not(.dark) footer,
        html:not(.dark) .text-slate-500 { color: #64748b !important; }
        html:not(.dark) .text-slate-300,
        html:not(.dark) .text-slate-400 { color: #64748b !important; }
        html:not(.dark) .dashboard-shell .text-emerald-400 { color: #047857 !important; }
        html:not(.dark) .dashboard-shell .text-blue-300,
        html:not(.dark) .dashboard-shell .text-blue-400 { color: #1d4ed8 !important; }
        html:not(.dark) .dashboard-shell .text-amber-300,
        html:not(.dark) .dashboard-shell .text-amber-400 { color: #b45309 !important; }
        html:not(.dark) .dashboard-shell .text-rose-300,
        html:not(.dark) .dashboard-shell .text-rose-400 { color: #be123c !important; }
        html:not(.dark) .dashboard-shell .text-green-300 { color: #15803d !important; }
        html:not(.dark) .border-slate-700,
        html:not(.dark) .border-slate-700\/70,
        html:not(.dark) .border-slate-600 { border-color: #cbd5e1 !important; }
        html:not(.dark) .dashboard-table td { color: #1e293b; border-bottom-color: #e2e8f0; }
        html:not(.dark) .dashboard-table tbody tr:hover { background: rgba(37, 99, 235, .06); }
        html:not(.dark) .dashboard-button {
            background: #e2e8f0; border-color: #94a3b8; color: #0f172a;
        }
        html:not(.dark) .dashboard-button-primary { background: #2563eb; border-color: #1d4ed8; color: #f8fafc; }
        html:not(.dark) .dashboard-button-warning { background: #d97706; border-color: #b45309; color: #fffbeb; }
        html:not(.dark) .dashboard-button-danger { background: #dc2626; border-color: #b91c1c; color: #fef2f2; }
        html:not(.dark) .settings-field label,
        html:not(.dark) .settings-section h3,
        html:not(.dark) .settings-section h4,
        html:not(.dark) .settings-tab-panel > h3,
        html:not(.dark) .settings-tab-panel > h4 { color: #0f172a; }
        html:not(.dark) .settings-field input,
        html:not(.dark) .settings-field select,
        html:not(.dark) .settings-tab-panel input:not([type="checkbox"]):not([type="radio"]),
        html:not(.dark) .settings-tab-panel select,
        html:not(.dark) .settings-tab-panel textarea {
            background: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important;
        }
        html:not(.dark) .settings-left-nav { background: #f8fafc; border-color: #e2e8f0; }
        html:not(.dark) .settings-nav-btn { color: #334155; }
        html:not(.dark) .settings-modal-shell,
        html:not(.dark) .task-config-modal-shell {
            background: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important;
        }
        html:not(.dark) #pwdModal .bg-white,
        html:not(.dark) #pwdModal [class*="bg-white"] { background: #ffffff !important; color: #0f172a !important; }
        html.dark .settings-field input,
        html.dark .settings-field select,
        html.dark .settings-tab-panel input:not([type="checkbox"]):not([type="radio"]),
        html.dark .settings-tab-panel select,
        html.dark .settings-tab-panel textarea {
            background: #1e293b !important; color: #e2e8f0 !important; border-color: #475569 !important;
        }
        html.dark .dashboard-table td { color: #e2e8f0; }
        html.dark footer { color: #94a3b8; }

        /* Theme toggle restore: Light !important overrides must be mirrored in Dark (header title + chrome). */
        html.dark .dashboard-shell header .dashboard-title,
        html.dark .dashboard-shell .dashboard-title,
        html.dark .dashboard-shell header .text-white,
        html.dark .dashboard-shell h1.text-white,
        html.dark .dashboard-shell h2.text-white,
        html.dark .dashboard-shell h3.text-white,
        html[data-theme="dark"] .dashboard-shell header .dashboard-title,
        html[data-theme="dark"] .dashboard-shell .dashboard-title,
        html[data-theme="dark"] .dashboard-shell header .text-white {
            color: #f8fafc !important;
        }
        html.dark .dashboard-shell header .text-slate-100,
        html.dark .dashboard-shell header .text-slate-200,
        html[data-theme="dark"] .dashboard-shell header .text-slate-100,
        html[data-theme="dark"] .dashboard-shell header .text-slate-200 {
            color: #e2e8f0 !important;
        }
        html.dark .dashboard-shell header .text-slate-400,
        html[data-theme="dark"] .dashboard-shell header .text-slate-400 {
            color: #94a3b8 !important;
        }
        html.dark .dashboard-shell header,
        html[data-theme="dark"] .dashboard-shell header {
            border-bottom-color: rgba(51, 65, 85, 0.7) !important;
        }
        html.dark .dashboard-shell header .metric-chip,
        html[data-theme="dark"] .dashboard-shell header .metric-chip {
            background: rgba(9, 14, 30, 0.52) !important;
            border-color: #30394f !important;
            color: #e2e8f0 !important;
        }
        html.dark .pp-dashboard-root.text-slate-100,
        html.dark .text-slate-100,
        html[data-theme="dark"] .pp-dashboard-root.text-slate-100 {
            color: #e2e8f0 !important;
        }
        html:not(.dark) .dashboard-shell header .dashboard-title,
        html:not(.dark) .dashboard-shell .dashboard-title,
        html[data-theme="light"] .dashboard-shell header .dashboard-title,
        html[data-theme="light"] .dashboard-shell .dashboard-title {
            color: #1e293b !important;
        }
        html:not(.dark) .dashboard-shell header,
        html[data-theme="light"] .dashboard-shell header {
            border-bottom-color: #cbd5e1 !important;
        }

        /* Task Config / Pipeline panels: Dark fg/bg/border (do not rely only on Tailwind dark:). */
        html.dark .task-config-modal-shell,
        html[data-theme="dark"] .task-config-modal-shell {
            background: #1f2937 !important;
            color: #e2e8f0 !important;
            border-color: #374151 !important;
        }
        html.dark .task-config-modal-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
        html.dark .task-config-modal-shell select,
        html.dark .task-config-modal-shell textarea,
        html[data-theme="dark"] .task-config-modal-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
        html[data-theme="dark"] .task-config-modal-shell select,
        html[data-theme="dark"] .task-config-modal-shell textarea {
            background: #334155 !important;
            color: #e2e8f0 !important;
            border-color: #475569 !important;
        }
        html.dark .task-config-modal-shell label,
        html.dark .task-config-modal-shell h3,
        html.dark .pipeline-module-label,
        html.dark .pipeline-steps-param-label,
        html[data-theme="dark"] .task-config-modal-shell label,
        html[data-theme="dark"] .task-config-modal-shell h3 {
            color: #e2e8f0;
        }
        html.dark .pipeline-steps-params,
        html[data-theme="dark"] .pipeline-steps-params {
            background: rgba(15, 23, 42, 0.45);
            border-color: #475569;
            color: #cbd5e1;
        }
        html.dark .pipeline-steps-param-input,
        html[data-theme="dark"] .pipeline-steps-param-input {
            background: #334155 !important;
            color: #f1f5f9 !important;
            border-color: #64748b !important;
        }
        html.dark .pipeline-steps-table-wrap,
        html[data-theme="dark"] .pipeline-steps-table-wrap {
            background: rgba(15, 23, 42, 0.45);
            border-color: #475569;
        }
        html.dark .pipeline-steps-table thead th,
        html[data-theme="dark"] .pipeline-steps-table thead th {
            background: #1e293b !important;
            color: #e2e8f0 !important;
            border-bottom-color: #475569 !important;
        }
        html.dark .pipeline-steps-table td,
        html[data-theme="dark"] .pipeline-steps-table td {
            color: #e2e8f0;
            border-bottom-color: rgba(71, 85, 105, 0.55);
        }
        html.dark .pipeline-steps-btn,
        html[data-theme="dark"] .pipeline-steps-btn {
            background: rgba(30, 41, 59, 0.9);
            color: #e2e8f0;
            border-color: #64748b;
        }
        html.dark .pipeline-module-seg,
        html[data-theme="dark"] .pipeline-module-seg {
            background: rgba(15, 23, 42, 0.55);
            border-color: #64748b;
            color: #e2e8f0;
        }
        html.dark .pipeline-client-select,
        html[data-theme="dark"] .pipeline-client-select {
            accent-color: #3b82f6;
            color-scheme: dark;
            width: 1rem;
            height: 1rem;
            cursor: pointer;
        }
        html.dark #server-client-pipeline-management .dashboard-table tbody tr:hover,
        html[data-theme="dark"] #server-client-pipeline-management .dashboard-table tbody tr:hover {
            background: rgba(59, 130, 246, 0.12) !important;
        }
        html.dark #server-client-pipeline-management .text-gray-500,
        html[data-theme="dark"] #server-client-pipeline-management .text-gray-500 {
            color: #94a3b8 !important;
        }
        html.dark .task-config-modal-shell button.bg-gray-200,
        html.dark .task-config-modal-shell [class*="dark:bg-gray-600"],
        html[data-theme="dark"] .task-config-modal-shell button.bg-gray-200 {
            color: #f8fafc;
        }
        @media (max-width: 767px) { .log-viewer { min-height: 260px; } .dashboard-table { min-width: 780px; } }
        /* beta1.39: single-column task row - only one mode panel is visible; auto-fit+36rem caused side-by-side overflow (cards clipped / Server Task Management off-screen) especially in light mode */
        .status-task-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: stretch; width: 100%; max-width: 100%; }
        .status-task-row > .dashboard-panel { min-width: 0; max-width: 100%; min-height: 280px; }
        .dashboard-table { width: 100%; max-width: 100%; }
        .dashboard-table th, .dashboard-table td { word-break: break-word; }
        .stat-cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; width: 100%; max-width: 100%; }
        @media (max-width: 1279px) { .stat-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
        @media (max-width: 639px) { .stat-cards-grid { grid-template-columns: minmax(0, 1fr); } }
        .debug-log-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 1rem; align-items: start; margin-top: 1rem; }
        .debug-log-row > details { min-width: 0; margin-top: 0; }
        .debug-log-row .panel-scroll { min-height: 240px; max-height: 420px; overflow: auto; }
        /* phaseB.6.96: Global Settings left-nav + tab panels (prior 6.48 packed 3-col kept as unused fallback). */
        .settings-section { border: 1px solid rgba(148,163,184,0.35); border-radius: 0.5rem; padding: 0.35rem 0.4rem; margin: 0; align-self: stretch; width: 100%; box-sizing: border-box; }
        .settings-section h3, .settings-tab-panel > h3 { margin: 0 0 0.2rem 0; font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
        .settings-section h4, .settings-tab-panel > h4 { margin: 0.1rem 0 0.2rem 0; font-size: 0.8125rem; font-weight: 700; line-height: 1.25; }
        .settings-modal-shell { min-height: min(640px, 92vh); }
        .settings-modal-body { display: flex; flex: 1 1 auto; min-height: 0; }
        .settings-left-nav {
            display: flex; flex-direction: column; gap: 0.15rem;
            width: 11.5rem; padding: 0.75rem 0.5rem; box-sizing: border-box;
            border-right: 1px solid rgba(148,163,184,0.35);
            background: rgba(15,23,42,0.04); overflow-y: auto;
        }
        .dark .settings-left-nav { background: rgba(15,23,42,0.35); }
        .settings-nav-btn {
            display: block; width: 100%; text-align: left;
            padding: 0.55rem 0.75rem 0.55rem 0.7rem; margin: 0;
            border: 0; border-left: 3px solid transparent; border-radius: 0.375rem;
            background: transparent; cursor: pointer;
            font-size: 0.8125rem; font-weight: 600; color: inherit;
            transition: background .12s ease, border-color .12s ease, color .12s ease;
        }
        .settings-nav-btn:hover { background: rgba(37,99,235,0.12); }
        .settings-nav-btn.is-active {
            background: rgba(37,99,235,0.22);
            border-left-color: #2563eb;
            color: #1d4ed8;
        }
        .dark .settings-nav-btn.is-active { color: #93c5fd; background: rgba(37,99,235,0.28); border-left-color: #3b82f6; }
        .settings-tab-panels { flex: 1 1 auto; min-width: 0; }
        .settings-tab-panel { display: block; max-width: 52rem; }
        .settings-tab-panel.hidden { display: none; }
        .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0.2rem; row-gap: 0.25rem; align-items: start; align-content: start; width: 100%; }
        .settings-grid-packed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0.2rem; row-gap: 0.25rem; align-items: start; align-content: start; margin-top: 0; width: 100%; }
        .settings-col { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; width: 100%; align-self: start; }
        .settings-grid .settings-span-2 { grid-column: span 2; }
        .settings-grid .settings-span-3 { grid-column: span 3; }
        @media (max-width: 900px) {
            .settings-modal-body { flex-direction: column; }
            .settings-left-nav {
                width: 100%; flex-direction: row; flex-wrap: wrap;
                border-right: 0; border-bottom: 1px solid rgba(148,163,184,0.35);
                padding: 0.5rem;
            }
            .settings-nav-btn { width: auto; border-left-width: 0; border-bottom: 3px solid transparent; border-radius: 0.375rem; }
            .settings-nav-btn.is-active { border-left-color: transparent; border-bottom-color: #2563eb; }
        }
        @media (max-width: 1100px) {
            .settings-grid, .settings-grid-packed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .settings-grid .settings-span-2, .settings-grid .settings-span-3 { grid-column: span 2; }
            .settings-grid-packed .settings-col:last-child { grid-column: span 2; }
        }
        @media (max-width: 700px) {
            .settings-grid, .settings-grid-packed { grid-template-columns: 1fr; }
            .settings-grid .settings-span-2, .settings-grid .settings-span-3,
            .settings-grid-packed .settings-col:last-child { grid-column: span 1; }
            .settings-sources-two-col { grid-template-columns: 1fr !important; }
        }
        .settings-field { margin-bottom: 0.25rem; }
        .settings-field label { display: block; margin-bottom: 0.1rem; font-weight: 700; font-size: 0.75rem; }
        .settings-field input, .settings-field select { width: 100%; padding: 0.3rem 0.375rem; font-size: 0.8125rem; border-radius: 0.25rem; outline: none; }
        .settings-section .toggle-grid, .settings-tab-panel .toggle-grid { gap: 0.25rem; }
        .settings-section .switch-row, .settings-tab-panel .switch-row { min-height: 1.5rem; }
        .settings-section .switch-label, .settings-tab-panel .switch-label { font-size: 0.8125rem; }
        .settings-sources-stack { display: flex; flex-direction: column; gap: 0.25rem; }
        .settings-sources-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
        .settings-sources .border { padding: 0.4rem; }
        .dashboard-title { line-height: 1.25; max-width: 22rem; white-space: normal; }
        .toggle-grid { display: flex; flex-direction: column; gap: 0.55rem; }
        .switch-row { display: flex; align-items: center; gap: 0.5rem; min-height: 2rem; }
        .switch-label { flex: 1 1 auto; font-size: 0.875rem; font-weight: 600; color: inherit; }
        .switch-status { flex: 0 0 auto; font-size: 0.75rem; font-weight: 700; min-width: 1.75rem; text-align: left; opacity: 0.85; }
        .switch { position: relative; width: 44px; height: 24px; border: 0; padding: 0; margin-left: auto; background: transparent; cursor: pointer; flex: 0 0 auto; }
        .switch-track { display: block; width: 44px; height: 24px; border-radius: 9999px; background: #64748b; transition: background .15s ease; }
        .switch[aria-pressed="true"] .switch-track, .switch.is-on .switch-track { background: #2563eb; }
        .switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 9999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: left .15s ease; }
        .switch[aria-pressed="true"] .switch-thumb, .switch.is-on .switch-thumb { left: 23px; }
        html:not(.dark) .switch-track { background: #94a3b8; }
        html:not(.dark) .switch[aria-pressed="true"] .switch-track { background: #2563eb; }
        .dash-mode-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.5rem 0.75rem; }
        .dash-mode-bar .switch-row { flex: 0 1 auto; max-width: none; margin-left: 0; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
        .dash-mode-bar .switch { margin-left: 0.75rem; }
        .dash-mode-bar .switch-label { flex: 0 1 auto; }
        .dash-mode-hint { display: inline-block; margin: 0; margin-left: 0.5rem; font-size: 0.72rem; color: #94a3b8; max-width: 36rem; line-height: 1.35; white-space: normal; }
        html:not(.dark) .dash-mode-hint { color: #64748b; }

        /* Client Task Config: compact one-page ClientTest - WorkflowId then conditional Staging (stacked, not side-by-side) */
        #ccModalShell.clienttest-compact {
            width: min(560px, 96vw) !important;
            max-height: min(480px, 92vh) !important;
            padding: 0.75rem !important;
        }
        #ccModalShell.clienttest-compact #cc-compact-fields {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            align-items: stretch;
            max-width: 36rem;
        }
        #ccModalShell.clienttest-compact #cc-shared-workflowid,
        #ccModalShell.clienttest-compact #cc-server-clienttest-settings {
            max-width: none;
            margin-bottom: 0;
        }
        #ccModalShell.clienttest-compact #cc-clienttest-staging-wrap.hidden {
            display: none !important;
        }
        #ccModalShell.clienttest-compact #cc-server-clienttest-settings h3 {
            font-size: 0.875rem;
            margin-bottom: 0.25rem;
            padding-bottom: 0.15rem;
        }
        #ccModalShell.clienttest-compact .cc-help {
            margin-top: 0.25rem;
            font-size: 0.7rem;
            line-height: 1.25;
        }
        .dashboard-button:disabled, button.is-busy:disabled {
            opacity: 0.55;
            cursor: wait;
            pointer-events: none;
            transform: none;
            filter: none;
        }
        /* Phase 2: daisyUI alert-warning supplies colors; keep show/hide only. */
        #default-password-banner {
            display: none;
            margin: 0 0 1rem 0;
            font-size: 0.875rem;
            font-weight: 600;
            line-height: 1.4;
        }
        #default-password-banner.is-visible { display: grid; }
        /* Phase 2: daisyUI btn + existing dashboard-button chrome */
        .dashboard-button.btn {
            min-height: 2rem;
            height: auto;
            text-transform: none;
        }
        #dash-session-badge.badge {
            width: 2rem;
            height: 2rem;
            padding: 0;
        }
        #dash-toast {
            position: fixed;
            right: 1rem;
            bottom: 1rem;
            z-index: 10000; /* phaseB.6.60: above modal z-50 so order toasts visible */
            max-width: min(28rem, calc(100vw - 2rem));
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            border: 1px solid #475569;
            background: #1e293b;
            color: #f8fafc;
            font-size: 0.875rem;
            font-weight: 600;
            box-shadow: 0 12px 28px rgba(0,0,0,.28);
            opacity: 0;
            pointer-events: none;
            transform: translateY(8px);
            transition: opacity .18s ease, transform .18s ease;
        }
        #dash-toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
        #dash-toast.toast-success { border-color: #16a34a; background: #14532d; }
        #dash-toast.toast-error { border-color: #dc2626; background: #7f1d1d; }
        #dash-toast.toast-info { border-color: #2563eb; background: #1e3a8a; }
        #dash-toast.toast-warning { border-color: #d97706; background: #78350f; }
        html:not(.dark) #dash-toast { background: #0f172a; color: #f8fafc; }
        #btn-logout.hidden { display: none !important; }

        /* phaseB.6.6/6.34/6.84/6.86: Task Config Pipeline Modules - single-row name + Unset|On|Off (scrollable) */
        .pipeline-modules-list {
            display: flex; flex-direction: column; gap: 0.2rem;
            width: 100%; max-height: 13rem; overflow-y: auto;
            box-sizing: border-box; padding-right: 0.15rem;
        }
        .pipeline-module-row {
            display: grid; grid-template-columns: 1fr auto; align-items: center;
            gap: 0.5rem; min-height: 1.6rem; box-sizing: border-box;
        }
        .pipeline-module-label {
            font-size: 0.8125rem; font-weight: 600; line-height: 1.25;
            opacity: 0.92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        /* phaseB.6.34: segmented-three control (Unset | On | Off); colors match prior tri caps */
        .pipeline-module-seg {
            display: inline-flex; align-items: stretch; flex: 0 0 auto;
            box-sizing: border-box; overflow: hidden;
            border: 1px solid #64748b; border-radius: 0.375rem;
            background: rgba(15, 23, 42, 0.35); color: inherit;
            line-height: 1.2; white-space: nowrap;
        }
        .pipeline-module-seg-btn {
            appearance: none; -webkit-appearance: none;
            margin: 0; border: none; border-right: 1px solid #64748b;
            background: transparent; color: inherit;
            padding: 0.12rem 0.42rem; min-width: 2.55rem;
            font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
            cursor: pointer; line-height: 1.2; text-align: center;
        }
        .pipeline-module-seg-btn:last-child { border-right: none; }
        .pipeline-module-seg-btn:hover { filter: brightness(1.12); }
        .pipeline-module-seg-btn:focus-visible {
            outline: 2px solid #38bdf8; outline-offset: -2px; z-index: 1;
        }
        .pipeline-module-seg-btn.is-active[data-seg="unset"] { background: #64748b; color: #f8fafc; }
        .pipeline-module-seg-btn.is-active[data-seg="on"] { background: #16a34a; color: #f0fdf4; }
        .pipeline-module-seg-btn.is-active[data-seg="off"] { background: #b91c1c; color: #fef2f2; }
        html:not(.dark) .pipeline-module-seg { background: #f8fafc; border-color: #94a3b8; color: #1e293b; }
        html:not(.dark) .pipeline-module-seg-btn { border-right-color: #94a3b8; }
        html:not(.dark) .pipeline-module-seg-btn.is-active[data-seg="unset"] { background: #94a3b8; color: #0f172a; }
        html:not(.dark) .pipeline-module-seg-btn.is-active[data-seg="on"] { background: #16a34a; color: #f0fdf4; }
        html:not(.dark) .pipeline-module-seg-btn.is-active[data-seg="off"] { background: #b91c1c; color: #fef2f2; }

        /* phaseB.6.25 Track A slice #3: Dashboard PipelineSteps list + HTML5 DnD */
        /* phaseB.6.33: fix incomplete display - narrow cols ellipsized Ord/Type; modal footer clipped */
        .pipeline-steps-panel { margin-top: 0.5rem; min-width: 0; }
        /* phaseB.6.84: Steps one page - NO H/V scroll on Steps table wrap (Params may V-scroll) */
        .pipeline-steps-table-wrap {
            width: 100%; max-height: none; overflow-x: hidden; overflow-y: hidden;
            border: 1px solid #475569; border-radius: 0.375rem;
            background: rgba(15, 23, 42, 0.35);
            box-sizing: border-box;
        }
        html:not(.dark) .pipeline-steps-table-wrap { background: #f8fafc; border-color: #cbd5e1; }
        .pipeline-steps-table {
            width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.75rem;
            table-layout: auto;
        }
        .pipeline-steps-table thead th {
            position: sticky; top: 0; z-index: 1;
            background: #1e293b; color: #e2e8f0; font-weight: 700;
            text-align: left; padding: 0.3rem 0.4rem;
            border-bottom: 1px solid #475569;
            white-space: nowrap;
        }
        html:not(.dark) .pipeline-steps-table thead th { background: #e2e8f0; color: #0f172a; border-bottom-color: #94a3b8; }
        .pipeline-steps-table td {
            padding: 0.25rem 0.4rem; border-bottom: 1px solid rgba(71, 85, 105, 0.45);
            vertical-align: middle; white-space: nowrap;
            overflow: visible; text-overflow: clip;
        }
        .pipeline-steps-table td.ps-col-id {
            /* phaseB.6.91: Id column hidden */
            display: none !important;
        }
        .pipeline-steps-row { cursor: pointer; }
        /* phaseB.6.37: amber on td - tr background is invisible with border-collapse */
        .pipeline-steps-row.pipeline-steps-selected > td {
            background: #fde68a !important; color: #0f172a;
        }
        html.dark .pipeline-steps-row.pipeline-steps-selected > td {
            background: #fde68a !important; color: #0f172a;
        }
        .pipeline-steps-row .pipeline-steps-handle { cursor: grab; }
        .pipeline-steps-row.pipeline-steps-dragging { opacity: 0.55; }
        .pipeline-steps-row.pipeline-steps-dragover { outline: 2px dashed #38bdf8; outline-offset: -2px; }
        .pipeline-steps-handle { letter-spacing: -0.15em; color: #94a3b8; user-select: none; }
        .ps-col-drag { width: 1.75rem; min-width: 1.75rem; text-align: center; }
        .ps-col-order { width: 3.5rem; min-width: 3.5rem; text-align: right; }
        .ps-col-en { width: 3.75rem; min-width: 3.75rem; text-align: center; vertical-align: middle; }
        .pipeline-steps-on-switch.switch {
            display: inline-block;
            width: 40px; height: 22px;
            padding: 0; margin-left: 0;
            border: 0; background: transparent;
            vertical-align: middle; cursor: pointer;
        }
        .pipeline-steps-on-switch .switch-track {
            width: 40px;
            height: 22px;
        }
        .pipeline-steps-on-switch .switch-thumb {
            width: 16px;
            height: 16px;
            top: 3px;
            left: 3px;
        }
        .pipeline-steps-on-switch.switch[aria-pressed="true"] .switch-thumb,
        .pipeline-steps-on-switch.switch.is-on .switch-thumb { left: 21px; }
        /* phaseB.6.54: STC PadOrScript On switch locked */
        .pipeline-steps-on-switch.switch.is-locked,
        .pipeline-steps-on-switch.switch[disabled] {
            cursor: not-allowed;
            opacity: 0.92;
        }
        /* v1.0.2: Global Settings Enable* Off — existing step row gated */
        .pipeline-steps-row.is-global-gated > td {
            opacity: 0.78;
        }
        .ps-type-with-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            flex-wrap: wrap;
        }
        .ps-global-off-badge {
            display: inline-block;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            line-height: 1.2;
            padding: 0.1rem 0.35rem;
            border-radius: 0.25rem;
            border: 1px solid #b45309;
            background: #fef3c7;
            color: #92400e;
            white-space: nowrap;
        }
        html.dark .ps-global-off-badge,
        html[data-theme="dark"] .ps-global-off-badge {
            border-color: #d97706;
            background: rgba(146, 64, 14, 0.35);
            color: #fde68a;
        }
        /* phaseB.6.55: STC fixed Order - no DnD handle */
        .pipeline-steps-row.is-order-fixed { cursor: default; }
        .pipeline-steps-row.is-order-fixed .pipeline-steps-handle,
        .pipeline-steps-handle.is-disabled {
            cursor: default;
            color: #64748b;
            opacity: 0.55;
            letter-spacing: 0;
        }
        .pipeline-module-seg.pipeline-module-seg-two { min-width: 6.5rem; }
        .pipeline-module-seg.pipeline-module-seg-two .pipeline-module-seg-btn { min-width: 3rem; }

        .ps-col-type { min-width: 8.75rem; width: auto; }
        .ps-col-id { display: none !important; width: 0; min-width: 0; padding: 0; border: 0; } /* phaseB.6.91: Id column hidden */
        .pipeline-steps-btn {
            font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.45rem;
            border-radius: 0.375rem; border: 1px solid #64748b;
            background: rgba(15, 23, 42, 0.35); color: inherit; cursor: pointer;
        }
        html:not(.dark) .pipeline-steps-btn { background: #f8fafc; color: #1e293b; border-color: #94a3b8; }
        .pipeline-steps-btn:hover { filter: brightness(1.1); }

/* phaseB.6.27: Task Config - wider modal + left pipeline panel (Modules+Steps) */
/* phaseB.6.33: reinforce column mins; modal overlay avoids Save/footer viewport clip */
.task-config-pipeline-grid { width: 100%; }
.task-config-pipeline-col { min-width: 0; }
/* phaseB.6.80: Params panel right of Pipeline Steps (parallel row; reuse dirs-right flex/min-width pattern) */
.pipeline-steps-main-row {
    /* phaseB.6.81: Params uses remaining width; prefer single row when space allows */
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
@media (max-width: 900px) {
    .pipeline-steps-main-row { flex-wrap: wrap; }
}
.pipeline-steps-left {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 55%;
    display: flex;
    flex-direction: column;
}
@media (max-width: 900px) {
    .pipeline-steps-left { max-width: none; }
}
.pipeline-steps-params {
    flex: 1 1 280px;
    min-width: 0;
    /* phaseB.6.83: taller Params beside Steps; H hidden; V only if Params overflow */
    max-height: min(36rem, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid #475569;
    border-radius: 0.375rem;
    padding: 0.35rem 0.45rem;
    background: rgba(15, 23, 42, 0.28);
}
html:not(.dark) .pipeline-steps-params {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.pipeline-steps-main-row .pipeline-steps-params {
    margin-top: 0;
    border-top: 1px solid #475569;
    padding-top: 0.35rem;
}
html:not(.dark) .pipeline-steps-main-row .pipeline-steps-params { border-top-color: #cbd5e1; }
.task-config-pipeline-col .pipeline-steps-params { min-width: 0; }

/* phaseB.6.57: STC Directories column immediately right of Pipeline Steps */
.task-config-stc-directories-col { min-width: 0; }
/* phaseB.6.84/Soft 1.0.20: Option B Modules|Steps|Params primary (~20/33/47 grid); Steps no H/V scroll; fallback A@1100 / C@900 */

/* phaseB.6.86: Option B Modules - SINGLE ROW full name + compact Unset|On|Off (owner rejected 6.85 stack); no Do... ellipsis */
.pipeline-layout-b .pipeline-module-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.55rem;
}
.pipeline-layout-b .pipeline-module-label {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.2;
}
.pipeline-layout-b .pipeline-module-seg {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}
.pipeline-layout-b .pipeline-module-seg-btn {
    flex: 0 0 auto;
    min-width: 2.1rem;
    padding: 0.1rem 0.28rem;
    font-size: 0.65rem;
}
/* Soft tip beta-v1.0.28: Option B Modules|Steps|Params match Client stars ~0.65/0.95/1.55 (~21/30/49). */
.pipeline-steps-main-row.pipeline-layout-b {
    display: grid;
    grid-template-columns: minmax(160px, 0.65fr) minmax(220px, 0.95fr) minmax(360px, 1.55fr);
    gap: 0.45rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.pipeline-layout-b .pipeline-steps-modules {
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-self: stretch;
}
.pipeline-layout-b .pipeline-modules-list {
    max-height: min(28rem, 55vh);
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
}
.pipeline-layout-b .pipeline-steps-left {
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-self: stretch;
}
.pipeline-layout-b .pipeline-steps-table-wrap {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    max-height: none;
}
.pipeline-layout-b .pipeline-steps-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.pipeline-layout-b .pipeline-steps-table th,
.pipeline-layout-b .pipeline-steps-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* phaseB.6.84 row compact: fit ≤12-16 steps without Steps V-scroll */
.pipeline-layout-b .pipeline-steps-table thead th,
.pipeline-layout-b .pipeline-steps-table tbody td {
    padding: 0.18rem 0.35rem;
    line-height: 1.25;
    font-size: 0.72rem;
}
.pipeline-layout-b .pipeline-steps-table tbody tr { height: 1.7rem; }

.pipeline-layout-b .pipeline-steps-params {
    min-width: 0;
    max-width: none;
    max-height: min(28rem, 62vh);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    align-self: start;
    min-height: 6.5rem;
}
@media (max-width: 1100px) {
    /* fallback A-ish: Modules full-width strip above; Steps|Params row */
    .pipeline-steps-main-row.pipeline-layout-b {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        grid-template-areas:
            "modules modules"
            "steps params";
    }
    .pipeline-layout-b .pipeline-steps-modules {
        grid-area: modules;
        max-height: 9rem;
    }
    .pipeline-layout-b .pipeline-modules-list { max-height: 6.5rem; }
    .pipeline-layout-b .pipeline-steps-left { grid-area: steps; }
    .pipeline-layout-b .pipeline-steps-params { grid-area: params; }
}
@media (max-width: 900px) {
    /* force C: stack Modules, Steps, Params */
    .pipeline-steps-main-row.pipeline-layout-b {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }
    .pipeline-layout-b .pipeline-steps-modules,
    .pipeline-layout-b .pipeline-steps-left,
    .pipeline-layout-b .pipeline-steps-params {
        max-width: none;
        min-width: 0;
        width: 100%;
    }
}

/* phaseB.6.83: no needless H/V scroll in Task Config Steps */
.task-config-pipeline-col .pipeline-steps-table-wrap { min-width: 0; width: 100%; overflow-x: hidden; overflow-y: hidden; max-height: none; }
.task-config-pipeline-col .pipeline-layout-b .pipeline-steps-table-wrap { overflow-x: hidden; overflow-y: hidden; }
.task-config-pipeline-col .pipeline-steps-table { width: 100%; min-width: 0; }
.task-config-pipeline-col .pipeline-modules-list { min-width: 0; }
.task-config-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.75rem;
    box-sizing: border-box;
}
@media (min-height: 720px) {
    .task-config-modal-overlay { align-items: center; }
}
.task-config-modal-shell {
    max-height: min(92vh, calc(100% - 0.5rem));
    overflow: hidden;
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0;
}


        /* phaseB.6.56: ClientPublish PipelineSteps order hard/soft hint
           phaseB.6.60: .pipeline-steps-order-input for editable Order cell (cc only) */
        .pipeline-steps-order-input {
            width: 4.2rem;
            max-width: 100%;
            padding: 2px 4px;
            border-radius: 4px;
            border: 1px solid #64748b;
            background: #0f172a;
            color: #e2e8f0;
            font-size: 0.75rem;
            font-variant-numeric: tabular-nums;
        }
        html:not(.dark) .pipeline-steps-order-input { background: #fff; color: #0f172a; border-color: #94a3b8; }
        .pipeline-steps-order-input:focus { outline: 2px solid #38bdf8; outline-offset: 1px; }
        .pipeline-steps-order-hint { padding: 6px 8px; border-radius: 6px; border: 1px solid transparent; }
        .pipeline-steps-order-hint.has-errors { border-color: #dc2626; background: rgba(127, 29, 29, 0.35); color: #fecaca; }
        .pipeline-steps-order-hint.has-warnings { border-color: #d97706; background: rgba(120, 53, 15, 0.35); color: #fde68a; }
        .pipeline-steps-order-hint ul { margin: 4px 0 0 1.1rem; padding: 0; list-style: disc; }
        .pipeline-steps-order-hint li { margin: 2px 0; }
        html:not(.dark) .pipeline-steps-order-hint.has-errors { background: #fef2f2; color: #991b1b; }
        html:not(.dark) .pipeline-steps-order-hint.has-warnings { background: #fffbeb; color: #92400e; }

/* Soft tip beta-v1.0.24: Params label auto-width (nowrap) — no fixed 16rem floor; input fills rest */
.pipeline-steps-params .pipeline-steps-param-label,
.pipeline-steps-params label.pipeline-steps-param-label {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
    width: auto;
    max-width: 12.5rem;
    overflow: visible;
    text-overflow: clip;
    padding-right: 0.25rem;
}
