/* Long continuation/date signal cards and their record drawer. */
:root { --hs-long-gain: #078A63; --hs-long-peak: #3CB89D; --hs-long-card-bg: #EDF6FC; --hs-long-action-bg: #FFFFFF; --hs-fib-breakout: #B94353; --hs-fib-very-shallow: #B94D32; --hs-fib-shallow: #9C5E1F; --hs-fib-middle: #856315; --hs-fib-half: #5C7529; --hs-fib-golden: #287A53; --hs-fib-deep: #087985; --hs-fib-breakdown: #5F7189; }
html.hscan-v23-night { --hs-long-gain: #52D9A8; --hs-long-peak: #80CDB7; --hs-long-card-bg: #1C3246; --hs-long-action-bg: #223B51; --hs-fib-breakout: #e67581; --hs-fib-very-shallow: #e67581; --hs-fib-shallow: #e98963; --hs-fib-middle: #e8bd56; --hs-fib-half: #a8c76c; --hs-fib-golden: #56c795; --hs-fib-deep: #47c3d0; --hs-fib-breakdown: #879bb6; }

.signal-row.hs-long-card {
  display: block;
  margin: 0 8px 10px;
  width: calc(100% - 16px);
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--hs-long-card-bg);
  color: var(--text);
}
.hs-long-card * { box-sizing: border-box; }
.hs-long-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hs-long-head-long { flex-wrap: wrap; }
.hs-long-symbol { min-width: 0; white-space: nowrap; font-size: 19px; line-height: 1.2; }
.hs-long-head-long .hs-long-symbol { flex: 0 0 100%; white-space: normal; overflow-wrap: anywhere; }
.hs-long-wave { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hs-long-status { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hs-long-status.is-breakout { color: var(--hs-fib-breakout); }
.hs-long-status.is-very-shallow { color: var(--hs-fib-very-shallow); }
.hs-long-status.is-shallow { color: var(--hs-fib-shallow); }
.hs-long-status.is-middle { color: var(--hs-fib-middle); }
.hs-long-status.is-half { color: var(--hs-fib-half); }
.hs-long-status.is-golden { color: var(--hs-fib-golden); }
.hs-long-status.is-deep { color: var(--hs-fib-deep); }
.hs-long-status.is-breakdown { color: var(--hs-fib-breakdown); }
.hs-long-head-spacer { flex: 1 1 auto; }
.hs-long-card .favorite-v2-star { flex: 0 0 auto; }
.hs-long-detail { flex: 0 0 auto; border: 0; background: transparent; color: var(--text); font-size: 11px; padding: 4px 0; }
.hs-long-first-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin-top: 18px; }
.hs-long-first-grid .hs-long-metric { display: grid; grid-template-rows: 18px auto; align-content: start; }
.hs-long-first-grid .hs-long-metric small { font-size: 10px; letter-spacing: -0.2px; white-space: nowrap; }
.hs-long-metric { display: block; min-width: 0; }
.hs-long-metric small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; font-weight: 400; }
.hs-long-metric strong { display: block; margin-top: 5px; color: var(--text); font-size: 12px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-long-neutral strong, .hs-long-neutral strong.positive, .hs-long-neutral strong.negative { color: var(--text) !important; }
.hs-long-peak-gain strong, .hs-long-peak-gain strong.positive { color: var(--hs-long-peak) !important; }
.hs-long-peak-gain strong.negative { color: var(--red) !important; }
.hs-long-hero { display: flex; justify-content: space-between; align-items: end; gap: 5px; margin-top: 18px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hs-long-hero > div { min-width: 0; }
.hs-long-current-price strong, .hs-long-current-price strong.positive, .hs-long-current-price strong.negative { font-size: 23px; color: var(--text) !important; }
.hs-long-current-gain { text-align: right; }
.hs-long-bright-gain strong, .hs-long-bright-gain strong.positive { font-size: 21px; color: var(--hs-long-gain) !important; }
.hs-long-bright-gain strong.negative { color: var(--red) !important; }
.hs-long-current-gain .hs-long-metric small { white-space: nowrap; }
.hs-long-situation { padding: 16px 0 13px; border-bottom: 1px solid var(--line); }
.hs-long-situation > b { font-size: 12px; }
.hs-long-situation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 13px; }
.hs-long-drawdown strong, .hs-long-drawdown strong.positive { color: var(--red) !important; font-size: 14px; }
.hs-long-directional strong { font-size: 14px; }
.hs-long-directional strong.positive { color: var(--green); }
.hs-long-directional strong.negative { color: var(--red); }
.hs-long-record-trigger { width: 100%; min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.hs-long-record-trigger b { font-size: 12px; }
.hs-long-record-trigger span { color: var(--muted); font-size: 11px; }
.hs-long-actions { display: flex; align-items: center; gap: 5px; margin-top: 12px; min-width: 0; }
.hs-long-action, .hs-long-card .hs-long-action.reference-pill { flex: 1 1 0; min-width: 0; min-height: 34px; padding: 5px 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--hs-long-action-bg); color: var(--text); font-size: 11px; white-space: nowrap; }
.hs-long-card .mobile-exchange-logos { width: auto; min-width: 0; flex: 0 0 auto; gap: 2px; }
.hs-long-card .mobile-exchange-logo-slot { width: 17px; height: 17px; flex-basis: 17px; }
.drawer.long-records-layout .drawer-sheet { top: 83px; max-height: none; }
.drawer.long-records-layout .drawer-body { flex: 1 1 auto; min-height: 0; }
.hs-long-record-list { display: grid; gap: 8px; }
.hs-long-record-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 46px auto; align-items: center; gap: 7px; padding: 11px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); font-size: 12px; }
.hs-long-record-wave { font-weight: 700; }
.hs-long-record-time { color: var(--muted); }
.hs-long-record-type { color: var(--muted); }
.hs-long-record-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.hs-long-record-empty { padding: 20px 8px; color: var(--muted); text-align: center; }
/* Compact long-card spacing and three-column record rows. */
.signal-row.hs-long-card { margin-bottom: 8px; padding: 12px 18px 10px; }
.hs-long-first-grid { margin-top: 10px; }
.hs-long-first-grid .hs-long-metric { display: grid; grid-template-rows: 16px auto; align-content: start; }
.hs-long-first-grid .hs-long-metric small { font-size: 10px; letter-spacing: -0.2px; white-space: nowrap; }
.hs-long-metric strong { margin-top: 3px; }
.hs-long-first-time strong { font-size: 10px; white-space: nowrap; }
.hs-long-hero { margin-top: 10px; padding: 11px 0; }
.hs-long-situation { padding: 10px 0 8px; }
.hs-long-situation-grid { margin-top: 7px; }
.hs-long-record-trigger { min-height: 36px; padding: 6px 0; }
.hs-long-actions { margin-top: 8px; }
.hs-long-record-row { grid-template-columns: 42px minmax(0,1fr) auto; }

@media (max-width: 380px) {
  .signal-row.hs-long-card { padding-inline: 12px; }
  .hs-long-symbol { font-size: 18px; }
  .hs-long-head { gap: 5px; }
  .hs-long-first-grid { gap: 3px; }
  .hs-long-current-price strong, .hs-long-current-price strong.positive, .hs-long-current-price strong.negative { font-size: 21px; }
  .hs-long-bright-gain strong, .hs-long-bright-gain strong.positive { font-size: 19px; }
  .hs-long-drawdown strong, .hs-long-directional strong { font-size: 13px; }
  .hs-long-actions { gap: 3px; }
  .hs-long-action { font-size: 11px; }
}

/* 20261102 long card four-column grid */
.hs-long-data-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 5px; row-gap: 9px; margin-top: 11px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.hs-long-data-grid .hs-long-metric { min-width: 0; }
.hs-long-data-grid .hs-long-metric small { font-size: 10px; line-height: 1.2; white-space: nowrap; letter-spacing: -0.2px; }
.hs-long-data-grid .hs-long-metric strong { margin-top: 4px; font-size: 12px; line-height: 1.2; }
.hs-long-data-grid .hs-long-first-time strong { font-size: 10px; }
.hs-long-data-grid .hs-long-peak-gain strong, .hs-long-data-grid .hs-long-peak-gain strong.positive { color: var(--hs-long-gain) !important; }
.hs-long-data-grid .hs-long-peak-gain strong.negative { color: var(--red) !important; }
@media (max-width: 380px) {
  .hs-long-data-grid { column-gap: 3px; }
  .hs-long-data-grid .hs-long-metric strong { font-size: 11px; }
  .hs-long-data-grid .hs-long-first-time strong { font-size: 10px; }
}

/* Keep adjacent long signal cards visually distinct without changing card contents. */
.signal-row.hs-long-card { margin-bottom: 12px; }
html.hscan-v23-night .signal-row.hs-long-card { border-color: #3B5B72; }

.hs-candidate-card .hs-candidate-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.hs-candidate-card .hs-long-head { flex-wrap: wrap; }
.hs-candidate-card .hs-long-status { max-width: 52%; white-space: normal; line-height: 1.2; }
.hs-candidate-card .hs-long-status.positive { color: var(--hs-long-gain); }
.hs-candidate-card .hs-long-status.negative { color: var(--red); }
.hs-candidate-records .hs-long-record-row { grid-template-columns: minmax(74px,auto) minmax(0,1fr) auto; gap: 8px; }
.hs-candidate-records .hs-long-record-row > span:nth-child(2) { min-width: 0; }
.hs-candidate-reference-result { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hs-candidate-reference-result h3 { margin: 0 0 8px; font-size: 13px; color: var(--text); }
.hs-candidate-reference-result > strong { display: block; font-size: 16px; }
.hs-candidate-reference-result > strong.positive { color: var(--hs-long-gain); }
.hs-candidate-reference-result > strong.negative { color: var(--red); }
.hs-candidate-reference-result p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media(max-width:390px) {
  .hs-candidate-card .hs-long-symbol { font-size: 16px; }
  .hs-candidate-card .hs-long-head { gap: 4px; }
  .hs-candidate-card .hs-long-status { font-size: 11px; }
}

.hs-candidate-card .hs-long-status.neutral { color: var(--muted); }
.hs-candidate-records .hs-candidate-record-status.positive { color: var(--hs-long-gain); }
.hs-candidate-records .hs-candidate-record-status.negative { color: var(--red); }
.hs-candidate-records .hs-candidate-record-status.neutral { color: var(--muted); }