/* Keep the merchant and selected question in the same strip as the report chapters. */
.report-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  padding-inline: max(var(--pad), calc((100% - 1220px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.report-nav[data-mode="hidden"], :root[data-home-entrance] .report-nav {
  visibility: hidden;
  pointer-events: none;
}
.report-nav .report-bar {
  display: grid;
  grid-template-columns: minmax(145px, .7fr) minmax(0, 1.55fr);
  gap: 6px clamp(12px, 1.8vw, 26px);
  align-items: center;
  width: auto;
  min-height: 54px;
  margin: 0;
  padding-block: 8px;
}
.report-nav-business {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.report-nav .report-bar strong { font-size: .91rem; }
.report-nav-label {
  margin-inline-end: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 630;
}
.report-nav-search {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  margin-top: 3px;
  color: var(--ink);
  font-size: .78rem;
}
#report-search-term { white-space: pre-wrap; }
.report-nav-question {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 2px;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.report-nav .chapters {
  width: auto;
  margin: 0;
  gap: 0 clamp(10px, 1.55vw, 23px);
  flex-wrap: nowrap;
}
.report-nav .chapters a { white-space: nowrap; }
.report-nav:not([data-mode="reading"]) .chapters, .report-nav[data-product] .chapters { display: none; }
#report-container :is(#report, #market, #channels, #tools, #trial, #scenario-directory, #report-conversation,
  .reader-platform-rail, .reader-platform-card, .alok-message, .alok-bubble > :first-child) {
  scroll-margin-top: calc(var(--report-nav-height, 54px) + 10px);
}
#product-view :is(#product-work, #work-title, #product-preview, #product-tools) {
  scroll-margin-top: max(75px, calc(var(--report-nav-height, 54px) + 10px));
}
@media (max-width: 820px) {
  .report-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    visibility: visible;
  }
  .report-nav .report-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 6;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    align-items: start;
    padding: 5px var(--pad);
    min-height: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .report-nav .report-nav-question { font-size: .85rem; }
  .report-nav[data-mode="hidden"] { visibility: visible; pointer-events: auto; }
  .report-nav[data-mode="hidden"] .report-bar { visibility: hidden; pointer-events: none; }
  .report-nav:not([data-product]) .chapters {
    display: flex;
    width: min(100% - 2 * var(--pad), 1220px);
    margin-inline: auto;
    justify-content: space-between;
  }
  .report-nav .chapters a { font-size: .8rem; }
  #report-container > #report {
    scroll-margin-top: calc(var(--report-nav-height, 54px) + var(--report-chapter-height, 44px) + 10px);
  }
}
@media (max-height: 340px) {
  .report-nav .report-bar { max-height: 48dvh; overflow: auto; }
}

/* One customer question. A wider shelf lets the reader see neighbouring answers. */
.report-reader.frame {
  --reading-width: 710px;
  --reader-paper: #fffefa;
  --reader-ink: #253630;
  --reader-edge: #ccd6cc;
  --reader-gap: 16px;
  --reader-card-width: calc((100% - 84px) / 2);
  width: min(calc(100% - 72px), 1040px);
  padding-block: clamp(28px, 3.5vw, 50px) clamp(48px, 5vw, 76px);
  scroll-margin-top: 58px;
  color: var(--reader-ink);
}
.reader-title, #reader-question-options, #report-question,
.reader-context, #report-conversation {
  width: min(100%, var(--reading-width));
  margin-inline: auto;
}
.reader-title {
  margin-block: 0 12px;
  font-size: clamp(1.22rem, 1.9vw, 1.5rem);
  font-weight: 680;
  letter-spacing: -.025em;
}
#report-question {
  margin-block: 7px 0;
  color: #24372f;
  font-size: clamp(1.43rem, 2.45vw, 2.03rem);
  font-weight: 665;
  line-height: 1.45;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hanging-punctuation: first;
}
.reader-context { margin-block-start: 10px; color: #43564b; font-size: .93rem; }
.report-question-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--reader-edge);
}
.report-question-controls button {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid var(--reader-edge);
  border-radius: 8px;
  background: var(--reader-paper);
  color: #344e46;
  line-height: 1.35;
  text-align: start;
}
.report-question-controls button:hover { background: #f1f3ed; }
.report-question-controls button[aria-pressed="true"] {
  border-color: #79968a;
  background: #e6eee7;
  color: #203e32;
}
.reader-question-type { font-size: .77rem; color: #4c6257; }
.reader-question-topic { font-size: .92rem; font-weight: 650; }
.report-question-controls button[aria-pressed="true"] .reader-question-topic { font-weight: 700; }

.reader-platforms { margin-block-start: clamp(19px, 2.6vw, 33px); }
.reader-platform-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-rail-guide { display: flex; align-items: center; gap: 9px; color: #40584c; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.reader-rail-guide i { display: block; position: relative; width: 22px; height: 17px; flex: none; }
.reader-rail-guide i::before, .reader-rail-guide i::after { content: ""; position: absolute; width: 15px; height: 12px; border: 1.5px solid #527267; border-radius: 3px; background: var(--paper); }
.reader-rail-guide i::before { right: 1px; top: 1px; }
.reader-rail-guide i::after { left: 0; bottom: 0; }
.reader-platform-announcement { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.reader-platform-controls { display: flex; align-items: center; gap: 7px; }
#reader-platform-position { color: #52625b; font-size: .89rem; font-weight: 580; font-variant-numeric: tabular-nums; }
.reader-platform-controls button {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  background: var(--reader-paper); border: 1px solid #b1c2b7; border-radius: 50%; color: #28453d;
}
.reader-platform-controls button:hover:not([aria-disabled="true"]) { background: #e4ede5; border-color: #667e72; }
.reader-platform-controls button[aria-disabled="true"] { color: #77867b; background: #f2f3ed; border-color: #d6dbd1; cursor: default; }
.reader-platform-rail {
  display: flex;
  align-items: flex-start;
  gap: var(--reader-gap);
  overflow-x: auto;
  overflow-y: hidden;
  height: var(--reader-rail-height, auto);
  padding: 6px 0 8px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  overflow-anchor: none;
}
.reader-platform-rail::-webkit-scrollbar { display: none; }
.reader-platform-card {
  flex: 0 0 var(--reader-card-width);
  min-width: 0;
  max-width: 100%;
  position: relative;
  padding: 20px 23px 22px;
  border-radius: 12px;
  border: 1px solid #cbd3c9;
  background: var(--reader-paper);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 80px;
  overflow-wrap: anywhere;
}
.reader-platform-card:nth-last-child(2) { scroll-snap-align: center; }
.reader-platform-card:last-child { scroll-snap-align: end; }
.reader-platform-card[data-current="true"] {
  border-color: #799291;
  background: #fffefa;
  box-shadow: 0 3px 5px -4px #2b423e6b;
}
.reader-platform-card::before {
  content: ""; position: absolute;
  top: -1px; inset-inline: 15px; height: 3px;
  border-radius: 0 0 2px 2px; background: transparent;
  transition: background-color 150ms ease-out;
}
.reader-platform-card[data-current="true"]::before { background: var(--blue); }
.reader-provider-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reader-provider-line h3 {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; font-size: 1.19rem; font-weight: 700; line-height: 1.27;
  letter-spacing: -.018em; text-align: left;
}
.reader-card-select {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: -6px 0; padding: 4px 2px 4px 0;
  color: inherit; text-align: left; font: inherit; border: 0; border-radius: 4px; background: transparent;
}
.reader-card-select:hover { color: var(--blue); }
.reader-card-check { width: 18px; height: 18px; flex: none; }
.reader-platform-card[data-current="true"] .reader-card-check { position: relative; border-radius: 50%; background: var(--blue); }
.reader-platform-card[data-current="true"] .reader-card-check::after {
  content: ""; position: absolute; top: 3.5px; left: 6.5px; width: 5.5px; height: 9px;
  border: solid #fffdf4; border-width: 0 1.7px 1.7px 0; transform: rotate(43deg);
}
.reader-provider-line img, .reader-platform-jump img { object-fit: contain; flex: none; }
.reader-platform-reply { margin-top: 13px; }
.reader-pending { color: #4b5b52; font-size: 1.01rem; line-height: 1.58; }
.reader-answer-text { margin-top: 5px; color: #25372d; font-size: 1.06rem; line-height: 1.64; }
.reader-mentions { margin-top: 11px; color: #30483b; font-size: .94rem; line-height: 1.55; }
.reader-mentions strong { margin-inline-end: .33em; font-weight: 660; }
.reader-excerpt-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 12px; min-height: 44px; padding: 6px 14px;
  border: 1px solid #b6c4ba; border-radius: 8px;
  background: #f5f7f1; color: #294f51; font-size: .88rem; font-weight: 650;
}
.reader-excerpt-toggle:hover { background: #e8eee7; }
.reader-original > summary { cursor: pointer; }
.reader-original-text {
  margin-top: 4px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #b6c4ba;
  color: #36493e;
  line-height: 1.6;
}
.reader-excerpt-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.reader-platform-index { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.reader-platform-jump {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 5px 9px;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: #4c5b53; font-size: .81rem; font-weight: 550; line-height: 1.15;
}
.reader-platform-jump:hover { background: #ecefe8; }
.reader-platform-jump[aria-pressed="true"], .reader-platform-jump[aria-current="true"] {
  border-color: #a2b5ac; background: #e6eee6; color: #233f36; font-weight: 700;
}
.reader-platform-jump img { width: 18px; height: 18px; }
.reader-platform-index :focus-visible, .report-question-controls :focus-visible { outline-offset: -2px; }

#report-conversation { margin-block-start: clamp(28px, 3.8vw, 52px); }
.alok-conversation {
  --chat-gutter: clamp(17px, 3vw, 30px);
  border: 1px solid #c0cfc1;
  border-radius: 16px;
  background: #e9efe7;
  overflow-wrap: anywhere;
}
.alok-conversation-header {
  display: flex; align-items: center; gap: 12px;
  padding: 13px var(--chat-gutter);
  color: var(--reader-ink); background: #f6f8f0;
  border-bottom: 1px solid #ccd7c9; border-radius: 15px 15px 0 0;
}
.alok-avatar { width: 38px; height: 38px; object-fit: contain; flex: none; }
.alok-title { font-size: 1.17rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.alok-conversation-header p { color: #4e6157; font-size: .84rem; }
.alok-thread {
  display: flex; flex-direction: column; gap: 11px;
  padding: 17px var(--chat-gutter) 0; margin: 0; list-style: none;
}
.alok-message { width: fit-content; max-width: min(89%, 51ch); }
.alok-message, .alok-bubble > :first-child { scroll-margin-block: 84px 22px; }
.alok-message--alok { align-self: flex-start; }
.alok-message--owner { align-self: flex-end; }
.alok-speaker { display: block; margin: 0 4px 3px; font-size: .81rem; font-weight: 620; }
.alok-message--owner .alok-speaker { text-align: right; }
.alok-bubble {
  position: relative;
  padding: 11px 15px; border-radius: 3px 14px 14px;
  color: #23372c; background: #fffef9;
  font-size: 1.01rem; line-height: 1.6;
  box-shadow: 0 2px 3px -2px #3a574f42;
}
.alok-bubble::before {
  content: ""; position: absolute; inset-inline-start: -4px; top: 0; width: 6px; height: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%); background: inherit;
}
.alok-message--owner .alok-bubble {
  background: #cfe3d2; color: #234032; border-radius: 14px 3px 14px 14px;
}
.alok-message--owner .alok-bubble::before { inset-inline-start: auto; inset-inline-end: -4px; transform: scaleX(-1); }
.alok-message-new .alok-bubble { animation: alok-answer-in 190ms cubic-bezier(.16,1,.3,1); }
@keyframes alok-answer-in { from { transform: translateY(4px); opacity: .76; } to { transform: none; opacity: 1; } }
.alok-bubble p + p { margin-top: 5px; }
.alok-bubble small, .alok-speaker { color: #4a5d50; font-size: .82rem; }
.alok-bubble a { display: inline-flex; align-items: center; min-height: 44px; }
.alok-service-links { margin: 3px 0 7px; padding-inline-start: 0; list-style: none; }
.alok-service-links li + li { border-top: 1px solid #d6dfd4; }
.alok-quick-replies:empty { display: none; }
.alok-quick-replies { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 13px var(--chat-gutter) 18px; }
.alok-quick-replies button, .alok-bubble button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 44px; padding: 6px 13px; border: 1px solid #a3b8a8;
  border-radius: 24px; background: #f7faf3; color: #285041;
  font-weight: 610; font-size: .88rem; line-height: 1.45; text-align: start;
}
.alok-quick-replies button:hover, .alok-bubble button:hover { background: #fffefa; border-color: #587866; }
.alok-quick-replies [data-ask-platform] { color: #214960; background: #eff4f5; border-color: #9db4bb; border-radius: 8px; }
.alok-quick-replies [data-ask-platform]::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-left: 1px;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(-45deg);
}
.alok-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px var(--chat-gutter); background: #f5f7f0;
  border-top: 1px solid #c9d6c7; border-radius: 0 0 15px 15px;
}
.reader-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 17px;
  border: 1px solid transparent; border-radius: 9px;
  font-weight: 660; font-size: .94rem; line-height: 1.4; text-decoration: none;
  transition: background-color 140ms ease-out, border-color 140ms ease-out;
}
.reader-action-primary { color: #fffefa; background: #224d65; }
.reader-action-primary:hover { color: white; background: #183c51; }
.reader-action-secondary { color: #224d65; border-color: #9eb2aa; background: #fffefa; }
.reader-action-secondary:hover { color: #193e4d; border-color: #708d80; background: #eef3eb; }
.reader-action:active, .reader-excerpt-toggle:active, .alok-quick-replies button:active { transform: translateY(1px); }

@media (max-width: 800px) {
  .report-reader.frame { width: calc(100% - 48px); --reader-gap: 12px; --reader-card-width: min(74%, 428px); }
}
@media (max-width: 620px) {
  .report-reader.frame { --reader-gutter: 20px; width: calc(100% - 2 * var(--reader-gutter)); padding-block: 25px 44px; scroll-margin-top: 66px; }
  .reader-title { margin-bottom: 9px; font-size: 1.18rem; }
  .report-question-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 7px; }
  .reader-platform-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 7px; }
  #reader-playback { grid-row: 2; grid-column: 1; }
  .reader-platform-controls { grid-row: 1 / span 2; grid-column: 2; }
  #report-question { margin-top: 4px; line-height: 1.43; }
  .reader-platforms { margin-top: 18px; }
  .reader-rail-guide { font-size: .84rem; gap: 6px; }
  .reader-platform-rail {
    --reader-card-width: calc(100% - 42px);
    width: calc(100% + var(--reader-gutter));
  }
  .reader-platform-card { padding: 17px 17px 16px; scroll-margin-top: 79px; }
  .reader-provider-line h3 { font-size: 1.1rem; }
  .reader-platform-reply { margin-top: 9px; }
  .reader-answer-text { font-size: 1rem; line-height: 1.55; }
  .reader-pending { font-size: .99rem; }
  .reader-platform-index { flex-wrap: nowrap; gap: 1px; justify-content: space-between; }
  .reader-platform-jump {
    min-width: 44px; min-height: 53px; flex: 1 1 auto; flex-direction: column;
    gap: 4px; padding: 5px 1px; font-size: clamp(.7rem, 2.91vw, .77rem);
  }
  .reader-platform-jump span { white-space: nowrap; line-height: 1.15; }
  .reader-platform-jump img { width: 21px; height: 21px; }
  #report-conversation { margin-top: 23px; }
  .alok-conversation { --chat-gutter: 14px; }
  .alok-thread { padding-top: 14px; }
  .alok-bubble { padding: 10px 13px; }
  .alok-actions { padding-block: 12px; }
  .reader-action { font-size: .9rem; padding-inline: 13px; }
}
@media (max-width: 384px) {
  .reader-platform-index { flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
  .reader-platform-jump { flex: 0 1 calc((100% - 12px) / 4); min-height: 47px; font-size: .75rem; }
}
@media (max-width: 359px) {
  .report-reader.frame { --reader-gutter: 16px; }
  .alok-conversation { --chat-gutter: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .alok-message-new .alok-bubble { animation: none; }
  .reader-platform-card::before, .reader-action { transition: none; }
  .reader-action:active, .reader-excerpt-toggle:active, .alok-quick-replies button:active { transform: none; }
}
