@import url("tokens.css?v=20261021-1");
/* Hallmark: existing FXNICE workbench; design-system: design.md; designed-as-app.
   Pre-emit critique: P5 H4 E4 S5 R5 V4. */
html, body { overflow-x: clip; }
.compact-shell { background: var(--fx-ui-soft); font-family: var(--fx-ui-font); }
.compact-shell [hidden] { display: none !important; }
.compact-shell .shell-sidebar { width: 232px; flex-basis: 232px; padding: var(--fx-ui-space-5) var(--fx-ui-space-4); }
.compact-shell .brand { gap: var(--fx-ui-space-2); }
.compact-shell .brand-mark { flex: 0 0 36px; width: 36px; height: 36px; border-radius: var(--fx-ui-radius); }
.compact-shell .brand-title { font-size: .85rem; }
.compact-shell .brand-subtitle { font-size: .7rem; }
.compact-shell .shell-topbar { padding: var(--fx-ui-space-3) var(--fx-ui-space-5); backdrop-filter: none; }
.compact-shell .shell-content { padding: var(--fx-ui-space-5); min-width: 0; }
.compact-shell .panel { border-radius: var(--fx-ui-radius); box-shadow: none; }
.compact-shell .page-header { margin-bottom: var(--fx-ui-space-4); }
.compact-shell .page-header h1 { font-size: 1.4rem; margin: 0; font-style: normal; }
.compact-shell h1:focus { outline: none; }
.compact-shell .status-ok { background: var(--fx-ui-soft); font-weight: 500; }
.compact-shell button:focus-visible, .compact-shell summary:focus-visible, .compact-shell a:focus-visible,
.compact-shell input:focus-visible, .compact-shell select:focus-visible { outline: 2px solid var(--fx-ui-accent); outline-offset: 3px; }
.compact-nav { gap: var(--fx-ui-space-1); position: relative; }
.compact-nav .nav-link { white-space: nowrap; font-size: .92rem; padding: var(--fx-ui-space-3); border-radius: var(--fx-ui-radius); }
.nav-more summary { cursor: pointer; list-style: none; }
.nav-more summary::-webkit-details-marker, .ui-menu summary::-webkit-details-marker { display: none; }
.nav-more > summary::after, .ui-menu > summary::after { content: "+"; margin-inline-start: var(--fx-ui-space-2); opacity: .65; }
.nav-more[open] > summary::after, .ui-menu[open] > summary::after { content: "-"; }
.nav-more-links { padding-inline-start: var(--fx-ui-space-3); border-inline-start: 1px solid var(--fx-ui-nav-hover); margin-inline-start: var(--fx-ui-space-3); }
.nav-more-links .nav-link { font-size: .84rem; }
.quiet-text, .stat-detail { color: var(--fx-ui-muted); font-size: .78rem; }
.navigation-status { position: fixed; inset-block-start: 64px; inset-inline-end: var(--fx-ui-space-4); z-index: 200; padding: var(--fx-ui-space-2) var(--fx-ui-space-3); border: 1px solid var(--fx-ui-line); border-radius: var(--fx-ui-radius); background: var(--fx-ui-paper); color: var(--fx-ui-muted); font-size: .8rem; box-shadow: var(--fx-ui-shadow); pointer-events: none; }
.is-page-navigating .compact-nav a[aria-busy="true"] { background: var(--fx-ui-nav-hover); }
.is-page-navigating .shell-content { cursor: progress; }
.overview-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--fx-ui-space-3); }
.overview-stat { display: block; text-decoration: none; color: var(--fx-ui-ink); border-radius: var(--fx-ui-radius); padding: var(--fx-ui-space-4); background: var(--fx-ui-paper); }
.overview-stat:hover { border-color: var(--fx-ui-accent); color: var(--fx-ui-ink); }
.overview-stat .stat-value { font-size: 1.65rem; line-height: 1.2; margin-bottom: var(--fx-ui-space-2); font-variant-numeric: tabular-nums; }
.overview-stat .stat-label { font-size: .8rem; }
.overview-extra summary { cursor: pointer; color: var(--fx-ui-muted); font-size: .8rem; width: fit-content; padding-block: var(--fx-ui-space-2); }
.overview-extra-grid { display: flex; flex-wrap: wrap; gap: var(--fx-ui-space-3) var(--fx-ui-space-5); font-size: .8rem; padding: var(--fx-ui-space-3); border: 1px solid var(--fx-ui-line); border-radius: var(--fx-ui-radius); background: var(--fx-ui-paper); }
.vps-workspace { padding: var(--fx-ui-space-4) !important; }
.vps-workbar { display: flex; gap: var(--fx-ui-space-3); align-items: center; justify-content: space-between; margin-bottom: var(--fx-ui-space-3); }
.vps-search { flex: 1; max-width: 320px; min-width: 100px; font-size: .85rem; }
.vps-menu-bar { flex-shrink: 0; }
.ui-menu { position: relative; }
.ui-menu > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.ui-menu[open] > summary { border-color: var(--fx-ui-accent); color: var(--fx-ui-accent); }
.ui-menu-panel { position: absolute; z-index: 100; inset-inline-end: 0; top: calc(100% + var(--fx-ui-space-2)); display: grid; gap: var(--fx-ui-space-2); width: 240px; padding: var(--fx-ui-space-3); background: var(--fx-ui-paper); border: 1px solid var(--fx-ui-line); border-radius: var(--fx-ui-radius); box-shadow: var(--fx-ui-shadow); text-align: start; }
.ui-menu-panel > label { font-size: .8rem; }
.ui-menu-panel .btn { white-space: nowrap; text-align: start; }
.column-options { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 280px; }
.column-options label { display: flex; gap: var(--fx-ui-space-2); align-items: center; white-space: nowrap; min-height: 28px; }
.column-options > button { grid-column: 1 / -1; }
.column-options input { width: 15px; height: 15px; accent-color: var(--fx-ui-accent); }
.vps-status-strip { display: flex; flex-wrap: wrap; gap: var(--fx-ui-space-2) var(--fx-ui-space-4); align-items: center; margin-bottom: var(--fx-ui-space-3); }
.status-tabs { display: flex; flex-wrap: wrap; gap: var(--fx-ui-space-1); }
.status-tabs button { background: transparent; border: 0; color: var(--fx-ui-muted); font-size: .82rem; padding: var(--fx-ui-space-2); border-radius: 6px; white-space: nowrap; }
.status-tabs button:hover, .status-tabs button.selected { color: var(--fx-ui-accent); background: var(--fx-ui-accent-soft); }
.queue-link { font-size: .8rem; text-decoration: none; }
.vps-workspace .dense-table-wrap { max-height: calc(100dvh - 230px); min-height: 300px; }
.vps-configurable-table { table-layout: fixed; width: 100%; }
.vps-configurable-table th { position: relative; overflow: hidden; padding-inline-end: var(--fx-ui-space-3); }
.vps-configurable-table td { overflow: hidden; text-overflow: ellipsis; }
.vps-configurable-table .dense-input { width: 100%; min-width: 0; max-width: 100%; }
.vps-configurable-table .resource-bar { width: 100%; max-width: 110px; }
.vps-configurable-table td[data-column="Actions"] { overflow: visible; }
.column-resize-handle { position: absolute; inset-inline-end: 0; top: 0; width: 8px; height: 100%; cursor: col-resize; touch-action: none; }
.column-resize-handle:hover, .column-resize-handle:focus-visible { background: var(--fx-ui-accent-soft); }
.is-resizing { user-select: none; }
.task-tools { display: flex; gap: var(--fx-ui-space-2); margin-bottom: var(--fx-ui-space-3); }
.task-tools input { flex: 1; max-width: 400px; min-width: 100px; }
.task-tools select { width: 130px; }
.task-status-tabs { margin-bottom: var(--fx-ui-space-3); }
.task-completion { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-ui-space-3); font-size: .8rem; margin-block: var(--fx-ui-space-3); }
.task-completion progress { width: 150px; height: 6px; accent-color: var(--fx-ui-accent); }
.task-table { min-width: 820px; }
.task-table th, .task-table td { font-size: .82rem; }
.task-table td:not(.task-result) { white-space: nowrap; }
.task-table-wrap { max-height: calc(100dvh - 360px); }
.task-result { max-width: 600px; overflow-wrap: anywhere; }
.task-detail summary { cursor: pointer; color: var(--fx-ui-accent); width: fit-content; font-size: .75rem; }
.task-detail[open] { margin-top: var(--fx-ui-space-2); }
.task-detail > div { padding-top: var(--fx-ui-space-1); }
@media (max-width: 75rem) { .overview-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 64rem) {
    .compact-shell .shell-sidebar { width: auto; flex-basis: auto; min-height: auto; padding: var(--fx-ui-space-3) var(--fx-ui-space-4); }
    .compact-shell .brand { margin-bottom: var(--fx-ui-space-2); }
    .compact-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
    .compact-nav .nav-link { display: block; text-align: center; padding: var(--fx-ui-space-2) var(--fx-ui-space-1); font-size: .8rem; }
    .nav-more-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: absolute; z-index: 130; top: 100%; inset-inline: 0; padding: var(--fx-ui-space-2); margin: var(--fx-ui-space-2) 0 0; border: 1px solid var(--fx-ui-nav-hover); background: var(--fx-ui-nav); border-radius: var(--fx-ui-radius); box-shadow: var(--fx-ui-shadow); }
    .compact-shell .shell-content { padding: var(--fx-ui-space-4); }
}
@media (max-width: 48rem) {
    .compact-shell .shell-sidebar { position: relative; width: 100%; padding: var(--fx-ui-space-3); }
    .compact-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .compact-shell .shell-main { overflow: visible; }
    .compact-shell .shell-topbar { padding: var(--fx-ui-space-2) var(--fx-ui-space-3); }
    .compact-shell .topbar-title { display: none; }
    .compact-shell .topbar-user { gap: var(--fx-ui-space-2); align-items: center; font-size: .8rem; }
    .compact-shell .topbar-user > span { width: auto; }
    .compact-shell .topbar-user .btn { white-space: nowrap; font-size: .76rem; }
    .compact-shell .shell-content { padding: var(--fx-ui-space-3); }
    .compact-shell .page-header .toolbar { flex-wrap: wrap; }
    .overview-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fx-ui-space-2); }
    .overview-stat { padding: var(--fx-ui-space-3); }
    .overview-stat .stat-value { font-size: 1.4rem; }
    .stat-detail { font-size: .72rem; overflow-wrap: anywhere; }
    .compact-shell .code-box { max-height: 112px; overflow: auto; }
    .vps-workbar { align-items: stretch; flex-direction: column; gap: var(--fx-ui-space-2); }
    .vps-search { max-width: none; min-height: 34px; }
    .vps-menu-bar { justify-content: space-between; flex-wrap: wrap; gap: var(--fx-ui-space-1); }
    .vps-menu-bar .btn { font-size: .76rem; padding: .3rem .42rem; }
    .ui-menu-panel { position: fixed; inset-inline: var(--fx-ui-space-3); top: 9rem; width: auto; max-height: calc(100dvh - 11rem); overflow-y: auto; }
    .vps-status-strip { gap: var(--fx-ui-space-2); }
    .status-tabs { gap: 0; }
    .status-tabs button { font-size: .76rem; padding: 6px; }
    .vps-workspace { padding: var(--fx-ui-space-2) !important; background: var(--fx-ui-soft); }
    .vps-workspace .dense-table-wrap { max-height: none; min-height: 0; overflow: visible; }
    .vps-configurable-table { display: block; min-width: 0 !important; margin: 0; }
    .vps-configurable-table colgroup, .vps-configurable-table thead { display: none; }
    .vps-configurable-table tbody { display: grid; gap: var(--fx-ui-space-3); }
    .vps-configurable-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fx-ui-space-2); padding: var(--fx-ui-space-3); background: var(--fx-ui-paper); border: 1px solid var(--fx-ui-line); border-radius: var(--fx-ui-radius); }
    .vps-configurable-table td { display: block; border: 0; padding: 0; min-width: 0 !important; white-space: normal; overflow: visible; overflow-wrap: anywhere; box-shadow: none !important; }
    .vps-configurable-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--fx-ui-muted); margin-bottom: var(--fx-ui-space-1); }
    .vps-configurable-table td[data-column="Select"] { grid-column: 2; justify-self: end; grid-row: 1; }
    .vps-configurable-table td[data-column="Ip"] { grid-column: 1; grid-row: 1; min-width: 150px !important; }
    .vps-configurable-table td[data-column="Ip"]::before { display: none; }
    .vps-configurable-table td[data-column="Note"], .vps-configurable-table td[data-column="Actions"] { grid-column: 1 / -1; }
    .vps-configurable-table .dense-input { width: 100%; }
    .vps-configurable-table .dense-actions { justify-content: flex-end; padding-top: var(--fx-ui-space-2); border-top: 1px solid var(--fx-ui-line); }
    .vps-configurable-table .resource-bar { max-width: none; }
    .vps-configurable-table .vps-empty td { grid-column: 1 / -1; }
    .task-tools { flex-wrap: wrap; }
    .task-tools input { flex-basis: 100%; max-width: none; }
    .task-tools select { flex: 1; }
    .task-table-wrap { max-height: none; }
    .task-table { min-width: 0; }
    .task-table thead { display: none; }
    .task-table, .task-table tbody { display: block; }
    .task-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fx-ui-space-2); padding-block: var(--fx-ui-space-3); border-bottom: 1px solid var(--fx-ui-line); }
    .task-table td { display: block; padding: 0; border: 0; white-space: normal !important; overflow-wrap: anywhere; box-shadow: none !important; }
    .task-table td::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--fx-ui-muted); }
    .task-table td:last-child { grid-column: 1 / -1; }
}
@media (max-width: 22.5rem) {
    .vps-configurable-table td[data-column="ExpiresOn"],
    .vps-configurable-table td[data-column="RemainingDays"] { grid-column: 1 / -1; }
}

/* Single-server terminal workbench: data first, infrequent controls disclosed.
   Hallmark pre-emit critique: P5 H5 E4 S5 R5 V4. */
.terminal-view-heading { display: flex; flex-wrap: wrap; gap: var(--fx-ui-space-2); align-items: center; min-width: 0; }
.terminal-view-heading h1 { min-width: 0; overflow-wrap: anywhere; }
.terminal-view-heading h1 > span { font-size: .8rem; color: var(--fx-ui-muted); font-weight: 400; }
.terminal-back-link { color: var(--fx-ui-muted); font-size: .8rem; text-decoration: none; white-space: nowrap; }
.terminal-back-link:hover { color: var(--fx-ui-accent); }
.terminal-controlbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-ui-space-2); position: relative; margin-bottom: var(--fx-ui-space-3); }
.terminal-controlbar .terminal-search { flex: 1; max-width: 440px; min-width: 140px; }
.terminal-controlbar .terminal-refresh-time { margin-inline-start: auto; white-space: nowrap; }
.terminal-controlbar .terminal-filter-tools { position: static; }
.terminal-controlbar .terminal-filter-body { inset-inline-start: 0; inset-inline-end: auto; width: min(760px, calc(100vw - 280px)); max-height: calc(100dvh - 200px); overflow: auto; }
.terminal-filter-body .inline-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.terminal-table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--fx-ui-space-2); margin-bottom: var(--fx-ui-space-2); }
.terminal-view-stats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-ui-space-3); font-size: .8rem; color: var(--fx-ui-muted); }
.terminal-view-stats > span { white-space: nowrap; }
.terminal-view-stats strong { color: var(--fx-ui-ink); font-variant-numeric: tabular-nums; }
.terminal-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .4rem 0 .65rem; font-size: .78rem; }
.terminal-pagination .toolbar { align-items: center; flex-wrap: wrap; gap: .35rem; }
.terminal-pagination select { width: 4.5rem; }
.terminal-workbench .terminal-live-table-wrap { min-height: 180px; max-height: calc(100dvh - 230px); }
.terminal-workbench .alert { padding: var(--fx-ui-space-2) var(--fx-ui-space-3); margin-bottom: var(--fx-ui-space-3); font-size: .82rem; }
@media (max-width: 64rem) {
    .terminal-controlbar .terminal-filter-body { width: calc(100vw - 48px); }
}
@media (max-width: 48rem) {
    .terminal-view-heading { align-items: baseline; }
    .terminal-view-heading h1 { flex-basis: 100%; }
    .terminal-controlbar .terminal-search { max-width: none; flex-basis: 100%; }
    .terminal-controlbar .terminal-filter-body { inset-inline: var(--fx-ui-space-3); width: auto; max-height: calc(100dvh - 11rem); }
    .terminal-filter-body .inline-form-grid { grid-template-columns: minmax(0, 1fr); }
    .terminal-workbench .terminal-live-table-wrap { max-height: calc(100dvh - 350px); min-height: 180px; }
    .terminal-table-toolbar .action-group { gap: var(--fx-ui-space-1); }
    .terminal-table-toolbar .action-group .btn { white-space: nowrap; }
    .terminal-workbench .mt4-table .pin-col { position: static; box-shadow: none; }
}

/* Hallmark: existing FXNICE workbench; design-system: design.md; designed-as-app.
   Pre-emit critique: P5 H5 E4 S5 R5 V4. */
.terminal-workbench {
    --terminal-select-width: 36px;
    --terminal-ip-width: 126px;
    --terminal-account-width: 128px;
    --terminal-warning: color-mix(in srgb, var(--fx-warning) 5%, var(--fx-ui-paper));
    --terminal-selected: color-mix(in srgb, var(--fx-ui-accent) 7%, var(--fx-ui-paper));
    --terminal-hover: color-mix(in srgb, var(--fx-ui-accent) 3%, var(--fx-ui-paper));
}
.terminal-workbench .btn, .terminal-workbench summary { white-space: nowrap; }
.terminal-workbench .terminal-refresh-time { white-space: nowrap; font-size: .72rem; }
.terminal-workbench .terminal-controlbar { margin-bottom: var(--fx-ui-space-3); }
.terminal-workbench .terminal-search { max-width: 480px; }
.terminal-workbench .terminal-table-toolbar { padding-bottom: var(--fx-ui-space-2); margin: 0; }
.terminal-workbench .terminal-view-stats { gap: var(--fx-ui-space-4); }
.terminal-workbench .terminal-view-stats strong { font-weight: 700; font-size: .94rem; margin-inline-start: var(--fx-ui-space-1); }
.terminal-workbench .terminal-selection-badge { color: var(--fx-ui-accent); background: var(--fx-ui-accent-soft); font-size: .74rem; }
.terminal-workbench .terminal-pagination { padding: var(--fx-ui-space-3) 0 0; margin-top: var(--fx-ui-space-2); border-top: 1px solid var(--fx-ui-line); }
.terminal-workbench .terminal-pagination .toolbar { gap: var(--fx-ui-space-1); }
.terminal-workbench .terminal-live-table-wrap { border-radius: 0; border-inline: 0; border-color: var(--fx-ui-line); }
.terminal-workbench .mt4-table { table-layout: fixed; width: 100%; min-width: 1562px; margin-bottom: 0; }
.terminal-workbench.server-terminal-page .mt4-table { min-width: 1436px; }
.terminal-col-select { width: var(--terminal-select-width); }
.terminal-col-ip { width: var(--terminal-ip-width); }
.terminal-col-account { width: var(--terminal-account-width); }
.terminal-col-principal { width: 68px; }
.terminal-col-server { width: 152px; }
.terminal-col-money { width: 140px; }
.terminal-col-connection { width: 96px; }
.terminal-col-monitor { width: 140px; }
.terminal-col-path { width: 146px; }
.terminal-col-actions { width: 258px; }
.terminal-workbench .mt4-table .pin-select { width: var(--terminal-select-width); min-width: var(--terminal-select-width); left: 0; text-align: center; }
.terminal-workbench .mt4-table .pin-server { width: var(--terminal-ip-width); min-width: var(--terminal-ip-width); left: var(--terminal-select-width); }
.terminal-workbench .mt4-table .pin-account { width: var(--terminal-account-width); min-width: var(--terminal-account-width); left: calc(var(--terminal-select-width) + var(--terminal-ip-width)); box-shadow: 1px 0 0 var(--fx-ui-line); }
.terminal-workbench.server-terminal-page .mt4-table .pin-account { left: var(--terminal-select-width); }
.terminal-workbench .mt4-table .pin-principal { position: static; min-width: 0; width: auto; box-shadow: none; }
.terminal-workbench .terminal-live-table-wrap .table > :not(caption) > * > * { padding: 6px var(--fx-ui-space-2); line-height: 1.3; }
.terminal-workbench .mt4-table th { font-weight: 600; color: var(--fx-ui-muted); font-size: .74rem; }
.terminal-workbench .mt4-table td { font-size: .79rem; }
.terminal-workbench .mt4-table tbody tr.terminal-row-online { --bs-table-bg: var(--fx-ui-paper); }
.terminal-workbench .mt4-table tbody tr.terminal-row-warning { --bs-table-bg: var(--terminal-warning); }
.terminal-workbench .mt4-table tbody tr.terminal-row-offline { --bs-table-bg: var(--fx-ui-soft); }
.terminal-workbench .mt4-table tbody tr { --bs-table-hover-bg: var(--terminal-hover); }
.terminal-workbench .mt4-table tbody tr:has(td[data-column="Select"] input:checked) { --bs-table-bg: var(--terminal-selected); }
.terminal-workbench input[type="checkbox"] { width: 16px; height: 16px; vertical-align: middle; accent-color: var(--fx-ui-accent); }
.terminal-workbench .terminal-account-number { font-size: .9rem; font-weight: 700; }
.terminal-workbench .terminal-server-name, .terminal-workbench .terminal-broker, .terminal-workbench .terminal-symbol { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-workbench .terminal-money-cell { min-width: 0; }
.terminal-workbench .terminal-money-cell > div { line-height: 1.3; }
.terminal-workbench .terminal-money-cell .money-main { font-size: .88rem; }
.terminal-workbench .terminal-money-cell .money-sub { display: inline-block; }
.terminal-workbench .terminal-money-cell .profit-rate { font-size: .68rem; padding: 1px 6px; margin-inline-start: var(--fx-ui-space-1); margin-top: 2px; }
.terminal-workbench .terminal-account-meta, .terminal-workbench .terminal-broker, .terminal-workbench .terminal-symbol,
.terminal-workbench .money-sub, .terminal-workbench .monitor-version-line { font-size: .7rem; margin-top: var(--fx-ui-space-1); }
.terminal-workbench .terminal-ea-name { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .79rem; font-weight: 600; overflow-wrap: anywhere; }
.terminal-workbench .path-cell > div { overflow: hidden; text-overflow: ellipsis; color: var(--fx-ui-muted); font-size: .7rem; }
.terminal-workbench .compact-row-details > summary { font-size: .72rem; color: var(--fx-ui-accent); cursor: pointer; }
.terminal-workbench .terminal-detail-row > td { padding: 0 !important; white-space: normal !important; }
.terminal-detail-content { padding: var(--fx-ui-space-3) var(--fx-ui-space-4); border-inline-start: 3px solid var(--fx-ui-accent); background: var(--fx-ui-soft); }
.terminal-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--fx-ui-space-3); }
.terminal-detail-heading strong { min-width: 0; overflow-wrap: anywhere; }
.terminal-detail-heading strong span { display: inline-block; color: var(--fx-ui-muted); font-size: .74rem; font-weight: 400; margin-inline-start: var(--fx-ui-space-2); }
.terminal-detail-content .details-panel { margin-top: var(--fx-ui-space-2); background: var(--fx-ui-paper); border-radius: var(--fx-ui-radius); padding: var(--fx-ui-space-4); max-height: 440px; overflow: auto; white-space: normal; overflow-wrap: anywhere; }
.terminal-detail-content .details-panel .muted { font-size: .76rem; }
.terminal-detail-content .details-panel h6 { font-size: .84rem; font-weight: 600; }
.terminal-detail-content .details-panel .action-group { gap: var(--fx-ui-space-2); }
@media (min-width: 64.001rem) {
    .terminal-workbench { display: flex; flex-direction: column; height: calc(100dvh - 100px); min-height: 380px; }
    .terminal-workbench > .page-header, .terminal-workbench > .terminal-controlbar, .terminal-workbench > .alert { flex: 0 0 auto; }
    .terminal-workbench .mt4-live-panel { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
    .terminal-workbench .terminal-table-toolbar, .terminal-workbench .terminal-pagination { flex: 0 0 auto; }
    .terminal-workbench .terminal-live-table-wrap { flex: 1 1 auto; min-height: 160px; max-height: none; }
}
@media (max-width: 64rem) {
    .terminal-workbench .terminal-live-table-wrap { max-height: 65dvh; }
}
@media (max-width: 48rem) {
    .terminal-workbench .compact-page-header { flex-direction: column; align-items: stretch; gap: var(--fx-ui-space-2); }
    .terminal-workbench .page-header > .toolbar { gap: var(--fx-ui-space-2); }
    .terminal-workbench .terminal-refresh-time { flex-basis: 100%; order: 2; }
    .terminal-workbench .terminal-controlbar { gap: var(--fx-ui-space-2); }
    .terminal-workbench .terminal-search { min-height: 38px; }
    .terminal-workbench .terminal-table-toolbar { align-items: stretch; gap: var(--fx-ui-space-3); padding-bottom: var(--fx-ui-space-3); }
    .terminal-workbench .terminal-view-stats { gap: var(--fx-ui-space-2) var(--fx-ui-space-3); }
    .terminal-workbench .terminal-selection-badge { flex-basis: 100%; width: fit-content; }
    .terminal-workbench .terminal-live-table-wrap { max-height: none; min-height: 0; overflow: visible; border: 0; }
    .terminal-workbench .mt4-table { display: block; min-width: 0 !important; }
    .terminal-workbench .mt4-table colgroup, .terminal-workbench .mt4-table thead { display: none; }
    .terminal-workbench .mt4-table tbody { display: grid; gap: var(--fx-ui-space-3); }
    .terminal-workbench .mt4-table tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--fx-ui-space-3); border: 1px solid var(--fx-ui-line); border-radius: var(--fx-ui-radius); padding: var(--fx-ui-space-3); background: var(--bs-table-bg, var(--fx-ui-paper)); }
    .terminal-workbench .mt4-table td { display: block; border: 0; padding: 0 !important; min-width: 0 !important; width: auto !important; white-space: normal; overflow-wrap: anywhere; box-shadow: none !important; }
    .terminal-workbench .mt4-table td, .terminal-workbench .mt4-table tbody > tr:hover > td.pin-col { background: transparent; }
    .terminal-workbench .mt4-table tbody > tr:hover { background: var(--terminal-hover); }
    .terminal-workbench .mt4-table td[data-label]::before { content: attr(data-label); display: block; color: var(--fx-ui-muted); font-size: .66rem; margin-bottom: var(--fx-ui-space-1); }
    .terminal-workbench .mt4-table td[data-column="Select"] { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
    .terminal-workbench .mt4-table td[data-column="Select"] input { width: 20px; height: 20px; }
    .terminal-workbench .mt4-table td[data-column="Account"] { grid-column: 1; grid-row: 1; }
    .terminal-workbench .mt4-table td[data-column="Account"]::before { display: none; }
    .terminal-workbench .mt4-table td[data-column="Ip"] { grid-column: 1; grid-row: 2; }
    .terminal-workbench .mt4-table td[data-column="Connection"] { grid-column: 2; grid-row: 2; }
    .terminal-workbench .mt4-table td[data-column="Server"] { grid-column: 1; grid-row: 3; }
    .terminal-workbench .mt4-table td[data-column="Monitor"] { grid-column: 2; grid-row: 3; }
    .terminal-workbench .mt4-table td[data-column="Money"] { grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--fx-ui-space-2); padding-block: var(--fx-ui-space-2) !important; border-block: 1px solid var(--fx-ui-line); }
    .terminal-workbench .mt4-table td[data-column="Money"]::before { display: none; }
    .terminal-workbench .mt4-table td[data-column="Money"] > div { margin: 0; }
    .terminal-workbench .mt4-table td[data-column="Ea"] { grid-column: 1 / -1; grid-row: 5; overflow: visible; }
    .terminal-workbench .mt4-table td[data-column="Principal"] { grid-column: 2; grid-row: 6; }
    .terminal-workbench.server-terminal-page .mt4-table td[data-column="Connection"] { grid-column: 1; grid-row: 2; }
    .terminal-workbench.server-terminal-page .mt4-table td[data-column="Server"] { grid-column: 2; grid-row: 2; }
    .terminal-workbench.server-terminal-page .mt4-table td[data-column="Monitor"] { grid-column: 1; grid-row: 3; }
    .terminal-workbench.server-terminal-page .mt4-table td[data-column="Principal"] { grid-column: 2; grid-row: 3; }
    .terminal-workbench.server-terminal-page .mt4-table td[data-column="Ea"] { grid-column: 1 / -1; }
    .terminal-workbench .status-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .terminal-workbench .mt4-table td[data-column="Path"] { grid-column: 1; grid-row: 6; }
    .terminal-workbench.server-terminal-page .mt4-table td[data-column="Path"] { grid-column: 1 / -1; }
    .terminal-workbench .mt4-table td[data-column="Path"] > div { white-space: normal; overflow-wrap: anywhere; }
    .terminal-workbench .mt4-table td[data-column="Actions"] { grid-column: 1 / -1; grid-row: 7; padding-top: var(--fx-ui-space-2) !important; border-top: 1px solid var(--fx-ui-line); }
    .terminal-workbench .terminal-account-number { font-size: 1rem; }
    .terminal-workbench .terminal-ea-name { display: block; overflow: visible; }
    .terminal-workbench .mt4-table .terminal-empty, .terminal-workbench .mt4-table .terminal-detail-row { grid-template-columns: minmax(0, 1fr); }
    .terminal-workbench .mt4-table .terminal-detail-row { padding: 0; margin-top: calc(-1 * var(--fx-ui-space-3)); border-top: 0; }
    .terminal-workbench .terminal-detail-content { padding: var(--fx-ui-space-3); }
    .terminal-workbench .terminal-detail-heading { align-items: start; }
    .terminal-workbench .terminal-detail-heading strong span { display: block; margin: var(--fx-ui-space-1) 0 0; }
    .terminal-workbench .terminal-detail-content .details-panel { max-height: none; padding: var(--fx-ui-space-3); }
    .terminal-workbench .terminal-pagination { gap: var(--fx-ui-space-2); }
    .terminal-workbench .terminal-pagination .toolbar { gap: var(--fx-ui-space-1); flex-wrap: nowrap; width: 100%; }
    .terminal-workbench .terminal-pagination .btn { padding: .25rem .35rem; font-size: .72rem; }
    .terminal-workbench .terminal-pagination select { width: 3.5rem; min-height: 30px; padding-inline-end: 1rem; }
}

/* Hallmark: modern-minimal workbench, existing navy/blue tokens; design-system: design.md.
   Pre-emit critique: P5 H5 E4 S5 R5 V4. No motion or business-flow changes. */
.streamlined-shell .shell-content { padding: var(--fx-ui-space-4); }
.streamlined-shell .shell-topbar { min-height: 44px; padding: var(--fx-ui-space-2) var(--fx-ui-space-4); justify-content: flex-end; }
.streamlined-shell .topbar-user { gap: var(--fx-ui-space-2); }
.streamlined-shell .account-menu > summary { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.streamlined-shell .account-menu-panel { position: absolute; top: calc(100% + var(--fx-ui-space-2)); inset-inline-start: auto; inset-inline-end: 0; width: 170px; max-height: none; }
.nav-group-label { display: block; color: var(--fx-ui-nav-ink); opacity: .65; font-size: .66rem; padding: var(--fx-ui-space-2) var(--fx-ui-space-3) var(--fx-ui-space-1); grid-column: 1 / -1; }
.streamlined-shell .page-header { gap: var(--fx-ui-space-3); margin-bottom: var(--fx-ui-space-3); align-items: center; }
.streamlined-shell .page-header h1 { font-size: 1.22rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.streamlined-shell .page-subtitle { display: none; }
.streamlined-shell .panel { padding: var(--fx-ui-space-3); border-radius: var(--fx-ui-radius); background: var(--fx-ui-paper); }
.streamlined-shell .hero-panel { background: var(--fx-ui-paper); }
.streamlined-shell h5 { font-size: .9rem; font-weight: 600; margin-bottom: var(--fx-ui-space-2); }
.streamlined-shell .panel-title-row { gap: var(--fx-ui-space-2); margin-bottom: var(--fx-ui-space-2); }
.streamlined-shell .btn:not(.btn-sm) { padding: .3rem .6rem; font-size: .8rem; }
.streamlined-shell .btn, .streamlined-shell summary { white-space: nowrap; }
.streamlined-shell .toolbar, .streamlined-shell .action-group { gap: var(--fx-ui-space-2); align-items: center; }
.streamlined-shell .form-control, .streamlined-shell .form-select { min-height: 32px; font-size: .82rem; }
.streamlined-shell .form-label { font-size: .76rem; margin-bottom: var(--fx-ui-space-1); }
.streamlined-shell .inline-form-grid { gap: var(--fx-ui-space-2) var(--fx-ui-space-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.streamlined-shell .alert { padding: var(--fx-ui-space-2) var(--fx-ui-space-3); font-size: .82rem; }
.streamlined-shell .mb-4 { margin-bottom: var(--fx-ui-space-3) !important; }
.streamlined-shell .row.g-4 { --bs-gutter-x: 1rem; --bs-gutter-y: .75rem; }
.streamlined-shell .stat-grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-ui-space-2) var(--fx-ui-space-5); padding: var(--fx-ui-space-2) var(--fx-ui-space-3); border: 1px solid var(--fx-ui-line); background: var(--fx-ui-paper); border-radius: var(--fx-ui-radius); }
.streamlined-shell .stat-grid .stat-card { display: flex; align-items: baseline; gap: var(--fx-ui-space-2); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.streamlined-shell .stat-grid .stat-label { font-size: .74rem; margin: 0; white-space: nowrap; }
.streamlined-shell .stat-grid .stat-value { font-size: 1.05rem; margin: 0; font-variant-numeric: tabular-nums; }
.streamlined-shell .table-wrap { max-width: 100%; }
.streamlined-shell .table > :not(caption) > * > * { padding: .35rem .45rem; font-size: .79rem; }
.streamlined-shell .table thead th { font-weight: 600; }
.streamlined-shell .overview-stat { padding: var(--fx-ui-space-3); }
.streamlined-shell .overview-stat .stat-value { font-size: 1.45rem; margin-bottom: var(--fx-ui-space-1); }
.streamlined-shell .overview-stat .stat-label { margin-bottom: var(--fx-ui-space-1); }
.home-page .table-wrap { max-height: 360px; }
.home-page .table td:last-child { max-width: 360px; overflow-wrap: anywhere; }
.workspace-disclosure { border: 1px solid var(--fx-ui-line); border-radius: var(--fx-ui-radius); background: var(--fx-ui-paper); min-width: 0; }
.workspace-disclosure > summary { display: flex; align-items: center; gap: var(--fx-ui-space-2); list-style: none; cursor: pointer; color: var(--fx-ui-ink); font-size: .82rem; font-weight: 500; padding: var(--fx-ui-space-2) var(--fx-ui-space-3); }
.workspace-disclosure > summary::-webkit-details-marker { display: none; }
.workspace-disclosure > summary::after { content: "+"; margin-inline-start: auto; color: var(--fx-ui-muted); }
.workspace-disclosure[open] > summary { border-bottom: 1px solid var(--fx-ui-line); color: var(--fx-ui-accent); }
.workspace-disclosure[open] > summary::after { content: "-"; }
.workspace-disclosure > summary .quiet-text { font-size: .7rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.workspace-disclosure-body { padding: var(--fx-ui-space-3); min-width: 0; overflow-wrap: anywhere; }
.workspace-disclosure-body .panel { padding: 0; border: 0; box-shadow: none; }
.workspace-disclosure-body input[type="file"] { max-width: 100%; font-size: .78rem; }
.accounts-optional-panel > .row { margin: 0; padding: var(--fx-ui-space-3); }
.streamlined-shell .accounts-page .accounts-optional-panel { padding: 0; background: var(--fx-ui-paper); }
.streamlined-shell .accounts-page .accounts-optional-panel[open] > summary { margin-bottom: 0; }
.accounts-optional-panel .panel { padding: 0; border: 0; box-shadow: none; }
.streamlined-shell .batch-page .workspace-disclosure.command-card { padding: 0; background: var(--fx-ui-paper); }
.streamlined-shell .files-page > .panel > .table-wrap { min-height: 0; max-height: 65dvh; }
.streamlined-shell .account-search-grid { grid-template-columns: minmax(160px, 2fr) auto minmax(100px, 1fr) minmax(110px, 1fr); align-items: end; }
.workspace-filter-extra { position: relative; }
.workspace-filter-extra > summary { cursor: pointer; font-size: .76rem; padding: 7px var(--fx-ui-space-2); color: var(--fx-ui-muted); }
.workspace-filter-fields { position: absolute; z-index: 15; top: 100%; inset-inline-start: 0; display: grid; gap: var(--fx-ui-space-2); width: 280px; background: var(--fx-ui-paper); padding: var(--fx-ui-space-3); border: 1px solid var(--fx-ui-line); border-radius: var(--fx-ui-radius); box-shadow: var(--fx-ui-shadow); }
.streamlined-shell .account-filter-panel .toolbar { margin-top: var(--fx-ui-space-2) !important; }
.files-page .file-hash-cell { min-width: 85px; max-width: 150px; }
.file-hash-cell details > summary { color: var(--fx-ui-muted); cursor: pointer; font-size: .72rem; }
.file-hash-cell code { display: block; max-width: 150px; overflow-wrap: anywhere; white-space: normal; font-family: var(--fx-ui-font-mono); font-size: .7rem; }
.streamlined-shell .ea-report-page .table-wrap { min-height: 180px !important; max-height: 65dvh !important; }
.streamlined-shell .task-center .task-table-wrap { max-height: calc(100dvh - 280px); }
.streamlined-shell .product-section-title { font-size: .85rem; margin-bottom: var(--fx-ui-space-3); }
.product-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fx-ui-space-3); }
.product-summary > p { grid-column: 1 / -1; margin: 0; }
.product-summary h3 { font-size: .88rem; font-weight: 600; }
.product-summary p { font-size: .82rem; color: var(--fx-ui-muted); margin-bottom: 0; }
.release-item { padding-block: var(--fx-ui-space-3); border-bottom: 1px solid var(--fx-ui-line); }
.release-item > summary { display: flex; gap: var(--fx-ui-space-3); align-items: baseline; cursor: pointer; font-size: .82rem; }
.release-item > summary > span { color: var(--fx-ui-accent); font-size: .74rem; flex-shrink: 0; }
.release-item > p { font-size: .8rem; color: var(--fx-ui-muted); margin: var(--fx-ui-space-2) 0 0; line-height: 1.7; }
.release-older { margin-top: var(--fx-ui-space-3); border: 0; }
.release-older > summary { padding-inline: 0; }
@media (min-width: 64.001rem) {
    .streamlined-shell .terminal-workbench { height: calc(100dvh - 80px); }
}
@media (max-width: 48rem) {
    .streamlined-shell .shell-content { padding: var(--fx-ui-space-3); }
    .streamlined-shell .page-header { flex-direction: column; align-items: stretch; gap: var(--fx-ui-space-2); }
    .streamlined-shell .page-header .toolbar { flex-wrap: wrap; }
    .streamlined-shell .stat-grid { gap: var(--fx-ui-space-2) var(--fx-ui-space-3); }
    .streamlined-shell .stat-grid .stat-value { font-size: .95rem; }
    .streamlined-shell .inline-form-grid { grid-template-columns: minmax(0, 1fr); }
    .streamlined-shell .account-search-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .account-search-grid > div:first-child { grid-column: 1 / -1; }
    .workspace-filter-extra { grid-column: 1 / -1; }
    .workspace-filter-fields { position: static; width: auto; box-shadow: none; }
    .streamlined-shell .workspace-disclosure-body .form-check { display: flex; align-items: baseline; gap: var(--fx-ui-space-2); margin-inline-end: 0; }
    .streamlined-shell .workspace-disclosure-body .form-check-label { white-space: normal; overflow-wrap: anywhere; }
    .streamlined-shell .workspace-disclosure-body .btn { font-size: .75rem; }
    .streamlined-shell .record-tabs { display: flex; gap: var(--fx-ui-space-2); }
    .streamlined-shell .table-toolbar { flex-wrap: wrap; gap: var(--fx-ui-space-2); }
    .streamlined-shell .task-center .task-table-wrap { max-height: none; }
    .product-summary { grid-template-columns: minmax(0, 1fr); }
    .release-item > summary { flex-direction: column; gap: var(--fx-ui-space-1); white-space: normal; }
    .streamlined-shell .product-section-title { flex-wrap: wrap; gap: var(--fx-ui-space-1); }
}
