.spread-view.active .quote-head,
.spread-view.active .live-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .01em;
  box-sizing: border-box;
}

.spread-view.active .quote-card:nth-child(1) .quote-head {
  color: #0759bd;
  border-color: #b9d8ff;
  background: #eaf4ff;
}

.spread-view.active .quote-card:nth-child(2) .quote-head {
  color: #6941c6;
  border-color: #d8c8ff;
  background: #f2edff;
}

.spread-view.active .live-card-ab .live-label {
  color: #08765e;
  border-color: #a8e4d4;
  background: #ddf8ef;
}

.spread-view.active .live-card-ba .live-label {
  color: #a94d0c;
  border-color: #f5c79d;
  background: #fff0df;
}

.spread-view.active .live-card-ab {
  position: relative;
}

.dy-exness-hours-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #f1c566;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff8dd, #fff1bd);
  color: #8b5700;
  box-shadow: 0 3px 10px rgba(151, 97, 0, .1);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dy-exness-hours-trigger::before {
  content: "时";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d99100;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.dy-exness-hours-trigger:hover {
  transform: translateY(-1px);
  border-color: #da9d20;
  box-shadow: 0 5px 14px rgba(151, 97, 0, .18);
}

.dy-exness-hours-trigger:focus-visible,
.dy-exness-hours-close:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .32);
  outline-offset: 2px;
}

.dy-exness-hours-short { display: none; }

.dy-exness-hours-overlay[hidden] { display: none !important; }

.dy-exness-hours-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(5px);
}

.dy-exness-hours-dialog {
  position: relative;
  width: min(1240px, 100%);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid #dbe5f3;
  border-radius: 17px;
  background: #fff;
  color: #172033;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .32);
}

.dy-exness-hours-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(350px, .95fr) minmax(420px, 1.2fr) auto;
  align-items: flex-start;
  gap: 30px;
  padding: 12px 58px 10px 18px;
  border-bottom: 1px solid #e7edf6;
  background: linear-gradient(135deg, #f3f7ff 0%, #f9f6ff 55%, #fff8e7 100%);
}

.dy-exness-hours-kicker {
  margin: 0 0 2px;
  color: #5f55cf;
  font-size: 12px;
  font-weight: 850;
}

.dy-exness-hours-title {
  margin: 0;
  color: #13213b;
  font-size: 20px;
  line-height: 1.2;
}

.dy-exness-hours-subtitle {
  margin: 3px 0 0;
  color: #66738a;
  font-size: 12px;
  line-height: 1.4;
}

.dy-exness-hours-dst-card {
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid #cfdef1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .74);
  color: #5a6880;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
  font-size: 12px;
  line-height: 1.45;
}

.dy-exness-hours-dst-label {
  color: #35445d;
  font-size: 12px;
}

.dy-exness-hours-dst-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.dy-exness-hours-dst-current { color: #66738a; }
.dy-exness-hours-dst-current strong { color: #0759bd; }

.dy-exness-hours-season-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: max-content;
}

.dy-exness-hours-season {
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 5px 9px;
  border: 1px solid #b8d8ff;
  border-radius: 999px;
  background: #e9f4ff;
  color: #0759bd;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.dy-exness-hours-swap-link {
  color: #0759bd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.dy-exness-hours-swap-link:hover { color: #4f46c8; }
.dy-exness-hours-swap-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
  border-radius: 3px;
}

.dy-exness-hours-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cfd9e8;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: #445069;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dy-exness-hours-close:hover { background: #fff; color: #d92d4c; }

.dy-exness-hours-body { padding: 9px 18px 12px; }

.dy-exness-hours-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 1px solid #f1d48b;
  border-radius: 12px;
  background: #fff9e8;
  color: #76500d;
  font-size: 12px;
  line-height: 1.4;
}

.dy-exness-hours-callout strong {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d99300;
  color: #fff;
}

.dy-exness-hours-table-wrap {
  overflow: visible;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
}

.dy-exness-hours-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.dy-exness-hours-table th,
.dy-exness-hours-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
  vertical-align: top;
}

.dy-exness-hours-table th {
  background: #f5f8fc;
  color: #526078;
  font-size: 11px;
  font-weight: 850;
  white-space: normal;
}

.dy-exness-hours-table tbody tr:last-child td { border-bottom: 0; }
.dy-exness-hours-table tbody tr:hover { background: #fbfdff; }

.dy-exness-symbol {
  display: block;
  color: #15223a;
  font-size: 13px;
  font-weight: 900;
}

.dy-exness-name {
  display: block;
  margin-top: 2px;
  color: #7a879b;
  font-size: 11px;
}

.dy-exness-time {
  display: block;
  color: #173f77;
  font-weight: 850;
  white-space: normal;
}

.dy-exness-hours-table small {
  display: block;
  margin-top: 2px;
  color: #7c879a;
  line-height: 1.3;
}

.dy-exness-hours-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.dy-exness-hours-note {
  padding: 7px 9px;
  border: 1px solid #e1e8f2;
  border-radius: 11px;
  background: #f8fafc;
  color: #68758a;
  font-size: 11px;
  line-height: 1.35;
}

.dy-exness-hours-note strong {
  display: block;
  margin-bottom: 1px;
  color: #2c3a51;
  font-size: 12px;
}

body.dy-exness-hours-open { overflow: hidden; }

.combo-card.dy-cross-benchmark-card .funding-dot,
.combo-card.dy-cross-benchmark-card .symbol-funding-dot,
.combo-card.dy-cross-benchmark-card .combination-funding-dot {
  display: none !important;
  animation: none !important;
}

.funding-panel.dy-cross-benchmark-panel {
  gap: 12px 18px;
  border-color: #8fcce8 !important;
  background: linear-gradient(105deg, #eefaff 0%, #edf5ff 48%, #f3f1ff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), 0 4px 14px rgba(28, 112, 164, .1);
}

.funding-panel.dy-cross-benchmark-panel .funding-item {
  display: none !important;
}

.dy-cross-benchmark-notice {
  position: relative;
  flex: 1 1 520px;
  min-width: 0;
  padding: 10px 16px 10px 45px;
  border: 1px solid rgba(36, 133, 184, .32);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(220, 247, 255, .96), rgba(226, 238, 255, .96) 54%, rgba(238, 233, 255, .96));
  color: #174d70;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: .005em;
  box-shadow: 0 4px 12px rgba(41, 113, 160, .1);
}

.dy-cross-benchmark-notice::before {
  content: "↔";
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #168bbd, #6559ed);
  color: #fff;
  box-shadow: 0 3px 9px rgba(54, 91, 180, .25);
  font-size: 15px;
  font-weight: 900;
  transform: translateY(-50%);
}

.dy-cross-benchmark-notice[hidden] { display: none !important; }

.dy-oil-pair-context {
  position: relative;
  display: block;
  margin: 14px 12px 20px !important;
  padding: 16px 58px 42px 62px !important;
  border: 2px solid #e5ab22 !important;
  border-left-width: 6px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #fff4bd 0%, #fff9dc 52%, #fffdf2 100%) !important;
  color: #65420b !important;
  box-shadow: 0 8px 22px rgba(143, 91, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  letter-spacing: .005em;
  overflow: visible !important;
  box-sizing: border-box;
  pointer-events: auto !important;
}

.dy-oil-pair-context-copy {
  display: block;
}

.dy-oil-pair-context-countdown {
  position: absolute;
  right: 15px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 9px;
  border: 1px solid rgba(180, 111, 0, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: #8a590b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.dy-oil-pair-context-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(154, 93, 0, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .76);
  color: #7b4d08;
  box-shadow: 0 2px 8px rgba(121, 74, 0, .12);
  font: 800 23px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.dy-oil-pair-context-close:hover {
  border-color: rgba(154, 93, 0, .52);
  background: #fff;
}

.dy-oil-pair-context-close:focus-visible {
  outline: 3px solid rgba(229, 171, 34, .34);
  outline-offset: 2px;
}

.dy-oil-pair-context::before {
  content: "!";
  position: absolute;
  left: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff3c4;
  border-radius: 50%;
  background: #dc8b00;
  color: #fff;
  box-shadow: 0 2px 8px rgba(136, 82, 0, .24);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
}

.dy-oil-pair-context::after {
  content: "";
  position: absolute;
  left: 38px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  border-right: 2px solid #e5ab22;
  border-bottom: 2px solid #e5ab22;
  background: #fff9dc;
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(143, 91, 0, .06);
}

.dy-oil-pair-context.dy-oil-context-pop {
  animation: dyOilContextPop .42s ease-out;
}

@keyframes dyOilContextPop {
  0% { transform: translateY(-3px) scale(.992); box-shadow: 0 0 0 5px rgba(229, 171, 34, .2); }
  65% { transform: translateY(0) scale(1.002); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 8px 22px rgba(143, 91, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .82); }
}

@media (max-width: 1280px) {
  .dy-exness-hours-long { display: none; }
  .dy-exness-hours-short { display: inline; }
}

@media (max-width: 760px) {
  .spread-view.active .quote-head,
  .spread-view.active .live-label {
    min-height: 25px;
    padding: 3px 7px;
    font-size: 12px;
  }
  .dy-exness-hours-overlay { padding: 8px; }
  .dy-exness-hours-dialog {
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
  }
  .dy-exness-hours-head { grid-template-columns:1fr; gap:7px; padding:10px 46px 8px 12px; }
  .dy-exness-hours-title { font-size: 17px; }
  .dy-exness-hours-season { display: none; }
  .dy-exness-hours-dst-card { padding:7px 9px; font-size:11px; }
  .dy-exness-hours-season-group { gap:0; min-width:0; }
  .dy-exness-hours-body { padding: 7px 10px 10px; }
  .dy-exness-hours-table-wrap { border: 0; }
  .dy-exness-hours-table,.dy-exness-hours-table tbody { display: block; width: 100%; }
  .dy-exness-hours-table thead { display: none; }
  .dy-exness-hours-table tr { display: grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap: 1px; margin-bottom: 7px; overflow:hidden; border:1px solid #dfe7f1; border-radius:10px; background:#eef3f9; }
  .dy-exness-hours-table td { min-width:0; padding:6px 8px; border:0; background:#fff; overflow-wrap:anywhere; }
  .dy-exness-hours-table td:first-child { grid-column:1/-1; background:#f5f8fc; }
  .dy-exness-hours-table td::before { content:attr(data-label); display:block; margin-bottom:2px; color:#738097; font-size:10px; font-weight:850; }
  .dy-exness-hours-notes { grid-template-columns: 1fr; }
  .dy-oil-pair-context {
    margin: 11px 8px 17px !important;
    padding: 13px 48px 13px 50px !important;
    border-left-width: 5px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .dy-oil-pair-context::before {
    left: 12px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
  .dy-oil-pair-context::after { left: 30px; }
  .dy-oil-pair-context-close {
    top: 8px;
    right: 8px;
    width: 29px;
    height: 29px;
    font-size: 21px;
  }
  .funding-panel.dy-cross-benchmark-panel {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .funding-panel.dy-cross-benchmark-panel .funding-directions {
    flex: 0 0 auto;
  }
  .dy-cross-benchmark-notice {
    flex-basis: 100%;
    padding: 10px 12px 10px 42px;
    font-size: 12px;
    line-height: 1.55;
  }
  .dy-cross-benchmark-notice::before {
    left: 10px;
    width: 23px;
    height: 23px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .dy-exness-hours-table tr { grid-template-columns:1fr; }
  .dy-exness-hours-table td:first-child { grid-column:auto; }
}

@media (prefers-reduced-motion: reduce) {
  .dy-oil-pair-context.dy-oil-context-pop { animation: none; }
}

@media (max-width: 520px) {
  .spread-view.active .live-card-ab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 7px;
  }
  .spread-view.active .live-card-ab .dy-exness-hours-trigger {
    grid-column: 1 / -1;
    width: 100%;
  }
  .dy-exness-hours-kicker { font-size: 11px; }
  .dy-exness-hours-title { font-size: 18px; }
  .dy-exness-hours-subtitle { font-size: 12px; }
  .dy-exness-hours-callout { font-size: 12px; }
}
