/* The public tracking page keeps its own visual system. */
.operations-nav, .billing-nav { display: none; }
.operations-mode {
  --ink: #263331;
  --ink-soft: #4f605c;
  --muted: #697773;
  --line: #dfe5e3;
  --canvas: #f7f9f8;
  --surface: #fff;
  background: var(--canvas);
  font-size: 14px;
}
.operations-mode * { letter-spacing: 0; }
.operations-mode [hidden] { display: none !important; }
.operations-mode .operations-app { display: block; }
.operations-mode .app-rail,
.operations-mode #top,
.operations-mode .query-layout,
.operations-mode #lookupResult { display: none; }
.operations-mode .workspace { width: min(1320px, 100%); padding: 0 32px 40px; }
.operations-mode .site-header { min-height: 78px; border-bottom: 1px solid var(--line); }
.operations-mode .brand-lockup strong { font-family: inherit; font-size: 21px; line-height: 1.3; }
.operations-mode .brand-lockup small { font-size: 9px; }
.operations-mode .brand-symbol { border-radius: 6px; transform: none; }
.operations-mode .header-link { display: inline; font-weight: 600; }
.operations-mode .source-connection { border: 0; padding: 0; background: transparent; }
.operations-mode .source-connection::before { box-shadow: none; }
.operations-mode button, .operations-mode input, .operations-mode textarea { border-radius: 6px; }
.operations-mode button:focus-visible, .operations-mode a:focus-visible,
.operations-mode summary:focus-visible, .operations-mode input:focus-visible,
.operations-mode textarea:focus-visible { outline: 2px solid #176f50; outline-offset: 3px; }
.operations-mode .button-primary, .operations-mode .button-secondary {
  min-height: 38px; min-width: 0; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: none;
}
.operations-mode .button-primary:hover, .operations-mode .button-secondary:hover { transform: none; box-shadow: none; }
.operations-mode .login-panel { max-width: 440px; margin: 60px auto; }
.operations-mode .login-panel h2 { font-size: 22px; }
.operations-mode .login-form { display: grid; gap: 12px; }
.operations-mode .login-form input { min-width: 0; padding: 12px; border: 1px solid var(--line); background: white; }
.operations-mode #loginStatus { font-size: 12px; color: var(--muted); }
.operations-mode.operations-authenticated .login-panel {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px; max-width: none; margin: 0; min-height: 40px;
}
.operations-mode.operations-authenticated .login-panel h2 { display: none; }
.operations-mode .operations-panel { margin: 0; padding: 12px 0 24px; border: 0; }
.operations-mode .operations-heading { align-items: center; margin-bottom: 18px; }
.operations-mode .operations-heading h2 { font-size: 24px; }
.operations-mode .eyebrow { display: none; }
.operations-mode .operations-nav { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.operations-mode .operations-nav button {
  min-height: 46px; padding: 10px 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.operations-mode .operations-nav button[aria-current] { border-bottom-color: var(--teal); color: var(--teal); }
.operations-mode .operations-nav button:hover { color: var(--teal); }
.operations-mode [data-operations-view] { min-width: 0; }
.operations-mode .automation-workspace { margin: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.operations-mode .automation-band { padding: 20px 0; min-width: 0; }
.operations-mode .automation-run-band { padding-top: 0; }
.operations-mode .automation-header { align-items: center; padding: 22px 0 12px; }
.operations-mode .automation-header h3 { font-size: 16px; }
.operations-mode .automation-band-heading { gap: 12px; }
.operations-mode h4 { margin: 0; font-size: 15px; }
.operations-mode .automation-badge { font-size: 12px; font-weight: 500; }
.operations-mode .route-automation .automation-run-band { display: flex; align-items: center; gap: 20px; padding-bottom: 0; }
.operations-mode .route-automation .automation-header { flex: 1; gap: 12px; }
.operations-mode .route-automation .node-rules { padding-top: 10px; }
.operations-mode summary { cursor: pointer; color: var(--ink-soft); font-size: 13px; font-weight: 600; padding: 12px 0; }
.operations-mode .route-automation .automation-run-band:has(.node-rules[open]) { display: block; }
.operations-mode .node-rules[open] { padding: 0 0 8px; }
.operations-mode .route-input-band { display: block; padding-top: 8px; }
.operations-mode .route-automation-form { max-width: none; gap: 12px; }
.operations-mode .route-automation-form textarea { min-height: 94px; max-height: 220px; font-size: 14px; }
.operations-mode .route-historical-approval { color: var(--ink-soft); font-weight: 400; }
.operations-mode .route-file-control span { font-size: 12px; }
.operations-mode .automation-help { margin: 12px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.operations-mode .automation-help:empty { display: none; }
.operations-mode .table-scroll { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; margin-top: 14px; background: #fff; }
.operations-mode .route-result-table { margin-top: 0; }
.operations-mode .route-result-table th { border-top: 0; background: #edf2f0; font-size: 12px; font-weight: 500; }
.operations-mode .route-result-table td { font-size: 12px; padding: 14px 12px; }
.operations-mode .route-summary { font-size: 12px; line-height: 1.6; }
.operations-mode .billing-nav { display: flex; gap: 8px; padding: 20px 0 0; }
.operations-mode .billing-nav button { border: 0; min-height: 36px; padding: 8px 14px; color: var(--muted); background: transparent; font-size: 13px; }
.operations-mode .billing-nav button[aria-current] { color: #27586f; background: #e5eef3; font-weight: 600; }
.operations-mode .automation-timeline { background: #fff; }
.operations-mode .automation-run-strip { padding-bottom: 0; border: 0; }
.operations-mode .automation-form { max-width: 780px; gap: 14px; }
.operations-mode .automation-form label { display: grid; gap: 8px; min-width: 0; font-size: 13px; }
.operations-mode .automation-form textarea { min-height: 88px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.operations-mode .automation-form .button-secondary { justify-self: start; }
.operations-mode .settings-section { padding: 20px 0 26px; border-bottom: 1px solid var(--line); }
.operations-mode .settings-section h3 { margin: 0 0 18px; font-size: 16px; }
.operations-mode .settings-diagnostics, .operations-mode .record-section { padding: 8px 0; border-bottom: 1px solid var(--line); }
.operations-mode .record-section > section { padding: 8px 0 18px; }
.operations-mode .portal-user-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.operations-mode #portalUserResult { margin-top: 24px; }
.operations-mode .portal-user-item span { flex: 1 1 220px; overflow-wrap: anywhere; }
.operations-mode .portal-user-item input { min-width: 0; width: 160px; }
.operations-mode .portal-user-item button, .operations-mode .portal-user-item input { padding: 8px; border: 1px solid var(--line); background: white; }
.operations-mode .operation-mapping, .operations-mode .operation-audit-log, .operations-mode .workflow-definition { padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.6; font-size: 13px; overflow-wrap: anywhere; }
.operations-mode .workflow-definition small { display: block; }
.operations-mode .operation-tool { padding: 4px 0 16px; }
@media (max-width: 700px) {
  .operations-mode .workspace { padding: 0 16px 28px; }
  .operations-mode .site-header { gap: 12px; min-height: 80px; }
  .operations-mode .header-actions { gap: 8px; align-items: flex-end; flex-direction: column; }
  .operations-mode .source-connection { max-width: 165px; font-size: 10px; line-height: 1.5; }
  .operations-mode .operations-nav { justify-content: space-between; gap: 8px; }
  .operations-mode .operations-nav button { font-size: 13px; }
  .operations-mode .operations-heading { flex-direction: row; }
  .operations-mode .operations-heading h2 { font-size: 22px; }
  .operations-mode .route-automation .automation-header { flex-direction: row; flex-wrap: wrap; }
  .operations-mode .route-automation .automation-actions { width: auto; display: flex; }
  .operations-mode .route-automation .automation-run-band { gap: 8px; }
  .operations-mode .route-automation-form { grid-template-columns: 1fr; }
  .operations-mode .route-file-control, .operations-mode .route-actions { grid-column: 1; }
  .operations-mode .route-actions button { width: auto; }
  .operations-mode .automation-form { grid-template-columns: 1fr; }
  .operations-mode .billing-nav { gap: 0; justify-content: space-between; }
  .operations-mode .billing-nav button { padding: 8px 10px; }
  .operations-mode .automation-band-heading { align-items: flex-start; }
}
#routeLanguagePanel {
  margin-top: 20px;
  border-top: 1px solid #dce3e2;
  padding-top: 16px;
}
#routeLanguagePanel summary { cursor: pointer; font-weight: 600; }
#routeLanguagePanel h4 { margin: 16px 0 8px; }
#routeLanguageSummary { font-size: 13px; line-height: 1.6; }
#routeLanguagePanel table { min-width: 680px; table-layout: fixed; width: 100%; }
#routeLanguagePanel th:nth-child(2) { width: 46%; }
#routeLanguagePanel td { white-space: normal; overflow-wrap: anywhere; }
#routeLanguageCandidates { max-height: 240px; overflow-y: auto; padding-left: 24px; line-height: 1.7; }
/* Event-specific confirmations stay separate from the results table. */
#routeLocationEditor { margin: 18px 0; border-top: 1px solid #d8dde3; padding-top: 14px; }
#routeLocationEditor[hidden] { display: none; }
.route-location-row { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(140px, 1fr) minmax(160px, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #e3e7eb; }
.route-location-event { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.route-location-event span { font-size: 12px; color: #52606d; }
.route-location-row label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.route-location-row input, .route-location-row select, #routeExecutionMode { min-width: 0; width: 100%; padding: 9px; border: 1px solid #bcc5ce; border-radius: 4px; background: #fff; color: #24303c; }
#routeConfirmLocations { margin-top: 12px; }
@media (max-width: 650px) { .route-location-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .route-location-event { grid-column: 1 / -1; } }
