.access-preview {
  display: flex;
  padding: 3px;
  background: #e8e3d8;
  border-radius: 99px;
}

.access-preview button {
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: #707879;
  padding: 6px 10px;
  font: 600 10px var(--sans);
  cursor: pointer;
}

.access-preview button.active {
  background: #fff;
  color: var(--terracotta);
  box-shadow: 0 1px 5px rgba(39, 50, 59, .12);
}

.access-badge {
  padding: 6px 10px;
  background: #efe3d8;
  color: #9b5948;
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.report-status-strip {
  max-width: 1280px;
  margin: auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--line);
}

.report-status-strip > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5ecdf;
  color: var(--green);
  font-size: 12px;
}

.report-status-strip p {
  display: grid;
  margin: 0;
}

.report-status-strip strong {
  font: 500 12px var(--serif);
}

.report-status-strip small {
  color: #7a8282;
  font-size: 10px;
}

.report-status-strip > a {
  margin-left: auto;
  color: var(--terracotta);
  font-size: 11px;
  text-decoration: none;
}

.palace-summary-section {
  padding: 105px max(6vw, 28px);
  max-width: 1380px;
  margin: auto;
}

/* A compact upgrade entry after the free chart has been established. */
body[data-access="free"] .report-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: 24px;
  padding-top: 25px;
  padding-bottom: 25px;
}
body[data-access="free"] .report-status-strip > div { min-width: 0; }
body[data-access="free"] .report-status-strip .status-icon { flex: none; }
body[data-access="free"] .report-status-strip strong { font-size: 13px; }
body[data-access="free"] .report-status-strip small { margin-top: 5px; font-size: 11px; line-height: 1.8; }
.report-status-upgrade { border-left: 1px solid var(--line); padding-left: 24px; }
.report-status-upgrade .status-icon { background: #efe3d8; color: var(--terracotta); }
.report-status-upgrade strong { color: var(--blue); }
.report-status-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 46px;
  padding: 12px 17px;
  border: 0;
  background: var(--terracotta);
  color: #fff;
  font: 600 12px/1.5 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s;
}
.report-status-cta:hover { background: #a9513e; }
.report-status-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.report-status-cta span { font-size: 18px; }
@media (max-width: 1000px) {
  body[data-access="free"] .report-status-strip { grid-template-columns: 1fr; gap: 18px; }
  .report-status-upgrade { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .report-status-cta { justify-self: start; margin-left: 39px; }
}
@media (max-width: 600px) {
  .report-status-cta { justify-self: stretch; }
  .upgrade-copy-break { display: none; }
}

.palace-summary-heading {
  display: grid;
  grid-template-columns: 1.1fr .7fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 46px;
}

.palace-summary-heading h2,
.yearly-update-section h2,
.report-library h2 {
  font: 500 clamp(31px, 4vw, 48px)/1.42 var(--serif);
  margin: 0;
}

.palace-summary-heading > p {
  color: #667074;
  font: 13px/1.9 var(--serif);
  margin: 0;
}

.palace-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.palace-summary-grid details {
  min-height: 160px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
  padding: 23px;
  transition: .2s;
}

.palace-summary-grid details[open] {
  background: #fffdf8;
}

.palace-summary-grid summary {
  list-style: none;
  display: grid;
  grid-template-columns: 32px 1fr;
  cursor: pointer;
  align-items: start;
}

.palace-summary-grid summary::-webkit-details-marker {
  display: none;
}

.palace-summary-grid summary span {
  color: var(--terracotta);
  font: 600 10px var(--sans);
}

.palace-summary-grid summary strong {
  font: 500 20px var(--serif);
}

.palace-summary-grid summary small {
  grid-column: 2;
  color: #7e8584;
  font-size: 10px;
  letter-spacing: .08em;
}

.palace-summary-grid details p {
  margin: 20px 0 0;
  padding-left: 32px;
  color: #5c666a;
  font: 12px/1.9 var(--serif);
}

.free-scope-note {
  margin: 22px 0 0;
  color: #858b8a;
  font-size: 10px;
}

.paid-content-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 11px 14px;
  background: #e5ece7;
  color: var(--green);
}

.paid-content-label span {
  font: 600 11px var(--serif);
}

.paid-content-label small {
  font-size: 10px;
}

.chapter-content {
  position: relative;
}

.report-paywall {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 36px));
  padding: 45px 48px;
  background: #fffdf8;
  border: 1px solid rgba(39, 50, 59, .18);
  box-shadow: 0 24px 60px rgba(22, 42, 53, .22);
}

.report-paywall h2 {
  font: 500 clamp(29px, 4vw, 42px)/1.45 var(--serif);
  margin: 0;
}

.report-paywall > p:not(.eyebrow, .paywall-policy) {
  color: #5c666a;
  font: 13px/1.9 var(--serif);
}

.paywall-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 25px 0;
}

.paywall-benefits span {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font: 12px var(--serif);
}

.paywall-benefits span::before {
  content: "✓";
  color: var(--green);
  margin-right: 9px;
}

.paywall-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 28px;
}

.paywall-purchase > div {
  display: grid;
}

.paywall-purchase .offer-price-block {
  justify-items: start;
}

.paywall-purchase small {
  font-size: 10px;
  color: #7b8383;
}

.paywall-purchase strong {
  font: 600 28px var(--sans);
  color: var(--terracotta);
}

.paywall-purchase del {
  margin-top: 5px;
  color: #8a8f8e;
  font: 500 12px var(--sans);
  text-decoration-thickness: 1px;
}

.paywall-purchase strong span {
  display: inline-block;
  margin-right: 7px;
  padding: 3px 6px;
  background: var(--terracotta);
  color: #fff;
  font: 600 9px var(--sans);
  letter-spacing: .08em;
  vertical-align: middle;
}

.paywall-purchase em {
  font: normal 10px var(--sans);
  color: #8a8f8e;
}

.paywall-purchase button,
.dialog-primary {
  border: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 15px 20px;
  font: 600 12px var(--sans);
  cursor: pointer;
}

.paywall-purchase button span {
  margin-left: 25px;
}

.paywall-policy {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8b6c61;
  font-size: 10px;
  line-height: 1.7;
}

.annual-report-upsell {
  margin: 0 0 50px;
  padding: 30px 34px;
  background: #eee8dc;
  border-left: 4px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.annual-report-upsell[hidden] {
  display: none;
}

.annual-report-upsell .eyebrow {
  margin-bottom: 8px;
}

.annual-report-upsell h3 {
  margin: 0 0 8px;
  font: 500 22px/1.5 var(--serif);
}

.annual-report-upsell p:last-child {
  margin: 0;
  color: #5c666a;
  font: 14px/1.85 var(--serif);
}

.annual-report-upsell a {
  flex: 0 0 auto;
  padding: 13px 17px;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font: 600 12px var(--sans);
}

.annual-report-upsell a span {
  margin-left: 20px;
}

body[data-access="free"] .chapter-content > header,
body[data-access="free"] .chapter-content > .reading-section,
body[data-access="free"] .chapter-content > .contrast-section,
body[data-access="free"] .chapter-content > .practice-card,
body[data-access="free"] .chapter-content > .evidence-card,
body[data-access="free"] .chapter-content > .chapter-pagination {
  display: none;
}

body[data-access="free"] .chapter-content {
  min-height: 1120px;
  display: block;
  overflow: hidden;
}

body[data-access="free"] .chapter-content::after {
  display: none;
}

body[data-access="free"] .chapter-sidebar {
  display: none;
}

body[data-access="free"] .report-reader {
  display: block;
  max-width: 900px;
  padding-top: 76px;
  padding-bottom: 76px;
}

body[data-access="free"] .report-paywall {
  position: absolute;
  top: 205px;
  bottom: auto;
  width: min(680px, 100%);
}

.locked-chapter-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 6px 80px;
}

.locked-chapter-preview article {
  min-height: 190px;
  padding: 24px 26px;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.locked-chapter-preview article > span {
  color: var(--terracotta);
  font: 600 10px var(--sans);
  letter-spacing: .14em;
}

.locked-chapter-preview h3 {
  margin: 12px 0 15px;
  color: var(--ink);
  font: 500 20px/1.45 var(--serif);
}

.locked-chapter-preview article > div {
  filter: blur(5px);
  opacity: .5;
  user-select: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}

.locked-chapter-preview p {
  margin: 0 0 8px;
  color: #697275;
  font: 12px/1.8 var(--serif);
}

body[data-access="paid"] .free-only,
body[data-access="free"] .paid-only {
  display: none !important;
}

.yearly-update-section {
  padding: 100px max(7vw, 34px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8vw;
  align-items: center;
}

/* 免費版閱讀動線：標題短而明確，首屏可更快進入內容。 */
.report-cover {
  min-height: 600px;
  padding-top: 68px;
  padding-bottom: 68px;
}

.report-cover h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.22;
}

.report-cover h1 > span,
.report-cover h1 > em {
  display: block;
  white-space: nowrap;
}

.three-things {
  padding-top: 76px;
  padding-bottom: 76px;
}

.section-lead #three-things-title {
  font-size: clamp(27px, 2.35vw, 35px);
  line-height: 1.3;
  white-space: nowrap;
}

.yearly-update-section h2[data-fit-lines="2"] {
  font-size: clamp(28px, 2.7vw, 39px);
  line-height: 1.32;
}

.yearly-update-section > div > p:last-child {
  max-width: 500px;
  color: #626c70;
  font: 14px/2 var(--serif);
}

.yearly-update-section article {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 28px;
  background: #e8ded0;
}

.year-card {
  width: 92px;
  height: 112px;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.year-card span {
  font: 600 26px var(--sans);
  color: #e6c792;
}

.year-card small {
  font: 10px var(--serif);
}

.yearly-update-section article h3 {
  font: 500 21px var(--serif);
  margin: 0;
}

.yearly-update-section article p {
  font: 11px/1.7 var(--serif);
  color: #667074;
}

.yearly-update-section article strong {
  font: 600 18px var(--sans);
  color: var(--terracotta);
}

.yearly-update-section article button {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 12px 15px;
  font: 600 11px var(--sans);
  cursor: pointer;
}

.report-library {
  padding: 95px max(7vw, 34px);
  background: #f0ece3;
}

.report-library > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: 36px;
}

.report-library > div > p:last-child {
  color: #667074;
  font: 13px/1.9 var(--serif);
}

.report-library article {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.library-seal {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #e6c792;
  font: 500 34px var(--serif);
}

.library-status {
  color: var(--green);
  font-size: 10px;
  letter-spacing: .08em;
}

.report-library article h3 {
  font: 500 23px var(--serif);
  margin: 5px 0;
}

.report-library article p {
  margin: 0;
  color: #596368;
  font: 12px var(--serif);
}

.report-library article small {
  color: #8a908f;
  font-size: 10px;
}

.library-actions {
  display: flex;
  gap: 8px;
}

.library-actions button {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 11px 14px;
  font: 600 10px var(--sans);
  cursor: pointer;
}

.library-actions button:first-child {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.purchase-dialog {
  border: 0;
  width: min(520px, calc(100% - 30px));
  padding: 42px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 25px 70px rgba(15, 35, 46, .35);
}

.purchase-dialog::backdrop {
  background: rgba(10, 27, 36, .55);
  backdrop-filter: blur(4px);
}

.purchase-dialog .dialog-close {
  position: absolute;
  right: 17px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 27px;
  cursor: pointer;
}

.purchase-dialog h2 {
  font: 500 31px/1.45 var(--serif);
  margin: 0;
}

.purchase-dialog ul {
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.purchase-dialog li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font: 12px/1.7 var(--serif);
}

.purchase-dialog li::before {
  content: "✓";
  color: var(--green);
  margin-right: 10px;
}

.purchase-dialog > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 25px 0 16px;
}

.purchase-dialog > div span {
  font-size: 11px;
}

.purchase-dialog > div strong {
  font: 600 27px var(--sans);
  color: var(--terracotta);
}

.purchase-dialog > .dialog-price-row {
  align-items: center;
  gap: 20px;
}

.purchase-dialog .dialog-price-values {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.purchase-dialog .dialog-price-values del {
  color: #8a8f8e;
  font: 500 12px var(--sans);
  text-decoration-thickness: 1px;
}

.purchase-dialog .dialog-price-values strong {
  white-space: nowrap;
}

.purchase-dialog .dialog-price-values strong small {
  display: inline-block;
  margin-right: 7px;
  padding: 3px 6px;
  background: var(--terracotta);
  color: #fff;
  font: 600 9px var(--sans);
  letter-spacing: .08em;
  vertical-align: middle;
}

.purchase-dialog .dialog-primary {
  width: 100%;
}

.dialog-note {
  text-align: center;
  color: #8b918f;
  font-size: 10px;
}

@media (max-width: 900px) {
  .access-badge {
    display: none;
  }

  .palace-summary-heading,
  .yearly-update-section {
    grid-template-columns: 1fr;
  }

  .palace-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .yearly-update-section {
    gap: 35px;
  }

  .report-library > div {
    grid-template-columns: 1fr;
  }

  .report-library article {
    grid-template-columns: 80px 1fr;
  }

  .library-actions {
    grid-column: 1 / -1;
  }

  .report-status-strip {
    flex-wrap: wrap;
  }

  .report-status-strip > a {
    margin-left: 0;
  }

  .report-paywall {
    padding: 35px;
  }
}

@media (max-width: 600px) {
  .report-cover h1 > span,
  .report-cover h1 > em,
  .section-lead #three-things-title {
    white-space: normal;
  }

  .section-lead #three-things-title {
    font-size: clamp(28px, 8.5vw, 34px);
  }

  .access-preview button {
    padding: 5px 8px;
  }

  .palace-summary-section {
    padding: 70px 20px;
  }

  .palace-summary-heading {
    gap: 20px;
  }

  .palace-summary-grid {
    grid-template-columns: 1fr;
  }

  .palace-summary-grid details {
    min-height: auto;
  }

  .paid-content-label {
    display: grid;
    gap: 3px;
  }

  .report-paywall {
    bottom: 35px;
    padding: 28px 24px;
  }

  body[data-access="free"] .chapter-content {
    min-height: 1820px;
  }

  body[data-access="free"] .report-paywall {
    top: 245px;
    bottom: auto;
  }

  .locked-chapter-preview {
    grid-template-columns: 1fr;
  }

  .paywall-benefits {
    grid-template-columns: 1fr;
  }

  .paywall-purchase {
    align-items: stretch;
    flex-direction: column;
  }

  .annual-report-upsell {
    align-items: stretch;
    flex-direction: column;
    padding: 26px 24px;
  }

  .annual-report-upsell a {
    text-align: center;
  }

  .yearly-update-section {
    padding: 70px 22px;
  }

  .yearly-update-section article {
    grid-template-columns: 74px 1fr;
  }

  .year-card {
    width: 68px;
    height: 90px;
  }

  .yearly-update-section article button {
    grid-column: 1 / -1;
  }

  .report-library {
    padding: 70px 22px;
  }

  .report-library article {
    grid-template-columns: 1fr;
  }

  .library-seal {
    width: 62px;
    height: 62px;
  }

  .purchase-dialog {
    padding: 34px 25px;
  }

  .report-status-strip {
    padding: 16px 20px;
  }
}

/* 完整報告的表現清單：每一項皆保留小標與可閱讀的補充說明。 */
.behavior-list li {
  padding: 14px 10px 16px 23px;
  font-size: inherit;
}

.behavior-list li::before {
  top: 17px;
}

.behavior-list strong {
  display: block;
  color: var(--ink);
  font: 500 15px/1.55 var(--serif);
}

.behavior-list p {
  margin: 7px 0 0;
  color: #647074;
  font: 12px/1.8 var(--serif);
}

/* 深色重點卡的小標需維持足夠對比，避免個人化內容載入後不易辨識。 */
.focus-grid .focus-dark > span {
  color: #fff;
  font-weight: 600;
}

@media print {
  .access-preview,
  .report-status-strip,
  .yearly-update-section,
  .report-library,
  .report-paywall,
  .paid-content-label {
    display: none !important;
  }

  body[data-access="free"] .chapter-content > header,
  body[data-access="free"] .chapter-content > .reading-section,
  body[data-access="free"] .chapter-content > .contrast-section,
  body[data-access="free"] .chapter-content > .practice-card,
  body[data-access="free"] .chapter-content > .evidence-card {
    filter: none;
    opacity: 1;
  }

  body[data-access="free"] .chapter-content {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  body[data-access="free"] .chapter-content::after {
    display: none;
  }
}

/* 命宮雙主星以簡稱完整呈現，避免印章中心只剩單一字。 */
.cover-seal strong {
  max-width: 152px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-size: clamp(38px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: .08em;
}

/* 全站主導覽與首頁採用同一套資訊架構；報告閱讀工具另置於封面下方。 */
.report-header {
  width: 100%;
  max-width: 1240px;
  height: 82px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  background: var(--paper);
}

.report-header nav {
  display: flex;
  gap: 34px;
  margin: 0 38px 0 auto;
}

.report-header nav a {
  position: relative;
  color: var(--ink);
  font: 500 14px var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.report-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.report-header nav a:hover,
.report-header nav a[aria-current="page"] {
  color: var(--terracotta);
}

.report-header nav a:hover::after,
.report-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header-actions .text-button {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font: 500 14px var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.site-header-actions .text-button:first-child {
  border-color: transparent;
  color: #60696d;
}

.site-header-actions .member-account-link {
  max-width: 210px;
  overflow: hidden;
  border-color: var(--terracotta);
  color: var(--ink);
  text-overflow: ellipsis;
}

.report-subnav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-top: 1px solid rgba(39, 50, 59, .08);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 239, .96);
  box-shadow: 0 8px 28px rgba(24, 44, 55, .07);
  backdrop-filter: blur(14px);
}

.report-subnav-inner {
  max-width: 1280px;
  min-height: 86px;
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.report-subnav-title {
  min-width: 186px;
  display: grid;
  padding-left: 14px;
  border-left: 3px solid var(--terracotta);
}

.report-subnav-title small {
  color: var(--terracotta);
  font: 600 9px/1.4 var(--sans);
  letter-spacing: .17em;
}

.report-subnav-title strong {
  margin-top: 3px;
  color: var(--ink);
  font: 500 16px/1.5 var(--serif);
  letter-spacing: .03em;
}

.report-subnav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.report-subnav nav a {
  padding: 9px 11px;
  border-radius: 2px;
  color: #5e686c;
  font: 500 12px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.report-subnav nav a:hover,
.report-subnav nav a:focus-visible {
  color: var(--terracotta);
  background: #eee8dc;
}

.report-subnav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

#overview,
#palace-summary,
#chapters,
#annual {
  scroll-margin-top: 108px;
}

@media (max-width: 1120px) {
  .report-header nav {
    gap: 20px;
    margin-right: 24px;
  }

  .report-header nav a,
  .site-header-actions .text-button {
    font-size: 12px;
  }

  .report-subnav-inner {
    gap: 14px;
  }

  .report-subnav-title {
    display: none;
  }
}

@media (max-width: 900px) {
  .report-header {
    height: 70px;
    padding: 0 20px;
  }

  .report-header nav {
    display: none;
  }

  .site-header-actions {
    margin-left: auto;
  }

  .report-subnav-inner {
    min-height: auto;
    padding: 11px 20px 9px;
    flex-wrap: wrap;
  }

  .report-subnav-title {
    min-width: 0;
    display: grid;
    flex: 1;
  }

  .report-subnav-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .report-subnav nav {
    width: calc(100% + 40px);
    margin: 0 -20px -9px;
    padding: 0 20px 9px;
    order: 2;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .report-subnav nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header-actions {
    gap: 12px;
  }

  .site-header-actions .member-account-link {
    max-width: 120px;
  }

  .report-subnav-actions {
    justify-content: flex-start;
  }

  .report-subnav-title strong {
    font-size: 14px;
  }

  .report-subnav nav a {
    padding: 8px 10px;
  }
}

@media print {
  .report-subnav {
    display: none !important;
  }
}
