.topbar { position: sticky; z-index: 30; top: 0; height: var(--topbar-height); display: grid; grid-template-columns: var(--sidebar-width) 210px minmax(220px, 1fr) auto; gap: 10px; align-items: center; color: #fff; background: var(--color-topbar); box-shadow: 0 1px 0 rgb(255 255 255 / 8%); }
.brand { align-self: stretch; display: flex; gap: 12px; align-items: center; padding: 0 18px; color: #fff; text-decoration: none; border-right: 1px solid rgb(255 255 255 / 12%); }
.brand-mark { width: 38px; height: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; border-radius: 10px; background: var(--color-accent); transform: rotate(45deg); box-shadow: 0 5px 18px rgb(229 9 61 / 28%); }
.brand-mark i { border: 2px solid #fff; border-radius: 2px; }
.brand-copy { display: grid; line-height: 1.05; letter-spacing: .08em; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { margin-top: 4px; color: #9aa5b4; font-size: 8px; letter-spacing: .16em; }
.workspace-context { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; color: #fff; border: 0; background: transparent; text-align: left; cursor: pointer; }
.workspace-context > span:first-child { min-width: 0; display: grid; }
.workspace-context small { color: #7f8997; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.workspace-context strong { margin-top: 4px; font-size: 13px; }
.workspace-context:disabled { cursor: default; }
.workspace-context:disabled .context-chevron { display: none; }
.topbar[aria-busy="true"] .workspace-context { opacity: .72; cursor: progress; }
.tenant-preview-notice, .tenant-access-notice { padding: 10px 18px; overflow-wrap: anywhere; }
.tenant-preview-notice { display: grid; gap: 4px; border-bottom: 2px solid #b77900; color: #382500; background: #fff0c2; }
.tenant-preview-notice strong { font-size: 14px; }
.tenant-preview-notice small { font-size: 12px; }
.tenant-access-notice { color: var(--color-muted); background: var(--color-surface, #fff); border-bottom: 1px solid var(--color-line); font-size: 12px; }
.context-chevron { color: #8d96a2; }
.global-search { position: relative; min-width: 0; height: 40px; display: flex; gap: 9px; align-items: center; padding: 0 11px; color: #8792a1; border: 1px solid #2d3540; border-radius: 8px; background: #181d25; }
.global-search:focus-within { border-color: #647184; box-shadow: 0 0 0 3px rgb(255 255 255 / 5%); }
.global-search input { min-width: 0; width: 100%; color: #fff; border: 0; outline: 0; background: transparent; }
.global-search input::placeholder { color: #7f8997; }
.global-search kbd { padding: 3px 6px; color: #96a0ac; border: 1px solid #303844; border-radius: 4px; background: #0c1016; font-size: 10px; white-space: nowrap; }
.global-search > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.top-control.global-search-mobile { display: none; }
@media (max-width: 720px) { .top-control.global-search-mobile { display: inline-flex; padding: 0 8px; } }
.native-dialog.global-search-dialog { width: min(1000px, calc(100vw - 24px)); }
.global-search-dialog .dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 22px; border-bottom: 1px solid var(--color-line); }
.global-search-dialog h2 { margin: 0; font-size: 1.1rem; }
.global-search-dialog [data-global-search-close] { display: grid; place-items: center; flex-shrink: 0; min-width: 44px; min-height: 44px; color: var(--color-ink); border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); font-size: 18px; cursor: pointer; }
.global-search-dialog .dialog-header p { margin: 8px 0 0; color: var(--color-muted); }
#ui-clean-global-search { padding: 22px; }
#ui-clean-global-search label { display: block; margin-bottom: 8px; font-weight: 700; }
#ui-clean-search-input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--color-ink); border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); font: inherit; }
#ui-clean-search-status { margin: 12px 0; color: var(--color-muted); }
#ui-clean-search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#ui-clean-search-results > a { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--color-line); border-radius: 8px; color: var(--color-ink); text-decoration: none; background: var(--color-surface); overflow-wrap: anywhere; }
#ui-clean-search-results > a:hover, #ui-clean-search-results > a:focus-visible { border-color: var(--color-accent); background: var(--color-accent-soft); }
#ui-clean-search-results small { color: var(--color-muted); }
@media (max-width: 600px) { #ui-clean-search-results { grid-template-columns: minmax(0,1fr); } .global-search-dialog .dialog-header, #ui-clean-global-search { padding: 16px; } }
.top-actions { position: relative; display: flex; gap: 8px; align-items: center; padding-right: 12px; }
.demo-status { display: none; color: #73e5a8; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.top-control { min-height: 38px; display: inline-flex; gap: 8px; align-items: center; padding: 0 11px; color: #d6dbe2; border: 1px solid #303844; border-radius: 7px; background: #181d25; cursor: pointer; }
.top-control:hover:not(:disabled):not([aria-disabled="true"]) { border-color: #4a5564; background: #202731; }
.top-control:disabled, .top-control[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.top-status-control { cursor: pointer; }
.top-count { display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border-radius: 99px; color: #fff; background: var(--color-accent); font-size: 9px; }
.top-control.has-unread { border-color: var(--color-accent); animation: notification-unread-pulse 2s ease-in-out infinite; }
@keyframes notification-unread-pulse { 50% { box-shadow: 0 0 0 4px var(--color-accent-soft); } }
@media (prefers-reduced-motion: reduce) { .top-control.has-unread { animation: none; box-shadow: 0 0 0 2px var(--color-accent-soft); } }
.account-notifications { width: min(360px, calc(100vw - 24px)); min-width: 0; max-height: calc(100dvh - var(--topbar-height) - 24px); overflow-y: auto; }
@media (max-width: 720px) { .top-actions .account-notifications { position: fixed; top: calc(var(--topbar-height) + 8px); right: 12px; left: auto; } }
.account-notification-item { padding: 12px 6px; border-top: 1px solid var(--color-line); overflow-wrap: anywhere; }
.account-notification-item.is-unread { border-left: 3px solid var(--color-accent); padding-left: 9px; background: var(--color-accent-soft); }
.account-notification-category { display: inline-flex; margin-bottom: 6px; padding: 3px 7px; color: var(--color-muted); border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.account-notification-item button { margin-top: 8px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--color-line); border-radius: 6px; background: var(--color-surface); color: var(--color-ink); cursor: pointer; }
.account-notification-item button:disabled { opacity: .5; cursor: progress; }
.appearance-control { color: #5a6879; background: #fff; }
.high-contrast { filter: contrast(1.06); }
.portal-control span:not(.presence-dot) { color: #9ba5b2; font-size: 11px; }
.portal-control strong { color: #fff; font-size: 12px; }
.portal-control > span:nth-of-type(2) { display: none; }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #48cc7b; box-shadow: 0 0 0 4px rgb(72 204 123 / 12%); }
.icon-control, .notification-control, .language-control { font-size: 11px; font-weight: 800; }
.mobile-nav-toggle, .mobile-nav-backdrop { display: none; }
.top-menu-anchor { position: relative; min-width: 0; }
.workspace-anchor { min-width: 0; }
.top-dropdown { position: absolute; z-index: 85; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 7px; color: var(--color-ink); border: 1px solid var(--color-line); border-radius: 9px; background: var(--color-surface); box-shadow: 0 20px 55px rgb(5 12 22 / 28%); }
.top-actions .top-dropdown { right: 0; left: auto; }
.top-dropdown > a, .top-dropdown > button { width: 100%; display: flex; padding: 10px 11px; color: var(--color-ink); border: 0; border-radius: 6px; background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.top-dropdown > a:hover, .top-dropdown > button:hover, .top-dropdown > a:focus-visible, .top-dropdown > button:focus-visible { background: var(--color-accent-soft); }
.top-dropdown strong, .top-dropdown small { display: block; }
.top-dropdown strong { font-size: 11px; }
.top-dropdown small { margin-top: 3px; color: var(--color-muted); font-size: 9px; }
.top-dropdown .is-current:not(.workspace-menu-item)::before { align-self: center; margin-right: 8px; color: var(--color-success); content: '●'; font-size: 8px; }
.workspace-menu { width: 320px; max-height: calc(100dvh - var(--topbar-height) - 24px); overflow-y: auto; padding: 8px; }
.workspace-menu-label { margin: 7px 7px 9px; color: #7b8797; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.top-dropdown > .workspace-menu-item { min-height: 57px; display: grid; grid-template-columns: 37px minmax(0, 1fr) 20px; gap: 10px; align-items: center; padding: 8px 9px; }
.workspace-menu-item.is-current { background: var(--color-accent-soft); }
.workspace-menu-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 8px; color: #697789; background: #e9edf3; font-size: 10px; font-weight: 900; }
.workspace-menu-icon-primary { color: #fff; background: var(--color-accent); }
.workspace-menu-check { color: var(--color-ink); font-size: 15px; text-align: center; }
.top-dropdown > .workspace-menu-footer { margin-top: 7px; padding: 13px 9px 8px; color: #687587; border-top: 1px solid var(--color-line); border-radius: 0; font-size: 10px; font-weight: 800; }
.task-center { position: fixed; z-index: 90; right: 20px; bottom: 18px; width: min(390px, calc(100vw - 24px)); color: var(--color-ink); border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-surface); box-shadow: 0 20px 55px rgb(18 24 32 / 21%); overflow: hidden; transform: translateY(calc(100% - 58px)); transition: transform .22s ease; }
.task-center.is-open { transform: translateY(0); }
.task-center-head { width: 100%; min-height: 56px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; color: #fff; border: 0; background: #25292f; text-align: left; cursor: pointer; }
.task-center-head > span:nth-child(2) { min-width: 0; flex: 1; }
.task-center-head strong, .task-center-head small { display: block; }
.task-center-head strong { font-size: 12px; }
.task-center-head small { margin-top: 3px; color: #aeb5bf; font-size: 10px; }
.live-pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #47cd75; box-shadow: 0 0 0 5px rgb(71 205 117 / 14%); }
.task-chevron { font-size: 18px; transition: transform .22s ease; }
.task-center.is-open .task-chevron { transform: rotate(180deg); }
.task-center-body { padding: 0 14px 14px; }
.task-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--color-line); }
.task-tabs button { padding: 13px 0 10px; color: #777e87; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.task-tabs button.is-active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.task-list { max-height: 310px; overflow: auto; }
.task-center-item { min-height: 76px; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; align-items: start; padding: 13px 2px; border-bottom: 1px solid var(--color-line); }
.task-center-item[hidden] { display: none; }
.task-center-item strong, .task-center-item small { display: block; }
.task-center-item strong { font-size: 12px; }
.task-center-item small { margin-top: 4px; color: var(--color-muted); font-size: 10px; line-height: 1.35; }
.task-center-item .event-mark { width: 17px; height: 17px; display: grid; place-items: center; padding: 0; color: var(--color-success); border: 0; border-radius: 50%; background: var(--color-success-soft); font-size: 9px; cursor: pointer; }
.task-center-footer { display: block; padding: 13px 2px 2px; color: var(--color-accent); font-size: 11px; font-weight: 800; text-decoration: none; }
.user-button { display: flex; gap: 8px; align-items: center; padding: 7px 9px; color: #fff; border: 1px solid rgb(255 255 255 / 16%); border-radius: var(--radius-sm); background: #343940; cursor: pointer; }
.avatar { display: grid; width: 25px; height: 25px; place-items: center; color: #fff; border-radius: 50%; background: var(--color-accent); font-size: 10px; font-weight: 800; }
.user-menu { position: absolute; top: 44px; right: 18px; min-width: 230px; padding: 16px; color: var(--color-ink); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-float); }
.user-menu small { display: block; margin-top: 4px; color: var(--color-muted); }
.user-menu a { display: block; margin: 10px -8px 0; padding: 9px 8px; color: var(--color-ink); border-radius: 6px; text-decoration: none; font-size: 11px; }
.user-menu a:hover { color: var(--color-accent); background: var(--color-accent-soft); }
.app-shell { min-height: calc(100vh - var(--topbar-height)); display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.workspace-main { min-width: 0; }
.contextbar { min-width: 0; max-width: 100%; min-height: 54px; display: flex; gap: 30px; align-items: center; padding: 0 32px; color: #7b8797; border-bottom: 1px solid var(--color-line); background: #fff; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.contextbar a { align-self: stretch; position: relative; display: inline-flex; align-items: center; padding: 0; color: inherit; font-size: 14px; font-weight: 400; white-space: nowrap; text-decoration: none; transition: color 150ms ease; }
.contextbar a:hover, .contextbar a:focus-visible { color: var(--color-ink); outline: 0; }
.contextbar button { align-self: stretch; position: relative; padding: 0; color: inherit; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 400; white-space: nowrap; cursor: pointer; transition: color 150ms ease; }
.contextbar button:hover, .contextbar button:focus-visible { color: var(--color-ink); outline: 0; }
.contextbar strong, .contextbar span { align-self: stretch; display: flex; align-items: center; font-size: 14px; font-weight: 400; white-space: nowrap; }
.contextbar .is-active { position: relative; color: var(--color-accent); }
.contextbar .is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ''; background: var(--color-accent); }
.sidebar { position: sticky; top: var(--topbar-height); height: calc(100vh - var(--topbar-height)); display: flex; flex-direction: column; padding: 20px 10px 14px; border-right: 1px solid var(--color-line); background: #fff; overflow-y: auto; }
.sidebar-context { padding: 0 10px 20px; margin-bottom: 12px; border-bottom: 1px solid var(--color-line); }
.sidebar-context small { display: block; margin-bottom: 8px; color: #8896a8; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.sidebar-context strong { font-size: 15px; }
.main-nav { display: grid; gap: 3px; }
.nav-section { margin: 15px 10px 5px; color: #9aa6b5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.nav-section:first-child { margin-top: 0; }
.nav-link { display: flex; gap: 12px; align-items: center; min-height: 42px; padding: 0 13px; color: #435269; border-left: 3px solid transparent; border-radius: 7px; text-decoration: none; }
.nav-link:hover { color: var(--color-ink); background: #f3f5f8; }
.nav-link.is-active { color: var(--color-accent); border-left-color: var(--color-accent); background: var(--color-accent-soft); font-weight: 700; }
.nav-icon { flex: 0 0 18px; width: 18px; color: currentColor; font-size: 18px; line-height: 1; text-align: center; }
.legacy-link { margin-top: auto; padding: 12px 10px; color: var(--color-muted); text-decoration: none; font-size: 11px; }
.main-content { width: 100%; max-width: var(--content-width); min-width: 0; padding: 30px 32px 60px; }
.main-content[aria-busy="true"] { opacity: .58; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.page-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--color-muted); }
.page-heading > .page-actions { flex-shrink: 0; }
.panel { padding: 22px; color: var(--color-ink); border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--card-surface-background); box-shadow: var(--card-surface-shadow); }
.panel h2, .panel p { margin-top: 0; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-form-grid > label, .environment-selector-panel > label, .network-limit-field { color: var(--color-ink); font-size: .72rem; font-weight: 800; }
.settings-form-grid input, .settings-form-grid select, .environment-selector-panel select, .network-limit-field input { width: 100%; min-width: 0; min-height: 42px; display: block; margin-top: 7px; padding: 9px 11px; color: var(--color-ink); border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); background: var(--color-surface); font: inherit; font-weight: 500; }
.settings-form-grid input:focus, .settings-form-grid select:focus, .environment-selector-panel select:focus, .network-limit-field input:focus { border-color: var(--color-accent); outline: 3px solid rgb(226 27 60 / 9%); }
@media (max-width: 680px) { .panel { padding: 18px 16px; } .settings-form-grid { grid-template-columns: 1fr; } }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.button:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-1px); }
.button:disabled, .button[aria-disabled="true"] { opacity: .46; cursor: not-allowed; transform: none; box-shadow: none; }
.button[aria-busy="true"] { cursor: progress; }

:where(.button, .top-control, .global-search, .workspace-context, .workspace-menu-item, .user-button, .user-menu a, .user-menu button, .task-center-head, .task-tabs button, .account-notification-item button):focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--color-accent); box-shadow: 0 7px 18px rgb(236 10 60 / 18%); }
.button-primary:hover { background: var(--color-accent-hover); }
.button-secondary { color: #405069; border-color: var(--color-line-strong); background: #fff; }
.page-heading > .button-secondary { font-weight: 400; }
.button-secondary:hover { border-color: #9eabba; }
.button-hero { color: #fff; border-color: rgb(255 255 255 / 34%); background: rgb(255 255 255 / 8%); }
.button-hero:hover { border-color: rgb(255 255 255 / 58%); background: rgb(255 255 255 / 14%); }
.button-ghost { min-width: 0; color: #405069; border-radius: 0; }
.button-accent { color: var(--color-accent); }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.search-field { min-width: 240px; min-height: 40px; flex: 1; display: flex; gap: 10px; align-items: center; height: 40px; padding: 0 11px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); background: #fff; }
.search-field:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgb(236 10 60 / 9%); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--color-ink); background: transparent; }
.status-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.status-ok { color: #08743e; background: var(--color-success-soft); }
.status-stopped { color: #a21b35; background: #fde8ed; }
.status-pending { color: #8a5a0a; background: #fff0d5; }
.status-muted { color: #65758b; background: #edf1f5; }
.view-switch { display: flex; flex-shrink: 0; margin-left: auto; border: 1px solid var(--color-line-strong); border-radius: 7px; overflow: hidden; background: #fff; }
.view-switch button { width: 38px; border: 0; border-left: 1px solid var(--color-line); color: #758196; background: #fff; cursor: pointer; }
.view-switch button:first-child { border-left: 0; }
.view-switch button.is-active { color: var(--color-accent); background: var(--color-accent-soft); }
.definition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--color-line); }
.definition-list dt { color: #8491a1; font-size: 9px; }
.definition-list dd { margin: 3px 0 0; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.summary-card { min-height: 116px; padding: var(--card-metric-padding); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--card-metric-background); box-shadow: var(--card-metric-shadow); }
.resource-card, .storage-card, .service-tile, .network-tile, .infrastructure-card, .catalog-card, .customer-card, .compact-tile, .info-card { transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.resource-card:hover, .resource-card:focus-within, .storage-card:hover, .storage-card:focus-within, .service-tile:hover, .service-tile:focus-within, .network-tile:hover, .network-tile:focus-within, .infrastructure-card:hover, .infrastructure-card:focus-within, .catalog-card:hover, .catalog-card:focus-within, .customer-card:hover, .customer-card:focus-within, .compact-tile:hover, .compact-tile:focus-within, .info-card:hover, .info-card:focus-within { transform: translateY(-3px); border-color: #aeb8c6; box-shadow: 0 14px 30px rgb(15 32 55 / 10%); }
.summary-card small, .summary-card span { display: block; color: var(--color-muted); }
.summary-card strong { display: block; margin-top: 10px; font-size: 20px; }
.summary-card span { margin-top: 5px; font-size: 10px; }
.table-panel { overflow: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; }
.ssh-reference-table { width: 100%; max-width: 100%; margin-top: 18px; overflow-x: auto; border-radius: 0; box-shadow: 0 5px 18px rgb(23 32 43 / 4%); contain: inline-size; }
#ssh-keys-app { min-width: 0; width: 100%; }
.ssh-reference-table .data-table th, .ssh-reference-table .data-table td { padding: 13px 15px; }
.ssh-reference-table .table-action { width: 48px; text-align: right; }
.ssh-reference-table .empty-cell { white-space: normal; overflow-wrap: anywhere; }
.table-more { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: var(--color-muted); border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.table-more:hover, .table-more:focus-visible { color: var(--color-accent); border-color: var(--color-line); background: var(--color-accent-soft); }
@media (max-width: 700px) {
  .ssh-reference-table .data-table { width: 100%; min-width: 0; table-layout: fixed; }
  .ssh-reference-table th:nth-child(1), .ssh-reference-table td:nth-child(1) { width: 34%; }
  .ssh-reference-table th:nth-child(2), .ssh-reference-table td:nth-child(2) { width: 54%; }
  .ssh-reference-table th:nth-child(3), .ssh-reference-table td:nth-child(3), .ssh-reference-table th:nth-child(4), .ssh-reference-table td:nth-child(4) { display: none; }
  .ssh-reference-table th:nth-child(5), .ssh-reference-table td:nth-child(5) { width: 12%; }
  .ssh-reference-table code { white-space: normal; overflow-wrap: anywhere; }
  .ssh-reference-table .empty-cell { display: table-cell; width: auto; white-space: normal; }
}
.collection-toolbar { display: flex; margin: 0 0 14px; }
.collection-toolbar .search-field { max-width: none; }
.collection-pager { min-height: 48px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 0; }
.collection-pager > span { margin-right: auto; color: var(--color-muted); font-size: 11px; }
.collection-pager button { width: 34px; height: 32px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); color: var(--color-ink); background: var(--color-surface); cursor: pointer; }
.collection-pager button:disabled { opacity: .4; cursor: default; }
.collection-pager strong { min-width: 48px; text-align: center; font-size: 11px; }

/* Canonical reference pager shared by inventory and administration views. */
.reference-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 15px; margin-top: 18px; padding: 12px 14px; color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 9px; font-size: 12px; }
.reference-pager > span:first-child, .reference-pager > small:first-child { grid-column: 1; grid-row: 1; margin: 0; font-size: 12px; }
.reference-pager > .pager-size { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--color-muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.reference-pager .pager-size select { padding: 7px; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 6px; font: inherit; }
.reference-pager > div:last-child { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 4px; }
.reference-pager .button, .reference-pager .pagination-link { min-width: 30px; min-height: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center; color: var(--color-muted); background: transparent; border: 1px solid var(--color-line); border-radius: 6px; font-size: 12px; cursor: pointer; }
.reference-pager button:disabled { opacity: .35; cursor: default; }
.reference-pager [aria-current=page], .reference-pager .is-current { color: #fff; background: var(--color-accent); border-color: var(--color-accent); }
@media (max-width: 900px) { .reference-pager { grid-template-columns: minmax(0, 1fr); } .reference-pager > span:first-child, .reference-pager > small:first-child, .reference-pager > .pager-size, .reference-pager > div:last-child { grid-column: 1; grid-row: auto; justify-self: center; } }
.entity-preview-backdrop { position: fixed; z-index: 105; inset: 0; background: rgb(9 14 24 / 48%); }
.entity-preview { position: absolute; top: 0; right: 0; width: min(520px, 100vw); height: 100%; color: var(--color-ink); background: var(--color-surface); box-shadow: -20px 0 60px rgb(0 0 0 / 24%); animation: preview-enter 180ms ease-out; }
.entity-preview > header { min-height: 92px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--color-line); }
.entity-preview h2 { margin: 5px 0 0; }
.entity-preview header button { width: 34px; height: 34px; border: 0; border-radius: var(--radius-sm); background: var(--color-canvas); color: var(--color-ink); font-size: 20px; cursor: pointer; }
.entity-preview-body { padding: 24px; }
.entity-preview-body .definition-list { grid-template-columns: 1fr 1.5fr; }
.entity-preview-body .notice { margin-top: 22px; }
@keyframes preview-enter { from { transform: translateX(28px); opacity: 0; } }
.data-table { width: 100%; border-collapse: collapse; }
.data-table-wrap { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--color-line); white-space: nowrap; }
.data-table th { color: #68778b; background: #fafbfc; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfc; }
.error-state { padding: 28px; color: #9d1734; border: 1px solid #efb4c1; background: #fff; }
.operational-context { margin-top: 24px; }
.operational-context-title { margin: 0 0 4px; font-size: 16px; }
.operational-context-copy { margin: 0; color: var(--color-muted); }
.operational-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.operational-card { min-height: 220px; }
.operational-card h2 { margin-top: 4px; font-size: 16px; }
.workflow-list { display: grid; gap: 13px; margin: 18px 0 0; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; color: #405069; }
.workflow-index { display: grid; width: 26px; height: 26px; place-items: center; color: var(--color-accent); border-radius: 50%; background: var(--color-accent-soft); font-size: 10px; font-weight: 800; }
.operational-notice { margin-top: 14px; }
@media (max-width: 760px) { .operational-grid { grid-template-columns: 1fr; } }
.dialog-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(9 14 24 / 58%); backdrop-filter: blur(4px); }
.action-dialog { width: min(840px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-float); }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 20px; border-bottom: 1px solid var(--color-line); }
.dialog-header h2 { margin: 4px 0 5px; font-size: 22px; }
.dialog-header p { margin-bottom: 0; }
.dialog-close { width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: var(--radius-sm); background: #f1f3f6; font-size: 22px; cursor: pointer; }
.dialog-body { display: grid; gap: 18px; padding: 24px 26px; }
.dialog-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dialog-field { display: grid; gap: 7px; color: #526176; font-size: 11px; font-weight: 700; }
.dialog-field input, .dialog-field select, .dialog-field textarea { min-width: 0; min-height: 42px; padding: 10px 12px; color: var(--color-ink); border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); background: #fff; font: inherit; }
.dialog-field input:focus, .dialog-field select:focus, .dialog-field textarea:focus { border-color: var(--color-accent); outline: 3px solid rgb(236 10 60 / 9%); }
.dialog-field textarea { resize: vertical; line-height: 1.45; }
.dialog-field-check { grid-template-columns: auto 1fr; align-items: center; }
.dialog-field-check > span { grid-column: 1 / -1; }
.dialog-field-check input { width: 20px; min-height: 20px; padding: 0; accent-color: var(--color-accent); }
.dialog-field-check small { color: var(--color-muted); font-weight: 500; }
.dialog-result { padding: 12px 14px; color: #405069; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: #f7f9fb; }
.dialog-result.is-readonly { color: #76520b; border-color: #efd99d; background: #fff9e8; }
.dialog-result.is-error { color: #9d1734; border-color: #efb4c1; background: #fff4f6; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--color-line); background: #fafbfc; }
.provisioning-backdrop { background: rgb(0 0 0 / 53%); backdrop-filter: none; }
.provisioning-dialog { width: min(1020px, 96vw); max-height: 92vh; overflow: hidden; border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgb(0 0 0 / 40%); }
.provisioning-dialog > .dialog-header { min-height: 73px; align-items: center; padding: 18px 23px; }
.provisioning-dialog .dialog-header h2 { margin: 5px 0 0; font-size: 20px; }
.provisioning-main { min-height: 520px; overflow: auto; }
.wizard-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-bottom: 1px solid #e1e4e8; background: #f7f8fa; }
.wizard-steps button { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-bottom: 3px solid transparent; color: #8a929c; background: transparent; cursor: pointer; }
.wizard-steps button i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #cbd0d6; border-radius: 50%; font-size: 9px; font-style: normal; }
.wizard-steps button.active { color: var(--color-accent); border-color: var(--color-accent); font-weight: 700; }
.wizard-steps button.active i, .wizard-steps button.done i { color: #fff; border-color: var(--color-accent); background: var(--color-accent); }
.wizard-page { display: none; padding: 27px; }
.wizard-page.active { display: block; }
.wizard-intro h3 { margin: 0 0 6px; font-size: 20px; }
.wizard-intro p { margin: 0 0 22px; color: var(--color-muted); }
.type-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-card { min-height: 205px; position: relative; display: grid; grid-template-columns: 85px 1fr; gap: 17px; padding: 23px; border: 1px solid #d9dde2; border-radius: 10px; color: var(--color-ink); background: #fff; text-align: left; cursor: pointer; }
.type-card.selected { border: 2px solid var(--color-accent); background: #fffafb; box-shadow: 0 10px 28px rgb(213 12 45 / 6%); }
.provisioning-dialog .type-art { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #38414c, #181c22); font-size: 20px; font-weight: 800; }
.provisioning-dialog .ct-art { background: linear-gradient(145deg, #573026, #21130f); }
.type-card b, .type-card small { display: block; }
.type-card b { font-size: 16px; }
.type-card small { margin-top: 5px; color: var(--color-muted); }
.type-card ul { padding-left: 17px; color: #6e7680; line-height: 1.8; }
.type-card > i { display: none; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--color-accent); font-style: normal; }
.type-card.selected > i { display: grid; }
.os-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.os-card { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid #d9dde2; border-radius: 9px; color: var(--color-ink); background: #fff; text-align: left; cursor: pointer; }
.os-card.selected { border: 2px solid var(--color-accent); background: #fff9fa; }
.os-card img { width: 51px; height: 51px; border-radius: 11px; }
.os-card span { flex: 1; }
.os-card b, .os-card small { display: block; }
.os-card small { margin-top: 4px; color: var(--color-muted); }
.os-card > i { padding: 4px 7px; border-radius: 8px; color: #277947; background: #e9f6ed; font-size: 8px; font-style: normal; }
.package-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.package-choices button { min-height: 118px; display: grid; justify-items: start; gap: 5px; padding: 15px; border: 1px solid #d9dde2; border-radius: 9px; color: var(--color-ink); background: #fff; cursor: pointer; }
.package-choices button.selected { border: 2px solid var(--color-accent); background: #fff8f9; }
.package-choices span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #343b44; font-weight: 800; }
.package-choices small { color: var(--color-muted); }
.package-choices strong { color: var(--color-accent); }
.custom-resources, .provisioning-dialog .form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.provisioning-dialog .form-grid { grid-template-columns: 1fr 1fr; }
.custom-resources label, .provisioning-dialog .form-grid label { display: grid; gap: 6px; color: #656d77; font-size: 10px; font-weight: 700; }
.custom-resources input, .provisioning-dialog .form-grid input, .provisioning-dialog .form-grid select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #d3d8de; border-radius: 6px; background: #fff; }
.review-card { overflow: hidden; border: 1px solid #dce0e5; border-radius: 10px; }
.review-card > div { display: flex; align-items: center; gap: 12px; padding: 15px; border-bottom: 1px solid #e7eaed; background: #fafbfc; }
.review-card img { width: 49px; height: 49px; border-radius: 10px; }
.review-card > div > span { flex: 1; }
.review-card b, .review-card small { display: block; }
.review-card small { margin-top: 4px; color: var(--color-muted); }
.review-card dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.review-card dt, .review-card dd { margin: 0; padding: 12px 15px; border-bottom: 1px solid #eceef1; }
.review-card dt { color: var(--color-muted); }
.review-card dd { font-weight: 700; }
.provisioning-footer { min-height: 65px; align-items: center; }
.provisioning-footer > span { margin: auto; color: #8b929b; font-size: 9px; }
.provisioning-dialog .dialog-result { margin-top: 14px; }
@media (max-width: 600px) { .dialog-backdrop { padding: 0; align-items: end; } .action-dialog { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; } .dialog-fields { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .type-choices, .os-choices, .package-choices, .custom-resources, .provisioning-dialog .form-grid { grid-template-columns: 1fr; } .wizard-steps button span { display: none; } .provisioning-main { min-height: 0; } }
.route-state { min-height: 300px; display: grid; grid-template-columns: 54px minmax(0, 560px); gap: 18px; align-content: center; justify-content: center; padding: 44px; text-align: left; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; }
.route-state-icon { display: grid; width: 54px; height: 54px; place-items: center; color: var(--color-accent); border-radius: 50%; background: var(--color-accent-soft); font-size: 22px; font-weight: 800; }
.route-state h2 { margin: 4px 0 8px; }
.route-state .button { display: inline-flex; align-items: center; margin-top: 15px; text-decoration: none; }
.route-state-error { border-color: #efb4c1; }
.route-state-restricted .route-state-icon { color: #76520b; background: #fff3cf; }
@media (max-width: 600px) { .route-state { grid-template-columns: 1fr; padding: 30px 22px; text-align: center; } .route-state-icon { margin: 0 auto; } }

.operational-context:not(:empty) { margin-top:16px; padding:22px; border:1px solid var(--color-line); border-radius:var(--radius-md); background:var(--color-surface); }
.operational-context header h2 { margin:4px 0 6px; }
.supplement-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:18px; }
.supplement-grid article { display:grid; gap:6px; padding:14px; border:1px solid var(--color-line); border-radius:var(--radius-sm); background:var(--color-canvas); }
.supplement-grid small { color:var(--color-muted); text-transform:uppercase; letter-spacing:.05em; }
@media (max-width:900px) { .supplement-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.task-center:not(.is-open){clip-path:inset(0 0 calc(100% - 58px) 0)}
.task-center:not(.is-open) .task-center-body{visibility:hidden;pointer-events:none}
@media (min-width: 721px) and (max-width: 1200px) {
  .top-actions > .user-button { min-width: 0; max-width: 200px; }
  .top-actions > .user-button > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions > .user-button > .avatar { flex-shrink: 0; }
}
/* Resource detail's mobile shorthand must not erase actual task-dock clearance. */
@media (max-width: 720px) {
  #ui-clean-task-center.is-open { max-height: max(58px, calc(100dvh - var(--topbar-height) - 100px - env(safe-area-inset-bottom, 0px))); overflow-y: auto; }
  html:has(.resource-detail-page):has(#ui-clean-task-center) { scroll-padding-bottom: calc(var(--itc-taskdock-clearance, 76px) + 12px + env(safe-area-inset-bottom, 0px)); }
  html:has(#ui-clean-task-center) .main-content.resource-detail-page { padding-bottom: max(12px, calc(var(--itc-taskdock-clearance, 76px) + 12px + env(safe-area-inset-bottom, 0px))); }
  html:has(#ui-clean-task-center) .resource-detail-content :where(button, a, input, select, textarea, [tabindex]) { scroll-margin-bottom: calc(var(--itc-taskdock-clearance, 76px) + 12px + env(safe-area-inset-bottom, 0px)); }
}
