@layer foundation, shell, evidence, views, small;
@layer foundation {
  @font-face {
    font-family: Work Sans;
    src: url('/assets/work-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
  }
  @font-face {
    font-family: Work Sans;
    src: url('/assets/work-600.woff2') format('woff2');
    font-weight: 600 800;
    font-display: swap;
  }
  @font-face {
    font-family: Field Serif;
    src: url('/assets/field-serif.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
  }
  :root {
    color-scheme: light;
    --paper: #f7f6f0;
    --card: #fffef9;
    --ink: #20372e;
    --muted: #53635a;
    --forest: #193c32;
    --forest-dark: #132f28;
    --fern: #486d55;
    --soft: #e7ebe0;
    --lime: #d8e9af;
    --pale: #f1f5e8;
    --rule: #cbd0c2;
    --cream: #fafbf3;
    --pale-ink: #d5e0d3;
    --copper: #92553c;
    --warning: #f9e8d8;
    --rail: #d4dccb;
    --focus: #b96d3f;
    --overlay: rgb(16 36 29 / 0.84);
    --serif: Field Serif, Georgia, serif;
    --round: 4px;
    font:
      400 1rem/1.5 Work Sans,
      Arial,
      sans-serif;
    color: var(--ink);
    background: var(--paper);
    accent-color: var(--fern);
  }
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  h1,
  h2,
  h3 {
    text-wrap: balance;
  }
  a {
    color: inherit;
    text-underline-offset: 0.21em;
  }
  a:hover,
  summary:hover {
    text-decoration: underline;
  }
  button,
  select {
    font: inherit;
    color: inherit;
    cursor: pointer;
  }
  button,
  select {
    border: 1px solid var(--rule);
    border-radius: var(--round);
    background: var(--card);
    min-height: 40px;
    padding: 0.4rem 0.8rem;
  }
  button:hover,
  select:hover {
    border-color: var(--fern);
    background: var(--pale);
  }
  :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
  [hidden] {
    display: none !important;
  }
  .sr-only,
  .skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .skip:focus {
    position: absolute;
    z-index: 10;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--card);
    padding: 0.7rem;
  }
  .quiet,
  .reading,
  .section-lede,
  .explanation,
  .disclosed,
  .tiny,
  .format-meta,
  .source-status {
    font-size: 0.87rem;
    color: var(--muted);
  }
  .reading,
  .section-lede,
  .explanation,
  .disclosed {
    margin-block: 0.55rem;
    max-width: 75ch;
  }
  .source,
  .text-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    padding-block: 0.35rem;
  }
  .kicker,
  .mode {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.035em;
  }
  .small-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
  }
  .small-meta span + span::before {
    content: '·';
    margin-right: 0.5rem;
  }
  .empty,
  .notice {
    padding: 1rem;
    color: var(--muted);
    background: var(--soft);
    margin-block: 1rem;
  }
  .notice {
    background: var(--warning);
    border-left: 3px solid var(--copper);
  }
}
@layer shell {
  .shell {
    width: min(100% - clamp(2rem, 7vw, 7rem), 82rem);
    margin-inline: auto;
  }
  main {
    padding-bottom: 5rem;
  }
  .mast {
    border-bottom: 1px solid var(--rule);
    background: var(--card);
  }
  .mast-inner,
  .main-nav,
  .report-tools,
  .report-meta,
  .period,
  .report-cover,
  .metrics,
  .section-heading,
  .filters,
  .signal-top,
  .card-tools {
    display: flex;
    align-items: center;
  }
  .mast-inner {
    gap: 1.45rem;
    min-height: 4.5rem;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .brand img {
    width: 8rem;
    height: auto;
  }
  .product {
    border-left: 1px solid var(--rule);
    padding-left: 1.4rem;
    color: var(--muted);
    font-size: 0.85rem;
  }
  .main-nav {
    gap: clamp(1rem, 2.3vw, 2.4rem);
    align-self: stretch;
    margin-left: auto;
  }
  .main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    padding-top: 3px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .main-nav a:hover,
  .main-nav a[aria-current] {
    color: var(--fern);
    border-bottom-color: var(--fern);
  }
  #saved-count {
    padding: 0.03rem 0.35rem;
    background: var(--soft);
    border-radius: var(--round);
    font-size: 0.75rem;
  }
  .report-tools {
    justify-content: space-between;
    gap: 0.6rem 1rem;
    padding-top: 1.6rem;
  }
  .report-meta {
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.84rem;
  }
  .mode {
    background: var(--soft);
    padding: 0.24rem 0.5rem;
    border-radius: var(--round);
    color: var(--forest);
  }
  .mode.live::before {
    content: '';
    display: inline-block;
    margin-right: 0.4rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--fern);
    vertical-align: 0.07em;
  }
  .period,
  .filters label {
    gap: 0.5rem;
    font-size: 0.83rem;
    color: var(--muted);
  }
  .report-cover {
    padding: 0.55rem 0 1.4rem;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--rule);
  }
  h1 {
    font: 500 clamp(2.9rem, 5.6vw, 5rem)/1.05 var(--serif);
    letter-spacing: -0.055em;
  }
  #intro {
    color: var(--muted);
    font-size: 0.96rem;
    margin-top: 0.22rem;
  }
  .metrics {
    gap: 1.4rem;
    flex-wrap: wrap;
    align-self: center;
  }
  .metric {
    display: grid;
    border-left: 1px solid var(--rule);
    padding-left: 1rem;
    color: var(--muted);
    font-size: 0.78rem;
  }
  .metric strong {
    font: 500 2.4rem/1.05 var(--serif);
    color: var(--ink);
    font-variant-numeric: lining-nums;
  }
  .metric-note {
    font-size: 0.77rem;
    color: var(--muted);
  }
  .filters {
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }
  .filters label {
    display: inline-flex;
    align-items: center;
  }
  .filters select {
    font-weight: 600;
    color: var(--ink);
  }
  #signal-count {
    margin-left: auto;
  }
  .section-heading {
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.7rem;
    margin-bottom: 0.85rem;
  }
  .section-heading h2 {
    font: 500 clamp(1.7rem, 2.8vw, 2.5rem)/1.08 var(--serif);
    letter-spacing: -0.04em;
  }
  .section-heading .quiet {
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
  }
  #workspace > section {
    margin-top: 1.65rem;
  }
}
@layer evidence {
  .bar-row {
    margin: 0.5rem 0;
  }
  .bar-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
  }
  .bar-caption b {
    font-variant-numeric: tabular-nums;
  }
  .rail {
    height: 5px;
    background: var(--rail);
    margin-top: 0.18rem;
    overflow: hidden;
  }
  .fill {
    display: block;
    height: 100%;
    background: var(--fern);
  }

  .preview {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--forest-dark);
    color: var(--cream);
    isolation: isolate;
    text-decoration: none;
  }
  .preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .preview-link {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.47rem 0.85rem;
    background: var(--overlay);
    color: var(--cream);
    border: 1px solid var(--pale-ink);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  .preview:hover .preview-link,
  .preview:focus .preview-link {
    color: var(--forest);
    background: var(--cream);
  }
  .play-mark {
    display: inline-block;
    width: 0;
    height: 0;
    border-block: 4px solid transparent;
    border-left: 7px solid currentColor;
  }
  .type-preview {
    display: grid;
    place-content: center;
    background: var(--forest-dark) url('/assets/contours.svg') right center / cover no-repeat;
  }
  .preview-type {
    max-width: 16ch;
    padding: 0.5rem 1rem;
    background: var(--forest-dark);
    font: 500 clamp(1.4rem, 3vw, 2.8rem)/1.1 var(--serif);
    text-align: center;
  }

  .save-button {
    margin-left: auto;
    white-space: nowrap;
    border-color: var(--fern);
    background: transparent;
    font-size: 0.83rem;
    font-weight: 600;
  }
  .save-button[aria-pressed='true'] {
    background: var(--forest);
    color: var(--cream);
  }

  .video-card {
    min-width: 0;
  }
  .video-card .preview,
  .format .preview,
  .saved-row .preview {
    aspect-ratio: 16/9;
    border-radius: var(--round);
  }
  .video-card .preview-link,
  .format .preview-link,
  .saved-row .preview-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }
  .video-copy {
    padding: 0.7rem 0.05rem 0.45rem;
  }
  .video-copy .kicker {
    color: var(--fern);
    font-size: 0.75rem;
  }
  .video-copy h3,
  .saved-row h3 {
    font-size: 1.04rem;
    line-height: 1.26;
    margin: 0.3rem 0 0.4rem;
    overflow-wrap: anywhere;
    letter-spacing: -0.025em;
  }
  .card-tools {
    flex-wrap: wrap;
    gap: 0.3rem 0.65rem;
    margin-top: 0.4rem;
  }
  .card-tools .save-button,
  .signal .save-button {
    margin: 0;
    min-height: 32px;
    padding: 0.14rem 0.45rem;
    font-size: 0.76rem;
  }
  .card-tools details {
    flex-basis: 100%;
  }
  .more,
  .download {
    margin: 1rem 0;
    font-weight: 600;
  }
  .activity {
    margin-top: 1.55rem;
  }
  details summary {
    color: var(--forest);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.45rem 0;
  }
  .activity-group {
    border-block-end: 1px solid var(--rule);
  }
  .activity-group > summary {
    padding: 1rem 0.25rem;
  }
  .activity-group > summary .quiet {
    font-weight: 400;
    margin-left: 1rem;
  }
  .signal {
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0;
    overflow-wrap: anywhere;
  }
  .signal h3 {
    font-size: 1.12rem;
    line-height: 1.3;
    margin: 0.5rem 0;
  }
  .signal-top {
    justify-content: space-between;
    gap: 0.5rem;
  }
  .kind,
  .lift {
    color: var(--fern);
    font-size: 0.8rem;
    font-weight: 600;
  }
  .signal > .save-button {
    margin-left: 0.8rem;
  }
}
@layer views {
  .company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
  }
  .company {
    padding: 1rem 1.15rem;
    border: 1px solid var(--rule);
    background: var(--card);
    border-radius: var(--round);
  }
  .company summary {
    position: relative;
    display: block;
    list-style: none;
    padding: 0 1.15rem 0 0;
  }
  .company summary::-webkit-details-marker {
    display: none;
  }
  .company summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0.25rem;
    font-size: 1.2rem;
  }
  .company[open] summary::after {
    content: '−';
  }
  .company-name,
  .channel-line {
    display: block;
  }
  .company-name {
    font: 500 1.6rem/1.15 var(--serif);
    margin: 0.25rem 0;
  }
  .channel-line {
    color: var(--muted);
    font-weight: 400;
  }
  .channel {
    border-top: 1px solid var(--rule);
    margin-top: 0.7rem;
    padding-top: 0.55rem;
    font-size: 0.88rem;
  }
  .channel .source-status {
    float: right;
  }
  .recent {
    margin: 2rem 0;
  }
  .format {
    display: grid;
    grid-template-columns: minmax(9rem, 15rem) minmax(10rem, 1fr) minmax(14rem, 1.4fr);
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
  }
  .format:not(:has(.preview))::before {
    content: '';
    width: 100%;
    height: 2px;
    max-width: 4rem;
    background: var(--fern);
    align-self: center;
  }
  .format p {
    margin-top: 0.4rem;
  }
  .format .bar-row {
    max-width: 18rem;
  }
  .format .lift {
    font-size: 1.1rem;
  }
  .click-summary {
    padding: 0.8rem;
    background: var(--soft);
  }
  .saved-row {
    display: grid;
    grid-template-columns: minmax(9rem, 15rem) 1fr;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
  }
  .remove {
    margin-top: 0.55rem;
    font-size: 0.8rem;
  }
}
@layer small {
  @media (max-width: 65rem) {
    .mast-inner {
      gap: 0.85rem;
    }
    .product {
      padding-left: 0.85rem;
    }
    .metrics {
      gap: 0.65rem;
    }
    .metric {
      padding-left: 0.65rem;
    }
  }
  @media (max-width: 48rem) {
    .mast-inner {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0 0.7rem;
      padding-top: 0.35rem;
    }
    .brand img {
      width: 6.8rem;
    }
    .main-nav {
      grid-column: 1/-1;
      width: 100%;
      margin: 0;
      justify-content: space-between;
      gap: 0.45rem;
    }
    .main-nav a {
      min-height: 44px;
      font-size: 0.81rem;
    }
    .product {
      font-size: 0.79rem;
    }
    .report-tools {
      padding-top: 1rem;
      align-items: flex-start;
    }
    .report-meta {
      flex-wrap: wrap;
      gap: 0.3rem 0.55rem;
      font-size: 0.76rem;
    }
    .mode {
      font-size: 0.75rem;
    }
    .period {
      font-size: 0;
      gap: 0;
    }
    .period select,
    .filters select {
      font-size: 1rem;
      min-height: 44px;
    }
    .report-cover {
      align-items: flex-start;
      flex-direction: column;
      gap: 0.75rem;
      padding-bottom: 0.85rem;
    }
    .metrics {
      align-self: stretch;
      gap: 0.8rem;
    }
    .metric {
      display: flex;
      align-items: baseline;
      gap: 0.3rem;
      padding: 0;
      border: none;
    }
    .metric strong {
      font-size: 1.35rem;
    }
    .filters {
      gap: 0.4rem 0.5rem;
    }
    .filters label {
      font-size: 0;
      gap: 0;
    }
    #signal-count {
      font-size: 0.78rem;
    }

    .company-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .format {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
      gap: 0.7rem 1rem;
    }
    .format > div:last-child {
      grid-column: 1/-1;
    }
    .card-tools .save-button,
    .signal .save-button,
    .source,
    .text-link,
    summary,
    .remove {
      min-height: 44px;
      align-content: center;
    }
  }
  @media (max-width: 31rem) {
    .company-grid {
      grid-template-columns: 1fr;
    }
    .saved-row {
      grid-template-columns: 1fr;
    }
    .saved-row .preview {
      max-width: 20rem;
    }
    .video-copy h3 {
      font-size: 0.94rem;
    }
    .section-heading h2 {
      font-size: 1.75rem;
    }
    .filters select {
      padding-inline: 0.4rem;
    }
    .metrics {
      flex-wrap: wrap;
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .preview img {
      transition: transform 180ms ease-out;
    }
    @media (hover: hover) {
      .preview:hover img {
        transform: scale(1.025);
      }
    }
  }
}
@layer views {
  .history summary {
    color: var(--ink);
  }
  .history svg {
    display: block;
    width: 100%;
    max-width: 22rem;
    height: auto;
    background: var(--pale);
    margin: 0.3rem 0;
    border-block: 1px solid var(--rule);
  }
  .history path {
    fill: none;
    stroke: var(--fern);
    stroke-width: 2;
  }
  .history circle {
    fill: var(--forest);
  }
  .library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1.1rem;
  }
  .library-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: end;
    margin-block: 1rem 1.5rem;
  }
  .library-tools label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: var(--muted);
  }
  .library-tools input {
    font: inherit;
    font-size: 1rem;
    border: 1px solid var(--rule);
    background: var(--card);
    color: var(--ink);
    min-height: 42px;
    padding: 0.45rem 0.7rem;
    border-radius: var(--round);
    min-width: 0;
  }

  .main-nav a:not([data-view='saved']) {
    gap: 0;
    white-space: pre;
  }
}
@layer small {
  @media (max-width: 64rem) {
    .library-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 48rem) {
    .library-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .main-nav a:not([data-view='saved']) span {
      display: none;
    }
    .main-nav a {
      text-transform: capitalize;
    }
    .library-tools select {
      font-size: 1rem;
      min-height: 44px;
    }
  }
}
@layer shell {
  @media (min-width: 48.01rem) {
    .report-tools {
      padding-top: 0.9rem;
    }
    .report-cover {
      padding: 0.1rem 0 0.8rem;
    }
    .report-cover h1 {
      font-size: clamp(2.8rem, 4.7vw, 4.4rem);
    }
    .filters {
      padding: 0.55rem 0;
    }
  }
}
@layer evidence {
  .kicker,
  .mode,
  .video-copy .kicker,
  .preview-link,
  #saved-count {
    font-size: 0.75rem;
  }
}
@layer views {
  .channel-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem;
  }
  .channel .source-status {
    float: none;
  }
  .channel .source {
    display: block;
    width: fit-content;
  }
  .company[open] {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.4rem 1rem;
  }
  .company[open] summary {
    grid-column: 1/-1;
  }
  .saved-row .saved-prompt {
    font: 500 clamp(1.4rem, 2.1vw, 1.85rem)/1.16 var(--serif);
    max-width: 52ch;
  }
}
@layer small {
  @media (max-width: 48rem) {
    .filters {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.5rem;
    }
    .filters label,
    .filters select {
      min-width: 0;
      width: 100%;
    }
    #signal-count {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
    .main-nav a {
      min-width: 44px;
      justify-content: center;
    }
    .more,
    .download {
      min-height: 44px;
    }
    .report-tools {
      padding-top: 0.75rem;
    }
  }
}
@layer views {
  .library-tools {
    align-items: center;
    justify-content: flex-end;
    margin: 0.7rem 0 0.45rem;
    gap: 0.6rem;
  }
  .library-tools .search-label {
    flex: 0 1 19rem;
  }
  .library-tools select,
  .library-tools input {
    min-height: 40px;
  }
  .lenses {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: var(--round);
    background: var(--soft);
    margin-right: auto;
  }
  .lenses button {
    border-color: transparent;
    background: transparent;
    min-height: 36px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .lenses button[aria-pressed='true'] {
    color: var(--cream);
    background: var(--forest);
  }
  .library-subhead {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: baseline;
    margin-bottom: 0.95rem;
  }
  .library-caption,
  .library-count {
    color: var(--muted);
    font-size: 0.81rem;
  }
  .library-count {
    white-space: nowrap;
  }
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem 1.2rem;
  }
  .video-card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--round);
    overflow: hidden;
  }
  .video-card .preview {
    border-radius: 0;
  }
  .video-copy {
    padding: 0.85rem 1rem 1rem;
  }
  .video-copy h3 {
    font-size: 1.14rem;
  }
  .video-copy .card-baseline {
    margin-top: 0.3rem;
    font-size: 0.83rem;
    color: var(--fern);
  }
  .media-stat {
    position: absolute;
    z-index: 1;
    left: 0.7rem;
    top: 0.7rem;
    color: var(--forest-dark);
    background: var(--lime);
    padding: 0.12rem 0.6rem 0.18rem;
    border-radius: var(--round);
    font:
      600 1.3rem/1.28 Work Sans,
      Arial,
      sans-serif;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
  }
  .card-tools {
    margin-top: 0.65rem;
    align-items: baseline;
  }
  .card-tools details {
    flex-basis: auto;
  }
  .card-tools summary,
  .video-copy .history summary {
    padding: 0.3rem 0.1rem;
    font-size: 0.81rem;
  }
  .library-empty {
    padding: 2rem;
    background: var(--soft);
    margin: 1rem 0;
  }
  .library-empty h2,
  .brief-narrative > h2,
  .brief-idea-copy h2 {
    font: 500 2rem/1.15 var(--serif);
    letter-spacing: -0.035em;
  }
  .brief-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 1fr);
    gap: clamp(1.2rem, 4vw, 4rem);
    align-items: start;
  }
  .brief-narrative {
    padding-block: 1rem;
  }
  .brief-points {
    padding: 0;
    list-style: none;
    margin: 0.75rem 0 1rem;
  }
  .brief-points li {
    border-top: 1px solid var(--rule);
    padding: 0.85rem 0;
    font-size: 1rem;
  }
  .brief-idea {
    background: var(--forest);
    color: var(--cream);
    border-radius: var(--round);
    overflow: hidden;
  }
  .brief-idea > .preview {
    aspect-ratio: 2.25;
  }
  .brief-idea-copy {
    padding: 1.1rem 1.4rem;
  }
  .brief-idea-copy .kicker {
    color: var(--lime);
  }
  .brief-idea-copy h2 {
    margin: 0.35rem 0 0.5rem;
  }
  .brief-idea-copy .save-button {
    background: var(--pale);
    color: var(--forest);
    margin-top: 0.8rem;
  }
  .brief-scan {
    margin-top: 1rem;
  }
  .brief-narrative .activity {
    margin-top: 1.25rem;
  }
  .brief-narrative .activity h2 {
    font-size: 1.6rem;
  }
  #workspace > .library {
    margin-top: 1rem;
  }
}
@layer small {
  @media (max-width: 48rem) {
    .library-tools {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0.55rem;
    }
    .library-tools .lenses {
      grid-column: 1/-1;
      justify-self: start;
    }
    .library-tools select,
    .library-tools input,
    .lenses button {
      min-height: 44px;
    }
    .library-tools .search-label {
      min-width: 0;
    }
    .library-tools:has(.platform-field:not([hidden])) .search-label {
      grid-column: 1 / -1;
    }
    .library-subhead {
      display: block;
    }
    .library-count {
      display: block;
      margin-top: 0.25rem;
    }
    .library-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
    }
    .video-copy {
      padding: 0.6rem;
    }
    .video-copy h3 {
      font-size: 0.96rem;
    }
    .media-stat {
      left: 0.4rem;
      top: 0.4rem;
      font-size: 1rem;
    }
    .card-tools summary,
    .video-copy .history summary {
      min-height: 44px;
      align-content: center;
    }
    .brief-layout {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 22rem) {
    .library-grid {
      grid-template-columns: 1fr;
    }
    .library-tools {
      grid-template-columns: 1fr;
    }
    .library-tools .lenses {
      grid-column: 1;
    }
  }
}

@layer views {
  .benchmark-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    margin: 1rem 0 2.3rem;
  }
  .benchmark-card {
    padding: 1.1rem 1.2rem;
    border-top: 3px solid var(--fern);
    background: var(--pale);
  }
  .benchmark-card .kicker {
    color: var(--fern);
  }
  .benchmark-card h3 {
    font: 500 1.85rem/1.2 var(--serif);
    margin: 0.35rem 0 0.55rem;
  }
}
@layer small {
  @media (max-width: 48rem) {
    .lenses {
      max-width: 100%;
      flex-wrap: wrap;
    }
    .lenses button {
      padding-inline: 0.55rem;
      font-size: 0.83rem;
    }
    .benchmark-grid {
      grid-template-columns: 1fr;
    }
  }
}

@layer small {
  @media (max-width: 40rem) {
    .library-description {
      display: none;
    }
    .library-tools {
      grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 42%);
    }
    .library-tools select {
      min-width: 0;
      width: 100%;
    }
    .library-tools .lenses {
      grid-column: 1/-1;
    }
    .brief-idea .save-button,
    .library-empty button {
      min-height: 44px;
    }
  }
  @media (max-width: 30rem) {
    .library-grid {
      grid-template-columns: 1fr;
    }
    .video-copy h3 {
      font-size: 1.1rem;
    }
    .video-copy {
      padding: 0.7rem 0.85rem;
    }
  }
}

@layer views {
  .brief-layout {
    row-gap: 0;
    grid-template-rows: auto 1fr;
  }
  .brief-narrative {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 0;
  }
  .headline-finding {
    margin-top: 0.75rem;
    border-top: 1px solid var(--rule);
    padding: 0.85rem 0;
  }
  .brief-side {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .brief-continuation {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .brief-continuation .brief-points {
    margin-top: 0;
  }
  .preview img.archived-image {
    object-fit: contain;
    background: var(--card);
  }
}
@layer small {
  @media (max-width: 48rem) {
    .brief-layout {
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }
    .brief-side {
      display: contents;
    }
    .brief-idea {
      order: 1;
      margin-bottom: 1rem;
    }
    .brief-continuation {
      order: 2;
    }
    .brief-scan {
      order: 3;
    }
  }
  @media (max-width: 40rem) {
    #main[data-view='videos'] #intro {
      display: none;
    }
    #main[data-view='videos'] .report-cover {
      gap: 0.25rem;
    }
    .report-meta {
      gap: 0.2rem 0.45rem;
    }
  }
}

@layer small {
  @media (max-width: 48rem) {
    .card-tools details { flex-basis:100%; order:-1; }
  }
}
