/* SONIA Forward Curve (OIS-implied) standalone styles */

/* Palette tokens now live in tokens.css (loaded on this page). This file
   consumes --pt-* from there; the duplicate :root was removed. */

body {
  background-color: #f7f8fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--pt-text);
}

.main-content {
  padding: 20px;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.sfc-header {
  padding: 6px 4px 0 4px;
}

.sfc-title {
  color: var(--pt-navy);
  font-weight: 700;
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.sfc-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 26px;
  background: var(--pt-navy-grad);
  border-radius: 2px;
  transform: translateY(3px);
}

.sfc-subtitle {
  color: var(--pt-muted);
  font-style: normal;
  font-size: 0.86rem;
  margin-top: 4px;
  padding-left: 16px;
}

.sfc-updated {
  color: var(--pt-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* PWLB Today Training entry button */
.sfc-training-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pt-navy-grad);
  color: #ffffff !important;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 7px;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--pt-shadow-navy);
  position: relative;
  overflow: hidden;
}

.sfc-training-btn::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.sfc-training-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--pt-shadow-navy-strong);
}

.sfc-training-btn i {
  color: #fd7e14;
  font-size: 1.4rem;
}

.sfc-training-btn .sfc-training-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fd7e14;
  font-weight: 700;
  line-height: 1.2;
}

.sfc-training-btn .sfc-training-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
}

/* KPI tiles — navy gradient with subtle radial highlight */
.sfc-kpi {
  background: var(--pt-navy-grad) !important;
  height: 110px;
  border: none;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pt-shadow-navy);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sfc-kpi::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.sfc-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--pt-shadow-navy-strong);
}

.sfc-kpi .kpi-header {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px 2px 16px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.sfc-kpi .rate-value {
  color: var(--pt-orange);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 0 16px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.sfc-kpi .kpi-meta {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  padding: 4px 16px 0 16px;
  min-height: 1.1em;
  position: relative;
  z-index: 1;
}

/* Panels */
.sfc-panel {
  border: none;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: var(--pt-shadow-navy);
  overflow: hidden;
  position: relative;
}

.sfc-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--pt-navy-grad);
  z-index: 1;
}

/* SONIA panel header — navy gradient bar with orange title, matching the
   dashboard's tile-header chrome so the two pages feel like one product. */
.sfc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 0.85rem;
  background: var(--pt-navy-grad);
  color: #ffffff;
}

.sfc-panel-header-spread {
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
}

.sfc-panel-header-spread .btn-group .btn {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-color: rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sfc-panel-header-spread .btn-group .btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.50);
}
.sfc-panel-header-spread .btn-group .btn.active {
  background: var(--pt-orange);
  border-color: var(--pt-orange);
  color: #ffffff;
}

.sfc-panel-title {
  color: var(--pt-orange);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sfc-info {
  display: none;
}
.sfc-panel-header .sfc-info:hover { color: #ffffff; }

.sfc-toggle-row {
  display: flex;
  justify-content: center;
  padding: 0 14px 6px 14px;
}

.sfc-toggle-row .btn-outline-secondary {
  border-color: #dee2e6;
  color: #495057;
}

.sfc-toggle-row .btn-outline-secondary.active {
  background-color: #f1f3f5;
  color: #212529;
  border-color: #adb5bd;
}

.sfc-foot {
  color: #6c757d;
  font-size: 0.78rem;
  padding-top: 6px;
  line-height: 1.4;
}

.sfc-panel .card-body {
  padding: 8px 12px 10px 12px;
}

/* Forward rates matrix */
.sfc-matrix-wrap {
  overflow-x: auto;
}

.sfc-matrix {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.sfc-matrix th,
.sfc-matrix td {
  text-align: center;
  padding: 2px 4px;
  border: 1px solid #ffffff;
  white-space: nowrap;
}

.sfc-matrix thead th {
  background: var(--pt-navy);
  color: var(--pt-orange);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sfc-matrix thead th.sfc-corner {
  background: var(--pt-navy);
  color: var(--pt-navy);
}

.sfc-matrix tbody th {
  background: var(--pt-navy);
  color: #ffffff;
  font-weight: 600;
}

.sfc-matrix td {
  color: var(--pt-text);
  background: #ffffff;
  transition: background 0.12s;
}

.sfc-matrix td:hover {
  background: var(--pt-orange-soft);
}

/* Headline pills (since open) */
.sfc-headline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 6px 14px;
  flex-wrap: wrap;
}

.sfc-headline-label {
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sfc-headline {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sfc-pill {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--pt-line-soft);
  color: var(--pt-text);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Pulsing dot on the "since open" movement pills — signals these
   values are live/updating, not a static snapshot. */
.sfc-pill-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28a745;
  flex-shrink: 0;
  animation: sfc-pill-pulse 1.8s ease-in-out infinite;
}

@keyframes sfc-pill-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

/* User guide button */
.sfc-guide-toggle {
  background: #ffffff;
  border: 1px solid var(--pt-line);
  border-radius: 5px;
  color: var(--pt-navy);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sfc-guide-toggle:hover {
  background: var(--pt-orange-soft);
  border-color: var(--pt-orange);
  color: #8a3a00;
}

.sfc-guide-toggle i { color: var(--pt-orange); }

.sfc-guide-toggle i { font-size: 0.85rem; }

/* User guide modal — clean editorial look matching the page aesthetic */
.sfc-guide-modal .modal-content {
  border: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(10, 37, 64, 0.18);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sfc-guide-modal .modal-header {
  background: #ffffff;
  border-bottom: 2px solid #fd7e14;
  padding: 18px 28px 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sfc-guide-modal .modal-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a2540;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.sfc-guide-modal .modal-title i {
  color: #fd7e14;
  font-size: 1rem;
}

.sfc-guide-modal .btn-close {
  filter: none;
  opacity: 0.45;
  width: 0.7em;
  height: 0.7em;
}
.sfc-guide-modal .btn-close:hover { opacity: 1; }

.sfc-guide-modal .modal-body {
  padding: 0;
  background: #ffffff;
}

.sfc-guide-modal .sfc-guide-section {
  padding: 22px 28px;
  border-bottom: 1px solid #eef0f2;
}

.sfc-guide-modal .sfc-guide-section:last-child { border-bottom: none; }

.sfc-guide-modal .sfc-guide-section.sfc-guide-caveats {
  background: #fafbfc;
}

.sfc-guide-modal .sfc-guide-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fd7e14;
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(253, 126, 20, 0.25);
}

.sfc-guide-modal h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #0a2540;
  margin: 16px 0 8px 0;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.sfc-guide-modal h6:first-of-type { margin-top: 0; }

.sfc-guide-modal p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #343a40;
  margin: 0 0 10px 0;
}

.sfc-guide-modal p:last-child { margin-bottom: 0; }

.sfc-guide-modal b,
.sfc-guide-modal strong {
  color: #0a2540;
  font-weight: 600;
}

.sfc-guide-modal ul {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #343a40;
  padding-left: 0;
  margin: 8px 0 0 0;
  list-style: none;
}

.sfc-guide-modal ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.sfc-guide-modal ul li:last-child { margin-bottom: 0; }

.sfc-guide-modal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: #fd7e14;
  border-radius: 50%;
}

.sfc-guide-modal .modal-footer {
  border-top: 1px solid #eef0f2;
  padding: 12px 22px;
  background: #ffffff;
}

.sfc-guide-modal .modal-footer .btn-secondary {
  background: #ffffff;
  border: 1px solid #ced4da;
  color: #495057;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 18px;
  letter-spacing: 0.02em;
}

.sfc-guide-modal .modal-footer .btn-secondary:hover {
  background: #f1f3f5;
  border-color: #adb5bd;
  color: #212529;
}

/* Compare-to buttons */
.sfc-compare-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 6px 14px;
  flex-wrap: wrap;
}

/* Pill-shaped segmented control to match the site idiom (Predictor's
   .pt-segmented, Activity's .pa-segmented). Each comparison option
   sits flush inside a single rounded container; active option carries
   the brand-orange fill so the picked time-window reads at a glance.
   The "1yr range" toggle and "Clear" reset both stay visually
   distinct as the right-hand outliers. */
.sfc-compare-btns {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  gap: 0;
  flex-wrap: wrap;
}

.sfc-compare-btns button {
  font-size: 0.75rem;
  padding: 0.28rem 0.85rem;
  border: none;
  border-right: 1px solid #e9ecef;
  border-radius: 0;
  background: transparent;
  color: #495057;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.12s, color 0.12s;
}
.sfc-compare-btns button:last-child { border-right: none; }

.sfc-compare-btns button:hover {
  background: rgba(253, 126, 20, 0.08);
  color: #c84a00;
}

.sfc-compare-btns button.active {
  background: #fd7e14;
  color: #ffffff;
}
.sfc-compare-btns button.active:hover {
  background: #e76b07;
  color: #ffffff;
}

.sfc-compare-btns button.sfc-compare-band {
  /* "1yr range" is a different kind of comparison — soft amber tint
     to differentiate from the time-window options. */
  color: #495057;
}
.sfc-compare-btns button.sfc-compare-band.active {
  background: #fcc419;
  color: #1a1a1a;
}

.sfc-compare-btns button.sfc-compare-clear {
  color: #6c757d;
  font-weight: 500;
}
.sfc-compare-btns button.sfc-compare-clear:hover {
  color: #1a1a1a;
  background: #f1f3f5;
}

.sfc-compare-btns.sfc-compare-disabled button:not(.active) {
  opacity: 0.55;
  cursor: wait;
}

.sfc-pill.sfc-up { background: #fde2cc; color: #8a3a00; }
.sfc-pill.sfc-down { background: #d4edda; color: #155724; }
.sfc-pill.sfc-flat { background: #f1f3f5; color: #495057; }

.sfc-up { color: #c0392b; }
.sfc-down { color: #1e7e34; }

/* Click-to-pin popover */
.sfc-pop {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 260px;
  background: #ffffff;
  border: 1px solid var(--pt-line);
  border-radius: 8px;
  box-shadow: var(--pt-shadow-navy-strong);
  padding: 0;
  font-size: 0.85rem;
  display: none;
  z-index: 50;
  overflow: hidden;
}

.sfc-pop.sfc-pop-open { display: block; }

.sfc-pop-head {
  background: var(--pt-navy-grad);
  color: #ffffff;
  padding: 10px 34px 10px 14px;
  position: relative;
}

.sfc-pop-title {
  color: var(--pt-orange);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.005em;
}

.sfc-pop-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin-top: 2px;
}

.sfc-pop-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.sfc-pop-body {
  padding: 8px 12px;
}

.sfc-pop-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #f1f3f5;
  font-variant-numeric: tabular-nums;
}

.sfc-pop-row:last-child { border-bottom: none; }
.sfc-pop-row span:first-child { color: #6c757d; }
.sfc-pop-row span:last-child { color: #212529; font-weight: 600; }

/* Roll vs fix */
.sfc-rvf-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 4px 14px 4px;
  align-items: flex-end;
}

.sfc-rvf-controls label {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  gap: 4px;
}

.sfc-rvf-controls input::-webkit-inner-spin-button,
.sfc-rvf-controls input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sfc-rvf-controls input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.sfc-rvf-controls input,
.sfc-rvf-controls select {
  font-size: 0.95rem;
  padding: 7px 10px;
  border: 1px solid var(--pt-line);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  font-weight: 400;
  color: var(--pt-text);
  letter-spacing: 0;
  min-width: 140px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sfc-rvf-controls input:focus,
.sfc-rvf-controls select:focus {
  outline: none;
  border-color: var(--pt-orange);
  box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.15);
}

.sfc-rvf-output {
  padding: 4px 0;
}

.sfc-rvf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 0 12px 0;
}

.sfc-rvf-cell {
  background: var(--pt-navy-grad);
  border-radius: 9px;
  padding: 14px 16px;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pt-shadow-navy);
}

.sfc-rvf-cell::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.sfc-rvf-k {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.sfc-rvf-v {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pt-orange);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-top: 4px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.sfc-rvf-v.sfc-up { color: #ff8a4d; }
.sfc-rvf-v.sfc-down { color: #6dd382; }

.sfc-rvf-meta {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.sfc-rvf-verdict {
  font-size: 0.92rem;
  color: var(--pt-text);
  padding: 8px 14px;
  border-left: 3px solid var(--pt-orange);
  background: var(--pt-orange-soft);
  border-radius: 0 6px 6px 0;
  margin-top: 4px;
}

/* MPC table */
.sfc-mpc-wrap {
  margin-top: 14px;
  border-top: 1px solid #f1f3f5;
  padding-top: 10px;
}

.sfc-mpc-spot {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 6px;
}

.sfc-mpc-spot b {
  color: #fd7e14;
}

.sfc-mpc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  border-radius: 6px;
  overflow: hidden;
}

.sfc-mpc-table thead th {
  text-align: left;
  background: var(--pt-navy);
  color: var(--pt-orange);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-bottom: none;
}

.sfc-mpc-table th:not(:first-child),
.sfc-mpc-table td:not(:first-child) {
  text-align: right;
}

.sfc-mpc-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--pt-line-soft);
  color: var(--pt-text);
}

.sfc-mpc-table tr:last-child td { border-bottom: none; }

.sfc-mpc-table tbody tr:nth-child(even) td {
  background-color: #fafbfc;
}

.sfc-mpc-table tbody tr:hover td {
  background-color: var(--pt-orange-soft);
}

.sfc-leg {
  display: inline-block;
  background: var(--pt-line-soft);
  border-radius: 11px;
  padding: 3px 9px;
  margin: 2px 4px 2px 0;
  font-size: 0.76rem;
  color: var(--pt-text);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ===========================================================================
   PT loading component — branded loader for charts, tables, tools
   =========================================================================== */

.pt-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 14px;
  width: 100%;
  height: 100%;
  min-height: 120px;
  position: relative;
}

/* Animated indeterminate progress bar — navy gradient sweep across full width */
.pt-loading-bar {
  position: relative;
  width: min(72%, 320px);
  height: 3px;
  background: var(--pt-line-soft);
  border-radius: 2px;
  overflow: hidden;
}

.pt-loading-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(10, 37, 64, 0.4) 25%,
    var(--pt-orange) 50%,
    rgba(10, 37, 64, 0.4) 75%,
    transparent 100%
  );
  border-radius: 2px;
  animation: pt-loading-sweep 1.4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes pt-loading-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.pt-loading-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pt-navy);
}

.pt-loading-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pt-orange);
  box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.55);
  animation: pt-loading-pulse 1.4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes pt-loading-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.55); transform: scale(1); }
  60%  { box-shadow: 0 0 0 10px rgba(253, 126, 20, 0);   transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0);     transform: scale(1); }
}

/* Skeleton — chart variant: a faux chart shape that shimmers */
.pt-loading-chart {
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
  background: linear-gradient(180deg, #fcfdfe 0%, #f7f9fb 100%);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px 14px 30px 14px;
  gap: 6px;
  isolation: isolate;
}

.pt-loading-chart::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(26, 71, 117, 0.06) 30%,
    rgba(26, 71, 117, 0.13) 50%,
    rgba(26, 71, 117, 0.06) 70%,
    transparent 100%
  );
  animation: pt-shimmer 1.8s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
  z-index: 1;
}

.pt-loading-chart-bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(26, 71, 117, 0.18) 0%, rgba(26, 71, 117, 0.06) 100%);
  border-radius: 3px 3px 0 0;
  position: relative;
  z-index: 0;
}

.pt-loading-chart-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

@keyframes pt-shimmer {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

/* Skeleton — table variant: faux rows */
.pt-loading-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  position: relative;
  isolation: isolate;
}

.pt-loading-table::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(26, 71, 117, 0.05) 50%,
    transparent 100%
  );
  animation: pt-shimmer 1.8s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
  z-index: 1;
  pointer-events: none;
}

.pt-loading-table-head {
  height: 24px;
  background: var(--pt-navy);
  border-radius: 4px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.pt-loading-table-row {
  height: 18px;
  background: linear-gradient(90deg, rgba(26, 71, 117, 0.08) 0%, rgba(26, 71, 117, 0.13) 50%, rgba(26, 71, 117, 0.08) 100%);
  border-radius: 4px;
  opacity: 0.85;
}

.pt-loading-table-row:nth-child(odd) { width: 92%; }
.pt-loading-table-row:nth-child(even) { width: 78%; }
.pt-loading-table-row:nth-child(3n) { width: 86%; }

.pt-loading-table-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

/* Compact pill loader (for inline use, e.g. headline row, RvF output) */
.pt-loading-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--pt-line-soft);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pt-navy);
}

/* KPI tile value placeholder — orange-tinted shimmer bar */
.pt-kpi-skel {
  display: inline-block;
  width: 80px;
  height: 1.5rem;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(253, 126, 20, 0.20) 0%,
    rgba(253, 126, 20, 0.40) 50%,
    rgba(253, 126, 20, 0.20) 100%
  );
  background-size: 200% 100%;
  animation: pt-kpi-shimmer 1.4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
  vertical-align: middle;
  margin-top: 4px;
}

@keyframes pt-kpi-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   SONIA redesign additions — AS OF strip, summary callout, featured
   Fix-vs-View, compressed MPC table, matrix optimal-cell highlight.
   Patterns deliberately match the PWLB / Predictor pages.
   ═══════════════════════════════════════════════════════════════════ */
.sfc-asof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6c757d;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.sfc-asof-strip .sfc-asof-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #495057;
  font-weight: 600;
}
.sfc-asof-strip .sfc-asof-time {
  font-variant-numeric: tabular-nums;
  color: #212529;
  font-weight: 600;
}
.sfc-asof-strip .sfc-asof-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a745;
  display: inline-block;
}
.sfc-asof-strip .sfc-asof-sep { opacity: 0.4; }
.sfc-asof-strip .sfc-asof-since { color: #6c757d; font-style: italic; }
.sfc-asof-strip .sfc-asof-trail { margin-left: auto; }
.sfc-asof-strip .sfc-asof-link {
  color: #6c757d;
  text-decoration: underline;
  text-decoration-color: rgba(108, 117, 125, .4);
}

/* Summary callout — orange-accented one-liner that lands the page's job. */
.sfc-summary {
  background: rgba(253, 126, 20, 0.05);
  border: 1px solid rgba(253, 126, 20, 0.25);
  border-left: 3px solid #fd7e14;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sfc-summary .bi {
  color: #fd7e14;
  font-size: 15px;
  margin-top: 1px;
}
.sfc-summary strong { color: #c84a00; font-weight: 700; }
.sfc-summary[hidden] { display: none; }

/* Featured Fix-vs-View strip — orange edge marker + ★ Decision pill so
   it reads as the page's hero tool without screaming for attention. */
.sfc-rvf-featured {
  border-left: 4px solid #fd7e14;
}
.sfc-featured-pill {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #fd7e14;
  color: #212529;
  border-radius: 999px;
  vertical-align: middle;
}

/* Compressed MPC table — sparkline-style cumulative bar replaces a
   plain numeric column. Spot lives in the panel header now, freeing
   the table body for pure rows. */
.sfc-mpc-spot-pill {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-left: auto;
  margin-right: 8px;
}
.sfc-mpc-spot-pill strong {
  color: #fd7e14;
  font-weight: 700;
}
.sfc-mpc-table-compact { font-size: 12px; }
.sfc-mpc-table-compact th,
.sfc-mpc-table-compact td {
  padding: 5px 6px !important;
  white-space: nowrap;
}
.sfc-mpc-table-compact .sfc-cum-col {
  min-width: 110px;
}
.sfc-cum-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sfc-cum-track {
  flex: 1;
  height: 6px;
  background: rgba(108, 117, 125, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.sfc-cum-bar {
  height: 100%;
  border-radius: 3px;
}
.sfc-cum-up   { background: #c0392b; }
.sfc-cum-down { background: #1f8a3a; }
.sfc-cum-flat { background: #adb5bd; }
.sfc-cum-label {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #495057;
  min-width: 48px;
  text-align: right;
}

