/* ==========================================================================
   juji-quickcard-open.css — 2026-11-10 新單 F（快卡解開五樣數據）
   全部綁在查币分頁 body:is(:not([data-tab-active]), [data-tab-active="dossier"])
   鐵則：桌機（>=1025px）中欄快卡高度 0px 增加（#fs-qc-sub 單行截斷），
   新解開的四樣（開盤那包／誰發的／鎖倉＋離高點／一句怎麼做）全在右欄 #fs-qc-drawer，
   右欄底線與左欄底線對齊；手機（<=1024px）可自然往下長。
   ========================================================================== */

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  color: var(--hl-body);
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks li > span {
  white-space: nowrap;
  color: var(--hl-body);
  font-weight: 500;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks li > strong {
  min-width: 0;
  text-align: right;
  color: var(--hl-ink);
  font-weight: 600;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks li[data-qc-row="action"] {
  padding-top: 4px;
  border-top: 1px dashed var(--hl-line);
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #juji-sleuth-views-slot {
  scroll-margin-top: 116px;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-mob-quota {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hl-ink, #16120F);
  text-align: center;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-mob-quota[data-quota-exhausted="1"],
body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-safety-meta[data-quota-exhausted="1"] {
  color: #9A3412;
  font-weight: 700;
}

@media (min-width: 1025px) {
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-mob-quota {
    display: none !important;
  }
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-quota-banner[hidden],
body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-retry-btn[hidden] {
  display: none !important;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-quota-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin: 4px 0 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 0.5px solid rgba(180, 83, 9, 0.36);
  background: rgba(245, 158, 11, 0.1);
  color: var(--hl-ink, #0B0814);
  font-size: 12.5px;
  line-height: 1.4;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-quota-acts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-quota-act,
body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-retry-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 10px;
  min-height: 32px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  border-radius: 6px;
  border: 1px solid var(--hl-ink, #0B0814);
  background: var(--hl-ink, #0B0814);
  color: var(--hl-ink-warm, #F5EEE4);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-quota-act.is-topup {
  background: transparent;
  color: var(--hl-ink, #0B0814);
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-state-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-foot-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-kind-pill {
  display: none;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  min-height: 36px;
  padding: 8px 12px;
  font-family: inherit;
  border-radius: 8px;
  border: 1.5px solid var(--hl-ink, var(--ink-1, #0B0814));
  background: var(--hl-paper, rgba(255, 255, 255, 0.08));
  color: var(--hl-ink, var(--ink-1, #0B0814));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn:hover {
  background: var(--hl-ink, #0B0814);
  color: var(--hl-ink-warm, #F5EEE4);
  border-color: var(--hl-ink, #0B0814);
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn:active {
  transform: scale(0.985);
}

body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn:focus-visible {
  outline: 2px solid var(--hl-ink, var(--ink-1, #0B0814));
  outline-offset: 2px;
}

@media (min-width: 1025px) {
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-quick-card {
    padding: 9px 18px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-top {
    margin-bottom: -4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-meta {
    padding-bottom: 21.5px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-logo-wrap {
    top: 2px;
    transform: none;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-chain {
    order: 4;
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-chain::before {
    content: none;
    margin: 0;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-kind-pill {
    display: inline-flex;
    align-items: center;
    order: 5;
    flex: 0 0 auto;
    align-self: center;
    margin: 3px 6px 0 -49px;
    padding: 0 6px;
    height: 17px;
    border-radius: 999px;
    border: 1px solid var(--hl-line, rgba(22, 18, 15, 0.16));
    color: var(--hl-body, #574C43);
    font-size: 11px;
    font-weight: 600;
    line-height: 15px;
    white-space: nowrap;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-sub {
    order: 6;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    margin: 3px 0 0 0;
    font-size: 13.5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-stats {
    padding-top: 6px;
    margin-top: -2px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-foot-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 5px 6px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-more-btn {
    flex: 1 0 auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    padding: 5px 10px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-more-summary {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn {
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 26px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.2;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-drawer {
    padding: 8px 16px;
    gap: 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-drawer .fs-safety-head {
    padding-bottom: 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks {
    gap: 3px;
    font-size: 13.5px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks li > strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card {
    padding: 9px 16px;
    gap: 5px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-head {
    padding-bottom: 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-locked-rows {
    margin: 2px 0 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-locked-row,
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-locked-row[data-free] {
    padding: 3.5px 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-free-txt {
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.34;
  }
}

@media (min-width: 1025px) and (max-width: 1365px) {
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-foot-row {
    gap: 4px 5px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-more-btn {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn {
    padding: 3px 8px;
    font-size: 12px;
  }
}

@media (min-width: 1025px) and (max-height: 800px) {
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-quick-card {
    padding: 4px 14px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-top {
    margin-bottom: -2px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-chain {
    margin: 1px 0 0;
    font-size: 12.5px;
    line-height: 14px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-kind-pill {
    margin: 1px 5px 0 -43px;
    padding: 0 5px;
    height: 16px;
    font-size: 10.5px;
    line-height: 14px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-sub {
    flex: 1 1 0%;
    max-width: 100%;
    margin: 1px 0 0 0;
    font-size: 13.5px;
    line-height: 1.35;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-stats {
    padding-top: 2px;
    margin-top: -2px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-more-btn {
    padding: 2px 8px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn {
    min-height: 26px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.2;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-drawer {
    padding: 7px 14px;
    gap: 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-drawer .fs-safety-head {
    padding-bottom: 3px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks {
    gap: 2.5px;
    font-size: 12.5px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks li > strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card {
    padding: 8px 14px;
    gap: 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-locked-rows {
    margin: 2px 0 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-locked-row,
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-locked-row[data-free] {
    padding: 2.5px 4px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-deep-sample-card .fs-dp-free-txt {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 1024px) {
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-sub {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.36;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks {
    gap: 7px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-checks li > strong {
    white-space: normal;
    line-height: 1.4;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #juji-sleuth-views-slot {
    scroll-margin-top: 164px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-full-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14.5px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-quota-act,
  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero .fs-qc-retry-btn {
    min-height: 40px;
    padding: 8px 12px;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-headline[data-long-headline="1"] {
    font-size: 14px;
    line-height: 1.34;
  }

  body:is(:not([data-tab-active]), [data-tab-active="dossier"]) #jn-hero #fs-qc-headline[data-long-headline="2"] {
    font-size: 13px;
    line-height: 1.34;
  }
}
