/* Presentation-only pilot. Legacy section controls remain in styles.css. */
body.ui-pilot {
  background: var(--app-bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--font-base);
}
.ui-pilot .page-bg { display: none; }
.ui-pilot .app-shell { width: 100%; margin: 0; }
.ui-pilot.sidebar-opened { overflow: hidden; }
.ui-pilot .app-workspace { min-width: 0; margin-left: var(--sidebar-width); }
.ui-pilot .app-content { min-width: 0; max-width: 1640px; padding: var(--space-8); margin: 0 auto; }
.ui-pilot .app-content > .view:not(.pilot-calculator):not(#view-inventory) { overflow-x: auto; }
.ui-pilot .login-screen { z-index: 300; }
.ui-pilot .modal-overlay { z-index: 160; }
.ui-pilot .login-card label { color: var(--text-secondary); font-size: var(--font-sm); text-align: left; }
.ui-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabler-ui button { font: inherit; }
.tabler-ui button:focus-visible, .tabler-ui a:focus-visible, .tabler-ui summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.tabler-ui [hidden], #sidebarBackdrop[hidden], #shellSearchModal[hidden] { display: none !important; }
.tabler-ui .shell-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 44px; height: 44px; padding: var(--space-2); color: var(--text-secondary); background: transparent; border: 0; border-radius: var(--radius-sm); box-shadow: none; cursor: pointer; }
.tabler-ui .shell-icon-button:hover { background: var(--surface-hover); color: var(--text-primary); }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; gap: var(--space-3); min-height: 100px; padding: var(--space-6) var(--space-5); }
.sidebar-logo { width: 44px; height: 44px; object-fit: contain; background: var(--logo-surface); border-radius: var(--radius-md); padding: 3px; flex-shrink: 0; }
.sidebar-wordmark { display: grid; gap: 3px; white-space: nowrap; }
.sidebar-wordmark strong { font-family: var(--font-heading); letter-spacing: .17em; font-size: 1.15rem; line-height: 1.2; }
.sidebar-wordmark span { color: var(--text-muted); font-size: .65rem; letter-spacing: .15em; }
.ui-pilot .app-sidebar .sidebar-close { display: none; margin-left: auto; }
.ui-pilot .app-sidebar .tabs { display: flex; flex-direction: column; flex-wrap: nowrap; gap: var(--space-5); overflow-x: hidden; overflow-y: auto; min-height: 0; flex: 1; padding: 0 var(--space-3) var(--space-5); margin: 0; border: 0; white-space: normal; }
.sidebar-group { display: grid; gap: 3px; }
.sidebar-group-label { margin: 0 0 5px; padding: 0 var(--space-3); color: var(--text-muted); font-size: .65rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ui-pilot .app-sidebar .app-nav-link { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 44px; padding: 10px var(--space-3); margin: 0; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: var(--font-sm); font-weight: 400; text-align: left; box-shadow: none; white-space: nowrap; }
.ui-pilot .app-sidebar .app-nav-link:hover { color: var(--text-primary); background: var(--surface-hover); }
.ui-pilot .app-sidebar .app-nav-link.active { color: var(--text-primary); background: var(--nav-active-bg); border-color: var(--nav-active-border); box-shadow: inset 3px 0 0 var(--primary); font-weight: 500; }
.ui-pilot .app-sidebar .app-nav-link.active > .ui-icon { color: var(--primary); }
.app-nav-link .ui-icon { width: 19px; height: 19px; }
.app-nav-link .nav-pilot-label { margin-left: auto; color: var(--text-muted); font-size: .59rem; }
.sidebar-footer { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-4) var(--space-5); color: var(--text-muted); font-size: .6rem; border-top: 1px solid var(--border); white-space: nowrap; }
.sidebar-footer-dot, .shell-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.ui-pilot .sidebar-collapse { justify-content: flex-start; padding-left: var(--space-5); height: 48px; border-top: 1px solid var(--border); border-radius: 0; font-size: var(--font-xs); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 80; border: 0; border-radius: 0; background: var(--overlay); }
.ui-pilot.sidebar-collapsed .app-sidebar { width: var(--sidebar-collapsed-width); }
.ui-pilot.sidebar-collapsed .app-workspace { margin-left: var(--sidebar-collapsed-width); }
.sidebar-collapsed .sidebar-wordmark, .sidebar-collapsed .sidebar-group-label, .sidebar-collapsed .app-nav-link > span, .sidebar-collapsed .sidebar-footer, .sidebar-collapsed .sidebar-collapse > span { display: none !important; }
.sidebar-collapsed .sidebar-brand { justify-content: center; padding: var(--space-5) 0; }
.ui-pilot.sidebar-collapsed .app-sidebar .tabs { gap: var(--space-3); padding: 0 10px var(--space-3); }
.ui-pilot.sidebar-collapsed .app-sidebar .app-nav-link { justify-content: center; min-height: 46px; padding: var(--space-2); }
.ui-pilot.sidebar-collapsed .sidebar-collapse { justify-content: center; padding: var(--space-2); }
.sidebar-collapsed .app-nav-link { position: relative; }
.app-header { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-height); padding: var(--space-3) var(--space-8); background: var(--app-bg); border-bottom: 1px solid var(--border); }
.header-section { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.header-breadcrumb { margin: 0 0 3px; color: var(--text-muted); font-size: .65rem; }
.app-header h1 { margin: 0; color: var(--text-primary); font-size: var(--font-lg); line-height: 1.4; font-weight: 500; white-space: nowrap; }
.ui-pilot .sidebar-open { display: none; }
.shell-header-actions { display: flex; align-items: center; gap: var(--space-3); }
.tabler-ui .shell-search-toggle { font-size: var(--font-xs); color: var(--text-muted); }
.shell-search-toggle kbd { border: 1px solid var(--border-strong); border-radius: 4px; padding: 2px 4px; font-family: var(--font-ui); font-size: .6rem; }
.shell-popover-anchor { position: relative; }
.shell-sync { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; background: none; color: var(--text-secondary); border: 0; padding: var(--space-2); border-radius: var(--radius-sm); font-size: var(--font-xs) !important; }
.shell-sync:hover { background: var(--surface-hover); }
.shell-sync[data-status="saving"] .shell-status-dot { background: var(--info); animation: pilot-pulse 1.2s ease-in-out infinite; }
.shell-sync[data-status="error"] { color: var(--danger); }
.shell-sync[data-status="error"] .shell-status-dot { background: var(--danger); }
.shell-sync[data-status="offline"] .shell-status-dot { background: var(--warning); }
.shell-sync[data-status="loading"] .shell-status-dot { background: var(--text-muted); }
.shell-profile-toggle { display: flex; align-items: center; gap: var(--space-3); min-width: 0; min-height: 44px; padding: 0; color: var(--text-primary); background: none; border: 0; border-radius: var(--radius-sm); box-shadow: none; }
.shell-profile-toggle::before { display: none; }
.shell-profile-toggle:hover { background: var(--surface-hover); }
.shell-avatar { display: grid; place-items: center; width: 36px; height: 36px; background: var(--secondary); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-md); font-family: var(--font-heading); font-size: .85rem; }
.shell-user-copy { display: grid; gap: 3px; text-align: left; }
.shell-user-copy strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-size: var(--font-xs); font-weight: 500; }
.shell-user-copy > span { color: var(--text-muted); font-size: .6rem; }
.ui-pilot .shell-popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 110; width: min(390px, calc(100vw - 32px)); padding: var(--space-5); margin: 0; color: var(--text-primary); background: var(--surface-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-md); font-size: var(--font-sm); }
.shell-popover h2 { margin: 0; font-size: var(--font-base); font-weight: 500; }
.shell-popover-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.shell-muted { color: var(--text-muted); font-size: var(--font-xs); }
.ui-pilot #quickMenuPanel { right: var(--space-8); top: calc(100% - 4px); width: 280px; display: grid; gap: 5px; }
.ui-pilot #quickMenuPanel { min-width: 0; }
.ui-pilot .shell-popover .secondary-btn, .ui-pilot .shell-popover .file-loader { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-2); width: 100%; min-height: 44px; padding: 10px var(--space-3); margin: 0; color: var(--text-secondary); background: none; border: 0; border-radius: var(--radius-sm); box-shadow: none; text-align: left; font-weight: 400; font-size: var(--font-sm); }
.ui-pilot .shell-popover .secondary-btn:hover, .ui-pilot .shell-popover .file-loader:hover { background: var(--surface-hover); color: var(--text-primary); }
.ui-pilot .shell-popover #logoutBtn { color: var(--danger); border-top: 1px solid var(--border); border-radius: 0; }
.ui-pilot .shell-popover .session-info { padding: 0 var(--space-3) var(--space-3); color: var(--text-muted); border: 0; border-bottom: 1px solid var(--border); border-radius: 0; font-size: var(--font-xs); }
.sync-details h2 { margin-bottom: var(--space-3); }
.sync-details #dataStatus { color: var(--text-secondary); line-height: 1.8; overflow-wrap: anywhere; }
.shell-count, .ui-pilot .notification-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; color: var(--primary-foreground); background: var(--primary); border-radius: 6px; font-size: .6rem; font-weight: 600; }
.shell-count { margin-left: auto; }
.ui-pilot #shellNotificationToggle { position: relative; }
.ui-pilot #notificationBadge { position: absolute; top: 2px; right: 0; margin: 0; }
#shellNotificationList { max-height: min(400px, 60vh); overflow-y: auto; }
.shell-notification-item { display: flex; align-items: flex-start; gap: var(--space-3); width: 100%; padding: var(--space-3) 0; color: var(--text-secondary); border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; text-align: left; box-shadow: none; }
.shell-notification-item:hover { color: var(--text-primary); }
.shell-notification-item > span:first-child { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; flex-shrink: 0; background: var(--text-muted); }
.shell-notification-item.is-unread > span:first-child { background: var(--primary); }
.shell-notification-copy { display: grid; gap: 5px; }
.shell-notification-copy strong { font-size: var(--font-sm); font-weight: 500; }
.shell-notification-copy > span { font-size: var(--font-xs); line-height: 1.5; }
.shell-notification-copy time { color: var(--text-muted); font-size: .65rem; }
.shell-empty { color: var(--text-muted); line-height: 1.7; padding: var(--space-3) 0; }
.ui-pilot .shell-popover .notification-header-btn { justify-content: space-between; margin-top: var(--space-3); color: var(--primary); }
.shell-search-overlay { position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: min(16vh, 120px) var(--space-4); z-index: 220; background: var(--overlay); }
.shell-search-dialog { width: min(560px, 100%); padding: var(--space-6); background: var(--surface-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.shell-search-dialog .shell-popover-heading { margin-bottom: var(--space-3); }
.shell-search-dialog h2 { margin: 0; font-size: var(--font-lg); }
.shell-search-dialog .form-label { margin-top: 0; }
#shellSearchResults { max-height: 42vh; overflow: auto; margin-top: var(--space-3); }
.shell-search-result { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 46px; padding: var(--space-3); background: none; border: 0; color: var(--text-secondary); text-align: left; border-radius: var(--radius-sm); }
.shell-search-result:hover, .shell-search-result:focus { background: var(--surface-hover); color: var(--text-primary); }
.shell-search-dialog > .form-hint { margin-top: var(--space-4); }
.pilot-calculator { padding-bottom: var(--space-6); }
.pilot-mobile-target { display: none; }
.pilot-page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-5); margin-bottom: var(--space-8); }
.pilot-eyebrow { margin: 0 0 var(--space-3); color: var(--primary); font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.pilot-page-heading h2 { margin: 0 0 var(--space-3); color: var(--text-primary); font-family: var(--font-heading); font-size: var(--font-title); font-weight: 500; line-height: 1.25; }
.pilot-page-heading > div > p:last-child { margin: 0; color: var(--text-secondary); line-height: 1.7; font-size: var(--font-sm); }
.pilot-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; flex-shrink: 0; padding: 5px 8px; font-size: .65rem; font-weight: 500; line-height: 1.4; border-radius: 6px; white-space: nowrap; }
.badge-info { color: var(--info); background: var(--info-soft); }
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.pilot-calculator-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr); gap: var(--space-6); }
.pilot-calculator .card { --tblr-card-bg: var(--surface); --tblr-card-border-color: var(--border); --tblr-card-border-radius: var(--radius-lg); --tblr-card-border-width: 1px; --tblr-card-cap-bg: transparent; --tblr-card-cap-color: var(--text-primary); --tblr-card-spacer-x: var(--space-6); --tblr-card-spacer-y: var(--space-6); display: flex; flex-direction: column; min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.pilot-calculator .card-header { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-6); background: transparent; border-bottom: 1px solid var(--border); min-height: 0; }
.pilot-calculator .card-header > .ui-icon { color: var(--text-muted); margin-top: 2px; }
.pilot-calculator .card-title { margin: 0; font-size: var(--font-base); line-height: 1.5; font-weight: 500; }
.pilot-card-subtitle { color: var(--text-muted); font-size: var(--font-xs); line-height: 1.7; margin: 6px 0 0; }
.tabler-ui .form-label { display: block; margin: 0 0 var(--space-2); color: var(--text-secondary); font-size: var(--font-sm); line-height: 1.5; font-weight: 400; }
.tabler-ui .form-control, .tabler-ui .form-select { display: block; width: 100%; min-width: 0; min-height: var(--control-height); padding: 10px var(--space-3); color: var(--text-primary); background-color: var(--app-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: var(--font-ui); font-size: var(--font-sm); line-height: 1.5; box-shadow: none; }
.tabler-ui .form-select { padding-right: 32px; }
.tabler-ui .form-control:focus, .tabler-ui .form-select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tabler-ui .form-control[aria-invalid="true"], .tabler-ui .form-select[aria-invalid="true"] { border-color: var(--danger); }
.tabler-ui .form-control:user-invalid, .tabler-ui .form-select:user-invalid { border-color: var(--danger); }
.tabler-ui .form-control:disabled, .tabler-ui .form-select:disabled { background: var(--surface-hover); color: var(--text-muted); opacity: .7; cursor: not-allowed; }
.tabler-ui .form-hint { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.7; }
.tabler-ui .btn { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-2); min-height: 44px; padding: 10px var(--space-4); font-size: var(--font-sm); line-height: 1.5; font-weight: 500; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-primary); background: var(--secondary); box-shadow: none; text-decoration: none; cursor: pointer; }
.tabler-ui .btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.tabler-ui .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.tabler-ui .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-foreground); }
.tabler-ui .btn-secondary { background: var(--secondary); }
.tabler-ui .btn-danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.tabler-ui .btn-ghost-secondary { background: none; border-color: transparent; color: var(--text-secondary); }
.tabler-ui .btn-icon { min-width: 44px; padding: 10px; }
.tabler-ui .btn:disabled { opacity: .5; cursor: not-allowed; }
.pilot-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); padding: var(--space-6); }
.pilot-field-wide { grid-column: 1 / -1; }
.pilot-form > .form-hint { margin: calc(-1 * var(--space-3)) 0 0; }
.pilot-form-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--border); padding-top: var(--space-5); }
.pilot-form-footer > span { display: flex; gap: 6px; align-items: center; color: var(--text-muted); font-size: .65rem; }
.pilot-form-footer > span .ui-icon { width: 14px; height: 14px; }
.pilot-target-card { padding: var(--space-6); }
.pilot-target-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: var(--space-5); background: var(--primary-soft); color: var(--primary); border-radius: var(--radius-md); }
.pilot-target-icon .ui-icon { width: 26px; height: 26px; }
.pilot-target-card .pilot-eyebrow { color: var(--text-muted); }
.pilot-target-number { display: flex; align-items: baseline; gap: var(--space-3); font-family: var(--font-heading); font-size: 3rem; font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.pilot-target-number > span { font: 400 var(--font-xs) var(--font-ui); letter-spacing: 0; color: var(--text-muted); }
.pilot-target-card > p:not(.pilot-eyebrow), .pilot-target-tolerance > p { color: var(--text-muted); font-size: var(--font-xs); line-height: 1.8; margin: var(--space-3) 0 0; }
.pilot-target-tolerance { border-top: 1px solid var(--border); padding-top: var(--space-5); margin-top: auto; }
.pilot-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-6) 0 var(--space-8); }
.pilot-metric { display: flex; flex-direction: column; gap: var(--space-2); border-right: 1px solid var(--border); padding-left: var(--space-2); }
.pilot-metric:last-child { border-right: 0; }
.pilot-metric span { color: var(--text-muted); font-size: var(--font-xs); }
.pilot-metric strong { font-size: var(--font-sm); font-weight: 500; }
.pilot-results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.pilot-results-heading h3 { margin: 0; color: var(--text-primary); font-size: 1rem; font-weight: 500; }
.pilot-results-heading p { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--font-xs); line-height: 1.7; }
.pilot-results-caption { display: flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text-muted); font-size: .65rem; }
.pilot-results-caption .ui-icon { width: 16px; height: 16px; }
.pilot-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.pilot-result { position: relative; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.pilot-result.is-recommended { border-color: var(--primary); background: var(--surface-elevated); }
.pilot-result-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.pilot-result-heading h4 { margin: 0; color: var(--text-secondary); font-weight: 400; font-size: var(--font-xs); }
.pilot-result-interval { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--space-5); }
.pilot-result-interval strong { font-family: var(--font-heading); font-size: 2.25rem; line-height: 1.15; font-weight: 500; color: var(--text-primary); }
.pilot-result-interval span { color: var(--text-muted); font-size: var(--font-xs); }
.pilot-result dl { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); margin: 0; padding-bottom: var(--space-5); border-bottom: 1px solid var(--border); font-size: var(--font-xs); }
.pilot-result dt { font-weight: 400; color: var(--text-muted); }
.pilot-result dd { margin: 0; font-weight: 500; text-align: right; }
.pilot-result-status { margin-top: var(--space-4); }
.pilot-table-details { margin-top: var(--space-6); }
.pilot-table-details > summary { display: flex; align-items: center; justify-content: space-between; width: max-content; gap: var(--space-4); padding: var(--space-3) 0; color: var(--text-muted); font-size: var(--font-xs); cursor: pointer; list-style: none; }
.pilot-table-details > summary::-webkit-details-marker { display: none; }
.pilot-table-details > summary .ui-icon { width: 16px; height: 16px; }
.pilot-table-details[open] > summary .ui-icon { transform: rotate(180deg); }
.pilot-calculator #calculatorTable { overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.pilot-calculator #calculatorTable table { display: table; width: 100%; min-width: 600px; border-collapse: collapse; margin: 0; font-size: var(--font-xs); }
.pilot-calculator #calculatorTable thead { display: table-header-group; }
.pilot-calculator #calculatorTable tbody { display: table-row-group; }
.pilot-calculator #calculatorTable tr { display: table-row; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.pilot-calculator #calculatorTable th, .pilot-calculator #calculatorTable td { display: table-cell; padding: 14px var(--space-4); color: var(--text-secondary); border: 0; border-bottom: 1px solid var(--border); font-size: var(--font-xs); text-align: left; white-space: normal; }
.pilot-calculator #calculatorTable td::before { display: none; }
.pilot-calculator #calculatorTable th { position: sticky; top: 0; color: var(--text-muted); background: var(--surface-elevated); font-weight: 500; text-transform: none; letter-spacing: 0; }
.pilot-calculator #calculatorTable tbody tr:hover { background: var(--surface-hover); }
.pilot-calculator #calculatorTable tbody tr:last-child td { border-bottom: 0; }
.pilot-footnote { display: flex; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: .65rem; line-height: 1.8; margin: var(--space-6) 0 0; }
.pilot-field-error { color: var(--danger); font-size: var(--font-xs); }
@keyframes pilot-pulse { 50% { opacity: .3; } }
@media (min-width: 861px) {
  /* Keep the legacy inventory header sticky within its own scroll viewport. */
  .ui-pilot #inventoryTable { max-height: min(720px, calc(100dvh - var(--header-height) - var(--space-8))); overflow: auto; }
  .ui-pilot #inventoryTable th { position: sticky; top: 0; }
}
@media (min-width: 1800px) { .ui-pilot .app-content { padding-top: var(--space-10); } }
@media (max-width: 1250px) {
  .shell-search-toggle > span, .shell-search-toggle kbd { display: none; }
  .shell-header-actions { gap: var(--space-2); }
  .pilot-form-footer { align-items: flex-start; flex-direction: column; }
  .pilot-calculator-grid { grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); }
  .pilot-result { padding: var(--space-5); }
  .pilot-result-heading { align-items: flex-start; flex-direction: column; min-height: 44px; }
}
@media (max-width: 1000px) and (min-width: 901px) {
  .shell-user-copy, .shell-profile-toggle > .ui-icon { display: none; }
  .ui-pilot .app-content, .app-header { padding-left: var(--space-5); padding-right: var(--space-5); }
  .pilot-calculator-grid { grid-template-columns: minmax(0, 1fr); }
  .pilot-target-card { display: none !important; }
  .pilot-mobile-target { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-5); font-size: var(--font-xs); color: var(--text-muted); }
  .pilot-mobile-target strong { color: var(--primary); font-weight: 500; }
}
@media (max-width: 900px) {
  .ui-pilot .app-workspace, .ui-pilot.sidebar-collapsed .app-workspace { margin-left: 0; }
  .app-sidebar, .ui-pilot.sidebar-collapsed .app-sidebar { width: min(300px, 85vw); transform: translateX(-100%); visibility: hidden; z-index: 100; }
  .ui-pilot.sidebar-opened .app-sidebar { transform: none; visibility: visible; }
  .ui-pilot .sidebar-open, .ui-pilot .app-sidebar .sidebar-close { display: inline-flex; }
  .ui-pilot .sidebar-collapse { display: none; }
  .sidebar-collapsed .sidebar-wordmark { display: grid !important; }
  .sidebar-collapsed .sidebar-group-label, .sidebar-collapsed .app-nav-link > span, .sidebar-collapsed .sidebar-footer { display: block !important; }
  .sidebar-collapsed .sidebar-brand { justify-content: flex-start; padding: var(--space-6) var(--space-5); }
  .ui-pilot.sidebar-collapsed .app-sidebar .app-nav-link { justify-content: flex-start; padding: 10px var(--space-3); }
  .ui-pilot.sidebar-collapsed .app-sidebar .tabs { gap: var(--space-5); padding: 0 var(--space-3) var(--space-5); }
  .sidebar-collapsed .sidebar-footer { display: flex !important; }
  .ui-pilot .app-content { padding: var(--space-6); }
  .app-header { padding: var(--space-3) var(--space-5); }
  .pilot-calculator-grid { grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: var(--space-4); }
  .shell-user-copy { display: none; }
  .ui-pilot #quickMenuPanel { right: var(--space-5); }
}
@media (max-width: 700px) {
  .pilot-calculator-grid { grid-template-columns: minmax(0, 1fr); }
  .pilot-target-card { display: none !important; }
  .pilot-mobile-target { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-5); font-size: var(--font-xs); color: var(--text-muted); }
  .pilot-mobile-target strong { color: var(--primary); font-weight: 500; }
  .pilot-results { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pilot-result { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-5); }
  .pilot-result-heading { flex-direction: row; align-items: center; grid-column: 1 / -1; min-height: 0; margin-bottom: var(--space-3); }
  .pilot-result-interval { grid-row: 2 / 4; margin: 0; align-self: center; }
  .pilot-result dl { border: 0; padding: 0; gap: var(--space-2); }
  .pilot-result-status { margin: 0; justify-self: end; }
  .pilot-results-caption { display: none; }
  .pilot-page-heading { margin-bottom: var(--space-6); }
  .pilot-page-heading > .pilot-badge { display: none; }
  .pilot-metrics { gap: var(--space-3); }
  .pilot-metric { padding-left: 0; }
}
@media (max-width: 520px) {
  :root { --header-height: 64px; }
  .ui-pilot .app-content { padding: var(--space-5) var(--space-4); }
  .app-header { padding: 10px var(--space-3); gap: var(--space-2); }
  .header-breadcrumb { display: none; }
  .app-header h1 { font-size: 1rem; max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
  .header-section { gap: var(--space-2); }
  .shell-header-actions { gap: 0; }
  .shell-sync { min-width: 36px; justify-content: center; padding: 8px; }
  #syncStatusText, .shell-profile-toggle > .ui-icon, .shell-search-toggle { display: none !important; }
  .shell-profile-toggle { min-width: 44px; justify-content: center; }
  .ui-pilot .shell-popover:not(#quickMenuPanel) { position: fixed; top: calc(var(--header-height) + 8px); right: var(--space-4); }
  .ui-pilot #quickMenuPanel { right: var(--space-4); }
  .pilot-page-heading h2 { font-size: 1.5rem; }
  .pilot-calculator .card-header, .pilot-form { padding: var(--space-5); }
  .pilot-form { gap: var(--space-5) var(--space-3); }
  .pilot-field .form-label { font-size: var(--font-xs); min-height: 36px; }
  .pilot-field-wide .form-label { min-height: 0; }
  .pilot-form-footer .btn { width: 100%; }
  .pilot-metrics { padding: var(--space-5) 0 var(--space-6); grid-template-columns: 1fr; gap: var(--space-3); }
  .pilot-metric { flex-direction: row; justify-content: space-between; border: 0; }
  .pilot-metric strong { font-size: var(--font-xs); }
  .pilot-result { gap: var(--space-2) var(--space-3); padding: var(--space-5); }
  .pilot-result-interval strong { font-size: 2rem; }
  .pilot-result dt, .pilot-result dd { font-size: .65rem; }
  .shell-search-dialog { padding: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) { .shell-sync[data-status="saving"] .shell-status-dot { animation: none; } }
@media print {
  .ui-pilot { background: white; color: black; color-scheme: light; }
  .ui-pilot .app-sidebar, .ui-pilot .app-header, .sidebar-backdrop, .shell-search-overlay { display: none !important; }
  .ui-pilot .app-workspace { margin: 0 !important; }
  .ui-pilot .app-content { max-width: none; padding: 0; }
}
