.ls-library {
  --ls-blue: #0079c2;
  --ls-ink: #173e53;
  --ls-muted: #567184;
  --ls-line: #d6e1e7;
  color: var(--ls-ink);
  padding: 56px 0;
}
.ls-library > .container,
.ls-report-hub > .container {
  width: calc(100% - 48px);
  max-width: 1960px;
  margin-inline: auto;
}
.ls-report-hub {
  padding: 36px 0 0;
  color: #173e53;
}
.ls-report {
  border: 0;
  padding: 0;
  margin: 0;
}
.ls-report-card {
  display: block;
  box-sizing: border-box;
  width: min(100%, 460px);
  list-style: none;
  padding: 0;
  border: 1px solid #c4dce9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 28px #234a6014;
  cursor: pointer;
  scroll-margin-top: 120px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.ls-report-card::-webkit-details-marker {
  display: none;
}
.ls-report-card:hover,
.ls-report[open] > .ls-report-card {
  border-color: #74b3d5;
  box-shadow: 0 12px 32px #174f7821;
}
.ls-report-visual {
  position: relative;
  display: block;
  border-radius: 21px 21px 0 0;
  padding: 24px;
  background: linear-gradient(135deg, #e9f5fb, #f5f9fc 60%, #d7ebf7);
}
.ls-report-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 792 / 475;
  object-fit: contain;
  background: white;
  border: 1px solid #dfebf1;
  border-radius: 10px;
  box-shadow: 0 12px 22px #1b527a24;
}
.ls-report-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}
.ls-report-kicker {
  color: #52768b;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.ls-report-title {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  color: #173e53;
}
.ls-report-publisher {
  color: #0878bd;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}
:where(.ls-report-hub, .ls-library) .ls-publisher-separator {
  display: inline-block;
  margin-inline: 0.35em;
  color: #555b61;
  font-weight: 400;
}
.ls-report-hub .ls-overview-metric strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: #0878bd;
}
.ls-report-hub .ls-overview-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 8px;
  padding-top: 14px;
  border-top: 1px solid #dbe8ef;
  color: #52768b;
  font-size: 13px;
  line-height: 1.5;
}
.ls-report-hub .ls-overview-metric strong {
  flex-shrink: 0;
}
.ls-report-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #0079c2;
  font-size: 14px;
  font-weight: 700;
}
.ls-report-close-label {
  display: none;
}
.ls-report[open] .ls-report-open-label {
  display: none;
}
.ls-report[open] .ls-report-close-label {
  display: inline;
}
.ls-report-content {
  margin-top: 28px;
  min-width: 0;
}
.ls-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #d6e1e7;
  border-radius: 16px;
  background: #f5f8fa;
}
.ls-report-toolbar p {
  margin: 0;
  color: #567184;
  font-size: 15px;
}
.ls-report-toolbar h2 {
  margin: 0 0 6px;
  font:
    700 clamp(20px, 2vw, 28px)/1.25 Arial,
    sans-serif;
  color: #173e53;
}
.ls-report-toolbar .ls-report-dismiss {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bfd4df;
  border-radius: 50%;
  background: #fff;
  color: #315b70;
}
.ls-report-dismiss svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.ls-report-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 4px 8px;
  color: #17658e;
  background: transparent;
  border: 0;
  border-radius: 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ls-report-close > span {
  display: grid;
  place-items: center;
  border: 1px solid #bfd4df;
  border-radius: 50%;
  background: white;
  width: 34px;
  height: 34px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.ls-report-close:hover {
  color: #0079c2;
  background: #e8f2f8;
}
.ls-report-card:focus-visible,
.ls-report-close:focus-visible {
  outline: 3px solid #0878bd;
  outline-offset: 4px;
}
@media (max-width: 575px) {
  .ls-report-hub > .container {
    width: calc(100% - 24px);
  }
  .ls-report-hub {
    padding-top: 24px;
  }
  .ls-report-title {
    font-size: 23px;
  }
  .ls-report-copy {
    padding: 20px;
  }
  .ls-report-visual {
    padding: 18px;
  }
  .ls-report-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ls-report-card {
    transition: none;
  }
}
@media print {
  .ls-report-content,
  .ls-report-action {
    display: none;
  }
  .ls-report-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
.ls-library .ls-heading {
  margin: 0 0 12px;
  color: var(--ls-ink);
}
.ls-library .ls-intro {
  max-width: 72ch;
  margin: 0 0 28px;
  color: var(--ls-muted);
}
.ls-library .ls-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
/* Share the results row with the sidebar; no fixed header-height offset. */
@media screen and (min-width: 992px) {
  .ls-library .ls-layout {
    row-gap: 20px;
  }
  .ls-library .ls-results {
    display: contents;
  }
  .ls-library .ls-layout > .ls-filters {
    grid-column: 1;
    grid-row: 2;
  }
  .ls-library .ls-results > .ls-results-header {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  .ls-library .ls-results-body {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
}
.ls-library .ls-filters {
  background: #f5f8fa;
  border: 1px solid #e7eef2;
  border-radius: 20px;
  padding: 24px;
}
.ls-library .ls-filter-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 700;
  list-style: none;
  color: var(--ls-ink);
  cursor: pointer;
}
.ls-library .ls-filter-panel summary::-webkit-details-marker {
  display: none;
}
.ls-library .ls-filter-panel[open] summary {
  margin-bottom: 22px;
}
.ls-library .ls-filter-chevron {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #c4d7e2;
  border-radius: 50%;
  background: #fff;
  color: #53788e;
  transition:
    transform 0.18s ease,
    border-color 0.18s;
}
.ls-library .ls-filter-panel[open] .ls-filter-chevron {
  transform: rotate(180deg);
}
.ls-library .ls-filter-panel summary:hover .ls-filter-chevron {
  border-color: var(--ls-blue);
  color: var(--ls-blue);
}
.ls-library .ls-filter-panel summary:focus-visible {
  outline: 3px solid #0878bd;
  outline-offset: 5px;
  border-radius: 4px;
}
.ls-library .ls-field {
  margin: 0 0 18px;
}
.ls-library .ls-field label {
  display: block;
  color: #496f86;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 8px;
  font-weight: 600;
}
.ls-library .ls-field :is(input, select, .ls-select-trigger) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #c9dce7;
  border-radius: 10px;
  background-color: white;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ls-ink);
  box-shadow: none;
}
.ls-library .ls-field input {
  height: 46px;
}
.ls-library .ls-field :is(select, .ls-select-trigger) {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%230079c2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
.ls-library .ls-field :is(input, select, .ls-select-trigger):hover {
  border-color: #9dbfd3;
}
.ls-library .ls-select {
  position: relative;
  min-width: 0;
}
.ls-library .ls-select-trigger {
  display: block;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.ls-library .ls-select-trigger[aria-expanded='true'] {
  border-color: var(--ls-blue);
  box-shadow: 0 0 0 3px #0079c21a;
}
.ls-library .ls-select-list {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 7px) 0 auto;
  box-sizing: border-box;
  min-width: 100%;
  max-height: 260px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid #ffffff40;
  border-radius: 13px;
  background: rgba(34, 48, 58, 0.92);
  color: #fff;
  box-shadow:
    0 12px 32px #142c463d,
    0 2px 6px #142c4626;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  scrollbar-width: thin;
  scrollbar-color: #ffffff60 transparent;
}
.ls-library .ls-select-list[hidden],
.ls-library select[hidden] {
  display: none !important;
}
.ls-library .ls-select-list.ls-select-above {
  inset: auto 0 calc(100% + 7px);
}
.ls-library .ls-select-option {
  position: relative;
  margin: 3px 2px;
  padding: 10px 10px 10px 28px;
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  cursor: pointer;
  overflow-wrap: anywhere;
}
/* A small, font-independent checkmark matches the native Sport Koolis menu. */
.ls-library .ls-select-option[aria-selected='true']::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  width: 5px;
  height: 9px;
  box-sizing: border-box;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: translateY(-65%) rotate(45deg);
  color: #fff;
}
.ls-library .ls-select-option.ls-active {
  background: #ffffff18;
  outline: none;
}
.ls-library .ls-select-option:hover {
  background: #ffffff18;
}
.ls-library .ls-submit {
  display: block;
  width: 100%;
  border: 1px solid var(--ls-blue);
  border-radius: 99px;
  padding: 12px 18px;
  min-height: 46px;
  color: white;
  background: var(--ls-blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ls-library .ls-reset {
  display: block;
  padding: 14px 0 0;
  text-align: center;
  color: #006eae;
  font-size: 14px;
  text-underline-offset: 4px;
}
.ls-library .ls-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  min-height: 30px;
}
.ls-library .ls-results-header p {
  margin: 0;
}
.ls-library .ls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ls-library .ls-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ls-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px #234a600b;
}
.ls-library .ls-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: var(--ls-ink);
  text-decoration: none;
  border-radius: 20px;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.ls-library .ls-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 192px;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(135deg, #edf5f8, #f8f7f4);
  overflow: hidden;
}
.ls-library .ls-cover img,
.ls-library .ls-cover canvas {
  display: block;
  width: auto;
  max-width: min(100%, 220px);
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 14px #163c5426;
}
:where(.ls-library, .ls-report-hub, .ls-tai-dialog) .ls-document {
  box-sizing: border-box;
  width: 113px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 14px #163c5414;
  color: #7193a7;
}
:where(.ls-library, .ls-report-hub, .ls-tai-dialog) .ls-document span {
  font-size: 9px;
  letter-spacing: 0.16em;
}
:where(.ls-library, .ls-report-hub, .ls-tai-dialog) .ls-document strong {
  font-size: 12px;
  font-weight: 600;
  color: #51758a;
}
.ls-report-hub .ls-tai-book .ls-document {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.ls-library .ls-card-copy {
  padding: 22px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}
.ls-library .ls-card-copy .ls-year {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #51758a;
  margin: 0;
}
.ls-library .ls-card-copy h3 {
  font-size: 20px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 700;
  color: var(--ls-ink);
  margin: 0;
  overflow-wrap: anywhere;
}
.ls-library .ls-publisher {
  font-size: 13px;
  line-height: 1.55;
  color: #0878bd;
  font-weight: 600;
  margin: 0;
}
.ls-library .ls-card-summary {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ls-muted);
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.ls-library .ls-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0075b9;
}
.ls-library .ls-card-link:hover {
  box-shadow: 0 12px 28px #234a601a;
}
.ls-library .ls-card-link:hover .ls-round-arrow {
  color: var(--ls-blue);
  border-color: var(--ls-blue);
}
.ls-library :is(a, button, input, select):focus-visible {
  outline: 3px solid #0878bd;
  outline-offset: 4px;
}
.ls-library .ls-empty {
  padding: 36px;
  border: 1px dashed var(--ls-line);
  border-radius: 20px;
}
.ls-library .ls-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}
.ls-library .ls-pagination .page-numbers {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--ls-line);
  border-radius: 99px;
  color: #0075b9;
  text-decoration: none;
}
.ls-library .ls-pagination .current {
  color: white;
  background: var(--ls-blue);
  border-color: var(--ls-blue);
}
.ls-library .ls-pagination .next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 3px 3px 3px 14px;
}
.ls-library .ls-pagination .next:is(:hover, :focus-visible) .ls-action-icon {
  border-color: var(--ls-blue);
  color: white;
  background: var(--ls-blue);
}
@media (min-width: 992px) and (max-width: 1199px) {
  .ls-library .ls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1600px) {
  .ls-library .ls-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .ls-library .ls-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ls-library .ls-filters form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .ls-library .ls-field {
    margin: 0;
  }
  .ls-library .ls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .ls-library {
    padding: 32px 0;
  }
  .ls-library > .container {
    width: calc(100% - 24px);
  }
  .ls-library .ls-filters {
    padding: 20px;
  }
  .ls-library .ls-filters form {
    grid-template-columns: 1fr;
  }
  .ls-library .ls-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ls-library .ls-card-copy {
    padding: 22px;
  }
  .ls-library .ls-cover {
    height: 180px;
  }
  .ls-library .ls-cover img,
  .ls-library .ls-cover canvas {
    max-height: 148px;
  }
  .ls-library .ls-document {
    height: 148px;
  }
}
/* Match the adjacent field's label line and spacing in the two-column filter layout. */
@media (min-width: 576px) and (max-width: 991px) {
  .ls-library .ls-filter-actions {
    padding-top: calc(13px * 1.4 + 8px);
  }
  .ls-library .ls-filter-actions .ls-submit {
    padding: 10px 18px;
    line-height: 1.5;
  }
}
@media (min-width: 576px) and (max-width: 699px) {
  .ls-library .ls-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ls-library .ls-card-link,
  .ls-library .ls-filter-chevron {
    transition: none;
  }
}
@media (forced-colors: active) {
  .ls-library .ls-select-list {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }
  .ls-library .ls-select-option {
    color: CanvasText;
  }
  .ls-library .ls-select-option.ls-active {
    outline: 2px solid Highlight;
  }
  .ls-library .ls-select-option[aria-selected='true']::before {
    color: CanvasText;
  }
}
@media print {
  .ls-library .ls-filters,
  .ls-library .ls-pagination {
    display: none;
  }
  .ls-library .ls-layout {
    display: block;
  }
  .ls-library .ls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ls-library .ls-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .ls-library .ls-card-action {
    display: none;
  }
}
.ls-report-hub .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px;
  align-items: stretch;
}
.ls-report-hub .ls-report:not([open]) > summary {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ls-report-hub .ls-report:not([open]) .ls-report-copy {
  flex: 1;
}
.ls-report-hub .ls-report:not([open]) .ls-report-action {
  margin-top: auto;
  padding-top: 12px;
}
.ls-report-hub .ls-report-visual {
  height: 248px;
  flex: 0 0 248px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-report-hub .ls-report-visual > img {
  height: 100%;
  object-fit: contain;
}
.ls-overview-intro {
  grid-column: 1/-1;
  max-width: 1000px;
  margin-bottom: 8px;
}
.ls-overview-intro h2 {
  font-size: 30px;
  font-weight: 700;
  font-style: normal;
  color: #173e53;
  margin: 0 0 12px;
}
.ls-overview-intro p {
  font-size: 16px;
  line-height: 1.75;
  color: #567184;
  margin: 0;
}
.ls-overview-link {
  color: #173e53;
  text-decoration: none !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ls-overview-link .ls-report-copy {
  flex: 1;
}
.ls-overview-link .ls-report-action {
  margin-top: auto;
  padding-top: 12px;
}
.ls-overview-description {
  color: #567184;
  font-size: 14px;
  line-height: 1.7;
}
.ls-report-hub .ls-report[open] {
  grid-column: 1/-1;
}
.ls-report-placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
  color: #52768a;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.ls-report-source {
  display: inline-block;
  padding: 16px 24px;
  color: #007cbe;
}
/* The enhanced report lives in the top layer; its original disclosure is the fallback. */
.ls-report-dialog {
  box-sizing: border-box;
  width: min(1540px, calc(100% - 64px));
  max-width: none;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #d1e1eb;
  border-radius: 24px;
  background: #fff;
  color: #173e53;
  box-shadow: 0 28px 100px #071b3990;
  overflow: auto;
  overscroll-behavior: contain;
}
.ls-report-dialog:not([open]) {
  display: none;
}
.ls-report-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 8px;
}
.ls-report-dialog::backdrop {
  background: rgba(12, 28, 43, 0.66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.ls-report-dialog .ls-report-content {
  margin: 0;
  padding: 24px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.ls-report-dialog .ls-report-toolbar {
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid #d6e1e7;
  border-radius: 0;
  background: #fff;
  align-items: flex-start;
  flex-direction: row;
}
.ls-report-dialog :focus-visible {
  outline: 3px solid #0878bd;
  outline-offset: 3px;
}
.ls-report-card[aria-expanded='true'] {
  border-color: #0878bd;
  box-shadow: 0 8px 28px #0878bd24;
}
@media (max-width: 575px) {
  .ls-report-dialog {
    width: calc(100% - 16px);
    max-height: 96vh;
    max-height: 96dvh;
    border-radius: 18px;
  }
  .ls-report-dialog .ls-report-content {
    padding: 16px 12px;
  }
  .ls-report-dialog .ls-report-toolbar {
    padding: 16px 12px;
    gap: 12px;
  }
  .ls-report-dialog .ls-report-toolbar p {
    font-size: 13px;
  }
}
@media print {
  .ls-report-dialog {
    display: none !important;
  }
  body:has(.ls-report-dialog[open]) {
    position: static !important;
    overflow: visible !important;
  }
}
/* TAI overview: styles are confined to its card and modal. */
.ls-report-hub .ls-tai-subtitle,
.ls-tai-dialog .ls-tai-subtitle {
  display: block;
  margin: 0;
  color: #0878bd;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.ls-tai-dialog .ls-tai-header .ls-tai-subtitle {
  margin-top: 8px;
  font-size: 16px;
}
.ls-report-hub .ls-tai-montage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 83%, #8ca5ad30, transparent 53%),
    linear-gradient(140deg, #f1f7f8, #e6eeef);
  padding: 32px 22px;
  min-height: 238px;
}
/* Decorative page edges on the overview montage only; not a measured page count. */
.ls-report-hub .ls-tai-book {
  position: relative;
  isolation: isolate;
  display: block;
  flex: 0 1 34%;
  max-width: 127px;
  aspect-ratio: 495/700;
  margin-right: -8px;
  transform-origin: 50% 85%;
  transform: rotate(-8deg);
  filter: drop-shadow(2px 6px 5px #233d4b20);
}
/* Layered paper edges stay behind the unchanged original cover artwork. */
.ls-report-hub .ls-tai-book::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 1px -1px -1px 1px;
  border: 0;
  border-radius: 1px;
  background: #e9ece8;
}
.ls-report-hub .ls-tai-book img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 495/700;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef0eb;
  border-radius: 1px;
}
.ls-report-hub .ls-tai-book:nth-child(2) {
  transform: translateY(-6px);
  z-index: 3;
}
.ls-report-hub .ls-tai-book:nth-child(3) {
  transform: rotate(8deg);
}
.ls-tai-dialog {
  box-sizing: border-box;
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #d1e1eb;
  border-radius: 24px;
  background: #fff;
  color: #193f54;
  box-shadow: 0 28px 100px #071b3990;
  overflow: auto;
  overscroll-behavior: contain;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.ls-tai-dialog:not([open]) {
  display: none;
}
.ls-tai-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding-bottom: 8px;
}
.ls-tai-dialog::backdrop {
  background: rgba(12, 28, 43, 0.66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.ls-tai-dialog * {
  box-sizing: border-box;
}
.ls-tai-dialog [hidden] {
  display: none !important;
}
.ls-tai-dialog .ls-tai-header {
  position: relative;
  flex-shrink: 0;
  z-index: 3;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  background: #fff;
  border-bottom: 1px solid #d5e3ec;
}
.ls-tai-dialog h2 {
  font:
    700 clamp(21px, 2.2vw, 29px)/1.25 Arial,
    sans-serif;
  color: #193f54;
  margin: 6px 0 0;
}
.ls-tai-dialog .ls-report-kicker {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #54758a;
  text-transform: uppercase;
  font-weight: 700;
}
.ls-tai-dialog button {
  font-family: inherit;
  cursor: pointer;
}
.ls-tai-dialog .ls-tai-close {
  display: grid;
  place-items: center;
  align-self: flex-start;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  color: #315b70;
  border: 1px solid #bed4e1;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.ls-tai-dialog .ls-tai-close:hover {
  background: #eaf5fc;
  color: #007ec2;
}
.ls-tai-dialog .ls-tai-body {
  padding: 24px 30px 28px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.ls-tai-close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
/* Scroll inside the clipped shell so native tracks cannot square off its corners. */
:is(.ls-tai-dialog .ls-tai-body, .ls-report-dialog .ls-report-content) {
  scrollbar-width: thin;
  scrollbar-color: #c9ced1 transparent;
}
:is(.ls-tai-dialog .ls-tai-body, .ls-report-dialog .ls-report-content):hover {
  scrollbar-color: #aab3b9 transparent;
}
:is(.ls-tai-dialog .ls-tai-body, .ls-report-dialog .ls-report-content)::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
:is(.ls-tai-dialog .ls-tai-body, .ls-report-dialog .ls-report-content)::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 12px;
}
:is(.ls-tai-dialog .ls-tai-body, .ls-report-dialog .ls-report-content)::-webkit-scrollbar-thumb {
  background: #c9ced1;
  border: 2px solid #fff;
  border-radius: 99px;
}
:is(
    .ls-tai-dialog .ls-tai-body,
    .ls-report-dialog .ls-report-content
  )::-webkit-scrollbar-thumb:hover {
  background: #aab3b9;
}
.ls-tai-dialog p {
  margin: 0 0 16px;
}
.ls-tai-dialog .ls-tai-source-link {
  font-size: 14px;
  margin: 0;
}
.ls-tai-dialog .ls-tai-source-link a {
  color: #0878bd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ls-tai-dialog .ls-tai-source-link a:focus-visible {
  outline: 2px solid #0878bd;
  outline-offset: 4px;
  border-radius: 2px;
}
.ls-tai-dialog .ls-tai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.ls-tai-dialog .ls-tai-study {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  text-align: left;
  border: 1px solid #d5dadd;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  transition:
    border-color 0.15s,
    opacity 0.2s;
  color: #193f54;
}
.ls-tai-dialog .ls-tai-study:hover {
  border-color: #a6b2ba;
}
/* Link the selected card and its detail panel without disabling other choices. */
.ls-tai-dialog .ls-tai-study[aria-expanded='true'] {
  border-color: #0878bd;
}
.ls-tai-dialog
  .ls-tai-grid:has(.ls-tai-study[aria-expanded='true'])
  .ls-tai-study[aria-expanded='false'] {
  opacity: 0.68;
  box-shadow: none;
}
.ls-tai-dialog
  .ls-tai-grid:has(.ls-tai-study[aria-expanded='true'])
  .ls-tai-study[aria-expanded='false']:is(:hover, :focus-visible) {
  opacity: 1;
}
.ls-tai-dialog .ls-tai-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 188px;
  padding: 18px;
  background: linear-gradient(130deg, #eef6f9, #eff1ef);
}
.ls-tai-dialog .ls-tai-cover img {
  display: block;
  max-width: 85%;
  width: auto;
  height: 152px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 7px 18px #173e5329;
}
.ls-tai-dialog .ls-tai-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  width: 100%;
  gap: 9px;
}
.ls-tai-dialog .ls-tai-year {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #52748a;
}
.ls-tai-dialog .ls-tai-study-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #007dbd;
}
.ls-tai-dialog .ls-tai-status {
  font-size: 12px;
  color: #537186;
  line-height: 1.5;
}
.ls-tai-dialog .ls-report-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #007dbd;
}
.ls-tai-dialog .ls-tai-panel {
  scroll-margin-top: 132px;
  margin-top: 24px;
  padding: 26px;
  border: 1px solid #d5dadd;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}
.ls-tai-dialog .ls-tai-panel:not([hidden]) {
  border-color: #0878bd;
}
/* The selected card and its row's detail panel share one open white surface. */
.ls-tai-dialog .ls-tai-study.ls-tai-connected {
  position: relative;
  overflow: visible;
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.ls-tai-dialog .ls-tai-connected .ls-tai-cover {
  border-radius: 19px 19px 0 0;
  overflow: hidden;
}
.ls-tai-dialog .ls-tai-study.ls-tai-connected::after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
  left: -1px;
  right: -1px;
  bottom: calc(-1 * var(--ls-connection-gap) - 1px);
  height: calc(var(--ls-connection-gap) + 2px);
  background: #fff;
  border-left: 1px solid #0878bd;
  border-right: 1px solid #0878bd;
}
.ls-tai-dialog .ls-tai-grid > .ls-tai-panel {
  position: relative;
  grid-column: 1/-1;
  margin-top: 0;
}
.ls-tai-dialog .ls-tai-grid > .ls-tai-panel::before {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
  top: -1px;
  left: var(--ls-connection-left);
  width: calc(var(--ls-connection-width) - 2px);
  height: 1px;
  background: #fff;
}
/* Quarter-circle joins soften the concave corners while retaining a 1px contour. */
.ls-tai-dialog .ls-tai-grid > .ls-tai-panel {
  --ls-join-left: 13px;
  --ls-join-right: 13px;
  --ls-join-left-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M13.5 0v.5A13 13 0 0 1 .5 13.5H0' fill='none' stroke='%230878bd'/%3E%3C/svg%3E");
  --ls-join-right-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M.5 0v.5a13 13 0 0 0 13 13H14' fill='none' stroke='%230878bd'/%3E%3C/svg%3E");
}
.ls-tai-dialog .ls-tai-grid > .ls-tai-panel::after {
  content: '';
  position: absolute;
  z-index: 4;
  pointer-events: none;
  top: -14px;
  left: calc(var(--ls-connection-left) - var(--ls-join-left) - 1px);
  width: calc(var(--ls-connection-width) + var(--ls-join-left) + var(--ls-join-right));
  height: 14px;
  background-color: #fff;
  background-image: var(--ls-join-left-image), var(--ls-join-right-image);
  background-repeat: no-repeat;
  background-position:
    left top,
    right top;
  background-size: 14px 14px;
}
.ls-tai-dialog .ls-tai-grid > .ls-tai-panel.ls-tai-connected-start {
  --ls-join-left: 0px;
  --ls-join-left-image: linear-gradient(to right, #0878bd 1px, transparent 1px);
}
.ls-tai-dialog .ls-tai-grid > .ls-tai-panel.ls-tai-connected-end {
  --ls-join-right: 0px;
  --ls-join-right-image: linear-gradient(to left, #0878bd 1px, transparent 1px);
}
.ls-tai-dialog .ls-tai-panel.ls-tai-connected-start {
  border-top-left-radius: 0;
}
.ls-tai-dialog .ls-tai-panel.ls-tai-connected-end {
  border-top-right-radius: 0;
}
.ls-tai-dialog .ls-tai-panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #d5e3ec;
  padding-bottom: 16px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #55798d;
}
.ls-tai-dialog .ls-tai-panel-bar button {
  background: #fff;
  color: #007dbd;
  border: 1px solid #bed4e1;
  border-radius: 24px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
}
.ls-tai-dialog h3 {
  font:
    700 25px/1.3 Arial,
    sans-serif;
  color: #193f54;
  margin: 0 0 16px;
}
.ls-tai-dialog h4 {
  font:
    700 17px/1.4 Arial,
    sans-serif;
  color: #193f54;
  margin: 0 0 12px;
}
.ls-tai-dialog .ls-tai-findings {
  padding-left: 22px;
  margin: 0 0 24px;
  list-style: disc outside;
}
.ls-tai-dialog .ls-tai-findings li {
  padding-left: 4px;
  margin: 9px 0;
  list-style: disc outside;
}
.ls-tai-dialog .ls-tai-findings li::marker {
  color: #007dbd;
}
.lsp-pbi-reader {
  font-family: Arial, sans-serif;
  --lsp-report-blue: #006db7;
  --lsp-report-body: #3d4451;
  --lsp-report-muted: #717b83;
  --lsp-report-border: #dce5ef;
}
.lsp-pbi-reader [hidden] {
  display: none !important;
}
.lsp-pbi-mode {
  padding: 20px;
}
.lsp-pbi-mode p {
  max-width: 75ch;
  color: #537186;
  font-size: 14px;
}
.lsp-pbi-mode button,
.lsp-pbi-page-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--lsp-report-border);
  border-radius: 8px;
  padding: 8px 13px;
  background: #fff;
  color: var(--lsp-report-body);
  font:
    500 12px/1.4 Arial,
    sans-serif;
  box-shadow: 0 2px 3px rgba(25, 63, 84, 0.04);
  cursor: pointer;
}
.lsp-pbi-reader button[aria-pressed='true'] {
  background: var(--lsp-report-blue);
  color: #fff;
}
.lsp-pbi-reader button:focus-visible,
.lsp-pbi-reader a:focus-visible {
  outline: 3px solid #0079b8;
  outline-offset: 4px;
}
.lsp-pbi-stream {
  display: grid;
  gap: 28px;
  padding: clamp(12px, 3vw, 32px);
}
.ls-report-content .lsp-pbi-related {
  margin: 0;
  padding: clamp(16px, 3vw, 32px);
  border-top: 1px solid #dce5ef;
}
.lsp-pbi-related > h2 {
  margin: 0 0 24px;
  color: #173e53;
}
.ls-report-content .lsp-pbi-related .ls-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.lsp-pbi-reader .lsp-pbi-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
}
.lsp-pbi-page {
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid #dce8f2;
  border-radius: 22px;
  background: #fff;
}
.lsp-pbi-page h3 {
  margin: 0 0 16px;
  color: #193f54;
  font-size: clamp(18px, 2vw, 24px);
}
.lsp-pbi-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.lsp-pbi-page-actions a {
  color: var(--lsp-report-body);
  font-size: 14px;
}
.lsp-pbi-tools {
  margin-bottom: 16px;
}
.lsp-pbi-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #dce8f2;
  border-radius: 20px;
  color: #085041;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.lsp-pbi-tools summary::-webkit-details-marker {
  display: none;
}
.lsp-pbi-disclosure {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #c7dce9;
  border-radius: 50%;
  color: #0079b8;
}
.lsp-pbi-tools[open] .lsp-pbi-disclosure {
  transform: rotate(180deg);
}
.lsp-pbi-tools .lsp-pbi-page-actions {
  padding: 16px 0 0;
}
.lsp-pbi-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #c7dce9;
}
.lsp-pbi-sizes button {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--lsp-report-muted);
}
.lsp-pbi-sizes button + button {
  border-left: 1px solid #dce8f2;
}
.lsp-pbi-reader svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lsp-pbi-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lsp-pbi-status::before {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6bbb98;
  box-shadow: 0 0 0 5px rgba(101, 186, 153, 0.14);
  animation: lsp-report-pulse 2.8s ease-in-out infinite;
}
@keyframes lsp-report-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(101, 186, 153, 0.04);
  }
}
.lsp-pbi-disclosure,
.lsp-pbi-external .ls-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #c7dce9;
  border-radius: 50%;
  color: #7893a3;
  background: #fff;
}
.lsp-pbi-tools summary:hover .lsp-pbi-disclosure,
.lsp-pbi-external:hover .ls-action-icon {
  color: #fff;
  background: #007dbd;
  border-color: #007dbd;
}
@media (prefers-reduced-motion: reduce) {
  .lsp-pbi-status::before {
    animation: none;
  }
}
@media (pointer: coarse) {
  .lsp-pbi-page-actions button {
    min-height: 44px;
  }
}
.lsp-pbi-sizes button[aria-pressed='true'] {
  color: #fff;
  background: var(--lsp-report-blue);
}
.lsp-pbi-page-actions button:hover:not([aria-pressed='true']),
.lsp-pbi-page-actions .lsp-pbi-external:hover {
  color: var(--lsp-report-body);
  background: #f5f7fa;
  border-color: var(--lsp-report-muted);
}
.lsp-pbi-external {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 18px;
  border: 1px solid #c7dce9;
  border-radius: 999px;
  text-decoration: none;
}
.lsp-pbi-tools summary:focus-visible {
  outline: 3px solid #0079b8;
  outline-offset: 3px;
}
.lsp-pbi-page:fullscreen {
  overflow: auto;
  padding: 24px;
}
.lsp-pbi-frame[data-size='0'] {
  height: 360px;
}
.lsp-pbi-frame[data-size='2'] {
  height: 900px;
}
.lsp-pbi-frame[data-size='3'],
.lsp-pbi-page:fullscreen .lsp-pbi-frame {
  height: 85vh;
}
.lsp-pbi-frame {
  position: relative;
  width: 100%;
  height: clamp(360px, 65vw, 780px);
  background: #f7fafd;
  border-radius: 12px;
  overflow: hidden;
}
.lsp-pbi-frame p {
  padding: 24px;
  color: #537186;
}
.lsp-pbi-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #fff;
}
.lsp-pbi-frame.is-interactive iframe {
  pointer-events: auto;
}
.ls-tai-dialog .ls-tai-context {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #dce8f2;
  background: linear-gradient(180deg, #f7fafd, #eef5fb);
  border-radius: 22px;
  margin: 28px auto 24px;
  box-shadow: 0 8px 24px rgba(0, 61, 102, 0.04);
}
.ls-tai-dialog .ls-tai-context h4 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  color: #0079b8;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ls-tai-dialog .ls-tai-context h4::before {
  content: '';
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8b63b;
}
.ls-tai-dialog .ls-tai-context p {
  margin: 0;
  color: #193f54;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
@media print {
  .ls-tai-dialog .ls-tai-context {
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }
}
.ls-tai-dialog .ls-tai-limits {
  font-size: 13px;
  color: #537186;
}
.ls-tai-dialog .ls-tai-sources {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.ls-tai-dialog .ls-tai-sources a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: #0079b8;
  text-decoration: none;
  font-size: 14px;
}
.ls-tai-dialog .ls-tai-sources a > span:first-child {
  min-width: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.ls-tai-dialog [data-tai-collapse] {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 4px 16px;
}
.ls-tai-dialog .ls-tai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  margin-top: 24px;
  border-top: 1px solid #d5e3ec;
  font-size: 12px;
  color: #617b8c;
}
.ls-tai-dialog :focus-visible {
  outline: 3px solid #0781c7;
  outline-offset: 3px;
}
.ls-tai-dialog .ls-tai-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .ls-tai-dialog {
    width: min(1540px, calc(100% - 80px));
  }
  .ls-tai-dialog .ls-tai-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ls-tai-dialog .ls-tai-study-title {
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  .ls-tai-dialog .ls-tai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ls-tai-dialog {
    width: calc(100% - 20px);
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 18px;
  }
  .ls-tai-dialog .ls-tai-header {
    padding: 16px;
    gap: 12px;
  }
  .ls-tai-dialog .ls-tai-body {
    padding: 18px 16px;
  }
  .ls-tai-dialog .ls-tai-grid {
    grid-template-columns: 1fr;
  }
  .ls-tai-dialog .ls-tai-panel {
    padding: 18px;
    scroll-margin-top: 145px;
  }
  .ls-tai-dialog .ls-tai-panel-bar,
  .ls-tai-dialog .ls-tai-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .ls-tai-dialog h3 {
    font-size: 22px;
  }
  .ls-tai-dialog .ls-tai-footer button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ls-tai-dialog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body.ls-tai-modal-active {
    position: static !important;
    overflow: visible !important;
  }
  .ls-report-hub .ls-tai-trigger {
    display: none;
  }
  .ls-tai-dialog[open] {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  .ls-tai-dialog::backdrop {
    background: transparent;
  }
  .ls-tai-dialog .ls-tai-header {
    position: static;
  }
  .ls-tai-dialog .ls-tai-grid,
  .ls-tai-dialog button,
  .ls-tai-dialog .ls-tai-footer {
    display: none;
  }
  .ls-tai-dialog .ls-tai-panel {
    break-inside: avoid;
  }
}
@media print {
  .ls-tai-dialog .ls-tai-grid {
    display: block;
  }
  .ls-tai-dialog .ls-tai-study,
  .ls-tai-dialog .ls-tai-panel::before,
  .ls-tai-dialog .ls-tai-panel::after {
    display: none;
  }
}
@media print {
  .ls-tai-dialog .ls-tai-body {
    overflow: visible;
  }
}

/* Adapted from Sport Koolis .sk-evidence .round-arrow; scoped to this page. */
:where(.ls-report-hub, .ls-library) .ls-action-icon {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  margin: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  background: #fff;
  color: #758995;
  border: 1px solid #c6d3dc;
  border-radius: 50%;
  line-height: 1;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
:where(.ls-report-hub, .ls-library) .ls-action-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  transition: transform 0.2s;
}
:where(.ls-report-hub, .ls-library) .ls-action-icon--up svg {
  transform: rotate(-90deg);
}
:where(.ls-report-hub, .ls-library)
  :is(.ls-report-card, .ls-tai-study, .ls-card-link):is(:hover, :focus-visible)
  .ls-action-icon,
.ls-report-hub .ls-report[open] > summary .ls-action-icon,
.ls-report-hub .ls-tai-study[aria-expanded='true'] .ls-action-icon {
  background: #0878bd;
  border-color: #0878bd;
  color: #fff;
}
.ls-report-hub .ls-report[open] > summary .ls-action-icon svg,
.ls-report-hub .ls-tai-study[aria-expanded='true'] .ls-action-icon svg {
  transform: rotate(90deg);
}
.ls-tai-dialog
  :is(.ls-tai-sources a, [data-tai-collapse]):is(:hover, :focus-visible)
  .ls-action-icon {
  border-color: #0878bd;
  color: #0878bd;
  background: #eef7fc;
}
@media (prefers-reduced-motion: reduce) {
  :where(.ls-report-hub, .ls-library) .ls-action-icon,
  :where(.ls-report-hub, .ls-library) .ls-action-icon svg {
    transition: none;
  }
}

/* Paired application previews share one catalogue destination. */
.ls-report-hub .ls-report-visual.ls-report-visual-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
  align-items: center;
}
.ls-report-hub .ls-report-visual-pair .ls-application-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}
.ls-report-hub .ls-report-visual-pair .ls-application-preview > span {
  display: block;
  width: 100%;
  margin: 0;
  color: #6b7780;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.ls-report-hub .ls-report-visual-pair .ls-application-preview img {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1710 / 1063;
  object-fit: contain;
}

/* Preserve caption space on narrow phones without changing larger cards. */
@media (max-width: 360px) {
  .ls-report-hub .ls-report-visual.ls-report-visual-pair {
    gap: 16px;
    padding: 16px;
  }
  .ls-report-hub .ls-report-visual-pair .ls-application-preview > span {
    overflow-wrap: anywhere;
  }
}

/* The stacked report covers keep their own layers and stay under the site menu. */
.ls-report-hub .ls-report-visual{isolation:isolate}
